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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (778) hide show
  1. package/dist/cjs/{Api-CwTLkFY4.js → Api-DqzbA2qk.js} +1 -1
  2. package/dist/cjs/{Business-DCRzZf0w.js → Business-DWHy_-z9.js} +299 -9
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  4. package/dist/cjs/{badge-BmOSt4gS.js → badge-BJVdpSU-.js} +1 -1
  5. package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +132 -0
  6. package/dist/cjs/bank-account-form.cjs.entry.js +6 -6
  7. package/dist/cjs/{business-additional-questions-schema-DNbSH3E-.js → business-additional-questions-schema-CetDMUp7.js} +27 -5
  8. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  9. package/dist/cjs/{business-form-options-CMII7nIK.js → business-form-options-e9UFw4P-.js} +1 -1
  10. package/dist/cjs/business-identity-schema-Cd0tvfJr.js +101 -0
  11. package/dist/cjs/{business.service-Dkhqyggm.js → business.service-Bv9o99Ll.js} +2 -2
  12. package/dist/cjs/{button-7c2RN2yp.js → button-_YJuE8cy.js} +1 -1
  13. package/dist/cjs/card-form.cjs.entry.js +6 -6
  14. package/dist/cjs/{check-pkg-version-BURRKC_7.js → check-pkg-version-CadxBsjl.js} +3 -3
  15. package/dist/cjs/{checkout.service-LwZVVgP5.js → checkout.service-dLB93w3Z.js} +2 -2
  16. package/dist/cjs/{checkout.store-C3f3E24L.js → checkout.store-DC4yVxDj.js} +2 -3
  17. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -12
  18. package/dist/cjs/{terminal-orders-list-params-state-C4c8UZtP.js → checkouts-list-params-state-ARjo40Y9.js} +1 -1
  19. package/dist/cjs/{checkouts-table-BQUhZZd_.js → checkouts-table-C102WCfy.js} +2 -2
  20. package/dist/cjs/{config-state-B_gyIchD.js → config-state-BeZM7X7J.js} +1 -1
  21. package/dist/cjs/country-config-MCOhn8o3.js +68 -0
  22. package/dist/cjs/{custom-popper_2.cjs.entry.js → custom-popper.cjs.entry.js} +3 -23
  23. package/dist/cjs/{dispute.service-927Gzb0N.js → dispute.service-BmAAnNky.js} +2 -2
  24. package/dist/cjs/form-alert_5.cjs.entry.js +25 -15
  25. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  26. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  27. package/dist/cjs/{form-control-error-text-DD0dHGu8.js → form-control-error-text-DJzNQrEz.js} +1 -1
  28. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  29. package/dist/cjs/{form-control-help-text-2QwKi78M.js → form-control-help-text-DII6UDeq.js} +1 -1
  30. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  31. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +6 -6
  32. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  33. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +119 -0
  34. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  35. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  36. package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-select_3.cjs.entry.js} +25 -6
  37. package/dist/cjs/{form-input-masks-DgXd0f4V.js → form-input-masks-BnNFJ3IJ.js} +9 -4
  38. package/dist/cjs/{get-business-o5jPq_ME.js → get-business-D9ZHyPem.js} +1 -1
  39. package/dist/cjs/{get-payment-details-BSxp1HX0.js → get-payment-details-BHPHzSkH.js} +2 -2
  40. package/dist/cjs/{get-subaccounts-B31f95PR.js → get-subaccounts-Bw76aYu0.js} +3 -3
  41. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  42. package/dist/cjs/{header-1-DMsp0XM7.js → header-1-Da7oKhXY.js} +1 -1
  43. package/dist/cjs/{header-3-BSvFq_IF.js → header-3-uBM_CzcP.js} +1 -1
  44. package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
  45. package/dist/cjs/{index-Dyzl8Hn6.js → index-CaAefsWD.js} +42 -31
  46. package/dist/cjs/{index-D1Ba20gi.js → index-D-CfIyoF.js} +1 -1
  47. package/dist/cjs/{index.esm-BleZSAc0.js → index.esm-ByC0D4sJ.js} +18 -17
  48. package/dist/cjs/{input-handlers-DYl_0IwC.js → input-handlers-D6QMwPTB.js} +2 -2
  49. package/dist/cjs/{insurance-state-uWOl6jJN.js → insurance-state-KJzYGtVr.js} +2 -2
  50. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +127 -70
  51. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +23 -24
  52. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  53. package/dist/cjs/justifi-apple-pay.cjs.entry.js +10 -10
  54. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +25 -26
  55. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -12
  56. package/dist/cjs/justifi-business-form.cjs.entry.js +25 -21
  57. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +15 -7
  58. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +30 -24
  59. package/dist/cjs/justifi-checkout.cjs.entry.js +16 -15
  60. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +7 -9
  61. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -15
  62. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  63. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  64. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  65. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -11
  66. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -16
  67. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -10
  68. package/dist/cjs/justifi-order-terminals.cjs.entry.js +13 -15
  69. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +28 -19
  70. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -12
  71. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +39 -24
  72. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -11
  73. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +12 -14
  74. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
  75. package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -15
  76. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -11
  77. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +12 -14
  78. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
  79. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -16
  80. package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -15
  81. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
  82. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -13
  83. package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
  84. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +8 -10
  85. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -13
  86. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -9
  87. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -15
  88. package/dist/cjs/loader.cjs.js +2 -2
  89. package/dist/cjs/{package-Cq0M4ut-.js → package-CVxkAS_m.js} +1 -1
  90. package/dist/cjs/pagination-menu.cjs.entry.js +4 -4
  91. package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
  92. package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
  93. package/dist/cjs/{payment.service-DUq-W7tS.js → payment.service-DODmonNs.js} +2 -2
  94. package/dist/cjs/payments-list-core.cjs.entry.js +11 -13
  95. package/dist/cjs/{payments-list-params-state-C4c8UZtP.js → payments-list-params-state-ARjo40Y9.js} +1 -1
  96. package/dist/cjs/{payments-status-3iIQkoov.js → payments-status-5IzqwLep.js} +2 -2
  97. package/dist/cjs/{payments-table-BSHUQhM-.js → payments-table-BcZ6U6p8.js} +23 -3
  98. package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
  99. package/dist/cjs/{payout.service-DoKMr8Xw.js → payout.service-Do8DxBxe.js} +2 -2
  100. package/dist/cjs/payouts-list-core.cjs.entry.js +11 -13
  101. package/dist/cjs/{payouts-list-params-state-C4c8UZtP.js → payouts-list-params-state-ARjo40Y9.js} +1 -1
  102. package/dist/cjs/{payouts-status-DoQbxIms.js → payouts-status-D38A6UrI.js} +2 -2
  103. package/dist/cjs/{payouts-table-BD_Fhz_j.js → payouts-table-Cn_cCCOY.js} +2 -2
  104. package/dist/cjs/{schema-validations-jek_iZ9W.js → schema-validations-0mjPveQ0.js} +46 -7
  105. package/dist/cjs/{skeleton-CuIMC98G.js → skeleton-DlPP4i_w.js} +1 -1
  106. package/dist/cjs/{spinner-CMZXdrPe.js → spinner-BNWG01hP.js} +1 -1
  107. package/dist/cjs/{styled-host-2KXbjOFw.js → styled-host-DSpt9LtB.js} +1 -1
  108. package/dist/cjs/{table-DlQCUVag.js → table-CAWBqvW5.js} +2 -2
  109. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  110. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +10 -12
  111. package/dist/cjs/{checkouts-list-params-state-C4c8UZtP.js → terminal-orders-list-params-state-ARjo40Y9.js} +1 -1
  112. package/dist/cjs/{terminal-orders-table-t6XxNy_K.js → terminal-orders-table-BUA4LcEc.js} +4 -4
  113. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  114. package/dist/cjs/{terminal.service-Iyje71vN.js → terminal.service-bxQnc1JY.js} +2 -2
  115. package/dist/cjs/terminals-list-core.cjs.entry.js +10 -12
  116. package/dist/cjs/terminals-list-params-state-ARjo40Y9.js +22 -0
  117. package/dist/cjs/{terminals-table-BTdKRiBN.js → terminals-table-C2_M7SWl.js} +2 -2
  118. package/dist/cjs/{utils-FFP5ZHyE.js → utils-C6mfHWv-.js} +1 -1
  119. package/dist/cjs/webcomponents.cjs.js +3 -3
  120. package/dist/collection/api/BankAccount.js +4 -0
  121. package/dist/collection/api/Business.js +16 -1
  122. package/dist/collection/api/services/apple-pay.service.js +1 -1
  123. package/dist/collection/collection-manifest.json +4 -1
  124. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +0 -1
  125. package/dist/collection/components/business-details/business-details-core.js +0 -1
  126. package/dist/collection/components/business-details/business-details.js +4 -4
  127. package/dist/collection/components/business-details/core-info-details/core-info-details.js +0 -1
  128. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +0 -1
  129. package/dist/collection/components/business-details/owner-details/owner-details.js +0 -1
  130. package/dist/collection/components/business-details/representative-details/representative-details.js +0 -1
  131. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
  132. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +36 -5
  133. package/dist/collection/components/business-forms/business-form/business-form.js +13 -9
  134. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +43 -7
  135. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +29 -8
  136. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +30 -11
  137. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +39 -17
  138. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +49 -8
  139. package/dist/collection/components/business-forms/owner-form/owner-form.js +38 -14
  140. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +2 -4
  141. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +7 -7
  142. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +3 -5
  143. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +88 -0
  144. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +8 -8
  145. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +50 -0
  146. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +40 -12
  147. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +32 -7
  148. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-documents-on-file.js +2 -2
  149. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +51 -13
  150. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +32 -7
  151. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +32 -9
  152. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +32 -7
  153. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +47 -9
  154. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +35 -8
  155. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +32 -7
  156. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +101 -0
  157. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +15 -16
  158. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +37 -14
  159. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +32 -7
  160. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +46 -29
  161. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +9 -11
  162. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +41 -15
  163. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +7 -7
  164. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +7 -7
  165. package/dist/collection/components/business-forms/payment-provisioning/test/mockBusiness.js +52 -0
  166. package/dist/collection/components/business-forms/schemas/business-address-schema.js +41 -19
  167. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +74 -39
  168. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +27 -4
  169. package/dist/collection/components/business-forms/schemas/business-form-schema.js +7 -4
  170. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +53 -24
  171. package/dist/collection/components/business-forms/schemas/schema-validations.js +41 -4
  172. package/dist/collection/components/business-forms/utils/country-config.js +47 -0
  173. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  174. package/dist/collection/components/checkout/billing-form/billing-form.js +8 -8
  175. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  176. package/dist/collection/components/checkout/checkout.js +17 -16
  177. package/dist/collection/components/checkout/save-new-payment-method.js +2 -2
  178. package/dist/collection/components/checkout/saved-payment-method.js +3 -4
  179. package/dist/collection/components/checkouts-list/checkouts-list-core.js +3 -5
  180. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +5 -5
  181. package/dist/collection/components/checkouts-list/checkouts-list.js +6 -6
  182. package/dist/collection/components/config-provider/config-provider.js +3 -3
  183. package/dist/collection/components/dispute-management/dispute-management-core.js +5 -6
  184. package/dist/collection/components/dispute-management/dispute-management.js +5 -5
  185. package/dist/collection/components/dispute-management/dispute-notification.js +5 -6
  186. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +4 -4
  187. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +4 -4
  188. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +4 -4
  189. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +2 -5
  190. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +6 -7
  191. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +4 -4
  192. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +4 -4
  193. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +4 -4
  194. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +4 -4
  195. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +4 -4
  196. package/dist/collection/components/filters/table-filters-menu.js +3 -4
  197. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -2
  198. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +4 -4
  199. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +26 -26
  200. package/dist/collection/components/modular-checkout/modular-checkout.js +17 -9
  201. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +10 -10
  202. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +3 -3
  203. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  204. package/dist/collection/components/modular-checkout/sub-components/billing-form-full.js +2 -2
  205. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +3 -3
  206. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  207. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +9 -10
  208. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +1 -1
  209. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  210. package/dist/collection/components/order-terminals/order-terminals.js +9 -9
  211. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +10 -10
  212. package/dist/collection/components/payment-details/payment-details-core.js +8 -9
  213. package/dist/collection/components/payment-details/payment-details.js +4 -4
  214. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +6 -6
  215. package/dist/collection/components/payments-list/payments-list-core.js +3 -4
  216. package/dist/collection/components/payments-list/payments-list-filters.js +12 -12
  217. package/dist/collection/components/payments-list/payments-list.js +6 -6
  218. package/dist/collection/components/payments-list/payments-table.js +21 -1
  219. package/dist/collection/components/payout-details/payout-details-core.js +3 -5
  220. package/dist/collection/components/payout-details/payout-details.js +4 -4
  221. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +6 -6
  222. package/dist/collection/components/payouts-list/payouts-list-core.js +3 -6
  223. package/dist/collection/components/payouts-list/payouts-list-filters.js +6 -6
  224. package/dist/collection/components/payouts-list/payouts-list.js +6 -6
  225. package/dist/collection/components/refund-payment/refund-payment.js +7 -7
  226. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -4
  227. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +10 -10
  228. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +6 -6
  229. package/dist/collection/components/terminals-list/terminals-list-core.js +3 -5
  230. package/dist/collection/components/terminals-list/terminals-list-filters.js +7 -7
  231. package/dist/collection/components/terminals-list/terminals-list.js +6 -6
  232. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +20 -20
  233. package/dist/collection/store/checkout.store.js +1 -2
  234. package/dist/collection/ui-components/custom-popper/custom-popper.js +5 -7
  235. package/dist/collection/ui-components/details/details.js +2 -2
  236. package/dist/collection/ui-components/form/form-control-checkbox.js +14 -15
  237. package/dist/collection/ui-components/form/form-control-date.js +17 -18
  238. package/dist/collection/ui-components/form/form-control-file-v2.js +13 -14
  239. package/dist/collection/ui-components/form/form-control-file.js +16 -17
  240. package/dist/collection/ui-components/form/form-control-monetary.js +15 -17
  241. package/dist/collection/ui-components/form/form-control-number-masked.js +16 -17
  242. package/dist/collection/ui-components/form/form-control-number.js +14 -15
  243. package/dist/collection/ui-components/form/form-control-radio.js +16 -17
  244. package/dist/collection/ui-components/form/form-control-select.js +14 -16
  245. package/dist/collection/ui-components/form/form-control-text.js +16 -18
  246. package/dist/collection/ui-components/form/form-control-textarea.js +16 -18
  247. package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +4 -4
  248. package/dist/collection/ui-components/form/form-helpers/form-control-help-text/form-control-help-text.js +4 -4
  249. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +2 -2
  250. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  251. package/dist/collection/ui-components/form/iframe-input.js +9 -9
  252. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -5
  253. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +13 -14
  254. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +6 -6
  255. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +10 -10
  256. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +9 -10
  257. package/dist/collection/utils/country-codes.js +5 -0
  258. package/dist/collection/utils/form-input-masks.js +8 -0
  259. package/dist/collection/utils/province-options.js +20 -0
  260. package/dist/docs.json +1118 -141
  261. package/dist/esm/{Api-D4tj-h4P.js → Api-DLf3ihCB.js} +2 -2
  262. package/dist/esm/{Business-BCoP0TAV.js → Business-B5rtFhtR.js} +290 -3
  263. package/dist/esm/{Refund-Bc5By0lb.js → Refund-BeI1WGfx.js} +1 -1
  264. package/dist/esm/additional-questions-details_5.entry.js +4 -4
  265. package/dist/esm/{badge-ChwzCNAF.js → badge-CkfrkCoy.js} +2 -2
  266. package/dist/esm/bank-account-document-form-inputs_6.entry.js +125 -0
  267. package/dist/esm/bank-account-form.entry.js +8 -8
  268. package/dist/esm/{business-additional-questions-schema-C6NRHWEL.js → business-additional-questions-schema-DSvdNuI1.js} +26 -5
  269. package/dist/esm/business-details-core.entry.js +5 -5
  270. package/dist/esm/{business-form-options-CgssATyg.js → business-form-options-D6s5H4RI.js} +2 -2
  271. package/dist/esm/business-identity-schema-mN4VhA1v.js +94 -0
  272. package/dist/esm/{business.service-CsbtEDNi.js → business.service-BIALik8Z.js} +3 -3
  273. package/dist/esm/{button-SAIS_5os.js → button-CuZAKl_x.js} +2 -2
  274. package/dist/esm/card-form.entry.js +8 -8
  275. package/dist/esm/{check-pkg-version-Cd_i8U0d.js → check-pkg-version-Bk5bgulF.js} +4 -4
  276. package/dist/esm/{checkout.service-BCkQ9pOA.js → checkout.service-DZDZBIGQ.js} +3 -3
  277. package/dist/esm/{checkout.store-DBvS7cVB.js → checkout.store-DwJGKabu.js} +2 -3
  278. package/dist/esm/checkouts-list-core.entry.js +13 -15
  279. package/dist/esm/{checkouts-list-params-state-C2_GlMKR.js → checkouts-list-params-state-BY5996_y.js} +1 -1
  280. package/dist/esm/{checkouts-table-CItEo0DU.js → checkouts-table-59DpP7zM.js} +4 -4
  281. package/dist/esm/{config-state-Blo0ywwc.js → config-state-C83RkI9h.js} +1 -1
  282. package/dist/esm/country-config-BQ4D46Lb.js +64 -0
  283. package/dist/esm/{custom-popper_2.entry.js → custom-popper.entry.js} +4 -23
  284. package/dist/esm/{dispute.service-CyLtJREK.js → dispute.service-ByJy64X7.js} +3 -3
  285. package/dist/esm/form-alert_5.entry.js +25 -15
  286. package/dist/esm/form-control-checkbox.entry.js +6 -6
  287. package/dist/esm/form-control-date.entry.js +5 -5
  288. package/dist/esm/{form-control-error-text-IXJJ4JpV.js → form-control-error-text-CjrxZorl.js} +2 -2
  289. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  290. package/dist/esm/{form-control-help-text-CuhIsM3v.js → form-control-help-text-CMUgRhUf.js} +2 -2
  291. package/dist/esm/form-control-help-text.entry.js +1 -1
  292. package/dist/esm/form-control-monetary-provisioning.entry.js +7 -7
  293. package/dist/esm/form-control-monetary.entry.js +7 -7
  294. package/dist/esm/form-control-number-masked_3.entry.js +115 -0
  295. package/dist/esm/form-control-number.entry.js +6 -6
  296. package/dist/esm/form-control-radio.entry.js +4 -4
  297. package/dist/esm/{form-control-select_2.entry.js → form-control-select_3.entry.js} +26 -8
  298. package/dist/esm/{form-input-masks-B-iV5cYd.js → form-input-masks-CVaOFfrI.js} +9 -3
  299. package/dist/esm/{get-business-Crb6P-iI.js → get-business-Xt7B5dSo.js} +1 -1
  300. package/dist/esm/{get-payment-details-BuT0QNOo.js → get-payment-details-B00HoaFm.js} +3 -3
  301. package/dist/esm/{get-subaccounts-VjY6-x_9.js → get-subaccounts-C_yzcZq_.js} +4 -4
  302. package/dist/esm/gross-payment-chart-core.entry.js +6 -6
  303. package/dist/esm/{header-1-zXsamUS3.js → header-1-BukynbFR.js} +2 -2
  304. package/dist/esm/{header-3-DVtaUAlf.js → header-3-D87MAyMK.js} +2 -2
  305. package/dist/esm/hidden-input_2.entry.js +9 -9
  306. package/dist/esm/{index-ZfXl6Xrm.js → index-NOsb-hYl.js} +1 -1
  307. package/dist/esm/{index-qipqIMyC.js → index-_b8l4IX7.js} +42 -31
  308. package/dist/esm/{index.esm-cYgKOXtz.js → index.esm-IWS0494Y.js} +18 -17
  309. package/dist/esm/{input-handlers-CX6mSvOM.js → input-handlers-D3y0TzH9.js} +1 -1
  310. package/dist/esm/{insurance-state-Dh9f36Qh.js → insurance-state-BjY1QRXI.js} +3 -3
  311. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +130 -73
  312. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +26 -27
  313. package/dist/esm/justifi-additional-statement_8.entry.js +11 -11
  314. package/dist/esm/justifi-apple-pay.entry.js +12 -12
  315. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +27 -28
  316. package/dist/esm/justifi-business-details.entry.js +13 -15
  317. package/dist/esm/justifi-business-form.entry.js +28 -24
  318. package/dist/esm/justifi-business-representative-form-inputs.entry.js +16 -8
  319. package/dist/esm/justifi-checkout-summary_7.entry.js +33 -27
  320. package/dist/esm/justifi-checkout.entry.js +19 -18
  321. package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -12
  322. package/dist/esm/justifi-checkouts-list.entry.js +16 -18
  323. package/dist/esm/justifi-config-provider.entry.js +3 -3
  324. package/dist/esm/justifi-details.entry.js +3 -3
  325. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  326. package/dist/esm/justifi-dispute-management.entry.js +11 -13
  327. package/dist/esm/justifi-dispute-notification_3.entry.js +17 -19
  328. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -13
  329. package/dist/esm/justifi-order-terminals.entry.js +16 -18
  330. package/dist/esm/justifi-owner-form_3.entry.js +31 -22
  331. package/dist/esm/justifi-payment-details.entry.js +13 -15
  332. package/dist/esm/justifi-payment-provisioning-core.entry.js +40 -25
  333. package/dist/esm/justifi-payment-provisioning.entry.js +11 -13
  334. package/dist/esm/justifi-payment-transactions-list.entry.js +15 -17
  335. package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
  336. package/dist/esm/justifi-payments-list.entry.js +16 -18
  337. package/dist/esm/justifi-payout-details.entry.js +12 -14
  338. package/dist/esm/justifi-payout-transactions-list.entry.js +15 -17
  339. package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
  340. package/dist/esm/justifi-payouts-list.entry.js +17 -19
  341. package/dist/esm/justifi-refund-payment.entry.js +16 -18
  342. package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
  343. package/dist/esm/justifi-season-interruption-insurance.entry.js +14 -16
  344. package/dist/esm/justifi-skeleton.entry.js +5 -5
  345. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +11 -13
  346. package/dist/esm/justifi-terminal-orders-list.entry.js +14 -16
  347. package/dist/esm/justifi-terminals-list-filters.entry.js +10 -12
  348. package/dist/esm/justifi-terminals-list.entry.js +16 -18
  349. package/dist/esm/loader.js +3 -3
  350. package/dist/esm/{package-BBO3I4s6.js → package-BRhnhmpB.js} +1 -1
  351. package/dist/esm/pagination-menu.entry.js +5 -5
  352. package/dist/esm/{parts-RvUQ__Pq.js → parts-CA_TyBed.js} +1 -1
  353. package/dist/esm/payment-details-core.entry.js +16 -16
  354. package/dist/esm/payment-method-option.entry.js +4 -4
  355. package/dist/esm/{payment.service-QJEmd6Nl.js → payment.service-B_NytmNz.js} +3 -3
  356. package/dist/esm/payments-list-core.entry.js +14 -16
  357. package/dist/esm/{payments-list-params-state-C2_GlMKR.js → payments-list-params-state-BY5996_y.js} +1 -1
  358. package/dist/esm/{payments-status-DDafc8Yr.js → payments-status-BWv1l1-e.js} +2 -2
  359. package/dist/esm/{payments-table-De3Jb6rY.js → payments-table-BSk36N1O.js} +25 -5
  360. package/dist/esm/payout-details-core.entry.js +12 -12
  361. package/dist/esm/{payout.service-XxyEr0rj.js → payout.service-BJQVlc_Z.js} +3 -3
  362. package/dist/esm/payouts-list-core.entry.js +14 -16
  363. package/dist/esm/{payouts-list-params-state-C2_GlMKR.js → payouts-list-params-state-BY5996_y.js} +1 -1
  364. package/dist/esm/{payouts-status-u1eSRz3Q.js → payouts-status-BujJlH_r.js} +2 -2
  365. package/dist/esm/{payouts-table-BO-MCzXj.js → payouts-table-5N7OylTW.js} +4 -4
  366. package/dist/esm/{schema-validations-DcR1ujuX.js → schema-validations-BFoU1cR8.js} +42 -7
  367. package/dist/esm/{skeleton-DtpkgjZ6.js → skeleton-C161KeYG.js} +2 -2
  368. package/dist/esm/{spinner-CIXUVK4F.js → spinner-UiInIFXW.js} +2 -2
  369. package/dist/esm/{styled-host-CbizlfAU.js → styled-host-hSGxxyFZ.js} +1 -1
  370. package/dist/esm/{table-DcRHK_sm.js → table-9ewYPAZH.js} +3 -3
  371. package/dist/esm/table-filters-menu.entry.js +4 -4
  372. package/dist/esm/terminal-orders-list-core.entry.js +13 -15
  373. package/dist/esm/{terminal-orders-list-params-state-C2_GlMKR.js → terminal-orders-list-params-state-BY5996_y.js} +1 -1
  374. package/dist/esm/{terminal-orders-table-9nsnrAq8.js → terminal-orders-table-BcziGGSF.js} +7 -7
  375. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  376. package/dist/esm/{terminal.service-D2oETGnk.js → terminal.service-B9MOFa2c.js} +3 -3
  377. package/dist/esm/terminals-list-core.entry.js +13 -15
  378. package/dist/esm/terminals-list-params-state-BY5996_y.js +16 -0
  379. package/dist/esm/{terminals-table-C6NO2m-t.js → terminals-table-BoFlvdHS.js} +4 -4
  380. package/dist/esm/{utils-BscIVFn8.js → utils-DeZftIgK.js} +1 -1
  381. package/dist/esm/{utils-_ckvHjSW.js → utils-fntGABrK.js} +2 -2
  382. package/dist/esm/webcomponents.js +4 -4
  383. package/dist/module/Business.js +290 -3
  384. package/dist/module/additional-questions-details2.js +1 -1
  385. package/dist/module/additional-statement.js +2 -2
  386. package/dist/module/bank-account-billing-form-simple.js +1 -1
  387. package/dist/module/bank-account-document-inputs.js +3 -3
  388. package/dist/module/bank-account-form-inputs-canada.d.ts +11 -0
  389. package/dist/module/bank-account-form-inputs-canada.js +6 -0
  390. package/dist/module/bank-account-form-inputs-canada2.js +68 -0
  391. package/dist/module/bank-account-form-inputs2.js +10 -3
  392. package/dist/module/bank-account-form.js +2 -2
  393. package/dist/module/bank-account-read-only-value.d.ts +11 -0
  394. package/dist/module/bank-account-read-only-value.js +6 -0
  395. package/dist/module/bank-account-read-only-value2.js +33 -0
  396. package/dist/module/bank-account.js +2 -2
  397. package/dist/module/billing-form-full.js +1 -1
  398. package/dist/module/business-additional-questions-form-step-core.js +2 -2
  399. package/dist/module/business-additional-questions-form-step.js +1 -1
  400. package/dist/module/business-address-schema.js +40 -20
  401. package/dist/module/business-bank-account-form-step-core.js +104 -51
  402. package/dist/module/business-bank-account-form-step.js +18 -5
  403. package/dist/module/business-core-info-form-step-core.js +24 -9
  404. package/dist/module/business-core-info-form-step.js +2 -1
  405. package/dist/module/business-core-info-schema.js +26 -5
  406. package/dist/module/business-core-info.js +13 -5
  407. package/dist/module/business-details-core2.js +1 -1
  408. package/dist/module/business-identity-schema.js +52 -25
  409. package/dist/module/business-owners-form-step-core.js +22 -15
  410. package/dist/module/business-owners-form-step.js +22 -15
  411. package/dist/module/business-representative-form-inputs.js +34 -17
  412. package/dist/module/business-representative-form-step-core.js +31 -20
  413. package/dist/module/business-representative-form-step.js +24 -17
  414. package/dist/module/business-representative.js +36 -18
  415. package/dist/module/business-terms-conditions-form-step.js +1 -1
  416. package/dist/module/button.js +1 -1
  417. package/dist/module/cancellation-policy.js +2 -2
  418. package/dist/module/card-billing-form-simple.js +1 -1
  419. package/dist/module/card-form.js +2 -2
  420. package/dist/module/card-form2.js +2 -2
  421. package/dist/module/checkout.store.js +1 -2
  422. package/dist/module/checkouts-list-core2.js +3 -3
  423. package/dist/module/country-config.js +64 -0
  424. package/dist/module/custom-popper2.js +3 -3
  425. package/dist/module/customer-details.js +2 -2
  426. package/dist/module/dispute-management-core.js +2 -2
  427. package/dist/module/dispute-notification.js +2 -2
  428. package/dist/module/dispute-response-core.js +5 -5
  429. package/dist/module/dispute-response.js +2 -2
  430. package/dist/module/duplicate-charge.js +2 -2
  431. package/dist/module/electronic-evidence.js +2 -2
  432. package/dist/module/form-address-fields.js +65 -0
  433. package/dist/module/form-control-checkbox2.js +3 -3
  434. package/dist/module/form-control-date2.js +3 -3
  435. package/dist/module/form-control-file-v22.js +2 -2
  436. package/dist/module/form-control-file2.js +3 -3
  437. package/dist/module/form-control-monetary-provisioning2.js +3 -3
  438. package/dist/module/form-control-monetary2.js +4 -4
  439. package/dist/module/form-control-number-masked2.js +3 -3
  440. package/dist/module/form-control-number.js +3 -3
  441. package/dist/module/form-control-radio2.js +3 -3
  442. package/dist/module/form-control-select2.js +3 -3
  443. package/dist/module/form-control-text2.js +4 -4
  444. package/dist/module/form-control-textarea2.js +4 -4
  445. package/dist/module/form-input-masks.js +9 -3
  446. package/dist/module/form.js +18 -17
  447. package/dist/module/get-business.js +1 -1
  448. package/dist/module/gross-payment-chart-core2.js +2 -2
  449. package/dist/module/hidden-input2.js +1 -1
  450. package/dist/module/identity-address-form.js +17 -15
  451. package/dist/module/iframe-input2.js +3 -3
  452. package/dist/module/input-handlers.js +1 -1
  453. package/dist/module/justifi-apple-pay.js +3 -3
  454. package/dist/module/justifi-business-form.js +41 -29
  455. package/dist/module/justifi-button2.js +2 -2
  456. package/dist/module/justifi-checkout.js +7 -5
  457. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  458. package/dist/module/justifi-checkouts-list.js +1 -1
  459. package/dist/module/justifi-dispute-management.js +1 -1
  460. package/dist/module/justifi-form-address-fields.d.ts +11 -0
  461. package/dist/module/justifi-form-address-fields.js +6 -0
  462. package/dist/module/justifi-header2.js +1 -1
  463. package/dist/module/justifi-order-terminals.js +3 -3
  464. package/dist/module/justifi-payment-provisioning.js +67 -49
  465. package/dist/module/justifi-payment-transactions-list.js +1 -1
  466. package/dist/module/justifi-payments-list-filters.js +2 -2
  467. package/dist/module/justifi-payments-list.js +1 -1
  468. package/dist/module/justifi-payout-transactions-list.js +1 -1
  469. package/dist/module/justifi-payouts-list-filters.js +2 -2
  470. package/dist/module/justifi-payouts-list.js +1 -1
  471. package/dist/module/justifi-saved-payment-method.js +2 -2
  472. package/dist/module/justifi-skeleton.js +2 -2
  473. package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
  474. package/dist/module/justifi-terminal-orders-list.js +1 -1
  475. package/dist/module/justifi-terminals-list-filters.js +1 -1
  476. package/dist/module/justifi-terminals-list.js +1 -1
  477. package/dist/module/legal-address-details2.js +1 -1
  478. package/dist/module/legal-address-form-step-core.js +28 -21
  479. package/dist/module/legal-address-form-step.js +16 -9
  480. package/dist/module/legal-address-form.js +17 -14
  481. package/dist/module/modular-checkout.js +13 -5
  482. package/dist/module/owner-form-core2.js +27 -19
  483. package/dist/module/owner-form-inputs2.js +34 -15
  484. package/dist/module/owner-form.js +21 -14
  485. package/dist/module/package.js +1 -1
  486. package/dist/module/pagination-menu2.js +3 -3
  487. package/dist/module/parts.js +1 -1
  488. package/dist/module/payment-details-core2.js +9 -9
  489. package/dist/module/payment-method-option.js +2 -2
  490. package/dist/module/payment-provisioning-core.js +106 -71
  491. package/dist/module/payment-provisioning-form-buttons.js +3 -3
  492. package/dist/module/payment-provisioning-form-steps.js +76 -55
  493. package/dist/module/payments-list-core2.js +23 -3
  494. package/dist/module/payout-details-core2.js +5 -5
  495. package/dist/module/payouts-list-core2.js +4 -4
  496. package/dist/module/product-or-service.js +2 -2
  497. package/dist/module/refund-policy.js +2 -2
  498. package/dist/module/save-new-payment-method.js +1 -1
  499. package/dist/module/schema-validations.js +41 -6
  500. package/dist/module/sezzle-payment-method.js +1 -1
  501. package/dist/module/shipping-details.js +2 -2
  502. package/dist/module/summary.js +1 -1
  503. package/dist/module/table-filters-menu2.js +2 -2
  504. package/dist/module/terminal-orders-list-core2.js +2 -2
  505. package/dist/module/terminal-quantity-selector2.js +2 -2
  506. package/dist/module/terminals-list-core2.js +3 -3
  507. package/dist/module/tokenize-payment-method.js +1 -1
  508. package/dist/types/api/BankAccount.d.ts +6 -0
  509. package/dist/types/api/Business.d.ts +9 -0
  510. package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +3 -0
  511. package/dist/types/components/business-forms/business-form/business-form.d.ts +2 -0
  512. package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +4 -1
  513. package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +2 -0
  514. package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +2 -0
  515. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +2 -0
  516. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +3 -0
  517. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
  518. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.d.ts +7 -0
  519. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.d.ts +5 -0
  520. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +5 -0
  521. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
  522. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +3 -0
  523. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +2 -0
  524. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +2 -0
  525. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +2 -0
  526. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +3 -0
  527. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +2 -0
  528. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +2 -0
  529. package/dist/types/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.d.ts +8 -0
  530. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +2 -0
  531. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +2 -0
  532. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +4 -2
  533. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +2 -0
  534. package/dist/types/components/business-forms/payment-provisioning/test/mockBusiness.d.ts +12 -0
  535. package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +54 -2
  536. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +14 -16
  537. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +67 -3
  538. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +164 -6
  539. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +122 -2
  540. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +5 -0
  541. package/dist/types/components/payments-list/payments-table.d.ts +5 -2
  542. package/dist/types/components.d.ts +111 -0
  543. package/dist/types/stencil-public-runtime.d.ts +22 -6
  544. package/dist/types/store/checkout.store.d.ts +0 -1
  545. package/dist/types/utils/country-codes.d.ts +4 -0
  546. package/dist/types/utils/form-input-masks.d.ts +1 -0
  547. package/dist/types/utils/province-options.d.ts +5 -0
  548. package/dist/webcomponents/p-0254c06c.entry.js +1 -0
  549. package/dist/webcomponents/p-047fe97f.entry.js +1 -0
  550. package/dist/webcomponents/p-04ca6ff0.entry.js +1 -0
  551. package/dist/webcomponents/p-09d53b03.entry.js +1 -0
  552. package/dist/webcomponents/p-0c5e2fed.entry.js +1 -0
  553. package/dist/webcomponents/p-0ea48603.entry.js +1 -0
  554. package/dist/webcomponents/p-17e9d5c0.entry.js +1 -0
  555. package/dist/webcomponents/p-1ab4d6aa.entry.js +1 -0
  556. package/dist/webcomponents/p-1cf42bc9.entry.js +1 -0
  557. package/dist/webcomponents/p-1e7f4b4f.entry.js +1 -0
  558. package/dist/webcomponents/{p-27fc3ef0.entry.js → p-22defde6.entry.js} +4 -4
  559. package/dist/webcomponents/{p-7c5cd118.entry.js → p-242208d9.entry.js} +1 -1
  560. package/dist/webcomponents/p-31ac0c3d.entry.js +1 -0
  561. package/dist/webcomponents/p-36e21b78.entry.js +1 -0
  562. package/dist/webcomponents/p-3a77a97c.entry.js +1 -0
  563. package/dist/webcomponents/p-40938820.entry.js +1 -0
  564. package/dist/webcomponents/p-40dc0c3c.entry.js +1 -0
  565. package/dist/webcomponents/p-42763479.entry.js +1 -0
  566. package/dist/webcomponents/p-430203b0.entry.js +1 -0
  567. package/dist/webcomponents/p-46d2d042.entry.js +1 -0
  568. package/dist/webcomponents/p-485516a1.entry.js +1 -0
  569. package/dist/webcomponents/p-4fb58ee6.entry.js +1 -0
  570. package/dist/webcomponents/p-54995a3d.entry.js +1 -0
  571. package/dist/webcomponents/p-56617fdd.entry.js +1 -0
  572. package/dist/webcomponents/p-592a45f6.entry.js +1 -0
  573. package/dist/webcomponents/p-5a044ca5.entry.js +1 -0
  574. package/dist/webcomponents/p-5ec18584.entry.js +1 -0
  575. package/dist/webcomponents/p-6122dc79.entry.js +1 -0
  576. package/dist/webcomponents/p-62858ba5.entry.js +1 -0
  577. package/dist/webcomponents/p-62b5e6cf.entry.js +1 -0
  578. package/dist/webcomponents/p-67dab4d9.entry.js +1 -0
  579. package/dist/webcomponents/p-6b791b1d.entry.js +1 -0
  580. package/dist/webcomponents/{p-a71a5e64.entry.js → p-6ea75d39.entry.js} +1 -1
  581. package/dist/webcomponents/p-6ebf8f11.entry.js +1 -0
  582. package/dist/webcomponents/p-6fdac295.entry.js +1 -0
  583. package/dist/webcomponents/p-724cf90f.entry.js +1 -0
  584. package/dist/webcomponents/p-7ecca5fe.entry.js +1 -0
  585. package/dist/webcomponents/p-7ecf9bd0.entry.js +1 -0
  586. package/dist/webcomponents/p-850dd606.entry.js +1 -0
  587. package/dist/webcomponents/p-85af9d78.entry.js +1 -0
  588. package/dist/webcomponents/p-931003fc.entry.js +1 -0
  589. package/dist/webcomponents/p-9367e7e6.entry.js +1 -0
  590. package/dist/webcomponents/p-9c114674.entry.js +1 -0
  591. package/dist/webcomponents/p-9c267692.entry.js +1 -0
  592. package/dist/webcomponents/p-B5rtFhtR.js +1 -0
  593. package/dist/webcomponents/{p-c4Mh3ZZ_.js → p-BPDMo6us.js} +1 -1
  594. package/dist/webcomponents/p-BRhnhmpB.js +1 -0
  595. package/dist/webcomponents/{p-O-hoT2Oo.js → p-BaM0JBLn.js} +1 -1
  596. package/dist/webcomponents/{p-CaxjN6Uo.js → p-BdREtifE.js} +1 -1
  597. package/dist/webcomponents/p-BgFM_jvF.js +1 -0
  598. package/dist/webcomponents/p-BqbXuOZP.js +1 -0
  599. package/dist/webcomponents/p-BwpdCtUc.js +1 -0
  600. package/dist/webcomponents/p-C6g4MbnB.js +1 -0
  601. package/dist/webcomponents/{p-1ydcg9ti.js → p-C77ElQ41.js} +1 -1
  602. package/dist/webcomponents/{p-RvUQ__Pq.js → p-CA_TyBed.js} +1 -1
  603. package/dist/webcomponents/p-CE-MNrID.js +1 -0
  604. package/dist/webcomponents/p-CMpATPXy.js +1 -0
  605. package/dist/webcomponents/{p-yH3TC3ZQ.js → p-CPpUGsw5.js} +1 -1
  606. package/dist/webcomponents/p-CQUZeo9r.js +1 -0
  607. package/dist/webcomponents/p-CSeo7WDO.js +1 -0
  608. package/dist/webcomponents/p-CTJ3moi4.js +1 -0
  609. package/dist/webcomponents/p-CVaOFfrI.js +1 -0
  610. package/dist/webcomponents/p-CYNcSTQA.js +1 -0
  611. package/dist/webcomponents/p-CevVA9qy.js +1 -0
  612. package/dist/webcomponents/p-CkiX8OGy.js +1 -0
  613. package/dist/webcomponents/{p-D--yCspA.js → p-CtWnJFtW.js} +1 -1
  614. package/dist/webcomponents/p-CycBoHSW.js +1 -0
  615. package/dist/webcomponents/p-D-RVXHwG.js +1 -0
  616. package/dist/webcomponents/{p-BIPdn2VU.js → p-D1Na2I0C.js} +1 -1
  617. package/dist/webcomponents/{p-BdLLGV9t.js → p-D2hzOOMf.js} +1 -1
  618. package/dist/webcomponents/p-D5lmImiz.js +1 -0
  619. package/dist/webcomponents/p-DMf85Fkr.js +1 -0
  620. package/dist/webcomponents/p-DNPS-Ypi.js +1 -0
  621. package/dist/webcomponents/p-DQ5V5-Jy.js +1 -0
  622. package/dist/webcomponents/{p-CLQx9p9q.js → p-DTwFW2k_.js} +1 -1
  623. package/dist/webcomponents/{p-BZ7C9duj.js → p-DWGKeoot.js} +1 -1
  624. package/dist/webcomponents/p-DapORSs4.js +1 -0
  625. package/dist/webcomponents/p-DcPNd9_D.js +1 -0
  626. package/dist/webcomponents/p-DfKxeSrC.js +1 -0
  627. package/dist/webcomponents/{p-CR9D6mKt.js → p-DiJD6Iqx.js} +1 -1
  628. package/dist/webcomponents/{p-D-JYHdJ7.js → p-Dkujm7_O.js} +1 -1
  629. package/dist/webcomponents/p-Dv1Fyrn3.js +1 -0
  630. package/dist/webcomponents/p-DxVCqvBt.js +1 -0
  631. package/dist/webcomponents/p-DzWLLt4t.js +1 -0
  632. package/dist/webcomponents/{p-CzPUMw00.js → p-JSXyHheQ.js} +1 -1
  633. package/dist/webcomponents/p-LO0pl3n2.js +1 -0
  634. package/dist/webcomponents/{p-BUa0YOaw.js → p-M5r2kSbf.js} +1 -1
  635. package/dist/webcomponents/{p-C_3N7nqh.js → p-PdQT2QcR.js} +1 -1
  636. package/dist/webcomponents/p-_b8l4IX7.js +2 -0
  637. package/dist/webcomponents/p-a2817869.entry.js +1 -0
  638. package/dist/webcomponents/p-a291a90c.entry.js +1 -0
  639. package/dist/webcomponents/p-b0bc03e6.entry.js +1 -0
  640. package/dist/webcomponents/{p-1b7926f6.entry.js → p-b17cb15d.entry.js} +1 -1
  641. package/dist/webcomponents/p-b46fe458.entry.js +1 -0
  642. package/dist/webcomponents/{p-3d37045d.entry.js → p-b59221a9.entry.js} +1 -1
  643. package/dist/webcomponents/{p-e037cdd1.entry.js → p-c1f10a84.entry.js} +1 -1
  644. package/dist/webcomponents/p-c2cb70c8.entry.js +1 -0
  645. package/dist/webcomponents/p-c540fe9d.entry.js +1 -0
  646. package/dist/webcomponents/{p-8975bf93.entry.js → p-c6093716.entry.js} +1 -1
  647. package/dist/webcomponents/p-c6e43493.entry.js +1 -0
  648. package/dist/webcomponents/{p-0801324e.entry.js → p-c7390115.entry.js} +1 -1
  649. package/dist/webcomponents/p-c780cc91.entry.js +1 -0
  650. package/dist/webcomponents/p-c9598246.entry.js +1 -0
  651. package/dist/webcomponents/p-c972a599.entry.js +1 -0
  652. package/dist/webcomponents/p-cc1d8649.entry.js +1 -0
  653. package/dist/webcomponents/p-ce4895ca.entry.js +1 -0
  654. package/dist/webcomponents/p-ce67282b.entry.js +1 -0
  655. package/dist/webcomponents/p-cef5c6e9.entry.js +1 -0
  656. package/dist/webcomponents/p-d21fa0c9.entry.js +1 -0
  657. package/dist/webcomponents/p-d236f152.entry.js +1 -0
  658. package/dist/webcomponents/p-d6ac11fc.entry.js +1 -0
  659. package/dist/webcomponents/p-e55ce6ad.entry.js +1 -0
  660. package/dist/webcomponents/p-f02bd076.entry.js +1 -0
  661. package/dist/webcomponents/{p-fUtq2xDs.js → p-fVyCeQNq.js} +1 -1
  662. package/dist/webcomponents/{p-DyOgQlh2.js → p-g2ubqhtv.js} +1 -1
  663. package/dist/webcomponents/{p-DsAwPf2y.js → p-hj8k0lRi.js} +1 -1
  664. package/dist/webcomponents/p-lPeK9y_X.js +1 -0
  665. package/dist/webcomponents/p-qUCDGWNE.js +1 -0
  666. package/dist/webcomponents/p-sCHf--Vc.js +1 -0
  667. package/dist/webcomponents/{p-BHf9IqGw.js → p-xWrhxNNk.js} +1 -1
  668. package/dist/webcomponents/webcomponents.esm.js +1 -1
  669. package/package.json +1 -1
  670. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +0 -112
  671. package/dist/cjs/business-identity-schema-CclzWSOn.js +0 -51
  672. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +0 -107
  673. package/dist/cjs/helpers-B5OCqlIM.js +0 -35
  674. package/dist/cjs/state-options-CIT9xdTz.js +0 -246
  675. package/dist/cjs/terminals-list-params-state-C4c8UZtP.js +0 -22
  676. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +0 -125
  677. package/dist/esm/bank-account-document-form-inputs_4.entry.js +0 -107
  678. package/dist/esm/business-identity-schema-D8n5dyLX.js +0 -48
  679. package/dist/esm/form-control-number-masked_2.entry.js +0 -104
  680. package/dist/esm/helpers-Mu7LQT-w.js +0 -29
  681. package/dist/esm/state-options-BX8GieXu.js +0 -244
  682. package/dist/esm/terminals-list-params-state-C2_GlMKR.js +0 -16
  683. package/dist/module/helpers.js +0 -29
  684. package/dist/module/state-options.js +0 -244
  685. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +0 -1
  686. package/dist/webcomponents/p-10278c48.entry.js +0 -1
  687. package/dist/webcomponents/p-108209c5.entry.js +0 -1
  688. package/dist/webcomponents/p-176aa079.entry.js +0 -1
  689. package/dist/webcomponents/p-18353682.entry.js +0 -1
  690. package/dist/webcomponents/p-19ccbeee.entry.js +0 -1
  691. package/dist/webcomponents/p-1b3b6956.entry.js +0 -1
  692. package/dist/webcomponents/p-1bc8da98.entry.js +0 -1
  693. package/dist/webcomponents/p-1c433962.entry.js +0 -1
  694. package/dist/webcomponents/p-1df96001.entry.js +0 -1
  695. package/dist/webcomponents/p-1e080811.entry.js +0 -1
  696. package/dist/webcomponents/p-1e87c8ed.entry.js +0 -1
  697. package/dist/webcomponents/p-1efc0d88.entry.js +0 -1
  698. package/dist/webcomponents/p-1f971a0f.entry.js +0 -1
  699. package/dist/webcomponents/p-2246aa69.entry.js +0 -1
  700. package/dist/webcomponents/p-246ef4ff.entry.js +0 -1
  701. package/dist/webcomponents/p-2687e615.entry.js +0 -1
  702. package/dist/webcomponents/p-30147031.entry.js +0 -1
  703. package/dist/webcomponents/p-3546a5aa.entry.js +0 -1
  704. package/dist/webcomponents/p-3621a429.entry.js +0 -1
  705. package/dist/webcomponents/p-406ba650.entry.js +0 -1
  706. package/dist/webcomponents/p-44d1341c.entry.js +0 -1
  707. package/dist/webcomponents/p-4d5c71c4.entry.js +0 -1
  708. package/dist/webcomponents/p-4ea83bfd.entry.js +0 -1
  709. package/dist/webcomponents/p-558f7967.entry.js +0 -1
  710. package/dist/webcomponents/p-5c477f08.entry.js +0 -1
  711. package/dist/webcomponents/p-613cf570.entry.js +0 -1
  712. package/dist/webcomponents/p-68329f16.entry.js +0 -1
  713. package/dist/webcomponents/p-6fe79f16.entry.js +0 -1
  714. package/dist/webcomponents/p-7131211a.entry.js +0 -1
  715. package/dist/webcomponents/p-7aeb20d2.entry.js +0 -1
  716. package/dist/webcomponents/p-80b1c65b.entry.js +0 -1
  717. package/dist/webcomponents/p-84043580.entry.js +0 -1
  718. package/dist/webcomponents/p-906fdf0c.entry.js +0 -1
  719. package/dist/webcomponents/p-90e43440.entry.js +0 -1
  720. package/dist/webcomponents/p-914e168d.entry.js +0 -1
  721. package/dist/webcomponents/p-91c1e2ac.entry.js +0 -1
  722. package/dist/webcomponents/p-95348ff6.entry.js +0 -1
  723. package/dist/webcomponents/p-9f04cac4.entry.js +0 -1
  724. package/dist/webcomponents/p-B-iV5cYd.js +0 -1
  725. package/dist/webcomponents/p-B4idKqyn.js +0 -1
  726. package/dist/webcomponents/p-BBO3I4s6.js +0 -1
  727. package/dist/webcomponents/p-BX8GieXu.js +0 -1
  728. package/dist/webcomponents/p-BY2p6Sxk.js +0 -1
  729. package/dist/webcomponents/p-BguBT6Hn.js +0 -1
  730. package/dist/webcomponents/p-BlJnA265.js +0 -1
  731. package/dist/webcomponents/p-Bp_QFeog.js +0 -1
  732. package/dist/webcomponents/p-Bvp7uul3.js +0 -1
  733. package/dist/webcomponents/p-C1xGBPma.js +0 -1
  734. package/dist/webcomponents/p-C3n7-tlg.js +0 -1
  735. package/dist/webcomponents/p-CPVN4dXS.js +0 -1
  736. package/dist/webcomponents/p-CQeex56P.js +0 -1
  737. package/dist/webcomponents/p-CU4XQ3fO.js +0 -1
  738. package/dist/webcomponents/p-CYBR4K2p.js +0 -1
  739. package/dist/webcomponents/p-CpKvg1ok.js +0 -1
  740. package/dist/webcomponents/p-CrQgyTRz.js +0 -1
  741. package/dist/webcomponents/p-CxzFvTgf.js +0 -1
  742. package/dist/webcomponents/p-D6XirF21.js +0 -1
  743. package/dist/webcomponents/p-DCMrHeJI.js +0 -1
  744. package/dist/webcomponents/p-DH8F0bsw.js +0 -1
  745. package/dist/webcomponents/p-DSP8qjHL.js +0 -1
  746. package/dist/webcomponents/p-DbX0g1WF.js +0 -1
  747. package/dist/webcomponents/p-De8UloOS.js +0 -1
  748. package/dist/webcomponents/p-Dt-vy9Le.js +0 -1
  749. package/dist/webcomponents/p-DvZcI6pC.js +0 -1
  750. package/dist/webcomponents/p-DyDHaG6n.js +0 -1
  751. package/dist/webcomponents/p-IG_KR8zP.js +0 -1
  752. package/dist/webcomponents/p-PgEzcvI6.js +0 -1
  753. package/dist/webcomponents/p-Xv8DuU3Y.js +0 -1
  754. package/dist/webcomponents/p-a0a0e200.entry.js +0 -1
  755. package/dist/webcomponents/p-a57c1400.entry.js +0 -1
  756. package/dist/webcomponents/p-a90b8b93.entry.js +0 -1
  757. package/dist/webcomponents/p-acb0f3ae.entry.js +0 -1
  758. package/dist/webcomponents/p-b0a36936.entry.js +0 -1
  759. package/dist/webcomponents/p-ba5b1c54.entry.js +0 -1
  760. package/dist/webcomponents/p-c16c0cbc.entry.js +0 -1
  761. package/dist/webcomponents/p-c9fef3e4.entry.js +0 -1
  762. package/dist/webcomponents/p-df7f36aa.entry.js +0 -1
  763. package/dist/webcomponents/p-e035a92e.entry.js +0 -1
  764. package/dist/webcomponents/p-e2a38ad0.entry.js +0 -1
  765. package/dist/webcomponents/p-e628a0c8.entry.js +0 -1
  766. package/dist/webcomponents/p-e6516014.entry.js +0 -1
  767. package/dist/webcomponents/p-e6e96be2.entry.js +0 -1
  768. package/dist/webcomponents/p-e79338f9.entry.js +0 -1
  769. package/dist/webcomponents/p-e97dee15.entry.js +0 -1
  770. package/dist/webcomponents/p-eafd179b.entry.js +0 -1
  771. package/dist/webcomponents/p-f5c3f489.entry.js +0 -1
  772. package/dist/webcomponents/p-f739a98d.entry.js +0 -1
  773. package/dist/webcomponents/p-f8c22c77.entry.js +0 -1
  774. package/dist/webcomponents/p-fa14b671.entry.js +0 -1
  775. package/dist/webcomponents/p-ffe01f1b.entry.js +0 -1
  776. package/dist/webcomponents/p-oGKW57R8.js +0 -1
  777. package/dist/webcomponents/p-qipqIMyC.js +0 -2
  778. package/dist/webcomponents/p-xY5RkFuA.js +0 -1
@@ -1 +1 @@
1
- import{r as l,h as i,H as t}from"./p-qipqIMyC.js";import{c as e,D as s}from"./p-BIPdn2VU.js";import{m as d,s as v,n as o}from"./p-BHf9IqGw.js";import"./p-RvUQ__Pq.js";import"./p-HXpYMWUU.js";const a=class{constructor(i){l(this,i)}render(){return!this.additionalQuestions||d(this.additionalQuestions)?null:i("div",null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:this.additionalQuestions.business_revenue}),i(e,{title:"Business Payment Volume",value:this.additionalQuestions.business_payment_volume})))))}},u=class{constructor(i){l(this,i)}render(){return this.business?i("div",null,i(s,{sectionTitle:"Business Core Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:this.business.legal_name}),i(e,{title:"Doing Business As (DBA)",value:this.business.doing_business_as}),i(e,{title:"Business Classification",value:v(this.business.classification)}),i(e,{title:"Industry",value:this.business.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:this.business.tax_id}),i(e,{title:"Website URL",value:this.business.website_url}),i(e,{title:"Email Address",value:this.business.email}),i(e,{title:"Phone Number",value:this.business.phone}))))):null}},n=class{constructor(i){l(this,i)}render(){var l,t,v,o,a,u,n;return!this.legalAddress||d(this.legalAddress)?null:i("div",null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(t=this.legalAddress)||void 0===t?void 0:t.line1}),i(e,{title:"Address Line 2",value:null===(v=this.legalAddress)||void 0===v?void 0:v.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(o=this.legalAddress)||void 0===o?void 0:o.city}),i(e,{title:"State",value:null===(a=this.legalAddress)||void 0===a?void 0:a.state}),i(e,{title:"Postal Code",value:null===(n=null===(u=this.legalAddress)||void 0===u?void 0:u.postal_code)||void 0===n?void 0:n.toString()})))))}},r=class{constructor(i){l(this,i)}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,d,v,a,u;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-table gap-2 w-100 mt-3"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:o(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.line2}),i(e,{title:"City",value:null===(v=null==l?void 0:l.address)||void 0===v?void 0:v.city}),i(e,{title:"State",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.state}),i(e,{title:"Zip",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.postal_code}))]}))):null}},c=class{constructor(i){l(this,i)}render(){var l,t,v,a,u,n,r,c,h,m,p,w,b,g;return!this.representative||d(this.representative)?null:i("div",null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(t=this.representative)||void 0===t?void 0:t.id}),i(e,{title:"Address",value:null===(a=null===(v=this.representative)||void 0===v?void 0:v.address)||void 0===a?void 0:a.line1}),i(e,{title:"Created At",value:(null===(u=this.representative)||void 0===u?void 0:u.created_at)&&o(null===(n=this.representative)||void 0===n?void 0:n.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(r=this.representative)||void 0===r?void 0:r.title}),i(e,{title:"Is Owner?",value:null===(c=this.representative)||void 0===c?void 0:c.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&o(new Date(Number(null===(h=this.representative)||void 0===h?void 0:h.dob_year),Number(null===(m=this.representative)||void 0===m?void 0:m.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(w=this.representative)||void 0===w?void 0:w.email}),i(e,{title:"Phone",value:null===(b=this.representative)||void 0===b?void 0:b.phone}),i(e,{title:"Updated At",value:this.representative&&o(null===(g=this.representative)||void 0===g?void 0:g.updated_at)})))))}};export{a as additional_questions_details,u as core_info_details,n as legal_address_details,r as owner_details,c as representative_details}
1
+ import{r as l,h as i,H as t}from"./p-_b8l4IX7.js";import{c as e,D as s}from"./p-D1Na2I0C.js";import{l as d,s as v,m as o}from"./p-xWrhxNNk.js";import"./p-CA_TyBed.js";import"./p-HXpYMWUU.js";const a=class{constructor(i){l(this,i)}render(){return!this.additionalQuestions||d(this.additionalQuestions)?null:i("div",null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:this.additionalQuestions.business_revenue}),i(e,{title:"Business Payment Volume",value:this.additionalQuestions.business_payment_volume})))))}},u=class{constructor(i){l(this,i)}render(){return this.business?i("div",null,i(s,{sectionTitle:"Business Core Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:this.business.legal_name}),i(e,{title:"Doing Business As (DBA)",value:this.business.doing_business_as}),i(e,{title:"Business Classification",value:v(this.business.classification)}),i(e,{title:"Industry",value:this.business.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:this.business.tax_id}),i(e,{title:"Website URL",value:this.business.website_url}),i(e,{title:"Email Address",value:this.business.email}),i(e,{title:"Phone Number",value:this.business.phone}))))):null}},n=class{constructor(i){l(this,i)}render(){var l,t,v,o,a,u,n;return!this.legalAddress||d(this.legalAddress)?null:i("div",null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(t=this.legalAddress)||void 0===t?void 0:t.line1}),i(e,{title:"Address Line 2",value:null===(v=this.legalAddress)||void 0===v?void 0:v.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(o=this.legalAddress)||void 0===o?void 0:o.city}),i(e,{title:"State",value:null===(a=this.legalAddress)||void 0===a?void 0:a.state}),i(e,{title:"Postal Code",value:null===(n=null===(u=this.legalAddress)||void 0===u?void 0:u.postal_code)||void 0===n?void 0:n.toString()})))))}},r=class{constructor(i){l(this,i)}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,d,v,a,u;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-table gap-2 w-100 mt-3"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:o(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.line2}),i(e,{title:"City",value:null===(v=null==l?void 0:l.address)||void 0===v?void 0:v.city}),i(e,{title:"State",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.state}),i(e,{title:"Zip",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.postal_code}))]}))):null}},c=class{constructor(i){l(this,i)}render(){var l,t,v,a,u,n,r,c,h,m,p,b,g,w;return!this.representative||d(this.representative)?null:i("div",null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(t=this.representative)||void 0===t?void 0:t.id}),i(e,{title:"Address",value:null===(a=null===(v=this.representative)||void 0===v?void 0:v.address)||void 0===a?void 0:a.line1}),i(e,{title:"Created At",value:(null===(u=this.representative)||void 0===u?void 0:u.created_at)&&o(null===(n=this.representative)||void 0===n?void 0:n.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(r=this.representative)||void 0===r?void 0:r.title}),i(e,{title:"Is Owner?",value:null===(c=this.representative)||void 0===c?void 0:c.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&o(new Date(Number(null===(h=this.representative)||void 0===h?void 0:h.dob_year),Number(null===(m=this.representative)||void 0===m?void 0:m.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(b=this.representative)||void 0===b?void 0:b.email}),i(e,{title:"Phone",value:null===(g=this.representative)||void 0===g?void 0:g.phone}),i(e,{title:"Updated At",value:this.representative&&o(null===(w=this.representative)||void 0===w?void 0:w.updated_at)})))))}};export{a as additional_questions_details,u as core_info_details,n as legal_address_details,r as owner_details,c as representative_details}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as a}from"./p-_b8l4IX7.js";import"./p-DMf85Fkr.js";import"./p-HXpYMWUU.js";import{C as s,a as i}from"./p-Cjcsf8ku.js";import{f as r}from"./p-BPDMo6us.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as o,J as c}from"./p-BaM0JBLn.js";import{g as p,a as h}from"./p-D2muobcE.js";import{P as d}from"./p-BqbXuOZP.js";import{T as f,l,a as u,b as m,c as y,d as b,e as _,f as j,g as k,h as T,i as g,j as w,k as v}from"./p-DWGKeoot.js";import{S as C}from"./p-DTwFW2k_.js";import{T as D}from"./p-CZfYo5-1.js";import{a as S}from"./p-xWrhxNNk.js";import{N as F,O as R}from"./p-CA_TyBed.js";import"./p-hj8k0lRi.js";import"./p-BRhnhmpB.js";import"./p-M5r2kSbf.js";import"./p-CycBoHSW.js";const B={created_at:()=>t("th",{part:F,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:F,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:F,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:F,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:F,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:F,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:F,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},x={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},I={created_at:(e,a)=>t("td",{part:R(a)},t("div",{class:"fw-bold"},S(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:R(a)},x[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:R(a)},e.id),amount:(e,a)=>t("td",{part:R(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:R(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:R(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:R(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:R(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:R(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:R(a)},e.source_id),source_type:(e,a)=>t("td",{part:R(a)},e.source_type)},P=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,B,I),o(),this.analytics=new c(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:i,onSuccess:n,onError:o,final:c})=>{var d;try{const c=await a.fetchPaymentTransactions(t,e,i);c.error?o({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:s.ERROR}):n({balanceTransactions:c.data.map((t=>new r(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=p(null==t?void 0:t.code);o({error:h(t),code:e,severity:s.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new d})({params:this.pagingParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(i.MISSING_PROPS,this.errorMessage,s.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return t(C,{key:"6cc5f2b4912082a551a3b70e5ed4195dcc377849"},t(l,{key:"5cfd24668cb55784d13e8c8d7dc9fe0a43e4bc4a"},t(u,{key:"32ad4a5ddda0f27f114e2e1f71bb4e7a6664e94e"},t(m,{key:"ea55561dbcf19bc5a9e23045990dddcafc127a6e"},t(y,{key:"3d7f488dc283c2a1ade1029863da769a78c5164c"},this.transactionsTable.columnData.map((t=>t)))),t(b,{key:"038b3a0bb90c0f088e080ae87d966ad967a0d575"},t(_,{key:"f7716a4a9a19cfd6ec35a00a37f72ab3dac98c23",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(j,{key:"463a993922fb69facece2a878d9ea845450c0456",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(k,{key:"84869759e0d89316c7d1c29132bb3163738f267a",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(g,{key:"f46a1e7a318e6d3a5575397609cc8490c7835b2e"},t(w,{key:"7c5302050f562a64507f75fe5b72d8f474a35465"},t(v,{key:"69e4d5d2c3def6cdc394ce17f63571f3e952668a",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"933233e9f47b4dfc4008e946c14760c13bdfa4b7",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{P as justifi_payment_transactions_list}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,c as i,H as s,g as a}from"./p-_b8l4IX7.js";import{z as n,r as o}from"./p-CA_TyBed.js";import{f as r}from"./p-xWrhxNNk.js";import{c as h,o as l,g as c,a as d}from"./p-CQUZeo9r.js";import{S as u}from"./p-DTwFW2k_.js";import"./p-CZfYo5-1.js";import{H as y}from"./p-CTJ3moi4.js";import{H as m,b as p,h as M,i as v}from"./p-CevVA9qy.js";import{H as f}from"./p-CkiX8OGy.js";import{J as g,c as k}from"./p-BaM0JBLn.js";import"./p-DMf85Fkr.js";import"./p-HXpYMWUU.js";import{C as j,a as b,b as T}from"./p-Cjcsf8ku.js";import{I as N}from"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as w,a as D}from"./p-D2muobcE.js";import{C as I}from"./p-qUCDGWNE.js";import{A as C}from"./p-M5r2kSbf.js";import{P as A,a as E,b as x}from"./p-DCIW8z1f.js";import{C as P}from"./p-ZpPDShvP.js";import"./p-hj8k0lRi.js";import"./p-BRhnhmpB.js";const z=class{constructor(e){t(this,e)}render(){return e(u,{key:"486de82e23fb45c7dbe804e92687ee380643483e"},e("section",{key:"45a41fb60275d5c50b994aa47bed8db6df231b77"},e("div",{key:"ea4d92fdce0182538a3f42e314c7e9a9bc8e75eb"},e("div",{key:"35158706826e010c86f7fcb43da383c726fe595b",part:n},null==h?void 0:h.paymentDescription),e("div",{key:"e2caeff8e0b4ba4a549cc256ab6df0ad44d3cebb"},e("span",{key:"104c839b0a5c518d115fc34d66082c035e1b76ac",part:n},"Total")," ",e("span",{key:"79fac509d988600dd8c7e99f6c1be82956ea8219",part:n},r(+(null==h?void 0:h.totalAmount)))))))}},O=class{constructor(e){t(this,e),this.levels={h1:y,h2:m,h3:f},this.level="h1"}render(){return e(u,{key:"d4871da09451d40b27220a207ee72317ed9b1b9f"},e(this.levels[this.level],{key:"f7de159fa6395ef4024f48b868369f8d10edf64e",text:this.text,class:this.class}))}},L=C();class S{async getLinkToken(t,e,i,s){return L.post({endpoint:`plaid/${e}/link`,body:{checkout_id:i},authToken:t,signal:s})}async tokenizeBankAccount(t,e,i,s,a,n){const o=`plaid/${e}/tokenize`,r={public_token:i};return s&&(r.link_token_id=s),a&&(r.payment_method_group_id=a),L.post({endpoint:o,body:r,authToken:t,signal:n})}}const _=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.checkoutChangedEvent=i(this,"checkout-changed"),this.plaidService=new S,this.handleApplePayCompleted=t=>{const{success:e,token:i,paymentMethodId:s,error:a}=t.detail;e&&i?(h.paymentToken=s,h.selectedPaymentMethod={type:A.APPLE_PAY},this.submitCheckout()):(console.error("Apple Pay completed but failed:",a),this.errorEvent.emit({message:(null==a?void 0:a.message)||"Apple Pay payment failed",errorCode:b.TOKENIZE_ERROR,severity:j.ERROR}))},this.handleApplePayError=t=>{const{error:e,code:i}=t.detail;console.error("Apple Pay error:",e),this.errorEvent.emit({message:e||"Apple Pay error occurred",errorCode:`APPLE_PAY_${i}`,severity:j.ERROR})},this.handleApplePayCancelled=()=>{h.paymentToken=void 0,h.selectedPaymentMethod=void 0}}connectedCallback(){this.observer=new MutationObserver((()=>{this.queryFormRefs(),this.setupApplePayListeners()})),this.observer.observe(this.hostEl,{childList:!0,subtree:!0}),h.checkoutId=this.checkoutId;const t={authToken:this.authToken,checkoutId:this.checkoutId,service:new I};this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:s,onError:a})=>{var n;try{const o=await i.fetchCheckout(t,e);if(o.error)return a({error:D(o.error),code:w(null===(n=o.error)||void 0===n?void 0:n.code),severity:j.ERROR});s({checkout:o.data})}catch(t){const e=w(null==t?void 0:t.code);return a({error:t.message||t,code:e,severity:j.ERROR})}})(t),this.completeCheckout=(({authToken:t,checkoutId:e,service:i})=>async({payment:s,onSuccess:a,onError:n})=>{var o;try{const r=await i.complete(t,e,s);if(r.error)return n({error:D(r.error),code:w(null===(o=r.error)||void 0===o?void 0:o.code),severity:j.ERROR});a({checkout:r.data})}catch(t){const e=w(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:j.ERROR})}})(t),l((()=>{this.emitCheckoutChanged()}))}componentWillLoad(){this.analytics=new g(this),k(),h.authToken=this.authToken,this.fetchCheckout(),p("set",(t=>{const e=v[t];void 0!==e&&M(t,e)&&this.fetchCheckout()}))}componentDidLoad(){this.queryFormRefs(),this.setupApplePayListeners()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.removeApplePayListeners()}fetchCheckout(){this.authToken&&this.checkoutId?this.getCheckout&&this.getCheckout({onSuccess:({checkout:t})=>{this.updateStore(t),t.status!==N.completed?t.status!==N.expired||this.errorEvent.emit({message:T.CHECKOUT_EXPIRED,errorCode:b.CHECKOUT_EXPIRED,severity:j.ERROR}):this.errorEvent.emit({message:T.CHECKOUT_ALREADY_COMPLETED,errorCode:b.CHECKOUT_ALREADY_COMPLETED,severity:j.ERROR})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:t.code,severity:t.severity})}}):this.errorEvent.emit({message:T.NOT_AUTHENTICATED,errorCode:b.NOT_AUTHENTICATED,severity:j.ERROR})}updateStore(t){var e,i,s,a,n;h.accountId=t.account_id,h.checkoutLoaded=!0,h.paymentMethods=t.payment_methods.map((t=>new E(t))),h.paymentMethodGroupId=t.payment_method_group_id,h.paymentDescription=t.payment_description,h.totalAmount=t.total_amount,h.paymentAmount=t.payment_amount,h.bnplEnabled=t.payment_settings.bnpl_payments,h.insuranceEnabled=t.payment_settings.insurance_payments,h.bankAccountVerification=null===(e=t.payment_settings)||void 0===e?void 0:e.bank_account_verification,h.bnplProviderClientId=null===(i=null==t?void 0:t.bnpl)||void 0===i?void 0:i.provider_client_id,h.bnplProviderMode=null===(s=null==t?void 0:t.bnpl)||void 0===s?void 0:s.provider_mode,h.bnplProviderApiVersion=null===(a=null==t?void 0:t.bnpl)||void 0===a?void 0:a.provider_api_version,h.bnplProviderCheckoutUrl=null===(n=null==t?void 0:t.bnpl)||void 0===n?void 0:n.provider_checkout_url}emitCheckoutChanged(){const t={availablePaymentMethodTypes:c(),selectedPaymentMethod:h.selectedPaymentMethod,savedPaymentMethods:h.paymentMethods};this.checkoutChangedEvent.emit(t)}queryFormRefs(){this.billingFormRef=this.hostEl.querySelector("justifi-billing-form, justifi-bank-account-billing-form-simple, justifi-card-billing-form-simple, justifi-billing-form-full"),this.applePayRef=this.hostEl.querySelector("justifi-apple-pay"),this.paymentMethodFormRef=this.hostEl.querySelector("justifi-card-form, justifi-bank-account-form, justifi-tokenize-payment-method"),this.insuranceFormRef=this.hostEl.querySelector("justifi-season-interruption-insurance")}setupApplePayListeners(){this.applePayRef&&(this.applePayRef.addEventListener("applePayCompleted",this.handleApplePayCompleted),this.applePayRef.addEventListener("applePayError",this.handleApplePayError),this.applePayRef.addEventListener("applePayCancelled",this.handleApplePayCancelled))}removeApplePayListeners(){this.applePayRef&&(this.applePayRef.removeEventListener("applePayCompleted",this.handleApplePayCompleted),this.applePayRef.removeEventListener("applePayError",this.handleApplePayError),this.applePayRef.removeEventListener("applePayCancelled",this.handleApplePayCancelled))}async tokenizePaymentMethod(t){var e,i,s;const a=null!==(i=await(null===(e=this.billingFormRef)||void 0===e?void 0:e.getValues()))&&void 0!==i?i:{},n=Object.assign(Object.assign({},t),a),o=Object.assign({accountId:h.accountId,payment_method_group_id:void 0},n);h.savePaymentMethod&&(o.payment_method_group_id=h.paymentMethodGroupId);const r=await(null===(s=this.paymentMethodFormRef)||void 0===s?void 0:s.tokenize({clientId:this.authToken,paymentMethodMetadata:o,account:h.accountId}));return r.error?r:(h.paymentToken=r.id,r.id)}async setSelectedPaymentMethod(t){h.selectedPaymentMethod=t,h.paymentToken=t.id||void 0}async validate(){var t,e;const i=[];h.insuranceEnabled&&this.insuranceFormRef&&i.push(this.insuranceFormRef.validate());const s=(null===(t=h.selectedPaymentMethod)||void 0===t?void 0:t.type)===A.NEW_CARD,a=(null===(e=h.selectedPaymentMethod)||void 0===e?void 0:e.type)===A.NEW_BANK_ACCOUNT;if((s||a)&&(this.paymentMethodFormRef&&i.push(this.paymentMethodFormRef.validate()),this.billingFormRef&&i.push(this.billingFormRef.validate())),0===i.length)return!0;try{return!!(await Promise.all(i)).every((t=>"boolean"==typeof t?t:!1!==(null==t?void 0:t.isValid)))||(this.errorEvent.emit({message:"Validation error",errorCode:b.VALIDATION_ERROR,severity:j.ERROR}),!1)}catch(t){return!1}}async submitCheckout(t){var e,i,s,a,n;const o=await this.validate();if(!h.selectedPaymentMethod)return void this.errorEvent.emit({message:"No payment method selected.",errorCode:b.VALIDATION_ERROR,severity:j.ERROR});const r=(null===(e=h.selectedPaymentMethod)||void 0===e?void 0:e.type)===A.NEW_CARD,l=(null===(i=h.selectedPaymentMethod)||void 0===i?void 0:i.type)===A.NEW_BANK_ACCOUNT,c=(null===(s=h.selectedPaymentMethod)||void 0===s?void 0:s.type)===A.PLAID;if(r||l){const e=await this.tokenizePaymentMethod(t);if(null==e?void 0:e.error)return void this.errorEvent.emit({message:e.error.message,errorCode:b.TOKENIZE_ERROR,severity:j.ERROR})}if(c&&!h.paymentToken){const t=h.plaidPublicToken,e=h.plaidLinkTokenId;if(!t)return void this.errorEvent.emit({message:"Missing Plaid public token. Please connect your bank.",errorCode:b.TOKENIZE_ERROR,severity:j.ERROR});try{const i=await this.plaidService.tokenizeBankAccount(h.authToken,h.accountId,t,e||void 0,h.savePaymentMethod?h.paymentMethodGroupId:void 0);if(null==i?void 0:i.error)return void this.errorEvent.emit({message:"string"==typeof i.error?i.error:i.error.message||"Failed to tokenize bank account",errorCode:b.TOKENIZE_ERROR,severity:j.ERROR});const s=null==i?void 0:i.data,n=(null===(a=null==s?void 0:s.bank_account)||void 0===a?void 0:a.token)||(null==s?void 0:s.token)||(null==s?void 0:s.id);h.paymentToken=n}catch(t){return void this.errorEvent.emit({message:(null==t?void 0:t.message)||"Plaid exchange error",errorCode:b.TOKENIZE_ERROR,severity:j.ERROR})}}if(!o)return void this.errorEvent.emit({message:"Please fill in all required fields.",errorCode:b.VALIDATION_ERROR,severity:j.ERROR});if(!h.paymentToken)return void this.errorEvent.emit({message:"Payment token not found.",errorCode:b.TOKENIZE_ERROR,severity:j.ERROR});let d;d={payment_mode:(t=>{switch(t){case A.NEW_CARD:case A.SAVED_CARD:case A.NEW_BANK_ACCOUNT:case A.SAVED_BANK_ACCOUNT:case A.PLAID:return x.ECOM;case A.SEZZLE:return x.BNPL;case A.APPLE_PAY:return x.APPLE_PAY;default:return}})(null===(n=h.selectedPaymentMethod)||void 0===n?void 0:n.type),payment_token:h.paymentToken},this.completeCheckout({payment:d,onSuccess:({checkout:t})=>{this.submitEvent.emit({checkout:t,message:"Checkout completed successfully"})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:b.COMPLETE_CHECKOUT_ERROR,severity:j.ERROR})}})}render(){return e(s,{key:"92483fadc77e6468f71ffe8161acb01ec05029bd"})}get hostEl(){return a(this)}};var R;!function(t){t.PLAID_SDK_LOAD_FAILED="plaid-sdk-load-failed",t.PLAID_LINK_INIT_FAILED="plaid-link-init-failed",t.PLAID_LINK_TOKEN_FAILED="plaid-link-token-failed",t.PLAID_AUTHENTICATION_FAILED="plaid-authentication-failed",t.PLAID_BANK_NOT_SUPPORTED="plaid-bank-not-supported",t.PLAID_TOKEN_EXPIRED="plaid-token-expired",t.PLAID_NETWORK_ERROR="plaid-network-error",t.PLAID_USER_CANCELLED="plaid-user-cancelled",t.PLAID_TIMEOUT="plaid-timeout",t.PLAID_INVALID_CREDENTIALS="plaid-invalid-credentials",t.PLAID_ACCOUNT_LOCKED="plaid-account-locked",t.PLAID_MAINTENANCE="plaid-maintenance",t.PLAID_RATE_LIMITED="plaid-rate-limited"}(R||(R={}));const U={[R.PLAID_SDK_LOAD_FAILED]:"Unable to load Plaid. Please refresh the page and try again.",[R.PLAID_LINK_INIT_FAILED]:"Unable to initialize bank connection. Please try again.",[R.PLAID_LINK_TOKEN_FAILED]:"Unable to connect to bank service. Please try again.",[R.PLAID_AUTHENTICATION_FAILED]:"Bank authentication failed. Please try again.",[R.PLAID_BANK_NOT_SUPPORTED]:"Your bank is not currently supported. Please try a different payment method.",[R.PLAID_TOKEN_EXPIRED]:"Your bank session has expired. Please reconnect your account.",[R.PLAID_NETWORK_ERROR]:"Network connection issue. Please check your internet connection and try again.",[R.PLAID_USER_CANCELLED]:"Bank connection was cancelled. Click to try again.",[R.PLAID_TIMEOUT]:"Bank connection timed out. Please try again.",[R.PLAID_INVALID_CREDENTIALS]:"Invalid bank credentials. Please check your username and password.",[R.PLAID_ACCOUNT_LOCKED]:"Your bank account is temporarily locked. Please contact your bank.",[R.PLAID_MAINTENANCE]:"Bank service is temporarily unavailable. Please try again later.",[R.PLAID_RATE_LIMITED]:"Too many connection attempts. Please wait a moment and try again."},B={[R.PLAID_SDK_LOAD_FAILED]:j.ERROR,[R.PLAID_LINK_INIT_FAILED]:j.ERROR,[R.PLAID_LINK_TOKEN_FAILED]:j.ERROR,[R.PLAID_AUTHENTICATION_FAILED]:j.ERROR,[R.PLAID_BANK_NOT_SUPPORTED]:j.WARNING,[R.PLAID_TOKEN_EXPIRED]:j.WARNING,[R.PLAID_NETWORK_ERROR]:j.WARNING,[R.PLAID_USER_CANCELLED]:j.INFO,[R.PLAID_TIMEOUT]:j.WARNING,[R.PLAID_INVALID_CREDENTIALS]:j.ERROR,[R.PLAID_ACCOUNT_LOCKED]:j.ERROR,[R.PLAID_MAINTENANCE]:j.WARNING,[R.PLAID_RATE_LIMITED]:j.WARNING},Q=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.plaidError=i(this,"plaidError"),this.plaidErrorRecovered=i(this,"plaidErrorRecovered"),this.isAuthenticating=!1,this.publicToken=null,this.linkToken=null,this.linkTokenId=null,this.error=null,this.plaidLink=null,this.isSelected=!1,this.retryCount=0,this.isRetrying=!1,this.plaidService=new S,this.maxRetries=3,this.retryDelay=2e3,this.timeoutId=null,this.abortController=null,this.hasLoggedDisabledWarning=!1,this.waitForStoreAndInitialize=()=>{h.authToken&&h.accountId&&h.checkoutId?this.initializePlaidLink():setTimeout((()=>{this.waitForStoreAndInitialize()}),100)},this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:R.PLAID_SDK_LOAD_FAILED,message:U[R.PLAID_SDK_LOAD_FAILED],severity:B[R.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:R.PLAID_LINK_TOKEN_FAILED,message:U[R.PLAID_LINK_TOKEN_FAILED],severity:B[R.PLAID_LINK_TOKEN_FAILED],retryable:!0,userAction:"Click to try again"});const t=window.Plaid;this.plaidLink=t.create({token:this.linkToken,onSuccess:this.handlePlaidSuccess,onExit:this.handlePlaidExit,onEvent:this.handlePlaidEvent,onLoad:this.handlePlaidLoad})}catch(t){this.handleError({code:R.PLAID_LINK_INIT_FAILED,message:U[R.PLAID_LINK_INIT_FAILED],severity:B[R.PLAID_LINK_INIT_FAILED],originalError:t,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var t,e,i,s,a;try{if(!h.authToken||!h.accountId)return void this.handleError({code:R.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please refresh the page and try again.",severity:j.ERROR,retryable:!1,userAction:"Refresh the page"});this.abortController=new AbortController,this.timeoutId=setTimeout((()=>{var t;null===(t=this.abortController)||void 0===t||t.abort()}),3e4);const e=await this.plaidService.getLinkToken(h.authToken,h.accountId,h.checkoutId,this.abortController.signal);if(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),e.error)throw new Error("string"==typeof e.error?e.error:e.error.message||"Failed to get link token");this.linkToken=e.data.link_token,this.linkTokenId=(null==e?void 0:e.id)||(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)||null,this.linkTokenId&&(h.plaidLinkTokenId=this.linkTokenId)}catch(t){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let n=R.PLAID_LINK_TOKEN_FAILED,o=U[n],r=!0;"AbortError"===t.name?(n=R.PLAID_TIMEOUT,o=U[n],r=!0):(null===(e=t.message)||void 0===e?void 0:e.includes("network"))||(null===(i=t.message)||void 0===i?void 0:i.includes("fetch"))?(n=R.PLAID_NETWORK_ERROR,o=U[n],r=!0):((null===(s=t.message)||void 0===s?void 0:s.includes("401"))||(null===(a=t.message)||void 0===a?void 0:a.includes("unauthorized")))&&(n=R.PLAID_INVALID_CREDENTIALS,o="Authentication failed. Please refresh the page and try again.",r=!1),this.handleError({code:n,message:o,severity:B[n],originalError:t,retryable:r,userAction:r?"Click to try again":"Refresh the page"})}},this.mapApiErrorToPlaidError=t=>{if("string"==typeof t){if(t.includes("rate_limit"))return R.PLAID_RATE_LIMITED;if(t.includes("maintenance"))return R.PLAID_MAINTENANCE;if(t.includes("not_authenticated"))return R.PLAID_INVALID_CREDENTIALS}if(null==t?void 0:t.code)switch(t.code){case"rate_limited":return R.PLAID_RATE_LIMITED;case"maintenance":return R.PLAID_MAINTENANCE;case"not_authenticated":return R.PLAID_INVALID_CREDENTIALS;default:return R.PLAID_LINK_TOKEN_FAILED}return R.PLAID_LINK_TOKEN_FAILED},this.openPlaidLink=()=>{this.plaidLink&&this.linkToken&&(this.isAuthenticating=!0,this.clearError(),this.plaidLink.open())},this.handlePlaidSuccess=t=>{this.publicToken=t,this.isAuthenticating=!1,this.clearError(),this.retryCount=0,this.isSelected||(this.isSelected=!0,h.selectedPaymentMethod={type:A.PLAID}),this.plaidErrorRecovered.emit({code:"plaid-success",message:"Bank account connected successfully",severity:j.INFO}),h.plaidPublicToken=t},this.handlePlaidExit=t=>{this.isAuthenticating=!1,t&&this.handlePlaidError(t)},this.handlePlaidEvent=(t,e)=>{switch(t){case"OPEN":this.isAuthenticating=!0;break;case"CLOSE":this.isAuthenticating=!1;break;case"ERROR":this.handlePlaidError(e)}},this.handlePlaidLoad=()=>{},this.handlePlaidError=t=>{let e=R.PLAID_AUTHENTICATION_FAILED,i=U[e],s=!0,a="Click to try again";if(t.error_code)switch(t.error_code){case"INVALID_CREDENTIALS":e=R.PLAID_INVALID_CREDENTIALS,i=U[e],s=!0;break;case"ITEM_LOGIN_REQUIRED":e=R.PLAID_INVALID_CREDENTIALS,i="Your bank requires re-authentication. Please try again.",s=!0;break;case"ITEM_LOCKED":e=R.PLAID_ACCOUNT_LOCKED,i=U[e],s=!1,a="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":e=R.PLAID_MAINTENANCE,i=U[e],s=!0;break;case"RATE_LIMIT_EXCEEDED":e=R.PLAID_RATE_LIMITED,i=U[e],s=!0;break;case"INVALID_REQUEST":e=R.PLAID_AUTHENTICATION_FAILED,i="Invalid request. Please try again.",s=!0;break;case"PLAID_ERROR":e=R.PLAID_AUTHENTICATION_FAILED,i=t.error_message||"Bank authentication failed. Please try again.",s=!0;break;default:t.error_message&&(i=t.error_message)}if(t.error_message){const n=t.error_message.toLowerCase();n.includes("not supported")||n.includes("unsupported")?(e=R.PLAID_BANK_NOT_SUPPORTED,i=U[e],s=!1,a="Try a different payment method"):(n.includes("expired")||n.includes("timeout"))&&(e=R.PLAID_TOKEN_EXPIRED,i=U[e],s=!0)}this.handleError({code:e,message:i,severity:B[e],originalError:t,retryable:s,userAction:a}),this.isAuthenticating=!1},this.handleError=t=>{this.error=t,this.plaidError.emit({code:t.code,message:t.message,severity:t.severity,data:{originalError:t.originalError,retryable:t.retryable,userAction:t.userAction,retryCount:this.retryCount}}),console.error("Plaid error:",t),t.retryable&&this.retryCount<this.maxRetries&&this.scheduleRetry()},this.scheduleRetry=()=>{this.isRetrying||(this.isRetrying=!0,this.retryCount++,setTimeout((()=>{this.isRetrying=!1,this.clearError(),this.waitForStoreAndInitialize()}),this.retryDelay*this.retryCount))},this.clearError=()=>{this.error&&(this.error=null,this.retryCount=0)},this.syncWithStore=()=>{var t;const e=(null===(t=h.selectedPaymentMethod)||void 0===t?void 0:t.type)===A.PLAID;this.isSelected!==e&&(this.isSelected=e)}}onSelectionChange(t){var e;t&&(null===(e=h.selectedPaymentMethod)||void 0===e?void 0:e.type)!==A.PLAID&&(h.selectedPaymentMethod={type:A.PLAID}),!t||!this.plaidLink||this.publicToken||this.isAuthenticating||this.error||this.openPlaidLink()}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.waitForStoreAndInitialize()},this.scriptRef.onerror=()=>{this.handleError({code:R.PLAID_SDK_LOAD_FAILED,message:U[R.PLAID_SDK_LOAD_FAILED],severity:B[R.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})})}componentWillLoad(){var t;this.isSelected=(null===(t=h.selectedPaymentMethod)||void 0===t?void 0:t.type)===A.PLAID}async resolvePaymentMethod(){return this.publicToken?{token:this.publicToken,data:{type:"bank_account",plaid_public_token:this.publicToken}}:{validationError:!0}}async getPaymentToken(){return h.paymentToken}async handleSelectionClick(){if(this.isSelected=!0,h.selectedPaymentMethod={type:A.PLAID},this.error)return this.clearError(),void this.waitForStoreAndInitialize();!this.plaidLink||this.publicToken||this.isAuthenticating||this.openPlaidLink()}async setSelected(t){this.isSelected=t,t&&(h.selectedPaymentMethod={type:A.PLAID})}async isCurrentlySelected(){return this.isSelected}async deselect(){this.isSelected=!1}async reset(){this.publicToken=null,this.clearError(),this.isAuthenticating=!1,this.linkToken=null,this.plaidLink=null,this.retryCount=0,this.isRetrying=!1,this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.abortController&&(this.abortController.abort(),this.abortController=null)}async isReadyForAuthentication(){return!(!this.plaidLink||!this.linkToken||this.isAuthenticating)}async retry(){this.error&&this.error.retryable&&(this.clearError(),this.waitForStoreAndInitialize())}async getErrorInfo(){return this.error}componentDidLoad(){const t=d("selectedPaymentMethod",this.syncWithStore);this.unsubscribeFromStore=t}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){if(!0!==h.bankAccountVerification)return this.hasLoggedDisabledWarning||(console.warn("[PlaidPaymentMethod] bank_account_verification is disabled. Component will not render."),this.hasLoggedDisabledWarning=!0),null;const t=e("img",{class:"plaid-logo-img",src:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjggMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9ImNzcy0xcmRhajhtIj48ZyBmaWxsPSIjMTExIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNS43NjI5IDI2LjI2MjhMMjggMTcuNTMwOUwyNC45NjkxIDE0LjUwMDFMMjcuOTk5OSAxMS40NjkxTDI1Ljc2MjggMi43MzcwNkwxNy4wMzA5IDAuNUwxNC4wMDAxIDMuNTMxTDEwLjk2OSAwLjUwMDE0TDIuMjM3MDYgMi43MzczNEwwIDExLjQ2OTFMMy4wMzEyOCAxNC40OTk5TDAuMDAwMTQgMTcuNTMxTDIuMjM3MiAyNi4yNjI5TDEwLjk2OTEgMjguNUwxNC4wMDAxIDI1LjQ2OUwxNy4wMzEgMjguNDk5OUwyNS43NjI5IDI2LjI2MjhaTTE1LjczMjEgMjMuNzM3MUwxOC42MTg2IDIwLjg1MDVMMjIuMjkxMiAyNC41MjMzTDE3LjY5NTYgMjUuNzAwN0wxNS43MzIxIDIzLjczNzFaTTExLjExMzYgOS44ODE1NEwxNC4wMDAzIDYuOTk1MDJMMTYuODg2OCA5Ljg4MTRMMTQuMDAwMSAxMi43Njc5TDExLjExMzYgOS44ODE1NFpNMTIuMjY4MiAxNC41TDkuMzgxNTQgMTcuMzg2NUw2LjQ5NTAyIDE0LjVMOS4zODE1NCAxMS42MTM1TDEyLjI2ODIgMTQuNVpNMTguNjE4NyAxMS42MTMzTDIxLjUwNTMgMTQuNUwxOC42MTg2IDE3LjM4NjVMMTUuNzMyMSAxNC41TDE4LjYxODcgMTEuNjEzM1pNMTYuODg2NyAxOS4xMTg2TDE0LjAwMDEgMjIuMDA1MUwxMS4xMTM1IDE5LjExODVMMTQuMDAwMSAxNi4yMzE5TDE2Ljg4NjcgMTkuMTE4NlpNMTAuMzA0NCAyNS43MDA3TDUuNzA4NjQgMjQuNTIzM0w5LjM4MTU0IDIwLjg1MDRMMTIuMjY4MiAyMy43MzcxTDEwLjMwNDQgMjUuNzAwN1pNNC43NjMwOCAxNi4yMzE5TDcuNjQ5NiAxOS4xMTg1TDMuOTc2NyAyMi43OTE0TDIuNzk5MyAxOC4xOTU3TDQuNzYzMDggMTYuMjMxOVpNMy45NzY3IDYuMjA4MzZMNy42NDk3NCA5Ljg4MTRMNC43NjMwOCAxMi43NjgxTDIuNzk5MyAxMC44MDQxTDMuOTc2NyA2LjIwODM2Wk0xMi4yNjgzIDUuMjYyOTRMOS4zODE2OCA4LjE0OTZMNS43MDg5MiA0LjQ3NjdMMTAuMzA0NyAzLjI5OTNMMTIuMjY4MyA1LjI2Mjk0Wk0xNy42OTU5IDMuMjk5M0wyMi4yOTE1IDQuNDc2N0wxOC42MTg2IDguMTQ5NDZMMTUuNzMyMSA1LjI2Mjk0TDE3LjY5NTkgMy4yOTkzWk0yMy4yMzcyIDEyLjc2ODFMMjAuMzUwNSA5Ljg4MTRMMjQuMDIzMyA2LjIwODc4TDI1LjIwMDcgMTAuODA0NkwyMy4yMzcyIDEyLjc2ODFaTTI0LjAyMzMgMjIuNzkxNEwyMC4zNTA1IDE5LjExODZMMjMuMjM3MiAxNi4yMzIxTDI1LjIwMDcgMTguMTk1N0wyNC4wMjMzIDIyLjc5MTRaIj48L3BhdGg+PC9nPjwvc3ZnPgo=",alt:"Plaid",title:"Plaid",style:{display:"inline",width:"20px",height:"20px",marginLeft:"5px",marginTop:"-2px"}});return e(u,{class:"payment-method"},e("script",{src:"https://cdn.plaid.com/link/v2/stable/link-initialize.js",async:!0,ref:t=>this.scriptRef=t}),e("div",{title:"Pay with Plaid"},e("div",{onClick:t=>{t.preventDefault(),this.handleSelectionClick()}},"Pay with Bank Account ",t," "),(()=>this.error?e("div",{class:(this.error.severity===j.ERROR?"text-danger":this.error.severity===j.WARNING?"text-warning":"text-info")+" mt-2"},e("small",null,this.error.message),e("br",null),e("small",{class:"text-muted"},this.error.userAction,this.error.retryable&&this.retryCount<this.maxRetries&&e("span",null," • Auto-retry in progress..."))):null)(),(()=>this.error?null:this.isAuthenticating?e("div",{class:"text-info mt-2"},e("small",null,"Connecting to your bank...")):this.publicToken?e("div",{class:"text-success mt-2"},e("small",null,"✓ Bank account connected successfully")):!this.isSelected||this.publicToken||this.error||this.isAuthenticating?null:e("div",{class:"text-muted mt-2"},e("small",null,"Click to connect your bank account")))()))}static get watchers(){return{isSelected:["onSelectionChange"]}}},Y=class{constructor(e){t(this,e),this.onPaymentMethodOptionClick=t=>e=>{e.preventDefault(),h.selectedPaymentMethod={id:t.id,type:t.type},h.paymentToken=t.id},this.isAllowedPaymentMethod=t=>!(t===A.SAVED_CARD&&h.disableCreditCard||t===A.SAVED_BANK_ACCOUNT&&h.disableBankAccount)}componentWillLoad(){h.paymentMethods.length||console.warn("No saved payment methods available."),h.disablePaymentMethodGroup&&console.warn("Payment method group is disabled.")}render(){return h.disablePaymentMethodGroup?null:e(u,null,e("div",{class:"saved-payment-methods"},h.paymentMethods.length?h.paymentMethods.filter((t=>this.isAllowedPaymentMethod(t.type))).map((t=>e("div",{class:"radio-list-item p-3",part:o,onClick:this.onPaymentMethodOptionClick(t)},e("form-control-radio",{name:"paymentMethodType",value:null==t?void 0:t.id,checked:h.paymentToken===(null==t?void 0:t.id),label:`${P[null==t?void 0:t.brand]||""} *${null==t?void 0:t.acct_last_four}`})))):null))}},F=e("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),W=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId=A.SEZZLE,this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((e=>{t=e}));const e=Number(h.paymentAmount),i=new(0,window.Checkout)({mode:"popup",publicKey:h.bnplProviderClientId,apiMode:h.bnplProviderMode,apiVersion:h.bnplProviderApiVersion});i.sezzleButtonElement=this.sezzleButtonRef,i.init({onClick:function(t){t.preventDefault(),i.startCheckout({checkout_url:h.bnplProviderCheckoutUrl})},onComplete:e=>t({bnpl:e.data}),onCancel:e=>t({bnpl:e.data}),onFailure:e=>t({bnpl:e.data})}),this.sezzleCheckout=i,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(e)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()})}async resolvePaymentMethod(t){return t.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}async handleSelectionClick(){h.selectedPaymentMethod={type:A.SEZZLE},this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)}render(){var t,i;return h.bnplEnabled?e(u,{class:"payment-method"},e("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),e("div",null,e("div",null,"Buy now, pay later with ",F),this.installmentPlan&&e("small",null,e("span",null,null===(t=this.installmentPlan)||void 0===t?void 0:t.installments.length)," ",e("span",null,this.installmentPlan.schedule," payments of")," ",e("span",{class:"fw-bold"},r(null===(i=this.installmentPlan)||void 0===i?void 0:i.installments[0].amountInCents))))):(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null)}},V={[A.NEW_BANK_ACCOUNT]:"New bank account",[A.NEW_CARD]:"New credit or debit card"},H="Payment form not ready",Z="Validation error",G=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.computedHideSubmitButton=!1,this.isLoading=!1,this.submitButtonText="Submit"}paymentMethodsChanged(){this.setDefaultSelectedPaymentMethod()}connectedCallback(){this.setDefaultSelectedPaymentMethod(),this.setComputedHideSubmitButton()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup(),this.unsubscribeFromStore&&this.unsubscribeFromStore()}componentWillLoad(){k(),this.analytics=new g(this)}handleRadioClick(t){this.selectedPaymentMethod=t.detail,h.selectedPaymentMethod={type:t.detail}}async fillBillingForm(t){var e;null===(e=this.billingFormRef)||void 0===e||e.fill(t)}async tokenizePaymentMethod(t){null==t||t.preventDefault(),this.validateRequiredProps(),this.isLoading=!0;try{if(!(await this.validate()).isValid)return this.errorEvent.emit({errorCode:b.TOKENIZE_ERROR,message:Z}),void(this.isLoading=!1);const t=await this.resolvePaymentMethod({isValid:!0});return t.error&&this.emitError({errorCode:t.error.code,message:t.error.message}),this.submitEvent.emit({response:t}),t}catch(t){const e=this.createErrorResponse(b.TOKENIZE_ERROR,t.message);return this.emitError({errorCode:b.TOKENIZE_ERROR,message:t.message}),this.submitEvent.emit({response:e}),e}finally{this.isLoading=!1}}async validate(){if(!this.areFormsReady())return{isValid:!1,errors:{general:H}};const[t,e]=await Promise.all([this.billingFormRef.validate(),this.paymentMethodFormRef.validate()]);return{isValid:t.isValid&&e.isValid,errors:Object.assign(Object.assign({},t.errors),e.errors)}}async tokenize(){try{const t=await this.billingFormRef.getValues(),e={clientId:this.authToken||h.authToken,account:this.accountId||h.accountId,paymentMethodMetadata:this.buildPaymentMethodMetadata(t)};return await this.paymentMethodFormRef.tokenize(e)}catch(t){return t}}validateRequiredProps(){this.authToken||h.authToken||this.emitError({errorCode:b.TOKENIZE_ERROR,message:"Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"}),this.accountId||h.accountId||this.emitError({errorCode:b.TOKENIZE_ERROR,message:"Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"})}setDefaultSelectedPaymentMethod(){this.selectedPaymentMethod||(this.disableCreditCard?this.disableBankAccount||(this.selectedPaymentMethod=A.NEW_BANK_ACCOUNT,h.selectedPaymentMethod={type:A.NEW_BANK_ACCOUNT}):(this.selectedPaymentMethod=A.NEW_CARD,h.selectedPaymentMethod={type:A.NEW_CARD}))}setComputedHideSubmitButton(){if(void 0!==this.hideSubmitButton)return void(this.computedHideSubmitButton=this.hideSubmitButton);const t=this.isSlottedWithinModularCheckout();this.computedHideSubmitButton=t}isSlottedWithinModularCheckout(){var t;let e=null===(t=this.host)||void 0===t?void 0:t.parentElement;for(;e;){if("JUSTIFI-MODULAR-CHECKOUT"===e.tagName)return!0;e=e.parentElement}return!1}get availablePaymentMethods(){const t=[];return this.disableCreditCard||t.push(A.NEW_CARD),this.disableBankAccount||t.push(A.NEW_BANK_ACCOUNT),t}areFormsReady(){return!(!this.billingFormRef||!this.paymentMethodFormRef)}emitError(t){this.errorEvent.emit(Object.assign(Object.assign({},t),{severity:j.ERROR}))}createErrorResponse(t,e){return{error:{code:t,message:e,decline_code:void 0}}}async resolvePaymentMethod(t){if(!this.areFormsReady())return this.createErrorResponse("form_not_ready",H);try{const e=await this.validate();if(!e.isValid||!t.isValid){const t=Object.values(e.errors)[0]||Z;return{validationError:!0,error:{code:"validation_error",message:String(t),decline_code:void 0}}}return await this.performTokenization()}catch(t){return{error:t}}}async performTokenization(){var t,e;const i=await this.tokenize();if(i.error)return{error:i.error};const s=i.data;return{token:(null===(t=s.card)||void 0===t?void 0:t.token)||(null===(e=s.bank_account)||void 0===e?void 0:e.token),data:s}}buildPaymentMethodMetadata(t){return this.shouldSavePaymentMethod?Object.assign(Object.assign({},t),{payment_method_group_id:this.paymentMethodGroupID}):Object.assign({},t)}get paymentMethodGroupID(){return this.paymentMethodGroupId||h.paymentMethodGroupId}get shouldSavePaymentMethod(){return!(!this.paymentMethodGroupId&&!h.savePaymentMethod)}get shouldHideRadioInput(){return this.disableCreditCard||this.disableBankAccount}renderPaymentMethodOption(t){const i=this.selectedPaymentMethod===t&&void 0===h.selectedPaymentMethod.id;return e("div",{class:"payment-method"},e("justifi-radio-list-item",{name:"paymentMethodType",value:t,checked:i,label:V[t],hidden:this.shouldHideRadioInput}),i&&this.renderSelectedPaymentMethodForm(t))}renderSelectedPaymentMethodForm(t){return e("div",{class:"mt-4 pb-4"},this.renderPaymentMethodForm(t),e("div",{class:"mt-4"},e("justifi-billing-form",{ref:t=>this.billingFormRef=t,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:t})),e("div",{class:"mt-4"},e("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupID,label:this.savePaymentMethodLabel})))}renderPaymentMethodForm(t){return e(t===A.NEW_CARD?"justifi-card-form":"justifi-bank-account-form",{ref:t=>this.paymentMethodFormRef=t})}render(){return e(u,{key:"373ac317c7a4c4c808ca67e8bf63be28c5dd43b4"},e("form",{key:"da07764bca9a6af5baf6b3bf025c1abf9661e4b7"},e("fieldset",{key:"af277c0c07697969a2c83dcbac6017a596c22077"},e("div",{key:"1dc0ea324a4ed69eceb240504f320f1c1dfcf6b3",class:"row gy-3"},e("div",{key:"feaaff69b06663e759864857f6d15eec2aa31819",class:"col-12"},this.availablePaymentMethods.map((t=>this.renderPaymentMethodOption(t)))),e("div",{key:"0dbee981688f541bfcf638c55698444f6a4eb9b4",class:"col-12"},e("justifi-button",{key:"851dfb38a1a92c9990050dc17c55a693f3875afd",text:this.submitButtonText,variant:"primary",type:"submit",clickHandler:t=>this.tokenizePaymentMethod(t),isLoading:this.isLoading,"data-testid":"submit-button",hidden:this.computedHideSubmitButton}))))))}get host(){return a(this)}static get watchers(){return{disableCreditCard:["paymentMethodsChanged"],disableBankAccount:["paymentMethodsChanged"]}}};export{z as justifi_checkout_summary,O as justifi_header,_ as justifi_modular_checkout,Q as justifi_plaid_payment_method,Y as justifi_saved_payment_methods,W as justifi_sezzle_payment_method,G as justifi_tokenize_payment_method}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as e,H as a}from"./p-_b8l4IX7.js";import{_ as c,$ as i,a0 as h,a1 as r,a2 as o,l as f}from"./p-CA_TyBed.js";import{F as b}from"./p-D-RVXHwG.js";import{F as d}from"./p-BgFM_jvF.js";import"./p-CZfYo5-1.js";const l=class{constructor(e){s(this,e),this.formControlInput=t(this,"formControlInput"),this.formControlBlur=t(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=s=>{s.preventDefault();const t=s.target,e=t.getAttribute("name");this.inputHandler(e,t.checked),this.formControlInput.emit({name:e,value:t.value})},this.updateInput=s=>{this.checkboxElement.checked=s}}get part(){return this.errorText?c:this.isFocused&&this.checked?i:this.isFocused?h:this.checked?r:o}render(){return e(a,{key:"b9f175598599477e4eab8b690e414539421368c9"},e("div",{key:"d775d704b4ec7d43ce3b973b38dfe145b99bc6b9",class:"form-group d-flex flex-column"},e("div",{key:"0c7b3e3a405f967914e270f84e9625074fb1fb05",class:"form-check"},e("input",{key:"7cc316c6069fd7ca174a0f41c5e564f68147099d",ref:s=>this.checkboxElement=s,type:"checkbox",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),e("label",{key:"329eaefa881d6b6b15fe1aa910d605c3a81b1eac",class:"form-check-label",htmlFor:this.name,part:f},this.label)),e(b,{key:"0f2acd28cbd742726c50eac743bf96acaed8b9d3",helpText:this.helpText,name:this.name}),e(d,{key:"c9837469aeb10591668c1e3d3db1e97047ac1bc1",errorText:this.errorText,name:this.name})))}};export{l as form_control_checkbox}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i}from"./p-_b8l4IX7.js";import{c as a,J as s}from"./p-BaM0JBLn.js";import{c}from"./p-CQUZeo9r.js";import{d}from"./p-CA_TyBed.js";import{S as o}from"./p-DTwFW2k_.js";import"./p-CZfYo5-1.js";import{P as h}from"./p-DCIW8z1f.js";import"./p-BRhnhmpB.js";import"./p-M5r2kSbf.js";import"./p-DMf85Fkr.js";import"./p-hj8k0lRi.js";import"./p-xWrhxNNk.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BPDMo6us.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";const r=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event"),this.loadedEvent=t(this,"loaded"),this.submitEvent=t(this,"submit-event"),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.isSubmitting=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){a(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){this.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=this.disableBnpl?e.detail.availablePaymentMethodTypes.filter((e=>e!==h.SEZZLE)):e.detail.availablePaymentMethodTypes}async fillBillingForm(e){var t;c.billingFormFields=e,null===(t=this.tokenizePaymentMethodRef)||void 0===t||t.fillBillingForm(e)}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){c.checkoutId=this.checkoutId,c.authToken=this.authToken,c.disableCreditCard=this.disableCreditCard,c.disableBankAccount=this.disableBankAccount,c.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;this.isSubmitting=!0,null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(c.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"40765f54a977fb2e8e450eba0bf9731132ae4897"},i("justifi-modular-checkout",{key:"3e698888a43c585749644d874dd49510889b04ca",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId},i("div",{key:"2491242f0619ea24fbd0e50fbdda4cc2bad9915f",class:"row gy-3 jfi-checkout-core"},i("div",{key:"a965de56c5190e62bbad82116874c78c57f9d9c6",class:"col-12",part:d},i("justifi-header",{key:"ad29fd4619a5bf9e38cbca2e24f8c6818419c022",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"4b1691f7f54a8e83f649a3d1346ec5e0f4ebb588"},i("justifi-checkout-summary",{key:"8ea50acbcd67ea9f26dbdf74f3a0a30062926364"}))),i("div",{key:"b024b6c6debc74443abca6b7776c29ce0253da34",class:"col-12 mt-4"},i("slot",{key:"00b9e18b4fb5278085a3752cdd009d29b0a97a04",name:"insurance"})),i("div",{key:"7dac621b116926cbd860ca975aa642bc207fc62e",class:"col-12 mt-4"},i("justifi-header",{key:"228d89e8fc31e9e0d6e67907b45f74b8af601e30",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"6cc7b7a742f679029f40d8c64c9d59004604f67b",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"d5ca29544817acbd96c6cff74de27ed13b9ac42f",class:"d-flex flex-column"},i("section",{key:"d149835076b70d73c61cfa6e219ac613cf93e817"},i("div",{key:"c4562096a2bbd0bacb907c1bbb5cf741d5c77cb3"},i("justifi-saved-payment-methods",{key:"077666867b456945c6da965a2ebebfd2faaa66b9"}),this.availablePaymentMethods.includes(h.SEZZLE)&&i("justifi-radio-list-item",{key:"bcf02b77573ff17e37b5b61793bd26351979b088",name:"paymentMethodType",value:h.SEZZLE,checked:(null===(e=null==c?void 0:c.selectedPaymentMethod)||void 0===e?void 0:e.type)===h.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(h.PLAID)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"496cf7bd1c93724a5608bc3dba4756ae8dc605a6",name:"paymentMethodType",value:h.PLAID,checked:(null===(t=null==c?void 0:c.selectedPaymentMethod)||void 0===t?void 0:t.type)===h.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("justifi-tokenize-payment-method",{key:"eeb4dd27a8f448cc69e85bce8a4412306dbf0af2",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:c.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:c.paymentMethodGroupId}))))),i("div",{key:"ad13982f1c15dd574e915e8a3a1adac55b21c188",class:"mt-4"},i("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"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{r as justifi_checkout}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as i}from"./p-_b8l4IX7.js";import{C as e,a as r}from"./p-Cjcsf8ku.js";import{C as o,B as h,c as a}from"./p-B5rtFhtR.js";import{z as n}from"./p-CA_TyBed.js";import{S as c}from"./p-DTwFW2k_.js";import{H as d}from"./p-CTJ3moi4.js";import"./p-CZfYo5-1.js";import{B as p}from"./p-XYgDHrVL.js";const f=class{constructor(i){s(this,i),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.country=o.USA,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>new Promise((s=>{this.getBusiness({onSuccess:t=>{const i=new h(t.data);this.businessProvisioned=a(i),this.country=i.country_of_establishment,this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:e.INFO}),s()},onError:({error:t,code:i,severity:e})=>{this.errorEvent.emit({message:t,errorCode:i,severity:e}),s()}})})),this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:i})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:p.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}async componentWillLoad(){this.getBusiness&&await this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return i(c,{key:"f7206f7fa5c0b2052b524737e86b622f92dcd07e"},i("div",{key:"65cd3a37191f1bdef3380b1c5ceebc260b846b6a",class:"row gap-3"},i(d,{key:"05fd7dff0691a80ad7c1dc9152a5fd4d851a292d",text:this.formTitle}),i("justifi-payment-provisioning-form-steps",{key:"57f9b35aa0a1fa2205a43cb90c274fa211f7c359",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,country:this.country,handleFormLoading:this.handleFormLoading}),i("div",{key:"94fd88a0aa9114677a2a1325e14bd059a08b6d72",class:"d-flex justify-content-between align-items-center"},i("div",{key:"bb0ba1762a15c92dbb71f98722b01b1b0324ebcf",class:"d-flex align-items-center",part:n},this.stepCounter),i("justifi-payment-provisioning-form-buttons",{key:"a3cab2c2c655a1bc6d1771c7b759e2b0adc971b0",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{f as justifi_payment_provisioning_core}
@@ -0,0 +1 @@
1
+ import{h as s,r as t,c as i}from"./p-_b8l4IX7.js";import{A as e}from"./p-M5r2kSbf.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c,J as h}from"./p-BaM0JBLn.js";import{c as l}from"./p-CQUZeo9r.js";import{p as d,f as p,r as u,i as v}from"./p-xWrhxNNk.js";import{v as m,i as f,a as y,H as j}from"./p-CevVA9qy.js";import{z as _,A as k}from"./p-CA_TyBed.js";import{S as g}from"./p-DTwFW2k_.js";import"./p-CZfYo5-1.js";import{S as C}from"./p-CE-MNrID.js";import"./p-DMf85Fkr.js";import"./p-hj8k0lRi.js";import"./p-BRhnhmpB.js";import"./p-DCIW8z1f.js";import"./p-HXpYMWUU.js";const b=e();class w{async fetchQuote(s,t){return b.post({endpoint:"insurance/quotes",body:t,authToken:s})}async toggleCoverage(s,t,i){return b.post({endpoint:`insurance/quotes/${t}/toggle`,body:i,authToken:s})}}const T=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(C,{width:"35%",height:"30px"})),s("div",{class:"col-12"},s(C,{width:"70%"})),s("div",{class:"col-12"},s(C,{width:"40%"})),s("div",{class:"col-12"},s(C,{width:"40%"})),s("div",{class:"col-12"},s(C,{width:"100%"})),s("div",{class:"col-12"},s(C,{width:"80%"}))),M=class{constructor(s){t(this,s),this.insuranceUpdated=i(this,"insurance-updated"),this.errorEvent=i(this,"error-event"),this.isLoading=!0}async validate(){return m()}processHTMLContent(s){return d(s,[s=>u(s,"style"),s=>v(s,"a","part",_),s=>v(s,"p","part",_)])}componentWillLoad(){c(),this.analytics=new h(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeServiceMethods(){const s=this.authToken||l.authToken;if(!s)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const t={authToken:s,service:new w};this.getQuote=(({authToken:s,service:t})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const h=await t.fetchQuote(s,i);if(h.error)return o({error:n(h.error),code:a(null===(c=h.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:h.data})}catch(s){const t=a(null==s?void 0:s.code);return o({error:s.message||s,code:t,severity:r.ERROR})}})(t),this.toggleCoverage=(({authToken:s,service:t})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var h;try{const l=await t.toggleCoverage(s,i,e);if(l.error)return c({error:n(l.error),code:a(null===(h=l.error)||void 0===h?void 0:h.code),severity:r.ERROR});o({quote:l.data})}catch(s){const t=a(null==s?void 0:s.code);return c({error:s.message||s,code:t,severity:r.ERROR})}})(t)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||l.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:s})=>{this.quote=s,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),f[s.policy_type]=s.accepted,this.isLoading=!1},onError:({error:s,code:t,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}onChangeHandler(s,t){this.accepted=t,y[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),f[this.quote.policy_type]=this.accepted},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}get error(){var s;return y[null===(s=this.quote)||void 0===s?void 0:s.policy_type]}render(){var t,i,e,r;return l&&!1===l.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):s(g,null,this.isLoading?s(T,null):s("div",null,s(j,{text:null===(t=this.quote)||void 0===t?void 0:t.product.title,class:"fs-5 fw-bold pb-3"}),s("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),s("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:k},"Please select an option"),s("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{M as justifi_season_interruption_insurance}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-_b8l4IX7.js";import{c as t,a as c,F as i}from"./p-DiJD6Iqx.js";import{am as d}from"./p-CA_TyBed.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:c().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,c=t.name,i=t.files;a[c]=[];for(const e of i)a[c].push(new n(e,c))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new i(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"0701151c838584f2c15ae5e3ff3a806e655b1dfe"},a("div",{key:"40c863834d4a0dd48d0cb5073b7aa8d43f306826",class:"row gy-3"},a("div",{key:"65151bc575f0ce4ff11c0eeffe3ae25bd0191840",class:"col-12"},a("h2",{key:"6748c97c80ded43e019492bd24536d505022f44d",class:"h5",part:d},"Additional Evidence")),a("div",{key:"8d93d7560ef06fecbf7b43c66fb6bba783b5fc17",class:"col-12"},a("form-control-textarea",{key:"422c586a3820a3344adf6d48bf49dd33636d6562",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"68b91cd23d51018d746e0a4b53baa4fd8d28f2b7",class:"col-12"},a("form-control-file-v2",{key:"32a4bf53f4f9642af7381d75adb532c23ec21dc7",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:c().nullable(),cancellation_rebuttal:c().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new i(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"3f3b10445d89df70c60c4dff0719dbb32880aaf0"},a("div",{key:"adc8e2d164a5fa0a4452c11c91aabc2681af5987",class:"row gy-3"},a("div",{key:"0930cce7f709ebc178e353da02b9a04248df2aed",class:"col-12"},a("h2",{key:"cdb9ace025d5fe91bedf866c23156af7959280d1",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"980e35073d775f422c981298b4b937f14dd52974",class:"col-12"},a("form-control-textarea",{key:"f56144d1ed0625aa03f393d02589b3b6580424ac",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"b94141788ce77f8132ed2c6c7477e49bdfb56731",class:"col-12"},a("form-control-textarea",{key:"dc9d14b12a0e7eb2c7332d0610191eda46ed45bc",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"a1dae824aa1a23844b028036d1dba093cde3b015",class:"col-12"},a("form-control-file-v2",{key:"ce7896b8ba5d9e3070c53a8eb75a2b6b216f2f2b",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.cancellation_policy}))))}},u=t({customer_name:c().nullable(),customer_email_address:c().nullable(),customer_billing_address:c().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new i(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i,s;return a("div",{key:"43f1c26c5415eac4654f0f5947ac0addcaf3b34c"},a("div",{key:"8fee41ca6d0f88ed26d4daec0c09a8902ef455a3",class:"row gy-3"},a("div",{key:"62812f9023a6e414d8fdcca9b3bcb82abb05dbd2",class:"col-12"},a("h2",{key:"969514698a6e6c67018aeb651c0a3afb4c1e5811",class:"h5",part:d},"Customer Details")),a("div",{key:"a7c1780fb747a67e9a2ebbdd3cebca8f046807ce",class:"col-12"},a("form-control-text",{key:"3e1618fce6c07ea5aa4282992defcd66e8caf3b4",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"e1a599c3b8561625010d237949d23888873e5646",class:"col-12"},a("form-control-text",{key:"9b829f4326c2d5adc60df203ce2a06cb4f563a9b",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"a21a0dc6c46257939ac638367428f04e93f51a8b",class:"col-12"},a("form-control-textarea",{key:"a9adb60757f60573514d0eddbc8ceb42d5da1c7b",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"9f31a99f7583c289106715ba13bce24c38d19298",class:"col-12"},a("form-control-file-v2",{key:"316714c50d1e3376196bf3d48a58623a68b11f03",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.customer_signature})),a("div",{key:"2264dcb54d957d878b491a94741163fd03234db8",class:"col-12"},a("form-control-file-v2",{key:"35d451de15d7003f236bae02fe6a216c6aa7bfce",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:c().nullable(),duplicate_charge_explanation:c().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new i(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"f92749f7fd0503b15bbfe993c95a602676d1efc9"},a("div",{key:"0fd4c0f8137c7ab2a14093f21b908fe31b816fa3",class:"row gy-3"},a("div",{key:"e6bdf0cee9a9c21f4508effd2ba2b16a72efdcb9",class:"col-12"},a("h2",{key:"cd9df12a4b8ce72981e87317de500639577b0cf2",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"0610126a79d2b0281daa89a13eccb8178fda98b2",class:"col-12"},a("form-control-text",{key:"b31165845e60e496c20536a6c33ccf0e9ba9b22e",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"a45ef37fcebc4ea005644c3d3d7391272afb1860",class:"col-12"},a("form-control-textarea",{key:"6efbc623051dc552f06ca7c9b958789af2c5e92e",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"9d871317463940d04380aa1bc1f733ea93149769",class:"col-12"},a("form-control-file-v2",{key:"c6938fd5a5e1b2fdbbd7e396513aa0b90f8db22f",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:c().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new i(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"c0007b1394ef881d14b34592c65e1de1b1dd922e"},a("div",{key:"7a78993c7df8b5a695243eb2c8c27e9fb409b508",class:"row gy-3"},a("div",{key:"407d7f4153099870a2318b283d16ec6fcee1f0e2",class:"col-12"},a("h2",{key:"0d9cb826eeb066cce6a5e706d4e8080387272507",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"8e5cb60db05a6cb130259874650704eefb413632",class:"col-12"},a("form-control-text",{key:"b88d48627b79768a5b5c1fd5b4d2cca1cb025c13",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"474e78766908fb2ba6eb2f4011b4d852d02814db",class:"col-12"},a("form-control-file-v2",{key:"cdd3d6a9fb17cfd66432db435acd4005e7cc71b8",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:c().nullable(),service_date:c().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new i(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"3560b76ef6eb095e247058bd65138baca3270d26"},a("div",{key:"340ff32d302a7c255f4e3d2f7c6e32ed42ecd812",class:"row gy-3"},a("div",{key:"4dd1cd92df58c39920940715c74b1cdc19206ea5",class:"col-12"},a("h2",{key:"d5f577c5169664f1d84bf64bdc85758c5033be9e",class:"h5",part:d},"Product & Service Details")),a("div",{key:"4a3c80fe6e8714adb4f195cafd6d0fe419f0d392",class:"col-12"},a("form-control-text",{key:"637118ed43962371b9232fce583f65ee810132ca",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"7a52049834ea6a7ec1805f3a2e9aa4b827c5dc7b",class:"col-12"},a("form-control-date",{key:"8eefafabd31fe7a9be19de0d13a1cecb6f61c043",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"b445d6ffb5866da1e94e64d87e4d120e1f1e8993",class:"col-12"},a("form-control-file-v2",{key:"db218fa96ddaf2383a7f053ca4115333657e916b",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.service_documentation}))))}},x=t({refund_policy_disclosure:c().nullable(),refund_refusal_explanation:c().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new i(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i;return a("div",{key:"47624ab9ecb43e67c11b92a779f306c3dfdf2983"},a("div",{key:"ed48b88318c23510deb37d4dc0f573a656b9f52a",class:"row gy-3"},a("div",{key:"d95b83dd2996710485c66bd853bd5c06f52b69e2",class:"col-12"},a("h2",{key:"38dfdfc96d1f082a05c10709cba186eb97efafa2",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"61ee95c2f40109d36dd9649f91ba92a2daae8fb6",class:"col-12"},a("form-control-textarea",{key:"cb8a8d8e695dd1c8b4db4471cfb052a9983f38d2",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"4f88c32fdb04ac20fbc69be497f7d1a65a7de46e",class:"col-12"},a("form-control-textarea",{key:"4b6720ade82fa44869b86289ec8f29fb53be9dc1",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"fc70d14e807749f441d0d25e86dc99dc3168eceb",class:"col-12"},a("form-control-file-v2",{key:"46d8bd0af0da9693e0efffd24a43214b487b968e",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.refund_policy})),a("div",{key:"0d3f4c43419df58245f4a2c6efca51052ec926f3",class:"col-12"},a("form-control-file-v2",{key:"770130dfa0920d22681614a71091c60af5057b1d",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.receipt}))))}},O=t({shipping_carrier:c().nullable(),shipping_tracking_number:c().nullable(),shipping_date:c().nullable(),shipping_address:c().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new i(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i,s;return a("div",{key:"5d6f7387470632f1477d70e63884e7f220bbf3c3"},a("div",{key:"33435f8d374285ea7da21ba19077ce6a7d64f877",class:"row gy-3"},a("div",{key:"dd9e36fcb5a920815b65f2da7ffaae6624762b2e",class:"col-12"},a("h2",{key:"fc9f218047ccbb8d36f9ae659cae8608c4a17c98",class:"h5",part:d},"Shipping Details")),a("div",{key:"3837754c1ca9827c6eefe8bd015753e757f6ecce",class:"col-12"},a("form-control-text",{key:"f92430e331cdc1e548823ee50e19bf6a0138061c",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"4b75c4ba88d83560288e567f06d3aa8bd60c02d3",class:"col-12"},a("form-control-text",{key:"9c20d40ec5e39b8eda0324f83c9bcc7ae0aaec97",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"c2ea40c473883b76644794473b6a61b44a00a9fa",class:"col-12"},a("form-control-date",{key:"8bb7a4f77956e6ad738bb216143bd81dd06c9b8a",label:"Date Shipped",name:"shipping_date",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"0f488c098004accd493d17b43e9f5e03c8aa2e04",class:"col-12"},a("form-control-textarea",{key:"06668e8e56aabab9d618b35c0b179476595a5af5",label:"Shipping Address",name:"shipping_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"c6c0191e78a0dad7d915ad146181c9c702b5f946",class:"col-12"},a("form-control-file-v2",{key:"816cf6e130f8c986811c161499d9325d7dd5d7fc",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as s}from"./p-_b8l4IX7.js";import{W as a,X as i,Y as f}from"./p-CA_TyBed.js";const c=class{constructor(s){e(this,s),this.selectedQuantityChange=t(this,"selectedQuantityChange"),this.limit=1/0,this.selectedQuantity=0,this.removeUnit=()=>{this.selectedQuantity>0&&(this.selectedQuantity--,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.addUnit=()=>{this.limit>0&&(this.selectedQuantity++,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))}}render(){return s("div",{key:"f05ebce500fb462f6e92351386b14ea0f1968139",class:"rounded shadow-sm card p-2",part:f},s("div",{key:"ebf32f2ac9ee978f08d4c146d6022fb0ad92774f",class:"d-flex gap-3"},s("div",{key:"adb4e21d7ea60318b9b977f9f5fe7f52261a1949",class:"d-flex align-items-center"},s("img",{key:"6e64b6e9b56a651708529d14919ba97feeb44862",src:this.imageUrl,alt:this.modelName,height:75,width:75,part:a})),s("div",{key:"cd4bdf915458e857b8986a65e8127409782c73ae",class:"d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center"},s("div",{key:"f6f70ca349493eea14d08d71b156a45c0c0d6852",class:"row"},s("div",{key:"45b80f642748e9ef52df59e79fd2133d7f6d42b4",class:"col-6 d-flex gap-2"},this.modelName,s("form-control-tooltip",{key:"f48f14c05bae0b817208d37b159b90fa52155b5c",helpText:this.description})),s("div",{key:"340152ebf444ecae6118d7b0411cbc892dae08dc",class:"col-6 d-flex justify-content-end align-items-center"},s("button",{key:"fb16cb533eb0b4b6f4826323ff181bda7925b672",class:"p-0 minus btn",onClick:this.removeUnit,part:i},"-"),s("div",{key:"13ff697e39207f42e1e805169ebcf559b3b864a5",class:"w-25 text-center"},this.selectedQuantity),s("button",{key:"248a028259b6bbf3eff7cd42aef9d492bb11d298",class:"p-0 plus btn",onClick:this.addUnit,part:i},"+"))))))}};export{c as terminal_quantity_selector}
@@ -0,0 +1 @@
1
+ import{h as t,r as s,c as e}from"./p-_b8l4IX7.js";import{a as i,c as r,b as o}from"./p-C6g4MbnB.js";import{F as n,c as a,a as h,b as l}from"./p-DiJD6Iqx.js";import{A as c,C as d,e as u,R as m,f as p}from"./p-B5rtFhtR.js";import{C as f,P as b}from"./p-CVaOFfrI.js";import{C as v,l as y,T as g,Z as _}from"./p-CA_TyBed.js";import{S as w}from"./p-CE-MNrID.js";import"./p-CZfYo5-1.js";import{b as j,r as x,s as k,c as O}from"./p-CPpUGsw5.js";import{a as C,B as T}from"./p-XYgDHrVL.js";import{E as S,k as D,l as E}from"./p-BPDMo6us.js";import{B as L,C as B,z as H,D as P,E as V,F as A,G as W}from"./p-DxVCqvBt.js";import"./p-DMf85Fkr.js";import"./p-HXpYMWUU.js";import{C as F,a as I}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{c as q}from"./p-DfKxeSrC.js";import{B as U}from"./p-Dv1Fyrn3.js";import{d as M,e as R}from"./p-DzWLLt4t.js";import"./p-BFTU3MAI.js";import"./p-xWrhxNNk.js";import"./p-hj8k0lRi.js";class N{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.institution_number=t.institution_number,this.transit_number=t.transit_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",institution_number:this.institution_number||"",transit_number:this.transit_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const X=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"25%"})),t("div",{class:"col-12"},t(w,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(w,{width:"50%"}),t(w,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(w,{width:"65%"}),t(w,{width:"35%"}))),Y=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(w,{width:"40%",height:"40px"})),t(X,null),t(X,null),t(X,null)),G=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.additional_questions=new c(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:C.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s})),this.additional_questions=new c(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}recurringPaymentsWatcher(t){this.recurringPayments="Yes"===(null==t?void 0:t.business_recurring_payments)}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{additional_questions:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new n(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n,a;const h=this.formController.getInitialValues();return this.isLoading?t(Y,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Additional Questions"),t("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business’ estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==h?void 0:h.business_revenue,maskOptions:f.WHOLE})),t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==h?void 0:h.business_payment_volume,maskOptions:f.WHOLE})),t("div",{class:"col-12"},t("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:j,defaultValue:null==h?void 0:h.business_when_service_received})),t("div",{class:"col-12"},t("form-control-select",{name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_recurring_payments,options:x,defaultValue:null==h?void 0:h.business_recurring_payments})),t("div",{class:"col-12",hidden:!this.recurringPayments},t("form-control-text",{name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==h?void 0:h.business_recurring_payments_percentage,helpText:"For example: 50% monthly, 50% annual."})),t("div",{class:"col-12"},t("form-control-select",{name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:k,defaultValue:null==h?void 0:h.business_seasonal})),t("div",{class:"col-12"},t("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_other_payment_details,defaultValue:null==h?void 0:h.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},z=(t,s)=>t.some((t=>t.document_type===s)),J=t=>t?{bank_name:V.nullable(),nickname:P.nullable(),account_owner_name:H.nullable(),account_type:B.nullable(),account_number:L.nullable()}:{bank_name:V.required("Enter bank name"),nickname:P.required("Enter nickname"),account_owner_name:H.required("Enter account owner name"),account_type:B.required("Select account type"),account_number:L.required("Enter account number")},Z=(t,s)=>{if(s)return{voided_check:l().nullable(),bank_statement:l().nullable()};const e=z(t,S.voidedCheck),i=z(t,S.bankStatement),r=e||i,o="Please upload either a voided check or a bank statement. Only one is required.";return{voided_check:l().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(o),otherwise:t=>t.notRequired()}),bank_statement:l().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(o),otherwise:t=>t.notRequired()})}},K={[d.USA]:(t,s=[])=>((t,s)=>{const e=Object.assign(Object.assign(Object.assign({},J(s)),(t=>t?{routing_number:W.nullable()}:{routing_number:W.required("Enter routing number")})(s)),Z(t,s));return a().shape(e,[["voided_check","bank_statement"]])})(s,t),[d.CAN]:(t,s=[])=>((t,s)=>{const e=Object.assign(Object.assign(Object.assign({},J(s)),(t=>{const s=h().length(3,"Institution number must be 3 digits").matches(A,"Enter valid institution number"),e=h().length(5,"Transit number must be 5 digits").matches(A,"Enter valid transit number");return t?{institution_number:s.nullable(),transit_number:e.nullable()}:{institution_number:s.required("Enter institution number"),transit_number:e.required("Enter transit number")}})(s)),Z(t,s));return a().shape(e,[["voided_check","bank_statement"]])})(s,t)},Q=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new D,this.isLoading=!1,this.getSchema=()=>(0,K[this.country])(this.allowOptionalFields,this.existingDocuments),this.initializeFormController=()=>{this.formController=new n(this.getSchema()),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new E({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new N(t.data.bank_accounts[0]):(this.bankAccount=new N({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:I.POST_ERROR,message:s.error.message,severity:F.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await t.getFileData(),e=await fetch(t.presigned_url,{method:"PUT",body:s});return this.handleUploadResponse(e)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:I.POST_ERROR,message:t.error.message,severity:F.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new n(this.getSchema())}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){const t=this.formController.values.getValue();return new N(t).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:I.POST_ERROR,severity:F.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:C.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(Y,null):t("form",null,t("fieldset",{class:"mb-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Bank Account Info"),t("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),t("hr",{class:"mt-2"}),t(this.country===d.CAN?"bank-account-form-inputs-canada":"bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),t("fieldset",{class:"mt-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Document Uploads"),t("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),t("hr",{class:"mt-2"}),t("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),t("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},$=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.isEditingTaxId=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new u(t.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t(),this.isEditingTaxId=!1},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:C.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new u(this.formController.values.getValue()).payload}componentWillLoad(){const t=this.country===d.CAN?r(this.allowOptionalFields):o(this.allowOptionalFields);this.formController=new n(t),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e;const i=this.formController.getInitialValues();return this.isLoading?t(Y,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Business Information")),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:i.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),t("div",{class:"col-12"},t("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:i.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),t("div",{class:"col-12 col-md-8"},t("form-control-select",{name:"classification",label:"Business Classification",options:O,defaultValue:i.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-4"},t("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:i.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"industry",label:"Industry",defaultValue:i.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),t("div",{class:"col-12 col-md-6"},!(null===(s=this.coreInfo)||void 0===s?void 0:s.tax_id_last4)||this.isEditingTaxId?t("form-control-number-masked",{name:"tax_id",label:q[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:"000000000",helpText:q[this.country].taxIdHelpText}):t("div",null,t("label",{class:"form-label",part:y},q[this.country].taxIdLabel),t("div",{class:"input-group mb-3"},t("input",{type:"text",class:"form-control",part:g,value:`****${null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4}`,disabled:!0}),t("button",{class:"btn btn-secondary",type:"button",part:_,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:"",tax_id_last4:null}))}},"Change")))),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:i.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:b.US})))))}},tt=class{constructor(t){s(this,t),this.clickEvent=e(this,"click-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.matchRef=(t,s)=>{const e=this.refs.findIndex((t=>t===s));-1!==e&&(this.refs[e]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:C.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:T.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((s=>s.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)}}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const s=this.refs.map((t=>t.validate()));if(!(await Promise.all(s)).every((t=>t)))return;const e=this.refs.map((t=>t.submit()));(await Promise.all(e)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const s=t.detail,e=this.ownersPayload.map((t=>t.id===s.id?s:t));e.includes(s)||(e[this.ownersPayload.findIndex((t=>!t.id))]=s,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?t(Y,null):t("div",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Owners"),t("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},this.ownersPayload.map((s=>t("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,country:this.country,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),t("div",{class:"d-flex justify-content-start"},t("div",{class:"gap-2"},t(U,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},st=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new m(t.data.representative||{}),this.representative.address.country=this.country,this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:C.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new m(this.formController.values.getValue()).payload}}componentWillLoad(){this.formController=new n((0,M[this.country])("representative",this.allowOptionalFields)),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(Y,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController,country:this.country})}},et=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{const s=new p((t.data||{}).legal_address||{});this.legal_address=Object.assign(Object.assign({},s),{country:this.country}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:C.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new p(this.formController.values.getValue()).payload}}componentWillLoad(){this.formController=new n((0,R[this.country])(this.allowOptionalFields)),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){const s=this.formController.getInitialValues();return this.isLoading?t(Y,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Legal Address of your Business"),t("form-control-tooltip",{helpText:"No PO Boxes."})),t("hr",{class:"mt-2"}),t("justifi-form-address-fields",{country:this.country,errors:this.errors,defaultValues:s,inputHandler:this.inputHandler})))}};export{G as justifi_additional_questions_form_step_core,Q as justifi_business_bank_account_form_step_core,$ as justifi_business_core_info_form_step_core,tt as justifi_business_owners_form_step_core,st as justifi_business_representative_form_step_core,et as justifi_legal_address_form_step_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as a,g as i}from"./p-_b8l4IX7.js";import{i as r,a as o,b as h,c as d,l as n}from"./p-CA_TyBed.js";import{F as l}from"./p-D-RVXHwG.js";import{F as f}from"./p-BgFM_jvF.js";import"./p-CZfYo5-1.js";const c=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,e=s.getAttribute("name");this.inputHandler(e,s.value),this.formControlInput.emit({name:e,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.isFocused?o:this.errorText?h:d}render(){return e(a,{key:"4272ba30cf80097abd67fd184b927f4d41b3091b"},e("div",{key:"567b2b04d354e5c3352dd42431c92bd84fdb4d9d",class:"form-group d-flex flex-column"},e("label",{key:"0d3ee096554d638896e03002ed908f7379e406fd",part:n,class:"form-label",htmlFor:this.name},this.label),e("input",{key:"59ffd3ffe0beba8af97de7dd7ee12a2589c0d722",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),e(l,{key:"891b76120f5985007ad9101379a818e9e095cb46",helpText:this.helpText,name:this.name}),e(f,{key:"974fb8971bd4a369fb3dc838a2af03ca11d1f650",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{c as form_control_number}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-_b8l4IX7.js";import{T as i,a,b as r,c as h,d as o,e as c,f as d,g as n,h as p,i as f,j as m,k as b,l as u}from"./p-DWGKeoot.js";import{T as j}from"./p-CZfYo5-1.js";import"./p-DMf85Fkr.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BPDMo6us.js";import{p as l}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{t as g,a as y}from"./p-BdREtifE.js";import{o as k,g as C}from"./p-BwpdCtUc.js";import"./p-CA_TyBed.js";import"./p-CycBoHSW.js";import"./p-hj8k0lRi.js";import"./p-xWrhxNNk.js";import"./p-CtWnJFtW.js";const O=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminalOrders=[],this.loading=!0,this.paging=l,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new i(this.terminalOrders,this.columns,g,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(u,{key:"71743bd2440b3b00ecafe74ddf9a0f48a96dbe6c"},e(a,{key:"942af2def8486e3ff6d9cb9244bd88061b48db90"},e(r,{key:"32bcb4a7c21292ab9742dc509b921bd2f3b5ff5e"},e(h,{key:"978a80218e60edd29d8799130c98f4772b471586"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"ef5a80cbc4868cc75fdfc19d58a6cee8928546ef"},e(c,{key:"dd773a17e38a975dd3821a104bfad75d83ed907e",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(d,{key:"8a857149326cc110d2daf440875cd977b8f2e2d6",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(n,{key:"1c9dfccef7c8675539290f53d3b6c615261c713a",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(p,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"2ba8b5c118f45affadf0bdf6ec9d013d4ac98636"},e(m,{key:"a756ee19c1f4c36975f65aec354a4480f5563ea4"},e(b,{key:"7549ac667748d24c2f581eb13a5e0cd65c17697b",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"98178188d80869e44ceade1e225655a1f2d62ceb",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{O as terminal_orders_list_core}
@@ -0,0 +1 @@
1
+ import{r as e,h as a,H as t,c as l,g as s}from"./p-_b8l4IX7.js";import"./p-DMf85Fkr.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{E as o}from"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{a as n}from"./p-CPpUGsw5.js";import"./p-XYgDHrVL.js";import{n as c}from"./p-BnjCmwMr.js";import{z as i,Y as r,C as d,an as u,N as h,aw as b,c as m,l as f,b as p,T as v,a as y}from"./p-CA_TyBed.js";import{s as k,e as x,n as _}from"./p-xWrhxNNk.js";import{S as T}from"./p-CE-MNrID.js";import"./p-CZfYo5-1.js";import{F as g}from"./p-BgFM_jvF.js";import"./p-hj8k0lRi.js";const N=class{constructor(a){e(this,a)}render(){return a("div",{key:"4daf6eadf7e1213c3534bd845c917af0b1ec1fec",class:"row gy-3"},a("div",{key:"9d7235d40a0884960948eaac7dc990e947bf5165",class:"col-12"},a("form-control-file",{key:"e0e3704079e20c86dacec668d27ca23ef981aa2f",name:"voided_check",label:"Voided Check",documentType:o.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),a("div",{key:"5c4c20191c6c54170896a9c0f893a7fe06ff6a70",class:"col-12"},a("form-control-file",{key:"6d4ac9d3a47952644bab5afe4b23332a56c04035",name:"bank_statement",label:"Bank Statement",documentType:o.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},H=class{constructor(a){e(this,a)}render(){var e,t,l,s,o,i;return a("div",{key:"951373cbaf604ec2f34364fd93ac9ccf666a4e58",class:"row gy-3"},a("div",{key:"a2fbc555aeb3b9bed12f032385ea9889482e6caf",class:"col-12"},this.formDisabled?a("bank-account-read-only-value",{label:"Bank Name",value:null===(e=this.defaultValue)||void 0===e?void 0:e.bank_name}):a("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),a("div",{key:"c05c9e185293799ee94cbd8bec3976d115469b00",class:"col-12"},this.formDisabled?a("bank-account-read-only-value",{label:"Nickname",value:null===(t=this.defaultValue)||void 0===t?void 0:t.nickname}):a("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),a("div",{key:"b3cc026a1c2079ddcd744d7557742ac98073f03c",class:"col-12"},this.formDisabled?a("bank-account-read-only-value",{label:"Account Owner Name",value:null===(l=this.defaultValue)||void 0===l?void 0:l.account_owner_name}):a("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),a("div",{key:"f3649a91a8af13374eb55f06ecc81e6e06bd4b01",class:"col-12"},this.formDisabled?a("bank-account-read-only-value",{label:"Account Type",value:null===(s=this.defaultValue)||void 0===s?void 0:s.account_type}):a("form-control-select",{name:"account_type",label:"Account Type",options:n,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),a("div",{key:"34eb7df603e1d7d9bb616c51057dd5da9a2e3e3f",class:"col-6"},this.formDisabled?a("bank-account-read-only-value",{label:"Account Number",value:(null===(o=this.defaultValue)||void 0===o?void 0:o.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):a("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:c,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),a("div",{key:"64897a96be65ddd311267e5ea1571993ab61787d",class:"col-6"},this.formDisabled?a("bank-account-read-only-value",{label:"Routing Number",value:(null===(i=this.defaultValue)||void 0===i?void 0:i.routing_number)||""}):a("form-control-text",{name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:c,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},w=class{constructor(a){e(this,a)}render(){var e,t,l,s,o,i,r;return a("div",{key:"80b2030f1c1840df293a5ec600fe16836b502647",class:"row gy-3"},a("div",{key:"5a28a5b515856da7808fc49cf0f775f8c4c71daa",class:"col-12"},this.formDisabled?a("bank-account-read-only-value",{label:"Bank Name",value:null===(e=this.defaultValue)||void 0===e?void 0:e.bank_name}):a("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),a("div",{key:"62761912ccf0ee5ba1e5c13cbb08cde9687d05bd",class:"col-12"},this.formDisabled?a("bank-account-read-only-value",{label:"Nickname",value:null===(t=this.defaultValue)||void 0===t?void 0:t.nickname}):a("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),a("div",{key:"04472a07096890a51d2e2db463f7040a389fd4e1",class:"col-12"},this.formDisabled?a("bank-account-read-only-value",{label:"Account Owner Name",value:null===(l=this.defaultValue)||void 0===l?void 0:l.account_owner_name}):a("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),a("div",{key:"c2caa8ddb2b1038efb49e3361eab760108a34308",class:"col-12"},this.formDisabled?a("bank-account-read-only-value",{label:"Account Type",value:null===(s=this.defaultValue)||void 0===s?void 0:s.account_type}):a("form-control-select",{name:"account_type",label:"Account Type",options:n,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),a("div",{key:"2446720991bd2512f6bb8a779e47e526100dacb3",class:"col-3"},this.formDisabled?a("bank-account-read-only-value",{label:"Transit Number",value:(null===(o=this.defaultValue)||void 0===o?void 0:o.transit_number)||""}):a("form-control-text",{name:"transit_number",label:"Transit Number",defaultValue:this.defaultValue.transit_number,maxLength:5,errorText:this.errors.transit_number,inputHandler:this.inputHandler,keyDownHandler:c,helpText:"5 digits"})),a("div",{key:"98cda3809e604cc3e863f2d01698e217694b2550",class:"col-3"},this.formDisabled?a("bank-account-read-only-value",{label:"Institution Number",value:(null===(i=this.defaultValue)||void 0===i?void 0:i.institution_number)||""}):a("form-control-text",{name:"institution_number",label:"Institution Number",defaultValue:this.defaultValue.institution_number,maxLength:3,errorText:this.errors.institution_number,inputHandler:this.inputHandler,keyDownHandler:c,helpText:"3 digits"})),a("div",{key:"de285afb20fe922e3a8dd66727222e2f49567aae",class:"col-6"},this.formDisabled?a("bank-account-read-only-value",{label:"Account Number",value:(null===(r=this.defaultValue)||void 0===r?void 0:r.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):a("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:c,helpText:"Please copy the account number as shown on your statement. Do not include spaces or dashes."})))}},j=class{constructor(a){e(this,a)}render(){return a("div",{key:"0d44d4aa265a5fd36ca30f1db072eb834f8bdf1b"},a("label",{key:"892e6dbdbff5d484df4dfb522f3db8968f46d7d4",class:"form-label",part:i},this.label),a("div",{key:"cd617e2302834ad67ebccd64e24d535b2cc19da8",part:i},this.value||""))}},A=class{constructor(a){e(this,a),this.documents=[],this.isLoading=!1}render(){return this.isLoading?a(T,{height:"50px"}):this.documents.length?a(t,null,a("div",{class:"card",part:r},a("div",{class:"card-body"},a("h5",{class:"card-title",part:d},"Documents Already on File"),a("div",{class:"table-responsive"},a("table",{class:"table table-sm table-borderless",part:u},a("thead",null,a("tr",null,a("th",{style:{width:"25%"},part:h,scope:"col"},"File Name"),a("th",{style:{width:"25%"},part:h,scope:"col"},"File Type"),a("th",{style:{width:"25%"},part:h,scope:"col"},"Document Type"),a("th",{style:{width:"25%"},part:h,scope:"col"},"Date Uploaded"))),a("tbody",null,this.documents.sort(((e,a)=>e.document_type.localeCompare(a.document_type))).map(((e,t)=>a("tr",{class:0===t?"border-bottom border-top":"border-bottom"},a("td",{part:b},e.file_name),a("td",{part:b},e.file_type),a("td",{part:b},k(e.document_type)),a("td",{part:b},`${x(e.created_at)} - ${_(e.created_at)}`))))))))),a("hr",null)):null}},D=class{constructor(a){e(this,a),this.formControlInput=l(this,"formControlInput"),this.formControlBlur=l(this,"formControlBlur"),this.fileSelected=l(this,"fileSelected"),this.isFocused=!1,this.handleFormControlInput=e=>{const a=e.target,t=a.getAttribute("name");this.inputHandler(t,a.value),this.formControlInput.emit({name:t,value:a.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=m;return this.errorText&&(e=p),this.disabled&&(e=v),this.isFocused&&(e=y),e}render(){return a(t,{key:"c1d92b4464500d430ad828ce374b864f0abf79dc"},a("div",{key:"7753e5875afe4c6da178a088721b62590e104039",class:"form-group d-flex flex-column"},a("div",{key:"35732250f1da24e5d8af9d6c984360402aa8c749",class:"d-flex align-items-start gap-2"},a("label",{key:"1dbdb4c74c82415714295d882a48ea3634265cae",part:f,class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"132b4e5b01986aba2f1999db2f19373477b0af9d",helpText:this.helpText})),a("input",{key:"4c371be7c4d784fb7ba3dc3244aaab5ef7dea763",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),a(g,{key:"f9c2a057b20ccf863331c90156a5a9df65bb85a6",errorText:this.errorText,name:this.name})))}get el(){return s(this)}};export{N as bank_account_document_form_inputs,H as bank_account_form_inputs,w as bank_account_form_inputs_canada,j as bank_account_read_only_value,A as business_documents_on_file,D as form_control_file}
@@ -0,0 +1 @@
1
+ import{r,c as s,h as t}from"./p-_b8l4IX7.js";import{S as e}from"./p-DTwFW2k_.js";import"./p-CZfYo5-1.js";import{c as i,J as o}from"./p-BaM0JBLn.js";import{d as a}from"./p-BdREtifE.js";import"./p-DMf85Fkr.js";import"./p-HXpYMWUU.js";import{C as n,a as p}from"./p-Cjcsf8ku.js";import{h as m}from"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{A as l}from"./p-M5r2kSbf.js";import"./p-BRhnhmpB.js";import"./p-CA_TyBed.js";import"./p-xWrhxNNk.js";import"./p-CtWnJFtW.js";import"./p-hj8k0lRi.js";const d=l();class u{async fetchTerminalOrders(r,s,t){return d.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const f=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=a,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){i(),this.analytics=new o(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:e,onSuccess:i,onError:o,final:a})=>{var p,l;try{const a=await t.fetchTerminalOrders(r,s,e);if(a.error)return o({error:h(a.error),code:c(null===(l=a.error)||void 0===l?void 0:l.code),severity:n.ERROR});{const r=Object.assign({},a.page_info);i({terminalOrders:(null===(p=a.data)||void 0===p?void 0:p.map((r=>new m(r))))||[],pagingInfo:r})}}catch(r){const s=c(null==r?void 0:r.code);return o({error:r.message||r,code:s,severity:n.ERROR})}finally{return a()}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(e,{key:"325e00fe580784e2898131a717a3e69ec3636e58"},t("terminal-orders-list-core",{key:"b4b577b99e07a2eafe8454ee96fba467c83fe1a4",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{f as justifi_terminal_orders_list}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as a,H as i}from"./p-_b8l4IX7.js";import{I as e}from"./p-Ce_F4E0f.js";import{C as r}from"./p-CVaOFfrI.js";import{a3 as h,l as o,U as c,b as n,T as l,a as d}from"./p-CA_TyBed.js";import{F as f}from"./p-D-RVXHwG.js";import{F as p}from"./p-BgFM_jvF.js";import"./p-CZfYo5-1.js";const m=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.maskOptions=r.DECIMAL,this.initializeIMask=()=>{this.textInput&&(this.imask=e(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.formControlInput.emit({name:s,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}get inputPart(){let t=h;return this.errorText&&(t=n),this.disabled&&(t=l),this.isFocused&&(t=d),t}render(){return a(i,{key:"12d04cf0bc1dbc85acd1006148c411e00941ab70"},a("div",{key:"08d92fd3c4c764295cf291fc983f63ab58e4312e",class:"form-group d-flex flex-column"},a("label",{key:"1c7bddbfc094535558b24d3988dafe91f0cbde0a",part:o,class:"form-label",htmlFor:this.name},this.label),a("div",{key:"a1dfb4ab2de228f7ad138c12eb37403e9578c001",class:"input-group"},a("span",{key:"94e9009f2a6c782798dccaf6dfae472391f43078",class:"input-group-text",part:c},"$"),a("input",{key:"ebbc696bc1b695d20a758039465ae37a66be974a",ref:t=>this.textInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.inputPart,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),a(f,{key:"58f0977b34ab42051b1d4af9e5754d57d60e2fb5",helpText:this.helpText,name:this.name}),a(p,{key:"b3cdaa58f30edb185e2c89bca5d02a86c52cc8d0",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_monetary_provisioning}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as a}from"./p-_b8l4IX7.js";import{c as i}from"./p-DMf85Fkr.js";import"./p-HXpYMWUU.js";import{C as s,a as o}from"./p-Cjcsf8ku.js";import{g as r}from"./p-BPDMo6us.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as n,J as h}from"./p-BaM0JBLn.js";import{g as p,a as d}from"./p-D2muobcE.js";import{P as l}from"./p-CMpATPXy.js";import{T as f,l as u,a as m,b,c as y,d as _,e as w,f as T,g as j,h as k,i as v,j as g,k as C}from"./p-DWGKeoot.js";import{S as D}from"./p-DTwFW2k_.js";import{T as P}from"./p-CZfYo5-1.js";import{a as S}from"./p-xWrhxNNk.js";import{N as I,O as B}from"./p-CA_TyBed.js";import"./p-hj8k0lRi.js";import"./p-BRhnhmpB.js";import"./p-M5r2kSbf.js";import"./p-CycBoHSW.js";const F={id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:I,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:I,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:I,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:I,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:I,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:I,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},O={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},q={id:e=>t("td",{part:B(e.id)},e.id),account_id:e=>t("td",{part:B(e.account_id)},e.account_id),payout_id:e=>t("td",{part:B(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:B(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:B(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:B(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:B(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:B(e.currency)},e.currency),description:e=>t("td",{part:B(e.description)},e.description),source_id:e=>t("td",{part:B(e.source_id)},e.source_id),txn_type:e=>t("td",{part:B(e.txn_type)},O[e.txn_type]),created_at:e=>t("td",{part:B(e.created_at)},t("div",{class:"fw-bold"},S(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:B(e.available_on)},t("div",{class:"fw-bold"},S(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:B(e.updated_at)},t("div",{class:"fw-bold"},S(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.updated_at,{showTime:!0})))},x=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:P.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:P.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:P.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,F,q),n(),this.analytics=new h(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:o,onError:c,final:n})=>{var h;try{const n=await a.fetchPayoutTransactions(t,e,i);n.error?c({error:d(n.error),code:p(null===(h=n.error)||void 0===h?void 0:h.code),severity:s.ERROR}):o({balanceTransactions:n.data.map((t=>new r(t))),pagingInfo:Object.assign({},n.page_info)})}catch(t){const e=p(null==t?void 0:t.code);c({error:d(t),code:e,severity:s.ERROR})}finally{n()}})({accountId:i.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(o.MISSING_PROPS,this.errorMessage,s.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(D,{key:"35037a26a2ad1df0d5580bc9cbdf678b68d75703"},t(u,{key:"98cccf52e705665e09aa1b203f745c93ab6fa0b9"},t(m,{key:"7280cc3d85164c2b0433cf54e66f747d9bda8293"},t(b,{key:"180eb9f41e8dabc002ff69e5a6b6b36b46a6a6ce"},t(y,{key:"b1b9fa3bce94622657619b5652c27d2b2f4c75f1"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"ab53e54503eff3e104249160e043aa4050b9a2ed"},t(w,{key:"e178b2af718b595e9e3bb865f29b0db27d5a597b",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"4d17644347644ce12b168ec002e70ab49095eb70",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"c941389bfda963a3e607bed76d81d9d3d79e7ca3",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(k,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(v,{key:"87277e41a96e5f2bf20e71363c79bc7afbec948c"},t(g,{key:"43d1e1bc876e6f954592277dbd74e55252845172"},t(C,{key:"a11739b6f62786e537a94519b145c6d416786e3c",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"80e172cce8cd3ffd76caaa9c8bc20fbfc7dc76f5",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{x as justifi_payout_transactions_list}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as c}from"./p-_b8l4IX7.js";import{a4 as i,a5 as a,a6 as h,a7 as r,a8 as o,l as f}from"./p-CA_TyBed.js";const l=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.inputHandler(s,this.value),this.formControlInput.emit({name:s,value:this.value})}}get part(){return this.errorText?i:this.isFocused&&this.checked?a:this.checked?h:this.isFocused?r:o}render(){return e(c,{key:"1b798d4c7a78475795a0b667839e82bbc402749c",class:"form-group d-flex flex-column"},e("div",{key:"df37525372c220bb0fcbc54bc89d28b55c5b5407",class:"form-check"},e("input",{key:"af923ae2cb8677fd9e943c912ef9c117dc8eb9d5",ref:t=>this.radioElement=t,type:"radio",id:`${this.name}-${this.value}`,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onChange:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,value:this.value,checked:this.checked}),e("label",{key:"06aec18092d38c386cb3dbeb7712a356f6615f82",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:f},this.label)),e("form-control-help-text",{key:"63356fa988cecc235ff01b7f9eb4c344d62a18c0",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"61c5b0fac0b21856660dd6b9c64c2202f82324b2",errorText:this.errorText,name:this.name}))}};export{l as form_control_radio}
@@ -0,0 +1 @@
1
+ import{h as e,r as t,c as a}from"./p-_b8l4IX7.js";import{e as s,d as c,s as d}from"./p-xWrhxNNk.js";import{M as i}from"./p-PdQT2QcR.js";import{a as f,b,D as l,c as h,C as r,E as o}from"./p-D1Na2I0C.js";import{S as y}from"./p-DTwFW2k_.js";import"./p-CZfYo5-1.js";import{S as n}from"./p-CE-MNrID.js";import{a as p,B as k}from"./p-CtWnJFtW.js";import"./p-HXpYMWUU.js";import"./p-CA_TyBed.js";const v=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(n,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(n,{width:"70%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"100%"})),e("div",{class:"col-12"},e(n,{width:"80%"}))),u=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event"),this.loading=!0}componentWillLoad(){this.getPaymentDetails&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a})},final:()=>{this.loading=!1}})}render(){return e(y,{key:"25ed5c9e906407f662ef7ebbaa25f2213e5cccc9"},this.loading&&e(v,{key:"b5c123d3ed3e0f652c381cb55203155e12274d22"}),!this.loading&&this.errorMessage&&o(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"baf306757436e341879261f25890f32e84506f6e","error-message":this.errorMessage},e(f,{key:"59ffd1cefafce8bdb5f61967705539a13c5a9874",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},i(this.payment.status),this.payment.expedited?e(p,{variant:k.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(b,{key:"0c1eb1feda928bae7a99de1b01263521e321c4f7",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payment.updated_at)} ${c(this.payment.updated_at)}`}),e(b,{key:"d5e18d093518c6f100b60ad024b6767e6309b1f8",classes:"border-1 border-end",title:"Created At",value:`${s(this.payment.created_at)} ${c(this.payment.created_at)}`}),e(b,{key:"d70449e817bf505f1c9c2784ef1a59e5223c3393",title:"ID",value:this.payment.id})),e("div",{key:"16b88c7204b8bd5216bfd6e53e29d8feea7a1e5d",slot:"detail-sections"},e(l,{key:"eb6f996248478b0508f429e6924da3a9adfd9f09",sectionTitle:"Details"}),e("div",{key:"cf3f17085930ac40cebefe920704284f747a1042",class:"d-table gap-2 w-100"},e(h,{key:"56897b69bc9ef5b51156ef4e77f24537b8b72df7",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(h,{key:"36e9ac617d83ac03361724525f4833a1795aa93f",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(h,{key:"a7c47250572be737b7f609f4cc70fd920562f620",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(h,{key:"bdd0df4024cbe8f7d8bee2f201b3d9a79fc61d2c",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(h,{key:"2c03f3bfaabb5fb37358adcb72d7f9eb880dfcc4",title:"Status",value:i(this.payment.status)}),e(h,{key:"c4ad1d92e7c4429a0093f60b4c94682f8bd8daec",title:"Payment ID",value:this.payment.id}),e(h,{key:"8c7f1531e67e1647b2ca1b0690bcdea8351e32cb",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(h,{key:"f58f18b2b550efdf8e6ffc31f2c6807dafec3755",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(h,{key:"b3ca89e74ae93e27bdf58de8b0d29cf21ce1c7c2",title:"Description",value:this.payment.description}),e(h,{key:"58e1993dee67555d69fb20c560953a7de5658ee2",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(l,{key:"0e9b3abf65e6592cc5cbed82c5a183f6d05c8fc2",sectionTitle:"Payment Method"}),e("div",{key:"91fc3faffc6bd2a0c515229efa03a6c1a59c555c",class:"d-table gap-2 w-100"},e(h,{key:"f67dfc71504d76159689766c25180dcf2e531409",title:"ID",value:this.payment.payment_method.card.id}),e(h,{key:"e78c847e0a48544592303b7548bbc72b7c6495c9",title:"Payment Type",value:"Card"}),e(h,{key:"160a4fd630c256c53bb7379ecec7985f8e78c42f",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(h,{key:"d3317e6b4186113d1376ded0ccdaed2af2735f38",title:"Brand",value:d(this.payment.payment_method.card.brand)}),e(h,{key:"d6aaf539523dabf5b79070b9512438a8c043e0e6",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(l,{key:"17de969fc0e95f5ab2afdbdb0d486f2d0fdd7b65",sectionTitle:"Payment Method"}),e("div",{key:"796fba5c17545a37996a2b197721f64031e8e0e3",class:"d-table gap-2 w-100"},e(h,{key:"5144c207cedc0aa80b9252d216857eba2477bf7a",title:"ID",value:this.payment.payment_method.bank_account.id}),e(h,{key:"9b06231a073e33adcaca4bc09db654ef65c3738f",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(h,{key:"880c481c9677b629406e90cd13c672850fc5b762",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(h,{key:"3d59ecf1db015154b33a141f445d0f1d9671e7e0",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(l,{key:"7597a4e86d8cda118144a80499a98dd9aa67c442",sectionTitle:"Metadata"}),e("div",{key:"421c20438ef533975a22796dc4fd10a7fa9fce1d",class:"d-table gap-2 w-100"},e(r,{key:"268c3efaa09969a1c8cdddb1faeccc48e7a90701",metadata:this.payment.metadata}))])))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{u as payment_details_core}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-_b8l4IX7.js";import{u as t,a as s,b as l}from"./p-C77ElQ41.js";import{P as i,I as o}from"./p-CVaOFfrI.js";import{C as d,l as r,T as c,Z as n}from"./p-CA_TyBed.js";import{c as f}from"./p-DfKxeSrC.js";import"./p-B5rtFhtR.js";const b=class{constructor(a){e(this,a),this.isEditingIdentification=!1,this.inputHandler=(e,a)=>{t(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{s(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,s,b,u,m,h,p,v,y;return a("form",{key:"7f2a20427197ce4f402c1b4b859839d506613769"},a("fieldset",{key:"fe71959a012c1961b6f91d98862ca4ea9411bf6d"},a("div",{key:"801fb53d33eeff75f82552da84210abfb1daa55d",class:"d-flex align-items-center gap-2"},a("legend",{key:"63486b252a7c4f71e944712a833a2edc762c1692",class:"mb-0",part:d},"Representative"),a("form-control-tooltip",{key:"9a22a232bb856c05ca8c75a0255ea8a2b33b8a80",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),a("hr",{key:"b29a6dcd41991b2874cb64fc3cd058f3bcf10a48",class:"mt-2"}),a("div",{key:"52e2b29c6f915f50e1f33c19363657e657355b85",class:"row gy-3"},a("div",{key:"9531872c804ef3713c0778c6bff1d3ca589bb3d5",class:"col-12 col-md-8"},a("form-control-text",{key:"d1eedf80da0790767a6c294f084c4b9d4112b9cf",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"b5effb996c7b97cd5a8815781474ea32e5bc37b6",class:"col-12 col-md-4"},a("form-control-text",{key:"554a6fe90a0c68a32ae7e6b0401e43a8a2d6c7fe",name:"title",label:"Title",defaultValue:null===(s=this.representativeDefaultValue)||void 0===s?void 0:s.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),a("div",{key:"6025d1b2b67120a9e9e25d0a6e3e352651759c62",class:"col-12 col-md-6"},a("form-control-text",{key:"ed758eafa726ee6801c16535fbba7d05886c21d5",name:"email",label:"Email Address",defaultValue:null===(b=this.representativeDefaultValue)||void 0===b?void 0:b.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"933650753a5fdc6f75db658baf536ce4033e0e6c",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"81ba9debb6c8fd8225c67a0c0a6b8612e87fc3f0",name:"phone",label:"Phone Number",defaultValue:null===(u=this.representativeDefaultValue)||void 0===u?void 0:u.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:i.US})),a("div",{key:"913c766d6eb5fe5f132eafecba91145a6c418dae",class:"col-12 col-md-4"},a("form-control-date",{key:"c50e5ad2022906d753b783e7892be8322d80661c",name:"dob_full",label:"Birth Date",defaultValue:null===(m=this.representativeDefaultValue)||void 0===m?void 0:m.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>l(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"74492ad88a4962c2abfd04319880edb757d78796",class:"col-12 col-md-8"},!(null===(h=this.representativeDefaultValue)||void 0===h?void 0:h.ssn_last4)||this.isEditingIdentification?a("form-control-number-masked",{name:"identification_number",label:f[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":null===(p=this.representativeDefaultValue)||void 0===p?void 0:p.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:o[this.country],helpText:f[this.country].identityHelpText}):a("div",null,a("label",{class:"form-label",part:r},f[this.country].idNumberLabel),a("div",{class:"input-group mb-3"},a("input",{type:"text",class:"form-control",part:c,value:`****${null===(v=this.representativeDefaultValue)||void 0===v?void 0:v.ssn_last4}`,disabled:!0}),a("button",{class:"btn btn-secondary",type:"button",part:n,onClick:()=>{this.isEditingIdentification=!0,t(this.formController,{ssn_last4:null,identification_number:""})}},"Change")))),a("div",{key:"ad29d30e0748004e9c0d429804210f269581ff12",class:"col-12"},a("justifi-identity-address-form",{key:"aaad43f4c150cf08cbdd321a887eaadc51436c88",errors:this.errors.address,defaultValues:null===(y=this.representativeDefaultValue)||void 0===y?void 0:y.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}};export{b as justifi_business_representative_form_inputs}
@@ -0,0 +1 @@
1
+ import{r as e,h as t}from"./p-_b8l4IX7.js";import{B as a}from"./p-Dv1Fyrn3.js";import{ag as r,ah as s}from"./p-CA_TyBed.js";const c=e=>{const t=["after_cursor","before_cursor"];return!!Object.keys(e).filter((e=>!t.includes(e))).length},d=class{constructor(t){e(this,t),this.showClearButton=!1}watchParamsHandler(e){this.showClearButton=c(e)}show(){this.menu.classList.add("show")}hide(){this.menu.classList.remove("show")}componentWillLoad(){this.showClearButton=c(this.params)}render(){return t("div",{key:"666d19b7f8dfa697155195faf6cafed8e001a3a1",class:"d-flex gap-2"},t("div",{key:"e8c5ce6acf0e981e974ec7dac626fa1133de91b1",class:"dropdown pb-3"},t("button",{key:"019fe2ecdeac0d436b343489de8c58c28299b3eb",type:"button dropdown-toggle",ref:e=>this.anchorButton=e,class:"btn btn-primary dropdown-toggle",part:r,"data-test-id":"open-filters-button","data-bs-toggle":"dropdown"},"Filters"),t("custom-popper",{key:"1264bdb0fad73a14857cd08774c5965b36e8e7cc",offset:[20,10],strategy:"fixed",anchorRef:this.anchorButton,trigger:"click"},t("form",{key:"a5474b3d320f0ef1ac44ce386a0fe06543c4dc56",class:"dropdown-menu",part:s,"data-test-id":"filter-menu",ref:e=>this.menu=e,onSubmit:e=>e.preventDefault()},t("slot",{key:"2bcaecc2051576ef38accd6195f041859c94ed32"})))),t("div",{key:"5adfbe93c5ec7e7b953e33a92d197dd52f12291f"},t(a,{key:"60ae8725304a6fe6ef1e994deab0151c2c5bebd1",variant:"secondary",onClick:()=>this.clearParams(),hidden:!this.showClearButton,"data-test-id":"clear-filters-button"},"Clear Filters")))}static get watchers(){return{params:["watchParamsHandler"]}}};export{d as table_filters_menu}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-_b8l4IX7.js";import{f as t,p as s,c as r}from"./p-BwpdCtUc.js";import{q as l,u as d,v as i,w as o,x as p}from"./p-CA_TyBed.js";import{S as c}from"./p-DTwFW2k_.js";import"./p-CZfYo5-1.js";import"./p-DMf85Fkr.js";import{c as f,a as b}from"./p-xWrhxNNk.js";import"./p-Cjcsf8ku.js";import{T as n,b as m}from"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-hj8k0lRi.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=f(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:n.created},{label:"Completed",value:n.completed},{label:"Submitted",value:n.submitted},{label:"In Progress",value:n.in_progress},{label:"On Hold",value:n.on_hold},{label:"Canceled",value:n.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:m.boardingOnly},{label:"Boarding Shipping",value:m.boardingShipping}]}render(){const e=Object.assign({},t);return a(c,{key:"920c99fe5fd7e8392cf4c7dffa2e1b36c7415e1f"},a("table-filters-menu",{key:"c01527296d2abc356b5d717280d631e385dd38ec",params:e,clearParams:r,part:l},a("div",{key:"cb73d65ed0097c0112ba8a6990002d7043cffe9a",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"96baa82b72d585e081b33397c62d05538c11f7a0",class:"p-2"},a("form-control-select",{key:"134efdeaf6d72e17a123ee33f07eeb7e7725bd8a",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||t.order_status,disabled:!!this.orderStatus,part:d})),a("div",{key:"be7eaa48c38e424133dd898536c43487517097c6",class:"p-2"},a("form-control-select",{key:"dd54b28b9f54e5dbd320e48ade099cda1cf37a1d",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||t.order_type,disabled:!!this.orderType,part:i})),a("div",{key:"cf26545dca2f274b54c987fb6ea3a280f527025a",class:"p-2"},a("form-control-date",{key:"b61c7f8bd814c5b7bd5baf63453fa1aa4247b8a8",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:b(this.createdAfter,{showInputDateTime:!0})||b(t.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"ddeb93a70d8d20e9c5d43fd5c8c8639c94174026",class:"p-2"},a("form-control-date",{key:"8ebf3a23e3c2cfb178da6be69fa9e40caae65d0f",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:b(this.createdBefore,{showInputDateTime:!0})||b(t.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:p})))))}};export{u as justifi_terminal_orders_list_filters}
@@ -1 +1 @@
1
- import{r as t,h as r}from"./p-qipqIMyC.js";const s=class{constructor(r){t(this,r)}render(){return this.helpText?r("small",{class:"form-text text-muted",id:`form-help-text-${this.name}`},this.helpText):null}};export{s as form_control_help_text}
1
+ import{r as t,h as r}from"./p-_b8l4IX7.js";const s=class{constructor(r){t(this,r)}render(){return this.helpText?r("small",{class:"form-text text-muted",id:`form-help-text-${this.name}`},this.helpText):null}};export{s as form_control_help_text}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-_b8l4IX7.js";import"./p-DMf85Fkr.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BPDMo6us.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as f,i as u,j as m,k as b,l as g}from"./p-DWGKeoot.js";import{T as y}from"./p-CZfYo5-1.js";import{c as k,a as j}from"./p-JSXyHheQ.js";import{o as l,g as C}from"./p-DNPS-Ypi.js";import"./p-hj8k0lRi.js";import"./p-xWrhxNNk.js";import"./p-CA_TyBed.js";import"./p-CycBoHSW.js";import"./p-CtWnJFtW.js";const S=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:y.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,k,j),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"9d3a3574320cbb521457bb130ff5bfe9eca0ad71"},e(r,{key:"c52b7ed59ea7c68607506751754a4f5bbc46f394"},e(h,{key:"24d2ee3ae48ed8687e43ee209a0260d2969a2b96"},e(o,{key:"dcaf7c316283c7fac6bd8be6e119c965eb91590f"},this.checkoutsTable.columnData.map((t=>t)))),e(c,{key:"57cf5bf625cf994aa0abb5e5d71dad0ffe2eb049"},e(n,{key:"4a33477c76c38205d907d38d122f03339a57a65c",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"e48a334af552ef4e747f069a88d4aa1638d09b0d",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(d,{key:"dd2892c5e9bdfa46e4faf465a6e9411890461ea5",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(u,{key:"17b824a591a68fe3ecf8c4b15d3404d27378d25f"},e(m,{key:"425c02a9cc4992896847d4b7cc114f55e165687b"},e(b,{key:"78bcf9f3dae3c166a57ebd4bc39453d0f8f29d6b",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"4ea9982a48440c1fa4ef7f4919e24c06a783d707",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{S as checkouts_list_core}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as r}from"./p-_b8l4IX7.js";import{A as o}from"./p-M5r2kSbf.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{E as p}from"./p-D1Na2I0C.js";import{c as h,J as c}from"./p-BaM0JBLn.js";import"./p-DMf85Fkr.js";import"./p-hj8k0lRi.js";import"./p-xWrhxNNk.js";import"./p-HXpYMWUU.js";import"./p-CA_TyBed.js";import"./p-BRhnhmpB.js";const m=o();class u{async fetchGrossVolumeChartData(s,t){return m.get({endpoint:`account/${s}/reports/gross_volume`,authToken:t})}}const d=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var p;try{const h=await r.fetchGrossVolumeChartData(s,t);h.error?e({error:n(h.error),code:a(null===(p=h.error)||void 0===p?void 0:p.code),severity:i.ERROR}):o(h.data)}catch(s){const t=a(null==s?void 0:s.code);e({error:n(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_gross_payment_chart}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as a,H as i}from"./p-_b8l4IX7.js";import{c as s,F as r}from"./p-DiJD6Iqx.js";import{q as d,H as c,k as n,l,n as o,z as h}from"./p-DxVCqvBt.js";import{r as f,ay as b}from"./p-CA_TyBed.js";import{S as m}from"./p-DTwFW2k_.js";import"./p-CZfYo5-1.js";import{S as u}from"./p-CE-MNrID.js";import{c as p,J as y}from"./p-BaM0JBLn.js";import{w as k,c as v}from"./p-DMf85Fkr.js";import{H as g}from"./p-CkiX8OGy.js";import{n as _}from"./p-BnjCmwMr.js";import{S as j}from"./p-B5rtFhtR.js";import{B as x}from"./p-Dv1Fyrn3.js";import{c as w}from"./p-CQUZeo9r.js";import"./p-BFTU3MAI.js";import"./p-DfKxeSrC.js";import"./p-CPpUGsw5.js";import"./p-BRhnhmpB.js";import"./p-M5r2kSbf.js";import"./p-xWrhxNNk.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BPDMo6us.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-hj8k0lRi.js";import"./p-DCIW8z1f.js";const C=class{constructor(a){e(this,a),this.radioClick=t(this,"radio-click"),this.checked=!1,this.hidden=!1,this.handleClick=()=>{this.radioClick.emit(this.value)}}render(){return a(m,{key:"b0501b66bcfdd697d88c01835b8f97fb2c0861ab"},a("div",{key:"ada4dda7868086b1ea4cadd6c8824f87d3cb2301",class:`radio-list-item p-3 ${this.class||""}`,part:f,onClick:this.handleClick,hidden:this.hidden},a("form-control-radio",{key:"72c6d07dd2a664ca6bd2be9b446584d7344bc2b0",name:this.name,value:this.value,checked:this.checked,label:this.label,inputHandler:()=>null})))}},V=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new r(s({name:h.required("Enter full name"),address_line1:o.nullable(),address_line2:l.nullable(),address_city:n.nullable(),address_state:c.nullable(),address_postal_code:d.nullable()}))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return a(m,{key:"06b875ab5179041ce4c44ace37e17238494541a1"},a("div",{key:"321c641aaeb8ed882322877a427812c2998da4aa",part:b,class:"mt-4"},a("form",{key:"b75303414b93c335ada237e9b3cb52cd0bcaa52b"},a("fieldset",{key:"e445030d7645425c20234448d328b865510e4585"},this.legend&&a("legend",{key:"c2a9c8062ba656488c1c4b708f2426482cdad4b8"},this.legend),a("div",{key:"5b20cbce02c04bbb8a9d4221e12b4a34fe3ece20",class:"row gy-3"},a("div",{key:"6a70c8e73c3bc3a9d898a7f7a714c33aa3375eb1",class:"col-12"},a("form-control-text",{key:"e6aea5a583925374101effde95322d5b5f6fd566",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})))))))}},H=e=>{const{isReady:t}=e;return t?null:a("div",{class:"container-fluid p-0"},a("div",{class:"row mb-3"},a("div",{class:"col-12 align-content-end"},a(u,{height:"18px",width:"120px"}),a(u,{height:"36px"}))),a("div",{class:"row"},a("div",{class:"col-12 align-content-end"},a(u,{height:"18px",width:"110px"}),a(u,{height:"36px"}))))},O=class{constructor(t){e(this,t),this.isReady=!1}async componentWillLoad(){await k(),this.iframeOrigin=v.iframeOrigin,p(),this.analytics=new y(this)}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((t=>{e.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}async validate(){const e=await this.accountNumberIframeElement.validate(),t=await this.routingNumberIframeElement.validate();return e&&t}async tokenize({clientId:e,paymentMethodMetadata:t,account:a}){return this.accountNumberIframeElement.tokenize(e,t,a)}render(){return a(m,{key:"0daa12da1ca699a05ca499425c4a37e4d913b2dd"},a(H,{key:"9d4ee0af94759d71d52130781401d322fcb5e397",isReady:this.isReady}),a("hidden-input",{key:"dc4ee0054cbc7acb214a1c410f8fd387677f92dc"}),a("div",{key:"b489311f205e0ffdaa4680621b706322bd3fc4ca",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},a("div",{key:"2d1b00b9705d1a94364f691d4ad705c339abbbce",class:"row mb-3"},a("iframe-input",{key:"21a66eb7d87b77c1ff1a1171a4cb84a4759853dd",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber`})),a("div",{key:"1ff36d49f7304e203cdefea46010100ed750ed68",class:"row"},a("iframe-input",{key:"2211a638c875e504e7e25e0704788d7a437b5806",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber`}))))}},M=class{constructor(t){e(this,t)}get showSimpleCardBillingForm(){return"card"===this.paymentMethodType&&this.hideCardBillingForm}get showSimpleBankAccountBillingForm(){return"bankAccount"===this.paymentMethodType&&this.hideBankAccountBillingForm}async getValues(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.getValues()}async fill(e){var t;null===(t=this.selectedFormRef)||void 0===t||t.fill(e)}async validate(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.validate()}render(){return a(i,null,a(this.showSimpleBankAccountBillingForm?"justifi-bank-account-billing-form-simple":this.showSimpleCardBillingForm?"justifi-card-billing-form-simple":"justifi-billing-form-full",{legend:this.legend,ref:e=>this.selectedFormRef=e}))}},N=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new r(s({name:h.required("Enter full name"),address_line1:o.required("Enter street address"),address_line2:l.nullable(),address_city:n.required("Enter city"),address_state:c.required("Select state"),address_postal_code:d.required("Enter postal code")})),this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){if(!this.formController)return null;const e=this.formController.getInitialValues();return a(m,null,a("div",{part:b,class:"mt-4"},a(g,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),a("form",null,a("fieldset",null,this.legend&&a("legend",null,this.legend),a("div",{class:"row gy-3"},a("div",{class:"col-12"},a("form-control-text",{name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-select",{name:"address_state",label:"State",options:j,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_postal_code",label:"ZIP",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:_})))))))}},B=class{constructor(t){e(this,t),this.variant="primary",this.type="button"}render(){return a(m,{key:"e3b353dac8bf4c078fed17a4854c6ee1891df140"},a(x,{key:"76bfcc8763775a3442fe7f8c307400c1fa829da0",variant:this.variant,isLoading:this.isLoading,clickHandler:this.clickHandler,class:this.class,type:this.type,disabled:this.disabled,style:this.customStyle},this.text))}},D=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new r(s({name:h.nullable(),address_line1:o.nullable(),address_line2:l.nullable(),address_city:n.nullable(),address_state:c.nullable(),address_postal_code:d.required("Enter postal code")}))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return a(m,{key:"69aa44d031f1841d4b59974fa49371636eed6c31"},a("div",{key:"2095e0159089400d141f4486ad4e3019a684ff2e",part:b},a("form",{key:"ae6fb56fabb52b9f2b3e63a5507bba26e75e9029"},a("fieldset",{key:"4a6232a78f884dbfae0363b445ed067e15a9aacd"},this.legend&&a("legend",{key:"68539c45a73cad427847374267a8aff03d1e1227"},this.legend),a("div",{key:"e469f109f2d3c5f780a6218269b698dcf956ef64",class:"row gy-3"},a("div",{key:"ee0614721f191a4b4bd8842de7fc2d8586b1ac26",class:"col-12"},a("form-control-text",{key:"954516264218d359d2299e6680643da1d1c8e1fd",name:"address_postal_code",label:"ZIP",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:_})))))))}},I=e=>{const{isReady:t}=e;return t?null:a("div",{class:"container-fluid p-0"},a("div",{class:"mb-3"},a(u,{height:"18px",width:"100px"}),a(u,{height:"36px"})),a("div",{class:"row"},a("div",{class:"col-4 align-content-end"},a(u,{height:"18px",width:"80px"}),a(u,{height:"36px"})),a("div",{class:"col-4 align-content-end"},a(u,{height:"36px"})),a("div",{class:"col-4 align-content-end"},a(u,{height:"18px",width:"30px"}),a(u,{height:"36px"}))))},L=class{constructor(t){e(this,t),this.isReady=!1}async componentWillLoad(){await k(),this.iframeOrigin=v.iframeOrigin,p(),this.analytics=new y(this)}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((e=>new Promise((t=>{e.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}async validate(){const e=await this.cardNumberIframeElement.validate(),t=await this.expirationMonthIframeElement.validate(),a=await this.expirationYearIframeElement.validate(),i=await this.cvvIframeElement.validate();return e&&t&&a&&i}async tokenize({clientId:e,paymentMethodMetadata:t,account:a}){return this.cardNumberIframeElement.tokenize(e,t,a)}render(){return a(m,{key:"b0b07a928be767102b59ec93ab0df6296b8418af"},a(I,{key:"03d37e42253a905ece1e6a9b1d654e84665470d6",isReady:this.isReady}),a("hidden-input",{key:"62f657a6c0a4d5b7a7bbf809abeb42eba0d22345"}),a("div",{key:"874cac5eac376c8c4e12d99f760cd3cd487a6521",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},a("div",{key:"dcada2d72eebe506fe4cab8ad6eb959c551e9e2d",class:"mb-3"},a("iframe-input",{key:"7e784726f8dd0c8b35832646bc99e0d2131c08f9",inputId:"cardNumber",ref:e=>this.cardNumberIframeElement=e,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber`})),a("div",{key:"2384099f3aa18b7d6bbc346f47ba9ff06e5b7e86",class:"row"},a("div",{key:"5fb523cd3f398894e5c7ee3e8a58d34581492410",class:"col-4 align-content-end"},a("iframe-input",{key:"a3b4aa06a5c85162d24e25a5261a9a2cc64a6b82",inputId:"expirationMonth",ref:e=>this.expirationMonthIframeElement=e,label:"Expiration",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth`})),a("div",{key:"3ccd6a19fce1c393a8c58534113239c518d51a4f",class:"col-4 align-content-end"},a("iframe-input",{key:"6d064b868c73b4431b476194602843b0f28729e0",inputId:"expirationYear",ref:e=>this.expirationYearIframeElement=e,label:"",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear`})),a("div",{key:"26cd762bec43890e96ab5c6903943b0f4cfa9672",class:"col-4 align-content-end"},a("iframe-input",{key:"826dfe08347461bc5a94296b181826b70a7d1f6f",inputId:"CVV",ref:e=>this.cvvIframeElement=e,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV`})))))}},S=class{constructor(a){e(this,a),this.checkboxChanged=t(this,"checkboxChanged"),this.label="Save New Payment Method",this.isChecked=!1,this.handleCheckboxChange=(e,t)=>{this.isChecked=t,w.savePaymentMethod=t,this.checkboxChanged.emit(this.isChecked)}}render(){return a(m,{key:"28c13afd8a8f21e5f67e362c19c6e6225838f472"},a("form-control-checkbox",{key:"205ae5a43d5634c4ec1e692d3e3b123e6b3adc34",label:this.label||"Save New Payment Method",name:"saveNewPaymentMethod",checked:this.isChecked,inputHandler:this.handleCheckboxChange}))}};export{V as justifi_bank_account_billing_form_simple,O as justifi_bank_account_form,M as justifi_billing_form,N as justifi_billing_form_full,B as justifi_button,D as justifi_card_billing_form_simple,L as justifi_card_form,C as justifi_radio_list_item,S as justifi_save_new_payment_method}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-_b8l4IX7.js";import{P as r}from"./p-BqbXuOZP.js";import{m as e}from"./p-DapORSs4.js";import{E as p}from"./p-D1Na2I0C.js";import{C as o,a}from"./p-Cjcsf8ku.js";import{c as h,J as m}from"./p-BaM0JBLn.js";import"./p-M5r2kSbf.js";import"./p-DMf85Fkr.js";import"./p-hj8k0lRi.js";import"./p-xWrhxNNk.js";import"./p-HXpYMWUU.js";import"./p-BPDMo6us.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-D2muobcE.js";import"./p-CA_TyBed.js";import"./p-BRhnhmpB.js";const n=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.paymentService=new r,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){h(),this.analytics=new m(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=e({id:this.paymentId,authToken:this.authToken,service:new r}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{n as justifi_payment_details}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as d,H as i}from"./p-_b8l4IX7.js";import{C as o}from"./p-ZpPDShvP.js";import{r as s}from"./p-CA_TyBed.js";import"./p-HXpYMWUU.js";const a=class{constructor(d){t(this,d),this.paymentMethodOptionSelected=e(this,"paymentMethodOptionSelected"),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}async resolvePaymentMethod(t){var e;return t.isValid?{token:null===(e=this.paymentMethodOption)||void 0===e?void 0:e.id}:{validationError:!0}}render(){var t,e,a;return d(i,{key:"3ac45b0d672d5780664205822c712d4afd01d5c0",class:"payment-method"},d("div",{key:"e0ad4b748d79c50ef963b16f33b7c322c6819b79",class:"radio-list-item p-3",part:s,onClick:this.onPaymentMethodOptionClick},d("form-control-radio",{key:"181ecb03715f1c3c8d3d9dbf802d8e4d0fd72ec1",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:`${o[null===(e=this.paymentMethodOption)||void 0===e?void 0:e.brand]||""} *${null===(a=this.paymentMethodOption)||void 0===a?void 0:a.acct_last_four}`})))}};export{a as justifi_saved_payment_method}
@@ -0,0 +1 @@
1
+ import{h as e,r as t,c as a}from"./p-_b8l4IX7.js";import{e as s,d}from"./p-xWrhxNNk.js";import{a as i,b as c,D as r,c as o,C as b,E as l}from"./p-D1Na2I0C.js";import{B as f}from"./p-Dv1Fyrn3.js";import{S as h}from"./p-DTwFW2k_.js";import"./p-CZfYo5-1.js";import{M as n}from"./p-fVyCeQNq.js";import{S as y}from"./p-CE-MNrID.js";import{a as p,B as v}from"./p-CtWnJFtW.js";import"./p-HXpYMWUU.js";import"./p-CA_TyBed.js";const u=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(y,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(y,{width:"70%"})),e("div",{class:"col-12"},e(y,{width:"40%"})),e("div",{class:"col-12"},e(y,{width:"40%"})),e("div",{class:"col-12"},e(y,{width:"100%"})),e("div",{class:"col-12"},e(y,{width:"80%"}))),k=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event"),this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})}}componentWillLoad(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}render(){var t;return e(h,{key:"5568a561f38c1d899171163d23b029766adb0e8a"},this.loading&&e(u,{key:"1c17be181850fde8e996b526d76c0452e7353e16"}),!this.loading&&this.errorMessage&&l(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"d507119400ed8885a0b0f3061f54c82cd2d151ca","error-message":this.errorMessage},e(i,{key:"2d6192cc947a78b0566401b07b661b5116378798",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},n(null===(t=this.payout)||void 0===t?void 0:t.status),e(p,"expedited"===this.payout.settlement_priority?{variant:v.WARNING,title:"Expedited",text:"Expedited"}:{variant:v.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(c,{key:"d25b191987931a853b16d40b819c5e88ca3bba70",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payout.updated_at)} ${d(this.payout.updated_at)}`}),e(c,{key:"a669dae8e5699ca83326a799e07f5b9efb673850",classes:"border-1 border-end",title:"Created At",value:`${s(this.payout.created_at)} ${d(this.payout.created_at)}`}),e(c,{key:"2952d01e2d98ca87ad2a8f1349144dd8a0d6d87e",title:"ID",value:this.payout.id}),e("div",{key:"376886d0c0dfee789825f007f7bf17847a0e4f74",class:"m-4"},e(f,{key:"2ceae9f29c2b07efeba427a97a8ed79cac27c736",variant:"secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"be5844790b248357d9d919830ee54f159f24268e",slot:"detail-sections"},e(r,{key:"3a450675b1811d87cd61692f7a36443d56412e7b",sectionTitle:"Details"}),e("div",{key:"c6fe4e20c5b7607cb7f7472a3f41245b1cccdf5c",class:"d-table gap-2 w-100"},e(o,{key:"aaa0e5d6d2d764e5b4ee430a21d94891cea55dd6",title:"Date paid",value:s(this.payout.deposits_at)}),e(o,{key:"92f7534cc1cd4463ff9f4187dec79520bc728d38",title:"Statement Description",value:this.payout.description}),e(o,{key:"d25daac9ecd7de9b3e379fbc6baeaba5f7c7db96",title:"Payout Method",value:this.payout.delivery_method}),e(o,{key:"a648fbfdae282870dd7471d8e6fe414ca3e225d6",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(o,{key:"4720bfeae9fcb545aaa84b373bdea0000ab803ae",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(r,{key:"54d6f97ad54c2018d873062d15c63143ad899c4f",sectionTitle:"Account"}),e("div",{key:"f46ec5329dc9a5301345fbff79cb95eada27c7d7",class:"d-table gap-2 w-100"},e(o,{key:"4b0432e3b43a54591bbcd007372d63359738e7f0",title:"ID",value:this.payout.account_id}),e(o,{key:"c4f24ea424336b398b73268869e42aa5efaba22c",title:"Account Type",value:this.payout.bank_account.account_type}),e(o,{key:"a7735eff20bcd14399af5da2a1f83b308a5a7d1d",title:"Institution",value:this.payout.bank_account.account_type}),e(o,{key:"8f111b1b61509802d2fe743ca1b7f6197e5fd50b",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(o,{key:"85dd7ec442ac9dafe7b87bf7b036088166acd7ab",title:"Account Number",value:this.payout.bank_account.account_number_last4})),this.payout.metadata&&[e(r,{key:"42bd46da966657dafe6db564829b6ecf41c0195e",sectionTitle:"Metadata"}),e("div",{key:"41124e965bdc0d0429f16e7693894bfa6c62c9df",class:"d-table gap-2 w-100"},e(b,{key:"718b728f4aaab7092530ed52de11348b8e68a2f6",metadata:this.payout.metadata}))])))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{k as payout_details_core}