@justifi/webcomponents 6.1.0-rc.3 → 6.1.1-rc.1

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 (793) hide show
  1. package/dist/cjs/{Api-DqzbA2qk.js → Api-CjtvTD2_.js} +2 -2
  2. package/dist/cjs/{Business-DWHy_-z9.js → Business-DCRzZf0w.js} +9 -299
  3. package/dist/cjs/{Refund-BPSBtjQC.js → Refund-BnhHNKLz.js} +4 -3
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +14 -13
  5. package/dist/cjs/{badge-BJVdpSU-.js → badge-CE3ss_OU.js} +2 -2
  6. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +112 -0
  7. package/dist/cjs/bank-account-form.cjs.entry.js +8 -8
  8. package/dist/cjs/{business-additional-questions-schema-CetDMUp7.js → business-additional-questions-schema-b8P-0T0O.js} +4 -26
  9. package/dist/cjs/business-details-core.cjs.entry.js +5 -5
  10. package/dist/cjs/{business-form-options-e9UFw4P-.js → business-form-options-CMII7nIK.js} +1 -1
  11. package/dist/cjs/business-identity-schema-aFUle0C9.js +51 -0
  12. package/dist/cjs/{business.service-Bv9o99Ll.js → business.service-Cj_NUZsr.js} +3 -3
  13. package/dist/cjs/{button-_YJuE8cy.js → button-gPNZ9XRn.js} +2 -2
  14. package/dist/cjs/card-form.cjs.entry.js +8 -8
  15. package/dist/cjs/{check-pkg-version-CadxBsjl.js → check-pkg-version-iW3HGQFY.js} +4 -4
  16. package/dist/cjs/{checkout.service-dLB93w3Z.js → checkout.service-Bc8L9ixO.js} +3 -3
  17. package/dist/cjs/{checkout.store-DC4yVxDj.js → checkout.store-Bswr7kNY.js} +5 -1
  18. package/dist/cjs/checkouts-list-core.cjs.entry.js +15 -13
  19. package/dist/cjs/{terminal-orders-list-params-state-ARjo40Y9.js → checkouts-list-params-state-BYpq-c6X.js} +1 -1
  20. package/dist/cjs/{checkouts-table-C102WCfy.js → checkouts-table-C5AHeIr0.js} +4 -4
  21. package/dist/cjs/{config-state-BeZM7X7J.js → config-state-C7babhLh.js} +1 -1
  22. package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_2.cjs.entry.js} +23 -3
  23. package/dist/cjs/{dispute.service-BmAAnNky.js → dispute.service-DhO_tuDc.js} +3 -3
  24. package/dist/cjs/form-alert_5.cjs.entry.js +16 -26
  25. package/dist/cjs/form-control-checkbox.cjs.entry.js +6 -6
  26. package/dist/cjs/form-control-date.cjs.entry.js +5 -5
  27. package/dist/cjs/{form-control-error-text-DJzNQrEz.js → form-control-error-text-BnMWn8U_.js} +2 -2
  28. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +6 -6
  29. package/dist/cjs/{form-control-help-text-DII6UDeq.js → form-control-help-text-DEi5vSjN.js} +2 -2
  30. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  31. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +7 -7
  32. package/dist/cjs/form-control-monetary.cjs.entry.js +7 -7
  33. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +107 -0
  34. package/dist/cjs/form-control-number.cjs.entry.js +6 -6
  35. package/dist/cjs/form-control-radio.cjs.entry.js +4 -4
  36. package/dist/cjs/{form-control-select_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +7 -26
  37. package/dist/cjs/{form-input-masks-BnNFJ3IJ.js → form-input-masks-DgXd0f4V.js} +4 -9
  38. package/dist/cjs/{get-business-D9ZHyPem.js → get-business-o5jPq_ME.js} +1 -1
  39. package/dist/cjs/{get-payment-details-BHPHzSkH.js → get-payment-details-BinT-ZEP.js} +3 -3
  40. package/dist/cjs/{get-subaccounts-Bw76aYu0.js → get-subaccounts-BoTVdl7v.js} +4 -4
  41. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +26 -17
  42. package/dist/cjs/{header-1-Da7oKhXY.js → header-1-D3r87SC6.js} +2 -2
  43. package/dist/cjs/{header-3-uBM_CzcP.js → header-3-BFQJJgBb.js} +2 -2
  44. package/dist/cjs/helpers-B5OCqlIM.js +35 -0
  45. package/dist/cjs/hidden-input_2.cjs.entry.js +9 -9
  46. package/dist/cjs/{index-CaAefsWD.js → index-Bhtk1qkX.js} +5 -2
  47. package/dist/cjs/{index-D-CfIyoF.js → index-CWM5ions.js} +1 -1
  48. package/dist/cjs/{input-handlers-D6QMwPTB.js → input-handlers-DYl_0IwC.js} +2 -2
  49. package/dist/cjs/{insurance-state-KJzYGtVr.js → insurance-state-JbqYvJN3.js} +3 -3
  50. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +72 -129
  51. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +26 -25
  52. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  53. package/dist/cjs/{justifi-checkout-summary_7.cjs.entry.js → justifi-apple-pay_8.cjs.entry.js} +824 -25
  54. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +31 -30
  55. package/dist/cjs/justifi-business-details.cjs.entry.js +15 -13
  56. package/dist/cjs/justifi-business-form.cjs.entry.js +23 -27
  57. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +8 -16
  58. package/dist/cjs/justifi-checkout.cjs.entry.js +16 -14
  59. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +12 -10
  60. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +18 -16
  61. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  62. package/dist/cjs/justifi-details.cjs.entry.js +3 -3
  63. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  64. package/dist/cjs/justifi-dispute-management.cjs.entry.js +13 -11
  65. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +19 -17
  66. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +13 -11
  67. package/dist/cjs/justifi-order-terminals.cjs.entry.js +18 -16
  68. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +21 -30
  69. package/dist/cjs/justifi-payment-details.cjs.entry.js +23 -14
  70. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +25 -40
  71. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +13 -11
  72. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +17 -15
  73. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +8 -8
  74. package/dist/cjs/justifi-payments-list.cjs.entry.js +18 -16
  75. package/dist/cjs/justifi-payout-details.cjs.entry.js +16 -13
  76. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +17 -15
  77. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +8 -8
  78. package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -17
  79. package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -15
  80. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
  81. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +16 -14
  82. package/dist/cjs/justifi-skeleton.cjs.entry.js +5 -5
  83. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +13 -11
  84. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +16 -14
  85. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +14 -11
  86. package/dist/cjs/justifi-terminals-list.cjs.entry.js +18 -16
  87. package/dist/cjs/loader.cjs.js +2 -2
  88. package/dist/cjs/{package-CVxkAS_m.js → package-CwcyK2nz.js} +1 -1
  89. package/dist/cjs/pagination-menu.cjs.entry.js +5 -5
  90. package/dist/cjs/{parts-9jMf1erK.js → parts-Pb06tUMp.js} +2 -0
  91. package/dist/cjs/payment-details-core.cjs.entry.js +34 -16
  92. package/dist/cjs/payment-method-option.cjs.entry.js +4 -4
  93. package/dist/cjs/{payment.service-DODmonNs.js → payment.service-C9thkR4g.js} +3 -3
  94. package/dist/cjs/payments-list-core.cjs.entry.js +16 -14
  95. package/dist/cjs/{payments-list-params-state-ARjo40Y9.js → payments-list-params-state-BYpq-c6X.js} +1 -1
  96. package/dist/cjs/{payments-status-5IzqwLep.js → payments-status-CnNXcRLO.js} +21 -3
  97. package/dist/cjs/{payments-table-BcZ6U6p8.js → payments-table-BGuCOPTJ.js} +4 -4
  98. package/dist/cjs/payout-details-core.cjs.entry.js +25 -12
  99. package/dist/cjs/{payout.service-Do8DxBxe.js → payout.service-CGZxpQMq.js} +3 -3
  100. package/dist/cjs/payouts-list-core.cjs.entry.js +16 -14
  101. package/dist/cjs/{checkouts-list-params-state-ARjo40Y9.js → payouts-list-params-state-BYpq-c6X.js} +1 -1
  102. package/dist/cjs/{payouts-status-D38A6UrI.js → payouts-status-2na6MMgV.js} +2 -2
  103. package/dist/cjs/{payouts-table-Cn_cCCOY.js → payouts-table-DXekpbYc.js} +4 -4
  104. package/dist/cjs/{schema-validations-0mjPveQ0.js → schema-validations-Bj7eYNO8.js} +6 -45
  105. package/dist/cjs/{skeleton-DlPP4i_w.js → skeleton-BvdAh448.js} +2 -2
  106. package/dist/cjs/{spinner-BNWG01hP.js → spinner-Rt52JMa2.js} +2 -2
  107. package/dist/cjs/state-options-CIT9xdTz.js +246 -0
  108. package/dist/cjs/{styled-host-DSpt9LtB.js → styled-host-BSooSIhA.js} +1 -1
  109. package/dist/cjs/{table-CAWBqvW5.js → table-Ccg4k90C.js} +3 -3
  110. package/dist/cjs/table-filters-menu.cjs.entry.js +4 -4
  111. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +15 -13
  112. package/dist/cjs/{payouts-list-params-state-ARjo40Y9.js → terminal-orders-list-params-state-BYpq-c6X.js} +1 -1
  113. package/dist/cjs/{terminal-orders-table-BUA4LcEc.js → terminal-orders-table-7ew1vCKk.js} +7 -7
  114. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +3 -3
  115. package/dist/cjs/{terminal.service-bxQnc1JY.js → terminal.service-BkKxH-k4.js} +3 -3
  116. package/dist/cjs/terminals-list-core.cjs.entry.js +15 -13
  117. package/dist/cjs/terminals-list-params-state-BYpq-c6X.js +22 -0
  118. package/dist/cjs/{terminals-table-C2_M7SWl.js → terminals-table-ByYs-pH7.js} +9 -4
  119. package/dist/cjs/{utils-ChCUZgUy.js → utils-Bab-tddY.js} +4 -0
  120. package/dist/cjs/{utils-C6mfHWv-.js → utils-CUcA4G_O.js} +5 -5
  121. package/dist/cjs/webcomponents.cjs.js +3 -3
  122. package/dist/collection/api/BankAccount.js +0 -4
  123. package/dist/collection/api/Business.js +1 -16
  124. package/dist/collection/api/Terminal.js +1 -0
  125. package/dist/collection/api/services/apple-pay.service.js +5 -42
  126. package/dist/collection/collection-manifest.json +2 -5
  127. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
  128. package/dist/collection/components/business-details/owner-details/owner-details.js +9 -8
  129. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
  130. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +4 -36
  131. package/dist/collection/components/business-forms/business-form/business-form.js +2 -6
  132. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +5 -41
  133. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +6 -27
  134. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +6 -26
  135. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +3 -29
  136. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -43
  137. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -26
  138. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  139. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  140. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -2
  141. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +5 -36
  142. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -26
  143. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +7 -47
  144. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -26
  145. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +1 -26
  146. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -26
  147. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -43
  148. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +4 -33
  149. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -26
  150. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  151. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +10 -35
  152. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -26
  153. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +20 -39
  154. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  155. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -34
  156. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  157. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  158. package/dist/collection/components/business-forms/schemas/business-address-schema.js +19 -41
  159. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +39 -74
  160. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +4 -27
  161. package/dist/collection/components/business-forms/schemas/business-form-schema.js +4 -7
  162. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +24 -53
  163. package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -41
  164. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  165. package/dist/collection/components/checkout/billing-form/billing-form.js +3 -2
  166. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  167. package/dist/collection/components/checkout/checkout.js +2 -2
  168. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  169. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  170. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  171. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  172. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  173. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  174. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  175. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  176. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  177. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  178. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  179. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  180. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  181. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  182. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  183. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  184. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  185. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  186. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  187. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  188. package/dist/collection/components/modular-checkout/modular-checkout.js +7 -6
  189. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +48 -35
  190. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  191. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  192. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  193. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  194. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  195. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  196. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  197. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  198. package/dist/collection/components/payment-details/payment-details-core.js +19 -9
  199. package/dist/collection/components/payment-details/payment-details.js +28 -1
  200. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  201. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  202. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  203. package/dist/collection/components/payments-list/payments-list.js +1 -1
  204. package/dist/collection/components/payments-list/payments-status.js +19 -1
  205. package/dist/collection/components/payout-details/payout-details-core.js +57 -4
  206. package/dist/collection/components/payout-details/payout-details.js +22 -1
  207. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  208. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  209. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  210. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  211. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  212. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  213. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  214. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  215. package/dist/collection/components/terminals-list/terminals-list-filters.js +4 -3
  216. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  217. package/dist/collection/components/terminals-list/terminals-status.js +5 -0
  218. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
  219. package/dist/collection/store/checkout.store.js +4 -0
  220. package/dist/collection/styles/parts.js +1 -1
  221. package/dist/collection/ui-components/apple-pay-button.js +6 -8
  222. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  223. package/dist/collection/ui-components/details/utils.js +4 -4
  224. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  225. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  226. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  227. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  228. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  229. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  230. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  231. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  232. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  233. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  234. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  235. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  236. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  237. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
  238. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  239. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  240. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  241. package/dist/collection/utils/form-input-masks.js +0 -8
  242. package/dist/collection/utils/utils.js +4 -0
  243. package/dist/docs.json +248 -1133
  244. package/dist/esm/{Api-DLf3ihCB.js → Api-DhiA2e_P.js} +2 -2
  245. package/dist/esm/{Business-B5rtFhtR.js → Business-BCoP0TAV.js} +3 -290
  246. package/dist/esm/{Refund-BeI1WGfx.js → Refund-B-iOTRxz.js} +3 -2
  247. package/dist/esm/additional-questions-details_5.entry.js +14 -13
  248. package/dist/esm/{badge-CkfrkCoy.js → badge-CtdO-tEY.js} +2 -2
  249. package/dist/esm/bank-account-document-form-inputs_4.entry.js +107 -0
  250. package/dist/esm/bank-account-form.entry.js +8 -8
  251. package/dist/esm/{business-additional-questions-schema-DSvdNuI1.js → business-additional-questions-schema-9FAJSx_D.js} +5 -26
  252. package/dist/esm/business-details-core.entry.js +5 -5
  253. package/dist/esm/{business-form-options-D6s5H4RI.js → business-form-options-CgssATyg.js} +2 -2
  254. package/dist/esm/business-identity-schema-CDJzknbg.js +48 -0
  255. package/dist/esm/{business.service-BIALik8Z.js → business.service-D55OVyco.js} +3 -3
  256. package/dist/esm/{button-CuZAKl_x.js → button-DtTaQHMK.js} +2 -2
  257. package/dist/esm/card-form.entry.js +8 -8
  258. package/dist/esm/{check-pkg-version-Bk5bgulF.js → check-pkg-version-XGo_oqEC.js} +4 -4
  259. package/dist/esm/{checkout.service-DZDZBIGQ.js → checkout.service-fwbqSq8g.js} +3 -3
  260. package/dist/esm/{checkout.store-DwJGKabu.js → checkout.store-4nUf2OuT.js} +5 -1
  261. package/dist/esm/checkouts-list-core.entry.js +15 -13
  262. package/dist/esm/{checkouts-list-params-state-BY5996_y.js → checkouts-list-params-state-C_fug9R3.js} +1 -1
  263. package/dist/esm/{checkouts-table-59DpP7zM.js → checkouts-table-B6gGDtOr.js} +4 -4
  264. package/dist/esm/{config-state-C83RkI9h.js → config-state-DiHV-4QK.js} +1 -1
  265. package/dist/esm/{custom-popper.entry.js → custom-popper_2.entry.js} +23 -4
  266. package/dist/esm/{dispute.service-ByJy64X7.js → dispute.service-Cdq3_yRo.js} +3 -3
  267. package/dist/esm/form-alert_5.entry.js +15 -25
  268. package/dist/esm/form-control-checkbox.entry.js +6 -6
  269. package/dist/esm/form-control-date.entry.js +5 -5
  270. package/dist/esm/{form-control-error-text-CjrxZorl.js → form-control-error-text-bprS-t9d.js} +2 -2
  271. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  272. package/dist/esm/{form-control-help-text-CMUgRhUf.js → form-control-help-text-Bvnp-IAG.js} +2 -2
  273. package/dist/esm/form-control-help-text.entry.js +1 -1
  274. package/dist/esm/form-control-monetary-provisioning.entry.js +7 -7
  275. package/dist/esm/form-control-monetary.entry.js +7 -7
  276. package/dist/esm/form-control-number-masked_2.entry.js +104 -0
  277. package/dist/esm/form-control-number.entry.js +6 -6
  278. package/dist/esm/form-control-radio.entry.js +4 -4
  279. package/dist/esm/{form-control-select_3.entry.js → form-control-select_2.entry.js} +8 -26
  280. package/dist/esm/{form-input-masks-CVaOFfrI.js → form-input-masks-B-iV5cYd.js} +3 -9
  281. package/dist/esm/{get-business-Xt7B5dSo.js → get-business-Crb6P-iI.js} +1 -1
  282. package/dist/esm/{get-payment-details-B00HoaFm.js → get-payment-details-sGoWyAat.js} +3 -3
  283. package/dist/esm/{get-subaccounts-C_yzcZq_.js → get-subaccounts-BsJSlShO.js} +4 -4
  284. package/dist/esm/gross-payment-chart-core.entry.js +26 -17
  285. package/dist/esm/{header-1-BukynbFR.js → header-1-C1Hnxki8.js} +2 -2
  286. package/dist/esm/{header-3-D87MAyMK.js → header-3-Bq8fpjm-.js} +2 -2
  287. package/dist/esm/helpers-Mu7LQT-w.js +29 -0
  288. package/dist/esm/hidden-input_2.entry.js +9 -9
  289. package/dist/esm/{index-NOsb-hYl.js → index-DJ9G-4S-.js} +1 -1
  290. package/dist/esm/{index-_b8l4IX7.js → index-DOjVAAtq.js} +5 -2
  291. package/dist/esm/{input-handlers-D3y0TzH9.js → input-handlers-CX6mSvOM.js} +1 -1
  292. package/dist/esm/{insurance-state-BjY1QRXI.js → insurance-state-CVme82j7.js} +3 -3
  293. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +73 -130
  294. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +26 -25
  295. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  296. package/dist/esm/{justifi-checkout-summary_7.entry.js → justifi-apple-pay_8.entry.js} +824 -26
  297. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +30 -29
  298. package/dist/esm/justifi-business-details.entry.js +15 -13
  299. package/dist/esm/justifi-business-form.entry.js +23 -27
  300. package/dist/esm/justifi-business-representative-form-inputs.entry.js +8 -16
  301. package/dist/esm/justifi-checkout.entry.js +16 -14
  302. package/dist/esm/justifi-checkouts-list-filters.entry.js +12 -10
  303. package/dist/esm/justifi-checkouts-list.entry.js +18 -16
  304. package/dist/esm/justifi-config-provider.entry.js +3 -3
  305. package/dist/esm/justifi-details.entry.js +3 -3
  306. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  307. package/dist/esm/justifi-dispute-management.entry.js +13 -11
  308. package/dist/esm/justifi-dispute-notification_3.entry.js +19 -17
  309. package/dist/esm/justifi-gross-payment-chart.entry.js +13 -11
  310. package/dist/esm/justifi-order-terminals.entry.js +18 -16
  311. package/dist/esm/justifi-owner-form_3.entry.js +21 -30
  312. package/dist/esm/justifi-payment-details.entry.js +23 -14
  313. package/dist/esm/justifi-payment-provisioning-core.entry.js +25 -40
  314. package/dist/esm/justifi-payment-provisioning.entry.js +13 -11
  315. package/dist/esm/justifi-payment-transactions-list.entry.js +17 -15
  316. package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
  317. package/dist/esm/justifi-payments-list.entry.js +18 -16
  318. package/dist/esm/justifi-payout-details.entry.js +16 -13
  319. package/dist/esm/justifi-payout-transactions-list.entry.js +17 -15
  320. package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
  321. package/dist/esm/justifi-payouts-list.entry.js +19 -17
  322. package/dist/esm/justifi-refund-payment.entry.js +17 -15
  323. package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
  324. package/dist/esm/justifi-season-interruption-insurance.entry.js +16 -14
  325. package/dist/esm/justifi-skeleton.entry.js +5 -5
  326. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +13 -11
  327. package/dist/esm/justifi-terminal-orders-list.entry.js +16 -14
  328. package/dist/esm/justifi-terminals-list-filters.entry.js +14 -11
  329. package/dist/esm/justifi-terminals-list.entry.js +18 -16
  330. package/dist/esm/loader.js +3 -3
  331. package/dist/esm/{package-BRhnhmpB.js → package-YyotqiSL.js} +1 -1
  332. package/dist/esm/pagination-menu.entry.js +5 -5
  333. package/dist/esm/{parts-CA_TyBed.js → parts-xDbRW9xn.js} +2 -1
  334. package/dist/esm/payment-details-core.entry.js +34 -16
  335. package/dist/esm/payment-method-option.entry.js +4 -4
  336. package/dist/esm/{payment.service-B_NytmNz.js → payment.service-BoQ1MW1k.js} +3 -3
  337. package/dist/esm/payments-list-core.entry.js +16 -14
  338. package/dist/esm/{payments-list-params-state-BY5996_y.js → payments-list-params-state-C_fug9R3.js} +1 -1
  339. package/dist/esm/{payments-status-BWv1l1-e.js → payments-status-cvtVmtY5.js} +22 -4
  340. package/dist/esm/{payments-table-BSk36N1O.js → payments-table-D_BlyU1F.js} +4 -4
  341. package/dist/esm/payout-details-core.entry.js +25 -12
  342. package/dist/esm/{payout.service-BJQVlc_Z.js → payout.service-xcBdom3q.js} +3 -3
  343. package/dist/esm/payouts-list-core.entry.js +16 -14
  344. package/dist/esm/{payouts-list-params-state-BY5996_y.js → payouts-list-params-state-C_fug9R3.js} +1 -1
  345. package/dist/esm/{payouts-status-BujJlH_r.js → payouts-status-D-vjrqBb.js} +2 -2
  346. package/dist/esm/{payouts-table-5N7OylTW.js → payouts-table-Clj8YGLV.js} +4 -4
  347. package/dist/esm/{schema-validations-BFoU1cR8.js → schema-validations-B9dmY7ME.js} +6 -41
  348. package/dist/esm/{skeleton-C161KeYG.js → skeleton-B8EUwt4b.js} +2 -2
  349. package/dist/esm/{spinner-UiInIFXW.js → spinner-CYXkn1fh.js} +2 -2
  350. package/dist/esm/state-options-BX8GieXu.js +244 -0
  351. package/dist/esm/{styled-host-hSGxxyFZ.js → styled-host-OalOsPBp.js} +1 -1
  352. package/dist/esm/{table-9ewYPAZH.js → table-Bj20uWfu.js} +3 -3
  353. package/dist/esm/table-filters-menu.entry.js +4 -4
  354. package/dist/esm/terminal-orders-list-core.entry.js +15 -13
  355. package/dist/esm/{terminal-orders-list-params-state-BY5996_y.js → terminal-orders-list-params-state-C_fug9R3.js} +1 -1
  356. package/dist/esm/{terminal-orders-table-BcziGGSF.js → terminal-orders-table-DzBpIW8i.js} +7 -7
  357. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  358. package/dist/esm/{terminal.service-B9MOFa2c.js → terminal.service-l6zTIPZ3.js} +3 -3
  359. package/dist/esm/terminals-list-core.entry.js +15 -13
  360. package/dist/esm/terminals-list-params-state-C_fug9R3.js +16 -0
  361. package/dist/esm/{terminals-table-BoFlvdHS.js → terminals-table-BMS5tazC.js} +9 -4
  362. package/dist/esm/{utils-DeZftIgK.js → utils-BOijEGPV.js} +4 -1
  363. package/dist/esm/{utils-fntGABrK.js → utils-DRwofES0.js} +5 -5
  364. package/dist/esm/webcomponents.js +4 -4
  365. package/dist/module/Business.js +3 -290
  366. package/dist/module/Refund.js +2 -1
  367. package/dist/module/additional-questions-details2.js +1 -1
  368. package/dist/module/additional-statement.js +1 -1
  369. package/dist/{esm/justifi-apple-pay.entry.js → module/apple-pay.js} +74 -106
  370. package/dist/module/badge.js +1 -1
  371. package/dist/module/bank-account-billing-form-simple.js +2 -2
  372. package/dist/module/bank-account-document-inputs.js +1 -1
  373. package/dist/module/bank-account-form-inputs2.js +2 -9
  374. package/dist/module/bank-account-form.js +3 -3
  375. package/dist/module/bank-account.js +2 -2
  376. package/dist/module/billing-form-full.js +2 -2
  377. package/dist/module/billing-form.js +3 -2
  378. package/dist/module/business-additional-questions-form-step.js +1 -1
  379. package/dist/module/business-address-schema.js +20 -40
  380. package/dist/module/business-bank-account-form-step-core.js +49 -102
  381. package/dist/module/business-bank-account-form-step.js +5 -18
  382. package/dist/module/business-core-info-form-step-core.js +7 -22
  383. package/dist/module/business-core-info-form-step.js +1 -2
  384. package/dist/module/business-core-info-schema.js +5 -26
  385. package/dist/module/business-core-info.js +4 -12
  386. package/dist/module/business-documents-on-file2.js +1 -1
  387. package/dist/module/business-identity-schema.js +25 -52
  388. package/dist/module/business-owners-form-step-core.js +13 -20
  389. package/dist/module/business-owners-form-step.js +15 -22
  390. package/dist/module/business-representative-form-inputs.js +17 -34
  391. package/dist/module/business-representative-form-step-core.js +18 -29
  392. package/dist/module/business-representative-form-step.js +17 -24
  393. package/dist/module/business-representative.js +18 -36
  394. package/dist/module/business-terms-conditions-form-step.js +1 -1
  395. package/dist/module/button.js +1 -1
  396. package/dist/module/cancellation-policy.js +1 -1
  397. package/dist/module/card-billing-form-simple.js +2 -2
  398. package/dist/module/card-form.js +3 -3
  399. package/dist/module/card-form2.js +2 -2
  400. package/dist/module/checkout.store.js +4 -0
  401. package/dist/module/checkouts-list-core2.js +2 -2
  402. package/dist/module/custom-popper2.js +2 -2
  403. package/dist/module/customer-details.js +1 -1
  404. package/dist/module/dispute-management-core.js +1 -1
  405. package/dist/module/dispute-notification.js +1 -1
  406. package/dist/module/dispute-response-core.js +1 -1
  407. package/dist/module/dispute-response.js +1 -1
  408. package/dist/module/duplicate-charge.js +1 -1
  409. package/dist/module/electronic-evidence.js +1 -1
  410. package/dist/module/form-alert2.js +1 -1
  411. package/dist/module/form-control-checkbox2.js +3 -3
  412. package/dist/module/form-control-date2.js +3 -3
  413. package/dist/module/form-control-error-text.js +1 -1
  414. package/dist/module/form-control-file-v22.js +1 -1
  415. package/dist/module/form-control-file2.js +3 -3
  416. package/dist/module/form-control-monetary-provisioning2.js +3 -3
  417. package/dist/module/form-control-monetary2.js +3 -3
  418. package/dist/module/form-control-number-masked2.js +3 -3
  419. package/dist/module/form-control-number.js +3 -3
  420. package/dist/module/form-control-radio2.js +3 -3
  421. package/dist/module/form-control-select2.js +3 -3
  422. package/dist/module/form-control-text2.js +3 -3
  423. package/dist/module/form-control-textarea2.js +3 -3
  424. package/dist/module/form-control-tooltip2.js +1 -1
  425. package/dist/module/form-input-masks.js +3 -9
  426. package/dist/module/get-business.js +1 -1
  427. package/dist/module/gross-payment-chart-core2.js +22 -13
  428. package/dist/module/header-3.js +1 -1
  429. package/dist/module/helpers.js +29 -0
  430. package/dist/module/hidden-input2.js +2 -2
  431. package/dist/module/identity-address-form.js +14 -16
  432. package/dist/module/iframe-input2.js +4 -4
  433. package/dist/module/input-handlers.js +1 -1
  434. package/dist/module/justifi-apple-pay.js +1 -904
  435. package/dist/module/justifi-business-form.js +29 -41
  436. package/dist/module/justifi-button2.js +1 -1
  437. package/dist/module/justifi-checkout.js +27 -21
  438. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  439. package/dist/module/justifi-checkouts-list.js +2 -2
  440. package/dist/module/justifi-dispute-management.js +1 -1
  441. package/dist/module/justifi-header2.js +1 -1
  442. package/dist/module/justifi-order-terminals.js +5 -5
  443. package/dist/module/justifi-payment-details.js +8 -1
  444. package/dist/module/justifi-payment-provisioning.js +49 -67
  445. package/dist/module/justifi-payment-transactions-list.js +3 -3
  446. package/dist/module/justifi-payments-list-filters.js +3 -3
  447. package/dist/module/justifi-payments-list.js +1 -1
  448. package/dist/module/justifi-payout-details.js +4 -2
  449. package/dist/module/justifi-payout-transactions-list.js +3 -3
  450. package/dist/module/justifi-payouts-list-filters.js +3 -3
  451. package/dist/module/justifi-payouts-list.js +2 -2
  452. package/dist/module/justifi-refund-payment.js +1 -1
  453. package/dist/module/justifi-saved-payment-method.js +1 -1
  454. package/dist/module/justifi-season-interruption-insurance.js +2 -2
  455. package/dist/module/justifi-skeleton.js +1 -1
  456. package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
  457. package/dist/module/justifi-terminal-orders-list.js +2 -2
  458. package/dist/module/justifi-terminals-list-filters.js +5 -4
  459. package/dist/module/justifi-terminals-list.js +2 -2
  460. package/dist/module/legal-address-form-step-core.js +19 -26
  461. package/dist/module/legal-address-form-step.js +9 -16
  462. package/dist/module/legal-address-form.js +14 -17
  463. package/dist/module/modular-checkout.js +7 -6
  464. package/dist/module/owner-details2.js +8 -7
  465. package/dist/module/owner-form-core2.js +16 -24
  466. package/dist/module/owner-form-inputs2.js +15 -34
  467. package/dist/module/owner-form.js +13 -20
  468. package/dist/module/package.js +1 -1
  469. package/dist/module/pagination-menu2.js +4 -4
  470. package/dist/module/parts.js +2 -1
  471. package/dist/module/payment-details-core2.js +22 -9
  472. package/dist/module/payment-method-option.js +1 -1
  473. package/dist/module/payment-provisioning-core.js +69 -104
  474. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  475. package/dist/module/payment-provisioning-form-steps.js +54 -75
  476. package/dist/module/payments-list-core2.js +2 -2
  477. package/dist/module/payments-status.js +20 -2
  478. package/dist/module/payout-details-core2.js +18 -4
  479. package/dist/module/payouts-list-core2.js +2 -2
  480. package/dist/module/product-or-service.js +1 -1
  481. package/dist/module/refund-policy.js +1 -1
  482. package/dist/module/representative-details2.js +1 -1
  483. package/dist/module/save-new-payment-method.js +1 -1
  484. package/dist/module/schema-validations.js +6 -41
  485. package/dist/module/shipping-details.js +1 -1
  486. package/dist/module/spinner.js +1 -1
  487. package/dist/module/state-options.js +244 -0
  488. package/dist/module/summary.js +1 -1
  489. package/dist/module/table-filters-menu2.js +2 -2
  490. package/dist/module/table.js +1 -1
  491. package/dist/module/terminal-orders-list-core2.js +3 -3
  492. package/dist/module/terminal-quantity-selector2.js +2 -2
  493. package/dist/module/terminals-list-core2.js +8 -3
  494. package/dist/module/tokenize-payment-method.js +1 -1
  495. package/dist/module/utils.js +4 -4
  496. package/dist/module/utils2.js +4 -1
  497. package/dist/types/api/BankAccount.d.ts +0 -6
  498. package/dist/types/api/Business.d.ts +0 -9
  499. package/dist/types/api/Checkout.d.ts +2 -0
  500. package/dist/types/api/ComponentEvents.d.ts +4 -0
  501. package/dist/types/api/Terminal.d.ts +2 -1
  502. package/dist/types/components/business-details/owner-details/owner-details.d.ts +1 -1
  503. package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +0 -3
  504. package/dist/types/components/business-forms/business-form/business-form.d.ts +0 -2
  505. package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +1 -4
  506. package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +0 -2
  507. package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +0 -2
  508. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +0 -2
  509. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +0 -3
  510. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -2
  511. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +0 -5
  512. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +0 -2
  513. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +0 -3
  514. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +0 -2
  515. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +0 -2
  516. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +0 -2
  517. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +0 -3
  518. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +0 -2
  519. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +0 -2
  520. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +0 -2
  521. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +0 -2
  522. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -4
  523. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -2
  524. package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +2 -54
  525. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +16 -14
  526. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +3 -67
  527. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +6 -164
  528. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +2 -122
  529. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -5
  530. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +2 -0
  531. package/dist/types/components/payment-details/payment-details-core.d.ts +3 -1
  532. package/dist/types/components/payment-details/payment-details.d.ts +3 -1
  533. package/dist/types/components/payments-list/payments-status.d.ts +12 -0
  534. package/dist/types/components/payout-details/payout-details-core.d.ts +5 -1
  535. package/dist/types/components/payout-details/payout-details.d.ts +1 -0
  536. package/dist/types/components.d.ts +38 -113
  537. package/dist/types/stencil-public-runtime.d.ts +20 -10
  538. package/dist/types/store/checkout.store.d.ts +1 -0
  539. package/dist/types/styles/parts.d.ts +1 -1
  540. package/dist/types/ui-components/details/utils.d.ts +3 -2
  541. package/dist/types/utils/form-input-masks.d.ts +0 -1
  542. package/dist/types/utils/utils.d.ts +1 -0
  543. package/dist/webcomponents/p-0217783c.entry.js +20 -0
  544. package/dist/webcomponents/p-02fdd7f5.entry.js +1 -0
  545. package/dist/webcomponents/p-0af5269e.entry.js +1 -0
  546. package/dist/webcomponents/p-0cac8468.entry.js +1 -0
  547. package/dist/webcomponents/{p-b59221a9.entry.js → p-0cf71cbd.entry.js} +1 -1
  548. package/dist/webcomponents/p-0eb69f41.entry.js +1 -0
  549. package/dist/webcomponents/p-0fgTPVV0.js +1 -0
  550. package/dist/webcomponents/{p-c1f10a84.entry.js → p-13df20c1.entry.js} +1 -1
  551. package/dist/webcomponents/{p-C77ElQ41.js → p-1ydcg9ti.js} +1 -1
  552. package/dist/webcomponents/p-28625e07.entry.js +1 -0
  553. package/dist/webcomponents/p-2d300faa.entry.js +1 -0
  554. package/dist/webcomponents/{p-6ea75d39.entry.js → p-2f40f708.entry.js} +1 -1
  555. package/dist/webcomponents/p-328117e4.entry.js +1 -0
  556. package/dist/webcomponents/p-32978110.entry.js +1 -0
  557. package/dist/webcomponents/{p-c7390115.entry.js → p-37a93597.entry.js} +1 -1
  558. package/dist/webcomponents/p-3dd950bf.entry.js +1 -0
  559. package/dist/webcomponents/p-447b55c0.entry.js +1 -0
  560. package/dist/webcomponents/p-47997bc2.entry.js +1 -0
  561. package/dist/webcomponents/p-4bf52215.entry.js +1 -0
  562. package/dist/webcomponents/p-50701f16.entry.js +1 -0
  563. package/dist/webcomponents/p-526b7442.entry.js +1 -0
  564. package/dist/webcomponents/p-5aae36f3.entry.js +1 -0
  565. package/dist/webcomponents/p-5bd3d86e.entry.js +1 -0
  566. package/dist/webcomponents/p-63ad8ebd.entry.js +1 -0
  567. package/dist/webcomponents/p-63fb5e82.entry.js +1 -0
  568. package/dist/webcomponents/p-6472b6db.entry.js +1 -0
  569. package/dist/webcomponents/p-6e9cd0dd.entry.js +1 -0
  570. package/dist/webcomponents/p-6f27030e.entry.js +1 -0
  571. package/dist/webcomponents/p-705dba52.entry.js +1 -0
  572. package/dist/webcomponents/p-7680c57b.entry.js +1 -0
  573. package/dist/webcomponents/p-7686ef15.entry.js +1 -0
  574. package/dist/webcomponents/p-773d6dd3.entry.js +1 -0
  575. package/dist/webcomponents/p-78cb62a8.entry.js +1 -0
  576. package/dist/webcomponents/p-7b55e1c1.entry.js +1 -0
  577. package/dist/webcomponents/p-7b5ad3a7.entry.js +1 -0
  578. package/dist/webcomponents/p-80b2cdec.entry.js +1 -0
  579. package/dist/webcomponents/p-8S_ROmnq.js +1 -0
  580. package/dist/webcomponents/p-8ca21fab.entry.js +1 -0
  581. package/dist/webcomponents/p-9ad7d724.entry.js +1 -0
  582. package/dist/webcomponents/p-9ed7b13f.entry.js +1 -0
  583. package/dist/webcomponents/p-B-iV5cYd.js +1 -0
  584. package/dist/webcomponents/p-B6IWa9Ph.js +1 -0
  585. package/dist/webcomponents/{p-BdREtifE.js → p-BBx_EQqR.js} +1 -1
  586. package/dist/webcomponents/p-BX8GieXu.js +1 -0
  587. package/dist/webcomponents/{p-xWrhxNNk.js → p-Bgnhf5c9.js} +1 -1
  588. package/dist/webcomponents/{p-DTwFW2k_.js → p-BhCH9S0e.js} +1 -1
  589. package/dist/webcomponents/p-BjNuRWXK.js +1 -0
  590. package/dist/webcomponents/p-BlJnA265.js +1 -0
  591. package/dist/webcomponents/p-BoQ6_4Ks.js +1 -0
  592. package/dist/webcomponents/{p-DWGKeoot.js → p-C0wTyoTh.js} +1 -1
  593. package/dist/webcomponents/p-C2JJBtMc.js +1 -0
  594. package/dist/webcomponents/{p-g2ubqhtv.js → p-C8k7a6D-.js} +1 -1
  595. package/dist/webcomponents/{p-BPDMo6us.js → p-C98BC5W5.js} +1 -1
  596. package/dist/webcomponents/p-C9EQ459H.js +1 -0
  597. package/dist/webcomponents/p-C9iide2W.js +1 -0
  598. package/dist/webcomponents/p-CCLgieAN.js +1 -0
  599. package/dist/webcomponents/p-CCmDcLao.js +1 -0
  600. package/dist/webcomponents/{p-qUCDGWNE.js → p-CEk3bv0x.js} +1 -1
  601. package/dist/webcomponents/p-CH8Y3GSr.js +1 -0
  602. package/dist/webcomponents/{p-BaM0JBLn.js → p-CdEseavG.js} +1 -1
  603. package/dist/webcomponents/{p-D2hzOOMf.js → p-ClvhB3WW.js} +1 -1
  604. package/dist/webcomponents/{p-JSXyHheQ.js → p-CmBCj61h.js} +1 -1
  605. package/dist/webcomponents/p-D0Peuz-m.js +1 -0
  606. package/dist/webcomponents/p-D6BImiVi.js +1 -0
  607. package/dist/webcomponents/p-DGsXKF67.js +1 -0
  608. package/dist/webcomponents/p-DH8F0bsw.js +1 -0
  609. package/dist/webcomponents/{p-_b8l4IX7.js → p-DOjVAAtq.js} +2 -2
  610. package/dist/webcomponents/p-DQZ5VHTZ.js +1 -0
  611. package/dist/webcomponents/p-DWn9BiNn.js +1 -0
  612. package/dist/webcomponents/{p-hj8k0lRi.js → p-DdMxswn1.js} +1 -1
  613. package/dist/webcomponents/{p-M5r2kSbf.js → p-DdZLLkQ5.js} +1 -1
  614. package/dist/webcomponents/p-DfV3dFDB.js +1 -0
  615. package/dist/webcomponents/p-Dieke6TH.js +1 -0
  616. package/dist/webcomponents/p-Dt-vy9Le.js +1 -0
  617. package/dist/webcomponents/p-NAjz1Xfo.js +1 -0
  618. package/dist/webcomponents/p-NwmOm8Pg.js +1 -0
  619. package/dist/webcomponents/p-PSJOKMWp.js +1 -0
  620. package/dist/webcomponents/p-RQzxYnz_.js +1 -0
  621. package/dist/webcomponents/p-T2yENPvU.js +1 -0
  622. package/dist/webcomponents/p-YyotqiSL.js +1 -0
  623. package/dist/webcomponents/{p-931003fc.entry.js → p-a09695c4.entry.js} +1 -1
  624. package/dist/webcomponents/{p-b46fe458.entry.js → p-a4846316.entry.js} +1 -1
  625. package/dist/webcomponents/p-a6tcNl_T.js +1 -0
  626. package/dist/webcomponents/p-adc1d0be.entry.js +1 -0
  627. package/dist/webcomponents/p-ae8ae5bb.entry.js +1 -0
  628. package/dist/webcomponents/p-aeb22aa2.entry.js +1 -0
  629. package/dist/webcomponents/{p-fVyCeQNq.js → p-au49QgoI.js} +1 -1
  630. package/dist/webcomponents/p-b149a2fc.entry.js +1 -0
  631. package/dist/webcomponents/p-b4aa9298.entry.js +1 -0
  632. package/dist/webcomponents/{p-b17cb15d.entry.js → p-b608add9.entry.js} +1 -1
  633. package/dist/webcomponents/p-bb53e2e9.entry.js +1 -0
  634. package/dist/webcomponents/p-bc099dd0.entry.js +1 -0
  635. package/dist/webcomponents/p-c12d0453.entry.js +1 -0
  636. package/dist/webcomponents/p-c2569b4c.entry.js +1 -0
  637. package/dist/webcomponents/p-c644a9f1.entry.js +1 -0
  638. package/dist/webcomponents/p-cb782215.entry.js +1 -0
  639. package/dist/webcomponents/p-d0a2035f.entry.js +1 -0
  640. package/dist/webcomponents/p-d1bceac6.entry.js +1 -0
  641. package/dist/webcomponents/p-d4476052.entry.js +1 -0
  642. package/dist/webcomponents/p-d5452069.entry.js +1 -0
  643. package/dist/webcomponents/p-d88d7418.entry.js +1 -0
  644. package/dist/webcomponents/p-de95bf57.entry.js +1 -0
  645. package/dist/webcomponents/p-e365b251.entry.js +1 -0
  646. package/dist/webcomponents/p-e6be4e19.entry.js +1 -0
  647. package/dist/webcomponents/p-e6fe9b7d.entry.js +1 -0
  648. package/dist/webcomponents/p-e9f6a621.entry.js +1 -0
  649. package/dist/webcomponents/p-ec9514f8.entry.js +1 -0
  650. package/dist/webcomponents/p-edfeb034.entry.js +1 -0
  651. package/dist/webcomponents/p-f378af59.entry.js +1 -0
  652. package/dist/webcomponents/p-f705fc49.entry.js +1 -0
  653. package/dist/webcomponents/p-fbc5fc6d.entry.js +1 -0
  654. package/dist/webcomponents/p-ffefa09c.entry.js +1 -0
  655. package/dist/webcomponents/p-h5pyZngT.js +1 -0
  656. package/dist/webcomponents/p-hbWSMN3O.js +1 -0
  657. package/dist/webcomponents/p-lKnUT24T.js +1 -0
  658. package/dist/webcomponents/p-tYuXMkCd.js +1 -0
  659. package/dist/webcomponents/p-wQgEEOq_.js +1 -0
  660. package/dist/webcomponents/p-xDbRW9xn.js +1 -0
  661. package/dist/webcomponents/{p-CPpUGsw5.js → p-yH3TC3ZQ.js} +1 -1
  662. package/dist/webcomponents/webcomponents.esm.js +1 -1
  663. package/package.json +1 -1
  664. package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +0 -132
  665. package/dist/cjs/business-identity-schema-Cd0tvfJr.js +0 -101
  666. package/dist/cjs/country-config-MCOhn8o3.js +0 -68
  667. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +0 -119
  668. package/dist/cjs/justifi-apple-pay.cjs.entry.js +0 -876
  669. package/dist/cjs/terminals-list-params-state-ARjo40Y9.js +0 -22
  670. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +0 -88
  671. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +0 -50
  672. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +0 -101
  673. package/dist/collection/components/business-forms/payment-provisioning/test/mockBusiness.js +0 -52
  674. package/dist/collection/components/business-forms/utils/country-config.js +0 -47
  675. package/dist/collection/utils/country-codes.js +0 -5
  676. package/dist/collection/utils/province-options.js +0 -20
  677. package/dist/esm/bank-account-document-form-inputs_6.entry.js +0 -125
  678. package/dist/esm/business-identity-schema-mN4VhA1v.js +0 -94
  679. package/dist/esm/country-config-BQ4D46Lb.js +0 -64
  680. package/dist/esm/form-control-number-masked_3.entry.js +0 -115
  681. package/dist/esm/terminals-list-params-state-BY5996_y.js +0 -16
  682. package/dist/module/bank-account-form-inputs-canada.d.ts +0 -11
  683. package/dist/module/bank-account-form-inputs-canada.js +0 -6
  684. package/dist/module/bank-account-form-inputs-canada2.js +0 -68
  685. package/dist/module/bank-account-read-only-value.d.ts +0 -11
  686. package/dist/module/bank-account-read-only-value.js +0 -6
  687. package/dist/module/bank-account-read-only-value2.js +0 -33
  688. package/dist/module/country-config.js +0 -64
  689. package/dist/module/form-address-fields.js +0 -65
  690. package/dist/module/justifi-form-address-fields.d.ts +0 -11
  691. package/dist/module/justifi-form-address-fields.js +0 -6
  692. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.d.ts +0 -7
  693. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.d.ts +0 -5
  694. package/dist/types/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.d.ts +0 -8
  695. package/dist/types/components/business-forms/payment-provisioning/test/mockBusiness.d.ts +0 -12
  696. package/dist/types/utils/country-codes.d.ts +0 -4
  697. package/dist/types/utils/province-options.d.ts +0 -5
  698. package/dist/webcomponents/p-0254c06c.entry.js +0 -1
  699. package/dist/webcomponents/p-047fe97f.entry.js +0 -1
  700. package/dist/webcomponents/p-04ca6ff0.entry.js +0 -1
  701. package/dist/webcomponents/p-09d53b03.entry.js +0 -1
  702. package/dist/webcomponents/p-0c5e2fed.entry.js +0 -1
  703. package/dist/webcomponents/p-0ea48603.entry.js +0 -1
  704. package/dist/webcomponents/p-17e9d5c0.entry.js +0 -1
  705. package/dist/webcomponents/p-1ab4d6aa.entry.js +0 -1
  706. package/dist/webcomponents/p-1cf42bc9.entry.js +0 -1
  707. package/dist/webcomponents/p-1e7f4b4f.entry.js +0 -1
  708. package/dist/webcomponents/p-22defde6.entry.js +0 -20
  709. package/dist/webcomponents/p-242208d9.entry.js +0 -1
  710. package/dist/webcomponents/p-31ac0c3d.entry.js +0 -1
  711. package/dist/webcomponents/p-36e21b78.entry.js +0 -1
  712. package/dist/webcomponents/p-3a77a97c.entry.js +0 -1
  713. package/dist/webcomponents/p-40938820.entry.js +0 -1
  714. package/dist/webcomponents/p-40dc0c3c.entry.js +0 -1
  715. package/dist/webcomponents/p-42763479.entry.js +0 -1
  716. package/dist/webcomponents/p-430203b0.entry.js +0 -1
  717. package/dist/webcomponents/p-46d2d042.entry.js +0 -1
  718. package/dist/webcomponents/p-485516a1.entry.js +0 -1
  719. package/dist/webcomponents/p-4fb58ee6.entry.js +0 -1
  720. package/dist/webcomponents/p-54995a3d.entry.js +0 -1
  721. package/dist/webcomponents/p-56617fdd.entry.js +0 -1
  722. package/dist/webcomponents/p-592a45f6.entry.js +0 -1
  723. package/dist/webcomponents/p-5a044ca5.entry.js +0 -1
  724. package/dist/webcomponents/p-5ec18584.entry.js +0 -1
  725. package/dist/webcomponents/p-6122dc79.entry.js +0 -1
  726. package/dist/webcomponents/p-62858ba5.entry.js +0 -1
  727. package/dist/webcomponents/p-62b5e6cf.entry.js +0 -1
  728. package/dist/webcomponents/p-67dab4d9.entry.js +0 -1
  729. package/dist/webcomponents/p-6b791b1d.entry.js +0 -1
  730. package/dist/webcomponents/p-6ebf8f11.entry.js +0 -1
  731. package/dist/webcomponents/p-6fdac295.entry.js +0 -1
  732. package/dist/webcomponents/p-724cf90f.entry.js +0 -1
  733. package/dist/webcomponents/p-7ecca5fe.entry.js +0 -1
  734. package/dist/webcomponents/p-7ecf9bd0.entry.js +0 -1
  735. package/dist/webcomponents/p-850dd606.entry.js +0 -1
  736. package/dist/webcomponents/p-85af9d78.entry.js +0 -1
  737. package/dist/webcomponents/p-9367e7e6.entry.js +0 -1
  738. package/dist/webcomponents/p-9c114674.entry.js +0 -1
  739. package/dist/webcomponents/p-9c267692.entry.js +0 -1
  740. package/dist/webcomponents/p-B5rtFhtR.js +0 -1
  741. package/dist/webcomponents/p-BRhnhmpB.js +0 -1
  742. package/dist/webcomponents/p-BgFM_jvF.js +0 -1
  743. package/dist/webcomponents/p-BqbXuOZP.js +0 -1
  744. package/dist/webcomponents/p-BwpdCtUc.js +0 -1
  745. package/dist/webcomponents/p-C6g4MbnB.js +0 -1
  746. package/dist/webcomponents/p-CA_TyBed.js +0 -1
  747. package/dist/webcomponents/p-CE-MNrID.js +0 -1
  748. package/dist/webcomponents/p-CMpATPXy.js +0 -1
  749. package/dist/webcomponents/p-CQUZeo9r.js +0 -1
  750. package/dist/webcomponents/p-CSeo7WDO.js +0 -1
  751. package/dist/webcomponents/p-CTJ3moi4.js +0 -1
  752. package/dist/webcomponents/p-CVaOFfrI.js +0 -1
  753. package/dist/webcomponents/p-CYNcSTQA.js +0 -1
  754. package/dist/webcomponents/p-CevVA9qy.js +0 -1
  755. package/dist/webcomponents/p-CkiX8OGy.js +0 -1
  756. package/dist/webcomponents/p-CtWnJFtW.js +0 -1
  757. package/dist/webcomponents/p-CycBoHSW.js +0 -1
  758. package/dist/webcomponents/p-D-RVXHwG.js +0 -1
  759. package/dist/webcomponents/p-D1Na2I0C.js +0 -1
  760. package/dist/webcomponents/p-D5lmImiz.js +0 -1
  761. package/dist/webcomponents/p-DMf85Fkr.js +0 -1
  762. package/dist/webcomponents/p-DNPS-Ypi.js +0 -1
  763. package/dist/webcomponents/p-DQ5V5-Jy.js +0 -1
  764. package/dist/webcomponents/p-DapORSs4.js +0 -1
  765. package/dist/webcomponents/p-DcPNd9_D.js +0 -1
  766. package/dist/webcomponents/p-DfKxeSrC.js +0 -1
  767. package/dist/webcomponents/p-Dkujm7_O.js +0 -1
  768. package/dist/webcomponents/p-Dv1Fyrn3.js +0 -1
  769. package/dist/webcomponents/p-DxVCqvBt.js +0 -1
  770. package/dist/webcomponents/p-DzWLLt4t.js +0 -1
  771. package/dist/webcomponents/p-LO0pl3n2.js +0 -1
  772. package/dist/webcomponents/p-PdQT2QcR.js +0 -1
  773. package/dist/webcomponents/p-a2817869.entry.js +0 -1
  774. package/dist/webcomponents/p-a291a90c.entry.js +0 -1
  775. package/dist/webcomponents/p-b0bc03e6.entry.js +0 -1
  776. package/dist/webcomponents/p-c2cb70c8.entry.js +0 -1
  777. package/dist/webcomponents/p-c540fe9d.entry.js +0 -1
  778. package/dist/webcomponents/p-c6093716.entry.js +0 -1
  779. package/dist/webcomponents/p-c6e43493.entry.js +0 -1
  780. package/dist/webcomponents/p-c780cc91.entry.js +0 -1
  781. package/dist/webcomponents/p-c9598246.entry.js +0 -1
  782. package/dist/webcomponents/p-c972a599.entry.js +0 -1
  783. package/dist/webcomponents/p-cc1d8649.entry.js +0 -1
  784. package/dist/webcomponents/p-ce4895ca.entry.js +0 -1
  785. package/dist/webcomponents/p-ce67282b.entry.js +0 -1
  786. package/dist/webcomponents/p-cef5c6e9.entry.js +0 -1
  787. package/dist/webcomponents/p-d21fa0c9.entry.js +0 -1
  788. package/dist/webcomponents/p-d236f152.entry.js +0 -1
  789. package/dist/webcomponents/p-d6ac11fc.entry.js +0 -1
  790. package/dist/webcomponents/p-e55ce6ad.entry.js +0 -1
  791. package/dist/webcomponents/p-f02bd076.entry.js +0 -1
  792. package/dist/webcomponents/p-lPeK9y_X.js +0 -1
  793. package/dist/webcomponents/p-sCHf--Vc.js +0 -1
@@ -1,43 +1,21 @@
1
1
  import { object, string } from "yup";
2
- import { cityValidation, lineOneValidation, lineTwoValidation, postalValidation, makePostalValidation, } from "./schema-validations";
3
- import { CountryCode } from "../../../utils/country-codes";
4
- // Internal USA schemas
5
- const schemaUSA = () => object({
6
- line1: lineOneValidation.nullable(),
7
- line2: lineTwoValidation.nullable(),
8
- city: cityValidation.nullable(),
9
- state: string().nullable(),
10
- postal_code: string().nullable(),
11
- });
12
- const strictSchemaUSA = () => object({
13
- line1: lineOneValidation.required('Enter street address'),
14
- line2: lineTwoValidation.nullable(),
15
- city: cityValidation.required('Enter city'),
16
- state: string().required('Select state'),
17
- postal_code: postalValidation.required('Enter postal code'),
18
- });
19
- // Internal CAN schemas
20
- const schemaCAN = () => object({
21
- line1: lineOneValidation.nullable(),
22
- line2: lineTwoValidation.nullable(),
23
- city: cityValidation.nullable(),
24
- state: string().nullable(),
25
- postal_code: string().nullable(),
26
- });
27
- const strictSchemaCAN = () => object({
28
- line1: lineOneValidation.required('Enter street address'),
29
- line2: lineTwoValidation.nullable(),
30
- city: cityValidation.required('Enter city'),
31
- state: string().required('Select province'),
32
- postal_code: makePostalValidation(CountryCode.CAN).required('Enter postal code'),
33
- });
34
- // Public API
35
- export const addressSchemaUSA = (allowOptionalFields) => allowOptionalFields ? schemaUSA() : strictSchemaUSA();
36
- export const addressSchemaCAN = (allowOptionalFields) => allowOptionalFields ? schemaCAN() : strictSchemaCAN();
37
- // For Backward compatibility
38
- export const addressSchema = (allowOptionalFields) => addressSchemaUSA(allowOptionalFields);
39
- // Country-keyed mapping
40
- export const addressSchemaByCountry = {
41
- [CountryCode.USA]: addressSchemaUSA,
42
- [CountryCode.CAN]: addressSchemaCAN,
2
+ import { cityValidation, lineOneValidation, lineTwoValidation, postalValidation, stateValidation } from "./schema-validations";
3
+ export const addressSchema = (allowOptionalFields) => {
4
+ const schema = object({
5
+ line1: lineOneValidation.required('Enter street address'),
6
+ line2: lineTwoValidation.nullable(),
7
+ city: cityValidation.required('Enter city'),
8
+ state: stateValidation.required('Select state'),
9
+ postal_code: postalValidation.required('Enter postal code'),
10
+ country: string().required('Select country')
11
+ });
12
+ const easySchema = object({
13
+ line1: lineOneValidation.nullable(),
14
+ line2: lineTwoValidation.nullable(),
15
+ city: cityValidation.nullable(),
16
+ state: stateValidation.nullable(),
17
+ postal_code: postalValidation.nullable(),
18
+ country: string().required('Select country')
19
+ });
20
+ return allowOptionalFields ? easySchema : schema;
43
21
  };
@@ -1,88 +1,53 @@
1
- import { object, mixed, string } from "yup";
2
- import { CountryCode } from "../../../utils/country-codes";
1
+ import { object, mixed } from "yup";
3
2
  import { EntityDocumentType } from "../../../api/Document";
4
- import { accountNumberValidation, accountTypeValidation, bankNameValidation, identityNameValidation, nicknameValidation, routingNumberValidation, } from "./schema-validations";
5
- import { numbersOnlyRegex } from "./schema-helpers";
3
+ import { accountNumberValidation, accountTypeValidation, bankNameValidation, identityNameValidation, nicknameValidation, routingNumberValidation } from "./schema-validations";
6
4
  const checkExistingDocs = (documents, documentType) => {
7
5
  return documents.some((doc) => doc.document_type === documentType);
8
6
  };
9
- const buildCommonFieldRules = (allowOptionalFields) => {
10
- if (allowOptionalFields) {
11
- return {
12
- bank_name: bankNameValidation.nullable(),
13
- nickname: nicknameValidation.nullable(),
14
- account_owner_name: identityNameValidation.nullable(),
15
- account_type: accountTypeValidation.nullable(),
16
- account_number: accountNumberValidation.nullable(),
17
- };
18
- }
19
- return {
7
+ const documentErrorText = 'Please upload either a voided check or a bank statement. Only one is required.';
8
+ export const businessBankAccountSchema = (documents, allowOptionalFields) => {
9
+ const existingVoidedCheck = checkExistingDocs(documents, EntityDocumentType.voidedCheck);
10
+ const existingBankStatement = checkExistingDocs(documents, EntityDocumentType.bankStatement);
11
+ const existingDocument = existingVoidedCheck || existingBankStatement;
12
+ const schema = object().shape({
20
13
  bank_name: bankNameValidation.required('Enter bank name'),
21
14
  nickname: nicknameValidation.required('Enter nickname'),
22
15
  account_owner_name: identityNameValidation.required('Enter account owner name'),
23
16
  account_type: accountTypeValidation.required('Select account type'),
24
17
  account_number: accountNumberValidation.required('Enter account number'),
25
- };
26
- };
27
- const buildDocumentRules = (documents, allowOptionalFields) => {
28
- if (allowOptionalFields) {
29
- return {
30
- voided_check: mixed().nullable(),
31
- bank_statement: mixed().nullable(),
32
- };
33
- }
34
- const existingVoidedCheck = checkExistingDocs(documents, EntityDocumentType.voidedCheck);
35
- const existingBankStatement = checkExistingDocs(documents, EntityDocumentType.bankStatement);
36
- const existingDocument = existingVoidedCheck || existingBankStatement;
37
- const documentErrorText = 'Please upload either a voided check or a bank statement. Only one is required.';
38
- return {
18
+ routing_number: routingNumberValidation.required('Enter routing number'),
39
19
  voided_check: mixed().when('bank_statement', {
40
- is: (val) => !val && !existingDocument,
41
- then: (schema) => schema.required(documentErrorText),
42
- otherwise: (schema) => schema.notRequired(),
20
+ is: (val) => {
21
+ return !val && !existingDocument;
22
+ },
23
+ then: (schema) => {
24
+ return schema.required(documentErrorText);
25
+ },
26
+ otherwise: (schema) => {
27
+ return schema.notRequired();
28
+ }
43
29
  }),
44
30
  bank_statement: mixed().when('voided_check', {
45
- is: (val) => !val && !existingDocument,
46
- then: (schema) => schema.required(documentErrorText),
47
- otherwise: (schema) => schema.notRequired(),
31
+ is: (val) => {
32
+ return !val && !existingDocument;
33
+ },
34
+ then: (schema) => {
35
+ return schema.required(documentErrorText);
36
+ },
37
+ otherwise: (schema) => {
38
+ return schema.notRequired();
39
+ }
48
40
  }),
49
- };
50
- };
51
- const buildUSARules = (allowOptionalFields) => {
52
- if (allowOptionalFields) {
53
- return { routing_number: routingNumberValidation.nullable() };
54
- }
55
- return { routing_number: routingNumberValidation.required('Enter routing number') };
56
- };
57
- const buildCANRules = (allowOptionalFields) => {
58
- const institutionNumberValidation = string()
59
- .length(3, 'Institution number must be 3 digits')
60
- .matches(numbersOnlyRegex, 'Enter valid institution number');
61
- const transitNumberValidation = string()
62
- .length(5, 'Transit number must be 5 digits')
63
- .matches(numbersOnlyRegex, 'Enter valid transit number');
64
- if (allowOptionalFields) {
65
- return {
66
- institution_number: institutionNumberValidation.nullable(),
67
- transit_number: transitNumberValidation.nullable(),
68
- };
69
- }
70
- return {
71
- institution_number: institutionNumberValidation.required('Enter institution number'),
72
- transit_number: transitNumberValidation.required('Enter transit number'),
73
- };
74
- };
75
- export const businessBankAccountSchemaUSA = (documents, allowOptionalFields) => {
76
- const shape = Object.assign(Object.assign(Object.assign({}, buildCommonFieldRules(allowOptionalFields)), buildUSARules(allowOptionalFields)), buildDocumentRules(documents, allowOptionalFields));
77
- return object().shape(shape, [['voided_check', 'bank_statement']]);
78
- };
79
- export const businessBankAccountSchemaCAN = (documents, allowOptionalFields) => {
80
- const shape = Object.assign(Object.assign(Object.assign({}, buildCommonFieldRules(allowOptionalFields)), buildCANRules(allowOptionalFields)), buildDocumentRules(documents, allowOptionalFields));
81
- return object().shape(shape, [['voided_check', 'bank_statement']]);
82
- };
83
- // For backward compatibility, default to USA
84
- export const businessBankAccountSchema = (documents, allowOptionalFields) => businessBankAccountSchemaUSA(documents, allowOptionalFields);
85
- export const bankAccountSchemaByCountry = {
86
- [CountryCode.USA]: (allowOptionalFields, documents = []) => businessBankAccountSchemaUSA(documents, allowOptionalFields),
87
- [CountryCode.CAN]: (allowOptionalFields, documents = []) => businessBankAccountSchemaCAN(documents, allowOptionalFields),
41
+ }, [['voided_check', 'bank_statement']]);
42
+ const easySchema = object({
43
+ bank_name: bankNameValidation.nullable(),
44
+ nickname: nicknameValidation.nullable(),
45
+ account_owner_name: identityNameValidation.nullable(),
46
+ account_type: accountTypeValidation.nullable(),
47
+ account_number: accountNumberValidation.nullable(),
48
+ routing_number: routingNumberValidation.nullable(),
49
+ voided_check: mixed().nullable(),
50
+ bank_statement: mixed().nullable(),
51
+ });
52
+ return allowOptionalFields ? easySchema : schema;
88
53
  };
@@ -1,9 +1,6 @@
1
- import { object, string } from "yup";
2
- import { doingBusinessAsValidation, emailValidation, industryValidation, businessNameValidation, phoneValidation, taxIdValidation, websiteUrlValidation, dateOfIncorporationValidation, businessClassificationValidation, makeTaxIdValidation } from "./schema-validations";
3
- import { CountryCode } from "../../../utils/country-codes";
4
- import { countryLabels } from "../utils/country-config";
5
- // Base schema (no country-specific rules for classification/tax id)
6
- export const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
1
+ import { object } from "yup";
2
+ import { doingBusinessAsValidation, emailValidation, industryValidation, businessNameValidation, phoneValidation, taxIdValidation, websiteUrlValidation, dateOfIncorporationValidation, businessClassificationValidation } from "./schema-validations";
3
+ export const businessCoreInfoSchema = (allowOptionalFields) => {
7
4
  const schema = object({
8
5
  legal_name: businessNameValidation.required('Enter legal name'),
9
6
  website_url: websiteUrlValidation.required('Enter business website url'),
@@ -12,6 +9,7 @@ export const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
12
9
  doing_business_as: doingBusinessAsValidation.nullable(),
13
10
  classification: businessClassificationValidation.required('Select business classification'),
14
11
  industry: industryValidation.required('Enter a business industry'),
12
+ tax_id: taxIdValidation.required('Enter valid tax ID (SSN or EIN) without dashes'),
15
13
  date_of_incorporation: dateOfIncorporationValidation.required('Enter date of incorporation'),
16
14
  });
17
15
  const easySchema = object({
@@ -27,24 +25,3 @@ export const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
27
25
  });
28
26
  return allowOptionalFields ? easySchema : schema;
29
27
  };
30
- // Country-specific schema convenience wrappers
31
- export const businessCoreInfoSchemaUSA = (allowOptionalFields) => baseBusinessCoreInfoSchema(allowOptionalFields).concat(object({
32
- classification: string().required('Select business classification'),
33
- tax_id: makeTaxIdValidation(CountryCode.USA)
34
- .when('tax_id_last4', {
35
- is: (val) => !val,
36
- then: (schema) => schema.required(`Enter valid ${countryLabels.USA.taxIdLabel} without dashes`),
37
- otherwise: (schema) => schema.nullable(),
38
- }),
39
- }));
40
- export const businessCoreInfoSchemaCAN = (allowOptionalFields) => baseBusinessCoreInfoSchema(allowOptionalFields).concat(object({
41
- classification: string().required('Select business classification'),
42
- tax_id: makeTaxIdValidation(CountryCode.CAN)
43
- .when('tax_id_last4', {
44
- is: (val) => !val,
45
- then: (schema) => schema.required(`Enter valid ${countryLabels.CAN.taxIdLabel} without dashes`),
46
- otherwise: (schema) => schema.nullable(),
47
- }),
48
- }));
49
- // For backward compatibility, default to USA
50
- export const businessCoreInfoSchema = (allowOptionalFields) => businessCoreInfoSchemaUSA(allowOptionalFields);
@@ -1,9 +1,6 @@
1
1
  import { object } from "yup";
2
- import { businessCoreInfoSchemaUSA, businessCoreInfoSchemaCAN } from "./business-core-info-schema";
2
+ import { businessCoreInfoSchema } from "./business-core-info-schema";
3
3
  import { additionalQuestionsSchema } from "./business-additional-questions-schema";
4
- import { identitySchemaUSA, identitySchemaCAN } from "./business-identity-schema";
5
- import { addressSchemaUSA, addressSchemaCAN } from "./business-address-schema";
6
- export const businessFormSchemaUSA = object(Object.assign(Object.assign({}, businessCoreInfoSchemaUSA().fields), { legal_address: addressSchemaUSA(), additional_questions: additionalQuestionsSchema(), representative: identitySchemaUSA('representative') }));
7
- export const businessFormSchemaCAN = object(Object.assign(Object.assign({}, businessCoreInfoSchemaCAN().fields), { legal_address: addressSchemaCAN(), additional_questions: additionalQuestionsSchema(), representative: identitySchemaCAN('representative') }));
8
- // For backward compatibility, default to USA
9
- export const businessFormSchema = businessFormSchemaUSA;
4
+ import { identitySchema } from "./business-identity-schema";
5
+ import { addressSchema } from "./business-address-schema";
6
+ export const businessFormSchema = object(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
@@ -1,55 +1,26 @@
1
1
  import { object, string } from "yup";
2
- import { addressSchemaUSA, addressSchemaCAN } from "./business-address-schema";
3
- import { dobValidation, emailValidation, identityNameValidation, identityTitleValidation, phoneValidation, ssnValidation, makeIdentityNumberValidation, } from "./schema-validations";
4
- import { CountryCode } from "../../../utils/country-codes";
5
- // Internal USA schemas
6
- const schemaUSA = (role) => object({
7
- name: identityNameValidation.required(`Enter ${role} name`),
8
- title: identityTitleValidation.nullable(),
9
- email: emailValidation.nullable(),
10
- phone: phoneValidation.nullable(),
11
- dob_full: dobValidation(role).nullable(),
12
- ssn_last4: string().nullable(),
13
- identification_number: ssnValidation.nullable(),
14
- address: addressSchemaUSA(true),
15
- });
16
- const strictSchemaUSA = (role) => object({
17
- name: identityNameValidation.required(`Enter ${role} name`),
18
- title: identityTitleValidation.required(`Enter ${role} title`),
19
- email: emailValidation.required(`Enter ${role} email`),
20
- phone: phoneValidation.required('Enter phone number'),
21
- dob_full: dobValidation(role).required('Enter date of birth'),
22
- ssn_last4: string().nullable(),
23
- // ssn required unless last4 provided (handled inside ssnValidation)
24
- identification_number: ssnValidation,
25
- address: addressSchemaUSA(false),
26
- });
27
- // Internal CAN schemas
28
- const schemaCAN = (role) => object({
29
- name: identityNameValidation.required(`Enter ${role} name`),
30
- title: identityTitleValidation.nullable(),
31
- email: emailValidation.nullable(),
32
- phone: phoneValidation.nullable(),
33
- dob_full: dobValidation(role).nullable(),
34
- identification_number: makeIdentityNumberValidation(CountryCode.CAN).nullable(),
35
- address: addressSchemaCAN(true),
36
- });
37
- const strictSchemaCAN = (role) => object({
38
- name: identityNameValidation.required(`Enter ${role} name`),
39
- title: identityTitleValidation.required(`Enter ${role} title`),
40
- email: emailValidation.required(`Enter ${role} email`),
41
- phone: phoneValidation.required('Enter phone number'),
42
- dob_full: dobValidation(role).required('Enter date of birth'),
43
- identification_number: makeIdentityNumberValidation(CountryCode.CAN)
44
- .required('Enter identification number'),
45
- address: addressSchemaCAN(false),
46
- });
47
- export const identitySchemaUSA = (role, allowOptionalFields) => allowOptionalFields ? schemaUSA(role) : strictSchemaUSA(role);
48
- export const identitySchemaCAN = (role, allowOptionalFields) => allowOptionalFields ? schemaCAN(role) : strictSchemaCAN(role);
49
- // For backward compatibility, default to USA
50
- export const identitySchema = (role, allowOptionalFields) => identitySchemaUSA(role, allowOptionalFields);
51
- // Country-keyed mapping
52
- export const identitySchemaByCountry = {
53
- [CountryCode.USA]: identitySchemaUSA,
54
- [CountryCode.CAN]: identitySchemaCAN,
2
+ import { addressSchema } from "./business-address-schema";
3
+ import { dobValidation, emailValidation, identityNameValidation, identityTitleValidation, phoneValidation, ssnValidation } from "./schema-validations";
4
+ export const identitySchema = (role, allowOptionalFields) => {
5
+ const schema = object({
6
+ name: identityNameValidation.required(`Enter ${role} name`),
7
+ title: identityTitleValidation.required(`Enter ${role} title`),
8
+ email: emailValidation.required(`Enter ${role} email`),
9
+ phone: phoneValidation.required('Enter phone number'),
10
+ dob_full: dobValidation(role).required('Enter date of birth'),
11
+ ssn_last4: string().nullable(),
12
+ identification_number: ssnValidation,
13
+ address: addressSchema(allowOptionalFields),
14
+ });
15
+ const easySchema = object({
16
+ name: identityNameValidation.required(`Enter ${role} name`),
17
+ title: identityTitleValidation.nullable(),
18
+ email: emailValidation.nullable(),
19
+ phone: phoneValidation.nullable(),
20
+ dob_full: dobValidation(role).nullable(),
21
+ ssn_last4: string().nullable(),
22
+ identification_number: ssnValidation.nullable(),
23
+ address: addressSchema(allowOptionalFields),
24
+ });
25
+ return allowOptionalFields ? easySchema : schema;
55
26
  };
@@ -1,8 +1,6 @@
1
1
  import { string } from "yup";
2
2
  import StateOptions from "../../../utils/state-options";
3
- import { CountryCode } from "../../../utils/country-codes";
4
- import { countryValidation } from "../utils/country-config";
5
- import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, } from "../utils/business-form-options";
3
+ import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, businessClassificationOptions, } from "../utils/business-form-options";
6
4
  import { numbersOnlyRegex, phoneRegex, poBoxRegex, ssnRegex, transformEmptyString, urlRegex, validateRoutingNumber, } from "./schema-helpers";
7
5
  // Common Validations
8
6
  export const emailValidation = string()
@@ -23,7 +21,9 @@ export const doingBusinessAsValidation = string()
23
21
  export const websiteUrlValidation = string()
24
22
  .matches(urlRegex, 'Enter valid website url')
25
23
  .transform(transformEmptyString);
26
- export const businessClassificationValidation = string().transform(transformEmptyString);
24
+ export const businessClassificationValidation = string()
25
+ .oneOf(businessClassificationOptions.map((option) => option.value), 'Select business classification')
26
+ .transform(transformEmptyString);
27
27
  export const industryValidation = string()
28
28
  .min(2, 'Industry must be at least 2 characters')
29
29
  .max(50, 'Industry must be less than 50 characters')
@@ -37,43 +37,6 @@ export const taxIdValidation = string()
37
37
  return value !== '123456789';
38
38
  })
39
39
  .transform(transformEmptyString);
40
- // Country-aware helpers (backward compatible)
41
- export const makePostalValidation = (country) => string()
42
- .matches(countryValidation[country].postalRegex, 'Enter valid postal code')
43
- .transform(transformEmptyString);
44
- export const makeIdentityNumberValidation = (country) => {
45
- if (country === CountryCode.CAN) {
46
- return string()
47
- .matches(numbersOnlyRegex, 'Enter valid SIN')
48
- .length(countryValidation[country].identityDigits, 'Enter valid SIN')
49
- .test('not-repeat', 'Enter valid SIN', (value) => {
50
- return !/^(\d)\1+$/.test(value);
51
- })
52
- .test('not-seq', 'Enter valid SIN', (value) => {
53
- return value !== '123456789';
54
- })
55
- .transform(transformEmptyString);
56
- }
57
- // USA default (SSN)
58
- return ssnValidation;
59
- };
60
- export const makeTaxIdValidation = (country) => {
61
- if (country === CountryCode.CAN) {
62
- return string()
63
- .matches(numbersOnlyRegex, 'Enter valid Business Number (BN)')
64
- .length(countryValidation[country].taxIdDigits, 'Enter valid Business Number (BN)')
65
- .test('not-repeat', 'Enter valid Business Number (BN)', (value) => {
66
- return !/^(\d)\1+$/.test(value);
67
- })
68
- .test('not-seq', 'Enter valid Business Number (BN)', (value) => {
69
- return value !== '123456789';
70
- })
71
- .transform(transformEmptyString);
72
- }
73
- // USA default
74
- return taxIdValidation;
75
- };
76
- export const makeBusinessClassificationValidation = (_country) => string().transform(transformEmptyString);
77
40
  export const dateOfIncorporationValidation = string()
78
41
  .test('not-future', 'Date of incorporation cannot be in the future', (value) => {
79
42
  const inputDate = new Date(value);
@@ -33,10 +33,10 @@ export class BankAccountForm {
33
33
  return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
34
34
  }
35
35
  render() {
36
- return (h(Host, { key: '3176dc188869e5b233095a9cbbf0309b92445ee1' }, h(BankAccountFormSkeleton, { key: '192ba2270459bf2da49473095f5b7038b220e9c3', isReady: this.isReady }), h("div", { key: '9304caeb4d54ba9f33850849352ab344cdbce2c4', class: "container-fluid p-0", style: {
36
+ return (h(Host, { key: '75a85f7b9ea4bf40b486706bce4b142821bf9f00' }, h(BankAccountFormSkeleton, { key: 'ce957273b6ac57f4f0c636622cc9578582ceff43', isReady: this.isReady }), h("div", { key: 'd269050f0fc66d7000096ccfb72a075342e0e91a', class: "container-fluid p-0", style: {
37
37
  opacity: this.isReady ? '1' : '0',
38
38
  height: this.isReady ? 'auto' : '0',
39
- } }, h("div", { key: 'fa7880671ebd1972ff7224c6b70b4fee7e626fe2', class: "row mb-3" }, h("iframe-input", { key: 'd59e0c2ebb8dd89f60ef33a6c4b26b2e09cd09af', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: '78cf00f1340bff12dfd40e62a1f5307adb49567d', class: "row" }, h("iframe-input", { key: 'f6098a33489f1fbfdb2c52644d77218c53f9e243', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
39
+ } }, h("div", { key: '87285840b03837b7f12922257d6c8ca171db2d7d', class: "row mb-3" }, h("iframe-input", { key: 'd0ad5b047f1a4e51936ce79edc2d195bd781e4b2', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: 'eee0c473f0add87e7842a0a1f24bdd999fe21a77', class: "row" }, h("iframe-input", { key: 'dfaa618afdffabe07a290cdfe63c6f06b38f8ecf', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
40
40
  }
41
41
  static get is() { return "bank-account-form"; }
42
42
  static get states() {
@@ -1,10 +1,11 @@
1
1
  import { h, Host } from "@stencil/core";
2
+ import { PAYMENT_METHODS } from "../../..";
2
3
  export class BillingForm {
3
4
  get showSimpleCardBillingForm() {
4
- return this.paymentMethodType === 'card' && this.hideCardBillingForm;
5
+ return this.paymentMethodType === PAYMENT_METHODS.NEW_CARD && this.hideCardBillingForm;
5
6
  }
6
7
  get showSimpleBankAccountBillingForm() {
7
- return this.paymentMethodType === 'bankAccount' && this.hideBankAccountBillingForm;
8
+ return this.paymentMethodType === PAYMENT_METHODS.NEW_BANK_ACCOUNT && this.hideBankAccountBillingForm;
8
9
  }
9
10
  async getValues() {
10
11
  var _a;
@@ -37,10 +37,10 @@ export class CardForm {
37
37
  return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: 'a2e24bea5b9452109cc2e8bace48715d4891a8fd' }, h(CardFormSkeleton, { key: '72eaccbcbc44276f717796a6d43a7237ea9aa53c', isReady: this.isReady }), h("div", { key: 'ecaf4c87c39ef1613962a2ede31401f1ebc83510', class: "container-fluid p-0", style: {
40
+ return (h(Host, { key: '4867571cdff85823d48b139c1b6e591ff73ca426' }, h(CardFormSkeleton, { key: '37b584aa3865acc9266500f734c7a10e49fa139d', isReady: this.isReady }), h("div", { key: '09b5e58ed9df060922e2579880b68f022cff2940', class: "container-fluid p-0", style: {
41
41
  opacity: this.isReady ? '1' : '0',
42
42
  height: this.isReady ? 'auto' : '0',
43
- } }, h("div", { key: 'f2d7aa181c3fab31a660fb61cd05086a801f2ae3', class: "mb-3" }, h("iframe-input", { key: '146fd7622be45cd3d672449021bb2e5cae863c14', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: 'cbbf5b2e280fa0974c1416c3291ad69be778dad0', class: "d-flex align-items-start" }, h("div", { key: 'b624938df43a99cc8bdfee12ad375c2f794eb716', class: "flex-fill me-3" }, h("iframe-input", { key: '73324463e7f4e383db349d500104ea566b1302c5', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: '00a3e4c7cf98b02c8dc915e4d62efde12caea4b4', class: "flex-fill me-3" }, h("iframe-input", { key: 'd6546cabba6d82560e51e8a0d66b0078eaeded74', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: '1489393a907289649b9e20597012dc57d865dc59', class: "flex-fill" }, h("iframe-input", { key: 'd5ecc403c460aa9c3757c48970b4e83edb805796', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
43
+ } }, h("div", { key: 'bd2f777339e421523cd92c402c4fc066cbde7053', class: "mb-3" }, h("iframe-input", { key: '45b822e5878806ae47f88cf5aa54fe9ae5592eda', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: 'c9e4d2afd2eef4377356114bc33f1cc29fea46b3', class: "d-flex align-items-start" }, h("div", { key: 'e846e807f6524b9fd6a29a0a0bd2fff74c68f11f', class: "flex-fill me-3" }, h("iframe-input", { key: 'd48a6f05d3ca1341d8060987b53318bf29db4881', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: '9127d9dc4ff3386db9060126a8b0ce2e2125a5c9', class: "flex-fill me-3" }, h("iframe-input", { key: 'ced08ea4750b594b87e19fd6e9ae49b2cb6caa72', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: '92e07ff8ee6004f64a1e062371fd749771cdb77d', class: "flex-fill" }, h("iframe-input", { key: '487187ddfb9cea24cebc377950f33feb9222b299', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
44
44
  }
45
45
  static get is() { return "card-form"; }
46
46
  static get states() {
@@ -75,9 +75,9 @@ export class Checkout {
75
75
  }
76
76
  render() {
77
77
  var _a, _b;
78
- return (h(StyledHost, { key: '40765f54a977fb2e8e450eba0bf9731132ae4897' }, h("justifi-modular-checkout", { key: '3e698888a43c585749644d874dd49510889b04ca', ref: (el) => {
78
+ return (h(StyledHost, { key: '468b97261a110d5779ac742de45248aadfbeeb6c' }, h("justifi-modular-checkout", { key: '7ce8d2e147f0b91ad93996f7e044a3fe2a9bd604', ref: (el) => {
79
79
  this.modularCheckoutRef = el;
80
- }, authToken: this.authToken, checkoutId: this.checkoutId }, h("div", { key: '2491242f0619ea24fbd0e50fbdda4cc2bad9915f', class: "row gy-3 jfi-checkout-core" }, h("div", { key: 'a965de56c5190e62bbad82116874c78c57f9d9c6', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: 'ad29fd4619a5bf9e38cbca2e24f8c6818419c022', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '4b1691f7f54a8e83f649a3d1346ec5e0f4ebb588' }, h("justifi-checkout-summary", { key: '8ea50acbcd67ea9f26dbdf74f3a0a30062926364' }))), h("div", { key: 'b024b6c6debc74443abca6b7776c29ce0253da34', class: "col-12 mt-4" }, h("slot", { key: '00b9e18b4fb5278085a3752cdd009d29b0a97a04', name: "insurance" })), h("div", { key: '7dac621b116926cbd860ca975aa642bc207fc62e', class: "col-12 mt-4" }, h("justifi-header", { key: '228d89e8fc31e9e0d6e67907b45f74b8af601e30', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '6cc7b7a742f679029f40d8c64c9d59004604f67b', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: 'd5ca29544817acbd96c6cff74de27ed13b9ac42f', class: "d-flex flex-column" }, h("section", { key: 'd149835076b70d73c61cfa6e219ac613cf93e817' }, h("div", { key: 'c4562096a2bbd0bacb907c1bbb5cf741d5c77cb3' }, h("justifi-saved-payment-methods", { key: '077666867b456945c6da965a2ebebfd2faaa66b9' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && (h("justifi-radio-list-item", { key: 'bcf02b77573ff17e37b5b61793bd26351979b088', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && !this.disableBnpl && (h("justifi-radio-list-item", { key: '496cf7bd1c93724a5608bc3dba4756ae8dc605a6', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: 'eeb4dd27a8f448cc69e85bce8a4412306dbf0af2', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId }))))), h("div", { key: 'ad13982f1c15dd574e915e8a3a1adac55b21c188', class: "mt-4" }, h("justifi-button", { key: '0a0ffc091fbe77e9221114643d5e17e891977594', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: this.isSubmitting, isLoading: this.isSubmitting, customStyle: { width: '100%', textAlign: "center" } }))))));
80
+ }, authToken: this.authToken, checkoutId: this.checkoutId }, h("div", { key: '7ace65df988d338d0cc810a532f8914a046e7268', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '3c6223ef06c7a2b42bef97dd67f5f09f21bb248b', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: '622b2ef667ab222a3152134573e7191bf2fa6117', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '036b447e7e92b1c6bfe33aff5d07a35bc2d9a915' }, h("justifi-checkout-summary", { key: '292c0b09960046e78b902652e5b0902129715ef5' }))), h("div", { key: '5d27c5a5d3f026ad9f9da37833f8ecf808a89de9', class: "col-12 mt-4" }, h("slot", { key: '1a583d890039b1c3a4493a0687ac5a9caa21d2b3', name: "insurance" })), h("div", { key: '0d7427acc37518888fceef97431f594fb4ea2359', class: "col-12 mt-4" }, h("justifi-header", { key: '5543bc55d4be2de9064b4c4924ecd7d2f32da7d9', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '80a17876009d3c6e39017432053e3ab18b6d406e', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: 'eac0e3466d8cf74df53acd1252d11d0461d0a263', class: "d-flex flex-column" }, h("section", { key: '1e27c56d333a44760d552549a716b39b1bcc538f' }, h("div", { key: '65680e1ed1a3eccc84ec67797f468edafcb65a80' }, h("justifi-saved-payment-methods", { key: '800e1e6312f8a38856341b5bc78c93a9fc18434e' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: '0e5d9164a0066b88e7b9467bbb25167262614087', class: "mb-3" }, h("justifi-apple-pay", { key: '81717e6193aa402eef18cf006b74798d02811a8d' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && (h("justifi-radio-list-item", { key: '6405f56f8ee450d410801056c362580a6457325f', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && !this.disableBnpl && (h("justifi-radio-list-item", { key: 'd2b920050db52162f5f1fee2ee46884f50f511e8', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: 'c160cd5403029ce3e1cac142cf1e782c104e97f2', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId }))))), h("div", { key: '6e03db84ccbfab811c72e4df5ffaf23c8822539b', class: "mt-4" }, h("justifi-button", { key: '93bb084fdcce73aebed63ad887ced32c4d47ef7f', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: this.isSubmitting, isLoading: this.isSubmitting, customStyle: { width: '100%', textAlign: "center" } }))))));
81
81
  }
82
82
  static get is() { return "justifi-checkout"; }
83
83
  static get properties() {
@@ -12,7 +12,7 @@ export class SaveNewPaymentMethod {
12
12
  };
13
13
  }
14
14
  render() {
15
- return (h(StyledHost, { key: '28c13afd8a8f21e5f67e362c19c6e6225838f472' }, h("form-control-checkbox", { key: '205ae5a43d5634c4ec1e692d3e3b123e6b3adc34', label: this.label || 'Save New Payment Method', name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange })));
15
+ return (h(StyledHost, { key: '9aa9ce812c0cb2fdc809c47060ed150903ad7cd5' }, h("form-control-checkbox", { key: '596bc9a145e363c751c8610f4b9f23ad31dab299', label: this.label || 'Save New Payment Method', name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange })));
16
16
  }
17
17
  static get is() { return "justifi-save-new-payment-method"; }
18
18
  static get encapsulation() { return "shadow"; }
@@ -18,7 +18,7 @@ export class SavedPaymentMethod {
18
18
  ;
19
19
  render() {
20
20
  var _a, _b, _c;
21
- return (h(Host, { key: '3ac45b0d672d5780664205822c712d4afd01d5c0', class: "payment-method" }, h("div", { key: 'e0ad4b748d79c50ef963b16f33b7c322c6819b79', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '181ecb03715f1c3c8d3d9dbf802d8e4d0fd72ec1', 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: '7374fc6d31ec0ebdb34cdd2b789fb931cb93216f', class: "payment-method" }, h("div", { key: 'b29b47faffcb10d90a811a255a707dfda8597317', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '82c2ebcb9d9b47c8a0a6a3a3e35d7e59a4b66ee7', 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: '9d3a3574320cbb521457bb130ff5bfe9eca0ad71' }, h(TableComponent, { key: 'c52b7ed59ea7c68607506751754a4f5bbc46f394' }, h(TableHead, { key: '24d2ee3ae48ed8687e43ee209a0260d2969a2b96' }, h(TableHeadRow, { key: 'dcaf7c316283c7fac6bd8be6e119c965eb91590f' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '57cf5bf625cf994aa0abb5e5d71dad0ffe2eb049' }, h(TableLoadingState, { key: '4a33477c76c38205d907d38d122f03339a57a65c', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'e48a334af552ef4e747f069a88d4aa1638d09b0d', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'dd2892c5e9bdfa46e4faf465a6e9411890461ea5', 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: '17b824a591a68fe3ecf8c4b15d3404d27378d25f' }, h(TableFootRow, { key: '425c02a9cc4992896847d4b7cc114f55e165687b' }, h(TableFootCell, { key: '78bcf9f3dae3c166a57ebd4bc39453d0f8f29d6b', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '4ea9982a48440c1fa4ef7f4919e24c06a783d707', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
121
+ return (h(TableWrapper, { key: 'a77ef0f8f5b4ddf7448815c9df38097e16a38794' }, h(TableComponent, { key: '6408f3ec06f268f2f5b516fb2fe5e03dcce84bfc' }, h(TableHead, { key: '310864630e702965e885568c513d1d2d8f3805ea' }, h(TableHeadRow, { key: 'bee990fd0a1f8fbf5f21f41ce44f3d57a6bbffa6' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '1a5fd1a0b571205238ec365f0b9688d6abe95dc3' }, h(TableLoadingState, { key: 'df07de295c2a2b6674ed60ff55678a0f67665b15', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'faecb3005baf02ec425b369dcceff2de06e501eb', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: '7d0e879b9e5595550a4cbd9c9948677106859e38', 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: '3fbdfe68348692e23333bae21fbaef261fe263d4' }, h(TableFootRow, { key: '4e39fd1f73d4b2f943f909fa8d640bf488fb5469' }, h(TableFootCell, { key: 'f245bc167021ff3e1c7f139e31fe151064651dad', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: 'c9129910b8ffeda06c90ffaa32832b8186687de4', 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: '6dbdb00f79ef53a27be368d8fe4cbe2f16f2dd4f' }, h("table-filters-menu", { key: 'de5804ab5f58f460dbff9a271ef54c2ad36189b2', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: '3cf13c643c5bdddf18228b3e1a5c3bb1fa8888d1', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '18b4c17805ab037e9cedc0deb64728d5b0678a4d', class: "p-2" }, h("form-control-select", { key: '07fc0b1645bfca511e08fc6e1752405c7c07a33c', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '49ae4add03dc26083430ebc17b5e382a63b820b4', class: "p-2" }, h("form-control-select", { key: 'a5479b1e04a0d393ea9007e032453f05efaf2e68', 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: 'e68f5bd4687eaad5aae4890d81baec603f72b6de' }, h("table-filters-menu", { key: 'c09285765839dbfad618bc13f39883e3f11ae991', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: '96e32ecba5c64ccda108ceb583a82b1554b347a8', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '7ce51a9f065004c169b577bcdd33af8ad7b01ac2', class: "p-2" }, h("form-control-select", { key: 'b6dfda04a58f51b989b1dc655df00500071fea98', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status || '', disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '4feb8c837611e6d0ec9cad6cb7a9f032db8cbbf5', class: "p-2" }, h("form-control-select", { key: '5a2a6c0e21cb62ee792bce703ccdfc9e08a46cc0', 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: 'e4cb557d2c2a552f8491c9360ae937d8403e7355' }, h("checkouts-list-core", { key: 'cd12ed4b958bac696e3801951110d2d227dbfb16', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
64
+ return (h(StyledHost, { key: 'b7e794982435af9a755c272767c017c57fa16b24' }, h("checkouts-list-core", { key: 'a8de52b59cbccd7cd97369663c074011b49b9499', 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: 'ea3db874b6fdfab4ed007d116dc2b7a549ad8671' }, 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: '7e16a29a9b82c993c35c075c857838b1ba9469ea' }, 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: '3e27df0e4efcad1b359a1daf1f32d8fe9dbc74f0', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
46
+ return (h("justifi-dispute-management-core", { key: 'f1bd67d5ad60de2ad584c8440cc71c3ad6453429', 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: '36f654e2a694534927056d925446dd8ff0de9ee4' }, this.isLoading && (h("div", { key: 'fcfb19c4dc3fe510232c6c3d796a525c9369ffa0', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'aa36660470935287c5edef694605d23a654a2bc8', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: '801dcf184fcf68ebc07f79d2f748afdc787d85f8', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: 'b0f1e518ca525ea557fd2582611dd3b6a2d5fa1a', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && (h("div", { key: 'd4d312c97b47151c093c3cba3e77c3ce476dae59', part: text }, h("h1", { key: 'bccf53bb045a197678054b6827910a4c3714936a', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '402b629e9a4d558764216d21f66860c30cc0b980' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: 'c75c24e1c6340a7abbd8ef2d801b8b8c3b20b6e1', class: "h5" }, "Dispute details"), h("div", { key: '343f9b41d4aad58faabe558a25b5dde774f377ac', class: "d-table gap-2" }, h("div", { key: '41f57f72c7f8099b60fab931062c917b37ac5234', class: "d-table-row gap-2" }, h("span", { key: 'b1f5f93e4953001a4bdf3cd4b93f3a6a6c9a4029', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '1a3c5bdf2badf52c93f65598f0d6ff047275e411', 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: 'cc9be933cec2ca2e71f46ff242a6764f43e33d96', class: "d-table-row gap-2" }, h("span", { key: '55b5a66315505d8f25c65c76800be448dc66d4e4', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: 'ec35b2fc23586ed63ed268c68d9c968100cac608', 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: '6be9f8d5c61fa3e437bb64a7acff76872549ac3e', class: "d-table-row gap-2" }, h("span", { key: '0258e8031223b25ea632c7437b7c1c5163eff3fb', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Dispute ID"), h("span", { key: '9cd8e420ce852a9516bdb9628d4e6bdf0557469e', 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: 'af20a8d051bb06056a908bba7fe6719bd5833f0c', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: 'ca78c484bf58102ca0d0be451532f3b7b3602d93', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '274e1f792e8f623c8ea5be577feab130e89924ee', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_e = this.dispute) === null || _e === void 0 ? void 0 : _e.underReview) && (h("div", { key: 'a95367fe1e2390904b11b8274cf4c64eb421e091' }, h("h1", { key: '22f246e2f51aaf22711d26a6e98e91b7e73a4cab', class: "h4" }, "This payment is disputed and under review"), h("p", { key: 'f4cd8dd0d037a7a7b235a82b8efdc5540c377c84' }, "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: '07cf44a7e3fe8013a90c0a169a2b040d09bed003' }, h("h1", { key: '43cbc044f82e73bb8bb20dd51442122cc657ef4f', class: "h4" }, "This payment was disputed"), h("p", { key: 'c5044bac07848f0376a8f48929d438d9ddc37e53' }, "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: '7bba3c52f74f3c342133d090f0d9cc8470a41213' }, h("h1", { key: '3c2b7d76ff3496acb58305df470eface52110594', class: "h4" }, "This payment was disputed"), h("p", { key: '23d99d90b02aa2df806dbfeb6804dfb9b080ac81' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
33
+ return (h(StyledHost, { key: 'ab36fe0292ebcc4d2f062898065c135b869be67a' }, this.isLoading && (h("div", { key: '8cff4628d911c7119b0f8d1612e99caad526746c', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'ee3bce3019778f5e481ae26ada89e70090671b37', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: '242cbb756770f1545d09f5e79c539683158acaa6', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: '409e7d228cb414ed458959107ba5ba2fe38eed72', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && (h("div", { key: '8ba65861b311e2020f52ee38f0303b19c4b8b386', part: text }, h("h1", { key: '9f62e7a3144e50a0980d5e3ea2a1e078ec8e9d0b', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '533af5d2cc8cba530812d247f60ad7a92e4a36a3' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: 'cf842a85853e34e3b1a38674d36bd0a4705ff5e0', class: "h5" }, "Dispute details"), h("div", { key: 'cd3bcc4861a2ba4a576638d9a0e86927ff4d7123', class: "d-table gap-2" }, h("div", { key: '1bd4ce368992bf9d6855a301e0b249c68a98471c', class: "d-table-row gap-2" }, h("span", { key: '18845a901fcd0bff4480b780bbcf35fc171f4b0b', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '75533ed5fd445f69a4967a6625cab5badc5766a3', 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: '5c0974a223983b19150230544d4c3b4154747de2', class: "d-table-row gap-2" }, h("span", { key: '7d09c4fdbc0b5f38f15d78b3c325e256d29136dc', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '2379e217700a07a388650f7ca82ca5a420175dd9', 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: 'c4b5ad2e540d0ab61ff29b2913344ed055a56618', class: "d-table-row gap-2" }, h("span", { key: '2f32326e0067d8d8ac734ba9f16b6aee0e774cc2', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Due Date"), h("span", { key: '823b0d79ad2c77ef68c27300a5b8f539bfa66b30', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_d = this.dispute) === null || _d === void 0 ? void 0 : _d.due_date))), h("div", { key: '8a0cca3f006564da1feee39e06b3e322cd2773fc', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '07d7ba81e9353183148c9892ea8016537095b078', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '05d437f6711fae2398f865fdaeb6908327f8b68b', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_e = this.dispute) === null || _e === void 0 ? void 0 : _e.underReview) && (h("div", { key: '4ca58f734515deb7c713c13a2f69f0f42d52f706' }, h("h1", { key: '65f92415880cc2fb39b7b2753df960ec10437455', class: "h4" }, "This payment is disputed and under review"), h("p", { key: '8129f146f956db43378b672f68a9edeec9374401' }, "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: '85acb2724f46424856bf4fc885bd1553539ce2be' }, h("h1", { key: '7ce9b3ed57a5c3cd904d1c706044091fbda3dc03', class: "h4" }, "This payment was disputed"), h("p", { key: '6a92fd3be617562d1ba10192ec508354a9450150' }, "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: '8e45676c7909732bee12f707297987b927b9526c' }, h("h1", { key: 'f64abd54f60a63e0ff6888beecc74050e2f860db', class: "h4" }, "This payment was disputed"), h("p", { key: 'bd2e689d5de42468b67259573b8289835c4acc5e' }, "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"; }