@justifi/webcomponents 5.7.5 → 5.7.6-rc-02

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 (650) hide show
  1. package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
  2. package/dist/cjs/{Refund-DN-yzFgy.js → Refund-Dt1CMUjx.js} +97 -0
  3. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +4 -5
  4. package/dist/cjs/bank-account-form.cjs.entry.js +63 -0
  5. package/dist/cjs/{business.service-U2eLTrq9.js → business.service-W2PRAU9J.js} +2 -3
  6. package/dist/cjs/card-form.cjs.entry.js +71 -0
  7. package/dist/cjs/{check-pkg-version-DuL7lRe2.js → check-pkg-version-DmONJMn1.js} +3 -4
  8. package/dist/cjs/{checkout.service-DtMzeEwi.js → checkout.service-XwOh98gt.js} +2 -3
  9. package/dist/cjs/checkout.store--pVCO0L1.js +37 -0
  10. package/dist/cjs/checkouts-list-core.cjs.entry.js +3 -4
  11. package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +2 -122
  12. package/dist/cjs/{dispute.service-CGVAs-5M.js → dispute.service-Dh82Wru1.js} +2 -3
  13. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  14. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  15. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  16. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  17. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-select_3.cjs.entry.js +124 -0
  21. package/dist/cjs/{get-business-BJrtsomz.js → get-business-BiEc-jdH.js} +2 -2
  22. package/dist/cjs/{get-payment-details-CdVEiscr.js → get-payment-details-W4PgTPkL.js} +3 -4
  23. package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
  24. package/dist/cjs/{get-subaccounts-fBIoOr7m.js → get-subaccounts-D4woaGSs.js} +3 -4
  25. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  26. package/dist/cjs/{iframe-input.cjs.entry.js → hidden-input_2.cjs.entry.js} +111 -14
  27. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +2 -3
  28. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +5 -6
  29. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  30. package/dist/cjs/justifi-bank-account-form_5.cjs.entry.js +277 -0
  31. package/dist/cjs/justifi-billing-form.cjs.entry.js +76 -0
  32. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
  33. package/dist/cjs/justifi-business-form.cjs.entry.js +7 -8
  34. package/dist/cjs/justifi-button_5.cjs.entry.js +329 -0
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +80 -95
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -10
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -10
  38. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -8
  40. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +9 -10
  41. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -6
  42. package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
  43. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -10
  44. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +5 -6
  45. package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -8
  46. package/dist/cjs/justifi-payment-method-options.cjs.entry.js +76 -0
  47. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  48. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
  49. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -8
  50. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  51. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -8
  52. package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -8
  53. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -8
  54. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -10
  56. package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -8
  57. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +32 -0
  58. package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +117 -0
  59. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +2 -2
  60. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -16
  61. package/dist/cjs/justifi-skeleton.cjs.entry.js +17 -0
  62. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
  63. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -8
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -4
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -9
  66. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +12 -6
  67. package/dist/cjs/loader.cjs.js +1 -1
  68. package/dist/cjs/{package-o4g7MDiy.js → package-oywezDpy.js} +1 -1
  69. package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
  70. package/dist/cjs/payment-method-option-utils-imuSE7KV.js +25 -0
  71. package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-SNMCdsyF.js} +2 -2
  72. package/dist/cjs/{payment.service-DmpOOPu1.js → payment.service-BrvtS3F7.js} +2 -3
  73. package/dist/cjs/payments-list-core.cjs.entry.js +3 -4
  74. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  75. package/dist/cjs/{payout.service-BfO6L79f.js → payout.service-DNH6gRrP.js} +2 -3
  76. package/dist/cjs/payouts-list-core.cjs.entry.js +3 -4
  77. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  78. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +4 -5
  79. package/dist/cjs/{terminal-orders-table-DMjFmuxk.js → terminal-orders-table-xi_a-EnM.js} +2 -3
  80. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  81. package/dist/cjs/{terminal.service-h-LWztbo.js → terminal.service-CdzmTRQE.js} +2 -3
  82. package/dist/cjs/terminals-list-core.cjs.entry.js +3 -4
  83. package/dist/cjs/{utils-l0veqT9y.js → utils-IGCnjtqc.js} +1 -1
  84. package/dist/cjs/webcomponents.cjs.js +1 -1
  85. package/dist/collection/api/BillingInformation.js +1 -0
  86. package/dist/collection/api/Checkout.js +1 -3
  87. package/dist/collection/api/ComponentError.js +2 -0
  88. package/dist/collection/api/PaymentMethod.js +1 -0
  89. package/dist/collection/collection-manifest.json +13 -3
  90. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  91. package/dist/collection/components/checkout/billing-form/billing-form-schema.js +2 -2
  92. package/dist/collection/components/checkout/billing-form/billing-form.js +2 -5
  93. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  94. package/dist/collection/components/checkout/checkout.js +158 -53
  95. package/dist/collection/components/checkout/new-payment-method.js +2 -2
  96. package/dist/collection/components/checkout/payment-method-options.js +18 -37
  97. package/dist/collection/components/checkout/save-new-payment-method.js +3 -1
  98. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  99. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  100. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  101. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  102. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  103. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  104. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  105. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  106. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  107. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  108. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  109. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  110. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  111. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  112. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  113. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  114. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  115. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  116. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  117. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  118. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +10 -13
  119. package/dist/collection/components/modular-checkout/modular-checkout.js +379 -0
  120. package/dist/collection/components/modular-checkout/sub-components/bank-account-skeleton.js +10 -0
  121. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +98 -0
  122. package/dist/collection/components/modular-checkout/sub-components/billing-form-schema.js +21 -0
  123. package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js +97 -0
  124. package/dist/collection/components/modular-checkout/sub-components/card-form-skeleton.js +10 -0
  125. package/dist/collection/components/modular-checkout/sub-components/card-form.js +102 -0
  126. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +113 -0
  127. package/dist/collection/components/modular-checkout/sub-components/postal-code-form.js +124 -0
  128. package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +40 -0
  129. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +127 -0
  130. package/dist/collection/components/modular-checkout/sub-components/summary.js +12 -0
  131. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  132. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  133. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  134. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  135. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  136. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  137. package/dist/collection/components/payments-list/payments-list.js +1 -1
  138. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  139. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  140. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  141. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  142. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  143. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  144. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  145. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  146. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  147. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  148. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  149. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +10 -3
  150. package/dist/collection/store/checkout.store.js +32 -0
  151. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  152. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  153. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  154. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  155. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  156. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  157. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  158. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  159. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  160. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  161. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  162. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  163. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  164. package/dist/collection/ui-components/form/iframe-input.js +10 -5
  165. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +176 -0
  166. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +83 -0
  167. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +108 -0
  168. package/dist/docs.json +1695 -844
  169. package/dist/esm/{Api-69eVlLFc.js → Api-C3T8XYbb.js} +1 -1
  170. package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-BhrFjjAs.js} +2 -0
  171. package/dist/esm/{Payment-BGiKmQYR.js → Payment-00TwhwCx.js} +2 -2
  172. package/dist/esm/{Refund-f_BCgcDa.js → Refund-0aZtuMmz.js} +98 -2
  173. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  174. package/dist/esm/{badge-VWumlkvS.js → badge-Dr7gkD2I.js} +1 -1
  175. package/dist/esm/bank-account-document-form-inputs_4.entry.js +9 -10
  176. package/dist/esm/bank-account-form.entry.js +61 -0
  177. package/dist/esm/business-details-core.entry.js +3 -3
  178. package/dist/esm/{business.service-BviUFOjP.js → business.service-C5vrjgZf.js} +4 -5
  179. package/dist/esm/{button-BfT7Ex96.js → button-xfPDSpPt.js} +1 -1
  180. package/dist/esm/card-form.entry.js +69 -0
  181. package/dist/esm/{check-pkg-version-phOwcSQM.js → check-pkg-version-DqhSXPRt.js} +5 -6
  182. package/dist/esm/{checkout.service-B8W_W-lc.js → checkout.service-CW2_CEte.js} +4 -5
  183. package/dist/esm/checkout.store-GXtlf5-4.js +34 -0
  184. package/dist/esm/checkouts-list-core.entry.js +10 -11
  185. package/dist/esm/{checkouts-table-zIrBvmQp.js → checkouts-table-BHhaS5bv.js} +3 -3
  186. package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -121
  187. package/dist/esm/{dispute.service-1e9677RK.js → dispute.service-C3bmfjsZ.js} +4 -5
  188. package/dist/esm/form-alert_5.entry.js +1 -1
  189. package/dist/esm/form-control-checkbox.entry.js +5 -5
  190. package/dist/esm/form-control-date.entry.js +4 -4
  191. package/dist/esm/{form-control-error-text-CYWqNNkG.js → form-control-error-text-Cn0aPzHx.js} +1 -1
  192. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  193. package/dist/esm/{form-control-help-text-DMdU5_la.js → form-control-help-text-C91TeHXs.js} +1 -1
  194. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  195. package/dist/esm/form-control-monetary.entry.js +6 -6
  196. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  197. package/dist/esm/form-control-number.entry.js +5 -5
  198. package/dist/esm/form-control-radio.entry.js +3 -3
  199. package/dist/esm/form-control-select_3.entry.js +120 -0
  200. package/dist/esm/{get-business-GEPTefIj.js → get-business-BSRtbTh7.js} +2 -2
  201. package/dist/esm/{get-payment-details-B5-Hzdrg.js → get-payment-details-BdPvFl1W.js} +5 -6
  202. package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
  203. package/dist/esm/{get-subaccounts-Cv7zn0lA.js → get-subaccounts-BqqR44dV.js} +6 -7
  204. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  205. package/dist/esm/{header-1-84nZCcj4.js → header-1-noRVFQY9.js} +1 -1
  206. package/dist/esm/{header-3-DpBr7qOY.js → header-3-Bsi4loU1.js} +1 -1
  207. package/dist/esm/{iframe-input.entry.js → hidden-input_2.entry.js} +106 -10
  208. package/dist/esm/{insurance-state-BDLlv3CM.js → insurance-state-pL8MRpxn.js} +2 -2
  209. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +7 -8
  210. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +10 -11
  211. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  212. package/dist/esm/justifi-bank-account-form_5.entry.js +271 -0
  213. package/dist/esm/justifi-billing-form.entry.js +74 -0
  214. package/dist/esm/justifi-business-details.entry.js +12 -13
  215. package/dist/esm/justifi-business-form.entry.js +14 -15
  216. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  217. package/dist/esm/justifi-button_5.entry.js +323 -0
  218. package/dist/esm/justifi-checkout.entry.js +82 -97
  219. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -7
  220. package/dist/esm/justifi-checkouts-list.entry.js +14 -15
  221. package/dist/esm/justifi-details.entry.js +2 -2
  222. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  223. package/dist/esm/justifi-dispute-management.entry.js +10 -11
  224. package/dist/esm/justifi-dispute-notification_3.entry.js +15 -16
  225. package/dist/esm/justifi-gross-payment-chart.entry.js +10 -11
  226. package/dist/esm/justifi-new-payment-method.entry.js +97 -0
  227. package/dist/esm/justifi-order-terminals.entry.js +14 -15
  228. package/dist/esm/justifi-owner-form_3.entry.js +10 -11
  229. package/dist/esm/justifi-payment-details.entry.js +12 -13
  230. package/dist/esm/justifi-payment-method-options.entry.js +74 -0
  231. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  232. package/dist/esm/justifi-payment-provisioning.entry.js +10 -11
  233. package/dist/esm/justifi-payment-transactions-list.entry.js +13 -14
  234. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  235. package/dist/esm/justifi-payments-list.entry.js +14 -15
  236. package/dist/esm/justifi-payout-details.entry.js +12 -13
  237. package/dist/esm/justifi-payout-transactions-list.entry.js +13 -14
  238. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  239. package/dist/esm/justifi-payouts-list.entry.js +16 -17
  240. package/dist/esm/justifi-refund-payment.entry.js +13 -14
  241. package/dist/esm/justifi-saved-payment-method.entry.js +30 -0
  242. package/dist/esm/justifi-saved-payment-methods_2.entry.js +114 -0
  243. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -6
  244. package/dist/esm/justifi-season-interruption-insurance.entry.js +16 -19
  245. package/dist/esm/justifi-skeleton.entry.js +15 -0
  246. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -8
  247. package/dist/esm/justifi-terminal-orders-list.entry.js +12 -13
  248. package/dist/esm/justifi-terminals-list-filters.entry.js +6 -7
  249. package/dist/esm/justifi-terminals-list.entry.js +14 -15
  250. package/dist/esm/justifi-tokenize-payment-method.entry.js +17 -11
  251. package/dist/esm/loader.js +1 -1
  252. package/dist/esm/{package-B0XIc_FO.js → package-DR0dQ8Fv.js} +1 -1
  253. package/dist/esm/pagination-menu.entry.js +1 -1
  254. package/dist/esm/{parts-BrLVc_85.js → parts-D3G5aVLy.js} +1 -1
  255. package/dist/esm/payment-details-core.entry.js +14 -14
  256. package/dist/esm/payment-method-option-utils-8n_ALxec.js +23 -0
  257. package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-2qP7AtHj.js} +2 -2
  258. package/dist/esm/{payment.service-BMbF1Svr.js → payment.service-CnQdP32J.js} +4 -5
  259. package/dist/esm/payments-list-core.entry.js +11 -12
  260. package/dist/esm/{payments-status-_qXPu883.js → payments-status-DUM0WZkk.js} +1 -1
  261. package/dist/esm/{payments-table-CrCdh5OV.js → payments-table-DVQzx7MJ.js} +3 -3
  262. package/dist/esm/payout-details-core.entry.js +10 -10
  263. package/dist/esm/{payout.service-HKpmn5XB.js → payout.service-EJuPNpfs.js} +4 -5
  264. package/dist/esm/payouts-list-core.entry.js +11 -12
  265. package/dist/esm/{payouts-status-C1XLgtWW.js → payouts-status-7saoFNoA.js} +1 -1
  266. package/dist/esm/{payouts-table-DIqsk6Oa.js → payouts-table-dca-F2iQ.js} +3 -3
  267. package/dist/esm/{skeleton-CdD_FIeP.js → skeleton-C1-JoGFC.js} +1 -1
  268. package/dist/esm/{spinner-DIlSUUzM.js → spinner-Ca9uu5Nd.js} +1 -1
  269. package/dist/esm/table-filters-menu.entry.js +3 -3
  270. package/dist/esm/{table-DjsimZwr.js → table-fsCYq8m9.js} +2 -2
  271. package/dist/esm/terminal-orders-list-core.entry.js +10 -11
  272. package/dist/esm/{terminal-orders-table-BnXCVH7W.js → terminal-orders-table-BNasCnjz.js} +6 -7
  273. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  274. package/dist/esm/{terminal.service-XpfOXoFl.js → terminal.service-Cfacmeto.js} +4 -5
  275. package/dist/esm/terminals-list-core.entry.js +10 -11
  276. package/dist/esm/{terminals-table-CCLlefFA.js → terminals-table-DBk-eg_3.js} +3 -3
  277. package/dist/esm/{utils-Dccsn9BY.js → utils-BZvep88z.js} +1 -1
  278. package/dist/esm/{utils-DB5fh6Iv.js → utils-BjLkBMLe.js} +1 -1
  279. package/dist/esm/{utils-6CI1OiOE.js → utils-CNwvOLkk.js} +1 -1
  280. package/dist/esm/webcomponents.js +1 -1
  281. package/dist/module/{check-pkg-version.js → Analytics.js} +22 -23
  282. package/dist/module/Payment.js +1 -1
  283. package/dist/module/Refund.js +119 -1
  284. package/dist/module/additional-statement.js +1 -1
  285. package/dist/module/bank-account-document-inputs.js +1 -2
  286. package/dist/module/bank-account-form.js +83 -1
  287. package/dist/module/{bank-account-form2.js → bank-account.js} +25 -8
  288. package/dist/module/billing-form-schema.js +24 -0
  289. package/dist/module/billing-form.js +28 -22
  290. package/dist/module/billing-information-form.js +97 -0
  291. package/dist/module/business-additional-questions-form-step.js +1 -1
  292. package/dist/module/business-address-schema.js +1 -1
  293. package/dist/module/business-bank-account-form-step-core.js +2 -3
  294. package/dist/module/business-bank-account-form-step.js +1 -2
  295. package/dist/module/business-core-info-form-step.js +1 -1
  296. package/dist/module/business-core-info-schema.js +1 -1
  297. package/dist/module/business-identity-schema.js +1 -1
  298. package/dist/module/business-owners-form-step.js +1 -1
  299. package/dist/module/business-representative-form-step.js +1 -1
  300. package/dist/module/business-terms-conditions-form-step.js +1 -2
  301. package/dist/module/business.service.js +1 -2
  302. package/dist/module/cancellation-policy.js +1 -1
  303. package/dist/module/card-form.js +91 -1
  304. package/dist/module/card-form2.js +27 -10
  305. package/dist/module/checkout.service.js +1 -2
  306. package/dist/module/checkout.store.js +34 -0
  307. package/dist/module/checkouts-list-core2.js +3 -4
  308. package/dist/module/custom-popper2.js +2 -2
  309. package/dist/module/customer-details.js +1 -1
  310. package/dist/module/dispute-management-core.js +1 -1
  311. package/dist/module/dispute-notification.js +1 -1
  312. package/dist/module/dispute-response-actions.js +1 -2
  313. package/dist/module/dispute-response-core.js +1 -1
  314. package/dist/module/dispute-response.js +3 -3
  315. package/dist/module/duplicate-charge.js +1 -1
  316. package/dist/module/electronic-evidence.js +1 -1
  317. package/dist/module/form-control-checkbox2.js +2 -2
  318. package/dist/module/form-control-date2.js +2 -2
  319. package/dist/module/form-control-file-v22.js +1 -1
  320. package/dist/module/form-control-file2.js +2 -2
  321. package/dist/module/form-control-monetary2.js +2 -2
  322. package/dist/module/form-control-number-masked2.js +2 -2
  323. package/dist/module/form-control-number.js +2 -2
  324. package/dist/module/form-control-radio2.js +2 -2
  325. package/dist/module/form-control-select2.js +2 -2
  326. package/dist/module/form-control-text2.js +2 -2
  327. package/dist/module/form-control-textarea2.js +2 -2
  328. package/dist/module/get-business.js +1 -1
  329. package/dist/module/get-payment-details.js +2 -3
  330. package/dist/module/get-payout-csv.js +1 -1
  331. package/dist/module/get-subaccounts.js +1 -2
  332. package/dist/module/gross-payment-chart-core2.js +1 -1
  333. package/dist/module/header-2.js +8 -0
  334. package/dist/module/header-3.js +8 -0
  335. package/dist/module/hidden-input2.js +1 -1
  336. package/dist/module/iframe-input2.js +5 -5
  337. package/dist/module/insurance-state.js +1 -7
  338. package/dist/module/justifi-bank-account-form.d.ts +11 -0
  339. package/dist/module/justifi-bank-account-form.js +6 -0
  340. package/dist/module/justifi-billing-information-form.d.ts +11 -0
  341. package/dist/module/justifi-billing-information-form.js +6 -0
  342. package/dist/module/justifi-business-details.js +2 -2
  343. package/dist/module/justifi-business-form.js +2 -3
  344. package/dist/module/{justifi-checkout-core.d.ts → justifi-button.d.ts} +4 -4
  345. package/dist/module/justifi-button.js +6 -0
  346. package/dist/module/justifi-button2.js +41 -0
  347. package/dist/module/justifi-card-form.d.ts +11 -0
  348. package/dist/module/justifi-card-form.js +6 -0
  349. package/dist/module/justifi-checkout-summary.d.ts +11 -0
  350. package/dist/module/justifi-checkout-summary.js +6 -0
  351. package/dist/module/justifi-checkout.js +146 -132
  352. package/dist/module/justifi-checkouts-list-filters.js +3 -4
  353. package/dist/module/justifi-checkouts-list.js +3 -4
  354. package/dist/module/justifi-dispute-management.js +3 -3
  355. package/dist/module/justifi-gross-payment-chart.js +2 -3
  356. package/dist/module/justifi-header.d.ts +11 -0
  357. package/dist/module/justifi-header.js +6 -0
  358. package/dist/module/justifi-header2.js +43 -0
  359. package/dist/module/justifi-modular-checkout.d.ts +11 -0
  360. package/dist/module/justifi-modular-checkout.js +6 -0
  361. package/dist/module/justifi-new-payment-method.js +214 -1
  362. package/dist/module/justifi-order-terminals.js +3 -4
  363. package/dist/module/justifi-payment-details.js +2 -2
  364. package/dist/module/justifi-payment-provisioning.js +2 -3
  365. package/dist/module/justifi-payment-transactions-list.js +4 -5
  366. package/dist/module/justifi-payments-list-filters.js +3 -3
  367. package/dist/module/justifi-payments-list.js +4 -5
  368. package/dist/module/justifi-payout-details.js +2 -3
  369. package/dist/module/justifi-payout-transactions-list.js +4 -5
  370. package/dist/module/justifi-payouts-list-filters.js +3 -3
  371. package/dist/module/justifi-payouts-list.js +3 -4
  372. package/dist/module/justifi-postal-code-form.d.ts +11 -0
  373. package/dist/module/justifi-postal-code-form.js +6 -0
  374. package/dist/module/justifi-refund-payment.js +2 -3
  375. package/dist/module/justifi-saved-payment-method.js +57 -1
  376. package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
  377. package/dist/module/justifi-saved-payment-methods.js +6 -0
  378. package/dist/module/justifi-season-interruption-insurance.js +11 -15
  379. package/dist/module/justifi-skeleton.d.ts +11 -0
  380. package/dist/module/justifi-skeleton.js +39 -0
  381. package/dist/module/justifi-terminal-orders-list-filters.js +4 -5
  382. package/dist/module/justifi-terminal-orders-list.js +3 -4
  383. package/dist/module/justifi-terminals-list-filters.js +3 -4
  384. package/dist/module/justifi-terminals-list.js +3 -4
  385. package/dist/module/justifi-tokenize-payment-method.js +18 -84
  386. package/dist/module/legal-address-form-step.js +1 -1
  387. package/dist/module/modular-checkout.js +286 -0
  388. package/dist/module/package.js +3 -3
  389. package/dist/module/parts.js +1 -1
  390. package/dist/module/payment-details-core2.js +8 -8
  391. package/dist/module/payment-method-option-utils.js +23 -0
  392. package/dist/module/payment-method-option.d.ts +11 -0
  393. package/dist/module/payment-method-option.js +6 -0
  394. package/dist/module/payment-method-option2.js +50 -0
  395. package/dist/module/payment-method-options.js +23 -113
  396. package/dist/module/payment-provisioning-actions.js +1 -1
  397. package/dist/module/payment-provisioning-core.js +1 -1
  398. package/dist/module/payment.service.js +1 -2
  399. package/dist/module/payments-list-core2.js +3 -4
  400. package/dist/module/payout-details-core2.js +3 -3
  401. package/dist/module/payout.service.js +1 -2
  402. package/dist/module/payouts-list-core2.js +3 -4
  403. package/dist/module/postal-code-form.js +93 -0
  404. package/dist/module/product-or-service.js +1 -1
  405. package/dist/module/refund-policy.js +1 -1
  406. package/dist/module/save-new-payment-method.js +6 -2
  407. package/dist/module/saved-payment-methods.js +72 -0
  408. package/dist/module/schema-validations.js +1 -1
  409. package/dist/module/season-interruption-insurance-core.js +4 -3
  410. package/dist/module/sezzle-payment-method.js +23 -17
  411. package/dist/module/shipping-details.js +1 -1
  412. package/dist/module/summary.js +34 -0
  413. package/dist/module/table-filters-menu2.js +2 -2
  414. package/dist/module/terminal-orders-list-core2.js +3 -4
  415. package/dist/module/terminal-quantity-selector2.js +1 -1
  416. package/dist/module/terminal.service.js +1 -2
  417. package/dist/module/terminals-list-core2.js +3 -4
  418. package/dist/module/utils4.js +1 -1
  419. package/dist/types/api/BillingInformation.d.ts +13 -0
  420. package/dist/types/api/Checkout.d.ts +15 -13
  421. package/dist/types/api/ComponentError.d.ts +3 -1
  422. package/dist/types/api/PaymentMethod.d.ts +21 -0
  423. package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +4 -4
  424. package/dist/types/components/checkout/checkout.d.ts +30 -11
  425. package/dist/types/components/checkout/payment-method-options.d.ts +2 -2
  426. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
  427. package/dist/types/components/modular-checkout/modular-checkout.d.ts +33 -0
  428. package/dist/types/components/modular-checkout/sub-components/bank-account-skeleton.d.ts +6 -0
  429. package/dist/types/components/modular-checkout/sub-components/bank-account.d.ts +18 -0
  430. package/dist/types/components/modular-checkout/sub-components/billing-form-schema.d.ts +23 -0
  431. package/dist/types/components/modular-checkout/sub-components/billing-information-form.d.ts +18 -0
  432. package/dist/types/components/modular-checkout/sub-components/card-form-skeleton.d.ts +6 -0
  433. package/dist/types/components/modular-checkout/sub-components/card-form.d.ts +20 -0
  434. package/dist/types/components/modular-checkout/sub-components/payment-method-option.d.ts +8 -0
  435. package/dist/types/components/modular-checkout/sub-components/postal-code-form.d.ts +19 -0
  436. package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +7 -0
  437. package/dist/types/components/{checkout → modular-checkout/sub-components}/sezzle-payment-method.d.ts +3 -9
  438. package/dist/types/components/modular-checkout/sub-components/summary.d.ts +3 -0
  439. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
  440. package/dist/types/components.d.ts +293 -73
  441. package/dist/types/store/checkout.store.d.ts +25 -0
  442. package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
  443. package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +13 -0
  444. package/dist/types/ui-components/shadow-dom-components/justifi-skeleton.d.ts +10 -0
  445. package/dist/webcomponents/p-00d7c2e6.entry.js +1 -0
  446. package/dist/webcomponents/p-03e9a98c.entry.js +1 -0
  447. package/dist/webcomponents/p-05c604d2.entry.js +1 -0
  448. package/dist/webcomponents/p-05fc864a.entry.js +1 -0
  449. package/dist/webcomponents/{p-4ac8d9d4.entry.js → p-0890869b.entry.js} +4 -4
  450. package/dist/webcomponents/p-09c24135.entry.js +1 -0
  451. package/dist/webcomponents/p-0e4e662b.entry.js +1 -0
  452. package/dist/webcomponents/p-0f511cc1.entry.js +1 -0
  453. package/dist/webcomponents/p-100008fa.entry.js +1 -0
  454. package/dist/webcomponents/p-17825dfb.entry.js +1 -0
  455. package/dist/webcomponents/p-18b941d3.entry.js +1 -0
  456. package/dist/webcomponents/p-19308a1b.entry.js +1 -0
  457. package/dist/webcomponents/p-1a7942f7.entry.js +1 -0
  458. package/dist/webcomponents/{p-BLWOT0S7.js → p-1adN6FVa.js} +1 -1
  459. package/dist/webcomponents/{p-2b5a7776.entry.js → p-1bddf354.entry.js} +1 -1
  460. package/dist/webcomponents/p-1d1d956b.entry.js +1 -0
  461. package/dist/webcomponents/p-26bf2fda.entry.js +1 -0
  462. package/dist/webcomponents/p-2d3949f7.entry.js +1 -0
  463. package/dist/webcomponents/{p-aa72125e.entry.js → p-2f482f5b.entry.js} +1 -1
  464. package/dist/webcomponents/p-30d3d0cd.entry.js +1 -0
  465. package/dist/webcomponents/{p-95d99ffc.entry.js → p-326f4860.entry.js} +1 -1
  466. package/dist/webcomponents/p-359b8f54.entry.js +1 -0
  467. package/dist/webcomponents/p-37aeeeee.entry.js +1 -0
  468. package/dist/webcomponents/p-4887bcb3.entry.js +1 -0
  469. package/dist/webcomponents/{p-a38b3d9a.entry.js → p-50bfec55.entry.js} +1 -1
  470. package/dist/webcomponents/p-54406229.entry.js +1 -0
  471. package/dist/webcomponents/p-56af4fd0.entry.js +1 -0
  472. package/dist/webcomponents/p-59656e08.entry.js +1 -0
  473. package/dist/webcomponents/p-5d145701.entry.js +1 -0
  474. package/dist/webcomponents/p-5e813b93.entry.js +1 -0
  475. package/dist/webcomponents/p-64a46b8a.entry.js +1 -0
  476. package/dist/webcomponents/p-66861ea5.entry.js +1 -0
  477. package/dist/webcomponents/{p-30415c7f.entry.js → p-683630d0.entry.js} +1 -1
  478. package/dist/webcomponents/p-6bd83369.entry.js +1 -0
  479. package/dist/webcomponents/p-6ee2b118.entry.js +1 -0
  480. package/dist/webcomponents/p-70774a5a.entry.js +1 -0
  481. package/dist/webcomponents/p-73afde1b.entry.js +1 -0
  482. package/dist/webcomponents/p-73bbd71c.entry.js +1 -0
  483. package/dist/webcomponents/p-74f78a4e.entry.js +1 -0
  484. package/dist/webcomponents/p-755a8d9b.entry.js +1 -0
  485. package/dist/webcomponents/p-7c456c10.entry.js +1 -0
  486. package/dist/webcomponents/p-7c63d61d.entry.js +1 -0
  487. package/dist/webcomponents/p-7c6d7283.entry.js +1 -0
  488. package/dist/webcomponents/{p-e21ba107.entry.js → p-7d2de2d4.entry.js} +1 -1
  489. package/dist/webcomponents/{p-3bf842ea.entry.js → p-7e9832b3.entry.js} +1 -1
  490. package/dist/webcomponents/p-810cad17.entry.js +1 -0
  491. package/dist/webcomponents/p-81478598.entry.js +1 -0
  492. package/dist/webcomponents/p-91a2707a.entry.js +1 -0
  493. package/dist/webcomponents/p-9348a7c8.entry.js +1 -0
  494. package/dist/webcomponents/p-967c3374.entry.js +1 -0
  495. package/dist/webcomponents/{p-BnE7qgLh.js → p-9REosSLu.js} +1 -1
  496. package/dist/webcomponents/p-9c27f87f.entry.js +1 -0
  497. package/dist/webcomponents/p-B9ROmZzw.js +1 -0
  498. package/dist/webcomponents/{p-vTsHmSQQ.js → p-BCPBc18Y.js} +1 -1
  499. package/dist/webcomponents/p-BQ5bL1Y5.js +1 -0
  500. package/dist/webcomponents/p-BSW9VS7r.js +1 -0
  501. package/dist/webcomponents/p-BSexQ2qc.js +1 -0
  502. package/dist/webcomponents/p-Bc5u1WjM.js +1 -0
  503. package/dist/webcomponents/p-BhrFjjAs.js +1 -0
  504. package/dist/webcomponents/p-BjQrbohd.js +1 -0
  505. package/dist/webcomponents/{p-1CYqfEKd.js → p-BqK0rIZQ.js} +1 -1
  506. package/dist/webcomponents/p-BtT7kqMw.js +1 -0
  507. package/dist/webcomponents/p-BxWsrx5h.js +1 -0
  508. package/dist/webcomponents/{p-BTS3E50C.js → p-BxfUcCXo.js} +1 -1
  509. package/dist/webcomponents/p-By9Lz2e0.js +1 -0
  510. package/dist/webcomponents/p-CEp46FZK.js +1 -0
  511. package/dist/webcomponents/p-CMNxLEJP.js +1 -0
  512. package/dist/webcomponents/p-CZItg0Yo.js +1 -0
  513. package/dist/webcomponents/{p-BrLVc_85.js → p-D3G5aVLy.js} +1 -1
  514. package/dist/webcomponents/p-D7WGjeDy.js +1 -0
  515. package/dist/webcomponents/{p-Cw3BMq7G.js → p-DAVX1-sW.js} +1 -1
  516. package/dist/webcomponents/{p-Clv1feia.js → p-DAoffYFW.js} +1 -1
  517. package/dist/webcomponents/{p-Bnrk5pzA.js → p-DDpc1huF.js} +1 -1
  518. package/dist/webcomponents/{p-D9lioyBA.js → p-DHvfrLVU.js} +1 -1
  519. package/dist/webcomponents/p-DIDbcp63.js +1 -0
  520. package/dist/webcomponents/p-DKClunJd.js +1 -0
  521. package/dist/webcomponents/p-DR0dQ8Fv.js +1 -0
  522. package/dist/webcomponents/p-DUqRxn4Y.js +1 -0
  523. package/dist/webcomponents/p-DbcOhajT.js +1 -0
  524. package/dist/webcomponents/{p-CYTPbCLN.js → p-Dh6FEdp8.js} +1 -1
  525. package/dist/webcomponents/p-DhAmsAOH.js +1 -0
  526. package/dist/webcomponents/p-DoEkFs2i.js +1 -0
  527. package/dist/webcomponents/p-DvXSA0b0.js +1 -0
  528. package/dist/webcomponents/p-NqdaxjDT.js +1 -0
  529. package/dist/webcomponents/p-a02ce003.entry.js +1 -0
  530. package/dist/webcomponents/p-a05062d8.entry.js +1 -0
  531. package/dist/webcomponents/p-a27405fb.entry.js +1 -0
  532. package/dist/webcomponents/p-a2f0d61c.entry.js +1 -0
  533. package/dist/webcomponents/p-a95741ee.entry.js +1 -0
  534. package/dist/webcomponents/p-ac538ffd.entry.js +1 -0
  535. package/dist/webcomponents/p-ae00a6f3.entry.js +1 -0
  536. package/dist/webcomponents/p-b193bf46.entry.js +1 -0
  537. package/dist/webcomponents/p-b398856f.entry.js +1 -0
  538. package/dist/webcomponents/{p-7d324f45.entry.js → p-cb7c712f.entry.js} +1 -1
  539. package/dist/webcomponents/p-d33baab9.entry.js +1 -0
  540. package/dist/webcomponents/{p-a23dfac9.entry.js → p-d3f438ca.entry.js} +1 -1
  541. package/dist/webcomponents/p-d5b3c65c.entry.js +1 -0
  542. package/dist/webcomponents/p-d62e6c16.entry.js +1 -0
  543. package/dist/webcomponents/p-d7f62287.entry.js +1 -0
  544. package/dist/webcomponents/{p-36c99fce.entry.js → p-e48a2d25.entry.js} +1 -1
  545. package/dist/webcomponents/p-eba620cd.entry.js +1 -0
  546. package/dist/webcomponents/p-ecdda6e6.entry.js +1 -0
  547. package/dist/webcomponents/p-f24e201f.entry.js +1 -0
  548. package/dist/webcomponents/p-f5d12ae3.entry.js +1 -0
  549. package/dist/webcomponents/{p-BSl0X3r8.js → p-fUv1jFAw.js} +1 -1
  550. package/dist/webcomponents/p-m2jmX-Hz.js +1 -0
  551. package/dist/webcomponents/p-pGzabKc7.js +1 -0
  552. package/dist/webcomponents/p-sT4o5vru.js +1 -0
  553. package/dist/webcomponents/p-ys9CWfNG.js +1 -0
  554. package/dist/webcomponents/p-zucQG3cz.js +1 -0
  555. package/dist/webcomponents/webcomponents.esm.js +1 -1
  556. package/package.json +1 -1
  557. package/dist/cjs/Checkout-TZnRz3-3.js +0 -103
  558. package/dist/cjs/bank-account-form_9.cjs.entry.js +0 -581
  559. package/dist/cjs/iframe-input-styles-state-DX5gGQQF.js +0 -26
  560. package/dist/cjs/justifi-checkout-core.cjs.entry.js +0 -142
  561. package/dist/collection/components/checkout/checkout-core.js +0 -454
  562. package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
  563. package/dist/esm/Checkout-B9LrTq63.js +0 -101
  564. package/dist/esm/bank-account-form_9.entry.js +0 -571
  565. package/dist/esm/iframe-input-styles-state-DqkcQMM1.js +0 -23
  566. package/dist/esm/justifi-checkout-core.entry.js +0 -140
  567. package/dist/module/Checkout.js +0 -121
  568. package/dist/module/checkout-core.js +0 -274
  569. package/dist/module/justifi-checkout-core.js +0 -6
  570. package/dist/module/new-payment-method.js +0 -204
  571. package/dist/module/saved-payment-method.js +0 -79
  572. package/dist/types/components/checkout/checkout-core.d.ts +0 -49
  573. package/dist/webcomponents/p-0da7c7e5.entry.js +0 -1
  574. package/dist/webcomponents/p-111535c9.entry.js +0 -1
  575. package/dist/webcomponents/p-18ddc883.entry.js +0 -1
  576. package/dist/webcomponents/p-1ANZF89K.js +0 -1
  577. package/dist/webcomponents/p-249d9a7f.entry.js +0 -1
  578. package/dist/webcomponents/p-312b81a6.entry.js +0 -1
  579. package/dist/webcomponents/p-39d3df56.entry.js +0 -1
  580. package/dist/webcomponents/p-3dc2d47c.entry.js +0 -1
  581. package/dist/webcomponents/p-40bbb25c.entry.js +0 -1
  582. package/dist/webcomponents/p-40fb2439.entry.js +0 -1
  583. package/dist/webcomponents/p-412805ce.entry.js +0 -1
  584. package/dist/webcomponents/p-43c3a433.entry.js +0 -1
  585. package/dist/webcomponents/p-5436c41f.entry.js +0 -1
  586. package/dist/webcomponents/p-5576322e.entry.js +0 -1
  587. package/dist/webcomponents/p-59db70c0.entry.js +0 -1
  588. package/dist/webcomponents/p-600da1ee.entry.js +0 -1
  589. package/dist/webcomponents/p-6daf7df0.entry.js +0 -1
  590. package/dist/webcomponents/p-867a4a55.entry.js +0 -1
  591. package/dist/webcomponents/p-878f26f7.entry.js +0 -1
  592. package/dist/webcomponents/p-8c0162b3.entry.js +0 -1
  593. package/dist/webcomponents/p-8e201c63.entry.js +0 -1
  594. package/dist/webcomponents/p-91b5da99.entry.js +0 -1
  595. package/dist/webcomponents/p-989f51bc.entry.js +0 -1
  596. package/dist/webcomponents/p-9f9002c1.entry.js +0 -1
  597. package/dist/webcomponents/p-B0XIc_FO.js +0 -1
  598. package/dist/webcomponents/p-B3AHoKpE.js +0 -1
  599. package/dist/webcomponents/p-BOQVwCyQ.js +0 -1
  600. package/dist/webcomponents/p-Bgdp97Tl.js +0 -1
  601. package/dist/webcomponents/p-BkDN6yJN.js +0 -1
  602. package/dist/webcomponents/p-BqoTJ9CO.js +0 -1
  603. package/dist/webcomponents/p-C5RuuShs.js +0 -1
  604. package/dist/webcomponents/p-C9oyC18r.js +0 -1
  605. package/dist/webcomponents/p-CNSeavdR.js +0 -1
  606. package/dist/webcomponents/p-CSO7ljYx.js +0 -1
  607. package/dist/webcomponents/p-CgEahdBL.js +0 -1
  608. package/dist/webcomponents/p-Ckf8pUs-.js +0 -1
  609. package/dist/webcomponents/p-Cm9gh1Sz.js +0 -1
  610. package/dist/webcomponents/p-CraCsD1A.js +0 -1
  611. package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
  612. package/dist/webcomponents/p-DgIkDBGX.js +0 -1
  613. package/dist/webcomponents/p-DniQ6yo6.js +0 -1
  614. package/dist/webcomponents/p-DpbCEDZ3.js +0 -1
  615. package/dist/webcomponents/p-Ds11n2AD.js +0 -1
  616. package/dist/webcomponents/p-DvuraFxP.js +0 -1
  617. package/dist/webcomponents/p-DzFysjCc.js +0 -1
  618. package/dist/webcomponents/p-KoNvNGKV.js +0 -1
  619. package/dist/webcomponents/p-SdntD1xf.js +0 -1
  620. package/dist/webcomponents/p-Zuu7wsNB.js +0 -1
  621. package/dist/webcomponents/p-a151a347.entry.js +0 -1
  622. package/dist/webcomponents/p-a48f8ec2.entry.js +0 -1
  623. package/dist/webcomponents/p-a7e9a1d1.entry.js +0 -1
  624. package/dist/webcomponents/p-a87c50de.entry.js +0 -1
  625. package/dist/webcomponents/p-b648fca4.entry.js +0 -1
  626. package/dist/webcomponents/p-b92737c4.entry.js +0 -1
  627. package/dist/webcomponents/p-bbf264c6.entry.js +0 -1
  628. package/dist/webcomponents/p-bdbd0c8e.entry.js +0 -1
  629. package/dist/webcomponents/p-be89720e.entry.js +0 -1
  630. package/dist/webcomponents/p-c18a5ebf.entry.js +0 -1
  631. package/dist/webcomponents/p-c87WhXVB.js +0 -1
  632. package/dist/webcomponents/p-d3a2fa7e.entry.js +0 -1
  633. package/dist/webcomponents/p-d768d814.entry.js +0 -1
  634. package/dist/webcomponents/p-d7883a41.entry.js +0 -1
  635. package/dist/webcomponents/p-d9a9279b.entry.js +0 -1
  636. package/dist/webcomponents/p-d9ae1fea.entry.js +0 -1
  637. package/dist/webcomponents/p-da872abc.entry.js +0 -1
  638. package/dist/webcomponents/p-db86c150.entry.js +0 -1
  639. package/dist/webcomponents/p-dbcc1a8e.entry.js +0 -1
  640. package/dist/webcomponents/p-e0345315.entry.js +0 -1
  641. package/dist/webcomponents/p-e2867ef6.entry.js +0 -1
  642. package/dist/webcomponents/p-e4fa3f41.entry.js +0 -1
  643. package/dist/webcomponents/p-edfcb58d.entry.js +0 -1
  644. package/dist/webcomponents/p-f37bb6d6.entry.js +0 -1
  645. package/dist/webcomponents/p-f5eeb11d.entry.js +0 -1
  646. package/dist/webcomponents/p-f6d5f392.entry.js +0 -1
  647. package/dist/webcomponents/p-f6debdb8.entry.js +0 -1
  648. package/dist/webcomponents/p-fcb85a8e.entry.js +0 -1
  649. package/dist/webcomponents/p-hBHbB3i6.js +0 -1
  650. package/dist/webcomponents/p-pOQo1ck9.js +0 -1
@@ -1,60 +1,94 @@
1
1
  import { h } from "@stencil/core";
2
- import { makeGetCheckout, makeCheckoutComplete } from "../../actions/checkout/checkout-actions";
3
- import { CheckoutService } from "../../api/services/checkout.service";
4
- import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
5
2
  import JustifiAnalytics from "../../api/Analytics";
6
3
  import { checkPkgVersion } from "../../utils/check-pkg-version";
4
+ import { checkoutStore } from "../../store/checkout.store";
5
+ import { checkoutSummary } from "../../styles/parts";
6
+ import { PaymentMethodTypes } from "../../api/Payment";
7
+ import { StyledHost } from "../../ui-components";
8
+ const PaymentMethodTypeLabels = {
9
+ bankAccount: 'New bank account',
10
+ card: 'New credit or debit card',
11
+ };
7
12
  export class Checkout {
8
13
  constructor() {
9
14
  this.errorMessage = '';
15
+ this.insuranceToggled = false;
16
+ this.isSubmitting = false; // This is used to prevent multiple submissions and is different from loading state
17
+ this.paymentMethodOptions = [];
18
+ this.savePaymentMethod = false;
19
+ this.disableBankAccount = false;
20
+ this.disableBnpl = false;
21
+ this.disableCreditCard = false;
22
+ this.disablePaymentMethodGroup = false;
23
+ this.hideBankAccountBillingForm = false;
24
+ this.hideCardBillingForm = false;
25
+ }
26
+ propChanged() {
27
+ this.updateStore();
28
+ }
29
+ connectedCallback() {
30
+ if (this.authToken && this.checkoutId) {
31
+ this.updateStore();
32
+ }
10
33
  }
11
34
  componentWillLoad() {
12
35
  checkPkgVersion();
13
36
  this.analytics = new JustifiAnalytics(this);
14
- this.initializeGetCheckout();
15
37
  }
16
38
  disconnectedCallback() {
17
39
  var _a;
18
40
  (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
19
41
  }
20
- ;
21
- initializeGetCheckout() {
22
- if (this.authToken && this.checkoutId) {
23
- this.getCheckout = makeGetCheckout({
24
- authToken: this.authToken,
25
- checkoutId: this.checkoutId,
26
- service: new CheckoutService()
27
- });
28
- this.complete = makeCheckoutComplete({
29
- authToken: this.authToken,
30
- checkoutId: this.checkoutId,
31
- service: new CheckoutService()
32
- });
33
- }
34
- else {
35
- this.errorEvent.emit({
36
- message: 'auth-token and checkout-id are required',
37
- errorCode: ComponentErrorCodes.MISSING_PROPS,
38
- severity: ComponentErrorSeverity.ERROR,
39
- });
40
- }
42
+ savePaymentMethodChanged(event) {
43
+ this.savePaymentMethod = event.detail;
41
44
  }
42
- propChanged() {
43
- this.initializeGetCheckout();
45
+ checkoutComplete(_event) {
46
+ this.isSubmitting = false;
47
+ }
48
+ checkoutError(event) {
49
+ this.isSubmitting = false;
50
+ console.error('checkout error', event.detail);
51
+ }
52
+ paymentMethodOptionSelected(event) {
53
+ checkoutStore.selectedPaymentMethod = event.detail.id;
44
54
  }
45
55
  async fillBillingForm(fields) {
46
- this.checkoutCoreRef.fillBillingForm(fields);
56
+ checkoutStore.billingFormFields = fields;
47
57
  }
48
58
  async validate() {
49
- const { isValid } = await this.checkoutCoreRef.validate();
50
- return { isValid };
59
+ var _a;
60
+ return { isValid: await ((_a = this.modularCheckoutRef) === null || _a === void 0 ? void 0 : _a.validate()) };
61
+ }
62
+ updateStore() {
63
+ checkoutStore.checkoutId = this.checkoutId;
64
+ checkoutStore.authToken = this.authToken;
65
+ checkoutStore.disableCreditCard = this.disableCreditCard;
66
+ checkoutStore.disableBankAccount = this.disableBankAccount;
67
+ checkoutStore.disableBnpl = this.disableBnpl;
68
+ checkoutStore.disablePaymentMethodGroup = this.disablePaymentMethodGroup;
69
+ }
70
+ async submit(_event) {
71
+ this.isSubmitting = true;
72
+ this.modularCheckoutRef.submitCheckout(checkoutStore.billingFormFields);
73
+ }
74
+ get canSavePaymentMethod() {
75
+ return checkoutStore.selectedPaymentMethod === PaymentMethodTypes.card || checkoutStore.selectedPaymentMethod === PaymentMethodTypes.bankAccount;
76
+ }
77
+ get showBillingForm() {
78
+ return (checkoutStore.selectedPaymentMethod === PaymentMethodTypes.card && !this.hideCardBillingForm)
79
+ || (checkoutStore.selectedPaymentMethod === PaymentMethodTypes.bankAccount && !this.hideBankAccountBillingForm);
80
+ }
81
+ get showBillingFormSection() {
82
+ return checkoutStore.selectedPaymentMethod === PaymentMethodTypes.card || checkoutStore.selectedPaymentMethod === PaymentMethodTypes.bankAccount;
83
+ }
84
+ get showPaymentTypeHeader() {
85
+ return !this.disableCreditCard && !this.disableBankAccount;
86
+ }
87
+ get showPostalCodeForm() {
88
+ return checkoutStore.selectedPaymentMethod === PaymentMethodTypes.card && this.hideCardBillingForm;
51
89
  }
52
90
  render() {
53
- return (h("justifi-checkout-core", { key: 'c1c7cf4f1aadce928e3ed6a6ae05a7824d875d68', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: el => {
54
- if (el) {
55
- this.checkoutCoreRef = el;
56
- }
57
- } }, h("div", { key: '7a4be7220e5eb199f94c5086c23e10dce68d4854', slot: "insurance" }, h("slot", { key: 'f5db23ef6dc82d0521518ea2dbfe99d8c8b6c2cc', name: "insurance" }))));
91
+ return (h(StyledHost, { key: '4fb1d82b065de6c1e4651a246a53f8e58451d6f6' }, h("justifi-modular-checkout", { key: '232cf32890422f474cf929b7c7ed7246d7b39c75', ref: (el) => (this.modularCheckoutRef = el), authToken: this.authToken, checkoutId: this.checkoutId, savePaymentMethod: this.canSavePaymentMethod && this.savePaymentMethod }, h("div", { key: '677ad110b05520be3b729995657086f0f6cbf337', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '458c84541dd154dd8b4ad1d0f2320e2308cc1785', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: '440a7d1ad7b21da3db66e6c6f1f9afefb434a089', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '99bd431a8f70ce6e764cc04da3d0aaae6f0ebcbe' }, h("justifi-checkout-summary", { key: '52da663e5bed35f0deb220800c7ede8835a3671b' }))), h("div", { key: 'e95b1c6830d20c5af57c558badb04d07d3c48f23', class: "col-12 mt-4" }, h("slot", { key: '527d58d4806d2e1bbcba499e97ab65f6c9c7efb9', name: "insurance" })), h("div", { key: '69d1319d1e05852de4f5566ad3be20bc9a6ee499', class: "col-12 mt-4" }, h("justifi-header", { key: '1682f909f22172a44da54118aefe428f92908e91', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '7942a12143bea0235705969737e11d59bc5180e1', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: '497664d455695693c4f9a1a4465c62ad4d5b6bdf', class: "d-flex flex-column" }, h("section", { key: 'd3da4c18b430e1b36f7b9ba20be517994e763b5e' }, h("div", { key: '1cc0f0462a0f70d2acc4c9fdee25fbb2fe953c22' }, h("justifi-saved-payment-methods", { key: '576da27df84d67bc69f2d95f00a6c440fa73f7ed' }), h("justifi-sezzle-payment-method", { key: '6544a3a250ee012870a9edce71dd763553d44554' }), !this.disableCreditCard && (h("div", { key: '79050f768d8d76c4d882bed667e85391c230a960' }, h("payment-method-option", { key: '5a6c1dc583766707e6215203fdba176bd65b501d', paymentMethodOptionId: PaymentMethodTypes.card, isSelected: checkoutStore.selectedPaymentMethod === PaymentMethodTypes.card, clickHandler: () => { checkoutStore.selectedPaymentMethod = PaymentMethodTypes.card; }, radioButtonHidden: this.disableCreditCard, label: PaymentMethodTypeLabels[PaymentMethodTypes.card] }), checkoutStore.selectedPaymentMethod === PaymentMethodTypes.card && (h("div", { key: '5e6f0b854191a9a5db8936b2e30518fba251e478', class: "mt-4 mb-4" }, h("justifi-card-form", { key: '6c3f72f27dfe36924fe94ab4f7c79b6b9ff19b47' }))))), !this.disableBankAccount && (h("div", { key: 'f6a88103b2c30e4dd10e733b19aaa29a7a44430c' }, h("payment-method-option", { key: '67ef047a8caad5bc389238d54bb3d7056ca4b9e6', paymentMethodOptionId: PaymentMethodTypes.bankAccount, isSelected: checkoutStore.selectedPaymentMethod === PaymentMethodTypes.bankAccount, clickHandler: () => { checkoutStore.selectedPaymentMethod = PaymentMethodTypes.bankAccount; }, radioButtonHidden: this.disableBankAccount, label: PaymentMethodTypeLabels[PaymentMethodTypes.bankAccount] }), checkoutStore.selectedPaymentMethod === PaymentMethodTypes.bankAccount && (h("div", { key: 'e67924184fc43811523081711f59865a01d7cf9f', class: "mt-4 mb-4" }, h("justifi-bank-account-form", { key: 'a01cdfe8be1bc98d4c0f75c2a9f2ca1cce519042' }))))))))), this.showBillingFormSection && (h("div", { key: 'a15f1202548c7d6c302c2b2827168a6a119f8634', class: "col-12 mt-4" }, this.showBillingForm && (h("justifi-header", { key: 'ee654c812cb097449937da4253e191de1ee669d5', text: "Billing Address", level: "h2", class: "fs-5 fw-bold pb-3" })), this.showPostalCodeForm && (h("justifi-postal-code-form", { key: '2a5736e6da3354f7a9d1a5b8870a2f61c09c2592' })), this.showBillingForm && (h("justifi-billing-information-form", { key: '7dd63931e75d7583b4f51a1f6bb2b1e84a46e078' })))), h("div", { key: '54aeb0f07f574ee004ec02cd279265202cffa9bf', class: "col-12" }, this.canSavePaymentMethod && (h("justifi-save-new-payment-method", { key: '2e010be22091cee1ebc4353d5dac3b49639175e7' }))), h("div", { key: '71df812c8a922ae8b447d647f69675230c092db9', class: "mt-4" }, h("justifi-button", { key: '057cd18c6235c73cc69ca85e9cb35a2a614a4d9a', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: this.isSubmitting, isLoading: this.isSubmitting, customStyle: { width: '100%', textAlign: "center" } }))))));
58
92
  }
59
93
  static get is() { return "justifi-checkout"; }
60
94
  static get properties() {
@@ -97,9 +131,9 @@ export class Checkout {
97
131
  "setter": false,
98
132
  "reflect": false
99
133
  },
100
- "disableCreditCard": {
134
+ "disableBankAccount": {
101
135
  "type": "boolean",
102
- "attribute": "disable-credit-card",
136
+ "attribute": "disable-bank-account",
103
137
  "mutable": false,
104
138
  "complexType": {
105
139
  "original": "boolean",
@@ -114,11 +148,12 @@ export class Checkout {
114
148
  },
115
149
  "getter": false,
116
150
  "setter": false,
117
- "reflect": false
151
+ "reflect": false,
152
+ "defaultValue": "false"
118
153
  },
119
- "disableBankAccount": {
154
+ "disableBnpl": {
120
155
  "type": "boolean",
121
- "attribute": "disable-bank-account",
156
+ "attribute": "disable-bnpl",
122
157
  "mutable": false,
123
158
  "complexType": {
124
159
  "original": "boolean",
@@ -133,11 +168,12 @@ export class Checkout {
133
168
  },
134
169
  "getter": false,
135
170
  "setter": false,
136
- "reflect": false
171
+ "reflect": false,
172
+ "defaultValue": "false"
137
173
  },
138
- "disableBnpl": {
174
+ "disableCreditCard": {
139
175
  "type": "boolean",
140
- "attribute": "disable-bnpl",
176
+ "attribute": "disable-credit-card",
141
177
  "mutable": false,
142
178
  "complexType": {
143
179
  "original": "boolean",
@@ -152,7 +188,8 @@ export class Checkout {
152
188
  },
153
189
  "getter": false,
154
190
  "setter": false,
155
- "reflect": false
191
+ "reflect": false,
192
+ "defaultValue": "false"
156
193
  },
157
194
  "disablePaymentMethodGroup": {
158
195
  "type": "boolean",
@@ -171,11 +208,12 @@ export class Checkout {
171
208
  },
172
209
  "getter": false,
173
210
  "setter": false,
174
- "reflect": false
211
+ "reflect": false,
212
+ "defaultValue": "false"
175
213
  },
176
- "hideCardBillingForm": {
214
+ "hideBankAccountBillingForm": {
177
215
  "type": "boolean",
178
- "attribute": "hide-card-billing-form",
216
+ "attribute": "hide-bank-account-billing-form",
179
217
  "mutable": false,
180
218
  "complexType": {
181
219
  "original": "boolean",
@@ -190,11 +228,12 @@ export class Checkout {
190
228
  },
191
229
  "getter": false,
192
230
  "setter": false,
193
- "reflect": false
231
+ "reflect": false,
232
+ "defaultValue": "false"
194
233
  },
195
- "hideBankAccountBillingForm": {
234
+ "hideCardBillingForm": {
196
235
  "type": "boolean",
197
- "attribute": "hide-bank-account-billing-form",
236
+ "attribute": "hide-card-billing-form",
198
237
  "mutable": false,
199
238
  "complexType": {
200
239
  "original": "boolean",
@@ -209,15 +248,21 @@ export class Checkout {
209
248
  },
210
249
  "getter": false,
211
250
  "setter": false,
212
- "reflect": false
251
+ "reflect": false,
252
+ "defaultValue": "false"
213
253
  }
214
254
  };
215
255
  }
216
256
  static get states() {
217
257
  return {
218
- "getCheckout": {},
258
+ "checkout": {},
219
259
  "complete": {},
220
- "errorMessage": {}
260
+ "errorMessage": {},
261
+ "insuranceToggled": {},
262
+ "isSubmitting": {},
263
+ "paymentMethodOptions": {},
264
+ "savePaymentMethod": {},
265
+ "serverError": {}
221
266
  };
222
267
  }
223
268
  static get events() {
@@ -263,6 +308,27 @@ export class Checkout {
263
308
  }
264
309
  }
265
310
  }
311
+ }, {
312
+ "method": "submitEvent",
313
+ "name": "submit-event",
314
+ "bubbles": true,
315
+ "cancelable": true,
316
+ "composed": true,
317
+ "docs": {
318
+ "tags": [],
319
+ "text": ""
320
+ },
321
+ "complexType": {
322
+ "original": "ComponentSubmitEvent",
323
+ "resolved": "ComponentSubmitEvent",
324
+ "references": {
325
+ "ComponentSubmitEvent": {
326
+ "location": "import",
327
+ "path": "../../api/ComponentEvents",
328
+ "id": "src/api/ComponentEvents.ts::ComponentSubmitEvent"
329
+ }
330
+ }
331
+ }
266
332
  }];
267
333
  }
268
334
  static get methods() {
@@ -319,6 +385,45 @@ export class Checkout {
319
385
  }, {
320
386
  "propName": "checkoutId",
321
387
  "methodName": "propChanged"
388
+ }, {
389
+ "propName": "disableCreditCard",
390
+ "methodName": "propChanged"
391
+ }, {
392
+ "propName": "disableBankAccount",
393
+ "methodName": "propChanged"
394
+ }, {
395
+ "propName": "disableBnpl",
396
+ "methodName": "propChanged"
397
+ }, {
398
+ "propName": "disablePaymentMethodGroup",
399
+ "methodName": "propChanged"
400
+ }];
401
+ }
402
+ static get listeners() {
403
+ return [{
404
+ "name": "checkboxChanged",
405
+ "method": "savePaymentMethodChanged",
406
+ "target": undefined,
407
+ "capture": false,
408
+ "passive": false
409
+ }, {
410
+ "name": "submit-event",
411
+ "method": "checkoutComplete",
412
+ "target": undefined,
413
+ "capture": false,
414
+ "passive": false
415
+ }, {
416
+ "name": "error-event",
417
+ "method": "checkoutError",
418
+ "target": undefined,
419
+ "capture": false,
420
+ "passive": false
421
+ }, {
422
+ "name": "paymentMethodOptionSelected",
423
+ "method": "paymentMethodOptionSelected",
424
+ "target": undefined,
425
+ "capture": false,
426
+ "passive": false
322
427
  }];
323
428
  }
324
429
  }
@@ -80,14 +80,14 @@ export class NewPaymentMethod {
80
80
  showNewPaymentMethodForm() {
81
81
  var _a;
82
82
  const paymentMethodType = (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id;
83
- return (h("div", { class: "mt-4 pb-4" }, h("hidden-input", null), paymentMethodType === 'card' ? (h("card-form", { ref: (el) => this.paymentMethodFormRef = el })) : (h("bank-account-form", { ref: (el) => this.paymentMethodFormRef = el })), h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodType }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
83
+ return (h("div", { class: "mt-4 pb-4" }, h("hidden-input", null), paymentMethodType === 'card' ? (h("justifi-card-form", null)) : (h("justifi-bank-account-form", null)), h("justifi-billing-form", { hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodType }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
84
84
  }
85
85
  get hiddenRadioInput() {
86
86
  return !this.showAch || !this.showCard;
87
87
  }
88
88
  render() {
89
89
  var _a, _b;
90
- return (h(Host, { key: '137378e62a729bd2287b1bdf89cb85c702cd4e12', class: "payment-method" }, h("div", { key: 'dabfcf5c56169708a8968a16aeaafefb43ca3ab8', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'd098e2b8f6e1230fc16fdc2cbfd616559bcf2b89', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
90
+ return (h(Host, { key: 'c80662f7f21610af20ead6aff44f02be0b21288c', class: "payment-method" }, h("div", { key: '5960fa9cf3ca9969c7ef80af3baf6e90ddf79578', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'ef5b921a707a3e51d4ee93f5e13952e69fc55213', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
91
91
  }
92
92
  static get is() { return "justifi-new-payment-method"; }
93
93
  static get properties() {
@@ -1,6 +1,12 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { PaymentMethodTypes } from "../../api/Payment";
3
3
  import { PaymentMethodOption } from "./payment-method-option-utils";
4
+ import { checkoutStore } from "../../store/checkout.store";
5
+ import { radioListItem } from "../../styles/parts";
6
+ const PaymentMethodTypeLabels = {
7
+ bankAccount: 'New bank account',
8
+ card: 'New credit or debit card',
9
+ };
4
10
  export class PaymentMethodOptions {
5
11
  constructor() {
6
12
  this.savedPaymentMethods = [];
@@ -33,12 +39,15 @@ export class PaymentMethodOptions {
33
39
  if (this.showAch) {
34
40
  this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.bankAccount }));
35
41
  }
36
- if (!this.selectedPaymentMethodId) {
37
- this.selectedPaymentMethodId = (_b = this.paymentMethodOptions[0]) === null || _b === void 0 ? void 0 : _b.id;
42
+ if (!checkoutStore.selectedPaymentMethod) {
43
+ checkoutStore.selectedPaymentMethod = (_b = this.paymentMethodOptions[0]) === null || _b === void 0 ? void 0 : _b.id;
38
44
  }
39
45
  }
40
46
  paymentMethodOptionSelected(event) {
41
- this.selectedPaymentMethodId = event.detail.id;
47
+ checkoutStore.selectedPaymentMethod = event.detail.id;
48
+ }
49
+ get hiddenRadioInput() {
50
+ return !this.showAch || !this.showCard;
42
51
  }
43
52
  async resolvePaymentMethod(insuranceValidation) {
44
53
  var _a;
@@ -49,34 +58,7 @@ export class PaymentMethodOptions {
49
58
  return newPaymentMethodElement.validate();
50
59
  }
51
60
  render() {
52
- var _a;
53
- return (h(Host, { key: 'c61e82c72aaa25e87ded723799a1eb0961c05444' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
54
- const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
55
- const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
56
- const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
57
- const sezzle = paymentMethodOption.id === PaymentMethodTypes.sezzle;
58
- if (newCard || newBankAccount) {
59
- return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, "show-card": this.showCard, "show-ach": this.showAch, paymentMethodGroupId: this.paymentMethodGroupId, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: (el) => {
60
- if (isSelected) {
61
- this.selectedPaymentMethodOptionRef = el;
62
- }
63
- } }));
64
- }
65
- else if (sezzle) {
66
- return (h("justifi-sezzle-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, paymentAmount: this.paymentAmount, bnpl: this.bnpl, ref: (el) => {
67
- if (isSelected) {
68
- this.selectedPaymentMethodOptionRef = el;
69
- }
70
- } }));
71
- }
72
- else if (this.showSavedPaymentMethods) {
73
- return (h("justifi-saved-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, ref: (el) => {
74
- if (isSelected) {
75
- this.selectedPaymentMethodOptionRef = el;
76
- }
77
- } }));
78
- }
79
- })));
61
+ return (h("div", { key: 'e1a46216f766f12306302210bcba3147a4312cfa' }, h("justifi-saved-payment-methods", { key: '72ac4e440719ed1bbafc90f4cf0a2e3a52530713' }), h("justifi-sezzle-payment-method", { key: 'aaa89521f18ac4833d561c08b3fa50b00800a4bf' }), h("div", { key: '209001587e9f7e23f1147d4ef2d8ec4691f6c9fb', class: "radio-list-item p-3", part: radioListItem, onClick: () => { checkoutStore.selectedPaymentMethod = PaymentMethodTypes.card; }, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: '0baed32a40efc6ff0d77dcf53ae9e3ff3aab1185', name: "paymentMethodType", value: PaymentMethodTypes.card, checked: checkoutStore.selectedPaymentMethod === PaymentMethodTypes.card, label: PaymentMethodTypeLabels[PaymentMethodTypes.card] })), h("div", { key: '53d8360fdecec5a6860f480901911bd2c396e1a2', class: "radio-list-item p-3", part: radioListItem, onClick: () => { checkoutStore.selectedPaymentMethod = PaymentMethodTypes.bankAccount; }, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: '901a45bae4b3faeed8daa147db5c8264c4bee08c', name: "paymentMethodType", value: PaymentMethodTypes.bankAccount, checked: checkoutStore.selectedPaymentMethod === PaymentMethodTypes.bankAccount, label: PaymentMethodTypeLabels[PaymentMethodTypes.bankAccount] }))));
80
62
  }
81
63
  static get is() { return "justifi-payment-method-options"; }
82
64
  static get properties() {
@@ -119,9 +101,9 @@ export class PaymentMethodOptions {
119
101
  "setter": false,
120
102
  "reflect": false
121
103
  },
122
- "showBnpl": {
104
+ "showSavedPaymentMethods": {
123
105
  "type": "boolean",
124
- "attribute": "show-bnpl",
106
+ "attribute": "show-saved-payment-methods",
125
107
  "mutable": false,
126
108
  "complexType": {
127
109
  "original": "boolean",
@@ -138,9 +120,9 @@ export class PaymentMethodOptions {
138
120
  "setter": false,
139
121
  "reflect": false
140
122
  },
141
- "showSavedPaymentMethods": {
123
+ "showBnpl": {
142
124
  "type": "boolean",
143
- "attribute": "show-saved-payment-methods",
125
+ "attribute": "show-bnpl",
144
126
  "mutable": false,
145
127
  "complexType": {
146
128
  "original": "boolean",
@@ -337,7 +319,6 @@ export class PaymentMethodOptions {
337
319
  }
338
320
  static get states() {
339
321
  return {
340
- "selectedPaymentMethodId": {},
341
322
  "paymentMethodOptions": {}
342
323
  };
343
324
  }
@@ -1,4 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
+ import { StyledHost } from "../../ui-components";
2
3
  export class SaveNewPaymentMethod {
3
4
  constructor() {
4
5
  this.isChecked = false;
@@ -8,9 +9,10 @@ export class SaveNewPaymentMethod {
8
9
  this.checkboxChanged.emit(this.isChecked);
9
10
  }
10
11
  render() {
11
- return (h("div", { key: 'e6e7a75237ec2062188bf85deadac58892663b3b', class: "mt-4 form-check" }, h("form-control-checkbox", { key: 'abbaeb4e9119c4d41f0a727c7a070c14b7418302', label: "Save new payment method", name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange.bind(this) })));
12
+ return (h(StyledHost, { key: '114f1887f2aebee2440d5c0b187fe1f361137230' }, h("div", { key: '8a967beb89065a8b3ee501f0589b6617764c641e', class: "mt-4 form-check" }, h("form-control-checkbox", { key: 'b22ca881a5fcda9dc044dfd1175e9ae06fd9f504', label: "Save new payment method", name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange.bind(this) }))));
12
13
  }
13
14
  static get is() { return "justifi-save-new-payment-method"; }
15
+ static get encapsulation() { return "shadow"; }
14
16
  static get states() {
15
17
  return {
16
18
  "isChecked": {}
@@ -18,7 +18,7 @@ export class SavedPaymentMethod {
18
18
  ;
19
19
  render() {
20
20
  var _a, _b, _c;
21
- return (h(Host, { key: '78487e52f549547f4c89f48a238a8916d77d4f1c', class: "payment-method" }, h("div", { key: 'd437a5f9e79356b1177703da2b5d7f4ca98072ce', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '0dd03b9ebae98c441c63717aba310d77e587b1c8', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${CardBrandLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.brand] || ''} *${(_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.acct_last_four}` }))));
21
+ return (h(Host, { key: 'c6a1d3de6363c80a0acb15c6676d3e913beeda2d', class: "payment-method" }, h("div", { key: 'fdabb1a67f654a3bcf06e86e8c42f6aa281e6757', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '0731e2ccb8080ee4972201a617cd99376627e332', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${CardBrandLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.brand] || ''} *${(_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.acct_last_four}` }))));
22
22
  }
23
23
  static get is() { return "justifi-saved-payment-method"; }
24
24
  static get properties() {
@@ -118,7 +118,7 @@ export class CheckoutsListCore {
118
118
  return !this.showEmptyState && !this.showErrorState && !this.loading;
119
119
  }
120
120
  render() {
121
- return (h(TableWrapper, { key: '79f36b8dd358285868187892962f5e2138942fe8' }, h(TableComponent, { key: 'e48c644e425ac45ab27b92548bc49af35b599245' }, h(TableHead, { key: '6d47b68c0a74f0eff3146dfc4720b0cc0f6fc24d' }, h(TableHeadRow, { key: 'a3660ae82b53ba7dead2e577fd8d573426935dc6' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '08fbd465bae0afa3de8d472c84e0410150509673' }, h(TableLoadingState, { key: 'ba7d778f9fc029166d6228fe9b1a8f1598a68c5a', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '312b176371526658852b74ae228524695f5c1947', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'a24680fb1d681397a3cb266ec34ab5c9310dfa64', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '503ffd707d958a353a18a6f06d1280a0cb01c741' }, h(TableFootRow, { key: '250fcfc3961881ab460221e5e0160d5b6d35e5c3' }, h(TableFootCell, { key: '2631d54b49bbee1502e5412cd9303d7d67746525', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: 'd7bb27501b62a1089090b06c82b2a2c328a2e0b6', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
121
+ return (h(TableWrapper, { key: 'c411d1c3a54fd8a331f0c5cdbae344e231482c0f' }, h(TableComponent, { key: '21774546f3500612497943869017fa7c712dff7e' }, h(TableHead, { key: 'c4e745ead905a393ff1b0cd0fba23db2fcc03ad8' }, h(TableHeadRow, { key: '88063d0baedd1febe0febcab1ccefc512accfd7d' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: 'e2534bc13d9e015f127c5396bbe73545d92536b4' }, h(TableLoadingState, { key: '0f0958fa87403652880222365cf7f88dd33335cc', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '588bb80d518892791ed2134dd5405940e7c28db7', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: '219cce1137232c64b7c9188042c4aaca7e0e91b6', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '16978b3be698ceabd1d19b9eaa3f85c01a862b83' }, h(TableFootRow, { key: 'cd26e5b6f03dff77e09dfb4f9962e7601b2e40dc' }, h(TableFootCell, { key: '508008cf682b393549a839453d4b4c2eee1f67a4', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '688702c35e666def509ccb77b88b88ddd5e0d58a', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
122
122
  }
123
123
  static get is() { return "checkouts-list-core"; }
124
124
  static get properties() {
@@ -38,7 +38,7 @@ export class CheckoutsListFilters {
38
38
  }
39
39
  render() {
40
40
  const filterMenuParams = Object.assign({}, filterParams);
41
- return (h(StyledHost, { key: 'bcae6fee83117dde40a29ebcab8e85089bcdc37e' }, h("table-filters-menu", { key: '56c6a5d205836fe010917f0f0d978507cf227a3f', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: 'c82691f9b863368a2b7523dc7d9d348c3fe2e776', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '9abbb01e53139ebd376a638400b199d88288b175', class: "p-2" }, h("form-control-select", { key: '3859777cf1f4ee451a65440a90dfe9e5f4a2f069', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '3c23d4b820ea2424d6ddc01e6952c8c46cd7d975', class: "p-2" }, h("form-control-select", { key: 'c376228f82419b959b3fefa6b32d25c584c6ea3b', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode, disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
41
+ return (h(StyledHost, { key: '5474a09b729c816bafb47101dbf5a25aff92eb1b' }, h("table-filters-menu", { key: '92e46a05e67bdf84b74cd644c1b89d0fc4c86af9', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: 'd8562876f8a0c1d85caa5a298cccdb1143bd7512', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '4162644cf10861d91a79dc07f845dd21a6c8d6a5', class: "p-2" }, h("form-control-select", { key: '2b13ef4af25f6ac3865f3b0edde91929655537bf', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '9aee7f453be147b03a548fe9ea9bd9bcc6a233aa', class: "p-2" }, h("form-control-select", { key: '8f375d5660c3414e5f3796e02694fa46ed761871', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode, disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
42
42
  }
43
43
  static get is() { return "justifi-checkouts-list-filters"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -61,7 +61,7 @@ export class CheckoutsList {
61
61
  }
62
62
  }
63
63
  render() {
64
- return (h(StyledHost, { key: 'c76ca3b186023ebea3ac3fe0cf6599786a2f2ea7' }, h("checkouts-list-core", { key: '484d31c0b0434181b3bd69cb9c3b6810aa0f2983', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
64
+ return (h(StyledHost, { key: '41bf633467138b6af13b1c02ccf1e1016ec54bfe' }, h("checkouts-list-core", { key: 'cd3ca431258ad73e701fe74612ecdf2c0f2a1bda', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
65
65
  }
66
66
  static get is() { return "justifi-checkouts-list"; }
67
67
  static get encapsulation() { return "shadow"; }
@@ -46,7 +46,7 @@ export class DisputeManagementCore {
46
46
  });
47
47
  }
48
48
  render() {
49
- return (h("div", { key: '5a8663529813801b730d449c835cfafb9924d860' }, this.showDisputeResponseForm ? (h("justifi-dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (h("justifi-dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading }))));
49
+ return (h("div", { key: 'c85852cbd1169f371eb30ae06b6a2a564a15ece7' }, this.showDisputeResponseForm ? (h("justifi-dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (h("justifi-dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading }))));
50
50
  }
51
51
  static get is() { return "justifi-dispute-management-core"; }
52
52
  static get properties() {
@@ -43,7 +43,7 @@ export class DisputeManagement {
43
43
  }
44
44
  }
45
45
  render() {
46
- return (h("justifi-dispute-management-core", { key: '5abe4c29317f9baa7fc40d82e2cd533de321d58f', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
46
+ return (h("justifi-dispute-management-core", { key: '4087eb105a046a3cc194d9f25c80fa11298fa0a2', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
47
47
  }
48
48
  static get is() { return "justifi-dispute-management"; }
49
49
  static get properties() {
@@ -30,7 +30,7 @@ export class DisputeNotification {
30
30
  }
31
31
  render() {
32
32
  var _a, _b, _c, _d, _e, _f, _g;
33
- return (h(StyledHost, { key: '77119b1227200909f4742e24df0a45e1f631c65c' }, this.isLoading && (h("div", { key: 'f0766ff057fb2f4b75b34c7d4a386bde43e49652', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'd7268194dea5ac2a3b87aea8e17573b4768e308f', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: 'f8863e45a917f56be302ca1b0b3d472119f6465c', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: 'c7b8c9c89d9488eea3be8ea0b4536f98a8151487', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && (h("div", { key: '875fe7def317ce1c4547e04e83baf2b232209058', part: text }, h("h1", { key: '09646afc2aac3bf4ef9737bc12442660bbafb2dd', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '14224cffb16726eaa589118be954e0f844ffaee8' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '415028b91872a2391796872fdffdbee837a2a511', class: "h5" }, "Dispute details"), h("div", { key: 'c2b8c6be3132f98eb8c686ab88a5a6a68f92a60e', class: "d-table gap-2" }, h("div", { key: 'd11bd8b3bc680183e8bee40281cc2c294aedbd5a', class: "d-table-row gap-2" }, h("span", { key: 'd77796c0d2764329c3b482ae49ceb8b4cac03d37', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '716d8af2a250c3237af6e23b43bf50e032e9f203', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_b = this.dispute) === null || _b === void 0 ? void 0 : _b.amount))), h("div", { key: 'daba4379197533d2a4b246e81139d81cd15761c6', class: "d-table-row gap-2" }, h("span", { key: 'a039fbf47aff16445e3411c33a7b53716c42866d', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '19087aba5c516d0c71e9f84e8b3323a044ae532a', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_c = this.dispute) === null || _c === void 0 ? void 0 : _c.reason)), h("div", { key: '68ef78b15627df3b22bcde4b90f7c216466e7468', class: "d-table-row gap-2" }, h("span", { key: '9463c281d76b5e201a55c2993253fc22d04168dc', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Dispute ID"), h("span", { key: '5cffed27038f5571f37377c5023a88c8b7773a59', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_d = this.dispute) === null || _d === void 0 ? void 0 : _d.id))), h("div", { key: 'e856d924edac10116781425f6d7c4c8c6b26ced2', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '6d5278a91f79c2fe8fbdd9e391b109a6491b13b6', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '242b9076b482aae731ab6bedc1592a1a826e24c5', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_e = this.dispute) === null || _e === void 0 ? void 0 : _e.underReview) && (h("div", { key: 'f3711546ce5bf8b6a4a8689f5db3fdbf58f45bf4' }, h("h1", { key: '06e39be43cfacf667919adbd2f4f8c596702c340', class: "h4" }, "This payment is disputed and under review"), h("p", { key: 'b3bfef2d40e197f8dc9df6f71d9f13017a4b923d' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_f = this.dispute) === null || _f === void 0 ? void 0 : _f.won) && (h("div", { key: '580144b1439d6e017726b9731b7bb15e71900092' }, h("h1", { key: '42d74d215d23409672449af86e25c945aac33ea1', class: "h4" }, "This payment was disputed"), h("p", { key: '4c337e89a32f62c8f03a53eb84737785f4b0bdb4' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.lost) && (h("div", { key: '66c0f7bbada42053683dd25776a7c0abdb708315' }, h("h1", { key: '273f2d82dbe73a15da3186946763579be2801aa4', class: "h4" }, "This payment was disputed"), h("p", { key: '22172d1c6833eb5407c19dd31b85db805d07d177' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
33
+ return (h(StyledHost, { key: '0f1028825a7a96a06e7219518ffed54bc0db1b2b' }, this.isLoading && (h("div", { key: 'f4b704182a5a7085827854634d38c56423cc2e1b', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'b2062d8b683ab110c26fc30f1600c4500f668d87', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: 'b5d2afe1fdd2e5ee0ec60048a48778bcfa6c78d3', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: '1e87c8936b3f2e26e680786927c5a4609aca0b83', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && (h("div", { key: '49090493e3921353b7a830397795496bb234d112', part: text }, h("h1", { key: 'fd7b56a7cfeaa6820bf2cc121575314d075b5a83', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '72ba296695928baca8f7c5c3b1f858c596efedb2' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: 'cce733ff1bbca7a9530a442035cbae2995e018e7', class: "h5" }, "Dispute details"), h("div", { key: '28b7f081e345112d99c52d05f205734995617253', class: "d-table gap-2" }, h("div", { key: 'd9476d8d0adfa3c6eccad229e94cd3824a720c7d', class: "d-table-row gap-2" }, h("span", { key: '4d9e0714eee778c326ee1d70a32f79d90d3d4b09', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: 'b227edcf9b4b65b790d8aa98021d2662a12855bc', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_b = this.dispute) === null || _b === void 0 ? void 0 : _b.amount))), h("div", { key: 'b1b1cdaac5482f565a6f26af71c0b526b8c19f4e', class: "d-table-row gap-2" }, h("span", { key: '0a479a9de96cce6e42bec90a17affe2c93ced44f', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '5d5020dda571f4465e2a358880ad5f20bc6171ea', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_c = this.dispute) === null || _c === void 0 ? void 0 : _c.reason)), h("div", { key: 'a5f42c3fcbb5d14f8479d0a576d31a50f8fc6441', class: "d-table-row gap-2" }, h("span", { key: '280fca5a101eb0e823eb9ccc13c746ac7ed62069', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Dispute ID"), h("span", { key: '4dfc0b9a295ffc804b708d3590358256009e5376', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_d = this.dispute) === null || _d === void 0 ? void 0 : _d.id))), h("div", { key: '654e7baccd08628bc90d050bad108011b49f9972', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: 'd0817cdb23bf33086c6ce5122f4ed5388027d96c', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '5446bef44a0ca747692d59fd5490409d00a9e285', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_e = this.dispute) === null || _e === void 0 ? void 0 : _e.underReview) && (h("div", { key: '17fbc5902badc4230c5485b326f480180c844768' }, h("h1", { key: 'fefa0234306588d9e7f56733872bf8c9793f51dd', class: "h4" }, "This payment is disputed and under review"), h("p", { key: 'eaad72aa8d9f65ca296379a2800180878ec8a7e5' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_f = this.dispute) === null || _f === void 0 ? void 0 : _f.won) && (h("div", { key: 'ec1b0d728a7518f913c2a69976fa1f5fc8f76c74' }, h("h1", { key: '9d42fad15fbeee507e2f364c3a35f143ff7599e2', class: "h4" }, "This payment was disputed"), h("p", { key: '3b728a5544fe17a6c58c12f7e8eef290022945b6' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.lost) && (h("div", { key: '6d1813508a657265546fbef00bd1e8f46ffaf740' }, h("h1", { key: 'de981fc2e06e860f47146647975965a903a39b55', class: "h4" }, "This payment was disputed"), h("p", { key: '4e57ab86518bd678a3a5402b712d40d573b3a970' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
34
34
  }
35
35
  static get is() { return "justifi-dispute-notification"; }
36
36
  static get encapsulation() { return "shadow"; }
@@ -29,7 +29,7 @@ export class AdditionalStatement {
29
29
  }
30
30
  render() {
31
31
  var _a, _b;
32
- return (h("div", { key: '5e572a30ed53b4fbcf3808ba545ce2fdf5b988aa' }, h("div", { key: '90870dc58e0eab72e64ae03bdaa25bb1749d8e23', class: "row gy-3" }, h("div", { key: 'cc3b6f19687d02e047744e8a53d22a2f91a8b968', class: "col-12" }, h("h2", { key: '230c20dc3f75e48afa4008369374fd8c175cb7ea', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '7b49c8012cfc07c44399969f8505db786389b38b', class: "col-12" }, h("form-control-textarea", { key: '349a8a2ebda338e170c90266801ae93b6f9482ea', 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: '01cd368a2278c5de462f0998a50ba4ca5889be26', class: "col-12" }, h("form-control-file-v2", { key: 'f95d0b78704f9a1fd154003edbbffb062659ae27', 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 })))));
32
+ return (h("div", { key: '4d0fbca80a880577be7853efc494807d7d1e2fd9' }, h("div", { key: '6c3a82afe01b0812807a8e19dc750d4e9901876a', class: "row gy-3" }, h("div", { key: '89e7f50b0c6d67249b892caf8c6b2d78c1742309', class: "col-12" }, h("h2", { key: 'e0c4db3f5330cdd0e00897da0a54b898f0056f93', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '58d4506d4bc0470afa4de87fdcf25ce4397d4180', class: "col-12" }, h("form-control-textarea", { key: 'aee641d90803d0ff483cfe75d881e3259303d4bc', 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: '19377eb6382adc9cb69ec57fe7928b7d477110d8', class: "col-12" }, h("form-control-file-v2", { key: '9529de236046398904d4780fcedada3a67ce4daf', 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 })))));
33
33
  }
34
34
  static get is() { return "justifi-additional-statement"; }
35
35
  static get properties() {
@@ -28,7 +28,7 @@ export class CancellationPolicy {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c;
31
- return (h("div", { key: '6dc5100426e8e4124d19a375250f85f8e15b28d4' }, h("div", { key: 'fb950108be5fd4096a7717c88943938261787f99', class: "row gy-3" }, h("div", { key: '08f85a06288e19939a16d3fa52ef3b3199c56f36', class: "col-12" }, h("h2", { key: 'a585b93921814b1ffbb95c6f9c1de37d4104049b', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '3b7c620518006738d2e36863b62a72142f167733', class: "col-12" }, h("form-control-textarea", { key: '70a76160b0d29648a9e0598dd5b867a382935e03', 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: 'e06d4c794bad47e366ca702e764307fdab5e33a8', class: "col-12" }, h("form-control-textarea", { key: '1b783920c5a5b94bff60d4b061cc7cc6666cc184', 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: '3cb3371c1d3727e55140ea60a0cff96bc0f42702', class: "col-12" }, h("form-control-file-v2", { key: '738a456bf4653240180963fa7e5ab20a7a4add7c', 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 })))));
31
+ return (h("div", { key: 'ac10b9b21d37179211d74118b06f561e95d9ea71' }, h("div", { key: '8ff525f8ed20828ed153b7dc23cb84a0277b81d4', class: "row gy-3" }, h("div", { key: '4f22ed526972a6625dc77b3ab0ab5b074277d7b2', class: "col-12" }, h("h2", { key: 'd78d54468b91edd99238bd757f871b18ec5b58ca', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '629c9660446cbba8951cd8396d9b72aea71c731b', class: "col-12" }, h("form-control-textarea", { key: '60e0b4903e4ddec6915d23617f215d5d2ea20935', 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: 'aec3e4561f880b86ba6f5c7ce0298e45b837c2fd', class: "col-12" }, h("form-control-textarea", { key: 'e77d126709037cb22e6e4fcf2228652ffeb672ee', 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: '407c071a0f7a1e488eb2ef4d522e515138a5ed2c', class: "col-12" }, h("form-control-file-v2", { key: '15dfacd8e1de439848d12ecec9a0f5ffac259484', 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 })))));
32
32
  }
33
33
  static get is() { return "justifi-cancellation-policy"; }
34
34
  static get properties() {
@@ -28,7 +28,7 @@ export class CustomerDetails {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c, _d, _e;
31
- return (h("div", { key: '70e29d650d5304522f927c15b4eb5e62e203c5e0' }, h("div", { key: 'f50422b29cb2a4f3bca911ced94dc681adb3fc41', class: "row gy-3" }, h("div", { key: 'f29816d9281ea4c4db5018d3b7edb1600569357a', class: "col-12" }, h("h2", { key: 'a2889c95c293bf0bbf97c16e4486e307ca87729c', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '9cd45719434a1740f67b73c13fd08e0fe562168e', class: "col-12" }, h("form-control-text", { key: '5a30a3aef7fbe2d3013c46e43a437724dae41213', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: '9812e1f9f6df949b9f15b2c3f28857db7dcf5cb7', class: "col-12" }, h("form-control-text", { key: '10b146053a399039e8dbd42c3cab53b4b55c0ec3', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: '2742a0922a223bd60d6e3d08a55190742ecf5112', class: "col-12" }, h("form-control-textarea", { key: '41491e238c75716520d747cbf9f1bcc329a2d686', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: '71074f31e565c24107b91b04d9aa16da77ba618c', class: "col-12" }, h("form-control-file-v2", { key: '17f70cf96927b01e65430e13c2d21209e9170603', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: 'ec696695191e68c7ceb0cc41f99f9e53f2d59da1', class: "col-12" }, h("form-control-file-v2", { key: '562ff8b3819f536d491f2e2e55a85a55fcda0e1c', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
31
+ return (h("div", { key: 'e09402d1c3ca9bb8f3a243c22bec2e9d908d661f' }, h("div", { key: '67a1038f92a9a9711ca37d353af7a06b87cbe0a8', class: "row gy-3" }, h("div", { key: '1be2249539c434bf3faf847b4202ff2f421d15a3', class: "col-12" }, h("h2", { key: '17d8bc1b31dfa77f08500ff4029f572049d9e1ce', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '3e218b39c8f5dab178cc8b23caf403e1a912694c', class: "col-12" }, h("form-control-text", { key: 'ab28a2176315c3ecd1ff984a599589a81375f4e0', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: 'e1739728748de575e39f29018cd1139d75232611', class: "col-12" }, h("form-control-text", { key: '9f2aec120b08ac793be93f9c990d81a74c9e57d2', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: '9be7e4a85edfc9bc95e8ede96ebc81f4777f1cdb', class: "col-12" }, h("form-control-textarea", { key: '100e419cc2064509aaa03c76e2898fc7df85e950', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: '94da95bb013738aefb17088203ee14e07f159ae0', class: "col-12" }, h("form-control-file-v2", { key: '1ab77a12a715fbb82c0bc1c9f9081e54fd3fef0e', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: '88eed9387758b86332137fa64b4e3b3c5825d908', class: "col-12" }, h("form-control-file-v2", { key: '0b654ffcf253c639b07ffe03450a87550caaa75a', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
32
32
  }
33
33
  static get is() { return "justifi-customer-details"; }
34
34
  static get properties() {