@justifi/webcomponents 6.11.0 → 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 (871) hide show
  1. package/dist/cjs/{check-pkg-version-Di4JmtKX.js → Analytics-DZCXB2Za.js} +1 -44
  2. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  3. package/dist/cjs/{justifi-additional-questions-form-step_9.cjs.entry.js → additional-questions-form-step_9.cjs.entry.js} +22 -22
  4. package/dist/cjs/{form-alert_5.cjs.entry.js → additional-questions_5.cjs.entry.js} +26 -26
  5. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +203 -0
  6. package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +37 -37
  7. package/dist/cjs/bank-account-form.cjs.entry.js +8 -4
  8. package/dist/cjs/card-form.cjs.entry.js +8 -4
  9. package/dist/cjs/check-pkg-version-CUhnNGii.js +47 -0
  10. package/dist/cjs/checkouts-list-core.cjs.entry.js +1 -1
  11. package/dist/cjs/custom-popper_2.cjs.entry.js +4 -4
  12. package/dist/cjs/{form-control-number-masked_3.cjs.entry.js → form-address-fields_3.cjs.entry.js} +23 -23
  13. package/dist/cjs/form-control-checkbox.cjs.entry.js +4 -4
  14. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  15. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +7 -7
  16. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +4 -4
  17. package/dist/cjs/form-control-monetary.cjs.entry.js +4 -4
  18. package/dist/cjs/form-control-number_3.cjs.entry.js +11 -11
  19. package/dist/cjs/form-control-radio.cjs.entry.js +4 -4
  20. package/dist/cjs/form-control-select_2.cjs.entry.js +8 -8
  21. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  22. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  23. package/dist/cjs/internal-button.cjs.entry.js +18 -0
  24. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +24 -24
  25. package/dist/cjs/{justifi-apple-pay_8.cjs.entry.js → justifi-apple-pay_11.cjs.entry.js} +337 -31
  26. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +46 -0
  27. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +44 -0
  28. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +24 -0
  29. package/dist/cjs/justifi-billing-form.cjs.entry.js +24 -0
  30. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -5
  31. package/dist/cjs/justifi-business-form.cjs.entry.js +7 -6
  32. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +24 -0
  33. package/dist/cjs/justifi-card-form.cjs.entry.js +44 -0
  34. package/dist/cjs/justifi-checkout.cjs.entry.js +8 -9
  35. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
  36. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -6
  37. package/dist/cjs/justifi-config-provider.cjs.entry.js +2 -2
  38. package/dist/cjs/justifi-details.cjs.entry.js +3 -3
  39. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +3 -3
  40. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -6
  41. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -13
  42. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -5
  43. package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -6
  44. package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -5
  45. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  46. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -6
  47. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -6
  48. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
  49. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -6
  50. package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -5
  51. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -6
  52. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  53. package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -6
  54. package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -5
  55. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +18 -0
  56. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
  57. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -5
  58. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  59. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  60. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -6
  61. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
  62. package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -6
  63. package/dist/cjs/loader.cjs.js +1 -1
  64. package/dist/cjs/{package-D8NG-zuY.js → package-CJg8qLYd.js} +1 -1
  65. package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
  66. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  67. package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
  68. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  69. package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
  70. package/dist/cjs/radio-list-item.cjs.entry.js +21 -0
  71. package/dist/cjs/save-new-payment-method.cjs.entry.js +25 -0
  72. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  73. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +1 -1
  74. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  75. package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
  76. package/dist/cjs/webcomponents.cjs.js +1 -1
  77. package/dist/collection/collection-manifest.json +58 -52
  78. package/dist/collection/components/business-details/{business-details.js → justifi-business-details.js} +1 -1
  79. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
  80. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
  81. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +3 -3
  82. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +3 -3
  83. package/dist/collection/components/business-forms/business-form/{business-form.js → justifi-business-form.js} +2 -2
  84. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +2 -2
  85. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +2 -2
  86. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +2 -2
  87. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +3 -3
  88. package/dist/collection/components/business-forms/owner-form/owner-form.js +3 -3
  89. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/{business-additional-questions-form-step.js → additional-questions-form-step.js} +1 -1
  90. package/dist/collection/components/business-forms/payment-provisioning/bank-account/{bank-account-document-inputs.js → bank-account-document-form-inputs.js} +1 -1
  91. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
  92. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  93. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
  94. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  95. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  96. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +2 -2
  97. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -4
  98. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +2 -2
  99. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +2 -2
  100. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +3 -3
  101. package/dist/collection/components/business-forms/payment-provisioning/{payment-provisioning.js → justifi-payment-provisioning.js} +2 -2
  102. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +2 -2
  103. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +2 -2
  104. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
  105. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +9 -9
  106. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  107. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +11 -16
  108. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.js +16 -35
  109. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.js +19 -37
  110. package/dist/collection/components/checkout/billing-form/billing-form.js +5 -35
  111. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.js +16 -35
  112. package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +140 -0
  113. package/dist/collection/components/checkout/card-form/card-form.js +11 -16
  114. package/dist/collection/components/checkout/{checkout.js → justifi-checkout.js} +3 -24
  115. package/dist/collection/components/checkout/{saved-payment-method.js → justifi-saved-payment-method.js} +2 -2
  116. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +73 -0
  117. package/dist/collection/components/checkout/{save-new-payment-method.js → save-new-payment-method/save-new-payment-method.js} +23 -6
  118. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  119. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +3 -3
  120. package/dist/collection/components/checkouts-list/{checkouts-list.js → justifi-checkouts-list.js} +2 -2
  121. package/dist/collection/components/config-provider/{config-provider.js → justifi-config-provider.js} +1 -1
  122. package/dist/collection/components/dispute-management/dispute-management-core.js +2 -2
  123. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +2 -2
  124. package/dist/collection/components/dispute-management/dispute-response/{additional-statement.js → justifi-additional-statement.js} +2 -2
  125. package/dist/collection/components/dispute-management/dispute-response/{cancellation-policy.js → justifi-cancellation-policy.js} +2 -2
  126. package/dist/collection/components/dispute-management/dispute-response/{customer-details.js → justifi-customer-details.js} +2 -2
  127. package/dist/collection/components/dispute-management/dispute-response/{dispute-response.js → justifi-dispute-response.js} +5 -4
  128. package/dist/collection/components/dispute-management/dispute-response/{duplicate-charge.js → justifi-duplicate-charge.js} +2 -2
  129. package/dist/collection/components/dispute-management/dispute-response/{electronic-evidence.js → justifi-electronic-evidence.js} +2 -2
  130. package/dist/collection/components/dispute-management/dispute-response/{product-or-service.js → justifi-product-or-service.js} +2 -2
  131. package/dist/collection/components/dispute-management/dispute-response/{refund-policy.js → justifi-refund-policy.js} +2 -2
  132. package/dist/collection/components/dispute-management/dispute-response/{shipping-details.js → justifi-shipping-details.js} +2 -2
  133. package/dist/collection/components/dispute-management/{dispute-management.js → justifi-dispute-management.js} +2 -2
  134. package/dist/collection/components/dispute-management/{dispute-notification.js → justifi-dispute-notification.js} +3 -3
  135. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  136. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  137. package/dist/collection/components/gross-payment-chart/{gross-payment-chart.js → justifi-gross-payment-chart.js} +1 -1
  138. package/dist/collection/components/insurance/season-interruption/{season-interruption-insurance.js → justifi-season-interruption-insurance.js} +1 -1
  139. package/dist/collection/components/modular-checkout/{modular-checkout.js → justifi-modular-checkout.js} +41 -3
  140. package/dist/collection/components/modular-checkout/sub-components/{apple-pay.js → justifi-apple-pay.js} +8 -11
  141. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +95 -0
  142. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +69 -0
  143. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +83 -0
  144. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +83 -0
  145. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +69 -0
  146. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +12 -0
  147. package/dist/collection/components/modular-checkout/sub-components/{google-pay.js → justifi-google-pay.js} +1 -1
  148. package/dist/collection/components/modular-checkout/sub-components/{plaid-payment-method.js → justifi-plaid-payment-method.js} +2 -2
  149. package/dist/collection/components/modular-checkout/sub-components/{saved-payment-methods.js → justifi-saved-payment-methods.js} +1 -1
  150. package/dist/collection/components/modular-checkout/sub-components/{sezzle-payment-method.js → justifi-sezzle-payment-method.js} +1 -1
  151. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  152. package/dist/collection/components/order-terminals/{order-terminals.js → justifi-order-terminals.js} +2 -2
  153. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  154. package/dist/collection/components/payment-details/{payment-details.js → justifi-payment-details.js} +1 -1
  155. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  156. package/dist/collection/components/payment-transactions-list/{payment-transactions-list.js → justifi-payment-transactions-list.js} +2 -2
  157. package/dist/collection/components/payments-list/{payments-list-filters.js → justifi-payments-list-filters.js} +3 -3
  158. package/dist/collection/components/payments-list/{payments-list.js → justifi-payments-list.js} +2 -2
  159. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  160. package/dist/collection/components/payout-details/{payout-details.js → justifi-payout-details.js} +1 -1
  161. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  162. package/dist/collection/components/payout-transactions-list/{payout-transactions-list.js → justifi-payout-transactions-list.js} +2 -2
  163. package/dist/collection/components/payouts-list/{payouts-list-filters.js → justifi-payouts-list-filters.js} +3 -3
  164. package/dist/collection/components/payouts-list/{payouts-list.js → justifi-payouts-list.js} +2 -2
  165. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  166. package/dist/collection/components/refund-payment/{refund-payment.js → justifi-refund-payment.js} +1 -1
  167. package/dist/collection/components/terminal-orders-list/{terminal-orders-list-filters.js → justifi-terminal-orders-list-filters.js} +4 -4
  168. package/dist/collection/components/terminal-orders-list/{terminal-orders-list.js → justifi-terminal-orders-list.js} +2 -2
  169. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  170. package/dist/collection/components/terminals-list/{terminals-list-filters.js → justifi-terminals-list-filters.js} +2 -2
  171. package/dist/collection/components/terminals-list/{terminals-list.js → justifi-terminals-list.js} +2 -2
  172. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  173. package/dist/collection/components/tokenize-payment-method/{internal-tokenize-payment-method.js → justifi-tokenize-payment-method.js} +73 -37
  174. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  175. package/dist/collection/ui-components/details/{details.js → justifi-details.js} +2 -2
  176. package/dist/collection/ui-components/form/form-control-checkbox.js +3 -3
  177. package/dist/collection/ui-components/form/form-control-date.js +3 -3
  178. package/dist/collection/ui-components/form/form-control-file-v2.js +2 -2
  179. package/dist/collection/ui-components/form/form-control-file.js +3 -3
  180. package/dist/collection/ui-components/form/form-control-monetary.js +3 -3
  181. package/dist/collection/ui-components/form/form-control-number-masked.js +3 -3
  182. package/dist/collection/ui-components/form/form-control-number.js +3 -3
  183. package/dist/collection/ui-components/form/form-control-radio.js +3 -3
  184. package/dist/collection/ui-components/form/form-control-select.js +3 -3
  185. package/dist/collection/ui-components/form/form-control-text.js +3 -3
  186. package/dist/collection/ui-components/form/form-control-textarea.js +3 -3
  187. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +1 -1
  188. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  189. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  190. package/dist/collection/ui-components/index.js +1 -1
  191. package/dist/collection/ui-components/internal-button.js +192 -0
  192. package/dist/collection/ui-components/radio-list-item.js +153 -0
  193. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +20 -2
  194. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +2 -2
  195. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -5
  196. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  197. package/dist/docs.json +10905 -10441
  198. package/dist/esm/{check-pkg-version-Dn83YYz_.js → Analytics-C2EVi4Am.js} +4 -46
  199. package/dist/esm/{Api-CLZVsXZg.js → Api-DI0-itk3.js} +1 -1
  200. package/dist/esm/{Plaid-DOdR_CNb.js → Plaid-vwPGZ5y4.js} +1 -1
  201. package/dist/esm/additional-questions-details_5.entry.js +5 -5
  202. package/dist/esm/{justifi-additional-questions-form-step_9.entry.js → additional-questions-form-step_9.entry.js} +22 -22
  203. package/dist/esm/{form-alert_5.entry.js → additional-questions_5.entry.js} +23 -23
  204. package/dist/esm/{badge-guwZ0VTf.js → badge-B_DdhQ3Q.js} +1 -1
  205. package/dist/esm/bank-account-billing-form-simple_4.entry.js +198 -0
  206. package/dist/esm/bank-account-document-form-inputs_9.entry.js +43 -43
  207. package/dist/esm/bank-account-form.entry.js +12 -8
  208. package/dist/esm/business-details-core.entry.js +3 -3
  209. package/dist/esm/{business.service-DSolii9Q.js → business.service-M3YvwC-d.js} +2 -2
  210. package/dist/esm/{button-CdXktiZq.js → button-B-Agn8yQ.js} +1 -1
  211. package/dist/esm/card-form.entry.js +12 -8
  212. package/dist/esm/check-pkg-version-qIHmWcbI.js +45 -0
  213. package/dist/esm/{checkout.service-BTXHVtxI.js → checkout.service-DdIBmfsp.js} +2 -2
  214. package/dist/esm/{checkout.store-iNkW80yV.js → checkout.store-C1TdhFf6.js} +1 -1
  215. package/dist/esm/checkouts-list-core.entry.js +8 -8
  216. package/dist/esm/{checkouts-table-Bf6gjMf8.js → checkouts-table-4iLy6mvH.js} +3 -3
  217. package/dist/esm/custom-popper_2.entry.js +5 -5
  218. package/dist/esm/{dispute.service-CpDEYnHy.js → dispute.service-BzzA0DeT.js} +2 -2
  219. package/dist/esm/{form-control-number-masked_3.entry.js → form-address-fields_3.entry.js} +23 -23
  220. package/dist/esm/form-control-checkbox.entry.js +7 -7
  221. package/dist/esm/form-control-date.entry.js +6 -6
  222. package/dist/esm/{form-control-error-text-JYoDicr0.js → form-control-error-text-DMKhr8QA.js} +1 -1
  223. package/dist/esm/form-control-file-v2_2.entry.js +8 -8
  224. package/dist/esm/{form-control-help-text-DxL7yVgi.js → form-control-help-text-CsdCuw5-.js} +1 -1
  225. package/dist/esm/form-control-monetary-provisioning.entry.js +7 -7
  226. package/dist/esm/form-control-monetary.entry.js +8 -8
  227. package/dist/esm/form-control-number_3.entry.js +13 -13
  228. package/dist/esm/form-control-radio.entry.js +5 -5
  229. package/dist/esm/form-control-select_2.entry.js +9 -9
  230. package/dist/esm/{get-payment-details-VEzqfeuZ.js → get-payment-details-CN7gUjBc.js} +1 -1
  231. package/dist/esm/{get-subaccounts-DUdsxExJ.js → get-subaccounts-Mwx-aVcG.js} +2 -2
  232. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  233. package/dist/esm/{header-1-CU8Erek9.js → header-1-bRxxOyI-.js} +1 -1
  234. package/dist/esm/{header-3-BwJ-9MsW.js → header-3-E533c0A3.js} +1 -1
  235. package/dist/esm/hidden-input_2.entry.js +7 -7
  236. package/dist/esm/{insurance-state-gsU4kKgc.js → insurance-state-obAKb1XR.js} +1 -1
  237. package/dist/esm/internal-button.entry.js +16 -0
  238. package/dist/esm/justifi-additional-statement_8.entry.js +18 -18
  239. package/dist/esm/{justifi-apple-pay_8.entry.js → justifi-apple-pay_11.entry.js} +338 -35
  240. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +44 -0
  241. package/dist/esm/justifi-bank-account-form.entry.js +42 -0
  242. package/dist/esm/justifi-billing-form-full.entry.js +22 -0
  243. package/dist/esm/justifi-billing-form.entry.js +22 -0
  244. package/dist/esm/justifi-business-details.entry.js +11 -10
  245. package/dist/esm/justifi-business-form.entry.js +14 -13
  246. package/dist/esm/justifi-card-billing-form-simple.entry.js +22 -0
  247. package/dist/esm/justifi-card-form.entry.js +42 -0
  248. package/dist/esm/justifi-checkout.entry.js +12 -13
  249. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
  250. package/dist/esm/justifi-checkouts-list.entry.js +14 -13
  251. package/dist/esm/justifi-config-provider.entry.js +2 -2
  252. package/dist/esm/justifi-details.entry.js +5 -5
  253. package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
  254. package/dist/esm/justifi-dispute-management.entry.js +10 -9
  255. package/dist/esm/justifi-dispute-notification_3.entry.js +18 -17
  256. package/dist/esm/justifi-gross-payment-chart.entry.js +10 -9
  257. package/dist/esm/justifi-order-terminals.entry.js +13 -12
  258. package/dist/esm/justifi-payment-details.entry.js +12 -11
  259. package/dist/esm/justifi-payment-provisioning-core.entry.js +7 -7
  260. package/dist/esm/justifi-payment-provisioning.entry.js +10 -9
  261. package/dist/esm/justifi-payment-transactions-list.entry.js +13 -12
  262. package/dist/esm/justifi-payments-list-filters.entry.js +6 -6
  263. package/dist/esm/justifi-payments-list.entry.js +14 -13
  264. package/dist/esm/justifi-payout-details.entry.js +11 -10
  265. package/dist/esm/justifi-payout-transactions-list.entry.js +13 -12
  266. package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
  267. package/dist/esm/justifi-payouts-list.entry.js +15 -14
  268. package/dist/esm/justifi-refund-payment.entry.js +13 -12
  269. package/dist/esm/justifi-save-new-payment-method.entry.js +16 -0
  270. package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
  271. package/dist/esm/justifi-season-interruption-insurance.entry.js +12 -11
  272. package/dist/esm/justifi-skeleton.entry.js +3 -3
  273. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
  274. package/dist/esm/justifi-terminal-orders-list.entry.js +12 -11
  275. package/dist/esm/justifi-terminals-list-filters.entry.js +6 -6
  276. package/dist/esm/justifi-terminals-list.entry.js +14 -13
  277. package/dist/esm/loader.js +1 -1
  278. package/dist/esm/{package-qNXIkzDE.js → package-CIYOQWsL.js} +1 -1
  279. package/dist/esm/pagination-menu.entry.js +1 -1
  280. package/dist/esm/{parts-D3V9AE6o.js → parts-D50Rx76J.js} +1 -1
  281. package/dist/esm/payment-details-core.entry.js +15 -15
  282. package/dist/esm/payment-method-option.entry.js +2 -2
  283. package/dist/esm/{payment-provisioning-loading-CQfDKCwy.js → payment-provisioning-loading-BAoIyEOj.js} +1 -1
  284. package/dist/esm/{payment.service-BjU4B__W.js → payment.service-0k8z2rOV.js} +2 -2
  285. package/dist/esm/payments-list-core.entry.js +9 -9
  286. package/dist/esm/{payments-status-DT4VNKKg.js → payments-status-7P7L51CK.js} +1 -1
  287. package/dist/esm/{payments-table-BJ1F2ZZU.js → payments-table-Bz7LmU_J.js} +3 -3
  288. package/dist/esm/payout-details-core.entry.js +10 -10
  289. package/dist/esm/{payout.service-CzCd8AaC.js → payout.service-C14YvCWQ.js} +2 -2
  290. package/dist/esm/payouts-list-core.entry.js +9 -9
  291. package/dist/esm/{payouts-status-LTNE_gQc.js → payouts-status-CGZRMu-q.js} +1 -1
  292. package/dist/esm/{payouts-table-Yp2d9OgA.js → payouts-table-Bpt__avQ.js} +3 -3
  293. package/dist/esm/{plaid.service-D61Eq14d.js → plaid.service-Dtxfrsm8.js} +2 -2
  294. package/dist/esm/radio-list-item.entry.js +19 -0
  295. package/dist/esm/save-new-payment-method.entry.js +23 -0
  296. package/dist/esm/{skeleton-CV6EpBqb.js → skeleton-DV6yJalo.js} +1 -1
  297. package/dist/esm/{spinner-CG3aWl8K.js → spinner--fEgBBOG.js} +1 -1
  298. package/dist/esm/{table-DZ6rurWg.js → table-Deugl8h5.js} +2 -2
  299. package/dist/esm/table-filters-menu.entry.js +3 -3
  300. package/dist/esm/terminal-orders-list-core.entry.js +8 -8
  301. package/dist/esm/{terminal-orders-table-CJg6dKsL.js → terminal-orders-table-DRnRR4zn.js} +4 -4
  302. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  303. package/dist/esm/{terminal.service-BBdRhDxm.js → terminal.service-rxvEhqqF.js} +2 -2
  304. package/dist/esm/terminals-list-core.entry.js +8 -8
  305. package/dist/esm/{terminals-table-iGSICJeZ.js → terminals-table-DSDZgJ77.js} +3 -3
  306. package/dist/esm/{utils-7bp92NC7.js → utils-C_8ZxLti.js} +1 -1
  307. package/dist/esm/{utils-DUArY3am.js → utils-DJOBwFeP.js} +1 -1
  308. package/dist/esm/webcomponents.js +1 -1
  309. package/dist/module/Analytics.js +1 -43
  310. package/dist/module/Plaid.js +1 -1
  311. package/dist/module/additional-questions-form-step.d.ts +11 -0
  312. package/dist/module/additional-questions-form-step.js +6 -0
  313. package/dist/module/{business-additional-questions-form-step.js → additional-questions-form-step2.js} +5 -5
  314. package/dist/module/additional-questions.d.ts +11 -0
  315. package/dist/module/additional-questions.js +4 -76
  316. package/dist/module/additional-questions2.js +78 -0
  317. package/dist/module/badge.js +1 -1
  318. package/dist/module/bank-account-billing-form-simple.d.ts +11 -0
  319. package/dist/module/bank-account-billing-form-simple.js +4 -86
  320. package/dist/module/bank-account-billing-form-simple2.js +91 -0
  321. package/dist/module/bank-account-document-form-inputs.js +1 -1
  322. package/dist/module/{bank-account-document-inputs.js → bank-account-document-form-inputs2.js} +1 -1
  323. package/dist/module/bank-account-form-inputs-canada2.js +3 -3
  324. package/dist/module/bank-account-form-inputs2.js +3 -3
  325. package/dist/module/bank-account-form.js +1 -80
  326. package/dist/module/{bank-account.js → bank-account-form2.js} +10 -19
  327. package/dist/module/bank-account-read-only-value2.js +2 -2
  328. package/dist/module/billing-form-full.d.ts +11 -0
  329. package/dist/module/billing-form-full.js +4 -97
  330. package/dist/module/billing-form-full2.js +105 -0
  331. package/dist/module/billing-form-schema.js +1 -1
  332. package/dist/module/billing-form.d.ts +11 -0
  333. package/dist/module/billing-form.js +4 -102
  334. package/dist/module/billing-form2.js +99 -0
  335. package/dist/module/business-additional-questions-schema.js +1 -1
  336. package/dist/module/business-address-schema.js +2 -2
  337. package/dist/module/business-bank-account-form-step.d.ts +11 -0
  338. package/dist/module/business-bank-account-form-step.js +4 -602
  339. package/dist/module/business-bank-account-form-step2.js +604 -0
  340. package/dist/module/business-core-info-form-step.d.ts +11 -0
  341. package/dist/module/business-core-info-form-step.js +4 -215
  342. package/dist/module/business-core-info-form-step2.js +217 -0
  343. package/dist/module/{justifi-owner-form.d.ts → business-core-info.d.ts} +4 -4
  344. package/dist/module/business-core-info.js +4 -92
  345. package/dist/module/business-core-info2.js +94 -0
  346. package/dist/module/business-details-core2.js +1 -1
  347. package/dist/module/business-documents-on-file2.js +3 -3
  348. package/dist/module/business-form-options.js +1 -1
  349. package/dist/module/business-identity-schema.js +2 -2
  350. package/dist/module/business-owners-form-step.d.ts +11 -0
  351. package/dist/module/business-owners-form-step.js +4 -302
  352. package/dist/module/business-owners-form-step2.js +304 -0
  353. package/dist/module/business-representative-form-inputs.d.ts +11 -0
  354. package/dist/module/business-representative-form-inputs.js +4 -100
  355. package/dist/module/business-representative-form-inputs2.js +102 -0
  356. package/dist/module/business-representative-form-step.d.ts +11 -0
  357. package/dist/module/business-representative-form-step.js +4 -220
  358. package/dist/module/business-representative-form-step2.js +222 -0
  359. package/dist/module/business-representative.d.ts +11 -0
  360. package/dist/module/business-representative.js +4 -114
  361. package/dist/module/business-representative2.js +116 -0
  362. package/dist/module/business-terms-conditions-form-step.d.ts +11 -0
  363. package/dist/module/business-terms-conditions-form-step.js +4 -165
  364. package/dist/module/business-terms-conditions-form-step2.js +167 -0
  365. package/dist/module/button.js +1 -1
  366. package/dist/module/card-billing-form-simple.d.ts +11 -0
  367. package/dist/module/card-billing-form-simple.js +4 -86
  368. package/dist/module/card-billing-form-simple2.js +91 -0
  369. package/dist/module/card-form.js +1 -84
  370. package/dist/module/card-form2.js +12 -21
  371. package/dist/module/check-pkg-version.js +45 -0
  372. package/dist/module/checkout.store.js +2 -2
  373. package/dist/module/checkouts-list-core2.js +4 -4
  374. package/dist/module/checkouts-list-params-state.js +1 -1
  375. package/dist/module/config-state.js +1 -1
  376. package/dist/module/custom-popper2.js +2 -2
  377. package/dist/module/dispute-management-core.js +15 -15
  378. package/dist/module/dispute-response-actions.js +2 -2
  379. package/dist/module/dispute-response-core.js +13 -13
  380. package/dist/module/form-address-fields.d.ts +11 -0
  381. package/dist/module/form-address-fields.js +4 -63
  382. package/dist/module/form-address-fields2.js +65 -0
  383. package/dist/module/form-alert2.js +1 -1
  384. package/dist/module/form-control-checkbox.js +2 -2
  385. package/dist/module/form-control-checkbox2.js +8 -8
  386. package/dist/module/form-control-date.js +2 -2
  387. package/dist/module/form-control-date2.js +7 -7
  388. package/dist/module/form-control-file-v2.js +2 -2
  389. package/dist/module/form-control-file-v22.js +4 -4
  390. package/dist/module/form-control-file.js +2 -2
  391. package/dist/module/form-control-file2.js +7 -7
  392. package/dist/module/form-control-help-text.js +1 -1
  393. package/dist/module/form-control-help-text2.js +9 -32
  394. package/dist/module/form-control-help-text3.js +32 -9
  395. package/dist/module/form-control-monetary-provisioning.js +2 -2
  396. package/dist/module/form-control-monetary-provisioning2.js +9 -9
  397. package/dist/module/form-control-monetary.js +2 -2
  398. package/dist/module/form-control-monetary2.js +8 -8
  399. package/dist/module/form-control-number-masked.js +2 -2
  400. package/dist/module/form-control-number-masked2.js +8 -8
  401. package/dist/module/form-control-number.js +2 -2
  402. package/dist/module/form-control-number2.js +8 -8
  403. package/dist/module/form-control-radio.js +2 -2
  404. package/dist/module/form-control-radio2.js +7 -7
  405. package/dist/module/form-control-select.js +2 -2
  406. package/dist/module/form-control-select2.js +7 -7
  407. package/dist/module/form-control-text.js +2 -2
  408. package/dist/module/form-control-text2.js +7 -7
  409. package/dist/module/form-control-textarea.js +2 -2
  410. package/dist/module/form-control-textarea2.js +7 -7
  411. package/dist/module/form-control-tooltip.js +2 -2
  412. package/dist/module/form-control-tooltip2.js +4 -4
  413. package/dist/module/get-business.js +2 -2
  414. package/dist/module/get-payment-details.js +2 -2
  415. package/dist/module/get-payout-csv.js +2 -2
  416. package/dist/module/get-subaccounts.js +2 -2
  417. package/dist/module/gross-payment-chart-core2.js +1 -1
  418. package/dist/module/header-1.js +1 -1
  419. package/dist/module/header-3.js +1 -1
  420. package/dist/module/hidden-input2.js +2 -2
  421. package/dist/module/identity-address-form.d.ts +11 -0
  422. package/dist/module/identity-address-form.js +4 -76
  423. package/dist/module/identity-address-form2.js +78 -0
  424. package/dist/module/iframe-input-styles-state.js +1 -1
  425. package/dist/module/iframe-input2.js +4 -4
  426. package/dist/module/index2.js +3567 -246
  427. package/dist/module/index3.js +246 -3567
  428. package/dist/module/insurance-state.js +1 -1
  429. package/dist/module/internal-button.d.ts +11 -0
  430. package/dist/module/internal-button.js +6 -0
  431. package/dist/module/internal-button2.js +42 -0
  432. package/dist/module/justifi-additional-statement.js +2 -2
  433. package/dist/module/{additional-statement.js → justifi-additional-statement2.js} +5 -5
  434. package/dist/module/justifi-apple-pay.js +2 -2
  435. package/dist/module/{apple-pay.js → justifi-apple-pay2.js} +11 -11
  436. package/dist/module/justifi-bank-account-billing-form-simple.js +81 -2
  437. package/dist/module/justifi-bank-account-form.js +72 -2
  438. package/dist/module/justifi-billing-form-full.js +75 -2
  439. package/dist/module/justifi-billing-form.js +96 -2
  440. package/dist/module/justifi-business-details.js +7 -6
  441. package/dist/module/justifi-business-form.js +38 -37
  442. package/dist/module/justifi-button2.js +10 -4
  443. package/dist/module/justifi-cancellation-policy.js +2 -2
  444. package/dist/module/{cancellation-policy.js → justifi-cancellation-policy2.js} +5 -5
  445. package/dist/module/justifi-card-billing-form-simple.js +69 -2
  446. package/dist/module/justifi-card-form.js +71 -1
  447. package/dist/module/justifi-checkout-summary.js +2 -2
  448. package/dist/module/{summary.js → justifi-checkout-summary2.js} +6 -6
  449. package/dist/module/justifi-checkout.js +73 -62
  450. package/dist/module/justifi-checkouts-list-filters.js +6 -6
  451. package/dist/module/justifi-checkouts-list.js +9 -8
  452. package/dist/module/justifi-config-provider.js +3 -3
  453. package/dist/module/justifi-customer-details.js +2 -2
  454. package/dist/module/{customer-details.js → justifi-customer-details2.js} +5 -5
  455. package/dist/module/justifi-details.js +2 -2
  456. package/dist/module/{details.js → justifi-details2.js} +4 -4
  457. package/dist/module/justifi-dispute-management-core.js +2 -2
  458. package/dist/module/justifi-dispute-management.js +19 -18
  459. package/dist/module/justifi-dispute-notification.js +2 -2
  460. package/dist/module/{dispute-notification.js → justifi-dispute-notification2.js} +7 -7
  461. package/dist/module/justifi-dispute-response-core.js +2 -2
  462. package/dist/module/justifi-dispute-response.js +2 -2
  463. package/dist/module/{dispute-response.js → justifi-dispute-response2.js} +17 -16
  464. package/dist/module/justifi-duplicate-charge.js +2 -2
  465. package/dist/module/{duplicate-charge.js → justifi-duplicate-charge2.js} +5 -5
  466. package/dist/module/justifi-electronic-evidence.js +2 -2
  467. package/dist/module/{electronic-evidence.js → justifi-electronic-evidence2.js} +4 -4
  468. package/dist/module/justifi-google-pay.js +2 -2
  469. package/dist/module/{google-pay.js → justifi-google-pay2.js} +4 -4
  470. package/dist/module/justifi-gross-payment-chart.js +7 -6
  471. package/dist/module/justifi-header.js +2 -2
  472. package/dist/module/justifi-header2.js +4 -4
  473. package/dist/module/justifi-modular-checkout.js +2 -2
  474. package/dist/module/{modular-checkout.js → justifi-modular-checkout2.js} +23 -9
  475. package/dist/module/justifi-order-terminals.js +10 -9
  476. package/dist/module/justifi-payment-details.js +7 -6
  477. package/dist/module/justifi-payment-provisioning-core.js +2 -2
  478. package/dist/module/justifi-payment-provisioning.js +70 -69
  479. package/dist/module/justifi-payment-transactions-list.js +10 -9
  480. package/dist/module/justifi-payments-list-filters.js +6 -6
  481. package/dist/module/justifi-payments-list.js +9 -8
  482. package/dist/module/justifi-payout-details.js +8 -7
  483. package/dist/module/justifi-payout-transactions-list.js +10 -9
  484. package/dist/module/justifi-payouts-list-filters.js +6 -6
  485. package/dist/module/justifi-payouts-list.js +9 -8
  486. package/dist/module/justifi-plaid-payment-method.js +2 -2
  487. package/dist/module/{plaid-payment-method.js → justifi-plaid-payment-method2.js} +7 -7
  488. package/dist/module/justifi-product-or-service.js +2 -2
  489. package/dist/module/{product-or-service.js → justifi-product-or-service2.js} +4 -4
  490. package/dist/module/justifi-radio-list-item2.js +11 -9
  491. package/dist/module/justifi-refund-payment.js +9 -8
  492. package/dist/module/justifi-refund-policy.js +2 -2
  493. package/dist/module/{refund-policy.js → justifi-refund-policy2.js} +5 -5
  494. package/dist/module/justifi-save-new-payment-method.js +50 -2
  495. package/dist/module/justifi-saved-payment-method.js +6 -6
  496. package/dist/module/justifi-saved-payment-methods.js +2 -2
  497. package/dist/module/{saved-payment-methods.js → justifi-saved-payment-methods2.js} +6 -6
  498. package/dist/module/justifi-season-interruption-insurance.js +10 -9
  499. package/dist/module/justifi-sezzle-payment-method.js +2 -2
  500. package/dist/module/{sezzle-payment-method.js → justifi-sezzle-payment-method2.js} +4 -4
  501. package/dist/module/justifi-shipping-details.js +2 -2
  502. package/dist/module/{shipping-details.js → justifi-shipping-details2.js} +5 -5
  503. package/dist/module/justifi-skeleton.js +1 -1
  504. package/dist/module/justifi-terminal-orders-list-filters.js +7 -7
  505. package/dist/module/justifi-terminal-orders-list.js +9 -8
  506. package/dist/module/justifi-terminals-list-filters.js +5 -5
  507. package/dist/module/justifi-terminals-list.js +9 -8
  508. package/dist/module/justifi-tokenize-payment-method.js +2 -167
  509. package/dist/module/{internal-tokenize-payment-method2.js → justifi-tokenize-payment-method2.js} +73 -56
  510. package/dist/module/legal-address-form-step.d.ts +11 -0
  511. package/dist/module/legal-address-form-step.js +4 -189
  512. package/dist/module/legal-address-form-step2.js +191 -0
  513. package/dist/module/legal-address-form.d.ts +11 -0
  514. package/dist/module/legal-address-form.js +4 -74
  515. package/dist/module/legal-address-form2.js +76 -0
  516. package/dist/module/owner-details2.js +1 -1
  517. package/dist/module/owner-form-core.js +2 -2
  518. package/dist/module/owner-form-core2.js +23 -23
  519. package/dist/module/owner-form-inputs.js +2 -2
  520. package/dist/module/owner-form-inputs2.js +23 -23
  521. package/dist/module/owner-form.d.ts +11 -0
  522. package/dist/module/owner-form.js +4 -142
  523. package/dist/module/owner-form2.js +144 -0
  524. package/dist/module/package.js +1 -1
  525. package/dist/module/pagination-menu2.js +1 -1
  526. package/dist/module/parts.js +1 -1
  527. package/dist/module/payment-details-core2.js +10 -10
  528. package/dist/module/payment-method-option.js +4 -4
  529. package/dist/module/payment-provisioning-actions.js +2 -2
  530. package/dist/module/payment-provisioning-core.js +68 -68
  531. package/dist/module/payment-provisioning-form-buttons.d.ts +11 -0
  532. package/dist/module/payment-provisioning-form-buttons.js +4 -49
  533. package/dist/module/payment-provisioning-form-buttons2.js +51 -0
  534. package/dist/module/payment-provisioning-form-steps.d.ts +11 -0
  535. package/dist/module/payment-provisioning-form-steps.js +4 -224
  536. package/dist/module/payment-provisioning-form-steps2.js +226 -0
  537. package/dist/module/payment-provisioning-loading.js +1 -1
  538. package/dist/module/payments-list-core2.js +3 -3
  539. package/dist/module/payments-list-params-state.js +1 -1
  540. package/dist/module/payout-details-core2.js +5 -5
  541. package/dist/module/payouts-list-core2.js +4 -4
  542. package/dist/module/payouts-list-params-state.js +1 -1
  543. package/dist/module/plaid-verification2.js +3 -3
  544. package/dist/module/radio-list-item.d.ts +11 -0
  545. package/dist/module/radio-list-item.js +6 -0
  546. package/dist/module/radio-list-item2.js +55 -0
  547. package/dist/module/representative-details.js +2 -2
  548. package/dist/module/representative-details2.js +4 -4
  549. package/dist/module/save-new-payment-method.d.ts +11 -0
  550. package/dist/module/save-new-payment-method.js +4 -50
  551. package/dist/module/save-new-payment-method2.js +48 -0
  552. package/dist/module/schema-validations.js +2 -2
  553. package/dist/module/skeleton.js +1 -1
  554. package/dist/module/spinner.js +1 -1
  555. package/dist/module/table-filters-menu2.js +1 -1
  556. package/dist/module/table.js +1 -1
  557. package/dist/module/terminal-orders-list-core2.js +3 -3
  558. package/dist/module/terminal-orders-list-params-state.js +1 -1
  559. package/dist/module/terminal-quantity-selector2.js +2 -2
  560. package/dist/module/terminals-list-core2.js +3 -3
  561. package/dist/module/terminals-list-params-state.js +1 -1
  562. package/dist/module/utils.js +1 -1
  563. package/dist/module/utils2.js +1 -1
  564. package/dist/module/utils3.js +24 -23
  565. package/dist/module/utils4.js +23 -24
  566. package/dist/types/components/business-details/{business-details.d.ts → justifi-business-details.d.ts} +1 -1
  567. package/dist/types/components/business-details/representative-details/representative-details.d.ts +1 -1
  568. package/dist/types/components/business-forms/business-form/{business-form.d.ts → justifi-business-form.d.ts} +1 -1
  569. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +1 -1
  570. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +1 -1
  571. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +1 -1
  572. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +1 -1
  573. package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +1 -1
  574. package/dist/types/components/business-forms/payment-provisioning/{payment-provisioning.d.ts → justifi-payment-provisioning.d.ts} +1 -1
  575. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +1 -1
  576. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +6 -6
  577. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +5 -1
  578. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.d.ts +3 -2
  579. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.d.ts +4 -2
  580. package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +1 -1
  581. package/dist/types/components/checkout/billing-form/billing-form.d.ts +0 -1
  582. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.d.ts +3 -2
  583. package/dist/types/components/checkout/billing-form/justifi-billing-form.d.ts +14 -0
  584. package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
  585. package/dist/types/components/checkout/{checkout.d.ts → justifi-checkout.d.ts} +2 -21
  586. package/dist/types/components/checkout/{saved-payment-method.d.ts → justifi-saved-payment-method.d.ts} +1 -1
  587. package/dist/types/components/checkout/save-new-payment-method/justifi-save-new-payment-method.d.ts +7 -0
  588. package/dist/types/components/checkout/{save-new-payment-method.d.ts → save-new-payment-method/save-new-payment-method.d.ts} +2 -1
  589. package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +1 -1
  590. package/dist/types/components/checkouts-list/{checkouts-list.d.ts → justifi-checkouts-list.d.ts} +1 -1
  591. package/dist/types/components/config-provider/{config-provider.d.ts → justifi-config-provider.d.ts} +1 -1
  592. package/dist/types/components/dispute-management/dispute-management-core.d.ts +1 -1
  593. package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +1 -1
  594. package/dist/types/components/dispute-management/dispute-response/{additional-statement.d.ts → justifi-additional-statement.d.ts} +1 -1
  595. package/dist/types/components/dispute-management/dispute-response/{cancellation-policy.d.ts → justifi-cancellation-policy.d.ts} +1 -1
  596. package/dist/types/components/dispute-management/dispute-response/{customer-details.d.ts → justifi-customer-details.d.ts} +1 -1
  597. package/dist/types/components/dispute-management/dispute-response/{dispute-response.d.ts → justifi-dispute-response.d.ts} +2 -2
  598. package/dist/types/components/dispute-management/dispute-response/{duplicate-charge.d.ts → justifi-duplicate-charge.d.ts} +1 -1
  599. package/dist/types/components/dispute-management/dispute-response/{electronic-evidence.d.ts → justifi-electronic-evidence.d.ts} +1 -1
  600. package/dist/types/components/dispute-management/dispute-response/{product-or-service.d.ts → justifi-product-or-service.d.ts} +1 -1
  601. package/dist/types/components/dispute-management/dispute-response/{refund-policy.d.ts → justifi-refund-policy.d.ts} +1 -1
  602. package/dist/types/components/dispute-management/dispute-response/{shipping-details.d.ts → justifi-shipping-details.d.ts} +1 -1
  603. package/dist/types/components/dispute-management/{dispute-management.d.ts → justifi-dispute-management.d.ts} +1 -1
  604. package/dist/types/components/dispute-management/{dispute-notification.d.ts → justifi-dispute-notification.d.ts} +1 -1
  605. package/dist/types/components/gross-payment-chart/{gross-payment-chart.d.ts → justifi-gross-payment-chart.d.ts} +1 -1
  606. package/dist/types/components/insurance/season-interruption/{season-interruption-insurance.d.ts → justifi-season-interruption-insurance.d.ts} +1 -1
  607. package/dist/types/components/modular-checkout/{modular-checkout.d.ts → justifi-modular-checkout.d.ts} +2 -1
  608. package/dist/types/components/modular-checkout/sub-components/{apple-pay.d.ts → justifi-apple-pay.d.ts} +1 -4
  609. package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.d.ts +15 -0
  610. package/dist/types/components/modular-checkout/sub-components/{bank-account.d.ts → justifi-bank-account-form.d.ts} +2 -7
  611. package/dist/types/components/modular-checkout/sub-components/justifi-billing-form-full.d.ts +11 -0
  612. package/dist/types/components/modular-checkout/sub-components/justifi-card-billing-form-simple.d.ts +11 -0
  613. package/dist/types/components/modular-checkout/sub-components/{card-form.d.ts → justifi-card-form.d.ts} +1 -8
  614. package/dist/types/components/modular-checkout/sub-components/justifi-checkout-summary.d.ts +3 -0
  615. package/dist/types/components/modular-checkout/sub-components/{google-pay.d.ts → justifi-google-pay.d.ts} +1 -1
  616. package/dist/types/components/modular-checkout/sub-components/{plaid-payment-method.d.ts → justifi-plaid-payment-method.d.ts} +1 -1
  617. package/dist/types/components/modular-checkout/sub-components/{saved-payment-methods.d.ts → justifi-saved-payment-methods.d.ts} +1 -1
  618. package/dist/types/components/modular-checkout/sub-components/{sezzle-payment-method.d.ts → justifi-sezzle-payment-method.d.ts} +1 -1
  619. package/dist/types/components/order-terminals/{order-terminals.d.ts → justifi-order-terminals.d.ts} +1 -1
  620. package/dist/types/components/payment-details/{payment-details.d.ts → justifi-payment-details.d.ts} +1 -1
  621. package/dist/types/components/payment-transactions-list/{payment-transactions-list.d.ts → justifi-payment-transactions-list.d.ts} +1 -1
  622. package/dist/types/components/payments-list/{payments-list-filters.d.ts → justifi-payments-list-filters.d.ts} +1 -1
  623. package/dist/types/components/payments-list/{payments-list.d.ts → justifi-payments-list.d.ts} +1 -1
  624. package/dist/types/components/payout-details/{payout-details.d.ts → justifi-payout-details.d.ts} +1 -1
  625. package/dist/types/components/payout-transactions-list/{payout-transactions-list.d.ts → justifi-payout-transactions-list.d.ts} +1 -1
  626. package/dist/types/components/payouts-list/{payouts-list-filters.d.ts → justifi-payouts-list-filters.d.ts} +1 -1
  627. package/dist/types/components/payouts-list/{payouts-list.d.ts → justifi-payouts-list.d.ts} +1 -1
  628. package/dist/types/components/refund-payment/{refund-payment.d.ts → justifi-refund-payment.d.ts} +1 -1
  629. package/dist/types/components/terminal-orders-list/{terminal-orders-list-filters.d.ts → justifi-terminal-orders-list-filters.d.ts} +1 -1
  630. package/dist/types/components/terminal-orders-list/{terminal-orders-list.d.ts → justifi-terminal-orders-list.d.ts} +1 -1
  631. package/dist/types/components/terminals-list/{terminals-list-filters.d.ts → justifi-terminals-list-filters.d.ts} +1 -1
  632. package/dist/types/components/terminals-list/{terminals-list.d.ts → justifi-terminals-list.d.ts} +1 -1
  633. package/dist/types/components/tokenize-payment-method/{internal-tokenize-payment-method.d.ts → justifi-tokenize-payment-method.d.ts} +4 -3
  634. package/dist/types/components.d.ts +826 -657
  635. package/dist/types/ui-components/details/{details.d.ts → justifi-details.d.ts} +1 -1
  636. package/dist/types/ui-components/form/form-control-checkbox.d.ts +1 -1
  637. package/dist/types/ui-components/form/form-control-date.d.ts +1 -1
  638. package/dist/types/ui-components/form/form-control-file-v2.d.ts +1 -1
  639. package/dist/types/ui-components/form/form-control-file.d.ts +1 -1
  640. package/dist/types/ui-components/form/form-control-monetary.d.ts +1 -1
  641. package/dist/types/ui-components/form/form-control-number-masked.d.ts +1 -1
  642. package/dist/types/ui-components/form/form-control-number.d.ts +1 -1
  643. package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
  644. package/dist/types/ui-components/form/form-control-select.d.ts +1 -1
  645. package/dist/types/ui-components/form/form-control-text.d.ts +1 -1
  646. package/dist/types/ui-components/form/form-control-textarea.d.ts +1 -1
  647. package/dist/types/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +1 -1
  648. package/dist/types/ui-components/index.d.ts +1 -1
  649. package/dist/types/ui-components/internal-button.d.ts +14 -0
  650. package/dist/types/ui-components/radio-list-item.d.ts +12 -0
  651. package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +1 -0
  652. package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +0 -1
  653. package/dist/webcomponents/p-08424d71.entry.js +1 -0
  654. package/dist/webcomponents/p-089bc927.entry.js +1 -0
  655. package/dist/webcomponents/p-0b7fa323.entry.js +1 -0
  656. package/dist/webcomponents/p-16ae88d0.entry.js +1 -0
  657. package/dist/webcomponents/p-179fe9a0.entry.js +1 -0
  658. package/dist/webcomponents/p-1a9aecbf.entry.js +1 -0
  659. package/dist/webcomponents/{p-132c8d4c.entry.js → p-1c95ec74.entry.js} +3 -3
  660. package/dist/webcomponents/{p-541da1ed.entry.js → p-1d1c48c3.entry.js} +1 -1
  661. package/dist/webcomponents/p-1da3ba0f.entry.js +1 -0
  662. package/dist/webcomponents/{p-368d8543.entry.js → p-252a4f75.entry.js} +1 -1
  663. package/dist/webcomponents/{p-ef98982e.entry.js → p-26062991.entry.js} +1 -1
  664. package/dist/webcomponents/p-26074643.entry.js +1 -0
  665. package/dist/webcomponents/{p-251f6c90.entry.js → p-2719f4db.entry.js} +1 -1
  666. package/dist/webcomponents/p-2a0ce169.entry.js +1 -0
  667. package/dist/webcomponents/p-2b8df3c0.entry.js +1 -0
  668. package/dist/webcomponents/p-2bec5dca.entry.js +1 -0
  669. package/dist/webcomponents/p-358f7121.entry.js +1 -0
  670. package/dist/webcomponents/{p-ca307ba0.entry.js → p-38281490.entry.js} +1 -1
  671. package/dist/webcomponents/p-383798ab.entry.js +1 -0
  672. package/dist/webcomponents/p-3d135aee.entry.js +1 -0
  673. package/dist/webcomponents/{p-15919744.entry.js → p-42129686.entry.js} +1 -1
  674. package/dist/webcomponents/p-431ad048.entry.js +1 -0
  675. package/dist/webcomponents/p-485a8795.entry.js +1 -0
  676. package/dist/webcomponents/p-4d222f42.entry.js +1 -0
  677. package/dist/webcomponents/{p-c751bb5f.entry.js → p-534833ca.entry.js} +1 -1
  678. package/dist/webcomponents/p-534881d8.entry.js +1 -0
  679. package/dist/webcomponents/p-53dd8569.entry.js +1 -0
  680. package/dist/webcomponents/{p-e646422f.entry.js → p-56d58041.entry.js} +1 -1
  681. package/dist/webcomponents/p-61784c6a.entry.js +1 -0
  682. package/dist/webcomponents/p-6372a42a.entry.js +1 -0
  683. package/dist/webcomponents/p-7108eead.entry.js +1 -0
  684. package/dist/webcomponents/p-729c9798.entry.js +1 -0
  685. package/dist/webcomponents/{p-7cb910cf.entry.js → p-744f57f0.entry.js} +1 -1
  686. package/dist/webcomponents/p-7742cf61.entry.js +1 -0
  687. package/dist/webcomponents/p-774b69a0.entry.js +1 -0
  688. package/dist/webcomponents/p-77600a47.entry.js +1 -0
  689. package/dist/webcomponents/{p-f23b4474.entry.js → p-7791b55e.entry.js} +1 -1
  690. package/dist/webcomponents/p-783580d4.entry.js +1 -0
  691. package/dist/webcomponents/p-83fd4eae.entry.js +1 -0
  692. package/dist/webcomponents/p-848ae146.entry.js +1 -0
  693. package/dist/webcomponents/p-865d4604.entry.js +1 -0
  694. package/dist/webcomponents/{p-e86c713b.entry.js → p-89bf64ef.entry.js} +1 -1
  695. package/dist/webcomponents/p-8Kt4Rhcq.js +1 -0
  696. package/dist/webcomponents/p-8c52d10a.entry.js +1 -0
  697. package/dist/webcomponents/p-8df335d4.entry.js +1 -0
  698. package/dist/webcomponents/p-90f2c769.entry.js +1 -0
  699. package/dist/webcomponents/{p-7703ada7.entry.js → p-9639d9d0.entry.js} +1 -1
  700. package/dist/webcomponents/p-97d16844.entry.js +1 -0
  701. package/dist/webcomponents/p-9838b5a7.entry.js +1 -0
  702. package/dist/webcomponents/{p--UanYWb-.js → p-B6sIVWJW.js} +1 -1
  703. package/dist/webcomponents/{p-BXT1uJVr.js → p-BJtvT9BX.js} +1 -1
  704. package/dist/webcomponents/{p-DnZY6aQX.js → p-BmEX2SfZ.js} +1 -1
  705. package/dist/webcomponents/{p-C0tps2ph.js → p-BrO0HEFJ.js} +1 -1
  706. package/dist/webcomponents/{p-CMLfjWil.js → p-Bwzxu5wV.js} +1 -1
  707. package/dist/webcomponents/{p-o83Uy7sW.js → p-C-QiUcEa.js} +1 -1
  708. package/dist/webcomponents/{p-ERB63T7J.js → p-C1olhiO9.js} +1 -1
  709. package/dist/webcomponents/p-CAl_N2gi.js +1 -0
  710. package/dist/webcomponents/{p-_BHErKTQ.js → p-CBqZge6m.js} +1 -1
  711. package/dist/webcomponents/p-CIYOQWsL.js +1 -0
  712. package/dist/webcomponents/{p-55QcjheA.js → p-CMB3sNMT.js} +1 -1
  713. package/dist/webcomponents/{p-XxcNbSyO.js → p-CWv3GX8X.js} +1 -1
  714. package/dist/webcomponents/p-CbM9cuX_.js +1 -0
  715. package/dist/webcomponents/{p-COZ-9O53.js → p-CjuaXEuI.js} +1 -1
  716. package/dist/webcomponents/{p-zGGZEiGQ.js → p-CmXujxGp.js} +1 -1
  717. package/dist/webcomponents/{p-Csh7hxly.js → p-CwdQ1VdH.js} +1 -1
  718. package/dist/webcomponents/{p-BrcAwFqw.js → p-CzdAS9Jo.js} +1 -1
  719. package/dist/webcomponents/p-D0BjjvYt.js +1 -0
  720. package/dist/webcomponents/{p-C5CtnV8A.js → p-D2TJwp13.js} +1 -1
  721. package/dist/webcomponents/{p-D3V9AE6o.js → p-D50Rx76J.js} +1 -1
  722. package/dist/webcomponents/p-D5MdA21U.js +1 -0
  723. package/dist/webcomponents/p-D68EHdgA.js +1 -0
  724. package/dist/webcomponents/p-DB_pqjwH.js +1 -0
  725. package/dist/webcomponents/{p-vIYW-hye.js → p-DL0R5vDy.js} +1 -1
  726. package/dist/webcomponents/{p-DdR4lBzU.js → p-DLmWCafe.js} +1 -1
  727. package/dist/webcomponents/{p-BPpqjhPu.js → p-Da4efjxw.js} +1 -1
  728. package/dist/webcomponents/p-Df9FVwA7.js +1 -0
  729. package/dist/webcomponents/p-Dvcgmvfg.js +1 -0
  730. package/dist/webcomponents/{p-Daew0gTO.js → p-EBsfAkrP.js} +1 -1
  731. package/dist/webcomponents/{p-xvmoHDSy.js → p-J7WCmj-J.js} +1 -1
  732. package/dist/webcomponents/{p-D-cvuqv1.js → p-MLfmcsbZ.js} +1 -1
  733. package/dist/webcomponents/{p-MeSAYDNh.js → p-MkDHT9M4.js} +1 -1
  734. package/dist/webcomponents/p-N60pPiy5.js +1 -0
  735. package/dist/webcomponents/{p-2xM1wp0u.js → p-_fynNk40.js} +1 -1
  736. package/dist/webcomponents/p-a53fae42.entry.js +1 -0
  737. package/dist/webcomponents/p-a5640aa4.entry.js +1 -0
  738. package/dist/webcomponents/{p-1ddbbba8.entry.js → p-b21e5a85.entry.js} +1 -1
  739. package/dist/webcomponents/p-b2d7a9dd.entry.js +1 -0
  740. package/dist/webcomponents/p-b31c9979.entry.js +1 -0
  741. package/dist/webcomponents/p-b322d2f3.entry.js +1 -0
  742. package/dist/webcomponents/p-b596cbb3.entry.js +1 -0
  743. package/dist/webcomponents/p-b7ffdb30.entry.js +1 -0
  744. package/dist/webcomponents/p-bac16c16.entry.js +1 -0
  745. package/dist/webcomponents/p-bb4cc829.entry.js +1 -0
  746. package/dist/webcomponents/p-bbdae5b7.entry.js +1 -0
  747. package/dist/webcomponents/p-c07069f1.entry.js +1 -0
  748. package/dist/webcomponents/p-c4da12e0.entry.js +1 -0
  749. package/dist/webcomponents/p-c5be6300.entry.js +1 -0
  750. package/dist/webcomponents/p-c63b8c8f.entry.js +1 -0
  751. package/dist/webcomponents/p-d6350138.entry.js +1 -0
  752. package/dist/webcomponents/{p-f4074e9a.entry.js → p-d667138d.entry.js} +1 -1
  753. package/dist/webcomponents/p-d6c2d51d.entry.js +1 -0
  754. package/dist/webcomponents/p-def798df.entry.js +1 -0
  755. package/dist/webcomponents/p-e2650fe5.entry.js +1 -0
  756. package/dist/webcomponents/p-e4ba0754.entry.js +1 -0
  757. package/dist/webcomponents/p-e939affa.entry.js +1 -0
  758. package/dist/webcomponents/p-e9c20b52.entry.js +1 -0
  759. package/dist/webcomponents/p-ea84c544.entry.js +1 -0
  760. package/dist/webcomponents/{p-DzeWzcho.js → p-rz2BF2Sz.js} +1 -1
  761. package/dist/webcomponents/webcomponents.esm.js +1 -1
  762. package/package.json +1 -1
  763. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +0 -470
  764. package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +0 -147
  765. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +0 -24
  766. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +0 -101
  767. package/dist/collection/components/modular-checkout/sub-components/card-form.js +0 -105
  768. package/dist/collection/components/modular-checkout/sub-components/summary.js +0 -12
  769. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +0 -296
  770. package/dist/esm/internal-tokenize-payment-method_7.entry.js +0 -462
  771. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +0 -143
  772. package/dist/esm/justifi-tokenize-payment-method.entry.js +0 -22
  773. package/dist/module/internal-tokenize-payment-method.d.ts +0 -11
  774. package/dist/module/internal-tokenize-payment-method.js +0 -6
  775. package/dist/module/justifi-additional-questions-form-step.d.ts +0 -11
  776. package/dist/module/justifi-additional-questions-form-step.js +0 -6
  777. package/dist/module/justifi-additional-questions.d.ts +0 -11
  778. package/dist/module/justifi-additional-questions.js +0 -6
  779. package/dist/module/justifi-business-bank-account-form-step.d.ts +0 -11
  780. package/dist/module/justifi-business-bank-account-form-step.js +0 -6
  781. package/dist/module/justifi-business-core-info-form-step.d.ts +0 -11
  782. package/dist/module/justifi-business-core-info-form-step.js +0 -6
  783. package/dist/module/justifi-business-core-info.d.ts +0 -11
  784. package/dist/module/justifi-business-core-info.js +0 -6
  785. package/dist/module/justifi-business-owners-form-step.d.ts +0 -11
  786. package/dist/module/justifi-business-owners-form-step.js +0 -6
  787. package/dist/module/justifi-business-representative-form-inputs.d.ts +0 -11
  788. package/dist/module/justifi-business-representative-form-inputs.js +0 -6
  789. package/dist/module/justifi-business-representative-form-step.d.ts +0 -11
  790. package/dist/module/justifi-business-representative-form-step.js +0 -6
  791. package/dist/module/justifi-business-representative.d.ts +0 -11
  792. package/dist/module/justifi-business-representative.js +0 -6
  793. package/dist/module/justifi-business-terms-conditions-form-step.d.ts +0 -11
  794. package/dist/module/justifi-business-terms-conditions-form-step.js +0 -6
  795. package/dist/module/justifi-form-address-fields.d.ts +0 -11
  796. package/dist/module/justifi-form-address-fields.js +0 -6
  797. package/dist/module/justifi-identity-address-form.d.ts +0 -11
  798. package/dist/module/justifi-identity-address-form.js +0 -6
  799. package/dist/module/justifi-legal-address-form-step.d.ts +0 -11
  800. package/dist/module/justifi-legal-address-form-step.js +0 -6
  801. package/dist/module/justifi-legal-address-form.d.ts +0 -11
  802. package/dist/module/justifi-legal-address-form.js +0 -6
  803. package/dist/module/justifi-owner-form.js +0 -6
  804. package/dist/module/justifi-payment-provisioning-form-buttons.d.ts +0 -11
  805. package/dist/module/justifi-payment-provisioning-form-buttons.js +0 -6
  806. package/dist/module/justifi-payment-provisioning-form-steps.d.ts +0 -11
  807. package/dist/module/justifi-payment-provisioning-form-steps.js +0 -6
  808. package/dist/types/components/modular-checkout/sub-components/summary.d.ts +0 -3
  809. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +0 -19
  810. package/dist/webcomponents/p-03b913e8.entry.js +0 -1
  811. package/dist/webcomponents/p-12b662e3.entry.js +0 -1
  812. package/dist/webcomponents/p-19e82b02.entry.js +0 -1
  813. package/dist/webcomponents/p-19f22078.entry.js +0 -1
  814. package/dist/webcomponents/p-1fc96f35.entry.js +0 -1
  815. package/dist/webcomponents/p-2758d129.entry.js +0 -1
  816. package/dist/webcomponents/p-2V38oZhe.js +0 -1
  817. package/dist/webcomponents/p-320aac60.entry.js +0 -1
  818. package/dist/webcomponents/p-337fb232.entry.js +0 -1
  819. package/dist/webcomponents/p-3490ede8.entry.js +0 -1
  820. package/dist/webcomponents/p-3bf56699.entry.js +0 -1
  821. package/dist/webcomponents/p-3cd30c7a.entry.js +0 -1
  822. package/dist/webcomponents/p-3f9c7b04.entry.js +0 -1
  823. package/dist/webcomponents/p-426fd524.entry.js +0 -1
  824. package/dist/webcomponents/p-4ae0227a.entry.js +0 -1
  825. package/dist/webcomponents/p-50a34a13.entry.js +0 -1
  826. package/dist/webcomponents/p-5148f836.entry.js +0 -1
  827. package/dist/webcomponents/p-55605664.entry.js +0 -1
  828. package/dist/webcomponents/p-55b478bc.entry.js +0 -1
  829. package/dist/webcomponents/p-57e09f09.entry.js +0 -1
  830. package/dist/webcomponents/p-5b4dfe0e.entry.js +0 -1
  831. package/dist/webcomponents/p-5c70a772.entry.js +0 -1
  832. package/dist/webcomponents/p-60df1c18.entry.js +0 -1
  833. package/dist/webcomponents/p-6Nv8l5n8.js +0 -1
  834. package/dist/webcomponents/p-6cdea3ef.entry.js +0 -1
  835. package/dist/webcomponents/p-77d0f2e2.entry.js +0 -1
  836. package/dist/webcomponents/p-8ed651b1.entry.js +0 -1
  837. package/dist/webcomponents/p-97e27e4a.entry.js +0 -1
  838. package/dist/webcomponents/p-9ed5d349.entry.js +0 -1
  839. package/dist/webcomponents/p-BU9iZ8OM.js +0 -1
  840. package/dist/webcomponents/p-BYLHkONM.js +0 -1
  841. package/dist/webcomponents/p-C_WlV7F_.js +0 -1
  842. package/dist/webcomponents/p-DSmuL_bZ.js +0 -1
  843. package/dist/webcomponents/p-FcERM7LF.js +0 -1
  844. package/dist/webcomponents/p-a109b3a1.entry.js +0 -1
  845. package/dist/webcomponents/p-a5db7147.entry.js +0 -1
  846. package/dist/webcomponents/p-b08bca2b.entry.js +0 -1
  847. package/dist/webcomponents/p-b2c237c6.entry.js +0 -1
  848. package/dist/webcomponents/p-b2d5f105.entry.js +0 -1
  849. package/dist/webcomponents/p-b8fc6dff.entry.js +0 -1
  850. package/dist/webcomponents/p-c595d3fb.entry.js +0 -1
  851. package/dist/webcomponents/p-c9f94919.entry.js +0 -1
  852. package/dist/webcomponents/p-ca7e369f.entry.js +0 -1
  853. package/dist/webcomponents/p-cab4c787.entry.js +0 -1
  854. package/dist/webcomponents/p-cd220f6c.entry.js +0 -1
  855. package/dist/webcomponents/p-cd2c2256.entry.js +0 -1
  856. package/dist/webcomponents/p-cd7a4048.entry.js +0 -1
  857. package/dist/webcomponents/p-d5d8ccd9.entry.js +0 -1
  858. package/dist/webcomponents/p-e72d05b1.entry.js +0 -1
  859. package/dist/webcomponents/p-e9d7f988.entry.js +0 -1
  860. package/dist/webcomponents/p-f1562dab.entry.js +0 -1
  861. package/dist/webcomponents/p-f44008d9.entry.js +0 -1
  862. package/dist/webcomponents/p-f657995a.entry.js +0 -1
  863. package/dist/webcomponents/p-fa3b5072.entry.js +0 -1
  864. package/dist/webcomponents/p-fb58eb13.entry.js +0 -1
  865. package/dist/webcomponents/p-fff25a5f.entry.js +0 -1
  866. package/dist/webcomponents/p-qNXIkzDE.js +0 -1
  867. package/dist/webcomponents/p-rgpO5xc3.js +0 -1
  868. package/dist/webcomponents/p-t6eP44Li.js +0 -1
  869. /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
  870. /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
  871. /package/dist/webcomponents/{p-99065f37.entry.js → p-9399f4f1.entry.js} +0 -0
@@ -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{t as a,a8 as r}from"./p-D3V9AE6o.js";import{B as d}from"./p-o83Uy7sW.js";import{S as o}from"./p-BqNNwq6C.js";import{S as c}from"./p-C0tps2ph.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-XxcNbSyO.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-zGGZEiGQ.js";import"./p-HXpYMWUU.js";import"./p-55QcjheA.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-_BHErKTQ.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-qNXIkzDE.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:"5ec3fb458651022433067e2396d5f3382952b1d0"},this.isLoading&&s("div",{key:"a4e98abb63b4cf14606d020e79c3b24e34e8d6c8",style:{marginBottom:"8px"}},s(c,{key:"a3385bb3e16f32b0d9ca8607382d5cfab67dea30",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(c,{key:"d2f20f95cbc49195ce6e2811335b747fd58f3acb",height:"18px",styles:{marginBottom:"8px"}}),s(c,{key:"53b9006fb1fc2ba1fbff33fa2de9a8d8f2dbb5f8",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&this.isDueDatePassed()&&s("div",{key:"509d7ae4a1d3cfe229c240a9782d919281e9f7f7",part:a},s("h1",{key:"a39eb9c225269bf984870ba6c28816bda4aeeb5c",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:"97f89e8439bfd8ca4558ce4666b09766fa5f190b"},"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:"9228dc32ee4c01961a726cf0d016d4121a0bade6",part:a},s("h1",{key:"70f686c0766bc5ecbd5d18ddd62aa7b3864f79a2",class:"h4",part:r},"This payment is disputed"),s("p",{key:"464cd97ac905f33eb87b817662fd4120bcd75a5b"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"0b6120d06dee850ee65291ebc488e969de1ea988",class:"h5"},"Dispute details"),s("div",{key:"0fde10ab79aa18679727c93b823ff353f99e78b2",class:"d-table gap-2"},s("div",{key:"a12705b53c1e2483d5c7a63851c29b64b8d1a55e",class:"d-table-row gap-2"},s("span",{key:"9a04eb7b2708b89c2d3f721054797d4204984071",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"b1e31c999df1469e7d0af22c26c52138134100d7",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:"dad70076664583f12d4c5076d2d02b5f41728a56",class:"d-table-row gap-2"},s("span",{key:"08a5b3833aad625b7e37d9250eecd4eaa65ce340",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"8a5dc58561b019fa9aaa9b485182d1e45f41f0ab",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:"d843420ad58a1476ce5abadf48902387aedabe88",class:"d-table-row gap-2"},s("span",{key:"4d6bfa397e48aea37875e02ec5bd87e1b0fc016f",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Due Date"),s("span",{key:"92eb09d8e5309448792c104ffeb45d0efd75ecdb",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:"17460ccbaaa12b98a1ff4171b34e1d5f90ab408a",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"a216a14d3bab4927bb33b4f49f2db3a4aec93054",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"9c3aa14f1561ff4984e4c0da750878b7f9f7b931",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(l=this.dispute)||void 0===l?void 0:l.underReview)&&s("div",{key:"66da2ac06164f5ff587acb9dcd7621fe9fe4fd77",part:a},s("h1",{key:"3a1821dce2996b174f75da14eb5e56ca2c6b1abb",class:"h4",part:r},"This payment is disputed and under review"),s("p",{key:"3b0ea372d06ec75d2e11424d94e4afbd049a8c6a"},"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:"c57c024d4fbed71e9a34987c3a01fb047f00814b",part:a},s("h1",{key:"ce7b57efcd9094ea5327e6b326ee9b4315b60d66",class:"h4",part:r},"This payment was disputed"),s("p",{key:"78fc5f0f3104d370b87df29bc12da67d1878bf66"},"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:"90d64362f0f228799e3574367343333e8cdedf27",part:a},s("h1",{key:"24eac4bb8254f9be4472d0d74e45c2fd7e587478",class:"h4",part:r},"This payment was disputed"),s("p",{key:"60abcb3213442c77bd52d6c7e7a30a822bf673e9"},"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:"f65e8fa4aa2374eadaa94e5bb87e1dc73026c6d5"},s("justifi-dispute-response-core",{key:"3222bf2f10f8ee185d9d9e03e083dd3e1e7bef61","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:"41406d4115c2a084c84ca59895c0107af2a30e4d",class:"row gy-3"},s("div",{key:"54f86cc1ffdb90a4ec738ca6cdac8165025ede65",class:"col-12"},s("h1",{key:"28a0289b5926d7f4d04a658f13782d80aa96584a",class:"h4",part:r},"Counter dispute")),s("div",{key:"abfcc8a09326b8d780647a644dd0b6e1deada071",class:"col-12"},this.currentStepComponent),s("div",{key:"e1bfbd12d9c6c86521d1d47cd4afb007960cdf9b",class:"col-12"},s("div",{key:"3149002728d1953c116758ab48eb0a2481a68398",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{r as e,c as t,h as s,H as i}from"./p-CV0Pyo1O.js";import{I as a}from"./p-Ce_F4E0f.js";import{v as d,w as o,x as l,y as r,z as c}from"./p-D3V9AE6o.js";import{F as f}from"./p-BU9iZ8OM.js";import"./p-CZfYo5-1.js";import{C as h}from"./p-BcNb9bVO.js";import{n}from"./p-BnjCmwMr.js";import{b,c as u}from"./p-_-2E_vYf.js";const m=class{constructor(s){e(this,s),this.formControlInput=t(this,"formControlInput",7),this.formControlBlur=t(this,"formControlBlur",7),this.imask=null,this.isFocused=!1,this.inputHandler=()=>{},this.disabled=!1,this.initializeIMask=()=>{this.textInput&&(this.imask=a(this.textInput,{mask:this.mask}),this.imask.on("accept",(()=>{var e;const t=null===(e=this.imask)||void 0===e?void 0:e.unmaskedValue;void 0!==t&&this.inputHandler(this.name,t)})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=e=>{var t;const s=e.target,i=s.getAttribute("name"),a=(null===(t=this.imask)||void 0===t?void 0:t.unmaskedValue)||s.value;this.formControlInput.emit({name:i,value:a})},this.updateInput=e=>{this.imask&&e&&(this.imask.value=String(e))}}handleDefaultValueChange(e){this.initializeIMask(),this.updateInput(e)}disconnectedCallback(){var e;null===(e=this.imask)||void 0===e||e.destroy()}componentDidLoad(){this.textInput&&(this.initializeIMask(),this.updateInput(this.defaultValue))}get part(){return this.errorText?d:this.disabled?o:this.isFocused?l:r}render(){return s(i,{key:"8e8abaf2afd497cf83ef9661374606b899c0f730"},s("div",{key:"b9281582a6dc56d34e67541ecf7eda264d911f97",class:"form-group d-flex flex-column"},s("div",{key:"41816d8d12b7feca244efee7df3afae3594ac687",class:"d-flex align-items-start gap-2"},s("label",{key:"c41b28d631cccb4f21ae61763e7afbc866475cc6",part:c,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"d665eb4abc33a53389d9417fa83b8bff46af90ef",helpText:this.helpText})),s("input",{key:"fbfa6e0768f52ad5e5a92609e9cb1d8c8bd34966",ref:e=>this.textInput=e,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:"text",disabled:this.disabled}),s(f,{key:"db0b75ce2d99e1707b383c0d443416b42f4b620e",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},v=class{constructor(t){e(this,t),this.country=h.USA}render(){var e,t,a,d,o,l,r,c,f,m;const v=u[this.country],p=b[this.country];return s(i,{key:"8dabbee93e0f319db333ada6c20af49ed6131b8d"},s("div",{key:"4b308ca9fa92321e5f60f3e4d9ab1c4e60cbd703",class:"row gy-3"},s("div",{key:"9c25eec2effd7caed70a3f02f6a780513fae930c",class:"col-12"},s("form-control-text",{key:"6c2ae178c2122d1f6085906690adadf98cb0774b",name:"line1",label:"Street Address",inputHandler:this.inputHandler,defaultValue:null===(e=this.defaultValues)||void 0===e?void 0:e.line1,errorText:null===(t=this.errors)||void 0===t?void 0:t.line1,helpText:"No PO Boxes."})),s("div",{key:"eba53a69fc4c869014ef8b7bf6ff9b1d8f5be566",class:"col-12"},s("form-control-text",{key:"11c743ce2388173c41cb16f1865fe58b2015d6bb",name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null===(a=this.defaultValues)||void 0===a?void 0:a.line2,errorText:null===(d=this.errors)||void 0===d?void 0:d.line2})),s("div",{key:"2025c9bb15286f5c3e4693b596372a7dff730ce8",class:"col-12"},s("form-control-text",{key:"5e0e40fd028d12b88cb15a38906738320e30aeca",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null===(o=this.defaultValues)||void 0===o?void 0:o.city,errorText:null===(l=this.errors)||void 0===l?void 0:l.city})),s("div",{key:"407eac6eee8ca33a6648f2d1a45003961353f877",class:"col-12 col-md-6"},s("form-control-select",{key:"c598b24e0dc594ae725a7473212a6ed36102ce49",name:"state",label:v.stateLabel,options:p.stateOptions,inputHandler:this.inputHandler,defaultValue:null===(r=this.defaultValues)||void 0===r?void 0:r.state,errorText:null===(c=this.errors)||void 0===c?void 0:c.state})),s("div",{key:"49861d791272c745f881d19016b93885ce59f724",class:"col-12 col-md-6"},s("form-control-text",{key:"90b9db4630dd4fad7e86151f2a632cd62b8509f3",name:"postal_code",label:v.postalLabel,inputHandler:this.inputHandler,defaultValue:null===(f=this.defaultValues)||void 0===f?void 0:f.postal_code,errorText:null===(m=this.errors)||void 0===m?void 0:m.postal_code,maxLength:this.country===h.USA?5:7,keyDownHandler:this.country===h.USA?n:void 0}))))}},p=class{constructor(t){e(this,t),this.address={},this.inputHandler=(e,t)=>{this.address[e]=t,this.address=Object.assign({},this.address)}}handleAddressChange(e){this.handleFormUpdate(e)}render(){return s(i,{key:"1b644425472c68880a9be150d52029a64d75ea26"},s("justifi-form-address-fields",{key:"d5e95bc81c654d00a0fcac4760705bd21b3b8c8d",country:this.country,errors:this.errors,defaultValues:this.defaultValues,inputHandler:this.inputHandler}))}static get watchers(){return{address:["handleAddressChange"]}}};export{m as form_control_number_masked,v as justifi_form_address_fields,p as justifi_identity_address_form}
@@ -1 +0,0 @@
1
- import{r as e,h as t}from"./p-CV0Pyo1O.js";import{r as a}from"./p-D3V9AE6o.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const d=class{constructor(t){e(this,t)}render(){return t(o,{key:"d52547314559d20607677dd96e1d7668ea527e5a",class:"payment-method"},t("div",{key:"5d9fdf8edfe809299d5cf0d6636c7aa34853827c",class:"radio-list-item p-3",part:a,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"2519b4a0e1e38ae5ac9d9d8910ad9228282a09e7",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{d as payment_method_option}
@@ -1 +0,0 @@
1
- import{h as e,r as a,H as i}from"./p-CV0Pyo1O.js";import{S as t}from"./p-C0tps2ph.js";import{w as s,c}from"./p-DVJaoI_m.js";import{b as r}from"./p-MeSAYDNh.js";import"./p-D3V9AE6o.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{r as e,h as t}from"./p-CV0Pyo1O.js";import{B as a}from"./p-o83Uy7sW.js";import{a5 as s,a6 as r}from"./p-D3V9AE6o.js";const d=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=d(e)}show(){this.menu.classList.add("show")}hide(){this.menu.classList.remove("show")}componentWillLoad(){this.showClearButton=d(this.params)}render(){return t("div",{key:"73f921b9b5ecd46b708103088c1e21cdaf6d22cd",class:"d-flex gap-2"},t("div",{key:"8afb347ce7cea4cb2a030b066a9ec754606d4cd0",class:"dropdown pb-3"},t("button",{key:"d6c2f951ed13929359564e5417e4bbebf4557fc7",type:"button dropdown-toggle",ref:e=>this.anchorButton=e,class:"btn btn-primary dropdown-toggle",part:s,"data-test-id":"open-filters-button","data-bs-toggle":"dropdown"},"Filters"),t("custom-popper",{key:"d2b3e83bf6151270cad7a58e518904b17b09047f",offset:[20,10],strategy:"fixed",anchorRef:this.anchorButton,trigger:"click"},t("form",{key:"4750d1ac1485fddf3334afe6bbd70a8dcdb79a4b",class:"dropdown-menu",part:r,"data-test-id":"filter-menu",ref:e=>this.menu=e,onSubmit:e=>e.preventDefault()},t("slot",{key:"a990cee903c302a1b99f6ba65995f267dc7636c1"})))),t("div",{key:"8d854bba9dca17b875fb63cc28ce4f0efc26bf03"},t(a,{key:"529212aadf246ba9164eed8ad7dc1b6ebddcb867",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-_BHErKTQ.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-zGGZEiGQ.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-2xM1wp0u.js";import{t as _,B as g}from"./p-D3V9AE6o.js";import{S as k}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as w}from"./p-C0tps2ph.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-qNXIkzDE.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%"}))),H=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",_),s=>v(s,"p","part",_)])}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:_,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:g},"Please select an option"),s("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{H as justifi_season_interruption_insurance}
@@ -1 +0,0 @@
1
- import{h as s,r as i,c as t}from"./p-CV0Pyo1O.js";import{c as e,F as r}from"./p-CKiAlBsU.js";import{b as o,a,c as h}from"./p-BovgIz83.js";import{i as n,a as p,b as l,c as m}from"./p-D8EGHc_m.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as c,a as d}from"./p-Cjcsf8ku.js";import"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import{C as j,B as u,b as f}from"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{c as v,J as b}from"./p-zGGZEiGQ.js";import{B as w}from"./p-o83Uy7sW.js";import{S as g}from"./p-BqNNwq6C.js";import{H as C}from"./p-t6eP44Li.js";import"./p-CZfYo5-1.js";import{S as y}from"./p-C0tps2ph.js";import{B}from"./p-XYgDHrVL.js";import{m as _,b as D}from"./p-R0FDNhyd.js";import{B as E}from"./p--UanYWb-.js";import"./p-BFTU3MAI.js";import"./p-HT_4DkD0.js";import"./p-_-2E_vYf.js";import"./p-Bt4GjEWL.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-qNXIkzDE.js";import"./p-55QcjheA.js";import"./p-D3V9AE6o.js";import"./p-D2muobcE.js";const k=e(Object.assign(Object.assign({},o().fields),{legal_address:p(),additional_questions:a(),representative:n("representative")}));e(Object.assign(Object.assign({},h().fields),{legal_address:m(),additional_questions:a(),representative:l("representative")}));const O=k,x=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(y,{width:"25%"})),s("div",{class:"col-12"},s(y,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"50%"}),s(y,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"65%"}),s(y,{width:"35%"}))),H=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(y,{width:"40%",height:"40px"})),s(x,null),s(x,null),s(x,null)),S=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event",7),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.isLoading=!1,this.isSaving=!1,this.country=j.USA,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new u(s);this.country=i.country_of_establishment,this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new u(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){v(),this.analytics=new b(this),this.formController=new r(O),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=_({authToken:this.authToken,businessId:this.businessId,service:new E}),this.patchBusiness=D({authToken:this.authToken,businessId:this.businessId,service:new E}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:d.MISSING_PROPS,severity:c.ERROR})}handleReponse(s){s.error&&(this.errorMessage=f.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(g,null,this.isLoading?s(H,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(C,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController,country:this.country})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(w,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:B.submit}),isLoading:this.isSaving},"Submit")))))}};export{S as justifi_business_form}
@@ -1 +0,0 @@
1
- import{A as o}from"./p-55QcjheA.js";import{C as r}from"./p-Cjcsf8ku.js";import{S as s}from"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{g as t,a as c}from"./p-D2muobcE.js";const n=o();class a{async fetchSubAccounts(o,r,s){return n.get({authToken:r,endpoint:"sub_accounts",params:s,headers:{Account:o}})}}const p=({primaryAccountId:o,authToken:n,service:a})=>async({params:p,onSuccess:e,onError:i})=>{var u,m;try{const j=await a.fetchSubAccounts(o,n,p);if(j.error){return i({error:c(j.error),code:t(null===(m=j.error)||void 0===m?void 0:m.code),severity:r.ERROR})}{const o=Object.assign({},j.page_info);e({subAccounts:(null===(u=j.data)||void 0===u?void 0:u.map((o=>new s(o))))||[],pagingInfo:o})}}catch(o){const s=t(null==o?void 0:o.code);return i({error:o.message||o,code:s,severity:r.ERROR})}};export{a as S,p as m}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as o,H as i}from"./p-CV0Pyo1O.js";import{C as s}from"./p-ZpPDShvP.js";import{r as a}from"./p-D3V9AE6o.js";import"./p-HXpYMWUU.js";const r=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,r;return o(i,{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:`${s[null===(e=this.paymentMethodOption)||void 0===e?void 0:e.brand]||""} *${null===(r=this.paymentMethodOption)||void 0===r?void 0:r.acct_last_four}`})))}};export{r as justifi_saved_payment_method}
@@ -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-_BHErKTQ.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-zGGZEiGQ.js";import{g as p,a as d}from"./p-D2muobcE.js";import{P as l}from"./p-2V38oZhe.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 v,i as k,j as g,k as D}from"./p-Csh7hxly.js";import{S as C}from"./p-BqNNwq6C.js";import{T as P}from"./p-CZfYo5-1.js";import{a as I}from"./p-MeSAYDNh.js";import{q as S,u as q}from"./p-D3V9AE6o.js";import"./p-D8GTwl9v.js";import"./p-qNXIkzDE.js";import"./p-55QcjheA.js";import"./p-BYLHkONM.js";const E={id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:S,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:S,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:S,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:S,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:S,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},O={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},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)},O[e.txn_type]),created_at:e=>t("td",{part:q(e.created_at)},t("div",{class:"fw-bold"},I(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:q(e.available_on)},t("div",{class:"fw-bold"},I(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:q(e.updated_at)},t("div",{class:"fw-bold"},I(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.updated_at,{showTime:!0})))},N=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,E,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:"5720eed99cb9b95399c46e2472b02a70c1fa775a"},t(u,{key:"8b24888a5220944ab6be99421246e903ad9de6d9"},t(m,{key:"cb18148644180e357c8aca3eb5b4fc966ea2d9d5"},t(b,{key:"e8fb0fceb3471ed1d96e3bf26c76664fc0992c98"},t(y,{key:"dee86ce853830c030a5a60e2d4d6ef9f8d5d8246"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"d0621d65657ffdc545a10191b0debee1d1784d08"},t(w,{key:"d4d096bc66340ca51e4d8fe4e4a59c510f6d8b51",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(j,{key:"9262dcbbe2d7a43e04b241af7ca826531ee629eb",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(T,{key:"93eb78fda887c0e893bc5e5042675c9e5606c8ff",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(v,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(k,{key:"91b3c39985b8612ba62e6453f31e1ba1a05a842a"},t(g,{key:"c37b899c8c3f5c944f4d75e5c633284aae5b8f57"},t(D,{key:"51730c9cb9d7affb7fcd5199a499183b5ad6aec7",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"e338f5882afb1a71a8095f48fff5a599286a6994",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{N as justifi_payout_transactions_list}
@@ -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{f as d,p as s,c as l}from"./p-Dm07nLGs.js";import{f as i,a as c}from"./p-D3V9AE6o.js";import{S as r}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as o,a as f}from"./p-MeSAYDNh.js";import"./p-BFTU3MAI.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const n=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{d[e]=a},this.handleDateInput=(e,a)=>{const t=o(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,payment_mode:this.paymentMode,checkout_id:this.checkoutId,account_holder:this.accountHolder,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}get paymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:"ecom"},{label:"ACH",value:"ach"},{label:"Card Present",value:"card_present"}]}render(){const e=Object.assign({},d);return a(r,{key:"c23d82157dd765b66fe543532c6c7e3ff5a08581"},a("table-filters-menu",{key:"fe825b9df2a60075e7cf8367368dc6973b74e27a",params:e,clearParams:l,part:i},a("div",{key:"dd0f17dac9f087b1333432c6bbe75acd2b9b7904",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"5e2581a9cd6f3ee954a6c786d068ca257d12a980",class:"p-2"},a("form-control-text",{key:"2a5a4f455bc13835837c70a59665d05c3757f106",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||d.payment_id,disabled:!!this.paymentId,part:c})),a("div",{key:"b012b5f98e868b3a59f579d7a69c5cc97e83fb3d",class:"p-2"},a("form-control-text",{key:"2548924366d327f5601b3aa828bbfe1afd7e0e56",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||d.terminal_id,disabled:!!this.terminalId,part:c})),a("div",{key:"b83cadc6092c8399cdb7f8f4f377c20bd792bfff",class:"p-2"},a("form-control-select",{key:"8274570ad09cd5d74a73f5f527d4ea4885ac0790",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||d.payment_status||"",disabled:!!this.paymentStatus,part:c})),a("div",{key:"d9310627522415ab816c10052a46768b8d54b274",class:"p-2"},a("form-control-select",{key:"2f4f5d0ea8a2b463036f954aead00d242078c901",name:"payment_mode",label:"Payment Mode",options:this.paymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||d.payment_mode||"",disabled:!!this.paymentMode,part:c})),a("div",{key:"d604adc74f83ff5d2f9d9976ca12aa955b267d92",class:"p-2"},a("form-control-text",{key:"9999c62ae3f576a662c40f0d35937ac8b7b3daa0",name:"checkout_id",label:"Checkout ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.checkoutId||d.checkout_id,disabled:!!this.checkoutId,part:c})),a("div",{key:"ddc4d4b39c1cb223f862d4340d54c887ba1547f3",class:"p-2"},a("form-control-text",{key:"62c1d665ec01bdafbb591ede396826dfa3fd7ae1",name:"account_holder",label:"Account Holder",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.accountHolder||d.account_holder,disabled:!!this.accountHolder,part:c})),a("div",{key:"8d2dae722e41ef80d71c039c75898c4ebf1a5399",class:"p-2"},a("form-control-date",{key:"9474a5d13ccbdd6361958abbe1dcc4565db49089",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:f(this.createdAfter,{showInputDateTime:!0})||f(d.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:c})),a("div",{key:"27338b915e79abd1966ed0953e8c5ee56a2d54c4",class:"p-2"},a("form-control-date",{key:"21d865141256cb25d83c3de4d1623b3db8a1f27a",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:f(this.createdBefore,{showInputDateTime:!0})||f(d.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:c})))))}};export{n as justifi_payments_list_filters}
@@ -1 +0,0 @@
1
- import{r as s,c as i,h as t}from"./p-CV0Pyo1O.js";import{E as r}from"./p-COZ-9O53.js";import{B as o}from"./p--UanYWb-.js";import{m as p}from"./p-CMqX6btO.js";import{C as e,a as m}from"./p-Cjcsf8ku.js";import{c as h,J as n}from"./p-zGGZEiGQ.js";import"./p-D3V9AE6o.js";import"./p-55QcjheA.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-HXpYMWUU.js";import"./p-_BHErKTQ.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-D2muobcE.js";import"./p-qNXIkzDE.js";const a=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new n(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:m.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR});this.getBusiness=p({id:this.businessId,authToken:this.authToken,service:new o})}render(){return this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness,"onError-event":this.handleErrorEvent})}};export{a as justifi_business_details}
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as s,a as i}from"./p-Cjcsf8ku.js";import{h as r}from"./p-_BHErKTQ.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{c as o,J as c}from"./p-zGGZEiGQ.js";import{g as p,a as h}from"./p-D2muobcE.js";import{P as d}from"./p-DdR4lBzU.js";import{T as f,l,a as u,b as m,c as y,d as b,e as _,f as g,g as j,h as k,i as T,j as w,k as v}from"./p-Csh7hxly.js";import{S as C}from"./p-BqNNwq6C.js";import{T as D}from"./p-CZfYo5-1.js";import{a as F}from"./p-MeSAYDNh.js";import{q as R,u as S}from"./p-D3V9AE6o.js";import"./p-D8GTwl9v.js";import"./p-qNXIkzDE.js";import"./p-55QcjheA.js";import"./p-BYLHkONM.js";const E={created_at:()=>t("th",{part:R,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:R,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:R,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:R,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:R,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:R,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:R,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:R,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:R,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:R,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:R,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},P={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",platform_fee:"Platform Fee",platform_fee_return:"Platform Fee Return",processing_fee:"Processing Fee",processing_fee_return:"Processing Fee Return",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},I={created_at:(e,a)=>t("td",{part:S(a)},t("div",{class:"fw-bold"},F(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},F(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:S(a)},P[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:S(a)},e.id),amount:(e,a)=>t("td",{part:S(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:S(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:S(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:S(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:S(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:S(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:S(a)},e.source_id),source_type:(e,a)=>t("td",{part:S(a)},e.source_type)},q=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=n,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,E,I),o(),this.analytics=new c(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:i,onSuccess:n,onError:o,final:c})=>{var d;try{const c=await a.fetchPaymentTransactions(t,e,i);c.error?o({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:s.ERROR}):n({balanceTransactions:c.data.map((t=>new r(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=p(null==t?void 0:t.code);o({error:h(t),code:e,severity:s.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new d})({params:this.pagingParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(i.MISSING_PROPS,this.errorMessage,s.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return t(C,{key:"1d5d3794d15cce7b1c68cffc4f40afc22e4c5fd9"},t(l,{key:"26d9221971caea9439368b54ceae361c270f2ef7"},t(u,{key:"82e7f2a431ea4ba39fd1d1ea42acf4a538c5cc8e"},t(m,{key:"a24df861980ddc933aafa3547ece4fbb3fee105d"},t(y,{key:"7f68e8247225c0fd65b84b8654ab8235905ac1d3"},this.transactionsTable.columnData.map((t=>t)))),t(b,{key:"731ca899b5f99267e7b89ff6c70e5d261712479b"},t(_,{key:"93a70a44b84d8e84c14524047d4195dd806ce6f5",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(g,{key:"004aa19b82b4cf23d598332cda26668d6365977e",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"7bfe7435981ef111334e10c34d92cf4a9c169416",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(k,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(T,{key:"054f18c77bde619212b8e66bcb4c94931ba278b4"},t(w,{key:"86ae9230a85986d6183ff17833b90ebde136f7ec"},t(v,{key:"437db60f446879f12bb76a7641ce15aa17053e1b",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"f42fb11d7ffcc52e8d7d8ac7e2b5c210444fa765",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{q as justifi_payment_transactions_list}
@@ -1 +0,0 @@
1
- import{h as r}from"./p-CV0Pyo1O.js";import{B as t}from"./p-D3V9AE6o.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{h as s}from"./p-CV0Pyo1O.js";import{p as o}from"./p-D3V9AE6o.js";const r=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:o},s("span",{class:"visually-hidden"},"Loading...")));export{r as S}
@@ -1 +0,0 @@
1
- import{h as s}from"./p-CV0Pyo1O.js";import{S as l}from"./p-C0tps2ph.js";import"./p-CZfYo5-1.js";const i=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(l,{width:"25%"})),s("div",{class:"col-12"},s(l,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(l,{width:"50%"}),s(l,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(l,{width:"65%"}),s(l,{width:"35%"}))),d=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(l,{width:"40%",height:"40px"})),s(i,null),s(i,null),s(i,null));export{d as P}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-CV0Pyo1O.js";import{t as o}from"./p-D3V9AE6o.js";const e=e=>{const{helpText:r,name:m}=e;return r?t("small",{class:"form-text text-muted",id:`form-help-text-${m}`,part:o},r):null};export{e as F}
@@ -1 +0,0 @@
1
- import{h as o}from"./p-CV0Pyo1O.js";import{C as r}from"./p-D3V9AE6o.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -1 +0,0 @@
1
- import{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-zGGZEiGQ.js";import{d as a}from"./p-D-cvuqv1.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as n,a as p}from"./p-Cjcsf8ku.js";import{j as c}from"./p-_BHErKTQ.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-qNXIkzDE.js";import"./p-D3V9AE6o.js";import"./p-MeSAYDNh.js";import"./p-BPpqjhPu.js";import"./p-D8GTwl9v.js";const l=d();class u{async fetchTerminalOrders(r,s,t){return l.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const j=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 p,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===(p=a.data)||void 0===p?void 0:p.map((r=>new c(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 u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"4e2bbec59afc1541991ffa285010a144e134fa96"},t("terminal-orders-list-core",{key:"5437117ec45fd7bf3ed81c0d373e5a50edd5b3cd",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{j as justifi_terminal_orders_list}
@@ -1 +0,0 @@
1
- import{r as s,c as i,h as t}from"./p-CV0Pyo1O.js";import{c as o,J as e}from"./p-zGGZEiGQ.js";import{C as r,a as n}from"./p-Cjcsf8ku.js";import{m as p,a}from"./p-R0FDNhyd.js";import{B as h}from"./p--UanYWb-.js";import{A as m}from"./p-55QcjheA.js";import"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{i as c}from"./p-MeSAYDNh.js";import"./p-qNXIkzDE.js";import"./p-D2muobcE.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const u=m();class d{async postProvisioning(s,i,t){return u.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const j=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?c(this.authToken)?this.errorEvent.emit({message:"auth-token is expired",errorCode:n.NOT_AUTHENTICATED,severity:r.ERROR}):(this.getBusiness=p({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"8df2a722a6c7150950cbc0a2d923bb1a107170ee",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{j as justifi_payment_provisioning}
@@ -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{f as s,p as r,c as l}from"./p-BPTtWj7E.js";import{f as d,a as i}from"./p-D3V9AE6o.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import{c,a as p}from"./p-MeSAYDNh.js";import"./p-Cjcsf8ku.js";import{T as f,c as m}from"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-BFTU3MAI.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const b=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=c(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore,company_name:this.companyName}).forEach((([e,a])=>{a&&(r[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:f.created},{label:"Completed",value:f.completed},{label:"Submitted",value:f.submitted},{label:"In Progress",value:f.in_progress},{label:"On Hold",value:f.on_hold},{label:"Canceled",value:f.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:m.boardingOnly},{label:"Boarding Shipping",value:m.boardingShipping}]}render(){const e=Object.assign({},s);return a(o,{key:"7159c35aaf59635ec803fdfa8383817b50336a5d"},a("table-filters-menu",{key:"864c07364558f1a6bb5b8cfd4ccee1f085c00d5e",params:e,clearParams:l,part:d},a("div",{key:"c64f2a25818f2371d61451957daa3fd0af55e471",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"6809faa0d674e8f27bf3f426d07b1b3941d21544",class:"p-2"},a("form-control-select",{key:"50cab5765526405a4d2270400010961474f8059c",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||s.order_status||"",disabled:!!this.orderStatus,part:i})),a("div",{key:"e37bd6e54c5067ac6cf0d39ff258fb28eee3f582",class:"p-2"},a("form-control-select",{key:"ad3d829ef5c1c4e91e2eeaa45a34e54d1bb96473",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||s.order_type||"",disabled:!!this.orderType,part:i})),a("div",{key:"bf26251fa2b4fffa9f33371e326fb05ceb214683",class:"p-2"},a("form-control-date",{key:"282bb83c3e86fc9f98e9bc87579f2e742b2acbe4",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:p(this.createdAfter,{showInputDateTime:!0})||p(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:i})),a("div",{key:"71ca8988d5093967310a2f7d93e4c81d96cbeeb4",class:"p-2"},a("form-control-date",{key:"dc4cc17eb30d59e7ecdee0ddfc34f19d49a1edc5",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:p(this.createdBefore,{showInputDateTime:!0})||p(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:i})),a("div",{key:"ca3d55cc2edabd65f42774bb64e26d840878c265",class:"p-2"},a("form-control-text",{key:"ccd777ad6fa3ac8af792e56507d938d5b1684d86",name:"company_name",label:"Company Name",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.companyName||s.company_name,disabled:!!this.companyName,part:i})))))}};export{b as justifi_terminal_orders_list_filters}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import{T as i,a,b as r,c,d as h,e as o,f as n,g as p,h as d,i as b,j as f,k as m,l as u}from"./p-Csh7hxly.js";import{T as j}from"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-_BHErKTQ.js";import{p as l}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{t as g,a as y}from"./p-D-cvuqv1.js";import{o as k,g as O}from"./p-BPTtWj7E.js";import"./p-D3V9AE6o.js";import"./p-BYLHkONM.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-BPpqjhPu.js";const C=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.terminalOrders=[],this.loading=!0,this.paging=l,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new i(this.terminalOrders,this.columns,g,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=O();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(u,{key:"5ed13f6d5182b8c0b4306dfdcf1848c0c7a0daad"},e(a,{key:"dc26aa0f638d9bbe6fc7cd610b99165c60e0db6b"},e(r,{key:"f811f2d0e7d30dcd2b9a87e0d3a2382cb32c37fc"},e(c,{key:"52aae5b8d3cb27e9803c1a80f90c78ee212354ca"},this.terminalOrdersTable.columnData.map((t=>t)))),e(h,{key:"f648b8c5c047cb50dfdac27ec8038da24ac4a661"},e(o,{key:"8fc30bba3f83418c470f53b647e3476518c330c4",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"12cf0cfe75ccb382b10b30f338d7c3ec0365bec8",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(p,{key:"9fc6b5c58b7cfb7371e060497f69896e886c14d1",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(b,{key:"99b405dfc9d5781611d924d9bcc50ca9c39e1cad"},e(f,{key:"7e8c19b85ef6f7f097e30cdae9cf82329a576d10"},e(m,{key:"5b1ab65c79560ecf66b0f50177b9f88fa6346b66",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"97491bdd1b6cf81597e35bb4c17bd99eb685928c",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{C as terminal_orders_list_core}
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as r}from"./p-CV0Pyo1O.js";import{A as o}from"./p-55QcjheA.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-_BHErKTQ.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{E as p}from"./p-COZ-9O53.js";import{c as h,J as c}from"./p-zGGZEiGQ.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-HXpYMWUU.js";import"./p-D3V9AE6o.js";import"./p-qNXIkzDE.js";const m=o();class u{async fetchGrossVolumeChartData(s,t){return m.get({endpoint:`account/${s}/reports/gross_volume`,authToken:t})}}const d=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var p;try{const h=await r.fetchGrossVolumeChartData(s,t);h.error?e({error:n(h.error),code:a(null===(p=h.error)||void 0===p?void 0:p.code),severity:i.ERROR}):o(h.data)}catch(s){const t=a(null==s?void 0:s.code);e({error:n(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_gross_payment_chart}
@@ -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 c,u as h,v as d,w as u,I as p,m as y,n as m,o as v}from"./p-_BHErKTQ.js";import{S as M}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as g}from"./p-C0tps2ph.js";import{c as f,o as b,g as w,a as k,b as j}from"./p-Daew0gTO.js";import{t as T,r as A}from"./p-D3V9AE6o.js";import{f as N}from"./p-MeSAYDNh.js";import{w as P,c as E}from"./p-DVJaoI_m.js";import{H as I}from"./p-t6eP44Li.js";import{H as C,b as D,h as x,i as L}from"./p-2xM1wp0u.js";import{H as O}from"./p-FcERM7LF.js";import{J as S,c as z}from"./p-zGGZEiGQ.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 Y,a as B}from"./p-D2muobcE.js";import{C as Q}from"./p-rgpO5xc3.js";import{P as F}from"./p-DzeWzcho.js";import{P as V,a as G,b as H}from"./p-DkoufM1t.js";import{C as Z}from"./p-ZpPDShvP.js";import"./p-D8GTwl9v.js";import"./p-qNXIkzDE.js";var W;!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"}(W||(W={}));class q{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.hostname,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:W.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:W.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:W.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:c.STATUS_SUCCESS}),t({success:!0,token:o.token,paymentMethodId:l.data.id})):(console.error("PSP reported payment failure:",l.data),this.currentSession.completePayment({status:c.STATUS_FAILURE}),e({success:!1,error:{code:W.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:c.STATUS_FAILURE}),e({success:!1,error:{code:W.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:c.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:W.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:W.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(g,{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 h.WHITE:t+=" apple-pay-button-white";break;case h.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=h.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)===W.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 q,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(M,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(M,{key:"74b2a1ebf22f1f7e7cb0cfbbbba8a3f8cd528a6b"},t("section",{key:"6ea0bd41680b937c0ff88aa0f73c1ac4bccee9b9"},t("div",{key:"6ca013f92dbaf076bda9a65c98acdf5c8192b22a"},t("div",{key:"62f166bdc0b47e8cda03ee4d549736aaf336727e",part:T},null==f?void 0:f.paymentDescription),t("div",{key:"c681ecba3bbceac71993833f8861393dc5751b4c"},t("span",{key:"46eaedc091f44c2d3bad94cb6a05098385be8ebc",part:T},"Total")," ",t("span",{key:"ad70de1a38c2c7625562cee3a745a6a61235f4cf",part:T},N(+(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(g,{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=E.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:I,h2:C,h3:O},this.level="h1"}render(){return t(M,{key:"c1e23a5b492761bc527abc1bd59145dcd40b429f"},t(this.levels[this.level],{key:"f7865a78f1671fdc7844805ef241188b5855afbf",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:B(a.error),code:Y(null===(o=a.error)||void 0===o?void 0:o.code),severity:R.ERROR});s({checkout:a.data})}catch(t){const e=Y(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:B(r.error),code:Y(null===(a=r.error)||void 0===a?void 0:a.code),severity:R.ERROR});n({checkout:r.data})}catch(t){const e=Y(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 S(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 G(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,c=(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(c&&!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 h;if(h={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 H.ECOM;case V.SEZZLE:return H.BNPL;case V.APPLE_PAY:return H.APPLE_PAY;case V.GOOGLE_PAY:return H.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:h,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:"dc4f1c1a2e9cc32100415e732817d4aaec063d89"})}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(M,{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(M,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:A,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(M,{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"},N(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{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{j as s,e as i,d}from"./p-MeSAYDNh.js";import{a as c,b as o,D as r,c as l,C as h,E as f}from"./p-COZ-9O53.js";import{B as b}from"./p-o83Uy7sW.js";import{S as n}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{M as p}from"./p-BXT1uJVr.js";import{S as u}from"./p-C0tps2ph.js";import{a as y,B as v}from"./p-BPpqjhPu.js";import"./p-HXpYMWUU.js";import"./p-D3V9AE6o.js";const m=()=>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%"}))),k=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),this.enableRecordClick=!1,this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})},this.handleRecordClick=e=>{this.recordClickEvent.emit({id:e,type:"account"})}}componentWillLoad(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}formatMethod(e){return"ach"===e?"ACH":s(e)}render(){var t;return e(n,{key:"d335394cbcbf7159e13b44c488719de949b166dc"},this.loading&&e(m,{key:"7c72354aad37f4cce64d036ce05a0957803ea6b5"}),!this.loading&&this.errorMessage&&f(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"8ba9a6f04d4a91b9e99d226f8c81f64773433f01",errorMessage:this.errorMessage},e(c,{key:"e96e1c53a9efc0907895388b1bcae92e04aacd49",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},p(null===(t=this.payout)||void 0===t?void 0:t.status),e(y,"expedited"===this.payout.settlement_priority?{variant:v.WARNING,title:"Expedited",text:"Expedited"}:{variant:v.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(o,{key:"1bb438ad0a8b0ff564752e0661a1b49d8ac77ca8",classes:"border-1 border-end",title:"Updated At",value:`${i(this.payout.updated_at)} ${d(this.payout.updated_at)}`}),e(o,{key:"d00a9debc99172b289e7152ae06b3827c2b36855",classes:"border-1 border-end",title:"Created At",value:`${i(this.payout.created_at)} ${d(this.payout.created_at)}`}),e(o,{key:"78417a3170bc3115188be6268fa5a3126b751e7f",title:"ID",value:this.payout.id}),e("div",{key:"e38d3da9d335078c95e8c58a4125478f4ba2fb6e",class:"m-4"},e(b,{key:"5c229f88885389be98cade9abdd8a0c60d78f94a",variant:"outline-secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"9b195abd5d28bff4196d80c543eee9c9304e96b6",slot:"detail-sections"},e(r,{key:"c64ad00954c81a00de12b9c6da9737b1692e3d2c",sectionTitle:"Details"}),e("div",{key:"6caa6a55a2ce061959df55eb8a2c1fe379028289",class:"d-flex flex-column gap-2 w-100"},e(l,{key:"ba4d06bb2b68aa22d683511602f6d12d5dd4d507",title:"Date paid",value:i(this.payout.deposits_at)}),e(l,{key:"f7ee0717c7395c5effa81464b1becf616c61a02b",title:"Statement Description",value:this.payout.description}),e(l,{key:"1c142e531e9cf8e16f4dc67114060d2f2cce0b0c",title:"Payout Method",value:this.formatMethod(this.payout.delivery_method)}),e(l,{key:"f0d78701957991cb2efefc24b3a162b736be490d",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(l,{key:"a75896cf9a33c9bbf8f13c1774a6db829d0f5f7f",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(r,{key:"22cd3beaaa38900b86ac810dd08c1a61f8593f75",sectionTitle:"Account"}),e("div",{key:"f6980d28e7c9ef4339b86baaa9849658e39ed286",class:"d-flex flex-column gap-2 w-100"},e(l,{key:"ae7bc36f7839496d26a44e1a78a9ce3df7fc4f19",title:"ID",value:this.payout.account_id,onClick:this.enableRecordClick?()=>this.handleRecordClick(this.payout.account_id):void 0}),e(l,{key:"ebed350562e7a6dc16f8d883645854c27f734c6b",title:"Account Type",value:this.payout.bank_account.account_type}),e(l,{key:"51d885752922ca9fdc76905f1ea58ecfc245f036",title:"Institution",value:this.payout.bank_account.account_type}),e(l,{key:"26da2532c8b1b5e8e2495d9522c2da937b917baa",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(l,{key:"d485027365ddc9f28833b659f583c9a66c2b532a",title:"Account Number",value:`**** ${this.payout.bank_account.account_number_last4}`})),this.payout.metadata&&[e(r,{key:"e34be3a7a4f2e43d677747429cbbe746424db7ae",sectionTitle:"Metadata"}),e("div",{key:"b1c6324d0eefcde79e2281a311ae58df5391636f",class:"d-table gap-2 w-100"},e(h,{key:"539d31351ea9dd4af7ac973ca79fa572f4194613",metadata:this.payout.metadata}))])))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{k as payout_details_core}
@@ -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-_BHErKTQ.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as f,i as m,j as u,k as b,l as g}from"./p-Csh7hxly.js";import{T as y}from"./p-CZfYo5-1.js";import{t as l,a as j}from"./p-vIYW-hye.js";import{o as k,g as C}from"./p-Dw63wyhO.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-D3V9AE6o.js";import"./p-BYLHkONM.js";import"./p-BPpqjhPu.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:y.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,l,j),this.getTerminals&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.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.terminals=this.terminals.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 terminalParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"babe023df8ec976de3e284e80d8e0ec0b2c19b79"},e(r,{key:"d2d5f53cc2d743917ec8fd15f0f69efe75727501"},e(h,{key:"1a078b11b484d4e6ebfc3ccc5aefc69f99faae79"},e(o,{key:"8776607ed0d4c15010132a7f27966213ea816092"},this.terminalsTable.columnData.map((t=>t)))),e(c,{key:"61905ac71df9b3d268a77771b382b928ed5aa01a"},e(n,{key:"7929fa99216050360f2b36fcd2ec06dec6da0e3a",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"8bac75644df059915e3852ef472e8e4edd687026",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"34968591017d975c8d13a9cf532f378e52e11d55",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.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(m,{key:"641649961418c64af80a4ab3e63bbbee2fb71076"},e(u,{key:"a2355762274b2ce15217ff86cac3e2ddecf7569d"},e(b,{key:"f5d8fd0878a3bdc9e93b1e2f08654f51c8bbba2f",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"64e85e2ffc0280af6caf521fed496cc41df0a8b3",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as terminals_list_core}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as o}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{C as e}from"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as c,a}from"./p-D2muobcE.js";import{c as n,J as p}from"./p-zGGZEiGQ.js";import{C as h}from"./p-rgpO5xc3.js";import{m as u,S as m}from"./p-6Nv8l5n8.js";import{S as d}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-C5CtnV8A.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-qNXIkzDE.js";import"./p-55QcjheA.js";import"./p-BPpqjhPu.js";import"./p-D3V9AE6o.js";const l=class{constructor(o){t(this,o),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.columns=j,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){n(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){const t=this.subAccountId||this.accountId;t&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:o})=>async({params:r,onSuccess:n,onError:p})=>{var h,u;try{const m=await o.fetchCheckouts(t,s,r);if(m.error)return p({error:a(m.error),code:c(null===(u=m.error)||void 0===u?void 0:u.code),severity:i.ERROR});{const t=Object.assign({},m.page_info);n({checkouts:(null===(h=m.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:i.ERROR})}})({accountId:t,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID/Sub Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({primaryAccountId:this.accountId,authToken:this.authToken,service:new m}))}render(){return o(d,{key:"4a6f911872310fdcb2600a6833eef5d7001033d6"},o("checkouts-list-core",{key:"d30b728b7ca2e6b1b26483f9a0c91b2afe7ea194",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],subAccountId:["propChanged"]}}};export{l as justifi_checkouts_list}
@@ -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-zGGZEiGQ.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-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{c as u}from"./p-Daew0gTO.js";import{P as b}from"./p-DkoufM1t.js";import{S as f}from"./p-C0tps2ph.js";import{b as m}from"./p-MeSAYDNh.js";import{B as p}from"./p-o83Uy7sW.js";import{r as y}from"./p-D3V9AE6o.js";import"./p-qNXIkzDE.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})))}},k={[b.NEW_BANK_ACCOUNT]:"New bank account",[b.NEW_CARD]:"New credit or debit card"},g="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,u.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:g}};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||u.authToken,account:this.accountId||u.accountId,paymentMethodMetadata:this.buildPaymentMethodMetadata(t)};return await this.paymentMethodFormRef.tokenize(e)}catch(t){return t}}validateRequiredProps(){this.authToken||u.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||u.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=b.NEW_BANK_ACCOUNT,u.selectedPaymentMethod={type:b.NEW_BANK_ACCOUNT}):(this.selectedPaymentMethod=b.NEW_CARD,u.selectedPaymentMethod={type:b.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(b.NEW_CARD),this.disableBankAccount||t.push(b.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",g);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||u.paymentMethodGroupId}get shouldSavePaymentMethod(){return!(!this.paymentMethodGroupId&&!u.savePaymentMethod)}get shouldHideRadioInput(){return this.disableCreditCard||this.disableBankAccount}renderPaymentMethodOption(t){const e=this.selectedPaymentMethod===t&&void 0===u.selectedPaymentMethod.id;return i("div",{class:"payment-method"},i("justifi-radio-list-item",{name:"paymentMethodType",value:t,checked:e,label:k[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===b.NEW_CARD?"justifi-card-form":"justifi-bank-account-form",{ref:t=>this.paymentMethodFormRef=t})}render(){return i(r,{key:"86d79320ea44f9e791ab91739075d160769743fb"},i("form",{key:"d8b62d8d0442085822a51eeaef816809e2bd1f05"},i("fieldset",{key:"c792bba0b82c19f05ce551b95157479d407113e2"},i("div",{key:"57e93910091e25344a371ac081aa657c683049b4",class:"row gy-3"},i("div",{key:"bc63e26c74b247ec4d5d5ee9510d8370b9e36f17",class:"col-12"},this.availablePaymentMethods.map((t=>this.renderPaymentMethodOption(t)))),i("div",{key:"1d9acd0beee80e8b339204d7328a0d2e9078b9a3",class:"col-12"},i("justifi-button",{key:"18a968b57420f0690e6f6c98b5e108f769b61d4b",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(f,{height:"18px",width:"120px"}),i(f,{height:"36px"}))),i("div",{class:"row"},i("div",{class:"col-12 align-content-end"},i(f,{height:"18px",width:"110px"}),i(f,{height:"36px"}))))},M=class{constructor(e){t(this,e),this.isReady=!1}async componentWillLoad(){await o(),this.iframeOrigin=c.iframeOrigin,this.tabId=m(),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:"b9674b4e8cfd28e440f28c3e08772bc879f0d1b6"},i(C,{key:"87adb553cd4fefac370379bbfcc373fbd8935f60",isReady:this.isReady}),i("hidden-input",{key:"1395bba6465865528e94e945ca614107027e86c4"}),i("div",{key:"7ce58ad6226ac6cb3c4ec45895a5e3a94885d3a9",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"85a4a2955404571823404bd9aa46c0744b5f1469",class:"row mb-3"},i("iframe-input",{key:"af85c82af0770b89bbba09347b5f3bf65d581e5a",inputId:"accountNumber",ref:t=>this.accountNumberIframeElement=t,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),i("div",{key:"201171891252c6384e47657b007e7e0381d12cfa",class:"row"},i("iframe-input",{key:"1f2b63b6cb11c0dd906727aaba3127e68ecb540c",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===b.NEW_CARD&&this.hideCardBillingForm}get showSimpleBankAccountBillingForm(){return this.paymentMethodType===b.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:"b9a4be42df1dbeca39a2c310ab6375cc2c1946f3"},i(p,{key:"04bfb3aaa6af8b2dafa07dbcebaf6b7a03a07442",variant:this.variant,isLoading:this.isLoading,clickHandler:this.clickHandler,class:this.class,type:this.type,disabled:this.disabled,style:this.customStyle},this.text))}},I=t=>{const{isReady:e}=t;return e?null:i("div",{class:"container-fluid p-0"},i("div",{class:"mb-3"},i(f,{height:"18px",width:"100px"}),i(f,{height:"36px"})),i("div",{class:"row"},i("div",{class:"col-4 align-content-end"},i(f,{height:"18px",width:"80px"}),i(f,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(f,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(f,{height:"18px",width:"30px"}),i(f,{height:"36px"}))))},P=class{constructor(e){t(this,e),this.isReady=!1}async componentWillLoad(){await o(),this.iframeOrigin=c.iframeOrigin,this.tabId=m(),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:"20d4ea593b1f53fdbe8cc301e64c1a7743802678"},i(I,{key:"f3d2569ddcf94c8cf5f07ba4e1a862d6991c686e",isReady:this.isReady}),i("hidden-input",{key:"4804eb065aa5c2c21a84cd5e4ae02d8e00544081"}),i("div",{key:"0c98ea9d4218a70a95b620a969481083aac623f3",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"6674294528ffdf8b3e90aa75827d88c891f74f65",class:"mb-3"},i("iframe-input",{key:"a08798d454cf5b7e572c334bdf3238f08071fa43",inputId:"cardNumber",ref:t=>this.cardNumberIframeElement=t,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}`})),i("div",{key:"e5aca3795c1788bd0862f7dbf28dec58bbcc3f03",class:"row"},i("div",{key:"29c8dcbf332349d1b81e98b17630de0cd3ef8b77",class:"col-4 align-content-end"},i("iframe-input",{key:"88dd4b4601010543f2d02b4b5ca6814431de1e63",inputId:"expirationMonth",ref:t=>this.expirationMonthIframeElement=t,label:"Expiration",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}`})),i("div",{key:"d7b557547cdb3e18103c9ad0588733448a22d4f6",class:"col-4 align-content-end"},i("iframe-input",{key:"2b9915cd264167e2c3080688290765590061ae6d",inputId:"expirationYear",ref:t=>this.expirationYearIframeElement=t,label:"",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}`})),i("div",{key:"241ead4a324fc65ddc787e8fa81cb8ed62e3114d",class:"col-4 align-content-end"},i("iframe-input",{key:"c254b90ef75b5bcf1ff86bddf2d488de0a2bb709",inputId:"CVV",ref:t=>this.cvvIframeElement=t,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}`})))))}},O=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,u.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,P as justifi_card_form,v as justifi_radio_list_item,O as justifi_save_new_payment_method}
@@ -1 +0,0 @@
1
- import{r as s,h as t}from"./p-CV0Pyo1O.js";import{S as o}from"./p-BqNNwq6C.js";import{S as f}from"./p-C0tps2ph.js";import"./p-D3V9AE6o.js";const r=class{constructor(t){s(this,t)}render(){return t(o,{key:"d19fcf55df4b5b001d31af93c263fef39fc0d160"},t(f,{key:"9ab49d76aa71146287fff2013050e008342f0275",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 i}from"./p-CV0Pyo1O.js";import{c as a,J as s}from"./p-zGGZEiGQ.js";import{c as d}from"./p-Daew0gTO.js";import{c}from"./p-D3V9AE6o.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{P as f}from"./p-DkoufM1t.js";import"./p-qNXIkzDE.js";import"./p-55QcjheA.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-_BHErKTQ.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const h=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event",7),this.loadedEvent=t(this,"loaded",7),this.submitEvent=t(this,"submit-event",7),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.isSubmitting=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){a(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){console.error("[justifi-checkout] error-event received",null==e?void 0:e.detail),this.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=this.disableBnpl?e.detail.availablePaymentMethodTypes.filter((e=>e!==f.SEZZLE)):e.detail.availablePaymentMethodTypes}async fillBillingForm(e){var t;d.billingFormFields=e,null===(t=this.tokenizePaymentMethodRef)||void 0===t||t.fillBillingForm(e)}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){d.checkoutId=this.checkoutId,d.authToken=this.authToken,d.disableCreditCard=this.disableCreditCard,d.disableBankAccount=this.disableBankAccount,d.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;this.isSubmitting=!0,null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(d.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"6bbc4c4997d14ac9040b8f88075a7e9b53208d4c"},i("justifi-modular-checkout",{key:"9b11e7df277e5e9f70cd8928f865a2e62cfc8293",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId,preCompleteHook:this.preCompleteHook},i("div",{key:"c64981c31fd2d022f886b0613bd47bd0b0fe5f2a",class:"row gy-3 jfi-checkout-core"},i("div",{key:"8f01af25b281a19f7fc83451a44f63836efadc20",class:"col-12",part:c},i("justifi-header",{key:"d729ed0b26c94e74d8ce824fcf97bd3002e3a9d0",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"9cc9863b1dd2531bda52e609bba5c7c8f9883cb1"},i("justifi-checkout-summary",{key:"00f36de593e245982bfe03c8867881fedfb7d43f"}))),i("div",{key:"3fe5390d7b8b2fbcdbfff4b71d4b7c43ddae9ff6",class:"col-12 mt-4"},i("slot",{key:"84fa5a7e7772124d7fa61a9317499618850eb0bb",name:"insurance"})),i("div",{key:"c8d1553c6041c0e000eab9dc953a23aa089a3f90",class:"col-12 mt-4"},i("justifi-header",{key:"a08fc163ba437f767ab88d78ac55ae003b09a567",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"bff5fc2986d37bbe49a5253d43db55663ee7be74",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"f5ca969400444639b09e423b154e47abf89c731f",class:"d-flex flex-column"},i("section",{key:"b70209321ebefd161ae3113293c62fe953913f2e"},i("div",{key:"4df7539a9b8d6b52d47ad32974a59ab2d366b4b2"},this.availablePaymentMethods.includes(f.APPLE_PAY)&&i("div",{key:"023deb9a1d025e36cc2b07c3ea8144e0068ea470",class:"mb-3"},i("justifi-apple-pay",{key:"4e52440f329bae25194e71fa30190218f5c1cecb"})),this.availablePaymentMethods.includes(f.GOOGLE_PAY)&&i("div",{key:"83e12debb25e0ef095ca40d87054411396238754",class:"mb-3"},i("justifi-google-pay",{key:"ed6312e39ff4a98c819cf1853f416c6fbf845323",ref:e=>this.googlePayRef=e})),i("justifi-saved-payment-methods",{key:"e059fda26ec54c4f908754663fa23f26c3df8f0c"}),this.availablePaymentMethods.includes(f.SEZZLE)&&i("justifi-radio-list-item",{key:"3d836539d5850abfd956b39bede6efad5954bdad",name:"paymentMethodType",value:f.SEZZLE,checked:(null===(e=null==d?void 0:d.selectedPaymentMethod)||void 0===e?void 0:e.type)===f.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(f.PLAID)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"ac0ac64e9f7586764e3f5671c74794c80ffcff54",name:"paymentMethodType",value:f.PLAID,checked:(null===(t=null==d?void 0:d.selectedPaymentMethod)||void 0===t?void 0:t.type)===f.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("internal-tokenize-payment-method",{key:"894e7a5bfef2eefa5d045928bb6fab3b1f39bd5e",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:d.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:d.paymentMethodGroupId}))))),i("div",{key:"2121952545d38693f11426ef8146b39956d4f427",class:"mt-4"},i("justifi-button",{key:"5e7cf3c699048943df68c0506a34617d0b14bf07",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:this.isSubmitting,isLoading:this.isSubmitting,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{h as justifi_checkout}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e,H as a}from"./p-CV0Pyo1O.js";import{v as i,w as o,x as c,y as r,z as h,A as n}from"./p-D3V9AE6o.js";import{F as f}from"./p-DSmuL_bZ.js";import{F as l}from"./p-BU9iZ8OM.js";import"./p-CZfYo5-1.js";import{f as p}from"./p-MeSAYDNh.js";import"./p-HXpYMWUU.js";const m=class{constructor(e){t(this,e),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,e=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(e),this.inputHandler(s,e),this.formControlInput.emit({name:s,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?o:this.isFocused?c:r}render(){return e(a,{key:"2c0e7cdc644343a61c87852733ee805739ecaaa1"},e("div",{key:"998eb7ec3125af116e876e837982d2f37285ce4c",class:"form-group d-flex flex-column"},e("label",{key:"90cff5cbb09cf4f39c04c12c10eae45a6ada97c5",part:h,class:"form-label",htmlFor:this.name},this.label),e(f,{key:"be23587b830c4e6e96abcd53a78108543c5ad1c4",name:this.name,helpText:this.helpText}),e("div",{key:"6f47b9e86f4af9c641f26dc631fabc917bc06e8c",class:"input-group"},e("span",{key:"0e39a178edf94795851c0c52dc054a8a61c2643b",class:"input-group-text",part:n},"$"),e("input",{key:"8bb615087578002c9990dbf7528536ae2cb7aa01",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})),e(l,{key:"d97f18500d2fe6cf23bad8a872f1d0e965ccb114",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 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 i,a as d}from"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{f as c,p as o,c as r}from"./p-CpGEMRkH.js";import{f as p,a as b}from"./p-D3V9AE6o.js";import{S as f}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const m=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{c[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,successful_payment_id:this.successfulPaymentId,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(o[e]=a)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:i.created},{label:"Completed",value:i.completed},{label:"Attempted",value:i.attempted},{label:"Expired",value:i.expired}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:d.ecom},{label:"BNPL",value:d.bnpl},{label:"Apple Pay",value:d.apple_pay}]}render(){const e=Object.assign({},c);return a(f,{key:"8b9b9383e9b15d440fc3555bf3071ddb633cfb8b"},a("table-filters-menu",{key:"588ab98c35a944eb4fd4855dc603f3f988fb8411",params:e,clearParams:r,part:p},a("div",{key:"a52e4c7ed908568108031c9e43f41563dcec099c",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"26bdc175f9bb5c0d53e5d979a31ddbc60c8b1101",class:"p-2"},a("form-control-text",{key:"46bf2d112facf89bb820a4f67936de87832e8283",name:"checkout_id",label:"Checkout ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.checkoutId||c.checkout_id,disabled:!!this.checkoutId,part:b})),a("div",{key:"441a50bf1ad6be8efc77d197927920ea8e4454de",class:"p-2"},a("form-control-text",{key:"533c6cd714268d50eb212ea7a32538e68236b03a",name:"successful_payment_id",label:"Successful Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.successfulPaymentId||c.successful_payment_id,disabled:!!this.successfulPaymentId,part:b})),a("div",{key:"bfd92f93d3fa3380ce858425f0032cb1fa6155e2",class:"p-2"},a("form-control-select",{key:"b35919ba574500a8921a6396c8c8e74b5a3555a4",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||c.status||"",disabled:!!this.checkoutStatus,part:b})),a("div",{key:"19dc994790222c1e7951275a93722affd30f3309",class:"p-2"},a("form-control-select",{key:"6d5719c8080b2d2899b189ebbceeb538a2d4e6cb",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||c.payment_mode||"",disabled:!!this.paymentMode,part:b})),a("div",{key:"297fdb846109a9f88e6ba72fbf2d84aabadfcd11",class:"p-2"},a("form-control-date",{key:"1385937605ae2d547a7c789b2a03f70cb53c59ef",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:l(this.createdAfter,{showInputDateTime:!0})||l(c.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:b})),a("div",{key:"b4bb5a4b6a5125d60ebb8820e0660d8505ecfc63",class:"p-2"},a("form-control-date",{key:"91a48596c2411dfd185b791643a3329c81300628",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:l(this.createdBefore,{showInputDateTime:!0})||l(c.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:b})))))}};export{m as justifi_checkouts_list_filters}
@@ -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-AMVhBsGv.js";import{f as l,a as d}from"./p-D3V9AE6o.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as i,a as p}from"./p-MeSAYDNh.js";import"./p-DVJaoI_m.js";import"./p-Cjcsf8ku.js";import{P as f}from"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const c=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=i(a,{setEndOfDay:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({status:this.status,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get statusOptions(){return[{label:"All",value:""},{label:f.paid,value:"paid"},{label:f.failed,value:"failed"},{label:f.forwarded,value:"forwarded"},{label:f.scheduled,value:"scheduled"},{label:f.in_transit,value:"in_transit"},{label:f.canceled,value:"canceled"}]}render(){const e=Object.assign({},t);return a(o,{key:"f8e989bee50f9d877f46081060811c1e82d73fef"},a("table-filters-menu",{key:"58f57d4b7cc46b06b90591cd978b83303bddd699",params:e,clearParams:r,part:l},a("div",{key:"4f8ce19e11804635b63e604968305fb331e82e8b",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"750eb629811a2695c94b12a055bfa583666fa9a0",class:"p-2"},a("form-control-select",{key:"741c7cea7c16d5f750c4fb70036db61451f694b1",name:"status",label:"Status",options:this.statusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.status||t.status||"",disabled:!!this.status,part:d})),a("div",{key:"1da6031e4521d46c35819a3dca111e576f627719",class:"p-2"},a("form-control-date",{key:"5b1f782e23da892428b0e8c4ec863a5119842841",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:p(this.createdAfter,{showInputDate:!0})||p(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:d})),a("div",{key:"a1b19375d9e7cd6ec6aaf86daa0b50f0af41aea6",class:"p-2"},a("form-control-date",{key:"910a6d4dd397c09eaba5037f387014266de019f4",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:p(this.createdBefore,{showInputDate:!0})||p(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:d})))))}};export{c as justifi_payouts_list_filters}