@justifi/webcomponents 5.4.1 → 5.4.2
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/{Checkout-f10bed8c.js → Checkout-5352009d.js} +1 -1
- package/dist/cjs/{Payment-3f483b7a.js → Payment-bccd8f7d.js} +1 -1
- package/dist/cjs/{SubAccount-a27d4e9f.js → SubAccount-06f9030b.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-form_9.cjs.entry.js +2 -2
- package/dist/cjs/billing-form_3.cjs.entry.js +1 -1
- package/dist/cjs/{check-pkg-version-75cc34ca.js → check-pkg-version-15023e22.js} +1 -1
- package/dist/cjs/{checkout.service-61616349.js → checkout.service-ab658f38.js} +3 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{checkouts-table-14fcebd0.js → checkouts-table-8a1b49ff.js} +1 -1
- package/dist/cjs/{dispute.service-b68fdcc4.js → dispute.service-1494b42c.js} +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/{get-payout-csv-f0c04d96.js → get-payout-csv-4240b172.js} +3 -3
- package/dist/cjs/{get-subaccounts-330a9e85.js → get-subaccounts-fa8dc254.js} +3 -3
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +4 -4
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +7 -7
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +7 -7
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +6 -6
- package/dist/cjs/{package-459e93fd.js → package-868b01af.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-ff43bfc4.js → payment.service-97bef4f8.js} +3 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{payments-table-802d767d.js → payments-table-a076755a.js} +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{payouts-table-194a4343.js → payouts-table-aedce326.js} +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{terminal-orders-table-4df19497.js → terminal-orders-table-050e673f.js} +1 -1
- package/dist/cjs/{terminal.service-56397d88.js → terminal.service-0aac977d.js} +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{terminals-table-9b313566.js → terminals-table-6710a76c.js} +1 -1
- package/dist/cjs/{utils-54719fda.js → utils-4120664c.js} +13 -1
- package/dist/collection/components/order-terminals/order-terminals.js +3 -2
- package/dist/collection/utils/utils.js +12 -2
- package/dist/docs.json +1 -1
- package/dist/esm/{Checkout-ba139944.js → Checkout-18d8bf94.js} +1 -1
- package/dist/esm/{Payment-39bfdd06.js → Payment-806af354.js} +1 -1
- package/dist/esm/{SubAccount-68403637.js → SubAccount-837658ae.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +4 -4
- package/dist/esm/bank-account-form_9.entry.js +2 -2
- package/dist/esm/billing-form_3.entry.js +1 -1
- package/dist/esm/{check-pkg-version-b4d631be.js → check-pkg-version-a8dd8455.js} +1 -1
- package/dist/esm/{checkout.service-e59354cc.js → checkout.service-87cd501d.js} +3 -3
- package/dist/esm/checkouts-list-core.entry.js +5 -5
- package/dist/esm/{checkouts-table-58604210.js → checkouts-table-39a031a0.js} +1 -1
- package/dist/esm/{dispute.service-8312d46a.js → dispute.service-1f79929b.js} +3 -3
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/{get-payout-csv-74397995.js → get-payout-csv-6139c5fc.js} +3 -3
- package/dist/esm/{get-subaccounts-f8bd5c96.js → get-subaccounts-c4b2b829.js} +3 -3
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +4 -4
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-checkout-core.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +7 -7
- package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -4
- package/dist/esm/justifi-checkouts-list.entry.js +9 -9
- package/dist/esm/justifi-dispute-management.entry.js +7 -7
- package/dist/esm/justifi-dispute-notification_3.entry.js +7 -7
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +9 -9
- package/dist/esm/justifi-payment-details.entry.js +7 -7
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +8 -8
- package/dist/esm/justifi-payout-details.entry.js +7 -7
- package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +9 -9
- package/dist/esm/justifi-refund-payment.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +4 -4
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +4 -4
- package/dist/esm/justifi-terminals-list.entry.js +9 -9
- package/dist/esm/justifi-tokenize-payment-method.entry.js +6 -6
- package/dist/esm/{package-53180f2a.js → package-f0bb46fd.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +1 -1
- package/dist/esm/{payment.service-b9ec64c9.js → payment.service-bc99d372.js} +3 -3
- package/dist/esm/payments-list-core.entry.js +5 -5
- package/dist/esm/{payments-table-26054032.js → payments-table-8134f5e1.js} +1 -1
- package/dist/esm/payout-details-core.entry.js +1 -1
- package/dist/esm/payouts-list-core.entry.js +5 -5
- package/dist/esm/{payouts-table-7f31db9d.js → payouts-table-c1ced46a.js} +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +5 -5
- package/dist/esm/{terminal-orders-table-1f6156c9.js → terminal-orders-table-65d59323.js} +1 -1
- package/dist/esm/{terminal.service-fff19896.js → terminal.service-a8a968ac.js} +3 -3
- package/dist/esm/terminals-list-core.entry.js +5 -5
- package/dist/esm/{terminals-table-7d54e359.js → terminals-table-5eb287ca.js} +1 -1
- package/dist/esm/{utils-dc86cdde.js → utils-ec50661e.js} +13 -2
- package/dist/module/justifi-order-terminals.js +3 -2
- package/dist/module/justifi-payments-list-filters.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/utils2.js +13 -2
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/{p-59eef054.entry.js → p-0c7ec110.entry.js} +1 -1
- package/dist/webcomponents/{p-c4f8ed38.js → p-0d7d61ac.js} +1 -1
- package/dist/webcomponents/{p-bae35151.entry.js → p-0f0020e1.entry.js} +1 -1
- package/dist/webcomponents/{p-422948eb.js → p-1366a019.js} +1 -1
- package/dist/webcomponents/{p-745a577c.entry.js → p-13717638.entry.js} +1 -1
- package/dist/webcomponents/{p-4484aa3b.entry.js → p-14cfb25e.entry.js} +1 -1
- package/dist/webcomponents/{p-58476602.entry.js → p-150e80db.entry.js} +1 -1
- package/dist/webcomponents/{p-38900c29.entry.js → p-187d456b.entry.js} +1 -1
- package/dist/webcomponents/{p-43e225d2.entry.js → p-190ee091.entry.js} +1 -1
- package/dist/webcomponents/{p-0151a19f.entry.js → p-1da00a0c.entry.js} +1 -1
- package/dist/webcomponents/{p-1aa973c4.entry.js → p-25b82529.entry.js} +1 -1
- package/dist/webcomponents/{p-ba6fd830.entry.js → p-2819e94a.entry.js} +1 -1
- package/dist/webcomponents/{p-03c2261c.js → p-3da2652e.js} +1 -1
- package/dist/webcomponents/{p-4e010557.js → p-3f5e6602.js} +1 -1
- package/dist/webcomponents/p-431670c6.entry.js +1 -0
- package/dist/webcomponents/{p-7a6feb58.entry.js → p-45fda0bc.entry.js} +1 -1
- package/dist/webcomponents/{p-fc43d1c8.entry.js → p-507d8aa4.entry.js} +1 -1
- package/dist/webcomponents/{p-a1be025c.entry.js → p-536497fe.entry.js} +1 -1
- package/dist/webcomponents/{p-6d3611b6.entry.js → p-5bd1c32c.entry.js} +1 -1
- package/dist/webcomponents/{p-385d3637.entry.js → p-5c5c1e82.entry.js} +1 -1
- package/dist/webcomponents/{p-d70610de.entry.js → p-60ec062a.entry.js} +1 -1
- package/dist/webcomponents/p-6a594a9f.js +1 -0
- package/dist/webcomponents/{p-26a2e837.js → p-701a13ca.js} +1 -1
- package/dist/webcomponents/{p-a99525c5.js → p-72e71b3c.js} +1 -1
- package/dist/webcomponents/{p-5ae9faf6.entry.js → p-746894be.entry.js} +1 -1
- package/dist/webcomponents/{p-f247b169.entry.js → p-74711d79.entry.js} +1 -1
- package/dist/webcomponents/{p-6c79e7c3.entry.js → p-753d983c.entry.js} +1 -1
- package/dist/webcomponents/{p-00ae938e.entry.js → p-8c70396c.entry.js} +1 -1
- package/dist/webcomponents/{p-45f48dce.entry.js → p-90b82e40.entry.js} +1 -1
- package/dist/webcomponents/p-913e28d6.entry.js +1 -0
- package/dist/webcomponents/{p-4ef98c7a.js → p-953e9dba.js} +1 -1
- package/dist/webcomponents/p-96783edf.js +1 -0
- package/dist/webcomponents/{p-c8fa00fd.entry.js → p-96c23cda.entry.js} +1 -1
- package/dist/webcomponents/{p-cd5883b9.js → p-9c4e3bac.js} +1 -1
- package/dist/webcomponents/p-9e49cf17.js +1 -0
- package/dist/webcomponents/{p-d9b5140e.entry.js → p-a2d30370.entry.js} +1 -1
- package/dist/webcomponents/{p-942d5e8f.entry.js → p-a589b3a1.entry.js} +1 -1
- package/dist/webcomponents/{p-64443fc0.js → p-ac9f2e2b.js} +1 -1
- package/dist/webcomponents/{p-dbf21732.js → p-ae7edce5.js} +1 -1
- package/dist/webcomponents/{p-92e96b57.entry.js → p-af3315b5.entry.js} +1 -1
- package/dist/webcomponents/{p-ac40e667.js → p-b26fb429.js} +1 -1
- package/dist/webcomponents/{p-d903d838.entry.js → p-b299b597.entry.js} +1 -1
- package/dist/webcomponents/{p-bdbbee07.entry.js → p-b5c7cb4c.entry.js} +1 -1
- package/dist/webcomponents/{p-5efe6236.js → p-b99817a0.js} +1 -1
- package/dist/webcomponents/{p-ee539373.entry.js → p-c00ef77b.entry.js} +1 -1
- package/dist/webcomponents/p-c438d1c8.entry.js +1 -0
- package/dist/webcomponents/{p-80867635.entry.js → p-c7313123.entry.js} +1 -1
- package/dist/webcomponents/{p-a5b52c1d.js → p-ca6cdfe6.js} +1 -1
- package/dist/webcomponents/{p-ddb642a4.entry.js → p-cd93c62b.entry.js} +1 -1
- package/dist/webcomponents/p-cf9e893a.entry.js +1 -0
- package/dist/webcomponents/{p-d9dc15d4.entry.js → p-d86add24.entry.js} +1 -1
- package/dist/webcomponents/{p-bdcf3a3c.entry.js → p-dcff8139.entry.js} +1 -1
- package/dist/webcomponents/{p-ed9d22d5.entry.js → p-e309516a.entry.js} +1 -1
- package/dist/webcomponents/{p-b323bbde.entry.js → p-ebd814ab.entry.js} +1 -1
- package/dist/webcomponents/p-f0a56d96.entry.js +1 -0
- package/dist/webcomponents/{p-08b64251.js → p-f8fccf44.js} +1 -1
- package/dist/webcomponents/{p-df20bbb3.entry.js → p-fb2db8da.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-2c65389c.entry.js +0 -1
- package/dist/webcomponents/p-4fc263b2.js +0 -1
- package/dist/webcomponents/p-5b459422.entry.js +0 -1
- package/dist/webcomponents/p-ae9ef225.js +0 -1
- package/dist/webcomponents/p-c93d643b.js +0 -1
- package/dist/webcomponents/p-cedad1b6.entry.js +0 -1
- package/dist/webcomponents/p-d7bf921d.entry.js +0 -1
- package/dist/webcomponents/p-db973fa9.entry.js +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { A as Api } from './Api-52242eb0.js';
|
|
3
3
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
4
|
-
import './Checkout-
|
|
4
|
+
import './Checkout-18d8bf94.js';
|
|
5
5
|
import './Pagination-afc8f96d.js';
|
|
6
|
-
import './Payment-
|
|
7
|
-
import './SubAccount-
|
|
6
|
+
import './Payment-806af354.js';
|
|
7
|
+
import './SubAccount-837658ae.js';
|
|
8
8
|
import './Document-1907c0d4.js';
|
|
9
9
|
import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
11
|
-
import './utils-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-a8dd8455.js';
|
|
11
|
+
import './utils-ec50661e.js';
|
|
12
12
|
import './Dispute-5fd28ec9.js';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-f0bb46fd.js';
|
|
14
14
|
|
|
15
15
|
class InsuranceService {
|
|
16
16
|
async fetchQuote(authToken, payload) {
|
|
@@ -3,12 +3,12 @@ import { f as filterParams, p as propsParams, c as clearParams } from './termina
|
|
|
3
3
|
import { M as terminalOrdersListFilterMenu, N as orderStatusTerminalOrdersListFilterParam, O as orderTypeTerminalOrdersListFilterParam, P as createdAfterTerminalOrdersListFilterParam, Q as createdBeforeTerminalOrdersListFilterParam } from './parts-fd740f54.js';
|
|
4
4
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
5
5
|
import './ComponentError-c61dce41.js';
|
|
6
|
-
import './Checkout-
|
|
6
|
+
import './Checkout-18d8bf94.js';
|
|
7
7
|
import './Pagination-afc8f96d.js';
|
|
8
|
-
import './Payment-
|
|
9
|
-
import { c as TerminalOrderStatus, b as TerminalOrderType } from './SubAccount-
|
|
8
|
+
import './Payment-806af354.js';
|
|
9
|
+
import { c as TerminalOrderStatus, b as TerminalOrderType } from './SubAccount-837658ae.js';
|
|
10
10
|
import './Document-1907c0d4.js';
|
|
11
|
-
import {
|
|
11
|
+
import { e as convertToUTC, d as convertToLocal } from './utils-ec50661e.js';
|
|
12
12
|
import './index-a47fdc7f.js';
|
|
13
13
|
import './Dispute-5fd28ec9.js';
|
|
14
14
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
4
|
-
import { d as defaultColumnsKeys } from './terminal-orders-table-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-a8dd8455.js';
|
|
4
|
+
import { d as defaultColumnsKeys } from './terminal-orders-table-65d59323.js';
|
|
5
5
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
6
|
-
import './Checkout-
|
|
6
|
+
import './Checkout-18d8bf94.js';
|
|
7
7
|
import './Pagination-afc8f96d.js';
|
|
8
|
-
import './Payment-
|
|
9
|
-
import { a as TerminalOrder } from './SubAccount-
|
|
8
|
+
import './Payment-806af354.js';
|
|
9
|
+
import { a as TerminalOrder } from './SubAccount-837658ae.js';
|
|
10
10
|
import './Document-1907c0d4.js';
|
|
11
11
|
import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
|
|
12
12
|
import { A as Api } from './Api-52242eb0.js';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-f0bb46fd.js';
|
|
14
14
|
import './parts-fd740f54.js';
|
|
15
|
-
import './utils-
|
|
15
|
+
import './utils-ec50661e.js';
|
|
16
16
|
import './badge-1be14e8c.js';
|
|
17
17
|
import './Dispute-5fd28ec9.js';
|
|
18
18
|
|
|
@@ -4,13 +4,13 @@ import { f as filterParams, p as propsParams, c as clearParams } from './termina
|
|
|
4
4
|
import { R as terminalsListFilterMenu, S as terminalIdTerminalsListFilterParam, T as terminalOrderIdTerminalsListFilterParam, U as terminalStatusTerminalsListFilterParam } from './parts-fd740f54.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
6
6
|
import './ComponentError-c61dce41.js';
|
|
7
|
-
import './Checkout-
|
|
7
|
+
import './Checkout-18d8bf94.js';
|
|
8
8
|
import './Pagination-afc8f96d.js';
|
|
9
|
-
import './Payment-
|
|
10
|
-
import { I as ITerminalStatus } from './SubAccount-
|
|
9
|
+
import './Payment-806af354.js';
|
|
10
|
+
import { I as ITerminalStatus } from './SubAccount-837658ae.js';
|
|
11
11
|
import './Document-1907c0d4.js';
|
|
12
12
|
import './index-a47fdc7f.js';
|
|
13
|
-
import './utils-
|
|
13
|
+
import './utils-ec50661e.js';
|
|
14
14
|
import './Dispute-5fd28ec9.js';
|
|
15
15
|
|
|
16
16
|
const TerminalsListFilters = class {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
4
|
-
import { T as TerminalService } from './terminal.service-
|
|
5
|
-
import './Checkout-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-a8dd8455.js';
|
|
4
|
+
import { T as TerminalService } from './terminal.service-a8a968ac.js';
|
|
5
|
+
import './Checkout-18d8bf94.js';
|
|
6
6
|
import './Pagination-afc8f96d.js';
|
|
7
|
-
import './Payment-
|
|
8
|
-
import { d as Terminal } from './SubAccount-
|
|
7
|
+
import './Payment-806af354.js';
|
|
8
|
+
import { d as Terminal } from './SubAccount-837658ae.js';
|
|
9
9
|
import './Document-1907c0d4.js';
|
|
10
10
|
import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
|
|
11
|
-
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-
|
|
11
|
+
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-c4b2b829.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
13
|
-
import { d as defaultColumnsKeys } from './terminals-table-
|
|
14
|
-
import './package-
|
|
13
|
+
import { d as defaultColumnsKeys } from './terminals-table-5eb287ca.js';
|
|
14
|
+
import './package-f0bb46fd.js';
|
|
15
15
|
import './Api-52242eb0.js';
|
|
16
|
-
import './utils-
|
|
16
|
+
import './utils-ec50661e.js';
|
|
17
17
|
import './Dispute-5fd28ec9.js';
|
|
18
18
|
import './badge-1be14e8c.js';
|
|
19
19
|
import './parts-fd740f54.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { B as Button } from './button-fcee4da7.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host-32228b45.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-a8dd8455.js';
|
|
5
5
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
6
|
-
import './Checkout-
|
|
6
|
+
import './Checkout-18d8bf94.js';
|
|
7
7
|
import './Pagination-afc8f96d.js';
|
|
8
|
-
import './Payment-
|
|
9
|
-
import './SubAccount-
|
|
8
|
+
import './Payment-806af354.js';
|
|
9
|
+
import './SubAccount-837658ae.js';
|
|
10
10
|
import './Document-1907c0d4.js';
|
|
11
11
|
import './parts-fd740f54.js';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-f0bb46fd.js';
|
|
13
13
|
import './Api-52242eb0.js';
|
|
14
|
-
import './utils-
|
|
14
|
+
import './utils-ec50661e.js';
|
|
15
15
|
import './Dispute-5fd28ec9.js';
|
|
16
16
|
|
|
17
17
|
const TokenizePaymentMethod = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent } from './index-29fcfdf5.js';
|
|
2
|
-
import { b as formatDate, a as formatTime, s as snakeCaseToHumanReadable } from './utils-
|
|
2
|
+
import { b as formatDate, a as formatTime, s as snakeCaseToHumanReadable } from './utils-ec50661e.js';
|
|
3
3
|
import { M as MapPaymentStatusToBadge } from './payments-status-74d22728.js';
|
|
4
4
|
import { a as EntityHeadInfo, b as EntityHeadInfoItem, D as DetailSectionTitle, c as DetailItem, C as CodeBlock, E as ErrorState } from './utils-96d9c205.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as Api } from './Api-52242eb0.js';
|
|
2
2
|
import './ComponentError-c61dce41.js';
|
|
3
|
-
import './Checkout-
|
|
3
|
+
import './Checkout-18d8bf94.js';
|
|
4
4
|
import './Pagination-afc8f96d.js';
|
|
5
|
-
import './Payment-
|
|
6
|
-
import './SubAccount-
|
|
5
|
+
import './Payment-806af354.js';
|
|
6
|
+
import './SubAccount-837658ae.js';
|
|
7
7
|
import './Document-1907c0d4.js';
|
|
8
8
|
|
|
9
9
|
class PaymentService {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import './ComponentError-c61dce41.js';
|
|
3
|
-
import './Checkout-
|
|
3
|
+
import './Checkout-18d8bf94.js';
|
|
4
4
|
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
5
|
-
import './Payment-
|
|
6
|
-
import './SubAccount-
|
|
5
|
+
import './Payment-806af354.js';
|
|
6
|
+
import './SubAccount-837658ae.js';
|
|
7
7
|
import './Document-1907c0d4.js';
|
|
8
8
|
import { V as table, W as tableCell } from './parts-fd740f54.js';
|
|
9
9
|
import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types-1bc52f1f.js';
|
|
10
|
-
import { p as paymentTableColumns, a as paymentTableCells } from './payments-table-
|
|
10
|
+
import { p as paymentTableColumns, a as paymentTableCells } from './payments-table-8134f5e1.js';
|
|
11
11
|
import { o as onQueryParamsChange, g as getRequestParams } from './payments-list-params-state-d05b24aa.js';
|
|
12
|
-
import './utils-
|
|
12
|
+
import './utils-ec50661e.js';
|
|
13
13
|
import './Dispute-5fd28ec9.js';
|
|
14
14
|
import './spinner-27479716.js';
|
|
15
15
|
import './payments-status-74d22728.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-29fcfdf5.js';
|
|
2
2
|
import { M as MapPaymentStatusToBadge } from './payments-status-74d22728.js';
|
|
3
|
-
import {
|
|
3
|
+
import { d as convertToLocal } from './utils-ec50661e.js';
|
|
4
4
|
import { k as tableHeadCell, m as getAlternateTableCellPart } from './parts-fd740f54.js';
|
|
5
5
|
|
|
6
6
|
const defaultColumnsKeys = 'created_at,amount,status,payment_type,description,payers_name,last_four_digits';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent } from './index-29fcfdf5.js';
|
|
2
|
-
import { b as formatDate, a as formatTime } from './utils-
|
|
2
|
+
import { b as formatDate, a as formatTime } from './utils-ec50661e.js';
|
|
3
3
|
import { a as EntityHeadInfo, b as EntityHeadInfoItem, D as DetailSectionTitle, c as DetailItem, C as CodeBlock, E as ErrorState } from './utils-96d9c205.js';
|
|
4
4
|
import { B as Button } from './button-fcee4da7.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError-c61dce41.js';
|
|
3
|
-
import './Checkout-
|
|
3
|
+
import './Checkout-18d8bf94.js';
|
|
4
4
|
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
5
|
-
import './Payment-
|
|
6
|
-
import './SubAccount-
|
|
5
|
+
import './Payment-806af354.js';
|
|
6
|
+
import './SubAccount-837658ae.js';
|
|
7
7
|
import './Document-1907c0d4.js';
|
|
8
8
|
import { V as table, W as tableCell } from './parts-fd740f54.js';
|
|
9
9
|
import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types-1bc52f1f.js';
|
|
10
|
-
import { p as payoutTableColumns, a as payoutTableCells } from './payouts-table-
|
|
10
|
+
import { p as payoutTableColumns, a as payoutTableCells } from './payouts-table-c1ced46a.js';
|
|
11
11
|
import { o as onQueryParamsChange, g as getRequestParams } from './payouts-list-params-state-ebcee300.js';
|
|
12
|
-
import './utils-
|
|
12
|
+
import './utils-ec50661e.js';
|
|
13
13
|
import './Dispute-5fd28ec9.js';
|
|
14
14
|
import './spinner-27479716.js';
|
|
15
15
|
import './payouts-status-29d31099.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-29fcfdf5.js';
|
|
2
|
-
import {
|
|
2
|
+
import { d as convertToLocal } from './utils-ec50661e.js';
|
|
3
3
|
import { M as MapPayoutStatusToBadge } from './payouts-status-29d31099.js';
|
|
4
4
|
import { m as getAlternateTableCellPart, k as tableHeadCell } from './parts-fd740f54.js';
|
|
5
5
|
|
|
@@ -2,15 +2,15 @@ import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js'
|
|
|
2
2
|
import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types-1bc52f1f.js';
|
|
3
3
|
import { V as table, W as tableCell } from './parts-fd740f54.js';
|
|
4
4
|
import './ComponentError-c61dce41.js';
|
|
5
|
-
import './Checkout-
|
|
5
|
+
import './Checkout-18d8bf94.js';
|
|
6
6
|
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
7
|
-
import './Payment-
|
|
8
|
-
import './SubAccount-
|
|
7
|
+
import './Payment-806af354.js';
|
|
8
|
+
import './SubAccount-837658ae.js';
|
|
9
9
|
import './Document-1907c0d4.js';
|
|
10
|
-
import { t as terminalOrdersTableColumns, a as terminalOrdersTableCells } from './terminal-orders-table-
|
|
10
|
+
import { t as terminalOrdersTableColumns, a as terminalOrdersTableCells } from './terminal-orders-table-65d59323.js';
|
|
11
11
|
import { o as onQueryParamsChange, g as getRequestParams } from './terminal-orders-list-params-state-8fec0a0b.js';
|
|
12
12
|
import './spinner-27479716.js';
|
|
13
|
-
import './utils-
|
|
13
|
+
import './utils-ec50661e.js';
|
|
14
14
|
import './Dispute-5fd28ec9.js';
|
|
15
15
|
import './badge-1be14e8c.js';
|
|
16
16
|
import './index-a47fdc7f.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-29fcfdf5.js';
|
|
2
2
|
import { k as tableHeadCell, m as getAlternateTableCellPart } from './parts-fd740f54.js';
|
|
3
|
-
import {
|
|
3
|
+
import { d as convertToLocal } from './utils-ec50661e.js';
|
|
4
4
|
import { B as Badge, a as BadgeVariant } from './badge-1be14e8c.js';
|
|
5
5
|
|
|
6
6
|
const MapTerminalOrderStatusToBadge = (status) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as Api } from './Api-52242eb0.js';
|
|
2
2
|
import './ComponentError-c61dce41.js';
|
|
3
|
-
import './Checkout-
|
|
3
|
+
import './Checkout-18d8bf94.js';
|
|
4
4
|
import './Pagination-afc8f96d.js';
|
|
5
|
-
import './Payment-
|
|
6
|
-
import './SubAccount-
|
|
5
|
+
import './Payment-806af354.js';
|
|
6
|
+
import './SubAccount-837658ae.js';
|
|
7
7
|
import './Document-1907c0d4.js';
|
|
8
8
|
|
|
9
9
|
class TerminalService {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import './ComponentError-c61dce41.js';
|
|
3
|
-
import './Checkout-
|
|
3
|
+
import './Checkout-18d8bf94.js';
|
|
4
4
|
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
5
|
-
import './Payment-
|
|
6
|
-
import './SubAccount-
|
|
5
|
+
import './Payment-806af354.js';
|
|
6
|
+
import './SubAccount-837658ae.js';
|
|
7
7
|
import './Document-1907c0d4.js';
|
|
8
8
|
import { V as table, W as tableCell } from './parts-fd740f54.js';
|
|
9
9
|
import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types-1bc52f1f.js';
|
|
10
|
-
import { t as terminalTableColumns, a as terminalTableCells } from './terminals-table-
|
|
10
|
+
import { t as terminalTableColumns, a as terminalTableCells } from './terminals-table-5eb287ca.js';
|
|
11
11
|
import { o as onQueryParamsChange, g as getRequestParams } from './terminals-list-params-state-e4b2ec23.js';
|
|
12
|
-
import './utils-
|
|
12
|
+
import './utils-ec50661e.js';
|
|
13
13
|
import './Dispute-5fd28ec9.js';
|
|
14
14
|
import './spinner-27479716.js';
|
|
15
15
|
import './badge-1be14e8c.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from './index-29fcfdf5.js';
|
|
2
2
|
import { B as Badge, a as BadgeVariant } from './badge-1be14e8c.js';
|
|
3
3
|
import { k as tableHeadCell, m as getAlternateTableCellPart } from './parts-fd740f54.js';
|
|
4
|
-
import {
|
|
4
|
+
import { g as capitalFirstLetter } from './utils-ec50661e.js';
|
|
5
5
|
|
|
6
6
|
const MapTerminalStatusToBadge = (status) => {
|
|
7
7
|
const statusToBadgeProps = {
|
|
@@ -3852,7 +3852,7 @@ var dinero = Object.assign(Dinero, Defaults, Globals, Static);
|
|
|
3852
3852
|
const formatCurrency = (amount, currency, omitSymbols = false) => {
|
|
3853
3853
|
if (!amount)
|
|
3854
3854
|
amount = 0;
|
|
3855
|
-
const formattedString =
|
|
3855
|
+
const formattedString = omitSymbols ? '0,0.00' : '$0,0.00';
|
|
3856
3856
|
const formattedCurrency = currency === null || currency === void 0 ? void 0 : currency.toUpperCase();
|
|
3857
3857
|
const formattedAmount = dinero({ amount: amount }).toFormat(formattedString);
|
|
3858
3858
|
return currency ? `${formattedAmount} ${formattedCurrency}` : formattedAmount;
|
|
@@ -3986,5 +3986,16 @@ function processHTML(htmlString, functions) {
|
|
|
3986
3986
|
});
|
|
3987
3987
|
return processedHTML;
|
|
3988
3988
|
}
|
|
3989
|
+
function formatPhoneNumber(number) {
|
|
3990
|
+
// Remove all non-numeric characters
|
|
3991
|
+
let cleaned = ('' + number).replace(/\D/g, '');
|
|
3992
|
+
// Check if the number has the correct length
|
|
3993
|
+
if (cleaned.length !== 10) {
|
|
3994
|
+
return 'Invalid number';
|
|
3995
|
+
}
|
|
3996
|
+
// Format the number (XXX) XXX-XXXX
|
|
3997
|
+
let formatted = cleaned.replace(/(\d{3})(\d{3})(\d{4})/, '($1) $2-$3');
|
|
3998
|
+
return formatted;
|
|
3999
|
+
}
|
|
3989
4000
|
|
|
3990
|
-
export { formatTime as a, formatDate as b,
|
|
4001
|
+
export { formatTime as a, formatDate as b, formatPhoneNumber as c, convertToLocal as d, convertToUTC as e, formatCurrency as f, capitalFirstLetter as g, formatDisplayDate as h, addAttribute as i, isEmptyObject as j, formatMediumDate as k, snakeToCamel as l, formatTimeSeconds as m, processHTML as p, removeAttribute as r, snakeCaseToHumanReadable as s };
|
|
@@ -15,6 +15,7 @@ import { T as TerminalModel, a as TerminalOrder, b as TerminalOrderType } from '
|
|
|
15
15
|
import './Document.js';
|
|
16
16
|
import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
|
|
17
17
|
import { T as TerminalService } from './terminal.service.js';
|
|
18
|
+
import { h as formatPhoneNumber } from './utils2.js';
|
|
18
19
|
import { d as defineCustomElement$4 } from './custom-popper2.js';
|
|
19
20
|
import { d as defineCustomElement$3 } from './form-control-tooltip2.js';
|
|
20
21
|
import { d as defineCustomElement$2 } from './terminal-quantity-selector2.js';
|
|
@@ -223,7 +224,7 @@ const OrderTerminals = /*@__PURE__*/ proxyCustomElement(class OrderTerminals ext
|
|
|
223
224
|
renderBusinessDetails() {
|
|
224
225
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
225
226
|
if (!this.loading.business && this.business) {
|
|
226
|
-
return (h("div", { class: "gap-
|
|
227
|
+
return (h("div", { class: "d-flex flex-column gap-4 mb-5 pt-5" }, h("div", { class: "row" }, h("div", { class: "col-12" }, h("h2", { part: heading4 }, this.business.legal_name))), h("div", { class: "row" }, h("div", { class: "col-6" }, h("h5", { part: heading5 }, "Representative:"), h("div", null, h("div", null, (_b = (_a = this.business) === null || _a === void 0 ? void 0 : _a.representative) === null || _b === void 0 ? void 0 : _b.name), h("div", null, (_d = (_c = this.business) === null || _c === void 0 ? void 0 : _c.representative) === null || _d === void 0 ? void 0 : _d.title), h("div", null, (_f = (_e = this.business) === null || _e === void 0 ? void 0 : _e.representative) === null || _f === void 0 ? void 0 : _f.email), h("div", null, formatPhoneNumber((_h = (_g = this.business) === null || _g === void 0 ? void 0 : _g.representative) === null || _h === void 0 ? void 0 : _h.phone)))), this.shipping && (h("div", { class: "col-6" }, h("h5", { part: heading5 }, "Shipping Address:"), h("div", null, this.business.legal_address.line1, this.business.legal_address.line2 ? `, ${this.business.legal_address.line2}` : "", h("br", null), this.business.legal_address.city, ", ", this.business.legal_address.state, " ", this.business.legal_address.postal_code))))));
|
|
227
228
|
}
|
|
228
229
|
}
|
|
229
230
|
renderTerminals() {
|
|
@@ -235,7 +236,7 @@ const OrderTerminals = /*@__PURE__*/ proxyCustomElement(class OrderTerminals ext
|
|
|
235
236
|
return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : 'Submit Order'))));
|
|
236
237
|
}
|
|
237
238
|
render() {
|
|
238
|
-
return (h(StyledHost, { key: '
|
|
239
|
+
return (h(StyledHost, { key: 'ff0a0b45e2c76f106df29422c3ba3391de7fc267' }, h("div", { key: 'daad918582cad630ba6081288aafc6df9391236b', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
|
|
239
240
|
}
|
|
240
241
|
}, [1, "justifi-order-terminals", {
|
|
241
242
|
"businessId": [1, "business-id"],
|
|
@@ -4,7 +4,7 @@ import { f as filterParams, p as propsParams, c as clearParams } from './payment
|
|
|
4
4
|
import { a5 as paymentsListFilterMenu, a6 as paymentIdPaymentsListFilterParam, a7 as terminalIdPaymentsListFilterParam, a8 as paymentStatusPaymentsListFilterParam, a9 as createdAfterPaymentsListFilterParam, aa as createdBeforePaymentsListFilterParam } from './parts.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host.js';
|
|
6
6
|
import './details.js';
|
|
7
|
-
import {
|
|
7
|
+
import { k as convertToUTC, j as convertToLocal } from './utils2.js';
|
|
8
8
|
import { d as defineCustomElement$7 } from './custom-popper2.js';
|
|
9
9
|
import { d as defineCustomElement$6 } from './form-control-date2.js';
|
|
10
10
|
import { d as defineCustomElement$5 } from './form-control-select2.js';
|
|
@@ -3,7 +3,7 @@ import { f as filterParams, p as propsParams, c as clearParams } from './payouts
|
|
|
3
3
|
import { ab as payoutsListFilterMenu, ac as createdAfterPayoutsListFilterParam, ad as createdBeforePayoutsListFilterParam } from './parts.js';
|
|
4
4
|
import { S as StyledHost } from './styled-host.js';
|
|
5
5
|
import './details.js';
|
|
6
|
-
import {
|
|
6
|
+
import { k as convertToUTC, j as convertToLocal } from './utils2.js';
|
|
7
7
|
import { d as defineCustomElement$5 } from './custom-popper2.js';
|
|
8
8
|
import { d as defineCustomElement$4 } from './form-control-date2.js';
|
|
9
9
|
import { d as defineCustomElement$3 } from './form-control-tooltip2.js';
|
|
@@ -9,7 +9,7 @@ import './Pagination.js';
|
|
|
9
9
|
import './Payment.js';
|
|
10
10
|
import { c as TerminalOrderStatus, b as TerminalOrderType } from './SubAccount.js';
|
|
11
11
|
import './Document.js';
|
|
12
|
-
import {
|
|
12
|
+
import { k as convertToUTC, j as convertToLocal } from './utils2.js';
|
|
13
13
|
import { d as defineCustomElement$6 } from './custom-popper2.js';
|
|
14
14
|
import { d as defineCustomElement$5 } from './form-control-date2.js';
|
|
15
15
|
import { d as defineCustomElement$4 } from './form-control-select2.js';
|
package/dist/module/package.js
CHANGED
|
@@ -9,7 +9,7 @@ import { o as tableHeadCell, q as getAlternateTableCellPart, n as table, p as ta
|
|
|
9
9
|
import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
|
|
10
10
|
import './details.js';
|
|
11
11
|
import { M as MapPaymentStatusToBadge } from './payments-status.js';
|
|
12
|
-
import {
|
|
12
|
+
import { j as convertToLocal } from './utils2.js';
|
|
13
13
|
import { o as onQueryParamsChange, g as getRequestParams } from './payments-list-params-state.js';
|
|
14
14
|
import { d as defineCustomElement$1 } from './pagination-menu2.js';
|
|
15
15
|
|
|
@@ -8,7 +8,7 @@ import './Document.js';
|
|
|
8
8
|
import { q as getAlternateTableCellPart, o as tableHeadCell, n as table, p as tableCell } from './parts.js';
|
|
9
9
|
import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
|
|
10
10
|
import './details.js';
|
|
11
|
-
import {
|
|
11
|
+
import { j as convertToLocal } from './utils2.js';
|
|
12
12
|
import { M as MapPayoutStatusToBadge } from './payouts-status.js';
|
|
13
13
|
import { o as onQueryParamsChange, g as getRequestParams } from './payouts-list-params-state.js';
|
|
14
14
|
import { d as defineCustomElement$1 } from './pagination-menu2.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
|
-
import { p as processHTML, f as formatCurrency, r as removeAttribute,
|
|
2
|
+
import { p as processHTML, f as formatCurrency, r as removeAttribute, l as addAttribute } from './utils2.js';
|
|
3
3
|
import { v as validateInsuranceValues, a as insuranceValues, b as insuranceErrors, H as Header2 } from './insurance-state.js';
|
|
4
4
|
import { t as text, j as textDanger } from './parts.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host.js';
|
|
@@ -8,7 +8,7 @@ import { p as pagingDefaults } from './Pagination.js';
|
|
|
8
8
|
import './Payment.js';
|
|
9
9
|
import './SubAccount.js';
|
|
10
10
|
import './Document.js';
|
|
11
|
-
import {
|
|
11
|
+
import { j as convertToLocal } from './utils2.js';
|
|
12
12
|
import { B as Badge, a as BadgeVariant } from './badge.js';
|
|
13
13
|
import { o as onQueryParamsChange, g as getRequestParams } from './terminal-orders-list-params-state.js';
|
|
14
14
|
import { d as defineCustomElement$1 } from './pagination-menu2.js';
|
|
@@ -9,7 +9,7 @@ import { o as tableHeadCell, q as getAlternateTableCellPart, n as table, p as ta
|
|
|
9
9
|
import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
|
|
10
10
|
import './details.js';
|
|
11
11
|
import { B as Badge, a as BadgeVariant } from './badge.js';
|
|
12
|
-
import {
|
|
12
|
+
import { m as capitalFirstLetter } from './utils2.js';
|
|
13
13
|
import { o as onQueryParamsChange, g as getRequestParams } from './terminals-list-params-state.js';
|
|
14
14
|
import { d as defineCustomElement$1 } from './pagination-menu2.js';
|
|
15
15
|
|
package/dist/module/utils2.js
CHANGED
|
@@ -3852,7 +3852,7 @@ var dinero = Object.assign(Dinero, Defaults, Globals, Static);
|
|
|
3852
3852
|
const formatCurrency = (amount, currency, omitSymbols = false) => {
|
|
3853
3853
|
if (!amount)
|
|
3854
3854
|
amount = 0;
|
|
3855
|
-
const formattedString =
|
|
3855
|
+
const formattedString = omitSymbols ? '0,0.00' : '$0,0.00';
|
|
3856
3856
|
const formattedCurrency = currency === null || currency === void 0 ? void 0 : currency.toUpperCase();
|
|
3857
3857
|
const formattedAmount = dinero({ amount: amount }).toFormat(formattedString);
|
|
3858
3858
|
return currency ? `${formattedAmount} ${formattedCurrency}` : formattedAmount;
|
|
@@ -3986,5 +3986,16 @@ function processHTML(htmlString, functions) {
|
|
|
3986
3986
|
});
|
|
3987
3987
|
return processedHTML;
|
|
3988
3988
|
}
|
|
3989
|
+
function formatPhoneNumber(number) {
|
|
3990
|
+
// Remove all non-numeric characters
|
|
3991
|
+
let cleaned = ('' + number).replace(/\D/g, '');
|
|
3992
|
+
// Check if the number has the correct length
|
|
3993
|
+
if (cleaned.length !== 10) {
|
|
3994
|
+
return 'Invalid number';
|
|
3995
|
+
}
|
|
3996
|
+
// Format the number (XXX) XXX-XXXX
|
|
3997
|
+
let formatted = cleaned.replace(/(\d{3})(\d{3})(\d{4})/, '($1) $2-$3');
|
|
3998
|
+
return formatted;
|
|
3999
|
+
}
|
|
3989
4000
|
|
|
3990
|
-
export { formatMediumDate as a, formatDate as b, formatTimeSeconds as c, formatTime as d, formatDisplayDate as e, formatCurrency as f, snakeToCamel as g,
|
|
4001
|
+
export { formatMediumDate as a, formatDate as b, formatTimeSeconds as c, formatTime as d, formatDisplayDate as e, formatCurrency as f, snakeToCamel as g, formatPhoneNumber as h, isEmptyObject as i, convertToLocal as j, convertToUTC as k, addAttribute as l, capitalFirstLetter as m, processHTML as p, removeAttribute as r, snakeCaseToHumanReadable as s };
|
|
@@ -28,4 +28,5 @@ export declare const isInRange: (num: any, min: any, max: any) => boolean;
|
|
|
28
28
|
export declare function removeAttribute(htmlString: any, attribute: any): string;
|
|
29
29
|
export declare function addAttribute(htmlString: any, tagName: any, attribute: any, value: any): string;
|
|
30
30
|
export declare function processHTML(htmlString: any, functions: any): any;
|
|
31
|
+
export declare function formatPhoneNumber(number: any): string;
|
|
31
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-2783e363.js";import{f as t,p as s,c as f}from"./p-ab45511e.js";import{J as r,K as d,L as c}from"./p-bf195b35.js";import{S as b}from"./p-bfe9748b.js";import{
|
|
1
|
+
import{r as e,h as a}from"./p-2783e363.js";import{f as t,p as s,c as f}from"./p-ab45511e.js";import{J as r,K as d,L as c}from"./p-bf195b35.js";import{S as b}from"./p-bfe9748b.js";import{e as o,d as i}from"./p-f8fccf44.js";import"./p-f20b6ce1.js";const p=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=o(a,{setEndOfDay:!0});this.setParamsOnChange(e,t)},this.createdAfter=void 0,this.createdBefore=void 0}componentWillLoad(){Object.entries({created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}render(){const e=Object.assign({},t);return a(b,{key:"30857b318a635a1420f56799c572f39da85d6317"},a("table-filters-menu",{key:"c3b0bdc3d50d9cc3e2cef3adfbba7f0fe7539044",params:e,clearParams:f,part:r},a("div",{key:"9be791ebd77eb197e18e7663c30fa2a12c1e9a4f",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"3e172e7f255b4e78b48cb03d2b921b01fdefc4b0",class:"p-2"},a("form-control-date",{key:"875f2202358370bec6df4b724dbc2db7070b1ff7",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:i(this.createdAfter,{showInputDate:!0})||i(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:d})),a("div",{key:"ce324f47aa1b38b6d24f200a7b468076c6998faf",class:"p-2"},a("form-control-date",{key:"3d2543d40d2f3ac60c7f3f09d905c102425dffc6",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:i(this.createdBefore,{showInputDate:!0})||i(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:c})))))}};export{p as justifi_payouts_list_filters}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as t}from"./p-
|
|
1
|
+
import{f as t}from"./p-f8fccf44.js";var i,s,h,n,e,a,o,c,d;!function(t){t.paid="paid",t.failed="failed",t.forwarded="forwarded",t.scheduled="scheduled",t.in_transit="in_transit",t.canceled="canceled"}(i||(i={})),function(t){t.paid="Paid",t.failed="Failed",t.forwarded="Forwarded",t.scheduled="Scheduled",t.in_transit="In Transit",t.canceled="Canceled"}(s||(s={}));class r{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.bank_account=t.bank_account,this.delivery_method=t.delivery_method||"standard",this.description=t.description,this.deposits_at=t.deposits_at,this.fees_total=t.fees_total,this.refunds_count=t.refunds_count,this.refunds_total=t.refunds_total,this.payments_count=t.payments_count,this.payments_total=t.payments_total,this.payout_type=t.payout_type,this.other_total=t.other_total,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.connected="connected",t.disconnected="disconnected",t.unknown="unknown",t.pending_configuration="pending_configuration"}(h||(h={})),function(t){t.verifone="verifone"}(n||(n={}));class u{constructor(t){this.id=t.id||"",this.status=t.status,this.account_id=t.account_id||"",this.platform_account_id=t.platform_account_id||"",this.provider=t.provider||null,this.provider_id=t.provider_id||"",this.provider_serial_number=t.provider_serial_number||"",this.created_at=t.created_at||"",this.updated_at=t.updated_at||"",this.verified_at=t.verified_at||"",this.nickname=t.nickname||"",this.model_name=t.model_name||null}}!function(t){t.boardingOnly="boarding_only",t.boardingShipping="boarding_shipping"}(e||(e={})),function(t){t.created="created",t.submitted="submitted",t.completed="completed"}(a||(a={}));class l{constructor(t){this.id=t.id,this.business_id=t.business_id,this.sub_account_id=t.sub_account_id,this.provider=t.provider||n.verifone,this.order_items=[],this.order_type=t.order_type,this.order_status=t.order_status,this.terminals=t.terminals,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{business_id:this.business_id,sub_account_id:this.sub_account_id,order_type:this.order_type,order_items:this.order_items}}get totalQuantity(){return this.order_items.reduce(((t,i)=>t+i.quantity),0)}updateTerminal(t,i){if(0===i)return void(this.order_items=this.order_items.filter((i=>i.model_name!==t)));const s=this.order_items.find((i=>i.model_name===t));s?s.quantity=i:this.order_items.push({model_name:t,quantity:i})}}!function(t){t.v400="v400",t.p400="p400+",t.e285="e285"}(o||(o={}));class f{constructor(t){this.id=t.id,this.model_name=t.model_name,this.description=t.description,this.image_url=t.image_url,this.help_url=t.help_url}}!function(t){t.test="test",t.live="live"}(c||(c={})),function(t){t.created="created",t.submitted="submitted",t.information_needed="information_needed",t.rejected="rejected",t.enabled="enabled",t.disabled="disabled",t.archived="archived"}(d||(d={}));class m{constructor(t){this.id=t.id,this.name=t.name,this.account_type=t.account_type,this.status=t.status,this.currency=t.currency,this.platform_account_id=t.platform_account_id,this.payout_account_id=t.payout_account_id,this.business_id=t.business_id,this.application_fee_rates=t.application_fee_rates,this.processing_ready=t.processing_ready,this.payout_ready=t.payout_ready,this.related_accounts=t.related_accounts,this.created_at=t.created_at,this.updated_at=t.updated_at}}export{h as I,r as P,m as S,f as T,l as a,e as b,a as c,u as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,h as i,H as t}from"./p-2783e363.js";import{c as e,D as s}from"./p-12074378.js";import{
|
|
1
|
+
import{r as l,h as i,H as t}from"./p-2783e363.js";import{c as e,D as s}from"./p-12074378.js";import{j as v,s as d,k as o}from"./p-f8fccf44.js";import"./p-bf195b35.js";const u=class{constructor(i){l(this,i),this.additionalQuestions=void 0}render(){var l,d;return v(this.additionalQuestions)?null:i(t,null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:null===(l=this.additionalQuestions.business_revenue)||void 0===l?void 0:l.toString()}),i(e,{title:"Business Payment Volume",value:null===(d=this.additionalQuestions.business_payment_volume)||void 0===d?void 0:d.toString()})))))}},a=class{constructor(i){l(this,i),this.business=void 0}render(){var l,v,o,u,a,n,r,c;return this.business?i(t,null,i(s,{sectionTitle:"Business Generic Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:null===(l=this.business)||void 0===l?void 0:l.legal_name}),i(e,{title:"Doing Business As (DBA)",value:null===(v=this.business)||void 0===v?void 0:v.doing_business_as}),i(e,{title:"Business Classification",value:d(null===(o=this.business)||void 0===o?void 0:o.classification)}),i(e,{title:"Industry",value:null===(u=this.business)||void 0===u?void 0:u.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:null===(a=this.business)||void 0===a?void 0:a.tax_id}),i(e,{title:"Website URL",value:null===(n=this.business)||void 0===n?void 0:n.website_url}),i(e,{title:"Email Address",value:null===(r=this.business)||void 0===r?void 0:r.email}),i(e,{title:"Phone Number",value:null===(c=this.business)||void 0===c?void 0:c.phone}))))):null}},n=class{constructor(i){l(this,i),this.legalAddress=void 0}render(){var l,d,o,u,a,n,r;return v(this.legalAddress)?null:i(t,null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(d=this.legalAddress)||void 0===d?void 0:d.line1}),i(e,{title:"Address Line 2",value:null===(o=this.legalAddress)||void 0===o?void 0:o.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(u=this.legalAddress)||void 0===u?void 0:u.city}),i(e,{title:"State",value:null===(a=this.legalAddress)||void 0===a?void 0:a.state}),i(e,{title:"Postal Code",value:null===(r=null===(n=this.legalAddress)||void 0===n?void 0:n.postal_code)||void 0===r?void 0:r.toString()})))))}},r=class{constructor(i){l(this,i),this.owners=void 0}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,v,d,u,a;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-table gap-2 w-100 mt-3"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:o(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(v=null==l?void 0:l.address)||void 0===v?void 0:v.line2}),i(e,{title:"City",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.city}),i(e,{title:"State",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.state}),i(e,{title:"Zip",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.postal_code}))]}))):null}},c=class{constructor(i){l(this,i),this.representative=void 0}render(){var l,d,u,a,n,r,c,h,m,p,b,g,w,f;return v(this.representative)?null:i(t,null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(d=this.representative)||void 0===d?void 0:d.id}),i(e,{title:"Address",value:null===(a=null===(u=this.representative)||void 0===u?void 0:u.address)||void 0===a?void 0:a.line1}),i(e,{title:"Created At",value:(null===(n=this.representative)||void 0===n?void 0:n.created_at)&&o(null===(r=this.representative)||void 0===r?void 0:r.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(c=this.representative)||void 0===c?void 0:c.title}),i(e,{title:"Is Owner?",value:null===(h=this.representative)||void 0===h?void 0:h.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&o(new Date(Number(null===(m=this.representative)||void 0===m?void 0:m.dob_year),Number(null===(p=this.representative)||void 0===p?void 0:p.dob_month)-1,Number(null===(b=this.representative)||void 0===b?void 0:b.dob_day)))}),i(e,{title:"Email",value:null===(g=this.representative)||void 0===g?void 0:g.email}),i(e,{title:"Phone",value:null===(w=this.representative)||void 0===w?void 0:w.phone}),i(e,{title:"Updated At",value:this.representative&&o(null===(f=this.representative)||void 0===f?void 0:f.updated_at)})))))}};export{u as additional_questions_details,a as generic_info_details,n as legal_address_details,r as owner_details,c as representative_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as t}from"./p-
|
|
1
|
+
import{f as t}from"./p-f8fccf44.js";class i{constructor(t){this.payment_mode=h[t.payment_mode],this.payment_token=t.payment_token,this.payment_status=t.payment_status,this.payment_response=t.payment_response,this.payment_error_code=t.payment_error_code,this.payment_error_description=t.payment_error_description,this.checkout_id=t.checkout_id,this.additional_transactions=t.additional_transactions,this.payment_id=t.payment_id,this.payment_method_id=t.payment_method_id,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}}class s{constructor(t){var s;this.id=t.id,this.description=t.description,this.payment_intent_id=t.payment_intent_id,this.account_id=t.account_id,this.platform_account_id=t.platform_account_id,this.payment_amount=t.payment_amount,this.payment_client_id=t.payment_client_id,this.payment_description=t.payment_description,this.payment_methods=t.payment_methods,this.payment_method_group_id=t.payment_method_group_id,this.payment_settings=t.payment_settings,this.bnpl=t.bnpl,this.total_amount=t.total_amount,this.insurance_amount=t.insurance_amount,this.status=e[t.status],this.payment_currency=t.payment_currency,this.mode=t.mode,this.statement_descriptor=t.statement_descriptor,this.application_fees=t.application_fees,this.successful_payment_id=t.successful_payment_id,this.created_at=t.created_at,this.updated_at=t.updated_at,this.completions=null===(s=t.completions)||void 0===s?void 0:s.map((t=>new i(t)))}get payment_mode(){var t,i,s,o,e,n;let d;if(!this.completions||0===this.completions.length)return h.unknown;const r=this.completions.sort(((t,i)=>new Date(i.updated_at).getTime()-new Date(t.updated_at).getTime()))[0];return r.payment_mode?d=r.payment_mode:(null===(s=null===(i=null===(t=r.payment_response)||void 0===t?void 0:t.data)||void 0===i?void 0:i.payment_method)||void 0===s?void 0:s.card)?d=h.card:(null===(n=null===(e=null===(o=r.payment_response)||void 0===o?void 0:o.data)||void 0===e?void 0:e.payment_method)||void 0===n?void 0:n.bank_account)&&(d=h.bank_account),d}formattedPaymentAmount(i){return t(i,this.payment_currency)}}var h,o,e,n;!function(t){t.bnpl="Buy Now Pay Later",t.ecom="E-commerce",t.card="Card",t.bank_account="Bank Account",t.card_present="Card Present",t.unknown=""}(h||(h={})),function(t){t.bnpl="bnpl",t.ecom="ecom"}(o||(o={})),function(t){t.created="created",t.completed="completed",t.attempted="attempted",t.expired="expired"}(e||(e={})),function(t){t.failed="failed",t.succeeded="succeeded"}(n||(n={}));export{s as C,e as I,o as a}
|