@justifi/webcomponents 4.22.0 → 4.22.1
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-9db96975.js → Analytics-0d90fa0d.js} +1 -1
- package/dist/cjs/{check-pkg-version-23a1cabd.js → check-pkg-version-fafb21ae.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -47
- package/dist/cjs/checkouts-table-24c065ff.js +47 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -5
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/{package-41c8f38c.js → package-596f102c.js} +1 -1
- package/dist/cjs/{table-bb114e2f.js → table-20e9a053.js} +3 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +7 -30
- package/dist/cjs/terminals-table-99a7b87b.js +32 -0
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +7 -7
- package/dist/collection/components/checkouts-list/checkouts-list.js +5 -3
- package/dist/collection/components/terminals-list/terminals-list-core.js +7 -7
- package/dist/collection/components/terminals-list/terminals-list.js +5 -3
- package/dist/collection/utils/table.js +3 -0
- package/dist/docs.json +3 -3
- package/dist/esm/{Analytics-777962a4.js → Analytics-a46c0c00.js} +1 -1
- package/dist/esm/{check-pkg-version-bac8fac0.js → check-pkg-version-ed46fa3b.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +9 -46
- package/dist/esm/checkouts-table-62c44909.js +43 -0
- package/dist/esm/justifi-bank-account-form.entry.js +2 -2
- package/dist/esm/justifi-billing-form_2.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +3 -3
- package/dist/esm/justifi-business-form.entry.js +3 -3
- package/dist/esm/justifi-card-form.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list.entry.js +7 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-payment-details.entry.js +3 -3
- package/dist/esm/justifi-payment-form.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +6 -5
- package/dist/esm/justifi-tokenize-payment-method.entry.js +3 -3
- package/dist/esm/{package-5144835c.js → package-6c5cc174.js} +1 -1
- package/dist/esm/{table-75364107.js → table-5da154e7.js} +3 -0
- package/dist/esm/terminals-list-core.entry.js +8 -31
- package/dist/esm/terminals-table-059c473e.js +28 -0
- package/dist/module/checkouts-list-core2.js +6 -5
- package/dist/module/justifi-checkouts-list.js +3 -3
- package/dist/module/justifi-terminals-list.js +3 -3
- package/dist/module/package.js +1 -1
- package/dist/module/table.js +3 -0
- package/dist/module/terminals-list-core2.js +6 -5
- package/dist/types/utils/table.d.ts +1 -0
- package/dist/webcomponents/p-02cf5e6f.js +1 -0
- package/dist/webcomponents/{p-037e3545.entry.js → p-088826fe.entry.js} +1 -1
- package/dist/webcomponents/{p-f7077f93.entry.js → p-0eb0d813.entry.js} +1 -1
- package/dist/webcomponents/p-16fc16aa.entry.js +1 -0
- package/dist/webcomponents/{p-d1248039.entry.js → p-18afa159.entry.js} +1 -1
- package/dist/webcomponents/p-1ab798f4.entry.js +1 -0
- package/dist/webcomponents/p-1c44712a.entry.js +1 -0
- package/dist/webcomponents/{p-b4a7307b.entry.js → p-32a782c8.entry.js} +1 -1
- package/dist/webcomponents/p-366c49b6.entry.js +1 -0
- package/dist/webcomponents/{p-c63825d8.entry.js → p-3fbbdbba.entry.js} +1 -1
- package/dist/webcomponents/p-4422ca71.entry.js +1 -0
- package/dist/webcomponents/{p-f4a8215b.entry.js → p-5f10b3e9.entry.js} +1 -1
- package/dist/webcomponents/{p-e7d6609d.js → p-74822344.js} +1 -1
- package/dist/webcomponents/{p-56bda985.js → p-7fea661a.js} +1 -1
- package/dist/webcomponents/{p-2de65000.entry.js → p-84987cd4.entry.js} +1 -1
- package/dist/webcomponents/p-8e228e5a.js +1 -0
- package/dist/webcomponents/{p-52ca72cd.entry.js → p-8f26db63.entry.js} +1 -1
- package/dist/webcomponents/p-b16269d7.js +1 -0
- package/dist/webcomponents/p-bba131f9.entry.js +1 -0
- package/dist/webcomponents/{p-dae9b10e.entry.js → p-c4df0098.entry.js} +1 -1
- package/dist/webcomponents/{p-04d12939.entry.js → p-c8b2f11d.entry.js} +1 -1
- package/dist/webcomponents/{p-24392a86.entry.js → p-d5cd727b.entry.js} +1 -1
- package/dist/webcomponents/{p-b0686897.entry.js → p-e07d5e0f.entry.js} +1 -1
- package/dist/webcomponents/{p-0b686ada.entry.js → p-eee24bb2.entry.js} +1 -1
- package/dist/webcomponents/{p-c1cf7d5b.js → p-fb2005de.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-0ac35b39.entry.js +0 -1
- package/dist/webcomponents/p-0c79e368.entry.js +0 -1
- package/dist/webcomponents/p-9bd13e22.js +0 -1
- package/dist/webcomponents/p-a2be972d.entry.js +0 -1
- package/dist/webcomponents/p-b1aacd6b.entry.js +0 -1
- package/dist/webcomponents/p-cb79f06c.entry.js +0 -1
- package/dist/webcomponents/p-ec7e69eb.entry.js +0 -1
|
@@ -7,11 +7,11 @@ import { l as loadFontsOnParent } from './utils-3daada24.js';
|
|
|
7
7
|
import { c as config } from './config-27764a9d.js';
|
|
8
8
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
9
9
|
import { g as getErrorMessage } from './utils-b10dae27.js';
|
|
10
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
10
|
+
import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
|
|
11
11
|
import { B as Button } from './button-34e75e0f.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host-e0ddb759.js';
|
|
13
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
14
|
-
import './package-
|
|
13
|
+
import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
|
|
14
|
+
import './package-6c5cc174.js';
|
|
15
15
|
import './Api-391d00e2.js';
|
|
16
16
|
|
|
17
17
|
const paymentFormCss = ":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
2
|
+
import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
|
|
3
3
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
4
4
|
import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-0635eff7.js';
|
|
5
5
|
import { B as BusinessService } from './business.service-97a3da69.js';
|
|
6
6
|
import { c as config } from './config-27764a9d.js';
|
|
7
7
|
import { A as Api } from './Api-391d00e2.js';
|
|
8
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
9
|
-
import './package-
|
|
8
|
+
import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
|
|
9
|
+
import './package-6c5cc174.js';
|
|
10
10
|
import './utils-b10dae27.js';
|
|
11
11
|
|
|
12
12
|
class ProvisionService {
|
|
@@ -6,13 +6,13 @@ import { P as Payment } from './Payment-30790721.js';
|
|
|
6
6
|
import './SubAccount-7f7e4c56.js';
|
|
7
7
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
10
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
|
|
10
|
+
import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
|
|
11
11
|
import { c as config } from './config-27764a9d.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host-e0ddb759.js';
|
|
13
13
|
import { t as tableExportedParts } from './exported-parts-70e7a12b.js';
|
|
14
14
|
import './Api-391d00e2.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-6c5cc174.js';
|
|
16
16
|
|
|
17
17
|
const makeGetPayments = ({ id, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError }) => {
|
|
18
18
|
var _a, _b;
|
|
@@ -7,11 +7,11 @@ import { P as Payout } from './SubAccount-7f7e4c56.js';
|
|
|
7
7
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
9
9
|
import { E as ErrorState } from './utils-218275b7.js';
|
|
10
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
11
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
10
|
+
import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
|
|
11
|
+
import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
|
|
12
12
|
import './Api-391d00e2.js';
|
|
13
13
|
import './config-27764a9d.js';
|
|
14
|
-
import './package-
|
|
14
|
+
import './package-6c5cc174.js';
|
|
15
15
|
|
|
16
16
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
17
17
|
var _a;
|
|
@@ -7,12 +7,12 @@ import './Payment-30790721.js';
|
|
|
7
7
|
import { P as Payout } from './SubAccount-7f7e4c56.js';
|
|
8
8
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
9
9
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
10
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
11
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
10
|
+
import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
|
|
11
|
+
import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host-e0ddb759.js';
|
|
13
13
|
import './Api-391d00e2.js';
|
|
14
14
|
import './config-27764a9d.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-6c5cc174.js';
|
|
16
16
|
|
|
17
17
|
const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
18
18
|
var _a, _b;
|
|
@@ -7,9 +7,9 @@ import './SubAccount-7f7e4c56.js';
|
|
|
7
7
|
import { c as config } from './config-27764a9d.js';
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
9
9
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
10
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
11
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
12
|
-
import './package-
|
|
10
|
+
import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
|
|
11
|
+
import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
|
|
12
|
+
import './package-6c5cc174.js';
|
|
13
13
|
|
|
14
14
|
class InsuranceService {
|
|
15
15
|
async fetchQuote(authToken, payload) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
3
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
4
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
3
|
+
import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
|
|
4
|
+
import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
|
|
5
5
|
import { c as config } from './config-27764a9d.js';
|
|
6
6
|
import { A as Api } from './Api-391d00e2.js';
|
|
7
7
|
import './Checkout-0b4086f8.js';
|
|
@@ -12,7 +12,8 @@ import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
|
12
12
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-16c8ce40.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host-e0ddb759.js';
|
|
14
14
|
import { t as tableExportedParts } from './exported-parts-70e7a12b.js';
|
|
15
|
-
import './
|
|
15
|
+
import { d as defaultColumnsKeys } from './terminals-table-059c473e.js';
|
|
16
|
+
import './package-6c5cc174.js';
|
|
16
17
|
|
|
17
18
|
class TerminalService {
|
|
18
19
|
async fetchTerminals(accountId, authToken, params, apiOrigin) {
|
|
@@ -76,7 +77,7 @@ const TerminalsList = class {
|
|
|
76
77
|
this.accountId = undefined;
|
|
77
78
|
this.authToken = undefined;
|
|
78
79
|
this.apiOrigin = config.proxyApiOrigin;
|
|
79
|
-
this.columns =
|
|
80
|
+
this.columns = defaultColumnsKeys;
|
|
80
81
|
}
|
|
81
82
|
componentWillLoad() {
|
|
82
83
|
checkPkgVersion();
|
|
@@ -122,7 +123,7 @@ const TerminalsList = class {
|
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
render() {
|
|
125
|
-
return (h(StyledHost, { key: '
|
|
126
|
+
return (h(StyledHost, { key: '8ffe95f21b5ef8c1c15fc0e22a9c824cff758ee6', exportparts: tableExportedParts }, h("terminals-list-core", { key: 'a550f1f85b84f6cc06bd93b5e5a9ec726b72b46c', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
126
127
|
}
|
|
127
128
|
static get watchers() { return {
|
|
128
129
|
"accountId": ["propChanged"],
|
|
@@ -2,9 +2,9 @@ import { r as registerInstance, c as createEvent, h } from './index-57431c24.js'
|
|
|
2
2
|
import { B as Button } from './button-34e75e0f.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host-e0ddb759.js';
|
|
4
4
|
import { C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
5
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
6
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
7
|
-
import './package-
|
|
5
|
+
import { c as checkPkgVersion } from './check-pkg-version-ed46fa3b.js';
|
|
6
|
+
import { J as JustifiAnalytics } from './Analytics-a46c0c00.js';
|
|
7
|
+
import './package-6c5cc174.js';
|
|
8
8
|
import './config-27764a9d.js';
|
|
9
9
|
import './Api-391d00e2.js';
|
|
10
10
|
|
|
@@ -7,6 +7,9 @@ class Table {
|
|
|
7
7
|
return this.columnKeys.map((key) => this.tableCells[key](checkout[key]));
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
|
+
set collectionData(collection) {
|
|
11
|
+
this.collection = collection;
|
|
12
|
+
}
|
|
10
13
|
constructor(collection, columns, tableColumns, tableCells) {
|
|
11
14
|
this.columnKeys = columns.split(',');
|
|
12
15
|
this.collection = collection;
|
|
@@ -1,36 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import './Checkout-0b4086f8.js';
|
|
3
3
|
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
4
4
|
import './Payment-30790721.js';
|
|
5
5
|
import './SubAccount-7f7e4c56.js';
|
|
6
6
|
import { T as TableLoadingState, a as TableEmptyState, b as TableErrorState } from './table-loading-state-356c7215.js';
|
|
7
7
|
import { o as onFilterChange } from './utils-3a4d8f3a.js';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const MapTerminalStatusToBadge = (status) => {
|
|
11
|
-
switch (status) {
|
|
12
|
-
case 'connected':
|
|
13
|
-
return "<span class='badge bg-success' title='This terminal is connected.'>Connected</span>";
|
|
14
|
-
case 'disconnected':
|
|
15
|
-
return "<span class='badge bg-danger' title='This terminal is disconnected.'>Disconnected</span>";
|
|
16
|
-
case 'unknown':
|
|
17
|
-
return "<span class='badge bg-secondary' title='The status of this terminal is unknown'>Unknown</span>";
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const defaultColumnsKeys = 'nickname,provider_id,status';
|
|
22
|
-
const terminalTableColumns = {
|
|
23
|
-
nickname: () => (h("th", { part: "table-head-cell", scope: "col", title: "The nickname associated with the terminal" }, "Nickname")),
|
|
24
|
-
provider_id: () => (h("th", { part: "table-head-cell", scope: "col", title: "The provider ID of the terminal" }, "Provider ID")),
|
|
25
|
-
sub_account_name: () => (h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the terminal" }, "Sub Account")),
|
|
26
|
-
status: () => (h("th", { part: "table-head-cell", scope: "col", title: "The current status of each terminal" }, "Status")),
|
|
27
|
-
};
|
|
28
|
-
const terminalTableCells = {
|
|
29
|
-
nickname: (value) => (h("td", null, value)),
|
|
30
|
-
provider_id: (value) => (h("td", null, value)),
|
|
31
|
-
sub_account_name: (value) => (h("td", null, value)),
|
|
32
|
-
status: (value) => (h("td", { innerHTML: MapTerminalStatusToBadge(value) })),
|
|
33
|
-
};
|
|
8
|
+
import { t as terminalTableColumns, a as terminalTableCells } from './terminals-table-059c473e.js';
|
|
9
|
+
import { T as Table } from './table-5da154e7.js';
|
|
34
10
|
|
|
35
11
|
const TerminalsListCore = class {
|
|
36
12
|
constructor(hostRef) {
|
|
@@ -63,9 +39,9 @@ const TerminalsListCore = class {
|
|
|
63
39
|
};
|
|
64
40
|
this.getTerminals = undefined;
|
|
65
41
|
this.getSubAccounts = undefined;
|
|
66
|
-
this.columns =
|
|
42
|
+
this.columns = undefined;
|
|
67
43
|
this.terminals = [];
|
|
68
|
-
this.terminalsTable =
|
|
44
|
+
this.terminalsTable = undefined;
|
|
69
45
|
this.subAccounts = [];
|
|
70
46
|
this.loading = true;
|
|
71
47
|
this.errorMessage = undefined;
|
|
@@ -76,6 +52,7 @@ const TerminalsListCore = class {
|
|
|
76
52
|
this.fetchTerminals();
|
|
77
53
|
}
|
|
78
54
|
componentWillLoad() {
|
|
55
|
+
this.terminalsTable = new Table(this.terminals, this.columns, terminalTableColumns, terminalTableCells);
|
|
79
56
|
if (this.getTerminals && this.getSubAccounts) {
|
|
80
57
|
this.fetchTerminals();
|
|
81
58
|
}
|
|
@@ -87,7 +64,7 @@ const TerminalsListCore = class {
|
|
|
87
64
|
onSuccess: async ({ terminals, pagingInfo }) => {
|
|
88
65
|
this.terminals = terminals;
|
|
89
66
|
this.paging = pagingInfo;
|
|
90
|
-
this.terminalsTable =
|
|
67
|
+
this.terminalsTable.collectionData = this.terminals;
|
|
91
68
|
const shouldFetchSubAccounts = this.terminalsTable.columnKeys.includes('sub_account_name');
|
|
92
69
|
if (shouldFetchSubAccounts) {
|
|
93
70
|
await this.fetchSubAccounts();
|
|
@@ -149,7 +126,7 @@ const TerminalsListCore = class {
|
|
|
149
126
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
150
127
|
}
|
|
151
128
|
render() {
|
|
152
|
-
return (h("div", { key: '
|
|
129
|
+
return (h("div", { key: '7f8bc3f39c1250281c2f2ad6fe081fc71bb20e79' }, h("terminals-list-filters", { key: 'd1184427fc74d970bd69d56a00d0ef4b7672516b', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '582e37429a153cd17bf3c7ebb16e7330c774f986', class: "table-wrapper" }, h("table", { key: '1c03b2ddc8ca2da6b1f2147113f7832b3f27ec1d', class: "table table-hover" }, h("thead", { key: '811d48219cc04256f4a37854504252ff53392bd9', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: 'fafa54ac3abba993dcf38ca2e47f248031226041', class: "table-light text-nowrap", part: "table-head-row" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '8c9072bf6ebb7f720f1fad0faa47c72c8ed84dd2', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'abddb3ce09e39245c0455893f09e54cc631b26bf', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '166a461ee8aaf7405fc0a2b12cd17e1e1e9553f3', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '969bbfcce66b6bcee4dadabe465eaef37022d13b', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'c63268c11facddaa44452c58743ad9c03f492898', class: "sticky-bottom" }, h("tr", { key: '0e247f8968ad4ed7e8c001354b1c29d5bf7976aa', class: "table-light align-middle" }, h("td", { key: '51c5157453d911f5bf370ba2ac6a556dd1592f24', part: "pagination-bar", colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '3a3ba65f31099125e9c01bc9c8c001c6437ed720', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
153
130
|
}
|
|
154
131
|
static get watchers() { return {
|
|
155
132
|
"params": ["updateOnPropChange"],
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { h } from './index-57431c24.js';
|
|
2
|
+
|
|
3
|
+
const MapTerminalStatusToBadge = (status) => {
|
|
4
|
+
switch (status) {
|
|
5
|
+
case 'connected':
|
|
6
|
+
return "<span class='badge bg-success' title='This terminal is connected.'>Connected</span>";
|
|
7
|
+
case 'disconnected':
|
|
8
|
+
return "<span class='badge bg-danger' title='This terminal is disconnected.'>Disconnected</span>";
|
|
9
|
+
case 'unknown':
|
|
10
|
+
return "<span class='badge bg-secondary' title='The status of this terminal is unknown'>Unknown</span>";
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const defaultColumnsKeys = 'nickname,provider_id,status';
|
|
15
|
+
const terminalTableColumns = {
|
|
16
|
+
nickname: () => (h("th", { part: "table-head-cell", scope: "col", title: "The nickname associated with the terminal" }, "Nickname")),
|
|
17
|
+
provider_id: () => (h("th", { part: "table-head-cell", scope: "col", title: "The provider ID of the terminal" }, "Provider ID")),
|
|
18
|
+
sub_account_name: () => (h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the terminal" }, "Sub Account")),
|
|
19
|
+
status: () => (h("th", { part: "table-head-cell", scope: "col", title: "The current status of each terminal" }, "Status")),
|
|
20
|
+
};
|
|
21
|
+
const terminalTableCells = {
|
|
22
|
+
nickname: (value) => (h("td", null, value)),
|
|
23
|
+
provider_id: (value) => (h("td", null, value)),
|
|
24
|
+
sub_account_name: (value) => (h("td", null, value)),
|
|
25
|
+
status: (value) => (h("td", { innerHTML: MapTerminalStatusToBadge(value) })),
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { terminalTableCells as a, defaultColumnsKeys as d, terminalTableColumns as t };
|
|
@@ -85,9 +85,9 @@ const CheckoutsListCore = /*@__PURE__*/ proxyCustomElement(class CheckoutsListCo
|
|
|
85
85
|
};
|
|
86
86
|
this.getCheckouts = undefined;
|
|
87
87
|
this.getSubAccounts = undefined;
|
|
88
|
-
this.columns =
|
|
88
|
+
this.columns = undefined;
|
|
89
89
|
this.checkouts = [];
|
|
90
|
-
this.checkoutsTable =
|
|
90
|
+
this.checkoutsTable = undefined;
|
|
91
91
|
this.subAccounts = [];
|
|
92
92
|
this.loading = true;
|
|
93
93
|
this.errorMessage = undefined;
|
|
@@ -98,6 +98,7 @@ const CheckoutsListCore = /*@__PURE__*/ proxyCustomElement(class CheckoutsListCo
|
|
|
98
98
|
this.fetchCheckouts();
|
|
99
99
|
}
|
|
100
100
|
componentWillLoad() {
|
|
101
|
+
this.checkoutsTable = new Table(this.checkouts, this.columns, checkoutTableColumns, checkoutTableCells);
|
|
101
102
|
if (this.getCheckouts && this.getSubAccounts) {
|
|
102
103
|
this.fetchCheckouts();
|
|
103
104
|
}
|
|
@@ -109,7 +110,7 @@ const CheckoutsListCore = /*@__PURE__*/ proxyCustomElement(class CheckoutsListCo
|
|
|
109
110
|
onSuccess: async ({ checkouts, pagingInfo }) => {
|
|
110
111
|
this.checkouts = checkouts;
|
|
111
112
|
this.paging = pagingInfo;
|
|
112
|
-
this.checkoutsTable =
|
|
113
|
+
this.checkoutsTable.collectionData = this.checkouts;
|
|
113
114
|
const shouldFetchSubAccounts = this.checkoutsTable.columnKeys.includes('sub_account_name');
|
|
114
115
|
if (shouldFetchSubAccounts) {
|
|
115
116
|
await this.fetchSubAccounts();
|
|
@@ -171,7 +172,7 @@ const CheckoutsListCore = /*@__PURE__*/ proxyCustomElement(class CheckoutsListCo
|
|
|
171
172
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
172
173
|
}
|
|
173
174
|
render() {
|
|
174
|
-
return (h("div", { key: '
|
|
175
|
+
return (h("div", { key: '8d2c1fd960b2b3a66f3a1bf648b75576ad2e8857' }, h("checkouts-list-filters", { key: '18ba9bf560499112f71a690da751c8e3c4d345a7', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '12cf6ee2912ac6a9518634ebd470dac5f7623aff', class: "table-wrapper" }, h("table", { key: '1ea2c118d7efb620dc1f39db55a510a8a473cb31', class: "table table-hover" }, h("thead", { key: '5e334a090be56c82b11ae7584bdf4014cc8743c7', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '233137a8b4e30bac28ded78010199bfecd0ac4e7', class: "table-light text-nowrap", part: "table-head-row" }, this.checkoutsTable.columnData.map((column) => column))), h("tbody", { key: 'd4ed9d4bf3ac17d4dc7294b875734e02996c7444', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'a7afbb627c768139af4244da5c12fae493dceafb', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '802c43c8da770bca9a249a88d115901e9b14e102', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'f1cd197cf7d1d5d81868a5abfafa40df762ca3c8', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'f0c367854322c341515bc481159101e9659117c7', class: "sticky-bottom" }, h("tr", { key: '88bc665c23665eddc4c88d27acc8c8f1cb39e277', class: "table-light align-middle" }, h("td", { key: '8be265c9b43033cfd3e2c4b3f12ac6d6c104e53d', part: "pagination-bar", colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '6abdb6091b78e58ec71ac6bf66f278ed9b6542fb', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
175
176
|
}
|
|
176
177
|
static get watchers() { return {
|
|
177
178
|
"params": ["updateOnPropChange"],
|
|
@@ -246,4 +247,4 @@ function defineCustomElement() {
|
|
|
246
247
|
}
|
|
247
248
|
defineCustomElement();
|
|
248
249
|
|
|
249
|
-
export { CheckoutsListCore as C, defineCustomElement as d };
|
|
250
|
+
export { CheckoutsListCore as C, defaultColumnsKeys as a, defineCustomElement as d };
|
|
@@ -12,7 +12,7 @@ import { C as CheckoutService } from './checkout.service.js';
|
|
|
12
12
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host.js';
|
|
14
14
|
import { t as tableExportedParts } from './exported-parts.js';
|
|
15
|
-
import { d as defineCustomElement$9 } from './checkouts-list-core2.js';
|
|
15
|
+
import { d as defineCustomElement$9, a as defaultColumnsKeys } from './checkouts-list-core2.js';
|
|
16
16
|
import { d as defineCustomElement$8 } from './checkouts-list-filters2.js';
|
|
17
17
|
import { d as defineCustomElement$7 } from './custom-popper2.js';
|
|
18
18
|
import { d as defineCustomElement$6 } from './form-control-error-text2.js';
|
|
@@ -66,7 +66,7 @@ const CheckoutsList = /*@__PURE__*/ proxyCustomElement(class CheckoutsList exten
|
|
|
66
66
|
this.accountId = undefined;
|
|
67
67
|
this.authToken = undefined;
|
|
68
68
|
this.apiOrigin = config.proxyApiOrigin;
|
|
69
|
-
this.columns =
|
|
69
|
+
this.columns = defaultColumnsKeys;
|
|
70
70
|
}
|
|
71
71
|
componentWillLoad() {
|
|
72
72
|
checkPkgVersion();
|
|
@@ -112,7 +112,7 @@ const CheckoutsList = /*@__PURE__*/ proxyCustomElement(class CheckoutsList exten
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
render() {
|
|
115
|
-
return (h(StyledHost, { key: '
|
|
115
|
+
return (h(StyledHost, { key: '6e6faed5df0fcdc48018650867672c5d325d1934', exportparts: tableExportedParts }, h("checkouts-list-core", { key: '92ceb10f7bd76864629ed0990a7f34fab76ce517', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
116
116
|
}
|
|
117
117
|
static get watchers() { return {
|
|
118
118
|
"accountId": ["propChanged"],
|
|
@@ -12,6 +12,7 @@ import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
|
|
|
12
12
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host.js';
|
|
14
14
|
import { t as tableExportedParts } from './exported-parts.js';
|
|
15
|
+
import { d as defineCustomElement$3, a as defaultColumnsKeys } from './terminals-list-core2.js';
|
|
15
16
|
import { d as defineCustomElement$a } from './custom-popper2.js';
|
|
16
17
|
import { d as defineCustomElement$9 } from './form-control-error-text2.js';
|
|
17
18
|
import { d as defineCustomElement$8 } from './form-control-select2.js';
|
|
@@ -19,7 +20,6 @@ import { d as defineCustomElement$7 } from './form-control-text2.js';
|
|
|
19
20
|
import { d as defineCustomElement$6 } from './form-control-tooltip2.js';
|
|
20
21
|
import { d as defineCustomElement$5 } from './pagination-menu2.js';
|
|
21
22
|
import { d as defineCustomElement$4 } from './table-filters-menu2.js';
|
|
22
|
-
import { d as defineCustomElement$3 } from './terminals-list-core2.js';
|
|
23
23
|
import { d as defineCustomElement$2 } from './terminals-list-filters2.js';
|
|
24
24
|
|
|
25
25
|
class TerminalService {
|
|
@@ -86,7 +86,7 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
|
|
|
86
86
|
this.accountId = undefined;
|
|
87
87
|
this.authToken = undefined;
|
|
88
88
|
this.apiOrigin = config.proxyApiOrigin;
|
|
89
|
-
this.columns =
|
|
89
|
+
this.columns = defaultColumnsKeys;
|
|
90
90
|
}
|
|
91
91
|
componentWillLoad() {
|
|
92
92
|
checkPkgVersion();
|
|
@@ -132,7 +132,7 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
|
-
return (h(StyledHost, { key: '
|
|
135
|
+
return (h(StyledHost, { key: '8ffe95f21b5ef8c1c15fc0e22a9c824cff758ee6', exportparts: tableExportedParts }, h("terminals-list-core", { key: 'a550f1f85b84f6cc06bd93b5e5a9ec726b72b46c', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
136
136
|
}
|
|
137
137
|
static get watchers() { return {
|
|
138
138
|
"accountId": ["propChanged"],
|
package/dist/module/package.js
CHANGED
package/dist/module/table.js
CHANGED
|
@@ -7,6 +7,9 @@ class Table {
|
|
|
7
7
|
return this.columnKeys.map((key) => this.tableCells[key](checkout[key]));
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
|
+
set collectionData(collection) {
|
|
11
|
+
this.collection = collection;
|
|
12
|
+
}
|
|
10
13
|
constructor(collection, columns, tableColumns, tableCells) {
|
|
11
14
|
this.columnKeys = columns.split(',');
|
|
12
15
|
this.collection = collection;
|
|
@@ -71,9 +71,9 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
|
|
|
71
71
|
};
|
|
72
72
|
this.getTerminals = undefined;
|
|
73
73
|
this.getSubAccounts = undefined;
|
|
74
|
-
this.columns =
|
|
74
|
+
this.columns = undefined;
|
|
75
75
|
this.terminals = [];
|
|
76
|
-
this.terminalsTable =
|
|
76
|
+
this.terminalsTable = undefined;
|
|
77
77
|
this.subAccounts = [];
|
|
78
78
|
this.loading = true;
|
|
79
79
|
this.errorMessage = undefined;
|
|
@@ -84,6 +84,7 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
|
|
|
84
84
|
this.fetchTerminals();
|
|
85
85
|
}
|
|
86
86
|
componentWillLoad() {
|
|
87
|
+
this.terminalsTable = new Table(this.terminals, this.columns, terminalTableColumns, terminalTableCells);
|
|
87
88
|
if (this.getTerminals && this.getSubAccounts) {
|
|
88
89
|
this.fetchTerminals();
|
|
89
90
|
}
|
|
@@ -95,7 +96,7 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
|
|
|
95
96
|
onSuccess: async ({ terminals, pagingInfo }) => {
|
|
96
97
|
this.terminals = terminals;
|
|
97
98
|
this.paging = pagingInfo;
|
|
98
|
-
this.terminalsTable =
|
|
99
|
+
this.terminalsTable.collectionData = this.terminals;
|
|
99
100
|
const shouldFetchSubAccounts = this.terminalsTable.columnKeys.includes('sub_account_name');
|
|
100
101
|
if (shouldFetchSubAccounts) {
|
|
101
102
|
await this.fetchSubAccounts();
|
|
@@ -157,7 +158,7 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
|
|
|
157
158
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
158
159
|
}
|
|
159
160
|
render() {
|
|
160
|
-
return (h("div", { key: '
|
|
161
|
+
return (h("div", { key: '7f8bc3f39c1250281c2f2ad6fe081fc71bb20e79' }, h("terminals-list-filters", { key: 'd1184427fc74d970bd69d56a00d0ef4b7672516b', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '582e37429a153cd17bf3c7ebb16e7330c774f986', class: "table-wrapper" }, h("table", { key: '1c03b2ddc8ca2da6b1f2147113f7832b3f27ec1d', class: "table table-hover" }, h("thead", { key: '811d48219cc04256f4a37854504252ff53392bd9', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: 'fafa54ac3abba993dcf38ca2e47f248031226041', class: "table-light text-nowrap", part: "table-head-row" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '8c9072bf6ebb7f720f1fad0faa47c72c8ed84dd2', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'abddb3ce09e39245c0455893f09e54cc631b26bf', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '166a461ee8aaf7405fc0a2b12cd17e1e1e9553f3', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '969bbfcce66b6bcee4dadabe465eaef37022d13b', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'c63268c11facddaa44452c58743ad9c03f492898', class: "sticky-bottom" }, h("tr", { key: '0e247f8968ad4ed7e8c001354b1c29d5bf7976aa', class: "table-light align-middle" }, h("td", { key: '51c5157453d911f5bf370ba2ac6a556dd1592f24', part: "pagination-bar", colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '3a3ba65f31099125e9c01bc9c8c001c6437ed720', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
161
162
|
}
|
|
162
163
|
static get watchers() { return {
|
|
163
164
|
"params": ["updateOnPropChange"],
|
|
@@ -237,4 +238,4 @@ function defineCustomElement() {
|
|
|
237
238
|
}
|
|
238
239
|
defineCustomElement();
|
|
239
240
|
|
|
240
|
-
export { TerminalsListCore as T, defineCustomElement as d };
|
|
241
|
+
export { TerminalsListCore as T, defaultColumnsKeys as a, defineCustomElement as d };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./p-fad19d75.js";import{f as t,a,b as c}from"./p-a8f22d4d.js";const s=e=>{switch(e){case"created":return"<span class='badge bg-primary' title='The checkout has been created'>Created</span>";case"completed":return"<span class='badge bg-success' title='The checkout has been completed'>Completed</span>";case"attempted":return"<span class='badge bg-secondary' title='The checkout has been attempted'>Attempted</span>";case"expired":return"<span class='badge bg-danger' title='The checkout has expired'>Expired</span>"}},o="created_at,payment_amount,payment_description,payment_mode,status",l={created_at:()=>e("th",{part:"table-head-cell",scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>e("th",{part:"table-head-cell",scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>e("th",{part:"table-head-cell",scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>e("th",{part:"table-head-cell",scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>e("th",{part:"table-head-cell",scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>e("th",{part:"table-head-cell",scope:"col",title:"The current status of each checkout"},"Status")},n={created_at:c=>e("th",null,e("div",{class:"fw-bold"},a(c)," "),e("div",{class:"fw-bold"},t(c)," ")),payment_amount:t=>e("td",null,c(t,!0,!0)," "),payment_description:t=>e("td",null,t),sub_account_name:t=>e("td",null,t),payment_mode:t=>e("td",null,t),status:t=>e("td",{innerHTML:s(t)})};export{n as a,l as c,o as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as r}from"./p-fad19d75.js";import{t as i}from"./p-6cc30da2.js";import{m as o,P as e}from"./p-47dbe17d.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-7fec2bcb.js";import{P as a}from"./p-9f56ad71.js";import{C as c,a as
|
|
1
|
+
import{r as t,c as s,h as r}from"./p-fad19d75.js";import{t as i}from"./p-6cc30da2.js";import{m as o,P as e}from"./p-47dbe17d.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-7fec2bcb.js";import{P as a}from"./p-9f56ad71.js";import{C as c,a as p}from"./p-14c91ffd.js";import{g as d,a as n}from"./p-8115b2f4.js";import{J as h}from"./p-7fea661a.js";import{c as m}from"./p-74822344.js";import{S as u}from"./p-74da98da.js";import"./p-0e180654.js";import"./p-5a62fca2.js";import"./p-fb2005de.js";const f=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayouts=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){m(),this.analytics=new h(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new e};this.getPayouts=(({id:t,authToken:s,service:r})=>async({params:i,onSuccess:o,onError:e})=>{var p,h;try{const m=await r.fetchPayouts(t,s,i);if(m.error)return e({error:d(m.error),code:n(null===(h=m.error)||void 0===h?void 0:h.code),severity:c.ERROR});{const t=Object.assign({},m.page_info);o({payouts:(null===(p=m.data)||void 0===p?void 0:p.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){return e({error:d(t),code:n(null==t?void 0:t.code),severity:c.ERROR})}})(t),this.getPayoutCSV=o(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:"Account ID and Auth Token are required"})}render(){return r(u,{key:"8d72aa16705df76ed49a13a59e88a40a75c23488",exportedparts:i},r("payouts-list-core",{key:"94428c879981bbc036e1d4f6c59c1e1c1146c824",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleOnError}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as a}from"./p-fad19d75.js";import{c as o}from"./p-5a62fca2.js";import{J as r}from"./p-
|
|
1
|
+
import{r as e,c as t,h as a}from"./p-fad19d75.js";import{c as o}from"./p-5a62fca2.js";import{J as r}from"./p-7fea661a.js";import"./p-fb2005de.js";import"./p-0e180654.js";const i=class{constructor(a){e(this,a),this.bankAccountFormReady=t(this,"bankAccountFormReady",7),this.ready=t(this,"ready",7),this.bankAccountFormTokenized=t(this,"bankAccountFormTokenize",7),this.bankAccountFormValidated=t(this,"bankAccountFormValidate",7),this.validationMode=void 0,this.iframeOrigin=o.iframeOrigin,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'bankAccountFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.bankAccountFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'bankAccountFormTokenized' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.bankAccountFormTokenized.emit(e)}validateHandler(e){console.warn("The 'bankAccountFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.bankAccountFormValidated.emit(e)}componentWillLoad(){this.analytics=new r(this)}disconnectedCallback(){this.analytics.cleanup()}async tokenize(...e){if(!this.childRef)throw new Error("Cannot call tokenize");return this.childRef.tokenize(...e)}async validate(){if(!this.childRef)throw new Error("Cannot call validate");return this.childRef.validate()}async resize(){if(console.warn("The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach."),!this.childRef)throw new Error("Cannot call validate");return this.childRef.resize()}render(){return a("justifi-payment-method-form",{key:"e2fa64d199a6c550329c9797a6951335e7c12bc6",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"bankAccount","payment-method-form-ready":this.bankAccountFormReady,"payment-method-form-validated":this.bankAccountFormValidated,"payment-method-form-tokenize":this.bankAccountFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{i as justifi_bank_account_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t,H as r}from"./p-fad19d75.js";import{E as e}from"./p-a8b4f429.js";import{B as o}from"./p-f6f8dabc.js";import{B as a}from"./p-5e7c60d8.js";import{C as n,a as p}from"./p-14c91ffd.js";import{g as d,a as c}from"./p-8115b2f4.js";import{J as h}from"./p-7fea661a.js";import{c as f}from"./p-74822344.js";import"./p-5a62fca2.js";import"./p-0e180654.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-fb2005de.js";const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){f(),this.analytics=new h(this),this.initializeGetBusiness()}disconnectedCallback(){this.analytics.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR});this.getBusiness=(({id:s,authToken:i,service:t})=>async({onSuccess:r,onError:e})=>{var o;try{const p=await t.fetchBusiness(s,i);if(p.error)return e({error:d(p.error),code:c(null===(o=p.error)||void 0===o?void 0:o.code),severity:n.ERROR});r({business:new a(p.data)})}catch(s){const i=c(null==s?void 0:s.code);return e({error:s.message||s,code:i,severity:n.ERROR})}})({id:this.businessId,authToken:this.authToken,service:new o})}render(){return t(r,null,this.errorMessage?e(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{m as justifi_business_details}
|