@justifi/webcomponents 6.12.1-rc.5 → 6.12.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 (646) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Analytics-D4AupIs5.js → Analytics-C1Wd9OW4.js} +3 -3
  3. package/dist/cjs/{Plaid-DAigb4JE.js → Plaid-BlSGeGpn.js} +0 -4
  4. package/dist/cjs/additional-questions-form-step_14.cjs.entry.js +12 -12
  5. package/dist/cjs/additional-questions_5.cjs.entry.js +6 -6
  6. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +3 -3
  7. package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
  8. package/dist/cjs/bank-account-read-only-value.cjs.entry.js +1 -1
  9. package/dist/cjs/{business.service-CdT38fur.js → business.service-BheJs82v.js} +1 -1
  10. package/dist/cjs/card-form.cjs.entry.js +4 -4
  11. package/dist/cjs/{check-pkg-version-Cl1JxnNX.js → check-pkg-version-DMXmPDqZ.js} +1 -1
  12. package/dist/cjs/{checkout.service-BXK8cZfN.js → checkout.service-DZKdHQQq.js} +1 -1
  13. package/dist/cjs/{checkout.store-zTfjieKa.js → checkout.store-CztwuCnG.js} +2 -0
  14. package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -2
  15. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  16. package/dist/cjs/{dispute.service-CeBgrOjr.js → dispute.service-BbtwY673.js} +1 -1
  17. package/dist/cjs/form-address-fields_3.cjs.entry.js +4 -4
  18. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  21. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
  23. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  24. package/dist/cjs/form-control-number_3.cjs.entry.js +5 -5
  25. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  26. package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
  27. package/dist/cjs/{get-business-Cu7Avp2x.js → get-business-CKC1P4Qs.js} +2 -2
  28. package/dist/cjs/{get-payment-details-qWCANtqS.js → get-payment-details-DL5FmIyF.js} +2 -2
  29. package/dist/cjs/{get-subaccounts-D6z1oD7x.js → get-subaccounts-CVK4O7th.js} +2 -2
  30. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  31. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  32. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  33. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  34. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +117 -53
  35. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
  36. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
  37. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-business-details.cjs.entry.js +58 -22
  40. package/dist/cjs/justifi-business-form.cjs.entry.js +7 -7
  41. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  42. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
  43. package/dist/cjs/justifi-checkout.cjs.entry.js +9 -12
  44. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -3
  45. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +8 -8
  46. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  47. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
  48. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +10 -10
  49. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  50. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -9
  51. package/dist/cjs/justifi-payment-details.cjs.entry.js +69 -30
  52. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -8
  53. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -7
  54. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-payments-list.cjs.entry.js +132 -18
  56. package/dist/cjs/justifi-payout-details.cjs.entry.js +74 -18
  57. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -7
  58. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-payouts-list.cjs.entry.js +169 -21
  60. package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -7
  61. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  62. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
  63. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
  64. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  65. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -4
  66. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -7
  67. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
  68. package/dist/cjs/justifi-terminals-list.cjs.entry.js +183 -20
  69. package/dist/cjs/loader.cjs.js +1 -1
  70. package/dist/cjs/{package-BRuzzVG1.js → package-CRaVpb0w.js} +1 -1
  71. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  72. package/dist/cjs/{payment-provisioning-actions-COLn1qHN.js → payment-provisioning-actions-BO7dzIm1.js} +2 -2
  73. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +2 -2
  74. package/dist/cjs/{payment.service-CiOWHJtd.js → payment.service-sZKlg2Jq.js} +1 -1
  75. package/dist/cjs/{payout.service-U7tm4CKf.js → payout.service-BcQVsMCS.js} +1 -1
  76. package/dist/cjs/{payouts-status-DXZ5fl4v.js → payouts-status-CwgOMz-S.js} +21 -0
  77. package/dist/cjs/{plaid.service-DFL4b6_i.js → plaid.service-BcgO2VXC.js} +1 -1
  78. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  79. package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
  80. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  81. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -3
  82. package/dist/cjs/{terminal-orders-table-D28SoPYI.js → terminal-orders-table-Cz6qvzVE.js} +1 -1
  83. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  84. package/dist/cjs/{terminal.service-Cl7Vp33V.js → terminal.service-CjMMWSh3.js} +1 -1
  85. package/dist/cjs/{utils-CIjcxKu1.js → utils-DbTucCTO.js} +1 -1
  86. package/dist/cjs/webcomponents.cjs.js +1 -1
  87. package/dist/collection/api/Analytics.js +1 -1
  88. package/dist/collection/api/ApplePay.js +0 -4
  89. package/dist/collection/api/services/apple-pay.service.js +1 -6
  90. package/dist/collection/collection-manifest.json +0 -6
  91. package/dist/collection/components/business-details/justifi-business-details.js +56 -17
  92. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  93. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  94. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -2
  95. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  96. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  97. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  98. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -2
  99. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  100. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-form-inputs.js +1 -1
  101. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
  102. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  103. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
  104. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
  105. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
  106. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  107. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +3 -1
  108. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  110. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  111. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  112. package/dist/collection/components/checkout/billing-form/bank-account-billing-form-simple.js +1 -1
  113. package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +1 -1
  114. package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +1 -1
  115. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  116. package/dist/collection/components/checkout/justifi-checkout.js +4 -8
  117. package/dist/collection/components/checkout/justifi-saved-payment-method.js +1 -1
  118. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
  119. package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
  120. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  121. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  122. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +1 -1
  123. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  124. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  125. package/dist/collection/components/dispute-management/dispute-response/justifi-additional-statement.js +1 -1
  126. package/dist/collection/components/dispute-management/dispute-response/justifi-cancellation-policy.js +1 -1
  127. package/dist/collection/components/dispute-management/dispute-response/justifi-customer-details.js +1 -1
  128. package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +1 -1
  129. package/dist/collection/components/dispute-management/dispute-response/justifi-duplicate-charge.js +1 -1
  130. package/dist/collection/components/dispute-management/dispute-response/justifi-electronic-evidence.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-response/justifi-product-or-service.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-response/justifi-refund-policy.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-response/justifi-shipping-details.js +1 -1
  134. package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
  135. package/dist/collection/components/dispute-management/justifi-dispute-notification.js +2 -2
  136. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  137. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  138. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +31 -1
  139. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +34 -15
  140. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
  141. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
  142. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  143. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  144. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
  145. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  146. package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +20 -1
  147. package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +27 -14
  148. package/dist/collection/components/modular-checkout/sub-components/justifi-saved-payment-methods.js +7 -5
  149. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  150. package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
  151. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  152. package/dist/collection/components/payment-details/justifi-payment-details.js +59 -17
  153. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  154. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  155. package/dist/collection/components/payments-list/justifi-payments-list.js +114 -5
  156. package/dist/collection/components/payout-details/justifi-payout-details.js +86 -8
  157. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  158. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  159. package/dist/collection/components/payouts-list/justifi-payouts-list.js +166 -7
  160. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  161. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +1 -1
  162. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  163. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  164. package/dist/collection/components/terminals-list/justifi-terminals-list.js +153 -7
  165. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
  166. package/dist/collection/store/checkout.store.js +2 -0
  167. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  168. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  169. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  170. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  171. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  172. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  173. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  174. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  175. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  176. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  177. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  178. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  179. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  180. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  181. package/dist/collection/ui-components/internal-button.js +1 -1
  182. package/dist/collection/ui-components/radio-list-item.js +1 -1
  183. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  184. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  185. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  186. package/dist/docs.json +256 -995
  187. package/dist/esm/{Analytics-BCoK2BKE.js → Analytics-qafLCOEU.js} +4 -4
  188. package/dist/esm/{Api-BrYhtpEh.js → Api-DMd8hTI-.js} +1 -1
  189. package/dist/esm/{Plaid-BMnuSHeX.js → Plaid-BuKEVgbB.js} +2 -6
  190. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  191. package/dist/esm/additional-questions-form-step_14.entry.js +18 -18
  192. package/dist/esm/additional-questions_5.entry.js +7 -7
  193. package/dist/esm/{badge-B_DdhQ3Q.js → badge-B6dp1XGV.js} +1 -1
  194. package/dist/esm/bank-account-billing-form-simple_4.entry.js +5 -5
  195. package/dist/esm/bank-account-form.entry.js +7 -7
  196. package/dist/esm/bank-account-read-only-value.entry.js +2 -2
  197. package/dist/esm/{business.service-D47BEQPH.js → business.service-BPbZ5fxQ.js} +2 -2
  198. package/dist/esm/{button-B-Agn8yQ.js → button-DRdaAudE.js} +1 -1
  199. package/dist/esm/card-form.entry.js +7 -7
  200. package/dist/esm/{check-pkg-version-C1z6CAOx.js → check-pkg-version-BJtCbzf9.js} +1 -1
  201. package/dist/esm/{checkout.service-BDZroRf0.js → checkout.service-CJMfFKyS.js} +2 -2
  202. package/dist/esm/{checkout.store-C1TdhFf6.js → checkout.store-DFnkcDZ8.js} +2 -0
  203. package/dist/esm/checkouts-list-core.entry.js +8 -8
  204. package/dist/esm/{checkouts-table-BXm9GGFI.js → checkouts-table-C8sPHeTm.js} +3 -3
  205. package/dist/esm/custom-popper_2.entry.js +3 -3
  206. package/dist/esm/{dispute.service-CuBGEFgB.js → dispute.service-vlYGy0nR.js} +2 -2
  207. package/dist/esm/form-address-fields_3.entry.js +6 -6
  208. package/dist/esm/form-control-checkbox.entry.js +5 -5
  209. package/dist/esm/form-control-date.entry.js +4 -4
  210. package/dist/esm/{form-control-error-text-DMKhr8QA.js → form-control-error-text-DVedKyhp.js} +1 -1
  211. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  212. package/dist/esm/form-control-file.entry.js +4 -4
  213. package/dist/esm/{form-control-help-text-CsdCuw5-.js → form-control-help-text-D-349cNw.js} +1 -1
  214. package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
  215. package/dist/esm/form-control-monetary.entry.js +6 -6
  216. package/dist/esm/form-control-number_3.entry.js +9 -9
  217. package/dist/esm/form-control-radio.entry.js +3 -3
  218. package/dist/esm/form-control-select_2.entry.js +6 -6
  219. package/dist/esm/{get-business-BsjvgFCj.js → get-business-DpFRs5dE.js} +2 -2
  220. package/dist/esm/{get-payment-details-Br1249qD.js → get-payment-details-DjBou5Fu.js} +2 -2
  221. package/dist/esm/{get-subaccounts-zrWoI4Bh.js → get-subaccounts-CgDWE_5o.js} +3 -3
  222. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  223. package/dist/esm/{header-1-bRxxOyI-.js → header-1-Bl7MHW0w.js} +1 -1
  224. package/dist/esm/{header-3-E533c0A3.js → header-3-C7JJVnMG.js} +1 -1
  225. package/dist/esm/hidden-input_2.entry.js +7 -7
  226. package/dist/esm/{insurance-state-obAKb1XR.js → insurance-state-qTdpe84i.js} +1 -1
  227. package/dist/esm/internal-button.entry.js +3 -3
  228. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  229. package/dist/esm/justifi-apple-pay_11.entry.js +124 -60
  230. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +7 -7
  231. package/dist/esm/justifi-bank-account-form.entry.js +7 -7
  232. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  233. package/dist/esm/justifi-billing-form.entry.js +1 -1
  234. package/dist/esm/justifi-business-details.entry.js +63 -27
  235. package/dist/esm/justifi-business-form.entry.js +13 -13
  236. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  237. package/dist/esm/justifi-card-form.entry.js +7 -7
  238. package/dist/esm/justifi-checkout.entry.js +12 -15
  239. package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -5
  240. package/dist/esm/justifi-checkouts-list.entry.js +13 -13
  241. package/dist/esm/justifi-details.entry.js +2 -2
  242. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  243. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  244. package/dist/esm/justifi-dispute-notification_3.entry.js +15 -15
  245. package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
  246. package/dist/esm/justifi-order-terminals.entry.js +13 -13
  247. package/dist/esm/justifi-payment-details.entry.js +71 -32
  248. package/dist/esm/justifi-payment-provisioning.entry.js +16 -14
  249. package/dist/esm/justifi-payment-transactions-list.entry.js +12 -12
  250. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  251. package/dist/esm/justifi-payments-list.entry.js +134 -20
  252. package/dist/esm/justifi-payout-details.entry.js +76 -20
  253. package/dist/esm/justifi-payout-transactions-list.entry.js +12 -12
  254. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
  255. package/dist/esm/justifi-payouts-list.entry.js +170 -22
  256. package/dist/esm/justifi-refund-payment.entry.js +12 -12
  257. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  258. package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
  259. package/dist/esm/justifi-season-interruption-insurance.entry.js +11 -11
  260. package/dist/esm/justifi-skeleton.entry.js +3 -3
  261. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +6 -6
  262. package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
  263. package/dist/esm/justifi-terminals-list-filters.entry.js +4 -4
  264. package/dist/esm/justifi-terminals-list.entry.js +184 -21
  265. package/dist/esm/loader.js +1 -1
  266. package/dist/esm/{package-DbJ8_F44.js → package-BCgsLInF.js} +1 -1
  267. package/dist/esm/pagination-menu.entry.js +1 -1
  268. package/dist/esm/{parts-D50Rx76J.js → parts-DnrawQn3.js} +1 -1
  269. package/dist/esm/payment-method-option.entry.js +2 -2
  270. package/dist/esm/{payment-provisioning-actions-B6LHK2Ka.js → payment-provisioning-actions-Dr0YIShV.js} +2 -2
  271. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +4 -4
  272. package/dist/esm/{payment-provisioning-loading-BAoIyEOj.js → payment-provisioning-loading-DI2wDkhm.js} +1 -1
  273. package/dist/esm/{payment.service-C6ebnLOw.js → payment.service-Ckbb7gXA.js} +2 -2
  274. package/dist/esm/{payments-status-7P7L51CK.js → payments-status-BIDoGw-m.js} +1 -1
  275. package/dist/esm/{payout.service-B6KqlDyg.js → payout.service-BgFKxEoL.js} +2 -2
  276. package/dist/esm/{payouts-status-CGZRMu-q.js → payouts-status-1T2NZBoE.js} +22 -2
  277. package/dist/esm/{plaid.service-BS8Zt6ui.js → plaid.service-BLguQHs_.js} +2 -2
  278. package/dist/esm/radio-list-item.entry.js +2 -2
  279. package/dist/esm/save-new-payment-method.entry.js +2 -2
  280. package/dist/esm/{skeleton-DV6yJalo.js → skeleton-CXGFVqDf.js} +1 -1
  281. package/dist/esm/{spinner--fEgBBOG.js → spinner-kSw6PcwU.js} +1 -1
  282. package/dist/esm/{table-Deugl8h5.js → table-CcyuIutB.js} +2 -2
  283. package/dist/esm/table-filters-menu.entry.js +3 -3
  284. package/dist/esm/terminal-orders-list-core.entry.js +8 -8
  285. package/dist/esm/{terminal-orders-table-BKbTybx0.js → terminal-orders-table-C7KOcRpq.js} +4 -4
  286. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  287. package/dist/esm/{terminal.service-0AO0m5oh.js → terminal.service-0oISl5j-.js} +2 -2
  288. package/dist/esm/{utils-De6tr4ug.js → utils-BTtxWI2r.js} +1 -1
  289. package/dist/esm/{utils-DJOBwFeP.js → utils-BxYS3WDw.js} +1 -1
  290. package/dist/esm/{utils-DtiRLISl.js → utils-DcfpJGDZ.js} +1 -1
  291. package/dist/esm/webcomponents.js +1 -1
  292. package/dist/module/Analytics.js +1 -1
  293. package/dist/module/ApplePay.js +0 -4
  294. package/dist/module/Plaid.js +2 -2
  295. package/dist/module/additional-questions2.js +1 -1
  296. package/dist/module/bank-account-billing-form-simple2.js +1 -1
  297. package/dist/module/bank-account-document-form-inputs2.js +1 -1
  298. package/dist/module/bank-account-form-inputs-canada2.js +1 -1
  299. package/dist/module/bank-account-form-inputs2.js +1 -1
  300. package/dist/module/bank-account-form2.js +2 -2
  301. package/dist/module/bank-account-read-only-value2.js +1 -1
  302. package/dist/module/business-bank-account-form-step2.js +1 -1
  303. package/dist/module/business-core-info2.js +2 -2
  304. package/dist/module/business-representative-form-inputs2.js +2 -2
  305. package/dist/module/business-representative2.js +2 -2
  306. package/dist/module/business-terms-conditions-form-step2.js +1 -1
  307. package/dist/module/card-billing-form-simple2.js +1 -1
  308. package/dist/module/card-form2.js +2 -2
  309. package/dist/module/checkout.store.js +2 -0
  310. package/dist/module/checkouts-list-core2.js +1 -1
  311. package/dist/module/custom-popper2.js +2 -2
  312. package/dist/module/dispute-management-core.js +1 -1
  313. package/dist/module/dispute-response-core.js +1 -1
  314. package/dist/module/form-address-fields2.js +1 -1
  315. package/dist/module/form-control-checkbox2.js +2 -2
  316. package/dist/module/form-control-date2.js +2 -2
  317. package/dist/module/form-control-file-v22.js +1 -1
  318. package/dist/module/form-control-file2.js +2 -2
  319. package/dist/module/form-control-monetary-provisioning2.js +2 -2
  320. package/dist/module/form-control-monetary2.js +3 -3
  321. package/dist/module/form-control-number-masked2.js +2 -2
  322. package/dist/module/form-control-number2.js +2 -2
  323. package/dist/module/form-control-radio2.js +2 -2
  324. package/dist/module/form-control-select2.js +2 -2
  325. package/dist/module/form-control-text2.js +2 -2
  326. package/dist/module/form-control-textarea2.js +2 -2
  327. package/dist/module/gross-payment-chart-core2.js +2 -2
  328. package/dist/module/hidden-input2.js +1 -1
  329. package/dist/module/identity-address-form2.js +1 -1
  330. package/dist/module/iframe-input2.js +3 -3
  331. package/dist/module/internal-button2.js +1 -1
  332. package/dist/module/justifi-additional-statement2.js +1 -1
  333. package/dist/module/justifi-apple-pay2.js +35 -21
  334. package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
  335. package/dist/module/justifi-bank-account-form.js +1 -1
  336. package/dist/module/justifi-billing-form-full.js +1 -1
  337. package/dist/module/justifi-billing-form.js +1 -1
  338. package/dist/module/justifi-business-details.js +64 -27
  339. package/dist/module/justifi-button2.js +1 -1
  340. package/dist/module/justifi-cancellation-policy2.js +1 -1
  341. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  342. package/dist/module/justifi-card-form.js +1 -1
  343. package/dist/module/justifi-checkout-summary2.js +2 -2
  344. package/dist/module/justifi-checkout.js +4 -8
  345. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  346. package/dist/module/justifi-checkouts-list.js +2 -2
  347. package/dist/module/justifi-customer-details2.js +1 -1
  348. package/dist/module/justifi-dispute-management.js +1 -1
  349. package/dist/module/justifi-dispute-notification2.js +3 -3
  350. package/dist/module/justifi-dispute-response2.js +1 -1
  351. package/dist/module/justifi-duplicate-charge2.js +1 -1
  352. package/dist/module/justifi-electronic-evidence2.js +1 -1
  353. package/dist/module/justifi-google-pay2.js +6 -1
  354. package/dist/module/justifi-header2.js +1 -1
  355. package/dist/module/justifi-modular-checkout2.js +31 -1
  356. package/dist/module/justifi-order-terminals.js +2 -2
  357. package/dist/module/justifi-payment-details.js +71 -29
  358. package/dist/module/justifi-payment-provisioning.js +4 -2
  359. package/dist/module/justifi-payment-transactions-list.js +2 -2
  360. package/dist/module/justifi-payments-list-filters.js +2 -2
  361. package/dist/module/justifi-payments-list.js +137 -18
  362. package/dist/module/justifi-payout-details.js +76 -21
  363. package/dist/module/justifi-payout-transactions-list.js +2 -2
  364. package/dist/module/justifi-payouts-list-filters.js +3 -3
  365. package/dist/module/justifi-payouts-list.js +174 -20
  366. package/dist/module/justifi-plaid-payment-method2.js +27 -14
  367. package/dist/module/justifi-product-or-service2.js +1 -1
  368. package/dist/module/justifi-refund-payment.js +1 -1
  369. package/dist/module/justifi-refund-policy2.js +1 -1
  370. package/dist/module/justifi-save-new-payment-method.js +1 -1
  371. package/dist/module/justifi-saved-payment-method.js +1 -1
  372. package/dist/module/justifi-saved-payment-methods2.js +7 -5
  373. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  374. package/dist/module/justifi-sezzle-payment-method2.js +1 -1
  375. package/dist/module/justifi-shipping-details2.js +1 -1
  376. package/dist/module/justifi-skeleton.js +1 -1
  377. package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
  378. package/dist/module/justifi-terminal-orders-list.js +2 -2
  379. package/dist/module/justifi-terminals-list-filters.js +2 -2
  380. package/dist/module/justifi-terminals-list.js +190 -20
  381. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  382. package/dist/module/legal-address-form2.js +1 -1
  383. package/dist/module/owner-details2.js +1 -1
  384. package/dist/module/owner-form-core2.js +1 -1
  385. package/dist/module/owner-form-inputs2.js +2 -2
  386. package/dist/module/owner-form2.js +1 -1
  387. package/dist/module/package.js +1 -1
  388. package/dist/module/payment-method-option.js +1 -1
  389. package/dist/module/payment-provisioning-form-buttons2.js +1 -1
  390. package/dist/module/payment-provisioning-form-steps2.js +1 -1
  391. package/dist/module/payouts-status.js +21 -1
  392. package/dist/module/radio-list-item2.js +1 -1
  393. package/dist/module/representative-details2.js +1 -1
  394. package/dist/module/save-new-payment-method2.js +1 -1
  395. package/dist/module/table-filters-menu2.js +1 -1
  396. package/dist/module/terminal-orders-list-core2.js +2 -2
  397. package/dist/module/terminal-quantity-selector2.js +1 -1
  398. package/dist/module/utils2.js +1 -1
  399. package/dist/types/api/ApplePay.d.ts +0 -7
  400. package/dist/types/components/business-details/justifi-business-details.d.ts +7 -2
  401. package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +1 -1
  402. package/dist/types/components/checkout/justifi-checkout.d.ts +0 -1
  403. package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +2 -0
  404. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +3 -0
  405. package/dist/types/components/modular-checkout/sub-components/justifi-google-pay.d.ts +1 -0
  406. package/dist/types/components/modular-checkout/sub-components/justifi-plaid-payment-method.d.ts +2 -2
  407. package/dist/types/components/payment-details/justifi-payment-details.d.ts +7 -4
  408. package/dist/types/components/payments-list/justifi-payments-list.d.ts +19 -2
  409. package/dist/types/components/payout-details/justifi-payout-details.d.ts +10 -2
  410. package/dist/types/components/payouts-list/justifi-payouts-list.d.ts +25 -2
  411. package/dist/types/components/terminals-list/justifi-terminals-list.d.ts +24 -2
  412. package/dist/types/components.d.ts +10 -216
  413. package/dist/types/store/checkout.store.d.ts +2 -0
  414. package/dist/webcomponents/{p-C2h_HoOZ.js → p--e0ff06z.js} +1 -1
  415. package/dist/webcomponents/p-032b4553.entry.js +1 -0
  416. package/dist/webcomponents/p-042daaf8.entry.js +1 -0
  417. package/dist/webcomponents/{p-272cc70e.entry.js → p-0638f0bd.entry.js} +1 -1
  418. package/dist/webcomponents/p-06ecd4cb.entry.js +1 -0
  419. package/dist/webcomponents/{p-8d215ad8.entry.js → p-09d2efad.entry.js} +1 -1
  420. package/dist/webcomponents/p-0b3f4f22.entry.js +1 -0
  421. package/dist/webcomponents/{p-c499a613.entry.js → p-10be75b8.entry.js} +1 -1
  422. package/dist/webcomponents/p-164f95ec.entry.js +1 -0
  423. package/dist/webcomponents/p-174eb877.entry.js +1 -0
  424. package/dist/webcomponents/p-1e0be7b0.entry.js +1 -0
  425. package/dist/webcomponents/{p-de4c796a.entry.js → p-1e877e0a.entry.js} +1 -1
  426. package/dist/webcomponents/{p-5d2bcf39.entry.js → p-2425a375.entry.js} +1 -1
  427. package/dist/webcomponents/p-24935254.entry.js +1 -0
  428. package/dist/webcomponents/{p-938e4dc8.entry.js → p-256c5509.entry.js} +1 -1
  429. package/dist/webcomponents/p-2LVpxCS_.js +1 -0
  430. package/dist/webcomponents/{p-89bf64ef.entry.js → p-354fb3c4.entry.js} +1 -1
  431. package/dist/webcomponents/p-39cc6928.entry.js +1 -0
  432. package/dist/webcomponents/{p-257597f1.entry.js → p-3c046adc.entry.js} +1 -1
  433. package/dist/webcomponents/p-4226eb4a.entry.js +1 -0
  434. package/dist/webcomponents/p-474ee3f8.entry.js +1 -0
  435. package/dist/webcomponents/p-485b77ba.entry.js +1 -0
  436. package/dist/webcomponents/p-52908814.entry.js +1 -0
  437. package/dist/webcomponents/{p-b7ac15d8.entry.js → p-581808f0.entry.js} +1 -1
  438. package/dist/webcomponents/p-587886f1.entry.js +1 -0
  439. package/dist/webcomponents/p-5ef355ce.entry.js +1 -0
  440. package/dist/webcomponents/p-6917aa3c.entry.js +1 -0
  441. package/dist/webcomponents/{p-d072a65f.entry.js → p-6d81822f.entry.js} +1 -1
  442. package/dist/webcomponents/{p-3e74bd93.entry.js → p-6ecb3ef9.entry.js} +1 -1
  443. package/dist/webcomponents/p-79713014.entry.js +1 -0
  444. package/dist/webcomponents/p-798f4708.entry.js +1 -0
  445. package/dist/webcomponents/p-7f0f72c6.entry.js +1 -0
  446. package/dist/webcomponents/p-7f814609.entry.js +1 -0
  447. package/dist/webcomponents/p-80652cf8.entry.js +1 -0
  448. package/dist/webcomponents/{p-b322d2f3.entry.js → p-8253ef9f.entry.js} +1 -1
  449. package/dist/webcomponents/p-82fe02e4.entry.js +1 -0
  450. package/dist/webcomponents/p-83147f23.entry.js +1 -0
  451. package/dist/webcomponents/p-870fac9e.entry.js +1 -0
  452. package/dist/webcomponents/p-8c2427ed.entry.js +1 -0
  453. package/dist/webcomponents/p-92de00d7.entry.js +1 -0
  454. package/dist/webcomponents/p-956eca2e.entry.js +1 -0
  455. package/dist/webcomponents/p-9581d6a1.entry.js +1 -0
  456. package/dist/webcomponents/{p-7791b55e.entry.js → p-9db1444f.entry.js} +1 -1
  457. package/dist/webcomponents/p-9f74d7ea.entry.js +1 -0
  458. package/dist/webcomponents/{p-DV_3k3u_.js → p-B--N37zY.js} +1 -1
  459. package/dist/webcomponents/p-B5vVjDc_.js +1 -0
  460. package/dist/webcomponents/p-BArmtmkq.js +1 -0
  461. package/dist/webcomponents/p-BCgsLInF.js +1 -0
  462. package/dist/webcomponents/{p-D4DAh8XF.js → p-BJ7GFTiW.js} +1 -1
  463. package/dist/webcomponents/{p-CTwm3w6I.js → p-BRnBHsdq.js} +1 -1
  464. package/dist/webcomponents/{p-C7SCfFA7.js → p-BnaR7f2G.js} +1 -1
  465. package/dist/webcomponents/p-BsQy297i.js +1 -0
  466. package/dist/webcomponents/p-CDf5H0TB.js +1 -0
  467. package/dist/webcomponents/{p-eNNtSIbE.js → p-CR_-qIuN.js} +1 -1
  468. package/dist/webcomponents/{p-CprMk6Bv.js → p-CUI41_5y.js} +1 -1
  469. package/dist/webcomponents/p-CX36GHQP.js +1 -0
  470. package/dist/webcomponents/{p-CEnTtUmd.js → p-CYQvLgSs.js} +1 -1
  471. package/dist/webcomponents/p-Cej-1bD6.js +1 -0
  472. package/dist/webcomponents/p-Cf6HoQKl.js +1 -0
  473. package/dist/webcomponents/{p-s8zhbjC5.js → p-CsdYMTrc.js} +1 -1
  474. package/dist/webcomponents/{p-CzdAS9Jo.js → p-D1D2eC05.js} +1 -1
  475. package/dist/webcomponents/p-D4OlsyTo.js +1 -0
  476. package/dist/webcomponents/{p-CbM9cuX_.js → p-DPmnGTmg.js} +1 -1
  477. package/dist/webcomponents/p-DWevPe7C.js +1 -0
  478. package/dist/webcomponents/{p-Bo0dEB2o.js → p-Dbg501Lu.js} +1 -1
  479. package/dist/webcomponents/p-DcBvJu0k.js +1 -0
  480. package/dist/webcomponents/p-DkdzUTnl.js +1 -0
  481. package/dist/webcomponents/{p-D50Rx76J.js → p-DnrawQn3.js} +1 -1
  482. package/dist/webcomponents/p-GJyHX3us.js +1 -0
  483. package/dist/webcomponents/p-MDZuGvsl.js +1 -0
  484. package/dist/webcomponents/p-XrKLre8M.js +1 -0
  485. package/dist/webcomponents/p-a7a1b168.entry.js +1 -0
  486. package/dist/webcomponents/{p-c683cb34.entry.js → p-a80d958d.entry.js} +1 -1
  487. package/dist/webcomponents/p-b06910b0.entry.js +1 -0
  488. package/dist/webcomponents/p-b2447726.entry.js +1 -0
  489. package/dist/webcomponents/{p-d34f497c.entry.js → p-b483e71b.entry.js} +1 -1
  490. package/dist/webcomponents/{p-431ad048.entry.js → p-bc2af6b4.entry.js} +1 -1
  491. package/dist/webcomponents/p-befe01ef.entry.js +1 -0
  492. package/dist/webcomponents/p-bfe2583d.entry.js +1 -0
  493. package/dist/webcomponents/{p-CwdQ1VdH.js → p-bn_huKYG.js} +1 -1
  494. package/dist/webcomponents/p-c4767c7b.entry.js +1 -0
  495. package/dist/webcomponents/p-c73631f0.entry.js +1 -0
  496. package/dist/webcomponents/p-c8f7ebf6.entry.js +1 -0
  497. package/dist/webcomponents/p-d253a573.entry.js +1 -0
  498. package/dist/webcomponents/p-d7633e10.entry.js +1 -0
  499. package/dist/webcomponents/p-d878df6c.entry.js +1 -0
  500. package/dist/webcomponents/p-da882bd1.entry.js +1 -0
  501. package/dist/webcomponents/{p-2595b409.entry.js → p-dd1cfb9e.entry.js} +1 -1
  502. package/dist/webcomponents/{p-bbcaa5cc.entry.js → p-ddf699e6.entry.js} +4 -4
  503. package/dist/webcomponents/p-de836ec9.entry.js +1 -0
  504. package/dist/webcomponents/{p-1c54dc53.entry.js → p-e6e56dbb.entry.js} +1 -1
  505. package/dist/webcomponents/p-ea30cf08.entry.js +1 -0
  506. package/dist/webcomponents/p-edf5a854.entry.js +1 -0
  507. package/dist/webcomponents/p-f24563ab.entry.js +1 -0
  508. package/dist/webcomponents/p-f4aeda71.entry.js +1 -0
  509. package/dist/webcomponents/p-faa090a5.entry.js +1 -0
  510. package/dist/webcomponents/p-fc7ba195.entry.js +1 -0
  511. package/dist/webcomponents/{p-MvySE12i.js → p-hhdRync5.js} +1 -1
  512. package/dist/webcomponents/p-niGr4RT2.js +1 -0
  513. package/dist/webcomponents/{p-Da4efjxw.js → p-pL4dNfsl.js} +1 -1
  514. package/dist/webcomponents/p-qcQTYcr3.js +1 -0
  515. package/dist/webcomponents/p-uCg79W3M.js +1 -0
  516. package/dist/webcomponents/{p-CjuaXEuI.js → p-x9fFFf7F.js} +1 -1
  517. package/dist/webcomponents/webcomponents.esm.js +1 -1
  518. package/package.json +14 -14
  519. package/dist/cjs/business-details-core.cjs.entry.js +0 -61
  520. package/dist/cjs/get-payout-csv-DDrtCacG.js +0 -24
  521. package/dist/cjs/payment-details-core.cjs.entry.js +0 -83
  522. package/dist/cjs/payments-list-core.cjs.entry.js +0 -112
  523. package/dist/cjs/payments-table-CUxpxNnc.js +0 -50
  524. package/dist/cjs/payout-details-core.cjs.entry.js +0 -89
  525. package/dist/cjs/payouts-list-core.cjs.entry.js +0 -162
  526. package/dist/cjs/payouts-table-Dex2W8r1.js +0 -34
  527. package/dist/cjs/terminals-list-core.cjs.entry.js +0 -146
  528. package/dist/cjs/terminals-table-DmnAuog5.js +0 -64
  529. package/dist/collection/components/business-details/business-details-core.js +0 -105
  530. package/dist/collection/components/payment-details/payment-details-core.js +0 -127
  531. package/dist/collection/components/payments-list/payments-list-core.js +0 -202
  532. package/dist/collection/components/payout-details/payout-details-core.js +0 -199
  533. package/dist/collection/components/payouts-list/payouts-list-core.js +0 -298
  534. package/dist/collection/components/terminals-list/terminals-list-core.js +0 -262
  535. package/dist/esm/business-details-core.entry.js +0 -59
  536. package/dist/esm/get-payout-csv-Dhezo7Ty.js +0 -22
  537. package/dist/esm/payment-details-core.entry.js +0 -81
  538. package/dist/esm/payments-list-core.entry.js +0 -110
  539. package/dist/esm/payments-table-n1VrIKIR.js +0 -46
  540. package/dist/esm/payout-details-core.entry.js +0 -87
  541. package/dist/esm/payouts-list-core.entry.js +0 -160
  542. package/dist/esm/payouts-table-CbzI90ci.js +0 -30
  543. package/dist/esm/terminals-list-core.entry.js +0 -144
  544. package/dist/esm/terminals-table-Bja7MP5H.js +0 -60
  545. package/dist/module/business-details-core.d.ts +0 -11
  546. package/dist/module/business-details-core.js +0 -6
  547. package/dist/module/business-details-core2.js +0 -117
  548. package/dist/module/get-payout-csv.js +0 -22
  549. package/dist/module/payment-details-core.d.ts +0 -11
  550. package/dist/module/payment-details-core.js +0 -6
  551. package/dist/module/payment-details-core2.js +0 -109
  552. package/dist/module/payments-list-core.d.ts +0 -11
  553. package/dist/module/payments-list-core.js +0 -6
  554. package/dist/module/payments-list-core2.js +0 -184
  555. package/dist/module/payout-details-core.d.ts +0 -11
  556. package/dist/module/payout-details-core.js +0 -6
  557. package/dist/module/payout-details-core2.js +0 -118
  558. package/dist/module/payouts-list-core.d.ts +0 -11
  559. package/dist/module/payouts-list-core.js +0 -6
  560. package/dist/module/payouts-list-core2.js +0 -221
  561. package/dist/module/terminals-list-core.d.ts +0 -11
  562. package/dist/module/terminals-list-core.js +0 -6
  563. package/dist/module/terminals-list-core2.js +0 -236
  564. package/dist/types/components/business-details/business-details-core.d.ts +0 -19
  565. package/dist/types/components/payment-details/payment-details-core.d.ts +0 -16
  566. package/dist/types/components/payments-list/payments-list-core.d.ts +0 -28
  567. package/dist/types/components/payout-details/payout-details-core.d.ts +0 -20
  568. package/dist/types/components/payouts-list/payouts-list-core.d.ts +0 -36
  569. package/dist/types/components/terminals-list/terminals-list-core.d.ts +0 -34
  570. package/dist/webcomponents/p-0b95dd8f.entry.js +0 -1
  571. package/dist/webcomponents/p-0f961323.entry.js +0 -1
  572. package/dist/webcomponents/p-15dfb893.entry.js +0 -1
  573. package/dist/webcomponents/p-15f43759.entry.js +0 -1
  574. package/dist/webcomponents/p-1628613b.entry.js +0 -1
  575. package/dist/webcomponents/p-180a3b65.entry.js +0 -1
  576. package/dist/webcomponents/p-18fc10ca.entry.js +0 -1
  577. package/dist/webcomponents/p-1b610299.entry.js +0 -1
  578. package/dist/webcomponents/p-1b92fb9a.entry.js +0 -1
  579. package/dist/webcomponents/p-1srXnUJh.js +0 -1
  580. package/dist/webcomponents/p-22798967.entry.js +0 -1
  581. package/dist/webcomponents/p-26c419f3.entry.js +0 -1
  582. package/dist/webcomponents/p-2d680f77.entry.js +0 -1
  583. package/dist/webcomponents/p-30f61950.entry.js +0 -1
  584. package/dist/webcomponents/p-38281490.entry.js +0 -1
  585. package/dist/webcomponents/p-39bb134c.entry.js +0 -1
  586. package/dist/webcomponents/p-3a4e27f6.entry.js +0 -1
  587. package/dist/webcomponents/p-3c50f7aa.entry.js +0 -1
  588. package/dist/webcomponents/p-4db2e291.entry.js +0 -1
  589. package/dist/webcomponents/p-4df1d08d.entry.js +0 -1
  590. package/dist/webcomponents/p-548c411f.entry.js +0 -1
  591. package/dist/webcomponents/p-55e7e239.entry.js +0 -1
  592. package/dist/webcomponents/p-563097f0.entry.js +0 -1
  593. package/dist/webcomponents/p-605636be.entry.js +0 -1
  594. package/dist/webcomponents/p-6e5ec134.entry.js +0 -1
  595. package/dist/webcomponents/p-6efbbec1.entry.js +0 -1
  596. package/dist/webcomponents/p-71de86bf.entry.js +0 -1
  597. package/dist/webcomponents/p-7225bc77.entry.js +0 -1
  598. package/dist/webcomponents/p-7c244e99.entry.js +0 -1
  599. package/dist/webcomponents/p-84168bf0.entry.js +0 -1
  600. package/dist/webcomponents/p-84879c92.entry.js +0 -1
  601. package/dist/webcomponents/p-8d5138d8.entry.js +0 -1
  602. package/dist/webcomponents/p-8e9407a1.entry.js +0 -1
  603. package/dist/webcomponents/p-92e64f49.entry.js +0 -1
  604. package/dist/webcomponents/p-9805bc39.entry.js +0 -1
  605. package/dist/webcomponents/p-B--wlcf0.js +0 -1
  606. package/dist/webcomponents/p-BJtvT9BX.js +0 -1
  607. package/dist/webcomponents/p-BrO0HEFJ.js +0 -1
  608. package/dist/webcomponents/p-C-QiUcEa.js +0 -1
  609. package/dist/webcomponents/p-C6IaNDXe.js +0 -1
  610. package/dist/webcomponents/p-C95_YBmG.js +0 -1
  611. package/dist/webcomponents/p-CSW_ZzE9.js +0 -1
  612. package/dist/webcomponents/p-CV3lgp6D.js +0 -1
  613. package/dist/webcomponents/p-D5MdA21U.js +0 -1
  614. package/dist/webcomponents/p-D68EHdgA.js +0 -1
  615. package/dist/webcomponents/p-DB_pqjwH.js +0 -1
  616. package/dist/webcomponents/p-DU2RAZiD.js +0 -1
  617. package/dist/webcomponents/p-DbJ8_F44.js +0 -1
  618. package/dist/webcomponents/p-Df9FVwA7.js +0 -1
  619. package/dist/webcomponents/p-DgPbJiLD.js +0 -1
  620. package/dist/webcomponents/p-DmBX8khF.js +0 -1
  621. package/dist/webcomponents/p-DsYFjVQa.js +0 -1
  622. package/dist/webcomponents/p-EBsfAkrP.js +0 -1
  623. package/dist/webcomponents/p-N60pPiy5.js +0 -1
  624. package/dist/webcomponents/p-_fynNk40.js +0 -1
  625. package/dist/webcomponents/p-ad785edd.entry.js +0 -1
  626. package/dist/webcomponents/p-b1a947c8.entry.js +0 -1
  627. package/dist/webcomponents/p-b1c179d7.entry.js +0 -1
  628. package/dist/webcomponents/p-b822ab7e.entry.js +0 -1
  629. package/dist/webcomponents/p-bd3f7117.entry.js +0 -1
  630. package/dist/webcomponents/p-c29859d9.entry.js +0 -1
  631. package/dist/webcomponents/p-c30dd92c.entry.js +0 -1
  632. package/dist/webcomponents/p-c4c9f37b.entry.js +0 -1
  633. package/dist/webcomponents/p-cfd944e6.entry.js +0 -1
  634. package/dist/webcomponents/p-dc99d6b0.entry.js +0 -1
  635. package/dist/webcomponents/p-dd704b1a.entry.js +0 -1
  636. package/dist/webcomponents/p-e29f42c6.entry.js +0 -1
  637. package/dist/webcomponents/p-e322fcca.entry.js +0 -1
  638. package/dist/webcomponents/p-e360d88f.entry.js +0 -1
  639. package/dist/webcomponents/p-eadbb4dc.entry.js +0 -1
  640. package/dist/webcomponents/p-ef30afd5.entry.js +0 -1
  641. package/dist/webcomponents/p-eff6a50d.entry.js +0 -1
  642. package/dist/webcomponents/p-f266373d.entry.js +0 -1
  643. package/dist/webcomponents/p-fb04fa5a.entry.js +0 -1
  644. package/dist/webcomponents/p-feb19fa5.entry.js +0 -1
  645. package/dist/webcomponents/p-k4rghbOK.js +0 -1
  646. package/dist/webcomponents/p-xSaSp1Jy.js +0 -1
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-CV0Pyo1O.js";import{c as t,a as c,F as i}from"./p-CKiAlBsU.js";import{a9 as d}from"./p-D50Rx76J.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:c().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,c=t.name,i=t.files;a[c]=[];for(const e of i)a[c].push(new n(e,c))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new i(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"52a3582921131f503e686dc1e4e414ecbe2d3436"},a("div",{key:"b1ed7dd8700f9a23b8192cedad71c1f6d7cdbd81",class:"row gy-3"},a("div",{key:"57a4468b76e542c5a4e69f7f6f9a5e798a3deee6",class:"col-12"},a("h2",{key:"718743cea661a339cc5eafd6d7dfae0b8b04756c",class:"h5",part:d},"Additional Evidence")),a("div",{key:"0a7dcb294cdc2a2184e4001965527ba29c9729d2",class:"col-12"},a("form-control-textarea",{key:"cb8a64aaaa7959210f920133d1dd77796df6fa18",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"f4807fb4a58f89cc87ea90279abd35024460db55",class:"col-12"},a("form-control-file-v2",{key:"35ec01b9fd4025701aaf933a2a9cf03735d734d6",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:c().nullable(),cancellation_rebuttal:c().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new i(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"b91b53561920d566bc508a2356159b6f0883eb0a"},a("div",{key:"1a579081d289314528ca63c7aa8cc14d61a0458a",class:"row gy-3"},a("div",{key:"99804ed2e0018dbc0749fbe0101b328dbdba8208",class:"col-12"},a("h2",{key:"27e080e43f0f8b0aa665dfeab527bdd34a9b3c69",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"ae8ef97b796d26c1bd961a0480cc855d04b6c05a",class:"col-12"},a("form-control-textarea",{key:"9c62ef0af2425d0d611b6bdeeab79649debe0847",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"ad26b16f585ac4a99a74893b90a76a66154fb96d",class:"col-12"},a("form-control-textarea",{key:"4cd3adee3b01393d83b8b60829c46343ef116a95",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"f015b6667576149bf68831f25a3f28f83c58b222",class:"col-12"},a("form-control-file-v2",{key:"d309d1340359ae4435d94711cac9653e64cf68cb",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.cancellation_policy}))))}},u=t({customer_name:c().nullable(),customer_email_address:c().nullable(),customer_billing_address:c().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new i(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i,s;return a("div",{key:"aaedcbb7cca35c4ef511a0bb9407604cff6932cb"},a("div",{key:"e1138d89b2d4cb674f01593148ba48801949f932",class:"row gy-3"},a("div",{key:"1436a7c55837514d85e556eab03fe52f97b73b95",class:"col-12"},a("h2",{key:"29381277f0becb71a3969c7f31d1248cdbcda970",class:"h5",part:d},"Customer Details")),a("div",{key:"16e9380af72e2a6f39030a4ec3d2b564ee65d23b",class:"col-12"},a("form-control-text",{key:"7638809db83c50c177f4c5578034fc8f395f8be0",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"29706beee1719d5ac66c04770080856334503835",class:"col-12"},a("form-control-text",{key:"d1ef9f86f2d2e312cc1fd80fac912310c6488b09",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"a873ceeaf0471ff593999497a0b4dc0c9be35b1b",class:"col-12"},a("form-control-textarea",{key:"27a95f325650a5e2e2dacf769613301ad27d23a7",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"f964670531ca817ca0eda3929d5ad76b561c19ef",class:"col-12"},a("form-control-file-v2",{key:"78dc9ac5f501e89b597b7f2f4398e724ca0790d1",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.customer_signature})),a("div",{key:"f85ad27eeaeffcd8312b75878774d46fb8a1066d",class:"col-12"},a("form-control-file-v2",{key:"fa62e438857f097a1e91dc2e568beccf593f5a74",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:c().nullable(),duplicate_charge_explanation:c().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new i(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"25b4e50ccd4f038c40d8d0c2664776b13ba4481b"},a("div",{key:"7839487ade69bcc397ae61f3d615e67c3e386a94",class:"row gy-3"},a("div",{key:"9e00178320d3f1f70b978df5ec4dcf7a7c3e10d3",class:"col-12"},a("h2",{key:"0fbd5c1f4a5cfd063ee02d9a7242b3bf021ce2ed",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"dd354e2249e8d636725ea8deb8123db8723aff95",class:"col-12"},a("form-control-text",{key:"ca1f6e2ce644068c93f39ca27010aad6f8f1a741",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"8286c187d0ae51e5100e85c64433aa62f2d87b91",class:"col-12"},a("form-control-textarea",{key:"e1aea8da88793aa9e78578e52444cfd30afc7f41",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"165ec84127b9fdb6a085c50c3d9957fa77bdd8ec",class:"col-12"},a("form-control-file-v2",{key:"cdf0b17d75e369276608905181cf531c9387be56",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:c().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new i(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"a56362880cb16ffabf24b062215ee30b4e0fca4b"},a("div",{key:"48649b812efd04d2656cccb983568b9139928dd5",class:"row gy-3"},a("div",{key:"751a083f76c07a434ab42ad3a62a3fb884af8f46",class:"col-12"},a("h2",{key:"9e48b060b3e03d073683defdaf1f8dca721dc9b5",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"d784cc0078952f5a403460f85916da8391aa7216",class:"col-12"},a("form-control-text",{key:"38f1a8c8a2b775ff48cb69af9c89979fc6cff19e",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"5c3f9dd0c5036e8f0284d86b58a1549ef7f65ae2",class:"col-12"},a("form-control-file-v2",{key:"61104caa120f25a620eed712d37414976063b950",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:c().nullable(),service_date:c().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new i(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"7cb338a69707254cc2c0ccf7cea598380331dd5b"},a("div",{key:"8cc05bbd74be050d887964c20a336d58e6bccd31",class:"row gy-3"},a("div",{key:"7fd7d75e46a3e76a5421d217c52681fbaef47e40",class:"col-12"},a("h2",{key:"6cc302087f7eb8d785522420678ff5b1a2f96df0",class:"h5",part:d},"Product & Service Details")),a("div",{key:"d4bba967bc346c1bf8240bdd50421643b5bd36d5",class:"col-12"},a("form-control-text",{key:"45870cd9aa42f5cc2906e34e7f24d9e1dfa81bfd",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"e4ee19663d28921208736a09b5a697bc4d8a17ea",class:"col-12"},a("form-control-date",{key:"3ef6bb94b0a10f882d566a2a432ba3d6ce482cd1",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"63d88212fa98935068d7ef0e9f1ec0ca5192dd4c",class:"col-12"},a("form-control-file-v2",{key:"231b87e6b4d1a8ee530edc6d21701df21c82c91d",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.service_documentation}))))}},x=t({refund_policy_disclosure:c().nullable(),refund_refusal_explanation:c().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new i(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i;return a("div",{key:"c63cdc18f30fd294af7ecf0b4ea7d587f06abaea"},a("div",{key:"c9f68730fbe832982d626ab897e407d67c570942",class:"row gy-3"},a("div",{key:"b3932aea5591f932613af951f15917e14a35b28c",class:"col-12"},a("h2",{key:"d7493a5e9a477ba02e70c26b8e2bbd344662d2c7",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"490750c83185595252908047595ba23b5f705801",class:"col-12"},a("form-control-textarea",{key:"511931f7c55bc173b891770c6e5d89df30e37b08",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"8028af10e59f016a54d1639aad49c3ecbd063c70",class:"col-12"},a("form-control-textarea",{key:"22f0e873729a3a83c62824d2695304775d96d986",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"7492b589d4717ac0d478109797d80fdc2c56b8fc",class:"col-12"},a("form-control-file-v2",{key:"3a9297c083a93f813be357b21cd09dd213c420a9",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.refund_policy})),a("div",{key:"6f7db6c147c577427c11aca96a2944a493b037c1",class:"col-12"},a("form-control-file-v2",{key:"ddc5cca9e50bb01aec30cc0b666cca722bd6acca",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.receipt}))))}},O=t({shipping_carrier:c().nullable(),shipping_tracking_number:c().nullable(),shipping_date:c().nullable(),shipping_address:c().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new i(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i,s;return a("div",{key:"66ab4f496a037d4724fcc127803d2fd4c72ad2a8"},a("div",{key:"a650a56e124ecc55aaa383a32e27cad862801d01",class:"row gy-3"},a("div",{key:"aedaacba104b8540eedafcbc8f7c776fa99ab387",class:"col-12"},a("h2",{key:"b4e2dc10ef6cbdab47143f2cc64a484050bfc416",class:"h5",part:d},"Shipping Details")),a("div",{key:"7110551e0ecf98b149f008eb7105235b8d601454",class:"col-12"},a("form-control-text",{key:"2c17294567ff47b181c8d11cfda7651671adac92",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"031476a2435c80b8ae27fb50303f14797d84a801",class:"col-12"},a("form-control-text",{key:"67441fbba00af48235867763561cf8adf66b9e69",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"1fcc1bf129d3ec577f4f36a2801422044ec0a59e",class:"col-12"},a("form-control-date",{key:"aa0464427d083dceba8e1604e045c707366d6046",label:"Date Shipped",name:"shipping_date",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"f61850943df4c9d6605cde9d86b2e8275ced0af4",class:"col-12"},a("form-control-textarea",{key:"a1d4997810348a93f26a9f4932890ffd911ea062",label:"Shipping Address",name:"shipping_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"9dd41ee3436d63e0c89318129e811630e4aad75d",class:"col-12"},a("form-control-file-v2",{key:"fe1879caad49f44f1abd312a3925a20e6bdc11bf",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
1
+ import{r as e,h as a}from"./p-CV0Pyo1O.js";import{c as t,a as c,F as i}from"./p-CKiAlBsU.js";import{a9 as d}from"./p-DnrawQn3.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:c().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,c=t.name,i=t.files;a[c]=[];for(const e of i)a[c].push(new n(e,c))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new i(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"b39c3dae3e2e49a06221a15fb61de218bb76f059"},a("div",{key:"9bb1d748a648fefe903174dfe5cb8999e31fbb74",class:"row gy-3"},a("div",{key:"fac36e2ebbf99362a2a4ad5e1248eaf9e8aef15f",class:"col-12"},a("h2",{key:"83c3f2be493b847a7e4d0f630407da381f573885",class:"h5",part:d},"Additional Evidence")),a("div",{key:"13a30f25350f6455fc7c9b8aad1ed7370b94d7fb",class:"col-12"},a("form-control-textarea",{key:"ad10db3c159e19d42ccaca20674d13435f01e30f",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"6f9b8c602f5ecc3d657c785d5b268b9962a7b52e",class:"col-12"},a("form-control-file-v2",{key:"dd9577a255014dbadd3b340435d956b5e0ba748f",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:c().nullable(),cancellation_rebuttal:c().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new i(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"06da02c750e3281c8e9a92c4d1957d1ceb9097ae"},a("div",{key:"8ec6ebf90b3beb3d3a24c6fee0427f2ba949aba7",class:"row gy-3"},a("div",{key:"3a465a5a53f8795fdc20845bef945a8aa4cf8b3d",class:"col-12"},a("h2",{key:"6193c10bed3c100ef63b302db15473965669c0ec",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"0d68bbb77217df1e9ed067593a76eddfc76f20ff",class:"col-12"},a("form-control-textarea",{key:"d5a3157c26687247d23d558c25f0687e339191bc",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"6fbc16ced9bbb9188f683f5493902d8982d61e5a",class:"col-12"},a("form-control-textarea",{key:"fa009aa03035ccc1c42a70337f1502276e0d9499",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"3267fe5bd07181b17fe1875dac501f7ca827900d",class:"col-12"},a("form-control-file-v2",{key:"6fd33a1194be752f078c1aab7924bf1502177fb2",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.cancellation_policy}))))}},u=t({customer_name:c().nullable(),customer_email_address:c().nullable(),customer_billing_address:c().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new i(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i,s;return a("div",{key:"99a3ca32c4f0867f1c9ce8be6e24de3206111b2b"},a("div",{key:"d7e62b1331acdcdff20c6a8141d2447d070d338d",class:"row gy-3"},a("div",{key:"7c6d1924454163791d3e220d000a4d37588d4eb8",class:"col-12"},a("h2",{key:"25cd3fac6addfe1d66052de8d5fbae6204168409",class:"h5",part:d},"Customer Details")),a("div",{key:"f6335d63a564fbfa597129e55939e8958dbc156e",class:"col-12"},a("form-control-text",{key:"af06a0b36a775d3f8fcf88e9294be3241f0c45b7",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"7e0f3c1c8a354ece07ccbadd32f1d21f184a6eed",class:"col-12"},a("form-control-text",{key:"34e43daff0a9335fd55ddd1511b39738f20947bc",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"c88f74e81d377f328e82020134d679fc402b884c",class:"col-12"},a("form-control-textarea",{key:"785d88c1a038a7a6f3417d13620b7f8104e23c5f",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"7d3d38d2a781eebac7bb77a9bacb816547060a7d",class:"col-12"},a("form-control-file-v2",{key:"3fc2ada66ba9be0a9a5d65f380237ac044134e27",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.customer_signature})),a("div",{key:"30c6c70d765fd4b1f7e37ee2f37b01e9b3ec2b4f",class:"col-12"},a("form-control-file-v2",{key:"a84cd87563ad2fa2c7dcf832d3b1219bfded150c",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:c().nullable(),duplicate_charge_explanation:c().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new i(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"98ca80e403dd32506af99145e08204be5eec4b31"},a("div",{key:"a8eeafb1ba7af0cb64b739a6c433c9a8ff9d5d92",class:"row gy-3"},a("div",{key:"be0573c9b62984e6b2bcf01242e75cca0ae8cc8c",class:"col-12"},a("h2",{key:"6c40320a1da739177366d671ff2cff3688ab157e",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"4778b442ff686afeebcf9d19d6d91847ae3e7e5d",class:"col-12"},a("form-control-text",{key:"7413dbaba70c32f8982b9719a2b27398aaa6f33a",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"53da7a4a0143e14ec5a334b3181d5e3d0588a634",class:"col-12"},a("form-control-textarea",{key:"c26aaeea93f882d9baa35cf9d5ba5e26b86a83dc",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"9e0f630e9211f701d7949c2d96e69dd62d221bd2",class:"col-12"},a("form-control-file-v2",{key:"1f6495ddc4c034337b860208721a703416ae5c0d",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:c().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new i(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"cfa8c6c92bb2790dbaea1939e6acc7539fd848d7"},a("div",{key:"63d38a0c614f932ef018791fb1388b3dc49c7e5c",class:"row gy-3"},a("div",{key:"6140c07a8c354d9339509a00141fbc7a1de146f4",class:"col-12"},a("h2",{key:"40c755fe0938930e0283c391df12c417850eecb4",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"e5145c83af0623fe602ea51a171d97e2e4064e19",class:"col-12"},a("form-control-text",{key:"c1886a0f25a6955526dd07ae9a5e00a29172a716",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"fd6fa580702047999cfd94fddccd3e9185d61201",class:"col-12"},a("form-control-file-v2",{key:"816fb2eb5d3ca714e7b4e35398cfce41a5a02ae1",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:c().nullable(),service_date:c().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new i(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"e43f3118bb3b607e3af86cbdf8cba319bd0c7f26"},a("div",{key:"ab2452d038e39e3b2781d72b0b43c42899734fce",class:"row gy-3"},a("div",{key:"04a31b25a688803623882e91e6d27ebdcab3fc99",class:"col-12"},a("h2",{key:"c32d209d8c441287353316222a2ad11d66ad3022",class:"h5",part:d},"Product & Service Details")),a("div",{key:"936a6427c3531df4dcc096ff50bc31a0b85a4bcb",class:"col-12"},a("form-control-text",{key:"e7c77f6b3f35ff66935e2c48c4a6c7b203cdc3ea",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"51e374b7cf4053261f0bc44a19ee13c39e4b8a88",class:"col-12"},a("form-control-date",{key:"0b11a59dbd74b0e6fe568a948c643722542647ab",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"e18ae7ebca9050fc87aed1d51d664c278b16c341",class:"col-12"},a("form-control-file-v2",{key:"dd7567eb79c3d273bfa3b4464dd39b9508d8a018",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.service_documentation}))))}},x=t({refund_policy_disclosure:c().nullable(),refund_refusal_explanation:c().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new i(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i;return a("div",{key:"c5a20cda29feb1dd2bc608a34f1d479e75218606"},a("div",{key:"137aeb0f70a8ae6daba6f44d0128098c1580d91a",class:"row gy-3"},a("div",{key:"9a5839b430e5dc73b6543f17fc53c927859a36c9",class:"col-12"},a("h2",{key:"bdd71c1c572428ba0d274e7319786a5236de193b",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"191121597d2277907a526d1c3ea1662e40c5ffc0",class:"col-12"},a("form-control-textarea",{key:"131ecd8df82112e62825c821e3408f721b65486d",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"ea28978ddac1ca271b4d2685559c30564756e24c",class:"col-12"},a("form-control-textarea",{key:"dbf87760ec66daffe670e13014d69bb899fb4e6f",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"f04e0f3e88971625b296c9a13d2e4c66ca0ee431",class:"col-12"},a("form-control-file-v2",{key:"fa4b249335a73a479c8e6abbc4c44e2fe3ab11e6",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.refund_policy})),a("div",{key:"e06df78e4ee3b06278850d53d0484fd750ee48ed",class:"col-12"},a("form-control-file-v2",{key:"82980ca492c41b2e705ad1e686af84122a94b7a2",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.receipt}))))}},O=t({shipping_carrier:c().nullable(),shipping_tracking_number:c().nullable(),shipping_date:c().nullable(),shipping_address:c().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new i(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i,s;return a("div",{key:"5095dc339b43e49c59b6efcfacacbb680408edf5"},a("div",{key:"1fbe12df13f6013c2223b60b94ac0a5fa4596dc0",class:"row gy-3"},a("div",{key:"d31cb56b51c77a39125f3531e9513ebc51155277",class:"col-12"},a("h2",{key:"317c209a7e3168e85b4e0c672a6c8cb8f5e2177c",class:"h5",part:d},"Shipping Details")),a("div",{key:"27f75f17046c752629058d496cb7820b23dcbc2c",class:"col-12"},a("form-control-text",{key:"3640223bb57f4d6eea09df3d3a0c66b7f5cce998",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"e31d26c7622a07833814aba997c25fa114dfd276",class:"col-12"},a("form-control-text",{key:"e6cc2d569c05e28452428577c9991d3f45ab97c8",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"6ebb9e323186e4db61e42c68757f218b6d412253",class:"col-12"},a("form-control-date",{key:"aee185a1e9a7bdf3a9ff79d4cef4937dae6b9eaf",label:"Date Shipped",name:"shipping_date",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"afee1bf9054a4d43b1c708a254459134453e014c",class:"col-12"},a("form-control-textarea",{key:"b238c60b5fc8805d5969ceb271ecbb0b5f77f7b4",label:"Shipping Address",name:"shipping_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"631889f4538c546dc386009b229acd9fb7a98a6c",class:"col-12"},a("form-control-file-v2",{key:"d960f9f6494ffd3f5bc4b62fa66f3466974f07c5",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
@@ -0,0 +1 @@
1
+ import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-Dbg501Lu.js";import{m as i}from"./p-DWevPe7C.js";import{C as d,e as c,g as b}from"./p-CUI41_5y.js";import{J as f}from"./p-BnaR7f2G.js";import{c as l}from"./p-BJ7GFTiW.js";import"./p-DVJaoI_m.js";import{b as r,d as h,s as o}from"./p-BRnBHsdq.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{a as p}from"./p-BH0Xfn-F.js";import{P as n,M as m}from"./p-D1D2eC05.js";import{a as y,b as u,D as v,c as k,C as j,E as g}from"./p-x9fFFf7F.js";import{S as C}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as D}from"./p-DcBvJu0k.js";import{a as w,B as P}from"./p-pL4dNfsl.js";import"./p-CYQvLgSs.js";import"./p-HXpYMWUU.js";import"./p-B5vVjDc_.js";import"./p-BCgsLInF.js";import"./p-D8GTwl9v.js";import"./p-DnrawQn3.js";const x=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(D,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(D,{width:"70%"})),e("div",{class:"col-12"},e(D,{width:"40%"})),e("div",{class:"col-12"},e(D,{width:"40%"})),e("div",{class:"col-12"},e(D,{width:"100%"})),e("div",{class:"col-12"},e(D,{width:"80%"}))),B=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),this.loading=!0}componentWillLoad(){l(),this.analytics=new f(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?(this.getPaymentDetails=i({id:this.paymentId,authToken:this.authToken,service:new s}),this.fetchData()):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:c.MISSING_PROPS,severity:d.ERROR}))}updateOnPropChange(){this.getPaymentDetails&&this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a})},final:()=>{this.loading=!1}})}get PaymentStatus(){return this.payment.status===b.disputed&&this.payment.disputes.some((e=>e.status===p.lost))?n.DISPUTE_LOST:this.payment.status}render(){return e(C,{key:"6d899226b71c2f8c80bf42ba0bd3de9d069582e8"},this.loading&&e(x,{key:"8e17e3f4c880ace7b87270e768610e9ece6e761a"}),!this.loading&&this.errorMessage&&g(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"2f5ea94a1fec18581a06f171c34850fc1423ec1f",errorMessage:this.errorMessage},e(y,{key:"5f011ef4b84acc2c16974293079c2d7b0134f8c6",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},m(this.PaymentStatus),this.payment.expedited?e(w,{variant:P.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(u,{key:"5c075c53a5c589b7bc65ab60bf2ef7d8a67a7afb",classes:"border-1 border-end",title:"Updated At",value:`${r(this.payment.updated_at)} ${h(this.payment.updated_at)}`}),e(u,{key:"01786dce8a3c582fbd1f471174ecd13f95604e24",classes:"border-1 border-end",title:"Created At",value:`${r(this.payment.created_at)} ${h(this.payment.created_at)}`}),e(u,{key:"b04c5c8dfc64aba71d9cc0cd84c25bd32bdc887f",title:"ID",value:this.payment.id})),e("div",{key:"52bb00c09abe0745a03f264b3667584c10f58eee",slot:"detail-sections"},e(v,{key:"0672c1ed0c4e7f109531e120f61256927eba48eb",sectionTitle:"Details"}),e("div",{key:"d784569e100926eefb120e1a4b2d9a4d6da4238a",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"58192f1824f4b02a206b6c442e63b86fc90ea742",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(k,{key:"0b885dc6f6f7a4890666ecdb2a1cc801bbf1df31",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"e517d5dbd76cf451e89f803f26b0375a6fd0420b",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(k,{key:"ec3cf850c0217230794e6487861dbab0da5ad463",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(k,{key:"8f0d1f4b858ff459b9d08c168ff204e87a0c715e",title:"Status",value:m(this.PaymentStatus)}),e(k,{key:"819e1c1dbf090c664430b8e00ede6a88b9ecf5c2",title:"Payment ID",value:this.payment.id}),e(k,{key:"a86688bc8015db6b1034e6dd2a9819e1dbe5bb30",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"7dbb9825135d66711e65fb1b1bb2be228d65bb57",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(k,{key:"0455c1b7e853ba4e16197cdca3e2f0b16455362a",title:"Description",value:this.payment.description}),e(k,{key:"b052be4a1a349eb6a439e5c4be4424f966c55e60",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(v,{key:"dca0ae73fa7f879d6cfb3f3b20331cf48d6081e4",sectionTitle:"Payment Method"}),e("div",{key:"fd3dd48f6ad1f3565459fb3ac10115f0b32051f9",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"8c00d775e7c4ef57689574974ee47b7c87f98b13",title:"ID",value:this.payment.payment_method.card.id}),e(k,{key:"2d3bc94126c2a02cb32fca8d952a238fdc0960c6",title:"Payment Type",value:"Card"}),e(k,{key:"16938c62ba1eafbf79af00c90c66c7250a81fbbb",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(k,{key:"04d9f9a2a7e3ace45f4b0001cf53b069f470529a",title:"Brand",value:o(this.payment.payment_method.card.brand)}),e(k,{key:"559be48e5ac2083369e7984d53e85ee5fbbab008",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(v,{key:"25277f2e5526747de9f45416050c6b72873e382b",sectionTitle:"Payment Method"}),e("div",{key:"e0b69c8397665a33c1f0d14bd9438b19e70b8636",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"ff0365efd2c8ed7a2aa7d3552504a6d9097c28b3",title:"ID",value:this.payment.payment_method.bank_account.id}),e(k,{key:"269d136045549cd12e4519e7f4abf3b6d221da85",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(k,{key:"31b5aaf03f5bf15267ac16b4b4a2d26f0a01e988",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(k,{key:"15f9c03d3514ebb78d25955497a728c8a2c53f7e",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(v,{key:"dac3bf342764c2e10ac6b64eabc5ef0366446a31",sectionTitle:"Metadata"}),e("div",{key:"2fe93fb287b469a5b1f3230b5f657216815d1164",class:"d-table gap-2 w-100"},e(j,{key:"f77b6a4ebeb88b82fe8342789bd16b7b22f24db9",metadata:this.payment.metadata}))])))}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"],getPaymentDetails:["updateOnPropChange"]}}};export{B as justifi_payment_details}
@@ -0,0 +1 @@
1
+ import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-CX36GHQP.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{i,C as d,e as c}from"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as o,a as r}from"./p-B5vVjDc_.js";import{h,b as f,d as l}from"./p-BRnBHsdq.js";import{a as n,b as p,D as b,c as v,C as u,E as m}from"./p-x9fFFf7F.js";import{J as y}from"./p-BnaR7f2G.js";import{m as k,M as j}from"./p-Cej-1bD6.js";import{c as C}from"./p-BJ7GFTiW.js";import{B as g}from"./p-2LVpxCS_.js";import{S as w}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as x}from"./p-DcBvJu0k.js";import{a as D,B}from"./p-pL4dNfsl.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-DnrawQn3.js";import"./p-BCgsLInF.js";const S=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(x,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(x,{width:"70%"})),e("div",{class:"col-12"},e(x,{width:"40%"})),e("div",{class:"col-12"},e(x,{width:"40%"})),e("div",{class:"col-12"},e(x,{width:"100%"})),e("div",{class:"col-12"},e(x,{width:"80%"}))),T=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),this.enableRecordClick=!1,this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})},this.handleRecordClick=e=>{this.recordClickEvent.emit({id:e,type:"account"})}}componentWillLoad(){C(),this.analytics=new y(this),this.initializeServices(),this.getPayout&&this.fetchData()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeServices()}getPayoutWatcher(){this.fetchData()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:e,authToken:t,service:a})=>async({onSuccess:s,onError:c})=>{var h;try{const f=await a.fetchPayout(e,t);f.error?c({error:r(f.error),code:o(null===(h=f.error)||void 0===h?void 0:h.code),severity:d.ERROR}):s(new i(f.data))}catch(e){c({error:r(e),code:o(null==e?void 0:e.code),severity:d.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new s}),this.getPayoutCSV=k({authToken:this.authToken,service:new s})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:c.MISSING_PROPS,severity:d.ERROR}))}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}formatMethod(e){return"ach"===e?"ACH":h(e)}render(){var t;return e(w,{key:"83a5916c440ac2cc4efe216dd175c8816e23c815"},this.loading&&e(S,{key:"d11ad391a3eaacc5dd6a9a0303d80f496955d369"}),!this.loading&&this.errorMessage&&m(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"a3be08ef5ad0882ec4a611aa597b0b69914cb560",errorMessage:this.errorMessage},e(n,{key:"4cea018e82c69b391a5dfc326d0ebb2aac43bcee",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},j(null===(t=this.payout)||void 0===t?void 0:t.status),e(D,"expedited"===this.payout.settlement_priority?{variant:B.WARNING,title:"Expedited",text:"Expedited"}:{variant:B.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(p,{key:"4f44184dcdf1313048d9a2ee5c9be928c1a2b5ef",classes:"border-1 border-end",title:"Updated At",value:`${f(this.payout.updated_at)} ${l(this.payout.updated_at)}`}),e(p,{key:"d6042bde890fcd4b8ff63856d53debf289ab6d2d",classes:"border-1 border-end",title:"Created At",value:`${f(this.payout.created_at)} ${l(this.payout.created_at)}`}),e(p,{key:"2866ed7c297a0815bad29bfca699893ead3af6ca",title:"ID",value:this.payout.id}),e("div",{key:"1a7a105da3b0297f90c9a33fe76aa650c9c5aaa0",class:"m-4"},e(g,{key:"31d8cb414516d5b4244179e6e905cb0d6f4499fa",variant:"outline-secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"1c1c4896b3f2a0c463880c082fdb43fdd6996de3",slot:"detail-sections"},e(b,{key:"481c8f87d29ba4583a40370415fd6f144a601462",sectionTitle:"Details"}),e("div",{key:"2f0f38440296dc01dee0fefab2b7f6a1bd04e4bf",class:"d-flex flex-column gap-2 w-100"},e(v,{key:"d8fe26cee63860bc4e02ffad0e64834ea888d8e3",title:"Date paid",value:f(this.payout.deposits_at)}),e(v,{key:"d4a94c5ad5a78c41d314377316ce71db24b79db5",title:"Statement Description",value:this.payout.description}),e(v,{key:"fea138338da1c74d26dacfeaa15642962346658c",title:"Payout Method",value:this.formatMethod(this.payout.delivery_method)}),e(v,{key:"f77701ef18590ed73431614f421b9d76a9b83da6",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(v,{key:"af2401b0ad8b35f55283d74eae20fdf7ceea0b82",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(b,{key:"96801f26f15e665e856262f65c0c6cea6f92bd9a",sectionTitle:"Account"}),e("div",{key:"54578f116a6b23c5c1dce11d450eb18be304ab65",class:"d-flex flex-column gap-2 w-100"},e(v,{key:"fa8ab204001e4be0cf2aa71fa2f955532f1ac81c",title:"ID",value:this.payout.account_id,onClick:this.enableRecordClick?()=>this.handleRecordClick(this.payout.account_id):void 0}),e(v,{key:"a0e1afcd7e7d86afb500cf876b7b61e74183f4c9",title:"Account Type",value:this.payout.bank_account.account_type}),e(v,{key:"6b78025d11ac562f6950f07d3dc8e5c4041a236f",title:"Institution",value:this.payout.bank_account.account_type}),e(v,{key:"93f4f6d947d1b621de0b1d2a24dbcf83e9c909ef",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(v,{key:"cbe9a97153516dd2cbf6af4337179652d0f834ac",title:"Account Number",value:`**** ${this.payout.bank_account.account_number_last4}`})),this.payout.metadata&&[e(b,{key:"706f2d164a736fb80a8c91018f61e7667eb12be6",sectionTitle:"Metadata"}),e("div",{key:"5be03b700c79d747899db7d9bee8a060c5de7894",class:"d-table gap-2 w-100"},e(u,{key:"8dc3aa6522c59f7a5739eda61354bb1ac58ee3ac",metadata:this.payout.metadata}))])))}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"],getPayout:["getPayoutWatcher"]}}};export{T as justifi_payout_details}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-Dbg501Lu.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{b as i,C as r,e as o}from"./p-CUI41_5y.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as p,a as c}from"./p-B5vVjDc_.js";import{J as h}from"./p-BnaR7f2G.js";import{c as d}from"./p-BJ7GFTiW.js";import{S as m}from"./p-BqNNwq6C.js";import{T as f,l,a as u,b,c as y,d as g,e as v,f as j,g as _,h as C,i as k,j as w,k as T}from"./p-bn_huKYG.js";import{T as D}from"./p-CZfYo5-1.js";import{M as P}from"./p-D1D2eC05.js";import{a as B}from"./p-BRnBHsdq.js";import{a3 as S,a4 as O}from"./p-DnrawQn3.js";import{o as I,g as A}from"./p-CpGEMRkH.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-BCgsLInF.js";import"./p-CDf5H0TB.js";import"./p-pL4dNfsl.js";const E={created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:S,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:S,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:S,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:S,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:S,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method"),card_brand:()=>t("th",{part:S,scope:"col",title:"The brand of the payment method"},"Card Brand")},H={created_at:(e,a)=>t("td",{part:O(a)},t("div",{class:"fw-bold"},B(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},B(e.created_at,{showTime:!0}))),amount:(e,a)=>t("td",{part:O(a)},e.formattedPaymentAmount(e.amount)),status:(e,a)=>t("td",{part:O(a)},P(e.status)),payment_type:(e,a)=>t("td",{part:O(a)},e.payment_type),description:(e,a)=>t("td",{part:O(a)},e.description),payers_name:(e,a)=>t("td",{part:O(a)},e.payers_name),last_four_digits:(e,a)=>t("td",{part:O(a)},e.last_four_digits),card_brand:(e,a)=>{var s,i,r;return t("td",{part:O(a)},(r=(null===(s=e.payment_method.card)||void 0===s?void 0:s.brand)||(null===(i=e.payment_method.bank_account)||void 0===i?void 0:i.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[r.toLowerCase()]||r:"N/A")}},L=class{constructor(t){e(this,t),this.errorEvent=a(this,"error-event",7),this.clickEvent=a(this,"click-event",7),this.errorMessage=null,this.payments=[],this.loading=!0,this.paging=n,this.pagingParams={},this.columns="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.payments.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){d(),this.analytics=new h(this),this.paymentsTable=new f(this.payments,this.columns,E,H),this.initializeGetPayments(),I("set",(()=>{this.pagingParams={},this.errorMessage=""})),I("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}updateOnPropChange(){this.fetchData()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:e,service:a})=>async({params:s,onSuccess:o,onError:n,final:h})=>{var d,m;try{const h=await a.fetchPayments(t,e,s);if(h.error)return n({error:c(h.error),code:p(null===(m=h.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},h.page_info);o({payments:(null===(d=h.data)||void 0===d?void 0:d.map((t=>new i(t))))||[],pagingInfo:t})}}catch(t){const e=p(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:r.ERROR})}finally{return h()}})({id:this.accountId,authToken:this.authToken,service:new s}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}fetchData(){this.getPayments&&(this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:e})=>{this.payments=t,this.paging=e,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:a})},final:()=>{this.loading=!1}}))}get paymentParams(){const t=A();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(m,{key:"6e1b9127bd44def13ca0e9360f3ad94e8c99860e"},t(l,{key:"556583538e7dd2cadd84980277da82902eba942f"},t(u,{key:"bc604eb09bcb019786afb272f597da99d6635872"},t(b,{key:"3e030bf889ea09510c26147d807a427d4a772d23"},t(y,{key:"c193117a1db06574c019922536a6982e4c6f09fb"},this.paymentsTable.columnData.map((t=>t)))),t(g,{key:"aa955b2adc05c02fbe7a6c693de4649e90855aba"},t(v,{key:"35930a22ccdcc360e5e3f192c3fb140711508742",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),t(j,{key:"1582993843ac6661d2c5b62e07b1911ab940cb3c",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),t(_,{key:"328f38cc95fb2f854865e4e05ace7e9ce8af8b69",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((e,a)=>t(C,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(k,{key:"0137371c7f1ab00f8ef3d27cebb30525eff6b659"},t(w,{key:"54ed0b9a13338b0bcefba282afe4f2de40e8f539"},t(T,{key:"6b98204f36a989fe9bd2bda65705de88098690c5",colSpan:this.paymentsTable.columnData.length},t("pagination-menu",{key:"e3fce4ab3efcc9a33d0b2617cea88026c8a459f3",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{L as justifi_payments_list}
@@ -0,0 +1 @@
1
+ import{h as i,r as e}from"./p-CV0Pyo1O.js";import{S as a}from"./p-DcBvJu0k.js";import{w as t,c}from"./p-DVJaoI_m.js";import{e as s}from"./p-BRnBHsdq.js";import{c as d}from"./p-BJ7GFTiW.js";import"./p-DnrawQn3.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";import"./p-BCgsLInF.js";const n=e=>{const{isReady:t}=e;return t?null:i("div",{class:"container-fluid p-0"},i("div",{class:"mb-3"},i(a,{height:"18px",width:"100px"}),i(a,{height:"36px"})),i("div",{class:"row"},i("div",{class:"col-4 align-content-end"},i(a,{height:"18px",width:"80px"}),i(a,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(a,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(a,{height:"18px",width:"30px"}),i(a,{height:"36px"}))))},r=class{constructor(i){e(this,i),this.isReady=!1}async componentWillLoad(){await t(),this.iframeOrigin=c.iframeOrigin,this.tabId=s(),d()}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((i=>new Promise((e=>{i.addEventListener("iframeLoaded",(()=>{e()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const i=await this.cardNumberIframeElement.validate(),e=await this.expirationMonthIframeElement.validate(),a=await this.expirationYearIframeElement.validate(),t=await this.cvvIframeElement.validate();return i&&e&&a&&t}async tokenize({clientId:i,paymentMethodMetadata:e,account:a}){return await this.cardNumberIframeElement.tokenize(i,e,a)}render(){return i("div",{key:"cef558344c088e6e0bccb49b99c8a47c76200467"},i(n,{key:"f35bad214bc4d7657b7ab8a097a76602df877bcf",isReady:this.isReady}),i("hidden-input",{key:"d3791651ad279e2e0ad169012f4d066a44bbfa66"}),i("div",{key:"37318e633f9ab08bfbc95750466c054158e5e4ff",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"d5eccc9c8a496f3f264a1bd01bb065e823aa01b5",class:"mb-3"},i("iframe-input",{key:"2ec07c9bf1ea18ed354cd036e2c7876f974a30ed",inputId:"cardNumber",ref:i=>this.cardNumberIframeElement=i,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}`})),i("div",{key:"2959894ab0721d9bffccb0c16ecfb71bd3488518",class:"row"},i("div",{key:"dea7afd2515c4faa4927fd6cb32678fc782b9b5a",class:"col-4 align-content-end"},i("iframe-input",{key:"7d95eff6c6765ff996c1c497866ad01216b2cc4f",inputId:"expirationMonth",ref:i=>this.expirationMonthIframeElement=i,label:"Expiration",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}`})),i("div",{key:"00b02deefe877431409ef584662fc07e4a20cc3c",class:"col-4 align-content-end"},i("iframe-input",{key:"4860f042f29eb1d3db0e5ad4cb7c9471b8536ce6",inputId:"expirationYear",ref:i=>this.expirationYearIframeElement=i,label:"",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}`})),i("div",{key:"c69f9be6e581e683b757e89000ef1ba385c5f57b",class:"col-4 align-content-end"},i("iframe-input",{key:"e5fbb8e78af5c8c6ed74db18aeb226bfba5d083f",inputId:"CVV",ref:i=>this.cvvIframeElement=i,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}`})))))}};export{r as card_form}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as s,H as a,g as i}from"./p-CV0Pyo1O.js";import{F as r}from"./p-BsQy297i.js";import{a7 as o,q as h,v as l,u as n,w as c,x as f}from"./p-DnrawQn3.js";const d=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.errorText="",this.inputHandler=()=>{},this.disabled=!1}render(){return s(a,{key:"148ab38c0f84c68412db6bb87e2cb4d986809aaa",exportparts:"label,input,input-invalid"},s("div",{key:"11426b2eee53e37090e0b0d2cda9e3823b777072",class:"form-group d-flex flex-column"},s("div",{key:"c241b74d833248d3a94466490e5111cea7a587f6",class:"d-flex align-items-start gap-2"},s("label",{key:"ff5322a7dc7344374b28a04ccfc89051aa4f2e49",part:"label",class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"a134a3772f580da33b497686ffb321863e65acc2",helpText:this.helpText})),s("input",{key:"f06a4e02a08c336a9048c6e45cb588e7d9f06082",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=""}),s(r,{key:"c374ee239d34ba99de7146dbe10fdee38c63ddc5",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},m=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.isFocused=!1,this.helpText="",this.errorText="",this.inputHandler=()=>{},this.disabled=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit({name:s,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?h:this.isFocused?l:this.disabled?n:c}render(){return s(a,{key:"99c79a6c8020a98a663caf25a510310a46daed8c"},s("div",{key:"5cb37c1a3ecffdfa606805e72efe41825997296e",class:"form-group d-flex flex-column"},s("label",{key:"f354efb1e47e496e36ae91dc8584cfd7a803eb5e",part:f,class:"form-label",htmlFor:this.name},this.label),s("textarea",{key:"53d089f2377dc20fb1d8e07c5d2d8697a6a17b33",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}),s("form-control-help-text",{key:"96e451654599a09a9a86db0928c083d36a7964e1",helpText:this.helpText,name:this.name}),s("form-control-error-text",{key:"7d6b01f7f482643f91e9e4d83c59847e3a4f2f35",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_file_v2,m as form_control_textarea}
@@ -1 +1 @@
1
- import{r as s,h as t}from"./p-CV0Pyo1O.js";import{E as i}from"./p-CjuaXEuI.js";import"./p-D50Rx76J.js";const o=class{constructor(t){s(this,t)}render(){return t("div",{key:"b91f85e2f62f1ea80409367208117f805299c397"},this.errorMessage?i(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{o as justifi_details}
1
+ import{r as s,h as t}from"./p-CV0Pyo1O.js";import{E as i}from"./p-x9fFFf7F.js";import"./p-DnrawQn3.js";const o=class{constructor(t){s(this,t)}render(){return t("div",{key:"b91f85e2f62f1ea80409367208117f805299c397"},this.errorMessage?i(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{o as justifi_details}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as s,H as i}from"./p-CV0Pyo1O.js";import{C as a,e as n,E as r,y as o,z as h,v as l,w as c,x as d}from"./p-CUI41_5y.js";import{m as u,a as m,c as b,d as p,e as f,f as v,g as y}from"./p-CR_-qIuN.js";import{B as g,a as k,D as w,I as _}from"./p-CsdYMTrc.js";import{a as x,c as T,b as L}from"./p-BovgIz83.js";import{F as C,c as j,a as O,b as A,d as E}from"./p-CKiAlBsU.js";import{A as I,C as S,e as H,R as D,f as V}from"./p-BcNb9bVO.js";import{C as B,P,I as N}from"./p-CVaOFfrI.js";import{b as M,a0 as R,C as F,x as q,u as W,D as z,aa as U,a3 as Y,aj as Z,am as G,a1 as $}from"./p-DnrawQn3.js";import{P as X}from"./p-DPmnGTmg.js";import{b as Q,a as J,c as K}from"./p-Bt4GjEWL.js";import{a as tt,B as et}from"./p-XYgDHrVL.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{n as st}from"./p-BnjCmwMr.js";import{A as it,B as at,v as nt,C as rt,D as ot,E as ht,F as lt}from"./p-HT_4DkD0.js";import{B as ct}from"./p-2LVpxCS_.js";import"./p-CZfYo5-1.js";import{c as dt}from"./p-_-2E_vYf.js";import{s as ut,b as mt,d as bt}from"./p-BRnBHsdq.js";import{S as pt}from"./p-DcBvJu0k.js";import{u as ft,a as vt,b as yt}from"./p-C6o0liMT.js";import{d as gt,e as kt}from"./p-D8EGHc_m.js";import{A as wt}from"./p-CYQvLgSs.js";import{S as _t}from"./p-BqNNwq6C.js";import{P as xt}from"./p-B--N37zY.js";import"./p-B5vVjDc_.js";import"./p-BFTU3MAI.js";import"./p-D8GTwl9v.js";class Tt{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.institution_number=t.institution_number,this.transit_number=t.transit_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||"",institution_number:this.institution_number||"",transit_number:this.transit_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const Lt=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.formLoading=e(this,"formLoading",7),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 I(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let e;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:s=>{e=s,t()},onError:({error:t,code:s,severity:i})=>{e=t,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:e,formStep:tt.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e})),this.additional_questions=new I(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}}propChanged(){this.initializeApi()}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 I(this.formController.values.getValue()).payload}}componentWillLoad(){this.initializeApi(),this.formController=new C(x(this.allowOptionalFields))}componentDidLoad(){this.getBusiness&&this.getData(),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.patchBusiness=m({authToken:this.authToken,businessId:this.businessId,service:new g})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}render(){var t,e,i,a,n;const r=this.formController.getInitialValues();return this.isLoading?s(X,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:M},"Additional Questions"),s("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12 col-md-6"},s("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===(t=this.errors)||void 0===t?void 0:t.business_revenue,defaultValue:null==r?void 0:r.business_revenue,maskOptions:B.WHOLE})),s("div",{class:"col-12 col-md-6"},s("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==r?void 0:r.business_payment_volume,maskOptions:B.WHOLE})),s("div",{class:"col-12"},s("form-control-text",{name:"business_average_transaction_amount",label:"What is your average transaction size?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_average_transaction_amount,defaultValue:null==r?void 0:r.business_average_transaction_amount})),s("div",{class:"col-12"},s("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===(a=this.errors)||void 0===a?void 0:a.business_when_service_received,options:Q,defaultValue:null==r?void 0:r.business_when_service_received})),s("div",{class:"col-12"},s("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===(n=this.errors)||void 0===n?void 0:n.business_other_payment_details,defaultValue:null==r?void 0:r.business_other_payment_details})))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],additional_questions:["recurringPaymentsWatcher"]}}},Ct=class{constructor(e){t(this,e)}render(){return s("div",{key:"d0dacb95d07d3e4ca9bc2c9f23b6c490871da4e9",class:"row gy-3"},s("div",{key:"02ed406f38558badf9f591e076b120d09c71f83b",class:"col-12"},s("form-control-file",{key:"11ff1dc68264b9e5aa561ffe19b423abc1a00c78",name:"voided_check",label:"Voided Check",documentType:r.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),s("div",{key:"71d26407522a75a54489155566c18af1a64c1417",class:"col-12"},s("form-control-file",{key:"7ea42e03a44c223a5fedc273e94e635e70d54f4b",name:"bank_statement",label:"Bank Statement",documentType:r.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},jt=class{constructor(e){t(this,e)}render(){var t,e,i,a,n,r;return s("div",{key:"d3445ce89732e19baea2e8f224c42011d5a03998",class:"row gy-3"},s("div",{key:"966e1d8ba6043b4f9b57ae0061ae94c177c12b48",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Bank Name",value:null===(t=this.defaultValue)||void 0===t?void 0:t.bank_name}):s("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),s("div",{key:"314a4f7e181b978b2ff1fdbfdfc8d9484089829a",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Nickname",value:null===(e=this.defaultValue)||void 0===e?void 0:e.nickname}):s("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),s("div",{key:"45ac55707ce44b208adaf72e944ea3056810183a",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Owner Name",value:null===(i=this.defaultValue)||void 0===i?void 0:i.account_owner_name}):s("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),s("div",{key:"74ce58b36eb3a425d900d7bb0858bda18b2e341c",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Type",value:null===(a=this.defaultValue)||void 0===a?void 0:a.account_type}):s("form-control-select",{name:"account_type",label:"Account Type",options:J,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),s("div",{key:"2562105aaaae00d9c46eb61d931a43927d96a8ce",class:"col-6"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Number",value:(null===(n=this.defaultValue)||void 0===n?void 0:n.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):s("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:st,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),s("div",{key:"4c7e6cba0ee1e2567dc5b608559b13ebd3fddd07",class:"col-6"},this.formDisabled?s("bank-account-read-only-value",{label:"Routing Number",value:(null===(r=this.defaultValue)||void 0===r?void 0:r.routing_number)||""}):s("form-control-text",{name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:st,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},Ot=class{constructor(e){t(this,e)}render(){var t,e,i,a,n,r,o;return s("div",{key:"8de8f05777f72ecb1112328544e75be7cd929e8d",class:"row gy-3"},s("div",{key:"513fb78b434ba3aebe51b636f7494b54e437c65f",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Bank Name",value:null===(t=this.defaultValue)||void 0===t?void 0:t.bank_name}):s("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),s("div",{key:"37a1ef4ac58fbe1633a93020e786d546cd832867",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Nickname",value:null===(e=this.defaultValue)||void 0===e?void 0:e.nickname}):s("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),s("div",{key:"fc8820e264d14ac3c5a1c6fd171b381c2b6d99e1",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Owner Name",value:null===(i=this.defaultValue)||void 0===i?void 0:i.account_owner_name}):s("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),s("div",{key:"f183b1c5f6a8b0f905c916cd1715448f3e02d26f",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Type",value:null===(a=this.defaultValue)||void 0===a?void 0:a.account_type}):s("form-control-select",{name:"account_type",label:"Account Type",options:J,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),s("div",{key:"8366ebde2f319f6d910a34917f57ad43b3ee234f",class:"col-3"},this.formDisabled?s("bank-account-read-only-value",{label:"Transit Number",value:(null===(n=this.defaultValue)||void 0===n?void 0:n.transit_number)||""}):s("form-control-text",{name:"transit_number",label:"Transit Number",defaultValue:this.defaultValue.transit_number,maxLength:5,errorText:this.errors.transit_number,inputHandler:this.inputHandler,keyDownHandler:st,helpText:"5 digits"})),s("div",{key:"c91166337c2984048466014634f5d4e59ce2b40a",class:"col-3"},this.formDisabled?s("bank-account-read-only-value",{label:"Institution Number",value:(null===(r=this.defaultValue)||void 0===r?void 0:r.institution_number)||""}):s("form-control-text",{name:"institution_number",label:"Institution Number",defaultValue:this.defaultValue.institution_number,maxLength:3,errorText:this.errors.institution_number,inputHandler:this.inputHandler,keyDownHandler:st,helpText:"3 digits"})),s("div",{key:"ebce2f50ec265ed2fef7a0b3dae84d33036ad145",class:"col-6"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Number",value:(null===(o=this.defaultValue)||void 0===o?void 0:o.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):s("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:st,helpText:"Please copy the account number as shown on your statement. Do not include spaces or dashes."})))}},At=(t,e)=>t.some((t=>t.document_type===e)),Et=t=>t?{bank_name:ot.nullable(),nickname:rt.nullable(),account_owner_name:nt.nullable(),account_type:at.nullable(),account_number:it.nullable()}:{bank_name:ot.required("Enter bank name"),nickname:rt.required("Enter nickname"),account_owner_name:nt.required("Enter account owner name"),account_type:at.required("Select account type"),account_number:it.required("Enter account number")},It=(t,e)=>{if(e)return{voided_check:A().nullable(),bank_statement:A().nullable()};const s=At(t,r.voidedCheck),i=At(t,r.bankStatement),a=s||i,n="Please upload either a voided check or a bank statement. Only one is required.";return{voided_check:A().when("bank_statement",{is:t=>!t&&!a,then:t=>t.required(n),otherwise:t=>t.notRequired()}),bank_statement:A().when("voided_check",{is:t=>!t&&!a,then:t=>t.required(n),otherwise:t=>t.notRequired()})}},St={[S.USA]:(t,e=[])=>((t,e)=>{const s=Object.assign(Object.assign(Object.assign({},Et(e)),(t=>t?{routing_number:lt.nullable()}:{routing_number:lt.required("Enter routing number")})(e)),It(t,e));return j().shape(s,[["voided_check","bank_statement"]])})(e,t),[S.CAN]:(t,e=[])=>((t,e)=>{const s=Object.assign(Object.assign(Object.assign({},Et(e)),(t=>{const e=O().length(3,"Institution number must be 3 digits").matches(ht,"Enter valid institution number"),s=O().length(5,"Transit number must be 5 digits").matches(ht,"Enter valid transit number");return t?{institution_number:e.nullable(),transit_number:s.nullable()}:{institution_number:e.required("Enter institution number"),transit_number:s.required("Enter transit number")}})(e)),It(t,e));return j().shape(s,[["voided_check","bank_statement"]])})(e,t)},Ht=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.formLoading=e(this,"formLoading",7),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new o,this.isLoading=!1,this.viewMode="manual",this.bankAccountVerification=!1,this.platformAccountId=null,this.getSchema=()=>(0,St[this.country])(this.allowOptionalFields,this.existingDocuments),this.initializeFormController=()=>{this.formController=new C(this.getSchema()),this.formController.setInitialValues("readonly"===this.viewMode?Object.assign({},this.bankAccount):{business_id:this.businessId}),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))},this.storeFiles=t=>{const e=Array.from(t.detail.fileList),s=t.detail.document_type,i=e.map((t=>new h({file:t,document_type:s},this.businessId)));this.documentData[s]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.processBusinessResponse(t.data),this.determineViewMode()},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.handleChangeBankAccount=()=>{this.viewMode=this.plaidAvailable?"plaid":"manual",this.documentData=new o,this.initializeFormController()},this.handleCancel=()=>{this.viewMode=this.existingBankAccount?"readonly":"plaid",this.documentData=new o,this.initializeFormController()},this.handleToggleToManualEntry=()=>{this.viewMode="manual"},this.handleToggleToPlaidVerification=()=>{this.viewMode="plaid"},this.handleSaveBankAccount=async()=>{this.formController.validateAndSubmit((()=>{this.sendData((()=>{}))}))},this.postDocumentRecordData=async t=>{this.isLoading=!0;const e=t.record_data;return new Promise((s=>{this.postDocumentRecord({payload:e,onSuccess:e=>{s(this.handleDocRecordResponse(t,e))},onError:({error:t,code:e,severity:i})=>{this.errorEvent.emit({message:t,errorCode:e,severity:i}),s(!1)}})}))},this.handleDocRecordResponse=(t,e)=>e.error?(this.errorEvent.emit({errorCode:n.POST_ERROR,message:e.error.message,severity:a.ERROR,data:e.error}),!1):(t.setPresignedUrl(e.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const e=await t.getFileData(),s=await fetch(t.presigned_url,{method:"PUT",body:e});return this.handleUploadResponse(s)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:n.POST_ERROR,message:t.error.message,severity:a.ERROR,data:t.error}),!1)}propChanged(){this.initializeApi()}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){"readonly"===this.viewMode?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.initializeApi(),this.getBusiness&&this.getData(),this.formController=new C(this.getSchema())}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.postBankAccount=b({authToken:this.authToken,service:new k}),this.postDocumentRecord=p({authToken:this.authToken,service:new w})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}get postPayload(){const t=this.formController.values.getValue();return new Tt(t).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}get plaidAvailable(){return this.bankAccountVerification&&!!this.platformAccountId}get showCancel(){return this.bankAccountVerification||this.existingBankAccount}processBusinessResponse(t){const{bank_accounts:e,documents:s,settings:i,platform_account_id:a}=t;e.length>0?this.bankAccount=new Tt(e[e.length-1]):(this.bankAccount=new Tt({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=s,this.bankAccountVerification=!0===i.bank_account_verification,this.platformAccountId=a}determineViewMode(){this.viewMode=this.existingBankAccount?"readonly":this.plaidAvailable?"plaid":"manual"}async sendData(t){try{if("manual"===this.viewMode&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;"manual"===this.viewMode&&(this.viewMode="readonly",await this.refreshBankAccountData()),t()}catch(t){this.errorEvent.emit({message:t,errorCode:n.POST_ERROR,severity:a.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((e=>{let s=!1;this.postBankAccount({payload:this.postPayload,onSuccess:e=>{t=e,s=!0},onError:({error:t,code:e,severity:i})=>{s=!1,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:tt.bankAccount}),this.isLoading=!1,e(s)}})}))}async refreshBankAccountData(){return new Promise((t=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.processBusinessResponse(t.data),this.determineViewMode(),this.initializeFormController()},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.isLoading=!1,t()}})}))}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}}renderBankAccountInputs(t){const e=this.formController.getInitialValues();return s(this.country===S.CAN?"bank-account-form-inputs-canada":"bank-account-form-inputs",{defaultValue:e,errors:this.errors,inputHandler:this.inputHandler,formDisabled:t})}renderReadonlyView(){return s("div",null,this.renderBankAccountInputs(!0),s("div",{class:"mt-3"},s(ct,{variant:"secondary",type:"button",onClick:this.handleChangeBankAccount,disabled:this.isLoading,part:R},"Change Bank Account")))}renderPlaidView(){return s("div",{class:"mt-3"},s("plaid-verification",{authToken:this.authToken,accountId:this.platformAccountId,businessId:this.businessId,onPlaidVerificationSuccess:()=>{this.viewMode="readonly",this.refreshBankAccountData()}}),s("div",{class:"mt-3"},s(ct,{type:"button",variant:"link",className:"p-0",onClick:this.handleToggleToManualEntry,disabled:this.isLoading,part:F},"Enter bank details manually (document upload required)")))}renderManualEntryView(){return s("div",null,this.plaidAvailable&&s("div",{class:"mb-3"},s(ct,{type:"button",variant:"secondary",onClick:this.handleToggleToPlaidVerification,disabled:this.isLoading,part:R},"Link bank account with Plaid instead")),this.renderBankAccountInputs(!1),s("div",{class:"mt-3 d-flex gap-2"},this.showCancel&&s(ct,{variant:"secondary",type:"button",onClick:this.handleCancel,disabled:this.isLoading,part:R},"Cancel"),s(ct,{variant:"primary",type:"button",onClick:this.handleSaveBankAccount,disabled:this.isLoading,isLoading:this.isLoading},"Save Bank Account")))}renderDocumentUploads(){return s("fieldset",{class:"mt-4"},s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:M},"Document Uploads"),s("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."})),s("hr",{class:"mt-2"}),s("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),s("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles}))}render(){return this.isLoading?s(X,null):s("form",null,s("fieldset",{class:"mb-4"},s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:M},"Bank Account Info"),s("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."})),s("hr",{class:"mt-2"}),"readonly"===this.viewMode&&this.renderReadonlyView(),"plaid"===this.viewMode&&this.renderPlaidView(),"manual"===this.viewMode&&this.renderManualEntryView()),"plaid"!==this.viewMode&&this.renderDocumentUploads())}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],isLoading:["watchHandler"]}}},Dt=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.formLoading=e(this,"formLoading",7),this.errors={},this.coreInfo={},this.isLoading=!1,this.isEditingTaxId=!1,this.getData=()=>{this.getBusiness&&(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:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let e;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:s=>{e=s,t(),this.isEditingTaxId=!1},onError:({error:t,code:s,severity:i,rawError:a})=>{e=t,a&&"object"==typeof a&&a.param&&this.formController.setFieldError(a.param,a.message),this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:e,formStep:tt.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,e)=>{this.errors[t]&&this.formController.clearFieldError(t),this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new H(this.formController.values.getValue()).payload}componentWillLoad(){this.initializeApi();const t=this.country===S.CAN?T(this.allowOptionalFields):L(this.allowOptionalFields);this.formController=new C(t),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.patchBusiness=m({authToken:this.authToken,businessId:this.businessId,service:new g})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}render(){var t,e;const i=this.formController.getInitialValues();return this.isLoading?s(X,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:M},"Business Information")),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:i.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)."})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:i.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)"})),s("div",{class:"col-12 col-md-8"},s("form-control-select",{name:"classification",label:"Business Classification",options:K,defaultValue:i.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-4"},s("form-control-date",{name:"date_of_incorporation",label:"Date of Registration",defaultValue:i.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"industry",label:"Industry",defaultValue:i.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),s("div",{class:"col-12 col-md-6"},!(null===(t=this.coreInfo)||void 0===t?void 0:t.tax_id_last4)||this.isEditingTaxId?s("form-control-number-masked",{name:"tax_id",label:dt[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:"000000000",helpText:dt[this.country].taxIdHelpText}):s("div",null,s("label",{class:"form-label",part:q},dt[this.country].taxIdLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:W,value:`****${null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4}`,disabled:!0}),s("button",{class:"btn btn-secondary",type:"button",part:R,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:"",tax_id_last4:null}))}},"Change")))),s("div",{class:"col-12"},s("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:i.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."})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"email",label:"Business Email Address",defaultValue:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-6"},s("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:P.US})))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},Vt=class{constructor(e){t(this,e),this.documents=[],this.isLoading=!1}render(){return this.isLoading?s(pt,{height:"50px"}):this.documents.length?s(i,null,s("div",{class:"card",part:z},s("div",{class:"card-body"},s("h5",{class:"card-title",part:M},"Documents Already on File"),s("div",{class:"table-responsive"},s("table",{class:"table table-sm table-borderless",part:U},s("thead",null,s("tr",null,s("th",{style:{width:"25%"},part:Y,scope:"col"},"File Name"),s("th",{style:{width:"25%"},part:Y,scope:"col"},"File Type"),s("th",{style:{width:"25%"},part:Y,scope:"col"},"Document Type"),s("th",{style:{width:"25%"},part:Y,scope:"col"},"Date Uploaded"))),s("tbody",null,this.documents.sort(((t,e)=>t.document_type.localeCompare(e.document_type))).map(((t,e)=>s("tr",{class:0===e?"border-bottom border-top":"border-bottom"},s("td",{part:Z},t.file_name),s("td",{part:Z},t.file_type),s("td",{part:Z},ut(t.document_type)),s("td",{part:Z},`${mt(t.created_at)} - ${bt(t.created_at)}`))))))))),s("hr",null)):null}},Bt=class{constructor(s){t(this,s),this.clickEvent=e(this,"click-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.errorEvent=e(this,"error-event",7),this.formLoading=e(this,"formLoading",7),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.representativeIsOwner=null,this.matchRef=(t,e)=>{if(null===t)return;const s=this.ownersPayload.findIndex((t=>t.id===e));-1!==s&&(this.refs.length!==this.ownersPayload.length&&this.manageRefs(),this.refs[s]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new D(t.data.representative||{}),t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let e;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:s=>{e=s,t()},onError:({error:t,code:s,severity:i})=>{e=t,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:e,formStep:tt.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:et.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((e=>e.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)},this.handleRepresentativeIsOwnerChange=t=>{this.representativeIsOwner=t,this.representativeIsOwner&&(this.formLoading.emit(!0),this.isLoading=!0,this.ownersPayload=this.ownersPayload.filter((t=>""!==t.id)),this.patchBusiness({payload:{owners:[{id:this.representative.id},...this.ownersPayload]},onSuccess:()=>{this.getData(),this.newFormOpen=!1},finally:()=>{this.isLoading=!1,this.formLoading.emit(!1)}}))}}propChanged(){this.initializeApi()}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const e=this.refs.map((t=>t.validate()));if(!(await Promise.all(e)).every((t=>t)))return;const s=this.refs.map((t=>t.submit()));(await Promise.all(s)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.initializeApi(),this.getBusiness&&this.getData()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.patchBusiness=m({authToken:this.authToken,businessId:this.businessId,service:new g})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const e=t.detail,s=this.ownersPayload.map((t=>t.id===e.id?e:t));s.includes(e)||(s[this.ownersPayload.findIndex((t=>!t.id))]=e,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=s}render(){if(this.isLoading)return s(i,null,s(X,null));const t=this.ownersPayload.some((t=>t.id===this.representative.id)),e=null===this.representativeIsOwner&&!t;return s(i,null,s("div",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:M},"Owners"),s("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."})),s("hr",{class:"mt-2"}),e&&s("div",{class:"alert alert-warning mb-3",part:G},s("div",{class:"card-body"},s("div",{class:"d-flex align-items-center mb-3"},s("strong",null,"Is the representative of this business also an owner?")),s("div",{class:"d-flex gap-2"},s(ct,{variant:"primary",onClick:()=>this.handleRepresentativeIsOwnerChange(!0)},"Yes"),s(ct,{variant:"secondary",onClick:()=>this.handleRepresentativeIsOwnerChange(!1)},"No")))),s("div",{class:"row gy-3"},this.ownersPayload.map((t=>s("owner-form",{key:t.id,authToken:this.authToken,businessId:this.businessId,ownerId:t.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,country:this.country,allowOptionalFields:this.allowOptionalFields,ref:e=>this.matchRef(e,t.id)})))),s("div",{class:"d-flex justify-content-start"},s("div",{class:"gap-2"},s(ct,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner")))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],ownersPayload:["ownersWatcher"]}}},Pt=class{constructor(e){t(this,e),this.isEditingIdentification=!1,this.inputHandler=(t,e)=>{ft(this.formController,{[t]:e})},this.onAddressFormUpdate=t=>{vt(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),t))}}render(){var t,e,i,a,n,r,o,h,l;return s("form",{key:"ef49167cc726b3d4efa128503553a77a7627ebee"},s("fieldset",{key:"3714ce7eab6e9cee062911564d1c2635b68dfc8b"},s("div",{key:"4f27236b0438e29d7449bf5e9f71c00c7245effa",class:"d-flex align-items-center gap-2"},s("legend",{key:"adc144da314549264571b245c5388ab56c1dbbf1",class:"mb-0",part:M},"Representative"),s("form-control-tooltip",{key:"bcc76add04febe984427103a594aa63cab17bd27",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."})),s("hr",{key:"98bfed19989ee57e451a7005f3e60af16cc5d3b5",class:"mt-2"}),s("div",{key:"8f5e0e3deed2627ecf9f77290f268c0e2ee68bfa",class:"row gy-3"},s("div",{key:"b1205284a54a608b9c3b6be386e134849c9c6b25",class:"col-12 col-md-8"},s("form-control-text",{key:"36fcd91ca263adfd9fb69dc88f15404f93a8bc13",name:"name",label:"Full Name",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"879337d3c6a120f5dc9de3cd3364b34b9c4689df",class:"col-12 col-md-4"},s("form-control-text",{key:"ff2e4d29e76b93693735b35cbaca4416f0cd28a0",name:"title",label:"Title",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"2a011b74b4c203ae4a309d7d76ea8fd0631a5f2c",class:"col-12 col-md-6"},s("form-control-text",{key:"1ef20c59829ed3abe81cc53355bbafd5d4894360",name:"email",label:"Email Address",defaultValue:null===(i=this.representativeDefaultValue)||void 0===i?void 0:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"460dad175238fdfea8c79666343943a95aac0fd5",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"7bd3ad79f6da1d33e38c2246d9c0378c2ef8b7d7",name:"phone",label:"Phone Number",defaultValue:null===(a=this.representativeDefaultValue)||void 0===a?void 0:a.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:P.US})),s("div",{key:"cda84bfc9f88a35177a42b7f9ec4c58292600c0b",class:"col-12 col-md-4"},s("form-control-date",{key:"5ed66fabc97afc94a5839135add25dbcb5237900",name:"dob_full",label:"Birth Date",defaultValue:null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:t=>yt(t,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"0e19619fd081ea9dacd0eb25388a4c7b2c993312",class:"col-12 col-md-8"},!(null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.ssn_last4)||this.isEditingIdentification?s("form-control-number-masked",{name:"identification_number",label:dt[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":null===(o=this.representativeDefaultValue)||void 0===o?void 0:o.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:N[this.country],helpText:dt[this.country].identityHelpText}):s("div",null,s("label",{class:"form-label",part:q},dt[this.country].idNumberLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:W,value:`****${null===(h=this.representativeDefaultValue)||void 0===h?void 0:h.ssn_last4}`,disabled:!0}),s("button",{class:"btn btn-secondary",type:"button",part:R,onClick:()=>{this.isEditingIdentification=!0,ft(this.formController,{identification_number:"",ssn_last4:null})}},"Change")))),s("div",{key:"6647390b209f5a630bf60e8952a7b0e70c92ca8a",class:"col-12"},s("identity-address-form",{key:"9755d0450fc8d83ba0a98a304455df346ff33e7f",errors:this.errors.address,defaultValues:null===(l=this.representativeDefaultValue)||void 0===l?void 0:l.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}},Nt=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.formLoading=e(this,"formLoading",7),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&this.formController&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new D(t.data.representative||{}),this.representative.address.country=this.country,this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let e;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:s=>{e=s,t()},onError:({error:t,code:s,severity:i})=>{e=t,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:e,formStep:tt.representative}),this.formLoading.emit(!1)}})}}propChanged(){this.initializeApi(),this.getData()}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.initializeApi(),this.initializeForm()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.patchBusiness=m({authToken:this.authToken,businessId:this.businessId,service:new g})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}initializeForm(){const t=gt[this.country];t?(this.formController=new C(t("representative",this.allowOptionalFields)),this.getData()):this.errorEvent.emit({message:"Missing schema for selected country",errorCode:n.MISSING_PROPS,severity:a.ERROR})}componentDidLoad(){this.formController&&this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get patchPayload(){return{representative:new D(this.formController.values.getValue()).payload}}render(){return!this.formController||this.isLoading?s(X,null):s("business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController,country:this.country})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},Mt=class{constructor(s){t(this,s),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.errorEvent=e(this,"error-event",7),this.formLoading=e(this,"formLoading",7),this.formCompleted=e(this,"formCompleted",7),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const t=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=t.data.terms_conditions_accepted}catch(t){this.errorEvent.emit({errorCode:n.FETCH_ERROR,message:t.message,severity:a.ERROR,data:t})}finally{this.formLoading.emit(!1)}},this.sendData=async t=>{this.formLoading.emit(!0);try{const e=this.termsPayload,s=await this.api.post({endpoint:this.termsConditionsEndpoint,body:e,authToken:this.authToken});this.handleResponse(s,t)}catch(t){this.errorEvent.emit({errorCode:n.POST_ERROR,message:t.message,severity:a.ERROR,data:t})}finally{this.formLoading.emit(!1)}},this.inputHandler=(t,e)=>{this.acceptedTerms=e,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]: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=wt(),this.formController=new C((t=>{const e=j({accepted:E().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),s=j({accepted:E().nullable()});return t?s:e})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(t,e){t.error?this.errorEvent.emit({errorCode:n.POST_ERROR,message:t.error.message,severity:a.ERROR,data:t.error}):e(),this.stepCompleteEvent.emit({response:t,formStep:tt.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:t}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:tt.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),t()):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get merchantAgreementLink(){return s("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return s("form",{key:"24b0a8ff0187894cf5e0f56e9e4b28c378e720cb"},s("fieldset",{key:"26fa9159dd6d61edd28b9443a10eeb981f150308"},s("legend",{key:"103bdecbc51f2cccd9105e2f9b271b60760618ec",part:M},"Terms and Conditions"),s("hr",{key:"dfd29fbe609a57d8160df7980ed0e63e75934a86"}),s("div",{key:"61e06597ec652c1d7c6e7e2bd8c9b653d061d076"},s("p",{key:"cd4def71580cd14d6edb5887221ebf6aa80cc2ea"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),s("br",{key:"e3c64733f11a4f702e686e6c5ae7acd7e6bd1c34"}),s("div",{key:"71bd74de3aee69805a2aa1297356ff8b8db3c76c",class:"row-gy-3"},s("div",{key:"94a28c13e3bbc1c89cd1b5ebde2e1732b48f99ea",class:"col-12"},s("form-control-checkbox",{key:"fee95fa42192fee1bbfd544307b4e1c11c0d97f4",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})))))}},Rt=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.formLoading=e(this,"formLoading",7),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{const e=new V((t.data||{}).legal_address||{});this.legal_address=Object.assign(Object.assign({},e),{country:this.country}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let e;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:s=>{e=s,t()},onError:({error:t,code:s,severity:i})=>{e=t,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:e,formStep:tt.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new V(this.formController.values.getValue()).payload}}componentWillLoad(){this.initializeApi(),this.formController=new C((0,kt[this.country])(this.allowOptionalFields)),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.patchBusiness=m({authToken:this.authToken,businessId:this.businessId,service:new g})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}render(){var t;const e=null===(t=this.formController)||void 0===t?void 0:t.getInitialValues();return this.isLoading?s(X,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:M},"Legal Address of your Business"),s("form-control-tooltip",{helpText:"No PO Boxes."})),s("hr",{class:"mt-2"}),s("form-address-fields",{country:this.country,errors:this.errors,defaultValues:e,inputHandler:this.inputHandler})))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},Ft=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7)}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:t}){this.coreComponent.validateAndSubmit({onSuccess:t})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=f({authToken:this.authToken,identityId:this.ownerId,service:new _}),this.patchOwner=v({authToken:this.authToken,identityId:this.ownerId,service:new _}),this.postOwner=y({authToken:this.authToken,service:new _}))}render(){return s("owner-form-core",{key:"598c7413dbae853f432e64ac549025442083fbb9",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,country:this.country,ref:t=>this.coreComponent=t})}},qt=class{constructor(s){t(this,s),this.plaidVerificationSuccess=e(this,"plaidVerificationSuccess",7),this.plaidVerificationError=e(this,"plaidVerificationError",7),this.linkToken=null,this.linkTokenId=null,this.plaidLink=null,this.isAuthenticating=!1,this.isSuccess=!1,this.error=null,this.isLoading=!1,this.plaidService=new xt,this.abortController=null,this.timeoutId=null,this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:d.PLAID_SDK_LOAD_FAILED,message:c[d.PLAID_SDK_LOAD_FAILED],severity:l[d.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:d.PLAID_LINK_TOKEN_FAILED,message:c[d.PLAID_LINK_TOKEN_FAILED],severity:l[d.PLAID_LINK_TOKEN_FAILED],retryable:!0,userAction:"Click to try again"});const t=window.Plaid;this.plaidLink=t.create({token:this.linkToken,onSuccess:this.handlePlaidSuccess,onExit:this.handlePlaidExit,onEvent:this.handlePlaidEvent,onLoad:this.handlePlaidLoad})}catch(t){this.handleError({code:d.PLAID_LINK_INIT_FAILED,message:c[d.PLAID_LINK_INIT_FAILED],severity:l[d.PLAID_LINK_INIT_FAILED],originalError:t,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var t,e,s,i;try{if(!this.authToken||!this.accountId)return void this.handleError({code:d.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please provide authToken and accountId.",severity:a.ERROR,retryable:!1,userAction:"Provide required props"});this.abortController=new AbortController,this.timeoutId=setTimeout((()=>{var t;null===(t=this.abortController)||void 0===t||t.abort()}),3e4);const t=await this.plaidService.getLinkTokenForVerification(this.authToken,this.businessId,this.abortController.signal);if(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),t.error)throw new Error("string"==typeof t.error?t.error:t.error.message||"Failed to get link token");this.linkToken=t.data.link_token,this.linkTokenId=t.data.id}catch(a){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let n=d.PLAID_LINK_TOKEN_FAILED,r=c[n],o=!0;"AbortError"===a.name?(n=d.PLAID_TIMEOUT,r=c[n],o=!0):(null===(t=a.message)||void 0===t?void 0:t.includes("network"))||(null===(e=a.message)||void 0===e?void 0:e.includes("fetch"))?(n=d.PLAID_NETWORK_ERROR,r=c[n],o=!0):((null===(s=a.message)||void 0===s?void 0:s.includes("401"))||(null===(i=a.message)||void 0===i?void 0:i.includes("unauthorized")))&&(n=d.PLAID_INVALID_CREDENTIALS,r="Authentication failed. Please check your credentials.",o=!1),this.handleError({code:n,message:r,severity:l[n],originalError:a,retryable:o,userAction:o?"Click to try again":"Check your credentials"})}},this.openPlaidLink=()=>{this.plaidLink&&this.linkToken&&(this.isAuthenticating=!0,this.clearError(),this.plaidLink.open())},this.handlePlaidSuccess=async t=>{var e;this.isAuthenticating=!1,this.isLoading=!0,this.clearError();try{const s=await this.plaidService.postPlaidVerifiedBankAccountData(this.authToken,this.businessId,{public_token:t,link_token_id:this.linkTokenId},null===(e=this.abortController)||void 0===e?void 0:e.signal);if(s.error)throw new Error("string"==typeof s.error?s.error:s.error.message||"Failed to verify bank account");this.isSuccess=!0,this.isLoading=!1,this.plaidVerificationSuccess.emit({publicToken:t,bankAccount:s.data})}catch(t){this.isLoading=!1,this.handleError({code:d.PLAID_AUTHENTICATION_FAILED,message:(null==t?void 0:t.message)||"Failed to verify bank account",severity:l[d.PLAID_AUTHENTICATION_FAILED],originalError:t,retryable:!0,userAction:"Click to try again"})}},this.handlePlaidExit=t=>{this.isAuthenticating=!1,t&&this.handlePlaidError(t)},this.handlePlaidEvent=(t,e)=>{switch(t){case"OPEN":this.isAuthenticating=!0;break;case"CLOSE":this.isAuthenticating=!1;break;case"ERROR":this.handlePlaidError(e)}},this.handlePlaidLoad=()=>{},this.handlePlaidError=t=>{let e=d.PLAID_AUTHENTICATION_FAILED,s=c[e],i=!0,a="Click to try again";if(t.error_code)switch(t.error_code){case"INVALID_CREDENTIALS":e=d.PLAID_INVALID_CREDENTIALS,s=c[e],i=!0;break;case"ITEM_LOGIN_REQUIRED":e=d.PLAID_INVALID_CREDENTIALS,s="Your bank requires re-authentication. Please try again.",i=!0;break;case"ITEM_LOCKED":e=d.PLAID_ACCOUNT_LOCKED,s=c[e],i=!1,a="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":e=d.PLAID_MAINTENANCE,s=c[e],i=!0;break;case"RATE_LIMIT_EXCEEDED":e=d.PLAID_RATE_LIMITED,s=c[e],i=!0;break;default:t.error_message&&(s=t.error_message)}this.handleError({code:e,message:s,severity:l[e],originalError:t,retryable:i,userAction:a}),this.isAuthenticating=!1},this.handleError=t=>{this.error=t,this.isLoading=!1,this.plaidVerificationError.emit(t),console.error("Plaid verification error:",t)},this.clearError=()=>{this.error&&(this.error=null)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.initializePlaidLink()},this.scriptRef.onerror=()=>{this.handleError({code:d.PLAID_SDK_LOAD_FAILED,message:c[d.PLAID_SDK_LOAD_FAILED],severity:l[d.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})})}disconnectedCallback(){this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){const t=s("svg",{class:"plaid-logo-img",height:"20",width:"20",viewBox:"0 0 28 29",xmlns:"http://www.w3.org/2000/svg",style:{display:"inline",marginLeft:"5px",marginRight:"5px",marginTop:"-2px"}},s("g",{fill:"#fff","fill-rule":"evenodd"},s("path",{d:"M25.7629 26.2628L28 17.5309L24.9691 14.5001L27.9999 11.4691L25.7628 2.73706L17.0309 0.5L14.0001 3.531L10.969 0.50014L2.23706 2.73734L0 11.4691L3.03128 14.4999L0.00014 17.531L2.2372 26.2629L10.9691 28.5L14.0001 25.469L17.031 28.4999L25.7629 26.2628ZM15.7321 23.7371L18.6186 20.8505L22.2912 24.5233L17.6956 25.7007L15.7321 23.7371ZM11.1136 9.88154L14.0003 6.99502L16.8868 9.8814L14.0001 12.7679L11.1136 9.88154ZM12.2682 14.5L9.38154 17.3865L6.49502 14.5L9.38154 11.6135L12.2682 14.5ZM18.6187 11.6133L21.5053 14.5L18.6186 17.3865L15.7321 14.5L18.6187 11.6133ZM16.8867 19.1186L14.0001 22.0051L11.1135 19.1185L14.0001 16.2319L16.8867 19.1186ZM10.3044 25.7007L5.70864 24.5233L9.38154 20.8504L12.2682 23.7371L10.3044 25.7007ZM4.76308 16.2319L7.6496 19.1185L3.9767 22.7914L2.7993 18.1957L4.76308 16.2319ZM3.9767 6.20836L7.64974 9.8814L4.76308 12.7681L2.7993 10.8041L3.9767 6.20836ZM12.2683 5.26294L9.38168 8.1496L5.70892 4.4767L10.3047 3.2993L12.2683 5.26294ZM17.6959 3.2993L22.2915 4.4767L18.6186 8.14946L15.7321 5.26294L17.6959 3.2993ZM23.2372 12.7681L20.3505 9.8814L24.0233 6.20878L25.2007 10.8046L23.2372 12.7681ZM24.0233 22.7914L20.3505 19.1186L23.2372 16.2321L25.2007 18.1957L24.0233 22.7914Z"})));return s(_t,null,s("script",{src:"https://cdn.plaid.com/link/v2/stable/link-initialize.js",async:!0,ref:t=>this.scriptRef=t}),s("div",null,s("div",{class:"mb-3"},s(ct,{variant:"primary",type:"button",onClick:t=>{t.preventDefault(),this.openPlaidLink()},disabled:this.isLoading,part:$},"Connect with Plaid ",t," (instant verification)")),(()=>this.error?s("div",{class:(this.error.severity===a.ERROR?"text-danger":this.error.severity===a.WARNING?"text-warning":"text-info")+" mt-2"},s("small",null,this.error.message),s("br",null),this.error.userAction&&s("small",{class:"text-muted"},this.error.userAction)):null)(),(()=>this.error?null:this.isLoading?s("div",{class:"text-info mt-2"},s("small",null,"Verifying bank account...")):this.isSuccess?s("div",{class:"text-success mt-2"},s("small",null,"✓ Bank account verified successfully")):this.isAuthenticating?s("div",{class:"text-info mt-2"},s("small",null,"Connecting to your bank...")):null)()))}};export{Lt as additional_questions_form_step,Ct as bank_account_document_form_inputs,jt as bank_account_form_inputs,Ot as bank_account_form_inputs_canada,Ht as business_bank_account_form_step,Dt as business_core_info_form_step,Vt as business_documents_on_file,Bt as business_owners_form_step,Pt as business_representative_form_inputs,Nt as business_representative_form_step,Mt as business_terms_conditions_form_step,Rt as legal_address_form_step,Ft as owner_form,qt as plaid_verification}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as s,H as i,g as a}from"./p-CV0Pyo1O.js";import{a7 as r,v as o,q as d,w as h,x as c,A as n,u as l,a0 as f}from"./p-DnrawQn3.js";import{F as b}from"./p-uCg79W3M.js";import{F as m}from"./p-BsQy297i.js";import"./p-CZfYo5-1.js";import{F as u}from"./p-CKiAlBsU.js";import{O as p}from"./p-BcNb9bVO.js";import{d as y}from"./p-D8EGHc_m.js";import{B as k}from"./p-2LVpxCS_.js";import{B as v}from"./p-XYgDHrVL.js";import{I as g,P as w}from"./p-CVaOFfrI.js";import{u as j,a as x,b as C}from"./p-C6o0liMT.js";import{c as T}from"./p-_-2E_vYf.js";import"./p-BFTU3MAI.js";import"./p-HT_4DkD0.js";import"./p-Bt4GjEWL.js";const V=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.isFocused=!1,this.disabled=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit({name:s,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("input");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.isFocused?o:this.errorText?d:h}render(){return s(i,{key:"d2463dd8a7f976628a67b94401e833ed1c53d777"},s("div",{key:"2b77b2fa81d256a4fa52c85efce570cac62a4e31",class:"form-group d-flex flex-column"},s("label",{key:"baf3c9be24dd987907c234dd53e886ac6e3fc459",part:c,class:"form-label",htmlFor:this.name},this.label),s("input",{key:"9f456e006e074480dda19fa6433f19beb35e35bc",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),s(b,{key:"82100020ced402e13591f6624e45f5f85aa6980f",helpText:this.helpText,name:this.name}),s(m,{key:"d41b38f4908ada125ff2344d23c837780ae057ba",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},_=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){t(this,s),this.clickEvent=e(this,"click-event",7),this.errorEvent=e(this,"error-event",7),this.formLoading=e(this,"formLoading",7),this.ownerSubmitted=e(this,"ownerSubmitted",7),this.isLoading=!1,this.errors={},this.owner={},this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:t=>{this.instantiateOwner(t.data)},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((t=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:e=>{this.ownerSubmitted.emit({id:e.data.id}),this.instantiateOwner(e.data),t(!0)},onError:({error:e,code:s,severity:i})=>{this.errorEvent.emit({message:e,errorCode:s,severity:i}),t(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:e=>{this.ownerSubmitted.emit({id:e.data.id}),this.instantiateOwner(e.data),t(!0)},onError:({error:e,code:s,severity:i})=>{this.errorEvent.emit({message:e,errorCode:s,severity:i}),t(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async t=>{this.owner=Object.assign({},new p(t)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?v.updateOwner:v.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:v.removeOwner})},this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(t){t.preventDefault(),await this.validate()&&this.submit()}get payload(){let t=new p(this.formController.values.getValue()).payload;return this.ownerId?t:Object.assign(Object.assign({},t),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new u((0,y[this.country])("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((t=>this.errors=Object.assign({},t)))}render(){return s("form",{key:"63cf9c7ab9031786f17ea4f3787deea081e305d3",onSubmit:this.validateAndSubmit},s("fieldset",{key:"cef59454c61515f702e846d43242f1576e604953"},s("legend",{key:"355974c342272cd90c6596129a83866f8ad20e37",class:"fw-semibold fs-5",part:n},this.formTitle),s("br",{key:"c78a4742ca2fa7bea462d4c7b1d3e73ccb8cccb9"}),s("div",{key:"ec96fba914ce8eea8223efab633873c79741e29b",class:"row gy-3"},s("owner-form-inputs",{key:"8b1b9118ac93457b38237387d478b3d084fad07d",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController,country:this.country}),s("div",{key:"b599ded9cecb9999e3c8b3310f0c70fd07c64690",class:"d-flex gap-2 justify-content-start"},s(k,{key:"54bcdf883415ada89b81b4826cfea23061d4fc60",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(k,{key:"eb990b891fe82108eae8c80da39e5ada7ef27f1e",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"7000dfde686b1879776ab63dcb6a203c0eb519c1"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},O=class{constructor(e){t(this,e),this.isEditingIdentification=!1,this.inputHandler=(t,e)=>{j(this.formController,{[t]:e})},this.onAddressFormUpdate=t=>{x(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),t))}}render(){var t,e,i;return s("div",{key:"212e1849ea4415835cb4f792cf5799b606ccd170",class:"row gy-3"},s("div",{key:"bc904468596d8a2b6cf82f9cca153d1db7fd9be3",class:"col-12 col-md-8"},s("form-control-text",{key:"116f4a8124743a3bdd01489f7ac4964852d2f701",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"d1de51aa5d3760553012ddc586dc6068c456463f",class:"col-12 col-md-4"},s("form-control-text",{key:"542bd69f56380823a8a2fcf0f95df56a4802e52a",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"f8230d52a4a685e358bf118d4f77849e8e23f58e",class:"col-12 col-md-6"},s("form-control-text",{key:"0d41fa107ba89a5a6a1dfe2b97d42a86feef3eb0",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"c403d5cf82cc89de42a31f3478e5cda3c2309dac",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"bc0e1c91619857bcac7776e686534763898bdd79",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:w.US})),s("div",{key:"43c3b72350a475defd393625a0d88e5720ab121c",class:"col-12 col-md-3"},s("form-control-date",{key:"4f1bd966e4a28fdcfc3539cb51b97e73bf7bf242",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:t=>C(t,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"963e110d0f208730944fe7637ba0a3a9ada66a38",class:"col-12 col-md-3"},s("form-control-number",{key:"182586a1b86d351cb5063c0ca0ee578959a93369",name:"ownership_percentage",label:"% of Ownership",defaultValue:null===(t=this.ownerDefaultValue)||void 0===t?void 0:t.ownership_percentage,errorText:this.errors.ownership_percentage,inputHandler:this.inputHandler})),s("div",{key:"bf966123cd887a09b81e9e599118ee03cadabfe2",class:"col-12 col-md-6"},!(null===(e=this.ownerDefaultValue)||void 0===e?void 0:e.ssn_last4)||this.isEditingIdentification?s("form-control-number-masked",{name:"identification_number",label:T[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:g[this.country],helpText:T[this.country].identityHelpText}):s("div",null,s("label",{class:"form-label",part:c},T[this.country].idNumberLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:l,value:`****${null===(i=this.ownerDefaultValue)||void 0===i?void 0:i.ssn_last4}`,disabled:!0}),s("button",{class:"btn btn-secondary",type:"button",part:f,onClick:()=>{this.isEditingIdentification=!0,j(this.formController,{ssn_last4:null,identification_number:""})}},"Change")))),s("div",{key:"da39a950fb0f4042d6047a88db4fb1cf7a7b9d07",class:"col-12"},s("identity-address-form",{key:"7ef03a0303d6f62098b5c38d669648bd4557437f",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))}};export{V as form_control_number,_ as owner_form_core,O as owner_form_inputs}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import{C as i,e as r}from"./p-CUI41_5y.js";import{J as o}from"./p-BnaR7f2G.js";import{c as n}from"./p-BJ7GFTiW.js";import{D as p}from"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-B5vVjDc_.js";import{D as c}from"./p-hhdRync5.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-BCgsLInF.js";import"./p-CYQvLgSs.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const m=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){n(),this.analytics=new o(this),this.initializeGetDispute()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:s,service:e})=>async({onSuccess:r,onError:o})=>{var n;try{const c=await e.fetchDispute(t,s);if(c.error)return o({error:h(c.error),code:a(null===(n=c.error)||void 0===n?void 0:n.code),severity:i.ERROR});{const t=Object.assign({},c.page_info);r({dispute:new p(c.data),pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:i.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new c}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:r.MISSING_PROPS,severity:i.ERROR}))}render(){return e("justifi-dispute-management-core",{key:"934ece663ee7323be1157e67c566424081245b0c",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_dispute_management}
@@ -0,0 +1 @@
1
+ import{r as s,h as t}from"./p-CV0Pyo1O.js";import{S as r}from"./p-BqNNwq6C.js";import{S as f}from"./p-DcBvJu0k.js";import"./p-DnrawQn3.js";const o=class{constructor(t){s(this,t)}render(){return t(r,{key:"d19fcf55df4b5b001d31af93c263fef39fc0d160"},t(f,{key:"9ab49d76aa71146287fff2013050e008342f0275",component:this.component,height:this.height,width:this.width,className:this.class,styles:this.customStyle}))}};export{o as justifi_skeleton}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as i}from"./p-CV0Pyo1O.js";import{K as h,L as a,M as r,N as c,O as o,x as n}from"./p-DnrawQn3.js";const f=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.isFocused=!1,this.inputHandler=()=>{},this.disabled=!1,this.errorText="",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?h:this.isFocused&&this.checked?a:this.checked?r:this.isFocused?c:o}render(){return e(i,{key:"8237875c1a682811ded25055266f441c6edc6776",class:"form-group d-flex flex-column"},e("div",{key:"310fe7054d414089f3a1e4c457c07e33cb2d55ff",class:"form-check"},e("input",{key:"5894a2e071758c9d647c25724a31b8a6f849353e",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}),e("label",{key:"148b64863e27ad053a2e284f3c17ab994beeca55",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:n},this.label)),e("form-control-help-text",{key:"d46e307063145956af0b181fa8f18ecc9ebbc518",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"06e5867c703104a9c2d136305a663179c5bcb0f6",errorText:this.errorText,name:this.name}))}};export{f as form_control_radio}
@@ -0,0 +1 @@
1
+ import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{c as r,F as e}from"./p-CKiAlBsU.js";import{b as o,a,c as n}from"./p-BovgIz83.js";import{i as h,a as p,b as l,c as m}from"./p-D8EGHc_m.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as c,e as d}from"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import{C as j,B as u,b as v}from"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{J as f}from"./p-BnaR7f2G.js";import{B as b}from"./p-2LVpxCS_.js";import{S as C}from"./p-BqNNwq6C.js";import{H as w}from"./p-XrKLre8M.js";import"./p-CZfYo5-1.js";import{c as g}from"./p-BJ7GFTiW.js";import{S as B}from"./p-DcBvJu0k.js";import{B as y}from"./p-XYgDHrVL.js";import{m as _,a as x}from"./p-CR_-qIuN.js";import{B as D}from"./p-CsdYMTrc.js";import"./p-BFTU3MAI.js";import"./p-HT_4DkD0.js";import"./p-_-2E_vYf.js";import"./p-Bt4GjEWL.js";import"./p-D8GTwl9v.js";import"./p-BRnBHsdq.js";import"./p-BCgsLInF.js";import"./p-CYQvLgSs.js";import"./p-DnrawQn3.js";import"./p-B5vVjDc_.js";const I=r(Object.assign(Object.assign({},o().fields),{legal_address:p(),additional_questions:a(),representative:h("representative")}));r(Object.assign(Object.assign({},n().fields),{legal_address:m(),additional_questions:a(),representative:l("representative")}));const L=I,O=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(B,{width:"25%"})),s("div",{class:"col-12"},s(B,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(B,{width:"50%"}),s(B,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(B,{width:"65%"}),s(B,{width:"35%"}))),S=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(B,{width:"40%",height:"40px"})),s(O,null),s(O,null),s(O,null)),k=class{constructor(s){t(this,s),this.submitEvent=i(this,"submit-event",7),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.isLoading=!1,this.isSaving=!1,this.country=j.USA,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const t=new u(s);this.country=t.country_of_establishment,this.formController.setInitialValues(Object.assign({},t))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),t=this.formController.getInitialValues(),i=new u(Object.assign(Object.assign({},t),s)).payload;this.patchBusiness({payload:i,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){g(),this.analytics=new f(this),this.formController=new e(L),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=_({authToken:this.authToken,businessId:this.businessId,service:new D}),this.patchBusiness=x({authToken:this.authToken,businessId:this.businessId,service:new D}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:d.MISSING_PROPS,severity:c.ERROR})}handleReponse(s){s.error&&(this.errorMessage=v.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(C,null,this.isLoading?s(S,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(w,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("business-core-info",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("legal-address-form",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("business-representative",{formController:this.formController,country:this.country})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(b,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:y.submit}),isLoading:this.isSaving},"Submit")))))}};export{k as justifi_business_form}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as e,H as i}from"./p-CV0Pyo1O.js";import{F as a,G as h,H as c,I as f,J as r,x as o}from"./p-DnrawQn3.js";import{F as d}from"./p-uCg79W3M.js";import{F as n}from"./p-BsQy297i.js";import"./p-CZfYo5-1.js";const m=class{constructor(e){s(this,e),this.formControlInput=t(this,"formControlInput",7),this.formControlBlur=t(this,"formControlBlur",7),this.isFocused=!1,this.errorText="",this.inputHandler=()=>{},this.disabled=!1,this.handleFormControlInput=s=>{s.preventDefault();const t=s.target,e=t.getAttribute("name");this.inputHandler(e,t.checked),this.formControlInput.emit({name:e,value:t.value})},this.updateInput=s=>{this.checkboxElement.checked=s}}get part(){return this.errorText?a:this.isFocused&&this.checked?h:this.isFocused?c:this.checked?f:r}render(){return e(i,{key:"7072570338fd856d7fdce26552356e0846cf31d8"},e("div",{key:"51fb25f7caf51efa949be809aa9fed415505eb69",class:"form-group d-flex flex-column"},e("div",{key:"ca8032c14a3aba7f801d1cc10f914c6b61a91335",class:"form-check"},e("input",{key:"e1ce9cff2d99fbe2e150bff005e2ecfde68d130e",ref:s=>this.checkboxElement=s,type:"checkbox",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),e("label",{key:"a4073f9981fe4984cf25a9cdb1e2bd33d98688f6",class:"form-check-label",htmlFor:this.name,part:o},this.label)),e(d,{key:"bf263a490f4ed88d09ffd2da9370b435d4d351e6",helpText:this.helpText,name:this.name}),e(n,{key:"bb9a2cdaa131158feca523f4ace56519b3a12fce",errorText:this.errorText,name:this.name})))}};export{m as form_control_checkbox}
@@ -1 +1 @@
1
- import{r as a,h as e,H as s}from"./p-CV0Pyo1O.js";import{E as c}from"./p-CLHwhyvu.js";import{R as t,S as i,T as b,U as d,V as f}from"./p-D50Rx76J.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
+ import{r as a,h as e,H as s}from"./p-CV0Pyo1O.js";import{E as c}from"./p-CLHwhyvu.js";import{P as t,Q as i,R as b,S as d,T as f}from"./p-DnrawQn3.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}
@@ -0,0 +1 @@
1
+ import{r as a,h as e}from"./p-CV0Pyo1O.js";import{f as t,p as s,c as r}from"./p-Dm07nLGs.js";import{f as l,a as d}from"./p-DnrawQn3.js";import{S as i}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as o,a as c}from"./p-BRnBHsdq.js";import"./p-DVJaoI_m.js";import{P as p}from"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const f=class{constructor(e){a(this,e),this.setParamsOnChange=(a,e)=>{t[a]=e},this.handleDateInput=(a,e)=>{const t=o(e,{setEndOfDay:!0});this.setParamsOnChange(a,t)}}componentWillLoad(){Object.entries({status:this.status,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([a,e])=>{e&&(s[a]=e)}))}get statusOptions(){return[{label:"All",value:""},{label:p.paid,value:"paid"},{label:p.failed,value:"failed"},{label:p.forwarded,value:"forwarded"},{label:p.scheduled,value:"scheduled"},{label:p.in_transit,value:"in_transit"},{label:p.canceled,value:"canceled"}]}render(){const a=Object.assign({},t);return e(i,{key:"cae6be7a9441ff6024548135f66a73694c53b10b"},e("table-filters-menu",{key:"a419bb5344248f9a857a9b21800c482a983e68e8",params:a,clearParams:r,part:l},e("div",{key:"ee4aa221a245a63e181d9f1e31a0b120cbe4ff2c",class:"grid-cols-2 gap-3 p-1"},e("div",{key:"32ba66ccea590b297d27ec734c6e6b3da1d7ae0f",class:"p-2"},e("form-control-select",{key:"ff480f5fc8d38d0240d952b1cd689d4f5776e35d",name:"status",label:"Status",options:this.statusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.status||t.status||"",disabled:!!this.status,part:d})),e("div",{key:"3b3de6360d735ac8399d2e16538a00aa5736a6c1",class:"p-2"},e("form-control-date",{key:"f3f9fe5154fdf1d98becdcd4c8ed5a0099c8aa76",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:c(this.createdAfter,{showInputDate:!0})||c(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:d})),e("div",{key:"0e95676650aba436b67f9e0537a5f3467015c9e5",class:"p-2"},e("form-control-date",{key:"6aafa1c4d7cc1921559de295e3213307cc34ed54",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:c(this.createdBefore,{showInputDate:!0})||c(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:d})))))}};export{f as justifi_payouts_list_filters}
@@ -1 +1 @@
1
- import{A as n}from"./p-CEnTtUmd.js";import"./p-CprMk6Bv.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";const t=n();class i{async getLinkToken(n,i,o,e){return t.post({endpoint:`plaid/${i}/link`,body:{checkout_id:o},authToken:n,signal:e})}async getLinkTokenForVerification(n,i,o){return t.post({endpoint:`entities/plaid/${i}/link_token`,body:{},authToken:n,signal:o})}async getBankAccountData(n,i,o){return t.get({endpoint:`entities/plaid/${i}/bank_account`,authToken:n,signal:o})}async postPlaidVerifiedBankAccountData(n,i,o,e){return t.post({endpoint:`entities/plaid/${i}/bank_account`,body:o,authToken:n,signal:e})}async tokenizeBankAccount(n,i,o,e,a,s){const p=`plaid/${i}/tokenize`,c={public_token:o};return e&&(c.link_token_id=e),a&&(c.payment_method_group_id=a),t.post({endpoint:p,body:c,authToken:n,signal:s})}}export{i as P}
1
+ import{A as n}from"./p-CYQvLgSs.js";import"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";const t=n();class i{async getLinkToken(n,i,o,e){return t.post({endpoint:`plaid/${i}/link`,body:{checkout_id:o},authToken:n,signal:e})}async getLinkTokenForVerification(n,i,o){return t.post({endpoint:`entities/plaid/${i}/link_token`,body:{},authToken:n,signal:o})}async getBankAccountData(n,i,o){return t.get({endpoint:`entities/plaid/${i}/bank_account`,authToken:n,signal:o})}async postPlaidVerifiedBankAccountData(n,i,o,e){return t.post({endpoint:`entities/plaid/${i}/bank_account`,body:o,authToken:n,signal:e})}async tokenizeBankAccount(n,i,o,e,a,s){const c=`plaid/${i}/tokenize`,p={public_token:o};return e&&(p.link_token_id=e),a&&(p.payment_method_group_id=a),t.post({endpoint:c,body:p,authToken:n,signal:s})}}export{i as P}
@@ -0,0 +1 @@
1
+ import{e as t}from"./p-CUI41_5y.js";const e=t=>"string"==typeof t?t:t.message,a=e=>{switch(e){case"not_authenticated":return t.NOT_AUTHENTICATED;case"invalid_parameter":return t.INVALID_PARAMETER;default:return t.FETCH_ERROR}};export{e as a,a as g}
@@ -0,0 +1 @@
1
+ import{c as e}from"./p-D8GTwl9v.js";import{P as n}from"./p-DkoufM1t.js";const o={accountId:"",authToken:"",billingFormFields:{address_postal_code:""},bnplEnabled:!1,isSubmitting:!1,isWalletProcessing:!1,applePayEnabled:!1,googlePayEnabled:!1,insuranceEnabled:!1,bnplProviderApiVersion:"",bnplProviderCheckoutUrl:"",bnplProviderClientId:"",bnplProviderMode:"",checkoutId:"",checkoutLoaded:!1,bankAccountVerification:void 0,disableBankAccount:!1,disableCreditCard:!1,disablePaymentMethodGroup:!1,paymentAmount:0,paymentCurrency:"USD",paymentDescription:"",paymentMethodGroupId:void 0,paymentMethods:[],paymentToken:void 0,savePaymentMethod:!1,selectedPaymentMethod:void 0,totalAmount:0,plaidPublicToken:void 0,plaidLinkTokenId:void 0},{state:t,onChange:a}=e(o);function d(){var e;const o=[];if(!t.disablePaymentMethodGroup&&(null===(e=t.paymentMethods)||void 0===e?void 0:e.length)){const e=t.paymentMethods.some((e=>e.type===n.SAVED_CARD)),a=t.paymentMethods.some((e=>e.type===n.SAVED_BANK_ACCOUNT));e&&!t.disableCreditCard&&o.push(n.SAVED_CARD),a&&!t.disableBankAccount&&o.push(n.SAVED_BANK_ACCOUNT)}return t.disableCreditCard||o.push(n.NEW_CARD),t.disableBankAccount||o.push(n.NEW_BANK_ACCOUNT),t.bnplEnabled&&o.push(n.SEZZLE),t.applePayEnabled&&o.push(n.APPLE_PAY),t.googlePayEnabled&&o.push(n.GOOGLE_PAY),!0!==t.bankAccountVerification||t.disableBankAccount||o.push(n.PLAID),o}function i(){var e;return{selectedPaymentMethod:t.selectedPaymentMethod,paymentAmount:t.paymentAmount,totalAmount:t.totalAmount,paymentCurrency:t.paymentCurrency,paymentDescription:t.paymentDescription,savedPaymentMethods:t.paymentMethods,savePaymentMethod:t.savePaymentMethod,bnplEnabled:t.bnplEnabled,applePayEnabled:t.applePayEnabled,insuranceEnabled:t.insuranceEnabled,disableBankAccount:t.disableBankAccount,disableCreditCard:t.disableCreditCard,disablePaymentMethodGroup:t.disablePaymentMethodGroup,paymentToken:null!==(e=t.paymentToken)&&void 0!==e?e:void 0}}function l(e){Object.keys(o).forEach((n=>{a(n,(o=>e(n,o)))}))}Object.keys(o).forEach((e=>{a(e,(n=>{t[e]=n}))}));export{l as a,i as b,t as c,d as g,a as o}
@@ -0,0 +1 @@
1
+ var e={name:"@justifi/webcomponents",version:"6.12.2"};export{e as p}
@@ -1 +1 @@
1
- import{p as e}from"./p-DbJ8_F44.js";const s="__JUSTIFI_WC_VERSION__",o=async()=>{var o,t;if((()=>{if("undefined"==typeof globalThis)return;const o=e.version,t=globalThis[s];t&&t!==o?console.error(`@justifi/webcomponents: Multiple versions detected. Version ${t} was loaded first and registered all components. Version ${o} is also present but its components will NOT be used. To fix this, add to your package.json:\n"pnpm": { "overrides": { "@justifi/webcomponents": "${o}" } }`):globalThis[s]=o})(),"undefined"!=typeof process&&("test"===(null===(o=process.env)||void 0===o?void 0:o.NODE_ENV)||(null===(t=process.env)||void 0===t?void 0:t.JEST_WORKER_ID)))return;const i=e.version,n=e.name,a=await(async e=>{const s=await fetch("https://registry.npmjs.org/"+e+"/latest");return(await s.json()).version})(n),r=a.replace(/-rc.*/,""),l=i.split("."),p=a.split(".");l[0]!==p[0]&&console.warn(`The package ${n} is out of date. The latest version is ${r}. Please update.`)};export{o as c}
1
+ import{p as e}from"./p-BCgsLInF.js";const s="__JUSTIFI_WC_VERSION__",o=async()=>{var o,t;if((()=>{if("undefined"==typeof globalThis)return;const o=e.version,t=globalThis[s];t&&t!==o?console.error(`@justifi/webcomponents: Multiple versions detected. Version ${t} was loaded first and registered all components. Version ${o} is also present but its components will NOT be used. To fix this, add to your package.json:\n"pnpm": { "overrides": { "@justifi/webcomponents": "${o}" } }`):globalThis[s]=o})(),"undefined"!=typeof process&&("test"===(null===(o=process.env)||void 0===o?void 0:o.NODE_ENV)||(null===(t=process.env)||void 0===t?void 0:t.JEST_WORKER_ID)))return;const n=e.version,i=e.name,a=await(async e=>{const s=await fetch("https://registry.npmjs.org/"+e+"/latest");return(await s.json()).version})(i),r=a.replace(/-rc.*/,""),l=n.split("."),p=a.split(".");l[0]!==p[0]&&console.warn(`The package ${i} is out of date. The latest version is ${r}. Please update.`)};export{o as c}