@justifi/webcomponents 6.10.4 → 6.12.0

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 (923) hide show
  1. package/dist/cjs/{check-pkg-version-Mv0ez8Cf.js → Analytics-DZCXB2Za.js} +2 -45
  2. package/dist/cjs/{Plaid-B_UkFjIV.js → Plaid-DR9WDZ98.js} +1 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +4 -4
  4. package/dist/cjs/{justifi-additional-questions-form-step_9.cjs.entry.js → additional-questions-form-step_9.cjs.entry.js} +28 -28
  5. package/dist/cjs/{form-alert_5.cjs.entry.js → additional-questions_5.cjs.entry.js} +26 -26
  6. package/dist/cjs/{badge-Bd6H9TX2.js → badge-GBNtUypt.js} +1 -1
  7. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +203 -0
  8. package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +43 -43
  9. package/dist/cjs/bank-account-form.cjs.entry.js +10 -6
  10. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  11. package/dist/cjs/{business.service-Kplx8w_D.js → business.service-mliLE8kX.js} +1 -1
  12. package/dist/cjs/{button-DAbSQPoU.js → button-CR9Rl1-o.js} +1 -1
  13. package/dist/cjs/card-form.cjs.entry.js +10 -6
  14. package/dist/cjs/check-pkg-version-CUhnNGii.js +47 -0
  15. package/dist/cjs/{checkout.service-B2toaeKY.js → checkout.service-Cok0vRot.js} +1 -1
  16. package/dist/cjs/checkouts-list-core.cjs.entry.js +7 -7
  17. package/dist/cjs/{checkouts-table-KuNixae0.js → checkouts-table-CCxrsy0x.js} +2 -2
  18. package/dist/cjs/custom-popper_2.cjs.entry.js +5 -5
  19. package/dist/cjs/{dispute.service-C4n1SOsu.js → dispute.service-DEH_I2G9.js} +1 -1
  20. package/dist/cjs/{form-control-number-masked_3.cjs.entry.js → form-address-fields_3.cjs.entry.js} +24 -24
  21. package/dist/cjs/form-control-checkbox.cjs.entry.js +7 -7
  22. package/dist/cjs/form-control-date.cjs.entry.js +6 -6
  23. package/dist/cjs/{form-control-error-text-C4Wqr79O.js → form-control-error-text-BO58Y6zF.js} +1 -1
  24. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +9 -9
  25. package/dist/cjs/{form-control-help-text-Bo9d_mCH.js → form-control-help-text-BdbTxD5g.js} +1 -1
  26. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +7 -7
  27. package/dist/cjs/form-control-monetary.cjs.entry.js +7 -7
  28. package/dist/cjs/form-control-number_3.cjs.entry.js +15 -15
  29. package/dist/cjs/form-control-radio.cjs.entry.js +5 -5
  30. package/dist/cjs/form-control-select_2.cjs.entry.js +10 -10
  31. package/dist/cjs/{get-payment-details-Atcodhcd.js → get-payment-details-DNpOyUyR.js} +1 -1
  32. package/dist/cjs/{get-subaccounts-BUyf9EhG.js → get-subaccounts-BQW_RPW5.js} +1 -1
  33. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  34. package/dist/cjs/{header-1-DR-eAlp1.js → header-1-CsBQoo1f.js} +1 -1
  35. package/dist/cjs/{header-3-kgnQtxEu.js → header-3-DCYJhPro.js} +1 -1
  36. package/dist/cjs/hidden-input_2.cjs.entry.js +7 -7
  37. package/dist/cjs/{insurance-state-CRhLwPxQ.js → insurance-state-Xe2auE-N.js} +1 -1
  38. package/dist/cjs/internal-button.cjs.entry.js +18 -0
  39. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +25 -25
  40. package/dist/cjs/{justifi-apple-pay_8.cjs.entry.js → justifi-apple-pay_11.cjs.entry.js} +346 -40
  41. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +46 -0
  42. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +44 -0
  43. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +24 -0
  44. package/dist/cjs/justifi-billing-form.cjs.entry.js +24 -0
  45. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -9
  46. package/dist/cjs/justifi-business-form.cjs.entry.js +13 -12
  47. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +24 -0
  48. package/dist/cjs/justifi-card-form.cjs.entry.js +44 -0
  49. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -11
  50. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +8 -7
  51. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -12
  52. package/dist/cjs/justifi-config-provider.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-details.cjs.entry.js +5 -5
  54. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +3 -3
  55. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -8
  56. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +19 -18
  57. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +9 -8
  58. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -11
  59. package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -10
  60. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +7 -7
  61. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -8
  62. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +12 -11
  63. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
  64. package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -12
  65. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -9
  66. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +12 -11
  67. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
  68. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -13
  69. package/dist/cjs/justifi-refund-payment.cjs.entry.js +12 -11
  70. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +18 -0
  71. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +4 -4
  72. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -9
  73. package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
  74. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +12 -8
  75. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -10
  76. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -5
  77. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -12
  78. package/dist/cjs/loader.cjs.js +1 -1
  79. package/dist/cjs/{package-OpgJzVo3.js → package-CJg8qLYd.js} +1 -1
  80. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  81. package/dist/cjs/{parts-WjOn_TIy.js → parts-BXshb_S-.js} +3 -70
  82. package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
  83. package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
  84. package/dist/cjs/{payment-provisioning-loading-BHAFHTuI.js → payment-provisioning-loading-tM9WWmxv.js} +1 -1
  85. package/dist/cjs/{payment.service-CxSGTv_O.js → payment.service-Dl9UExDw.js} +1 -1
  86. package/dist/cjs/payments-list-core.cjs.entry.js +8 -8
  87. package/dist/cjs/{payments-status-BngaUiWA.js → payments-status-Bj_bCKUP.js} +1 -1
  88. package/dist/cjs/{payments-table-DFOF8yrM.js → payments-table-CUxpxNnc.js} +2 -2
  89. package/dist/cjs/payout-details-core.cjs.entry.js +9 -9
  90. package/dist/cjs/{payout.service-CO2wDM6M.js → payout.service-kaFewwx4.js} +1 -1
  91. package/dist/cjs/payouts-list-core.cjs.entry.js +8 -8
  92. package/dist/cjs/{payouts-status-CP5T9uAc.js → payouts-status-DXZ5fl4v.js} +1 -1
  93. package/dist/cjs/{payouts-table-CHNRLZ3K.js → payouts-table-Dex2W8r1.js} +2 -2
  94. package/dist/cjs/{plaid.service-DvbLnuph.js → plaid.service-CK1ouCBC.js} +1 -1
  95. package/dist/cjs/radio-list-item.cjs.entry.js +21 -0
  96. package/dist/cjs/save-new-payment-method.cjs.entry.js +25 -0
  97. package/dist/cjs/{skeleton-BfN_sjaY.js → skeleton-DvRCiQlA.js} +1 -1
  98. package/dist/cjs/{spinner-51BOfCoS.js → spinner-C6ZGOB2P.js} +1 -1
  99. package/dist/cjs/{table-CimkSek7.js → table-DjbNv28p.js} +2 -2
  100. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  101. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +7 -7
  102. package/dist/cjs/{terminal-orders-table-DDLvv83x.js → terminal-orders-table-07fV7wGh.js} +3 -3
  103. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  104. package/dist/cjs/{terminal.service-CUVwCH-a.js → terminal.service-UUoIe0IR.js} +1 -1
  105. package/dist/cjs/terminals-list-core.cjs.entry.js +7 -7
  106. package/dist/cjs/{terminals-table-BU73whCF.js → terminals-table-DmnAuog5.js} +2 -2
  107. package/dist/cjs/{utils-CowQ4GdN.js → utils-8RGQVADu.js} +1 -1
  108. package/dist/cjs/webcomponents.cjs.js +1 -1
  109. package/dist/collection/api/Terminal.js +1 -1
  110. package/dist/collection/api/services/apple-pay.service.js +1 -1
  111. package/dist/collection/collection-manifest.json +58 -52
  112. package/dist/collection/components/business-details/{business-details.js → justifi-business-details.js} +1 -1
  113. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
  114. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
  115. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +3 -3
  116. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +3 -3
  117. package/dist/collection/components/business-forms/business-form/{business-form.js → justifi-business-form.js} +2 -2
  118. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +2 -2
  119. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +2 -2
  120. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +2 -2
  121. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +3 -3
  122. package/dist/collection/components/business-forms/owner-form/owner-form.js +3 -3
  123. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/{business-additional-questions-form-step.js → additional-questions-form-step.js} +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/bank-account/{bank-account-document-inputs.js → bank-account-document-form-inputs.js} +1 -1
  125. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
  128. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  129. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  130. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +2 -2
  131. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -4
  132. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +2 -2
  133. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +2 -2
  134. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +3 -3
  135. package/dist/collection/components/business-forms/payment-provisioning/{payment-provisioning.js → justifi-payment-provisioning.js} +2 -2
  136. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +2 -2
  137. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +2 -2
  138. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
  139. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +9 -9
  140. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  141. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +11 -16
  142. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.js +16 -35
  143. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.js +19 -37
  144. package/dist/collection/components/checkout/billing-form/billing-form.js +5 -35
  145. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.js +16 -35
  146. package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +140 -0
  147. package/dist/collection/components/checkout/card-form/card-form.js +11 -16
  148. package/dist/collection/components/checkout/{checkout.js → justifi-checkout.js} +3 -24
  149. package/dist/collection/components/checkout/{saved-payment-method.js → justifi-saved-payment-method.js} +2 -2
  150. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +73 -0
  151. package/dist/collection/components/checkout/{save-new-payment-method.js → save-new-payment-method/save-new-payment-method.js} +23 -6
  152. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  153. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +25 -5
  154. package/dist/collection/components/checkouts-list/{checkouts-list.js → justifi-checkouts-list.js} +2 -2
  155. package/dist/collection/components/config-provider/{config-provider.js → justifi-config-provider.js} +1 -1
  156. package/dist/collection/components/dispute-management/dispute-management-core.js +2 -2
  157. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +2 -2
  158. package/dist/collection/components/dispute-management/dispute-response/{additional-statement.js → justifi-additional-statement.js} +2 -2
  159. package/dist/collection/components/dispute-management/dispute-response/{cancellation-policy.js → justifi-cancellation-policy.js} +2 -2
  160. package/dist/collection/components/dispute-management/dispute-response/{customer-details.js → justifi-customer-details.js} +2 -2
  161. package/dist/collection/components/dispute-management/dispute-response/{dispute-response.js → justifi-dispute-response.js} +5 -4
  162. package/dist/collection/components/dispute-management/dispute-response/{duplicate-charge.js → justifi-duplicate-charge.js} +2 -2
  163. package/dist/collection/components/dispute-management/dispute-response/{electronic-evidence.js → justifi-electronic-evidence.js} +2 -2
  164. package/dist/collection/components/dispute-management/dispute-response/{product-or-service.js → justifi-product-or-service.js} +2 -2
  165. package/dist/collection/components/dispute-management/dispute-response/{refund-policy.js → justifi-refund-policy.js} +2 -2
  166. package/dist/collection/components/dispute-management/dispute-response/{shipping-details.js → justifi-shipping-details.js} +2 -2
  167. package/dist/collection/components/dispute-management/{dispute-management.js → justifi-dispute-management.js} +2 -2
  168. package/dist/collection/components/dispute-management/{dispute-notification.js → justifi-dispute-notification.js} +3 -3
  169. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  170. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  171. package/dist/collection/components/gross-payment-chart/{gross-payment-chart.js → justifi-gross-payment-chart.js} +1 -1
  172. package/dist/collection/components/insurance/season-interruption/{season-interruption-insurance.js → justifi-season-interruption-insurance.js} +1 -1
  173. package/dist/collection/components/modular-checkout/{modular-checkout.js → justifi-modular-checkout.js} +41 -3
  174. package/dist/collection/components/modular-checkout/sub-components/{apple-pay.js → justifi-apple-pay.js} +8 -11
  175. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +95 -0
  176. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +69 -0
  177. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +83 -0
  178. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +83 -0
  179. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +69 -0
  180. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +12 -0
  181. package/dist/collection/components/modular-checkout/sub-components/{google-pay.js → justifi-google-pay.js} +1 -1
  182. package/dist/collection/components/modular-checkout/sub-components/{plaid-payment-method.js → justifi-plaid-payment-method.js} +2 -2
  183. package/dist/collection/components/modular-checkout/sub-components/{saved-payment-methods.js → justifi-saved-payment-methods.js} +1 -1
  184. package/dist/collection/components/modular-checkout/sub-components/{sezzle-payment-method.js → justifi-sezzle-payment-method.js} +1 -1
  185. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  186. package/dist/collection/components/order-terminals/{order-terminals.js → justifi-order-terminals.js} +2 -2
  187. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  188. package/dist/collection/components/payment-details/{payment-details.js → justifi-payment-details.js} +1 -1
  189. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  190. package/dist/collection/components/payment-transactions-list/{payment-transactions-list.js → justifi-payment-transactions-list.js} +2 -2
  191. package/dist/collection/components/payments-list/{payments-list-filters.js → justifi-payments-list-filters.js} +5 -5
  192. package/dist/collection/components/payments-list/{payments-list.js → justifi-payments-list.js} +2 -2
  193. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  194. package/dist/collection/components/payout-details/{payout-details.js → justifi-payout-details.js} +1 -1
  195. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  196. package/dist/collection/components/payout-transactions-list/{payout-transactions-list.js → justifi-payout-transactions-list.js} +2 -2
  197. package/dist/collection/components/payouts-list/{payouts-list-filters.js → justifi-payouts-list-filters.js} +5 -5
  198. package/dist/collection/components/payouts-list/{payouts-list.js → justifi-payouts-list.js} +2 -2
  199. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  200. package/dist/collection/components/refund-payment/{refund-payment.js → justifi-refund-payment.js} +1 -1
  201. package/dist/collection/components/terminal-orders-list/{terminal-orders-list-filters.js → justifi-terminal-orders-list-filters.js} +28 -6
  202. package/dist/collection/components/terminal-orders-list/{terminal-orders-list.js → justifi-terminal-orders-list.js} +2 -2
  203. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  204. package/dist/collection/components/terminals-list/{terminals-list-filters.js → justifi-terminals-list-filters.js} +43 -3
  205. package/dist/collection/components/terminals-list/{terminals-list.js → justifi-terminals-list.js} +2 -2
  206. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  207. package/dist/collection/components/tokenize-payment-method/{internal-tokenize-payment-method.js → justifi-tokenize-payment-method.js} +73 -37
  208. package/dist/collection/styles/parts.js +1 -40
  209. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  210. package/dist/collection/ui-components/details/{details.js → justifi-details.js} +2 -2
  211. package/dist/collection/ui-components/form/form-control-checkbox.js +3 -3
  212. package/dist/collection/ui-components/form/form-control-date.js +3 -3
  213. package/dist/collection/ui-components/form/form-control-file-v2.js +2 -2
  214. package/dist/collection/ui-components/form/form-control-file.js +3 -3
  215. package/dist/collection/ui-components/form/form-control-monetary.js +3 -3
  216. package/dist/collection/ui-components/form/form-control-number-masked.js +3 -3
  217. package/dist/collection/ui-components/form/form-control-number.js +3 -3
  218. package/dist/collection/ui-components/form/form-control-radio.js +3 -3
  219. package/dist/collection/ui-components/form/form-control-select.js +3 -3
  220. package/dist/collection/ui-components/form/form-control-text.js +3 -3
  221. package/dist/collection/ui-components/form/form-control-textarea.js +3 -3
  222. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +1 -1
  223. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  224. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  225. package/dist/collection/ui-components/index.js +1 -1
  226. package/dist/collection/ui-components/internal-button.js +192 -0
  227. package/dist/collection/ui-components/radio-list-item.js +153 -0
  228. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +20 -2
  229. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +2 -2
  230. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -5
  231. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  232. package/dist/docs.json +11209 -10644
  233. package/dist/esm/{check-pkg-version-QOngucT4.js → Analytics-C2EVi4Am.js} +4 -46
  234. package/dist/esm/{Api-CLZVsXZg.js → Api-DI0-itk3.js} +1 -1
  235. package/dist/esm/{Plaid-Cmyilr-q.js → Plaid-vwPGZ5y4.js} +2 -2
  236. package/dist/esm/additional-questions-details_5.entry.js +5 -5
  237. package/dist/esm/{justifi-additional-questions-form-step_9.entry.js → additional-questions-form-step_9.entry.js} +22 -22
  238. package/dist/esm/{form-alert_5.entry.js → additional-questions_5.entry.js} +23 -23
  239. package/dist/esm/{badge-BfWXAKIJ.js → badge-B_DdhQ3Q.js} +1 -1
  240. package/dist/esm/bank-account-billing-form-simple_4.entry.js +198 -0
  241. package/dist/esm/bank-account-document-form-inputs_9.entry.js +43 -43
  242. package/dist/esm/bank-account-form.entry.js +12 -8
  243. package/dist/esm/business-details-core.entry.js +3 -3
  244. package/dist/esm/{business.service-CS-wQJoN.js → business.service-M3YvwC-d.js} +2 -2
  245. package/dist/esm/{button-DoF-zpiW.js → button-B-Agn8yQ.js} +1 -1
  246. package/dist/esm/card-form.entry.js +12 -8
  247. package/dist/esm/check-pkg-version-qIHmWcbI.js +45 -0
  248. package/dist/esm/{checkout.service-BcQ_onZq.js → checkout.service-DdIBmfsp.js} +2 -2
  249. package/dist/esm/{checkout.store-iNkW80yV.js → checkout.store-C1TdhFf6.js} +1 -1
  250. package/dist/esm/checkouts-list-core.entry.js +8 -8
  251. package/dist/esm/{checkouts-table-XjFiAWCw.js → checkouts-table-4iLy6mvH.js} +3 -3
  252. package/dist/esm/custom-popper_2.entry.js +5 -5
  253. package/dist/esm/{dispute.service-B_oe0uFV.js → dispute.service-BzzA0DeT.js} +2 -2
  254. package/dist/esm/{form-control-number-masked_3.entry.js → form-address-fields_3.entry.js} +23 -23
  255. package/dist/esm/form-control-checkbox.entry.js +7 -7
  256. package/dist/esm/form-control-date.entry.js +6 -6
  257. package/dist/esm/{form-control-error-text-D5B0Wy4Q.js → form-control-error-text-DMKhr8QA.js} +1 -1
  258. package/dist/esm/form-control-file-v2_2.entry.js +8 -8
  259. package/dist/esm/{form-control-help-text-XuRclELV.js → form-control-help-text-CsdCuw5-.js} +1 -1
  260. package/dist/esm/form-control-monetary-provisioning.entry.js +7 -7
  261. package/dist/esm/form-control-monetary.entry.js +8 -8
  262. package/dist/esm/form-control-number_3.entry.js +13 -13
  263. package/dist/esm/form-control-radio.entry.js +5 -5
  264. package/dist/esm/form-control-select_2.entry.js +9 -9
  265. package/dist/esm/{get-payment-details-BdewJSTH.js → get-payment-details-CN7gUjBc.js} +1 -1
  266. package/dist/esm/{get-subaccounts-BFALCYFr.js → get-subaccounts-Mwx-aVcG.js} +2 -2
  267. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  268. package/dist/esm/{header-1-BIaO3iDb.js → header-1-bRxxOyI-.js} +1 -1
  269. package/dist/esm/{header-3-UswhFvUr.js → header-3-E533c0A3.js} +1 -1
  270. package/dist/esm/hidden-input_2.entry.js +7 -7
  271. package/dist/esm/{insurance-state-MpA7uaXF.js → insurance-state-obAKb1XR.js} +1 -1
  272. package/dist/esm/internal-button.entry.js +16 -0
  273. package/dist/esm/justifi-additional-statement_8.entry.js +18 -18
  274. package/dist/esm/{justifi-apple-pay_8.entry.js → justifi-apple-pay_11.entry.js} +339 -36
  275. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +44 -0
  276. package/dist/esm/justifi-bank-account-form.entry.js +42 -0
  277. package/dist/esm/justifi-billing-form-full.entry.js +22 -0
  278. package/dist/esm/justifi-billing-form.entry.js +22 -0
  279. package/dist/esm/justifi-business-details.entry.js +11 -10
  280. package/dist/esm/justifi-business-form.entry.js +14 -13
  281. package/dist/esm/justifi-card-billing-form-simple.entry.js +22 -0
  282. package/dist/esm/justifi-card-form.entry.js +42 -0
  283. package/dist/esm/justifi-checkout.entry.js +12 -13
  284. package/dist/esm/justifi-checkouts-list-filters.entry.js +9 -8
  285. package/dist/esm/justifi-checkouts-list.entry.js +14 -13
  286. package/dist/esm/justifi-config-provider.entry.js +2 -2
  287. package/dist/esm/justifi-details.entry.js +5 -5
  288. package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
  289. package/dist/esm/justifi-dispute-management.entry.js +10 -9
  290. package/dist/esm/justifi-dispute-notification_3.entry.js +18 -17
  291. package/dist/esm/justifi-gross-payment-chart.entry.js +10 -9
  292. package/dist/esm/justifi-order-terminals.entry.js +13 -12
  293. package/dist/esm/justifi-payment-details.entry.js +12 -11
  294. package/dist/esm/justifi-payment-provisioning-core.entry.js +7 -7
  295. package/dist/esm/justifi-payment-provisioning.entry.js +10 -9
  296. package/dist/esm/justifi-payment-transactions-list.entry.js +13 -12
  297. package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
  298. package/dist/esm/justifi-payments-list.entry.js +14 -13
  299. package/dist/esm/justifi-payout-details.entry.js +11 -10
  300. package/dist/esm/justifi-payout-transactions-list.entry.js +13 -12
  301. package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
  302. package/dist/esm/justifi-payouts-list.entry.js +15 -14
  303. package/dist/esm/justifi-refund-payment.entry.js +13 -12
  304. package/dist/esm/justifi-save-new-payment-method.entry.js +16 -0
  305. package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
  306. package/dist/esm/justifi-season-interruption-insurance.entry.js +12 -11
  307. package/dist/esm/justifi-skeleton.entry.js +3 -3
  308. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +13 -9
  309. package/dist/esm/justifi-terminal-orders-list.entry.js +12 -11
  310. package/dist/esm/justifi-terminals-list-filters.entry.js +8 -6
  311. package/dist/esm/justifi-terminals-list.entry.js +14 -13
  312. package/dist/esm/loader.js +1 -1
  313. package/dist/esm/{package-Cc6518FT.js → package-CIYOQWsL.js} +1 -1
  314. package/dist/esm/pagination-menu.entry.js +1 -1
  315. package/dist/esm/parts-D50Rx76J.js +110 -0
  316. package/dist/esm/payment-details-core.entry.js +15 -15
  317. package/dist/esm/payment-method-option.entry.js +2 -2
  318. package/dist/esm/{payment-provisioning-loading-DRFgrvp1.js → payment-provisioning-loading-BAoIyEOj.js} +1 -1
  319. package/dist/esm/{payment.service-Nvz1TYZB.js → payment.service-0k8z2rOV.js} +2 -2
  320. package/dist/esm/payments-list-core.entry.js +9 -9
  321. package/dist/esm/{payments-status-Dkt38hpB.js → payments-status-7P7L51CK.js} +1 -1
  322. package/dist/esm/{payments-table-ghXGJ-N6.js → payments-table-Bz7LmU_J.js} +3 -3
  323. package/dist/esm/payout-details-core.entry.js +10 -10
  324. package/dist/esm/{payout.service-tTxsxoqF.js → payout.service-C14YvCWQ.js} +2 -2
  325. package/dist/esm/payouts-list-core.entry.js +9 -9
  326. package/dist/esm/{payouts-status-B4iry-1w.js → payouts-status-CGZRMu-q.js} +1 -1
  327. package/dist/esm/{payouts-table-CBsTdL9_.js → payouts-table-Bpt__avQ.js} +3 -3
  328. package/dist/esm/{plaid.service-C59iS7tB.js → plaid.service-Dtxfrsm8.js} +2 -2
  329. package/dist/esm/radio-list-item.entry.js +19 -0
  330. package/dist/esm/save-new-payment-method.entry.js +23 -0
  331. package/dist/esm/{skeleton-DzBAY0bs.js → skeleton-DV6yJalo.js} +1 -1
  332. package/dist/esm/{spinner-DQpyMqKv.js → spinner--fEgBBOG.js} +1 -1
  333. package/dist/esm/{table-BwxLvetJ.js → table-Deugl8h5.js} +2 -2
  334. package/dist/esm/table-filters-menu.entry.js +3 -3
  335. package/dist/esm/terminal-orders-list-core.entry.js +8 -8
  336. package/dist/esm/{terminal-orders-table-Cy0qV96Y.js → terminal-orders-table-DRnRR4zn.js} +4 -4
  337. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  338. package/dist/esm/{terminal.service-Dv1-CZ4Y.js → terminal.service-rxvEhqqF.js} +2 -2
  339. package/dist/esm/terminals-list-core.entry.js +8 -8
  340. package/dist/esm/{terminals-table-BQQs_JoR.js → terminals-table-DSDZgJ77.js} +3 -3
  341. package/dist/esm/{utils-7bp92NC7.js → utils-C_8ZxLti.js} +1 -1
  342. package/dist/esm/{utils-BGbtbDiV.js → utils-DJOBwFeP.js} +1 -1
  343. package/dist/esm/webcomponents.js +1 -1
  344. package/dist/module/Analytics.js +1 -43
  345. package/dist/module/Plaid.js +2 -2
  346. package/dist/module/additional-questions-form-step.d.ts +11 -0
  347. package/dist/module/additional-questions-form-step.js +6 -0
  348. package/dist/module/{business-additional-questions-form-step.js → additional-questions-form-step2.js} +5 -5
  349. package/dist/module/additional-questions.d.ts +11 -0
  350. package/dist/module/additional-questions.js +4 -76
  351. package/dist/module/additional-questions2.js +78 -0
  352. package/dist/module/badge.js +1 -1
  353. package/dist/module/bank-account-billing-form-simple.d.ts +11 -0
  354. package/dist/module/bank-account-billing-form-simple.js +4 -86
  355. package/dist/module/bank-account-billing-form-simple2.js +91 -0
  356. package/dist/module/bank-account-document-form-inputs.js +1 -1
  357. package/dist/module/{bank-account-document-inputs.js → bank-account-document-form-inputs2.js} +1 -1
  358. package/dist/module/bank-account-form-inputs-canada2.js +3 -3
  359. package/dist/module/bank-account-form-inputs2.js +3 -3
  360. package/dist/module/bank-account-form.js +1 -80
  361. package/dist/module/{bank-account.js → bank-account-form2.js} +10 -19
  362. package/dist/module/bank-account-read-only-value2.js +2 -2
  363. package/dist/module/billing-form-full.d.ts +11 -0
  364. package/dist/module/billing-form-full.js +4 -97
  365. package/dist/module/billing-form-full2.js +105 -0
  366. package/dist/module/billing-form-schema.js +1 -1
  367. package/dist/module/billing-form.d.ts +11 -0
  368. package/dist/module/billing-form.js +4 -102
  369. package/dist/module/billing-form2.js +99 -0
  370. package/dist/module/business-additional-questions-schema.js +1 -1
  371. package/dist/module/business-address-schema.js +2 -2
  372. package/dist/module/business-bank-account-form-step.d.ts +11 -0
  373. package/dist/module/business-bank-account-form-step.js +4 -602
  374. package/dist/module/business-bank-account-form-step2.js +604 -0
  375. package/dist/module/business-core-info-form-step.d.ts +11 -0
  376. package/dist/module/business-core-info-form-step.js +4 -215
  377. package/dist/module/business-core-info-form-step2.js +217 -0
  378. package/dist/module/{justifi-owner-form.d.ts → business-core-info.d.ts} +4 -4
  379. package/dist/module/business-core-info.js +4 -92
  380. package/dist/module/business-core-info2.js +94 -0
  381. package/dist/module/business-details-core2.js +1 -1
  382. package/dist/module/business-documents-on-file2.js +3 -3
  383. package/dist/module/business-form-options.js +1 -1
  384. package/dist/module/business-identity-schema.js +2 -2
  385. package/dist/module/business-owners-form-step.d.ts +11 -0
  386. package/dist/module/business-owners-form-step.js +4 -302
  387. package/dist/module/business-owners-form-step2.js +304 -0
  388. package/dist/module/business-representative-form-inputs.d.ts +11 -0
  389. package/dist/module/business-representative-form-inputs.js +4 -100
  390. package/dist/module/business-representative-form-inputs2.js +102 -0
  391. package/dist/module/business-representative-form-step.d.ts +11 -0
  392. package/dist/module/business-representative-form-step.js +4 -220
  393. package/dist/module/business-representative-form-step2.js +222 -0
  394. package/dist/module/business-representative.d.ts +11 -0
  395. package/dist/module/business-representative.js +4 -114
  396. package/dist/module/business-representative2.js +116 -0
  397. package/dist/module/business-terms-conditions-form-step.d.ts +11 -0
  398. package/dist/module/business-terms-conditions-form-step.js +4 -165
  399. package/dist/module/business-terms-conditions-form-step2.js +167 -0
  400. package/dist/module/button.js +1 -1
  401. package/dist/module/card-billing-form-simple.d.ts +11 -0
  402. package/dist/module/card-billing-form-simple.js +4 -86
  403. package/dist/module/card-billing-form-simple2.js +91 -0
  404. package/dist/module/card-form.js +1 -84
  405. package/dist/module/card-form2.js +12 -21
  406. package/dist/module/check-pkg-version.js +45 -0
  407. package/dist/module/checkout.store.js +2 -2
  408. package/dist/module/checkouts-list-core2.js +4 -4
  409. package/dist/module/checkouts-list-params-state.js +1 -1
  410. package/dist/module/config-state.js +1 -1
  411. package/dist/module/custom-popper2.js +2 -2
  412. package/dist/module/dispute-management-core.js +15 -15
  413. package/dist/module/dispute-response-actions.js +2 -2
  414. package/dist/module/dispute-response-core.js +13 -13
  415. package/dist/module/form-address-fields.d.ts +11 -0
  416. package/dist/module/form-address-fields.js +4 -63
  417. package/dist/module/form-address-fields2.js +65 -0
  418. package/dist/module/form-alert2.js +1 -1
  419. package/dist/module/form-control-checkbox.js +2 -2
  420. package/dist/module/form-control-checkbox2.js +8 -8
  421. package/dist/module/form-control-date.js +2 -2
  422. package/dist/module/form-control-date2.js +7 -7
  423. package/dist/module/form-control-file-v2.js +2 -2
  424. package/dist/module/form-control-file-v22.js +4 -4
  425. package/dist/module/form-control-file.js +2 -2
  426. package/dist/module/form-control-file2.js +7 -7
  427. package/dist/module/form-control-help-text.js +1 -1
  428. package/dist/module/form-control-help-text2.js +9 -32
  429. package/dist/module/form-control-help-text3.js +32 -9
  430. package/dist/module/form-control-monetary-provisioning.js +2 -2
  431. package/dist/module/form-control-monetary-provisioning2.js +9 -9
  432. package/dist/module/form-control-monetary.js +2 -2
  433. package/dist/module/form-control-monetary2.js +8 -8
  434. package/dist/module/form-control-number-masked.js +2 -2
  435. package/dist/module/form-control-number-masked2.js +8 -8
  436. package/dist/module/form-control-number.js +2 -2
  437. package/dist/module/form-control-number2.js +8 -8
  438. package/dist/module/form-control-radio.js +2 -2
  439. package/dist/module/form-control-radio2.js +7 -7
  440. package/dist/module/form-control-select.js +2 -2
  441. package/dist/module/form-control-select2.js +7 -7
  442. package/dist/module/form-control-text.js +2 -2
  443. package/dist/module/form-control-text2.js +7 -7
  444. package/dist/module/form-control-textarea.js +2 -2
  445. package/dist/module/form-control-textarea2.js +7 -7
  446. package/dist/module/form-control-tooltip.js +2 -2
  447. package/dist/module/form-control-tooltip2.js +4 -4
  448. package/dist/module/get-business.js +2 -2
  449. package/dist/module/get-payment-details.js +2 -2
  450. package/dist/module/get-payout-csv.js +2 -2
  451. package/dist/module/get-subaccounts.js +2 -2
  452. package/dist/module/gross-payment-chart-core2.js +1 -1
  453. package/dist/module/header-1.js +1 -1
  454. package/dist/module/header-3.js +1 -1
  455. package/dist/module/hidden-input2.js +2 -2
  456. package/dist/module/identity-address-form.d.ts +11 -0
  457. package/dist/module/identity-address-form.js +4 -76
  458. package/dist/module/identity-address-form2.js +78 -0
  459. package/dist/module/iframe-input-styles-state.js +1 -1
  460. package/dist/module/iframe-input2.js +4 -4
  461. package/dist/module/index2.js +3567 -246
  462. package/dist/module/index3.js +246 -3567
  463. package/dist/module/insurance-state.js +1 -1
  464. package/dist/module/internal-button.d.ts +11 -0
  465. package/dist/module/internal-button.js +6 -0
  466. package/dist/module/internal-button2.js +42 -0
  467. package/dist/module/justifi-additional-statement.js +2 -2
  468. package/dist/module/{additional-statement.js → justifi-additional-statement2.js} +5 -5
  469. package/dist/module/justifi-apple-pay.js +2 -2
  470. package/dist/module/{apple-pay.js → justifi-apple-pay2.js} +12 -12
  471. package/dist/module/justifi-bank-account-billing-form-simple.js +81 -2
  472. package/dist/module/justifi-bank-account-form.js +72 -2
  473. package/dist/module/justifi-billing-form-full.js +75 -2
  474. package/dist/module/justifi-billing-form.js +96 -2
  475. package/dist/module/justifi-business-details.js +7 -6
  476. package/dist/module/justifi-business-form.js +38 -37
  477. package/dist/module/justifi-button2.js +10 -4
  478. package/dist/module/justifi-cancellation-policy.js +2 -2
  479. package/dist/module/{cancellation-policy.js → justifi-cancellation-policy2.js} +5 -5
  480. package/dist/module/justifi-card-billing-form-simple.js +69 -2
  481. package/dist/module/justifi-card-form.js +71 -1
  482. package/dist/module/justifi-checkout-summary.js +2 -2
  483. package/dist/module/{summary.js → justifi-checkout-summary2.js} +6 -6
  484. package/dist/module/justifi-checkout.js +73 -62
  485. package/dist/module/justifi-checkouts-list-filters.js +10 -8
  486. package/dist/module/justifi-checkouts-list.js +9 -8
  487. package/dist/module/justifi-config-provider.js +3 -3
  488. package/dist/module/justifi-customer-details.js +2 -2
  489. package/dist/module/{customer-details.js → justifi-customer-details2.js} +5 -5
  490. package/dist/module/justifi-details.js +2 -2
  491. package/dist/module/{details.js → justifi-details2.js} +4 -4
  492. package/dist/module/justifi-dispute-management-core.js +2 -2
  493. package/dist/module/justifi-dispute-management.js +19 -18
  494. package/dist/module/justifi-dispute-notification.js +2 -2
  495. package/dist/module/{dispute-notification.js → justifi-dispute-notification2.js} +7 -7
  496. package/dist/module/justifi-dispute-response-core.js +2 -2
  497. package/dist/module/justifi-dispute-response.js +2 -2
  498. package/dist/module/{dispute-response.js → justifi-dispute-response2.js} +17 -16
  499. package/dist/module/justifi-duplicate-charge.js +2 -2
  500. package/dist/module/{duplicate-charge.js → justifi-duplicate-charge2.js} +5 -5
  501. package/dist/module/justifi-electronic-evidence.js +2 -2
  502. package/dist/module/{electronic-evidence.js → justifi-electronic-evidence2.js} +4 -4
  503. package/dist/module/justifi-google-pay.js +2 -2
  504. package/dist/module/{google-pay.js → justifi-google-pay2.js} +4 -4
  505. package/dist/module/justifi-gross-payment-chart.js +7 -6
  506. package/dist/module/justifi-header.js +2 -2
  507. package/dist/module/justifi-header2.js +4 -4
  508. package/dist/module/justifi-modular-checkout.js +2 -2
  509. package/dist/module/{modular-checkout.js → justifi-modular-checkout2.js} +23 -9
  510. package/dist/module/justifi-order-terminals.js +10 -9
  511. package/dist/module/justifi-payment-details.js +7 -6
  512. package/dist/module/justifi-payment-provisioning-core.js +2 -2
  513. package/dist/module/justifi-payment-provisioning.js +70 -69
  514. package/dist/module/justifi-payment-transactions-list.js +10 -9
  515. package/dist/module/justifi-payments-list-filters.js +8 -8
  516. package/dist/module/justifi-payments-list.js +9 -8
  517. package/dist/module/justifi-payout-details.js +8 -7
  518. package/dist/module/justifi-payout-transactions-list.js +10 -9
  519. package/dist/module/justifi-payouts-list-filters.js +8 -8
  520. package/dist/module/justifi-payouts-list.js +9 -8
  521. package/dist/module/justifi-plaid-payment-method.js +2 -2
  522. package/dist/module/{plaid-payment-method.js → justifi-plaid-payment-method2.js} +7 -7
  523. package/dist/module/justifi-product-or-service.js +2 -2
  524. package/dist/module/{product-or-service.js → justifi-product-or-service2.js} +4 -4
  525. package/dist/module/justifi-radio-list-item2.js +11 -9
  526. package/dist/module/justifi-refund-payment.js +9 -8
  527. package/dist/module/justifi-refund-policy.js +2 -2
  528. package/dist/module/{refund-policy.js → justifi-refund-policy2.js} +5 -5
  529. package/dist/module/justifi-save-new-payment-method.js +50 -2
  530. package/dist/module/justifi-saved-payment-method.js +6 -6
  531. package/dist/module/justifi-saved-payment-methods.js +2 -2
  532. package/dist/module/{saved-payment-methods.js → justifi-saved-payment-methods2.js} +6 -6
  533. package/dist/module/justifi-season-interruption-insurance.js +10 -9
  534. package/dist/module/justifi-sezzle-payment-method.js +2 -2
  535. package/dist/module/{sezzle-payment-method.js → justifi-sezzle-payment-method2.js} +4 -4
  536. package/dist/module/justifi-shipping-details.js +2 -2
  537. package/dist/module/{shipping-details.js → justifi-shipping-details2.js} +5 -5
  538. package/dist/module/justifi-skeleton.js +1 -1
  539. package/dist/module/justifi-terminal-orders-list-filters.js +26 -16
  540. package/dist/module/justifi-terminal-orders-list.js +9 -8
  541. package/dist/module/justifi-terminals-list-filters.js +10 -6
  542. package/dist/module/justifi-terminals-list.js +9 -8
  543. package/dist/module/justifi-tokenize-payment-method.js +2 -167
  544. package/dist/module/{internal-tokenize-payment-method2.js → justifi-tokenize-payment-method2.js} +73 -56
  545. package/dist/module/legal-address-form-step.d.ts +11 -0
  546. package/dist/module/legal-address-form-step.js +4 -189
  547. package/dist/module/legal-address-form-step2.js +191 -0
  548. package/dist/module/legal-address-form.d.ts +11 -0
  549. package/dist/module/legal-address-form.js +4 -74
  550. package/dist/module/legal-address-form2.js +76 -0
  551. package/dist/module/owner-details2.js +1 -1
  552. package/dist/module/owner-form-core.js +2 -2
  553. package/dist/module/owner-form-core2.js +23 -23
  554. package/dist/module/owner-form-inputs.js +2 -2
  555. package/dist/module/owner-form-inputs2.js +23 -23
  556. package/dist/module/owner-form.d.ts +11 -0
  557. package/dist/module/owner-form.js +4 -142
  558. package/dist/module/owner-form2.js +144 -0
  559. package/dist/module/package.js +1 -1
  560. package/dist/module/pagination-menu2.js +1 -1
  561. package/dist/module/parts.js +2 -41
  562. package/dist/module/payment-details-core2.js +10 -10
  563. package/dist/module/payment-method-option.js +4 -4
  564. package/dist/module/payment-provisioning-actions.js +2 -2
  565. package/dist/module/payment-provisioning-core.js +68 -68
  566. package/dist/module/payment-provisioning-form-buttons.d.ts +11 -0
  567. package/dist/module/payment-provisioning-form-buttons.js +4 -49
  568. package/dist/module/payment-provisioning-form-buttons2.js +51 -0
  569. package/dist/module/payment-provisioning-form-steps.d.ts +11 -0
  570. package/dist/module/payment-provisioning-form-steps.js +4 -224
  571. package/dist/module/payment-provisioning-form-steps2.js +226 -0
  572. package/dist/module/payment-provisioning-loading.js +1 -1
  573. package/dist/module/payments-list-core2.js +3 -3
  574. package/dist/module/payments-list-params-state.js +1 -1
  575. package/dist/module/payout-details-core2.js +5 -5
  576. package/dist/module/payouts-list-core2.js +4 -4
  577. package/dist/module/payouts-list-params-state.js +1 -1
  578. package/dist/module/plaid-verification2.js +3 -3
  579. package/dist/module/radio-list-item.d.ts +11 -0
  580. package/dist/module/radio-list-item.js +6 -0
  581. package/dist/module/radio-list-item2.js +55 -0
  582. package/dist/module/representative-details.js +2 -2
  583. package/dist/module/representative-details2.js +4 -4
  584. package/dist/module/save-new-payment-method.d.ts +11 -0
  585. package/dist/module/save-new-payment-method.js +4 -50
  586. package/dist/module/save-new-payment-method2.js +48 -0
  587. package/dist/module/schema-validations.js +2 -2
  588. package/dist/module/skeleton.js +1 -1
  589. package/dist/module/spinner.js +1 -1
  590. package/dist/module/table-filters-menu2.js +2 -2
  591. package/dist/module/table.js +1 -1
  592. package/dist/module/terminal-orders-list-core2.js +3 -3
  593. package/dist/module/terminal-orders-list-params-state.js +1 -1
  594. package/dist/module/terminal-quantity-selector2.js +2 -2
  595. package/dist/module/terminals-list-core2.js +3 -3
  596. package/dist/module/terminals-list-params-state.js +1 -1
  597. package/dist/module/utils.js +1 -1
  598. package/dist/module/utils2.js +1 -1
  599. package/dist/module/utils3.js +24 -23
  600. package/dist/module/utils4.js +23 -24
  601. package/dist/types/api/Checkout.d.ts +1 -0
  602. package/dist/types/api/Terminal.d.ts +3 -1
  603. package/dist/types/api/TerminalOrder.d.ts +1 -0
  604. package/dist/types/components/business-details/{business-details.d.ts → justifi-business-details.d.ts} +1 -1
  605. package/dist/types/components/business-details/representative-details/representative-details.d.ts +1 -1
  606. package/dist/types/components/business-forms/business-form/{business-form.d.ts → justifi-business-form.d.ts} +1 -1
  607. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +1 -1
  608. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +1 -1
  609. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +1 -1
  610. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +1 -1
  611. package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +1 -1
  612. package/dist/types/components/business-forms/payment-provisioning/{payment-provisioning.d.ts → justifi-payment-provisioning.d.ts} +1 -1
  613. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +1 -1
  614. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +6 -6
  615. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +5 -1
  616. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.d.ts +3 -2
  617. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.d.ts +4 -2
  618. package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +1 -1
  619. package/dist/types/components/checkout/billing-form/billing-form.d.ts +0 -1
  620. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.d.ts +3 -2
  621. package/dist/types/components/checkout/billing-form/justifi-billing-form.d.ts +14 -0
  622. package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
  623. package/dist/types/components/checkout/{checkout.d.ts → justifi-checkout.d.ts} +2 -21
  624. package/dist/types/components/checkout/{saved-payment-method.d.ts → justifi-saved-payment-method.d.ts} +1 -1
  625. package/dist/types/components/checkout/save-new-payment-method/justifi-save-new-payment-method.d.ts +7 -0
  626. package/dist/types/components/checkout/{save-new-payment-method.d.ts → save-new-payment-method/save-new-payment-method.d.ts} +2 -1
  627. package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +2 -1
  628. package/dist/types/components/checkouts-list/{checkouts-list.d.ts → justifi-checkouts-list.d.ts} +1 -1
  629. package/dist/types/components/config-provider/{config-provider.d.ts → justifi-config-provider.d.ts} +1 -1
  630. package/dist/types/components/dispute-management/dispute-management-core.d.ts +1 -1
  631. package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +1 -1
  632. package/dist/types/components/dispute-management/dispute-response/{additional-statement.d.ts → justifi-additional-statement.d.ts} +1 -1
  633. package/dist/types/components/dispute-management/dispute-response/{cancellation-policy.d.ts → justifi-cancellation-policy.d.ts} +1 -1
  634. package/dist/types/components/dispute-management/dispute-response/{customer-details.d.ts → justifi-customer-details.d.ts} +1 -1
  635. package/dist/types/components/dispute-management/dispute-response/{dispute-response.d.ts → justifi-dispute-response.d.ts} +2 -2
  636. package/dist/types/components/dispute-management/dispute-response/{duplicate-charge.d.ts → justifi-duplicate-charge.d.ts} +1 -1
  637. package/dist/types/components/dispute-management/dispute-response/{electronic-evidence.d.ts → justifi-electronic-evidence.d.ts} +1 -1
  638. package/dist/types/components/dispute-management/dispute-response/{product-or-service.d.ts → justifi-product-or-service.d.ts} +1 -1
  639. package/dist/types/components/dispute-management/dispute-response/{refund-policy.d.ts → justifi-refund-policy.d.ts} +1 -1
  640. package/dist/types/components/dispute-management/dispute-response/{shipping-details.d.ts → justifi-shipping-details.d.ts} +1 -1
  641. package/dist/types/components/dispute-management/{dispute-management.d.ts → justifi-dispute-management.d.ts} +1 -1
  642. package/dist/types/components/dispute-management/{dispute-notification.d.ts → justifi-dispute-notification.d.ts} +1 -1
  643. package/dist/types/components/gross-payment-chart/{gross-payment-chart.d.ts → justifi-gross-payment-chart.d.ts} +1 -1
  644. package/dist/types/components/insurance/season-interruption/{season-interruption-insurance.d.ts → justifi-season-interruption-insurance.d.ts} +1 -1
  645. package/dist/types/components/modular-checkout/{modular-checkout.d.ts → justifi-modular-checkout.d.ts} +2 -1
  646. package/dist/types/components/modular-checkout/sub-components/{apple-pay.d.ts → justifi-apple-pay.d.ts} +1 -4
  647. package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.d.ts +15 -0
  648. package/dist/types/components/modular-checkout/sub-components/{bank-account.d.ts → justifi-bank-account-form.d.ts} +2 -7
  649. package/dist/types/components/modular-checkout/sub-components/justifi-billing-form-full.d.ts +11 -0
  650. package/dist/types/components/modular-checkout/sub-components/justifi-card-billing-form-simple.d.ts +11 -0
  651. package/dist/types/components/modular-checkout/sub-components/{card-form.d.ts → justifi-card-form.d.ts} +1 -8
  652. package/dist/types/components/modular-checkout/sub-components/justifi-checkout-summary.d.ts +3 -0
  653. package/dist/types/components/modular-checkout/sub-components/{google-pay.d.ts → justifi-google-pay.d.ts} +1 -1
  654. package/dist/types/components/modular-checkout/sub-components/{plaid-payment-method.d.ts → justifi-plaid-payment-method.d.ts} +1 -1
  655. package/dist/types/components/modular-checkout/sub-components/{saved-payment-methods.d.ts → justifi-saved-payment-methods.d.ts} +1 -1
  656. package/dist/types/components/modular-checkout/sub-components/{sezzle-payment-method.d.ts → justifi-sezzle-payment-method.d.ts} +1 -1
  657. package/dist/types/components/order-terminals/{order-terminals.d.ts → justifi-order-terminals.d.ts} +1 -1
  658. package/dist/types/components/payment-details/{payment-details.d.ts → justifi-payment-details.d.ts} +1 -1
  659. package/dist/types/components/payment-transactions-list/{payment-transactions-list.d.ts → justifi-payment-transactions-list.d.ts} +1 -1
  660. package/dist/types/components/payments-list/{payments-list-filters.d.ts → justifi-payments-list-filters.d.ts} +1 -1
  661. package/dist/types/components/payments-list/{payments-list.d.ts → justifi-payments-list.d.ts} +1 -1
  662. package/dist/types/components/payout-details/{payout-details.d.ts → justifi-payout-details.d.ts} +1 -1
  663. package/dist/types/components/payout-transactions-list/{payout-transactions-list.d.ts → justifi-payout-transactions-list.d.ts} +1 -1
  664. package/dist/types/components/payouts-list/{payouts-list-filters.d.ts → justifi-payouts-list-filters.d.ts} +1 -1
  665. package/dist/types/components/payouts-list/{payouts-list.d.ts → justifi-payouts-list.d.ts} +1 -1
  666. package/dist/types/components/refund-payment/{refund-payment.d.ts → justifi-refund-payment.d.ts} +1 -1
  667. package/dist/types/components/terminal-orders-list/{terminal-orders-list-filters.d.ts → justifi-terminal-orders-list-filters.d.ts} +3 -1
  668. package/dist/types/components/terminal-orders-list/{terminal-orders-list.d.ts → justifi-terminal-orders-list.d.ts} +1 -1
  669. package/dist/types/components/terminals-list/{terminals-list-filters.d.ts → justifi-terminals-list-filters.d.ts} +3 -1
  670. package/dist/types/components/terminals-list/{terminals-list.d.ts → justifi-terminals-list.d.ts} +1 -1
  671. package/dist/types/components/tokenize-payment-method/{internal-tokenize-payment-method.d.ts → justifi-tokenize-payment-method.d.ts} +4 -3
  672. package/dist/types/components.d.ts +834 -657
  673. package/dist/types/styles/parts.d.ts +1 -35
  674. package/dist/types/ui-components/details/{details.d.ts → justifi-details.d.ts} +1 -1
  675. package/dist/types/ui-components/form/form-control-checkbox.d.ts +1 -1
  676. package/dist/types/ui-components/form/form-control-date.d.ts +1 -1
  677. package/dist/types/ui-components/form/form-control-file-v2.d.ts +1 -1
  678. package/dist/types/ui-components/form/form-control-file.d.ts +1 -1
  679. package/dist/types/ui-components/form/form-control-monetary.d.ts +1 -1
  680. package/dist/types/ui-components/form/form-control-number-masked.d.ts +1 -1
  681. package/dist/types/ui-components/form/form-control-number.d.ts +1 -1
  682. package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
  683. package/dist/types/ui-components/form/form-control-select.d.ts +1 -1
  684. package/dist/types/ui-components/form/form-control-text.d.ts +1 -1
  685. package/dist/types/ui-components/form/form-control-textarea.d.ts +1 -1
  686. package/dist/types/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +1 -1
  687. package/dist/types/ui-components/index.d.ts +1 -1
  688. package/dist/types/ui-components/internal-button.d.ts +14 -0
  689. package/dist/types/ui-components/radio-list-item.d.ts +12 -0
  690. package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +1 -0
  691. package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +0 -1
  692. package/dist/webcomponents/p-08424d71.entry.js +1 -0
  693. package/dist/webcomponents/{p-56362fb6.entry.js → p-089bc927.entry.js} +1 -1
  694. package/dist/webcomponents/p-0b7fa323.entry.js +1 -0
  695. package/dist/webcomponents/p-16ae88d0.entry.js +1 -0
  696. package/dist/webcomponents/p-179fe9a0.entry.js +1 -0
  697. package/dist/webcomponents/p-1a9aecbf.entry.js +1 -0
  698. package/dist/webcomponents/{p-d07748fa.entry.js → p-1c95ec74.entry.js} +4 -4
  699. package/dist/webcomponents/{p-a6d56b36.entry.js → p-1d1c48c3.entry.js} +1 -1
  700. package/dist/webcomponents/p-1da3ba0f.entry.js +1 -0
  701. package/dist/webcomponents/{p-393c9065.entry.js → p-252a4f75.entry.js} +1 -1
  702. package/dist/webcomponents/p-26062991.entry.js +1 -0
  703. package/dist/webcomponents/p-26074643.entry.js +1 -0
  704. package/dist/webcomponents/{p-3cfc202a.entry.js → p-2719f4db.entry.js} +1 -1
  705. package/dist/webcomponents/p-2a0ce169.entry.js +1 -0
  706. package/dist/webcomponents/p-2b8df3c0.entry.js +1 -0
  707. package/dist/webcomponents/p-2bec5dca.entry.js +1 -0
  708. package/dist/webcomponents/p-358f7121.entry.js +1 -0
  709. package/dist/webcomponents/{p-6b6d8263.entry.js → p-38281490.entry.js} +1 -1
  710. package/dist/webcomponents/p-383798ab.entry.js +1 -0
  711. package/dist/webcomponents/p-3d135aee.entry.js +1 -0
  712. package/dist/webcomponents/{p-ec9f527d.entry.js → p-42129686.entry.js} +1 -1
  713. package/dist/webcomponents/p-431ad048.entry.js +1 -0
  714. package/dist/webcomponents/p-485a8795.entry.js +1 -0
  715. package/dist/webcomponents/p-4d222f42.entry.js +1 -0
  716. package/dist/webcomponents/{p-277bc549.entry.js → p-534833ca.entry.js} +1 -1
  717. package/dist/webcomponents/p-534881d8.entry.js +1 -0
  718. package/dist/webcomponents/p-53dd8569.entry.js +1 -0
  719. package/dist/webcomponents/p-56d58041.entry.js +1 -0
  720. package/dist/webcomponents/p-61784c6a.entry.js +1 -0
  721. package/dist/webcomponents/p-6372a42a.entry.js +1 -0
  722. package/dist/webcomponents/p-7108eead.entry.js +1 -0
  723. package/dist/webcomponents/p-729c9798.entry.js +1 -0
  724. package/dist/webcomponents/{p-df110446.entry.js → p-744f57f0.entry.js} +1 -1
  725. package/dist/webcomponents/p-7742cf61.entry.js +1 -0
  726. package/dist/webcomponents/p-774b69a0.entry.js +1 -0
  727. package/dist/webcomponents/p-77600a47.entry.js +1 -0
  728. package/dist/webcomponents/p-7791b55e.entry.js +1 -0
  729. package/dist/webcomponents/p-783580d4.entry.js +1 -0
  730. package/dist/webcomponents/p-83fd4eae.entry.js +1 -0
  731. package/dist/webcomponents/p-848ae146.entry.js +1 -0
  732. package/dist/webcomponents/p-865d4604.entry.js +1 -0
  733. package/dist/webcomponents/p-89bf64ef.entry.js +1 -0
  734. package/dist/webcomponents/p-8Kt4Rhcq.js +1 -0
  735. package/dist/webcomponents/p-8c52d10a.entry.js +1 -0
  736. package/dist/webcomponents/p-8df335d4.entry.js +1 -0
  737. package/dist/webcomponents/p-90f2c769.entry.js +1 -0
  738. package/dist/webcomponents/p-9639d9d0.entry.js +1 -0
  739. package/dist/webcomponents/p-97d16844.entry.js +1 -0
  740. package/dist/webcomponents/p-9838b5a7.entry.js +1 -0
  741. package/dist/webcomponents/{p-DqtDbB8E.js → p-B6sIVWJW.js} +1 -1
  742. package/dist/webcomponents/p-BJtvT9BX.js +1 -0
  743. package/dist/webcomponents/{p-6V4e6Fb_.js → p-BmEX2SfZ.js} +1 -1
  744. package/dist/webcomponents/p-BrO0HEFJ.js +1 -0
  745. package/dist/webcomponents/{p-b4MDVEve.js → p-Bwzxu5wV.js} +1 -1
  746. package/dist/webcomponents/p-C-QiUcEa.js +1 -0
  747. package/dist/webcomponents/{p-CkX7qWsc.js → p-C1olhiO9.js} +1 -1
  748. package/dist/webcomponents/p-CAl_N2gi.js +1 -0
  749. package/dist/webcomponents/p-CBqZge6m.js +1 -0
  750. package/dist/webcomponents/p-CIYOQWsL.js +1 -0
  751. package/dist/webcomponents/{p-55QcjheA.js → p-CMB3sNMT.js} +1 -1
  752. package/dist/webcomponents/{p-CemnnRdZ.js → p-CWv3GX8X.js} +1 -1
  753. package/dist/webcomponents/{p-PtJwUDIK.js → p-CbM9cuX_.js} +1 -1
  754. package/dist/webcomponents/p-CjuaXEuI.js +1 -0
  755. package/dist/webcomponents/{p-3kNggPyP.js → p-CmXujxGp.js} +1 -1
  756. package/dist/webcomponents/{p-DL3PPUGZ.js → p-CwdQ1VdH.js} +1 -1
  757. package/dist/webcomponents/{p-DvptzT44.js → p-CzdAS9Jo.js} +1 -1
  758. package/dist/webcomponents/p-D0BjjvYt.js +1 -0
  759. package/dist/webcomponents/{p-CV5ZI_qC.js → p-D2TJwp13.js} +1 -1
  760. package/dist/webcomponents/p-D50Rx76J.js +1 -0
  761. package/dist/webcomponents/p-D5MdA21U.js +1 -0
  762. package/dist/webcomponents/p-D68EHdgA.js +1 -0
  763. package/dist/webcomponents/p-DB_pqjwH.js +1 -0
  764. package/dist/webcomponents/{p-C47u26qr.js → p-DL0R5vDy.js} +1 -1
  765. package/dist/webcomponents/{p-B_KHnbK8.js → p-DLmWCafe.js} +1 -1
  766. package/dist/webcomponents/p-Da4efjxw.js +1 -0
  767. package/dist/webcomponents/p-Df9FVwA7.js +1 -0
  768. package/dist/webcomponents/{p-8Wa_-5QM.js → p-Dvcgmvfg.js} +1 -1
  769. package/dist/webcomponents/{p-Daew0gTO.js → p-EBsfAkrP.js} +1 -1
  770. package/dist/webcomponents/p-J7WCmj-J.js +1 -0
  771. package/dist/webcomponents/{p-CMq8FpAG.js → p-MLfmcsbZ.js} +1 -1
  772. package/dist/webcomponents/{p-MeSAYDNh.js → p-MkDHT9M4.js} +1 -1
  773. package/dist/webcomponents/p-N60pPiy5.js +1 -0
  774. package/dist/webcomponents/{p-DrSNQm-e.js → p-_fynNk40.js} +1 -1
  775. package/dist/webcomponents/p-a53fae42.entry.js +1 -0
  776. package/dist/webcomponents/p-a5640aa4.entry.js +1 -0
  777. package/dist/webcomponents/p-b21e5a85.entry.js +1 -0
  778. package/dist/webcomponents/p-b2d7a9dd.entry.js +1 -0
  779. package/dist/webcomponents/p-b31c9979.entry.js +1 -0
  780. package/dist/webcomponents/p-b322d2f3.entry.js +1 -0
  781. package/dist/webcomponents/p-b596cbb3.entry.js +1 -0
  782. package/dist/webcomponents/p-b7ffdb30.entry.js +1 -0
  783. package/dist/webcomponents/p-bac16c16.entry.js +1 -0
  784. package/dist/webcomponents/p-bb4cc829.entry.js +1 -0
  785. package/dist/webcomponents/p-bbdae5b7.entry.js +1 -0
  786. package/dist/webcomponents/p-c07069f1.entry.js +1 -0
  787. package/dist/webcomponents/p-c4da12e0.entry.js +1 -0
  788. package/dist/webcomponents/p-c5be6300.entry.js +1 -0
  789. package/dist/webcomponents/p-c63b8c8f.entry.js +1 -0
  790. package/dist/webcomponents/p-d6350138.entry.js +1 -0
  791. package/dist/webcomponents/{p-79d76cd4.entry.js → p-d667138d.entry.js} +1 -1
  792. package/dist/webcomponents/p-d6c2d51d.entry.js +1 -0
  793. package/dist/webcomponents/p-def798df.entry.js +1 -0
  794. package/dist/webcomponents/p-e2650fe5.entry.js +1 -0
  795. package/dist/webcomponents/p-e4ba0754.entry.js +1 -0
  796. package/dist/webcomponents/p-e939affa.entry.js +1 -0
  797. package/dist/webcomponents/p-e9c20b52.entry.js +1 -0
  798. package/dist/webcomponents/p-ea84c544.entry.js +1 -0
  799. package/dist/webcomponents/p-rz2BF2Sz.js +1 -0
  800. package/dist/webcomponents/webcomponents.esm.js +1 -1
  801. package/package.json +1 -1
  802. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +0 -470
  803. package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +0 -147
  804. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +0 -24
  805. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +0 -101
  806. package/dist/collection/components/modular-checkout/sub-components/card-form.js +0 -105
  807. package/dist/collection/components/modular-checkout/sub-components/summary.js +0 -12
  808. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +0 -296
  809. package/dist/esm/internal-tokenize-payment-method_7.entry.js +0 -462
  810. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +0 -143
  811. package/dist/esm/justifi-tokenize-payment-method.entry.js +0 -22
  812. package/dist/esm/parts-c8J1gsDg.js +0 -149
  813. package/dist/module/internal-tokenize-payment-method.d.ts +0 -11
  814. package/dist/module/internal-tokenize-payment-method.js +0 -6
  815. package/dist/module/justifi-additional-questions-form-step.d.ts +0 -11
  816. package/dist/module/justifi-additional-questions-form-step.js +0 -6
  817. package/dist/module/justifi-additional-questions.d.ts +0 -11
  818. package/dist/module/justifi-additional-questions.js +0 -6
  819. package/dist/module/justifi-business-bank-account-form-step.d.ts +0 -11
  820. package/dist/module/justifi-business-bank-account-form-step.js +0 -6
  821. package/dist/module/justifi-business-core-info-form-step.d.ts +0 -11
  822. package/dist/module/justifi-business-core-info-form-step.js +0 -6
  823. package/dist/module/justifi-business-core-info.d.ts +0 -11
  824. package/dist/module/justifi-business-core-info.js +0 -6
  825. package/dist/module/justifi-business-owners-form-step.d.ts +0 -11
  826. package/dist/module/justifi-business-owners-form-step.js +0 -6
  827. package/dist/module/justifi-business-representative-form-inputs.d.ts +0 -11
  828. package/dist/module/justifi-business-representative-form-inputs.js +0 -6
  829. package/dist/module/justifi-business-representative-form-step.d.ts +0 -11
  830. package/dist/module/justifi-business-representative-form-step.js +0 -6
  831. package/dist/module/justifi-business-representative.d.ts +0 -11
  832. package/dist/module/justifi-business-representative.js +0 -6
  833. package/dist/module/justifi-business-terms-conditions-form-step.d.ts +0 -11
  834. package/dist/module/justifi-business-terms-conditions-form-step.js +0 -6
  835. package/dist/module/justifi-form-address-fields.d.ts +0 -11
  836. package/dist/module/justifi-form-address-fields.js +0 -6
  837. package/dist/module/justifi-identity-address-form.d.ts +0 -11
  838. package/dist/module/justifi-identity-address-form.js +0 -6
  839. package/dist/module/justifi-legal-address-form-step.d.ts +0 -11
  840. package/dist/module/justifi-legal-address-form-step.js +0 -6
  841. package/dist/module/justifi-legal-address-form.d.ts +0 -11
  842. package/dist/module/justifi-legal-address-form.js +0 -6
  843. package/dist/module/justifi-owner-form.js +0 -6
  844. package/dist/module/justifi-payment-provisioning-form-buttons.d.ts +0 -11
  845. package/dist/module/justifi-payment-provisioning-form-buttons.js +0 -6
  846. package/dist/module/justifi-payment-provisioning-form-steps.d.ts +0 -11
  847. package/dist/module/justifi-payment-provisioning-form-steps.js +0 -6
  848. package/dist/types/components/modular-checkout/sub-components/summary.d.ts +0 -3
  849. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +0 -19
  850. package/dist/webcomponents/p-01a84bc8.entry.js +0 -1
  851. package/dist/webcomponents/p-02cf51ab.entry.js +0 -1
  852. package/dist/webcomponents/p-0559b9c1.entry.js +0 -1
  853. package/dist/webcomponents/p-06af9f9f.entry.js +0 -1
  854. package/dist/webcomponents/p-09401e56.entry.js +0 -1
  855. package/dist/webcomponents/p-2531ee6c.entry.js +0 -1
  856. package/dist/webcomponents/p-27518699.entry.js +0 -1
  857. package/dist/webcomponents/p-2b60c926.entry.js +0 -1
  858. package/dist/webcomponents/p-319ac08d.entry.js +0 -1
  859. package/dist/webcomponents/p-32bf8202.entry.js +0 -1
  860. package/dist/webcomponents/p-3469a272.entry.js +0 -1
  861. package/dist/webcomponents/p-37407a7f.entry.js +0 -1
  862. package/dist/webcomponents/p-392c431d.entry.js +0 -1
  863. package/dist/webcomponents/p-43c70ddf.entry.js +0 -1
  864. package/dist/webcomponents/p-4556535d.entry.js +0 -1
  865. package/dist/webcomponents/p-559ff95b.entry.js +0 -1
  866. package/dist/webcomponents/p-5895654d.entry.js +0 -1
  867. package/dist/webcomponents/p-5d4e607a.entry.js +0 -1
  868. package/dist/webcomponents/p-5d5e26f7.entry.js +0 -1
  869. package/dist/webcomponents/p-64d78daf.entry.js +0 -1
  870. package/dist/webcomponents/p-654573c2.entry.js +0 -1
  871. package/dist/webcomponents/p-6986bd9d.entry.js +0 -1
  872. package/dist/webcomponents/p-6b6195c9.entry.js +0 -1
  873. package/dist/webcomponents/p-71b6fdd9.entry.js +0 -1
  874. package/dist/webcomponents/p-77CuiIig.js +0 -1
  875. package/dist/webcomponents/p-79975b5d.entry.js +0 -1
  876. package/dist/webcomponents/p-81b3f90f.entry.js +0 -1
  877. package/dist/webcomponents/p-91bf7445.entry.js +0 -1
  878. package/dist/webcomponents/p-91ee58e0.entry.js +0 -1
  879. package/dist/webcomponents/p-941eac67.entry.js +0 -1
  880. package/dist/webcomponents/p-9438f755.entry.js +0 -1
  881. package/dist/webcomponents/p-95b78da8.entry.js +0 -1
  882. package/dist/webcomponents/p-98a1b12a.entry.js +0 -1
  883. package/dist/webcomponents/p-9eeaf2f9.entry.js +0 -1
  884. package/dist/webcomponents/p-BBNT9yj5.js +0 -1
  885. package/dist/webcomponents/p-BHA4oSi3.js +0 -1
  886. package/dist/webcomponents/p-BMqYkvp1.js +0 -1
  887. package/dist/webcomponents/p-BiNakvsa.js +0 -1
  888. package/dist/webcomponents/p-BnVuFEgH.js +0 -1
  889. package/dist/webcomponents/p-BylxH1fV.js +0 -1
  890. package/dist/webcomponents/p-CVa33GsE.js +0 -1
  891. package/dist/webcomponents/p-CVkk7TvR.js +0 -1
  892. package/dist/webcomponents/p-Cc6518FT.js +0 -1
  893. package/dist/webcomponents/p-CmRrs0bo.js +0 -1
  894. package/dist/webcomponents/p-CmYy5XDp.js +0 -1
  895. package/dist/webcomponents/p-CncaMWc8.js +0 -1
  896. package/dist/webcomponents/p-CtxSp8dd.js +0 -1
  897. package/dist/webcomponents/p-DmrpBh4P.js +0 -1
  898. package/dist/webcomponents/p-a0134f5a.entry.js +0 -1
  899. package/dist/webcomponents/p-a75bc18b.entry.js +0 -1
  900. package/dist/webcomponents/p-abc769fa.entry.js +0 -1
  901. package/dist/webcomponents/p-b3675b20.entry.js +0 -1
  902. package/dist/webcomponents/p-b9248f88.entry.js +0 -1
  903. package/dist/webcomponents/p-bafe9deb.entry.js +0 -1
  904. package/dist/webcomponents/p-bb4da414.entry.js +0 -1
  905. package/dist/webcomponents/p-c5540693.entry.js +0 -1
  906. package/dist/webcomponents/p-c8J1gsDg.js +0 -1
  907. package/dist/webcomponents/p-cb09959d.entry.js +0 -1
  908. package/dist/webcomponents/p-d0abe57d.entry.js +0 -1
  909. package/dist/webcomponents/p-d47909f1.entry.js +0 -1
  910. package/dist/webcomponents/p-d6bf1592.entry.js +0 -1
  911. package/dist/webcomponents/p-dbf2ba9e.entry.js +0 -1
  912. package/dist/webcomponents/p-e0cca91e.entry.js +0 -1
  913. package/dist/webcomponents/p-e4ef4a19.entry.js +0 -1
  914. package/dist/webcomponents/p-eEJMJXTG.js +0 -1
  915. package/dist/webcomponents/p-ee06f2fa.entry.js +0 -1
  916. package/dist/webcomponents/p-f01cdb9f.entry.js +0 -1
  917. package/dist/webcomponents/p-f2110cd2.entry.js +0 -1
  918. package/dist/webcomponents/p-f9f0a5c8.entry.js +0 -1
  919. package/dist/webcomponents/p-fa876b02.entry.js +0 -1
  920. package/dist/webcomponents/p-fe0feef1.entry.js +0 -1
  921. /package/dist/types/components/business-forms/payment-provisioning/additional-questions/{business-additional-questions-form-step.d.ts → additional-questions-form-step.d.ts} +0 -0
  922. /package/dist/types/components/business-forms/payment-provisioning/bank-account/{bank-account-document-inputs.d.ts → bank-account-document-form-inputs.d.ts} +0 -0
  923. /package/dist/webcomponents/{p-99065f37.entry.js → p-9399f4f1.entry.js} +0 -0
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import{c as i}from"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as s,a as o}from"./p-Cjcsf8ku.js";import{i as r}from"./p-BiNakvsa.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{c as n,J as h}from"./p-3kNggPyP.js";import{g as p,a as d}from"./p-D2muobcE.js";import{P as l}from"./p-8Wa_-5QM.js";import{T as f,l as u,a as m,b,c as y,d as _,e as w,f as j,g as T,h as g,i as v,j as k,k as D}from"./p-DL3PPUGZ.js";import{S as C}from"./p-BqNNwq6C.js";import{T as P}from"./p-CZfYo5-1.js";import{a as S}from"./p-MeSAYDNh.js";import{V as I,W as q}from"./p-c8J1gsDg.js";import"./p-D8GTwl9v.js";import"./p-Cc6518FT.js";import"./p-55QcjheA.js";import"./p-DmrpBh4P.js";const O={id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:I,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:I,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:I,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:I,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:I,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:I,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},N={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},A={id:e=>t("td",{part:q(e.id)},e.id),account_id:e=>t("td",{part:q(e.account_id)},e.account_id),payout_id:e=>t("td",{part:q(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:q(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:q(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:q(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:q(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:q(e.currency)},e.currency),description:e=>t("td",{part:q(e.description)},e.description),source_id:e=>t("td",{part:q(e.source_id)},e.source_id),txn_type:e=>t("td",{part:q(e.txn_type)},N[e.txn_type]),created_at:e=>t("td",{part:q(e.created_at)},t("div",{class:"fw-bold"},S(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:q(e.available_on)},t("div",{class:"fw-bold"},S(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:q(e.updated_at)},t("div",{class:"fw-bold"},S(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.updated_at,{showTime:!0})))},E=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:P.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:P.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:P.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,O,A),n(),this.analytics=new h(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:o,onError:c,final:n})=>{var h;try{const n=await a.fetchPayoutTransactions(t,e,i);n.error?c({error:d(n.error),code:p(null===(h=n.error)||void 0===h?void 0:h.code),severity:s.ERROR}):o({balanceTransactions:n.data.map((t=>new r(t))),pagingInfo:Object.assign({},n.page_info)})}catch(t){const e=p(null==t?void 0:t.code);c({error:d(t),code:e,severity:s.ERROR})}finally{n()}})({accountId:i.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(o.MISSING_PROPS,this.errorMessage,s.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(C,{key:"751cbfab0ac4ebff575c0d6e6677bea57498f720"},t(u,{key:"c5e9ae5f08e8011efd13b8e8fc920af25ab6cd80"},t(m,{key:"c2dc2e83a70c9a888d7b24eedca47444fdd7df23"},t(b,{key:"f6031a02be719e94d5b5f6e9b780bf11fa94024a"},t(y,{key:"efcbc758449f7949f206cf3406ea63913687ef16"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"3e02a4b3d30c0e448ac8487ff1b10f0801c56972"},t(w,{key:"b2039804780914b796451e229a6d59e76987c8aa",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(j,{key:"020af52a09946e6711556e850a5bd973d0b8433d",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(T,{key:"299646c62cd4dc45d3c2ba02eb71be4506b2d11a",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(g,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(v,{key:"488b386f6f1bf9fd27a862a0061dabe9c567266a"},t(k,{key:"3d83e2c8b5b966ef54fbd9835cef7950c090d2af"},t(D,{key:"cf4751107a9db70b50b010c1e0c31e9015d63fd8",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"44e53f6fff05692d572bea438c06b3ec47a6fa00",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{E as justifi_payout_transactions_list}
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as i,H as s,g as n}from"./p-CV0Pyo1O.js";import{A as o}from"./p-55QcjheA.js";import{A as a,r,s as l,t as h,u as c,v as d,w as u,I as p,m as y,n as m,o as v}from"./p-BiNakvsa.js";import{S as g}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as M}from"./p-CmYy5XDp.js";import{c as f,o as b,g as w,a as k,b as j}from"./p-Daew0gTO.js";import{H as T,u as N}from"./p-c8J1gsDg.js";import{f as A}from"./p-MeSAYDNh.js";import{w as P,c as I}from"./p-DVJaoI_m.js";import{H as E}from"./p-CmRrs0bo.js";import{H as C,b as D,h as x,i as L}from"./p-DrSNQm-e.js";import{H as S}from"./p-BnVuFEgH.js";import{J as O,c as z}from"./p-3kNggPyP.js";import"./p-HXpYMWUU.js";import{C as R,a as _,b as U}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as B,a as Y}from"./p-D2muobcE.js";import{C as Q}from"./p-BHA4oSi3.js";import{P as F}from"./p-BMqYkvp1.js";import{P as V,a as H,b as G}from"./p-DkoufM1t.js";import{C as Z}from"./p-ZpPDShvP.js";import"./p-D8GTwl9v.js";import"./p-Cc6518FT.js";var q;!function(t){t.UNAVAILABLE="UNAVAILABLE",t.SESSION_ERROR="SESSION_ERROR",t.MERCHANT_VALIDATION_ERROR="MERCHANT_VALIDATION_ERROR",t.PAYMENT_PROCESSING_ERROR="PAYMENT_PROCESSING_ERROR",t.USER_CANCELLED="USER_CANCELLED"}(q||(q={}));class W{constructor(){this.api=o()}initialize(t){if(this.applePayConfig=new a(t),!this.applePayConfig.isValid)throw new Error("Invalid Apple Pay configuration provided")}async validateMerchant(t,e){try{return await this.api.post({endpoint:"apple_pay/merchant_session",authToken:t,headers:{"Sub-Account":e},body:{domain:window.location.host,display_name:this.applePayConfig.displayName}})}catch(t){throw console.error("Backend validation failed:",t),new Error("Merchant validation failed")}}async processPayment(t,e,i){const s=await this.api.post({endpoint:"apple_pay/process_token",authToken:t,body:i,headers:{"Sub-Account":e}});return{success:s.id&&!!s.data.token,data:s}}isAvailable(){return r.isApplePaySupported()&&r.canMakePayments()}async canMakePaymentsWithActiveCard(){if(!this.applePayConfig)throw new Error("Apple Pay not initialized. Call initialize() first.");return await r.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier)}async startPaymentSession(t,e,i){if(!this.applePayConfig)throw console.error("[ApplePayService] Missing applePayConfig. Did you call initialize()?"),new Error("Apple Pay not initialized. Call initialize() first.");const s=new l(t);if(!s.isValid){const t=[];throw s.countryCode||t.push("countryCode"),s.currencyCode||t.push("currencyCode"),s.merchantCapabilities&&0!==s.merchantCapabilities.length||t.push("merchantCapabilities"),s.supportedNetworks&&0!==s.supportedNetworks.length||t.push("supportedNetworks"),s.total&&s.total.label&&s.total.amount||t.push("total"),console.error("[ApplePayService] Payment request is invalid. Missing/invalid:",t),new Error("Invalid payment request provided")}return this.currentPaymentRequest=s,new Promise(((t,n)=>{try{if("undefined"==typeof window||!("ApplePaySession"in window))return console.error("[ApplePayService] ApplePaySession not available on window"),n({success:!1,error:{code:q.UNAVAILABLE,message:"ApplePaySession API is not available in this environment"}});this.currentSession=new window.ApplePaySession(3,s),this.setupSessionEventHandlers(t,n,e,i),this.currentSession.begin()}catch(t){console.error("[ApplePayService] Exception while starting session:",t),n({success:!1,error:{code:q.SESSION_ERROR,message:t instanceof Error?t.message:"Failed to start Apple Pay session"}})}}))}abortPaymentSession(){this.currentSession&&(this.currentSession.abort(),this.currentSession=void 0,this.currentPaymentRequest=void 0)}setupSessionEventHandlers(t,e,i,s){this.currentSession&&this.applePayConfig&&this.currentPaymentRequest?(this.currentSession.onvalidatemerchant=async()=>{try{if(!i)throw console.error("[ApplePayService] Missing authToken for merchant validation"),new Error("Authentication token not provided.");const t=await this.validateMerchant(i,s);try{this.currentSession.completeMerchantValidation(t)}catch(t){throw console.error("Error calling completeMerchantValidation:",t),t}}catch(t){console.error("=== MERCHANT VALIDATION ERROR ==="),console.error("Error during merchant validation:",t),t&&t.stack&&console.error("Error stack:",t.stack),this.currentSession.abort(),e({success:!1,error:{code:q.MERCHANT_VALIDATION_ERROR,message:t instanceof Error?t.message:"Merchant validation failed"}})}},this.currentSession.onpaymentauthorized=async n=>{try{const o=n.payment,a=Object.assign(Object.assign({},o.token),{product_details:{name:this.currentPaymentRequest.total.label,price:r.parseAmount(this.currentPaymentRequest.total.amount),description:this.currentPaymentRequest.total.label}}),l=await this.processPayment(i,s,a);l.success?(this.currentSession.completePayment({status:h.STATUS_SUCCESS}),t({success:!0,token:o.token,paymentMethodId:l.data.id})):(console.error("PSP reported payment failure:",l.data),this.currentSession.completePayment({status:h.STATUS_FAILURE}),e({success:!1,error:{code:q.PAYMENT_PROCESSING_ERROR,message:"Payment processing failed"}}))}catch(t){console.error("=== PAYMENT PROCESSING ERROR ==="),console.error("Error processing payment:",t),t&&t.stack&&console.error("Error stack:",t.stack),this.currentSession.completePayment({status:h.STATUS_FAILURE}),e({success:!1,error:{code:q.PAYMENT_PROCESSING_ERROR,message:t instanceof Error?t.message:"Payment processing failed"}})}finally{this.currentSession=void 0,this.currentPaymentRequest=void 0}},this.currentSession.onpaymentmethodselected=()=>{const t={newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]};try{this.currentSession.completePaymentMethodSelection(t)}catch(t){console.error("Error completing payment method selection:",t),this.currentSession.abort()}},this.currentSession.onshippingmethodselected=()=>{this.currentSession.completeShippingMethodSelection({status:h.STATUS_SUCCESS,newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]})},this.currentSession.oncancel=t=>{if(t.sessionError)switch(console.error(t.sessionError),t.sessionError.code){case"unknown":console.error("Unknown error - likely merchant validation issue"),console.error("This usually means:"),console.error("1. Merchant certificate is invalid or expired"),console.error("2. Merchant identifier mismatch"),console.error("3. Backend validation endpoint issues");break;case"invalidMerchantSession":console.error("Invalid merchant session provided"),console.error("Check that the merchant session from backend is valid");break;case"userCancel":console.error("User cancelled the payment");break;default:console.error("Other error code:",t.sessionError.code)}this.currentSession=void 0,this.currentPaymentRequest=void 0,e({success:!1,error:{code:q.USER_CANCELLED,message:"User cancelled the Apple Pay session"}})},"onerror"in this.currentSession&&(this.currentSession.onerror=t=>{console.error("=== APPLE PAY SESSION ERROR ==="),console.error("Session error:",t),this.currentSession=void 0,this.currentPaymentRequest=void 0,e({success:!1,error:{code:q.SESSION_ERROR,message:"Apple Pay session error occurred"}})})):console.error("[ApplePayService] setupSessionEventHandlers called without required state",{hasSession:Boolean(this.currentSession),hasConfig:Boolean(this.applePayConfig),hasPaymentRequest:Boolean(this.currentPaymentRequest)})}static createPaymentRequest(t,e,i="US",s="USD"){return{countryCode:i,currencyCode:s,merchantCapabilities:r.getDefaultMerchantCapabilities(),supportedNetworks:r.getDefaultSupportedNetworks(),total:r.createLineItem(e,t)}}getApplePayConfig(){return this.applePayConfig}}const J=e=>{const{isLoading:i}=e;return i?t("div",{class:"container-fluid p-0"},t("div",{class:"row mb-3"},t("div",{class:"col-12 align-content-center"},t(M,{height:"44px",width:"100%",styles:{borderRadius:"8px"}})))):null},X=e=>t("div",{class:"apple-pay-button-container"},t("button",Object.assign({class:(()=>{let t="apple-pay-button";switch(e.buttonStyle){case c.WHITE:t+=" apple-pay-button-white";break;case c.WHITE_OUTLINE:t+=" apple-pay-button-white-outline";break;default:t+=" apple-pay-button-black"}switch(e.buttonType){case d.BUY:t+=" apple-pay-button-type-buy";break;case d.DONATE:t+=" apple-pay-button-type-donate";break;default:t+=" apple-pay-button-type-plain"}return(e.disabled||e.isProcessing||!e.isAvailable)&&(t+=" disabled"),t})(),style:{width:e.width,height:e.height},onClick:()=>{!e.disabled&&!e.isProcessing&&e.isAvailable&&e.clickHandler&&e.clickHandler()},disabled:e.disabled||e.isProcessing||!e.isAvailable,"aria-label":"Pay with Apple Pay",type:"button"},e),e.isProcessing&&t("div",{class:"processing-overlay"},t("div",{class:"spinner"}),t("span",null,"Processing..."))),t("style",null,"\n .apple-pay-button-container {\n display: block;\n position: relative;\n width: 100%;\n }\n\n /* Apple Pay CSS classes - these are the official Apple Pay button styles */\n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: plain; /* default */\n -apple-pay-button-style: black; /* default */\n border-radius: 8px;\n cursor: pointer;\n border: none;\n outline: none;\n transition: opacity 0.2s ease;\n position: relative;\n }\n\n /* Button styles */\n .apple-pay-button.apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n\n .apple-pay-button.apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n\n .apple-pay-button.apple-pay-button-white-outline {\n -apple-pay-button-style: white-outline;\n }\n\n /* Button types */\n .apple-pay-button.apple-pay-button-type-plain {\n -apple-pay-button-type: plain;\n }\n\n .apple-pay-button.apple-pay-button-type-buy {\n -apple-pay-button-type: buy;\n }\n\n .apple-pay-button.apple-pay-button-type-donate {\n -apple-pay-button-type: donate;\n }\n\n /* Hover and disabled states */\n .apple-pay-button:hover:not(.disabled) {\n opacity: 0.9;\n }\n\n .apple-pay-button.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n /* Processing overlay */\n .processing-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background: rgba(0, 0, 0, 0.8);\n color: white;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n }\n\n .spinner {\n width: 16px;\n height: 16px;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top: 2px solid #fff;\n border-radius: 50%;\n animation: spin 1s linear infinite;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n\n /* Responsive design */\n @media (max-width: 480px) {\n .apple-pay-button {\n width: 100% !important;\n min-width: 200px;\n }\n }\n ")),$=class{constructor(t){e(this,t),this.applePayStarted=i(this,"applePayStarted",7),this.applePayCompleted=i(this,"applePayCompleted",7),this.applePayCancelled=i(this,"applePayCancelled",7),this.applePayError=i(this,"applePayError",7),this.countryCode="US",this.merchantIdentifier="merchant.com.staging-justifi.checkout-dev",this.merchantDisplayName="JustiFi Checkout",this.initiativeContext="dev-checkout.justifi-staging.com",this.buttonType=d.PLAIN,this.buttonStyle=c.BLACK,this.disabled=!1,this.showSkeleton=!0,this.width="100%",this.height="48px",this.isLoading=!0,this.isProcessing=!1,this.isAvailable=!1,this.canMakePayments=!1,this.isConfigValid=!0,this.error=null,this.handleApplePayClick=async()=>{var t,e,i;if(!this.isProcessing&&!this.disabled&&this.isAvailable)try{this.isProcessing=!0,this.error=null,this.applePayStarted.emit();const i={countryCode:this.countryCode,currencyCode:f.paymentCurrency,merchantCapabilities:[u.SUPPORTS_3DS,u.SUPPORTS_CREDIT,u.SUPPORTS_DEBIT],supportedNetworks:r.getDefaultSupportedNetworks(),total:r.createLineItem(f.paymentDescription,f.paymentAmount)},s=await this.applePayService.startPaymentSession(i,f.authToken,f.accountId);s.success?this.applePayCompleted.emit({success:!0,token:s.token,paymentMethodId:s.paymentMethodId}):(this.applePayCompleted.emit({success:!1,error:s.error}),this.applePayError.emit({error:(null===(t=s.error)||void 0===t?void 0:t.message)||"Payment failed",code:(null===(e=s.error)||void 0===e?void 0:e.code)||$.ErrorCode.PAYMENT_FAILED}))}catch(t){if((null===(i=null==t?void 0:t.error)||void 0===i?void 0:i.code)===q.USER_CANCELLED)this.applePayCancelled.emit();else{const e=t instanceof Error?t.message:"Payment failed";this.error=e,this.applePayError.emit({error:e,code:$.ErrorCode.PAYMENT_FAILED}),this.applePayCompleted.emit({success:!1,error:e})}}finally{this.isProcessing=!1}}}async initializeApplePay(){try{if(this.isLoading=!0,this.error=null,this.isConfigValid=!0,!(Boolean(f.paymentAmount)&&Boolean(f.paymentCurrency)&&Boolean(f.authToken)))return this.error="Missing required Apple Pay configuration",this.isConfigValid=!1,console.error("Apple Pay config error: missing required values",{paymentAmount:f.paymentAmount,paymentCurrency:f.paymentCurrency,hasAuthToken:Boolean(f.authToken),accountId:f.accountId}),this.applePayError.emit({error:this.error,code:$.ErrorCode.CONFIG_ERROR}),void(this.isLoading=!1);if(this.isAvailable=r.isApplePaySupported(),this.canMakePayments=r.canMakePayments(),!this.isAvailable)return this.error="Apple Pay is not supported on this device",console.error(this.error),this.applePayError.emit({error:this.error,code:$.ErrorCode.NOT_SUPPORTED}),void(this.isLoading=!1);if(!this.canMakePayments)return this.error="Apple Pay is not available",console.error(this.error),this.applePayError.emit({error:this.error,code:$.ErrorCode.NOT_AVAILABLE}),void(this.isLoading=!1);const t={merchantIdentifier:this.merchantIdentifier,displayName:this.merchantDisplayName,initiative:"web",initiativeContext:this.initiativeContext,buttonType:this.buttonType,buttonStyle:this.buttonStyle};this.applePayService=new W,this.applePayService.initialize(t),await this.applePayService.canMakePaymentsWithActiveCard()||console.warn("No Apple Pay cards available, but continuing...")}catch(t){console.error("Apple Pay initialization error:",t),this.error=t instanceof Error?t.message:"Failed to initialize Apple Pay",this.applePayError.emit({error:this.error,code:$.ErrorCode.INITIALIZATION_ERROR})}finally{this.isLoading=!1}}async isSupported(){return this.isAvailable&&this.canMakePayments}async getPaymentMethods(){return this.isAvailable?r.getDefaultSupportedNetworks():[]}async abort(){this.applePayService.abortPaymentSession(),this.isProcessing=!1,this.applePayCancelled.emit()}render(){if(!f.applePayEnabled)return null;const e=!this.isLoading&&this.isAvailable&&this.canMakePayments&&this.isConfigValid;return t(g,null,f.checkoutLoaded&&t("script",{async:!0,src:"https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",onLoad:()=>{this.initializeApplePay()}}),t("div",{class:"apple-pay-container"},t(J,{isLoading:this.isLoading}),e&&t(X,{buttonType:this.buttonType,buttonStyle:this.buttonStyle,disabled:this.disabled,isProcessing:this.isProcessing,isAvailable:this.isAvailable,clickHandler:this.handleApplePayClick,width:this.width,height:this.height})),t("style",null,"\n .apple-pay-container {\n width: 100%;\n }\n "))}};$.ErrorCode={CONFIG_ERROR:"CONFIG_ERROR",NOT_SUPPORTED:"NOT_SUPPORTED",NOT_AVAILABLE:"NOT_AVAILABLE",INITIALIZATION_ERROR:"INITIALIZATION_ERROR",PAYMENT_FAILED:"PAYMENT_FAILED"};const K=class{constructor(t){e(this,t)}render(){return t(g,{key:"13d4dd7fbc2335e2af7c24066800e0642df0cd77"},t("section",{key:"456cc598f5cf08e55b0c24ff23945b327df5fb66"},t("div",{key:"37143e2b5157cfb973189335e357f39e78fbb7a1"},t("div",{key:"f4d34254b589f631e5cf7f49cab4d37933a7b1a0",part:T},null==f?void 0:f.paymentDescription),t("div",{key:"7d4f4bad72a2c637eafd95ab7dc73f5881ed4906"},t("span",{key:"37b639cd520e87d73246f5d68a294fa2919376cd",part:T},"Total")," ",t("span",{key:"0ace5f0a3f53dd016d3d3167879364be20f407e4",part:T},A(+(null==f?void 0:f.totalAmount)))))))}},tt=e=>{const{isLoading:i}=e;return i?t("div",{class:"container-fluid p-0"},t("div",{class:"row mb-3"},t("div",{class:"col-12 align-content-center"},t(M,{height:"44px",width:"100%",styles:{borderRadius:"8px"}})))):null};var et;!function(t){t.initialize="justifi.googlePay.initialize",t.ready="justifi.googlePay.ready",t.sdkLoaded="justifi.googlePay.sdkLoaded",t.initializeResult="justifi.googlePay.initializeResult",t.error="justifi.googlePay.error",t.buttonClicked="justifi.googlePay.buttonClicked",t.startPayment="justifi.googlePay.startPayment",t.paymentSuccess="justifi.googlePay.paymentSuccess",t.paymentCanceled="justifi.googlePay.paymentCanceled",t.paymentError="justifi.googlePay.paymentError"}(et||(et={}));const it=class{constructor(t){e(this,t),this.googlePayCompleted=i(this,"googlePayCompleted",7),this.googlePayCancelled=i(this,"googlePayCancelled",7),this.environment="TEST",this.iframeReady=!1,this.sdkLoaded=!1,this.isReadyToPay=!1,this.handleMessage=t=>{if(t.origin!==this.iframeOrigin)return;const{eventType:e,data:i}=t.data||{};switch(e){case et.ready:this.iframeReady=!0;break;case et.sdkLoaded:this.sdkLoaded=!0,this.sendInitialize();break;case et.initializeResult:this.isReadyToPay=i.isReadyToPay,i.error&&console.error("Init error:",i.error);break;case et.error:console.error("Google Pay error:",i);break;case et.buttonClicked:this.sendStartPayment();break;case et.paymentSuccess:this.googlePayCompleted.emit({success:!0,paymentMethodId:i.paymentMethodId,cardNetwork:i.cardNetwork,cardDetails:i.cardDetails});break;case et.paymentCanceled:this.googlePayCancelled.emit();break;case et.paymentError:this.googlePayCompleted.emit({success:!1,error:{code:i.code,message:i.message}})}}}async componentWillLoad(){await P(),this.iframeOrigin=I.iframeOrigin}componentDidLoad(){window.addEventListener("message",this.handleMessage)}disconnectedCallback(){window.removeEventListener("message",this.handleMessage)}sendInitialize(){var t;(null===(t=this.iframeElement)||void 0===t?void 0:t.contentWindow)&&this.iframeElement.contentWindow.postMessage({eventType:et.initialize,data:{environment:this.environment,gatewayMerchantId:f.accountId,merchantName:this.merchantName,authToken:f.authToken,accountId:f.accountId}},this.iframeOrigin)}sendStartPayment(){var t;if(!(null===(t=this.iframeElement)||void 0===t?void 0:t.contentWindow))return;const e={totalPrice:String(f.paymentAmount/100),totalPriceStatus:"FINAL",currencyCode:f.paymentCurrency||"USD"};this.iframeElement.contentWindow.postMessage({eventType:et.startPayment,data:e},this.iframeOrigin)}render(){return f.googlePayEnabled?t(s,null,t(tt,{isLoading:!this.isReadyToPay}),t("iframe",{ref:t=>this.iframeElement=t,src:`${this.iframeOrigin}/v2/googlePay`,style:{border:"none",width:"100%",height:"48px",display:this.isReadyToPay?"block":"none"}})):(console.warn("Google Pay is not enabled for this checkout"),null)}},st=class{constructor(t){e(this,t),this.levels={h1:E,h2:C,h3:S},this.level="h1"}render(){return t(g,{key:"1fc31aaf9d222d4f53e4ca546fd323389f4154c3"},t(this.levels[this.level],{key:"6bc979a358b5a93159d378db2452b57133ed3aaa",text:this.text,class:this.class}))}},nt=class{constructor(t){e(this,t),this.errorEvent=i(this,"error-event",7),this.submitEvent=i(this,"submit-event",7),this.checkoutChangedEvent=i(this,"checkout-changed",7),this.plaidService=new F,this.handleGooglePayCompleted=t=>{const{success:e,paymentMethodId:i,error:s}=t.detail||{};e&&i?(f.paymentToken=i,f.selectedPaymentMethod={type:V.GOOGLE_PAY},this.submitCheckout()):this.errorEvent.emit({message:s&&s.message||"Google Pay payment failed",errorCode:_.TOKENIZE_ERROR,severity:R.ERROR})},this.handleGooglePayCancelled=()=>{f.paymentToken=void 0,f.selectedPaymentMethod=void 0},this.handleApplePayCompleted=t=>{const{success:e,token:i,paymentMethodId:s,error:n}=t.detail;e&&i?(f.paymentToken=s,f.selectedPaymentMethod={type:V.APPLE_PAY},this.submitCheckout()):(console.error("Apple Pay completed but failed:",n),this.errorEvent.emit({message:(null==n?void 0:n.message)||"Apple Pay payment failed",errorCode:_.TOKENIZE_ERROR,severity:R.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:R.ERROR})},this.handleApplePayCancelled=()=>{f.paymentToken=void 0,f.selectedPaymentMethod=void 0}}connectedCallback(){this.observer=new MutationObserver((()=>{this.queryFormRefs(),this.setupApplePayListeners(),this.setupGooglePayListeners()})),this.observer.observe(this.hostEl,{childList:!0,subtree:!0}),f.checkoutId=this.checkoutId;const t={authToken:this.authToken,checkoutId:this.checkoutId,service:new Q};this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:s,onError:n})=>{var o;try{const a=await i.fetchCheckout(t,e);if(a.error)return n({error:Y(a.error),code:B(null===(o=a.error)||void 0===o?void 0:o.code),severity:R.ERROR});s({checkout:a.data})}catch(t){const e=B(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:R.ERROR})}})(t),this.completeCheckout=(({authToken:t,checkoutId:e,service:i})=>async({payment:s,onSuccess:n,onError:o})=>{var a;try{const r=await i.complete(t,e,s);if(r.error)return o({error:Y(r.error),code:B(null===(a=r.error)||void 0===a?void 0:a.code),severity:R.ERROR});n({checkout:r.data})}catch(t){const e=B(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:R.ERROR})}})(t),b((()=>{this.emitCheckoutChanged()}))}componentWillLoad(){this.analytics=new O(this),z(),f.authToken=this.authToken,this.fetchCheckout(),D("set",(t=>{const e=L[t];void 0!==e&&x(t,e)&&this.fetchCheckout()}))}componentDidLoad(){this.queryFormRefs(),this.setupApplePayListeners(),this.setupGooglePayListeners()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.removeApplePayListeners(),this.removeGooglePayListeners()}fetchCheckout(){this.authToken&&this.checkoutId?this.getCheckout&&this.getCheckout({onSuccess:({checkout:t})=>{this.updateStore(t),t.status!==p.completed?t.status!==p.expired||this.errorEvent.emit({message:U.CHECKOUT_EXPIRED,errorCode:_.CHECKOUT_EXPIRED,severity:R.ERROR}):this.errorEvent.emit({message:U.CHECKOUT_ALREADY_COMPLETED,errorCode:_.CHECKOUT_ALREADY_COMPLETED,severity:R.ERROR})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:t.code,severity:t.severity})}}):this.errorEvent.emit({message:U.NOT_AUTHENTICATED,errorCode:_.NOT_AUTHENTICATED,severity:R.ERROR})}updateStore(t){var e,i,s,n,o,a,r;f.accountId=t.account_id,f.checkoutLoaded=!0,f.paymentMethods=t.payment_methods.map((t=>new H(t))),f.paymentMethodGroupId=t.payment_method_group_id,f.paymentDescription=t.payment_description,f.totalAmount=t.total_amount,f.paymentAmount=t.payment_amount,f.bnplEnabled=t.payment_settings.bnpl_payments,f.insuranceEnabled=t.payment_settings.insurance_payments,f.bankAccountVerification=null===(e=t.payment_settings)||void 0===e?void 0:e.bank_account_verification,f.applePayEnabled=null===(i=t.payment_settings)||void 0===i?void 0:i.apple_payments,f.googlePayEnabled=null===(s=t.payment_settings)||void 0===s?void 0:s.google_payments,f.bnplProviderClientId=null===(n=null==t?void 0:t.bnpl)||void 0===n?void 0:n.provider_client_id,f.bnplProviderMode=null===(o=null==t?void 0:t.bnpl)||void 0===o?void 0:o.provider_mode,f.bnplProviderApiVersion=null===(a=null==t?void 0:t.bnpl)||void 0===a?void 0:a.provider_api_version,f.bnplProviderCheckoutUrl=null===(r=null==t?void 0:t.bnpl)||void 0===r?void 0:r.provider_checkout_url}emitCheckoutChanged(){const t={availablePaymentMethodTypes:w(),selectedPaymentMethod:f.selectedPaymentMethod,savedPaymentMethods:f.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.googlePayRef=this.hostEl.querySelector("justifi-google-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))}setupGooglePayListeners(){this.googlePayRef&&(this.googlePayRef.addEventListener("googlePayCompleted",this.handleGooglePayCompleted),this.googlePayRef.addEventListener("googlePayCancelled",this.handleGooglePayCancelled))}removeGooglePayListeners(){this.googlePayRef&&(this.googlePayRef.removeEventListener("googlePayCompleted",this.handleGooglePayCompleted),this.googlePayRef.removeEventListener("googlePayCancelled",this.handleGooglePayCancelled))}async tokenizePaymentMethod(t){var e,i,s;const n=null!==(i=await(null===(e=this.billingFormRef)||void 0===e?void 0:e.getValues()))&&void 0!==i?i:{},o=Object.assign(Object.assign({},t),n),a=Object.assign({accountId:f.accountId,payment_method_group_id:void 0},o);f.savePaymentMethod&&(a.payment_method_group_id=f.paymentMethodGroupId);const r=await(null===(s=this.paymentMethodFormRef)||void 0===s?void 0:s.tokenize({clientId:this.authToken,paymentMethodMetadata:a,account:f.accountId}));return r.error?r:(f.paymentToken=r.id,r.id)}async setSelectedPaymentMethod(t){f.selectedPaymentMethod=t,f.paymentToken=t.id||void 0}async validate(){var t,e;const i=[];f.insuranceEnabled&&this.insuranceFormRef&&i.push(this.insuranceFormRef.validate());const s=(null===(t=f.selectedPaymentMethod)||void 0===t?void 0:t.type)===V.NEW_CARD,n=(null===(e=f.selectedPaymentMethod)||void 0===e?void 0:e.type)===V.NEW_BANK_ACCOUNT;if((s||n)&&(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:_.VALIDATION_ERROR,severity:R.ERROR}),!1)}catch(t){return!1}}async submitCheckout(t){var e,i,s,n,o;const a=await this.validate();if(!f.selectedPaymentMethod)return void this.errorEvent.emit({message:"No payment method selected.",errorCode:_.VALIDATION_ERROR,severity:R.ERROR});const r=(null===(e=f.selectedPaymentMethod)||void 0===e?void 0:e.type)===V.NEW_CARD,l=(null===(i=f.selectedPaymentMethod)||void 0===i?void 0:i.type)===V.NEW_BANK_ACCOUNT,h=(null===(s=f.selectedPaymentMethod)||void 0===s?void 0:s.type)===V.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:_.TOKENIZE_ERROR,severity:R.ERROR})}if(h&&!f.paymentToken){const t=f.plaidPublicToken,e=f.plaidLinkTokenId;if(!t)return void this.errorEvent.emit({message:"Missing Plaid public token. Please connect your bank.",errorCode:_.TOKENIZE_ERROR,severity:R.ERROR});try{const i=await this.plaidService.tokenizeBankAccount(f.authToken,f.accountId,t,e||void 0,f.savePaymentMethod?f.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:_.TOKENIZE_ERROR,severity:R.ERROR});const s=null==i?void 0:i.data,o=(null===(n=null==s?void 0:s.bank_account)||void 0===n?void 0:n.token)||(null==s?void 0:s.token)||(null==s?void 0:s.id);f.paymentToken=o}catch(t){return void this.errorEvent.emit({message:(null==t?void 0:t.message)||"Plaid exchange error",errorCode:_.TOKENIZE_ERROR,severity:R.ERROR})}}if(!a)return void this.errorEvent.emit({message:"Please fill in all required fields.",errorCode:_.VALIDATION_ERROR,severity:R.ERROR});if(!f.paymentToken)return void this.errorEvent.emit({message:"Payment token not found.",errorCode:_.TOKENIZE_ERROR,severity:R.ERROR});let c;if(c={payment_mode:(t=>{switch(t){case V.NEW_CARD:case V.SAVED_CARD:case V.NEW_BANK_ACCOUNT:case V.SAVED_BANK_ACCOUNT:case V.PLAID:return G.ECOM;case V.SEZZLE:return G.BNPL;case V.APPLE_PAY:return G.APPLE_PAY;case V.GOOGLE_PAY:return G.GOOGLE_PAY;default:return}})(null===(o=f.selectedPaymentMethod)||void 0===o?void 0:o.type),payment_token:f.paymentToken},this.preCompleteHook){const t=k();try{await new Promise(((e,i)=>{this.preCompleteHook(t,(()=>e()),(()=>i()))}))}catch(t){return void console.log("Checkout cancelled by preCompleteHook",t)}}this.completeCheckout({payment:c,onSuccess:({checkout:t})=>{this.submitEvent.emit({checkout:t,message:"Checkout completed successfully"})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:_.COMPLETE_CHECKOUT_ERROR,severity:R.ERROR})}})}render(){return t(s,{key:"ee341d8d78767a80e2627ea5244ba46ca63cd8df"})}get hostEl(){return n(this)}},ot=class{constructor(t){e(this,t),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected",7),this.plaidError=i(this,"plaidError",7),this.plaidErrorRecovered=i(this,"plaidErrorRecovered",7),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 F,this.maxRetries=3,this.retryDelay=2e3,this.timeoutId=null,this.abortController=null,this.hasLoggedDisabledWarning=!1,this.waitForStoreAndInitialize=()=>{f.authToken&&f.accountId&&f.checkoutId?this.initializePlaidLink():setTimeout((()=>{this.waitForStoreAndInitialize()}),100)},this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:v.PLAID_SDK_LOAD_FAILED,message:m[v.PLAID_SDK_LOAD_FAILED],severity:y[v.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:v.PLAID_LINK_TOKEN_FAILED,message:m[v.PLAID_LINK_TOKEN_FAILED],severity:y[v.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:v.PLAID_LINK_INIT_FAILED,message:m[v.PLAID_LINK_INIT_FAILED],severity:y[v.PLAID_LINK_INIT_FAILED],originalError:t,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var t,e,i,s,n;try{if(!f.authToken||!f.accountId)return void this.handleError({code:v.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please refresh the page and try again.",severity:R.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(f.authToken,f.accountId,f.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&&(f.plaidLinkTokenId=this.linkTokenId)}catch(t){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let o=v.PLAID_LINK_TOKEN_FAILED,a=m[o],r=!0;"AbortError"===t.name?(o=v.PLAID_TIMEOUT,a=m[o],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"))?(o=v.PLAID_NETWORK_ERROR,a=m[o],r=!0):((null===(s=t.message)||void 0===s?void 0:s.includes("401"))||(null===(n=t.message)||void 0===n?void 0:n.includes("unauthorized")))&&(o=v.PLAID_INVALID_CREDENTIALS,a="Authentication failed. Please refresh the page and try again.",r=!1),this.handleError({code:o,message:a,severity:y[o],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 v.PLAID_RATE_LIMITED;if(t.includes("maintenance"))return v.PLAID_MAINTENANCE;if(t.includes("not_authenticated"))return v.PLAID_INVALID_CREDENTIALS}if(null==t?void 0:t.code)switch(t.code){case"rate_limited":return v.PLAID_RATE_LIMITED;case"maintenance":return v.PLAID_MAINTENANCE;case"not_authenticated":return v.PLAID_INVALID_CREDENTIALS;default:return v.PLAID_LINK_TOKEN_FAILED}return v.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,f.selectedPaymentMethod={type:V.PLAID}),this.plaidErrorRecovered.emit({code:"plaid-success",message:"Bank account connected successfully",severity:R.INFO}),f.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=v.PLAID_AUTHENTICATION_FAILED,i=m[e],s=!0,n="Click to try again";if(t.error_code)switch(t.error_code){case"INVALID_CREDENTIALS":e=v.PLAID_INVALID_CREDENTIALS,i=m[e],s=!0;break;case"ITEM_LOGIN_REQUIRED":e=v.PLAID_INVALID_CREDENTIALS,i="Your bank requires re-authentication. Please try again.",s=!0;break;case"ITEM_LOCKED":e=v.PLAID_ACCOUNT_LOCKED,i=m[e],s=!1,n="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":e=v.PLAID_MAINTENANCE,i=m[e],s=!0;break;case"RATE_LIMIT_EXCEEDED":e=v.PLAID_RATE_LIMITED,i=m[e],s=!0;break;case"INVALID_REQUEST":e=v.PLAID_AUTHENTICATION_FAILED,i="Invalid request. Please try again.",s=!0;break;case"PLAID_ERROR":e=v.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 o=t.error_message.toLowerCase();o.includes("not supported")||o.includes("unsupported")?(e=v.PLAID_BANK_NOT_SUPPORTED,i=m[e],s=!1,n="Try a different payment method"):(o.includes("expired")||o.includes("timeout"))&&(e=v.PLAID_TOKEN_EXPIRED,i=m[e],s=!0)}this.handleError({code:e,message:i,severity:y[e],originalError:t,retryable:s,userAction:n}),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=f.selectedPaymentMethod)||void 0===t?void 0:t.type)===V.PLAID;this.isSelected!==e&&(this.isSelected=e)}}onSelectionChange(t){var e;t&&(null===(e=f.selectedPaymentMethod)||void 0===e?void 0:e.type)!==V.PLAID&&(f.selectedPaymentMethod={type:V.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:v.PLAID_SDK_LOAD_FAILED,message:m[v.PLAID_SDK_LOAD_FAILED],severity:y[v.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})})}componentWillLoad(){var t;this.isSelected=(null===(t=f.selectedPaymentMethod)||void 0===t?void 0:t.type)===V.PLAID}async resolvePaymentMethod(){return this.publicToken?{token:this.publicToken,data:{type:"bank_account",plaid_public_token:this.publicToken}}:{validationError:!0}}async getPaymentToken(){return f.paymentToken}async handleSelectionClick(){if(this.isSelected=!0,f.selectedPaymentMethod={type:V.PLAID},this.error)return this.clearError(),void this.waitForStoreAndInitialize();!this.plaidLink||this.publicToken||this.isAuthenticating||this.openPlaidLink()}async setSelected(t){this.isSelected=t,t&&(f.selectedPaymentMethod={type:V.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=j("selectedPaymentMethod",this.syncWithStore);this.unsubscribeFromStore=t}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){if(!0!==f.bankAccountVerification)return this.hasLoggedDisabledWarning||(console.warn("[PlaidPaymentMethod] bank_account_verification is disabled. Component will not render."),this.hasLoggedDisabledWarning=!0),null;const e=t("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 t(g,{class:"payment-method"},t("script",{src:"https://cdn.plaid.com/link/v2/stable/link-initialize.js",async:!0,ref:t=>this.scriptRef=t}),t("div",{title:"Pay with Plaid"},t("div",{onClick:t=>{t.preventDefault(),this.handleSelectionClick()}},"Pay with Bank Account ",e," "),(()=>this.error?t("div",{class:(this.error.severity===R.ERROR?"text-danger":this.error.severity===R.WARNING?"text-warning":"text-info")+" mt-2"},t("small",null,this.error.message),t("br",null),t("small",{class:"text-muted"},this.error.userAction,this.error.retryable&&this.retryCount<this.maxRetries&&t("span",null," • Auto-retry in progress..."))):null)(),(()=>this.error?null:this.isAuthenticating?t("div",{class:"text-info mt-2"},t("small",null,"Connecting to your bank...")):this.publicToken?t("div",{class:"text-success mt-2"},t("small",null,"✓ Bank account connected successfully")):!this.isSelected||this.publicToken||this.error||this.isAuthenticating?null:t("div",{class:"text-muted mt-2"},t("small",null,"Click to connect your bank account")))()))}static get watchers(){return{isSelected:["onSelectionChange"]}}},at=class{constructor(t){e(this,t),this.onPaymentMethodOptionClick=t=>e=>{e.preventDefault(),f.selectedPaymentMethod={id:t.id,type:t.type},f.paymentToken=t.id},this.isAllowedPaymentMethod=t=>!(t===V.SAVED_CARD&&f.disableCreditCard||t===V.SAVED_BANK_ACCOUNT&&f.disableBankAccount)}componentWillLoad(){f.paymentMethods.length||console.warn("No saved payment methods available."),f.disablePaymentMethodGroup&&console.warn("Payment method group is disabled.")}render(){return f.disablePaymentMethodGroup?null:t(g,null,t("div",{class:"saved-payment-methods"},f.paymentMethods.length?f.paymentMethods.filter((t=>this.isAllowedPaymentMethod(t.type))).map((e=>t("div",{class:"radio-list-item p-3",part:N,onClick:this.onPaymentMethodOptionClick(e)},t("form-control-radio",{name:"paymentMethodType",value:null==e?void 0:e.id,checked:f.paymentToken===(null==e?void 0:e.id),label:`${Z[null==e?void 0:e.brand]||""} *${null==e?void 0:e.acct_last_four}`})))):null))}},rt=t("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"}}),lt=class{constructor(t){e(this,t),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected",7),this.paymentMethodOptionId=V.SEZZLE,this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((e=>{t=e}));const e=Number(f.paymentAmount),i=new(0,window.Checkout)({mode:"popup",publicKey:f.bnplProviderClientId,apiMode:f.bnplProviderMode,apiVersion:f.bnplProviderApiVersion});i.sezzleButtonElement=this.sezzleButtonRef,i.init({onClick:function(t){t.preventDefault(),i.startCheckout({checkout_url:f.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(){f.selectedPaymentMethod={type:V.SEZZLE},this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)}render(){var e,i;return f.bnplEnabled?t(g,{class:"payment-method"},t("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),t("div",null,t("div",null,"Buy now, pay later with ",rt),this.installmentPlan&&t("small",null,t("span",null,null===(e=this.installmentPlan)||void 0===e?void 0:e.installments.length)," ",t("span",null,this.installmentPlan.schedule," payments of")," ",t("span",{class:"fw-bold"},A(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)}};export{$ as justifi_apple_pay,K as justifi_checkout_summary,it as justifi_google_pay,st as justifi_header,nt as justifi_modular_checkout,ot as justifi_plaid_payment_method,at as justifi_saved_payment_methods,lt as justifi_sezzle_payment_method}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,g as s,H as a}from"./p-CV0Pyo1O.js";import{S as r}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as n,J as d}from"./p-3kNggPyP.js";import{w as o,c}from"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{a as h,C as l}from"./p-Cjcsf8ku.js";import"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{c as f}from"./p-Daew0gTO.js";import{P as u}from"./p-DkoufM1t.js";import{S as m}from"./p-CmYy5XDp.js";import{b}from"./p-MeSAYDNh.js";import{B as p}from"./p-77CuiIig.js";import{u as y}from"./p-c8J1gsDg.js";import"./p-Cc6518FT.js";import"./p-55QcjheA.js";import"./p-D8GTwl9v.js";const v=class{constructor(i){t(this,i),this.radioClick=e(this,"radio-click",7),this.checked=!1,this.hidden=!1,this.handleClick=()=>{this.radioClick.emit(this.value)}}render(){return i(r,{key:"1ae40f787970160e38b72f917bda96f480d2a890"},i("div",{key:"2130596c8294cc38365e6126806735da0f93ef4a",class:`radio-list-item p-3 ${this.class||""}`,part:y,onClick:this.handleClick,hidden:this.hidden},i("form-control-radio",{key:"7d5524f518430f2bfd1c9863f354318929353cfb",name:this.name,value:this.value,checked:this.checked,label:this.label,inputHandler:()=>null})))}},g={[u.NEW_BANK_ACCOUNT]:"New bank account",[u.NEW_CARD]:"New credit or debit card"},k="Payment form not ready",w="Validation error",j=class{constructor(i){t(this,i),this.errorEvent=e(this,"error-event",7),this.submitEvent=e(this,"submit-event",7),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(){n(),this.analytics=new d(this)}handleRadioClick(t){this.selectedPaymentMethod=t.detail,f.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:h.TOKENIZE_ERROR,message:w}),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(h.TOKENIZE_ERROR,t.message);return this.emitError({errorCode:h.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:k}};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||f.authToken,account:this.accountId||f.accountId,paymentMethodMetadata:this.buildPaymentMethodMetadata(t)};return await this.paymentMethodFormRef.tokenize(e)}catch(t){return t}}validateRequiredProps(){this.authToken||f.authToken||this.emitError({errorCode:h.TOKENIZE_ERROR,message:"Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"}),this.accountId||f.accountId||this.emitError({errorCode:h.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=u.NEW_BANK_ACCOUNT,f.selectedPaymentMethod={type:u.NEW_BANK_ACCOUNT}):(this.selectedPaymentMethod=u.NEW_CARD,f.selectedPaymentMethod={type:u.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(u.NEW_CARD),this.disableBankAccount||t.push(u.NEW_BANK_ACCOUNT),t}areFormsReady(){return!(!this.billingFormRef||!this.paymentMethodFormRef)}emitError(t){this.errorEvent.emit(Object.assign(Object.assign({},t),{severity:l.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",k);try{const e=await this.validate();if(!e.isValid||!t.isValid){const t=Object.values(e.errors)[0]||w;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||f.paymentMethodGroupId}get shouldSavePaymentMethod(){return!(!this.paymentMethodGroupId&&!f.savePaymentMethod)}get shouldHideRadioInput(){return this.disableCreditCard||this.disableBankAccount}renderPaymentMethodOption(t){const e=this.selectedPaymentMethod===t&&void 0===f.selectedPaymentMethod.id;return i("div",{class:"payment-method"},i("justifi-radio-list-item",{name:"paymentMethodType",value:t,checked:e,label:g[t],hidden:this.shouldHideRadioInput}),e&&this.renderSelectedPaymentMethodForm(t))}renderSelectedPaymentMethodForm(t){return i("div",{class:"mt-4 pb-4"},this.renderPaymentMethodForm(t),i("div",{class:"mt-4"},i("justifi-billing-form",{ref:t=>this.billingFormRef=t,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:t})),i("div",{class:"mt-4"},i("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupID,label:this.savePaymentMethodLabel})))}renderPaymentMethodForm(t){return i(t===u.NEW_CARD?"justifi-card-form":"justifi-bank-account-form",{ref:t=>this.paymentMethodFormRef=t})}render(){return i(r,{key:"bb6a2e0eec485c96a756c504a278670804be0634"},i("form",{key:"f12f65c8fbe45e86418be9d3c2ff1107e292c86d"},i("fieldset",{key:"becda77faf80fd8b1e6d967cc4ead3d4adc3b6e8"},i("div",{key:"0419c1843747f59e68800ae3e2c78096b32605b0",class:"row gy-3"},i("div",{key:"8724f40a13bc62808f6e99cced2f8d7419b22d53",class:"col-12"},this.availablePaymentMethods.map((t=>this.renderPaymentMethodOption(t)))),i("div",{key:"ec9c0e2f6a85976d68e3dc939cd2826bfbd840d8",class:"col-12"},i("justifi-button",{key:"1c4b6a83c8357e15eaba071ea2fb8ba82b4c978c",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 s(this)}static get watchers(){return{disableCreditCard:["paymentMethodsChanged"],disableBankAccount:["paymentMethodsChanged"]}}},C=t=>{const{isReady:e}=t;return e?null:i("div",{class:"container-fluid p-0"},i("div",{class:"row mb-3"},i("div",{class:"col-12 align-content-end"},i(m,{height:"18px",width:"120px"}),i(m,{height:"36px"}))),i("div",{class:"row"},i("div",{class:"col-12 align-content-end"},i(m,{height:"18px",width:"110px"}),i(m,{height:"36px"}))))},M=class{constructor(e){t(this,e),this.isReady=!1}async componentWillLoad(){await o(),this.iframeOrigin=c.iframeOrigin,this.tabId=b(),n(),this.analytics=new d(this)}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((t=>new Promise((e=>{t.addEventListener("iframeLoaded",(()=>{e()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){const t=await this.accountNumberIframeElement.validate(),e=await this.routingNumberIframeElement.validate();return t&&e}async tokenize({clientId:t,paymentMethodMetadata:e,account:i}){return this.accountNumberIframeElement.tokenize(t,e,i)}render(){return i(r,{key:"6c1e183b7ba2c70b41e22386d74a9cf7430aa8d5"},i(C,{key:"2755f4d21f8d62919ef56909f2dc6b9211bf550d",isReady:this.isReady}),i("hidden-input",{key:"c35448285cd2b53973caa4a56c28a135e1ed7d74"}),i("div",{key:"9fae602596267bafc39b9e3e9946a289b38393b6",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"bfaee6ed0eaa2a68175f18146d56195cc1a23e91",class:"row mb-3"},i("iframe-input",{key:"7385c2582ad5b397eb2afcb9c87b789d4918542c",inputId:"accountNumber",ref:t=>this.accountNumberIframeElement=t,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),i("div",{key:"effe6b1f18d5fa531f4537accfe8279b81bc7b49",class:"row"},i("iframe-input",{key:"19cc7e46d8f7cb79c70ba21f2e9c15c7665eca47",inputId:"routingNumber",ref:t=>this.routingNumberIframeElement=t,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}},_=class{constructor(e){t(this,e)}get showSimpleCardBillingForm(){return this.paymentMethodType===u.NEW_CARD&&this.hideCardBillingForm}get showSimpleBankAccountBillingForm(){return this.paymentMethodType===u.NEW_BANK_ACCOUNT&&this.hideBankAccountBillingForm}async getValues(){var t;return null===(t=this.selectedFormRef)||void 0===t?void 0:t.getValues()}async fill(t){var e;null===(e=this.selectedFormRef)||void 0===e||e.fill(t)}async validate(){var t;return null===(t=this.selectedFormRef)||void 0===t?void 0:t.validate()}render(){return i(a,null,i(this.showSimpleBankAccountBillingForm?"justifi-bank-account-billing-form-simple":this.showSimpleCardBillingForm?"justifi-card-billing-form-simple":"justifi-billing-form-full",{legend:this.legend,ref:t=>this.selectedFormRef=t}))}},x=class{constructor(e){t(this,e),this.variant="primary",this.type="button"}render(){return i(r,{key:"5f92a2a58c0828c78818f0055dc2692857730788"},i(p,{key:"541fe7cc24e137cf55fc470b16f3aa8c47eee0d3",variant:this.variant,isLoading:this.isLoading,clickHandler:this.clickHandler,class:this.class,type:this.type,disabled:this.disabled,style:this.customStyle},this.text))}},P=t=>{const{isReady:e}=t;return e?null:i("div",{class:"container-fluid p-0"},i("div",{class:"mb-3"},i(m,{height:"18px",width:"100px"}),i(m,{height:"36px"})),i("div",{class:"row"},i("div",{class:"col-4 align-content-end"},i(m,{height:"18px",width:"80px"}),i(m,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(m,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(m,{height:"18px",width:"30px"}),i(m,{height:"36px"}))))},I=class{constructor(e){t(this,e),this.isReady=!1}async componentWillLoad(){await o(),this.iframeOrigin=c.iframeOrigin,this.tabId=b(),n(),this.analytics=new d(this)}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((t=>new Promise((e=>{t.addEventListener("iframeLoaded",(()=>{e()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){const t=await this.cardNumberIframeElement.validate(),e=await this.expirationMonthIframeElement.validate(),i=await this.expirationYearIframeElement.validate(),s=await this.cvvIframeElement.validate();return t&&e&&i&&s}async tokenize({clientId:t,paymentMethodMetadata:e,account:i}){return this.cardNumberIframeElement.tokenize(t,e,i)}render(){return i(r,{key:"e204cee1fc875392b8056baf58b7234a739fffce"},i(P,{key:"3accfb88d66661ceaef39f765bb3fddfd0f98393",isReady:this.isReady}),i("hidden-input",{key:"0416ddca8b444cf8702f3fff52065bf647bd4b61"}),i("div",{key:"37c1d5014e5a6658bfd28e08e361ffaa6488f6d7",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"e2956855dfbcab38a782c22e93bd49252196baa8",class:"mb-3"},i("iframe-input",{key:"55105f1eebab4b846e1b5c55448259368a412349",inputId:"cardNumber",ref:t=>this.cardNumberIframeElement=t,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}`})),i("div",{key:"9464b1a500a84dcaa438a9ebdad756637d14cb24",class:"row"},i("div",{key:"adc51687629fb00d26c6627e95c0228f5a4dfd11",class:"col-4 align-content-end"},i("iframe-input",{key:"52a0e5e198b6bfac00515ec220370e289674b613",inputId:"expirationMonth",ref:t=>this.expirationMonthIframeElement=t,label:"Expiration",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}`})),i("div",{key:"1b09582711d838643db265b003ed18b18042713e",class:"col-4 align-content-end"},i("iframe-input",{key:"a1731a8dc02723398e1aae58b3812fccf62e6157",inputId:"expirationYear",ref:t=>this.expirationYearIframeElement=t,label:"",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}`})),i("div",{key:"1e2c3205f2e0b28d036480d2c61934da5e7da620",class:"col-4 align-content-end"},i("iframe-input",{key:"b7b87360068434122f9b5a8935468240684b7a1d",inputId:"CVV",ref:t=>this.cvvIframeElement=t,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}`})))))}},N=class{constructor(i){t(this,i),this.checkboxChanged=e(this,"checkboxChanged",7),this.label="Save New Payment Method",this.isChecked=!1,this.handleCheckboxChange=(t,e)=>{this.isChecked=e,f.savePaymentMethod=e,this.checkboxChanged.emit(this.isChecked)}}render(){return i(r,{key:"981f6a84fc14a7b687e1b6567b30fb9f861b0aa2"},i("form-control-checkbox",{key:"566f6261d19f96b87b9382b26a86b71461a29d08",label:this.label||"Save New Payment Method",name:"saveNewPaymentMethod",checked:this.isChecked,inputHandler:this.handleCheckboxChange}))}};export{j as internal_tokenize_payment_method,M as justifi_bank_account_form,_ as justifi_billing_form,x as justifi_button,I as justifi_card_form,v as justifi_radio_list_item,N as justifi_save_new_payment_method}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s,H as i,g as a}from"./p-CV0Pyo1O.js";import{az as r,Z as o,X as d,_ as h,$ as n,a2 as c,Y as l,au as f}from"./p-c8J1gsDg.js";import{F as b}from"./p-CVkk7TvR.js";import{F as m}from"./p-BBNT9yj5.js";import"./p-CZfYo5-1.js";import{F as u}from"./p-CKiAlBsU.js";import{O as p}from"./p-BcNb9bVO.js";import{d as y}from"./p-D8EGHc_m.js";import{B as k}from"./p-77CuiIig.js";import{B as v}from"./p-XYgDHrVL.js";import{I as g,P as j}from"./p-CVaOFfrI.js";import{u as w,a as x,b as C}from"./p-C6o0liMT.js";import{c as T}from"./p-_-2E_vYf.js";import"./p-BFTU3MAI.js";import"./p-HT_4DkD0.js";import"./p-Bt4GjEWL.js";const V=class{constructor(s){e(this,s),this.formControlInput=t(this,"formControlInput",7),this.formControlBlur=t(this,"formControlBlur",7),this.isFocused=!1,this.disabled=!1,this.handleFormControlInput=e=>{const t=e.target,s=t.getAttribute("name");this.inputHandler(s,t.value),this.formControlInput.emit({name:s,value:t.value})},this.updateInput=e=>{const t=this.el.querySelector("input");t&&(t.value=e||"")}}handleDefaultValueChange(e){this.updateInput(e)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.isFocused?o:this.errorText?d:h}render(){return s(i,{key:"3438aa7e29c62b01f202cfb83f3b23c6b71d9a83"},s("div",{key:"2af4fa9f963e16f68fe0d3a4a7ff73165946306e",class:"form-group d-flex flex-column"},s("label",{key:"1d7bf268b70b9be39256020873978aac019a17b7",part:n,class:"form-label",htmlFor:this.name},this.label),s("input",{key:"4dbb9f25278df06fd483e25ba4d9855943186090",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}),s(b,{key:"fd72f2218b307641bcb8f3584f3b5db11303cfff",helpText:this.helpText,name:this.name}),s(m,{key:"fb9c995763d6c3193777586a1cb485447323cd98",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},_=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.ownerSubmitted=t(this,"ownerSubmitted",7),this.isLoading=!1,this.errors={},this.owner={},this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:e=>{this.instantiateOwner(e.data)},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({message:e,errorCode:t,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((e=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async e=>{this.owner=Object.assign({},new p(e)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?v.updateOwner:v.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:v.removeOwner})},this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(e){e.preventDefault(),await this.validate()&&this.submit()}get payload(){let e=new p(this.formController.values.getValue()).payload;return this.ownerId?e:Object.assign(Object.assign({},e),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new u((0,y[this.country])("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){return s("form",{key:"5079338a3b1720972aeb4f691bbe71f4bdbd5265",onSubmit:this.validateAndSubmit},s("fieldset",{key:"ef3529f5a5f20887ebf76e1bdbcfc0d600d2194c"},s("legend",{key:"98e22b398e183b24764847f29f080c28d6f384cd",class:"fw-semibold fs-5",part:c},this.formTitle),s("br",{key:"ff96fb21b19e16bba1a305049532925d5bafc6c8"}),s("div",{key:"9bf142327aef21bf90947b78574dcd5ded66a1eb",class:"row gy-3"},s("owner-form-inputs",{key:"7f221b6ebf61c7c383d1d5eb74d8c3a676b12b4d",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController,country:this.country}),s("div",{key:"48235d4d36e92cfa969843c133c93e28fb09c756",class:"d-flex gap-2 justify-content-start"},s(k,{key:"6f281255b5d358fc4e4322d0de9954a010850dda",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(k,{key:"f99d77f92cbab79eccbceef884cd6c17c20abeec",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"fabafc136209bb82a72da8de183897358faca256"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},B=class{constructor(t){e(this,t),this.isEditingIdentification=!1,this.inputHandler=(e,t)=>{w(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{x(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,t,i;return s("div",{key:"f41ae773bd80ec556fe7e1614aa590af09e90a05",class:"row gy-3"},s("div",{key:"ceeeefb13ae8eda332287e18b20b8eb1706f21fd",class:"col-12 col-md-8"},s("form-control-text",{key:"43dc7b751bd879f3e07572df0e02a46ad1e3a2f7",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"648a5e78c5d98d69d5331cf70e322b69ad1d2533",class:"col-12 col-md-4"},s("form-control-text",{key:"26ecf926fb49ab4caf192b6c7b9f3da8a13f13a1",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"056a8fa4b4e226efaa64f7eb05dea86ef2d941b2",class:"col-12 col-md-6"},s("form-control-text",{key:"ea2dfc1520ad5cf58a7c3a0df591f9b8ed354da5",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"afd1ec4c08af88870d5e732c5b2117c123b7f51e",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"97a51652ea2dfd3372ae9f3300c18da6e901ab88",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:j.US})),s("div",{key:"3da7a2c8e404873a3092f2d563d687d142b32b10",class:"col-12 col-md-3"},s("form-control-date",{key:"3d5bf80638e42d85b34e286e6ffcfee87a9bd047",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>C(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"91b4e9ad10a8b7a5527c6593309cf4c6967efdc8",class:"col-12 col-md-3"},s("form-control-number",{key:"5b98ffbc9d24dbe13c0303ddbaa3c94c7a166f95",name:"ownership_percentage",label:"% of Ownership",defaultValue:null===(e=this.ownerDefaultValue)||void 0===e?void 0:e.ownership_percentage,errorText:this.errors.ownership_percentage,inputHandler:this.inputHandler})),s("div",{key:"fdf8ebe63498e9be394e251f3b44d6ef93dce5b8",class:"col-12 col-md-6"},!(null===(t=this.ownerDefaultValue)||void 0===t?void 0:t.ssn_last4)||this.isEditingIdentification?s("form-control-number-masked",{name:"identification_number",label:T[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:g[this.country],helpText:T[this.country].identityHelpText}):s("div",null,s("label",{class:"form-label",part:n},T[this.country].idNumberLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:l,value:`****${null===(i=this.ownerDefaultValue)||void 0===i?void 0:i.ssn_last4}`,disabled:!0}),s("button",{class:"btn btn-secondary",type:"button",part:f,onClick:()=>{this.isEditingIdentification=!0,w(this.formController,{ssn_last4:null,identification_number:""})}},"Change")))),s("div",{key:"a6f1e2810777e1a7d01ce48ce45b88cec6937c3f",class:"col-12"},s("justifi-identity-address-form",{key:"0e17fdedad9e82953681c254e5c30217bdf3b022",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))}};export{V as form_control_number,_ as owner_form_core,B as owner_form_inputs}
@@ -1 +0,0 @@
1
- import{r as s,h as t}from"./p-CV0Pyo1O.js";import{S as e}from"./p-BqNNwq6C.js";import{S as o}from"./p-CmYy5XDp.js";import"./p-c8J1gsDg.js";const r=class{constructor(t){s(this,t)}render(){return t(e,{key:"b2bc4a92e34bdb2d1f5a1e74ce69bd75757ded6f"},t(o,{key:"291eefa0f623d8c751a8a62f7da018bbcd3c2313",component:this.component,height:this.height,width:this.width,className:this.class,styles:this.customStyle}))}};export{r as justifi_skeleton}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s}from"./p-CV0Pyo1O.js";import{f as i}from"./p-MeSAYDNh.js";import{H as a,aA as r}from"./p-c8J1gsDg.js";import{B as d}from"./p-77CuiIig.js";import{S as o}from"./p-BqNNwq6C.js";import{S as c}from"./p-CmYy5XDp.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-Cjcsf8ku.js";import{g as p,a as f}from"./p-D2muobcE.js";import{D as l}from"./p-CemnnRdZ.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-3kNggPyP.js";import"./p-HXpYMWUU.js";import"./p-55QcjheA.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-BiNakvsa.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-Cc6518FT.js";const v=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},m=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitEvent=t(this,"submit-event",7)}acceptDispute(){v({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}isDueDatePassed(){var e;if(!(null===(e=this.dispute)||void 0===e?void 0:e.due_date))return!1;const t=new Date(this.dispute.due_date.replace(/-/g,"/").replace(/T.+/,"")),s=new Date;return s.setHours(0,0,0,0),t.setHours(0,0,0,0),t<s}render(){var e,t,n,h,p,f,l,u,b;return s(o,{key:"f73a27de0f7e01960cfe78a5b81b021b22eaf2c6"},this.isLoading&&s("div",{key:"ca2c47a78d302e09cd60434eb2a0146787f7ac45",style:{marginBottom:"8px"}},s(c,{key:"e7c3318f1ecaae82727ec3620e5ba65f25692552",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(c,{key:"3313a4d5ba47766076e5c13cde8f1500fdcfa4a0",height:"18px",styles:{marginBottom:"8px"}}),s(c,{key:"94d2c92beaf52499cea87b3e04a37284898ce4d9",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&this.isDueDatePassed()&&s("div",{key:"fe66f1d00863607cbb457953c4880e4bdc4442ae",part:a},s("h1",{key:"1cf8c42bdb942391c65e67db8a0da0ff4c618249",class:"h4",part:r},"The due date (",null===(t=this.dispute)||void 0===t?void 0:t.due_date,") for this dispute has passed"),s("p",{key:"18643d72965f197edcf40c2053325df9dedf47fb"},"You can no longer submit evidence to counter this dispute.")),(null===(n=this.dispute)||void 0===n?void 0:n.needsResponse)&&!this.isDueDatePassed()&&s("div",{key:"096b7b976ddebd49a6ab5067ef5b4f07e06e145d",part:a},s("h1",{key:"06010bc9881b4cd9bd91399784ff9169e730784f",class:"h4",part:r},"This payment is disputed"),s("p",{key:"aca40b62cfe60ca69ebecd59d9d1c5c3cfd1b227"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"81f1fe8ec625b44d7bf251f4fbf5a4ac1dea2a41",class:"h5"},"Dispute details"),s("div",{key:"b5269224135805abb32164911ef682ed9524a35b",class:"d-table gap-2"},s("div",{key:"b90a2c3028003119fdb23f6e0cd8a3f965f9d58b",class:"d-table-row gap-2"},s("span",{key:"24967d47583c83333966ad788e8d4d388f32bf3a",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"a1bc338abb575e5dc496bec2f7199d36d3015d68",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(h=this.dispute)||void 0===h?void 0:h.amount))),s("div",{key:"c45e0cc9efcf743d9b981d17d9628b243892d27e",class:"d-table-row gap-2"},s("span",{key:"d326adc2bfe3fbd9d67fc4d9d82e1545490d274a",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"eaa16df97b9fd1b4963c2561bc5b7eb7892dafb4",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(p=this.dispute)||void 0===p?void 0:p.reason)),s("div",{key:"58999fa8fd18509f29d7233ca7255e2a033139b3",class:"d-table-row gap-2"},s("span",{key:"b35f041be173d792e81c3da3992104a0ede2bf91",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Due Date"),s("span",{key:"eea5132a629528830dd6a3c68ca773848c89cb95",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(f=this.dispute)||void 0===f?void 0:f.due_date))),s("div",{key:"f4975381aad6ed61a674e7a907632790e0ecf399",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"875c8fe451dbf7bb3817be6ab2ab3b919bb6b783",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"a4725c6ee3c18785e91d5ce82c3fbdb35029040a",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(l=this.dispute)||void 0===l?void 0:l.underReview)&&s("div",{key:"3c2149db7fbe647697c759083fe1884421409078",part:a},s("h1",{key:"14a5b5e1f88a147b5e5b272c05d8c7b61172ccc1",class:"h4",part:r},"This payment is disputed and under review"),s("p",{key:"80492d8cfabb74288b800737ff1b91ef4ca976e4"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(u=this.dispute)||void 0===u?void 0:u.won)&&s("div",{key:"379d85bd2363dc727e0e17e20900912232fc8692",part:a},s("h1",{key:"d26214c5df407be1fdba12836882b6299f84d02b",class:"h4",part:r},"This payment was disputed"),s("p",{key:"f77287d806f5121916661f511830239e34df103f"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(b=this.dispute)||void 0===b?void 0:b.lost)&&s("div",{key:"29d05bf0e4065164bf5b5a079679c189373edbfb",part:a},s("h1",{key:"4f76816e9dbbe9b4a02bf15d019ebf0163908659",class:"h4",part:r},"This payment was disputed"),s("p",{key:"184a792846ced212766c1f6b63b3ccd0297eceb9"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=v({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(o,{key:"68bf041be58383d3df181d84e0773bb71fd4ed96"},s("justifi-dispute-response-core",{key:"76af71dd1a21bedf10406aa2cd6d93bfad5b5746","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},w=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.submitEvent=t(this,"submit-event",7),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"8b0f0f810ad0bbc57489862ae5159fae8cbad746",class:"row gy-3"},s("div",{key:"ca6e73df82123a344b4a28efae395e8b9c931258",class:"col-12"},s("h1",{key:"bb78dcfd69d0b747cf1b1865bf463518ae18b442",class:"h4",part:r},"Counter dispute")),s("div",{key:"7179e0a6fdb89024d613f897db2cf313255494fd",class:"col-12"},this.currentStepComponent),s("div",{key:"9219e8b3213c494adef926077f35c298588053c0",class:"col-12"},s("div",{key:"73c2fd1a8440c19f468610ec02a7cfa6eddecb7e",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{m as justifi_dispute_notification,k as justifi_dispute_response,w as justifi_dispute_response_core}
@@ -1 +0,0 @@
1
- import{h as e,r as a,c as t}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import{e as s,d as c,s as i}from"./p-MeSAYDNh.js";import"./p-Cjcsf8ku.js";import{g as d}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{a as f}from"./p-BH0Xfn-F.js";import{P as b,M as l}from"./p-DvptzT44.js";import{a as r,b as h,D as o,c as p,C as y,E as n}from"./p-BylxH1fV.js";import{S as m}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as u}from"./p-CmYy5XDp.js";import{a as v,B as k}from"./p-CncaMWc8.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";import"./p-c8J1gsDg.js";const g=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(u,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(u,{width:"70%"})),e("div",{class:"col-12"},e(u,{width:"40%"})),e("div",{class:"col-12"},e(u,{width:"40%"})),e("div",{class:"col-12"},e(u,{width:"100%"})),e("div",{class:"col-12"},e(u,{width:"80%"}))),j=class{constructor(e){a(this,e),this.errorEvent=t(this,"error-event",7),this.loading=!0}componentWillLoad(){this.getPaymentDetails&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:a,severity:t})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:a,message:e,severity:t})},final:()=>{this.loading=!1}})}get PaymentStatus(){return this.payment.status===d.disputed&&this.payment.disputes.some((e=>e.status===f.lost))?b.DISPUTE_LOST:this.payment.status}render(){return e(m,{key:"26b8d1cf265226bcc4507dad0cc3504e953a9389"},this.loading&&e(g,{key:"d2410b583c52ca4fdab80657c82b512c4e936b87"}),!this.loading&&this.errorMessage&&n(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"9625a7b341ebab0736a5b1affd2507eaeb01aaea",errorMessage:this.errorMessage},e(r,{key:"e1da5f9932cb5ec4a9e9cbcc07637f16779e620f",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},l(this.PaymentStatus),this.payment.expedited?e(v,{variant:k.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(h,{key:"5bf927cf2ab51c8057ff5f1d14d1fdb0112da302",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payment.updated_at)} ${c(this.payment.updated_at)}`}),e(h,{key:"dae7b63a0018af7ad5ff0b01303629b27f9e8690",classes:"border-1 border-end",title:"Created At",value:`${s(this.payment.created_at)} ${c(this.payment.created_at)}`}),e(h,{key:"11c7090131fe05f995a34149e32167c50171ff4a",title:"ID",value:this.payment.id})),e("div",{key:"ad1dafc96ed6041cc418f433dc2a941ccc1ed15e",slot:"detail-sections"},e(o,{key:"4fc7d43271b7d4da55126380431fd304ec6b95ca",sectionTitle:"Details"}),e("div",{key:"e884cca29436ae3e05c07c402c01f680395aadf8",class:"d-flex flex-column gap-2 w-100"},e(p,{key:"d173c1ff5476adae63efd83c78cbd6da476893f3",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(p,{key:"c5307a082162dd6fde2e201916cb2d027b3ce1ff",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(p,{key:"3a8819d979eb5e49da51b80ac4cc40f9f7f06263",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(p,{key:"3850b861daf0191dc2f8ebea04fe7aba4ab53bed",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(p,{key:"b48c9f01ec0fd622e4f01b6405cb4ca779113492",title:"Status",value:l(this.PaymentStatus)}),e(p,{key:"742432ff1e60ebc905ce10bfac6175855fa6ea69",title:"Payment ID",value:this.payment.id}),e(p,{key:"aa9ff4ff17362b9b615dfbade88b89687e7a8791",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(p,{key:"1e37b41e112a2e04e646f599f6b9b99a5259b8c2",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(p,{key:"ec97d4f1f23083d7a780d0ccc71f4130a3553014",title:"Description",value:this.payment.description}),e(p,{key:"96b77660af6302edd62f73290811b517b39fb876",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(o,{key:"29b79b7f832363f173a3e4befc31ac88ff574867",sectionTitle:"Payment Method"}),e("div",{key:"206648ce629f705ab3483572dd2f01f1dd3bc03f",class:"d-flex flex-column gap-2 w-100"},e(p,{key:"7c03a887918a0d9cb190c85c6dfedb89bee46b8b",title:"ID",value:this.payment.payment_method.card.id}),e(p,{key:"0cb8a2b0aed45ec1f9037bcb8c7df3fa7fe3a948",title:"Payment Type",value:"Card"}),e(p,{key:"6cf56554f1c2fe706191f3b101dbf2ecbbddf9db",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(p,{key:"a8dec356cac117498cebd61cb59ff2b4bcfc0c4c",title:"Brand",value:i(this.payment.payment_method.card.brand)}),e(p,{key:"4703d991abab5ade33b1e5dd55d19290fe05ab72",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(o,{key:"6300a3fa99c4a0f81f0f8ff780aeb14b606a368e",sectionTitle:"Payment Method"}),e("div",{key:"7b8fbfd356587b034791a0481f6cf54f31b99114",class:"d-flex flex-column gap-2 w-100"},e(p,{key:"badbdc33521816af3a38c193fd89995b720dd53a",title:"ID",value:this.payment.payment_method.bank_account.id}),e(p,{key:"cdeff3c4459c2d29a48b631fa6ca6c81ba55dd6f",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(p,{key:"2724fa6601bb5024b326853194764114115f0be2",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(p,{key:"236459bc401e59140bce119a0c5a12ea49d8835b",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(o,{key:"c80b4d1bd4dbc5f51848cfb1e886cd4c1c3f4026",sectionTitle:"Metadata"}),e("div",{key:"bf7066df65a34cbb510aa3fdef414b27b622ff59",class:"d-table gap-2 w-100"},e(y,{key:"3a127cdeac5403079a3c822aeb40d6812e3fa914",metadata:this.payment.metadata}))])))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{j as payment_details_core}
@@ -1 +0,0 @@
1
- import{r as a,h as e,H as s}from"./p-CV0Pyo1O.js";import{E as c}from"./p-CLHwhyvu.js";import{ah as t,ai as i,aj as b,ak as d,al as f}from"./p-c8J1gsDg.js";const n=class{constructor(e){a(this,e),this.paging=c,this.params={}}render(){return e(s,{key:"7b821154b627026ef8624af6e4759e2176004676"},e("nav",{key:"7990aee285d0cc3e6f83cb59bb216439e5364df5","aria-label":"Table pagination",class:"d-flex justify-content-end gap-3"},e("ul",{key:"02c68163934ce1aabf4abd607cc28e549e20ebe1",class:"pagination m-0"},e("li",{key:"aab661ae85fc61eecd230d058f135483796769c0",class:"page-item "+(this.paging.has_previous?"":" disabled")},e("button",{key:"ef42a41831a9890186c333418b161877761674e1",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickPrevious(this.paging.start_cursor)},part:this.paging.has_previous?t:i},e("span",{key:"a898a92687e4a5fec37d9dab4208430260a9f274",class:"me-1",part:b},"«"),e("span",{key:"ecc2eeedc064d405ad178b9a98ed088e12f1b2fb",part:d},"Previous"))),e("li",{key:"56569cd9f9803ead8b1180e2f982a98d7009be1f",class:"page-item "+(this.paging.has_next?"":" disabled")},e("button",{key:"c39d389ab89609e8ce11b3dd81eb5c4a50d3521f",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickNext(this.paging.end_cursor)},part:this.paging.has_next?t:i},e("span",{key:"6a01458a048a524931b03df6a964fa4a0ac403ac",part:d},"Next"),e("span",{key:"f4cb3d084647c00dff30b99f751180564463443f",class:"ms-1",part:f},"»"))))))}};export{n as pagination_menu}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as a,H as e}from"./p-CV0Pyo1O.js";import{X as i,Y as o,Z as r,_ as c,$ as h,a0 as f}from"./p-c8J1gsDg.js";import{F as n}from"./p-CVkk7TvR.js";import{F as l}from"./p-BBNT9yj5.js";import"./p-CZfYo5-1.js";import{f as p}from"./p-MeSAYDNh.js";import"./p-HXpYMWUU.js";const m=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.isFocused=!1,this.defaultValue="0",this.formatRawValue=t=>t.replace(/\D/g,""),this.formatDisplayValue=t=>p(+t,void 0,!0),this.updateInput=t=>{const s=this.formControl.name,a=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(a),this.inputHandler(s,a),this.formControlInput.emit({name:s,value:a})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?o:this.isFocused?r:c}render(){return a(e,{key:"9fcce717caf2a14382e8a66c07a023ec31bffce0"},a("div",{key:"a5ef7195ec5904764f69c2987b1d1878a2d5be8d",class:"form-group d-flex flex-column"},a("label",{key:"75cf2a0d4790426df3956a69ea2483aba3e232ec",part:h,class:"form-label",htmlFor:this.name},this.label),a(n,{key:"daabe1b4779cea9af67b5bafcc8244d32bcc4775",name:this.name,helpText:this.helpText}),a("div",{key:"fbe335cf9e131842e9218befcf51535d1012f4f1",class:"input-group"},a("span",{key:"389b0a9697af6e81b350c41956bc36033dc151a2",class:"input-group-text",part:f},"$"),a("input",{key:"28a854f05c8a2476002b22baf5c5958fac9a4ec2",ref:t=>this.formControl=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:t=>this.updateInput(t.target.value),onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.inputPart,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled})),a(l,{key:"cfbdf17dcc9d55951ec39951f236cb0a5242e8cc",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_monetary}
@@ -1 +0,0 @@
1
- import{r as e,h as t}from"./p-CV0Pyo1O.js";import{c as s,F as a}from"./p-CKiAlBsU.js";import{y as i,z as l,h as r,l as d,j as c,v as o}from"./p-HT_4DkD0.js";import{aB as n}from"./p-c8J1gsDg.js";import{S as f}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{H as h}from"./p-BnVuFEgH.js";import{S as b}from"./p-BcNb9bVO.js";import"./p-BFTU3MAI.js";import"./p-_-2E_vYf.js";import"./p-Bt4GjEWL.js";const m=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new a(s({name:o.required("Enter full name"),address_line1:c.nullable(),address_line2:d.nullable(),address_city:r.nullable(),address_state:l.nullable(),address_postal_code:i.nullable()}))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t(f,{key:"1ad536d9f27bdb1cb3da9721c486cd4f1006ecb1"},t("div",{key:"b1589bbc4bba3703c54e6a5651aaad5499c218f4",part:n,class:"mt-4"},t("form",{key:"d60bc906ec293d45c1887c0864ff4c1f28845461"},t("fieldset",{key:"166465d844cbfb0d55dae03d88b52ad202d1616c"},this.legend&&t("legend",{key:"509d5e560791fb6f96a5e755931fd7a363b21e06"},this.legend),t("div",{key:"979e4bae922ff88aae107d921136215474a847ea",class:"row gy-3"},t("div",{key:"4014b6c65739d39077d69f0e649eec0fadab0c87",class:"col-12"},t("form-control-text",{key:"2e9e1dbb43ffdd9848415ceefc8df75ec60a35e0",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})))))))}},u=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new a(s({name:o.required("Enter full name"),address_line1:c.required("Enter street address"),address_line2:d.nullable(),address_city:r.required("Enter city"),address_state:l.required("Select state"),address_postal_code:i.required("Enter postal code")})),this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){if(!this.formController)return null;const e=this.formController.getInitialValues();return t(f,null,t("div",{part:n,class:"mt-4"},t(h,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),t("form",null,t("fieldset",null,this.legend&&t("legend",null,this.legend),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-select",{name:"address_state",label:"State",options:b,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7})))))))}},p=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new a(s({name:o.nullable(),address_line1:c.nullable(),address_line2:d.nullable(),address_city:r.nullable(),address_state:l.nullable(),address_postal_code:i.required("Enter postal code")}))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t(f,{key:"5d685e6a8e7b22780431b4f2315a95c43766242e"},t("div",{key:"c71d5e6b49162ff2c21cd7b9ee0e9951c264034e",part:n},t("form",{key:"a935f2ee1999afe079c13bd3b0e3b2b5225c12d2"},t("fieldset",{key:"1808d8afc17a22d4156534dc7e54af8350d406b4"},this.legend&&t("legend",{key:"c73a35b4311515cf57d6ed5193056a9197cddaa9"},this.legend),t("div",{key:"a36b221db49c567f6fc5e20af2a60fd30eeb4568",class:"row gy-3"},t("div",{key:"907f29bec68ac9d43fd66f28226b87f2003efbaa",class:"col-12"},t("form-control-text",{key:"93024133c94fc8eb2f1a34073ea7945d873420c4",name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7})))))))}};export{m as justifi_bank_account_billing_form_simple,u as justifi_billing_form_full,p as justifi_card_billing_form_simple}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as o,H as s}from"./p-CV0Pyo1O.js";import{C as i}from"./p-ZpPDShvP.js";import{u as a}from"./p-c8J1gsDg.js";import"./p-HXpYMWUU.js";const d=class{constructor(o){t(this,o),this.paymentMethodOptionSelected=e(this,"paymentMethodOptionSelected",7),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}async resolvePaymentMethod(t){var e;return t.isValid?{token:null===(e=this.paymentMethodOption)||void 0===e?void 0:e.id}:{validationError:!0}}render(){var t,e,d;return o(s,{key:"c69143079680d44157ee7df3b344de8a841ac51d",class:"payment-method"},o("div",{key:"16bb3b07ed7fa23efde64b92302b5f7f51958fc4",class:"radio-list-item p-3",part:a,onClick:this.onPaymentMethodOptionClick},o("form-control-radio",{key:"aa4b30d36088b1c1c71710e05c3746c03254629b",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:`${i[null===(e=this.paymentMethodOption)||void 0===e?void 0:e.brand]||""} *${null===(d=this.paymentMethodOption)||void 0===d?void 0:d.acct_last_four}`})))}};export{d as justifi_saved_payment_method}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-CV0Pyo1O.js";import{P as e}from"./p-B_KHnbK8.js";import{m as r}from"./p-CkX7qWsc.js";import{E as o}from"./p-BylxH1fV.js";import{C as p,a}from"./p-Cjcsf8ku.js";import{c as h,J as n}from"./p-3kNggPyP.js";import"./p-55QcjheA.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-HXpYMWUU.js";import"./p-BiNakvsa.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-D2muobcE.js";import"./p-c8J1gsDg.js";import"./p-Cc6518FT.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.recordClickEvent=s(this,"record-click-event",7),this.errorMessage=null,this.paymentService=new e,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.handleRecordClickEvent=t=>{this.recordClickEvent.emit({id:t.detail.id,type:t.detail.type})}}componentWillLoad(){h(),this.analytics=new n(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=r({id:this.paymentId,authToken:this.authToken,service:new e}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:p.ERROR}))}render(){return this.errorMessage?o(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent,"onRecord-click-event":this.handleRecordClickEvent,"enable-record-click":"true"})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payment_details}
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import{c as r,a as i,F as n}from"./p-CKiAlBsU.js";import{f as o}from"./p-MeSAYDNh.js";import"./p-DVJaoI_m.js";import{C as a,a as u}from"./p-Cjcsf8ku.js";import{R as c,l as h}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{B as l}from"./p-77CuiIig.js";import{S as m}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{P as d}from"./p-B_KHnbK8.js";import{m as p}from"./p-CkX7qWsc.js";import{c as f,J as v}from"./p-3kNggPyP.js";import{g as y,a as j}from"./p-D2muobcE.js";import{A as b}from"./p-55QcjheA.js";import{S as w}from"./p-CmYy5XDp.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-D8GTwl9v.js";import"./p-c8J1gsDg.js";import"./p-Cc6518FT.js";const g=t=>{const e=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${o(e)}`,(function(t){return+t<=+e})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},C=t=>{if(t)return r({amount:g(t),description:i().optional(),reason:i().optional().oneOf([c.customerRequest,c.duplicate,c.fraudulent],"Select a reason")})},k=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],T=b();class A{async postRefund(t,e,s,r){return T.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":e},body:r,authToken:s})}}const I=b();class S{async postVoid(t,e,s){return I.post({endpoint:`payments/${t}/void`,headers:{"Sub-Account":e},authToken:s})}}const P=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"100%",height:"40px"}))),x=()=>t(m,null,t("div",{class:"row gap-5"},t(P,null),t(P,null),t(P,null))),B=class{constructor(t){e(this,t),this.errorEvent=s(this,"error-event",7),this.submitEvent=s(this,"submit-event",7),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}}componentWillLoad(){f(),this.analytics=new v(this),this.initializeApi(),this.formController=new n(C())}handleError(t,e,s){this.errorEvent.emit({errorCode:t,message:e,severity:s})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(u.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",a.ERROR)}isPaymentCreatedWithin25Minutes(){var t;if(!this.payment||!(null===(t=this.payment)||void 0===t?void 0:t.created_at))return!1;const e=new Date(this.payment.created_at);return((new Date).getTime()-e.getTime())/6e4<=25}initializeFormController(){const t=this.refundPayload.amount,e=t?t.toString():"0";this.formController=new n(C(e)),this.formController.setInitialValues({amount:e}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?p({id:this.paymentId,authToken:this.authToken,service:new d})({onSuccess:({payment:t})=>{this.payment=t,this.refundPayload=new h({amount:t.amount_refundable})},onError:({error:t,code:e,severity:s})=>{this.handleError(e,t,s)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(u.MISSING_PROPS,"Payment ID and Auth Token are required",a.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const e=this.formController.values.getValue();return this.refundLoading=!0,this.isPaymentCreatedWithin25Minutes()?this.tryVoidPayment():this.processRefund(e)}async tryVoidPayment(){const t=(({authToken:t,accountId:e,paymentId:s,service:r})=>async({onSuccess:i,onError:n,final:o})=>{var u;try{const o=await r.postVoid(s,e,t);if(o.error)return n({error:j(o.error),code:y(null===(u=o.error)||void 0===u?void 0:u.code),severity:a.ERROR});i(o)}catch(t){const e=y(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:a.ERROR})}finally{return o()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new S});return new Promise((e=>{let s,r=!1;const i=this.formController.values.getValue();t({onSuccess:t=>{s=t,r=!0},onError:({error:t,code:s,severity:n})=>{r=!0,this.handleError(t,s,n),this.processRefund(i).then(e)},final:()=>{s&&!s.error&&r&&(this.submitEvent.emit({response:s}),this.submitDisabled=!0,this.refundLoading=!1,e(s.data))}})}))}async processRefund(t){const e=(({authToken:t,accountId:e,paymentId:s,service:r})=>async({refundBody:i,onSuccess:n,onError:o,final:u})=>{var c;try{const u=await r.postRefund(s,e,t,i);if(u.error)return o({error:j(u.error),code:y(null===(c=u.error)||void 0===c?void 0:c.code),severity:a.ERROR});n(u)}catch(t){const e=y(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:a.ERROR})}finally{return u()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new A});return new Promise((s=>{let r;e({refundBody:t,onSuccess:t=>{r=t},onError:({error:t,code:e,severity:s})=>{r=t,this.handleError(t,e,s)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,s(r.data)}})}))}render(){if(this.paymentLoading)return t(x,null);const e=this.formController.getInitialValues(),s=this.refundPayload.amount;return t(m,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:e.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:e.reason,inputHandler:this.inputHandler,options:k,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:e.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(l,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${o(+s)}`))))))}};export{B as justifi_refund_payment}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BiNakvsa.js";import{p as a}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{T as i,a as r,b as h,c,d as o,e as n,f as p,g as d,h as f,i as u,j as m,k as b,l as g}from"./p-DL3PPUGZ.js";import{T as k}from"./p-CZfYo5-1.js";import{c as y,a as j}from"./p-CV5ZI_qC.js";import{o as l,g as C}from"./p-CpGEMRkH.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-c8J1gsDg.js";import"./p-DmrpBh4P.js";import"./p-CncaMWc8.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=a,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:k.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:k.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:k.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new i(this.checkouts,this.columns,y,j),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"54239d9ac3afe4d4594d523f9b84b5bf852190b7"},e(r,{key:"0c466e435625f08326fc521690c055648a0d3a6e"},e(h,{key:"6ac0b1a9bf3d42eb5bac5910f341c84a75d15eaa"},e(c,{key:"171cc43a933be88dcfe2385414d6368755a66a00"},this.checkoutsTable.columnData.map((t=>t)))),e(o,{key:"238b814cfb2e27fa0ae0aee319da04fb7a9da477"},e(n,{key:"3e73b173a14edea582ee06caa248dd31bf7e8971",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"cd2ec244aa3663f4255f245727790c30c28438f7",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(d,{key:"e2f458e70836a01cca79aa6e43c7d8a89bfa593d",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(u,{key:"97d1c34429fba943a752e9ece7348dd19d742c68"},e(m,{key:"252e8f76070a8a6a531c710cf36117a04625271a"},e(b,{key:"a3fcfa5e6a90cac15348a387f65fa5b7ed2517f8",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"e4fa2774647748fd12c3742b3dd078aee8fdf483",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as checkouts_list_core}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-C_ifLmT1.js";import"./p-DVJaoI_m.js";import{c as s,a as l}from"./p-MeSAYDNh.js";import"./p-Cjcsf8ku.js";import{I as c,a as i}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{f as o,p as r,c as d}from"./p-CpGEMRkH.js";import{a as p,b as f,s as m,p as b,d as u,e as n}from"./p-c8J1gsDg.js";import{S as h}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const k=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{o[e]=a},this.handleDateInput=(e,a)=>{const t=s(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({status:this.checkoutStatus,payment_mode:this.paymentMode,checkout_id:this.checkoutId,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(r[e]=a)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:c.created},{label:"Completed",value:c.completed},{label:"Attempted",value:c.attempted},{label:"Expired",value:c.expired}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:i.ecom},{label:"BNPL",value:i.bnpl},{label:"Apple Pay",value:i.apple_pay}]}render(){const e=Object.assign({},o);return a(h,{key:"026d871e88f893ee2d565b13c72bdafaeedc1f9c"},a("table-filters-menu",{key:"a64b6212c54729cf08d0211720b815837187018b",params:e,clearParams:d,part:p},a("div",{key:"11897ce900abc322fa0107516d350f53a857aa1c",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"9f926a008dc275e53aa1d82c09410e4f65b4221e",class:"p-2"},a("form-control-text",{key:"57020a2320f442a0ee0a6ffa443f88dea855b651",name:"checkout_id",label:"Checkout ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.checkoutId||o.checkout_id,disabled:!!this.checkoutId,part:f})),a("div",{key:"40c6e5e2e342573fcb6e1f34309e324ca2a9ee2c",class:"p-2"},a("form-control-select",{key:"7c70d0d6bdc322fc9682b3c64393778642fe8ad4",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||o.status||"",disabled:!!this.checkoutStatus,part:m})),a("div",{key:"51eb0d4cf8d3f9643af1f5fb8ef2e0908ebb18d3",class:"p-2"},a("form-control-select",{key:"47352ceaa0f989533c366d68228cc2752ef12fec",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||o.payment_mode||"",disabled:!!this.paymentMode,part:b})),a("div",{key:"cee7d5487e1b4f6dd6c25230c012d69b97326392",class:"p-2"},a("form-control-date",{key:"0b6e3821eda78c9dca9797d965020636ab31c9b9",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:l(this.createdAfter,{showInputDateTime:!0})||l(o.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:u})),a("div",{key:"d4b38febbc6763c828761bb5eab3594bd3c29f9d",class:"p-2"},a("form-control-date",{key:"3729809c6ec729c2c2887d722e16e29a9f405b09",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:l(this.createdBefore,{showInputDateTime:!0})||l(o.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:n})))))}};export{k as justifi_checkouts_list_filters}
@@ -1 +0,0 @@
1
- import{r as e,h as t,H as a,c as i,g as s}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as l}from"./p-Cjcsf8ku.js";import{E as o,m as n,n as r,o as c}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{a as d}from"./p-Bt4GjEWL.js";import"./p-XYgDHrVL.js";import{n as h}from"./p-BnjCmwMr.js";import{H as u,a5 as f,J as b,aD as m,V as p,aM as v,_ as y,$ as k,X as L,Y as g,Z as x,au as T,av as w}from"./p-c8J1gsDg.js";import{s as _,e as N,d as j}from"./p-MeSAYDNh.js";import{S as C}from"./p-CmYy5XDp.js";import"./p-CZfYo5-1.js";import{F as A}from"./p-BBNT9yj5.js";import{u as E,a as H,b as D}from"./p-C6o0liMT.js";import{P as V,I}from"./p-CVaOFfrI.js";import{c as M}from"./p-_-2E_vYf.js";import{c as O,d as B,e as F}from"./p-R0FDNhyd.js";import{I as R}from"./p-DqtDbB8E.js";import{B as P}from"./p-77CuiIig.js";import{S}from"./p-BqNNwq6C.js";import{P as Z}from"./p-BMqYkvp1.js";import"./p-D8GTwl9v.js";import"./p-D2muobcE.js";import"./p-55QcjheA.js";const Y=class{constructor(t){e(this,t)}render(){return t("div",{key:"7f9ea576aad16f3c2ea45c987a38878ea65f2df2",class:"row gy-3"},t("div",{key:"316fe3f20df7c7dce2b8903e6073e0fe7920e5e8",class:"col-12"},t("form-control-file",{key:"320d6b7f3de2cfeeb30eb1e08ca4122123854ffd",name:"voided_check",label:"Voided Check",documentType:o.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"f33a936c61c14c701e40d375e4dfc4c554b8293c",class:"col-12"},t("form-control-file",{key:"1e160d8211a71175d6a45b10590fb2c8774f61e1",name:"bank_statement",label:"Bank Statement",documentType:o.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},q=class{constructor(t){e(this,t)}render(){var e,a,i,s,l,o;return t("div",{key:"5dc7139f54d11979410d0d67ca29e65b02f30200",class:"row gy-3"},t("div",{key:"118f15bf02855b24baec5ce2a2c3cf5b241b3da4",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Bank Name",value:null===(e=this.defaultValue)||void 0===e?void 0:e.bank_name}):t("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),t("div",{key:"db03eccee03ec4b7d0de637306315982a2cd770d",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Nickname",value:null===(a=this.defaultValue)||void 0===a?void 0:a.nickname}):t("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),t("div",{key:"217120e0052b8ee41cac8f901ac4d9742b0c6ea9",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Owner Name",value:null===(i=this.defaultValue)||void 0===i?void 0:i.account_owner_name}):t("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),t("div",{key:"f589511545d6262966a6fa2888cb78babacfb770",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Type",value:null===(s=this.defaultValue)||void 0===s?void 0:s.account_type}):t("form-control-select",{name:"account_type",label:"Account Type",options:d,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),t("div",{key:"24df83bb2666cee381c266608c43f3fd729db4cf",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Number",value:(null===(l=this.defaultValue)||void 0===l?void 0:l.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):t("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:h,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"75fe11d71e57707d088f8a90a250621fce82647f",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Routing Number",value:(null===(o=this.defaultValue)||void 0===o?void 0:o.routing_number)||""}):t("form-control-text",{name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:h,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},U=class{constructor(t){e(this,t)}render(){var e,a,i,s,l,o,n;return t("div",{key:"34cbf10449df73748095fd7122d0ae1355a83e13",class:"row gy-3"},t("div",{key:"607cc5cbc70fdd2d5a325bef7002a44740394282",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Bank Name",value:null===(e=this.defaultValue)||void 0===e?void 0:e.bank_name}):t("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),t("div",{key:"f57f4cd733f2dd439d6d83f32078371618f5fa06",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Nickname",value:null===(a=this.defaultValue)||void 0===a?void 0:a.nickname}):t("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),t("div",{key:"b92dface0116321ea990bfcaf1b036b5629385db",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Owner Name",value:null===(i=this.defaultValue)||void 0===i?void 0:i.account_owner_name}):t("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),t("div",{key:"45d68efa47de76ee420cedfb97e82f498a2de97b",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Type",value:null===(s=this.defaultValue)||void 0===s?void 0:s.account_type}):t("form-control-select",{name:"account_type",label:"Account Type",options:d,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),t("div",{key:"8419925e8470d63d506e1f7e82ccdf1a1132ecc0",class:"col-3"},this.formDisabled?t("bank-account-read-only-value",{label:"Transit Number",value:(null===(l=this.defaultValue)||void 0===l?void 0:l.transit_number)||""}):t("form-control-text",{name:"transit_number",label:"Transit Number",defaultValue:this.defaultValue.transit_number,maxLength:5,errorText:this.errors.transit_number,inputHandler:this.inputHandler,keyDownHandler:h,helpText:"5 digits"})),t("div",{key:"aa6e83c409e0cf93f1903394f63c0b719ec8808e",class:"col-3"},this.formDisabled?t("bank-account-read-only-value",{label:"Institution Number",value:(null===(o=this.defaultValue)||void 0===o?void 0:o.institution_number)||""}):t("form-control-text",{name:"institution_number",label:"Institution Number",defaultValue:this.defaultValue.institution_number,maxLength:3,errorText:this.errors.institution_number,inputHandler:this.inputHandler,keyDownHandler:h,helpText:"3 digits"})),t("div",{key:"029058c023daca9d0488f45478af6edafe359df7",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Number",value:(null===(n=this.defaultValue)||void 0===n?void 0:n.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):t("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:h,helpText:"Please copy the account number as shown on your statement. Do not include spaces or dashes."})))}},X=class{constructor(t){e(this,t)}render(){return t("div",{key:"ad9eadcf49dbc67e51cd814d3ded334a587cc17c"},t("label",{key:"b8ba3d8b7ef9fc33e0e0870f71b7df5dbfae4759",class:"form-label",part:u},this.label),t("div",{key:"1839bdadb96b3c814c73991530497f9a7be6a10d",part:u},this.value||""))}},$=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(C,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:f},t("div",{class:"card-body"},t("h5",{class:"card-title",part:b},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:m},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:v},e.file_name),t("td",{part:v},e.file_type),t("td",{part:v},_(e.document_type)),t("td",{part:v},`${N(e.created_at)} - ${j(e.created_at)}`))))))))),t("hr",null)):null}},z=class{constructor(t){e(this,t),this.formControlInput=i(this,"formControlInput",7),this.formControlBlur=i(this,"formControlBlur",7),this.fileSelected=i(this,"fileSelected",7),this.isFocused=!1,this.errorText="",this.inputHandler=()=>{},this.disabled=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=y;return this.errorText&&(e=L),this.disabled&&(e=g),this.isFocused&&(e=x),e}render(){return t(a,{key:"8172f7df27c42c6d5211d29ef595dd2e4dbd9def"},t("div",{key:"99740d980c280502242ee1cdcee2a3df6ba53146",class:"form-group d-flex flex-column"},t("div",{key:"5fb94f2b710d5fd734172ee91b59621d736e129b",class:"d-flex align-items-start gap-2"},t("label",{key:"12fedf016c7d789fad8692c7ae03975481964005",part:k,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"6d59be5a27d3c9a171292244fc9e9bb598b9ecce",helpText:this.helpText})),t("input",{key:"64c7d9eaa46f95714d5527cf94d28c206065a411",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(A,{key:"9610c0676934fd616fbdac08e98a102240773084",errorText:this.errorText,name:this.name})))}get el(){return s(this)}},G=class{constructor(t){e(this,t),this.isEditingIdentification=!1,this.inputHandler=(e,t)=>{E(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{H(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,a,i,s,l,o,n,r,c;return t("form",{key:"a9c0f6332bf302d5eb9f93c4ca045d572a40468f"},t("fieldset",{key:"115c564826335a9c7b670bbc0409912c3eb7a4aa"},t("div",{key:"6de8909b4b2f3c7d8ec4665aad77ef59cdf035b4",class:"d-flex align-items-center gap-2"},t("legend",{key:"bb8b5a3775eae450a866356a9e149a0bf57b5699",class:"mb-0",part:b},"Representative"),t("form-control-tooltip",{key:"a0296d4a3c35a039525f39501e117ee6fdd12257",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),t("hr",{key:"abbee22f5664275f27dd8eeb2b12c87b059ff024",class:"mt-2"}),t("div",{key:"e165ff125df62dc1d22b7329fe7fe2ff200cbbb3",class:"row gy-3"},t("div",{key:"114ff752eeda3ffa90529ff6bc675b874f543336",class:"col-12 col-md-8"},t("form-control-text",{key:"8b6ce9f4a327ca5282aa32c226f671945aa10404",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{key:"bce864367883c6bbf7bd0841114a3dbb39db692b",class:"col-12 col-md-4"},t("form-control-text",{key:"ec3e72dc3f84c0daee2c6509f7dbf2bad22f5db6",name:"title",label:"Title",defaultValue:null===(a=this.representativeDefaultValue)||void 0===a?void 0:a.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),t("div",{key:"200ae959d897d9d22016553d3c586cf3f0438dd9",class:"col-12 col-md-6"},t("form-control-text",{key:"4f77d6ca6c3c85edabc11af6f5703ab1327f05e7",name:"email",label:"Email Address",defaultValue:null===(i=this.representativeDefaultValue)||void 0===i?void 0:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{key:"cf642ee73f7ae8b254920a3f781c23dc456f16ae",class:"col-12 col-md-6"},t("form-control-number-masked",{key:"df609213bec728f17b2527a2e99ff3e0e69604aa",name:"phone",label:"Phone Number",defaultValue:null===(s=this.representativeDefaultValue)||void 0===s?void 0:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:V.US})),t("div",{key:"2e4565c06976723ae4e497a5305cea7468bac2f4",class:"col-12 col-md-4"},t("form-control-date",{key:"ca7d4bf05c32d1d9983df430d338cc3433015957",name:"dob_full",label:"Birth Date",defaultValue:null===(l=this.representativeDefaultValue)||void 0===l?void 0:l.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>D(e,this.formController),helpText:"Must be 18 or older."})),t("div",{key:"f6cbe1b7f4e5575f626e6d73f31b4a1a09ac33e3",class:"col-12 col-md-8"},!(null===(o=this.representativeDefaultValue)||void 0===o?void 0:o.ssn_last4)||this.isEditingIdentification?t("form-control-number-masked",{name:"identification_number",label:M[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:I[this.country],helpText:M[this.country].identityHelpText}):t("div",null,t("label",{class:"form-label",part:k},M[this.country].idNumberLabel),t("div",{class:"input-group mb-3"},t("input",{type:"text",class:"form-control",part:g,value:`****${null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.ssn_last4}`,disabled:!0}),t("button",{class:"btn btn-secondary",type:"button",part:T,onClick:()=>{this.isEditingIdentification=!0,E(this.formController,{identification_number:"",ssn_last4:null})}},"Change")))),t("div",{key:"e3fa556dece2feaf5eb175ae3734c2319777ef48",class:"col-12"},t("justifi-identity-address-form",{key:"fe3d349371d11b8a246b9c31aebd7d9c84e03f8e",errors:this.errors.address,defaultValues:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}},J=class{constructor(t){e(this,t),this.errorEvent=i(this,"error-event",7)}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=O({authToken:this.authToken,identityId:this.ownerId,service:new R}),this.patchOwner=B({authToken:this.authToken,identityId:this.ownerId,service:new R}),this.postOwner=F({authToken:this.authToken,service:new R}))}render(){return t("owner-form-core",{key:"47c36dfc76ac8a108950e17770d1a0fb06fe4e42",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,country:this.country,ref:e=>this.coreComponent=e})}},W=class{constructor(t){e(this,t),this.plaidVerificationSuccess=i(this,"plaidVerificationSuccess",7),this.plaidVerificationError=i(this,"plaidVerificationError",7),this.linkToken=null,this.linkTokenId=null,this.plaidLink=null,this.isAuthenticating=!1,this.isSuccess=!1,this.error=null,this.isLoading=!1,this.plaidService=new Z,this.abortController=null,this.timeoutId=null,this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:c.PLAID_SDK_LOAD_FAILED,message:r[c.PLAID_SDK_LOAD_FAILED],severity:n[c.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:c.PLAID_LINK_TOKEN_FAILED,message:r[c.PLAID_LINK_TOKEN_FAILED],severity:n[c.PLAID_LINK_TOKEN_FAILED],retryable:!0,userAction:"Click to try again"});const e=window.Plaid;this.plaidLink=e.create({token:this.linkToken,onSuccess:this.handlePlaidSuccess,onExit:this.handlePlaidExit,onEvent:this.handlePlaidEvent,onLoad:this.handlePlaidLoad})}catch(e){this.handleError({code:c.PLAID_LINK_INIT_FAILED,message:r[c.PLAID_LINK_INIT_FAILED],severity:n[c.PLAID_LINK_INIT_FAILED],originalError:e,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var e,t,a,i;try{if(!this.authToken||!this.accountId)return void this.handleError({code:c.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please provide authToken and accountId.",severity:l.ERROR,retryable:!1,userAction:"Provide required props"});this.abortController=new AbortController,this.timeoutId=setTimeout((()=>{var e;null===(e=this.abortController)||void 0===e||e.abort()}),3e4);const e=await this.plaidService.getLinkTokenForVerification(this.authToken,this.businessId,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=e.data.id}catch(s){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let l=c.PLAID_LINK_TOKEN_FAILED,o=r[l],d=!0;"AbortError"===s.name?(l=c.PLAID_TIMEOUT,o=r[l],d=!0):(null===(e=s.message)||void 0===e?void 0:e.includes("network"))||(null===(t=s.message)||void 0===t?void 0:t.includes("fetch"))?(l=c.PLAID_NETWORK_ERROR,o=r[l],d=!0):((null===(a=s.message)||void 0===a?void 0:a.includes("401"))||(null===(i=s.message)||void 0===i?void 0:i.includes("unauthorized")))&&(l=c.PLAID_INVALID_CREDENTIALS,o="Authentication failed. Please check your credentials.",d=!1),this.handleError({code:l,message:o,severity:n[l],originalError:s,retryable:d,userAction:d?"Click to try again":"Check your credentials"})}},this.openPlaidLink=()=>{this.plaidLink&&this.linkToken&&(this.isAuthenticating=!0,this.clearError(),this.plaidLink.open())},this.handlePlaidSuccess=async e=>{var t;this.isAuthenticating=!1,this.isLoading=!0,this.clearError();try{const a=await this.plaidService.postPlaidVerifiedBankAccountData(this.authToken,this.businessId,{public_token:e,link_token_id:this.linkTokenId},null===(t=this.abortController)||void 0===t?void 0:t.signal);if(a.error)throw new Error("string"==typeof a.error?a.error:a.error.message||"Failed to verify bank account");this.isSuccess=!0,this.isLoading=!1,this.plaidVerificationSuccess.emit({publicToken:e,bankAccount:a.data})}catch(e){this.isLoading=!1,this.handleError({code:c.PLAID_AUTHENTICATION_FAILED,message:(null==e?void 0:e.message)||"Failed to verify bank account",severity:n[c.PLAID_AUTHENTICATION_FAILED],originalError:e,retryable:!0,userAction:"Click to try again"})}},this.handlePlaidExit=e=>{this.isAuthenticating=!1,e&&this.handlePlaidError(e)},this.handlePlaidEvent=(e,t)=>{switch(e){case"OPEN":this.isAuthenticating=!0;break;case"CLOSE":this.isAuthenticating=!1;break;case"ERROR":this.handlePlaidError(t)}},this.handlePlaidLoad=()=>{},this.handlePlaidError=e=>{let t=c.PLAID_AUTHENTICATION_FAILED,a=r[t],i=!0,s="Click to try again";if(e.error_code)switch(e.error_code){case"INVALID_CREDENTIALS":t=c.PLAID_INVALID_CREDENTIALS,a=r[t],i=!0;break;case"ITEM_LOGIN_REQUIRED":t=c.PLAID_INVALID_CREDENTIALS,a="Your bank requires re-authentication. Please try again.",i=!0;break;case"ITEM_LOCKED":t=c.PLAID_ACCOUNT_LOCKED,a=r[t],i=!1,s="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":t=c.PLAID_MAINTENANCE,a=r[t],i=!0;break;case"RATE_LIMIT_EXCEEDED":t=c.PLAID_RATE_LIMITED,a=r[t],i=!0;break;default:e.error_message&&(a=e.error_message)}this.handleError({code:t,message:a,severity:n[t],originalError:e,retryable:i,userAction:s}),this.isAuthenticating=!1},this.handleError=e=>{this.error=e,this.isLoading=!1,this.plaidVerificationError.emit(e),console.error("Plaid verification error:",e)},this.clearError=()=>{this.error&&(this.error=null)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.initializePlaidLink()},this.scriptRef.onerror=()=>{this.handleError({code:c.PLAID_SDK_LOAD_FAILED,message:r[c.PLAID_SDK_LOAD_FAILED],severity:n[c.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})})}disconnectedCallback(){this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){const e=t("svg",{class:"plaid-logo-img",height:"20",width:"20",viewBox:"0 0 28 29",xmlns:"http://www.w3.org/2000/svg",style:{display:"inline",marginLeft:"5px",marginRight:"5px",marginTop:"-2px"}},t("g",{fill:"#fff","fill-rule":"evenodd"},t("path",{d:"M25.7629 26.2628L28 17.5309L24.9691 14.5001L27.9999 11.4691L25.7628 2.73706L17.0309 0.5L14.0001 3.531L10.969 0.50014L2.23706 2.73734L0 11.4691L3.03128 14.4999L0.00014 17.531L2.2372 26.2629L10.9691 28.5L14.0001 25.469L17.031 28.4999L25.7629 26.2628ZM15.7321 23.7371L18.6186 20.8505L22.2912 24.5233L17.6956 25.7007L15.7321 23.7371ZM11.1136 9.88154L14.0003 6.99502L16.8868 9.8814L14.0001 12.7679L11.1136 9.88154ZM12.2682 14.5L9.38154 17.3865L6.49502 14.5L9.38154 11.6135L12.2682 14.5ZM18.6187 11.6133L21.5053 14.5L18.6186 17.3865L15.7321 14.5L18.6187 11.6133ZM16.8867 19.1186L14.0001 22.0051L11.1135 19.1185L14.0001 16.2319L16.8867 19.1186ZM10.3044 25.7007L5.70864 24.5233L9.38154 20.8504L12.2682 23.7371L10.3044 25.7007ZM4.76308 16.2319L7.6496 19.1185L3.9767 22.7914L2.7993 18.1957L4.76308 16.2319ZM3.9767 6.20836L7.64974 9.8814L4.76308 12.7681L2.7993 10.8041L3.9767 6.20836ZM12.2683 5.26294L9.38168 8.1496L5.70892 4.4767L10.3047 3.2993L12.2683 5.26294ZM17.6959 3.2993L22.2915 4.4767L18.6186 8.14946L15.7321 5.26294L17.6959 3.2993ZM23.2372 12.7681L20.3505 9.8814L24.0233 6.20878L25.2007 10.8046L23.2372 12.7681ZM24.0233 22.7914L20.3505 19.1186L23.2372 16.2321L25.2007 18.1957L24.0233 22.7914Z"})));return t(S,null,t("script",{src:"https://cdn.plaid.com/link/v2/stable/link-initialize.js",async:!0,ref:e=>this.scriptRef=e}),t("div",null,t("div",{class:"mb-3"},t(P,{variant:"primary",type:"button",onClick:e=>{e.preventDefault(),this.openPlaidLink()},disabled:this.isLoading,part:w},"Connect with Plaid ",e," (instant verification)")),(()=>this.error?t("div",{class:(this.error.severity===l.ERROR?"text-danger":this.error.severity===l.WARNING?"text-warning":"text-info")+" mt-2"},t("small",null,this.error.message),t("br",null),this.error.userAction&&t("small",{class:"text-muted"},this.error.userAction)):null)(),(()=>this.error?null:this.isLoading?t("div",{class:"text-info mt-2"},t("small",null,"Verifying bank account...")):this.isSuccess?t("div",{class:"text-success mt-2"},t("small",null,"✓ Bank account verified successfully")):this.isAuthenticating?t("div",{class:"text-info mt-2"},t("small",null,"Connecting to your bank...")):null)()))}};export{Y as bank_account_document_form_inputs,q as bank_account_form_inputs,U as bank_account_form_inputs_canada,X as bank_account_read_only_value,$ as business_documents_on_file,z as form_control_file,G as justifi_business_representative_form_inputs,J as justifi_owner_form,W as plaid_verification}
@@ -1 +0,0 @@
1
- import{h as a}from"./p-CV0Pyo1O.js";import{am as s,an as n,a4 as r,ao as t,ap as i,aq as o,ar as c,as as e,at as l,au as p,av as d,aw as u}from"./p-c8J1gsDg.js";const b=(b,m)=>{const{variant:f,isLoading:g,className:v,class:j,clickHandler:y}=b,O=function(a,s){var n={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&s.indexOf(r)<0&&(n[r]=a[r]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(r=Object.getOwnPropertySymbols(a);t<r.length;t++)s.indexOf(r[t])<0&&Object.prototype.propertyIsEnumerable.call(a,r[t])&&(n[r[t]]=a[r[t]])}return n}(b,["variant","isLoading","className","class","clickHandler"]),k=v||j||"";return a("button",Object.assign({class:`btn btn-${f}${k?` ${k}`:""}`,onClick:y,part:`${{primary:d,secondary:p,success:l,danger:e,warning:c,info:o,light:i,dark:t,link:r,"outline-primary":n,"outline-secondary":s}[f]} ${g?u:""}`},O),g?a("div",{class:"spinner-border spinner-border-sm",role:"status",part:"button-spinner"},a("span",{class:"visually-hidden"},"Loading...")):m)};export{b as B}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as i,a}from"./p-Cjcsf8ku.js";import"./p-BiNakvsa.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{T as h,a as o,b as c,c as n,d,e as p,f as m,g as u,h as f,i as b,j as g,k as y,l as j}from"./p-DL3PPUGZ.js";import{T as l}from"./p-CZfYo5-1.js";import{p as k,a as C}from"./p-CtxSp8dd.js";import{o as v,g as S}from"./p-AMVhBsGv.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-c8J1gsDg.js";import"./p-DmrpBh4P.js";import"./p-CVa33GsE.js";import"./p-CncaMWc8.js";const P=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.payouts=[],this.subAccounts=[],this.loading=!0,this.paging=r,this.pagingParams={},this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const i=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:l.row,data:i})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new h(this.payouts,this.columns,k,C(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),v("set",(()=>{this.pagingParams={}})),v("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get payoutParams(){const t=S();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"9d4901c03d1675ddd796f39e0cdcf26ca00429a1"},e(o,{key:"33b4fcacd131e6c0da270794ba0468b2fd56da06"},e(c,{key:"75c31aa3ba376963ede6772cad99d4b1300aafd7"},e(n,{key:"68c2afe4d5c0a0454d93a3524081d56dd40cebe4"},this.payoutsTable.columnData.map((t=>t)))),e(d,{key:"cb63360e078916afcf693edc8044f16b591c044a"},e(p,{key:"7d70f2f379238562c067d2167f689bc312f00775",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(m,{key:"5ad3d0c6bcda30cc3717c5665b7c97d07893a013",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(u,{key:"5fea02bcfc56b40b99cb16bd29d7657629273374",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(b,{key:"93eeae7b266e3973f4ec11ad645fb870711c855d"},e(g,{key:"9a4e32b57717b2245b66e23ac909ffe97edf6f96"},e(y,{key:"6d4ce9cc708528176c8d574bddc291f2440fe262",colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"0ae57a77ebfde889ddc540886b3b7c7d74a3d133",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{P as payouts_list_core}
@@ -1 +0,0 @@
1
- import{r as e,h as t}from"./p-CV0Pyo1O.js";import{B as a}from"./p-77CuiIig.js";import{ax as d,ay as s}from"./p-c8J1gsDg.js";const r=e=>{const t=["after_cursor","before_cursor"];return!!Object.keys(e).filter((e=>!t.includes(e))).length},o=class{constructor(t){e(this,t),this.showClearButton=!1}watchParamsHandler(e){this.showClearButton=r(e)}show(){this.menu.classList.add("show")}hide(){this.menu.classList.remove("show")}componentWillLoad(){this.showClearButton=r(this.params)}render(){return t("div",{key:"219fb5b3d51e02eb1d0d2975c1f0d60c70effe30",class:"d-flex gap-2"},t("div",{key:"ad963fd263a2880cdd267958f43ae30d7602b8cb",class:"dropdown pb-3"},t("button",{key:"c6917e91def1ef9dde2a95a3657d4204c9e03f4f",type:"button dropdown-toggle",ref:e=>this.anchorButton=e,class:"btn btn-primary dropdown-toggle",part:d,"data-test-id":"open-filters-button","data-bs-toggle":"dropdown"},"Filters"),t("custom-popper",{key:"9625634401e1c91e4994e717c405ec1ca16f8f72",offset:[20,10],strategy:"fixed",anchorRef:this.anchorButton,trigger:"click"},t("form",{key:"95fbe3040f211c1bffc4ea252a31db4a9c730744",class:"dropdown-menu",part:s,"data-test-id":"filter-menu",ref:e=>this.menu=e,onSubmit:e=>e.preventDefault()},t("slot",{key:"a3dd287891f803c5b55a797bd73d827da3f08823"})))),t("div",{key:"aafe97d69d12adf91f200a6cd3655d8dcf039996"},t(a,{key:"38d7aa0ca3234a14c99fc12fbae7d949d3a462b2",variant:"secondary",onClick:()=>this.clearParams(),hidden:!this.showClearButton,"data-test-id":"clear-filters-button"},"Clear Filters")))}static get watchers(){return{params:["watchParamsHandler"]}}};export{o as table_filters_menu}
@@ -1 +0,0 @@
1
- import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{A as e}from"./p-55QcjheA.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c,J as l}from"./p-3kNggPyP.js";import{c as h}from"./p-Daew0gTO.js";import{p as d,f as p,r as u,k as v}from"./p-MeSAYDNh.js";import{v as m,i as y,a as f,H as j}from"./p-DrSNQm-e.js";import{H as g,a1 as _}from"./p-c8J1gsDg.js";import{S as k}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as w}from"./p-CmYy5XDp.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-Cc6518FT.js";import"./p-DkoufM1t.js";import"./p-HXpYMWUU.js";const b=e();class C{async fetchQuote(s,t){return b.post({endpoint:"insurance/quotes",body:t,authToken:s})}async toggleCoverage(s,t,i){return b.post({endpoint:`insurance/quotes/${t}/toggle`,body:i,authToken:s})}}const T=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(w,{width:"35%",height:"30px"})),s("div",{class:"col-12"},s(w,{width:"70%"})),s("div",{class:"col-12"},s(w,{width:"40%"})),s("div",{class:"col-12"},s(w,{width:"40%"})),s("div",{class:"col-12"},s(w,{width:"100%"})),s("div",{class:"col-12"},s(w,{width:"80%"}))),D=class{constructor(s){t(this,s),this.insuranceUpdated=i(this,"insurance-updated",7),this.errorEvent=i(this,"error-event",7),this.isLoading=!0}async validate(){return m()}processHTMLContent(s){return d(s,[s=>u(s,"style"),s=>v(s,"a","part",g),s=>v(s,"p","part",g)])}componentWillLoad(){c(),this.analytics=new l(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeServiceMethods(){const s=this.authToken||h.authToken;if(!s)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const t={authToken:s,service:new C};this.getQuote=(({authToken:s,service:t})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await t.fetchQuote(s,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(s){const t=a(null==s?void 0:s.code);return o({error:s.message||s,code:t,severity:r.ERROR})}})(t),this.toggleCoverage=(({authToken:s,service:t})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await t.toggleCoverage(s,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(s){const t=a(null==s?void 0:s.code);return c({error:s.message||s,code:t,severity:r.ERROR})}})(t)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:s})=>{this.quote=s,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[s.policy_type]=s.accepted,this.isLoading=!1},onError:({error:s,code:t,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}onChangeHandler(s,t){this.accepted=t,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}get error(){var s;return f[null===(s=this.quote)||void 0===s?void 0:s.policy_type]}render(){var t,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):s(k,null,this.isLoading?s(T,null):s("div",null,s(j,{text:null===(t=this.quote)||void 0===t?void 0:t.product.title,class:"fs-5 fw-bold pb-3"}),s("small",{part:g,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),s("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:_},"Please select an option"),s("small",{part:g,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{D as justifi_season_interruption_insurance}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-C_ifLmT1.js";import{c as s,a as i}from"./p-MeSAYDNh.js";import{f as r,p as d,c as l}from"./p-Dw63wyhO.js";import{A as c,B as o,C as f,D as p,E as n,F as m}from"./p-c8J1gsDg.js";import{S as b}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import"./p-Cjcsf8ku.js";import{d as h}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-D8GTwl9v.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{r[e]=a},this.handleDateInput=(e,a)=>{const t=s(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(d[e]=a)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:h.connected},{label:"Disconnected",value:h.disconnected},{label:"Unknown",value:h.unknown},{label:"Pending Configuration",value:h.pending_configuration},{label:"Archived",value:h.archived}]}render(){const e=Object.assign({},r);return a(b,{key:"0d4ac75610bd23b78f079d4f4eaf45345fa48cd4"},a("table-filters-menu",{key:"c580d67c2c1c95fdbfaa50ea355206d8772c8440",params:e,clearParams:l,part:c},a("div",{key:"9d2d456d0806c48f73c9a035ca0f8f618390c644",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"93e926024eaaa5bc511c8c51daa8bab9704d8c89",class:"p-2"},a("form-control-text",{key:"c19f3177124b48882245ce4d11ef7735bb9cfd28",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||r.terminal_id,disabled:!!this.terminalId,part:o})),a("div",{key:"78fc5aa6166a6e1a7f768584e73212dca1348461",class:"p-2"},a("form-control-text",{key:"d1ab7159dff99ca779fd4e3cd19e1c247cea2ec4",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||r.terminal_order_id,disabled:!!this.terminalOrderId,part:f})),a("div",{key:"379f81c0242ceffc472cb5d502cebb0606f2d8c3",class:"p-2"},a("form-control-select",{key:"f5e7ed2157eacef4ab8ae560c15680b66049a044",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||r.status||"",disabled:!!this.terminalStatus,part:p})),a("div",{key:"dc39eea94a616f40e896e9ce4c19e1d812419188",class:"p-2"},a("form-control-date",{key:"403667bf603268954cc3982ba66d47badbcce911",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:i(this.createdAfter||r.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:n})),a("div",{key:"8a5ac2f05771f42b971e721277476194e2e92f4e",class:"p-2"},a("form-control-date",{key:"ae4d9ef25a06a319bdddda5c7023a69b9610ad49",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:i(this.createdBefore||r.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:m})))))}};export{u as justifi_terminals_list_filters}
@@ -1 +0,0 @@
1
- import{r,c as s,h as t}from"./p-CV0Pyo1O.js";import{S as i}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as e,J as o}from"./p-3kNggPyP.js";import{d as a}from"./p-CMq8FpAG.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as n,a as c}from"./p-Cjcsf8ku.js";import{j as p}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as m,a as h}from"./p-D2muobcE.js";import{A as d}from"./p-55QcjheA.js";import"./p-Cc6518FT.js";import"./p-c8J1gsDg.js";import"./p-MeSAYDNh.js";import"./p-CncaMWc8.js";import"./p-D8GTwl9v.js";const l=d();class j{async fetchTerminalOrders(r,s,t){return l.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const u=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.columns=a,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){e(),this.analytics=new o(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:i,onSuccess:e,onError:o,final:a})=>{var c,d;try{const a=await t.fetchTerminalOrders(r,s,i);if(a.error)return o({error:h(a.error),code:m(null===(d=a.error)||void 0===d?void 0:d.code),severity:n.ERROR});{const r=Object.assign({},a.page_info);e({terminalOrders:(null===(c=a.data)||void 0===c?void 0:c.map((r=>new p(r))))||[],pagingInfo:r})}}catch(r){const s=m(null==r?void 0:r.code);return o({error:r.message||r,code:s,severity:n.ERROR})}finally{return a()}})({id:this.accountId,authToken:this.authToken,service:new j}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"19a055907283ae2a126bdb2a509c3a4a991521f2"},t("terminal-orders-list-core",{key:"04df9d1ce1cca14b07e879137abbced011d02486",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{u as justifi_terminal_orders_list}
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as r}from"./p-CV0Pyo1O.js";import{P as i}from"./p-B_KHnbK8.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as o,a as e}from"./p-Cjcsf8ku.js";import{b as p}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c,J as m}from"./p-3kNggPyP.js";import{S as h}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-b4MDVEve.js";import"./p-55QcjheA.js";import"./p-MeSAYDNh.js";import"./p-D8GTwl9v.js";import"./p-Cc6518FT.js";import"./p-DvptzT44.js";import"./p-CncaMWc8.js";import"./p-c8J1gsDg.js";const d=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.errorMessage=null,this.columns=j,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){c(),this.analytics=new m(this),this.initializeGetPayments()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:s,authToken:t,service:r})=>async({params:i,onSuccess:e,onError:c,final:m})=>{var h,j;try{const m=await r.fetchPayments(s,t,i);if(m.error)return c({error:n(m.error),code:a(null===(j=m.error)||void 0===j?void 0:j.code),severity:o.ERROR});{const s=Object.assign({},m.page_info);e({payments:(null===(h=m.data)||void 0===h?void 0:h.map((s=>new p(s))))||[],pagingInfo:s})}}catch(s){const t=a(null==s?void 0:s.code);return c({error:s.message||s,code:t,severity:o.ERROR})}finally{return m()}})({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:"7e8061d89c07cea6f86c61156bf82be507908bb4"},r("payments-list-core",{key:"940a26c6b1590e4b95136262a116892281645c1d",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payments_list}
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as i}from"./p-CV0Pyo1O.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{c as e,J as a}from"./p-3kNggPyP.js";import{P as p}from"./p-8Wa_-5QM.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{e as c}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as n,a as h}from"./p-D2muobcE.js";import{m}from"./p-DYGIC0QH.js";import{m as u,S as j}from"./p-eEJMJXTG.js";import{S as d}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-CtxSp8dd.js";import"./p-Cc6518FT.js";import"./p-55QcjheA.js";import"./p-MeSAYDNh.js";import"./p-D8GTwl9v.js";import"./p-CVa33GsE.js";import"./p-CncaMWc8.js";import"./p-c8J1gsDg.js";const f=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.errorMessage=null,this.columns=l,this.handleOnError=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){e(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const s={id:this.accountId,authToken:this.authToken,service:new p};this.getPayouts=(({id:s,authToken:t,service:i})=>async({params:r,onSuccess:e,onError:a})=>{var p,m;try{const u=await i.fetchPayouts(s,t,r);if(u.error)return a({error:h(u.error),code:n(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const s=Object.assign({},u.page_info);e({payouts:(null===(p=u.data)||void 0===p?void 0:p.map((s=>new c(s))))||[],pagingInfo:s})}}catch(s){const t=n(null==s?void 0:s.code);return a({error:s.message||s,code:t,severity:o.ERROR})}})(s),this.getPayoutCSV=m(s)}else 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=u({primaryAccountId:this.accountId,authToken:this.authToken,service:new j}))}render(){return i(d,{key:"482b4781f039e885ce1782e2817739fbc79994e5"},i("payouts-list-core",{key:"f38ce3000c1b7bc7f93aa5a1a4e87858f39d1456",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-CV0Pyo1O.js";import{f as t,p as s,c as r}from"./p-BPTtWj7E.js";import{v as l,w as d,x as i,y as o,z as c}from"./p-c8J1gsDg.js";import{S as p}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import{c as f,a as b}from"./p-MeSAYDNh.js";import"./p-Cjcsf8ku.js";import{T as n,c as m}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=f(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:n.created},{label:"Completed",value:n.completed},{label:"Submitted",value:n.submitted},{label:"In Progress",value:n.in_progress},{label:"On Hold",value:n.on_hold},{label:"Canceled",value:n.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:m.boardingOnly},{label:"Boarding Shipping",value:m.boardingShipping}]}render(){const e=Object.assign({},t);return a(p,{key:"e10311bf0cdb5aab7ec7a96a05216bc39231db77"},a("table-filters-menu",{key:"9402f8bd704c5d76504f0c7b3da78b51c519f69d",params:e,clearParams:r,part:l},a("div",{key:"87af1b11432fc9dab0ce81e763e417e04d024dcc",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"b12db0f4cb4dd0256406db39cd585fbcb301f6e9",class:"p-2"},a("form-control-select",{key:"50137d63a0f8fbf71fd0c49cb9227f180a5a4277",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||t.order_status||"",disabled:!!this.orderStatus,part:d})),a("div",{key:"aa5c6e5115a8e5fc0394fc36823a229643659968",class:"p-2"},a("form-control-select",{key:"4b5d54c20275ff4951f9f26d780dfeab609a7b0e",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||t.order_type||"",disabled:!!this.orderType,part:i})),a("div",{key:"6f1f85268e131865bcfc27395ca90b86f9e9aa30",class:"p-2"},a("form-control-date",{key:"4c2173c3992e6dfd10d133c106e2b706d3ad6d10",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:b(this.createdAfter,{showInputDateTime:!0})||b(t.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"cc629832d18b1de06b3f513ca80648e4cf10f439",class:"p-2"},a("form-control-date",{key:"a4bb24199f37fce8f3971262fbe9cd62af7a18f5",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:b(this.createdBefore,{showInputDateTime:!0})||b(t.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:c})))))}};export{u as justifi_terminal_orders_list_filters}
@@ -1 +0,0 @@
1
- import{h as e,r as a,H as i}from"./p-CV0Pyo1O.js";import{S as t}from"./p-CmYy5XDp.js";import{w as s,c}from"./p-DVJaoI_m.js";import{b as r}from"./p-MeSAYDNh.js";import"./p-c8J1gsDg.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const o=a=>{const{isReady:i}=a;return i?null:e("div",{class:"container-fluid p-0"},e("div",{class:"row mb-3"},e("div",{class:"col-12 align-content-end"},e(t,{height:"18px",width:"120px"}),e(t,{height:"36px"}))),e("div",{class:"row"},e("div",{class:"col-12 align-content-end"},e(t,{height:"18px",width:"110px"}),e(t,{height:"36px"}))))},n=class{constructor(e){a(this,e),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=c.iframeOrigin,this.tabId=r()}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((a=>{e.addEventListener("iframeLoaded",(()=>{a()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const e=await this.accountNumberIframeElement.validate(),a=await this.routingNumberIframeElement.validate();return e&&a}async tokenize(e,a,i){return this.accountNumberIframeElement.tokenize(e,a,i)}render(){return e(i,{key:"a104b2e88e818472d0158990ccf2cac6d7315616"},e(o,{key:"1ed1ac87a66aedf6a7528247e0ff3a803c74e4c3",isReady:this.isReady}),e("div",{key:"a96c05c60c51f97c8abb7dc6a8cfebc940ea1513",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"3d168fd241702b30f0c8727d3c0aae65c20b69aa",class:"row mb-3"},e("iframe-input",{key:"dc1da989b1577ed62b3eeafd33128aca38e4610d",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),e("div",{key:"1179ae9d6b9f476bb01a1ee4f4edd7da6f22f635",class:"row"},e("iframe-input",{key:"7e79b383876be1711a2e21ab7462f86281ebf28c",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}};export{n as bank_account_form}
@@ -1 +0,0 @@
1
- import{h as r}from"./p-CV0Pyo1O.js";import{a1 as t}from"./p-c8J1gsDg.js";const o=o=>{const{errorText:e,name:s}=o;return e?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},e):null};export{o as F}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-55QcjheA.js";import"./p-Cjcsf8ku.js";import"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";const e=t();class o{async fetchCheckout(t,o){return e.get({endpoint:`checkouts/${o}`,authToken:t})}async fetchCheckouts(t,o,c){return e.get({endpoint:"checkouts",params:c,headers:{Account:t},authToken:o})}async complete(t,o,c){const s=`checkouts/${o}/complete`,n={payment_mode:c.payment_mode};return c.payment_token&&(n.payment_token=c.payment_token),e.post({endpoint:s,body:n,authToken:t})}}export{o as C}
@@ -1 +0,0 @@
1
- import{A as n}from"./p-55QcjheA.js";import"./p-Cjcsf8ku.js";import"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";const t=n();class i{async getLinkToken(n,i,o,a){return t.post({endpoint:`plaid/${i}/link`,body:{checkout_id:o},authToken:n,signal:a})}async getLinkTokenForVerification(n,i,o){return t.post({endpoint:`entities/plaid/${i}/link_token`,body:{},authToken:n,signal:o})}async getBankAccountData(n,i,o){return t.get({endpoint:`entities/plaid/${i}/bank_account`,authToken:n,signal:o})}async postPlaidVerifiedBankAccountData(n,i,o,a){return t.post({endpoint:`entities/plaid/${i}/bank_account`,body:o,authToken:n,signal:a})}async tokenizeBankAccount(n,i,o,a,e,s){const c=`plaid/${i}/tokenize`,p={public_token:o};return a&&(p.link_token_id=a),e&&(p.payment_method_group_id=e),t.post({endpoint:c,body:p,authToken:n,signal:s})}}export{i as P}