@justifi/webcomponents 6.5.1-rc.1 → 6.5.1-rc.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.
Files changed (81) hide show
  1. package/dist/cjs/{check-pkg-version-DNFRhNcW.js → check-pkg-version-Bw6Rz_E3.js} +1 -1
  2. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  3. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +2 -2
  4. package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +3 -7
  5. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  7. package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
  8. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
  10. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
  11. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
  13. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
  19. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
  21. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  22. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
  23. package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
  24. package/dist/cjs/{package-Z2EW-l1q.js → package--UMqvxMQ.js} +1 -1
  25. package/dist/collection/ui-components/google-pay-button.js +1 -5
  26. package/dist/docs.json +1 -1
  27. package/dist/esm/{check-pkg-version-B8HjTYV7.js → check-pkg-version-2BU_KPHv.js} +1 -1
  28. package/dist/esm/hidden-input_2.entry.js +1 -1
  29. package/dist/esm/internal-tokenize-payment-method_7.entry.js +2 -2
  30. package/dist/esm/justifi-apple-pay_8.entry.js +3 -7
  31. package/dist/esm/justifi-business-details.entry.js +2 -2
  32. package/dist/esm/justifi-business-form.entry.js +2 -2
  33. package/dist/esm/justifi-checkout.entry.js +2 -2
  34. package/dist/esm/justifi-checkouts-list.entry.js +2 -2
  35. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  36. package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
  37. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  38. package/dist/esm/justifi-order-terminals.entry.js +2 -2
  39. package/dist/esm/justifi-payment-details.entry.js +2 -2
  40. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  41. package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
  42. package/dist/esm/justifi-payments-list.entry.js +2 -2
  43. package/dist/esm/justifi-payout-details.entry.js +2 -2
  44. package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
  45. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  46. package/dist/esm/justifi-refund-payment.entry.js +2 -2
  47. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
  48. package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
  49. package/dist/esm/justifi-terminals-list.entry.js +2 -2
  50. package/dist/esm/{package-BGHeOtXW.js → package-Bx3wyDU2.js} +1 -1
  51. package/dist/module/google-pay.js +1 -5
  52. package/dist/module/package.js +1 -1
  53. package/dist/webcomponents/{p-0ca05626.entry.js → p-03930216.entry.js} +1 -1
  54. package/dist/webcomponents/{p-48cf806b.entry.js → p-0412f491.entry.js} +1 -1
  55. package/dist/webcomponents/{p-13b55ca1.entry.js → p-04154136.entry.js} +1 -1
  56. package/dist/webcomponents/{p-13ee296a.entry.js → p-06ce1202.entry.js} +1 -1
  57. package/dist/webcomponents/{p-def8124c.entry.js → p-0cd1c683.entry.js} +1 -1
  58. package/dist/webcomponents/{p-90d1c943.entry.js → p-1d04bd7a.entry.js} +1 -1
  59. package/dist/webcomponents/p-42658888.entry.js +1 -0
  60. package/dist/webcomponents/{p-499dc735.entry.js → p-43390a7f.entry.js} +1 -1
  61. package/dist/webcomponents/{p-fe8f8a7f.entry.js → p-47f6d271.entry.js} +1 -1
  62. package/dist/webcomponents/{p-c4044170.entry.js → p-5cba8448.entry.js} +1 -1
  63. package/dist/webcomponents/{p-0b64560d.entry.js → p-7b610d9e.entry.js} +1 -1
  64. package/dist/webcomponents/{p-ea18fcd9.entry.js → p-7bf6ded7.entry.js} +1 -1
  65. package/dist/webcomponents/{p-b9d64d6b.entry.js → p-88f58abe.entry.js} +1 -1
  66. package/dist/webcomponents/{p-adddbcb7.entry.js → p-8f4adcfd.entry.js} +1 -1
  67. package/dist/webcomponents/{p-1989a253.entry.js → p-9065d67e.entry.js} +1 -1
  68. package/dist/webcomponents/{p-c249483e.entry.js → p-9370cf0d.entry.js} +1 -1
  69. package/dist/webcomponents/p-Bx3wyDU2.js +1 -0
  70. package/dist/webcomponents/{p-MdHYTSKO.js → p-C01zp4xw.js} +1 -1
  71. package/dist/webcomponents/{p-ed9de6ed.entry.js → p-a0c9f0bd.entry.js} +1 -1
  72. package/dist/webcomponents/{p-dd0d0f96.entry.js → p-a87187c3.entry.js} +1 -1
  73. package/dist/webcomponents/{p-cee402a5.entry.js → p-b8426810.entry.js} +1 -1
  74. package/dist/webcomponents/{p-3d69b6b1.entry.js → p-c63b0271.entry.js} +1 -1
  75. package/dist/webcomponents/{p-c16dbe20.entry.js → p-d88d228f.entry.js} +1 -1
  76. package/dist/webcomponents/p-e9d13cca.entry.js +1 -0
  77. package/dist/webcomponents/webcomponents.esm.js +1 -1
  78. package/package.json +1 -1
  79. package/dist/webcomponents/p-BGHeOtXW.js +0 -1
  80. package/dist/webcomponents/p-af55fc0d.entry.js +0 -1
  81. package/dist/webcomponents/p-c14bc83f.entry.js +0 -1
@@ -10,7 +10,7 @@ import { P as PAYMENT_METHODS, a as PaymentMethod, b as PAYMENT_MODE } from './i
10
10
  import { H as Header1 } from './header-1-CPF3S2CC.js';
11
11
  import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-DRe0g_wf.js';
12
12
  import { H as Header3 } from './header-3-Cah707hu.js';
13
- import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-B8HjTYV7.js';
13
+ import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-2BU_KPHv.js';
14
14
  import './config-state-C2NXATwF.js';
15
15
  import './dinero-HXpYMWUU.js';
16
16
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages } from './ComponentError-Cjcsf8ku.js';
@@ -21,7 +21,7 @@ import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
21
21
  import { C as CheckoutService } from './checkout.service-D-dEMyXF.js';
22
22
  import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
23
23
  import './index-B-fWxE5e.js';
24
- import './package-BGHeOtXW.js';
24
+ import './package-Bx3wyDU2.js';
25
25
 
26
26
  // Centralized error codes for Apple Pay service
27
27
  var ApplePayServiceErrorCode;
@@ -1030,7 +1030,7 @@ const GooglePayButton = (props) => {
1030
1030
  props.clickHandler();
1031
1031
  }
1032
1032
  };
1033
- return (h("div", { class: 'google-pay-button-container' }, h("button", Object.assign({ class: getGooglePayButtonClass(), style: getButtonStyles(), onClick: handleClick, disabled: props.disabled || props.isProcessing || !props.isAvailable, "aria-label": 'Pay with Google Pay', type: 'button' }, props), props.isProcessing && ProcessingSpinner(), h("div", { class: 'google-pay-button-content' }, h("svg", { class: 'google-g-logo', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg' }, h("path", { d: 'M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z', fill: '#4285F4' }), h("path", { d: 'M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z', fill: '#34A853' }), h("path", { d: 'M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z', fill: '#FBBC05' }), h("path", { d: 'M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z', fill: '#EA4335' })), h("span", { class: 'pay-text' }, "Pay"))), h("style", null, `
1033
+ return (h("div", { class: "google-pay-button-container" }, h("button", Object.assign({ class: getGooglePayButtonClass(), style: getButtonStyles(), onClick: handleClick, disabled: props.disabled || props.isProcessing || !props.isAvailable, "aria-label": "Google Pay", type: "button" }, props), props.isProcessing && ProcessingSpinner(), h("div", { class: 'google-pay-button-content' }, h("svg", { width: "41", height: "17", xmlns: "http://www.w3.org/2000/svg" }, h("g", { fill: "none", "fill-rule": "evenodd" }, h("path", { d: "M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z", fill: "#FFF" }), h("path", { d: "M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944", fill: "#4285F4" }), h("path", { d: "M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703", fill: "#34A853" }), h("path", { d: "M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z", fill: "#FABB05" }), h("path", { d: "M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774", fill: "#E94235" }))))), h("style", null, `
1034
1034
  .google-pay-button-container {
1035
1035
  display: block;
1036
1036
  position: relative;
@@ -1043,7 +1043,6 @@ const GooglePayButton = (props) => {
1043
1043
  border: none;
1044
1044
  border-radius: 4px;
1045
1045
  cursor: pointer;
1046
- font-family: 'Google Sans', arial, sans-serif;
1047
1046
  font-size: 14px;
1048
1047
  font-weight: 500;
1049
1048
  letter-spacing: 0.25px;
@@ -1051,7 +1050,6 @@ const GooglePayButton = (props) => {
1051
1050
  outline: none;
1052
1051
  padding: 0 20px;
1053
1052
  position: relative;
1054
- transition: box-shadow 0.2s ease;
1055
1053
  min-width: 140px;
1056
1054
  min-height: 48px;
1057
1055
  }
@@ -1060,13 +1058,11 @@ const GooglePayButton = (props) => {
1060
1058
  .google-pay-button.google-pay-button-black {
1061
1059
  background-color: #000;
1062
1060
  color: #fff;
1063
- box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
1064
1061
  }
1065
1062
 
1066
1063
  .google-pay-button.google-pay-button-white {
1067
1064
  background-color: #fff;
1068
1065
  color: #3c4043;
1069
- box-shadow: 0 1px 1px 0 rgba(60, 64, 67, 0.30), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
1070
1066
  }
1071
1067
 
1072
1068
  /* Button content */
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-BX7Rjm1M.js';
3
3
  import { B as BusinessService } from './business.service-2j91Emgq.js';
4
4
  import { m as makeGetBusiness } from './get-business-Xt7B5dSo.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
6
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
7
7
  import './parts-wtuY7MT2.js';
8
8
  import './Api-DX-IWyBw.js';
9
9
  import './config-state-C2NXATwF.js';
@@ -16,7 +16,7 @@ import './index-DkoufM1t.js';
16
16
  import './Pagination-CLHwhyvu.js';
17
17
  import './Business-B5rtFhtR.js';
18
18
  import './utils-BeQLScSm.js';
19
- import './package-BGHeOtXW.js';
19
+ import './package-Bx3wyDU2.js';
20
20
 
21
21
  const BusinessDetails = class {
22
22
  constructor(hostRef) {
@@ -9,7 +9,7 @@ import './GooglePay-9bPcqGZ9.js';
9
9
  import './Pagination-CLHwhyvu.js';
10
10
  import { C as CountryCode, B as Business, b as BusinessFormServerErrors } from './Business-B5rtFhtR.js';
11
11
  import './Dispute-BH0Xfn-F.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
13
13
  import { B as Button } from './button-DBmjN7Ra.js';
14
14
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
15
15
  import { H as Header1 } from './header-1-CPF3S2CC.js';
@@ -25,7 +25,7 @@ import './business-form-options-D6s5H4RI.js';
25
25
  import './index-B-fWxE5e.js';
26
26
  import './utils-CIaHqjQt.js';
27
27
  import './index-DkoufM1t.js';
28
- import './package-BGHeOtXW.js';
28
+ import './package-Bx3wyDU2.js';
29
29
  import './Api-DX-IWyBw.js';
30
30
  import './parts-wtuY7MT2.js';
31
31
  import './utils-BeQLScSm.js';
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
3
3
  import { c as checkoutStore } from './GooglePay-9bPcqGZ9.js';
4
4
  import { d as checkoutSummary } from './parts-wtuY7MT2.js';
5
5
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
6
6
  import './event-types-CZfYo5-1.js';
7
7
  import { P as PAYMENT_METHODS } from './index-DkoufM1t.js';
8
- import './package-BGHeOtXW.js';
8
+ import './package-Bx3wyDU2.js';
9
9
  import './Api-DX-IWyBw.js';
10
10
  import './config-state-C2NXATwF.js';
11
11
  import './index-B-fWxE5e.js';
@@ -7,7 +7,7 @@ import './Pagination-CLHwhyvu.js';
7
7
  import './Business-B5rtFhtR.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
10
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
11
11
  import { C as CheckoutService } from './checkout.service-D-dEMyXF.js';
12
12
  import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-D1eF6c0B.js';
13
13
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
@@ -16,7 +16,7 @@ import { d as defaultColumnsKeys } from './checkouts-table-lgbZpF1o.js';
16
16
  import './index-B-fWxE5e.js';
17
17
  import './utils-CIaHqjQt.js';
18
18
  import './index-DkoufM1t.js';
19
- import './package-BGHeOtXW.js';
19
+ import './package-Bx3wyDU2.js';
20
20
  import './Api-DX-IWyBw.js';
21
21
  import './badge-Bgosx-DC.js';
22
22
  import './parts-wtuY7MT2.js';
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
3
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
4
4
  import { D as Dispute } from './Dispute-BH0Xfn-F.js';
5
5
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
6
6
  import { D as DisputeService } from './dispute.service-DPumDIuV.js';
7
- import './package-BGHeOtXW.js';
7
+ import './package-Bx3wyDU2.js';
8
8
  import './Api-DX-IWyBw.js';
9
9
  import './config-state-C2NXATwF.js';
10
10
  import './index-B-fWxE5e.js';
@@ -9,7 +9,7 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Compone
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
10
10
  import { D as DisputeService } from './dispute.service-DPumDIuV.js';
11
11
  import { D as DisputeManagementClickActions } from './event-types-Bg2SZArf.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
13
13
  import './dinero-HXpYMWUU.js';
14
14
  import './Api-DX-IWyBw.js';
15
15
  import './config-state-C2NXATwF.js';
@@ -19,7 +19,7 @@ import './Dispute-BH0Xfn-F.js';
19
19
  import './index-DkoufM1t.js';
20
20
  import './Pagination-CLHwhyvu.js';
21
21
  import './Business-B5rtFhtR.js';
22
- import './package-BGHeOtXW.js';
22
+ import './package-Bx3wyDU2.js';
23
23
 
24
24
  const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
25
25
  var _a;
@@ -7,14 +7,14 @@ import './Business-B5rtFhtR.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
8
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
9
9
  import { E as ErrorState } from './utils-BX7Rjm1M.js';
10
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
11
11
  import './config-state-C2NXATwF.js';
12
12
  import './index-B-fWxE5e.js';
13
13
  import './utils-CIaHqjQt.js';
14
14
  import './dinero-HXpYMWUU.js';
15
15
  import './index-DkoufM1t.js';
16
16
  import './parts-wtuY7MT2.js';
17
- import './package-BGHeOtXW.js';
17
+ import './package-Bx3wyDU2.js';
18
18
 
19
19
  const api = Api();
20
20
  class ReportsService {
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-DwYM91AU.js'
2
2
  import { ao as heading5, am as heading4, af as buttonPrimary, D as text } from './parts-wtuY7MT2.js';
3
3
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
4
4
  import './event-types-CZfYo5-1.js';
5
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
7
7
  import { B as BusinessService } from './business.service-2j91Emgq.js';
8
8
  import { B as Business } from './Business-B5rtFhtR.js';
@@ -16,7 +16,7 @@ import './Dispute-BH0Xfn-F.js';
16
16
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
17
17
  import { T as TerminalService } from './terminal.service-CkzrYIA_.js';
18
18
  import { k as formatPhoneNumber } from './utils-CIaHqjQt.js';
19
- import './package-BGHeOtXW.js';
19
+ import './package-Bx3wyDU2.js';
20
20
  import './Api-DX-IWyBw.js';
21
21
  import './index-B-fWxE5e.js';
22
22
  import './index-DkoufM1t.js';
@@ -3,7 +3,7 @@ import { P as PaymentService } from './payment.service-BreQSu6J.js';
3
3
  import { m as makeGetPaymentDetails } from './get-payment-details-CD_K6FQ3.js';
4
4
  import { E as ErrorState } from './utils-BX7Rjm1M.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
6
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
7
7
  import './Api-DX-IWyBw.js';
8
8
  import './config-state-C2NXATwF.js';
9
9
  import './index-B-fWxE5e.js';
@@ -16,7 +16,7 @@ import './Pagination-CLHwhyvu.js';
16
16
  import './Business-B5rtFhtR.js';
17
17
  import './utils-BeQLScSm.js';
18
18
  import './parts-wtuY7MT2.js';
19
- import './package-BGHeOtXW.js';
19
+ import './package-Bx3wyDU2.js';
20
20
 
21
21
  const PaymentDetails = class {
22
22
  constructor(hostRef) {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
3
3
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
4
4
  import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-ONP8lDnV.js';
5
5
  import { B as BusinessService } from './business.service-2j91Emgq.js';
@@ -8,7 +8,7 @@ import './GooglePay-9bPcqGZ9.js';
8
8
  import './Pagination-CLHwhyvu.js';
9
9
  import './Business-B5rtFhtR.js';
10
10
  import './Dispute-BH0Xfn-F.js';
11
- import './package-BGHeOtXW.js';
11
+ import './package-Bx3wyDU2.js';
12
12
  import './utils-BeQLScSm.js';
13
13
  import './config-state-C2NXATwF.js';
14
14
  import './index-B-fWxE5e.js';
@@ -6,7 +6,7 @@ import { h as PaymentBalanceTransaction } from './GooglePay-9bPcqGZ9.js';
6
6
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
7
  import './Business-B5rtFhtR.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
9
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
11
  import { P as PaymentService } from './payment.service-BreQSu6J.js';
12
12
  import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-Cjq1A6mO.js';
@@ -16,7 +16,7 @@ import { a as convertToLocal } from './utils-CIaHqjQt.js';
16
16
  import { S as tableHeadCell, T as getAlternateTableCellPart } from './parts-wtuY7MT2.js';
17
17
  import './index-B-fWxE5e.js';
18
18
  import './index-DkoufM1t.js';
19
- import './package-BGHeOtXW.js';
19
+ import './package-Bx3wyDU2.js';
20
20
  import './Api-DX-IWyBw.js';
21
21
  import './spinner-tU4D9iak.js';
22
22
 
@@ -8,7 +8,7 @@ import './Pagination-CLHwhyvu.js';
8
8
  import './Business-B5rtFhtR.js';
9
9
  import './Dispute-BH0Xfn-F.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
11
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
12
12
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
13
13
  import './event-types-CZfYo5-1.js';
14
14
  import { d as defaultColumnsKeys } from './payments-table-CK9BRZEz.js';
@@ -16,7 +16,7 @@ import './Api-DX-IWyBw.js';
16
16
  import './utils-CIaHqjQt.js';
17
17
  import './index-B-fWxE5e.js';
18
18
  import './index-DkoufM1t.js';
19
- import './package-BGHeOtXW.js';
19
+ import './package-Bx3wyDU2.js';
20
20
  import './payments-status-Dypl6WFL.js';
21
21
  import './badge-Bgosx-DC.js';
22
22
  import './parts-wtuY7MT2.js';
@@ -9,14 +9,14 @@ import './Business-B5rtFhtR.js';
9
9
  import './Dispute-BH0Xfn-F.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
11
  import { E as ErrorState } from './utils-BX7Rjm1M.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
13
13
  import { m as makeGetPayoutCSV } from './get-payout-csv-D-Lnooki.js';
14
14
  import './Api-DX-IWyBw.js';
15
15
  import './utils-CIaHqjQt.js';
16
16
  import './index-B-fWxE5e.js';
17
17
  import './index-DkoufM1t.js';
18
18
  import './parts-wtuY7MT2.js';
19
- import './package-BGHeOtXW.js';
19
+ import './package-Bx3wyDU2.js';
20
20
 
21
21
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
22
22
  var _a;
@@ -6,7 +6,7 @@ import { i as PayoutBalanceTransaction } from './GooglePay-9bPcqGZ9.js';
6
6
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
7
  import './Business-B5rtFhtR.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
9
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
11
  import { P as PayoutService } from './payout.service-DuqRe6oq.js';
12
12
  import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-Cjq1A6mO.js';
@@ -16,7 +16,7 @@ import { a as convertToLocal } from './utils-CIaHqjQt.js';
16
16
  import { S as tableHeadCell, T as getAlternateTableCellPart } from './parts-wtuY7MT2.js';
17
17
  import './index-B-fWxE5e.js';
18
18
  import './index-DkoufM1t.js';
19
- import './package-BGHeOtXW.js';
19
+ import './package-Bx3wyDU2.js';
20
20
  import './Api-DX-IWyBw.js';
21
21
  import './spinner-tU4D9iak.js';
22
22
 
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
3
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
4
4
  import { P as PayoutService } from './payout.service-DuqRe6oq.js';
5
5
  import './config-state-C2NXATwF.js';
6
6
  import './dinero-HXpYMWUU.js';
@@ -14,7 +14,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
14
14
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
15
15
  import './event-types-CZfYo5-1.js';
16
16
  import { d as defaultColumnsKeys } from './payouts-table-Dd8IDBBX.js';
17
- import './package-BGHeOtXW.js';
17
+ import './package-Bx3wyDU2.js';
18
18
  import './Api-DX-IWyBw.js';
19
19
  import './utils-CIaHqjQt.js';
20
20
  import './index-B-fWxE5e.js';
@@ -12,7 +12,7 @@ import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
12
12
  import './event-types-CZfYo5-1.js';
13
13
  import { P as PaymentService } from './payment.service-BreQSu6J.js';
14
14
  import { m as makeGetPaymentDetails } from './get-payment-details-CD_K6FQ3.js';
15
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
15
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
16
16
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
17
17
  import { A as Api } from './Api-DX-IWyBw.js';
18
18
  import { S as Skeleton } from './skeleton-BmRZRW5K.js';
@@ -21,7 +21,7 @@ import './dinero-HXpYMWUU.js';
21
21
  import './index-B-fWxE5e.js';
22
22
  import './index-DkoufM1t.js';
23
23
  import './parts-wtuY7MT2.js';
24
- import './package-BGHeOtXW.js';
24
+ import './package-Bx3wyDU2.js';
25
25
 
26
26
  const amountValidation = (maxAmount) => {
27
27
  const max = +maxAmount;
@@ -6,7 +6,7 @@ import './Pagination-CLHwhyvu.js';
6
6
  import './Business-B5rtFhtR.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
8
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
9
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
9
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
10
10
  import { p as processHTML, f as formatCurrency, r as removeAttribute, j as addAttribute } from './utils-CIaHqjQt.js';
11
11
  import { v as validateInsuranceValues, i as insuranceValues, a as insuranceErrors, H as Header2 } from './insurance-state-DRe0g_wf.js';
12
12
  import { D as text, E as textDanger } from './parts-wtuY7MT2.js';
@@ -16,7 +16,7 @@ import { S as Skeleton } from './skeleton-BmRZRW5K.js';
16
16
  import './config-state-C2NXATwF.js';
17
17
  import './index-B-fWxE5e.js';
18
18
  import './index-DkoufM1t.js';
19
- import './package-BGHeOtXW.js';
19
+ import './package-Bx3wyDU2.js';
20
20
  import './dinero-HXpYMWUU.js';
21
21
 
22
22
  const api = Api();
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
2
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
3
3
  import './event-types-CZfYo5-1.js';
4
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
4
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
5
5
  import { d as defaultColumnsKeys } from './terminal-orders-table-DSo5x2D7.js';
6
6
  import './config-state-C2NXATwF.js';
7
7
  import './dinero-HXpYMWUU.js';
@@ -12,7 +12,7 @@ import './Business-B5rtFhtR.js';
12
12
  import './Dispute-BH0Xfn-F.js';
13
13
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
14
14
  import { A as Api } from './Api-DX-IWyBw.js';
15
- import './package-BGHeOtXW.js';
15
+ import './package-Bx3wyDU2.js';
16
16
  import './parts-wtuY7MT2.js';
17
17
  import './utils-CIaHqjQt.js';
18
18
  import './badge-Bgosx-DC.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
3
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B8HjTYV7.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-2BU_KPHv.js';
4
4
  import { T as TerminalService } from './terminal.service-CkzrYIA_.js';
5
5
  import './config-state-C2NXATwF.js';
6
6
  import './dinero-HXpYMWUU.js';
@@ -13,7 +13,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
13
13
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
14
14
  import './event-types-CZfYo5-1.js';
15
15
  import { d as defaultColumnsKeys } from './terminals-table-D9okETJr.js';
16
- import './package-BGHeOtXW.js';
16
+ import './package-Bx3wyDU2.js';
17
17
  import './Api-DX-IWyBw.js';
18
18
  import './utils-CIaHqjQt.js';
19
19
  import './index-B-fWxE5e.js';
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.5.1-rc.1";
2
+ const version = "6.5.1-rc.2";
3
3
  var packageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -333,7 +333,7 @@ const GooglePayButton = (props) => {
333
333
  props.clickHandler();
334
334
  }
335
335
  };
336
- return (h("div", { class: 'google-pay-button-container' }, h("button", Object.assign({ class: getGooglePayButtonClass(), style: getButtonStyles(), onClick: handleClick, disabled: props.disabled || props.isProcessing || !props.isAvailable, "aria-label": 'Pay with Google Pay', type: 'button' }, props), props.isProcessing && ProcessingSpinner(), h("div", { class: 'google-pay-button-content' }, h("svg", { class: 'google-g-logo', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg' }, h("path", { d: 'M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z', fill: '#4285F4' }), h("path", { d: 'M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z', fill: '#34A853' }), h("path", { d: 'M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z', fill: '#FBBC05' }), h("path", { d: 'M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z', fill: '#EA4335' })), h("span", { class: 'pay-text' }, "Pay"))), h("style", null, `
336
+ return (h("div", { class: "google-pay-button-container" }, h("button", Object.assign({ class: getGooglePayButtonClass(), style: getButtonStyles(), onClick: handleClick, disabled: props.disabled || props.isProcessing || !props.isAvailable, "aria-label": "Google Pay", type: "button" }, props), props.isProcessing && ProcessingSpinner(), h("div", { class: 'google-pay-button-content' }, h("svg", { width: "41", height: "17", xmlns: "http://www.w3.org/2000/svg" }, h("g", { fill: "none", "fill-rule": "evenodd" }, h("path", { d: "M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z", fill: "#FFF" }), h("path", { d: "M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944", fill: "#4285F4" }), h("path", { d: "M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703", fill: "#34A853" }), h("path", { d: "M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z", fill: "#FABB05" }), h("path", { d: "M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774", fill: "#E94235" }))))), h("style", null, `
337
337
  .google-pay-button-container {
338
338
  display: block;
339
339
  position: relative;
@@ -346,7 +346,6 @@ const GooglePayButton = (props) => {
346
346
  border: none;
347
347
  border-radius: 4px;
348
348
  cursor: pointer;
349
- font-family: 'Google Sans', arial, sans-serif;
350
349
  font-size: 14px;
351
350
  font-weight: 500;
352
351
  letter-spacing: 0.25px;
@@ -354,7 +353,6 @@ const GooglePayButton = (props) => {
354
353
  outline: none;
355
354
  padding: 0 20px;
356
355
  position: relative;
357
- transition: box-shadow 0.2s ease;
358
356
  min-width: 140px;
359
357
  min-height: 48px;
360
358
  }
@@ -363,13 +361,11 @@ const GooglePayButton = (props) => {
363
361
  .google-pay-button.google-pay-button-black {
364
362
  background-color: #000;
365
363
  color: #fff;
366
- box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
367
364
  }
368
365
 
369
366
  .google-pay-button.google-pay-button-white {
370
367
  background-color: #fff;
371
368
  color: #3c4043;
372
- box-shadow: 0 1px 1px 0 rgba(60, 64, 67, 0.30), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
373
369
  }
374
370
 
375
371
  /* Button content */
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.5.1-rc.1";
2
+ const version = "6.5.1-rc.2";
3
3
  var webcomponentsPackageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -1 +1 @@
1
- import{h as t,r as s,c as i}from"./p-DwYM91AU.js";import{A as e}from"./p-C8yN3uBj.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import{c as a}from"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as n,a as c}from"./p-D2muobcE.js";import{c as l,J as h}from"./p-MdHYTSKO.js";import{p as d,f as p,r as u,j as v}from"./p-BS7OgSQe.js";import{v as m,i as y,a as f,H as j}from"./p-nrZ9yHcl.js";import{D as g,E as _}from"./p-wtuY7MT2.js";import{S as w}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{S as k}from"./p-c7MCfTgE.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-BGHeOtXW.js";import"./p-HXpYMWUU.js";const T=e();class C{async fetchQuote(t,s){return T.post({endpoint:"insurance/quotes",body:s,authToken:t})}async toggleCoverage(t,s,i){return T.post({endpoint:`insurance/quotes/${s}/toggle`,body:i,authToken:t})}}const b=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(k,{width:"35%",height:"30px"})),t("div",{class:"col-12"},t(k,{width:"70%"})),t("div",{class:"col-12"},t(k,{width:"40%"})),t("div",{class:"col-12"},t(k,{width:"40%"})),t("div",{class:"col-12"},t(k,{width:"100%"})),t("div",{class:"col-12"},t(k,{width:"80%"}))),H=class{constructor(t){s(this,t),this.insuranceUpdated=i(this,"insurance-updated"),this.errorEvent=i(this,"error-event"),this.isLoading=!0}async validate(){return m()}processHTMLContent(t){return d(t,[t=>u(t,"style"),t=>v(t,"a","part",g),t=>v(t,"p","part",g)])}componentWillLoad(){l(),this.analytics=new h(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){const t=this.authToken||a.authToken;if(!t)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const s={authToken:t,service:new C};this.getQuote=(({authToken:t,service:s})=>async({payload:i,onSuccess:e,onError:o})=>{var a;try{const l=await s.fetchQuote(t,i);if(l.error)return o({error:c(l.error),code:n(null===(a=l.error)||void 0===a?void 0:a.code),severity:r.ERROR});e({quote:l.data})}catch(t){const s=n(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})(s),this.toggleCoverage=(({authToken:t,service:s})=>async({quoteId:i,payload:e,onSuccess:o,onError:a})=>{var l;try{const h=await s.toggleCoverage(t,i,e);if(h.error)return a({error:c(h.error),code:n(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(t){const s=n(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})(s)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||a.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:t})=>{this.quote=t,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[t.policy_type]=t.accepted,this.isLoading=!1},onError:({error:t,code:s,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}onChangeHandler(t,s){this.accepted=s,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}get error(){var t;return f[null===(t=this.quote)||void 0===t?void 0:t.policy_type]}render(){var s,i,e,r;return a&&!1===a.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):t(w,null,this.isLoading?t(b,null):t("div",null,t(j,{text:null===(s=this.quote)||void 0===s?void 0:s.product.title,class:"fs-5 fw-bold pb-3"}),t("small",{part:g,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),t("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:_},"Please select an option"),t("small",{part:g,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{H as justifi_season_interruption_insurance}
1
+ import{h as t,r as s,c as i}from"./p-DwYM91AU.js";import{A as e}from"./p-C8yN3uBj.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import{c as a}from"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as n,a as c}from"./p-D2muobcE.js";import{c as l,J as h}from"./p-C01zp4xw.js";import{p as d,f as p,r as u,j as v}from"./p-BS7OgSQe.js";import{v as m,i as y,a as f,H as j}from"./p-nrZ9yHcl.js";import{D as g,E as _}from"./p-wtuY7MT2.js";import{S as w}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{S as k}from"./p-c7MCfTgE.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-Bx3wyDU2.js";import"./p-HXpYMWUU.js";const C=e();class T{async fetchQuote(t,s){return C.post({endpoint:"insurance/quotes",body:s,authToken:t})}async toggleCoverage(t,s,i){return C.post({endpoint:`insurance/quotes/${s}/toggle`,body:i,authToken:t})}}const b=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(k,{width:"35%",height:"30px"})),t("div",{class:"col-12"},t(k,{width:"70%"})),t("div",{class:"col-12"},t(k,{width:"40%"})),t("div",{class:"col-12"},t(k,{width:"40%"})),t("div",{class:"col-12"},t(k,{width:"100%"})),t("div",{class:"col-12"},t(k,{width:"80%"}))),H=class{constructor(t){s(this,t),this.insuranceUpdated=i(this,"insurance-updated"),this.errorEvent=i(this,"error-event"),this.isLoading=!0}async validate(){return m()}processHTMLContent(t){return d(t,[t=>u(t,"style"),t=>v(t,"a","part",g),t=>v(t,"p","part",g)])}componentWillLoad(){l(),this.analytics=new h(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){const t=this.authToken||a.authToken;if(!t)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const s={authToken:t,service:new T};this.getQuote=(({authToken:t,service:s})=>async({payload:i,onSuccess:e,onError:o})=>{var a;try{const l=await s.fetchQuote(t,i);if(l.error)return o({error:c(l.error),code:n(null===(a=l.error)||void 0===a?void 0:a.code),severity:r.ERROR});e({quote:l.data})}catch(t){const s=n(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})(s),this.toggleCoverage=(({authToken:t,service:s})=>async({quoteId:i,payload:e,onSuccess:o,onError:a})=>{var l;try{const h=await s.toggleCoverage(t,i,e);if(h.error)return a({error:c(h.error),code:n(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(t){const s=n(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})(s)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||a.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:t})=>{this.quote=t,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[t.policy_type]=t.accepted,this.isLoading=!1},onError:({error:t,code:s,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}onChangeHandler(t,s){this.accepted=s,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}get error(){var t;return f[null===(t=this.quote)||void 0===t?void 0:t.policy_type]}render(){var s,i,e,r;return a&&!1===a.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):t(w,null,this.isLoading?t(b,null):t("div",null,t(j,{text:null===(s=this.quote)||void 0===s?void 0:s.product.title,class:"fs-5 fw-bold pb-3"}),t("small",{part:g,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),t("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:_},"Please select an option"),t("small",{part:g,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{H as justifi_season_interruption_insurance}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{P as o}from"./p-BKM7YeAB.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{e as p}from"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-BNqo3kt0.js";import{c as m,J as c}from"./p-MdHYTSKO.js";import{m as d}from"./p-DYGIC0QH.js";import"./p-C8yN3uBj.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-wtuY7MT2.js";import"./p-BGHeOtXW.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.enableRecordClick=!1,this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=d({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent,enableRecordClick:this.enableRecordClick})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
1
+ import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{P as o}from"./p-BKM7YeAB.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{e as p}from"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-BNqo3kt0.js";import{c as m,J as c}from"./p-C01zp4xw.js";import{m as d}from"./p-DYGIC0QH.js";import"./p-C8yN3uBj.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-wtuY7MT2.js";import"./p-Bx3wyDU2.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.enableRecordClick=!1,this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=d({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent,enableRecordClick:this.enableRecordClick})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
@@ -1 +1 @@
1
- import{r as s,c as i,h as t}from"./p-DwYM91AU.js";import{c as o,J as r}from"./p-MdHYTSKO.js";import{C as e,a as n}from"./p-Cjcsf8ku.js";import{m as p,a}from"./p-5aA7gjr5.js";import{B as h}from"./p-Dy5btfGV.js";import{A as m}from"./p-C8yN3uBj.js";import"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-BGHeOtXW.js";import"./p-D2muobcE.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-DkoufM1t.js";const d=m();class u{async postProvisioning(s,i,t){return d.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const c=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new r(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=p({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new u})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:n.MISSING_PROPS,severity:e.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"41e96a931c082212f43bdd84dd5c948fac1eddfc",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{c as justifi_payment_provisioning}
1
+ import{r as s,c as i,h as t}from"./p-DwYM91AU.js";import{c as o,J as r}from"./p-C01zp4xw.js";import{C as e,a as p}from"./p-Cjcsf8ku.js";import{m as n,a}from"./p-5aA7gjr5.js";import{B as h}from"./p-Dy5btfGV.js";import{A as m}from"./p-C8yN3uBj.js";import"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-Bx3wyDU2.js";import"./p-D2muobcE.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-DkoufM1t.js";const d=m();class u{async postProvisioning(s,i,t){return d.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const c=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new r(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new u})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:p.MISSING_PROPS,severity:e.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"41e96a931c082212f43bdd84dd5c948fac1eddfc",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{c as justifi_payment_provisioning}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{c as e,J as a}from"./p-MdHYTSKO.js";import{P as p}from"./p-BKM7YeAB.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{e as n}from"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m}from"./p-DYGIC0QH.js";import{m as u,S as d}from"./p-BxtmTjqW.js";import{S as j}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{d as f}from"./p-KPmnq8xf.js";import"./p-BGHeOtXW.js";import"./p-C8yN3uBj.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-bolTb61p.js";import"./p-DOLBAxYf.js";import"./p-wtuY7MT2.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=f,this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new p};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:e,onError:a})=>{var p,m;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return a({error:h(u.error),code:c(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);e({payouts:(null===(p=u.data)||void 0===p?void 0:p.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:o.ERROR})}})(t),this.getPayoutCSV=m(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(j,{key:"2572e4f1fe516a74fe0169ebe9068840afc7ae6a"},i("payouts-list-core",{key:"bc1d6cde204e4f0d93bd342aa247c32dd97442ff",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_payouts_list}
1
+ import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{c as e,J as p}from"./p-C01zp4xw.js";import{P as a}from"./p-BKM7YeAB.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{e as n}from"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m}from"./p-DYGIC0QH.js";import{m as u,S as d}from"./p-BxtmTjqW.js";import{S as j}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{d as f}from"./p-KPmnq8xf.js";import"./p-Bx3wyDU2.js";import"./p-C8yN3uBj.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-bolTb61p.js";import"./p-DOLBAxYf.js";import"./p-wtuY7MT2.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=f,this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:e,onError:p})=>{var a,m;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return p({error:h(u.error),code:c(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);e({payouts:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:o.ERROR})}})(t),this.getPayoutCSV=m(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(j,{key:"2572e4f1fe516a74fe0169ebe9068840afc7ae6a"},i("payouts-list-core",{key:"bc1d6cde204e4f0d93bd342aa247c32dd97442ff",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_payouts_list}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import{c as e,J as a}from"./p-MdHYTSKO.js";import{T as n}from"./p-BN1PYSFf.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{f as p}from"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m,S as d}from"./p-BxtmTjqW.js";import{S as u}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-DkOiS6Zr.js";import"./p-BGHeOtXW.js";import"./p-C8yN3uBj.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-DOLBAxYf.js";import"./p-wtuY7MT2.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=j,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:a})=>{var n,m;try{const d=await i.fetchTerminals(t,s,o);if(d.error)return a({error:h(d.error),code:c(null===(m=d.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},d.page_info);e({terminals:(null===(n=d.data)||void 0===n?void 0:n.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new n}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(u,{key:"bdd2e2c152c5d1482d6b90ad60b9d4c0bbaca0b3"},i("terminals-list-core",{key:"2444663ce45854b825f8a78cb15a25a0b5111d52",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_terminals_list}
1
+ import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import{c as e,J as a}from"./p-C01zp4xw.js";import{T as p}from"./p-BN1PYSFf.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{f as n}from"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m,S as d}from"./p-BxtmTjqW.js";import{S as u}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-DkOiS6Zr.js";import"./p-Bx3wyDU2.js";import"./p-C8yN3uBj.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-DOLBAxYf.js";import"./p-wtuY7MT2.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=j,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:a})=>{var p,m;try{const d=await i.fetchTerminals(t,s,o);if(d.error)return a({error:h(d.error),code:c(null===(m=d.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},d.page_info);e({terminals:(null===(p=d.data)||void 0===p?void 0:p.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new p}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(u,{key:"bdd2e2c152c5d1482d6b90ad60b9d4c0bbaca0b3"},i("terminals-list-core",{key:"2444663ce45854b825f8a78cb15a25a0b5111d52",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_terminals_list}