@justifi/webcomponents 6.14.5-rc.1 → 6.14.5

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.
Files changed (133) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Analytics-46pgYofS.js → Analytics-BVHauOC2.js} +2 -2
  3. package/dist/cjs/{Api-C2V2lX6a.js → Api-BzB0rppJ.js} +1 -1
  4. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +4 -4
  5. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  6. package/dist/cjs/{business.service-COn1NkhY.js → business.service-j_VDzA2-.js} +1 -1
  7. package/dist/cjs/card-form.cjs.entry.js +2 -2
  8. package/dist/cjs/{check-pkg-version-BsDr9TZT.js → check-pkg-version-JMiLuNXu.js} +1 -1
  9. package/dist/cjs/{checkout.service-DObCfUj2.js → checkout.service-0vHtBDZY.js} +1 -1
  10. package/dist/cjs/dispute-notification_2.cjs.entry.js +5 -5
  11. package/dist/cjs/{event-types-CmDSoKh4.js → event-types-CMpeGHw8.js} +1 -1
  12. package/dist/cjs/form-alert_3.cjs.entry.js +1 -1
  13. package/dist/cjs/{get-subaccounts-CuruLv9t.js → get-subaccounts-B7e8Eovg.js} +1 -1
  14. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +6 -6
  15. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +4 -4
  16. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -4
  17. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
  18. package/dist/cjs/justifi-business-form.cjs.entry.js +5 -5
  19. package/dist/cjs/justifi-card-form.cjs.entry.js +4 -4
  20. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +4 -4
  21. package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
  22. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +6 -6
  23. package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -5
  24. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  25. package/dist/cjs/justifi-order-terminals.cjs.entry.js +6 -6
  26. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -5
  27. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
  28. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +5 -5
  29. package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -5
  30. package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -5
  31. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +5 -5
  32. package/dist/cjs/justifi-payouts-list.cjs.entry.js +6 -6
  33. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +5 -5
  34. package/dist/cjs/justifi-refund-payment.cjs.entry.js +5 -5
  35. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -4
  36. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +4 -4
  37. package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -6
  38. package/dist/cjs/{package-Cb1-8Jj8.js → package-DfdMLmz7.js} +1 -1
  39. package/dist/cjs/{payment.service-XSIPp45g.js → payment.service-Bs3HJ4Kv.js} +1 -1
  40. package/dist/cjs/{payout.service-CIzggNLL.js → payout.service-DNWZxt3R.js} +1 -1
  41. package/dist/cjs/{plaid.service-jphsDR0Z.js → plaid.service-B_YQGBoC.js} +1 -1
  42. package/dist/cjs/{terminal.service-ZyT05wTw.js → terminal.service-CvFZEemr.js} +1 -1
  43. package/dist/docs.json +1 -1
  44. package/dist/esm/{Analytics-YJZMjYtq.js → Analytics-Dgz_MQ1D.js} +2 -2
  45. package/dist/esm/{Api-od4ybwHR.js → Api-DScockhO.js} +1 -1
  46. package/dist/esm/additional-questions-form-step_15.entry.js +4 -4
  47. package/dist/esm/bank-account-form.entry.js +2 -2
  48. package/dist/esm/{business.service-BM14Brj6.js → business.service-DR2ldRqG.js} +1 -1
  49. package/dist/esm/card-form.entry.js +2 -2
  50. package/dist/esm/{check-pkg-version-DtP8CVbU.js → check-pkg-version-CPMg0K2m.js} +1 -1
  51. package/dist/esm/{checkout.service-B8kSQSsn.js → checkout.service-CU4BnB34.js} +1 -1
  52. package/dist/esm/dispute-notification_2.entry.js +5 -5
  53. package/dist/esm/{event-types-DL21cZd2.js → event-types-BNfdthYa.js} +1 -1
  54. package/dist/esm/form-alert_3.entry.js +1 -1
  55. package/dist/esm/{get-subaccounts-yZP4GBHd.js → get-subaccounts-BraeNX17.js} +1 -1
  56. package/dist/esm/justifi-apple-pay_11.entry.js +6 -6
  57. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +4 -4
  58. package/dist/esm/justifi-bank-account-form.entry.js +4 -4
  59. package/dist/esm/justifi-business-details.entry.js +5 -5
  60. package/dist/esm/justifi-business-form.entry.js +5 -5
  61. package/dist/esm/justifi-card-form.entry.js +4 -4
  62. package/dist/esm/justifi-checkout-qr-code.entry.js +4 -4
  63. package/dist/esm/justifi-checkout.entry.js +4 -4
  64. package/dist/esm/justifi-checkouts-list.entry.js +6 -6
  65. package/dist/esm/justifi-dispute-management.entry.js +5 -5
  66. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  67. package/dist/esm/justifi-order-terminals.entry.js +6 -6
  68. package/dist/esm/justifi-payment-details.entry.js +5 -5
  69. package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
  70. package/dist/esm/justifi-payment-transactions-list.entry.js +5 -5
  71. package/dist/esm/justifi-payments-list.entry.js +5 -5
  72. package/dist/esm/justifi-payout-details.entry.js +5 -5
  73. package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
  74. package/dist/esm/justifi-payouts-list.entry.js +6 -6
  75. package/dist/esm/justifi-qr-terminal.entry.js +5 -5
  76. package/dist/esm/justifi-refund-payment.entry.js +5 -5
  77. package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -4
  78. package/dist/esm/justifi-terminal-orders-list.entry.js +4 -4
  79. package/dist/esm/justifi-terminals-list.entry.js +6 -6
  80. package/dist/esm/{package-B_uQqefL.js → package-CiypNylL.js} +1 -1
  81. package/dist/esm/{payment.service-S0sEKmRn.js → payment.service-BxBf9T-D.js} +1 -1
  82. package/dist/esm/{payout.service-ZABnlfYv.js → payout.service-DKe3_O4y.js} +1 -1
  83. package/dist/esm/{plaid.service-qxtz2sWM.js → plaid.service-DwWljJOH.js} +1 -1
  84. package/dist/esm/{terminal.service-CB2kRLwO.js → terminal.service-Q4KXLOka.js} +1 -1
  85. package/dist/module/package.js +1 -1
  86. package/dist/webcomponents/{p-b6c112cd.entry.js → p-027ef7e9.entry.js} +1 -1
  87. package/dist/webcomponents/{p-5f7137db.entry.js → p-04153e8c.entry.js} +1 -1
  88. package/dist/webcomponents/{p-9e9dcc20.entry.js → p-0d9022e5.entry.js} +1 -1
  89. package/dist/webcomponents/p-0fe976d6.entry.js +1 -0
  90. package/dist/webcomponents/{p-1491320a.entry.js → p-2128265d.entry.js} +1 -1
  91. package/dist/webcomponents/{p-488dc072.entry.js → p-21a5c3d8.entry.js} +1 -1
  92. package/dist/webcomponents/p-25d24964.entry.js +1 -0
  93. package/dist/webcomponents/{p-5f57c81c.entry.js → p-29f68bd0.entry.js} +1 -1
  94. package/dist/webcomponents/{p-348decec.entry.js → p-3086ee7a.entry.js} +1 -1
  95. package/dist/webcomponents/{p-99d17144.entry.js → p-373586db.entry.js} +1 -1
  96. package/dist/webcomponents/{p-88a3c0cf.entry.js → p-3870712e.entry.js} +4 -4
  97. package/dist/webcomponents/{p-ecaec672.entry.js → p-387aba3d.entry.js} +1 -1
  98. package/dist/webcomponents/{p-79fd9000.entry.js → p-51714ea9.entry.js} +1 -1
  99. package/dist/webcomponents/{p-3734d15d.entry.js → p-537ea763.entry.js} +1 -1
  100. package/dist/webcomponents/{p-a1b7e2fc.entry.js → p-543fcff2.entry.js} +1 -1
  101. package/dist/webcomponents/{p-f1592a71.entry.js → p-6884fa3d.entry.js} +1 -1
  102. package/dist/webcomponents/{p-bbd403f5.entry.js → p-9b758a11.entry.js} +1 -1
  103. package/dist/webcomponents/{p-mjjqv7AN.js → p-BEOJqK7T.js} +1 -1
  104. package/dist/webcomponents/p-BL112JyU.js +1 -0
  105. package/dist/webcomponents/{p-CT8oFJ_1.js → p-BlqdDtQr.js} +1 -1
  106. package/dist/webcomponents/{p-BjNqkh37.js → p-C0w_sG9P.js} +1 -1
  107. package/dist/webcomponents/{p-BnQkpNjd.js → p-C8g8unYJ.js} +1 -1
  108. package/dist/webcomponents/p-CiypNylL.js +1 -0
  109. package/dist/webcomponents/{p-ChiCyW0k.js → p-CnDagPty.js} +1 -1
  110. package/dist/webcomponents/{p-gAlfGUcr.js → p-CnHbIkmu.js} +1 -1
  111. package/dist/webcomponents/{p-C3geClRX.js → p-DcA_wt-j.js} +1 -1
  112. package/dist/webcomponents/{p-BEmZOGbG.js → p-H4vl65HO.js} +1 -1
  113. package/dist/webcomponents/{p-CELpJl4Y.js → p-WnMmPpEb.js} +1 -1
  114. package/dist/webcomponents/p-a47854b9.entry.js +1 -0
  115. package/dist/webcomponents/{p-836c4136.entry.js → p-b9316945.entry.js} +1 -1
  116. package/dist/webcomponents/{p-760f423b.entry.js → p-c0bd4006.entry.js} +1 -1
  117. package/dist/webcomponents/{p-16471ba1.entry.js → p-c14dde7c.entry.js} +1 -1
  118. package/dist/webcomponents/{p-ead927fb.entry.js → p-c5560a87.entry.js} +1 -1
  119. package/dist/webcomponents/{p-13cbf119.entry.js → p-cc5a97a0.entry.js} +1 -1
  120. package/dist/webcomponents/{p-9bd0bb34.entry.js → p-d57ae599.entry.js} +1 -1
  121. package/dist/webcomponents/{p-4d747ce5.entry.js → p-e7909732.entry.js} +1 -1
  122. package/dist/webcomponents/{p-005d353c.entry.js → p-e954f46c.entry.js} +1 -1
  123. package/dist/webcomponents/{p-6ab4c4e0.entry.js → p-f6b900f4.entry.js} +1 -1
  124. package/dist/webcomponents/{p-d4208a51.entry.js → p-f8cff289.entry.js} +1 -1
  125. package/dist/webcomponents/{p-ecbed9bc.entry.js → p-f8f01bbb.entry.js} +1 -1
  126. package/dist/webcomponents/{p-C2l2dxvr.js → p-rIJv0FaI.js} +1 -1
  127. package/dist/webcomponents/webcomponents.esm.js +1 -1
  128. package/package.json +15 -15
  129. package/dist/webcomponents/p-1208da06.entry.js +0 -1
  130. package/dist/webcomponents/p-38bdce5d.entry.js +0 -1
  131. package/dist/webcomponents/p-B_uQqefL.js +0 -1
  132. package/dist/webcomponents/p-C1PEDhkE.js +0 -1
  133. package/dist/webcomponents/p-ee108873.entry.js +0 -1
@@ -1,15 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
2
2
  import { D as Dispute, C as ComponentErrorSeverity, b as ComponentErrorCodes, h as DisputeStatus } from './Plaid-DJ-4YL0_.js';
3
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
4
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
3
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
4
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
5
5
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
6
- import { D as DisputeManagementClickActions, a as DisputeService } from './event-types-DL21cZd2.js';
6
+ import { D as DisputeManagementClickActions, a as DisputeService } from './event-types-BNfdthYa.js';
7
7
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
8
8
  import './event-types-CZfYo5-1.js';
9
9
  import './utils-D8J8OvxY.js';
10
10
  import './dinero-HXpYMWUU.js';
11
- import './package-B_uQqefL.js';
12
- import './Api-od4ybwHR.js';
11
+ import './package-CiypNylL.js';
12
+ import './Api-DScockhO.js';
13
13
  import './config-state-BKOsYBXZ.js';
14
14
  import './index-3wWWWrhn.js';
15
15
  import './Pagination-CLHwhyvu.js';
@@ -1,19 +1,19 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
2
- import { A as Api } from './Api-od4ybwHR.js';
2
+ import { A as Api } from './Api-DScockhO.js';
3
3
  import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-DJ-4YL0_.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
5
  import './Business-DaDqgDrb.js';
6
6
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
7
7
  import { E as ErrorState } from './utils-BFduyAPr.js';
8
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
9
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
8
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
9
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
10
10
  import { f as formatCurrency, o as formatDisplayDate } from './utils-D8J8OvxY.js';
11
11
  import { S as Spinner } from './spinner-EZmqiSfd.js';
12
12
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
13
13
  import './event-types-CZfYo5-1.js';
14
14
  import './config-state-BKOsYBXZ.js';
15
15
  import './index-3wWWWrhn.js';
16
- import './package-B_uQqefL.js';
16
+ import './package-CiypNylL.js';
17
17
  import './parts-Bu7gdOaV.js';
18
18
  import './dinero-HXpYMWUU.js';
19
19
 
@@ -2,10 +2,10 @@ import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js'
2
2
  import { a9 as heading5, a8 as heading4, a1 as buttonPrimary, t as text } from './parts-Bu7gdOaV.js';
3
3
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
4
4
  import './event-types-CZfYo5-1.js';
5
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
6
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
5
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
6
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
7
7
  import { o as TerminalModel, C as ComponentErrorSeverity, p as TerminalOrder, f as TerminalOrderType, b as ComponentErrorCodes } from './Plaid-DJ-4YL0_.js';
8
- import { B as BusinessService } from './business.service-BM14Brj6.js';
8
+ import { B as BusinessService } from './business.service-DR2ldRqG.js';
9
9
  import { B as Business } from './Business-DaDqgDrb.js';
10
10
  import { m as makeGetBusiness } from './get-business-BSyOONF0.js';
11
11
  import { S as Skeleton } from './skeleton-dbktEkFS.js';
@@ -13,10 +13,10 @@ import './config-state-BKOsYBXZ.js';
13
13
  import './dinero-HXpYMWUU.js';
14
14
  import './Pagination-CLHwhyvu.js';
15
15
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
16
- import { T as TerminalService } from './terminal.service-CB2kRLwO.js';
16
+ import { T as TerminalService } from './terminal.service-Q4KXLOka.js';
17
17
  import { k as formatPhoneNumber } from './utils-D8J8OvxY.js';
18
- import './package-B_uQqefL.js';
19
- import './Api-od4ybwHR.js';
18
+ import './package-CiypNylL.js';
19
+ import './Api-DScockhO.js';
20
20
  import './index-3wWWWrhn.js';
21
21
 
22
22
  const FormBlock = () => (h("div", { class: "row gap-3" }, h("div", { class: "col-12" }, h(Skeleton, { width: "25%" })), h("div", { class: "col-12" }, h(Skeleton, { width: "100%" })), h("div", { class: "col-12 d-flex gap-3" }, h(Skeleton, { width: "50%" }), h(Skeleton, { width: "50%" })), h("div", { class: "col-12 d-flex gap-3" }, h(Skeleton, { width: "65%" }), h(Skeleton, { width: "35%" }))));
@@ -1,9 +1,9 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
- import { P as PaymentService } from './payment.service-S0sEKmRn.js';
2
+ import { P as PaymentService } from './payment.service-BxBf9T-D.js';
3
3
  import { m as makeGetPaymentDetails } from './get-payment-details-CoGzqJ6o.js';
4
4
  import { C as ComponentErrorSeverity, b as ComponentErrorCodes, i as PaymentStatuses, h as DisputeStatus } from './Plaid-DJ-4YL0_.js';
5
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
6
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
5
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
6
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
7
7
  import './config-state-BKOsYBXZ.js';
8
8
  import { b as formatDate, d as formatTime, s as snakeCaseToHumanReadable } from './utils-D8J8OvxY.js';
9
9
  import './Pagination-CLHwhyvu.js';
@@ -14,8 +14,8 @@ import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
14
14
  import './event-types-CZfYo5-1.js';
15
15
  import { S as Skeleton } from './skeleton-dbktEkFS.js';
16
16
  import { a as Badge, B as BadgeVariant } from './badge-B7QMpafx.js';
17
- import './Api-od4ybwHR.js';
18
- import './package-B_uQqefL.js';
17
+ import './Api-DScockhO.js';
18
+ import './package-CiypNylL.js';
19
19
  import './dinero-HXpYMWUU.js';
20
20
  import './utils-D6LKoG0M.js';
21
21
  import './index-3wWWWrhn.js';
@@ -1,12 +1,12 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
2
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
3
3
  import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-DJ-4YL0_.js';
4
4
  import { m as makeGetBusiness, b as makePostProvisioning } from './payment-provisioning-actions-DJKGndr3.js';
5
- import { B as BusinessService } from './business.service-BM14Brj6.js';
6
- import { A as Api } from './Api-od4ybwHR.js';
5
+ import { B as BusinessService } from './business.service-DR2ldRqG.js';
6
+ import { A as Api } from './Api-DScockhO.js';
7
7
  import './Pagination-CLHwhyvu.js';
8
8
  import { C as CountryCode, B as Business, e as checkProvisioningStatus } from './Business-DaDqgDrb.js';
9
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
9
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
10
10
  import { l as isTokenExpired } from './utils-D8J8OvxY.js';
11
11
  import { t as text } from './parts-Bu7gdOaV.js';
12
12
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
@@ -14,7 +14,7 @@ import { H as Header1 } from './header-1-BI0o3rMW.js';
14
14
  import './event-types-CZfYo5-1.js';
15
15
  import { B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
16
16
  import { P as PaymentProvisioningLoading } from './payment-provisioning-loading-BxHRVFDi.js';
17
- import './package-B_uQqefL.js';
17
+ import './package-CiypNylL.js';
18
18
  import './utils-D6LKoG0M.js';
19
19
  import './config-state-BKOsYBXZ.js';
20
20
  import './index-3wWWWrhn.js';
@@ -4,18 +4,18 @@ import './dinero-HXpYMWUU.js';
4
4
  import { j as PaymentBalanceTransaction, C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-DJ-4YL0_.js';
5
5
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
6
6
  import './Business-DaDqgDrb.js';
7
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
8
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
7
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
10
- import { P as PaymentService } from './payment.service-S0sEKmRn.js';
10
+ import { P as PaymentService } from './payment.service-BxBf9T-D.js';
11
11
  import { T as Table, a as TableWrapper, b as TableComponent, c as TableHead, d as TableHeadRow, e as TableBody, f as TableLoadingState, g as TableEmptyState, h as TableErrorState, i as TableRow, j as TableFoot, k as TableFootRow, l as TableFootCell } from './table-CD17nv9n.js';
12
12
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
13
13
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
14
14
  import { a as convertToLocal } from './utils-D8J8OvxY.js';
15
15
  import { a6 as tableHeadCell, a7 as getAlternateTableCellPart } from './parts-Bu7gdOaV.js';
16
16
  import './index-3wWWWrhn.js';
17
- import './package-B_uQqefL.js';
18
- import './Api-od4ybwHR.js';
17
+ import './package-CiypNylL.js';
18
+ import './Api-DScockhO.js';
19
19
  import './spinner-EZmqiSfd.js';
20
20
 
21
21
  const makeGetPaymentTransactions = ({ id, authToken, service }) => async ({ params, onSuccess, onError, final }) => {
@@ -1,13 +1,13 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
- import { P as PaymentService } from './payment.service-S0sEKmRn.js';
2
+ import { P as PaymentService } from './payment.service-BxBf9T-D.js';
3
3
  import './config-state-BKOsYBXZ.js';
4
4
  import './dinero-HXpYMWUU.js';
5
5
  import { e as Payment, C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-DJ-4YL0_.js';
6
6
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
7
  import './Business-DaDqgDrb.js';
8
8
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
9
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
10
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
9
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
11
11
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
12
12
  import { T as Table, a as TableWrapper, b as TableComponent, c as TableHead, d as TableHeadRow, e as TableBody, f as TableLoadingState, g as TableEmptyState, h as TableErrorState, i as TableRow, j as TableFoot, k as TableFootRow, l as TableFootCell } from './table-CD17nv9n.js';
13
13
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
@@ -15,8 +15,8 @@ import { M as MapPaymentStatusToBadge } from './payments-status-If2fvwlv.js';
15
15
  import { a as convertToLocal } from './utils-D8J8OvxY.js';
16
16
  import { a6 as tableHeadCell, a7 as getAlternateTableCellPart } from './parts-Bu7gdOaV.js';
17
17
  import { o as onQueryParamsChange, g as getRequestParams } from './payments-list-params-state-DfRLZrOO.js';
18
- import './Api-od4ybwHR.js';
19
- import './package-B_uQqefL.js';
18
+ import './Api-DScockhO.js';
19
+ import './package-CiypNylL.js';
20
20
  import './index-3wWWWrhn.js';
21
21
  import './spinner-EZmqiSfd.js';
22
22
  import './badge-B7QMpafx.js';
@@ -1,5 +1,5 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
- import { P as PayoutService } from './payout.service-ZABnlfYv.js';
2
+ import { P as PayoutService } from './payout.service-DKe3_O4y.js';
3
3
  import './config-state-BKOsYBXZ.js';
4
4
  import './dinero-HXpYMWUU.js';
5
5
  import { k as Payout, C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-DJ-4YL0_.js';
@@ -8,16 +8,16 @@ import './Business-DaDqgDrb.js';
8
8
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
9
9
  import { h as capitalizeFirstLetter, b as formatDate, d as formatTime } from './utils-D8J8OvxY.js';
10
10
  import { a as EntityHeadInfo, b as EntityHeadInfoItem, D as DetailSectionTitle, c as DetailItem, C as CodeBlock, E as ErrorState } from './utils-BFduyAPr.js';
11
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
11
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
12
12
  import { m as makeGetPayoutCSV, M as MapPayoutStatusToBadge } from './payouts-status-C0nijel1.js';
13
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
13
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
14
14
  import { B as Button } from './button-CBzHAOFW.js';
15
15
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
16
16
  import './event-types-CZfYo5-1.js';
17
17
  import { S as Skeleton } from './skeleton-dbktEkFS.js';
18
18
  import { a as Badge, B as BadgeVariant } from './badge-B7QMpafx.js';
19
- import './Api-od4ybwHR.js';
20
- import './package-B_uQqefL.js';
19
+ import './Api-DScockhO.js';
20
+ import './package-CiypNylL.js';
21
21
  import './index-3wWWWrhn.js';
22
22
  import './parts-Bu7gdOaV.js';
23
23
 
@@ -4,18 +4,18 @@ import './dinero-HXpYMWUU.js';
4
4
  import { l as PayoutBalanceTransaction, C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-DJ-4YL0_.js';
5
5
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
6
6
  import './Business-DaDqgDrb.js';
7
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
8
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
7
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
10
- import { P as PayoutService } from './payout.service-ZABnlfYv.js';
10
+ import { P as PayoutService } from './payout.service-DKe3_O4y.js';
11
11
  import { T as Table, a as TableWrapper, b as TableComponent, c as TableHead, d as TableHeadRow, e as TableBody, f as TableLoadingState, g as TableEmptyState, h as TableErrorState, i as TableRow, j as TableFoot, k as TableFootRow, l as TableFootCell } from './table-CD17nv9n.js';
12
12
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
13
13
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
14
14
  import { a as convertToLocal } from './utils-D8J8OvxY.js';
15
15
  import { a6 as tableHeadCell, a7 as getAlternateTableCellPart } from './parts-Bu7gdOaV.js';
16
16
  import './index-3wWWWrhn.js';
17
- import './package-B_uQqefL.js';
18
- import './Api-od4ybwHR.js';
17
+ import './package-CiypNylL.js';
18
+ import './Api-DScockhO.js';
19
19
  import './spinner-EZmqiSfd.js';
20
20
 
21
21
  const makeGetPayoutTransactions = ({ accountId, authToken, service }) => async ({ params, onSuccess, onError, final }) => {
@@ -1,23 +1,23 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
2
  import { k as Payout, C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-DJ-4YL0_.js';
3
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
4
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
5
- import { P as PayoutService } from './payout.service-ZABnlfYv.js';
3
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
4
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
5
+ import { P as PayoutService } from './payout.service-DKe3_O4y.js';
6
6
  import './config-state-BKOsYBXZ.js';
7
7
  import './dinero-HXpYMWUU.js';
8
8
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
9
9
  import './Business-DaDqgDrb.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
11
11
  import { M as MapPayoutStatusToBadge, m as makeGetPayoutCSV } from './payouts-status-C0nijel1.js';
12
- import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-yZP4GBHd.js';
12
+ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-BraeNX17.js';
13
13
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
14
14
  import { T as Table, a as TableWrapper, b as TableComponent, c as TableHead, d as TableHeadRow, e as TableBody, f as TableLoadingState, g as TableEmptyState, h as TableErrorState, i as TableRow, j as TableFoot, k as TableFootRow, l as TableFootCell } from './table-CD17nv9n.js';
15
15
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
16
16
  import { a as convertToLocal } from './utils-D8J8OvxY.js';
17
17
  import { a6 as tableHeadCell, a7 as getAlternateTableCellPart } from './parts-Bu7gdOaV.js';
18
18
  import { o as onQueryParamsChange, g as getRequestParams } from './payouts-list-params-state-DfRLZrOO.js';
19
- import './package-B_uQqefL.js';
20
- import './Api-od4ybwHR.js';
19
+ import './package-CiypNylL.js';
20
+ import './Api-DScockhO.js';
21
21
  import './index-3wWWWrhn.js';
22
22
  import './badge-B7QMpafx.js';
23
23
  import './spinner-EZmqiSfd.js';
@@ -1,16 +1,16 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
2
2
  import { m as makeGetCheckout } from './checkout-actions-DhL8YxrK.js';
3
- import { C as CheckoutService } from './checkout.service-B8kSQSsn.js';
3
+ import { C as CheckoutService } from './checkout.service-CU4BnB34.js';
4
4
  import { C as ComponentErrorSeverity, b as ComponentErrorCodes, I as ICheckoutStatus, c as ComponentErrorMessages, d as CompletionStatuses } from './Plaid-DJ-4YL0_.js';
5
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
6
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
5
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
6
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
7
7
  import './utils-D6LKoG0M.js';
8
- import './Api-od4ybwHR.js';
8
+ import './Api-DScockhO.js';
9
9
  import './config-state-BKOsYBXZ.js';
10
10
  import './index-3wWWWrhn.js';
11
11
  import './utils-D8J8OvxY.js';
12
12
  import './dinero-HXpYMWUU.js';
13
- import './package-B_uQqefL.js';
13
+ import './package-CiypNylL.js';
14
14
  import './Pagination-CLHwhyvu.js';
15
15
  import './Business-DaDqgDrb.js';
16
16
 
@@ -8,18 +8,18 @@ import './Business-DaDqgDrb.js';
8
8
  import { B as Button } from './button-CBzHAOFW.js';
9
9
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
10
10
  import './event-types-CZfYo5-1.js';
11
- import { P as PaymentService } from './payment.service-S0sEKmRn.js';
11
+ import { P as PaymentService } from './payment.service-BxBf9T-D.js';
12
12
  import { m as makeGetPaymentDetails } from './get-payment-details-CoGzqJ6o.js';
13
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
14
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
13
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
14
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
15
15
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
16
- import { A as Api } from './Api-od4ybwHR.js';
16
+ import { A as Api } from './Api-DScockhO.js';
17
17
  import { S as Skeleton } from './skeleton-dbktEkFS.js';
18
18
  import './_commonjsHelpers-BFTU3MAI.js';
19
19
  import './dinero-HXpYMWUU.js';
20
20
  import './index-3wWWWrhn.js';
21
21
  import './parts-Bu7gdOaV.js';
22
- import './package-B_uQqefL.js';
22
+ import './package-CiypNylL.js';
23
23
 
24
24
  const amountValidation = (maxAmount) => {
25
25
  const max = +maxAmount;
@@ -1,11 +1,11 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
- import { A as Api } from './Api-od4ybwHR.js';
2
+ import { A as Api } from './Api-DScockhO.js';
3
3
  import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-DJ-4YL0_.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
5
  import './Business-DaDqgDrb.js';
6
6
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
7
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
8
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
7
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
9
9
  import { c as checkoutStore } from './checkout.store-B6amfNq_.js';
10
10
  import { p as processHTML, f as formatCurrency, r as removeAttribute, i as addAttribute } from './utils-D8J8OvxY.js';
11
11
  import { v as validateInsuranceValues, i as insuranceValues, a as insuranceErrors, H as Header2 } from './insurance-state-DM0VaTpH.js';
@@ -15,7 +15,7 @@ import './event-types-CZfYo5-1.js';
15
15
  import { S as Skeleton } from './skeleton-dbktEkFS.js';
16
16
  import './config-state-BKOsYBXZ.js';
17
17
  import './index-3wWWWrhn.js';
18
- import './package-B_uQqefL.js';
18
+ import './package-CiypNylL.js';
19
19
  import './index-DkoufM1t.js';
20
20
  import './dinero-HXpYMWUU.js';
21
21
 
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js'
2
2
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
3
3
  import { T as Table, a as TableWrapper, b as TableComponent, c as TableHead, d as TableHeadRow, e as TableBody, f as TableLoadingState, g as TableEmptyState, h as TableErrorState, i as TableRow, j as TableFoot, k as TableFootRow, l as TableFootCell } from './table-CD17nv9n.js';
4
4
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
5
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
5
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
6
6
  import { a6 as tableHeadCell, a7 as getAlternateTableCellPart } from './parts-Bu7gdOaV.js';
7
7
  import { a as convertToLocal } from './utils-D8J8OvxY.js';
8
8
  import './config-state-BKOsYBXZ.js';
@@ -12,11 +12,11 @@ import './Business-DaDqgDrb.js';
12
12
  import { B as BadgeVariant, a as Badge } from './badge-B7QMpafx.js';
13
13
  import './dinero-HXpYMWUU.js';
14
14
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
15
- import { A as Api } from './Api-od4ybwHR.js';
16
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
15
+ import { A as Api } from './Api-DScockhO.js';
16
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
17
17
  import { o as onQueryParamsChange, g as getRequestParams } from './terminal-orders-list-params-state-DfRLZrOO.js';
18
18
  import './spinner-EZmqiSfd.js';
19
- import './package-B_uQqefL.js';
19
+ import './package-CiypNylL.js';
20
20
  import './index-3wWWWrhn.js';
21
21
 
22
22
  const MapTerminalOrderStatusToBadge = (status) => {
@@ -1,14 +1,14 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
2
  import { n as Terminal, C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-DJ-4YL0_.js';
3
- import { J as JustifiAnalytics } from './Analytics-YJZMjYtq.js';
4
- import { c as checkPkgVersion } from './check-pkg-version-DtP8CVbU.js';
5
- import { T as TerminalService } from './terminal.service-CB2kRLwO.js';
3
+ import { J as JustifiAnalytics } from './Analytics-Dgz_MQ1D.js';
4
+ import { c as checkPkgVersion } from './check-pkg-version-CPMg0K2m.js';
5
+ import { T as TerminalService } from './terminal.service-Q4KXLOka.js';
6
6
  import './config-state-BKOsYBXZ.js';
7
7
  import './dinero-HXpYMWUU.js';
8
8
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
9
9
  import './Business-DaDqgDrb.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-D6LKoG0M.js';
11
- import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-yZP4GBHd.js';
11
+ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-BraeNX17.js';
12
12
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
13
13
  import { T as Table, a as TableWrapper, b as TableComponent, c as TableHead, d as TableHeadRow, e as TableBody, f as TableLoadingState, g as TableEmptyState, h as TableErrorState, i as TableRow, j as TableFoot, k as TableFootRow, l as TableFootCell } from './table-CD17nv9n.js';
14
14
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
@@ -16,8 +16,8 @@ import { B as BadgeVariant, a as Badge } from './badge-B7QMpafx.js';
16
16
  import { a6 as tableHeadCell, a7 as getAlternateTableCellPart } from './parts-Bu7gdOaV.js';
17
17
  import { j as capitalFirstLetter } from './utils-D8J8OvxY.js';
18
18
  import { o as onQueryParamsChange, g as getRequestParams } from './terminals-list-params-state-DfRLZrOO.js';
19
- import './package-B_uQqefL.js';
20
- import './Api-od4ybwHR.js';
19
+ import './package-CiypNylL.js';
20
+ import './Api-DScockhO.js';
21
21
  import './index-3wWWWrhn.js';
22
22
  import './spinner-EZmqiSfd.js';
23
23
 
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.14.5-rc.1";
2
+ const version = "6.14.5";
3
3
  var packageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-od4ybwHR.js';
1
+ import { A as Api } from './Api-DScockhO.js';
2
2
  import './Plaid-DJ-4YL0_.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
4
  import './Business-DaDqgDrb.js';
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-od4ybwHR.js';
1
+ import { A as Api } from './Api-DScockhO.js';
2
2
  import './Plaid-DJ-4YL0_.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
4
  import './Business-DaDqgDrb.js';
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-od4ybwHR.js';
1
+ import { A as Api } from './Api-DScockhO.js';
2
2
  import './Plaid-DJ-4YL0_.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
4
  import './Business-DaDqgDrb.js';
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-od4ybwHR.js';
1
+ import { A as Api } from './Api-DScockhO.js';
2
2
  import './Plaid-DJ-4YL0_.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
4
  import './Business-DaDqgDrb.js';
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.14.5-rc.1";
2
+ const version = "6.14.5";
3
3
  var webcomponentsPackageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -1 +1 @@
1
- import{r as t,c as e,h as s}from"./p-CV0Pyo1O.js";import{m as i}from"./p-Dl0CAW76.js";import{C as h}from"./p-CT8oFJ_1.js";import{C as r,b as o,I as l,c as a,d as n}from"./p-8fO8CrtQ.js";import{J as c}from"./p-BnQkpNjd.js";import{c as d}from"./p-C3geClRX.js";import"./p-D1H6VUbM.js";import"./p-CELpJl4Y.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-B_uQqefL.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";const u=class{constructor(s){t(this,s),this.checkoutCompleted=e(this,"checkout-completed",7),this.checkoutExpired=e(this,"checkout-expired",7),this.errorEvent=e(this,"error-event",7),this.pollIntervalMs=3e3,this.pollTimeoutMs=6e5,this.terminalState="loading",this.paymentStatus="",this.errorMessage="",this.pollIntervalHandle=null,this.pollTimeoutHandle=null,this.failedDismissHandle=null,this.seenCompletionCreatedAts=new Set,this.inFlight=!1}componentWillLoad(){d(),this.analytics=new c(this),this.initialize()}disconnectedCallback(){var t;this.stopAll(),null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.stopAll(),this.initialize()}suppressInnerErrors(t){t.stopPropagation()}get effectivePollInterval(){return Math.max(1e3,this.pollIntervalMs)}initialize(){this.authToken&&this.checkoutId?(this.terminalState="loading",this.getCheckout=i({authToken:this.authToken,checkoutId:this.checkoutId,service:new h}),this.getCheckout({onSuccess:({checkout:t})=>this.handleInitialLoad(t),onError:({error:t,code:e,severity:s})=>{this.terminalState="error",this.errorMessage=t,this.errorEvent.emit({message:t,errorCode:e,severity:s})}})):this.errorEvent.emit({message:"authToken and checkoutId are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}handleInitialLoad(t){var e;switch(t.status){case l.expired:this.terminalState="expired",this.checkoutExpired.emit({checkoutId:this.checkoutId}),this.errorEvent.emit({message:a.CHECKOUT_EXPIRED,errorCode:o.CHECKOUT_EXPIRED,severity:r.ERROR});break;case l.completed:this.terminalState="completed",this.paymentStatus=this.resolvePaymentStatus(t),this.checkoutCompleted.emit({checkoutId:this.checkoutId,paymentStatus:this.paymentStatus});break;default:(null!==(e=t.completions)&&void 0!==e?e:[]).forEach((t=>this.seenCompletionCreatedAts.add(t.created_at))),this.terminalState="ready",this.startPolling()}}startPolling(){this.pollTimeoutHandle=setTimeout((()=>{this.stopAll(),this.terminalState="error",this.errorMessage="Checkout polling timed out",this.errorEvent.emit({message:"Checkout polling timed out",errorCode:o.FETCH_ERROR,severity:r.ERROR})}),this.pollTimeoutMs),this.pollIntervalHandle=setInterval((()=>this.tick()),this.effectivePollInterval)}tick(){this.inFlight||(this.inFlight=!0,this.getCheckout({onSuccess:({checkout:t})=>{this.inFlight=!1,this.handlePollResult(t)},onError:({error:t,code:e,severity:s})=>{this.inFlight=!1,this.stopAll(),this.terminalState="error",this.errorMessage=t,this.errorEvent.emit({message:t,errorCode:e,severity:s})}}))}handlePollResult(t){var e;const s=(null!==(e=t.completions)&&void 0!==e?e:[]).filter((t=>!this.seenCompletionCreatedAts.has(t.created_at)&&"failed"===t.payment_status));if(s.forEach((t=>this.seenCompletionCreatedAts.add(t.created_at))),s.length>0&&(this.terminalState="payment-failed",this.failedDismissHandle&&clearTimeout(this.failedDismissHandle),this.failedDismissHandle=setTimeout((()=>{"payment-failed"===this.terminalState&&(this.terminalState="ready")}),3e3)),t.status===l.completed)return this.stopAll(),this.terminalState="completed",this.paymentStatus=this.resolvePaymentStatus(t),void this.checkoutCompleted.emit({checkoutId:this.checkoutId,paymentStatus:this.paymentStatus});t.status===l.expired&&(this.stopAll(),this.terminalState="expired",this.checkoutExpired.emit({checkoutId:this.checkoutId}),this.errorEvent.emit({message:a.CHECKOUT_EXPIRED,errorCode:o.CHECKOUT_EXPIRED,severity:r.ERROR}))}resolvePaymentStatus(t){var e,s;const i=null===(s=[...null!==(e=t.completions)&&void 0!==e?e:[]].sort(((t,e)=>new Date(e.updated_at).getTime()-new Date(t.updated_at).getTime()))[0])||void 0===s?void 0:s.payment_status;return i===n.succeeded||null==i&&t.successful_payment_id?"succeeded":"pending"}stopAll(){this.pollIntervalHandle&&(clearInterval(this.pollIntervalHandle),this.pollIntervalHandle=null),this.pollTimeoutHandle&&(clearTimeout(this.pollTimeoutHandle),this.pollTimeoutHandle=null),this.failedDismissHandle&&(clearTimeout(this.failedDismissHandle),this.failedDismissHandle=null),this.inFlight=!1}render(){return this.authToken&&this.checkoutId?s("div",null,"loading"===this.terminalState&&null,("ready"===this.terminalState||"payment-failed"===this.terminalState)&&s("div",null,s("justifi-checkout-qr-code",{checkoutId:this.checkoutId}),"payment-failed"===this.terminalState&&s("p",null,"Payment failed. Please try again."),"ready"===this.terminalState&&s("p",null,"Scan to pay")),"completed"===this.terminalState&&s("div",null,s("p",null,"succeeded"===this.paymentStatus?"Payment received":"Payment pending")),"expired"===this.terminalState&&s("p",null,"Checkout expired. Please create a new checkout."),"error"===this.terminalState&&s("p",null,this.errorMessage)):null}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{u as justifi_qr_terminal}
1
+ import{r as t,c as e,h as s}from"./p-CV0Pyo1O.js";import{m as i}from"./p-Dl0CAW76.js";import{C as h}from"./p-BlqdDtQr.js";import{C as r,b as o,I as l,c as a,d as n}from"./p-8fO8CrtQ.js";import{J as c}from"./p-C8g8unYJ.js";import{c as d}from"./p-DcA_wt-j.js";import"./p-D1H6VUbM.js";import"./p-WnMmPpEb.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-CiypNylL.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";const u=class{constructor(s){t(this,s),this.checkoutCompleted=e(this,"checkout-completed",7),this.checkoutExpired=e(this,"checkout-expired",7),this.errorEvent=e(this,"error-event",7),this.pollIntervalMs=3e3,this.pollTimeoutMs=6e5,this.terminalState="loading",this.paymentStatus="",this.errorMessage="",this.pollIntervalHandle=null,this.pollTimeoutHandle=null,this.failedDismissHandle=null,this.seenCompletionCreatedAts=new Set,this.inFlight=!1}componentWillLoad(){d(),this.analytics=new c(this),this.initialize()}disconnectedCallback(){var t;this.stopAll(),null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.stopAll(),this.initialize()}suppressInnerErrors(t){t.stopPropagation()}get effectivePollInterval(){return Math.max(1e3,this.pollIntervalMs)}initialize(){this.authToken&&this.checkoutId?(this.terminalState="loading",this.getCheckout=i({authToken:this.authToken,checkoutId:this.checkoutId,service:new h}),this.getCheckout({onSuccess:({checkout:t})=>this.handleInitialLoad(t),onError:({error:t,code:e,severity:s})=>{this.terminalState="error",this.errorMessage=t,this.errorEvent.emit({message:t,errorCode:e,severity:s})}})):this.errorEvent.emit({message:"authToken and checkoutId are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}handleInitialLoad(t){var e;switch(t.status){case l.expired:this.terminalState="expired",this.checkoutExpired.emit({checkoutId:this.checkoutId}),this.errorEvent.emit({message:a.CHECKOUT_EXPIRED,errorCode:o.CHECKOUT_EXPIRED,severity:r.ERROR});break;case l.completed:this.terminalState="completed",this.paymentStatus=this.resolvePaymentStatus(t),this.checkoutCompleted.emit({checkoutId:this.checkoutId,paymentStatus:this.paymentStatus});break;default:(null!==(e=t.completions)&&void 0!==e?e:[]).forEach((t=>this.seenCompletionCreatedAts.add(t.created_at))),this.terminalState="ready",this.startPolling()}}startPolling(){this.pollTimeoutHandle=setTimeout((()=>{this.stopAll(),this.terminalState="error",this.errorMessage="Checkout polling timed out",this.errorEvent.emit({message:"Checkout polling timed out",errorCode:o.FETCH_ERROR,severity:r.ERROR})}),this.pollTimeoutMs),this.pollIntervalHandle=setInterval((()=>this.tick()),this.effectivePollInterval)}tick(){this.inFlight||(this.inFlight=!0,this.getCheckout({onSuccess:({checkout:t})=>{this.inFlight=!1,this.handlePollResult(t)},onError:({error:t,code:e,severity:s})=>{this.inFlight=!1,this.stopAll(),this.terminalState="error",this.errorMessage=t,this.errorEvent.emit({message:t,errorCode:e,severity:s})}}))}handlePollResult(t){var e;const s=(null!==(e=t.completions)&&void 0!==e?e:[]).filter((t=>!this.seenCompletionCreatedAts.has(t.created_at)&&"failed"===t.payment_status));if(s.forEach((t=>this.seenCompletionCreatedAts.add(t.created_at))),s.length>0&&(this.terminalState="payment-failed",this.failedDismissHandle&&clearTimeout(this.failedDismissHandle),this.failedDismissHandle=setTimeout((()=>{"payment-failed"===this.terminalState&&(this.terminalState="ready")}),3e3)),t.status===l.completed)return this.stopAll(),this.terminalState="completed",this.paymentStatus=this.resolvePaymentStatus(t),void this.checkoutCompleted.emit({checkoutId:this.checkoutId,paymentStatus:this.paymentStatus});t.status===l.expired&&(this.stopAll(),this.terminalState="expired",this.checkoutExpired.emit({checkoutId:this.checkoutId}),this.errorEvent.emit({message:a.CHECKOUT_EXPIRED,errorCode:o.CHECKOUT_EXPIRED,severity:r.ERROR}))}resolvePaymentStatus(t){var e,s;const i=null===(s=[...null!==(e=t.completions)&&void 0!==e?e:[]].sort(((t,e)=>new Date(e.updated_at).getTime()-new Date(t.updated_at).getTime()))[0])||void 0===s?void 0:s.payment_status;return i===n.succeeded||null==i&&t.successful_payment_id?"succeeded":"pending"}stopAll(){this.pollIntervalHandle&&(clearInterval(this.pollIntervalHandle),this.pollIntervalHandle=null),this.pollTimeoutHandle&&(clearTimeout(this.pollTimeoutHandle),this.pollTimeoutHandle=null),this.failedDismissHandle&&(clearTimeout(this.failedDismissHandle),this.failedDismissHandle=null),this.inFlight=!1}render(){return this.authToken&&this.checkoutId?s("div",null,"loading"===this.terminalState&&null,("ready"===this.terminalState||"payment-failed"===this.terminalState)&&s("div",null,s("justifi-checkout-qr-code",{checkoutId:this.checkoutId}),"payment-failed"===this.terminalState&&s("p",null,"Payment failed. Please try again."),"ready"===this.terminalState&&s("p",null,"Scan to pay")),"completed"===this.terminalState&&s("div",null,s("p",null,"succeeded"===this.paymentStatus?"Payment received":"Payment pending")),"expired"===this.terminalState&&s("p",null,"Checkout expired. Please create a new checkout."),"error"===this.terminalState&&s("p",null,this.errorMessage)):null}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{u as justifi_qr_terminal}