@justifi/webcomponents 6.0.1 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (539) hide show
  1. package/dist/cjs/{Api-DdNOMYxI.js → Api-DqzbA2qk.js} +1 -1
  2. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  3. package/dist/cjs/{badge-Cp5ap9Ge.js → badge-BJVdpSU-.js} +1 -1
  4. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +5 -5
  5. package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
  6. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  7. package/dist/cjs/{business.service-CjsXJOgZ.js → business.service-p5CmA9cj.js} +1 -1
  8. package/dist/cjs/{button-BMKiDxGa.js → button-_YJuE8cy.js} +1 -1
  9. package/dist/cjs/card-form.cjs.entry.js +4 -4
  10. package/dist/cjs/{check-pkg-version-C5MyAXgo.js → check-pkg-version-SEjmNETG.js} +2 -2
  11. package/dist/cjs/{checkout.service-o7fi8Z05.js → checkout.service-CdEdqW9C.js} +1 -1
  12. package/dist/cjs/{checkout.store-DrFb05Vr.js → checkout.store-DC4yVxDj.js} +2 -3
  13. package/dist/cjs/checkouts-list-core.cjs.entry.js +8 -8
  14. package/dist/cjs/{payouts-list-params-state-CKeoLpqm.js → checkouts-list-params-state-ARjo40Y9.js} +1 -1
  15. package/dist/cjs/{checkouts-table-Ckpk4UMS.js → checkouts-table-C102WCfy.js} +2 -2
  16. package/dist/cjs/{config-state-BXCZx6K8.js → config-state-BeZM7X7J.js} +1 -1
  17. package/dist/cjs/custom-popper_2.cjs.entry.js +1 -1
  18. package/dist/cjs/{dispute.service-BANG6pry.js → dispute.service-BL_WnOJH.js} +1 -1
  19. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  20. package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
  21. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  22. package/dist/cjs/{form-control-error-text-CA6tsCwq.js → form-control-error-text-DJzNQrEz.js} +1 -1
  23. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
  24. package/dist/cjs/{form-control-help-text-sYroVd4u.js → form-control-help-text-DII6UDeq.js} +1 -1
  25. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  26. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  27. package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
  28. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  29. package/dist/cjs/form-control-number.cjs.entry.js +3 -3
  30. package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
  31. package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
  32. package/dist/cjs/{get-payment-details-CqsEtJTg.js → get-payment-details-D4D-4Pre.js} +1 -1
  33. package/dist/cjs/{get-subaccounts-BfiiwPTB.js → get-subaccounts-CDUWJisG.js} +2 -2
  34. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
  35. package/dist/cjs/{header-1-IQ1fI7he.js → header-1-Da7oKhXY.js} +1 -1
  36. package/dist/cjs/{header-3-CACJFFMS.js → header-3-uBM_CzcP.js} +1 -1
  37. package/dist/cjs/hidden-input_2.cjs.entry.js +4 -4
  38. package/dist/cjs/{index-8Prcj64P.js → index-CaAefsWD.js} +41 -19
  39. package/dist/cjs/{index-BGUnWLse.js → index-D-CfIyoF.js} +1 -1
  40. package/dist/cjs/{insurance-state-De4RWYBC.js → insurance-state-KJzYGtVr.js} +2 -2
  41. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +5 -5
  42. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +6 -6
  43. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-apple-pay.cjs.entry.js +14 -10
  45. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +11 -11
  46. package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
  47. package/dist/cjs/justifi-business-form.cjs.entry.js +11 -11
  48. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  49. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +13 -13
  50. package/dist/cjs/justifi-checkout.cjs.entry.js +15 -12
  51. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +5 -5
  52. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
  53. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  54. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  56. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
  57. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +10 -10
  58. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -7
  59. package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -10
  60. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +6 -6
  61. package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
  62. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  63. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -7
  64. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
  65. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
  66. package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -11
  67. package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
  68. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
  69. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  70. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
  71. package/dist/cjs/justifi-refund-payment.cjs.entry.js +11 -11
  72. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
  73. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -10
  74. package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
  75. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  76. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -9
  77. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -5
  78. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
  79. package/dist/cjs/loader.cjs.js +2 -2
  80. package/dist/cjs/{package-D1CuLdpw.js → package-BOxe9RGf.js} +1 -1
  81. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  82. package/dist/cjs/payment-details-core.cjs.entry.js +6 -6
  83. package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
  84. package/dist/cjs/{payment.service-Bk5f4yNM.js → payment.service-CCDyL3LO.js} +1 -1
  85. package/dist/cjs/payments-list-core.cjs.entry.js +9 -9
  86. package/dist/cjs/{terminal-orders-list-params-state-CKeoLpqm.js → payments-list-params-state-ARjo40Y9.js} +1 -1
  87. package/dist/cjs/{payments-status-B0mynjDF.js → payments-status-5IzqwLep.js} +2 -2
  88. package/dist/cjs/{payments-table-Dt_B6-wz.js → payments-table-BcZ6U6p8.js} +23 -3
  89. package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
  90. package/dist/cjs/{payout.service-DYm731Kq.js → payout.service-CbeJ-k58.js} +1 -1
  91. package/dist/cjs/payouts-list-core.cjs.entry.js +9 -9
  92. package/dist/cjs/{checkouts-list-params-state-CKeoLpqm.js → payouts-list-params-state-ARjo40Y9.js} +1 -1
  93. package/dist/cjs/{payouts-status-MC0n0N1x.js → payouts-status-D38A6UrI.js} +2 -2
  94. package/dist/cjs/{payouts-table-CjJEGkLL.js → payouts-table-Cn_cCCOY.js} +2 -2
  95. package/dist/cjs/{skeleton-CMESEszj.js → skeleton-DlPP4i_w.js} +1 -1
  96. package/dist/cjs/{spinner-BePlCbOD.js → spinner-BNWG01hP.js} +1 -1
  97. package/dist/cjs/{styled-host-CvM9RrsT.js → styled-host-DSpt9LtB.js} +1 -1
  98. package/dist/cjs/{table-1JBgqBkL.js → table-CAWBqvW5.js} +2 -2
  99. package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
  100. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +8 -8
  101. package/dist/cjs/{payments-list-params-state-CKeoLpqm.js → terminal-orders-list-params-state-ARjo40Y9.js} +1 -1
  102. package/dist/cjs/{terminal-orders-table-DuvYC2f1.js → terminal-orders-table-D9Kwub30.js} +3 -3
  103. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  104. package/dist/cjs/{terminal.service-B4FQ6roy.js → terminal.service-Fi0HP3oG.js} +1 -1
  105. package/dist/cjs/terminals-list-core.cjs.entry.js +8 -8
  106. package/dist/cjs/terminals-list-params-state-ARjo40Y9.js +22 -0
  107. package/dist/cjs/{terminals-table--d49kyCn.js → terminals-table-C2_M7SWl.js} +2 -2
  108. package/dist/cjs/{utils-BNjLFSUk.js → utils-C6mfHWv-.js} +1 -1
  109. package/dist/cjs/webcomponents.cjs.js +3 -3
  110. package/dist/collection/collection-manifest.json +1 -1
  111. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +0 -1
  112. package/dist/collection/components/business-details/business-details-core.js +0 -1
  113. package/dist/collection/components/business-details/business-details.js +4 -4
  114. package/dist/collection/components/business-details/core-info-details/core-info-details.js +0 -1
  115. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +0 -1
  116. package/dist/collection/components/business-details/owner-details/owner-details.js +0 -1
  117. package/dist/collection/components/business-details/representative-details/representative-details.js +0 -1
  118. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +0 -1
  119. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +0 -1
  120. package/dist/collection/components/business-forms/business-form/business-form.js +7 -7
  121. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +0 -1
  122. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +0 -1
  123. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +4 -5
  124. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +10 -14
  125. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +4 -5
  126. package/dist/collection/components/business-forms/owner-form/owner-form.js +12 -13
  127. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +2 -4
  128. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +6 -6
  129. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +2 -4
  130. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +6 -7
  131. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +4 -7
  132. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +6 -6
  133. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-documents-on-file.js +2 -2
  134. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +4 -6
  135. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +6 -6
  136. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +6 -8
  137. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +6 -6
  138. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -5
  139. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +2 -4
  140. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +6 -6
  141. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +13 -14
  142. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +2 -4
  143. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +6 -6
  144. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +7 -9
  145. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +8 -10
  146. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +7 -9
  147. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +6 -6
  148. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +6 -6
  149. package/dist/collection/components/checkout/billing-form/billing-form.js +8 -8
  150. package/dist/collection/components/checkout/checkout.js +17 -16
  151. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  152. package/dist/collection/components/checkout/saved-payment-method.js +2 -3
  153. package/dist/collection/components/checkouts-list/checkouts-list-core.js +2 -4
  154. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +4 -4
  155. package/dist/collection/components/checkouts-list/checkouts-list.js +5 -5
  156. package/dist/collection/components/config-provider/config-provider.js +3 -3
  157. package/dist/collection/components/dispute-management/dispute-management-core.js +4 -5
  158. package/dist/collection/components/dispute-management/dispute-management.js +4 -4
  159. package/dist/collection/components/dispute-management/dispute-notification.js +4 -5
  160. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +3 -3
  161. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +3 -3
  162. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +3 -3
  163. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -4
  164. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +5 -6
  165. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +3 -3
  166. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +3 -3
  167. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +3 -3
  168. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +3 -3
  169. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +3 -3
  170. package/dist/collection/components/filters/table-filters-menu.js +2 -3
  171. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +0 -1
  172. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +4 -4
  173. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +26 -26
  174. package/dist/collection/components/modular-checkout/modular-checkout.js +4 -4
  175. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +16 -12
  176. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +2 -2
  177. package/dist/collection/components/modular-checkout/sub-components/billing-form-full.js +2 -2
  178. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +2 -2
  179. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +8 -9
  180. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +1 -1
  181. package/dist/collection/components/order-terminals/order-terminals.js +8 -8
  182. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +9 -9
  183. package/dist/collection/components/payment-details/payment-details-core.js +0 -1
  184. package/dist/collection/components/payment-details/payment-details.js +4 -4
  185. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +5 -5
  186. package/dist/collection/components/payments-list/payments-list-core.js +2 -3
  187. package/dist/collection/components/payments-list/payments-list-filters.js +10 -10
  188. package/dist/collection/components/payments-list/payments-list.js +5 -5
  189. package/dist/collection/components/payments-list/payments-table.js +21 -1
  190. package/dist/collection/components/payout-details/payout-details-core.js +0 -2
  191. package/dist/collection/components/payout-details/payout-details.js +4 -4
  192. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +5 -5
  193. package/dist/collection/components/payouts-list/payouts-list-core.js +2 -5
  194. package/dist/collection/components/payouts-list/payouts-list-filters.js +4 -4
  195. package/dist/collection/components/payouts-list/payouts-list.js +5 -5
  196. package/dist/collection/components/refund-payment/refund-payment.js +7 -7
  197. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +2 -3
  198. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +8 -8
  199. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +5 -5
  200. package/dist/collection/components/terminals-list/terminals-list-core.js +2 -4
  201. package/dist/collection/components/terminals-list/terminals-list-filters.js +6 -6
  202. package/dist/collection/components/terminals-list/terminals-list.js +5 -5
  203. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +19 -19
  204. package/dist/collection/store/checkout.store.js +1 -2
  205. package/dist/collection/ui-components/custom-popper/custom-popper.js +3 -5
  206. package/dist/collection/ui-components/details/details.js +2 -2
  207. package/dist/collection/ui-components/form/form-control-checkbox.js +12 -13
  208. package/dist/collection/ui-components/form/form-control-date.js +15 -16
  209. package/dist/collection/ui-components/form/form-control-file-v2.js +12 -13
  210. package/dist/collection/ui-components/form/form-control-file.js +14 -15
  211. package/dist/collection/ui-components/form/form-control-monetary.js +13 -15
  212. package/dist/collection/ui-components/form/form-control-number-masked.js +14 -15
  213. package/dist/collection/ui-components/form/form-control-number.js +12 -13
  214. package/dist/collection/ui-components/form/form-control-radio.js +14 -15
  215. package/dist/collection/ui-components/form/form-control-select.js +12 -14
  216. package/dist/collection/ui-components/form/form-control-text.js +14 -16
  217. package/dist/collection/ui-components/form/form-control-textarea.js +14 -16
  218. package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +4 -4
  219. package/dist/collection/ui-components/form/form-helpers/form-control-help-text/form-control-help-text.js +4 -4
  220. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +2 -2
  221. package/dist/collection/ui-components/form/iframe-input.js +6 -6
  222. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +0 -2
  223. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +12 -13
  224. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +5 -5
  225. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +10 -10
  226. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +8 -9
  227. package/dist/docs.json +2 -86
  228. package/dist/esm/{Api-CO0DBcUT.js → Api-BbW90wwj.js} +1 -1
  229. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  230. package/dist/esm/{badge-CRAuWlVu.js → badge-DW9jKHdW.js} +1 -1
  231. package/dist/esm/bank-account-document-form-inputs_4.entry.js +5 -5
  232. package/dist/esm/bank-account-form.entry.js +4 -4
  233. package/dist/esm/business-details-core.entry.js +4 -4
  234. package/dist/esm/{business.service-D2tRoPny.js → business.service-HNdUBMkm.js} +1 -1
  235. package/dist/esm/{button-B2XlI-Uy.js → button-D-VwmUVo.js} +1 -1
  236. package/dist/esm/card-form.entry.js +4 -4
  237. package/dist/esm/{check-pkg-version-C_FhqYkP.js → check-pkg-version-CsarLZbU.js} +2 -2
  238. package/dist/esm/{checkout.service-BPYdgahN.js → checkout.service-DYVs75Gy.js} +1 -1
  239. package/dist/esm/{checkout.store-DPOk5eUh.js → checkout.store-DwJGKabu.js} +2 -3
  240. package/dist/esm/checkouts-list-core.entry.js +8 -8
  241. package/dist/esm/{checkouts-list-params-state-DmevqV6O.js → checkouts-list-params-state-BY5996_y.js} +1 -1
  242. package/dist/esm/{checkouts-table-DoHp51it.js → checkouts-table-DUOrylMo.js} +2 -2
  243. package/dist/esm/{config-state-Wdyw1F-s.js → config-state-C83RkI9h.js} +1 -1
  244. package/dist/esm/custom-popper_2.entry.js +1 -1
  245. package/dist/esm/{dispute.service-Ct6DFjKt.js → dispute.service-DFaj3knx.js} +1 -1
  246. package/dist/esm/form-alert_5.entry.js +1 -1
  247. package/dist/esm/form-control-checkbox.entry.js +3 -3
  248. package/dist/esm/form-control-date.entry.js +2 -2
  249. package/dist/esm/{form-control-error-text-Bn_rq8AC.js → form-control-error-text-JKQw7f0M.js} +1 -1
  250. package/dist/esm/form-control-file-v2_2.entry.js +2 -2
  251. package/dist/esm/{form-control-help-text-CuFo8IR5.js → form-control-help-text-CX3dYA9g.js} +1 -1
  252. package/dist/esm/form-control-help-text.entry.js +1 -1
  253. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  254. package/dist/esm/form-control-monetary.entry.js +3 -3
  255. package/dist/esm/form-control-number-masked_2.entry.js +2 -2
  256. package/dist/esm/form-control-number.entry.js +3 -3
  257. package/dist/esm/form-control-radio.entry.js +1 -1
  258. package/dist/esm/form-control-select_2.entry.js +2 -2
  259. package/dist/esm/{get-payment-details-BGQmxhRw.js → get-payment-details-fjgStHij.js} +1 -1
  260. package/dist/esm/{get-subaccounts-CYgVR2mk.js → get-subaccounts-DqSVZy-T.js} +2 -2
  261. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  262. package/dist/esm/{header-1-DWse7nuo.js → header-1-BUi8qSIO.js} +1 -1
  263. package/dist/esm/{header-3-CSgiRXQA.js → header-3-Bzmpcf2j.js} +1 -1
  264. package/dist/esm/hidden-input_2.entry.js +4 -4
  265. package/dist/esm/{index-DSUeaNWH.js → index-NOsb-hYl.js} +1 -1
  266. package/dist/esm/{index-CHdklybh.js → index-_b8l4IX7.js} +41 -19
  267. package/dist/esm/{insurance-state-DD0YD6c0.js → insurance-state-DxVv0qD1.js} +2 -2
  268. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +5 -5
  269. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +6 -6
  270. package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
  271. package/dist/esm/justifi-apple-pay.entry.js +14 -10
  272. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +11 -11
  273. package/dist/esm/justifi-business-details.entry.js +8 -8
  274. package/dist/esm/justifi-business-form.entry.js +11 -11
  275. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  276. package/dist/esm/justifi-checkout-summary_7.entry.js +13 -13
  277. package/dist/esm/justifi-checkout.entry.js +15 -12
  278. package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -5
  279. package/dist/esm/justifi-checkouts-list.entry.js +11 -11
  280. package/dist/esm/justifi-config-provider.entry.js +3 -3
  281. package/dist/esm/justifi-details.entry.js +2 -2
  282. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  283. package/dist/esm/justifi-dispute-management.entry.js +7 -7
  284. package/dist/esm/justifi-dispute-notification_3.entry.js +10 -10
  285. package/dist/esm/justifi-gross-payment-chart.entry.js +7 -7
  286. package/dist/esm/justifi-order-terminals.entry.js +10 -10
  287. package/dist/esm/justifi-owner-form_3.entry.js +6 -6
  288. package/dist/esm/justifi-payment-details.entry.js +9 -9
  289. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  290. package/dist/esm/justifi-payment-provisioning.entry.js +7 -7
  291. package/dist/esm/justifi-payment-transactions-list.entry.js +10 -10
  292. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  293. package/dist/esm/justifi-payments-list.entry.js +11 -11
  294. package/dist/esm/justifi-payout-details.entry.js +8 -8
  295. package/dist/esm/justifi-payout-transactions-list.entry.js +10 -10
  296. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  297. package/dist/esm/justifi-payouts-list.entry.js +12 -12
  298. package/dist/esm/justifi-refund-payment.entry.js +11 -11
  299. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  300. package/dist/esm/justifi-season-interruption-insurance.entry.js +10 -10
  301. package/dist/esm/justifi-skeleton.entry.js +3 -3
  302. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
  303. package/dist/esm/justifi-terminal-orders-list.entry.js +9 -9
  304. package/dist/esm/justifi-terminals-list-filters.entry.js +5 -5
  305. package/dist/esm/justifi-terminals-list.entry.js +11 -11
  306. package/dist/esm/loader.js +3 -3
  307. package/dist/esm/{package-DgKuxw6L.js → package-BJqiCLSi.js} +1 -1
  308. package/dist/esm/pagination-menu.entry.js +1 -1
  309. package/dist/esm/payment-details-core.entry.js +6 -6
  310. package/dist/esm/payment-method-option.entry.js +2 -2
  311. package/dist/esm/{payment.service-D3ze0Zdq.js → payment.service-BVj1UPfl.js} +1 -1
  312. package/dist/esm/payments-list-core.entry.js +9 -9
  313. package/dist/esm/{payments-list-params-state-DmevqV6O.js → payments-list-params-state-BY5996_y.js} +1 -1
  314. package/dist/esm/{payments-status-DTmQyPO9.js → payments-status-9L6BRIlK.js} +2 -2
  315. package/dist/esm/{payments-table-CavY9USC.js → payments-table-Cmq40EQ4.js} +23 -3
  316. package/dist/esm/payout-details-core.entry.js +7 -7
  317. package/dist/esm/{payout.service-WXSktQvI.js → payout.service-BFT3xwZ-.js} +1 -1
  318. package/dist/esm/payouts-list-core.entry.js +9 -9
  319. package/dist/esm/{payouts-list-params-state-DmevqV6O.js → payouts-list-params-state-BY5996_y.js} +1 -1
  320. package/dist/esm/{payouts-status-DTXrGUWw.js → payouts-status-B-2CqmMM.js} +2 -2
  321. package/dist/esm/{payouts-table-3_J-SXvD.js → payouts-table-DH3fsjTN.js} +2 -2
  322. package/dist/esm/{skeleton-rMJsZa0a.js → skeleton-BHZe3qDB.js} +1 -1
  323. package/dist/esm/{spinner-8n0qh4tK.js → spinner-CQxNyMlA.js} +1 -1
  324. package/dist/esm/{styled-host-DQq-l92c.js → styled-host-hSGxxyFZ.js} +1 -1
  325. package/dist/esm/{table-BUJMzXYe.js → table-9QjsJPzY.js} +2 -2
  326. package/dist/esm/table-filters-menu.entry.js +2 -2
  327. package/dist/esm/terminal-orders-list-core.entry.js +8 -8
  328. package/dist/esm/{terminal-orders-list-params-state-DmevqV6O.js → terminal-orders-list-params-state-BY5996_y.js} +1 -1
  329. package/dist/esm/{terminal-orders-table-gBU8rU8X.js → terminal-orders-table-o6BqOQmd.js} +3 -3
  330. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  331. package/dist/esm/{terminal.service-DihXdEs3.js → terminal.service-Bvn7RUJD.js} +1 -1
  332. package/dist/esm/terminals-list-core.entry.js +8 -8
  333. package/dist/esm/terminals-list-params-state-BY5996_y.js +16 -0
  334. package/dist/esm/{terminals-table-64XluocE.js → terminals-table-D8MXWIgV.js} +2 -2
  335. package/dist/esm/{utils-BvJW0VpC.js → utils-Dvq8MT-5.js} +1 -1
  336. package/dist/esm/webcomponents.js +4 -4
  337. package/dist/module/additional-questions-details2.js +1 -1
  338. package/dist/module/additional-questions.js +1 -1
  339. package/dist/module/bank-account-document-inputs.js +2 -2
  340. package/dist/module/bank-account-form-inputs2.js +1 -1
  341. package/dist/module/business-additional-questions-form-step-core.js +2 -2
  342. package/dist/module/business-bank-account-form-step-core.js +3 -3
  343. package/dist/module/business-core-info-form-step-core.js +2 -2
  344. package/dist/module/business-core-info.js +1 -1
  345. package/dist/module/business-details-core2.js +1 -1
  346. package/dist/module/business-owners-form-step-core.js +2 -2
  347. package/dist/module/business-representative-form-inputs.js +1 -1
  348. package/dist/module/business-representative-form-step-core.js +2 -2
  349. package/dist/module/business-representative.js +1 -1
  350. package/dist/module/checkout.store.js +1 -2
  351. package/dist/module/checkouts-list-core2.js +2 -2
  352. package/dist/module/custom-popper2.js +1 -1
  353. package/dist/module/dispute-management-core.js +1 -1
  354. package/dist/module/dispute-response-core.js +3 -3
  355. package/dist/module/dispute-response.js +1 -1
  356. package/dist/module/form-control-checkbox2.js +1 -1
  357. package/dist/module/form-control-date2.js +1 -1
  358. package/dist/module/form-control-file-v22.js +1 -1
  359. package/dist/module/form-control-file2.js +1 -1
  360. package/dist/module/form-control-monetary-provisioning2.js +1 -1
  361. package/dist/module/form-control-monetary2.js +2 -2
  362. package/dist/module/form-control-number-masked2.js +1 -1
  363. package/dist/module/form-control-number.js +1 -1
  364. package/dist/module/form-control-radio2.js +1 -1
  365. package/dist/module/form-control-select2.js +1 -1
  366. package/dist/module/form-control-text2.js +2 -2
  367. package/dist/module/form-control-textarea2.js +2 -2
  368. package/dist/module/gross-payment-chart-core2.js +1 -1
  369. package/dist/module/identity-address-form.js +1 -1
  370. package/dist/module/justifi-apple-pay.js +7 -3
  371. package/dist/module/justifi-button2.js +1 -1
  372. package/dist/module/justifi-checkout.js +7 -5
  373. package/dist/module/justifi-saved-payment-method.js +1 -1
  374. package/dist/module/justifi-skeleton.js +1 -1
  375. package/dist/module/legal-address-details2.js +1 -1
  376. package/dist/module/legal-address-form-step-core.js +2 -2
  377. package/dist/module/legal-address-form.js +1 -1
  378. package/dist/module/owner-form-core2.js +4 -4
  379. package/dist/module/owner-form-inputs2.js +1 -1
  380. package/dist/module/owner-form.js +1 -1
  381. package/dist/module/package.js +1 -1
  382. package/dist/module/payment-details-core2.js +1 -1
  383. package/dist/module/payment-method-option.js +1 -1
  384. package/dist/module/payment-provisioning-core.js +2 -2
  385. package/dist/module/payment-provisioning-form-buttons.js +2 -2
  386. package/dist/module/payment-provisioning-form-steps.js +1 -1
  387. package/dist/module/payments-list-core2.js +22 -2
  388. package/dist/module/payout-details-core2.js +2 -2
  389. package/dist/module/payouts-list-core2.js +3 -3
  390. package/dist/module/sezzle-payment-method.js +1 -1
  391. package/dist/module/table-filters-menu2.js +1 -1
  392. package/dist/module/terminal-orders-list-core2.js +1 -1
  393. package/dist/module/terminals-list-core2.js +2 -2
  394. package/dist/types/components/payments-list/payments-table.d.ts +5 -2
  395. package/dist/types/stencil-public-runtime.d.ts +16 -2
  396. package/dist/types/store/checkout.store.d.ts +0 -1
  397. package/dist/webcomponents/p--Q5o_TsW.js +1 -0
  398. package/dist/webcomponents/{p-8b42eee7.entry.js → p-01d08c46.entry.js} +1 -1
  399. package/dist/webcomponents/{p-318a95e7.entry.js → p-07f1fc76.entry.js} +1 -1
  400. package/dist/webcomponents/{p-UmoEDufy.js → p-0X4UScXA.js} +1 -1
  401. package/dist/webcomponents/{p-671c059b.entry.js → p-0a0c3d2e.entry.js} +1 -1
  402. package/dist/webcomponents/{p-cf78e63a.entry.js → p-0cb1aeb5.entry.js} +1 -1
  403. package/dist/webcomponents/{p-0e85331b.entry.js → p-0e78165a.entry.js} +4 -4
  404. package/dist/webcomponents/{p-c53099b1.entry.js → p-12285f1d.entry.js} +1 -1
  405. package/dist/webcomponents/p-1a55e132.entry.js +1 -0
  406. package/dist/webcomponents/{p-664c9b1b.entry.js → p-1e9cce48.entry.js} +1 -1
  407. package/dist/webcomponents/{p-78c17caf.entry.js → p-2077bfcb.entry.js} +1 -1
  408. package/dist/webcomponents/{p-e01fe757.entry.js → p-26567243.entry.js} +1 -1
  409. package/dist/webcomponents/{p-8d507cf3.entry.js → p-27935f43.entry.js} +1 -1
  410. package/dist/webcomponents/p-2bcf512b.entry.js +1 -0
  411. package/dist/webcomponents/{p-d1fd3163.entry.js → p-2f20f12d.entry.js} +1 -1
  412. package/dist/webcomponents/{p-357c355e.entry.js → p-306facfd.entry.js} +1 -1
  413. package/dist/webcomponents/{p-f912f0bf.entry.js → p-352840d1.entry.js} +1 -1
  414. package/dist/webcomponents/{p-d817d7e4.entry.js → p-3ff931e0.entry.js} +1 -1
  415. package/dist/webcomponents/{p-b40aa9da.entry.js → p-4197f618.entry.js} +1 -1
  416. package/dist/webcomponents/{p-35f834e3.entry.js → p-493d61ee.entry.js} +1 -1
  417. package/dist/webcomponents/{p-4c7622ed.entry.js → p-4ad7c4e4.entry.js} +1 -1
  418. package/dist/webcomponents/{p-1a41c6ee.entry.js → p-4fa9dbaf.entry.js} +1 -1
  419. package/dist/webcomponents/{p-528300cf.entry.js → p-5666bf24.entry.js} +1 -1
  420. package/dist/webcomponents/{p-bc5698fe.entry.js → p-59bf0e57.entry.js} +1 -1
  421. package/dist/webcomponents/{p-4d60eadc.entry.js → p-5aea996a.entry.js} +1 -1
  422. package/dist/webcomponents/{p-8b414739.entry.js → p-5e1c32a8.entry.js} +1 -1
  423. package/dist/webcomponents/p-5f8e605d.entry.js +1 -0
  424. package/dist/webcomponents/{p-2ca59580.entry.js → p-6ea75d39.entry.js} +1 -1
  425. package/dist/webcomponents/{p-0c25d57b.entry.js → p-6f095d18.entry.js} +1 -1
  426. package/dist/webcomponents/{p-c96feb00.entry.js → p-706ed9a4.entry.js} +1 -1
  427. package/dist/webcomponents/{p-1a198ab4.entry.js → p-73b363c3.entry.js} +1 -1
  428. package/dist/webcomponents/{p-1a5f53f4.entry.js → p-7606d291.entry.js} +1 -1
  429. package/dist/webcomponents/{p-152436e2.entry.js → p-773fe3d5.entry.js} +1 -1
  430. package/dist/webcomponents/{p-fa1da976.entry.js → p-7a3625fd.entry.js} +1 -1
  431. package/dist/webcomponents/{p-ed401083.entry.js → p-7cbcd4e2.entry.js} +1 -1
  432. package/dist/webcomponents/{p-25344f42.entry.js → p-7f0a7e7b.entry.js} +1 -1
  433. package/dist/webcomponents/{p-9c110f7a.entry.js → p-83fbfc13.entry.js} +1 -1
  434. package/dist/webcomponents/{p-c7291c13.entry.js → p-87bc78dd.entry.js} +1 -1
  435. package/dist/webcomponents/{p-ae5bda0f.entry.js → p-89ba1e33.entry.js} +1 -1
  436. package/dist/webcomponents/p-8e53aa0f.entry.js +1 -0
  437. package/dist/webcomponents/{p-61980e9a.entry.js → p-961ce6e0.entry.js} +1 -1
  438. package/dist/webcomponents/{p-6b355861.entry.js → p-97806b41.entry.js} +1 -1
  439. package/dist/webcomponents/p-984877cf.entry.js +1 -0
  440. package/dist/webcomponents/{p-5f4b95f4.entry.js → p-98df1217.entry.js} +1 -1
  441. package/dist/webcomponents/{p-ab041aeb.entry.js → p-9b3f7ca8.entry.js} +1 -1
  442. package/dist/webcomponents/{p-b1a310d3.entry.js → p-9dbad387.entry.js} +1 -1
  443. package/dist/webcomponents/p-B5DH-8Hu.js +1 -0
  444. package/dist/webcomponents/p-B5pEp0j3.js +1 -0
  445. package/dist/webcomponents/p-BB1QN_ad.js +1 -0
  446. package/dist/webcomponents/{p-BB-9jeDZ.js → p-BIJv_7lO.js} +1 -1
  447. package/dist/webcomponents/p-BJqiCLSi.js +1 -0
  448. package/dist/webcomponents/p-BwpdCtUc.js +1 -0
  449. package/dist/webcomponents/p-C-Xuq6-V.js +1 -0
  450. package/dist/webcomponents/{p-CIN-y_rT.js → p-C5JcHf9j.js} +1 -1
  451. package/dist/webcomponents/{p-hzzlBrP2.js → p-CD34Wsj5.js} +1 -1
  452. package/dist/webcomponents/{p-Dph3Ao9s.js → p-CHHhmd53.js} +1 -1
  453. package/dist/webcomponents/{p-BSa0NCli.js → p-CHb8TI4t.js} +1 -1
  454. package/dist/webcomponents/{p-D8uar3Ri.js → p-CP3qJi4-.js} +1 -1
  455. package/dist/webcomponents/p-CQUZeo9r.js +1 -0
  456. package/dist/webcomponents/{p-mxgDrK6T.js → p-CTKBbXqz.js} +1 -1
  457. package/dist/webcomponents/p-CYNcSTQA.js +1 -0
  458. package/dist/webcomponents/{p-cSt1EbTB.js → p-CcbvC2Ka.js} +1 -1
  459. package/dist/webcomponents/{p-DrXVtFfH.js → p-D-Uy3_F6.js} +1 -1
  460. package/dist/webcomponents/p-D5lmImiz.js +1 -0
  461. package/dist/webcomponents/{p-c3Fl3YIP.js → p-DBhtCf8Q.js} +1 -1
  462. package/dist/webcomponents/p-DJvAvUUk.js +1 -0
  463. package/dist/webcomponents/p-DMf85Fkr.js +1 -0
  464. package/dist/webcomponents/p-DNPS-Ypi.js +1 -0
  465. package/dist/webcomponents/p-DS4bd1Ly.js +1 -0
  466. package/dist/webcomponents/{p-CXEvc-gI.js → p-DTwFW2k_.js} +1 -1
  467. package/dist/webcomponents/p-Deqr5HqS.js +1 -0
  468. package/dist/webcomponents/{p-DFNk_DP8.js → p-Ds3WY2yn.js} +1 -1
  469. package/dist/webcomponents/p-Ds3id60A.js +1 -0
  470. package/dist/webcomponents/{p-CkX-nM5d.js → p-DzIKz0KN.js} +1 -1
  471. package/dist/webcomponents/{p-BY5BgAd3.js → p-Ky4xxYXA.js} +1 -1
  472. package/dist/webcomponents/p-LO0pl3n2.js +1 -0
  473. package/dist/webcomponents/{p-BDGiGASo.js → p-PFTJLtE0.js} +1 -1
  474. package/dist/webcomponents/p-_b8l4IX7.js +2 -0
  475. package/dist/webcomponents/p-a5c0c9f2.entry.js +1 -0
  476. package/dist/webcomponents/{p-acff2899.entry.js → p-a6968952.entry.js} +1 -1
  477. package/dist/webcomponents/{p-ab0e20cd.entry.js → p-b46fe458.entry.js} +1 -1
  478. package/dist/webcomponents/{p-9fec7ff1.entry.js → p-b5b74d88.entry.js} +1 -1
  479. package/dist/webcomponents/{p-85d82d77.entry.js → p-b5decaab.entry.js} +1 -1
  480. package/dist/webcomponents/{p-4de4598e.entry.js → p-b76dc152.entry.js} +1 -1
  481. package/dist/webcomponents/p-ba7a2fc3.entry.js +1 -0
  482. package/dist/webcomponents/{p-5170419e.entry.js → p-c13fd9de.entry.js} +1 -1
  483. package/dist/webcomponents/{p-1835e531.entry.js → p-c3565fb9.entry.js} +1 -1
  484. package/dist/webcomponents/{p-dccdcac8.entry.js → p-c483a314.entry.js} +1 -1
  485. package/dist/webcomponents/{p-3b01c9c4.entry.js → p-caec04f5.entry.js} +1 -1
  486. package/dist/webcomponents/p-cafae964.entry.js +1 -0
  487. package/dist/webcomponents/p-cb468a49.entry.js +1 -0
  488. package/dist/webcomponents/{p-85a1f152.entry.js → p-d2939473.entry.js} +1 -1
  489. package/dist/webcomponents/{p-15e47d22.entry.js → p-d64a6a1a.entry.js} +1 -1
  490. package/dist/webcomponents/{p-c85cc2ca.entry.js → p-d75dc638.entry.js} +1 -1
  491. package/dist/webcomponents/{p-3bb7b07f.entry.js → p-dab3d798.entry.js} +1 -1
  492. package/dist/webcomponents/{p-3013484d.entry.js → p-dd6b3425.entry.js} +1 -1
  493. package/dist/webcomponents/{p-870cee9b.entry.js → p-e3d40d2d.entry.js} +1 -1
  494. package/dist/webcomponents/{p-7576e449.entry.js → p-e69c7a73.entry.js} +1 -1
  495. package/dist/webcomponents/{p-80feb885.entry.js → p-efc6de19.entry.js} +1 -1
  496. package/dist/webcomponents/{p-1d917338.entry.js → p-f6ccfa5c.entry.js} +1 -1
  497. package/dist/webcomponents/p-f9f5f1d6.entry.js +1 -0
  498. package/dist/webcomponents/{p-459053e8.entry.js → p-fde2b53d.entry.js} +1 -1
  499. package/dist/webcomponents/p-foAbmzSM.js +1 -0
  500. package/dist/webcomponents/{p-DwBh6VCY.js → p-hj8k0lRi.js} +1 -1
  501. package/dist/webcomponents/{p-f0Mcy7rH.js → p-lbKbwF1T.js} +1 -1
  502. package/dist/webcomponents/{p-DWMITBje.js → p-tKOKVSGI.js} +1 -1
  503. package/dist/webcomponents/p-wWzS_4kc.js +1 -0
  504. package/dist/webcomponents/webcomponents.esm.js +1 -1
  505. package/package.json +1 -1
  506. package/dist/cjs/terminals-list-params-state-CKeoLpqm.js +0 -22
  507. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +0 -125
  508. package/dist/esm/terminals-list-params-state-DmevqV6O.js +0 -16
  509. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +0 -1
  510. package/dist/webcomponents/p-06413c6f.entry.js +0 -1
  511. package/dist/webcomponents/p-27f20ccf.entry.js +0 -1
  512. package/dist/webcomponents/p-38Vv0Nju.js +0 -1
  513. package/dist/webcomponents/p-48c4f90a.entry.js +0 -1
  514. package/dist/webcomponents/p-67c9b5a1.entry.js +0 -1
  515. package/dist/webcomponents/p-92e9f862.entry.js +0 -1
  516. package/dist/webcomponents/p-BC2AKcRD.js +0 -1
  517. package/dist/webcomponents/p-BGRyC6Jk.js +0 -1
  518. package/dist/webcomponents/p-BVHUyJdS.js +0 -1
  519. package/dist/webcomponents/p-BffoVWib.js +0 -1
  520. package/dist/webcomponents/p-BuWHmUFx.js +0 -1
  521. package/dist/webcomponents/p-CHdklybh.js +0 -2
  522. package/dist/webcomponents/p-CVm_PxHa.js +0 -1
  523. package/dist/webcomponents/p-CZ27xhGU.js +0 -1
  524. package/dist/webcomponents/p-CZjKnrRR.js +0 -1
  525. package/dist/webcomponents/p-DFEjrRhP.js +0 -1
  526. package/dist/webcomponents/p-DbpL6AJS.js +0 -1
  527. package/dist/webcomponents/p-DcDYb1RC.js +0 -1
  528. package/dist/webcomponents/p-DgKuxw6L.js +0 -1
  529. package/dist/webcomponents/p-DhUrfS4M.js +0 -1
  530. package/dist/webcomponents/p-Dk0xo1G9.js +0 -1
  531. package/dist/webcomponents/p-DrRpEAef.js +0 -1
  532. package/dist/webcomponents/p-DsL9brW-.js +0 -1
  533. package/dist/webcomponents/p-WJLXezN2.js +0 -1
  534. package/dist/webcomponents/p-a1665817.entry.js +0 -1
  535. package/dist/webcomponents/p-a84ca6ce.entry.js +0 -1
  536. package/dist/webcomponents/p-f66c183e.entry.js +0 -1
  537. package/dist/webcomponents/p-fa53a04f.entry.js +0 -1
  538. package/dist/webcomponents/p-fc7b56c7.entry.js +0 -1
  539. package/dist/webcomponents/p-oIQjnSZa.js +0 -1
@@ -1,125 +0,0 @@
1
- // Mock the store before importing the component
2
- const mockCheckoutStore = {
3
- selectedPaymentMethod: '',
4
- authToken: 'test-token',
5
- accountId: 'test-account',
6
- checkoutId: 'test-checkout',
7
- paymentToken: undefined,
8
- paymentMethodGroupId: undefined,
9
- savePaymentMethod: false,
10
- };
11
- jest.mock('../../../store/checkout.store', () => ({
12
- checkoutStore: mockCheckoutStore,
13
- onChange: jest.fn().mockReturnValue(jest.fn()),
14
- }));
15
- // Mock SVG imports
16
- jest.mock('../../../assets/plaid-icon.svg', () => 'mocked-svg-path');
17
- // Mock the PlaidService
18
- // Provide a concrete mock for PlaidService with expected method signatures
19
- jest.mock('../../../api/services/plaid.service', () => {
20
- return {
21
- PlaidService: jest.fn().mockImplementation(() => ({
22
- getLinkToken: jest.fn().mockResolvedValue({
23
- id: 'plt_123',
24
- type: 'link_token',
25
- data: { link_token: 'link-sandbox-abc', id: 'plt_123' },
26
- }),
27
- tokenizeBankAccount: jest.fn().mockResolvedValue({
28
- id: 'pm_123',
29
- type: 'payment_method',
30
- data: { bank_account: { token: 'tok_pm_456' } },
31
- }),
32
- })),
33
- };
34
- });
35
- import { newSpecPage } from "@stencil/core/testing";
36
- import { PlaidPaymentMethod } from "./plaid-payment-method";
37
- import { PAYMENT_METHODS } from "../ModularCheckout";
38
- describe('PlaidPaymentMethod', () => {
39
- let component;
40
- let page;
41
- beforeEach(async () => {
42
- // Reset store state
43
- mockCheckoutStore.selectedPaymentMethod = '';
44
- mockCheckoutStore.authToken = 'test-token';
45
- mockCheckoutStore.accountId = 'test-account';
46
- mockCheckoutStore.checkoutId = 'test-checkout';
47
- // Mock Plaid global
48
- global.Plaid = {
49
- create: jest.fn().mockReturnValue({
50
- open: jest.fn(),
51
- }),
52
- };
53
- page = await newSpecPage({
54
- components: [PlaidPaymentMethod],
55
- html: '<justifi-plaid-payment-method></justifi-plaid-payment-method>',
56
- });
57
- component = page.rootInstance;
58
- });
59
- afterEach(() => {
60
- jest.clearAllMocks();
61
- });
62
- describe('Basic Functionality', () => {
63
- it('should render without crashing', async () => {
64
- // Wait for component to render
65
- await page.waitForChanges();
66
- // Basic check that component exists
67
- expect(component).toBeTruthy();
68
- expect(page.root).toBeTruthy();
69
- });
70
- it('should initialize with correct default state', () => {
71
- expect(component.isSelected).toBe(false);
72
- expect(component.publicToken).toBeNull();
73
- expect(component.error).toBeNull();
74
- });
75
- });
76
- describe('Store Integration', () => {
77
- it('should initialize selection state from store', () => {
78
- // Set store value before creating component
79
- mockCheckoutStore.selectedPaymentMethod = { type: PAYMENT_METHODS.PLAID };
80
- // Recreate component to test initialization
81
- return newSpecPage({
82
- components: [PlaidPaymentMethod],
83
- html: '<justifi-plaid-payment-method></justifi-plaid-payment-method>',
84
- }).then(page => {
85
- const component = page.rootInstance;
86
- expect(component.isSelected).toBe(true); // Component should initialize with selection state from store
87
- });
88
- });
89
- });
90
- describe('Component Methods', () => {
91
- it('should provide isCurrentlySelected method', async () => {
92
- component.isSelected = true;
93
- const result = await component.isCurrentlySelected();
94
- expect(result).toBe(true);
95
- });
96
- it('should provide reset method', async () => {
97
- component.publicToken = 'test-token';
98
- component.error = {
99
- code: 'plaid-sdk-load-failed',
100
- message: 'test-error',
101
- severity: 'error',
102
- retryable: true
103
- };
104
- await component.reset();
105
- expect(component.publicToken).toBeNull();
106
- expect(component.error).toBeNull();
107
- expect(component.isAuthenticating).toBe(false);
108
- });
109
- });
110
- describe('Plaid success flow', () => {
111
- it('stores public token in store and does not set payment token', async () => {
112
- // Arrange
113
- mockCheckoutStore.selectedPaymentMethod = { type: PAYMENT_METHODS.PLAID };
114
- const instance = page.rootInstance;
115
- // Act: simulate Plaid success
116
- instance.handlePlaidSuccess('public-sandbox-xyz', {});
117
- await page.waitForChanges();
118
- // Allow any async handlers to complete
119
- await new Promise((r) => setTimeout(r, 0));
120
- // Assert
121
- expect(mockCheckoutStore.plaidPublicToken).toBe('public-sandbox-xyz');
122
- expect(mockCheckoutStore.paymentToken).toBeUndefined();
123
- });
124
- });
125
- });
@@ -1,16 +0,0 @@
1
- import { c as createStore } from './index-DSUeaNWH.js';
2
-
3
- const filterParamsInitialState = {};
4
- const propsParamsInitialState = {};
5
- const filterParamsStore = createStore(() => filterParamsInitialState);
6
- const { state: filterParams, on: onQueryParamsChange } = filterParamsStore;
7
- const propsParamsStore = createStore(() => propsParamsInitialState);
8
- const { state: propsParams } = propsParamsStore;
9
- const getRequestParams = () => {
10
- return Object.assign(Object.assign({}, filterParams), propsParams);
11
- };
12
- const clearParams = () => {
13
- filterParamsStore.reset();
14
- };
15
-
16
- export { clearParams as c, filterParams as f, getRequestParams as g, onQueryParamsChange as o, propsParams as p };
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as a}from"./p-CHdklybh.js";import"./p-BuWHmUFx.js";import"./p-HXpYMWUU.js";import{C as s,a as i}from"./p-Cjcsf8ku.js";import{f as n}from"./p-c4Mh3ZZ_.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c,J as o}from"./p-cSt1EbTB.js";import{g as p,a as h}from"./p-D2muobcE.js";import{P as d}from"./p-CIN-y_rT.js";import{T as f,l,a as u,b as m,c as y,d as b,e as _,f as j,g,h as k,i as T,j as w,k as v}from"./p-UmoEDufy.js";import{S as C}from"./p-CXEvc-gI.js";import{T as D}from"./p-CZfYo5-1.js";import{a as S}from"./p-BHf9IqGw.js";import{N as I,O as x}from"./p-RvUQ__Pq.js";import"./p-DwBh6VCY.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DgKuxw6L.js";import"./p-Dph3Ao9s.js";import"./p-CkX-nM5d.js";const E={created_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:I,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:I,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:I,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:I,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:I,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:I,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},F={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},R={created_at:(e,a)=>t("td",{part:x(a)},t("div",{class:"fw-bold"},S(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:x(a)},F[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:x(a)},e.id),amount:(e,a)=>t("td",{part:x(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:x(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:x(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:x(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:x(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:x(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:x(a)},e.source_id),source_type:(e,a)=>t("td",{part:x(a)},e.source_type)},B=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=r,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,E,R),c(),this.analytics=new o(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:i,onSuccess:r,onError:c,final:o})=>{var d;try{const o=await a.fetchPaymentTransactions(t,e,i);o.error?c({error:h(o.error),code:p(null===(d=o.error)||void 0===d?void 0:d.code),severity:s.ERROR}):r({balanceTransactions:o.data.map((t=>new n(t))),pagingInfo:Object.assign({},o.page_info)})}catch(t){const e=p(null==t?void 0:t.code);c({error:h(t),code:e,severity:s.ERROR})}finally{o()}})({id:this.paymentId,authToken:this.authToken,service:new d})({params:this.pagingParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(i.MISSING_PROPS,this.errorMessage,s.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return t(C,{key:"c73dfcd1d3038dbca6800b9bd0f4e6c5fba2b8bf"},t(l,{key:"66d8f92a96f2ace82c05d10a9f538d6ad22b588f"},t(u,{key:"cff0e6344efd035f264326ecc79615bddfe8d0ac"},t(m,{key:"702e53ae1d59ab674425f4753c1cf0b6415feacd"},t(y,{key:"7773de2d113af30b3a0d64405dce5d5e09a0bb8c"},this.transactionsTable.columnData.map((t=>t)))),t(b,{key:"7b86d982f52037349b5cc2f7ec5fa800e38ed519"},t(_,{key:"040c3dfb101c1ea127cfcf982e4415ae94661b2a",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(j,{key:"6d25f8a886cf9b15ea9c17c44dfe0bce6125c557",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(g,{key:"60bb435ecf7a595cdb028df4cd95c1361ce06c8d",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(k,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(T,{key:"accb2e3cb9dc8521c50db6a8ed306f91e5aa44c7"},t(w,{key:"a4408276ce552fe4c43c60f79e7a2a3602566b2c"},t(v,{key:"20b13cc71f8b62166e8b6e9fce5dea2d1b4c5ac0",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"90657ed6a805af46446bc8fb316a52252a9a2bf4",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{B as justifi_payment_transactions_list}
@@ -1 +0,0 @@
1
- import{h as t,r as s,c as e}from"./p-CHdklybh.js";import{a as i,b as r}from"./p-C9iide2W.js";import{F as o,c as n,b as a}from"./p-DiJD6Iqx.js";import{A as l,C as h,R as c,c as d}from"./p-BlJnA265.js";import{C as u,P as m}from"./p-B-iV5cYd.js";import{C as p}from"./p-RvUQ__Pq.js";import{S as f}from"./p-CVm_PxHa.js";import"./p-CZfYo5-1.js";import{a as v,r as b,s as y,b as g}from"./p-yH3TC3ZQ.js";import{a as w,B as _}from"./p-XYgDHrVL.js";import{E as x,k as j,l as k}from"./p-c4Mh3ZZ_.js";import{z as S,A as T,B as C,y as H,C as O,D as L}from"./p-PSJOKMWp.js";import"./p-BuWHmUFx.js";import"./p-HXpYMWUU.js";import{C as D,a as B}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{n as E}from"./p-BnjCmwMr.js";import{B as V}from"./p-BB-9jeDZ.js";import{i as A,a as P}from"./p-tYuXMkCd.js";import{S as I}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BHf9IqGw.js";import"./p-DwBh6VCY.js";class W{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const U=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(f,{width:"25%"})),t("div",{class:"col-12"},t(f,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"50%"}),t(f,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"65%"}),t(f,{width:"35%"}))),F=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(f,{width:"40%",height:"40px"})),t(U,null),t(U,null),t(U,null)),q=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.additional_questions=new l(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s})),this.additional_questions=new l(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}recurringPaymentsWatcher(t){this.recurringPayments="Yes"===(null==t?void 0:t.business_recurring_payments)}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{additional_questions:new l(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n,a;const l=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Additional Questions"),t("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business’ estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==l?void 0:l.business_revenue,maskOptions:u.WHOLE})),t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==l?void 0:l.business_payment_volume,maskOptions:u.WHOLE})),t("div",{class:"col-12"},t("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:v,defaultValue:null==l?void 0:l.business_when_service_received})),t("div",{class:"col-12"},t("form-control-select",{name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_recurring_payments,options:b,defaultValue:null==l?void 0:l.business_recurring_payments})),t("div",{class:"col-12",hidden:!this.recurringPayments},t("form-control-text",{name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==l?void 0:l.business_recurring_payments_percentage,helpText:"For example: 50% monthly, 50% annual."})),t("div",{class:"col-12"},t("form-control-select",{name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:y,defaultValue:null==l?void 0:l.business_seasonal})),t("div",{class:"col-12"},t("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_other_payment_details,defaultValue:null==l?void 0:l.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},N=(t,s)=>t.some((t=>t.document_type===s)),Y="Please upload either a voided check or a bank statement. Only one is required.",M=(t,s)=>{const e=N(t,x.voidedCheck),i=N(t,x.bankStatement),r=e||i,o=n().shape({bank_name:L.required("Enter bank name"),nickname:O.required("Enter nickname"),account_owner_name:H.required("Enter account owner name"),account_type:C.required("Select account type"),account_number:T.required("Enter account number"),routing_number:S.required("Enter routing number"),voided_check:a().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(Y),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(Y),otherwise:t=>t.notRequired()})},[["voided_check","bank_statement"]]),l=n({bank_name:L.nullable(),nickname:O.nullable(),account_owner_name:H.nullable(),account_type:C.nullable(),account_number:T.nullable(),routing_number:S.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},R=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new j,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(M(this.existingDocuments,this.allowOptionalFields)),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new k({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new W(t.data.bank_accounts[0]):(this.bankAccount=new W({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:B.POST_ERROR,message:s.error.message,severity:D.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await t.getFileData(),e=await fetch(t.presigned_url,{method:"PUT",body:s});return this.handleUploadResponse(e)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:B.POST_ERROR,message:t.error.message,severity:D.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(M(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){return new W(this.formController.values.getValue()).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:B.POST_ERROR,severity:D.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:w.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",{class:"mb-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Bank Account Info"),t("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),t("hr",{class:"mt-2"}),t("bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),t("fieldset",{class:"mt-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Document Uploads"),t("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),t("hr",{class:"mt-2"}),t("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),t("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},X=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new h(t.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new h(this.formController.values.getValue()).payload}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(r(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){const s=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Business Information")),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:s.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),t("div",{class:"col-12"},t("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:s.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),t("div",{class:"col-12 col-md-8"},t("form-control-select",{name:"classification",label:"Business Classification",options:g,defaultValue:s.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-4"},t("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:s.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"industry",label:"Industry",defaultValue:s.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:s.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:E,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."})),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:s.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:s.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})))))}},Z=class{constructor(t){s(this,t),this.clickEvent=e(this,"click-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.matchRef=(t,s)=>{const e=this.refs.findIndex((t=>t===s));-1!==e&&(this.refs[e]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:_.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((s=>s.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)}}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const s=this.refs.map((t=>t.validate()));if(!(await Promise.all(s)).every((t=>t)))return;const e=this.refs.map((t=>t.submit()));(await Promise.all(e)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const s=t.detail,e=this.ownersPayload.map((t=>t.id===s.id?s:t));e.includes(s)||(e[this.ownersPayload.findIndex((t=>!t.id))]=s,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?t(F,null):t("div",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Owners"),t("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},this.ownersPayload.map((s=>t("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),t("div",{class:"d-flex justify-content-start"},t("div",{class:"gap-2"},t(V,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},J=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new c(t.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(A("representative",this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(F,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},G=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.legal_address=new d(t.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new d(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(P(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n;const a=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Legal Address of your Business"),t("form-control-tooltip",{helpText:"No PO Boxes."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line1,errorText:null===(s=this.errors)||void 0===s?void 0:s.line1})),t("div",{class:"col-12"},t("form-control-text",{name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line2,errorText:null===(e=this.errors)||void 0===e?void 0:e.line2})),t("div",{class:"col-12"},t("form-control-text",{name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.city,errorText:null===(i=this.errors)||void 0===i?void 0:i.city})),t("div",{class:"col-12"},t("form-control-select",{name:"state",label:"State",options:I,inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.state,errorText:null===(r=this.errors)||void 0===r?void 0:r.state})),t("div",{class:"col-12"},t("form-control-text",{name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:E})),t("div",{class:"col-12"},t("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{q as justifi_additional_questions_form_step_core,R as justifi_business_bank_account_form_step_core,X as justifi_business_core_info_form_step_core,Z as justifi_business_owners_form_step_core,J as justifi_business_representative_form_step_core,G as justifi_legal_address_form_step_core}
@@ -1 +0,0 @@
1
- import{c as s}from"./p-DwBh6VCY.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,p=s((()=>a)),{state:j}=p,r=()=>Object.assign(Object.assign({},c),j),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,j as p}
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as r}from"./p-CHdklybh.js";import{A as o}from"./p-Dph3Ao9s.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as p,a}from"./p-D2muobcE.js";import{E as n}from"./p-mxgDrK6T.js";import{c as h,J as c}from"./p-cSt1EbTB.js";import"./p-BuWHmUFx.js";import"./p-DwBh6VCY.js";import"./p-BHf9IqGw.js";import"./p-HXpYMWUU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-DgKuxw6L.js";const m=o();class u{async fetchGrossVolumeChartData(s,t){return m.get({endpoint:`account/${s}/reports/gross_volume`,authToken:t})}}const d=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var n;try{const h=await r.fetchGrossVolumeChartData(s,t);h.error?e({error:a(h.error),code:p(null===(n=h.error)||void 0===n?void 0:n.code),severity:i.ERROR}):o(h.data)}catch(s){const t=p(null==s?void 0:s.code);e({error:a(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?n(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{r as t,c as s,h as i}from"./p-CHdklybh.js";import{P as r}from"./p-CIN-y_rT.js";import{m as p}from"./p-Dk0xo1G9.js";import{E as e}from"./p-mxgDrK6T.js";import{C as o,a as m}from"./p-Cjcsf8ku.js";import{c as a,J as h}from"./p-cSt1EbTB.js";import"./p-Dph3Ao9s.js";import"./p-BuWHmUFx.js";import"./p-DwBh6VCY.js";import"./p-BHf9IqGw.js";import"./p-HXpYMWUU.js";import"./p-c4Mh3ZZ_.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D2muobcE.js";import"./p-RvUQ__Pq.js";import"./p-DgKuxw6L.js";const n=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.paymentService=new r,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){a(),this.analytics=new h(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=p({id:this.paymentId,authToken:this.authToken,service:new r}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:m.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?e(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{n as justifi_payment_details}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as i}from"./p-CHdklybh.js";import{c as a,J as s}from"./p-cSt1EbTB.js";import{c as d}from"./p-BVHUyJdS.js";import{d as o}from"./p-RvUQ__Pq.js";import{S as c}from"./p-CXEvc-gI.js";import"./p-CZfYo5-1.js";import{P as h}from"./p-DCIW8z1f.js";import"./p-DgKuxw6L.js";import"./p-Dph3Ao9s.js";import"./p-BuWHmUFx.js";import"./p-DwBh6VCY.js";import"./p-BHf9IqGw.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const l=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event"),this.loadedEvent=t(this,"loaded"),this.submitEvent=t(this,"submit-event"),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.isSubmitting=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){a(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){this.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=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.disableBnpl=this.disableBnpl,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(c,{key:"8967ceca5773c0f5913b893f8b626ef2eb58abe8"},i("justifi-modular-checkout",{key:"74294e37e359e68601699a543751c0835f074d47",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId},i("div",{key:"9daf1561a627f0a84dd7390c7d44ffab15a4a746",class:"row gy-3 jfi-checkout-core"},i("div",{key:"1f45fa61d3fa5f3e21d3086123aef3137734a363",class:"col-12",part:o},i("justifi-header",{key:"812d922d688bb5e00eaff3f967350b705454a06c",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"9c8cfe346833339197f3922dcbee7230308064e6"},i("justifi-checkout-summary",{key:"8b6410ed811ff2793167ab8b21954d6bbb52c3d8"}))),i("div",{key:"87413afe99372a8523b25b8e3fe14b17666328ac",class:"col-12 mt-4"},i("slot",{key:"f8342527afd4e86abda3275db447e82f72e13e03",name:"insurance"})),i("div",{key:"97b39e4f03829ea5d1d29b2b1be3066ff4100ac7",class:"col-12 mt-4"},i("justifi-header",{key:"2b3196519d949d534595767879102951caad5788",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"c40bbfddfb990feda4aa75ab4caa38b4376b4a04",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"c323e2e892985b02a607253355b0b72eb5bfe9e9",class:"d-flex flex-column"},i("section",{key:"c85bb72343b256d072a086a4974167d421154023"},i("div",{key:"f4cb5c3b7fa4facbff7882b769da2bf9b9d01811"},i("justifi-saved-payment-methods",{key:"087cbde10cb23af391eb848f53a3732cdd528cd0"}),this.availablePaymentMethods.includes(h.SEZZLE)&&i("justifi-radio-list-item",{key:"35c7b0484cbec62b115aa8851c8266cd4d39b2b6",name:"paymentMethodType",value:h.SEZZLE,checked:(null===(e=null==d?void 0:d.selectedPaymentMethod)||void 0===e?void 0:e.type)===h.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(h.PLAID)&&i("justifi-radio-list-item",{key:"a7ec30342cbb3453b460e72d60a1c726e3a3efa3",name:"paymentMethodType",value:h.PLAID,checked:(null===(t=null==d?void 0:d.selectedPaymentMethod)||void 0===t?void 0:t.type)===h.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("justifi-tokenize-payment-method",{key:"590b2085e9aee9a06f5ee1755aeeb41aa3448699",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:"b725e958faa55605e4542f59d461780eeced96fe",class:"mt-4"},i("justifi-button",{key:"119f7879620fc6dd06517c7a894ec05b60b1d4f8",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"],disableBnpl:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{l as justifi_checkout}
@@ -1 +0,0 @@
1
- import{c as s}from"./p-DwBh6VCY.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,p=s((()=>a)),{state:j}=p,r=()=>Object.assign(Object.assign({},c),j),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,j as p}
@@ -1 +0,0 @@
1
- import{A as o}from"./p-Dph3Ao9s.js";import{C as s}from"./p-Cjcsf8ku.js";import{S as r}from"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import"./p-BuWHmUFx.js";import"./p-HXpYMWUU.js";import{g as t,a as c}from"./p-D2muobcE.js";const n=o();class a{async fetchSubAccounts(o,s,r){return n.get({authToken:s,endpoint:"sub_accounts",params:r,headers:{Account:o}})}}const p=({accountId: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:s.ERROR})}{const o=Object.assign({},j.page_info);e({subAccounts:(null===(u=j.data)||void 0===u?void 0:u.map((o=>new r(o))))||[],pagingInfo:o})}}catch(o){const r=t(null==o?void 0:o.code);return i({error:o.message||o,code:r,severity:s.ERROR})}};export{a as S,p as m}
@@ -1 +0,0 @@
1
- import{c as e}from"./p-DwBh6VCY.js";import{P as o}from"./p-DCIW8z1f.js";const n={accountId:"",authToken:"",billingFormFields:{address_postal_code:""},bnplEnabled:!1,insuranceEnabled:!1,bnplProviderApiVersion:"",bnplProviderCheckoutUrl:"",bnplProviderClientId:"",bnplProviderMode:"",checkoutId:"",checkoutLoaded:!1,bankAccountVerification:void 0,disableBankAccount:!1,disableBnpl:!1,disableCreditCard:!1,disablePaymentMethodGroup:!1,paymentAmount:0,paymentCurrency:"USD",paymentDescription:"",paymentMethodGroupId:void 0,paymentMethods:[],paymentToken:void 0,savePaymentMethod:!1,selectedPaymentMethod:void 0,totalAmount:0,plaidPublicToken:void 0,plaidLinkTokenId:void 0},{state:t,onChange:d}=e(n);function a(){var e;const n=[];if(!t.disablePaymentMethodGroup&&(null===(e=t.paymentMethods)||void 0===e?void 0:e.length)){const e=t.paymentMethods.some((e=>e.type===o.SAVED_CARD)),d=t.paymentMethods.some((e=>e.type===o.SAVED_BANK_ACCOUNT));e&&!t.disableCreditCard&&n.push(o.SAVED_CARD),d&&!t.disableBankAccount&&n.push(o.SAVED_BANK_ACCOUNT)}return t.disableCreditCard||n.push(o.NEW_CARD),t.disableBankAccount||n.push(o.NEW_BANK_ACCOUNT),t.bnplEnabled&&!t.disableBnpl&&n.push(o.SEZZLE),!0!==t.bankAccountVerification||t.disableBankAccount||n.push(o.PLAID),n}function i(e){Object.keys(n).forEach((o=>{d(o,(n=>e(o,n)))}))}Object.keys(n).forEach((e=>{d(e,(o=>{t[e]=o}))}));export{d as a,t as c,a as g,i as o}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-Dph3Ao9s.js";import"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";const o=t();class e{async fetchCheckout(t,e){return o.get({endpoint:`checkouts/${e}`,authToken:t})}async fetchCheckouts(t,e,s){return o.get({endpoint:"checkouts",params:s,headers:{Account:t},authToken:e})}async complete(t,e,s){const c=`checkouts/${e}/complete`,n={payment_mode:s.payment_mode};return s.payment_token&&(n.payment_token=s.payment_token),o.post({endpoint:c,body:n,authToken:t})}}export{e as C}
@@ -1 +0,0 @@
1
- import{c as t}from"./p-DwBh6VCY.js";const s={apiOrigin:"https://wc-proxy.justifi.ai",iframeOrigin:"https://components.justifi.ai",accountId:""},i=t((()=>s)),{state:e}=i;let o;const a=new Promise((t=>{o=t})),c=t=>{Object.assign(e,t),o()},n=(t=200)=>new Promise((s=>{const i=setTimeout((()=>{s()}),t);a.then((()=>{clearTimeout(i),s()}))}));export{e as c,c as s,n as w}
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},e=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.t=t)},o=(t,n)=>n in t,l=(t,n)=>(0,console.error)(t,n),s=new Map,i="http://www.w3.org/1999/xlink",r="undefined"!=typeof window?window:{},c={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},u=t=>Promise.resolve(t),a=!!(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})()&&(()=>!!r.document&&Object.getOwnPropertyDescriptor(r.document.adoptedStyleSheets,"length").writable)(),f=!1,d=[],h=[],p=(t,n)=>e=>{t.push(e),f||(f=!0,n&&4&c.o?b(m):c.raf(m))},v=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){l(t)}t.length=0},m=()=>{v(d),v(h),(f=d.length>0)&&c.raf(m)},b=t=>u().then(t),y=p(h,!0),w=t=>"object"==(t=typeof t)||"function"===t;((n,e)=>{for(var o in e)t(n,o,{get:e[o],enumerable:!0})})({},{err:()=>g,map:()=>j,ok:()=>$,unwrap:()=>S,unwrapErr:()=>k});var $=t=>({isOk:!0,isErr:!1,value:t}),g=t=>({isOk:!1,isErr:!0,value:t});function j(t,n){if(t.isOk){const e=n(t.value);return e instanceof Promise?e.then((t=>$(t))):$(e)}if(t.isErr)return g(t.value);throw"should never get here"}var O,S=t=>{if(t.isOk)return t.value;throw t.value},k=t=>{if(t.isErr)return t.value;throw t.value};function E(){const t=this.attachShadow({mode:"open"});void 0===O&&(O=null),O&&(a?t.adoptedStyleSheets.push(O):t.adoptedStyleSheets=[...t.adoptedStyleSheets,O])}var x=t=>{const n=P(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&C(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!M(t,R(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&P(t,"childNodes").length&&x(t)}};function C(t,n,e){let o,l=0,s=[];for(;l<t.length;l++)o=t[l],!o["s-sr"]||n&&o["s-hn"]!==n||void 0!==e||s.push(o),s=[...s,...C(o.childNodes,n,e)];return s}var M=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)R(l)!==n||!e&&l["s-sr"]||o.push(l);return o},N=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,R=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function P(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var T=new WeakMap,F=(t,n,...e)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!w(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?L(null,o):o),r=i)};if(u(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,c,W);const a=L(t,null);return a.u=n,c.length>0&&(a.h=c),a.p=l,a.v=s,a},L=(t,n)=>({o:0,m:t,i:n,$:null,h:null,u:null,p:null,v:null}),U={},W={forEach:(t,n)=>t.map(A).forEach(n),map:(t,n)=>t.map(A).map(n).map(D)},A=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.v,vtag:t.m,vtext:t.i}),D=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),F(t.vtag,n,...t.vchildren||[])}const n=L(t.vtag,t.vtext);return n.u=t.vattrs,n.h=t.vchildren,n.p=t.vkey,n.v=t.vname,n},_=t=>{const n=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};_("::slotted"),_(":host"),_(":host-context");var B,H,q=(t,n)=>null==t||w(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t,z=t=>{var e;return null==(e=n(t))?void 0:e.$hostElement$},I=(t,n)=>{const e=z(t);return{emit:t=>V(e,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},V=(t,n,e)=>{const o=c.ce(n,e);return t.dispatchEvent(o),o},Y=(t,n,e,l,s,u)=>{if(e===l)return;let a=o(t,n),f=n.toLowerCase();if("class"===n){const n=t.classList,o=J(e);let s=J(l);n.remove(...o.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===n){for(const n in e)l&&null!=l[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in l)e&&l[n]===e[n]||(n.includes("-")?t.style.setProperty(n,l[n]):t.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(t);else if(a||"o"!==n[0]||"n"!==n[1]){const o=w(l);if((a||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[n]!==l&&(t[n]=l);else{const o=null==l?"":l;"list"===n?a=!1:null!=e&&t[n]==o||("function"==typeof t.__lookupSetter__(n)?t[n]=o:t.setAttribute(n,o))}}catch(t){}let r=!1;f!==(f=f.replace(/^xlink\:?/,""))&&(n=f,r=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(n)||(r?t.removeAttributeNS(i,n):t.removeAttribute(n)):(!a||4&u||s)&&!o&&1===t.nodeType&&(l=!0===l?"":l,r?t.setAttributeNS(i,n,l):t.setAttribute(n,l))}else if(n="-"===n[2]?n.slice(3):o(r,f)?f.slice(2):f[2]+n.slice(3),e||l){const o=n.endsWith(K);n=n.replace(Q,""),e&&c.rel(t,n,e,o),l&&c.ael(t,n,l,o)}},G=/\s/,J=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(G):[]),K="Capture",Q=RegExp(K+"$"),X=(t,n,e)=>{const o=11===n.$.nodeType&&n.$.host?n.$.host:n.$,l=t&&t.u||{},s=n.u||{};for(const t of Z(Object.keys(l)))t in s||Y(o,t,l[t],void 0,e,n.o);for(const t of Z(Object.keys(s)))Y(o,t,l[t],s[t],e,n.o)};function Z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var tt=!1,nt=!1,et=!1,ot=!1,lt=(t,n,e)=>{var o;const l=n.h[e];let s,i,c,u=0;if(tt||(et=!0,"slot"===l.m&&(l.o|=l.h?2:1)),null!==l.i)s=l.$=r.document.createTextNode(l.i);else if(1&l.o)s=l.$=r.document.createTextNode(""),X(null,l,ot);else{if(ot||(ot="svg"===l.m),!r.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=l.$=r.document.createElementNS(ot?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!tt&&2&l.o?"slot-fb":l.m),ot&&"foreignObject"===l.m&&(ot=!1),X(null,l,ot),l.h)for(u=0;u<l.h.length;++u)i=lt(t,l,u),i&&s.appendChild(i);"svg"===l.m?ot=!1:"foreignObject"===s.tagName&&(ot=!0)}return s["s-hn"]=H,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=B,s["s-sn"]=l.v||"",s["s-rf"]=null==(o=l.u)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===R(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(s),c=t&&t.h&&t.h[e],c&&c.m===l.m&&t.$&&st(t.$,!1)),s},st=(t,n)=>{c.o|=1;const e=Array.from(t.__childNodes||t.childNodes);for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==H&&o["s-ol"]&&(pt(ut(o).parentNode,o,ut(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,et=!0),n&&st(o,n)}c.o&=-2},it=(t,n,e,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===H&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=lt(null,e,l),i&&(o[l].$=i,pt(r,i,ut(n))))},rt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.$;ht(n),t&&(nt=!0,t["s-ol"]?t["s-ol"].remove():st(t,!0),t.remove())}}},ct=(t,n,e=!1)=>t.m===n.m&&("slot"===t.m?t.v===n.v:e?(e&&!t.p&&n.p&&(t.p=n.p),!0):t.p===n.p),ut=t=>t&&t["s-ol"]||t,at=(t,n,e=!1)=>{const o=n.$=t.$,l=t.h,s=n.h,i=n.m,r=n.i;let c;null===r?(X(t,n,ot="svg"===i||"foreignObject"!==i&&ot),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=n.length-1,d=n[0],h=n[f],p=o.length-1,v=o[0],m=o[p];for(;r<=f&&c<=p;)if(null==d)d=n[++r];else if(null==h)h=n[--f];else if(null==v)v=o[++c];else if(null==m)m=o[--p];else if(ct(d,v,l))at(d,v,l),d=n[++r],v=o[++c];else if(ct(h,m,l))at(h,m,l),h=n[--f],m=o[--p];else if(ct(d,m,l))"slot"!==d.m&&"slot"!==m.m||st(d.$.parentNode,!1),at(d,m,l),pt(t,d.$,h.$.nextSibling),d=n[++r],m=o[--p];else if(ct(h,v,l))"slot"!==d.m&&"slot"!==m.m||st(h.$.parentNode,!1),at(h,v,l),pt(t,h.$,d.$),h=n[--f],v=o[++c];else{for(u=-1,a=r;a<=f;++a)if(n[a]&&null!==n[a].p&&n[a].p===v.p){u=a;break}u>=0?(i=n[u],i.m!==v.m?s=lt(n&&n[c],e,u):(at(i,v,l),n[u]=void 0,s=i.$),v=o[++c]):(s=lt(n&&n[c],e,c),v=o[++c]),s&&pt(ut(d.$).parentNode,s,ut(d.$))}r>f?it(t,null==o[p+1]?null:o[p+1].$,e,o,c,p):c>p&&rt(n,r,f)})(o,l,n,s,e):null!==s?(null!==t.i&&(o.textContent=""),it(o,null,n,s,0,s.length-1)):!e&&null!==l&&rt(l,0,l.length-1),ot&&"svg"===i&&(ot=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.i!==r&&(o.data=r)},ft=[],dt=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"])if(N(n,l)){let e=ft.find((t=>t.j===n));nt=!0,n["s-sn"]=n["s-sn"]||l,e?(e.j["s-sh"]=t["s-hn"],e.O=t):(n["s-sh"]=t["s-hn"],ft.push({O:t,j:n})),n["s-sr"]&&ft.map((t=>{N(t.j,n["s-sn"])&&(e=ft.find((t=>t.j===n)),e&&!t.O&&(t.O=e.O))}))}else ft.some((t=>t.j===n))||ft.push({j:n})}1===t.nodeType&&dt(t)}},ht=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(ht)},pt=(t,n,e)=>null==t?void 0:t.insertBefore(n,e),vt=(t,n)=>{if(n&&!t.S&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.S=()=>{n["s-p"].splice(e-1,1),o()})))}},mt=(t,n)=>{if(t.o|=16,4&t.o)return void(t.o|=512);vt(t,t.k);const e=()=>bt(t,n);if(!n)return y(e);queueMicrotask((()=>{e()}))},bt=(t,n)=>{const e=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.o|=256,t.C&&(t.C.map((([t,n])=>xt(o,t,n,e))),t.C=void 0),l=xt(o,"componentWillLoad",void 0,e)):l=xt(o,"componentWillUpdate",void 0,e),l=yt(l,(()=>xt(o,"componentWillRender",void 0,e))),yt(l,(()=>$t(t,o,n)))},yt=(t,n)=>wt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),wt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,$t=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];jt(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>St(t);0===n.length?e():(Promise.all(n).then(e),t.o|=4,n.length=0)}},gt=null,jt=(t,n,e,o)=>{try{gt=n,n=n.render(),t.o&=-17,t.o|=2,((t,n,e=!1)=>{var o,l,s,i;const u=t.$hostElement$,a=t.M,f=t.N||L(null,null),d=(t=>t&&t.m===U)(n)?n:F(null,null,n);if(H=u.tagName,e&&d.u)for(const t of Object.keys(d.u))u.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.u[t]=u[t]);if(d.m=null,d.o|=4,t.N=d,d.$=f.$=u.shadowRoot||u,tt=!(!(1&a.o)||128&a.o),B=u["s-cr"],nt=!1,at(f,d,e),c.o|=1,et){dt(d.$);for(const t of ft){const n=t.j;if(!n["s-ol"]&&r.document){const t=r.document.createTextNode("");t["s-nr"]=n,pt(n.parentNode,n["s-ol"]=t,n)}}for(const t of ft){const n=t.j,r=t.O;if(r){const t=r.parentNode;let e=r.nextSibling;{let s=null==(o=n["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===n["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===n||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){e=o;break}}s=s.previousSibling}}(!e&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==e)&&n!==e&&(!n["s-hn"]&&n["s-ol"]&&(n["s-hn"]=n["s-ol"].parentNode.nodeName),pt(t,n,e),1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(s=n["s-ih"])&&s)),n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(e&&(n["s-ih"]=null!=(i=n.hidden)&&i),n.hidden=!0)}}nt&&x(d.$),c.o&=-2,ft.length=0,B=void 0})(t,n,o)}catch(n){l(n,t.$hostElement$)}return gt=null,null},Ot=()=>gt,St=t=>{const n=t.$hostElement$,e=t.t,o=t.k;xt(e,"componentDidRender",void 0,n),64&t.o?xt(e,"componentDidUpdate",void 0,n):(t.o|=64,Ct(n),xt(e,"componentDidLoad",void 0,n),t.R(n),o||Et()),t.P(n),t.S&&(t.S(),t.S=void 0),512&t.o&&b((()=>mt(t,!1))),t.o&=-517},kt=t=>{var e;{const o=n(t),l=null==(e=null==o?void 0:o.$hostElement$)?void 0:e.isConnected;return l&&2==(18&o.o)&&mt(o,!1),l}},Et=()=>{b((()=>V(r,"appload",{detail:{namespace:"webcomponents"}})))},xt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){l(t,o)}},Ct=t=>t.classList.add("hydrated"),Mt=(t,e,o,s)=>{const i=n(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${s.T}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.F.get(e),u=i.o,a=i.t;if(o=q(o,s.L[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.F.set(e,o),a)){if(s.U&&128&u){const t=s.U[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){l(t,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,c,e))return;mt(i,!1)}}},Nt=(t,e,o)=>{var l,s;const i=t.prototype;if(e.L||e.U||t.watchers){t.watchers&&!e.U&&(e.U=t.watchers);const r=Object.entries(null!=(l=e.L)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.L[t][0]|=2048),r&&(e.L[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.L[t][0]))return((t,e)=>n(this).F.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(i){if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.F.get(t)?s=i.F.get(t):!i.F.get(t)&&n&&i.F.set(t,n),r.call(this,q(s,l)),void Mt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.L[t][0]))return Mt(this,t,s,e),void(1&o&&!i.t&&i.W.then((()=>{4096&e.L[t][0]&&i.t[t]!==i.F.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.F.get(t)&&n&&i.F.set(t,n),i.t[t]=q(s,l),Mt(this,t,i.t[t],e)};i.t?n():i.W.then((()=>n()))}}}})}else 1&o&&64&l&&Object.defineProperty(i,t,{value(...e){var o;const l=n(this);return null==(o=null==l?void 0:l.A)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[t](...e)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){c.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(o&&i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.U)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.U)?s:{}),...r.filter((([t,n])=>31&n[0])).map((([t,n])=>{const e=n[1]||t;return o.set(e,t),e}))]))}}return t},Rt=(t,n)=>{xt(t,"connectedCallback",void 0,n)},Pt=(t,n)=>{xt(t,"disconnectedCallback",void 0,n||t)},Tt=(t,e={})=>{var o;if(!r.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const i=[],u=e.exclude||[],a=r.customElements,f=r.document.head,d=f.querySelector("meta[charset]"),h=r.document.createElement("style"),p=[];let v,m=!0;Object.assign(c,e),c.l=new URL(e.resourcesUrl||"./",r.document.baseURI).href;let b=!1;if(t.map((t=>{t[1].map((e=>{var o;const f={o:e[0],T:e[1],L:e[2],D:e[3]};4&f.o&&(b=!0),f.L=e[2],f.D=e[3],f.U=null!=(o=e[4])?o:{};const d=f.T,h=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const e={o:0,$hostElement$:t,M:n,F:new Map};e.A=new Promise((t=>e.P=t)),e.W=new Promise((t=>e.R=t)),t["s-p"]=[],t["s-rc"]=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,f),1&f.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${f.T}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else E.call(t,f)}connectedCallback(){const t=n(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Lt(this,t,f.D)),v&&(clearTimeout(v),v=null),m?p.push(this):c.jmp((()=>(t=>{if(!(1&c.o)){const e=n(t);if(!e)return;const o=e.M,i=()=>{};if(1&e.o)Lt(t,e,o.D),(null==e?void 0:e.t)?Rt(e.t,t):(null==e?void 0:e.W)&&e.W.then((()=>Rt(e.t,t)));else{e.o|=1,12&o.o&&(t=>{if(!r.document)return;const n=t["s-cr"]=r.document.createComment("");n["s-cn"]=!0,pt(t,n,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){vt(e,e.k=n);break}}o.L&&Object.entries(o.L).map((([n,[e]])=>{if(31&e&&t.hasOwnProperty(n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;if(!(32&n.o))if(n.o|=32,e._){const i=((t,n)=>{const e=t.T.replace(/-/g,"_"),o=t._;if(!o)return;const i=s.get(o);return i?i[e]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[e])),(t=>{l(t,n.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${e.T}#${n.B}" was not found`);o.isProxied||(e.U=o.watchers,Nt(o,e,2),o.isProxied=!0);const r=()=>{};n.o|=8;try{new o(n)}catch(n){l(n,t)}n.o&=-9,n.o|=128,r(),Rt(n.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.o|=128));const i=n.k,r=()=>mt(n,!0);i&&i["s-rc"]?i["s-rc"].push(r):r()})(t,e,o)}i()}})(this))))}disconnectedCallback(){c.jmp((()=>(async t=>{if(!(1&c.o)){const e=n(t);(null==e?void 0:e.H)&&(e.H.map((t=>t())),e.H=void 0),(null==e?void 0:e.t)?Pt(e.t,t):(null==e?void 0:e.W)&&e.W.then((()=>Pt(e.t,t)))}T.has(t)&&T.delete(t),t.shadowRoot&&T.has(t.shadowRoot)&&T.delete(t.shadowRoot)})(this))),c.raf((()=>{var t;const e=n(this);if(!e)return;const o=p.findIndex((t=>t===this));o>-1&&p.splice(o,1),(null==(t=null==e?void 0:e.N)?void 0:t.$)instanceof Node&&!e.N.$.isConnected&&delete e.N.$}))}componentOnReady(){var t;return null==(t=n(this))?void 0:t.W}};f._=t[0],u.includes(d)||a.get(d)||(i.push(d),a.define(d,Nt(h,f,1)))}))})),i.length>0&&(b&&(h.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),h.textContent+=i.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",h.innerHTML.length)){h.setAttribute("data-styles","");const t=null!=(o=c.q)?o:function(){var t,n,e;return null!=(e=null==(n=null==(t=r.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?e:void 0}();null!=t&&h.setAttribute("nonce",t),f.insertBefore(h,d?d.nextSibling:f.firstChild)}m=!1,p.length?p.map((t=>t.connectedCallback())):c.jmp((()=>v=setTimeout(Et,30)))},Ft=(t,n)=>n,Lt=(t,n,e)=>{e&&r.document&&e.map((([e,o,l])=>{const s=t,i=Ut(n,l),r=Wt(e);c.ael(s,o,i,r),(n.H=n.H||[]).push((()=>c.rel(s,o,i,r)))}))},Ut=(t,n)=>e=>{var o;try{256&t.o?null==(o=t.t)||o[n](e):(t.C=t.C||[]).push([n,e])}catch(n){l(n,t.$hostElement$)}},Wt=t=>({passive:!!(1&t),capture:!!(2&t)}),At=t=>c.q=t;export{Ft as F,U as H,Ot as a,Tt as b,I as c,kt as f,z as g,F as h,u as p,e as r,At as s}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-CHdklybh.js";import{y as e}from"./p-RvUQ__Pq.js";const s=({component:s="div",height:o,width:r,className:i,styles:a={}})=>{const h=Object.assign(Object.assign({},a),{width:r,height:o});return t(s,{class:`${i} skeleton`,style:h,part:e,"aria-hidden":"true"})};export{s as S}
@@ -1 +0,0 @@
1
- import{h as s}from"./p-CHdklybh.js";import{C as t}from"./p-RvUQ__Pq.js";import{c as a}from"./p-DwBh6VCY.js";const r=a=>s("h2",{class:`header-2 ${null==a?void 0:a.class}`,part:t},a.text),o=a({}),{state:e,on:n}=o,i=a({}),{state:l}=i,p={},c=()=>{let s=!0;return Object.keys(e).forEach((t=>{null===e[t]?(l[t]=!0,s=!1):l[t]=!1})),{isValid:s}},m=(s,t)=>{const a=p.hasOwnProperty(s),r=p[s];if(!a)return p[s]=t,!1;const o=r!==t;return o&&(p[s]=t),o};export{r as H,l as a,n as b,m as h,e as i,c as v}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-CHdklybh.js";import{M as a}from"./p-hzzlBrP2.js";import{a as e}from"./p-BHf9IqGw.js";import{N as p,O as o}from"./p-RvUQ__Pq.js";const s="created_at,amount,status,payment_type,description,payers_name,last_four_digits",r={created_at:()=>t("th",{part:p,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:p,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:p,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:p,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:p,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:p,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:p,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method")},i={created_at:(a,p)=>t("td",{part:o(p)},t("div",{class:"fw-bold"},e(a.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},e(a.created_at,{showTime:!0}))),amount:(a,e)=>t("td",{part:o(e)},a.formattedPaymentAmount(a.amount)),status:(e,p)=>t("td",{part:o(p)},a(e.status)),payment_type:(a,e)=>t("td",{part:o(e)},a.payment_type),description:(a,e)=>t("td",{part:o(e)},a.description),payers_name:(a,e)=>t("td",{part:o(e)},a.payers_name),last_four_digits:(a,e)=>t("td",{part:o(e)},a.last_four_digits)};export{i as a,s as d,r as p}
@@ -1 +0,0 @@
1
- import{c as s}from"./p-DwBh6VCY.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,p=s((()=>a)),{state:j}=p,r=()=>Object.assign(Object.assign({},c),j),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,j as p}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-CHdklybh.js";import{a}from"./p-BHf9IqGw.js";import{M as e}from"./p-DhUrfS4M.js";import{N as o,O as s}from"./p-RvUQ__Pq.js";const p="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",r={created_at:()=>t("th",{part:o,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:o,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:o,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:o,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:o,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:o,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:o,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:o,scope:"col",title:"Export CSV"})},l=o=>({created_at:(e,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0}))),sub_account_name:(a,e)=>t("td",{part:s(e)},a.sub_account_name),payments_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.payments_total)),refunds_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.refunds_total)),fees_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.fees_total)),other_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.other_total)),amount:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.amount)),status:(a,o)=>t("td",{part:s(o)},e(a.status)),csv:(a,e)=>t("td",{part:s(e)},t("a",{href:"#",onClick:t=>{t.preventDefault(),o(a.id)}},"CSV"))});export{l as a,p as d,r as p}
@@ -1 +0,0 @@
1
- import{h as o}from"./p-CHdklybh.js";import{V as r}from"./p-RvUQ__Pq.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -1 +0,0 @@
1
- var e={name:"@justifi/webcomponents",version:"6.0.1"};export{e as p}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-CHdklybh.js";import{B as a,a as e}from"./p-D8uar3Ri.js";const n=n=>t(e,Object.assign({},{canceled:{variant:a.DANGER,title:"Transfer to your bank account failed",text:"Canceled"},failed:{variant:a.DANGER,title:"Transfer to your bank account failed",text:"Failed"},forwarded:{variant:a.SECONDARY,title:"This payout initially failed; the funds have been forwarded to your next successful payout",text:"Forwarded"},in_transit:{variant:a.PRIMARY,title:"Transfer to your bank account has been initiated",text:"In Transit"},paid:{variant:a.SUCCESS,title:"Successfully deposited into your bank account",text:"Paid"},pending:{variant:a.PRIMARY,title:"Batched and scheduled to be transferred",text:"Pending"},scheduled:{variant:a.PRIMARY,title:"Batched and scheduled to be transferred",text:"Scheduled"},withdrawn:{variant:a.SUCCESS,title:"Negative payout balance successfully withdrawn from your bank account",text:"Withdrawn"}}[n]));export{n as M}
@@ -1 +0,0 @@
1
- import"./p-BuWHmUFx.js";import"./p-HXpYMWUU.js";import{C as o}from"./p-Cjcsf8ku.js";import{P as r}from"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as s,a as i}from"./p-D2muobcE.js";const p=({id:p,authToken:t,service:e})=>async({onSuccess:a,onError:m,final:n})=>{var c;try{const n=await e.fetchPayment(p,t);if(n.error){m({error:i(n.error),code:s(null===(c=n.error)||void 0===c?void 0:c.code),severity:o.ERROR})}else a({payment:new r(n.data)})}catch(r){const p=s(null==r?void 0:r.code);m({error:i(r),code:p,severity:o.ERROR})}finally{n()}};export{p as m}
@@ -1 +0,0 @@
1
- import{c as s}from"./p-DwBh6VCY.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,p=s((()=>a)),{state:j}=p,r=()=>Object.assign(Object.assign({},c),j),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,j as p}
@@ -1 +0,0 @@
1
- import{c as s}from"./p-DwBh6VCY.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,p=s((()=>a)),{state:j}=p,r=()=>Object.assign(Object.assign({},c),j),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,j as p}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-Dph3Ao9s.js";import"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";const n=t();class s{async fetchBusiness(t,s){return n.get({endpoint:`entities/business/${t}`,authToken:s})}async patchBusiness(t,s,e){return n.patch({endpoint:`entities/business/${s}`,body:e,authToken:t})}}class e{async fetchIdentity(t,s){return n.get({endpoint:`entities/identity/${t}`,authToken:s})}async patchIdentity(t,s,e){return n.patch({endpoint:`entities/identity/${s}`,body:e,authToken:t})}async postIdentity(t,s){return n.post({endpoint:"entities/identity",body:s,authToken:t})}}class i{async postBankAccount(t,s){return n.post({endpoint:"entities/bank_accounts",body:s,authToken:t})}}class o{async postDocumentRecord(t,s){return n.post({endpoint:"entities/document",body:s,authToken:t})}}export{s as B,o as D,e as I,i as a}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-CHdklybh.js";import"./p-BuWHmUFx.js";import"./p-HXpYMWUU.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{C as e}from"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as c,a as p}from"./p-D2muobcE.js";import{c as a,J as n}from"./p-cSt1EbTB.js";import{C as h}from"./p-BffoVWib.js";import{m as u,S as m}from"./p-BGRyC6Jk.js";import{S as d}from"./p-CXEvc-gI.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-DFNk_DP8.js";import"./p-DwBh6VCY.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DgKuxw6L.js";import"./p-Dph3Ao9s.js";import"./p-D8uar3Ri.js";import"./p-RvUQ__Pq.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=j,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){a(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){this.accountId&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i})=>async({params:r,onSuccess:a,onError:n})=>{var h,u;try{const m=await i.fetchCheckouts(t,s,r);if(m.error)return n({error:p(m.error),code:c(null===(u=m.error)||void 0===u?void 0:u.code),severity:o.ERROR});{const t=Object.assign({},m.page_info);a({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 n({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({accountId:this.accountId,authToken:this.authToken,service:new m}))}render(){return i(d,{key:"41bf633467138b6af13b1c02ccf1e1016ec54bfe"},i("checkouts-list-core",{key:"cd3ca431258ad73e701fe74612ecdf2c0f2a1bda",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_checkouts_list}
@@ -1 +0,0 @@
1
- import{h as s,r as i,c as t}from"./p-CHdklybh.js";import{c as r,F as e}from"./p-DiJD6Iqx.js";import{b as o,a}from"./p-C9iide2W.js";import{i as h,a as p}from"./p-tYuXMkCd.js";import"./p-BuWHmUFx.js";import"./p-HXpYMWUU.js";import{C as n,a as l}from"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import{B as m,b as c}from"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as d,J as j}from"./p-cSt1EbTB.js";import{B as u}from"./p-BB-9jeDZ.js";import{S as f}from"./p-CXEvc-gI.js";import{H as v}from"./p-oIQjnSZa.js";import"./p-CZfYo5-1.js";import{S as b}from"./p-CVm_PxHa.js";import{B as w}from"./p-XYgDHrVL.js";import{m as C,b as g}from"./p-5aA7gjr5.js";import{B}from"./p-WJLXezN2.js";import"./p-BFTU3MAI.js";import"./p-PSJOKMWp.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-DwBh6VCY.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-DgKuxw6L.js";import"./p-Dph3Ao9s.js";import"./p-RvUQ__Pq.js";import"./p-D2muobcE.js";const y=r(Object.assign(Object.assign({},o().fields),{legal_address:p(),additional_questions:a(),representative:h("representative")})),x=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(b,{width:"25%"})),s("div",{class:"col-12"},s(b,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"50%"}),s(b,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"65%"}),s(b,{width:"35%"}))),H=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(b,{width:"40%",height:"40px"})),s(x,null),s(x,null),s(x,null)),S=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event"),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new m(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new m(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){d(),this.analytics=new j(this),this.formController=new e(y),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=C({authToken:this.authToken,businessId:this.businessId,service:new B}),this.patchBusiness=g({authToken:this.authToken,businessId:this.businessId,service:new B}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:l.MISSING_PROPS,severity:n.ERROR})}handleReponse(s){s.error&&(this.errorMessage=c.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(f,null,this.isLoading?s(H,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(v,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(u,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:w.submit}),isLoading:this.isSaving},"Submit")))))}};export{S as justifi_business_form}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as r}from"./p-CHdklybh.js";import{P as i}from"./p-CIN-y_rT.js";import"./p-BuWHmUFx.js";import"./p-HXpYMWUU.js";import{C as o,a as e}from"./p-Cjcsf8ku.js";import{P as p}from"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as n,a}from"./p-D2muobcE.js";import{c as m,J as c}from"./p-cSt1EbTB.js";import{S as h}from"./p-CXEvc-gI.js";import"./p-CZfYo5-1.js";import{d}from"./p-CZjKnrRR.js";import"./p-Dph3Ao9s.js";import"./p-BHf9IqGw.js";import"./p-DwBh6VCY.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DgKuxw6L.js";import"./p-hzzlBrP2.js";import"./p-D8uar3Ri.js";import"./p-RvUQ__Pq.js";const u=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeGetPayments()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:r})=>async({params:i,onSuccess:e,onError:m,final:c})=>{var h,d;try{const c=await r.fetchPayments(t,s,i);if(c.error)return m({error:a(c.error),code:n(null===(d=c.error)||void 0===d?void 0:d.code),severity:o.ERROR});{const t=Object.assign({},c.page_info);e({payments:(null===(h=c.data)||void 0===h?void 0:h.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=n(null==t?void 0:t.code);return m({error:t.message||t,code:s,severity:o.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new i}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return r(h,{key:"4cdd2e9a318226408d47198bf2de40a750a71d01"},r("payments-list-core",{key:"87964c5dd33fd3b716964227cd990539d5d13fc4",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payments_list}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-CHdklybh.js";import"./p-BuWHmUFx.js";import"./p-HXpYMWUU.js";import{C as i,a}from"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as h,a as o,b as c,c as n,d as p,e as d,f,g as b,h as u,i as m,j as y,k as g,l as j}from"./p-UmoEDufy.js";import{T as l}from"./p-CZfYo5-1.js";import{p as k,a as C}from"./p-DbpL6AJS.js";import{o as v,g as S}from"./p-DrRpEAef.js";import"./p-DwBh6VCY.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-CkX-nM5d.js";import"./p-DhUrfS4M.js";import"./p-D8uar3Ri.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payouts=[],this.subAccounts=[],this.loading=!0,this.paging=r,this.pagingParams={},this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const i=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:l.row,data:i})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new h(this.payouts,this.columns,k,C(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),v("set",(()=>{this.pagingParams={}})),v("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get payoutParams(){const t=S();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"503793db2fd72d3854bfa1eba2051bc822000a1a"},e(o,{key:"1db195f7f1206bef7236ccd814c464c61b12f3d3"},e(c,{key:"a61137a34fddf3f854102ec7a2964f127d7555f9"},e(n,{key:"3d3c330e5758ccb4aa14bb7b5ae993d8d2c1718e"},this.payoutsTable.columnData.map((t=>t)))),e(p,{key:"a483803ea8dd9db844f36f9f8c7a89e81d7322b4"},e(d,{key:"10bee5e971e10b0313b9b411c292f8f65bf1cf82",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(f,{key:"c8ec9f17a98baa81b4b1830eb8d0bfad45cc8ee1",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(b,{key:"94cd786053173ce22f797b0da263488cab9b5139",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((t,s)=>e(u,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"533bb1571ae70a03f60d13d5742296f425512919"},e(y,{key:"15924c92e5c9f2202066ebfa02aebc2c52fccee3"},e(g,{key:"48bd284c90d4ac044b5fd5f323c90fab5e9fdb5d",colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"cfc4bc6b077267ced59bf8b2519ee0354e676560",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{w as payouts_list_core}
@@ -1 +0,0 @@
1
- import{h as i,r as s,c as t}from"./p-CHdklybh.js";import{al as e,ai as r,ae as o,z as l}from"./p-RvUQ__Pq.js";import{S as d}from"./p-CXEvc-gI.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-cSt1EbTB.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as u}from"./p-WJLXezN2.js";import{B as v}from"./p-BlJnA265.js";import{m as p}from"./p-DH8F0bsw.js";import{S as m}from"./p-CVm_PxHa.js";import"./p-BuWHmUFx.js";import"./p-HXpYMWUU.js";import{i as f,h as w,b}from"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g as x,a as g}from"./p-D2muobcE.js";import{T as y}from"./p-BSa0NCli.js";import{k as j}from"./p-BHf9IqGw.js";import"./p-DgKuxw6L.js";import"./p-Dph3Ao9s.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DwBh6VCY.js";const S=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),k=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(S,null)),C=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),B=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?b.boardingShipping:b.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){p({id:this.businessId,authToken:this.authToken,service:new u})({onSuccess:({business:i})=>{this.business=new v(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:g(a.error),code:x(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new f(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=x(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new y})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:g(d.error),code:x(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=x(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new y});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(k,null),this.loading.terminals&&i("div",{class:"mt-5"},i(C,null),i(C,null),i(C,null)))}renderBusinessDetails(){var s,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),i("div",null,j(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"3ea6cebd4ab6bc47090056581482dab8502175c1"},i("div",{key:"383dc710920b5119841d5cf6f1b596ebc349fd5a",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{B as justifi_order_terminals}
@@ -1 +0,0 @@
1
- import{h as o}from"./p-CHdklybh.js";import{B as r}from"./p-RvUQ__Pq.js";const s=s=>o("h1",{class:`header-1 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}