@justifi/webcomponents 5.7.3-rc-01 → 5.7.4

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 (620) hide show
  1. package/dist/cjs/{Checkout-BsYZoJ0a.js → Checkout-TZnRz3-3.js} +3 -1
  2. package/dist/cjs/{ComponentError-CEv9ltwy.js → ComponentError-C4MdBBMe.js} +0 -2
  3. package/dist/cjs/{Refund-BDFOEJv_.js → Refund-BFE-2OxN.js} +56 -0
  4. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -7
  5. package/dist/cjs/{bank-account-form_7.cjs.entry.js → bank-account-form_9.cjs.entry.js} +190 -20
  6. package/dist/cjs/{business-additional-questions-schema-CHOaeZot.js → business-additional-questions-schema-e3GCIHk5.js} +6 -6
  7. package/dist/cjs/{business-identity-schema-DmpEndsx.js → business-identity-schema-Diqj_WVQ.js} +10 -10
  8. package/dist/cjs/{business.service-ev-3rHag.js → business.service-DNvLrr-n.js} +3 -4
  9. package/dist/cjs/{Analytics-DYN4hp2b.js → check-pkg-version-BlUxyRaM.js} +23 -24
  10. package/dist/cjs/{checkout.service-D4hTYr1i.js → checkout.service-Bx0RBq-I.js} +3 -4
  11. package/dist/cjs/checkouts-list-core.cjs.entry.js +4 -5
  12. package/dist/cjs/custom-popper_4.cjs.entry.js +6 -6
  13. package/dist/cjs/{dispute.service-Dru9NStj.js → dispute.service-DbUcp4sD.js} +3 -4
  14. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  15. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  16. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  17. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  21. package/dist/cjs/{get-business-BiEc-jdH.js → get-business-BJrtsomz.js} +2 -2
  22. package/dist/cjs/{get-payment-details-AOibpML7.js → get-payment-details-C7Ezks0M.js} +4 -5
  23. package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-CXEQkjDm.js} +2 -2
  24. package/dist/cjs/{get-subaccounts-Dw7CbPDi.js → get-subaccounts-UpfFbDHH.js} +4 -5
  25. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  26. package/dist/cjs/iframe-input-styles-state-BJ9xnomM.js +26 -0
  27. package/dist/cjs/{hidden-input_2.cjs.entry.js → iframe-input.cjs.entry.js} +14 -111
  28. package/dist/cjs/{form-CWW8IM-X.js → index.esm-CVuJLXJZ.js} +10022 -10022
  29. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +50 -24
  30. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -13
  31. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +42 -42
  32. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -11
  33. package/dist/cjs/justifi-business-form.cjs.entry.js +16 -17
  34. package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +67 -24
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -5
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -12
  38. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -11
  40. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -13
  41. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -9
  42. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -13
  43. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -11
  44. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -11
  45. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  46. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -11
  47. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -11
  48. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  49. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -11
  50. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -11
  51. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -11
  52. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -13
  54. package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -18
  55. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +18 -17
  56. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -6
  57. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -11
  58. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -5
  59. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -12
  60. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -16
  61. package/dist/cjs/loader.cjs.js +1 -1
  62. package/dist/cjs/{package-DF9mLjoQ.js → package-v-c3ZR5a.js} +1 -1
  63. package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
  64. package/dist/cjs/{payment-provisioning-actions-SNMCdsyF.js → payment-provisioning-actions-BkWSDJQQ.js} +2 -2
  65. package/dist/cjs/{payment.service-rsnscZu7.js → payment.service-CVZgDrZw.js} +3 -4
  66. package/dist/cjs/payments-list-core.cjs.entry.js +4 -5
  67. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  68. package/dist/cjs/{payout.service-BnmI3X4n.js → payout.service-D6kmeDsy.js} +3 -4
  69. package/dist/cjs/payouts-list-core.cjs.entry.js +4 -5
  70. package/dist/cjs/{schema-validations-C0BNwMBi.js → schema-validations-BSeMee-o.js} +31 -54
  71. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  72. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -6
  73. package/dist/cjs/{terminal-orders-table-OxMHSAJ1.js → terminal-orders-table-CUOWHQ6V.js} +3 -4
  74. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  75. package/dist/cjs/{terminal.service--PPaq5xS.js → terminal.service-BxRchD7X.js} +3 -4
  76. package/dist/cjs/terminals-list-core.cjs.entry.js +4 -5
  77. package/dist/cjs/{utils-IGCnjtqc.js → utils-l0veqT9y.js} +1 -1
  78. package/dist/cjs/webcomponents.cjs.js +1 -1
  79. package/dist/collection/api/Checkout.js +3 -1
  80. package/dist/collection/api/ComponentError.js +0 -2
  81. package/dist/collection/collection-manifest.json +1 -8
  82. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +1 -1
  83. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +36 -8
  84. package/dist/collection/components/business-forms/schemas/schema-validations.js +1 -47
  85. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  86. package/dist/collection/components/checkout/billing-form/billing-form.js +1 -1
  87. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  88. package/dist/collection/components/checkout/checkout.js +2 -11
  89. package/dist/collection/components/checkout/payment-method-options.js +33 -3
  90. package/dist/collection/components/checkout/sezzle-payment-method.js +240 -0
  91. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  92. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  93. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  94. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  95. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  96. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  97. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  98. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  99. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  100. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  101. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  102. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  103. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  104. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  105. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  106. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  107. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  108. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  109. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +12 -10
  110. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  111. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  112. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  113. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  114. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  115. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  116. package/dist/collection/components/payments-list/payments-list.js +1 -1
  117. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  118. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  119. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  120. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  121. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  122. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  123. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  124. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  125. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  126. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  127. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  128. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -10
  129. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  130. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  131. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  132. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  133. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  134. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  135. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  136. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  137. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  138. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  139. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  140. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  141. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  142. package/dist/collection/ui-components/form/iframe-input.js +5 -10
  143. package/dist/docs.json +250 -841
  144. package/dist/esm/{Api-CqimcNgb.js → Api-BNYhCiE2.js} +1 -1
  145. package/dist/esm/{Checkout-CV6qgU0r.js → Checkout-B9LrTq63.js} +4 -2
  146. package/dist/esm/{ComponentError-BhrFjjAs.js → ComponentError-SdntD1xf.js} +0 -2
  147. package/dist/esm/{Payment-BEvE6jAC.js → Payment-BGiKmQYR.js} +1 -1
  148. package/dist/esm/{Refund-CwUn_GFj.js → Refund-DDIEc_gu.js} +56 -2
  149. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  150. package/dist/esm/{badge-D_Q0kAPD.js → badge-C-nwyQ3h.js} +1 -1
  151. package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -11
  152. package/dist/esm/{bank-account-form_7.entry.js → bank-account-form_9.entry.js} +186 -18
  153. package/dist/esm/{business-additional-questions-schema-0lssJqN7.js → business-additional-questions-schema-uQlQ8fXQ.js} +2 -2
  154. package/dist/esm/business-details-core.entry.js +3 -3
  155. package/dist/esm/{business-identity-schema-Bel1K5mu.js → business-identity-schema-BsrgqgDl.js} +2 -2
  156. package/dist/esm/{business.service-BM8hLxHS.js → business.service-DP2HUV0w.js} +5 -6
  157. package/dist/esm/{button-BVAxQPpP.js → button-BGlG9iX5.js} +1 -1
  158. package/dist/esm/{Analytics-DR277kvb.js → check-pkg-version-Dff5h73V.js} +25 -26
  159. package/dist/esm/{checkout.service-CuCgG9hv.js → checkout.service-DkTEFCSZ.js} +5 -6
  160. package/dist/esm/checkouts-list-core.entry.js +11 -12
  161. package/dist/esm/{checkouts-table-Cc6U-0md.js → checkouts-table-rhDm-zAB.js} +3 -3
  162. package/dist/esm/custom-popper_4.entry.js +8 -8
  163. package/dist/esm/{dispute.service-rB4Hq6ot.js → dispute.service-CUcw-v4N.js} +5 -6
  164. package/dist/esm/form-alert_5.entry.js +1 -1
  165. package/dist/esm/form-control-checkbox.entry.js +5 -5
  166. package/dist/esm/form-control-date.entry.js +4 -4
  167. package/dist/esm/{form-control-error-text-_SAT-ts2.js → form-control-error-text-CwJc1ShT.js} +1 -1
  168. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  169. package/dist/esm/{form-control-help-text-Cjeu_VrV.js → form-control-help-text-COx__-BM.js} +1 -1
  170. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  171. package/dist/esm/form-control-monetary.entry.js +6 -6
  172. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  173. package/dist/esm/form-control-number.entry.js +5 -5
  174. package/dist/esm/form-control-radio.entry.js +3 -3
  175. package/dist/esm/{get-business-BSRtbTh7.js → get-business-GEPTefIj.js} +2 -2
  176. package/dist/esm/{get-payment-details-DtkGDTwo.js → get-payment-details-Ea6HDOQH.js} +6 -7
  177. package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D7IYYqVL.js} +2 -2
  178. package/dist/esm/{get-subaccounts-C-ENQBmY.js → get-subaccounts-DcHphsRK.js} +7 -8
  179. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  180. package/dist/esm/{header-1-5FIT-wD7.js → header-1-Dj4_I_9S.js} +1 -1
  181. package/dist/esm/{header-3-Ce9WLWBm.js → header-3-CLoMDfp0.js} +1 -1
  182. package/dist/esm/iframe-input-styles-state-CfSmDqfA.js +23 -0
  183. package/dist/esm/{hidden-input_2.entry.js → iframe-input.entry.js} +10 -106
  184. package/dist/esm/{form-BjGUIqxU.js → index.esm-BCNUj0Dx.js} +10022 -10022
  185. package/dist/esm/{insurance-state-BcwZy_5w.js → insurance-state-CUJP_TDB.js} +1 -1
  186. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +46 -20
  187. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -13
  188. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  189. package/dist/esm/justifi-business-details.entry.js +13 -14
  190. package/dist/esm/justifi-business-form.entry.js +19 -20
  191. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  192. package/dist/esm/justifi-checkout-core.entry.js +8 -8
  193. package/dist/esm/justifi-checkout.entry.js +66 -23
  194. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -8
  195. package/dist/esm/justifi-checkouts-list.entry.js +15 -16
  196. package/dist/esm/justifi-details.entry.js +2 -2
  197. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  198. package/dist/esm/justifi-dispute-management.entry.js +11 -12
  199. package/dist/esm/justifi-dispute-notification_3.entry.js +16 -17
  200. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -12
  201. package/dist/esm/justifi-order-terminals.entry.js +15 -16
  202. package/dist/esm/justifi-owner-form_3.entry.js +14 -15
  203. package/dist/esm/justifi-payment-details.entry.js +13 -14
  204. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  205. package/dist/esm/justifi-payment-provisioning.entry.js +11 -12
  206. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -15
  207. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  208. package/dist/esm/justifi-payments-list.entry.js +15 -16
  209. package/dist/esm/justifi-payout-details.entry.js +13 -14
  210. package/dist/esm/justifi-payout-transactions-list.entry.js +14 -15
  211. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  212. package/dist/esm/justifi-payouts-list.entry.js +17 -18
  213. package/dist/esm/justifi-refund-payment.entry.js +15 -16
  214. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  215. package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -18
  216. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -9
  217. package/dist/esm/justifi-terminal-orders-list.entry.js +13 -14
  218. package/dist/esm/justifi-terminals-list-filters.entry.js +7 -8
  219. package/dist/esm/justifi-terminals-list.entry.js +15 -16
  220. package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -19
  221. package/dist/esm/loader.js +1 -1
  222. package/dist/esm/{package-CyXXks-Q.js → package-DzXsHdKv.js} +1 -1
  223. package/dist/esm/pagination-menu.entry.js +1 -1
  224. package/dist/esm/{parts-_6eQgwfE.js → parts-BrLVc_85.js} +1 -1
  225. package/dist/esm/payment-details-core.entry.js +14 -14
  226. package/dist/esm/{payment-provisioning-actions-2qP7AtHj.js → payment-provisioning-actions-BIfyW239.js} +2 -2
  227. package/dist/esm/{payment.service-DoUv1QsX.js → payment.service-BBse35Bb.js} +5 -6
  228. package/dist/esm/payments-list-core.entry.js +12 -13
  229. package/dist/esm/{payments-status-BeL2gi3P.js → payments-status-CO0mZyxH.js} +1 -1
  230. package/dist/esm/{payments-table-MrDAlH2o.js → payments-table-BYmcN_eJ.js} +3 -3
  231. package/dist/esm/payout-details-core.entry.js +10 -10
  232. package/dist/esm/{payout.service-B_Fm08zQ.js → payout.service-DYk7xoLp.js} +5 -6
  233. package/dist/esm/payouts-list-core.entry.js +12 -13
  234. package/dist/esm/{payouts-status-BxbhUjA3.js → payouts-status-BqhlFWZJ.js} +1 -1
  235. package/dist/esm/{payouts-table-HoX3UYIj.js → payouts-table-BoNMXUDt.js} +3 -3
  236. package/dist/esm/{schema-validations-DYV7urvw.js → schema-validations-DLWfpHyI.js} +2 -23
  237. package/dist/esm/{skeleton-CPNYhX-V.js → skeleton-D6agoQ_l.js} +1 -1
  238. package/dist/esm/{spinner-Cl-6YJPf.js → spinner-C8twYXzL.js} +1 -1
  239. package/dist/esm/{table-RCk8zh4L.js → table-BzdzS7PI.js} +2 -2
  240. package/dist/esm/table-filters-menu.entry.js +3 -3
  241. package/dist/esm/terminal-orders-list-core.entry.js +11 -12
  242. package/dist/esm/{terminal-orders-table-DxHLNkx_.js → terminal-orders-table-BxZFOqli.js} +7 -8
  243. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  244. package/dist/esm/{terminal.service-2VkdfNas.js → terminal.service-WIpzxBkU.js} +5 -6
  245. package/dist/esm/terminals-list-core.entry.js +11 -12
  246. package/dist/esm/{terminals-table-v-LOevYA.js → terminals-table-DVreYpwc.js} +3 -3
  247. package/dist/esm/{utils-BjLkBMLe.js → utils-DB5fh6Iv.js} +1 -1
  248. package/dist/esm/{utils-1WrbuHVR.js → utils-DGozGJLI.js} +1 -1
  249. package/dist/esm/{utils-BZvep88z.js → utils-Dccsn9BY.js} +1 -1
  250. package/dist/esm/webcomponents.js +1 -1
  251. package/dist/module/Checkout.js +3 -3
  252. package/dist/module/Refund.js +55 -1
  253. package/dist/module/additional-statement.js +1 -1
  254. package/dist/module/bank-account-document-inputs.js +1 -2
  255. package/dist/module/bank-account-form2.js +2 -2
  256. package/dist/module/billing-form.js +3 -3
  257. package/dist/module/business-address-schema.js +1 -1
  258. package/dist/module/business-bank-account-form-step-core.js +37 -11
  259. package/dist/module/business-bank-account-form-step.js +0 -1
  260. package/dist/module/business-core-info-schema.js +1 -1
  261. package/dist/module/business-identity-schema.js +1 -1
  262. package/dist/module/business-terms-conditions-form-step.js +1 -2
  263. package/dist/module/business.service.js +0 -1
  264. package/dist/module/button.js +1 -1
  265. package/dist/module/cancellation-policy.js +1 -1
  266. package/dist/module/card-form2.js +2 -2
  267. package/dist/module/{Analytics.js → check-pkg-version.js} +21 -22
  268. package/dist/module/checkout-core.js +38 -32
  269. package/dist/module/checkout.service.js +0 -1
  270. package/dist/module/checkouts-list-core2.js +2 -3
  271. package/dist/module/custom-popper2.js +2 -2
  272. package/dist/module/customer-details.js +1 -1
  273. package/dist/module/dispute-management-core.js +1 -1
  274. package/dist/module/dispute-notification.js +1 -1
  275. package/dist/module/dispute-response-actions.js +0 -1
  276. package/dist/module/dispute-response-core.js +1 -1
  277. package/dist/module/dispute-response.js +2 -2
  278. package/dist/module/duplicate-charge.js +1 -1
  279. package/dist/module/electronic-evidence.js +1 -1
  280. package/dist/module/form-control-checkbox2.js +2 -2
  281. package/dist/module/form-control-date2.js +2 -2
  282. package/dist/module/form-control-file-v22.js +1 -1
  283. package/dist/module/form-control-file2.js +2 -2
  284. package/dist/module/form-control-monetary2.js +2 -2
  285. package/dist/module/form-control-number-masked2.js +2 -2
  286. package/dist/module/form-control-number.js +2 -2
  287. package/dist/module/form-control-radio2.js +2 -2
  288. package/dist/module/form-control-select2.js +2 -2
  289. package/dist/module/form-control-text2.js +2 -2
  290. package/dist/module/form-control-textarea2.js +2 -2
  291. package/dist/module/form.js +1 -1
  292. package/dist/module/get-payment-details.js +0 -1
  293. package/dist/module/get-subaccounts.js +0 -1
  294. package/dist/module/gross-payment-chart-core2.js +1 -1
  295. package/dist/module/hidden-input2.js +1 -1
  296. package/dist/module/iframe-input2.js +5 -5
  297. package/dist/module/justifi-business-details.js +1 -1
  298. package/dist/module/justifi-business-form.js +1 -2
  299. package/dist/module/justifi-checkout.js +99 -48
  300. package/dist/module/justifi-checkouts-list-filters.js +2 -3
  301. package/dist/module/justifi-checkouts-list.js +2 -3
  302. package/dist/module/justifi-dispute-management.js +2 -2
  303. package/dist/module/justifi-gross-payment-chart.js +1 -2
  304. package/dist/module/justifi-order-terminals.js +4 -5
  305. package/dist/module/justifi-payment-details.js +1 -1
  306. package/dist/module/justifi-payment-provisioning.js +1 -2
  307. package/dist/module/justifi-payment-transactions-list.js +4 -5
  308. package/dist/module/justifi-payments-list-filters.js +3 -3
  309. package/dist/module/justifi-payments-list.js +2 -3
  310. package/dist/module/justifi-payout-details.js +1 -2
  311. package/dist/module/justifi-payout-transactions-list.js +4 -5
  312. package/dist/module/justifi-payouts-list-filters.js +3 -3
  313. package/dist/module/justifi-payouts-list.js +2 -3
  314. package/dist/module/justifi-refund-payment.js +2 -3
  315. package/dist/module/justifi-season-interruption-insurance.js +11 -10
  316. package/dist/module/justifi-sezzle-payment-method.js +1 -108
  317. package/dist/module/justifi-terminal-orders-list-filters.js +3 -4
  318. package/dist/module/justifi-terminal-orders-list.js +3 -4
  319. package/dist/module/justifi-terminals-list-filters.js +2 -3
  320. package/dist/module/justifi-terminals-list.js +3 -4
  321. package/dist/module/justifi-tokenize-payment-method.js +40 -42
  322. package/dist/module/package.js +3 -3
  323. package/dist/module/parts.js +1 -1
  324. package/dist/module/payment-details-core2.js +8 -8
  325. package/dist/module/payment-method-options.js +51 -34
  326. package/dist/module/payment.service.js +0 -1
  327. package/dist/module/payments-list-core2.js +2 -3
  328. package/dist/module/payout-details-core2.js +3 -3
  329. package/dist/module/payout.service.js +0 -1
  330. package/dist/module/payouts-list-core2.js +2 -3
  331. package/dist/module/product-or-service.js +1 -1
  332. package/dist/module/refund-policy.js +1 -1
  333. package/dist/module/saved-payment-method.js +22 -2
  334. package/dist/module/schema-validations.js +2 -23
  335. package/dist/module/sezzle-payment-method.js +104 -0
  336. package/dist/module/shipping-details.js +1 -1
  337. package/dist/module/table-filters-menu2.js +2 -2
  338. package/dist/module/terminal-orders-list-core2.js +2 -3
  339. package/dist/module/terminal-quantity-selector2.js +1 -1
  340. package/dist/module/terminal.service.js +0 -1
  341. package/dist/module/terminals-list-core2.js +2 -3
  342. package/dist/types/api/Checkout.d.ts +13 -14
  343. package/dist/types/api/ComponentError.d.ts +1 -3
  344. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -7
  345. package/dist/types/components/checkout/checkout.d.ts +0 -1
  346. package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
  347. package/dist/types/components/{modular-checkout-parts → checkout}/sezzle-payment-method.d.ts +8 -2
  348. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
  349. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
  350. package/dist/types/components.d.ts +22 -165
  351. package/dist/types/ui-components/form/iframe-input.d.ts +1 -2
  352. package/dist/webcomponents/p--B09FkmB.js +1 -0
  353. package/dist/webcomponents/p-08b3ec57.entry.js +1 -0
  354. package/dist/webcomponents/p-0b28597b.entry.js +1 -0
  355. package/dist/webcomponents/p-0b52d1dd.entry.js +1 -0
  356. package/dist/webcomponents/p-0b964616.entry.js +1 -0
  357. package/dist/webcomponents/p-186a25e3.entry.js +1 -0
  358. package/dist/webcomponents/p-234c0b0a.entry.js +1 -0
  359. package/dist/webcomponents/{p-df2ad580.entry.js → p-27a7ba0d.entry.js} +1 -1
  360. package/dist/webcomponents/p-297b4a1a.entry.js +1 -0
  361. package/dist/webcomponents/p-299c215b.entry.js +1 -0
  362. package/dist/webcomponents/p-2GKzt6ql.js +1 -0
  363. package/dist/webcomponents/p-39236b05.entry.js +1 -0
  364. package/dist/webcomponents/{p-5da3ba38.entry.js → p-3af7b1ee.entry.js} +1 -1
  365. package/dist/webcomponents/{p-15c63931.entry.js → p-3ddaea2d.entry.js} +1 -1
  366. package/dist/webcomponents/p-41ce682a.entry.js +1 -0
  367. package/dist/webcomponents/{p-5ea3cfca.entry.js → p-454d5cab.entry.js} +1 -1
  368. package/dist/webcomponents/p-4bf6f767.entry.js +1 -0
  369. package/dist/webcomponents/p-59a2ccdb.entry.js +1 -0
  370. package/dist/webcomponents/p-68425065.entry.js +1 -0
  371. package/dist/webcomponents/p-69e8b394.entry.js +1 -0
  372. package/dist/webcomponents/p-6ab28931.entry.js +1 -0
  373. package/dist/webcomponents/p-6f08cc3e.entry.js +1 -0
  374. package/dist/webcomponents/p-74412d52.entry.js +1 -0
  375. package/dist/webcomponents/p-77957f7f.entry.js +1 -0
  376. package/dist/webcomponents/p-7a254093.entry.js +20 -0
  377. package/dist/webcomponents/p-7db9f780.entry.js +1 -0
  378. package/dist/webcomponents/p-7fbdaa8a.entry.js +1 -0
  379. package/dist/webcomponents/p-86112ed3.entry.js +1 -0
  380. package/dist/webcomponents/p-863d53ef.entry.js +1 -0
  381. package/dist/webcomponents/p-8a62bc7a.entry.js +1 -0
  382. package/dist/webcomponents/p-8b02e43a.entry.js +1 -0
  383. package/dist/webcomponents/p-8f354461.entry.js +1 -0
  384. package/dist/webcomponents/{p-584ba20d.entry.js → p-90d36a2f.entry.js} +1 -1
  385. package/dist/webcomponents/{p-be51c7c5.entry.js → p-959d5f08.entry.js} +1 -1
  386. package/dist/webcomponents/p-972531a2.entry.js +1 -0
  387. package/dist/webcomponents/{p-b3e6d27c.entry.js → p-99ff608b.entry.js} +1 -1
  388. package/dist/webcomponents/p-9bb3ccba.entry.js +1 -0
  389. package/dist/webcomponents/{p-e8294f7e.entry.js → p-9be5b03a.entry.js} +1 -1
  390. package/dist/webcomponents/{p-f71b1ff0.entry.js → p-9e7c8e33.entry.js} +1 -1
  391. package/dist/webcomponents/p-9ef53bb1.entry.js +1 -0
  392. package/dist/webcomponents/p-AW4YV_IW.js +1 -0
  393. package/dist/webcomponents/p-B2ts3XP0.js +1 -0
  394. package/dist/webcomponents/p-BBEApkWm.js +1 -0
  395. package/dist/webcomponents/{p-B4MIwTdb.js → p-BC1KMlPG.js} +1 -1
  396. package/dist/webcomponents/p-BERbc4aX.js +1 -0
  397. package/dist/webcomponents/p-BLm_qZkx.js +1 -0
  398. package/dist/webcomponents/{p-BxfUcCXo.js → p-BTS3E50C.js} +1 -1
  399. package/dist/webcomponents/p-BdTK0wi9.js +1 -0
  400. package/dist/webcomponents/{p-Yj41tobi.js → p-BjDSEZvx.js} +1 -1
  401. package/dist/webcomponents/{p-9REosSLu.js → p-BnE7qgLh.js} +1 -1
  402. package/dist/webcomponents/{p-_6eQgwfE.js → p-BrLVc_85.js} +1 -1
  403. package/dist/webcomponents/{p-D3SYNGyb.js → p-C-78OQ89.js} +1 -1
  404. package/dist/webcomponents/p-C26QVwoo.js +1 -0
  405. package/dist/webcomponents/p-C5RuuShs.js +1 -0
  406. package/dist/webcomponents/p-C6qAZgXn.js +1 -0
  407. package/dist/webcomponents/{p-B7VsiIW-.js → p-CEqUppok.js} +1 -1
  408. package/dist/webcomponents/{p-BSUCBhkJ.js → p-CNv7zeGM.js} +1 -1
  409. package/dist/webcomponents/p-CU_goaUQ.js +1 -0
  410. package/dist/webcomponents/p-CgSKeuxa.js +1 -0
  411. package/dist/webcomponents/p-Co9WxzRf.js +1 -0
  412. package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
  413. package/dist/webcomponents/{p-CqVelcDt.js → p-DOb1iL29.js} +1 -1
  414. package/dist/webcomponents/p-DPUXZApk.js +1 -0
  415. package/dist/webcomponents/p-DVnVdicA.js +1 -0
  416. package/dist/webcomponents/p-DbhOyu_u.js +1 -0
  417. package/dist/webcomponents/p-DcwpS5VC.js +1 -0
  418. package/dist/webcomponents/p-DgPQlpzy.js +1 -0
  419. package/dist/webcomponents/{p-Ctw40vkk.js → p-DmLTJr3R.js} +1 -1
  420. package/dist/webcomponents/p-DniQ6yo6.js +1 -0
  421. package/dist/webcomponents/{p-D7js9xfx.js → p-DzFysjCc.js} +1 -1
  422. package/dist/webcomponents/p-DzXsHdKv.js +1 -0
  423. package/dist/webcomponents/{p-BhLPwu1L.js → p-EVfmZi89.js} +1 -1
  424. package/dist/webcomponents/p-JOSiCHl7.js +1 -0
  425. package/dist/webcomponents/p-SdntD1xf.js +1 -0
  426. package/dist/webcomponents/p-UyFPa3Jb.js +1 -0
  427. package/dist/webcomponents/p-a1860b96.entry.js +1 -0
  428. package/dist/webcomponents/{p-ea664ada.entry.js → p-a7f5262a.entry.js} +1 -1
  429. package/dist/webcomponents/{p-712220f9.entry.js → p-ae62bc55.entry.js} +1 -1
  430. package/dist/webcomponents/p-am93SGf-.js +1 -0
  431. package/dist/webcomponents/p-b2086753.entry.js +1 -0
  432. package/dist/webcomponents/p-b3de3312.entry.js +1 -0
  433. package/dist/webcomponents/p-b4da0e31.entry.js +1 -0
  434. package/dist/webcomponents/{p-ff223825.entry.js → p-ba7c7025.entry.js} +1 -1
  435. package/dist/webcomponents/p-bd387500.entry.js +1 -0
  436. package/dist/webcomponents/p-c3b8c25f.entry.js +1 -0
  437. package/dist/webcomponents/p-c5f3f2cc.entry.js +1 -0
  438. package/dist/webcomponents/p-c60219ba.entry.js +1 -0
  439. package/dist/webcomponents/p-caa90e8c.entry.js +1 -0
  440. package/dist/webcomponents/{p-9a17fd5a.entry.js → p-d144c5e5.entry.js} +1 -1
  441. package/dist/webcomponents/p-d44c7900.entry.js +1 -0
  442. package/dist/webcomponents/p-d6tXI5Iw.js +1 -0
  443. package/dist/webcomponents/{p-ef9dcfe1.entry.js → p-ded52cad.entry.js} +1 -1
  444. package/dist/webcomponents/p-df044e50.entry.js +1 -0
  445. package/dist/webcomponents/p-e0c8e41a.entry.js +1 -0
  446. package/dist/webcomponents/p-e8a1dbe2.entry.js +1 -0
  447. package/dist/webcomponents/p-ef930355.entry.js +1 -0
  448. package/dist/webcomponents/p-f4aa30b8.entry.js +1 -0
  449. package/dist/webcomponents/p-f7c23a96.entry.js +1 -0
  450. package/dist/webcomponents/p-f9510372.entry.js +1 -0
  451. package/dist/webcomponents/p-fe8938ba.entry.js +1 -0
  452. package/dist/webcomponents/p-iPHDHB_q.js +1 -0
  453. package/dist/webcomponents/p-lfLAtTgJ.js +1 -0
  454. package/dist/webcomponents/p-n0Sbmvzb.js +1 -0
  455. package/dist/webcomponents/p-oE-E7kjN.js +1 -0
  456. package/dist/webcomponents/{p-DddGO-XR.js → p-vTsHmSQQ.js} +1 -1
  457. package/dist/webcomponents/webcomponents.esm.js +1 -1
  458. package/package.json +1 -1
  459. package/dist/cjs/Document-rXGBUaOh.js +0 -58
  460. package/dist/cjs/billing-form-schema-oZ4GROWP.js +0 -26
  461. package/dist/cjs/checkout-actions-CRbQgLn0.js +0 -61
  462. package/dist/cjs/checkout.store-osqdxFMq.js +0 -29
  463. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -85
  464. package/dist/cjs/justifi-billing-information-form.cjs.entry.js +0 -51
  465. package/dist/cjs/justifi-card-form.cjs.entry.js +0 -93
  466. package/dist/cjs/justifi-checkout-summary.cjs.entry.js +0 -21
  467. package/dist/cjs/justifi-modular-checkout.cjs.entry.js +0 -205
  468. package/dist/cjs/justifi-postal-code-form.cjs.entry.js +0 -50
  469. package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +0 -31
  470. package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +0 -80
  471. package/dist/cjs/payment-method-option-utils-imuSE7KV.js +0 -25
  472. package/dist/collection/api/BillingInformation.js +0 -1
  473. package/dist/collection/api/PaymentMethod.js +0 -1
  474. package/dist/collection/components/modular-checkout/modular-checkout.js +0 -345
  475. package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +0 -10
  476. package/dist/collection/components/modular-checkout-parts/bank-account.js +0 -119
  477. package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +0 -21
  478. package/dist/collection/components/modular-checkout-parts/billing-form.js +0 -116
  479. package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +0 -10
  480. package/dist/collection/components/modular-checkout-parts/card-form.js +0 -123
  481. package/dist/collection/components/modular-checkout-parts/postal-code-form.js +0 -114
  482. package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +0 -23
  483. package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +0 -127
  484. package/dist/collection/components/modular-checkout-parts/summary.js +0 -12
  485. package/dist/collection/store/checkout.store.js +0 -25
  486. package/dist/esm/Document-Ct-uNz2r.js +0 -55
  487. package/dist/esm/billing-form-schema-PFvYpvy4.js +0 -24
  488. package/dist/esm/checkout-actions-UQ6g1s7I.js +0 -58
  489. package/dist/esm/checkout.store-DQrlfeus.js +0 -27
  490. package/dist/esm/justifi-bank-account-form.entry.js +0 -83
  491. package/dist/esm/justifi-billing-information-form.entry.js +0 -49
  492. package/dist/esm/justifi-card-form.entry.js +0 -91
  493. package/dist/esm/justifi-checkout-summary.entry.js +0 -19
  494. package/dist/esm/justifi-modular-checkout.entry.js +0 -203
  495. package/dist/esm/justifi-postal-code-form.entry.js +0 -48
  496. package/dist/esm/justifi-saved-payment-methods.entry.js +0 -29
  497. package/dist/esm/justifi-sezzle-payment-method.entry.js +0 -78
  498. package/dist/esm/payment-method-option-utils-8n_ALxec.js +0 -23
  499. package/dist/module/Document.js +0 -55
  500. package/dist/module/billing-form-schema.js +0 -24
  501. package/dist/module/checkout-actions.js +0 -58
  502. package/dist/module/checkout.store.js +0 -27
  503. package/dist/module/justifi-bank-account-form.d.ts +0 -11
  504. package/dist/module/justifi-bank-account-form.js +0 -103
  505. package/dist/module/justifi-billing-information-form.d.ts +0 -11
  506. package/dist/module/justifi-billing-information-form.js +0 -94
  507. package/dist/module/justifi-card-form.d.ts +0 -11
  508. package/dist/module/justifi-card-form.js +0 -111
  509. package/dist/module/justifi-checkout-summary.d.ts +0 -11
  510. package/dist/module/justifi-checkout-summary.js +0 -37
  511. package/dist/module/justifi-modular-checkout.d.ts +0 -11
  512. package/dist/module/justifi-modular-checkout.js +0 -219
  513. package/dist/module/justifi-postal-code-form.d.ts +0 -11
  514. package/dist/module/justifi-postal-code-form.js +0 -86
  515. package/dist/module/justifi-saved-payment-methods.d.ts +0 -11
  516. package/dist/module/justifi-saved-payment-methods.js +0 -58
  517. package/dist/module/payment-method-option-utils.js +0 -23
  518. package/dist/types/api/BillingInformation.d.ts +0 -13
  519. package/dist/types/api/PaymentMethod.d.ts +0 -21
  520. package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -31
  521. package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +0 -6
  522. package/dist/types/components/modular-checkout-parts/bank-account.d.ts +0 -18
  523. package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +0 -23
  524. package/dist/types/components/modular-checkout-parts/billing-form.d.ts +0 -16
  525. package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +0 -6
  526. package/dist/types/components/modular-checkout-parts/card-form.d.ts +0 -20
  527. package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +0 -16
  528. package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +0 -5
  529. package/dist/types/components/modular-checkout-parts/summary.d.ts +0 -3
  530. package/dist/types/store/checkout.store.d.ts +0 -19
  531. package/dist/webcomponents/p-00900e52.entry.js +0 -1
  532. package/dist/webcomponents/p-025ae692.entry.js +0 -1
  533. package/dist/webcomponents/p-02e26641.entry.js +0 -1
  534. package/dist/webcomponents/p-04c91ec1.entry.js +0 -1
  535. package/dist/webcomponents/p-0d5e93b3.entry.js +0 -1
  536. package/dist/webcomponents/p-19b5f93a.entry.js +0 -1
  537. package/dist/webcomponents/p-1ac365b4.entry.js +0 -1
  538. package/dist/webcomponents/p-1d64d86b.entry.js +0 -1
  539. package/dist/webcomponents/p-20d7db42.entry.js +0 -1
  540. package/dist/webcomponents/p-25b310f0.entry.js +0 -1
  541. package/dist/webcomponents/p-271b131d.entry.js +0 -1
  542. package/dist/webcomponents/p-2882b4e9.entry.js +0 -1
  543. package/dist/webcomponents/p-2a08ba01.entry.js +0 -1
  544. package/dist/webcomponents/p-2f027626.entry.js +0 -1
  545. package/dist/webcomponents/p-2fa36c0e.entry.js +0 -1
  546. package/dist/webcomponents/p-379584fb.entry.js +0 -1
  547. package/dist/webcomponents/p-39f31e23.entry.js +0 -1
  548. package/dist/webcomponents/p-3b6888c5.entry.js +0 -1
  549. package/dist/webcomponents/p-3d62f9a5.entry.js +0 -1
  550. package/dist/webcomponents/p-3edd5ebd.entry.js +0 -1
  551. package/dist/webcomponents/p-4232760b.entry.js +0 -1
  552. package/dist/webcomponents/p-4be4f7b4.entry.js +0 -1
  553. package/dist/webcomponents/p-531738ae.entry.js +0 -1
  554. package/dist/webcomponents/p-54019e68.entry.js +0 -1
  555. package/dist/webcomponents/p-5bc6f1e6.entry.js +0 -20
  556. package/dist/webcomponents/p-5bfbb0f8.entry.js +0 -1
  557. package/dist/webcomponents/p-5f9dbaff.entry.js +0 -1
  558. package/dist/webcomponents/p-6b229318.entry.js +0 -1
  559. package/dist/webcomponents/p-6fc1ace5.entry.js +0 -1
  560. package/dist/webcomponents/p-716d41f2.entry.js +0 -1
  561. package/dist/webcomponents/p-7253f1ea.entry.js +0 -1
  562. package/dist/webcomponents/p-80b662de.entry.js +0 -1
  563. package/dist/webcomponents/p-82164a5e.entry.js +0 -1
  564. package/dist/webcomponents/p-8532c68c.entry.js +0 -1
  565. package/dist/webcomponents/p-8590c5df.entry.js +0 -1
  566. package/dist/webcomponents/p-8e555a6e.entry.js +0 -1
  567. package/dist/webcomponents/p-96f89c69.entry.js +0 -1
  568. package/dist/webcomponents/p-98a39544.entry.js +0 -1
  569. package/dist/webcomponents/p-9a9f9c57.entry.js +0 -1
  570. package/dist/webcomponents/p-B8Ovjy6S.js +0 -1
  571. package/dist/webcomponents/p-BE5Nvydk.js +0 -1
  572. package/dist/webcomponents/p-BGHVK-vQ.js +0 -1
  573. package/dist/webcomponents/p-BPCw4WEY.js +0 -1
  574. package/dist/webcomponents/p-BhrFjjAs.js +0 -1
  575. package/dist/webcomponents/p-Bond4qGX.js +0 -1
  576. package/dist/webcomponents/p-BpEw7AJl.js +0 -1
  577. package/dist/webcomponents/p-C-WgCIei.js +0 -1
  578. package/dist/webcomponents/p-CCpqJxzB.js +0 -1
  579. package/dist/webcomponents/p-CLpgfEbx.js +0 -1
  580. package/dist/webcomponents/p-CRYPNa2o.js +0 -1
  581. package/dist/webcomponents/p-CeNlJX4-.js +0 -1
  582. package/dist/webcomponents/p-CnnRWu7z.js +0 -1
  583. package/dist/webcomponents/p-Ct-uNz2r.js +0 -1
  584. package/dist/webcomponents/p-CvChBLtI.js +0 -1
  585. package/dist/webcomponents/p-CwHYDF33.js +0 -1
  586. package/dist/webcomponents/p-CyXXks-Q.js +0 -1
  587. package/dist/webcomponents/p-Czro_9VO.js +0 -1
  588. package/dist/webcomponents/p-DKClunJd.js +0 -1
  589. package/dist/webcomponents/p-DOB09NZD.js +0 -1
  590. package/dist/webcomponents/p-DUdzWNqB.js +0 -1
  591. package/dist/webcomponents/p-D_FOQEGU.js +0 -1
  592. package/dist/webcomponents/p-DaS3t0DL.js +0 -1
  593. package/dist/webcomponents/p-Dge4w7_c.js +0 -1
  594. package/dist/webcomponents/p-DkWBoLsd.js +0 -1
  595. package/dist/webcomponents/p-DknV-QPT.js +0 -1
  596. package/dist/webcomponents/p-DuiQuWNq.js +0 -1
  597. package/dist/webcomponents/p-Dw6NWKHn.js +0 -1
  598. package/dist/webcomponents/p-DzPrenCi.js +0 -1
  599. package/dist/webcomponents/p-NqdaxjDT.js +0 -1
  600. package/dist/webcomponents/p-YDuIVoos.js +0 -1
  601. package/dist/webcomponents/p-a2db11b5.entry.js +0 -1
  602. package/dist/webcomponents/p-a31913e3.entry.js +0 -1
  603. package/dist/webcomponents/p-a4d457e9.entry.js +0 -1
  604. package/dist/webcomponents/p-b8ee41c1.entry.js +0 -1
  605. package/dist/webcomponents/p-bde749ac.entry.js +0 -1
  606. package/dist/webcomponents/p-bf16b11c.entry.js +0 -1
  607. package/dist/webcomponents/p-ce291c6a.entry.js +0 -1
  608. package/dist/webcomponents/p-d82b509a.entry.js +0 -1
  609. package/dist/webcomponents/p-d9b06582.entry.js +0 -1
  610. package/dist/webcomponents/p-dbc02ba8.entry.js +0 -1
  611. package/dist/webcomponents/p-dcad0df5.entry.js +0 -1
  612. package/dist/webcomponents/p-e03630ec.entry.js +0 -1
  613. package/dist/webcomponents/p-e07sVz4Z.js +0 -1
  614. package/dist/webcomponents/p-e563df65.entry.js +0 -1
  615. package/dist/webcomponents/p-ec9bb3f6.entry.js +0 -1
  616. package/dist/webcomponents/p-ecf6a315.entry.js +0 -1
  617. package/dist/webcomponents/p-f7e24a51.entry.js +0 -1
  618. package/dist/webcomponents/p-hDoH7hHP.js +0 -1
  619. package/dist/webcomponents/p-pGzabKc7.js +0 -1
  620. package/dist/webcomponents/p-zucQG3cz.js +0 -1
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-Bta_r52Z.js";import{M as a}from"./p-DOb1iL29.js";import{a as e}from"./p-BnE7qgLh.js";import{P as p,Q as o}from"./p-BrLVc_85.js";const s="created_at,amount,status,payment_type,description,payers_name,last_four_digits",r={created_at:()=>t("th",{part:p,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:p,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:p,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:p,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:p,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:p,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:p,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method")},i={created_at:(a,p)=>t("td",{part:o(p)},t("div",{class:"fw-bold"},e(a.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},e(a.created_at,{showTime:!0}))),amount:(a,e)=>t("td",{part:o(e)},a.formattedPaymentAmount(a.amount)),status:(e,p)=>t("td",{part:o(p)},a(e.status)),payment_type:(a,e)=>t("td",{part:o(e)},a.payment_type),description:(a,e)=>t("td",{part:o(e)},a.description),payers_name:(a,e)=>t("td",{part:o(e)},a.payers_name),last_four_digits:(a,e)=>t("td",{part:o(e)},a.last_four_digits)};export{i as a,s as d,r as p}
@@ -1 +1 @@
1
- import{h as t}from"./p-Bta_r52Z.js";import{B as e,a as i}from"./p-B4MIwTdb.js";import{I as a,J as n}from"./p-_6eQgwfE.js";import{e as r}from"./p-9REosSLu.js";const o="nickname,provider_serial_number,status",s={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},c={nickname:(e,i)=>t("td",{part:n(i)},e.nickname),model_name:(e,i)=>t("td",{part:n(i)},e.model_name),id:(e,i)=>t("td",{part:n(i)},e.id),provider:(e,i)=>t("td",{part:n(i)},r(e.provider)),provider_serial_number:(e,i)=>t("td",{part:n(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:n(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:n(i)},e.sub_account_name),status:(a,r)=>t("td",{part:n(r)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"}}[a.status])))};export{c as a,o as d,s as t}
1
+ import{h as t}from"./p-Bta_r52Z.js";import{B as e,a as i}from"./p-BC1KMlPG.js";import{P as a,Q as n}from"./p-BrLVc_85.js";import{e as r}from"./p-BnE7qgLh.js";const o="nickname,provider_serial_number,status",c={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},s={nickname:(e,i)=>t("td",{part:n(i)},e.nickname),model_name:(e,i)=>t("td",{part:n(i)},e.model_name),id:(e,i)=>t("td",{part:n(i)},e.id),provider:(e,i)=>t("td",{part:n(i)},r(e.provider)),provider_serial_number:(e,i)=>t("td",{part:n(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:n(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:n(i)},e.sub_account_name),status:(a,r)=>t("td",{part:n(r)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"}}[a.status])))};export{s as a,o as d,c as t}
@@ -0,0 +1 @@
1
+ import{C as o}from"./p-SdntD1xf.js";import{g as a,a as r}from"./p-C5RuuShs.js";const t=({authToken:t,service:s})=>async({payoutId:e,onError:c})=>{try{const{data:o}=await s.fetchCSV(e,t),a=document.createElement("a");a.href=o.csv_url,a.click()}catch(t){c({error:r(t),code:a(null==t?void 0:t.code),severity:o.ERROR})}};export{t as m}
@@ -1 +1 @@
1
- import{f as t}from"./p-9REosSLu.js";class i{constructor(t){this.payment_mode=h[t.payment_mode],this.payment_token=t.payment_token,this.payment_status=t.payment_status,this.payment_response=t.payment_response,this.payment_error_code=t.payment_error_code,this.payment_error_description=t.payment_error_description,this.checkout_id=t.checkout_id,this.additional_transactions=t.additional_transactions,this.payment_id=t.payment_id,this.payment_method_id=t.payment_method_id,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}}class s{constructor(t){var s;this.id=t.id,this.description=t.description,this.payment_intent_id=t.payment_intent_id,this.account_id=t.account_id,this.platform_account_id=t.platform_account_id,this.payment_amount=t.payment_amount,this.payment_client_id=t.payment_client_id,this.payment_description=t.payment_description,this.payment_methods=t.payment_methods,this.payment_method_group_id=t.payment_method_group_id,this.payment_settings=t.payment_settings,this.bnpl=t.bnpl,this.total_amount=t.total_amount,this.insurance_amount=t.insurance_amount,this.status=e[t.status],this.payment_currency=t.payment_currency,this.mode=t.mode,this.statement_descriptor=t.statement_descriptor,this.application_fees=t.application_fees,this.successful_payment_id=t.successful_payment_id,this.created_at=t.created_at,this.updated_at=t.updated_at,this.completions=null===(s=t.completions)||void 0===s?void 0:s.map((t=>new i(t)))}get payment_mode(){var t,i,s,o,e,n;let d;if(!this.completions||0===this.completions.length)return h.unknown;const r=this.completions.sort(((t,i)=>new Date(i.updated_at).getTime()-new Date(t.updated_at).getTime()))[0];return r.payment_mode?d=r.payment_mode:(null===(s=null===(i=null===(t=r.payment_response)||void 0===t?void 0:t.data)||void 0===i?void 0:i.payment_method)||void 0===s?void 0:s.card)?d=h.card:(null===(n=null===(e=null===(o=r.payment_response)||void 0===o?void 0:o.data)||void 0===e?void 0:e.payment_method)||void 0===n?void 0:n.bank_account)&&(d=h.bank_account),d}formattedPaymentAmount(i){return t(i,this.payment_currency)}}var h,o,e,n;!function(t){t.bnpl="Buy Now Pay Later",t.ecom="E-commerce",t.card="Card",t.bank_account="Bank Account",t.card_present="Card Present",t.unknown=""}(h||(h={})),function(t){t.bnpl="bnpl",t.ecom="ecom"}(o||(o={})),function(t){t.created="created",t.completed="completed",t.attempted="attempted",t.expired="expired"}(e||(e={})),function(t){t.failed="failed",t.succeeded="succeeded"}(n||(n={}));export{s as C,e as I,o as a}
1
+ import{f as t}from"./p-BnE7qgLh.js";class i{constructor(t){this.payment_mode=h[t.payment_mode],this.payment_token=t.payment_token,this.payment_status=t.payment_status,this.payment_response=t.payment_response,this.payment_error_code=t.payment_error_code,this.payment_error_description=t.payment_error_description,this.checkout_id=t.checkout_id,this.additional_transactions=t.additional_transactions,this.payment_id=t.payment_id,this.payment_method_id=t.payment_method_id,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}}class s{constructor(t){var s;this.id=t.id,this.description=t.description,this.payment_intent_id=t.payment_intent_id,this.account_id=t.account_id,this.platform_account_id=t.platform_account_id,this.payment_amount=t.payment_amount,this.payment_client_id=t.payment_client_id,this.payment_description=t.payment_description,this.payment_methods=t.payment_methods,this.payment_method_group_id=t.payment_method_group_id,this.payment_settings=t.payment_settings,this.bnpl=t.bnpl,this.total_amount=t.total_amount,this.insurance_amount=t.insurance_amount,this.status=e[t.status],this.payment_currency=t.payment_currency,this.mode=t.mode,this.statement_descriptor=t.statement_descriptor,this.application_fees=t.application_fees,this.successful_payment_id=t.successful_payment_id,this.created_at=t.created_at,this.updated_at=t.updated_at,this.completions=null===(s=t.completions)||void 0===s?void 0:s.map((t=>new i(t)))}get payment_mode(){var t,i,s,o,e,n;let d;if(!this.completions||0===this.completions.length)return h.unknown;const r=this.completions.sort(((t,i)=>new Date(i.updated_at).getTime()-new Date(t.updated_at).getTime()))[0];return r.payment_mode?d=r.payment_mode:(null===(s=null===(i=null===(t=r.payment_response)||void 0===t?void 0:t.data)||void 0===i?void 0:i.payment_method)||void 0===s?void 0:s.card)?d=h.card:(null===(n=null===(e=null===(o=r.payment_response)||void 0===o?void 0:o.data)||void 0===e?void 0:e.payment_method)||void 0===n?void 0:n.bank_account)&&(d=h.bank_account),d}formattedPaymentAmount(i){return t(i,this.payment_currency)}}var h,o,e,n;!function(t){t.bnpl="Buy Now Pay Later",t.ecom="E-commerce",t.card="Card",t.bank_account="Bank Account",t.card_present="Card Present",t.unknown=""}(h||(h={})),function(t){t.bnpl="bnpl",t.ecom="ecom"}(o||(o={})),function(t){t.created="created",t.completed="completed",t.attempted="attempted",t.expired="expired"}(e||(e={})),function(t){t.failed="failed",t.succeeded="succeeded"}(n||(n={}));export{s as C,e as I,o as a}
@@ -0,0 +1 @@
1
+ var e={name:"@justifi/webcomponents",version:"5.7.4"};export{e as p}
@@ -1 +1 @@
1
- import{h as t}from"./p-Bta_r52Z.js";import{a}from"./p-9REosSLu.js";import{M as e}from"./p-BSUCBhkJ.js";import{I as o,J as s}from"./p-_6eQgwfE.js";const p="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",r={created_at:()=>t("th",{part:o,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:o,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:o,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:o,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:o,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:o,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:o,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:o,scope:"col",title:"Export CSV"})},c=o=>({created_at:(e,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0}))),sub_account_name:(a,e)=>t("td",{part:s(e)},a.sub_account_name),payments_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.payments_total)),refunds_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.refunds_total)),fees_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.fees_total)),other_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.other_total)),amount:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.amount)),status:(a,o)=>t("td",{part:s(o)},e(a.status)),csv:(a,e)=>t("td",{part:s(e)},t("a",{href:"#",onClick:t=>{t.preventDefault(),o(a.id)}},"CSV"))});export{c as a,p as d,r as p}
1
+ import{h as t}from"./p-Bta_r52Z.js";import{a}from"./p-BnE7qgLh.js";import{M as e}from"./p-CNv7zeGM.js";import{P as o,Q as s}from"./p-BrLVc_85.js";const p="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",r={created_at:()=>t("th",{part:o,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:o,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:o,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:o,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:o,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:o,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:o,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:o,scope:"col",title:"Export CSV"})},c=o=>({created_at:(e,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0}))),sub_account_name:(a,e)=>t("td",{part:s(e)},a.sub_account_name),payments_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.payments_total)),refunds_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.refunds_total)),fees_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.fees_total)),other_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.other_total)),amount:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.amount)),status:(a,o)=>t("td",{part:s(o)},e(a.status)),csv:(a,e)=>t("td",{part:s(e)},t("a",{href:"#",onClick:t=>{t.preventDefault(),o(a.id)}},"CSV"))});export{c as a,p as d,r as p}
@@ -0,0 +1 @@
1
+ import{a as e}from"./p-DVnVdicA.js";import{S as a}from"./p-BX8GieXu.js";import{b as t,a as s,r,s as n,c as i}from"./p-yH3TC3ZQ.js";const c=e=>""===e?null:e,u=/^\d+$/,l=/P\.?\s?O\.?\s?Box|Postal\sBox/i,o=e().email("Enter valid email").transform(c),m=e().matches(/^\d{10}$/,"Enter valid phone number").transform(c),d=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(c),b=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(c),h=e().matches(/^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,"Enter valid website url").transform(c),v=e().oneOf(t.map((e=>e.value)),"Select business classification").transform(c),p=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").transform(c),E=e().matches(u,"Enter valid tax id, SSN, or EIN").test("not-repeat","Enter valid tax id, SSN, or EIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid tax id, SSN, or EIN",(e=>"123456789"!==e)).transform(c),N=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(c),S=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(c),y=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").transform(c),g=a=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${a} must be at least 18 years old`,(e=>{const a=new Date(e),t=new Date;return t.setFullYear(t.getFullYear()-18),a<=t})).transform(c),w=e().matches(/^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/,"Enter valid SSN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SSN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SSN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SSN",(e=>"123456789"!==e)).transform(c),A=e().min(5,"Address must be at least 5 characters").max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!l.test(e))).transform(c),x=e().max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!l.test(e))).transform(c),$=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").transform(c),f=e().oneOf(a.map((e=>e.value)),"Enter a 2-letter state abbreviation, such as CA").transform(c),D=e().matches(/^[0-9]{5}$/,"Enter valid postal code").transform(c),B=e().matches(u,"Enter valid revenue").transform(c),C=e().matches(u,"Enter valid payment volume").transform(c),I=e().oneOf(s.map((e=>e.value)),"Select when service is received").transform(c),_=e().oneOf(r.map((e=>e.value)),"Select recurring payments").transform(c),j=e().when("business_recurring_payments",{is:e=>"Yes"===e,then:e=>e.required("Enter recurring payments percentage"),otherwise:e=>e.nullable()}).transform(c),z=e().oneOf(n.map((e=>e.value)),"Select seasonal business").transform(c),P=e().transform(c),q=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(c),O=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(c),T=e().oneOf(i.map((e=>e.value)),"Select account type").transform(c),Z=e().min(4,"Account number must be at least 4 digits").max(17,"Account number must be less than 17 digits").matches(u,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(c),V=e().length(9,"Routing number must be 9 digits").matches(u,"Enter valid routing number").test("not-repeat","Enter valid routing number",(e=>!/^(\d)\1+$/.test(e))).test("valid","Enter valid routing number",(e=>(e=>{if(!e)return!1;const a=Array.from(String(e),Number);return 9===a.length&&0==(3*(a[0]+a[3]+a[6])+7*(a[1]+a[4]+a[7])+(a[2]+a[5]+a[8]))%10})(e))).transform(c);export{Z as A,T as B,O as C,q as D,b as a,v as b,d as c,N as d,o as e,_ as f,I as g,C as h,p as i,B as j,D as k,f as l,$ as m,x as n,P as o,m as p,A as q,j as r,z as s,E as t,w as u,g as v,h as w,y as x,S as y,V as z}
@@ -0,0 +1 @@
1
+ var r,n;!function(r){r.MISSING_PROPS="missing-props",r.FETCH_ERROR="fetch-error",r.PATCH_ERROR="patch-error",r.POST_ERROR="post-error",r.UNKNOWN_ERROR="unknown-error",r.TOKENIZE_ERROR="tokenize-error",r.NOT_AUTHENTICATED="not-authenticated",r.INVALID_PARAMETER="invalid-parameter",r.PROVISIONING_REQUESTED="provisioning-already-requested",r.INVALID_REFUND_AMOUNT="invalid-refund-amount"}(r||(r={})),function(r){r.INFO="info",r.WARNING="warning",r.ERROR="error"}(n||(n={}));export{n as C,r as a}
@@ -0,0 +1 @@
1
+ import{h as r}from"./p-Bta_r52Z.js";import{U as o}from"./p-BrLVc_85.js";const s=s=>r("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:o},s.text);export{s as H}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-Bta_r52Z.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as d,c as i}from"./p-DnX5CZFd.js";import{e as l,f as r,t as c,g as f,h as p,j as o}from"./p-BrLVc_85.js";import{S as n}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{c as m,a as b}from"./p-BnE7qgLh.js";import"./p-BFTU3MAI.js";import"./p-D3BIZZrc.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=m(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(d[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){const e=Object.assign({},s);return a(n,{key:"41c3ce22404b0e8e536d8c230886eadc34b77208"},a("table-filters-menu",{key:"864a91207169043f08a47c90c8f867d0e32031e2",params:e,clearParams:i,part:l},a("div",{key:"d2a98ef4ab0094f708de21c2c3e02ec149b5e72f",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"00b9b884348d47e7dc1670064c1c0486eefc0a21",class:"p-2"},a("form-control-text",{key:"405ee21a3780942784738a0cc0a3b423a03c2b5e",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||s.payment_id,disabled:!!this.paymentId,part:r})),a("div",{key:"5401d6d05995af1fa7ab801987d79711c16aecc1",class:"p-2"},a("form-control-text",{key:"e1518fddbd3e62af0ddce873a191376b2504c9e0",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:c})),a("div",{key:"131c39879c3823c3d380d4939e6b93a2771bc86a",class:"p-2"},a("form-control-select",{key:"856053d6ce5381956a18c6a21df169898fa71616",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||s.payment_status,disabled:!!this.paymentStatus,part:f})),a("div",{key:"76ad87197605e45ae06fefc547755df29741fa18",class:"p-2"},a("form-control-date",{key:"7cdd9b684a87e2da99ecfe963349433bf7ac1d45",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:b(this.createdAfter,{showInputDateTime:!0})||b(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:p})),a("div",{key:"ae78b441f6dbbbdca902fb4f83f7531e80322ff2",class:"p-2"},a("form-control-date",{key:"34d321e3cd47ccd95ea30d7a54cfb36e34af64db",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:b(this.createdBefore,{showInputDateTime:!0})||b(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:o})))))}};export{u as justifi_payments_list_filters}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e}from"./p-Bta_r52Z.js";import{D as i}from"./p-Bg2SZArf.js";import{a as r,D as h}from"./p-7MWRbTXI.js";const o=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event"),this.isLoading=!0,this.showDisputeResponseForm=!1}disputeResponseHandler(t){t.detail.name===i.respondToDispute&&(this.showDisputeResponseForm=!0),t.detail.name===i.cancelDispute&&(this.showDisputeResponseForm=!1)}disputeSubmittedHandler(){this.fetchData()}componentWillLoad(){this.getDispute&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.isLoading=!0,this.getDispute({onSuccess:({dispute:t})=>{this.dispute=new r(t),this.isLoading=!1,this.dispute.status!==h.needsResponse&&(this.showDisputeResponseForm=!1)},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.isLoading=!1}})}render(){return e("div",{key:"6374c478bc8907019b48e1a53b0ecb2e171ab2e4"},this.showDisputeResponseForm?e("justifi-dispute-response",{disputeId:this.disputeId,disputeResponse:this.dispute.dispute_response,authToken:this.authToken}):e("justifi-dispute-notification",{dispute:this.dispute,authToken:this.authToken,isLoading:this.isLoading}))}static get watchers(){return{getDispute:["updateOnPropChange"]}}};export{o as justifi_dispute_management_core}
1
+ import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import{D as e}from"./p-Bg2SZArf.js";import{a as r,D as h}from"./p-7MWRbTXI.js";const o=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.isLoading=!0,this.showDisputeResponseForm=!1}disputeResponseHandler(t){t.detail.name===e.respondToDispute&&(this.showDisputeResponseForm=!0),t.detail.name===e.cancelDispute&&(this.showDisputeResponseForm=!1)}disputeSubmittedHandler(){this.fetchData()}componentWillLoad(){this.getDispute&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.isLoading=!0,this.getDispute({onSuccess:({dispute:t})=>{this.dispute=new r(t),this.isLoading=!1,this.dispute.status!==h.needsResponse&&(this.showDisputeResponseForm=!1)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i}),this.isLoading=!1}})}render(){return i("div",{key:"5a8663529813801b730d449c835cfafb9924d860"},this.showDisputeResponseForm?i("justifi-dispute-response",{disputeId:this.disputeId,disputeResponse:this.dispute.dispute_response,authToken:this.authToken}):i("justifi-dispute-notification",{dispute:this.dispute,authToken:this.authToken,isLoading:this.isLoading}))}static get watchers(){return{getDispute:["updateOnPropChange"]}}};export{o as justifi_dispute_management_core}
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-Bta_r52Z.js";import{c as t,a as i,F as c}from"./p-Bond4qGX.js";import{am as d}from"./p-_6eQgwfE.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().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(){let e="";const a=new Promise(((a,t)=>{const i=new FileReader;i.onload=t=>{e=t.target.result,a(e)},i.onerror=()=>{t(new Error("Error reading file"))},i.readAsDataURL(this._file)}));return await a,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,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},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 c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"f407dba7be750c75d9bd3163647e62b57f7b32df"},a("div",{key:"5d690bf3227112c1d6f86d956bb98dd5bb2d585d",class:"row gy-3"},a("div",{key:"e12ecbe52d9383b449cde0ffafe32b952c293ad8",class:"col-12"},a("h2",{key:"aaeeeed0024985d9be89ce02f252ef999dd9d197",class:"h5",part:d},"Additional Evidence")),a("div",{key:"aedfe85e833e387998815246faa21f46184ddcdb",class:"col-12"},a("form-control-textarea",{key:"affa35eb587e6b70546f18414d7436bc267c0201",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:"ec650c06058b30773dacf1c1f9cafedb526ced90",class:"col-12"},a("form-control-file-v2",{key:"d9a75a49a8ada0dfe0b2466ec03a8842c75bddf8",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:i().nullable(),cancellation_rebuttal:i().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 c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"53b8b9ca5ef0b2fbb3801aeed7c442517b54ffa8"},a("div",{key:"e122c095d856545b52d5958db10b8e982de73073",class:"row gy-3"},a("div",{key:"9ddc0fa91765209b3fa393c0ebf17598af90b3b9",class:"col-12"},a("h2",{key:"a7e3001dbc2b36e20e2a1dd1d16b44a023610010",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"7b5481566998713ba87519b999e5acdf3eb0ef52",class:"col-12"},a("form-control-textarea",{key:"c67604fa2133a3ed9b5b67a7150e488673d21478",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:"4b96c57d15060a0a6c42bede64110d67be557060",class:"col-12"},a("form-control-textarea",{key:"60ddac4a5c2574461dbb28281b89851d0e89600c",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:"42015bc3bbcbf208d39906d7b270776e3e90ddac",class:"col-12"},a("form-control-file-v2",{key:"76365a80cd7068267a8a40c6be608a9344e884ce",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().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 c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"a8fde002d56a1c5ff7bace9e7ad8282b3e8396c1"},a("div",{key:"b1ec9e406e26de2bdb179afbfa3a9a7ad7612fe9",class:"row gy-3"},a("div",{key:"a0a31924c5cc7f0a35859899851e003eec970c50",class:"col-12"},a("h2",{key:"de62f11cc36fbf96a0a1d409cc35adba2e997bb8",class:"h5",part:d},"Customer Details")),a("div",{key:"65cd3d78b510ad95f97dcadcbb60d91caf950f22",class:"col-12"},a("form-control-text",{key:"e539cbbac218f3d1927f3ddccca4c0c0e958eec1",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:"a6eca53da11014123325064fe09b6df37709f113",class:"col-12"},a("form-control-text",{key:"9b874331a62dffb2f00af002b0637fdd0f1a8d2c",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:"69be313a715c3fe9a78ecffaca75b3a4dff5bed2",class:"col-12"},a("form-control-textarea",{key:"e366f5ebed7a117c2e1f4e1c3c3a740aa9e5475a",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"3b177078766a8b04f3de68889cb991b23c15752c",class:"col-12"},a("form-control-file-v2",{key:"0d2cc6edded1211028460ef506ef470d14a09718",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"4a624251414dcfad4b5e2b6d34b99dc2ef9b59dc",class:"col-12"},a("form-control-file-v2",{key:"442dc7cc2f851879ebb1504d761e2315c6f45141",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:i().nullable(),duplicate_charge_explanation:i().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 c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"fcf2b846ac2f612a53895836df0a5287da15b20a"},a("div",{key:"953be0fa8732b94991d1c078a9102666e5a91a81",class:"row gy-3"},a("div",{key:"60f7ef7802a5f3ff7cd2167ba747d37e258e3f99",class:"col-12"},a("h2",{key:"3e1336abfca85298ee392459dfa22401a8e47259",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"75fa5b181b617cd68010e01f91a8513c9c828acb",class:"col-12"},a("form-control-text",{key:"b54f2d3d86aabc2072acaf2b961de118934bedcd",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:"614f070bd6d0aad1e2e64c2e2f9c447402fd161a",class:"col-12"},a("form-control-textarea",{key:"a0653f81b9e237b669bfc47e7788b9027a1d5a6a",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:"f358128dbb1715a40841521f9602e30bb6c7d702",class:"col-12"},a("form-control-file-v2",{key:"ad7f1b8219560600ef3fba20a0b968a9d3930b3d",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().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 c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"fb40a53ecb355271bfdff95eed90e6b5e4827ae9"},a("div",{key:"fcbcdd6a8bb4891ac5a3cb26d54d26d6f317f401",class:"row gy-3"},a("div",{key:"b605ae860e8e6efd21ee21ed851d23af5e813c04",class:"col-12"},a("h2",{key:"a7c8d699c79f92334f159025acbbe65969452594",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"1a623a273c2e6a82ffcb9c709d6953ba01590a02",class:"col-12"},a("form-control-text",{key:"7d8b0ee30a8c7b6bef84f19fe7734484ba84b0e1",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:"d50d372a0881ce648fa61ba96e61f3f28d4136ae",class:"col-12"},a("form-control-file-v2",{key:"e635514b9a48cfabb7d16c53293585ad1740c608",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:i().nullable(),service_date:i().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 c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"53894694d5f6c1cfe7d8d699af69e4dc6c496fb8"},a("div",{key:"c1cb70ef48be5e50bdb1fd0d47416b48342f7620",class:"row gy-3"},a("div",{key:"837aa7683621d26ee08a1f8f3b1f5ae65b63bd94",class:"col-12"},a("h2",{key:"9c51ee3f6df442237cd3c23306f79b7e15fed133",class:"h5",part:d},"Product & Service Details")),a("div",{key:"259ea001a1896c34088a6a03a725564c5cd48a74",class:"col-12"},a("form-control-text",{key:"f237fc051614689b9b8c8227d6a6d7266a9adeaa",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:"a0f7a0cb813c7ee2a4423abc1506f7c775ad9e07",class:"col-12"},a("form-control-date",{key:"fca7aef52b721fa472b5459b9dc47f95dca1ce76",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:"f285bfe4242cc1179c5a7b4864b907101edeaebb",class:"col-12"},a("form-control-file-v2",{key:"9ad064a5be5381cccbe33e4dc1e00879996ad513",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().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 c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"839a9b7ea7f978987e44f643af2d2aa8ac9557ff"},a("div",{key:"410211fe20a2e9ab23ec1e3f172b200afb2db8ae",class:"row gy-3"},a("div",{key:"9e6121b760cf47feaeffdc231780490ce47342f7",class:"col-12"},a("h2",{key:"fe64c8a2be67d179ddc4157c4fa8876937c2e4b8",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"db91b2f1c102026cc6998f9f8163761d1bf85024",class:"col-12"},a("form-control-textarea",{key:"199cd5d32ff726681a918ced7f1790bd292e0cf7",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:"e48e83b580182698374627889cf0cff69dd3779f",class:"col-12"},a("form-control-textarea",{key:"627faade4d3afaad7d700494652d559ede4f69af",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:"bdfca2b3878de2a665961fd6cd4fc10833f385bc",class:"col-12"},a("form-control-file-v2",{key:"a8d0d09bf0d8298ba85ead4b643d5ea774336ba0",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"41f43575895d15f34bfa2f6095462068cd6ad5d6",class:"col-12"},a("form-control-file-v2",{key:"aceae6c113bc38019bc20125eb3e8be0d111c15f",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().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 c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"9e142fde27da140959115d1acf4a64d7420f90ba"},a("div",{key:"bf322d6ec351e67bd4f3fdfec759e1f5c5d381a6",class:"row gy-3"},a("div",{key:"165a55dc932d0110728c87726231d0cb4b962650",class:"col-12"},a("h2",{key:"43f318effe869349595025a76ced5ea39093a0ef",class:"h5",part:d},"Shipping Details")),a("div",{key:"1de38ece17aa8b93cfc00858a4d495a950d46239",class:"col-12"},a("form-control-text",{key:"d9cfd173732a42abf831ee632ca05d3db78b7135",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:"5b298a18d97e06904c22c9a918c6f9ebc25f8219",class:"col-12"},a("form-control-text",{key:"c164c2bfc1772498f3e21c51e2979479021cf86d",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:"82128f9527e8061ecf2897af65d908af03c46bbe",class:"col-12"},a("form-control-date",{key:"13e602a61a85978f129890423a36a95a8b055258",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"5591510c56724f58567c88792cbbeb3cd15e1d0e",class:"col-12"},a("form-control-textarea",{key:"1e7cbc326345feebd0ffae9b6ec56bfbc36a8193",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"d2d1026fd1c7c3b32a6988fb940c431948630b08",class:"col-12"},a("form-control-file-v2",{key:"21abf54f6a64980c73200ae89130626316917aa7",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-Bta_r52Z.js";import{c as t,a as i,F as c}from"./p-DVnVdicA.js";import{ak as d}from"./p-BrLVc_85.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().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(){let e="";const a=new Promise(((a,t)=>{const i=new FileReader;i.onload=t=>{e=t.target.result,a(e)},i.onerror=()=>{t(new Error("Error reading file"))},i.readAsDataURL(this._file)}));return await a,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,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},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 c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"5e572a30ed53b4fbcf3808ba545ce2fdf5b988aa"},a("div",{key:"90870dc58e0eab72e64ae03bdaa25bb1749d8e23",class:"row gy-3"},a("div",{key:"cc3b6f19687d02e047744e8a53d22a2f91a8b968",class:"col-12"},a("h2",{key:"230c20dc3f75e48afa4008369374fd8c175cb7ea",class:"h5",part:d},"Additional Evidence")),a("div",{key:"7b49c8012cfc07c44399969f8505db786389b38b",class:"col-12"},a("form-control-textarea",{key:"349a8a2ebda338e170c90266801ae93b6f9482ea",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:"01cd368a2278c5de462f0998a50ba4ca5889be26",class:"col-12"},a("form-control-file-v2",{key:"f95d0b78704f9a1fd154003edbbffb062659ae27",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:i().nullable(),cancellation_rebuttal:i().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 c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"6dc5100426e8e4124d19a375250f85f8e15b28d4"},a("div",{key:"fb950108be5fd4096a7717c88943938261787f99",class:"row gy-3"},a("div",{key:"08f85a06288e19939a16d3fa52ef3b3199c56f36",class:"col-12"},a("h2",{key:"a585b93921814b1ffbb95c6f9c1de37d4104049b",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"3b7c620518006738d2e36863b62a72142f167733",class:"col-12"},a("form-control-textarea",{key:"70a76160b0d29648a9e0598dd5b867a382935e03",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:"e06d4c794bad47e366ca702e764307fdab5e33a8",class:"col-12"},a("form-control-textarea",{key:"1b783920c5a5b94bff60d4b061cc7cc6666cc184",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:"3cb3371c1d3727e55140ea60a0cff96bc0f42702",class:"col-12"},a("form-control-file-v2",{key:"738a456bf4653240180963fa7e5ab20a7a4add7c",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().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 c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"70e29d650d5304522f927c15b4eb5e62e203c5e0"},a("div",{key:"f50422b29cb2a4f3bca911ced94dc681adb3fc41",class:"row gy-3"},a("div",{key:"f29816d9281ea4c4db5018d3b7edb1600569357a",class:"col-12"},a("h2",{key:"a2889c95c293bf0bbf97c16e4486e307ca87729c",class:"h5",part:d},"Customer Details")),a("div",{key:"9cd45719434a1740f67b73c13fd08e0fe562168e",class:"col-12"},a("form-control-text",{key:"5a30a3aef7fbe2d3013c46e43a437724dae41213",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:"9812e1f9f6df949b9f15b2c3f28857db7dcf5cb7",class:"col-12"},a("form-control-text",{key:"10b146053a399039e8dbd42c3cab53b4b55c0ec3",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:"2742a0922a223bd60d6e3d08a55190742ecf5112",class:"col-12"},a("form-control-textarea",{key:"41491e238c75716520d747cbf9f1bcc329a2d686",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"71074f31e565c24107b91b04d9aa16da77ba618c",class:"col-12"},a("form-control-file-v2",{key:"17f70cf96927b01e65430e13c2d21209e9170603",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"ec696695191e68c7ceb0cc41f99f9e53f2d59da1",class:"col-12"},a("form-control-file-v2",{key:"562ff8b3819f536d491f2e2e55a85a55fcda0e1c",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:i().nullable(),duplicate_charge_explanation:i().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 c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"0b0d73b396b32f29fa389d3981d48c3f30f96fd7"},a("div",{key:"2fd16a4cf964c863a59789a2be60d94b27a95de8",class:"row gy-3"},a("div",{key:"48c15f7db3285caa9164d815615b82a84283fbfe",class:"col-12"},a("h2",{key:"397b3026311bf57588b172146fc9822f99ede63e",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"c825b6efd428bee298b9b0ddf2265378cf999de9",class:"col-12"},a("form-control-text",{key:"b43283087a10826bf8e582a1e863ed4982b5c000",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:"66d5cefa16c341f5c523eaa46de5c11f5b16e619",class:"col-12"},a("form-control-textarea",{key:"f83573136fc2ce108f186f9434f46a3f157bd102",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:"cc47dc1d9dbac962d27494b5ff3fef572c98c7b4",class:"col-12"},a("form-control-file-v2",{key:"3cf06b6d61edd6ac96d02b12639d040f698b2526",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().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 c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"1a4a1d78529c48b8f32029a3efa05b4430c6d271"},a("div",{key:"593d167f4e6b610ac3cdb8a04b4eee30a1cb4f91",class:"row gy-3"},a("div",{key:"39440c3a2802b823c85f251c4393ba76bad287c0",class:"col-12"},a("h2",{key:"f5ec8cce1bbadb772ac6dbe668cf54187d2690d7",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"b9020a773c45a8f59a31ffef44b32253fdb4a551",class:"col-12"},a("form-control-text",{key:"56122eafb7f138f4472a5818cddd32cb0e17fc7e",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:"0737f585271838dd60ab9ee1e6ac83d0c6362b96",class:"col-12"},a("form-control-file-v2",{key:"63590d574ee151cbf82638002dfe513cea471035",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:i().nullable(),service_date:i().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 c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"0e2648d399af18f7959bed2e0fff56fd63b541df"},a("div",{key:"4322c227617147721ab7cf33a5e75a09bc370a0c",class:"row gy-3"},a("div",{key:"e2bc9f0642356a864e7fa323262ead13d4825fdc",class:"col-12"},a("h2",{key:"88af660c9add83da7edc7758d4645db796c80fdf",class:"h5",part:d},"Product & Service Details")),a("div",{key:"dcfb0f64e1b611eb8d53f97950d5922f7358a64c",class:"col-12"},a("form-control-text",{key:"42959d4b7c03d14fdef29a656a5f18d0d89d3b2e",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:"1f4173e79f10a6ac32b860ecbd62fe5c612cc5b2",class:"col-12"},a("form-control-date",{key:"6e8bab228b3a23655cbf71fe6dc72a850b38947c",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:"2e32f65cc5388302d067fb1a8db34e3e529435c2",class:"col-12"},a("form-control-file-v2",{key:"f9fb2ac0c6a2f37a7584eeda2460702b1e0d6cc0",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().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 c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"882eb01880bcfdde30abe10465fecd7390654ed6"},a("div",{key:"de2f238310e4b80976888d147e90047688ad5ada",class:"row gy-3"},a("div",{key:"305af62aa762ae6abff0678998132e8f56707550",class:"col-12"},a("h2",{key:"6e224996b82639c426d129bfd28633f3d3839f6f",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"b2b8d444c594bf92d04fed6640230745c5fb49ba",class:"col-12"},a("form-control-textarea",{key:"f75c6c360c485ac5253164be5d4941d859deb902",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:"1788d1e6ba1ddbe82795ce1a41b901a81c055f6d",class:"col-12"},a("form-control-textarea",{key:"f47fac9b8e0d6b9766311b13c760129bb6335ddd",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:"d96552fee8b4cdddf31148b2d3783a4e1dfb031b",class:"col-12"},a("form-control-file-v2",{key:"3c6c06201ef3a730aed41ab6b8cb62d5ee8d8128",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"ec2271dd9646596df3106f56c6e96f618196046a",class:"col-12"},a("form-control-file-v2",{key:"48f956f2580187fc7baecc5426d5ed0a1050150b",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().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 c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"90641cea619de697d7a90e6e397790f79ceb9376"},a("div",{key:"52d939e26bd26e99240d100897a530b89553e727",class:"row gy-3"},a("div",{key:"01755fbca3430bd3066377e9481038370c49b2d8",class:"col-12"},a("h2",{key:"d273fbe6ff8b7815ba5c2369748a3a20548b0a4d",class:"h5",part:d},"Shipping Details")),a("div",{key:"595f4e63dff85591713a4c895acb6628c8ef8214",class:"col-12"},a("form-control-text",{key:"958169d07544237a72facdc016d4d12ac64a4c48",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:"1d3020a30f95c5ced652871a635aba0152bbc4e3",class:"col-12"},a("form-control-text",{key:"088af20353ec2efcb65a4e597a1fb4aec23cfcbb",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:"536ee74c42d326d7f7f698274c846bfebf0d34dd",class:"col-12"},a("form-control-date",{key:"71ef44bd4c810a567162b7fe92199eceff9be470",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"8887e0daf44be31486563e85cd989eef1da5f5ce",class:"col-12"},a("form-control-textarea",{key:"c34093bc4ee65f4fb092c377a98e01cd69bdbc7c",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"469a5d8c7e28fa2ad430f104f08f387448f70048",class:"col-12"},a("form-control-file-v2",{key:"a2b6c6c0c1cf32430582b97efe6bcc1d4c47147d",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 r}from"./p-Bta_r52Z.js";import{B as t}from"./p-BrLVc_85.js";const o=o=>{const{errorText:e,name:s}=o;return e?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},e):null};export{o as F}
@@ -0,0 +1 @@
1
+ import{r as e,h as t,H as a,c as s,a as c}from"./p-Bta_r52Z.js";import"./p-CBs671Ol.js";import{s as r,d as i,i as o}from"./p-BnE7qgLh.js";import"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{E as l}from"./p--B09FkmB.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as d}from"./p-yH3TC3ZQ.js";import"./p-XYgDHrVL.js";import{n}from"./p-BnjCmwMr.js";import{X as b,D as f,ai as h,P as p,aj as m,c as u,l as y,b as k,R as x,a as j}from"./p-BrLVc_85.js";import{S as v}from"./p-BERbc4aX.js";import"./p-CZfYo5-1.js";import{F as _}from"./p-am93SGf-.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const T=class{constructor(t){e(this,t)}render(){return t("div",{key:"a3ff8b1ff23923beb847e66d6c56a39de9a86434",class:"row gy-3"},t("div",{key:"86f9ba3a8f0f87f7fa67ba0fcf1d7c04f67e9bc5",class:"col-12"},t("form-control-file",{key:"9cc2bc21414c8e3f4b25ac47b76340a4ce569c42",name:"voided_check",label:"Voided Check",documentType:l.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"bee72d6c63514cdbd3200910d3a53b045c60d05d",class:"col-12"},t("form-control-file",{key:"80a79f352d078cd210768b4060cad7014b1060c5",name:"bank_statement",label:"Bank Statement",documentType:l.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},g=class{constructor(t){e(this,t)}render(){return t("div",{key:"b18e803521d67b40e4e5af03a66dcdca0b678968",class:"row gy-3"},t("div",{key:"e2e6667ffbcebb6a9aa50739814e7bbebceaabfa",class:"col-12"},t("form-control-text",{key:"e1ad63fb7db32dbb6ed67cf18919c681d6d192ef",name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"54db821813e7eb931b8f19fad7fce976cdeb0045",class:"col-12"},t("form-control-text",{key:"4ecf222c1918e364f319d07e0a770d68dba099d0",name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"a92c38f2abbcb3dcaee4bc5ea73df44b31adc3f9",class:"col-12"},t("form-control-text",{key:"492ff1a4d1e9c4f2fa9d0e527a34dc5ccb09afe6",name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"8e14e6e3de43822d139085d3a05bfd0e7ae5b1be",class:"col-12"},t("form-control-select",{key:"f6648b6f7c4a475f88b849bf3a75d446bb539c69",name:"account_type",label:"Account Type",options:d,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"68a2efc082f5b6414ebde10b6da4365677dbefca",class:"col-12"},t("form-control-text",{key:"3ef9b3db5882063708ccf1eb282f3e90ed53ce82",name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:n,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"e3270db28269bc25dd4d5a99274f042c1efd1fc6",class:"col-12"},t("form-control-text",{key:"a8e801f65a4cc164cdc7bf186fed67f87abc828f",name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:n,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},B=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(v,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:b},t("div",{class:"card-body"},t("h5",{class:"card-title",part:f},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:h},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:m},e.file_name),t("td",{part:m},e.file_type),t("td",{part:m},r(e.document_type)),t("td",{part:m},`${i(e.created_at)} - ${o(e.created_at)}`))))))))),t("hr",null)):null}},H=class{constructor(t){e(this,t),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.fileSelected=s(this,"fileSelected"),this.isFocused=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=u;return this.errorText&&(e=k),this.disabled&&(e=x),this.isFocused&&(e=j),e}render(){return t(a,{key:"c34cbf8874c33d945d81a93646372ac9dc687362"},t("div",{key:"cacf5f210a0adb6f408ac05efe4279d9eb1ae3b8",class:"form-group d-flex flex-column"},t("div",{key:"936cb5268fa2c63f9931895f7a0b46ed5b4776ec",class:"d-flex align-items-start gap-2"},t("label",{key:"6dc1dd3be36337cc3c4bb72a4e4d42c6e7c2a239",part:y,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"4c4a2c965882e7e96d36b16e6448fa4efd003950",helpText:this.helpText})),t("input",{key:"469cf033fae879306ecbfdcdb9e6d74fdb4b4265",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(_,{key:"7359b6f39ac038230ce1d2d60454a4d4e69c6bb9",errorText:this.errorText,name:this.name})))}get el(){return c(this)}};export{T as bank_account_document_form_inputs,g as bank_account_form_inputs,B as business_documents_on_file,H as form_control_file}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as s}from"./p-Bta_r52Z.js";import{f as i}from"./p-BnE7qgLh.js";import{A as a,ah as r}from"./p-BrLVc_85.js";import{B as d}from"./p-DPUXZApk.js";import{S as c}from"./p-BEDtXmpq.js";import{S as o}from"./p-BERbc4aX.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-SdntD1xf.js";import{g as p,a as f}from"./p-C5RuuShs.js";import{D as l}from"./p-Co9WxzRf.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-n0Sbmvzb.js";import"./p-BFTU3MAI.js";import"./p-BjDSEZvx.js";import"./p-CBs671Ol.js";import"./p-D3BIZZrc.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-7MWRbTXI.js";import"./p--B09FkmB.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DzXsHdKv.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(c,{key:"77119b1227200909f4742e24df0a45e1f631c65c"},this.isLoading&&s("div",{key:"f0766ff057fb2f4b75b34c7d4a386bde43e49652",style:{marginBottom:"8px"}},s(o,{key:"d7268194dea5ac2a3b87aea8e17573b4768e308f",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(o,{key:"f8863e45a917f56be302ca1b0b3d472119f6465c",height:"18px",styles:{marginBottom:"8px"}}),s(o,{key:"c7b8c9c89d9488eea3be8ea0b4536f98a8151487",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"875fe7def317ce1c4547e04e83baf2b232209058",part:a},s("h1",{key:"09646afc2aac3bf4ef9737bc12442660bbafb2dd",class:"h4",part:r},"This payment is disputed"),s("p",{key:"14224cffb16726eaa589118be954e0f844ffaee8"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"415028b91872a2391796872fdffdbee837a2a511",class:"h5"},"Dispute details"),s("div",{key:"c2b8c6be3132f98eb8c686ab88a5a6a68f92a60e",class:"d-table gap-2"},s("div",{key:"d11bd8b3bc680183e8bee40281cc2c294aedbd5a",class:"d-table-row gap-2"},s("span",{key:"d77796c0d2764329c3b482ae49ceb8b4cac03d37",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"716d8af2a250c3237af6e23b43bf50e032e9f203",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"daba4379197533d2a4b246e81139d81cd15761c6",class:"d-table-row gap-2"},s("span",{key:"a039fbf47aff16445e3411c33a7b53716c42866d",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"19087aba5c516d0c71e9f84e8b3323a044ae532a",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"68ef78b15627df3b22bcde4b90f7c216466e7468",class:"d-table-row gap-2"},s("span",{key:"9463c281d76b5e201a55c2993253fc22d04168dc",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"5cffed27038f5571f37377c5023a88c8b7773a59",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"e856d924edac10116781425f6d7c4c8c6b26ced2",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"6d5278a91f79c2fe8fbdd9e391b109a6491b13b6",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"242b9076b482aae731ab6bedc1592a1a826e24c5",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"f3711546ce5bf8b6a4a8689f5db3fdbf58f45bf4"},s("h1",{key:"06e39be43cfacf667919adbd2f4f8c596702c340",class:"h4"},"This payment is disputed and under review"),s("p",{key:"b3bfef2d40e197f8dc9df6f71d9f13017a4b923d"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"580144b1439d6e017726b9731b7bb15e71900092"},s("h1",{key:"42d74d215d23409672449af86e25c945aac33ea1",class:"h4"},"This payment was disputed"),s("p",{key:"4c337e89a32f62c8f03a53eb84737785f4b0bdb4"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"66c0f7bbada42053683dd25776a7c0abdb708315"},s("h1",{key:"273f2d82dbe73a15da3186946763579be2801aa4",class:"h4"},"This payment was disputed"),s("p",{key:"22172d1c6833eb5407c19dd31b85db805d07d177"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(c,{key:"6f1fd8e2109c806c82c63cfd046739e18cc2b3b7"},s("justifi-dispute-response-core",{key:"56cba360a731ed4054c89c11250f115a7e3b9e63","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.stepCompleteEvent=t(this,"complete-form-step-event"),this.submitEvent=t(this,"submit-event"),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"452cfcf106f40c27f34df05ae2923c0909de9245",class:"row gy-3"},s("div",{key:"d9b608a8d880310b96e98cd4a00cabfcca77dc79",class:"col-12"},s("h1",{key:"050aef1fa636d09880edc7d738d56eab2cf62e52",class:"h4",part:r},"Counter dispute")),s("div",{key:"4e6094f9240d4db3d4bc03c59754ab3d04fed5bc",class:"col-12"},this.currentStepComponent),s("div",{key:"9c1739bc4ed1a9104fd04531a11e02cbbb4f11cc",class:"col-12"},s("div",{key:"d37cda5a7689d8bf9263283eb24e1074ee3d97a0",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{v as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-Bta_r52Z.js";import"./p-CBs671Ol.js";import"./p-BnE7qgLh.js";import"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p--B09FkmB.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as m,i as b,j as u,k as f,l as g}from"./p-CEqUppok.js";import{T as j}from"./p-CZfYo5-1.js";import{c as k,a as y}from"./p-C-78OQ89.js";import{o as l,g as C}from"./p-CbGBEkk3.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BrLVc_85.js";import"./p-BLm_qZkx.js";import"./p-BC1KMlPG.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,k,y),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"79f36b8dd358285868187892962f5e2138942fe8"},e(r,{key:"e48c644e425ac45ab27b92548bc49af35b599245"},e(h,{key:"6d47b68c0a74f0eff3146dfc4720b0cc0f6fc24d"},e(o,{key:"a3660ae82b53ba7dead2e577fd8d573426935dc6"},this.checkoutsTable.columnData.map((t=>t)))),e(c,{key:"08fbd465bae0afa3de8d472c84e0410150509673"},e(n,{key:"ba7d778f9fc029166d6228fe9b1a8f1598a68c5a",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"312b176371526658852b74ae228524695f5c1947",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(d,{key:"a24680fb1d681397a3cb266ec34ab5c9310dfa64",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(b,{key:"503ffd707d958a353a18a6f06d1280a0cb01c741"},e(u,{key:"250fcfc3961881ab460221e5e0160d5b6d35e5c3"},e(f,{key:"2631d54b49bbee1502e5412cd9303d7d67746525",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"d7bb27501b62a1089090b06c82b2a2c328a2e0b6",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as checkouts_list_core}
@@ -1 +1 @@
1
- import{r as a,h as e,H as s}from"./p-Bta_r52Z.js";import{E as c}from"./p-CLHwhyvu.js";import{a9 as t,aa as i,ab as b,ac as d,ad as f}from"./p-_6eQgwfE.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-Bta_r52Z.js";import{E as c}from"./p-CLHwhyvu.js";import{a7 as t,a8 as i,a9 as b,aa as d,ab as f}from"./p-BrLVc_85.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 t,c as s,h as i}from"./p-Bta_r52Z.js";import{C as r,a as e}from"./p-SdntD1xf.js";import{c as o,J as p}from"./p-n0Sbmvzb.js";import{a as n}from"./p-7MWRbTXI.js";import{g as a,a as h}from"./p-C5RuuShs.js";import{D as m}from"./p-Co9WxzRf.js";import"./p-DzXsHdKv.js";import"./p-BjDSEZvx.js";import"./p-CBs671Ol.js";import"./p-D3BIZZrc.js";import"./p-BnE7qgLh.js";import"./p-BFTU3MAI.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p--B09FkmB.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const c=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new p(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:i})=>async({onSuccess:e,onError:o})=>{var p;try{const m=await i.fetchDispute(t,s);if(m.error)return o({error:h(m.error),code:a(null===(p=m.error)||void 0===p?void 0:p.code),severity:r.ERROR});{const t=Object.assign({},m.page_info);e({dispute:new n(m.data),pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new m}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return i("justifi-dispute-management-core",{key:"5abe4c29317f9baa7fc40d82e2cd533de321d58f",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{c as justifi_dispute_management}
@@ -0,0 +1 @@
1
+ import{h as t,r as s,c as e}from"./p-Bta_r52Z.js";import{a as i,b as r}from"./p-d6tXI5Iw.js";import{F as o,c as n,b as a}from"./p-DVnVdicA.js";import{A as l,C as h,R as c,c as d}from"./p-BlJnA265.js";import{C as u,P as m}from"./p-B-iV5cYd.js";import{D as p}from"./p-BrLVc_85.js";import{S as f}from"./p-BERbc4aX.js";import"./p-CZfYo5-1.js";import{a as v,r as b,s as y,b as g}from"./p-yH3TC3ZQ.js";import{a as w,B as _}from"./p-XYgDHrVL.js";import{E as x,h as j,i as T}from"./p--B09FkmB.js";import{z as S,A as k,B as O,y as C,C as L,D as H}from"./p-JOSiCHl7.js";import"./p-CBs671Ol.js";import"./p-BnE7qgLh.js";import{C as B,a as D}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-7MWRbTXI.js";import{n as E}from"./p-BnjCmwMr.js";import{B as V}from"./p-DPUXZApk.js";import{i as A,a as P}from"./p-BdTK0wi9.js";import{S as I}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-D3BIZZrc.js";class W{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const F=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(f,{width:"25%"})),t("div",{class:"col-12"},t(f,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"50%"}),t(f,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"65%"}),t(f,{width:"35%"}))),U=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(f,{width:"40%",height:"40px"})),t(F,null),t(F,null),t(F,null)),q=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.additional_questions=new l(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s})),this.additional_questions=new l(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}recurringPaymentsWatcher(t){this.recurringPayments="Yes"===(null==t?void 0:t.business_recurring_payments)}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{additional_questions:new l(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n,a;const l=this.formController.getInitialValues();return this.isLoading?t(U,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Additional Questions"),t("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business’ estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==l?void 0:l.business_revenue,maskOptions:u.WHOLE})),t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==l?void 0:l.business_payment_volume,maskOptions:u.WHOLE})),t("div",{class:"col-12"},t("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:v,defaultValue:null==l?void 0:l.business_when_service_received})),t("div",{class:"col-12"},t("form-control-select",{name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_recurring_payments,options:b,defaultValue:null==l?void 0:l.business_recurring_payments})),t("div",{class:"col-12",hidden:!this.recurringPayments},t("form-control-text",{name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==l?void 0:l.business_recurring_payments_percentage,helpText:"For example: 50% monthly, 50% annual."})),t("div",{class:"col-12"},t("form-control-select",{name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:y,defaultValue:null==l?void 0:l.business_seasonal})),t("div",{class:"col-12"},t("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_other_payment_details,defaultValue:null==l?void 0:l.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},N=(t,s)=>t.some((t=>t.document_type===s)),R="Please upload either a voided check or a bank statement. Only one is required.",X=(t,s)=>{const e=N(t,x.voidedCheck),i=N(t,x.bankStatement),r=e||i,o=n().shape({bank_name:H.required("Enter bank name"),nickname:L.required("Enter nickname"),account_owner_name:C.required("Enter account owner name"),account_type:O.required("Select account type"),account_number:k.required("Enter account number"),routing_number:S.required("Enter routing number"),voided_check:a().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(R),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(R),otherwise:t=>t.notRequired()})},[["voided_check","bank_statement"]]),l=n({bank_name:H.nullable(),nickname:L.nullable(),account_owner_name:C.nullable(),account_type:O.nullable(),account_number:k.nullable(),routing_number:S.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},Z=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new j,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(X(this.existingDocuments,this.allowOptionalFields)),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new T({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new W(t.data.bank_accounts[0]):(this.bankAccount=new W({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:D.POST_ERROR,message:s.error.message,severity:B.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await fetch(t.presigned_url,{method:"PUT",body:t.fileString});return this.handleUploadResponse(s)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:D.POST_ERROR,message:t.error.message,severity:B.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(X(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){return new W(this.formController.values.getValue()).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:D.POST_ERROR,severity:B.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:w.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(U,null):t("form",null,t("fieldset",{class:"mb-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Bank Account Info"),t("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),t("hr",{class:"mt-2"}),t("bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),t("fieldset",{class:"mt-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Document Uploads"),t("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),t("hr",{class:"mt-2"}),t("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),t("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},Y=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new h(t.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new h(this.formController.values.getValue()).payload}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(r(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){const s=this.formController.getInitialValues();return this.isLoading?t(U,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Business Information")),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:s.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),t("div",{class:"col-12"},t("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:s.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),t("div",{class:"col-12 col-md-8"},t("form-control-select",{name:"classification",label:"Business Classification",options:g,defaultValue:s.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-4"},t("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:s.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"industry",label:"Industry",defaultValue:s.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:s.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:E,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."})),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:s.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:s.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})))))}},M=class{constructor(t){s(this,t),this.clickEvent=e(this,"click-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.matchRef=(t,s)=>{const e=this.refs.findIndex((t=>t===s));-1!==e&&(this.refs[e]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:_.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((s=>s.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)}}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const s=this.refs.map((t=>t.validate()));if(!(await Promise.all(s)).every((t=>t)))return;const e=this.refs.map((t=>t.submit()));(await Promise.all(e)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const s=t.detail,e=this.ownersPayload.map((t=>t.id===s.id?s:t));e.includes(s)||(e[this.ownersPayload.findIndex((t=>!t.id))]=s,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?t(U,null):t("div",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Owners"),t("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},this.ownersPayload.map((s=>t("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),t("div",{class:"d-flex justify-content-start"},t("div",{class:"gap-2"},t(V,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},Q=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new c(t.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(A("representative",this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(U,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},J=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.legal_address=new d(t.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new d(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(P(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n;const a=this.formController.getInitialValues();return this.isLoading?t(U,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Legal Address of your Business"),t("form-control-tooltip",{helpText:"No PO Boxes."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line1,errorText:null===(s=this.errors)||void 0===s?void 0:s.line1})),t("div",{class:"col-12"},t("form-control-text",{name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line2,errorText:null===(e=this.errors)||void 0===e?void 0:e.line2})),t("div",{class:"col-12"},t("form-control-text",{name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.city,errorText:null===(i=this.errors)||void 0===i?void 0:i.city})),t("div",{class:"col-12"},t("form-control-select",{name:"state",label:"State",options:I,inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.state,errorText:null===(r=this.errors)||void 0===r?void 0:r.state})),t("div",{class:"col-12"},t("form-control-text",{name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:E})),t("div",{class:"col-12"},t("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{q as justifi_additional_questions_form_step_core,Z as justifi_business_bank_account_form_step_core,Y as justifi_business_core_info_form_step_core,M as justifi_business_owners_form_step_core,Q as justifi_business_representative_form_step_core,J as justifi_legal_address_form_step_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import{P as r}from"./p-2GKzt6ql.js";import"./p-CBs671Ol.js";import"./p-BnE7qgLh.js";import{C as o,a as e}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{P as p}from"./p--B09FkmB.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as a,a as h}from"./p-C5RuuShs.js";import{E as n}from"./p-CgSKeuxa.js";import{c as m,J as c}from"./p-n0Sbmvzb.js";import{m as d}from"./p-DniQ6yo6.js";import"./p-BjDSEZvx.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BrLVc_85.js";import"./p-DzXsHdKv.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:r,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:o.ERROR}):r(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:o.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new r}),this.getPayoutCSV=d({authToken:this.authToken,service:new r})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
@@ -0,0 +1 @@
1
+ import{h as s,r as i,c as t}from"./p-Bta_r52Z.js";import{ak as e,ah as r,ad as o,A as l}from"./p-BrLVc_85.js";import{S as d}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-n0Sbmvzb.js";import{C as h,a as c}from"./p-SdntD1xf.js";import{B as v}from"./p-B2ts3XP0.js";import{B as p}from"./p-BlJnA265.js";import{m as u}from"./p-Cs0cIpIm.js";import{S as m}from"./p-BERbc4aX.js";import"./p-CBs671Ol.js";import{j as f}from"./p-BnE7qgLh.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{f as b,e as j,a as w}from"./p--B09FkmB.js";import"./p-7MWRbTXI.js";import{g as x,a as y}from"./p-C5RuuShs.js";import{T as g}from"./p-DcwpS5VC.js";import"./p-DzXsHdKv.js";import"./p-BjDSEZvx.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";const B=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(m,{width:"25%"})),s("div",{class:"col-12"},s(m,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(m,{width:"50%"}),s(m,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(m,{width:"65%"}),s(m,{width:"35%"}))),S=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(m,{width:"40%",height:"40px"})),s(B,null)),k=()=>s("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},s("div",{class:"d-flex align-items-center gap-3"},s(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),s("div",{class:"flex-grow-1"},s("div",{class:"d-flex row flex-row"},s("div",{class:"col-6 flex-column"},s(m,null),s(m,{width:"60%"})),s("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},s(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),s(m,{width:"80px",height:"32px"}),s(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),s("div",{class:"mt-4"},s("div",{class:"d-flex flex-column gap-2"},s(m,null),s(m,null)))))),C=class{constructor(s){i(this,s),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new j({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?w.boardingShipping:w.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}handleError(s,i,t){this.error={message:s,code:i,severity:t},this.errorEvent.emit({errorCode:i,message:s,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){u({id:this.businessId,authToken:this.authToken,service:new v})({onSuccess:({business:s})=>{this.business=new p(s),this.loading.business=!1},onError:({error:s,code:i,severity:t})=>{this.handleError(s,i,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:s,authToken:i,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(s,i);if(a.error)return r({error:y(a.error),code:x(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((s=>new b(s))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(s){const i=x(null==s?void 0:s.code);return r({error:s.message||s,code:i,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new g})({onSuccess:({terminals:s,orderLimit:i})=>{this.terminalModels=s,this.orderLimit=i,this.loading.terminals=!1},onError:({error:s,code:i,severity:t})=>{this.handleError(s,i,t),this.loading.terminals=!1}})}submitOrder(){const s=(({authToken:s,service:i,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await i.orderTerminals(s,e,t);if(d.error)return o({error:y(d.error),code:x(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:s}=d;r({data:s})}}catch(s){const i=x(null==s?void 0:s.code);return o({error:s.message||s,code:i,severity:h.ERROR})}})({authToken:this.authToken,service:new g});this.submitting=!0,s({terminalOrder:this.order.payload,onSuccess:({data:s})=>{this.submitted.emit(s),this.submitting=!1},onError:({error:s,code:i,severity:t})=>{this.handleError(s,i,t),this.submitting=!1}})}onSelectedQuantityChange(s){this.order.updateTerminal(s.detail.modelName,s.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return s("div",null,this.loading.business&&s(S,null),this.loading.terminals&&s("div",{class:"mt-5"},s(k,null),s(k,null),s(k,null)))}renderBusinessDetails(){var i,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return s("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},s("div",{class:"row"},s("div",{class:"col-12"},s("h2",{part:r},this.business.legal_name))),s("div",{class:"row"},s("div",{class:"col-6"},s("h5",{part:e},"Representative:"),s("div",null,s("div",null,null===(t=null===(i=this.business)||void 0===i?void 0:i.representative)||void 0===t?void 0:t.name),s("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),s("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),s("div",null,f(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),s("div",{class:"col-6"},s("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),s("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",s("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return s("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((i=>s("terminal-quantity-selector",{modelName:i.model_name,description:i.description,imageUrl:i.image_url,helpUrl:i.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return s("div",{class:"mt-3"},s("div",{class:"text-end"},"Order limit: ",this.orderLimit),s("div",{class:"d-flex justify-content-end mt-3"},s("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return s(d,{key:"95d4b374036e4713216ce61e87571a607b8c3f0a"},s("div",{key:"3e57b055db0d1bf26b9eb38a78fa57493afd3af3",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{C as justifi_order_terminals}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import{C as r,a as o}from"./p-SdntD1xf.js";import{c as e,J as p}from"./p-n0Sbmvzb.js";import{T as a}from"./p-DcwpS5VC.js";import"./p-CBs671Ol.js";import"./p-BnE7qgLh.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{b as n}from"./p--B09FkmB.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as c,a as m}from"./p-C5RuuShs.js";import{m as h,S as u}from"./p-iPHDHB_q.js";import{S as j}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-DmLTJr3R.js";import"./p-DzXsHdKv.js";import"./p-BjDSEZvx.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BC1KMlPG.js";import"./p-BrLVc_85.js";const d=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:p})=>{var a,h;try{const u=await i.fetchTerminals(t,s,o);if(u.error)return p({error:m(u.error),code:c(null===(h=u.error)||void 0===h?void 0:h.code),severity:r.ERROR});{const t=Object.assign({},u.page_info);e({terminals:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new a}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=h({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(j,{key:"8c81823f7a3c613fc1725a8c4fe3438f6186f4fe"},i("terminals-list-core",{key:"13c38992d9e101955d39065985b6c6b22b5ace9e",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_terminals_list}
@@ -1 +1 @@
1
- import{r as e,h as a,H as t}from"./p-Bta_r52Z.js";import{av as l,x as d}from"./p-_6eQgwfE.js";import{a as i,r as s,s as c,b as o}from"./p-yH3TC3ZQ.js";import{C as r,T as n,P as f,S as b}from"./p-B-iV5cYd.js";import{C as u}from"./p-BlJnA265.js";import{d as h}from"./p-Dt-vy9Le.js";import{S as m}from"./p-BX8GieXu.js";import{n as v}from"./p-BnjCmwMr.js";const y=class{constructor(a){e(this,a)}render(){return this.text?this.hideAlert?null:a("div",{class:"alert alert-danger d-flex align-items-center",role:"alert",part:l},a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"bi bi-exclamation-triangle-fill flex-shrink-0 me-2",viewBox:"0 0 16 16",role:"img","aria-label":"Warning:"},a("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})),a("div",null,this.text)):null}},p=class{constructor(a){e(this,a),this.errors={},this.additional_questions={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.additional_questions=Object.assign({},e.additional_questions)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{additional_questions:Object.assign(Object.assign({},this.formController.values.getValue().additional_questions),{[e]:a})}))}render(){var e,l,o,n,f,b,u,h,m,v,y,p,k,x;const j=this.formController.getInitialValues().additional_questions;return a(t,{key:"6e2549b906fec8928dae89a4f143916a2b50eff3"},a("fieldset",{key:"525eab0debf75c3996c45128e9431086e49c3850"},a("legend",{key:"adeb6e2a32fb4f9e991d7b4843569116e336743c",part:d},"Additional Questions"),a("div",{key:"29b55613d32bc434017fc561033c6c9b8800666d",class:"row gy-3"},a("div",{key:"80c1d6b2c5e52c5fe0f8b9c3591bb315e51f7c55",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"e69e6c75d3a6add592e90e3709d7b7ff694ebfe0",name:"business_revenue",label:"What is the business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(l=null===(e=this.errors)||void 0===e?void 0:e.additional_questions)||void 0===l?void 0:l.business_revenue,defaultValue:null==j?void 0:j.business_revenue,maskOptions:r.WHOLE})),a("div",{key:"af0e66f6f647ed7248e0d861707cc378c85b0dce",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"e1f6af9f7537bf4d4e96739ff7537be01ca9371c",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(n=null===(o=this.errors)||void 0===o?void 0:o.additional_questions)||void 0===n?void 0:n.business_payment_volume,defaultValue:null==j?void 0:j.business_payment_volume,maskOptions:r.WHOLE})),a("div",{key:"b914a2f8abd79eab79d284f1ece9850f4a417893",class:"col-12"},a("form-control-select",{key:"8954dfe23f7984810fbae657ac9995e40253b377",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===(b=null===(f=this.errors)||void 0===f?void 0:f.additional_questions)||void 0===b?void 0:b.business_when_service_received,options:i,defaultValue:null==j?void 0:j.business_when_service_received})),a("div",{key:"da533644fd51e8678fc80d49c7db0ce20a803019",class:"col-12"},a("form-control-select",{key:"06c23865a5bbda38b294dd4edfee6ace942fb732",name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.additional_questions)||void 0===h?void 0:h.business_recurring_payments,options:s,defaultValue:null==j?void 0:j.business_recurring_payments})),a("div",{key:"bb492db9aea205138ef76cf6fc7c3f686bb41a79",class:"col-12"},a("form-control-text",{key:"a3f900076730b504587619ff9c4c13ecce36f541",name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(v=null===(m=this.errors)||void 0===m?void 0:m.additional_questions)||void 0===v?void 0:v.business_recurring_payments_percentage,defaultValue:null==j?void 0:j.business_recurring_payments_percentage})),a("div",{key:"e2f56ae5d9654bdb1077689a1ef59c9047e97bda",class:"col-12"},a("form-control-select",{key:"697e41186b4c82046e50288594681117bf8dd6fe",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(p=null===(y=this.errors)||void 0===y?void 0:y.additional_questions)||void 0===p?void 0:p.business_seasonal,options:c,defaultValue:null==j?void 0:j.business_seasonal})),a("div",{key:"2e2f5d17b70604b9425997d9e4e0dfafea933448",class:"col-12"},a("form-control-text",{key:"27d305b06e7bc2d66084c9d04ebb785883564bbd",name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business?",inputHandler:this.inputHandler,errorText:null===(x=null===(k=this.errors)||void 0===k?void 0:k.additional_questions)||void 0===x?void 0:x.business_other_payment_details,defaultValue:null==j?void 0:j.business_other_payment_details})))))}},k=class{constructor(a){e(this,a),this.errors={},this.coreInfo={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},new u(e)))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:a}))}render(){const e=this.formController.getInitialValues();return a(t,{key:"71096918610aa3068cf89fbf9f3537b7f49942c6"},a("fieldset",{key:"502e6c3e3ae05256c6e5e8d315b4aa208ce88953"},a("legend",{key:"ccbe69b2323e815dc77b2602a96bdc4238fcef03",part:d},"General Info"),a("div",{key:"19a70fd7a361e5de4c88e14cbff12d88f78233e3",class:"row gy-3"},a("div",{key:"611bcc2bd35db7b6940a5b7ae53c54b55b855dd6",class:"col-12"},a("form-control-text",{key:"a9de594470c896aff0803c34a313c38467f7c82a",name:"legal_name",label:"Legal Name",defaultValue:e.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),a("div",{key:"ed742f64b1c344587127ce94ba1d17206bbdebb3",class:"col-12"},a("form-control-text",{key:"abb41f3aa059c180882066e21fe0239838cd9956",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:e.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),a("div",{key:"3659fb0dd0419fd4d6f0205bc9e32aef05f56aa1",class:"col-12 col-md-8"},a("form-control-select",{key:"5bbbe7cd7fe0a7e8788e36855ff18390bf8df301",name:"classification",label:"Business Classification",options:o,defaultValue:e.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),a("div",{key:"5007e6269c59878e6388164ff8d5163090b87585",class:"col-12 col-md-4"},a("form-control-date",{key:"4fa7c7f001ced10c746d2891fe3efd8336542907",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:e.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),a("div",{key:"e245a4ac6e0904c9742a0d1d220cb95c9fe63497",class:"col-12 col-md-6"},a("form-control-text",{key:"bc7367525a45c221c576f2b31c1a95680a95937a",name:"industry",label:"Industry",defaultValue:e.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),a("div",{key:"6475831320818242eda7ac045dcdd076fbc4245c",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"d68e8046fa42f4d5976aa44a7769b14fc4cda416",name:"tax_id",label:"Tax ID",defaultValue:e.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:n.US})),a("div",{key:"f59cda0241c1ad92d0d995e330b92079ba75737f",class:"col-12"},a("form-control-text",{key:"8243464d1c75897c1e3423e5045f34b81b425a9e",name:"website_url",label:"Website URL",defaultValue:e.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),a("div",{key:"c65251b25e0996277f7d0e11d25d6340ccfc11e7",class:"col-12 col-md-6"},a("form-control-text",{key:"fe3a4eff53786f49fbfe24afb048f861bf7a469a",name:"email",label:"Email Address",defaultValue:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"b1d909e5f937dcbbac0082b293571904c0c81396",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"83238873cbd8ccc08a5c3af1bd87a7965fefb5f8",name:"phone",label:"Phone Number",defaultValue:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:f.US})))))}},x=class{constructor(a){e(this,a),this.errors={},this.representative={},this.inputHandler=(e,a)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{[e]:a})}))},this.onAddressFormUpdate=e=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{address:Object.assign(Object.assign({},this.formController.values.getValue().representative.address),e)})}))},this.onDateOfBirthUpdate=e=>{const a=h(e.detail);this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{dob_day:a.dob_day,dob_month:a.dob_month,dob_year:a.dob_year})}))}}get identificationNumberLabel(){return this.representative.ssn_last4?"Update SSN (optional)":"SSN"}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e.representative))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e.representative)))}render(){const e=this.formController.getInitialValues().representative;return a(t,{key:"eb9c09602a11107abc465463bf7e7cdbeb98cede"},a("fieldset",{key:"1f2a035f9796c29269a7dcd7ca874c73ed6493bb"},a("legend",{key:"1aeaba7f119f15e1ffa75cd58d77608fe51a60c8",part:d},"Representative"),a("div",{key:"5d09c634135046c79b4ac80b5c1cfee9fbd26ce0",class:"row gy-3"},a("div",{key:"6f03250bf88cc79ff07a1de68fef97a41a376aec",class:"col-12 col-md-8"},a("form-control-text",{key:"d6696ab573a305e277db56a578eaeb3fc4adf9ff",name:"name",label:"Full Name",defaultValue:null==e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"fd6ddc83d99b4f86f29566077249a23724741438",class:"col-12 col-md-4"},a("form-control-text",{key:"632b12a09042ffdaf85d2fafecfab1736bbc8d36",name:"title",label:"Title",defaultValue:null==e?void 0:e.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"65842c9cb8c616806631bd1d2902342cebf5326e",class:"col-12 col-md-6"},a("form-control-text",{key:"8e1f64cc7f97e4b337dfcda6494fca5750656130",name:"email",label:"Email Address",defaultValue:null==e?void 0:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"e050604c8d71e1d07f916822fbb73da4c3f5e034",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"a5bba8b362ce6070efc65e88ee80880ce855e624",name:"phone",label:"Phone Number",defaultValue:null==e?void 0:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:f.US})),a("div",{key:"dcbd23ab368e630ebaea9e8bdbb6985a98d5fbeb",class:"col-12 col-md-4"},a("form-control-date",{key:"05e0e255549ad8f0760102aab5cbfe444cae5996",name:"dob_full",label:"Birth Date",defaultValue:null==e?void 0:e.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),a("div",{key:"764595ed842fd09221ef71d5c921a9ebe947556d",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"91761e52dd724a27e135a3db8b7c85643f7891d9",name:"identification_number",label:this.identificationNumberLabel,defaultValue:null==e?void 0:e.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b})),a("div",{key:"4be6739744d6d9fcd060ed9d894502f35396a9a9",class:"col-12"},a("justifi-identity-address-form",{key:"7c9d98057e908a068aa0783b10b2bd0f634d7ab9",errors:this.errors.address,defaultValues:null==e?void 0:e.address,handleFormUpdate:this.onAddressFormUpdate})))))}},j=class{constructor(a){e(this,a),this.errors={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.legal_address=Object.assign({},e.legal_address)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{legal_address:Object.assign(Object.assign({},this.formController.values.getValue().legal_address),{[e]:a})}))}render(){var e,l,i,s,c,o,r,n,f,b,u,h;const y=this.formController.getInitialValues().legal_address;return a(t,{key:"129b2ec053708454db5a515fdae9a7fba5289336"},a("fieldset",{key:"6af5c9469acc432ea01ff404af25727bd444abc7"},a("legend",{key:"1af149db608a13d18142aaea83f9ed2e8271fdc0",part:d},"Business Legal Address"),a("div",{key:"805c6ae992ebed34937b9a2622f50a7f99c7d0e6",class:"row gy-3"},a("div",{key:"78750dc68bcc6782bc4a71cfd14d417e980a57a6",class:"col-12"},a("form-control-text",{key:"18a75e38a7a5fbfcbbbce56e4967ce34c5618c8e",name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.line1,errorText:null===(l=null===(e=this.errors)||void 0===e?void 0:e.legal_address)||void 0===l?void 0:l.line1})),a("div",{key:"676622c84785edfafa3413359d4985d26a734985",class:"col-12"},a("form-control-text",{key:"e8467f96595d240f5fc93585e472ad844cc49143",name:"line2",label:"Address Line 2",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.line2,errorText:null===(s=null===(i=this.errors)||void 0===i?void 0:i.legal_address)||void 0===s?void 0:s.line2})),a("div",{key:"01556012d9335d23c14e130ca72b6e75028bcb36",class:"col-12"},a("form-control-text",{key:"c08dcd0ef726ff714d60de26492ced763a7d32ff",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.city,errorText:null===(o=null===(c=this.errors)||void 0===c?void 0:c.legal_address)||void 0===o?void 0:o.city})),a("div",{key:"ad811869e742f265a5441c6f36c2a55fa0b07952",class:"col-12"},a("form-control-select",{key:"47cc4b15578257f3c1fdee7896d28da94b5aaa16",name:"state",label:"State",options:m,inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.state,errorText:null===(n=null===(r=this.errors)||void 0===r?void 0:r.legal_address)||void 0===n?void 0:n.state})),a("div",{key:"f732fd2ed3967ee7fd602f41c62efd24cf6038eb",class:"col-12"},a("form-control-text",{key:"0431a63d11beb6682a2544d2483901f7fffa77bd",name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.postal_code,errorText:null===(b=null===(f=this.errors)||void 0===f?void 0:f.legal_address)||void 0===b?void 0:b.postal_code,maxLength:5,keyDownHandler:v})),a("div",{key:"cca67b0cd006f6cf9f9bbfe147507eb0ac6fecca",class:"col-12"},a("form-control-select",{key:"f561947f9443ea6f56d7ae31d44a69e2462c0751",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.country,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.legal_address)||void 0===h?void 0:h.country,disabled:!0})))))}};export{y as form_alert,p as justifi_additional_questions,k as justifi_business_core_info,x as justifi_business_representative,j as justifi_legal_address_form}
1
+ import{r as e,h as a,H as t}from"./p-Bta_r52Z.js";import{al as l,D as d}from"./p-BrLVc_85.js";import{a as i,r as s,s as c,b as o}from"./p-yH3TC3ZQ.js";import{C as r,T as n,P as f,S as b}from"./p-B-iV5cYd.js";import{C as u}from"./p-BlJnA265.js";import{d as h}from"./p-Dt-vy9Le.js";import{S as m}from"./p-BX8GieXu.js";import{n as v}from"./p-BnjCmwMr.js";const y=class{constructor(a){e(this,a)}render(){return this.text?this.hideAlert?null:a("div",{class:"alert alert-danger d-flex align-items-center",role:"alert",part:l},a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"bi bi-exclamation-triangle-fill flex-shrink-0 me-2",viewBox:"0 0 16 16",role:"img","aria-label":"Warning:"},a("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})),a("div",null,this.text)):null}},p=class{constructor(a){e(this,a),this.errors={},this.additional_questions={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.additional_questions=Object.assign({},e.additional_questions)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{additional_questions:Object.assign(Object.assign({},this.formController.values.getValue().additional_questions),{[e]:a})}))}render(){var e,l,o,n,f,b,u,h,m,v,y,p,k,x;const j=this.formController.getInitialValues().additional_questions;return a(t,{key:"6e2549b906fec8928dae89a4f143916a2b50eff3"},a("fieldset",{key:"525eab0debf75c3996c45128e9431086e49c3850"},a("legend",{key:"adeb6e2a32fb4f9e991d7b4843569116e336743c",part:d},"Additional Questions"),a("div",{key:"29b55613d32bc434017fc561033c6c9b8800666d",class:"row gy-3"},a("div",{key:"80c1d6b2c5e52c5fe0f8b9c3591bb315e51f7c55",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"e69e6c75d3a6add592e90e3709d7b7ff694ebfe0",name:"business_revenue",label:"What is the business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(l=null===(e=this.errors)||void 0===e?void 0:e.additional_questions)||void 0===l?void 0:l.business_revenue,defaultValue:null==j?void 0:j.business_revenue,maskOptions:r.WHOLE})),a("div",{key:"af0e66f6f647ed7248e0d861707cc378c85b0dce",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"e1f6af9f7537bf4d4e96739ff7537be01ca9371c",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(n=null===(o=this.errors)||void 0===o?void 0:o.additional_questions)||void 0===n?void 0:n.business_payment_volume,defaultValue:null==j?void 0:j.business_payment_volume,maskOptions:r.WHOLE})),a("div",{key:"b914a2f8abd79eab79d284f1ece9850f4a417893",class:"col-12"},a("form-control-select",{key:"8954dfe23f7984810fbae657ac9995e40253b377",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===(b=null===(f=this.errors)||void 0===f?void 0:f.additional_questions)||void 0===b?void 0:b.business_when_service_received,options:i,defaultValue:null==j?void 0:j.business_when_service_received})),a("div",{key:"da533644fd51e8678fc80d49c7db0ce20a803019",class:"col-12"},a("form-control-select",{key:"06c23865a5bbda38b294dd4edfee6ace942fb732",name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.additional_questions)||void 0===h?void 0:h.business_recurring_payments,options:s,defaultValue:null==j?void 0:j.business_recurring_payments})),a("div",{key:"bb492db9aea205138ef76cf6fc7c3f686bb41a79",class:"col-12"},a("form-control-text",{key:"a3f900076730b504587619ff9c4c13ecce36f541",name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(v=null===(m=this.errors)||void 0===m?void 0:m.additional_questions)||void 0===v?void 0:v.business_recurring_payments_percentage,defaultValue:null==j?void 0:j.business_recurring_payments_percentage})),a("div",{key:"e2f56ae5d9654bdb1077689a1ef59c9047e97bda",class:"col-12"},a("form-control-select",{key:"697e41186b4c82046e50288594681117bf8dd6fe",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(p=null===(y=this.errors)||void 0===y?void 0:y.additional_questions)||void 0===p?void 0:p.business_seasonal,options:c,defaultValue:null==j?void 0:j.business_seasonal})),a("div",{key:"2e2f5d17b70604b9425997d9e4e0dfafea933448",class:"col-12"},a("form-control-text",{key:"27d305b06e7bc2d66084c9d04ebb785883564bbd",name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business?",inputHandler:this.inputHandler,errorText:null===(x=null===(k=this.errors)||void 0===k?void 0:k.additional_questions)||void 0===x?void 0:x.business_other_payment_details,defaultValue:null==j?void 0:j.business_other_payment_details})))))}},k=class{constructor(a){e(this,a),this.errors={},this.coreInfo={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},new u(e)))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:a}))}render(){const e=this.formController.getInitialValues();return a(t,{key:"71096918610aa3068cf89fbf9f3537b7f49942c6"},a("fieldset",{key:"502e6c3e3ae05256c6e5e8d315b4aa208ce88953"},a("legend",{key:"ccbe69b2323e815dc77b2602a96bdc4238fcef03",part:d},"General Info"),a("div",{key:"19a70fd7a361e5de4c88e14cbff12d88f78233e3",class:"row gy-3"},a("div",{key:"611bcc2bd35db7b6940a5b7ae53c54b55b855dd6",class:"col-12"},a("form-control-text",{key:"a9de594470c896aff0803c34a313c38467f7c82a",name:"legal_name",label:"Legal Name",defaultValue:e.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),a("div",{key:"ed742f64b1c344587127ce94ba1d17206bbdebb3",class:"col-12"},a("form-control-text",{key:"abb41f3aa059c180882066e21fe0239838cd9956",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:e.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),a("div",{key:"3659fb0dd0419fd4d6f0205bc9e32aef05f56aa1",class:"col-12 col-md-8"},a("form-control-select",{key:"5bbbe7cd7fe0a7e8788e36855ff18390bf8df301",name:"classification",label:"Business Classification",options:o,defaultValue:e.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),a("div",{key:"5007e6269c59878e6388164ff8d5163090b87585",class:"col-12 col-md-4"},a("form-control-date",{key:"4fa7c7f001ced10c746d2891fe3efd8336542907",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:e.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),a("div",{key:"e245a4ac6e0904c9742a0d1d220cb95c9fe63497",class:"col-12 col-md-6"},a("form-control-text",{key:"bc7367525a45c221c576f2b31c1a95680a95937a",name:"industry",label:"Industry",defaultValue:e.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),a("div",{key:"6475831320818242eda7ac045dcdd076fbc4245c",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"d68e8046fa42f4d5976aa44a7769b14fc4cda416",name:"tax_id",label:"Tax ID",defaultValue:e.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:n.US})),a("div",{key:"f59cda0241c1ad92d0d995e330b92079ba75737f",class:"col-12"},a("form-control-text",{key:"8243464d1c75897c1e3423e5045f34b81b425a9e",name:"website_url",label:"Website URL",defaultValue:e.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),a("div",{key:"c65251b25e0996277f7d0e11d25d6340ccfc11e7",class:"col-12 col-md-6"},a("form-control-text",{key:"fe3a4eff53786f49fbfe24afb048f861bf7a469a",name:"email",label:"Email Address",defaultValue:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"b1d909e5f937dcbbac0082b293571904c0c81396",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"83238873cbd8ccc08a5c3af1bd87a7965fefb5f8",name:"phone",label:"Phone Number",defaultValue:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:f.US})))))}},x=class{constructor(a){e(this,a),this.errors={},this.representative={},this.inputHandler=(e,a)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{[e]:a})}))},this.onAddressFormUpdate=e=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{address:Object.assign(Object.assign({},this.formController.values.getValue().representative.address),e)})}))},this.onDateOfBirthUpdate=e=>{const a=h(e.detail);this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{dob_day:a.dob_day,dob_month:a.dob_month,dob_year:a.dob_year})}))}}get identificationNumberLabel(){return this.representative.ssn_last4?"Update SSN (optional)":"SSN"}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e.representative))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e.representative)))}render(){const e=this.formController.getInitialValues().representative;return a(t,{key:"eb9c09602a11107abc465463bf7e7cdbeb98cede"},a("fieldset",{key:"1f2a035f9796c29269a7dcd7ca874c73ed6493bb"},a("legend",{key:"1aeaba7f119f15e1ffa75cd58d77608fe51a60c8",part:d},"Representative"),a("div",{key:"5d09c634135046c79b4ac80b5c1cfee9fbd26ce0",class:"row gy-3"},a("div",{key:"6f03250bf88cc79ff07a1de68fef97a41a376aec",class:"col-12 col-md-8"},a("form-control-text",{key:"d6696ab573a305e277db56a578eaeb3fc4adf9ff",name:"name",label:"Full Name",defaultValue:null==e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"fd6ddc83d99b4f86f29566077249a23724741438",class:"col-12 col-md-4"},a("form-control-text",{key:"632b12a09042ffdaf85d2fafecfab1736bbc8d36",name:"title",label:"Title",defaultValue:null==e?void 0:e.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"65842c9cb8c616806631bd1d2902342cebf5326e",class:"col-12 col-md-6"},a("form-control-text",{key:"8e1f64cc7f97e4b337dfcda6494fca5750656130",name:"email",label:"Email Address",defaultValue:null==e?void 0:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"e050604c8d71e1d07f916822fbb73da4c3f5e034",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"a5bba8b362ce6070efc65e88ee80880ce855e624",name:"phone",label:"Phone Number",defaultValue:null==e?void 0:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:f.US})),a("div",{key:"dcbd23ab368e630ebaea9e8bdbb6985a98d5fbeb",class:"col-12 col-md-4"},a("form-control-date",{key:"05e0e255549ad8f0760102aab5cbfe444cae5996",name:"dob_full",label:"Birth Date",defaultValue:null==e?void 0:e.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),a("div",{key:"764595ed842fd09221ef71d5c921a9ebe947556d",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"91761e52dd724a27e135a3db8b7c85643f7891d9",name:"identification_number",label:this.identificationNumberLabel,defaultValue:null==e?void 0:e.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b})),a("div",{key:"4be6739744d6d9fcd060ed9d894502f35396a9a9",class:"col-12"},a("justifi-identity-address-form",{key:"7c9d98057e908a068aa0783b10b2bd0f634d7ab9",errors:this.errors.address,defaultValues:null==e?void 0:e.address,handleFormUpdate:this.onAddressFormUpdate})))))}},j=class{constructor(a){e(this,a),this.errors={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.legal_address=Object.assign({},e.legal_address)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{legal_address:Object.assign(Object.assign({},this.formController.values.getValue().legal_address),{[e]:a})}))}render(){var e,l,i,s,c,o,r,n,f,b,u,h;const y=this.formController.getInitialValues().legal_address;return a(t,{key:"129b2ec053708454db5a515fdae9a7fba5289336"},a("fieldset",{key:"6af5c9469acc432ea01ff404af25727bd444abc7"},a("legend",{key:"1af149db608a13d18142aaea83f9ed2e8271fdc0",part:d},"Business Legal Address"),a("div",{key:"805c6ae992ebed34937b9a2622f50a7f99c7d0e6",class:"row gy-3"},a("div",{key:"78750dc68bcc6782bc4a71cfd14d417e980a57a6",class:"col-12"},a("form-control-text",{key:"18a75e38a7a5fbfcbbbce56e4967ce34c5618c8e",name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.line1,errorText:null===(l=null===(e=this.errors)||void 0===e?void 0:e.legal_address)||void 0===l?void 0:l.line1})),a("div",{key:"676622c84785edfafa3413359d4985d26a734985",class:"col-12"},a("form-control-text",{key:"e8467f96595d240f5fc93585e472ad844cc49143",name:"line2",label:"Address Line 2",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.line2,errorText:null===(s=null===(i=this.errors)||void 0===i?void 0:i.legal_address)||void 0===s?void 0:s.line2})),a("div",{key:"01556012d9335d23c14e130ca72b6e75028bcb36",class:"col-12"},a("form-control-text",{key:"c08dcd0ef726ff714d60de26492ced763a7d32ff",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.city,errorText:null===(o=null===(c=this.errors)||void 0===c?void 0:c.legal_address)||void 0===o?void 0:o.city})),a("div",{key:"ad811869e742f265a5441c6f36c2a55fa0b07952",class:"col-12"},a("form-control-select",{key:"47cc4b15578257f3c1fdee7896d28da94b5aaa16",name:"state",label:"State",options:m,inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.state,errorText:null===(n=null===(r=this.errors)||void 0===r?void 0:r.legal_address)||void 0===n?void 0:n.state})),a("div",{key:"f732fd2ed3967ee7fd602f41c62efd24cf6038eb",class:"col-12"},a("form-control-text",{key:"0431a63d11beb6682a2544d2483901f7fffa77bd",name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.postal_code,errorText:null===(b=null===(f=this.errors)||void 0===f?void 0:f.legal_address)||void 0===b?void 0:b.postal_code,maxLength:5,keyDownHandler:v})),a("div",{key:"cca67b0cd006f6cf9f9bbfe147507eb0ac6fecca",class:"col-12"},a("form-control-select",{key:"f561947f9443ea6f56d7ae31d44a69e2462c0751",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.country,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.legal_address)||void 0===h?void 0:h.country,disabled:!0})))))}};export{y as form_alert,p as justifi_additional_questions,k as justifi_business_core_info,x as justifi_business_representative,j as justifi_legal_address_form}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as a}from"./p-Bta_r52Z.js";import{c as s}from"./p-CBs671Ol.js";import{a as i}from"./p-BnE7qgLh.js";import{C as o,a as r}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{d as n}from"./p--B09FkmB.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as p,J as d}from"./p-n0Sbmvzb.js";import{g as h,a as l}from"./p-C5RuuShs.js";import{P as f}from"./p-2GKzt6ql.js";import{T as u,l as m,a as b,b as y,c as _,d as j,e as w,f as v,g as T,h as k,i as g,j as D,k as C}from"./p-CEqUppok.js";import{S}from"./p-BEDtXmpq.js";import{T as I}from"./p-CZfYo5-1.js";import{P,Q as B}from"./p-BrLVc_85.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DzXsHdKv.js";import"./p-BjDSEZvx.js";import"./p-BLm_qZkx.js";const q={id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:P,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:P,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:P,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:P,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:P,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:P,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},E={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},x={id:e=>t("td",{part:B(e.id)},e.id),account_id:e=>t("td",{part:B(e.account_id)},e.account_id),payout_id:e=>t("td",{part:B(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:B(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:B(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:B(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:B(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:B(e.currency)},e.currency),description:e=>t("td",{part:B(e.description)},e.description),source_id:e=>t("td",{part:B(e.source_id)},e.source_id),txn_type:e=>t("td",{part:B(e.txn_type)},E[e.txn_type]),created_at:e=>t("td",{part:B(e.created_at)},t("div",{class:"fw-bold"},i(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},i(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:B(e.available_on)},t("div",{class:"fw-bold"},i(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},i(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:B(e.updated_at)},t("div",{class:"fw-bold"},i(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},i(e.updated_at,{showTime:!0})))},O=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:I.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:I.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:I.row,data:a})}}componentWillLoad(){this.transactionsTable=new u(this.balanceTransactions,this.columns,q,x),p(),this.analytics=new d(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:s,onSuccess:i,onError:r,final:c})=>{var p;try{const c=await a.fetchPayoutTransactions(t,e,s);c.error?r({error:l(c.error),code:h(null===(p=c.error)||void 0===p?void 0:p.code),severity:o.ERROR}):i({balanceTransactions:c.data.map((t=>new n(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=h(null==t?void 0:t.code);r({error:l(t),code:e,severity:o.ERROR})}finally{c()}})({accountId:s.accountId,authToken:this.authToken,service:new f})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,o.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(S,{key:"d37f96bf4e1d40607d3190791f513df5c1ce02d1"},t(m,{key:"a6d2b2c342b6286630acb804b93c846ac42eff9b"},t(b,{key:"abcb7a3bbca27973bafdf0a0a1d9316d9e668aa9"},t(y,{key:"e79c0ee71e45ca1379e354f939368cacbf1bd74e"},t(_,{key:"c64962612a826a5e53c921f43170f1d1ba16399a"},this.transactionsTable.columnData.map((t=>t)))),t(j,{key:"7b33c299ac42c4e668cb4c967ecc5324ec56ede3"},t(w,{key:"096000771b0ce2fe37db3329315bd780af9977a1",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(v,{key:"48ff70675d33875b8fdcf7c7ddf9ceed413ca2e8",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(T,{key:"4ffffbd73a18ef281209adbe870383f744d51da5",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(k,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(g,{key:"8ba623495a597e10bc8708b9984c9da92e3750a4"},t(D,{key:"01f6405cef206cbaf487013370ccd7c312eca3b5"},t(C,{key:"0b94346d3ed5f431393e2df93f0baa81b8804d2b",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"c7a24d435a90c4f8db5c0f71b1a120b11cd01b7b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{O as justifi_payout_transactions_list}
@@ -0,0 +1 @@
1
+ import{c as e}from"./p-DVnVdicA.js";import{d as s,t as n,i as a,b as i,a as r,p as t,e as u,w as _,c as o,o as c,s as l,r as b,f as m,g as p,h as d,j as g}from"./p-JOSiCHl7.js";const v=c=>{const l=e({legal_name:o.required("Enter legal name"),website_url:_.required("Enter business website url"),email:u.required("Enter business email"),phone:t.required("Enter phone number"),doing_business_as:r.nullable(),classification:i.required("Select business classification"),industry:a.required("Enter a business industry"),tax_id:n.required("Enter valid tax ID (SSN or EIN) without dashes"),date_of_incorporation:s.required("Enter date of incorporation")}),b=e({legal_name:o.required("Enter legal name"),website_url:_.nullable(),email:u.nullable(),phone:t.nullable(),doing_business_as:r.nullable(),classification:i.nullable(),industry:a.nullable(),tax_id:n.nullable(),date_of_incorporation:s.nullable()});return c?b:l},y=s=>{const n=e({business_revenue:g.required("Enter business revenue"),business_payment_volume:d.required("Enter business payment volume"),business_when_service_received:p.required("Select when service is received"),business_recurring_payments:m.required("Select recurring payments"),business_recurring_payments_percentage:b,business_seasonal:l.required("Select business seasonal"),business_other_payment_details:c.nullable()}),a=e({business_revenue:g.nullable(),business_payment_volume:d.nullable(),business_when_service_received:p.nullable(),business_recurring_payments:m.nullable(),business_recurring_payments_percentage:b,business_seasonal:l.nullable(),business_other_payment_details:c.nullable()});return s?a:n};export{y as a,v as b}
@@ -1 +1 @@
1
- import{r as s,h as t}from"./p-Bta_r52Z.js";import{E as a}from"./p-CnnRWu7z.js";import"./p-_6eQgwfE.js";const e=class{constructor(t){s(this,t)}render(){return t("div",{key:"3c1c4e729711c6676c176a5a04228ec7ebb7acfa"},this.errorMessage?a(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{e as justifi_details}
1
+ import{r as s,h as t}from"./p-Bta_r52Z.js";import{E as a}from"./p-CgSKeuxa.js";import"./p-BrLVc_85.js";const e=class{constructor(t){s(this,t)}render(){return t("div",{key:"3c1c4e729711c6676c176a5a04228ec7ebb7acfa"},this.errorMessage?a(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{e as justifi_details}
@@ -0,0 +1 @@
1
+ import{h as t,r as s,c as e}from"./p-Bta_r52Z.js";import{c as r,a as i,F as o}from"./p-DVnVdicA.js";import{f as n}from"./p-BnE7qgLh.js";import"./p-CBs671Ol.js";import{C as a,a as u}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{R as l,g as m}from"./p--B09FkmB.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{B as h}from"./p-DPUXZApk.js";import{S as p}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{P as c}from"./p-C6qAZgXn.js";import{m as d}from"./p-AW4YV_IW.js";import{c as f,J as v}from"./p-n0Sbmvzb.js";import{g as j,a as y}from"./p-C5RuuShs.js";import{A as b}from"./p-BjDSEZvx.js";import{S as w}from"./p-BERbc4aX.js";import"./p-BFTU3MAI.js";import"./p-D3BIZZrc.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BrLVc_85.js";import"./p-DzXsHdKv.js";const B=t=>{const s=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${n(s)}`,(function(t){return+t<=+s})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},g=t=>{if(t)return r({amount:B(t),description:i().optional(),reason:i().optional().oneOf([l.customerRequest,l.duplicate,l.fraudulent],"Select a reason")})},A=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],S=b();class x{async postRefund(t,s,e,r){return S.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":s},body:r,authToken:e})}}const C=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"100%",height:"40px"}))),R=()=>t(p,null,t("div",{class:"row gap-5"},t(C,null),t(C,null),t(C,null))),T=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event"),this.submitEvent=e(this,"submit-event"),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}componentWillLoad(){f(),this.analytics=new v(this),this.initializeApi(),this.formController=new o(g())}handleError(t,s,e){this.errorEvent.emit({errorCode:t,message:s,severity:e})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(u.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",a.ERROR)}initializeFormController(){const t=this.refundPayload.amount,s=t?t.toString():"0";this.formController=new o(g(s)),this.formController.setInitialValues({amount:s}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?d({id:this.paymentId,authToken:this.authToken,service:new c})({onSuccess:({payment:t})=>{this.refundPayload=new m({amount:t.amount_refundable})},onError:({error:t,code:s,severity:e})=>{this.handleError(s,t,e)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(u.MISSING_PROPS,"Payment ID and Auth Token are required",a.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const s=(({authToken:t,accountId:s,paymentId:e,service:r})=>async({refundBody:i,onSuccess:o,onError:n,final:u})=>{var l;try{const u=await r.postRefund(e,s,t,i);if(u.error)return n({error:y(u.error),code:j(null===(l=u.error)||void 0===l?void 0:l.code),severity:a.ERROR});o(u)}catch(t){const s=j(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:a.ERROR})}finally{return u()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new x}),e=this.formController.values.getValue();return this.refundLoading=!0,new Promise((t=>{let r;s({refundBody:e,onSuccess:t=>{r=t},onError:({error:t,code:s,severity:e})=>{r=t,this.handleError(t,s,e)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,t(r.data)}})}))}render(){if(this.paymentLoading)return t(R,null);const s=this.formController.getInitialValues(),e=this.refundPayload.amount;return t(p,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:s.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:s.reason,inputHandler:this.inputHandler,options:A,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:s.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(h,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${n(+e)}`))))))}};export{T as justifi_refund_payment}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import"./p-CBs671Ol.js";import"./p-BnE7qgLh.js";import{C as o,a as r}from"./p-SdntD1xf.js";import{C as e}from"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p--B09FkmB.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as p,a as c}from"./p-C5RuuShs.js";import{c as a,J as n}from"./p-n0Sbmvzb.js";import{C as h}from"./p-oE-E7kjN.js";import{m,S as u}from"./p-iPHDHB_q.js";import{S as j}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{d}from"./p-C-78OQ89.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DzXsHdKv.js";import"./p-BjDSEZvx.js";import"./p-BC1KMlPG.js";import"./p-BrLVc_85.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){a(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){this.accountId&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i})=>async({params:r,onSuccess:a,onError:n})=>{var h,m;try{const u=await i.fetchCheckouts(t,s,r);if(u.error)return n({error:c(u.error),code:p(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);a({checkouts:(null===(h=u.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(j,{key:"c76ca3b186023ebea3ac3fe0cf6599786a2f2ea7"},i("checkouts-list-core",{key:"484d31c0b0434181b3bd69cb9c3b6810aa0f2983",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_checkouts_list}