@justifi/webcomponents 6.12.1 → 6.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/cjs/{Analytics-BhduX1FR.js → Analytics-DcqsdFaD.js} +2 -2
  2. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  3. package/dist/cjs/card-form.cjs.entry.js +2 -2
  4. package/dist/cjs/{check-pkg-version-Bd2yxoh4.js → check-pkg-version-DFTQGZz1.js} +1 -1
  5. package/dist/cjs/{get-business-CKC1P4Qs.js → get-business-TFzhaBXn.js} +4 -1
  6. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  7. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  8. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +74 -36
  9. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +3 -3
  10. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  11. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
  12. package/dist/cjs/justifi-business-form.cjs.entry.js +3 -3
  13. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  14. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -6
  15. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
  16. package/dist/cjs/justifi-dispute-management.cjs.entry.js +4 -4
  17. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +7 -7
  18. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -7
  20. package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
  21. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -4
  22. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
  23. package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
  24. package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
  25. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
  26. package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
  27. package/dist/cjs/justifi-refund-payment.cjs.entry.js +3 -3
  28. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
  29. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
  30. package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
  31. package/dist/cjs/{package-CjFkmEML.js → package-bM0MyhTf.js} +1 -1
  32. package/dist/collection/actions/business/get-business.js +4 -1
  33. package/dist/collection/api/Analytics.js +1 -1
  34. package/dist/collection/collection-manifest.json +6 -6
  35. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +3 -1
  36. package/dist/collection/components/checkout/justifi-checkout.js +2 -3
  37. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  38. package/dist/collection/components/dispute-management/dispute-response/justifi-additional-statement.js +1 -1
  39. package/dist/collection/components/dispute-management/dispute-response/justifi-cancellation-policy.js +1 -1
  40. package/dist/collection/components/dispute-management/dispute-response/justifi-customer-details.js +1 -1
  41. package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +1 -1
  42. package/dist/collection/components/dispute-management/dispute-response/justifi-duplicate-charge.js +1 -1
  43. package/dist/collection/components/dispute-management/dispute-response/justifi-electronic-evidence.js +1 -1
  44. package/dist/collection/components/dispute-management/dispute-response/justifi-product-or-service.js +1 -1
  45. package/dist/collection/components/dispute-management/dispute-response/justifi-refund-policy.js +1 -1
  46. package/dist/collection/components/dispute-management/dispute-response/justifi-shipping-details.js +1 -1
  47. package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
  48. package/dist/collection/components/dispute-management/justifi-dispute-notification.js +2 -2
  49. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +34 -14
  50. package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +4 -1
  51. package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +27 -14
  52. package/dist/collection/components/modular-checkout/sub-components/justifi-saved-payment-methods.js +7 -5
  53. package/dist/collection/components/order-terminals/justifi-order-terminals.js +4 -3
  54. package/dist/docs.json +6 -6
  55. package/dist/esm/{Analytics-4PEV3c9V.js → Analytics-Cyc3ZLPx.js} +2 -2
  56. package/dist/esm/bank-account-form.entry.js +2 -2
  57. package/dist/esm/card-form.entry.js +2 -2
  58. package/dist/esm/{check-pkg-version-BmgaID9z.js → check-pkg-version-6iGDh82c.js} +1 -1
  59. package/dist/esm/{get-business-DpFRs5dE.js → get-business-DIpEbczl.js} +4 -1
  60. package/dist/esm/hidden-input_2.entry.js +1 -1
  61. package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
  62. package/dist/esm/justifi-apple-pay_11.entry.js +75 -37
  63. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +3 -3
  64. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  65. package/dist/esm/justifi-business-details.entry.js +4 -4
  66. package/dist/esm/justifi-business-form.entry.js +3 -3
  67. package/dist/esm/justifi-card-form.entry.js +3 -3
  68. package/dist/esm/justifi-checkout.entry.js +5 -6
  69. package/dist/esm/justifi-checkouts-list.entry.js +3 -3
  70. package/dist/esm/justifi-dispute-management.entry.js +4 -4
  71. package/dist/esm/justifi-dispute-notification_3.entry.js +7 -7
  72. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  73. package/dist/esm/justifi-order-terminals.entry.js +8 -7
  74. package/dist/esm/justifi-payment-details.entry.js +3 -3
  75. package/dist/esm/justifi-payment-provisioning.entry.js +6 -4
  76. package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
  77. package/dist/esm/justifi-payments-list.entry.js +3 -3
  78. package/dist/esm/justifi-payout-details.entry.js +3 -3
  79. package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
  80. package/dist/esm/justifi-payouts-list.entry.js +3 -3
  81. package/dist/esm/justifi-refund-payment.entry.js +3 -3
  82. package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
  83. package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
  84. package/dist/esm/justifi-terminals-list.entry.js +3 -3
  85. package/dist/esm/{package-CXKOe1m5.js → package-beXEDfB9.js} +1 -1
  86. package/dist/module/Analytics.js +1 -1
  87. package/dist/module/dispute-response-core.js +1 -1
  88. package/dist/module/get-business.js +4 -1
  89. package/dist/module/justifi-additional-statement2.js +1 -1
  90. package/dist/module/justifi-apple-pay2.js +34 -14
  91. package/dist/module/justifi-cancellation-policy2.js +1 -1
  92. package/dist/module/justifi-checkout.js +2 -3
  93. package/dist/module/justifi-customer-details2.js +1 -1
  94. package/dist/module/justifi-dispute-management.js +1 -1
  95. package/dist/module/justifi-dispute-notification2.js +2 -2
  96. package/dist/module/justifi-dispute-response2.js +1 -1
  97. package/dist/module/justifi-duplicate-charge2.js +1 -1
  98. package/dist/module/justifi-electronic-evidence2.js +1 -1
  99. package/dist/module/justifi-google-pay2.js +4 -1
  100. package/dist/module/justifi-order-terminals.js +4 -3
  101. package/dist/module/justifi-payment-provisioning.js +3 -1
  102. package/dist/module/justifi-plaid-payment-method2.js +27 -14
  103. package/dist/module/justifi-product-or-service2.js +1 -1
  104. package/dist/module/justifi-refund-policy2.js +1 -1
  105. package/dist/module/justifi-saved-payment-methods2.js +7 -5
  106. package/dist/module/justifi-shipping-details2.js +1 -1
  107. package/dist/module/package.js +1 -1
  108. package/dist/types/actions/business/get-business.d.ts +2 -1
  109. package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +1 -1
  110. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +3 -0
  111. package/dist/types/components/modular-checkout/sub-components/justifi-plaid-payment-method.d.ts +2 -2
  112. package/dist/webcomponents/{p-647668b6.entry.js → p-1c4f5f1d.entry.js} +1 -1
  113. package/dist/webcomponents/{p-f4b390bc.entry.js → p-1e8135f0.entry.js} +1 -1
  114. package/dist/webcomponents/{p-017edf85.entry.js → p-2a755daf.entry.js} +1 -1
  115. package/dist/webcomponents/{p-0e9cb724.entry.js → p-31e74a5a.entry.js} +1 -1
  116. package/dist/webcomponents/{p-2b25c768.entry.js → p-3488951f.entry.js} +1 -1
  117. package/dist/webcomponents/p-437a99dc.entry.js +1 -0
  118. package/dist/webcomponents/p-49c0cd3a.entry.js +1 -0
  119. package/dist/webcomponents/p-4d21df48.entry.js +1 -0
  120. package/dist/webcomponents/p-50f5e313.entry.js +1 -0
  121. package/dist/webcomponents/{p-06e88d51.entry.js → p-5ef854e0.entry.js} +1 -1
  122. package/dist/webcomponents/{p-cd267d76.entry.js → p-67498c25.entry.js} +1 -1
  123. package/dist/webcomponents/{p-61ebdd8b.entry.js → p-6f0c582a.entry.js} +1 -1
  124. package/dist/webcomponents/{p-f481695c.entry.js → p-94306884.entry.js} +1 -1
  125. package/dist/webcomponents/{p-b76b743e.entry.js → p-9937e2e7.entry.js} +1 -1
  126. package/dist/webcomponents/{p-b6d59ff4.entry.js → p-9dca1331.entry.js} +1 -1
  127. package/dist/webcomponents/{p-GP5gWjhc.js → p-DgH-jcIo.js} +1 -1
  128. package/dist/webcomponents/p-a75d76ff.entry.js +1 -0
  129. package/dist/webcomponents/p-a7778957.entry.js +1 -0
  130. package/dist/webcomponents/p-a9d7cdae.entry.js +1 -0
  131. package/dist/webcomponents/p-b060a9c9.entry.js +1 -0
  132. package/dist/webcomponents/p-bdf21f71.entry.js +1 -0
  133. package/dist/webcomponents/{p-259ea5e0.entry.js → p-be5d1005.entry.js} +1 -1
  134. package/dist/webcomponents/p-beXEDfB9.js +1 -0
  135. package/dist/webcomponents/{p-d3829e18.entry.js → p-c09fccd3.entry.js} +1 -1
  136. package/dist/webcomponents/p-c827cbc9.entry.js +1 -0
  137. package/dist/webcomponents/{p-1e080e95.entry.js → p-c9e1df15.entry.js} +1 -1
  138. package/dist/webcomponents/p-cc5b7c27.entry.js +1 -0
  139. package/dist/webcomponents/{p-1e66d430.entry.js → p-e0b3735f.entry.js} +1 -1
  140. package/dist/webcomponents/p-ef89824b.entry.js +1 -0
  141. package/dist/webcomponents/p-qrNmDp6K.js +1 -0
  142. package/dist/webcomponents/{p-cXPhRFs-.js → p-zi3ljCdQ.js} +1 -1
  143. package/dist/webcomponents/webcomponents.esm.js +1 -1
  144. package/package.json +1 -1
  145. package/dist/webcomponents/p-11faee45.entry.js +0 -1
  146. package/dist/webcomponents/p-238163d8.entry.js +0 -1
  147. package/dist/webcomponents/p-4f57368a.entry.js +0 -1
  148. package/dist/webcomponents/p-608a41d2.entry.js +0 -1
  149. package/dist/webcomponents/p-6ecb3ef9.entry.js +0 -1
  150. package/dist/webcomponents/p-87a4b33f.entry.js +0 -1
  151. package/dist/webcomponents/p-9870fff0.entry.js +0 -1
  152. package/dist/webcomponents/p-CXKOe1m5.js +0 -1
  153. package/dist/webcomponents/p-GJyHX3us.js +0 -1
  154. package/dist/webcomponents/p-b8c59954.entry.js +0 -1
  155. package/dist/webcomponents/p-cf31ccdd.entry.js +0 -1
  156. package/dist/webcomponents/p-d58a330d.entry.js +0 -1
  157. package/dist/webcomponents/p-ed580b3c.entry.js +0 -1
  158. package/dist/webcomponents/p-f91c49a2.entry.js +0 -1
@@ -9,8 +9,8 @@ import { C as ComponentErrorSeverity, e as ComponentErrorCodes } from './Plaid-B
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-DcfpJGDZ.js';
10
10
  import { D as DisputeService } from './dispute.service-vlYGy0nR.js';
11
11
  import { D as DisputeManagementClickActions } from './event-types-Bg2SZArf.js';
12
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
13
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
12
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
13
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
14
14
  import './dinero-HXpYMWUU.js';
15
15
  import './Dispute-BH0Xfn-F.js';
16
16
  import './Api-DMd8hTI-.js';
@@ -18,7 +18,7 @@ import './config-state-kKn89dp1.js';
18
18
  import './index-cDVGjRkU.js';
19
19
  import './Pagination-CLHwhyvu.js';
20
20
  import './Business-BcNb9bVO.js';
21
- import './package-CXKOe1m5.js';
21
+ import './package-beXEDfB9.js';
22
22
 
23
23
  const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
24
24
  var _a;
@@ -153,8 +153,8 @@ const JustifiDisputeNotification = class {
153
153
  }
154
154
  render() {
155
155
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
156
- return (h(StyledHost, { key: 'a6dbf060e1e5a39e7fe7f3112c6e034a59f5a928' }, this.isLoading && (h("div", { key: 'eaa14797c7580a555496bf7e8932eeac73496bcb', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'bb1ffea882722815cd2b13918106b353f009c96a', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: 'b60948cb4edaf5a4de1d67a09099153fea963b16', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: '0a4138f385131b03888d013057ef93e9052c1fa2', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && this.isDueDatePassed() && (h("div", { key: '85c4b8c9377e2b835508a9cb1be63054bc79cd43', part: text }, h("h1", { key: '5ae89800fb1483aa05a69f065bc800992404e4d3', class: "h4", part: heading4 }, "The due date (", (_b = this.dispute) === null || _b === void 0 ? void 0 :
157
- _b.due_date, ") for this dispute has passed"), h("p", { key: '75c85bf9609b8727d1397c9d6a2540af93e1a253' }, "You can no longer submit evidence to counter this dispute."))), ((_c = this.dispute) === null || _c === void 0 ? void 0 : _c.needsResponse) && !this.isDueDatePassed() && (h("div", { key: 'c4595f142ec169b5bf0f1010ba6632714f886b83', part: text }, h("h1", { key: 'ca612f94c53ab7f33a30ac4a1504a4335f19c381', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '7160eb7a6adc283b34815dce378b4184b08c6834' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '9a06a5d966d7fcafe87e5c9103440f23f8e064cc', class: "h5" }, "Dispute details"), h("div", { key: 'cf72240182797f37cdcc6af724cf898757da825d', class: "d-table gap-2" }, h("div", { key: 'b834b58994ad1a512e527fd59614c6164c0bd496', class: "d-table-row gap-2" }, h("span", { key: '3f305bf8b5683003e02fba3dc75b2f5500a548e9', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '57b3dabcfa8db14ecd7b3c7ddedbdd280f5552d1', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_d = this.dispute) === null || _d === void 0 ? void 0 : _d.amount))), h("div", { key: '3c138f8f5af1d0a0ae47489ec2bed97236b3334a', class: "d-table-row gap-2" }, h("span", { key: '7e121a904798c9dc9da1d622ba9c270ee17df4b6', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: 'aa10e2315d8bfef4e7a4972fef48b4dd08685a65', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_e = this.dispute) === null || _e === void 0 ? void 0 : _e.reason)), h("div", { key: 'e304065263a80702ab79ee850dc1323616eb3468', class: "d-table-row gap-2" }, h("span", { key: '4ea490a9617e179edf1a2eb1180e9eb807262ad7', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Due Date"), h("span", { key: '44da82cf86775600312b4915361b246841073ef6', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_f = this.dispute) === null || _f === void 0 ? void 0 : _f.due_date))), h("div", { key: '4fbc80ef5dc90b0f78d6617e0776d7a7c1371ea2', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '3a65ea6fdf5f0ea4b18cc9fee6dbebea6a0d3708', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '56a4adb004c1663beb045f69c69e9e61c5a93e6d', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.underReview) && (h("div", { key: 'd29034e2e03b098fafced8ae7bd8b0c04b429b8e', part: text }, h("h1", { key: '1f46bde8fa553508a6f42bb2e9f9ea5847ffadb3', class: "h4", part: heading4 }, "This payment is disputed and under review"), h("p", { key: '687de84072f9bc1ff40504abebcfe066fddff933' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_h = this.dispute) === null || _h === void 0 ? void 0 : _h.won) && (h("div", { key: 'e7934860b19cc5b7d6564adbd7ca19acbe2eef4d', part: text }, h("h1", { key: '994928d139ef6027a7ca1bb9bb33a3c645610c64', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '9ab997a8c0e615d5090ec19ce56d83dbabbc10cf' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_j = this.dispute) === null || _j === void 0 ? void 0 : _j.lost) && (h("div", { key: '1e31aed9becfeffeccdf604c93bc9eeb88431cf7', part: text }, h("h1", { key: '9959904c6c8ff6a3b09fd5f53b1a500ffce9af70', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: 'e31b5e2bcd90955000d6950aa316e8b58b0e3065' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
156
+ return (h(StyledHost, { key: '736e9c381309e08926162292fdbf7b62cc2087e9' }, this.isLoading && (h("div", { key: '21bdc2b142c32d00323211dda36074976b63dbb4', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'e73b642a8c2a02b397affeb1fff5e5c35a3d87fb', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: '8ba58aa2227e88903a3eccc2bb8b577c05515139', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: 'fb88ccd69ee44cf8af5e9093906fc21016a2a5b6', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && this.isDueDatePassed() && (h("div", { key: 'e1fb6db600ef9418b47eb5e51ef8c62f4b005183', part: text }, h("h1", { key: 'ac2e9efc93c68d30f2a20ce2816c668826adfe6d', class: "h4", part: heading4 }, "The due date (", (_b = this.dispute) === null || _b === void 0 ? void 0 :
157
+ _b.due_date, ") for this dispute has passed"), h("p", { key: '6d189ad1eaa6c9e144749a5bab6aefcf3541e382' }, "You can no longer submit evidence to counter this dispute."))), ((_c = this.dispute) === null || _c === void 0 ? void 0 : _c.needsResponse) && !this.isDueDatePassed() && (h("div", { key: '2212952890d5fedb650c15d6e526e3fbf9ab9a68', part: text }, h("h1", { key: '67426dbff584f957e89a8d86570fab038de53f8d', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '513490e2c25f4b12d1400d74862618aaf9794bd3' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '352898d8cae890914bf8feffd0ca913b71cd6c18', class: "h5" }, "Dispute details"), h("div", { key: 'b2b00e53e015d2cfb7a58ee66220af6dbb22467a', class: "d-table gap-2" }, h("div", { key: 'ee7162b5c176c1d334f09cdda553a1ef6e9b1dd0', class: "d-table-row gap-2" }, h("span", { key: '863e381c1610481ae609e4f9e3bc4d4cba6981cb', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: 'a4860c2b8b4f9f79cea5b45e8da37509368e02fd', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_d = this.dispute) === null || _d === void 0 ? void 0 : _d.amount))), h("div", { key: '15b6c3183065af7771ffd31971e9c120c28cb285', class: "d-table-row gap-2" }, h("span", { key: '1a43935f1a8fa71dbd7b511430d5b29179a00d40', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '6351bb9fcc392700e52f6a19a5b7796f0db81b7c', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_e = this.dispute) === null || _e === void 0 ? void 0 : _e.reason)), h("div", { key: '07badb71175a086399c2cd7e21f20eef2dc71547', class: "d-table-row gap-2" }, h("span", { key: '7f000a4206424cd4808d5cd9a20c339bf3ecaf18', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Due Date"), h("span", { key: 'a768799fd24012e11c9a3907f9da9959c815d475', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_f = this.dispute) === null || _f === void 0 ? void 0 : _f.due_date))), h("div", { key: 'b077e8d4e7c446db5c46f41174dbbf18647da81d', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: 'b113557e1ebabd4d787d95d3cf65c50c66085f0b', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '8fc56615440cd75503c7ce9324670592e1c88068', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.underReview) && (h("div", { key: '1419d80deb612294fe979d8cbf2fb76eab05c30c', part: text }, h("h1", { key: 'd77570d765ec7c1161c29f667911df1a40004c5b', class: "h4", part: heading4 }, "This payment is disputed and under review"), h("p", { key: 'b4e258895b34f062b244d710a0b947e08bb5bbea' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_h = this.dispute) === null || _h === void 0 ? void 0 : _h.won) && (h("div", { key: '7e32157b5bcdc02bfd125b9b03607f67488ab48e', part: text }, h("h1", { key: 'd087b4fcb56468bd8aa9904286f858591af94ba1', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '0aa0f4003d253874c6bd639afffba2ca37c9985e' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_j = this.dispute) === null || _j === void 0 ? void 0 : _j.lost) && (h("div", { key: 'f3855957e8222a4837f5cee6026b0c56df3ed185', part: text }, h("h1", { key: '1c0261b5d45e54b26982be2112b92d8585933b7a', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: 'f8ae5063b7254794687af55b989a5f282846fbfb' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
158
158
  }
159
159
  };
160
160
 
@@ -210,7 +210,7 @@ const JustifiDisputeResponse = class {
210
210
  }
211
211
  }
212
212
  render() {
213
- return (h(StyledHost, { key: '13eedd8da825613c7d060cf1426c949a7c233d17' }, h("justifi-dispute-response-core", { key: '3a05c657309a72761033e064aa91866a2855c5a0', "onError-event": this.handleErrorEvent, "dispute-id": this.disputeId, disputeResponse: this.disputeResponse, createDisputeEvidence: this.createDisputeEvidence, updateDisputeResponse: this.updateDisputeResponse, submitDisputeResponse: this.submitDisputeResponse })));
213
+ return (h(StyledHost, { key: 'fb08d6796fe7740f292eff620d04e943adb30b22' }, h("justifi-dispute-response-core", { key: 'cb1859a262749d3e11c14844e5a9a5909970ee06', "onError-event": this.handleErrorEvent, "dispute-id": this.disputeId, disputeResponse: this.disputeResponse, createDisputeEvidence: this.createDisputeEvidence, updateDisputeResponse: this.updateDisputeResponse, submitDisputeResponse: this.submitDisputeResponse })));
214
214
  }
215
215
  ;
216
216
  static get watchers() { return {
@@ -378,7 +378,7 @@ const JustifiDisputeResponseCore = class {
378
378
  return this.currentStep === 0;
379
379
  }
380
380
  render() {
381
- return (h("div", { key: 'c08c10977c1623e1bc7a86b81fe1dd865a2e51ed', class: "row gy-3" }, h("div", { key: '227c651ce1a06865edb4eb2c5339b3123b6a4db5', class: "col-12" }, h("h1", { key: '7c880d92b985d125d286c8443fcb4005a937c070', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: '96413bfd5d67f298811f7ec5f63789be2b6b3dd6', class: "col-12" }, this.currentStepComponent), h("div", { key: '7beb58f7a362798a498c72d5bd7ae274dd84e596', class: "col-12" }, h("div", { key: '78a4a3671c0b50199b2ca5ed09f9d42b0cc0624f', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next"))))));
381
+ return (h("div", { key: '2cc3b2abef27f1ecf146dca2423fe07efd98c816', class: "row gy-3" }, h("div", { key: '4c0303a7ad858568888c1345709858ac922ec176', class: "col-12" }, h("h1", { key: 'e857a204a17cb406790023c68e1f2908e3e194bc', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: 'bff6c1e8d5852569d868829aaf6721e8489ee577', class: "col-12" }, this.currentStepComponent), h("div", { key: '4ea8230871e5f0b90e4fed95821bf1ed6ba6ad83', class: "col-12" }, h("div", { key: 'a489196afb70fc4fc7c14c8ad2d55253b6f71a64', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next"))))));
382
382
  }
383
383
  };
384
384
 
@@ -6,14 +6,14 @@ import './Business-BcNb9bVO.js';
6
6
  import './Dispute-BH0Xfn-F.js';
7
7
  import { g as getErrorCode, a as getErrorMessage } from './utils-DcfpJGDZ.js';
8
8
  import { E as ErrorState } from './utils-BxYS3WDw.js';
9
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
10
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
9
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
11
11
  import './config-state-kKn89dp1.js';
12
12
  import './index-cDVGjRkU.js';
13
13
  import './utils-BTtxWI2r.js';
14
14
  import './dinero-HXpYMWUU.js';
15
15
  import './parts-DnrawQn3.js';
16
- import './package-CXKOe1m5.js';
16
+ import './package-beXEDfB9.js';
17
17
 
18
18
  const api = Api();
19
19
  class ReportsService {
@@ -2,12 +2,12 @@ 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-DnrawQn3.js';
3
3
  import { S as StyledHost } from './styled-host-D6byRazK.js';
4
4
  import './event-types-CZfYo5-1.js';
5
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
6
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
5
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
6
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
7
7
  import { m as TerminalModel, C as ComponentErrorSeverity, k as TerminalOrder, c as TerminalOrderType, e as ComponentErrorCodes } from './Plaid-BuKEVgbB.js';
8
8
  import { B as BusinessService } from './business.service-BPbZ5fxQ.js';
9
9
  import { B as Business } from './Business-BcNb9bVO.js';
10
- import { m as makeGetBusiness } from './get-business-DpFRs5dE.js';
10
+ import { m as makeGetBusiness } from './get-business-DIpEbczl.js';
11
11
  import { S as Skeleton } from './skeleton-CXGFVqDf.js';
12
12
  import './config-state-kKn89dp1.js';
13
13
  import './dinero-HXpYMWUU.js';
@@ -16,7 +16,7 @@ import './Dispute-BH0Xfn-F.js';
16
16
  import { g as getErrorCode, a as getErrorMessage } from './utils-DcfpJGDZ.js';
17
17
  import { T as TerminalService } from './terminal.service-0oISl5j-.js';
18
18
  import { l as formatPhoneNumber } from './utils-BTtxWI2r.js';
19
- import './package-CXKOe1m5.js';
19
+ import './package-beXEDfB9.js';
20
20
  import './Api-DMd8hTI-.js';
21
21
  import './index-cDVGjRkU.js';
22
22
 
@@ -136,12 +136,13 @@ const JustifiOrderTerminals = class {
136
136
  })({
137
137
  onSuccess: ({ business }) => {
138
138
  this.business = new Business(business);
139
- this.loading.business = false;
140
139
  },
141
140
  onError: ({ error, code, severity }) => {
142
141
  this.handleError(error, code, severity);
142
+ },
143
+ final: () => {
143
144
  this.loading.business = false;
144
- }
145
+ },
145
146
  });
146
147
  }
147
148
  initializeGetTerminalModels() {
@@ -201,7 +202,7 @@ const JustifiOrderTerminals = class {
201
202
  return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : this.submitButtonText))));
202
203
  }
203
204
  render() {
204
- return (h(StyledHost, { key: '1dc7e86cd02a1d549ee19b6e24dec5278af70e44' }, h("div", { key: 'a6c3f18e4ad62606aa04c9a71ff4c949a6cc407f', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
205
+ return (h(StyledHost, { key: '3f0f23fdf6a5f5f7e8ef527ea28e6fcfcdc70a3a' }, h("div", { key: 'd69fe7a14eaaa468c45b6fa6967298ba1a387e6b', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
205
206
  }
206
207
  };
207
208
 
@@ -2,8 +2,8 @@ import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js'
2
2
  import { P as PaymentService } from './payment.service-Ckbb7gXA.js';
3
3
  import { m as makeGetPaymentDetails } from './get-payment-details-DjBou5Fu.js';
4
4
  import { C as ComponentErrorSeverity, e as ComponentErrorCodes, g as PaymentStatuses } from './Plaid-BuKEVgbB.js';
5
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
6
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
5
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
6
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
7
7
  import './config-state-kKn89dp1.js';
8
8
  import { b as formatDate, d as formatTime, s as snakeCaseToHumanReadable } from './utils-BTtxWI2r.js';
9
9
  import './Pagination-CLHwhyvu.js';
@@ -18,7 +18,7 @@ import { a as Badge, B as BadgeVariant } from './badge-B6dp1XGV.js';
18
18
  import './Api-DMd8hTI-.js';
19
19
  import './dinero-HXpYMWUU.js';
20
20
  import './utils-DcfpJGDZ.js';
21
- import './package-CXKOe1m5.js';
21
+ import './package-beXEDfB9.js';
22
22
  import './index-cDVGjRkU.js';
23
23
  import './parts-DnrawQn3.js';
24
24
 
@@ -1,5 +1,5 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
2
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
3
3
  import { C as ComponentErrorSeverity, e as ComponentErrorCodes } from './Plaid-BuKEVgbB.js';
4
4
  import { m as makeGetBusiness, b as makePostProvisioning } from './payment-provisioning-actions-Dr0YIShV.js';
5
5
  import { B as BusinessService } from './business.service-BPbZ5fxQ.js';
@@ -7,7 +7,7 @@ import { A as Api } from './Api-DMd8hTI-.js';
7
7
  import './Pagination-CLHwhyvu.js';
8
8
  import { C as CountryCode, B as Business, c as checkProvisioningStatus } from './Business-BcNb9bVO.js';
9
9
  import './Dispute-BH0Xfn-F.js';
10
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
11
11
  import { i as isTokenExpired } from './utils-BTtxWI2r.js';
12
12
  import { t as text } from './parts-DnrawQn3.js';
13
13
  import { S as StyledHost } from './styled-host-D6byRazK.js';
@@ -15,7 +15,7 @@ import { H as Header1 } from './header-1-Bl7MHW0w.js';
15
15
  import './event-types-CZfYo5-1.js';
16
16
  import { B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
17
17
  import { P as PaymentProvisioningLoading } from './payment-provisioning-loading-DI2wDkhm.js';
18
- import './package-CXKOe1m5.js';
18
+ import './package-beXEDfB9.js';
19
19
  import './utils-DcfpJGDZ.js';
20
20
  import './config-state-kKn89dp1.js';
21
21
  import './index-cDVGjRkU.js';
@@ -108,7 +108,9 @@ const JustifiPaymentProvisioning = class {
108
108
  }
109
109
  };
110
110
  this.decrementSteps = () => {
111
- return this.currentStep--;
111
+ if (this.currentStep > 0) {
112
+ this.currentStep -= 1;
113
+ }
112
114
  };
113
115
  this.previousStepButtonOnClick = () => {
114
116
  this.clickEvent.emit({ name: BusinessFormClickActions.previousStep });
@@ -5,8 +5,8 @@ import { h as PaymentBalanceTransaction, C as ComponentErrorSeverity, e as Compo
5
5
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
6
6
  import './Business-BcNb9bVO.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
9
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
8
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
9
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-DcfpJGDZ.js';
11
11
  import { P as PaymentService } from './payment.service-Ckbb7gXA.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-CcyuIutB.js';
@@ -15,7 +15,7 @@ import { T as TableClickActions } from './event-types-CZfYo5-1.js';
15
15
  import { a as convertToLocal } from './utils-BTtxWI2r.js';
16
16
  import { a3 as tableHeadCell, a4 as getAlternateTableCellPart } from './parts-DnrawQn3.js';
17
17
  import './index-cDVGjRkU.js';
18
- import './package-CXKOe1m5.js';
18
+ import './package-beXEDfB9.js';
19
19
  import './Api-DMd8hTI-.js';
20
20
  import './spinner-kSw6PcwU.js';
21
21
 
@@ -7,8 +7,8 @@ import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
7
  import './Business-BcNb9bVO.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-DcfpJGDZ.js';
10
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
11
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
10
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
11
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
12
12
  import { S as StyledHost } from './styled-host-D6byRazK.js';
13
13
  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-CcyuIutB.js';
14
14
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
@@ -18,7 +18,7 @@ import { a3 as tableHeadCell, a4 as getAlternateTableCellPart } from './parts-Dn
18
18
  import { o as onQueryParamsChange, g as getRequestParams } from './payments-list-params-state-CiGfmyWW.js';
19
19
  import './Api-DMd8hTI-.js';
20
20
  import './index-cDVGjRkU.js';
21
- import './package-CXKOe1m5.js';
21
+ import './package-beXEDfB9.js';
22
22
  import './spinner-kSw6PcwU.js';
23
23
  import './badge-B6dp1XGV.js';
24
24
 
@@ -9,9 +9,9 @@ import './Dispute-BH0Xfn-F.js';
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-DcfpJGDZ.js';
10
10
  import { h as capitalizeFirstLetter, b as formatDate, d as formatTime } from './utils-BTtxWI2r.js';
11
11
  import { a as EntityHeadInfo, b as EntityHeadInfoItem, D as DetailSectionTitle, c as DetailItem, C as CodeBlock, E as ErrorState } from './utils-BxYS3WDw.js';
12
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
12
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
13
13
  import { m as makeGetPayoutCSV, M as MapPayoutStatusToBadge } from './payouts-status-1T2NZBoE.js';
14
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
14
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
15
15
  import { B as Button } from './button-DRdaAudE.js';
16
16
  import { S as StyledHost } from './styled-host-D6byRazK.js';
17
17
  import './event-types-CZfYo5-1.js';
@@ -20,7 +20,7 @@ import { a as Badge, B as BadgeVariant } from './badge-B6dp1XGV.js';
20
20
  import './Api-DMd8hTI-.js';
21
21
  import './index-cDVGjRkU.js';
22
22
  import './parts-DnrawQn3.js';
23
- import './package-CXKOe1m5.js';
23
+ import './package-beXEDfB9.js';
24
24
 
25
25
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
26
26
  var _a;
@@ -5,8 +5,8 @@ import { j as PayoutBalanceTransaction, C as ComponentErrorSeverity, e as Compon
5
5
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
6
6
  import './Business-BcNb9bVO.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
9
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
8
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
9
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-DcfpJGDZ.js';
11
11
  import { P as PayoutService } from './payout.service-BgFKxEoL.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-CcyuIutB.js';
@@ -15,7 +15,7 @@ import { T as TableClickActions } from './event-types-CZfYo5-1.js';
15
15
  import { a as convertToLocal } from './utils-BTtxWI2r.js';
16
16
  import { a3 as tableHeadCell, a4 as getAlternateTableCellPart } from './parts-DnrawQn3.js';
17
17
  import './index-cDVGjRkU.js';
18
- import './package-CXKOe1m5.js';
18
+ import './package-beXEDfB9.js';
19
19
  import './Api-DMd8hTI-.js';
20
20
  import './spinner-kSw6PcwU.js';
21
21
 
@@ -1,7 +1,7 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
2
  import { i as Payout, C as ComponentErrorSeverity, e as ComponentErrorCodes } from './Plaid-BuKEVgbB.js';
3
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
4
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
3
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
4
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
5
5
  import { P as PayoutService } from './payout.service-BgFKxEoL.js';
6
6
  import './config-state-kKn89dp1.js';
7
7
  import './dinero-HXpYMWUU.js';
@@ -17,7 +17,7 @@ import { T as TableClickActions } from './event-types-CZfYo5-1.js';
17
17
  import { a as convertToLocal } from './utils-BTtxWI2r.js';
18
18
  import { a3 as tableHeadCell, a4 as getAlternateTableCellPart } from './parts-DnrawQn3.js';
19
19
  import { o as onQueryParamsChange, g as getRequestParams } from './payouts-list-params-state-CiGfmyWW.js';
20
- import './package-CXKOe1m5.js';
20
+ import './package-beXEDfB9.js';
21
21
  import './Api-DMd8hTI-.js';
22
22
  import './index-cDVGjRkU.js';
23
23
  import './badge-B6dp1XGV.js';
@@ -11,8 +11,8 @@ import { S as StyledHost } from './styled-host-D6byRazK.js';
11
11
  import './event-types-CZfYo5-1.js';
12
12
  import { P as PaymentService } from './payment.service-Ckbb7gXA.js';
13
13
  import { m as makeGetPaymentDetails } from './get-payment-details-DjBou5Fu.js';
14
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
15
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
14
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
15
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
16
16
  import { g as getErrorCode, a as getErrorMessage } from './utils-DcfpJGDZ.js';
17
17
  import { A as Api } from './Api-DMd8hTI-.js';
18
18
  import { S as Skeleton } from './skeleton-CXGFVqDf.js';
@@ -20,7 +20,7 @@ import './_commonjsHelpers-BFTU3MAI.js';
20
20
  import './dinero-HXpYMWUU.js';
21
21
  import './index-cDVGjRkU.js';
22
22
  import './parts-DnrawQn3.js';
23
- import './package-CXKOe1m5.js';
23
+ import './package-beXEDfB9.js';
24
24
 
25
25
  const amountValidation = (maxAmount) => {
26
26
  const max = +maxAmount;
@@ -5,8 +5,8 @@ import './Pagination-CLHwhyvu.js';
5
5
  import './Business-BcNb9bVO.js';
6
6
  import './Dispute-BH0Xfn-F.js';
7
7
  import { g as getErrorCode, a as getErrorMessage } from './utils-DcfpJGDZ.js';
8
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
9
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
8
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
9
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
10
10
  import { c as checkoutStore } from './checkout.store-DFnkcDZ8.js';
11
11
  import { p as processHTML, f as formatCurrency, r as removeAttribute, j as addAttribute } from './utils-BTtxWI2r.js';
12
12
  import { v as validateInsuranceValues, i as insuranceValues, a as insuranceErrors, H as Header2 } from './insurance-state-qTdpe84i.js';
@@ -16,7 +16,7 @@ import './event-types-CZfYo5-1.js';
16
16
  import { S as Skeleton } from './skeleton-CXGFVqDf.js';
17
17
  import './config-state-kKn89dp1.js';
18
18
  import './index-cDVGjRkU.js';
19
- import './package-CXKOe1m5.js';
19
+ import './package-beXEDfB9.js';
20
20
  import './index-DkoufM1t.js';
21
21
  import './dinero-HXpYMWUU.js';
22
22
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
2
2
  import { S as StyledHost } from './styled-host-D6byRazK.js';
3
3
  import './event-types-CZfYo5-1.js';
4
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
4
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
5
5
  import { d as defaultColumnsKeys } from './terminal-orders-table-C7KOcRpq.js';
6
6
  import './config-state-kKn89dp1.js';
7
7
  import './dinero-HXpYMWUU.js';
@@ -11,8 +11,8 @@ import './Business-BcNb9bVO.js';
11
11
  import './Dispute-BH0Xfn-F.js';
12
12
  import { g as getErrorCode, a as getErrorMessage } from './utils-DcfpJGDZ.js';
13
13
  import { A as Api } from './Api-DMd8hTI-.js';
14
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
15
- import './package-CXKOe1m5.js';
14
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
15
+ import './package-beXEDfB9.js';
16
16
  import './parts-DnrawQn3.js';
17
17
  import './utils-BTtxWI2r.js';
18
18
  import './badge-B6dp1XGV.js';
@@ -1,7 +1,7 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
2
  import { l as Terminal, C as ComponentErrorSeverity, e as ComponentErrorCodes } from './Plaid-BuKEVgbB.js';
3
- import { J as JustifiAnalytics } from './Analytics-4PEV3c9V.js';
4
- import { c as checkPkgVersion } from './check-pkg-version-BmgaID9z.js';
3
+ import { J as JustifiAnalytics } from './Analytics-Cyc3ZLPx.js';
4
+ import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
5
5
  import { T as TerminalService } from './terminal.service-0oISl5j-.js';
6
6
  import './config-state-kKn89dp1.js';
7
7
  import './dinero-HXpYMWUU.js';
@@ -17,7 +17,7 @@ import { B as BadgeVariant, a as Badge } from './badge-B6dp1XGV.js';
17
17
  import { a3 as tableHeadCell, a4 as getAlternateTableCellPart } from './parts-DnrawQn3.js';
18
18
  import { k as capitalFirstLetter } from './utils-BTtxWI2r.js';
19
19
  import { o as onQueryParamsChange, g as getRequestParams } from './terminals-list-params-state-CiGfmyWW.js';
20
- import './package-CXKOe1m5.js';
20
+ import './package-beXEDfB9.js';
21
21
  import './Api-DMd8hTI-.js';
22
22
  import './index-cDVGjRkU.js';
23
23
  import './spinner-kSw6PcwU.js';
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.12.1";
2
+ const version = "6.12.3";
3
3
  var packageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -63,7 +63,7 @@ class JustifiAnalytics {
63
63
  if (typeof this.componentInstance.addEventListener === 'function') {
64
64
  const boundHandler = (event) => this.handleCustomEvent({
65
65
  event_type: eventName,
66
- data: Object.assign(Object.assign({}, this.basicData), { error: event.detail }),
66
+ data: Object.assign(Object.assign({}, this.basicData), (eventName === 'error-event' && { error: event.detail })),
67
67
  });
68
68
  this.eventListeners.set(eventName, boundHandler);
69
69
  this.componentInstance.addEventListener(eventName, boundHandler);
@@ -180,7 +180,7 @@ const JustifiDisputeResponseCore = /*@__PURE__*/ proxyCustomElement(class Justif
180
180
  return this.currentStep === 0;
181
181
  }
182
182
  render() {
183
- return (h("div", { key: 'c08c10977c1623e1bc7a86b81fe1dd865a2e51ed', class: "row gy-3" }, h("div", { key: '227c651ce1a06865edb4eb2c5339b3123b6a4db5', class: "col-12" }, h("h1", { key: '7c880d92b985d125d286c8443fcb4005a937c070', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: '96413bfd5d67f298811f7ec5f63789be2b6b3dd6', class: "col-12" }, this.currentStepComponent), h("div", { key: '7beb58f7a362798a498c72d5bd7ae274dd84e596', class: "col-12" }, h("div", { key: '78a4a3671c0b50199b2ca5ed09f9d42b0cc0624f', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next"))))));
183
+ return (h("div", { key: '2cc3b2abef27f1ecf146dca2423fe07efd98c816', class: "row gy-3" }, h("div", { key: '4c0303a7ad858568888c1345709858ac922ec176', class: "col-12" }, h("h1", { key: 'e857a204a17cb406790023c68e1f2908e3e194bc', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: 'bff6c1e8d5852569d868829aaf6721e8489ee577', class: "col-12" }, this.currentStepComponent), h("div", { key: '4ea8230871e5f0b90e4fed95821bf1ed6ba6ad83', class: "col-12" }, h("div", { key: 'a489196afb70fc4fc7c14c8ad2d55253b6f71a64', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next"))))));
184
184
  }
185
185
  }, [256, "justifi-dispute-response-core", {
186
186
  "updateDisputeResponse": [16],
@@ -2,7 +2,7 @@ import { b as Business } from './Business.js';
2
2
  import { C as ComponentErrorSeverity } from './Plaid.js';
3
3
  import { g as getErrorCode, a as getErrorMessage } from './utils3.js';
4
4
 
5
- const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
5
+ const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError, final }) => {
6
6
  var _a;
7
7
  try {
8
8
  const response = await service.fetchBusiness(id, authToken);
@@ -27,6 +27,9 @@ const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onEr
27
27
  severity: ComponentErrorSeverity.ERROR,
28
28
  });
29
29
  }
30
+ finally {
31
+ final();
32
+ }
30
33
  };
31
34
 
32
35
  export { makeGetBusiness as m };
@@ -41,7 +41,7 @@ const JustifiAdditionalStatement = /*@__PURE__*/ proxyCustomElement(class Justif
41
41
  }
42
42
  render() {
43
43
  var _a, _b;
44
- return (h("div", { key: 'b39c3dae3e2e49a06221a15fb61de218bb76f059' }, h("div", { key: '9bb1d748a648fefe903174dfe5cb8999e31fbb74', class: "row gy-3" }, h("div", { key: 'fac36e2ebbf99362a2a4ad5e1248eaf9e8aef15f', class: "col-12" }, h("h2", { key: '83c3f2be493b847a7e4d0f630407da381f573885', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '13a30f25350f6455fc7c9b8aad1ed7370b94d7fb', class: "col-12" }, h("form-control-textarea", { key: 'ad10db3c159e19d42ccaca20674d13435f01e30f', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: '6f9b8c602f5ecc3d657c785d5b268b9962a7b52e', class: "col-12" }, h("form-control-file-v2", { key: 'dd9577a255014dbadd3b340435d956b5e0ba748f', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
44
+ return (h("div", { key: '97175b1ff6bee9154ec66df8710c7343cdd9a2dd' }, h("div", { key: 'f36de20ce5e724780550bcb0eaa4512b5d1559ef', class: "row gy-3" }, h("div", { key: 'bf5002c5e8b8c3f516fa8cad1f42e7b7ca9e55f9', class: "col-12" }, h("h2", { key: '64f6517d1029463cfe07c435f6b4a1cdca95f097', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '81ced6dd86b41293b6692d3023fbe5e9e11cc392', class: "col-12" }, h("form-control-textarea", { key: 'd5f28108a9dbea3e0f2634b1cd96316a9f986c90', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: '19d8047c4fc03376f77f5331f2fcfea6cd20e2b9', class: "col-12" }, h("form-control-file-v2", { key: '871bc06d4f7b5e3d56dd73ddfc9a8061d701f501', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
45
45
  }
46
46
  }, [256, "justifi-additional-statement", {
47
47
  "disputeResponse": [8, "dispute-response"],
@@ -6,7 +6,7 @@ import './justifi-details2.js';
6
6
  import './event-types.js';
7
7
  import './justifi-radio-list-item2.js';
8
8
  import { S as Skeleton } from './skeleton.js';
9
- import { c as checkoutStore } from './checkout.store.js';
9
+ import { c as checkoutStore, o as onChange } from './checkout.store.js';
10
10
 
11
11
  // Centralized error codes for Apple Pay service
12
12
  var ApplePayServiceErrorCode;
@@ -512,6 +512,7 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
512
512
  this.applePayCompleted = createEvent(this, "applePayCompleted", 7);
513
513
  this.applePayCancelled = createEvent(this, "applePayCancelled", 7);
514
514
  this.applePayError = createEvent(this, "applePayError", 7);
515
+ this.sdkLoaded = false;
515
516
  this.countryCode = "US";
516
517
  this.merchantIdentifier = "merchant.com.staging-justifi.checkout-dev";
517
518
  this.merchantDisplayName = "JustiFi Checkout";
@@ -586,6 +587,32 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
586
587
  }
587
588
  };
588
589
  }
590
+ componentWillLoad() {
591
+ this.isAvailable = ApplePayHelpers.isApplePaySupported();
592
+ if (!this.isAvailable) {
593
+ this.isLoading = false;
594
+ return;
595
+ }
596
+ if (checkoutStore.checkoutLoaded) {
597
+ this.loadApplePaySDK();
598
+ }
599
+ else {
600
+ onChange('checkoutLoaded', (loaded) => {
601
+ if (loaded)
602
+ this.loadApplePaySDK();
603
+ });
604
+ }
605
+ }
606
+ loadApplePaySDK() {
607
+ if (this.sdkLoaded)
608
+ return;
609
+ this.sdkLoaded = true;
610
+ const script = document.createElement('script');
611
+ script.src = 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js';
612
+ script.async = true;
613
+ script.onload = () => this.initializeApplePay();
614
+ document.head.appendChild(script);
615
+ }
589
616
  async initializeApplePay() {
590
617
  try {
591
618
  this.isLoading = true;
@@ -597,12 +624,6 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
597
624
  if (!hasRequiredConfig) {
598
625
  this.error = "Missing required Apple Pay configuration";
599
626
  this.isConfigValid = false;
600
- console.error("Apple Pay config error: missing required values", {
601
- paymentAmount: checkoutStore.paymentAmount,
602
- paymentCurrency: checkoutStore.paymentCurrency,
603
- hasAuthToken: Boolean(checkoutStore.authToken),
604
- accountId: checkoutStore.accountId,
605
- });
606
627
  this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.CONFIG_ERROR });
607
628
  this.isLoading = false;
608
629
  return;
@@ -611,14 +632,12 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
611
632
  this.canMakePayments = ApplePayHelpers.canMakePayments();
612
633
  if (!this.isAvailable) {
613
634
  this.error = "Apple Pay is not supported on this device";
614
- console.error(this.error);
615
635
  this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.NOT_SUPPORTED });
616
636
  this.isLoading = false;
617
637
  return;
618
638
  }
619
639
  if (!this.canMakePayments) {
620
640
  this.error = "Apple Pay is not available";
621
- console.error(this.error);
622
641
  this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.NOT_AVAILABLE });
623
642
  this.isLoading = false;
624
643
  return;
@@ -639,7 +658,6 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
639
658
  }
640
659
  }
641
660
  catch (error) {
642
- console.error("Apple Pay initialization error:", error);
643
661
  this.error =
644
662
  error instanceof Error
645
663
  ? error.message
@@ -660,7 +678,8 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
660
678
  return ApplePayHelpers.getDefaultSupportedNetworks();
661
679
  }
662
680
  async abort() {
663
- this.applePayService.abortPaymentSession();
681
+ var _a;
682
+ (_a = this.applePayService) === null || _a === void 0 ? void 0 : _a.abortPaymentSession();
664
683
  this.isProcessing = false;
665
684
  this.applePayCancelled.emit();
666
685
  }
@@ -669,13 +688,14 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
669
688
  // Render nothing when Apple Pay is disabled at the checkout settings level
670
689
  return null;
671
690
  }
691
+ if (!this.isAvailable) {
692
+ return null;
693
+ }
672
694
  const isReady = !this.isLoading &&
673
695
  this.isAvailable &&
674
696
  this.canMakePayments &&
675
697
  this.isConfigValid;
676
- return (h(StyledHost, null, checkoutStore.checkoutLoaded && (h("script", { async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
677
- this.initializeApplePay();
678
- } })), h("div", { class: 'apple-pay-container' }, h(ApplePaySkeleton, { isLoading: this.isLoading }), isReady && (h(ApplePayButton, { buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick, width: this.width, height: this.height }))), h("style", null, `
698
+ return (h(StyledHost, null, h("div", { class: 'apple-pay-container' }, h(ApplePaySkeleton, { isLoading: this.isLoading }), isReady && (h(ApplePayButton, { buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick, width: this.width, height: this.height }))), h("style", null, `
679
699
  .apple-pay-container {
680
700
  width: 100%;
681
701
  }
@@ -41,7 +41,7 @@ const JustifiCancellationPolicy = /*@__PURE__*/ proxyCustomElement(class Justifi
41
41
  }
42
42
  render() {
43
43
  var _a, _b, _c;
44
- return (h("div", { key: '06da02c750e3281c8e9a92c4d1957d1ceb9097ae' }, h("div", { key: '8ec6ebf90b3beb3d3a24c6fee0427f2ba949aba7', class: "row gy-3" }, h("div", { key: '3a465a5a53f8795fdc20845bef945a8aa4cf8b3d', class: "col-12" }, h("h2", { key: '6193c10bed3c100ef63b302db15473965669c0ec', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '0d68bbb77217df1e9ed067593a76eddfc76f20ff', class: "col-12" }, h("form-control-textarea", { key: 'd5a3157c26687247d23d558c25f0687e339191bc', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: '6fbc16ced9bbb9188f683f5493902d8982d61e5a', class: "col-12" }, h("form-control-textarea", { key: 'fa009aa03035ccc1c42a70337f1502276e0d9499', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: '3267fe5bd07181b17fe1875dac501f7ca827900d', class: "col-12" }, h("form-control-file-v2", { key: '6fd33a1194be752f078c1aab7924bf1502177fb2', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
44
+ return (h("div", { key: 'f5f98ed91abdb767d3f48efaa9d69a5445d6a5bf' }, h("div", { key: 'b7a2539c1c5971267eb469fb0011508e5c3aa163', class: "row gy-3" }, h("div", { key: '82666927fa4daccb9ea2ad511e445201d216775e', class: "col-12" }, h("h2", { key: '7cf97383cee9cd3c5c95cc20374826b7f0d0ebe3', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '8a4691ee688de45f97dd624310ca5fc39cf20db2', class: "col-12" }, h("form-control-textarea", { key: '27ce967696f3f89c8b91d5892f7dfffefacd8536', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: '12a25c0dc23b528b412e1b19fd9b7071967fd411', class: "col-12" }, h("form-control-textarea", { key: '81ceef5f5b94ad31eb1cd36991a13e099b13725c', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: '9afbe3a16b1da50afea763c66e4ee0b5b388b137', class: "col-12" }, h("form-control-file-v2", { key: '9a613e293af4d48354859bfd2329afce152a5f89', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
45
45
  }
46
46
  }, [256, "justifi-cancellation-policy", {
47
47
  "disputeResponse": [8, "dispute-response"],