@justifi/webcomponents 6.0.5 → 6.0.6-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (537) hide show
  1. package/dist/cjs/{Api-DHhR05W5.js → Api-CjtvTD2_.js} +2 -2
  2. package/dist/cjs/{Refund-CFOz9QoU.js → Refund-BnhHNKLz.js} +1 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +4 -4
  4. package/dist/cjs/{badge-C1lVkjn6.js → badge-CE3ss_OU.js} +2 -2
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +10 -10
  6. package/dist/cjs/bank-account-form.cjs.entry.js +8 -8
  7. package/dist/cjs/business-details-core.cjs.entry.js +5 -5
  8. package/dist/cjs/{business.service-Dx2FS4K-.js → business.service-Cj_NUZsr.js} +2 -2
  9. package/dist/cjs/{button-C8gOSOdZ.js → button-gPNZ9XRn.js} +2 -2
  10. package/dist/cjs/card-form.cjs.entry.js +8 -8
  11. package/dist/cjs/{check-pkg-version-Ct0jrAH4.js → check-pkg-version-BXAxVT0S.js} +3 -3
  12. package/dist/cjs/{checkout.service-DRV9oDxT.js → checkout.service-Bc8L9ixO.js} +2 -2
  13. package/dist/cjs/{checkout.store-WVXAN_mi.js → checkout.store-CS7dpzYF.js} +1 -1
  14. package/dist/cjs/checkouts-list-core.cjs.entry.js +12 -12
  15. package/dist/cjs/{checkouts-list-params-state-B3dEHKgs.js → checkouts-list-params-state-BYpq-c6X.js} +1 -1
  16. package/dist/cjs/{checkouts-table-A2cMCczU.js → checkouts-table-C5AHeIr0.js} +4 -4
  17. package/dist/cjs/{config-state-B5-AuTAI.js → config-state-C7babhLh.js} +1 -1
  18. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  19. package/dist/cjs/{dispute.service-DaPbzqUr.js → dispute.service-DhO_tuDc.js} +2 -2
  20. package/dist/cjs/form-alert_5.cjs.entry.js +6 -6
  21. package/dist/cjs/form-control-checkbox.cjs.entry.js +6 -6
  22. package/dist/cjs/form-control-date.cjs.entry.js +3 -3
  23. package/dist/cjs/{form-control-error-text-Bm5PuYuo.js → form-control-error-text-BnMWn8U_.js} +2 -2
  24. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  25. package/dist/cjs/{form-control-help-text-DH-ddiz4.js → form-control-help-text-DEi5vSjN.js} +2 -2
  26. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  27. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +6 -6
  28. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  29. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  30. package/dist/cjs/form-control-number.cjs.entry.js +4 -4
  31. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  32. package/dist/cjs/form-control-select_2.cjs.entry.js +3 -3
  33. package/dist/cjs/{get-payment-details-DbxyqeB1.js → get-payment-details-BinT-ZEP.js} +2 -2
  34. package/dist/cjs/{get-subaccounts-B8O_HimP.js → get-subaccounts-BoTVdl7v.js} +3 -3
  35. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  36. package/dist/cjs/{header-1-8mY0uvLp.js → header-1-D3r87SC6.js} +2 -2
  37. package/dist/cjs/{header-3-BkMrxDLW.js → header-3-BFQJJgBb.js} +2 -2
  38. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  39. package/dist/cjs/{index-CoKhq0yT.js → index-Bhtk1qkX.js} +1 -1
  40. package/dist/cjs/{index-B8q7TYrk.js → index-CWM5ions.js} +1 -1
  41. package/dist/cjs/{insurance-state-CN0jLsMn.js → insurance-state-JbqYvJN3.js} +3 -3
  42. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +8 -8
  43. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +18 -18
  44. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +2 -2
  45. package/dist/cjs/justifi-apple-pay.cjs.entry.js +12 -9
  46. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +18 -18
  47. package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
  48. package/dist/cjs/justifi-business-form.cjs.entry.js +14 -14
  49. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +3 -3
  50. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +15 -15
  51. package/dist/cjs/justifi-checkout.cjs.entry.js +13 -13
  52. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -9
  53. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +15 -15
  54. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  55. package/dist/cjs/justifi-details.cjs.entry.js +4 -4
  56. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  57. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -9
  58. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +13 -13
  59. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +10 -10
  60. package/dist/cjs/justifi-order-terminals.cjs.entry.js +13 -13
  61. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -12
  62. package/dist/cjs/justifi-payment-details.cjs.entry.js +20 -13
  63. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +5 -5
  64. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  65. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +13 -13
  66. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
  67. package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
  68. package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -12
  69. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +13 -13
  70. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
  71. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
  72. package/dist/cjs/justifi-refund-payment.cjs.entry.js +14 -14
  73. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
  74. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -13
  75. package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
  76. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +8 -8
  77. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +12 -12
  78. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +8 -8
  79. package/dist/cjs/justifi-terminals-list.cjs.entry.js +14 -14
  80. package/dist/cjs/loader.cjs.js +2 -2
  81. package/dist/cjs/{package-BJCoGNzK.js → package-D8-S3yHl.js} +1 -1
  82. package/dist/cjs/pagination-menu.cjs.entry.js +5 -5
  83. package/dist/cjs/{parts-9jMf1erK.js → parts-Pb06tUMp.js} +2 -0
  84. package/dist/cjs/payment-details-core.cjs.entry.js +11 -11
  85. package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
  86. package/dist/cjs/{payment.service-CYAqnKsH.js → payment.service-C9thkR4g.js} +2 -2
  87. package/dist/cjs/payments-list-core.cjs.entry.js +12 -12
  88. package/dist/cjs/{payments-list-params-state-B3dEHKgs.js → payments-list-params-state-BYpq-c6X.js} +1 -1
  89. package/dist/cjs/{payments-status-Cwp_sPLb.js → payments-status-CnNXcRLO.js} +2 -2
  90. package/dist/cjs/{payments-table-D9ZL7KEZ.js → payments-table-BGuCOPTJ.js} +4 -4
  91. package/dist/cjs/payout-details-core.cjs.entry.js +25 -12
  92. package/dist/cjs/{payout.service-B5WqvvSO.js → payout.service-CGZxpQMq.js} +2 -2
  93. package/dist/cjs/payouts-list-core.cjs.entry.js +12 -12
  94. package/dist/cjs/{payouts-list-params-state-B3dEHKgs.js → payouts-list-params-state-BYpq-c6X.js} +1 -1
  95. package/dist/cjs/{payouts-status-gUEqx_45.js → payouts-status-2na6MMgV.js} +2 -2
  96. package/dist/cjs/{payouts-table-CxUxBIEg.js → payouts-table-DXekpbYc.js} +4 -4
  97. package/dist/cjs/{skeleton-WNwMpTOZ.js → skeleton-BvdAh448.js} +2 -2
  98. package/dist/cjs/{spinner-DP-6z8gb.js → spinner-Rt52JMa2.js} +2 -2
  99. package/dist/cjs/{styled-host-BeBLN_42.js → styled-host-BSooSIhA.js} +1 -1
  100. package/dist/cjs/{table-POSNlW0c.js → table-Ccg4k90C.js} +3 -3
  101. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  102. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +11 -11
  103. package/dist/cjs/{terminal-orders-list-params-state-B3dEHKgs.js → terminal-orders-list-params-state-BYpq-c6X.js} +1 -1
  104. package/dist/cjs/{terminal-orders-table-OBx67Idp.js → terminal-orders-table-7ew1vCKk.js} +6 -6
  105. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  106. package/dist/cjs/{terminal.service-DxxgZygg.js → terminal.service-BkKxH-k4.js} +2 -2
  107. package/dist/cjs/terminals-list-core.cjs.entry.js +11 -11
  108. package/dist/cjs/terminals-list-params-state-BYpq-c6X.js +22 -0
  109. package/dist/cjs/{terminals-table-ByPkFcIa.js → terminals-table-ByYs-pH7.js} +4 -4
  110. package/dist/cjs/{utils-ChCUZgUy.js → utils-Bab-tddY.js} +4 -0
  111. package/dist/cjs/{utils-DS7YWKMB.js → utils-CUcA4G_O.js} +5 -5
  112. package/dist/cjs/webcomponents.cjs.js +3 -3
  113. package/dist/collection/api/services/apple-pay.service.js +3 -0
  114. package/dist/collection/collection-manifest.json +2 -2
  115. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +7 -6
  116. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  117. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +7 -6
  118. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +7 -6
  119. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  120. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  121. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -6
  122. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  123. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  125. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  128. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  129. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  130. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  131. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  132. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  133. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  134. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  135. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  136. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  137. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  138. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  139. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  140. package/dist/collection/components/checkout/checkout.js +2 -2
  141. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  142. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  143. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  144. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  145. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  146. package/dist/collection/components/modular-checkout/modular-checkout.js +2 -3
  147. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  148. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  149. package/dist/collection/components/payment-details/payment-details.js +28 -1
  150. package/dist/collection/components/payout-details/payout-details-core.js +57 -4
  151. package/dist/collection/components/payout-details/payout-details.js +22 -1
  152. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +2 -3
  153. package/dist/collection/styles/parts.js +1 -1
  154. package/dist/collection/ui-components/details/details.js +1 -1
  155. package/dist/collection/ui-components/details/utils.js +4 -4
  156. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  157. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
  158. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
  159. package/dist/collection/utils/utils.js +4 -0
  160. package/dist/docs.json +126 -98
  161. package/dist/esm/{Api-GDDXjRV1.js → Api-DhiA2e_P.js} +2 -2
  162. package/dist/esm/{Refund-C3Rj8ucO.js → Refund-B-iOTRxz.js} +1 -1
  163. package/dist/esm/additional-questions-details_5.entry.js +4 -4
  164. package/dist/esm/{badge-DrV8suYS.js → badge-BYEj23zk.js} +2 -2
  165. package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -10
  166. package/dist/esm/bank-account-form.entry.js +8 -8
  167. package/dist/esm/business-details-core.entry.js +5 -5
  168. package/dist/esm/{business.service-BZPNzxOH.js → business.service-D55OVyco.js} +2 -2
  169. package/dist/esm/{button-Dz7L1sRR.js → button-BQetT-FB.js} +2 -2
  170. package/dist/esm/card-form.entry.js +8 -8
  171. package/dist/esm/{check-pkg-version-zAOGtbuB.js → check-pkg-version-DdZIl21c.js} +3 -3
  172. package/dist/esm/{checkout.service-_dbCJ4H4.js → checkout.service-fwbqSq8g.js} +2 -2
  173. package/dist/esm/{checkout.store-CpBg1CFX.js → checkout.store-CWAkbFJL.js} +1 -1
  174. package/dist/esm/checkouts-list-core.entry.js +12 -12
  175. package/dist/esm/{checkouts-list-params-state-DKBoAgAJ.js → checkouts-list-params-state-C_fug9R3.js} +1 -1
  176. package/dist/esm/{checkouts-table-BIuJBjFX.js → checkouts-table-D7-slfUE.js} +4 -4
  177. package/dist/esm/{config-state-BJ800oYx.js → config-state-DiHV-4QK.js} +1 -1
  178. package/dist/esm/custom-popper_2.entry.js +2 -2
  179. package/dist/esm/{dispute.service-DX3dxl7L.js → dispute.service-Cdq3_yRo.js} +2 -2
  180. package/dist/esm/form-alert_5.entry.js +6 -6
  181. package/dist/esm/form-control-checkbox.entry.js +6 -6
  182. package/dist/esm/form-control-date.entry.js +3 -3
  183. package/dist/esm/{form-control-error-text-BybKqTXI.js → form-control-error-text-DU4UNQlE.js} +2 -2
  184. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  185. package/dist/esm/{form-control-help-text-zXEGK2O9.js → form-control-help-text-DDLwbCDl.js} +2 -2
  186. package/dist/esm/form-control-help-text.entry.js +1 -1
  187. package/dist/esm/form-control-monetary-provisioning.entry.js +6 -6
  188. package/dist/esm/form-control-monetary.entry.js +5 -5
  189. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  190. package/dist/esm/form-control-number.entry.js +4 -4
  191. package/dist/esm/form-control-radio.entry.js +2 -2
  192. package/dist/esm/form-control-select_2.entry.js +3 -3
  193. package/dist/esm/{get-payment-details-KXwiFeJs.js → get-payment-details-sGoWyAat.js} +2 -2
  194. package/dist/esm/{get-subaccounts-DGclXJlZ.js → get-subaccounts-BsJSlShO.js} +3 -3
  195. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  196. package/dist/esm/{header-1-oPO-WOI8.js → header-1-CIfsspQD.js} +2 -2
  197. package/dist/esm/{header-3-DWKhJ_Et.js → header-3-0vgSYspf.js} +2 -2
  198. package/dist/esm/hidden-input_2.entry.js +5 -5
  199. package/dist/esm/{index-Cuq3wBDS.js → index-DJ9G-4S-.js} +1 -1
  200. package/dist/esm/{index-DyGx8Avl.js → index-DOjVAAtq.js} +1 -1
  201. package/dist/esm/{insurance-state-DVxPVMxW.js → insurance-state-QGyiPZ_-.js} +3 -3
  202. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -8
  203. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +18 -18
  204. package/dist/esm/justifi-additional-statement_8.entry.js +2 -2
  205. package/dist/esm/justifi-apple-pay.entry.js +12 -9
  206. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +18 -18
  207. package/dist/esm/justifi-business-details.entry.js +11 -11
  208. package/dist/esm/justifi-business-form.entry.js +14 -14
  209. package/dist/esm/justifi-business-representative-form-inputs.entry.js +3 -3
  210. package/dist/esm/justifi-checkout-summary_7.entry.js +15 -15
  211. package/dist/esm/justifi-checkout.entry.js +13 -13
  212. package/dist/esm/justifi-checkouts-list-filters.entry.js +9 -9
  213. package/dist/esm/justifi-checkouts-list.entry.js +15 -15
  214. package/dist/esm/justifi-config-provider.entry.js +3 -3
  215. package/dist/esm/justifi-details.entry.js +4 -4
  216. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  217. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  218. package/dist/esm/justifi-dispute-notification_3.entry.js +13 -13
  219. package/dist/esm/justifi-gross-payment-chart.entry.js +10 -10
  220. package/dist/esm/justifi-order-terminals.entry.js +13 -13
  221. package/dist/esm/justifi-owner-form_3.entry.js +12 -12
  222. package/dist/esm/justifi-payment-details.entry.js +20 -13
  223. package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
  224. package/dist/esm/justifi-payment-provisioning.entry.js +10 -10
  225. package/dist/esm/justifi-payment-transactions-list.entry.js +13 -13
  226. package/dist/esm/justifi-payments-list-filters.entry.js +6 -6
  227. package/dist/esm/justifi-payments-list.entry.js +14 -14
  228. package/dist/esm/justifi-payout-details.entry.js +13 -12
  229. package/dist/esm/justifi-payout-transactions-list.entry.js +13 -13
  230. package/dist/esm/justifi-payouts-list-filters.entry.js +6 -6
  231. package/dist/esm/justifi-payouts-list.entry.js +15 -15
  232. package/dist/esm/justifi-refund-payment.entry.js +14 -14
  233. package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
  234. package/dist/esm/justifi-season-interruption-insurance.entry.js +13 -13
  235. package/dist/esm/justifi-skeleton.entry.js +4 -4
  236. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
  237. package/dist/esm/justifi-terminal-orders-list.entry.js +12 -12
  238. package/dist/esm/justifi-terminals-list-filters.entry.js +8 -8
  239. package/dist/esm/justifi-terminals-list.entry.js +14 -14
  240. package/dist/esm/loader.js +3 -3
  241. package/dist/esm/{package-Dpi2ut8h.js → package-DlT1rYmL.js} +1 -1
  242. package/dist/esm/pagination-menu.entry.js +5 -5
  243. package/dist/esm/{parts-RvUQ__Pq.js → parts-DS3KdLWS.js} +2 -1
  244. package/dist/esm/payment-details-core.entry.js +11 -11
  245. package/dist/esm/payment-method-option.entry.js +3 -3
  246. package/dist/esm/{payment.service-oJkZDCjF.js → payment.service-BoQ1MW1k.js} +2 -2
  247. package/dist/esm/payments-list-core.entry.js +12 -12
  248. package/dist/esm/{payments-list-params-state-DKBoAgAJ.js → payments-list-params-state-C_fug9R3.js} +1 -1
  249. package/dist/esm/{payments-status-BMCeFxof.js → payments-status-DpKZIq0D.js} +2 -2
  250. package/dist/esm/{payments-table-2pRUlnGQ.js → payments-table-BhUsDP9C.js} +4 -4
  251. package/dist/esm/payout-details-core.entry.js +25 -12
  252. package/dist/esm/{payout.service-DY-EKu-S.js → payout.service-xcBdom3q.js} +2 -2
  253. package/dist/esm/payouts-list-core.entry.js +12 -12
  254. package/dist/esm/{payouts-list-params-state-DKBoAgAJ.js → payouts-list-params-state-C_fug9R3.js} +1 -1
  255. package/dist/esm/{payouts-status-DBkurhQF.js → payouts-status-CZxWiR6g.js} +2 -2
  256. package/dist/esm/{payouts-table-DXyLrcja.js → payouts-table-C6bACVT_.js} +4 -4
  257. package/dist/esm/{skeleton-BagMauL8.js → skeleton-CtxvPKqv.js} +2 -2
  258. package/dist/esm/{spinner-DOyR5em0.js → spinner-DSSWDOaz.js} +2 -2
  259. package/dist/esm/{styled-host-BQjsup-P.js → styled-host-OalOsPBp.js} +1 -1
  260. package/dist/esm/{table-D-zEX8E8.js → table-C7Sw1Lk-.js} +3 -3
  261. package/dist/esm/table-filters-menu.entry.js +3 -3
  262. package/dist/esm/terminal-orders-list-core.entry.js +11 -11
  263. package/dist/esm/{terminal-orders-list-params-state-DKBoAgAJ.js → terminal-orders-list-params-state-C_fug9R3.js} +1 -1
  264. package/dist/esm/{terminal-orders-table-COcJMPaL.js → terminal-orders-table-Cdv_O1iI.js} +6 -6
  265. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  266. package/dist/esm/{terminal.service-fDtEdpf-.js → terminal.service-l6zTIPZ3.js} +2 -2
  267. package/dist/esm/terminals-list-core.entry.js +11 -11
  268. package/dist/esm/terminals-list-params-state-C_fug9R3.js +16 -0
  269. package/dist/esm/{terminals-table-CyL85b_g.js → terminals-table-BBUVz5oU.js} +4 -4
  270. package/dist/esm/{utils-BscIVFn8.js → utils-BOijEGPV.js} +4 -1
  271. package/dist/esm/{utils-CUglovmh.js → utils-DkhVjdbQ.js} +5 -5
  272. package/dist/esm/webcomponents.js +4 -4
  273. package/dist/module/additional-questions.js +2 -2
  274. package/dist/module/additional-statement.js +1 -1
  275. package/dist/module/badge.js +1 -1
  276. package/dist/module/bank-account-billing-form-simple.js +2 -2
  277. package/dist/module/bank-account-document-inputs.js +1 -1
  278. package/dist/module/bank-account-form-inputs2.js +1 -1
  279. package/dist/module/bank-account-form.js +3 -3
  280. package/dist/module/billing-form-full.js +1 -1
  281. package/dist/module/business-additional-questions-form-step.js +1 -1
  282. package/dist/module/business-bank-account-form-step.js +1 -1
  283. package/dist/module/business-core-info-form-step.js +1 -1
  284. package/dist/module/business-core-info.js +1 -1
  285. package/dist/module/business-documents-on-file2.js +1 -1
  286. package/dist/module/business-owners-form-step.js +1 -1
  287. package/dist/module/business-representative-form-inputs.js +1 -1
  288. package/dist/module/business-representative-form-step.js +1 -1
  289. package/dist/module/business-representative.js +2 -2
  290. package/dist/module/business-terms-conditions-form-step.js +1 -1
  291. package/dist/module/button.js +1 -1
  292. package/dist/module/cancellation-policy.js +1 -1
  293. package/dist/module/card-billing-form-simple.js +2 -2
  294. package/dist/module/card-form.js +3 -3
  295. package/dist/module/checkouts-list-core2.js +2 -2
  296. package/dist/module/customer-details.js +1 -1
  297. package/dist/module/details.js +1 -1
  298. package/dist/module/dispute-notification.js +1 -1
  299. package/dist/module/dispute-response-core.js +1 -1
  300. package/dist/module/duplicate-charge.js +1 -1
  301. package/dist/module/electronic-evidence.js +1 -1
  302. package/dist/module/form-alert2.js +1 -1
  303. package/dist/module/form-control-checkbox2.js +3 -3
  304. package/dist/module/form-control-date2.js +1 -1
  305. package/dist/module/form-control-error-text.js +1 -1
  306. package/dist/module/form-control-file2.js +1 -1
  307. package/dist/module/form-control-monetary-provisioning2.js +3 -3
  308. package/dist/module/form-control-monetary2.js +1 -1
  309. package/dist/module/form-control-number-masked2.js +1 -1
  310. package/dist/module/form-control-number.js +1 -1
  311. package/dist/module/form-control-radio2.js +1 -1
  312. package/dist/module/form-control-select2.js +1 -1
  313. package/dist/module/form-control-text2.js +1 -1
  314. package/dist/module/form-control-textarea2.js +1 -1
  315. package/dist/module/form-control-tooltip2.js +1 -1
  316. package/dist/module/gross-payment-chart-core2.js +1 -1
  317. package/dist/module/header-3.js +1 -1
  318. package/dist/module/hidden-input2.js +1 -1
  319. package/dist/module/identity-address-form.js +1 -1
  320. package/dist/module/iframe-input2.js +1 -1
  321. package/dist/module/justifi-apple-pay.js +3 -0
  322. package/dist/module/justifi-checkout.js +3 -3
  323. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  324. package/dist/module/justifi-checkouts-list.js +1 -1
  325. package/dist/module/justifi-order-terminals.js +2 -2
  326. package/dist/module/justifi-payment-details.js +8 -1
  327. package/dist/module/justifi-payment-provisioning.js +1 -1
  328. package/dist/module/justifi-payment-transactions-list.js +1 -1
  329. package/dist/module/justifi-payments-list-filters.js +1 -1
  330. package/dist/module/justifi-payout-details.js +3 -1
  331. package/dist/module/justifi-payout-transactions-list.js +1 -1
  332. package/dist/module/justifi-payouts-list-filters.js +1 -1
  333. package/dist/module/justifi-radio-list-item2.js +1 -1
  334. package/dist/module/justifi-saved-payment-method.js +1 -1
  335. package/dist/module/justifi-season-interruption-insurance.js +2 -2
  336. package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
  337. package/dist/module/justifi-terminals-list-filters.js +1 -1
  338. package/dist/module/legal-address-form-step.js +1 -1
  339. package/dist/module/legal-address-form.js +2 -2
  340. package/dist/module/owner-form-core2.js +2 -2
  341. package/dist/module/owner-form-inputs2.js +2 -2
  342. package/dist/module/owner-form.js +1 -1
  343. package/dist/module/package.js +1 -1
  344. package/dist/module/pagination-menu2.js +4 -4
  345. package/dist/module/parts.js +2 -1
  346. package/dist/module/payment-provisioning-core.js +1 -1
  347. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  348. package/dist/module/payment-provisioning-form-steps.js +1 -1
  349. package/dist/module/payments-list-core2.js +1 -1
  350. package/dist/module/payout-details-core2.js +18 -4
  351. package/dist/module/payouts-list-core2.js +1 -1
  352. package/dist/module/product-or-service.js +1 -1
  353. package/dist/module/refund-policy.js +1 -1
  354. package/dist/module/save-new-payment-method.js +1 -1
  355. package/dist/module/shipping-details.js +1 -1
  356. package/dist/module/spinner.js +1 -1
  357. package/dist/module/table-filters-menu2.js +1 -1
  358. package/dist/module/table.js +1 -1
  359. package/dist/module/terminal-orders-list-core2.js +1 -1
  360. package/dist/module/terminal-quantity-selector2.js +1 -1
  361. package/dist/module/terminals-list-core2.js +2 -2
  362. package/dist/module/utils.js +4 -4
  363. package/dist/module/utils2.js +4 -1
  364. package/dist/types/api/ComponentEvents.d.ts +4 -0
  365. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
  366. package/dist/types/components/payment-details/payment-details.d.ts +3 -1
  367. package/dist/types/components/payout-details/payout-details-core.d.ts +5 -1
  368. package/dist/types/components/payout-details/payout-details.d.ts +1 -0
  369. package/dist/types/components.d.ts +30 -12
  370. package/dist/types/stencil-public-runtime.d.ts +19 -10
  371. package/dist/types/styles/parts.d.ts +1 -1
  372. package/dist/types/ui-components/details/utils.d.ts +3 -2
  373. package/dist/types/utils/utils.d.ts +1 -0
  374. package/dist/webcomponents/p-064578b9.entry.js +1 -0
  375. package/dist/webcomponents/{p-838bc453.entry.js → p-065999a7.entry.js} +1 -1
  376. package/dist/webcomponents/p-0fgTPVV0.js +1 -0
  377. package/dist/webcomponents/{p-7ee67a7b.entry.js → p-1162b2fc.entry.js} +1 -1
  378. package/dist/webcomponents/{p-8b1abbf4.entry.js → p-145a2370.entry.js} +1 -1
  379. package/dist/webcomponents/{p-0d0ecbec.entry.js → p-185550b1.entry.js} +1 -1
  380. package/dist/webcomponents/p-188f921f.entry.js +1 -0
  381. package/dist/webcomponents/p-20c42901.entry.js +1 -0
  382. package/dist/webcomponents/{p-b38cd527.entry.js → p-22b3b0c2.entry.js} +1 -1
  383. package/dist/webcomponents/{p-4f6732e7.entry.js → p-25dffee2.entry.js} +1 -1
  384. package/dist/webcomponents/{p-2aec0fec.entry.js → p-263ee88e.entry.js} +1 -1
  385. package/dist/webcomponents/{p-07b3bfd0.entry.js → p-2b1b815a.entry.js} +1 -1
  386. package/dist/webcomponents/p-2bb49747.entry.js +1 -0
  387. package/dist/webcomponents/{p-7b5bfe7c.entry.js → p-2f40f708.entry.js} +1 -1
  388. package/dist/webcomponents/{p-03c6003e.entry.js → p-32b0593d.entry.js} +1 -1
  389. package/dist/webcomponents/p-341eb162.entry.js +1 -0
  390. package/dist/webcomponents/{p-49ffd557.entry.js → p-368aad3e.entry.js} +1 -1
  391. package/dist/webcomponents/{p-f58866c6.entry.js → p-38f4b133.entry.js} +1 -1
  392. package/dist/webcomponents/p-3cd7efc1.entry.js +1 -0
  393. package/dist/webcomponents/p-4633e577.entry.js +1 -0
  394. package/dist/webcomponents/{p-89a4decb.entry.js → p-4941bcaf.entry.js} +1 -1
  395. package/dist/webcomponents/{p-839b3217.entry.js → p-49998d80.entry.js} +1 -1
  396. package/dist/webcomponents/{p-4337111b.entry.js → p-4b1a3cf6.entry.js} +1 -1
  397. package/dist/webcomponents/{p-e77cc776.entry.js → p-4c7b6e72.entry.js} +1 -1
  398. package/dist/webcomponents/{p-97a600d5.entry.js → p-507ab3f1.entry.js} +1 -1
  399. package/dist/webcomponents/{p-Dlgl52fA.js → p-53MvfN19.js} +1 -1
  400. package/dist/webcomponents/{p-c75848a9.entry.js → p-59b4454a.entry.js} +1 -1
  401. package/dist/webcomponents/p-5ca7a03f.entry.js +1 -0
  402. package/dist/webcomponents/p-6217eb14.entry.js +1 -0
  403. package/dist/webcomponents/{p-5c025a41.entry.js → p-62fab960.entry.js} +1 -1
  404. package/dist/webcomponents/{p-6ed3d557.entry.js → p-6de344f8.entry.js} +1 -1
  405. package/dist/webcomponents/p-72e0698c.entry.js +1 -0
  406. package/dist/webcomponents/{p-lmpjoGKk.js → p-7663hWTF.js} +1 -1
  407. package/dist/webcomponents/p-789e86ef.entry.js +1 -0
  408. package/dist/webcomponents/{p-bcc66eb6.entry.js → p-79a55ed5.entry.js} +1 -1
  409. package/dist/webcomponents/p-7bdaf07c.entry.js +1 -0
  410. package/dist/webcomponents/{p-c3e3c368.entry.js → p-7c4a3118.entry.js} +1 -1
  411. package/dist/webcomponents/{p-ea7fc5b2.entry.js → p-7c7666ad.entry.js} +1 -1
  412. package/dist/webcomponents/p-7fc37722.entry.js +1 -0
  413. package/dist/webcomponents/{p-9aa425e5.entry.js → p-8696cf1e.entry.js} +4 -4
  414. package/dist/webcomponents/{p-24b38502.entry.js → p-8948b298.entry.js} +1 -1
  415. package/dist/webcomponents/p-8S_ROmnq.js +1 -0
  416. package/dist/webcomponents/{p-2d3edc42.entry.js → p-8e6ae277.entry.js} +1 -1
  417. package/dist/webcomponents/p-924a25d4.entry.js +1 -0
  418. package/dist/webcomponents/{p-9c39ba10.entry.js → p-96cc471a.entry.js} +1 -1
  419. package/dist/webcomponents/{p-d182e0a4.entry.js → p-97ea8a2a.entry.js} +1 -1
  420. package/dist/webcomponents/p-98ae711c.entry.js +1 -0
  421. package/dist/webcomponents/p-9b14089f.entry.js +1 -0
  422. package/dist/webcomponents/p-9f35781b.entry.js +1 -0
  423. package/dist/webcomponents/{p-DijYoVj9.js → p-B7TpAe2k.js} +1 -1
  424. package/dist/webcomponents/p-BBzXThAT.js +1 -0
  425. package/dist/webcomponents/p-BCE-dTDp.js +1 -0
  426. package/dist/webcomponents/{p-CoHTj6Zv.js → p-BIKX2tSN.js} +1 -1
  427. package/dist/webcomponents/{p-CjiooCZL.js → p-Baf5crBG.js} +1 -1
  428. package/dist/webcomponents/{p-BXSa6F0A.js → p-BbbgFMaz.js} +1 -1
  429. package/dist/webcomponents/{p-BHf9IqGw.js → p-Bgnhf5c9.js} +1 -1
  430. package/dist/webcomponents/{p-BzUsLFRB.js → p-BhCH9S0e.js} +1 -1
  431. package/dist/webcomponents/{p-B2zYNTMd.js → p-BjNuRWXK.js} +1 -1
  432. package/dist/webcomponents/p-C2JJBtMc.js +1 -0
  433. package/dist/webcomponents/p-C4AUlhx6.js +1 -0
  434. package/dist/webcomponents/p-C8k7a6D-.js +1 -0
  435. package/dist/webcomponents/{p-BrUSZwNP.js → p-C98BC5W5.js} +1 -1
  436. package/dist/webcomponents/{p-DEPTsxWg.js → p-CCLgieAN.js} +1 -1
  437. package/dist/webcomponents/p-CEk3bv0x.js +1 -0
  438. package/dist/webcomponents/p-CqFjmIng.js +1 -0
  439. package/dist/webcomponents/{p-B1kr3GUW.js → p-Cqe5a-d3.js} +1 -1
  440. package/dist/webcomponents/p-D5KZeFMv.js +1 -0
  441. package/dist/webcomponents/p-DFEINx3E.js +1 -0
  442. package/dist/webcomponents/{p-DqKxycem.js → p-DQZ5VHTZ.js} +1 -1
  443. package/dist/webcomponents/p-DS3KdLWS.js +1 -0
  444. package/dist/webcomponents/p-DWn9BiNn.js +1 -0
  445. package/dist/webcomponents/{p-CTqY6NgS.js → p-DdMxswn1.js} +1 -1
  446. package/dist/webcomponents/{p-B63vgBnY.js → p-DdZLLkQ5.js} +1 -1
  447. package/dist/webcomponents/p-DfV3dFDB.js +1 -0
  448. package/dist/webcomponents/p-Dieke6TH.js +1 -0
  449. package/dist/webcomponents/p-DlT1rYmL.js +1 -0
  450. package/dist/webcomponents/{p-6EvNOn3-.js → p-DrrHSa75.js} +1 -1
  451. package/dist/webcomponents/p-DszoS3BO.js +1 -0
  452. package/dist/webcomponents/p-NwmOm8Pg.js +1 -0
  453. package/dist/webcomponents/p-SPYUZxQ9.js +1 -0
  454. package/dist/webcomponents/{p-YFacIs1k.js → p-SWI5-Jo-.js} +1 -1
  455. package/dist/webcomponents/{p-wyo7gH76.js → p-YXBIe5uT.js} +1 -1
  456. package/dist/webcomponents/{p-11a6e8b2.entry.js → p-a3a2f508.entry.js} +1 -1
  457. package/dist/webcomponents/p-a44c1cae.entry.js +1 -0
  458. package/dist/webcomponents/{p-fb4c5873.entry.js → p-a4846316.entry.js} +1 -1
  459. package/dist/webcomponents/{p-42934a93.entry.js → p-a4a57240.entry.js} +1 -1
  460. package/dist/webcomponents/p-a6008498.entry.js +1 -0
  461. package/dist/webcomponents/{p-DMEQUc2C.js → p-a6tcNl_T.js} +1 -1
  462. package/dist/webcomponents/p-a871b38b.entry.js +1 -0
  463. package/dist/webcomponents/{p-18703b42.entry.js → p-a9e7b25b.entry.js} +1 -1
  464. package/dist/webcomponents/{p-e9527758.entry.js → p-b2816bb2.entry.js} +1 -1
  465. package/dist/webcomponents/{p-a4a2899d.entry.js → p-b3517f18.entry.js} +1 -1
  466. package/dist/webcomponents/p-b57ba0c7.entry.js +1 -0
  467. package/dist/webcomponents/{p-ef03a84f.entry.js → p-b701fcf0.entry.js} +1 -1
  468. package/dist/webcomponents/{p-1f241a23.entry.js → p-b82b685d.entry.js} +1 -1
  469. package/dist/webcomponents/p-bcc22295.entry.js +1 -0
  470. package/dist/webcomponents/p-bcc7ebb5.entry.js +1 -0
  471. package/dist/webcomponents/p-cf37b3bb.entry.js +1 -0
  472. package/dist/webcomponents/p-d55e5756.entry.js +1 -0
  473. package/dist/webcomponents/p-db03d37a.entry.js +1 -0
  474. package/dist/webcomponents/p-dce78317.entry.js +1 -0
  475. package/dist/webcomponents/{p-1cd888c2.entry.js → p-e1e13e85.entry.js} +1 -1
  476. package/dist/webcomponents/{p-d8a01f34.entry.js → p-f1915a72.entry.js} +1 -1
  477. package/dist/webcomponents/p-f605af1c.entry.js +1 -0
  478. package/dist/webcomponents/{p-BgUmsFt9.js → p-f6_r41aD.js} +1 -1
  479. package/dist/webcomponents/{p-fec2335a.entry.js → p-f7977891.entry.js} +1 -1
  480. package/dist/webcomponents/{p-a1f46b01.entry.js → p-fc5eeb40.entry.js} +1 -1
  481. package/dist/webcomponents/p-iT-AQTXJ.js +1 -0
  482. package/dist/webcomponents/p-lKnUT24T.js +1 -0
  483. package/dist/webcomponents/webcomponents.esm.js +1 -1
  484. package/package.json +13 -13
  485. package/LICENSE +0 -21
  486. package/dist/cjs/terminals-list-params-state-B3dEHKgs.js +0 -22
  487. package/dist/esm/terminals-list-params-state-DKBoAgAJ.js +0 -16
  488. package/dist/webcomponents/p-02d3b1a9.entry.js +0 -1
  489. package/dist/webcomponents/p-0c1afe6a.entry.js +0 -1
  490. package/dist/webcomponents/p-12e0f6d0.entry.js +0 -1
  491. package/dist/webcomponents/p-1ba5b6b5.entry.js +0 -1
  492. package/dist/webcomponents/p-1deab386.entry.js +0 -1
  493. package/dist/webcomponents/p-3b42f47c.entry.js +0 -1
  494. package/dist/webcomponents/p-3b6ff2c7.entry.js +0 -1
  495. package/dist/webcomponents/p-3d626ed6.entry.js +0 -1
  496. package/dist/webcomponents/p-45c41bf9.entry.js +0 -1
  497. package/dist/webcomponents/p-4b2b7192.entry.js +0 -1
  498. package/dist/webcomponents/p-4c151c69.entry.js +0 -1
  499. package/dist/webcomponents/p-5cf11be2.entry.js +0 -1
  500. package/dist/webcomponents/p-61028395.entry.js +0 -1
  501. package/dist/webcomponents/p-68ff0209.entry.js +0 -1
  502. package/dist/webcomponents/p-6e7eda7b.entry.js +0 -1
  503. package/dist/webcomponents/p-731e895a.entry.js +0 -1
  504. package/dist/webcomponents/p-89b69a99.entry.js +0 -1
  505. package/dist/webcomponents/p-8cb3af20.entry.js +0 -1
  506. package/dist/webcomponents/p-8e59fd48.entry.js +0 -1
  507. package/dist/webcomponents/p-9d656297.entry.js +0 -1
  508. package/dist/webcomponents/p-B7MgZiYt.js +0 -1
  509. package/dist/webcomponents/p-BAP2_n0C.js +0 -1
  510. package/dist/webcomponents/p-CFJORLxe.js +0 -1
  511. package/dist/webcomponents/p-CaCRHEeS.js +0 -1
  512. package/dist/webcomponents/p-CiGtDYf9.js +0 -1
  513. package/dist/webcomponents/p-CpicmCYr.js +0 -1
  514. package/dist/webcomponents/p-Cs66SeCx.js +0 -1
  515. package/dist/webcomponents/p-D5GwdE1-.js +0 -1
  516. package/dist/webcomponents/p-DMlQVSDm.js +0 -1
  517. package/dist/webcomponents/p-DPWdvb1b.js +0 -1
  518. package/dist/webcomponents/p-DVFJ02AX.js +0 -1
  519. package/dist/webcomponents/p-DgsBfaBV.js +0 -1
  520. package/dist/webcomponents/p-DmwN1pQC.js +0 -1
  521. package/dist/webcomponents/p-Dpi2ut8h.js +0 -1
  522. package/dist/webcomponents/p-DqEiwSTX.js +0 -1
  523. package/dist/webcomponents/p-FS-_U_DC.js +0 -1
  524. package/dist/webcomponents/p-RvUQ__Pq.js +0 -1
  525. package/dist/webcomponents/p-TLJ8o8BU.js +0 -1
  526. package/dist/webcomponents/p-a212213f.entry.js +0 -1
  527. package/dist/webcomponents/p-b2c0b4c2.entry.js +0 -1
  528. package/dist/webcomponents/p-bffb50ef.entry.js +0 -1
  529. package/dist/webcomponents/p-c4b0da5d.entry.js +0 -1
  530. package/dist/webcomponents/p-d704cc01.entry.js +0 -1
  531. package/dist/webcomponents/p-dbaa74cc.entry.js +0 -1
  532. package/dist/webcomponents/p-e7686f74.entry.js +0 -1
  533. package/dist/webcomponents/p-f9bab8cf.entry.js +0 -1
  534. package/dist/webcomponents/p-gpZ4wrS9.js +0 -1
  535. package/dist/webcomponents/p-jdnTIfew.js +0 -1
  536. package/dist/webcomponents/p-xgpMjz3-.js +0 -1
  537. /package/dist/webcomponents/{p-DyGx8Avl.js → p-DOjVAAtq.js} +0 -0
@@ -1 +0,0 @@
1
- import{c as s}from"./p-CTqY6NgS.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,p=s((()=>a)),{state:j}=p,r=()=>Object.assign(Object.assign({},c),j),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,j as p}
@@ -1 +0,0 @@
1
- var e={name:"@justifi/webcomponents",version:"6.0.5"};export{e as p}
@@ -1 +0,0 @@
1
- import{c as s}from"./p-CTqY6NgS.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,p=s((()=>a)),{state:j}=p,r=()=>Object.assign(Object.assign({},c),j),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,j as p}
@@ -1 +0,0 @@
1
- import{c as s}from"./p-CTqY6NgS.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,p=s((()=>a)),{state:j}=p,r=()=>Object.assign(Object.assign({},c),j),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,j as p}
@@ -1 +0,0 @@
1
- const a="font-family",t="background-color",e=`text color ${a}`,s=`text-danger ${e}`,i=`heading ${e}`,r=`heading-1 ${i}`,l=`heading-2 ${i}`,n=`heading-3 ${i}`,o=`heading-4 ${i}`,$=`heading-5 ${i}`,d=`button ${e}`,p=`button-primary ${d}`,m=`button-secondary ${d}`,u=`button-link ${d}`,c="button-loading",b=`label ${e}`,f=`input ${e} ${t}`,g=`input-group ${f}`,h=`input-invalid ${f}`,y=`input-disabled ${f}`,k=`input-focused ${f}`,x=`input-invalid-and-focused ${f}`,v="input-radio",w=`input-radio-focused ${v}`,j=`input-radio-checked ${v}`,q=`input-radio-checked-focused ${v}`,z=`input-radio-invalid ${v}`,A="input-checkbox",B=`input-checkbox-invalid ${A}`,C=`input-checkbox-focused ${A}`,D=`input-checkbox-checked ${A}`,E=`input-checkbox-checked-focused ${A}`,F=`input-adornment ${e}`,G=`alert-danger alert ${e}`,H=`tooltip ${e}`,I=`tooltip-icon ${e}`,J=`tooltip-inner ${e}`,K=`card ${e} ${t}`,L=`table ${e} ${t}`,M=`table-row ${e} ${t}`,N=`table-cell ${e} ${t}`,O="table-head",P=`table-head-row ${e} ${t}`,Q=`table-head-cell ${N}`,R="table-foot",S=`table-foot-row ${e} ${t}`,T=`table-foot-cell ${N}`,U=`table-cell-even ${N}`,V=`table-cell-odd ${N}`,W=a=>a%2?U:V,X=`table-empty ${e} ${t}`,Y=`table-error ${e} ${t}`,Z=`pagination-button ${d}`,_=`pagination-button-disabled button-disabled ${d}`,aa=`pagination-button-text ${e}`,ta=`pagination-button-icon ${e}`,ea=`pagination-button-icon-next ${ta}`,sa=`pagination-button-icon-previous ${ta}`,ia="loading-spinner",ra=`badge ${a}`,la=`${ra} badge-primary`,na=`${ra} badge-secondary`,oa=`${ra} badge-success`,$a=`${ra} badge-danger`,da=`${ra} badge-warning`,pa=`${ra} badge-info`,ma=`${ra} badge-light`,ua=`${ra} badge-dark`,ca=`dropdown-menu ${e}`,ba=`dropdown-menu-button ${p}`,fa=`radio-list-item ${e}`,ga="skeleton",ha="image",ya="billing-form",ka="checkout-summary",xa="filter-menu",va=`${xa} payments-list-filter-menu`,wa="payments-list-filter-param",ja=`${wa} payment-id-payments-list-filter-param`,qa=`${wa} terminal-id-payments-list-filter-param`,za=`${wa} payment-status-payments-list-filter-param`,Aa=`${wa} created-after-payments-list-filter-param`,Ba=`${wa} created-before-payments-list-filter-param`,Ca=`${xa} payouts-list-filter-menu`,Da="payouts-list-filter-param",Ea=`${Da} created-after-payouts-list-filter-param`,Fa=`${Da} created-before-payouts-list-filter-param`,Ga=`${xa} checkouts-list-filter-menu`,Ha="checkouts-list-filter-param",Ia=`${Ha} checkout-status-checkouts-list-filter-param`,Ja=`${Ha} payment-mode-checkouts-list-filter-param`,Ka=`${xa} terminals-list-filter-menu`,La="terminals-list-filter-param",Ma=`${La} terminal-id-terminals-list-filter-param`,Na=`${La} terminal-order-id-terminals-list-filter-param`,Oa=`${La} terminal-status-terminals-list-filter-param`,Pa=`${xa} terminal-orders-list-filter-menu`,Qa="terminal-orders-list-filter-param",Ra=`${Qa} order-status-terminal-orders-list-filter-param`,Sa=`${Qa} order-type-terminal-orders-list-filter-param`,Ta=`${Qa} created-after-terminal-orders-list-filter-param`,Ua=`${Qa} created-before-terminal-orders-list-filter-param`;export{C as $,s as A,r as B,l as C,ua as D,ma as E,pa as F,da as G,$a as H,oa as I,na as J,la as K,ra as L,ia as M,Q as N,W as O,Ka as P,Ma as Q,Na as R,Oa as S,y as T,F as U,n as V,ha as W,u as X,K as Y,B as Z,E as _,k as a,D as a0,A as a1,g as a2,z as a3,q as a4,j as a5,w as a6,v as a7,Z as a8,_ as a9,sa as aa,aa as ab,ea as ac,m as ad,p as ae,c as af,ba as ag,ca as ah,o as ai,L as aj,N as ak,$ as al,O as am,P as an,M as ao,R as ap,S as aq,T as ar,X as as,Y as at,G as au,ya as av,H as aw,J as ax,I as ay,h as b,f as c,ka as d,Ga as e,va as f,ja as g,za as h,x as i,Aa as j,Ba as k,b as l,Ca as m,Ea as n,Fa as o,Ja as p,Pa as q,fa as r,Ia as s,qa as t,Ra as u,Sa as v,Ta as w,Ua as x,ga as y,e as z}
@@ -1 +0,0 @@
1
- import"./p-DMEQUc2C.js";import"./p-HXpYMWUU.js";import{C as o}from"./p-Cjcsf8ku.js";import{P as r}from"./p-BrUSZwNP.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as s,a as i}from"./p-D2muobcE.js";const p=({id:p,authToken:t,service:e})=>async({onSuccess:a,onError:n,final:c})=>{var m;try{const c=await e.fetchPayment(p,t);if(c.error){n({error:i(c.error),code:s(null===(m=c.error)||void 0===m?void 0:m.code),severity:o.ERROR})}else a({payment:new r(c.data)})}catch(r){const p=s(null==r?void 0:r.code);n({error:i(r),code:p,severity:o.ERROR})}finally{c()}};export{p as m}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as r}from"./p-DyGx8Avl.js";import{P as i}from"./p-B2zYNTMd.js";import"./p-DMEQUc2C.js";import"./p-HXpYMWUU.js";import{C as o,a as e}from"./p-Cjcsf8ku.js";import{P as p}from"./p-BrUSZwNP.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as n,a}from"./p-D2muobcE.js";import{c as m,J as c}from"./p-B1kr3GUW.js";import{S as h}from"./p-BzUsLFRB.js";import"./p-CZfYo5-1.js";import{d}from"./p-DijYoVj9.js";import"./p-B63vgBnY.js";import"./p-BHf9IqGw.js";import"./p-CTqY6NgS.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-Dpi2ut8h.js";import"./p-lmpjoGKk.js";import"./p-BgUmsFt9.js";import"./p-RvUQ__Pq.js";const j=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeGetPayments()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:r})=>async({params:i,onSuccess:e,onError:m,final:c})=>{var h,d;try{const c=await r.fetchPayments(t,s,i);if(c.error)return m({error:a(c.error),code:n(null===(d=c.error)||void 0===d?void 0:d.code),severity:o.ERROR});{const t=Object.assign({},c.page_info);e({payments:(null===(h=c.data)||void 0===h?void 0:h.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=n(null==t?void 0:t.code);return m({error:t.message||t,code:s,severity:o.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new i}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return r(h,{key:"4cdd2e9a318226408d47198bf2de40a750a71d01"},r("payments-list-core",{key:"87964c5dd33fd3b716964227cd990539d5d13fc4",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payments_list}
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as a}from"./p-DyGx8Avl.js";import"./p-DMEQUc2C.js";import"./p-HXpYMWUU.js";import{C as s,a as i}from"./p-Cjcsf8ku.js";import{g as n}from"./p-BrUSZwNP.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c,J as o}from"./p-B1kr3GUW.js";import{g as p,a as h}from"./p-D2muobcE.js";import{P as d}from"./p-B2zYNTMd.js";import{T as f,l,a as u,b as m,c as y,d as b,e as _,f as j,g,h as k,i as T,j as w,k as v}from"./p-YFacIs1k.js";import{S as C}from"./p-BzUsLFRB.js";import{T as D}from"./p-CZfYo5-1.js";import{a as B}from"./p-BHf9IqGw.js";import{N as S,O as F}from"./p-RvUQ__Pq.js";import"./p-CTqY6NgS.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-Dpi2ut8h.js";import"./p-B63vgBnY.js";import"./p-BAP2_n0C.js";const R={created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:S,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:S,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:S,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:S,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:S,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},I={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"},x={created_at:(e,a)=>t("td",{part:F(a)},t("div",{class:"fw-bold"},B(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},B(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:F(a)},I[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:F(a)},e.id),amount:(e,a)=>t("td",{part:F(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:F(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:F(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:F(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:F(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:F(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:F(a)},e.source_id),source_type:(e,a)=>t("td",{part:F(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=r,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,R,x),c(),this.analytics=new o(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:r,onError:c,final:o})=>{var d;try{const o=await a.fetchPaymentTransactions(t,e,i);o.error?c({error:h(o.error),code:p(null===(d=o.error)||void 0===d?void 0:d.code),severity:s.ERROR}):r({balanceTransactions:o.data.map((t=>new n(t))),pagingInfo:Object.assign({},o.page_info)})}catch(t){const e=p(null==t?void 0:t.code);c({error:h(t),code:e,severity:s.ERROR})}finally{o()}})({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:"c73dfcd1d3038dbca6800b9bd0f4e6c5fba2b8bf"},t(l,{key:"66d8f92a96f2ace82c05d10a9f538d6ad22b588f"},t(u,{key:"cff0e6344efd035f264326ecc79615bddfe8d0ac"},t(m,{key:"702e53ae1d59ab674425f4753c1cf0b6415feacd"},t(y,{key:"7773de2d113af30b3a0d64405dce5d5e09a0bb8c"},this.transactionsTable.columnData.map((t=>t)))),t(b,{key:"7b86d982f52037349b5cc2f7ec5fa800e38ed519"},t(_,{key:"040c3dfb101c1ea127cfcf982e4415ae94661b2a",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(j,{key:"6d25f8a886cf9b15ea9c17c44dfe0bce6125c557",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(g,{key:"60bb435ecf7a595cdb028df4cd95c1361ce06c8d",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(T,{key:"accb2e3cb9dc8521c50db6a8ed306f91e5aa44c7"},t(w,{key:"a4408276ce552fe4c43c60f79e7a2a3602566b2c"},t(v,{key:"20b13cc71f8b62166e8b6e9fce5dea2d1b4c5ac0",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"90657ed6a805af46446bc8fb316a52252a9a2bf4",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}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DyGx8Avl.js";import{P as o}from"./p-DgsBfaBV.js";import"./p-DMEQUc2C.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{d as p}from"./p-BrUSZwNP.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-jdnTIfew.js";import{c as m,J as c}from"./p-B1kr3GUW.js";import{m as d}from"./p-DYGIC0QH.js";import"./p-B63vgBnY.js";import"./p-BHf9IqGw.js";import"./p-CTqY6NgS.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-Dpi2ut8h.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=d({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as a,H as e,g as i}from"./p-DyGx8Avl.js";import{i as r,a as o,b as h,c as n,l}from"./p-RvUQ__Pq.js";import{F as c}from"./p-B7MgZiYt.js";import{F as f}from"./p-DMlQVSDm.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.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,a=s.getAttribute("name");this.inputHandler(a,s.value),this.formControlInput.emit({name:a,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:n}render(){return a(e,{key:"7d3590c5616114610038d95cf45e3aa1f6fca08f"},a("div",{key:"231c16a61a76aa7501df035639a7c2de474a2578",class:"form-group d-flex flex-column"},a("label",{key:"c6736b7830e68c4ebfad4e954510fa7e6f839772",part:l,class:"form-label",htmlFor:this.name},this.label),a("input",{key:"739a6c3f50a684da033e5a2669bb661cd50836a9",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}),a(c,{key:"456c71cb54cf15bf17b2bcf95140d47db9002bce",helpText:this.helpText,name:this.name}),a(f,{key:"55aa4e9d84f0236e9a1b0e27b174f385de2b9537",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_number}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DyGx8Avl.js";import"./p-DMEQUc2C.js";import"./p-HXpYMWUU.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{C as e}from"./p-BrUSZwNP.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as c,a as p}from"./p-D2muobcE.js";import{c as a,J as n}from"./p-B1kr3GUW.js";import{C as h}from"./p-CiGtDYf9.js";import{m,S as u}from"./p-CFJORLxe.js";import{S as d}from"./p-BzUsLFRB.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-Dlgl52fA.js";import"./p-CTqY6NgS.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-Dpi2ut8h.js";import"./p-B63vgBnY.js";import"./p-BgUmsFt9.js";import"./p-RvUQ__Pq.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=j,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){a(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){this.accountId&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i})=>async({params:r,onSuccess:a,onError:n})=>{var h,m;try{const u=await i.fetchCheckouts(t,s,r);if(u.error)return n({error:p(u.error),code:c(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);a({checkouts:(null===(h=u.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(d,{key:"41bf633467138b6af13b1c02ccf1e1016ec54bfe"},i("checkouts-list-core",{key:"cd3ca431258ad73e701fe74612ecdf2c0f2a1bda",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_checkouts_list}
@@ -1 +0,0 @@
1
- import{h as s,r as i,c as t}from"./p-DyGx8Avl.js";import{c as r,F as e}from"./p-DiJD6Iqx.js";import{b as o,a}from"./p-C9iide2W.js";import{i as p,a as h}from"./p-tYuXMkCd.js";import"./p-DMEQUc2C.js";import"./p-HXpYMWUU.js";import{C as n,a as l}from"./p-Cjcsf8ku.js";import"./p-BrUSZwNP.js";import"./p-CLHwhyvu.js";import{B as m,b as c}from"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as d,J as j}from"./p-B1kr3GUW.js";import{B as u}from"./p-wyo7gH76.js";import{S as f}from"./p-BzUsLFRB.js";import{H as v}from"./p-xgpMjz3-.js";import"./p-CZfYo5-1.js";import{S as b}from"./p-DPWdvb1b.js";import{B as g}from"./p-XYgDHrVL.js";import{m as w,b as C}from"./p-5aA7gjr5.js";import{B}from"./p-DqKxycem.js";import"./p-BFTU3MAI.js";import"./p-PSJOKMWp.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-CTqY6NgS.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-Dpi2ut8h.js";import"./p-B63vgBnY.js";import"./p-RvUQ__Pq.js";import"./p-D2muobcE.js";const y=r(Object.assign(Object.assign({},o().fields),{legal_address:h(),additional_questions:a(),representative:p("representative")})),x=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(b,{width:"25%"})),s("div",{class:"col-12"},s(b,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"50%"}),s(b,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"65%"}),s(b,{width:"35%"}))),D=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(b,{width:"40%",height:"40px"})),s(x,null),s(x,null),s(x,null)),S=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event"),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new m(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new m(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){d(),this.analytics=new j(this),this.formController=new e(y),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=w({authToken:this.authToken,businessId:this.businessId,service:new B}),this.patchBusiness=C({authToken:this.authToken,businessId:this.businessId,service:new B}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:l.MISSING_PROPS,severity:n.ERROR})}handleReponse(s){s.error&&(this.errorMessage=c.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(f,null,this.isLoading?s(D,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(v,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(u,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:g.submit}),isLoading:this.isSaving},"Submit")))))}};export{S as justifi_business_form}
@@ -1 +0,0 @@
1
- import{h as t,r as s,c as e}from"./p-DyGx8Avl.js";import{a as i,b as r}from"./p-C9iide2W.js";import{F as o,c as n,b as a}from"./p-DiJD6Iqx.js";import{A as l,C as h,R as c,c as d}from"./p-BlJnA265.js";import{C as u,P as m}from"./p-B-iV5cYd.js";import{C as p}from"./p-RvUQ__Pq.js";import{S as f}from"./p-DPWdvb1b.js";import"./p-CZfYo5-1.js";import{a as v,r as b,s as y,b as g}from"./p-yH3TC3ZQ.js";import{a as w,B as _}from"./p-XYgDHrVL.js";import{E as x,l as j,m as S}from"./p-BrUSZwNP.js";import{z as k,A as T,B as C,y as O,C as H,D as L}from"./p-PSJOKMWp.js";import"./p-DMEQUc2C.js";import"./p-HXpYMWUU.js";import{C as D,a as E}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{n as A}from"./p-BnjCmwMr.js";import{B}from"./p-wyo7gH76.js";import{i as P,a as V}from"./p-tYuXMkCd.js";import{S as I}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BHf9IqGw.js";import"./p-CTqY6NgS.js";class W{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.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||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const U=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(f,{width:"25%"})),t("div",{class:"col-12"},t(f,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"50%"}),t(f,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"65%"}),t(f,{width:"35%"}))),q=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(f,{width:"40%",height:"40px"})),t(U,null),t(U,null),t(U,null)),F=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 l(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:w.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 l(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 l(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n,a;const l=this.formController.getInitialValues();return this.isLoading?t(q,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"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==l?void 0:l.business_revenue,maskOptions:u.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==l?void 0:l.business_payment_volume,maskOptions:u.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:v,defaultValue:null==l?void 0:l.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:b,defaultValue:null==l?void 0:l.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==l?void 0:l.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:y,defaultValue:null==l?void 0:l.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==l?void 0:l.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},N=(t,s)=>t.some((t=>t.document_type===s)),Y="Please upload either a voided check or a bank statement. Only one is required.",M=(t,s)=>{const e=N(t,x.voidedCheck),i=N(t,x.bankStatement),r=e||i,o=n().shape({bank_name:L.required("Enter bank name"),nickname:H.required("Enter nickname"),account_owner_name:O.required("Enter account owner name"),account_type:C.required("Select account type"),account_number:T.required("Enter account number"),routing_number:k.required("Enter routing number"),voided_check:a().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(Y),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(Y),otherwise:t=>t.notRequired()})},[["voided_check","bank_statement"]]),l=n({bank_name:L.nullable(),nickname:H.nullable(),account_owner_name:O.nullable(),account_type:C.nullable(),account_number:T.nullable(),routing_number:k.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},R=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 j,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(M(this.existingDocuments,this.allowOptionalFields)),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 S({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 W(t.data.bank_accounts[0]):(this.bankAccount=new W({}),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:E.POST_ERROR,message:s.error.message,severity:D.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:E.POST_ERROR,message:t.error.message,severity:D.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 o(M(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){return new W(this.formController.values.getValue()).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:E.POST_ERROR,severity:D.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:w.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(q,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:p},"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("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:p},"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"]}}},X=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.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new h(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()},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:w.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 h(this.formController.values.getValue()).payload}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(r(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){const s=this.formController.getInitialValues();return this.isLoading?t(q,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"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:s.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:s.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:g,defaultValue:s.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:s.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:s.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:s.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:A,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."})),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:s.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:s.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:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})))))}},G=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:w.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:_.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(q,null):t("div",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"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,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),t("div",{class:"d-flex justify-content-start"},t("div",{class:"gap-2"},t(B,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},J=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.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new c(t.data.representative||{}),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:w.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(P("representative",this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(q,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},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.legal_address={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.legal_address=new d(t.data.legal_address||{}),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:w.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 d(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(V(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n;const a=this.formController.getInitialValues();return this.isLoading?t(q,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Legal Address of your Business"),t("form-control-tooltip",{helpText:"No PO Boxes."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line1,errorText:null===(s=this.errors)||void 0===s?void 0:s.line1})),t("div",{class:"col-12"},t("form-control-text",{name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line2,errorText:null===(e=this.errors)||void 0===e?void 0:e.line2})),t("div",{class:"col-12"},t("form-control-text",{name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.city,errorText:null===(i=this.errors)||void 0===i?void 0:i.city})),t("div",{class:"col-12"},t("form-control-select",{name:"state",label:"State",options:I,inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.state,errorText:null===(r=this.errors)||void 0===r?void 0:r.state})),t("div",{class:"col-12"},t("form-control-text",{name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:A})),t("div",{class:"col-12"},t("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{F as justifi_additional_questions_form_step_core,R as justifi_business_bank_account_form_step_core,X as justifi_business_core_info_form_step_core,G as justifi_business_owners_form_step_core,J as justifi_business_representative_form_step_core,Q as justifi_legal_address_form_step_core}
@@ -1 +0,0 @@
1
- import{r as t,h as e,c as i,H as s,g as a}from"./p-DyGx8Avl.js";import{z as n,r as o}from"./p-RvUQ__Pq.js";import{f as r}from"./p-BHf9IqGw.js";import{c as h,o as l,g as c,a as d}from"./p-6EvNOn3-.js";import{S as u}from"./p-BzUsLFRB.js";import"./p-CZfYo5-1.js";import{H as y}from"./p-xgpMjz3-.js";import{H as m,b as p,h as M,i as v}from"./p-D5GwdE1-.js";import{H as g}from"./p-gpZ4wrS9.js";import{J as f,c as k}from"./p-B1kr3GUW.js";import"./p-DMEQUc2C.js";import"./p-HXpYMWUU.js";import{C as j,a as b,b as T}from"./p-Cjcsf8ku.js";import{I as w}from"./p-BrUSZwNP.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as N,a as D}from"./p-D2muobcE.js";import{C as I}from"./p-CiGtDYf9.js";import{A as C}from"./p-B63vgBnY.js";import{P as A,a as E,b as P}from"./p-DCIW8z1f.js";import{C as x}from"./p-ZpPDShvP.js";import"./p-CTqY6NgS.js";import"./p-Dpi2ut8h.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const z=class{constructor(e){t(this,e)}render(){return e(u,{key:"3161e6f6a196c79d684574cafbc90bcf741b2150"},e("section",{key:"594b4485ed4fd9d7c1ee7f4556f071139f92ef0c"},e("div",{key:"5c2d14677dda6fc7ddcb074d4887b839385dca3a"},e("div",{key:"fb850cd7e9c11741349710696dd4e6241c98e805",part:n},null==h?void 0:h.paymentDescription),e("div",{key:"959014d7fa2a9c97bae0c986313a604930c1e0f3"},e("span",{key:"14ab0932a083568419b1c36c95f9072c73962b11",part:n},"Total")," ",e("span",{key:"08a9e00332253070ae984b77eb2a9bab88eb3472",part:n},r(+(null==h?void 0:h.totalAmount)))))))}},L=class{constructor(e){t(this,e),this.levels={h1:y,h2:m,h3:g},this.level="h1"}render(){return e(u,{key:"eb3651b698897193d34a6c6456cd57dd0bd0bc43"},e(this.levels[this.level],{key:"39caee687f93d3d4d90e62d9fbcae318eaa8022e",text:this.text,class:this.class}))}},O=C();class S{async getLinkToken(t,e,i,s){return O.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),O.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:N(null===(n=o.error)||void 0===n?void 0:n.code),severity:j.ERROR});s({checkout:o.data})}catch(t){const e=N(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:N(null===(o=r.error)||void 0===o?void 0:o.code),severity:j.ERROR});a({checkout:r.data})}catch(t){const e=N(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 f(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!==w.completed?t.status!==w.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 P.ECOM;case A.SEZZLE:return P.BNPL;case A.APPLE_PAY:return P.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:"dbe1fe78f8206fef2e3f4f51628d716786dea858"})}get hostEl(){return a(this)}};var U;!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"}(U||(U={}));const R={[U.PLAID_SDK_LOAD_FAILED]:"Unable to load Plaid. Please refresh the page and try again.",[U.PLAID_LINK_INIT_FAILED]:"Unable to initialize bank connection. Please try again.",[U.PLAID_LINK_TOKEN_FAILED]:"Unable to connect to bank service. Please try again.",[U.PLAID_AUTHENTICATION_FAILED]:"Bank authentication failed. Please try again.",[U.PLAID_BANK_NOT_SUPPORTED]:"Your bank is not currently supported. Please try a different payment method.",[U.PLAID_TOKEN_EXPIRED]:"Your bank session has expired. Please reconnect your account.",[U.PLAID_NETWORK_ERROR]:"Network connection issue. Please check your internet connection and try again.",[U.PLAID_USER_CANCELLED]:"Bank connection was cancelled. Click to try again.",[U.PLAID_TIMEOUT]:"Bank connection timed out. Please try again.",[U.PLAID_INVALID_CREDENTIALS]:"Invalid bank credentials. Please check your username and password.",[U.PLAID_ACCOUNT_LOCKED]:"Your bank account is temporarily locked. Please contact your bank.",[U.PLAID_MAINTENANCE]:"Bank service is temporarily unavailable. Please try again later.",[U.PLAID_RATE_LIMITED]:"Too many connection attempts. Please wait a moment and try again."},B={[U.PLAID_SDK_LOAD_FAILED]:j.ERROR,[U.PLAID_LINK_INIT_FAILED]:j.ERROR,[U.PLAID_LINK_TOKEN_FAILED]:j.ERROR,[U.PLAID_AUTHENTICATION_FAILED]:j.ERROR,[U.PLAID_BANK_NOT_SUPPORTED]:j.WARNING,[U.PLAID_TOKEN_EXPIRED]:j.WARNING,[U.PLAID_NETWORK_ERROR]:j.WARNING,[U.PLAID_USER_CANCELLED]:j.INFO,[U.PLAID_TIMEOUT]:j.WARNING,[U.PLAID_INVALID_CREDENTIALS]:j.ERROR,[U.PLAID_ACCOUNT_LOCKED]:j.ERROR,[U.PLAID_MAINTENANCE]:j.WARNING,[U.PLAID_RATE_LIMITED]:j.WARNING},Y=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:U.PLAID_SDK_LOAD_FAILED,message:R[U.PLAID_SDK_LOAD_FAILED],severity:B[U.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:U.PLAID_LINK_TOKEN_FAILED,message:R[U.PLAID_LINK_TOKEN_FAILED],severity:B[U.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:U.PLAID_LINK_INIT_FAILED,message:R[U.PLAID_LINK_INIT_FAILED],severity:B[U.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:U.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=U.PLAID_LINK_TOKEN_FAILED,o=R[n],r=!0;"AbortError"===t.name?(n=U.PLAID_TIMEOUT,o=R[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=U.PLAID_NETWORK_ERROR,o=R[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=U.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 U.PLAID_RATE_LIMITED;if(t.includes("maintenance"))return U.PLAID_MAINTENANCE;if(t.includes("not_authenticated"))return U.PLAID_INVALID_CREDENTIALS}if(null==t?void 0:t.code)switch(t.code){case"rate_limited":return U.PLAID_RATE_LIMITED;case"maintenance":return U.PLAID_MAINTENANCE;case"not_authenticated":return U.PLAID_INVALID_CREDENTIALS;default:return U.PLAID_LINK_TOKEN_FAILED}return U.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=U.PLAID_AUTHENTICATION_FAILED,i=R[e],s=!0,a="Click to try again";if(t.error_code)switch(t.error_code){case"INVALID_CREDENTIALS":e=U.PLAID_INVALID_CREDENTIALS,i=R[e],s=!0;break;case"ITEM_LOGIN_REQUIRED":e=U.PLAID_INVALID_CREDENTIALS,i="Your bank requires re-authentication. Please try again.",s=!0;break;case"ITEM_LOCKED":e=U.PLAID_ACCOUNT_LOCKED,i=R[e],s=!1,a="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":e=U.PLAID_MAINTENANCE,i=R[e],s=!0;break;case"RATE_LIMIT_EXCEEDED":e=U.PLAID_RATE_LIMITED,i=R[e],s=!0;break;case"INVALID_REQUEST":e=U.PLAID_AUTHENTICATION_FAILED,i="Invalid request. Please try again.",s=!0;break;case"PLAID_ERROR":e=U.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=U.PLAID_BANK_NOT_SUPPORTED,i=R[e],s=!1,a="Try a different payment method"):(n.includes("expired")||n.includes("timeout"))&&(e=U.PLAID_TOKEN_EXPIRED,i=R[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:U.PLAID_SDK_LOAD_FAILED,message:R[U.PLAID_SDK_LOAD_FAILED],severity:B[U.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"]}}},Q=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:`${x[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"}}),H=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"},W="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 f(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:W}};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",W);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:"5fc5dad15215fe24b421f4d6c13355fb849b8a76"},e("form",{key:"0e0330e5b11ee3ae0bef9e092fa2fb2a0a6af3e7"},e("fieldset",{key:"ee4c026ccda62a249e019a9e105e40ea465fc400"},e("div",{key:"15a8a86fa5be8a545745260d76a8c3b2569d6a0e",class:"row gy-3"},e("div",{key:"bbbeed6ee96311394a876b4beb206e8e335184c2",class:"col-12"},this.availablePaymentMethods.map((t=>this.renderPaymentMethodOption(t)))),e("div",{key:"da2a2009abe4348e25a5fc712557e81e9f6c4c1f",class:"col-12"},e("justifi-button",{key:"050939c757999383226f281ee0eff1ec178be203",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,L as justifi_header,_ as justifi_modular_checkout,Y as justifi_plaid_payment_method,Q as justifi_saved_payment_methods,H as justifi_sezzle_payment_method,G as justifi_tokenize_payment_method}
@@ -1 +0,0 @@
1
- import{h as o}from"./p-DyGx8Avl.js";import{V as r}from"./p-RvUQ__Pq.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -1 +0,0 @@
1
- import{h as s}from"./p-DyGx8Avl.js";import{z as a,B as t,C as l}from"./p-RvUQ__Pq.js";const e=t=>s("main",{class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},s("p",{part:a},t)),c=a=>s("h2",{part:l,class:"mt-4 fs-5 border-bottom pb-3"},a.sectionTitle),o=({title:t,value:l})=>t&&l?s("div",{class:"row justify-content-between"},s("div",{class:"col-12 col-md-4"},s("span",{class:"fw-bold",part:a},t)),s("div",{class:"col-12 col-md-8"},s("span",{class:"text-wrap",part:a},l))):null,p=({title:t,value:e,classes:c})=>s("div",{class:`d-flex flex-column ${c}`},s("span",{class:"fw-bold border-1 border-bottom ps-2 pe-2",part:l},t),s("span",{class:"pt-2 ps-2 pe-2",part:a},e)),r=({title:l,slot:e,badge:c},o)=>s("div",{slot:e,class:"p-2"},s("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},s("h1",{class:"m-0",part:t},l),c),s("div",{class:"d-flex flex-row align-items-top",part:a},o)),n=({metadata:a})=>a&&Object.keys(a).length?s("div",{class:"mt-4"},s("pre",{class:"p-2","aria-label":"metadata content"},s("code",null,JSON.stringify(a,null,2)))):null;export{n as C,c as D,e as E,r as a,p as b,o as c}
@@ -1 +0,0 @@
1
- import{h as o}from"./p-DyGx8Avl.js";import{B as r}from"./p-RvUQ__Pq.js";const s=s=>o("h1",{class:`header-1 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}