@justifi/webcomponents 6.1.1 → 6.2.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (668) hide show
  1. package/dist/cjs/{Business-DCRzZf0w.js → Business-DWHy_-z9.js} +299 -9
  2. package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +132 -0
  3. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  4. package/dist/cjs/{business-additional-questions-schema-b8P-0T0O.js → business-additional-questions-schema-CetDMUp7.js} +26 -4
  5. package/dist/cjs/{business-form-options-CMII7nIK.js → business-form-options-e9UFw4P-.js} +1 -1
  6. package/dist/cjs/business-identity-schema-Cd0tvfJr.js +101 -0
  7. package/dist/cjs/{business.service-Cj_NUZsr.js → business.service-DRZurAMP.js} +1 -1
  8. package/dist/cjs/card-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{check-pkg-version-CEZpYUNV.js → check-pkg-version-DHOBcjoo.js} +2 -2
  10. package/dist/cjs/{checkout.service-Bc8L9ixO.js → checkout.service-vZbSE3A3.js} +1 -1
  11. package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -4
  12. package/dist/cjs/country-config-MCOhn8o3.js +68 -0
  13. package/dist/cjs/{custom-popper_2.cjs.entry.js → custom-popper.cjs.entry.js} +2 -22
  14. package/dist/cjs/{dispute.service-DhO_tuDc.js → dispute.service-DV9a61Tu.js} +1 -1
  15. package/dist/cjs/form-alert_5.cjs.entry.js +25 -15
  16. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  17. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  19. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  20. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +119 -0
  22. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  23. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  24. package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-select_3.cjs.entry.js} +23 -4
  25. package/dist/cjs/{form-input-masks-DgXd0f4V.js → form-input-masks-BnNFJ3IJ.js} +9 -4
  26. package/dist/cjs/{get-business-o5jPq_ME.js → get-business-D9ZHyPem.js} +1 -1
  27. package/dist/cjs/{get-payment-details-BinT-ZEP.js → get-payment-details-AYzxPu-X.js} +1 -1
  28. package/dist/cjs/{get-subaccounts-BoTVdl7v.js → get-subaccounts-C_KD197w.js} +1 -1
  29. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  30. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  31. package/dist/cjs/{input-handlers-DYl_0IwC.js → input-handlers-D6QMwPTB.js} +2 -2
  32. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +121 -64
  33. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +17 -18
  34. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  35. package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +8 -10
  36. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +16 -17
  37. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -7
  38. package/dist/cjs/justifi-business-form.cjs.entry.js +16 -12
  39. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +14 -6
  40. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -7
  41. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -4
  42. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +6 -8
  43. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  45. package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -7
  46. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +7 -9
  47. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -5
  48. package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -9
  49. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +22 -13
  50. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -7
  51. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +36 -21
  52. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -7
  53. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +5 -7
  54. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -7
  56. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -6
  57. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +5 -7
  58. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  59. package/dist/cjs/justifi-payouts-list.cjs.entry.js +6 -8
  60. package/dist/cjs/justifi-refund-payment.cjs.entry.js +5 -7
  61. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
  62. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -5
  63. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  64. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +3 -5
  65. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +5 -7
  66. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -4
  67. package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -8
  68. package/dist/cjs/loader.cjs.js +1 -1
  69. package/dist/cjs/{package-D2S7GRvh.js → package-BacF7Q_h.js} +1 -1
  70. package/dist/cjs/pagination-menu.cjs.entry.js +3 -3
  71. package/dist/cjs/payment-details-core.cjs.entry.js +9 -11
  72. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  73. package/dist/cjs/{payment.service-C9thkR4g.js → payment.service-1t60I69m.js} +1 -1
  74. package/dist/cjs/payments-list-core.cjs.entry.js +2 -4
  75. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  76. package/dist/cjs/{payout.service-CGZxpQMq.js → payout.service-CQEXfufW.js} +1 -1
  77. package/dist/cjs/payouts-list-core.cjs.entry.js +2 -4
  78. package/dist/cjs/{schema-validations-Bj7eYNO8.js → schema-validations-0mjPveQ0.js} +45 -6
  79. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  80. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -5
  81. package/dist/cjs/{terminal-orders-table-7ew1vCKk.js → terminal-orders-table-B4ZXHj3w.js} +1 -1
  82. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  83. package/dist/cjs/{terminal.service-BkKxH-k4.js → terminal.service-BlW-CJ67.js} +1 -1
  84. package/dist/cjs/terminals-list-core.cjs.entry.js +2 -4
  85. package/dist/cjs/webcomponents.cjs.js +1 -1
  86. package/dist/collection/api/BankAccount.js +4 -0
  87. package/dist/collection/api/Business.js +16 -1
  88. package/dist/collection/collection-manifest.json +4 -1
  89. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +7 -6
  90. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +36 -4
  91. package/dist/collection/components/business-forms/business-form/business-form.js +6 -2
  92. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +46 -9
  93. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +32 -10
  94. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +26 -6
  95. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +29 -3
  96. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +48 -6
  97. package/dist/collection/components/business-forms/owner-form/owner-form.js +26 -1
  98. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  99. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  100. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +88 -0
  101. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +2 -1
  102. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +50 -0
  103. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +36 -5
  104. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +26 -1
  105. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +47 -7
  106. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +26 -1
  107. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +26 -1
  108. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +26 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +43 -4
  110. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +33 -4
  111. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +26 -1
  112. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +101 -0
  113. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  114. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +35 -10
  115. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +26 -1
  116. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +39 -20
  117. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  118. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +34 -6
  119. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  120. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  121. package/dist/collection/components/business-forms/payment-provisioning/test/mockBusiness.js +52 -0
  122. package/dist/collection/components/business-forms/schemas/business-address-schema.js +41 -19
  123. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +74 -39
  124. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +27 -4
  125. package/dist/collection/components/business-forms/schemas/business-form-schema.js +7 -4
  126. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +53 -24
  127. package/dist/collection/components/business-forms/schemas/schema-validations.js +41 -4
  128. package/dist/collection/components/business-forms/utils/country-config.js +47 -0
  129. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  130. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  131. package/dist/collection/components/checkout/checkout.js +2 -2
  132. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  133. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  134. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  135. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  136. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  137. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  138. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  139. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  140. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  141. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  142. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  143. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  144. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  145. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  146. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  147. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  150. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  151. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  152. package/dist/collection/components/modular-checkout/modular-checkout.js +3 -4
  153. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  154. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  155. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  156. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  157. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  158. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  159. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  160. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  161. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  162. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  163. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  164. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  165. package/dist/collection/components/payments-list/payments-list.js +1 -1
  166. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  167. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  168. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  169. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  170. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  171. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  172. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  173. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  174. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  175. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  176. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  177. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -4
  178. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  179. package/dist/collection/ui-components/details/details.js +1 -1
  180. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  181. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  182. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  183. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  184. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  185. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  186. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  187. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  188. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  189. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  190. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  191. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  192. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  193. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
  194. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  195. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  196. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
  197. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  198. package/dist/collection/utils/country-codes.js +5 -0
  199. package/dist/collection/utils/form-input-masks.js +8 -0
  200. package/dist/collection/utils/province-options.js +20 -0
  201. package/dist/docs.json +1129 -147
  202. package/dist/esm/{Api-DhiA2e_P.js → Api-K9QH1Aki.js} +1 -1
  203. package/dist/esm/{Business-BCoP0TAV.js → Business-B5rtFhtR.js} +290 -3
  204. package/dist/esm/{Refund-B-iOTRxz.js → Refund-L_muwEAh.js} +1 -1
  205. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  206. package/dist/esm/{badge-CtdO-tEY.js → badge-B8fF98jp.js} +1 -1
  207. package/dist/esm/bank-account-document-form-inputs_6.entry.js +125 -0
  208. package/dist/esm/bank-account-form.entry.js +5 -5
  209. package/dist/esm/{business-additional-questions-schema-9FAJSx_D.js → business-additional-questions-schema-DSvdNuI1.js} +26 -5
  210. package/dist/esm/business-details-core.entry.js +3 -3
  211. package/dist/esm/{business-form-options-CgssATyg.js → business-form-options-D6s5H4RI.js} +2 -2
  212. package/dist/esm/business-identity-schema-mN4VhA1v.js +94 -0
  213. package/dist/esm/{business.service-D55OVyco.js → business.service-BJcGEUDH.js} +3 -3
  214. package/dist/esm/{button-DtTaQHMK.js → button-DZoLTGMB.js} +1 -1
  215. package/dist/esm/card-form.entry.js +5 -5
  216. package/dist/esm/{check-pkg-version-Ba95SWgY.js → check-pkg-version-D2zmagAo.js} +4 -4
  217. package/dist/esm/{checkout.service-fwbqSq8g.js → checkout.service-aymuZDC9.js} +3 -3
  218. package/dist/esm/checkouts-list-core.entry.js +9 -11
  219. package/dist/esm/{checkouts-table-B6gGDtOr.js → checkouts-table-B8k-Aylm.js} +3 -3
  220. package/dist/esm/country-config-BQ4D46Lb.js +64 -0
  221. package/dist/esm/{custom-popper_2.entry.js → custom-popper.entry.js} +3 -22
  222. package/dist/esm/{dispute.service-Cdq3_yRo.js → dispute.service-DiPbsswm.js} +3 -3
  223. package/dist/esm/form-alert_5.entry.js +25 -15
  224. package/dist/esm/form-control-checkbox.entry.js +5 -5
  225. package/dist/esm/form-control-date.entry.js +4 -4
  226. package/dist/esm/{form-control-error-text-bprS-t9d.js → form-control-error-text-BmD6bGbR.js} +1 -1
  227. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  228. package/dist/esm/{form-control-help-text-Bvnp-IAG.js → form-control-help-text-DbIhIcc6.js} +1 -1
  229. package/dist/esm/form-control-monetary-provisioning.entry.js +6 -6
  230. package/dist/esm/form-control-monetary.entry.js +6 -6
  231. package/dist/esm/form-control-number-masked_3.entry.js +115 -0
  232. package/dist/esm/form-control-number.entry.js +5 -5
  233. package/dist/esm/form-control-radio.entry.js +3 -3
  234. package/dist/esm/{form-control-select_2.entry.js → form-control-select_3.entry.js} +25 -7
  235. package/dist/esm/{form-input-masks-B-iV5cYd.js → form-input-masks-CVaOFfrI.js} +9 -3
  236. package/dist/esm/{get-business-Crb6P-iI.js → get-business-Xt7B5dSo.js} +1 -1
  237. package/dist/esm/{get-payment-details-sGoWyAat.js → get-payment-details-DcC5v85s.js} +2 -2
  238. package/dist/esm/{get-subaccounts-BsJSlShO.js → get-subaccounts-CMJMDwSP.js} +3 -3
  239. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  240. package/dist/esm/{header-1-C1Hnxki8.js → header-1-umkpdspt.js} +1 -1
  241. package/dist/esm/{header-3-Bq8fpjm-.js → header-3-CD5K5vCa.js} +1 -1
  242. package/dist/esm/hidden-input_2.entry.js +7 -7
  243. package/dist/esm/{input-handlers-CX6mSvOM.js → input-handlers-D3y0TzH9.js} +1 -1
  244. package/dist/esm/{insurance-state-CVme82j7.js → insurance-state-sR5DrCdu.js} +1 -1
  245. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +127 -70
  246. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +22 -23
  247. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  248. package/dist/esm/justifi-apple-pay_8.entry.js +16 -18
  249. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +22 -23
  250. package/dist/esm/justifi-business-details.entry.js +10 -12
  251. package/dist/esm/justifi-business-form.entry.js +23 -19
  252. package/dist/esm/justifi-business-representative-form-inputs.entry.js +15 -7
  253. package/dist/esm/justifi-checkout.entry.js +9 -11
  254. package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -7
  255. package/dist/esm/justifi-checkouts-list.entry.js +12 -14
  256. package/dist/esm/justifi-details.entry.js +3 -3
  257. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  258. package/dist/esm/justifi-dispute-management.entry.js +8 -10
  259. package/dist/esm/justifi-dispute-notification_3.entry.js +13 -15
  260. package/dist/esm/justifi-gross-payment-chart.entry.js +8 -10
  261. package/dist/esm/justifi-order-terminals.entry.js +12 -14
  262. package/dist/esm/justifi-owner-form_3.entry.js +27 -18
  263. package/dist/esm/justifi-payment-details.entry.js +10 -12
  264. package/dist/esm/justifi-payment-provisioning-core.entry.js +38 -23
  265. package/dist/esm/justifi-payment-provisioning.entry.js +8 -10
  266. package/dist/esm/justifi-payment-transactions-list.entry.js +11 -13
  267. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  268. package/dist/esm/justifi-payments-list.entry.js +12 -14
  269. package/dist/esm/justifi-payout-details.entry.js +9 -11
  270. package/dist/esm/justifi-payout-transactions-list.entry.js +11 -13
  271. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  272. package/dist/esm/justifi-payouts-list.entry.js +13 -15
  273. package/dist/esm/justifi-refund-payment.entry.js +11 -13
  274. package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
  275. package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -11
  276. package/dist/esm/justifi-skeleton.entry.js +3 -3
  277. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +6 -8
  278. package/dist/esm/justifi-terminal-orders-list.entry.js +10 -12
  279. package/dist/esm/justifi-terminals-list-filters.entry.js +5 -7
  280. package/dist/esm/justifi-terminals-list.entry.js +12 -14
  281. package/dist/esm/loader.js +1 -1
  282. package/dist/esm/{package-Csfiax9X.js → package-C7cvPZSk.js} +1 -1
  283. package/dist/esm/pagination-menu.entry.js +4 -4
  284. package/dist/esm/{parts-xDbRW9xn.js → parts-Dj_zevuD.js} +1 -1
  285. package/dist/esm/payment-details-core.entry.js +16 -18
  286. package/dist/esm/payment-method-option.entry.js +2 -2
  287. package/dist/esm/{payment.service-BoQ1MW1k.js → payment.service-C0xnydJ8.js} +3 -3
  288. package/dist/esm/payments-list-core.entry.js +10 -12
  289. package/dist/esm/{payments-status-cvtVmtY5.js → payments-status-CzazNnFv.js} +1 -1
  290. package/dist/esm/{payments-table-D_BlyU1F.js → payments-table-BPKxBAJ0.js} +3 -3
  291. package/dist/esm/payout-details-core.entry.js +10 -10
  292. package/dist/esm/{payout.service-xcBdom3q.js → payout.service-Cl4yxnrx.js} +3 -3
  293. package/dist/esm/payouts-list-core.entry.js +10 -12
  294. package/dist/esm/{payouts-status-D-vjrqBb.js → payouts-status-rKlX41bK.js} +1 -1
  295. package/dist/esm/{payouts-table-Clj8YGLV.js → payouts-table-C6ZDcd_-.js} +3 -3
  296. package/dist/esm/{schema-validations-B9dmY7ME.js → schema-validations-BFoU1cR8.js} +41 -6
  297. package/dist/esm/{skeleton-B8EUwt4b.js → skeleton-BEoPu3My.js} +1 -1
  298. package/dist/esm/{spinner-CYXkn1fh.js → spinner-Ac-w5zWg.js} +1 -1
  299. package/dist/esm/{table-Bj20uWfu.js → table-BCwizIf9.js} +2 -2
  300. package/dist/esm/table-filters-menu.entry.js +3 -3
  301. package/dist/esm/terminal-orders-list-core.entry.js +9 -11
  302. package/dist/esm/{terminal-orders-table-DzBpIW8i.js → terminal-orders-table-BBQsoUh8.js} +5 -5
  303. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  304. package/dist/esm/{terminal.service-l6zTIPZ3.js → terminal.service-mwaS-Mbj.js} +3 -3
  305. package/dist/esm/terminals-list-core.entry.js +9 -11
  306. package/dist/esm/{terminals-table-BMS5tazC.js → terminals-table-ByiFdTfy.js} +3 -3
  307. package/dist/esm/{utils-BOijEGPV.js → utils-CIaHqjQt.js} +1 -1
  308. package/dist/esm/{utils-DRwofES0.js → utils-KBIYAa0D.js} +1 -1
  309. package/dist/esm/webcomponents.js +1 -1
  310. package/dist/module/Business.js +290 -3
  311. package/dist/module/additional-questions.js +2 -2
  312. package/dist/module/additional-statement.js +2 -2
  313. package/dist/module/bank-account-billing-form-simple.js +1 -1
  314. package/dist/module/bank-account-document-inputs.js +1 -1
  315. package/dist/module/bank-account-form-inputs-canada.d.ts +11 -0
  316. package/dist/module/bank-account-form-inputs-canada.js +6 -0
  317. package/dist/module/bank-account-form-inputs-canada2.js +68 -0
  318. package/dist/module/bank-account-form-inputs2.js +9 -2
  319. package/dist/module/bank-account-form.js +2 -2
  320. package/dist/module/bank-account-read-only-value.d.ts +11 -0
  321. package/dist/module/bank-account-read-only-value.js +6 -0
  322. package/dist/module/bank-account-read-only-value2.js +33 -0
  323. package/dist/module/bank-account.js +2 -2
  324. package/dist/module/billing-form-full.js +1 -1
  325. package/dist/module/business-additional-questions-form-step.js +1 -1
  326. package/dist/module/business-address-schema.js +40 -20
  327. package/dist/module/business-bank-account-form-step-core.js +101 -48
  328. package/dist/module/business-bank-account-form-step.js +18 -5
  329. package/dist/module/business-core-info-form-step-core.js +22 -7
  330. package/dist/module/business-core-info-form-step.js +2 -1
  331. package/dist/module/business-core-info-schema.js +26 -5
  332. package/dist/module/business-core-info.js +12 -4
  333. package/dist/module/business-identity-schema.js +52 -25
  334. package/dist/module/business-owners-form-step-core.js +20 -13
  335. package/dist/module/business-owners-form-step.js +22 -15
  336. package/dist/module/business-representative-form-inputs.js +34 -17
  337. package/dist/module/business-representative-form-step-core.js +29 -18
  338. package/dist/module/business-representative-form-step.js +24 -17
  339. package/dist/module/business-representative.js +37 -19
  340. package/dist/module/business-terms-conditions-form-step.js +1 -1
  341. package/dist/module/button.js +1 -1
  342. package/dist/module/cancellation-policy.js +2 -2
  343. package/dist/module/card-billing-form-simple.js +1 -1
  344. package/dist/module/card-form.js +2 -2
  345. package/dist/module/card-form2.js +2 -2
  346. package/dist/module/checkouts-list-core2.js +1 -1
  347. package/dist/module/country-config.js +64 -0
  348. package/dist/module/custom-popper2.js +2 -2
  349. package/dist/module/customer-details.js +2 -2
  350. package/dist/module/details.js +1 -1
  351. package/dist/module/dispute-management-core.js +1 -1
  352. package/dist/module/dispute-notification.js +2 -2
  353. package/dist/module/dispute-response-core.js +2 -2
  354. package/dist/module/dispute-response.js +1 -1
  355. package/dist/module/duplicate-charge.js +2 -2
  356. package/dist/module/electronic-evidence.js +2 -2
  357. package/dist/module/form-address-fields.js +65 -0
  358. package/dist/module/form-control-checkbox2.js +2 -2
  359. package/dist/module/form-control-date2.js +2 -2
  360. package/dist/module/form-control-file-v22.js +1 -1
  361. package/dist/module/form-control-file2.js +2 -2
  362. package/dist/module/form-control-monetary-provisioning2.js +2 -2
  363. package/dist/module/form-control-monetary2.js +2 -2
  364. package/dist/module/form-control-number-masked2.js +2 -2
  365. package/dist/module/form-control-number.js +2 -2
  366. package/dist/module/form-control-radio2.js +2 -2
  367. package/dist/module/form-control-select2.js +2 -2
  368. package/dist/module/form-control-text2.js +2 -2
  369. package/dist/module/form-control-textarea2.js +2 -2
  370. package/dist/module/form-input-masks.js +9 -3
  371. package/dist/module/get-business.js +1 -1
  372. package/dist/module/gross-payment-chart-core2.js +1 -1
  373. package/dist/module/hidden-input2.js +1 -1
  374. package/dist/module/identity-address-form.js +16 -14
  375. package/dist/module/iframe-input2.js +3 -3
  376. package/dist/module/input-handlers.js +1 -1
  377. package/dist/module/justifi-business-form.js +41 -29
  378. package/dist/module/justifi-button2.js +1 -1
  379. package/dist/module/justifi-checkout.js +2 -2
  380. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  381. package/dist/module/justifi-checkouts-list.js +1 -1
  382. package/dist/module/justifi-dispute-management.js +1 -1
  383. package/dist/module/justifi-form-address-fields.d.ts +11 -0
  384. package/dist/module/justifi-form-address-fields.js +6 -0
  385. package/dist/module/justifi-header2.js +1 -1
  386. package/dist/module/justifi-order-terminals.js +3 -3
  387. package/dist/module/justifi-payment-provisioning.js +67 -49
  388. package/dist/module/justifi-payment-transactions-list.js +1 -1
  389. package/dist/module/justifi-payments-list-filters.js +2 -2
  390. package/dist/module/justifi-payments-list.js +1 -1
  391. package/dist/module/justifi-payout-transactions-list.js +1 -1
  392. package/dist/module/justifi-payouts-list-filters.js +2 -2
  393. package/dist/module/justifi-payouts-list.js +1 -1
  394. package/dist/module/justifi-radio-list-item2.js +1 -1
  395. package/dist/module/justifi-saved-payment-method.js +1 -1
  396. package/dist/module/justifi-skeleton.js +1 -1
  397. package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
  398. package/dist/module/justifi-terminal-orders-list.js +1 -1
  399. package/dist/module/justifi-terminals-list-filters.js +1 -1
  400. package/dist/module/justifi-terminals-list.js +1 -1
  401. package/dist/module/legal-address-form-step-core.js +26 -19
  402. package/dist/module/legal-address-form-step.js +16 -9
  403. package/dist/module/legal-address-form.js +18 -15
  404. package/dist/module/modular-checkout.js +1 -1
  405. package/dist/module/owner-form-core2.js +23 -15
  406. package/dist/module/owner-form-inputs2.js +34 -15
  407. package/dist/module/owner-form.js +20 -13
  408. package/dist/module/package.js +1 -1
  409. package/dist/module/pagination-menu2.js +3 -3
  410. package/dist/module/parts.js +1 -1
  411. package/dist/module/payment-details-core2.js +8 -8
  412. package/dist/module/payment-method-option.js +1 -1
  413. package/dist/module/payment-provisioning-core.js +104 -69
  414. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  415. package/dist/module/payment-provisioning-form-steps.js +75 -54
  416. package/dist/module/payments-list-core2.js +1 -1
  417. package/dist/module/payout-details-core2.js +3 -3
  418. package/dist/module/payouts-list-core2.js +1 -1
  419. package/dist/module/product-or-service.js +2 -2
  420. package/dist/module/refund-policy.js +2 -2
  421. package/dist/module/save-new-payment-method.js +1 -1
  422. package/dist/module/schema-validations.js +41 -6
  423. package/dist/module/shipping-details.js +2 -2
  424. package/dist/module/summary.js +1 -1
  425. package/dist/module/table-filters-menu2.js +1 -1
  426. package/dist/module/terminal-orders-list-core2.js +1 -1
  427. package/dist/module/terminal-quantity-selector2.js +2 -2
  428. package/dist/module/terminals-list-core2.js +1 -1
  429. package/dist/module/tokenize-payment-method.js +1 -1
  430. package/dist/types/api/BankAccount.d.ts +6 -0
  431. package/dist/types/api/Business.d.ts +9 -0
  432. package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +3 -0
  433. package/dist/types/components/business-forms/business-form/business-form.d.ts +2 -0
  434. package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +4 -1
  435. package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +2 -0
  436. package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +2 -0
  437. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +2 -0
  438. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +3 -0
  439. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
  440. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.d.ts +7 -0
  441. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.d.ts +5 -0
  442. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +5 -0
  443. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
  444. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +3 -0
  445. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +2 -0
  446. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +2 -0
  447. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +2 -0
  448. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +3 -0
  449. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +2 -0
  450. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +2 -0
  451. package/dist/types/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.d.ts +8 -0
  452. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +2 -0
  453. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +2 -0
  454. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +4 -2
  455. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +2 -0
  456. package/dist/types/components/business-forms/payment-provisioning/test/mockBusiness.d.ts +12 -0
  457. package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +54 -2
  458. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +14 -16
  459. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +67 -3
  460. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +165 -7
  461. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +122 -2
  462. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +5 -0
  463. package/dist/types/components.d.ts +119 -10
  464. package/dist/types/utils/country-codes.d.ts +4 -0
  465. package/dist/types/utils/form-input-masks.d.ts +1 -0
  466. package/dist/types/utils/province-options.d.ts +5 -0
  467. package/dist/webcomponents/p-005a79d5.entry.js +1 -0
  468. package/dist/webcomponents/p-07f7aaf6.entry.js +1 -0
  469. package/dist/webcomponents/p-0926c397.entry.js +1 -0
  470. package/dist/webcomponents/p-14e26a6c.entry.js +1 -0
  471. package/dist/webcomponents/{p-0eb69f41.entry.js → p-1c362f36.entry.js} +1 -1
  472. package/dist/webcomponents/{p-0217783c.entry.js → p-221ec54e.entry.js} +4 -4
  473. package/dist/webcomponents/p-24621c40.entry.js +1 -0
  474. package/dist/webcomponents/p-33bf5532.entry.js +1 -0
  475. package/dist/webcomponents/p-3467fa38.entry.js +1 -0
  476. package/dist/webcomponents/p-3af0b0ad.entry.js +1 -0
  477. package/dist/webcomponents/p-3b43f8c0.entry.js +1 -0
  478. package/dist/webcomponents/p-3f7703bf.entry.js +1 -0
  479. package/dist/webcomponents/p-4180a11b.entry.js +1 -0
  480. package/dist/webcomponents/p-4d243123.entry.js +1 -0
  481. package/dist/webcomponents/p-4d6e0ebe.entry.js +1 -0
  482. package/dist/webcomponents/p-5277f2a6.entry.js +1 -0
  483. package/dist/webcomponents/p-54cea29e.entry.js +1 -0
  484. package/dist/webcomponents/{p-7c8deca8.entry.js → p-580f3bb6.entry.js} +1 -1
  485. package/dist/webcomponents/p-641100ac.entry.js +1 -0
  486. package/dist/webcomponents/p-65090485.entry.js +1 -0
  487. package/dist/webcomponents/p-66833631.entry.js +1 -0
  488. package/dist/webcomponents/p-68aeb5bd.entry.js +1 -0
  489. package/dist/webcomponents/p-694b24e5.entry.js +1 -0
  490. package/dist/webcomponents/p-6a247ab5.entry.js +1 -0
  491. package/dist/webcomponents/p-6a910d9b.entry.js +1 -0
  492. package/dist/webcomponents/p-6d61092c.entry.js +1 -0
  493. package/dist/webcomponents/p-72f5e234.entry.js +1 -0
  494. package/dist/webcomponents/p-7498759d.entry.js +1 -0
  495. package/dist/webcomponents/p-82723f07.entry.js +1 -0
  496. package/dist/webcomponents/p-86372164.entry.js +1 -0
  497. package/dist/webcomponents/{p-b608add9.entry.js → p-8896ab68.entry.js} +1 -1
  498. package/dist/webcomponents/p-89052ce0.entry.js +1 -0
  499. package/dist/webcomponents/{p-ClvhB3WW.js → p-890S0Nwr.js} +1 -1
  500. package/dist/webcomponents/{p-37a93597.entry.js → p-8a156528.entry.js} +1 -1
  501. package/dist/webcomponents/p-8a68be8f.entry.js +1 -0
  502. package/dist/webcomponents/p-91b09245.entry.js +1 -0
  503. package/dist/webcomponents/p-9ce44689.entry.js +1 -0
  504. package/dist/webcomponents/p-B5rtFhtR.js +1 -0
  505. package/dist/webcomponents/{p-CEk3bv0x.js → p-B9MN_vv4.js} +1 -1
  506. package/dist/webcomponents/p-BIcS6lTe.js +1 -0
  507. package/dist/webcomponents/{p-BBx_EQqR.js → p-BRbqaU66.js} +1 -1
  508. package/dist/webcomponents/{p-Bgnhf5c9.js → p-BS7OgSQe.js} +1 -1
  509. package/dist/webcomponents/p-BT473_5I.js +1 -0
  510. package/dist/webcomponents/p-BXMAoCNA.js +1 -0
  511. package/dist/webcomponents/{p-B6IWa9Ph.js → p-BYrSeoci.js} +1 -1
  512. package/dist/webcomponents/{p-CCmDcLao.js → p-BdmYH_IK.js} +1 -1
  513. package/dist/webcomponents/p-BkaPXFTl.js +1 -0
  514. package/dist/webcomponents/{p-hbWSMN3O.js → p-Bm8T-MOQ.js} +1 -1
  515. package/dist/webcomponents/p-BwBb2Opu.js +1 -0
  516. package/dist/webcomponents/p-C6g4MbnB.js +1 -0
  517. package/dist/webcomponents/{p-1ydcg9ti.js → p-C77ElQ41.js} +1 -1
  518. package/dist/webcomponents/p-C7cvPZSk.js +1 -0
  519. package/dist/webcomponents/p-CJ9qo7_g.js +1 -0
  520. package/dist/webcomponents/{p-C98BC5W5.js → p-CPKSE7M4.js} +1 -1
  521. package/dist/webcomponents/{p-yH3TC3ZQ.js → p-CPpUGsw5.js} +1 -1
  522. package/dist/webcomponents/p-CQQ0H4Pb.js +1 -0
  523. package/dist/webcomponents/p-CTAOJGVx.js +1 -0
  524. package/dist/webcomponents/p-CVaOFfrI.js +1 -0
  525. package/dist/webcomponents/p-CVtpEQBE.js +1 -0
  526. package/dist/webcomponents/{p-l8F_7Ihw.js → p-CeSmGv6o.js} +1 -1
  527. package/dist/webcomponents/p-D9Yus-je.js +1 -0
  528. package/dist/webcomponents/p-DIdnZUSh.js +1 -0
  529. package/dist/webcomponents/{p-CH8Y3GSr.js → p-DSCBoCn-.js} +1 -1
  530. package/dist/webcomponents/p-DfKxeSrC.js +1 -0
  531. package/dist/webcomponents/{p-xDbRW9xn.js → p-Dj_zevuD.js} +1 -1
  532. package/dist/webcomponents/p-DqPvh0aN.js +1 -0
  533. package/dist/webcomponents/p-DxVCqvBt.js +1 -0
  534. package/dist/webcomponents/p-DxnXyWPn.js +1 -0
  535. package/dist/webcomponents/p-Dy3-IlQ3.js +1 -0
  536. package/dist/webcomponents/p-Dyk0thEr.js +1 -0
  537. package/dist/webcomponents/p-DzWLLt4t.js +1 -0
  538. package/dist/webcomponents/{p-CmBCj61h.js → p-F6TcNeK4.js} +1 -1
  539. package/dist/webcomponents/{p-au49QgoI.js → p-IYf7zn5J.js} +1 -1
  540. package/dist/webcomponents/{p-C0wTyoTh.js → p-UUJudj_5.js} +1 -1
  541. package/dist/webcomponents/{p-0cac8468.entry.js → p-a2344efb.entry.js} +1 -1
  542. package/dist/webcomponents/p-a42ec25b.entry.js +1 -0
  543. package/dist/webcomponents/p-a81f9fc3.entry.js +1 -0
  544. package/dist/webcomponents/p-b4b5dd24.entry.js +1 -0
  545. package/dist/webcomponents/p-b72794e3.entry.js +1 -0
  546. package/dist/webcomponents/p-be53e425.entry.js +1 -0
  547. package/dist/webcomponents/p-c4d919be.entry.js +1 -0
  548. package/dist/webcomponents/p-c4fb2fe8.entry.js +1 -0
  549. package/dist/webcomponents/p-c6e64ed5.entry.js +1 -0
  550. package/dist/webcomponents/p-c796f813.entry.js +1 -0
  551. package/dist/webcomponents/p-c8656d20.entry.js +1 -0
  552. package/dist/webcomponents/{p-0cf71cbd.entry.js → p-c8e94ab9.entry.js} +1 -1
  553. package/dist/webcomponents/p-c9bed02a.entry.js +1 -0
  554. package/dist/webcomponents/p-cca865be.entry.js +1 -0
  555. package/dist/webcomponents/p-cd108cae.entry.js +1 -0
  556. package/dist/webcomponents/p-cd20dc8f.entry.js +1 -0
  557. package/dist/webcomponents/p-cfd3035e.entry.js +1 -0
  558. package/dist/webcomponents/p-d1e99aac.entry.js +1 -0
  559. package/dist/webcomponents/p-d50f8328.entry.js +1 -0
  560. package/dist/webcomponents/p-d7558874.entry.js +1 -0
  561. package/dist/webcomponents/p-d8bef4b7.entry.js +1 -0
  562. package/dist/webcomponents/p-d8c2cea4.entry.js +1 -0
  563. package/dist/webcomponents/p-d8ef1d2b.entry.js +1 -0
  564. package/dist/webcomponents/p-e4e6f3b8.entry.js +1 -0
  565. package/dist/webcomponents/p-e60e7f6a.entry.js +1 -0
  566. package/dist/webcomponents/{p-2d9b817b.entry.js → p-ea746fa0.entry.js} +1 -1
  567. package/dist/webcomponents/p-f222426b.entry.js +1 -0
  568. package/dist/webcomponents/p-f72f67ef.entry.js +1 -0
  569. package/dist/webcomponents/p-fdf5a349.entry.js +1 -0
  570. package/dist/webcomponents/{p-C8k7a6D-.js → p-i--LPP1s.js} +1 -1
  571. package/dist/webcomponents/p-sCHf--Vc.js +1 -0
  572. package/dist/webcomponents/{p-DdZLLkQ5.js → p-ty1sI-fI.js} +1 -1
  573. package/dist/webcomponents/webcomponents.esm.js +1 -1
  574. package/package.json +13 -13
  575. package/LICENSE +0 -21
  576. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +0 -112
  577. package/dist/cjs/business-identity-schema-aFUle0C9.js +0 -51
  578. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +0 -107
  579. package/dist/cjs/helpers-B5OCqlIM.js +0 -35
  580. package/dist/cjs/state-options-CIT9xdTz.js +0 -246
  581. package/dist/esm/bank-account-document-form-inputs_4.entry.js +0 -107
  582. package/dist/esm/business-identity-schema-CDJzknbg.js +0 -48
  583. package/dist/esm/form-control-number-masked_2.entry.js +0 -104
  584. package/dist/esm/helpers-Mu7LQT-w.js +0 -29
  585. package/dist/esm/state-options-BX8GieXu.js +0 -244
  586. package/dist/module/helpers.js +0 -29
  587. package/dist/module/state-options.js +0 -244
  588. package/dist/webcomponents/p-000d6b5d.entry.js +0 -1
  589. package/dist/webcomponents/p-0256af65.entry.js +0 -1
  590. package/dist/webcomponents/p-0af5269e.entry.js +0 -1
  591. package/dist/webcomponents/p-0f16c00f.entry.js +0 -1
  592. package/dist/webcomponents/p-0f47f052.entry.js +0 -1
  593. package/dist/webcomponents/p-1872ee94.entry.js +0 -1
  594. package/dist/webcomponents/p-281ea1f6.entry.js +0 -1
  595. package/dist/webcomponents/p-2b568e8e.entry.js +0 -1
  596. package/dist/webcomponents/p-2d300faa.entry.js +0 -1
  597. package/dist/webcomponents/p-328117e4.entry.js +0 -1
  598. package/dist/webcomponents/p-32978110.entry.js +0 -1
  599. package/dist/webcomponents/p-40c3d17c.entry.js +0 -1
  600. package/dist/webcomponents/p-44ec2d88.entry.js +0 -1
  601. package/dist/webcomponents/p-44f9739e.entry.js +0 -1
  602. package/dist/webcomponents/p-47997bc2.entry.js +0 -1
  603. package/dist/webcomponents/p-50701f16.entry.js +0 -1
  604. package/dist/webcomponents/p-5235230f.entry.js +0 -1
  605. package/dist/webcomponents/p-526b7442.entry.js +0 -1
  606. package/dist/webcomponents/p-5aae36f3.entry.js +0 -1
  607. package/dist/webcomponents/p-5bd3d86e.entry.js +0 -1
  608. package/dist/webcomponents/p-5c0c35ac.entry.js +0 -1
  609. package/dist/webcomponents/p-78cb62a8.entry.js +0 -1
  610. package/dist/webcomponents/p-7dc9ef8a.entry.js +0 -1
  611. package/dist/webcomponents/p-7eb4b9b4.entry.js +0 -1
  612. package/dist/webcomponents/p-84551ee4.entry.js +0 -1
  613. package/dist/webcomponents/p-854b3db0.entry.js +0 -1
  614. package/dist/webcomponents/p-8663e8bd.entry.js +0 -1
  615. package/dist/webcomponents/p-8S_ROmnq.js +0 -1
  616. package/dist/webcomponents/p-8b3245c4.entry.js +0 -1
  617. package/dist/webcomponents/p-8ca21fab.entry.js +0 -1
  618. package/dist/webcomponents/p-8f8dfd4b.entry.js +0 -1
  619. package/dist/webcomponents/p-9365c7c2.entry.js +0 -1
  620. package/dist/webcomponents/p-9ad7d724.entry.js +0 -1
  621. package/dist/webcomponents/p-B-iV5cYd.js +0 -1
  622. package/dist/webcomponents/p-BX8GieXu.js +0 -1
  623. package/dist/webcomponents/p-BjNuRWXK.js +0 -1
  624. package/dist/webcomponents/p-BlJnA265.js +0 -1
  625. package/dist/webcomponents/p-BoQ6_4Ks.js +0 -1
  626. package/dist/webcomponents/p-C9EQ459H.js +0 -1
  627. package/dist/webcomponents/p-C9iide2W.js +0 -1
  628. package/dist/webcomponents/p-CCLgieAN.js +0 -1
  629. package/dist/webcomponents/p-Csfiax9X.js +0 -1
  630. package/dist/webcomponents/p-D0Peuz-m.js +0 -1
  631. package/dist/webcomponents/p-D6BImiVi.js +0 -1
  632. package/dist/webcomponents/p-DH8F0bsw.js +0 -1
  633. package/dist/webcomponents/p-DQZ5VHTZ.js +0 -1
  634. package/dist/webcomponents/p-DWn9BiNn.js +0 -1
  635. package/dist/webcomponents/p-DfV3dFDB.js +0 -1
  636. package/dist/webcomponents/p-Dt-vy9Le.js +0 -1
  637. package/dist/webcomponents/p-NAjz1Xfo.js +0 -1
  638. package/dist/webcomponents/p-PSJOKMWp.js +0 -1
  639. package/dist/webcomponents/p-RQzxYnz_.js +0 -1
  640. package/dist/webcomponents/p-T2yENPvU.js +0 -1
  641. package/dist/webcomponents/p-a10ae013.entry.js +0 -1
  642. package/dist/webcomponents/p-a8ad5f5c.entry.js +0 -1
  643. package/dist/webcomponents/p-a8e8d944.entry.js +0 -1
  644. package/dist/webcomponents/p-aa14cc74.entry.js +0 -1
  645. package/dist/webcomponents/p-ae8ae5bb.entry.js +0 -1
  646. package/dist/webcomponents/p-b3094b8f.entry.js +0 -1
  647. package/dist/webcomponents/p-baf0d3e7.entry.js +0 -1
  648. package/dist/webcomponents/p-bb53e2e9.entry.js +0 -1
  649. package/dist/webcomponents/p-bdf293f6.entry.js +0 -1
  650. package/dist/webcomponents/p-c089fb5f.entry.js +0 -1
  651. package/dist/webcomponents/p-c6dc30e2.entry.js +0 -1
  652. package/dist/webcomponents/p-d0a2035f.entry.js +0 -1
  653. package/dist/webcomponents/p-d1bceac6.entry.js +0 -1
  654. package/dist/webcomponents/p-d37d752e.entry.js +0 -1
  655. package/dist/webcomponents/p-d4476052.entry.js +0 -1
  656. package/dist/webcomponents/p-da1fb2a3.entry.js +0 -1
  657. package/dist/webcomponents/p-ddc0b742.entry.js +0 -1
  658. package/dist/webcomponents/p-e6011271.entry.js +0 -1
  659. package/dist/webcomponents/p-e6be4e19.entry.js +0 -1
  660. package/dist/webcomponents/p-eaefb320.entry.js +0 -1
  661. package/dist/webcomponents/p-ec9514f8.entry.js +0 -1
  662. package/dist/webcomponents/p-f11a74c3.entry.js +0 -1
  663. package/dist/webcomponents/p-f705fc49.entry.js +0 -1
  664. package/dist/webcomponents/p-fedfe376.entry.js +0 -1
  665. package/dist/webcomponents/p-ffefa09c.entry.js +0 -1
  666. package/dist/webcomponents/p-h5pyZngT.js +0 -1
  667. package/dist/webcomponents/p-tYuXMkCd.js +0 -1
  668. package/dist/webcomponents/p-wQgEEOq_.js +0 -1
@@ -1,244 +0,0 @@
1
- const StateOptions = [
2
- {
3
- label: 'Choose state',
4
- value: '',
5
- },
6
- {
7
- label: 'Alabama',
8
- value: 'AL',
9
- },
10
- {
11
- label: 'Alaska',
12
- value: 'AK',
13
- },
14
- {
15
- label: 'American Samoa',
16
- value: 'AS',
17
- },
18
- {
19
- label: 'Arizona',
20
- value: 'AZ',
21
- },
22
- {
23
- label: 'Arkansas',
24
- value: 'AR',
25
- },
26
- {
27
- label: 'California',
28
- value: 'CA',
29
- },
30
- {
31
- label: 'Colorado',
32
- value: 'CO',
33
- },
34
- {
35
- label: 'Connecticut',
36
- value: 'CT',
37
- },
38
- {
39
- label: 'Delaware',
40
- value: 'DE',
41
- },
42
- {
43
- label: 'District Of Columbia',
44
- value: 'DC',
45
- },
46
- {
47
- label: 'Federated States Of Micronesia',
48
- value: 'FM',
49
- },
50
- {
51
- label: 'Florida',
52
- value: 'FL',
53
- },
54
- {
55
- label: 'Georgia',
56
- value: 'GA',
57
- },
58
- {
59
- label: 'Guam',
60
- value: 'GU',
61
- },
62
- {
63
- label: 'Hawaii',
64
- value: 'HI',
65
- },
66
- {
67
- label: 'Idaho',
68
- value: 'ID',
69
- },
70
- {
71
- label: 'Illinois',
72
- value: 'IL',
73
- },
74
- {
75
- label: 'Indiana',
76
- value: 'IN',
77
- },
78
- {
79
- label: 'Iowa',
80
- value: 'IA',
81
- },
82
- {
83
- label: 'Kansas',
84
- value: 'KS',
85
- },
86
- {
87
- label: 'Kentucky',
88
- value: 'KY',
89
- },
90
- {
91
- label: 'Louisiana',
92
- value: 'LA',
93
- },
94
- {
95
- label: 'Maine',
96
- value: 'ME',
97
- },
98
- {
99
- label: 'Marshall Islands',
100
- value: 'MH',
101
- },
102
- {
103
- label: 'Maryland',
104
- value: 'MD',
105
- },
106
- {
107
- label: 'Massachusetts',
108
- value: 'MA',
109
- },
110
- {
111
- label: 'Michigan',
112
- value: 'MI',
113
- },
114
- {
115
- label: 'Minnesota',
116
- value: 'MN',
117
- },
118
- {
119
- label: 'Mississippi',
120
- value: 'MS',
121
- },
122
- {
123
- label: 'Missouri',
124
- value: 'MO',
125
- },
126
- {
127
- label: 'Montana',
128
- value: 'MT',
129
- },
130
- {
131
- label: 'Nebraska',
132
- value: 'NE',
133
- },
134
- {
135
- label: 'Nevada',
136
- value: 'NV',
137
- },
138
- {
139
- label: 'New Hampshire',
140
- value: 'NH',
141
- },
142
- {
143
- label: 'New Jersey',
144
- value: 'NJ',
145
- },
146
- {
147
- label: 'New Mexico',
148
- value: 'NM',
149
- },
150
- {
151
- label: 'New York',
152
- value: 'NY',
153
- },
154
- {
155
- label: 'North Carolina',
156
- value: 'NC',
157
- },
158
- {
159
- label: 'North Dakota',
160
- value: 'ND',
161
- },
162
- {
163
- label: 'Northern Mariana Islands',
164
- value: 'MP',
165
- },
166
- {
167
- label: 'Ohio',
168
- value: 'OH',
169
- },
170
- {
171
- label: 'Oklahoma',
172
- value: 'OK',
173
- },
174
- {
175
- label: 'Oregon',
176
- value: 'OR',
177
- },
178
- {
179
- label: 'Palau',
180
- value: 'PW',
181
- },
182
- {
183
- label: 'Pennsylvania',
184
- value: 'PA',
185
- },
186
- {
187
- label: 'Puerto Rico',
188
- value: 'PR',
189
- },
190
- {
191
- label: 'Rhode Island',
192
- value: 'RI',
193
- },
194
- {
195
- label: 'South Carolina',
196
- value: 'SC',
197
- },
198
- {
199
- label: 'South Dakota',
200
- value: 'SD',
201
- },
202
- {
203
- label: 'Tennessee',
204
- value: 'TN',
205
- },
206
- {
207
- label: 'Texas',
208
- value: 'TX',
209
- },
210
- {
211
- label: 'Utah',
212
- value: 'UT',
213
- },
214
- {
215
- label: 'Vermont',
216
- value: 'VT',
217
- },
218
- {
219
- label: 'Virgin Islands',
220
- value: 'VI',
221
- },
222
- {
223
- label: 'Virginia',
224
- value: 'VA',
225
- },
226
- {
227
- label: 'Washington',
228
- value: 'WA',
229
- },
230
- {
231
- label: 'West Virginia',
232
- value: 'WV',
233
- },
234
- {
235
- label: 'Wisconsin',
236
- value: 'WI',
237
- },
238
- {
239
- label: 'Wyoming',
240
- value: 'WY',
241
- },
242
- ];
243
-
244
- export { StateOptions as S };
@@ -1 +0,0 @@
1
- import{h as s,r as t,c as i}from"./p-DOjVAAtq.js";import{A as e}from"./p-DdZLLkQ5.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c,J as l}from"./p-l8F_7Ihw.js";import{c as h}from"./p-DGsXKF67.js";import{p as d,f as p,r as u,j as v}from"./p-Bgnhf5c9.js";import{v as m,i as f,a as y,H as j}from"./p-wQgEEOq_.js";import{D as _,E as g}from"./p-xDbRW9xn.js";import{S as w}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{S as C}from"./p-T2yENPvU.js";import"./p-a6tcNl_T.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-Csfiax9X.js";import"./p-DCIW8z1f.js";import"./p-HXpYMWUU.js";const k=e();class b{async fetchQuote(s,t){return k.post({endpoint:"insurance/quotes",body:t,authToken:s})}async toggleCoverage(s,t,i){return k.post({endpoint:`insurance/quotes/${t}/toggle`,body:i,authToken:s})}}const T=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(C,{width:"35%",height:"30px"})),s("div",{class:"col-12"},s(C,{width:"70%"})),s("div",{class:"col-12"},s(C,{width:"40%"})),s("div",{class:"col-12"},s(C,{width:"40%"})),s("div",{class:"col-12"},s(C,{width:"100%"})),s("div",{class:"col-12"},s(C,{width:"80%"}))),D=class{constructor(s){t(this,s),this.insuranceUpdated=i(this,"insurance-updated"),this.errorEvent=i(this,"error-event"),this.isLoading=!0}async validate(){return m()}processHTMLContent(s){return d(s,[s=>u(s,"style"),s=>v(s,"a","part",_),s=>v(s,"p","part",_)])}componentWillLoad(){c(),this.analytics=new l(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeServiceMethods(){const s=this.authToken||h.authToken;if(!s)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const t={authToken:s,service:new b};this.getQuote=(({authToken:s,service:t})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await t.fetchQuote(s,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(s){const t=a(null==s?void 0:s.code);return o({error:s.message||s,code:t,severity:r.ERROR})}})(t),this.toggleCoverage=(({authToken:s,service:t})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await t.toggleCoverage(s,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(s){const t=a(null==s?void 0:s.code);return c({error:s.message||s,code:t,severity:r.ERROR})}})(t)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:s})=>{this.quote=s,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),f[s.policy_type]=s.accepted,this.isLoading=!1},onError:({error:s,code:t,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}onChangeHandler(s,t){this.accepted=t,y[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),f[this.quote.policy_type]=this.accepted},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}get error(){var s;return y[null===(s=this.quote)||void 0===s?void 0:s.policy_type]}render(){var t,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):s(w,null,this.isLoading?s(T,null):s("div",null,s(j,{text:null===(t=this.quote)||void 0===t?void 0:t.product.title,class:"fs-5 fw-bold pb-3"}),s("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),s("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:g},"Please select an option"),s("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{D as justifi_season_interruption_insurance}
@@ -1 +0,0 @@
1
- import{r as s,c as e,h as t,H as i}from"./p-DOjVAAtq.js";import{C as n,a as r}from"./p-Cjcsf8ku.js";import{m as o,b as a,f as h,g as d}from"./p-5aA7gjr5.js";import{B as c,a as u,D as p}from"./p-DQZ5VHTZ.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as f,d as l,F as b}from"./p-DiJD6Iqx.js";import{A as m}from"./p-DdZLLkQ5.js";import{G as g}from"./p-xDbRW9xn.js";import{a as k,B as y}from"./p-XYgDHrVL.js";import{B as v}from"./p-C9EQ459H.js";import"./p-CZfYo5-1.js";import"./p-D2muobcE.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";const j=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-additional-questions-form-step-core",{key:"b494a48aa19f63e30007663276876540c5149879",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},w=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.postBankAccount=h({authToken:this.authToken,service:new u}),this.postDocumentRecord=d({authToken:this.authToken,service:new p})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-bank-account-form-step-core",{key:"adb496ad14cd3334d30e571d873150ed8335f833",businessId:this.businessId,getBusiness:this.getBusiness,postBankAccount:this.postBankAccount,postDocumentRecord:this.postDocumentRecord,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},_=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-core-info-form-step-core",{key:"1d2bd68e87d5f312c54f5a4bda8863b26fdeec5d",businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},C=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t(i,{key:"3420b6e74da344665583a49146b5b7fd1be40155"},t("justifi-business-owners-form-step-core",{key:"3e092450028815a0b134af4294edbb7589864409",authToken:this.authToken,businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s}))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},T=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-representative-form-step-core",{key:"582c77f4b763573a1d29726285a9b871afe96d89",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},I=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.formCompleted=e(this,"formCompleted"),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:r.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const e=this.termsPayload,t=await this.api.post({endpoint:this.termsConditionsEndpoint,body:e,authToken:this.authToken});this.handleResponse(t,s)}catch(s){this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,e)=>{this.acceptedTerms=e,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:e}))}}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=m(),this.formController=new b((s=>{const e=f({accepted:l().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),t=f({accepted:l().nullable()});return s?t:e})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,e){s.error?this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):e(),this.stepCompleteEvent.emit({response:s,formStep:k.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:k.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get merchantAgreementLink(){return t("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return t("form",{key:"8cea6fff2e5b5cbfa7de6b3adfce238153599d1e"},t("fieldset",{key:"ef3c4ce5d0d03f1d048e072c6f7ac3da565ffb18"},t("legend",{key:"caa5fee86bd4b5c2a7204a76ae3533146526b9e1",part:g},"Terms and Conditions"),t("hr",{key:"5a72caeaf2dae8f57c0be09ca21feceb0793daf4"}),t("div",{key:"e39700b83a10c479cf6d767c1af61ac8b480e4d5"},t("p",{key:"2b8520977bedf73c295a387095724a561391b005"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),t("br",{key:"706ec9ecfd4a0909583745f90b36eeb42fa5e690"}),t("div",{key:"d915e2c49188b829b33b03f07cc8f1ccea99ee1d",class:"row-gy-3"},t("div",{key:"cbbc74e6b5e80bf54884a8f41eb94f6d5bcdb6dd",class:"col-12"},t("form-control-checkbox",{key:"f63aed196d33f1760dae8c5ac5487c0fbc7d4838",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText,checked:this.acceptedTerms})))))}},S=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-legal-address-form-step-core",{key:"bd286476461181f2e8a435a97bf148d55876b49c",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},B=class{constructor(e){s(this,e)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return t("div",{key:"5869ed8c350e3a1ae5fe62dcd04493f432eecff7",class:"d-flex gap-2"},t(v,{key:"b1e8c2fff97e9a053d715860a43ddd78c99b255a",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),t(v,{key:"8696fe4f0bde5434e51f05f67b39a8e5b2f550bf",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,y.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),t(v,{key:"b1750a849d60244bdb3cf82690c6cbd15b6e1110",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,y.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},A=class{constructor(e){s(this,e),this.allowOptionalFields=!1,this.componentStepMapping={0:()=>t("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields}),1:()=>t("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields}),2:()=>t("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>t("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields}),4:()=>t("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields}),5:()=>t("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields}),6:()=>t("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return t("div",{key:"9a09e562d0a3548cb40863ba5780c5d1692b6ec3",class:"col-12 mb-4"},this.currentStepComponent)}};export{j as justifi_additional_questions_form_step,w as justifi_business_bank_account_form_step,_ as justifi_business_core_info_form_step,C as justifi_business_owners_form_step,T as justifi_business_representative_form_step,I as justifi_business_terms_conditions_form_step,S as justifi_legal_address_form_step,B as justifi_payment_provisioning_form_buttons,A as justifi_payment_provisioning_form_steps}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as a,H as e}from"./p-DOjVAAtq.js";import{a4 as i,a5 as h,a6 as r,a7 as c,a8 as o,l as d}from"./p-xDbRW9xn.js";const f=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.inputHandler(s,this.value),this.formControlInput.emit({name:s,value:this.value})}}get part(){return this.errorText?i:this.isFocused&&this.checked?h:this.checked?r:this.isFocused?c:o}render(){return a(e,{key:"22c8d00ad3ac42efb24eb601f4a56870ff4a546a",class:"form-group d-flex flex-column"},a("div",{key:"35348f22933cc6c02ed7ac802d5fe99c430b425b",class:"form-check"},a("input",{key:"02e95c2f92aabfeda66a9b39c889140a2daac14a",ref:t=>this.radioElement=t,type:"radio",id:`${this.name}-${this.value}`,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onChange:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,value:this.value,checked:this.checked}),a("label",{key:"71514aeb916b728b1d5c139db7d8bbf61875565d",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:d},this.label)),a("form-control-help-text",{key:"4b80544c0dde725a998d3d4a4ad96e48150a2ebf",helpText:this.helpText,name:this.name}),a("form-control-error-text",{key:"d5b711dc19ec9025989de7833839804df37f66dc",errorText:this.errorText,name:this.name}))}};export{f as form_control_radio}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DOjVAAtq.js";import{P as o}from"./p-8S_ROmnq.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{d as p}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-CH8Y3GSr.js";import{c as m,J as c}from"./p-l8F_7Ihw.js";import{m as d}from"./p-DYGIC0QH.js";import"./p-DdZLLkQ5.js";import"./p-Bgnhf5c9.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-xDbRW9xn.js";import"./p-Csfiax9X.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.enableRecordClick=!1,this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=d({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent,enableRecordClick:this.enableRecordClick})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
@@ -1 +0,0 @@
1
- import{r as e,h as t,H as a,c as s,g as r}from"./p-DOjVAAtq.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{E as o}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as i}from"./p-yH3TC3ZQ.js";import"./p-XYgDHrVL.js";import{n as d}from"./p-BnjCmwMr.js";import{s as c,e as l,k as n}from"./p-Bgnhf5c9.js";import{Z as f,G as b,ak as h,S as p,al as m,c as u,l as y,b as k,U as x,a as j}from"./p-xDbRW9xn.js";import{S as v}from"./p-T2yENPvU.js";import"./p-CZfYo5-1.js";import{F as _}from"./p-NAjz1Xfo.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const g=class{constructor(t){e(this,t)}render(){return t("div",{key:"23f5fa6b191b3feea7677a85a421002642a86f50",class:"row gy-3"},t("div",{key:"da9d9698f15aeb4bb05baef8fb63c630fcff8a82",class:"col-12"},t("form-control-file",{key:"b84a8ec1753210f74989c04b5520f0e94c5a083d",name:"voided_check",label:"Voided Check",documentType:o.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"06d442df900406f122970bde6b2b293f2c9080ee",class:"col-12"},t("form-control-file",{key:"b3dc1d48900c5932c4d59f8b31a323193f0e86b4",name:"bank_statement",label:"Bank Statement",documentType:o.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},T=class{constructor(t){e(this,t)}render(){return t("div",{key:"da4dc9523bca84cdd02f7e5d47e513c426ed90fd",class:"row gy-3"},t("div",{key:"b625a293dec704cbbb132469fdbc8c5d99a660e1",class:"col-12"},t("form-control-text",{key:"b41460ddc605f73faf71233ccbbef7e34e690e5a",name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"e5560bcdba399baa2e54441436ef5c67936e9fef",class:"col-12"},t("form-control-text",{key:"18cd16931899f724fd92cb89f1b8d4cd41c5354c",name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"3bb589db98e5d65022576b602bda41f36e3a90d5",class:"col-12"},t("form-control-text",{key:"c870513b8895add114d5ec588561fa6f33a63514",name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"1783e7b4af2b012338fe2e1b4f1faa9b5e086bcd",class:"col-12"},t("form-control-select",{key:"6a9af0f6edeae133dce04b7f829abb802db4ac83",name:"account_type",label:"Account Type",options:i,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"3c3ffced96f67320b4c580be6f28dd8ef5d2c109",class:"col-12"},t("form-control-text",{key:"e85df115a9de08ad9abb3237f7bf6c6d23c84150",name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:d,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"5a25cb25160aff24d1f62df2115dbd248709141e",class:"col-12"},t("form-control-text",{key:"dfdf7dce470efb8eea65aa6daf562d190963bace",name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:d,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},H=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(v,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:f},t("div",{class:"card-body"},t("h5",{class:"card-title",part:b},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:h},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:m},e.file_name),t("td",{part:m},e.file_type),t("td",{part:m},c(e.document_type)),t("td",{part:m},`${l(e.created_at)} - ${n(e.created_at)}`))))))))),t("hr",null)):null}},w=class{constructor(t){e(this,t),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.fileSelected=s(this,"fileSelected"),this.isFocused=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=u;return this.errorText&&(e=k),this.disabled&&(e=x),this.isFocused&&(e=j),e}render(){return t(a,{key:"1c348aaabc1d1defcd6b43857d5f96c65081480a"},t("div",{key:"c4242a743ad5ad7dbd4ea33d94209f9e1f32a54b",class:"form-group d-flex flex-column"},t("div",{key:"fe9c313899afb870878f0b93c9d424efb4243bdf",class:"d-flex align-items-start gap-2"},t("label",{key:"8229509739e4641da66d6ada865dd96d193c5189",part:y,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"cf9773e27c5e9af5f8dd1824dc4cc599ced525d2",helpText:this.helpText})),t("input",{key:"0de93e1cd1d87922682c6bdbc9d55f648659eeb9",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(_,{key:"0215ddf922a8f33ff7001ac2036a8f22a399266e",errorText:this.errorText,name:this.name})))}get el(){return r(this)}};export{g as bank_account_document_form_inputs,T as bank_account_form_inputs,H as business_documents_on_file,w as form_control_file}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as r}from"./p-DOjVAAtq.js";import{P as i}from"./p-BjNuRWXK.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as o,a as e}from"./p-Cjcsf8ku.js";import{P as p}from"./p-C98BC5W5.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 h}from"./p-l8F_7Ihw.js";import{S as c}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{d}from"./p-B6IWa9Ph.js";import"./p-DdZLLkQ5.js";import"./p-Bgnhf5c9.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-Csfiax9X.js";import"./p-CCmDcLao.js";import"./p-hbWSMN3O.js";import"./p-xDbRW9xn.js";const j=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new h(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:h})=>{var c,d;try{const h=await r.fetchPayments(t,s,i);if(h.error)return m({error:a(h.error),code:n(null===(d=h.error)||void 0===d?void 0:d.code),severity:o.ERROR});{const t=Object.assign({},h.page_info);e({payments:(null===(c=h.data)||void 0===c?void 0:c.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 h()}})({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(c,{key:"0e82f9f2e71485299ef1bfe8dd9cf17ff79b9550"},r("payments-list-core",{key:"e1a808634458a378db3fb0021b786de65047e28c",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payments_list}
@@ -1 +0,0 @@
1
- import{r,c as s,h as t}from"./p-DOjVAAtq.js";import{S as i}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{c as e,J as o}from"./p-l8F_7Ihw.js";import{d as a}from"./p-BBx_EQqR.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as n,a as p}from"./p-Cjcsf8ku.js";import{i as c}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as m,a as h}from"./p-D2muobcE.js";import{A as d}from"./p-DdZLLkQ5.js";import"./p-Csfiax9X.js";import"./p-xDbRW9xn.js";import"./p-Bgnhf5c9.js";import"./p-hbWSMN3O.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const l=d();class f{async fetchTerminalOrders(r,s,t){return l.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const j=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=a,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){e(),this.analytics=new o(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:i,onSuccess:e,onError:o,final:a})=>{var p,d;try{const a=await t.fetchTerminalOrders(r,s,i);if(a.error)return o({error:h(a.error),code:m(null===(d=a.error)||void 0===d?void 0:d.code),severity:n.ERROR});{const r=Object.assign({},a.page_info);e({terminalOrders:(null===(p=a.data)||void 0===p?void 0:p.map((r=>new c(r))))||[],pagingInfo:r})}}catch(r){const s=m(null==r?void 0:r.code);return o({error:r.message||r,code:s,severity:n.ERROR})}finally{return a()}})({id:this.accountId,authToken:this.authToken,service:new f}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"2a1b18985b1775ef97f0ef03a122ecc42a66fe15"},t("terminal-orders-list-core",{key:"a5950f3c91a5bfb09202f2db5acd367635d7bd94",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{j as justifi_terminal_orders_list}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-DOjVAAtq.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c,d as o,e as n,f as p,g as d,h as f,i as u,j as b,k as m,l as g}from"./p-C0wTyoTh.js";import{T as j}from"./p-CZfYo5-1.js";import{c as y,a as l}from"./p-CmBCj61h.js";import{o as k,g as C}from"./p-lKnUT24T.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-xDbRW9xn.js";import"./p-h5pyZngT.js";import"./p-hbWSMN3O.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,y,l),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"a39afbb74067a8ce3b4958f8509c6432d2e9acd4"},e(r,{key:"912298a9c2b9f701b939bc224ff73d74c5451d55"},e(h,{key:"dc14d0c44f7521360ccd76129c472825ded515cb"},e(c,{key:"2dd9d8f52b56ce9e2fc1d4b50fa37143ee33e6cf"},this.checkoutsTable.columnData.map((t=>t)))),e(o,{key:"41f0ccf7b211593bb5a4396a5c6f5b1d6c5c7bc3"},e(n,{key:"e80fb55f7e4ae660a97c37fe710a17190164d132",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"cd1f4f3204d6ee3baa4d826b0081196716e4b5dd",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(d,{key:"cb54166a78e4ee8ea25f1905893763cdd8d3dd92",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(u,{key:"bf8bfd7790f5bfbcb43d1d656fcdcc5a5776df98"},e(b,{key:"fb86e28f22e368cc78d55e165ced57b2a2076dca"},e(m,{key:"c5e1254f49c06c4129565422cb68ab956f420f74",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"14ec42d778e22b4c8796a1895e3f7f90732da45b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as checkouts_list_core}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-DOjVAAtq.js";import{f as t,p as s,c as r}from"./p-0fgTPVV0.js";import{q as l,u as i,v as d,w as o,x as p}from"./p-xDbRW9xn.js";import{S as c}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import"./p-a6tcNl_T.js";import{c as f,a as n}from"./p-Bgnhf5c9.js";import"./p-Cjcsf8ku.js";import{T as b,b as m}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import"./p-DdMxswn1.js";import"./p-HXpYMWUU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=f(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:b.created},{label:"Completed",value:b.completed},{label:"Submitted",value:b.submitted},{label:"In Progress",value:b.in_progress},{label:"On Hold",value:b.on_hold},{label:"Canceled",value:b.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:m.boardingOnly},{label:"Boarding Shipping",value:m.boardingShipping}]}render(){const e=Object.assign({},t);return a(c,{key:"e4220781c3a7878607a3fd369f6aef680caf7e3b"},a("table-filters-menu",{key:"a6d807965b30875ac0fc3b2a1c2fc016816515c1",params:e,clearParams:r,part:l},a("div",{key:"2dc1aa039a17ec35556ca87f69583f678ff98154",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"5c8487d29210150eef9cda19aa08098b94562735",class:"p-2"},a("form-control-select",{key:"d18aaaf9c0a0c7b35e5526cc0d13e63fa759827d",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||t.order_status||"",disabled:!!this.orderStatus,part:i})),a("div",{key:"9830ad536337ff56460a97f2af7b1d593b26a617",class:"p-2"},a("form-control-select",{key:"ab793e61dfb3839d733f86fe3a432f6625a80007",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||t.order_type||"",disabled:!!this.orderType,part:d})),a("div",{key:"fc0ba6a18cbfbefc9ed93db3badb1dac6c65aaed",class:"p-2"},a("form-control-date",{key:"c8b8dcafd434382b14b4fc53ce995689605d2b30",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:n(this.createdAfter,{showInputDateTime:!0})||n(t.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"3d52eebcde6a0b866c2a10c78ec50ea28a216e41",class:"p-2"},a("form-control-date",{key:"598cda521e3a1fbe6e68d219d0d49e013d0adb0a",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:n(this.createdBefore,{showInputDateTime:!0})||n(t.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:p})))))}};export{u as justifi_terminal_orders_list_filters}
@@ -1 +0,0 @@
1
- import{r as e,h as t}from"./p-DOjVAAtq.js";import{r as a}from"./p-xDbRW9xn.js";import{S as o}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";const s=class{constructor(t){e(this,t)}render(){return t(o,{key:"1b2afde467e7df3ac661951843ad81fd93878585",class:"payment-method"},t("div",{key:"1671afdd9d7ceb16836af9453a001ecaa2b6bab4",class:"radio-list-item p-3",part:a,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"3d1a48f478c9504b63c81ff2665ebff2fb19c862",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{s as payment_method_option}
@@ -1 +0,0 @@
1
- import{h as t,r as s,c as e}from"./p-DOjVAAtq.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{G as p}from"./p-xDbRW9xn.js";import{S as f}from"./p-T2yENPvU.js";import"./p-CZfYo5-1.js";import{a as v,r as b,s as y,b as g}from"./p-yH3TC3ZQ.js";import{a as w,B as _}from"./p-XYgDHrVL.js";import{E as x,l as j,m as T}from"./p-C98BC5W5.js";import{z as k,A as S,B as C,y as O,C as H,D as L}from"./p-PSJOKMWp.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as D,a as E}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{n as A}from"./p-BnjCmwMr.js";import{B as V}from"./p-C9EQ459H.js";import{i as B,a as P}from"./p-tYuXMkCd.js";import{S as W}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-Bgnhf5c9.js";import"./p-DdMxswn1.js";class I{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)),N=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"]}}},q=(t,s)=>t.some((t=>t.document_type===s)),M="Please upload either a voided check or a bank statement. Only one is required.",R=(t,s)=>{const e=q(t,x.voidedCheck),i=q(t,x.bankStatement),r=e||i,o=n().shape({bank_name:L.required("Enter bank name"),nickname:H.required("Enter nickname"),account_owner_name:O.required("Enter account owner name"),account_type:C.required("Select account type"),account_number:S.required("Enter account number"),routing_number:k.required("Enter routing number"),voided_check:a().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(M),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(M),otherwise:t=>t.notRequired()})},[["voided_check","bank_statement"]]),l=n({bank_name:L.nullable(),nickname:H.nullable(),account_owner_name:O.nullable(),account_type:C.nullable(),account_number:S.nullable(),routing_number:k.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},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.bankAccount={},this.existingDocuments=[],this.documentData=new j,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(R(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 T({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 I(t.data.bank_accounts[0]):(this.bankAccount=new I({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:E.POST_ERROR,message:s.error.message,severity:D.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await t.getFileData(),e=await fetch(t.presigned_url,{method:"PUT",body:s});return this.handleUploadResponse(e)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:E.POST_ERROR,message:t.error.message,severity:D.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(R(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){return new I(this.formController.values.getValue()).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:E.POST_ERROR,severity:D.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:w.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(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"]}}},Y=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:A,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."})),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:s.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:s.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})))))}},J=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"]}}},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.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(B("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})}},Q=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.legal_address=new d(t.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new d(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(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:W,inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.state,errorText:null===(r=this.errors)||void 0===r?void 0:r.state})),t("div",{class:"col-12"},t("form-control-text",{name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:A})),t("div",{class:"col-12"},t("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{N as justifi_additional_questions_form_step_core,X as justifi_business_bank_account_form_step_core,Y as justifi_business_core_info_form_step_core,J as justifi_business_owners_form_step_core,G as justifi_business_representative_form_step_core,Q as justifi_legal_address_form_step_core}
@@ -1 +0,0 @@
1
- import{r as s,c as i,h as t}from"./p-DOjVAAtq.js";import{c as o,J as e}from"./p-l8F_7Ihw.js";import{C as r,a as n}from"./p-Cjcsf8ku.js";import{m as p,a}from"./p-5aA7gjr5.js";import{B as h}from"./p-DQZ5VHTZ.js";import{A as m}from"./p-DdZLLkQ5.js";import"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import"./p-Csfiax9X.js";import"./p-D2muobcE.js";import"./p-a6tcNl_T.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-HXpYMWUU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const u=m();class d{async postProvisioning(s,i,t){return u.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const c=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=p({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"6d77016584f204fdc4be5fd554b4eb1639e856ab",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{c as justifi_payment_provisioning}
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as r}from"./p-DOjVAAtq.js";import{A as o}from"./p-DdZLLkQ5.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{E as p}from"./p-CH8Y3GSr.js";import{c as h,J as c}from"./p-l8F_7Ihw.js";import"./p-a6tcNl_T.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-HXpYMWUU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-xDbRW9xn.js";import"./p-Csfiax9X.js";const m=o();class u{async fetchGrossVolumeChartData(s,t){return m.get({endpoint:`account/${s}/reports/gross_volume`,authToken:t})}}const d=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var p;try{const h=await r.fetchGrossVolumeChartData(s,t);h.error?e({error:n(h.error),code:a(null===(p=h.error)||void 0===p?void 0:p.code),severity:i.ERROR}):o(h.data)}catch(s){const t=a(null==s?void 0:s.code);e({error:n(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_gross_payment_chart}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DOjVAAtq.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{C as e}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as c}from"./p-D2muobcE.js";import{c as p,J as n}from"./p-l8F_7Ihw.js";import{C as h}from"./p-CEk3bv0x.js";import{m,S as u}from"./p-DfV3dFDB.js";import{S as j}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{d}from"./p-CmBCj61h.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-Csfiax9X.js";import"./p-DdZLLkQ5.js";import"./p-hbWSMN3O.js";import"./p-xDbRW9xn.js";const l=class{constructor(i){t(this,i),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(){p(),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:p,onError:n})=>{var h,m;try{const u=await i.fetchCheckouts(t,s,r);if(u.error)return n({error:c(u.error),code:a(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);p({checkouts:(null===(h=u.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(j,{key:"1521139ac1c2f30516e70e5426a92b2bf615ae9a"},i("checkouts-list-core",{key:"4c9166e7a2c6adc57f96aee67ba580e5b3e80620",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_checkouts_list}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as a}from"./p-DOjVAAtq.js";import{X as s,Y as c,Z as d}from"./p-xDbRW9xn.js";const i=class{constructor(a){e(this,a),this.selectedQuantityChange=t(this,"selectedQuantityChange"),this.limit=1/0,this.selectedQuantity=0,this.removeUnit=()=>{this.selectedQuantity>0&&(this.selectedQuantity--,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.addUnit=()=>{this.limit>0&&(this.selectedQuantity++,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))}}render(){return a("div",{key:"5a0ac226861b9349ad26e184d9295052ca987ba5",class:"rounded shadow-sm card p-2",part:d},a("div",{key:"89d2c494975c1a2d2c71d9047c44119a48c5ba11",class:"d-flex gap-3"},a("div",{key:"ca30020f4b3469df0a59f5ca5fa8b81a039f9d5f",class:"d-flex align-items-center"},a("img",{key:"291fc116fff8b4d33ba3fc1bfb2ec3bd59bef007",src:this.imageUrl,alt:this.modelName,height:75,width:75,part:s})),a("div",{key:"56466b3e7a47f7156b40bc0e60d8158d63f5700a",class:"d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center"},a("div",{key:"871c7d5d2575a6a26ee11d817b1cce5ce42cbffb",class:"row"},a("div",{key:"12e3e653243d07dc4a712f9127927924e13c411a",class:"col-6 d-flex gap-2"},this.modelName,a("form-control-tooltip",{key:"a69d9738422defbb50ec1abb951b049e53fb5f8c",helpText:this.description})),a("div",{key:"84bc103439e64acc04b20afd0295a792c78595c5",class:"col-6 d-flex justify-content-end align-items-center"},a("button",{key:"e245dfcc301ef1efe2aed937af3d21eecff1004e",class:"p-0 minus btn",onClick:this.removeUnit,part:c},"-"),a("div",{key:"30827d9946f4d82b57ee3967ab2cfe475e9ab65c",class:"w-25 text-center"},this.selectedQuantity),a("button",{key:"758b3a72d98a540b8b92dc8b86c8abdd7d19d2a9",class:"p-0 plus btn",onClick:this.addUnit,part:c},"+"))))))}};export{i as terminal_quantity_selector}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-DOjVAAtq.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as i,a}from"./p-Cjcsf8ku.js";import"./p-C98BC5W5.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 m,h as u,i as b,j as g,k as y,l as j}from"./p-C0wTyoTh.js";import{T as l}from"./p-CZfYo5-1.js";import{p as k,a as C}from"./p-D0Peuz-m.js";import{o as w,g as v}from"./p-NwmOm8Pg.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-xDbRW9xn.js";import"./p-h5pyZngT.js";import"./p-au49QgoI.js";import"./p-hbWSMN3O.js";const S=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(),w("set",(()=>{this.pagingParams={}})),w("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=v();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:"44f6c2c3a44435f30c61220114797c5938e475a8"},e(o,{key:"756c4ea4ad9c59bea1241af2502c03ced6ec3623"},e(c,{key:"2748d99edcaea098b111954178cf799811be445c"},e(n,{key:"c824617152c899cdff946f979ac71dbdb8002ffa"},this.payoutsTable.columnData.map((t=>t)))),e(p,{key:"4ae6368c8a634f0a1aa85117a2ead0dd66f9828c"},e(d,{key:"f6473742b82e604808474cf294aca1f09bcf820f",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(f,{key:"334eef7d28de693a0c5e4f413c72268acf00bc6d",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(m,{key:"6172568fd0282924413cbf28255d06f1651bcdbe",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(b,{key:"232dad4bfb95c707989633a1c0c198481aa3a5e1"},e(g,{key:"1bb1da49bef435aec118bc8c8eb5a96c0469f817"},e(y,{key:"481a46c6488f8652f6360725b45ec76baecc6ad4",colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"d4fdb00ff58d674f77d99502d98c572562f516ea",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{S as payouts_list_core}
@@ -1 +0,0 @@
1
- import{r as e,h as t}from"./p-DOjVAAtq.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{I as a,a as s}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{f as l,p,c as o}from"./p-lKnUT24T.js";import{e as r,s as i,p as c}from"./p-xDbRW9xn.js";import{S as d}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const m=class{constructor(t){e(this,t),this.setParamsOnChange=(e,t)=>{l[e]=t}}componentWillLoad(){Object.entries({status:this.checkoutStatus,payment_mode:this.paymentMode}).forEach((([e,t])=>{t&&(p[e]=t)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:a.created},{label:"Completed",value:a.completed},{label:"Attempted",value:a.attempted},{label:"Expired",value:a.expired}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:s.ecom},{label:"BNPL",value:s.bnpl}]}render(){const e=Object.assign({},l);return t(d,{key:"39b7e8cae3782643fc447fb66211f165021e39f8"},t("table-filters-menu",{key:"ec4668c59ba4d056b472e5d30f4e526fdb065935",params:e,clearParams:o,part:r},t("div",{key:"b422804789a74a8063f77f307b8d477bd1ac98c0",class:"grid-cols-2 gap-3 p-1"},t("div",{key:"d0125c273dd3bf11c3e50a4a470ddf9839d5efd2",class:"p-2"},t("form-control-select",{key:"8d28305771dd12aa90784c3ce7a96de521b19a36",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||l.status||"",disabled:!!this.checkoutStatus,part:i})),t("div",{key:"5980940381f9651936002a7cf563a373ab6db20a",class:"p-2"},t("form-control-select",{key:"f08541d0afbc4f808c5245e167190f2073cec49c",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||l.payment_mode||"",disabled:!!this.paymentMode,part:c})))))}};export{m as justifi_checkouts_list_filters}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-DOjVAAtq.js";import{f as t,p as s,c as r}from"./p-NwmOm8Pg.js";import{m as f,n as c,o}from"./p-xDbRW9xn.js";import{S as d}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{c as p,a as b}from"./p-Bgnhf5c9.js";import"./p-DdMxswn1.js";import"./p-HXpYMWUU.js";const i=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=p(a,{setEndOfDay:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}render(){const e=Object.assign({},t);return a(d,{key:"41eeb0429b0228f59f50b82fa8433dedacf56aed"},a("table-filters-menu",{key:"10b29c5ab84d582867e7d58dae927ffceb20bf63",params:e,clearParams:r,part:f},a("div",{key:"9f1a6b6409b06c3b8c44f513834f9ff4b8c97657",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"886691c037614a7623b78b0b4010fc539b7a0e94",class:"p-2"},a("form-control-date",{key:"b6553e03f27a2a65d241e679515cf1e1ecf3ebb8",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:b(this.createdAfter,{showInputDate:!0})||b(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:c})),a("div",{key:"7609b6996b9e1dfab4c20bb68cde950cfea42442",class:"p-2"},a("form-control-date",{key:"118337c44913278ccc71e833a8afdb1d61071592",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:b(this.createdBefore,{showInputDate:!0})||b(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:o})))))}};export{i as justifi_payouts_list_filters}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-DOjVAAtq.js";import{T as i,a,b as r,c as h,d as o,e as n,f as c,g as p,h as d,i as f,j as m,k as b,l as g}from"./p-C0wTyoTh.js";import{T as j}from"./p-CZfYo5-1.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import{p as u}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{t as l,a as y}from"./p-BBx_EQqR.js";import{o as k,g as C}from"./p-0fgTPVV0.js";import"./p-xDbRW9xn.js";import"./p-h5pyZngT.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-hbWSMN3O.js";const O=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminalOrders=[],this.loading=!0,this.paging=u,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new i(this.terminalOrders,this.columns,l,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"f642f35fa0bd514d42f94a2991ec00923159d788"},e(a,{key:"dc6a0488729a57c4792ae84a16c8a7d4c00e16cb"},e(r,{key:"04ebae008a9e7c29b1a5bd2efb948605857743f0"},e(h,{key:"61931ebd8258c4a6e83692de4dd43cb3766cad0e"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"f8acfec2e54c75df0c5e0082ed14693f1f01169a"},e(n,{key:"095f29bb7c56371397c07a22f40b17b673d7c8d1",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(c,{key:"fc77d1eb81ec891fbe6345e4fd23028d70c60331",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(p,{key:"5a6e8f297219dc45d96d5d7e17a8636ca1b50648",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"66b118f9daba0f6b8a12869d3348a06e7425f1f0"},e(m,{key:"a3e149e674bb6f5a9114da1b917ddb7addf6effb"},e(b,{key:"34eedd1c6d8ff11935a5b411d821efd4eba1381f",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"1374d80bd8c0307afae2c226f3e07b9e1cf21878",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{O as terminal_orders_list_core}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as a,H as s,g as i}from"./p-DOjVAAtq.js";import{F as r}from"./p-NAjz1Xfo.js";import{i as o,b as l,a as f,U as h,c as n,l as c}from"./p-xDbRW9xn.js";const d=class{constructor(a){t(this,a),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur")}render(){return a(s,{key:"54f8fba4d9bc07aafaa174983d2076ea0dcadc0a",exportparts:"label,input,input-invalid"},a("div",{key:"2fe88af83e94677829c929ecc1e8a3e158d186d7",class:"form-group d-flex flex-column"},a("div",{key:"70ba8fca4595554f0ebafe314570e6b7f257fe84",class:"d-flex align-items-start gap-2"},a("label",{key:"3f2b47ce3509acfe5b52573b4742824ffd8b1a60",part:"label",class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"21fd8bb39e59287f546486ce2d3328c6a3eda5cb",helpText:this.helpText})),a("input",{key:"a8713185858b865850f8f362367af36cfd7e712c",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit(),onChange:()=>this.errorText=""}),a(r,{key:"5ccdf1adad43c5f7f789b292fc49584b23b69436",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},b=class{constructor(a){t(this,a),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,a=e.getAttribute("name");this.inputHandler(a,e.value),this.formControlInput.emit({name:a,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?l:this.isFocused?f:this.disabled?h:n}render(){return a(s,{key:"17565b8284dd9766896b450d6127f6e735591443"},a("div",{key:"b4ba485d3330fe2dd2ecad155360b6865f9eac28",class:"form-group d-flex flex-column"},a("label",{key:"96e9ac9b482085fc85d9f6d19cc08b0afe3f4853",part:c,class:"form-label",htmlFor:this.name},this.label),a("textarea",{key:"2db671bba03af9e8f1626029eebe3e755051f223",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),a("form-control-help-text",{key:"8670e24897cebcb1128993f24bdffa2cf26d7688",helpText:this.helpText,name:this.name}),a("form-control-error-text",{key:"a48c15a05be9351ed450a01f5c958a4078ab1ed7",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_file_v2,b as form_control_textarea}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s}from"./p-DOjVAAtq.js";import{f as i}from"./p-Bgnhf5c9.js";import{D as a,aj as r}from"./p-xDbRW9xn.js";import{B as d}from"./p-C9EQ459H.js";import{S as o}from"./p-BhCH9S0e.js";import{S as c}from"./p-T2yENPvU.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-Cjcsf8ku.js";import{g as p,a as f}from"./p-D2muobcE.js";import{D as l}from"./p-C8k7a6D-.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-l8F_7Ihw.js";import"./p-HXpYMWUU.js";import"./p-DdZLLkQ5.js";import"./p-a6tcNl_T.js";import"./p-DdMxswn1.js";import"./p-C98BC5W5.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-Csfiax9X.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(o,{key:"ab36fe0292ebcc4d2f062898065c135b869be67a"},this.isLoading&&s("div",{key:"8cff4628d911c7119b0f8d1612e99caad526746c",style:{marginBottom:"8px"}},s(c,{key:"ee3bce3019778f5e481ae26ada89e70090671b37",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(c,{key:"242cbb756770f1545d09f5e79c539683158acaa6",height:"18px",styles:{marginBottom:"8px"}}),s(c,{key:"409e7d228cb414ed458959107ba5ba2fe38eed72",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"8ba65861b311e2020f52ee38f0303b19c4b8b386",part:a},s("h1",{key:"9f62e7a3144e50a0980d5e3ea2a1e078ec8e9d0b",class:"h4",part:r},"This payment is disputed"),s("p",{key:"533af5d2cc8cba530812d247f60ad7a92e4a36a3"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"cf842a85853e34e3b1a38674d36bd0a4705ff5e0",class:"h5"},"Dispute details"),s("div",{key:"cd3bcc4861a2ba4a576638d9a0e86927ff4d7123",class:"d-table gap-2"},s("div",{key:"1bd4ce368992bf9d6855a301e0b249c68a98471c",class:"d-table-row gap-2"},s("span",{key:"18845a901fcd0bff4480b780bbcf35fc171f4b0b",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"75533ed5fd445f69a4967a6625cab5badc5766a3",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"5c0974a223983b19150230544d4c3b4154747de2",class:"d-table-row gap-2"},s("span",{key:"7d09c4fdbc0b5f38f15d78b3c325e256d29136dc",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"2379e217700a07a388650f7ca82ca5a420175dd9",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"c4b5ad2e540d0ab61ff29b2913344ed055a56618",class:"d-table-row gap-2"},s("span",{key:"2f32326e0067d8d8ac734ba9f16b6aee0e774cc2",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Due Date"),s("span",{key:"823b0d79ad2c77ef68c27300a5b8f539bfa66b30",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.due_date))),s("div",{key:"8a0cca3f006564da1feee39e06b3e322cd2773fc",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"07d7ba81e9353183148c9892ea8016537095b078",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"05d437f6711fae2398f865fdaeb6908327f8b68b",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"4ca58f734515deb7c713c13a2f69f0f42d52f706"},s("h1",{key:"65f92415880cc2fb39b7b2753df960ec10437455",class:"h4"},"This payment is disputed and under review"),s("p",{key:"8129f146f956db43378b672f68a9edeec9374401"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"85acb2724f46424856bf4fc885bd1553539ce2be"},s("h1",{key:"7ce9b3ed57a5c3cd904d1c706044091fbda3dc03",class:"h4"},"This payment was disputed"),s("p",{key:"6a92fd3be617562d1ba10192ec508354a9450150"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"8e45676c7909732bee12f707297987b927b9526c"},s("h1",{key:"f64abd54f60a63e0ff6888beecc74050e2f860db",class:"h4"},"This payment was disputed"),s("p",{key:"bd2e689d5de42468b67259573b8289835c4acc5e"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(o,{key:"62d1cf5247d9049fd5aa66d13c64ef1b16625f46"},s("justifi-dispute-response-core",{key:"b5903023092984d31135dcd037850d66acc860df","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.stepCompleteEvent=t(this,"complete-form-step-event"),this.submitEvent=t(this,"submit-event"),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"b57563a641ae4f1be39f5f64ca88132b92aff3bd",class:"row gy-3"},s("div",{key:"72f86b4907aaa872db039783e06f38b5c9d26658",class:"col-12"},s("h1",{key:"62c570a4c30831bbc805e8cbad8d9e5d1433f5a5",class:"h4",part:r},"Counter dispute")),s("div",{key:"692d6386e5c4874a0c2585fca9ffd6194dc8ef85",class:"col-12"},this.currentStepComponent),s("div",{key:"a7b614f93994721ff45724cbb6ff42877ff55aeb",class:"col-12"},s("div",{key:"e6c66ca06f1eaab7baa10742246e0707d7ebd083",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{v as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-DOjVAAtq.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as m,i as f,j as b,k as u,l as g}from"./p-C0wTyoTh.js";import{T as l}from"./p-CZfYo5-1.js";import{t as j,a as y}from"./p-ClvhB3WW.js";import{o as k,g as C}from"./p-Dieke6TH.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-xDbRW9xn.js";import"./p-h5pyZngT.js";import"./p-hbWSMN3O.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},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").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:l.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,j,y),this.getTerminals&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"dd5f6ca2944a4c612c5a99e7e70b64240ff77890"},e(r,{key:"05c34cdbf22ec62b04165259fc456b8f7f94e166"},e(h,{key:"9d55c62444326c96a8cf81f2237d6bd16ecef155"},e(o,{key:"a0f923fb4937dad46d37085f15b93097aa9453bb"},this.terminalsTable.columnData.map((t=>t)))),e(c,{key:"bb82808aaf16e572b90e09f9666384907317c617"},e(n,{key:"a5fad3901302bd468c1e8e312eb3fadedee709c4",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"f954dda201865b55141e9288219729561fc22240",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"8fce08061353a7ed9d5f364489cce99fb934e36c",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"e62da6a0cfca1447dce0e65999ecaee501cb1060"},e(b,{key:"12e0ac4fb55a6cb9960a4bc69296addccc629b54"},e(u,{key:"4024dfbee9409a2b1e9d22272ba23ed16c0afbe8",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"201eb194b2f8c620b5a775d7e2077c8e33de8aa2",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as terminals_list_core}
@@ -1 +0,0 @@
1
- import{r as a,h as e,H as s}from"./p-DOjVAAtq.js";import{E as c}from"./p-CLHwhyvu.js";import{a9 as t,aa as i,ab as b,ac as d,ad as f}from"./p-xDbRW9xn.js";const n=class{constructor(e){a(this,e),this.paging=c,this.params={}}render(){return e(s,{key:"7b821154b627026ef8624af6e4759e2176004676"},e("nav",{key:"7990aee285d0cc3e6f83cb59bb216439e5364df5","aria-label":"Table pagination",class:"d-flex justify-content-end gap-3"},e("ul",{key:"02c68163934ce1aabf4abd607cc28e549e20ebe1",class:"pagination m-0"},e("li",{key:"aab661ae85fc61eecd230d058f135483796769c0",class:"page-item "+(this.paging.has_previous?"":" disabled")},e("button",{key:"ef42a41831a9890186c333418b161877761674e1",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickPrevious(this.paging.start_cursor)},part:this.paging.has_previous?t:i},e("span",{key:"a898a92687e4a5fec37d9dab4208430260a9f274",class:"me-1",part:b},"«"),e("span",{key:"ecc2eeedc064d405ad178b9a98ed088e12f1b2fb",part:d},"Previous"))),e("li",{key:"56569cd9f9803ead8b1180e2f982a98d7009be1f",class:"page-item "+(this.paging.has_next?"":" disabled")},e("button",{key:"c39d389ab89609e8ce11b3dd81eb5c4a50d3521f",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickNext(this.paging.end_cursor)},part:this.paging.has_next?t:i},e("span",{key:"6a01458a048a524931b03df6a964fa4a0ac403ac",part:d},"Next"),e("span",{key:"f4cb3d084647c00dff30b99f751180564463443f",class:"ms-1",part:f},"»"))))))}};export{n as pagination_menu}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as i}from"./p-DOjVAAtq.js";import{c as a,J as s}from"./p-l8F_7Ihw.js";import{c as d}from"./p-DGsXKF67.js";import{d as c}from"./p-xDbRW9xn.js";import{S as o}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{P as h}from"./p-DCIW8z1f.js";import"./p-Csfiax9X.js";import"./p-DdZLLkQ5.js";import"./p-a6tcNl_T.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const f=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event"),this.loadedEvent=t(this,"loaded"),this.submitEvent=t(this,"submit-event"),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.isSubmitting=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){a(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){this.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=this.disableBnpl?e.detail.availablePaymentMethodTypes.filter((e=>e!==h.SEZZLE)):e.detail.availablePaymentMethodTypes}async fillBillingForm(e){var t;d.billingFormFields=e,null===(t=this.tokenizePaymentMethodRef)||void 0===t||t.fillBillingForm(e)}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){d.checkoutId=this.checkoutId,d.authToken=this.authToken,d.disableCreditCard=this.disableCreditCard,d.disableBankAccount=this.disableBankAccount,d.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;this.isSubmitting=!0,null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(d.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"0d0a0eb14ce4f41683a13da63045c0f9cdadaf9c"},i("justifi-modular-checkout",{key:"c1bdc5df815a0644ed9c2c1f993fbce3317c89ed",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId},i("div",{key:"c2b1585130865059c416950d203e4bc6de14d7bb",class:"row gy-3 jfi-checkout-core"},i("div",{key:"1f7e5140220fa4e47167ad94fc73ec6f097b8c38",class:"col-12",part:c},i("justifi-header",{key:"a9c940a936f3db6425ac8402910163696f57d70a",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"fd46c93c9f17cac96a40b24e2abfdd9d63e5dd3a"},i("justifi-checkout-summary",{key:"4cbdfebd16b6ce411fd2ff8e9b82c141898d9aae"}))),i("div",{key:"43d2188813a694719154b80a7e7a8fcf7a09a672",class:"col-12 mt-4"},i("slot",{key:"29b07bb448b85bb15a38b961afb2c5bb22d4be73",name:"insurance"})),i("div",{key:"46b213c8ebdb4b0d5e64a8fcd84a1d5fe95c7315",class:"col-12 mt-4"},i("justifi-header",{key:"e88f4f3092521158a2f16f4158ec681af39c739f",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"1b610381d0e4e14811be8d3f6edd979936e6f07f",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"0da7399801ecdebd77f516fc60d68c7c84b8be0c",class:"d-flex flex-column"},i("section",{key:"d2cebab6a6a34cffca18e4720b18e177d4c5930c"},i("div",{key:"be648fcfc8ab083d81054ec291a524f501764eaa"},i("justifi-saved-payment-methods",{key:"b54b3e367e91d6bfb3a46cab928aeb85d059696f"}),this.availablePaymentMethods.includes(h.APPLE_PAY)&&i("div",{key:"96f6ab9bda4f61c053d09c67fbc007ff8ecbaa46",class:"mb-3"},i("justifi-apple-pay",{key:"91699bd30da48629cda982ab933f4c381259a13a"})),this.availablePaymentMethods.includes(h.SEZZLE)&&i("justifi-radio-list-item",{key:"ec38314be2801ada679b55df9e490bf89aa3fce7",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)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"582830c28451e28433d7de007db2541d333ad5f0",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:"7b065ec87f539d97c2977905c8afc759fd1f4a4e",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:"5370b456cbf1ce93a241f3dfff980cefe668652a",class:"mt-4"},i("justifi-button",{key:"7bbb85faf30a34650fa252d7d1d80d332a803bcd",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:this.isSubmitting,isLoading:this.isSubmitting,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{f as justifi_checkout}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-DOjVAAtq.js";import{u as d,a as t,b as s}from"./p-1ydcg9ti.js";import{P as l,S as o}from"./p-B-iV5cYd.js";import{G as i}from"./p-xDbRW9xn.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const r=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{d(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{t(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,d,t,r,c,f,n;return a("form",{key:"e4b7a532e18a921a5a28aab31f679fbbad164198"},a("fieldset",{key:"d7056e5ee25625adb563e2687f581157653c8a9d"},a("div",{key:"456aab0ef1399a7c1d272059c881c6c6f3d0e87c",class:"d-flex align-items-center gap-2"},a("legend",{key:"430b3731bbd97ff1589bd81bd6fdaa4082161180",class:"mb-0",part:i},"Representative"),a("form-control-tooltip",{key:"47676ededb80e0f766cb786265d8fb307c60d125",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),a("hr",{key:"514197b5bd4868ec29e75dc74367deb187b32063",class:"mt-2"}),a("div",{key:"f2986d55d0bfbf0e6059f0b2a766d2dc603acdc5",class:"row gy-3"},a("div",{key:"e4a3749c5e972f505527b8fc172f9a4214806345",class:"col-12 col-md-8"},a("form-control-text",{key:"d54c8d17f0360277fe04dd91a528e303182495c7",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"4fa0b1a192fb39a982c957d202ea2ac1e40dedd8",class:"col-12 col-md-4"},a("form-control-text",{key:"8c3bca4234ea0e7ae3c79d810ffb469637898eb6",name:"title",label:"Title",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),a("div",{key:"7e14a61364883172f2938bd8b1e53883ddd369fe",class:"col-12 col-md-6"},a("form-control-text",{key:"8d9c81d374998dbaea5322906fddb5eeadea1546",name:"email",label:"Email Address",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"c3f369b226a08497926b26d0732b7dc9d6413559",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"734625aeac8384f2b8676c4d350368675cff3a6f",name:"phone",label:"Phone Number",defaultValue:null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:l.US})),a("div",{key:"23d509b724f2617eb0a4f85c74238b09a052a6cb",class:"col-12 col-md-4"},a("form-control-date",{key:"0f838cc474beab9822a84856733a86ecf43f0ec3",name:"dob_full",label:"Birth Date",defaultValue:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>s(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"f6d08c53dad2e9a550adf893ac59166015ffb6e4",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"dd610955fb7c62fd0aab9af925af34cdc47ab3e9",name:"identification_number",label:"SSN",defaultValue:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:o,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),a("div",{key:"d4e2a212a87ca9be4be8e21f3e47008b2201871c",class:"col-12"},a("justifi-identity-address-form",{key:"bb2d0d01e07be4d37acfd448796c8a33460111ed",errors:this.errors.address,defaultValues:null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{r as justifi_business_representative_form_inputs}