@justifi/webcomponents 5.7.4-rc-01 → 5.7.5

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 (581) 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-BFE-2OxN.js → Refund-DN-yzFgy.js} +17 -8
  4. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +5 -5
  5. package/dist/cjs/{bank-account-form_7.cjs.entry.js → bank-account-form_9.cjs.entry.js} +190 -19
  6. package/dist/cjs/{business-additional-questions-schema-C1Ot5vrv.js → business-additional-questions-schema-e3GCIHk5.js} +6 -6
  7. package/dist/cjs/{business-identity-schema-hk4UVEna.js → business-identity-schema-Diqj_WVQ.js} +10 -10
  8. package/dist/cjs/{business.service-BjlK8M6t.js → business.service-U2eLTrq9.js} +3 -3
  9. package/dist/cjs/{Analytics-CLEDjTfr.js → check-pkg-version-DuL7lRe2.js} +23 -23
  10. package/dist/cjs/{checkout.service-Bln6jCAj.js → checkout.service-DtMzeEwi.js} +3 -3
  11. package/dist/cjs/checkouts-list-core.cjs.entry.js +4 -4
  12. package/dist/cjs/custom-popper_4.cjs.entry.js +6 -6
  13. package/dist/cjs/{dispute.service-Bo84yh33.js → dispute.service-CGVAs-5M.js} +3 -3
  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-OrAuseBX.js → get-payment-details-CdVEiscr.js} +4 -4
  23. package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-CXEQkjDm.js} +2 -2
  24. package/dist/cjs/{get-subaccounts-CoC0XYqj.js → get-subaccounts-fBIoOr7m.js} +4 -4
  25. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  26. package/dist/cjs/iframe-input-styles-state-DX5gGQQF.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 +21 -20
  30. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -12
  31. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +46 -49
  32. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
  33. package/dist/cjs/justifi-business-form.cjs.entry.js +16 -16
  34. package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +67 -23
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
  38. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  40. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -12
  41. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
  42. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  43. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -10
  44. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  45. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  46. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  47. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
  48. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  49. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
  50. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  51. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
  52. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
  54. package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -17
  55. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +18 -16
  56. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  57. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
  58. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
  59. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
  60. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -15
  61. package/dist/cjs/loader.cjs.js +1 -1
  62. package/dist/cjs/{package-D89BDRKu.js → package-o4g7MDiy.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-C0t9DRcu.js → payment.service-DmpOOPu1.js} +3 -3
  66. package/dist/cjs/payments-list-core.cjs.entry.js +4 -4
  67. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  68. package/dist/cjs/{payout.service-DGeLS8BN.js → payout.service-BfO6L79f.js} +3 -3
  69. package/dist/cjs/payouts-list-core.cjs.entry.js +4 -4
  70. package/dist/cjs/{schema-validations-CllkToCZ.js → schema-validations-BSeMee-o.js} +31 -31
  71. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  72. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -5
  73. package/dist/cjs/{terminal-orders-table-Dw6uHG1R.js → terminal-orders-table-DMjFmuxk.js} +3 -3
  74. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  75. package/dist/cjs/{terminal.service-Ck6PIO3G.js → terminal.service-h-LWztbo.js} +3 -3
  76. package/dist/cjs/terminals-list-core.cjs.entry.js +4 -4
  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/api/DisputeEvidenceDocument.js +4 -7
  82. package/dist/collection/api/Document.js +17 -8
  83. package/dist/collection/collection-manifest.json +1 -8
  84. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +2 -1
  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 +255 -786
  144. package/dist/esm/{Api-C3T8XYbb.js → Api-69eVlLFc.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-BKe90wSq.js → Refund-f_BCgcDa.js} +18 -9
  149. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  150. package/dist/esm/{badge-DHaTxWwu.js → badge-VWumlkvS.js} +1 -1
  151. package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -10
  152. package/dist/esm/{bank-account-form_7.entry.js → bank-account-form_9.entry.js} +186 -17
  153. package/dist/esm/{business-additional-questions-schema-D00MNMDJ.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-pxSsAdgG.js → business-identity-schema-BsrgqgDl.js} +2 -2
  156. package/dist/esm/{business.service-BMABw2vX.js → business.service-BviUFOjP.js} +5 -5
  157. package/dist/esm/{button-5hc5r__m.js → button-BfT7Ex96.js} +1 -1
  158. package/dist/esm/{Analytics-B3nThWuq.js → check-pkg-version-phOwcSQM.js} +25 -25
  159. package/dist/esm/{checkout.service-jmweME4d.js → checkout.service-B8W_W-lc.js} +5 -5
  160. package/dist/esm/checkouts-list-core.entry.js +11 -11
  161. package/dist/esm/{checkouts-table-BS_UiHaT.js → checkouts-table-zIrBvmQp.js} +3 -3
  162. package/dist/esm/custom-popper_4.entry.js +8 -8
  163. package/dist/esm/{dispute.service-DWQ8DPZa.js → dispute.service-1e9677RK.js} +5 -5
  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-C93L7yFm.js → form-control-error-text-CYWqNNkG.js} +1 -1
  168. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  169. package/dist/esm/{form-control-help-text-p28euWGX.js → form-control-help-text-DMdU5_la.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-PSdVeuGc.js → get-payment-details-B5-Hzdrg.js} +6 -6
  177. package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D7IYYqVL.js} +2 -2
  178. package/dist/esm/{get-subaccounts-CownROrO.js → get-subaccounts-Cv7zn0lA.js} +7 -7
  179. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  180. package/dist/esm/{header-1-CUc5m0Ge.js → header-1-84nZCcj4.js} +1 -1
  181. package/dist/esm/{header-3-BXU3iN46.js → header-3-DpBr7qOY.js} +1 -1
  182. package/dist/esm/iframe-input-styles-state-DqkcQMM1.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-Br0fBMFI.js → insurance-state-BDLlv3CM.js} +1 -1
  186. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +14 -13
  187. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -12
  188. package/dist/esm/justifi-additional-statement_8.entry.js +14 -17
  189. package/dist/esm/justifi-business-details.entry.js +13 -13
  190. package/dist/esm/justifi-business-form.entry.js +19 -19
  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 -22
  194. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
  195. package/dist/esm/justifi-checkouts-list.entry.js +15 -15
  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 -11
  199. package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
  200. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
  201. package/dist/esm/justifi-order-terminals.entry.js +15 -15
  202. package/dist/esm/justifi-owner-form_3.entry.js +14 -14
  203. package/dist/esm/justifi-payment-details.entry.js +13 -13
  204. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  205. package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
  206. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
  207. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  208. package/dist/esm/justifi-payments-list.entry.js +15 -15
  209. package/dist/esm/justifi-payout-details.entry.js +13 -13
  210. package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
  211. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  212. package/dist/esm/justifi-payouts-list.entry.js +17 -17
  213. package/dist/esm/justifi-refund-payment.entry.js +15 -15
  214. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  215. package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -17
  216. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
  217. package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
  218. package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
  219. package/dist/esm/justifi-terminals-list.entry.js +15 -15
  220. package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -18
  221. package/dist/esm/loader.js +1 -1
  222. package/dist/esm/{package-rzqedGq4.js → package-B0XIc_FO.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-u8UGq6gX.js → payment.service-BMbF1Svr.js} +5 -5
  228. package/dist/esm/payments-list-core.entry.js +12 -12
  229. package/dist/esm/{payments-status-BMqVM0kB.js → payments-status-_qXPu883.js} +1 -1
  230. package/dist/esm/{payments-table-BMIALfY5.js → payments-table-CrCdh5OV.js} +3 -3
  231. package/dist/esm/payout-details-core.entry.js +10 -10
  232. package/dist/esm/{payout.service-CXW3oJqI.js → payout.service-HKpmn5XB.js} +5 -5
  233. package/dist/esm/payouts-list-core.entry.js +12 -12
  234. package/dist/esm/{payouts-status-BGGBJaXG.js → payouts-status-C1XLgtWW.js} +1 -1
  235. package/dist/esm/{payouts-table-BNPc0Z6X.js → payouts-table-DIqsk6Oa.js} +3 -3
  236. package/dist/esm/{schema-validations-C7pC-de1.js → schema-validations-DLWfpHyI.js} +2 -2
  237. package/dist/esm/{skeleton-C0KgFH0Z.js → skeleton-CdD_FIeP.js} +1 -1
  238. package/dist/esm/{spinner-Dtab-HTx.js → spinner-DIlSUUzM.js} +1 -1
  239. package/dist/esm/{table-wp341KhD.js → table-DjsimZwr.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 -11
  242. package/dist/esm/{terminal-orders-table-CzEC1eXm.js → terminal-orders-table-BnXCVH7W.js} +7 -7
  243. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  244. package/dist/esm/{terminal.service-Cw0RbYs3.js → terminal.service-XpfOXoFl.js} +5 -5
  245. package/dist/esm/terminals-list-core.entry.js +11 -11
  246. package/dist/esm/{terminals-table-CcKZ_9re.js → terminals-table-CCLlefFA.js} +3 -3
  247. package/dist/esm/{utils-BGp_IJEa.js → utils-6CI1OiOE.js} +1 -1
  248. package/dist/esm/{utils-BjLkBMLe.js → utils-DB5fh6Iv.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 +17 -8
  253. package/dist/module/additional-statement.js +1 -1
  254. package/dist/module/bank-account-form2.js +2 -2
  255. package/dist/module/billing-form.js +3 -3
  256. package/dist/module/business-address-schema.js +1 -1
  257. package/dist/module/business-bank-account-form-step-core.js +3 -2
  258. package/dist/module/business-core-info-schema.js +1 -1
  259. package/dist/module/business-identity-schema.js +1 -1
  260. package/dist/module/button.js +1 -1
  261. package/dist/module/cancellation-policy.js +1 -1
  262. package/dist/module/card-form2.js +2 -2
  263. package/dist/module/{Analytics.js → check-pkg-version.js} +21 -21
  264. package/dist/module/checkout-core.js +38 -32
  265. package/dist/module/checkouts-list-core2.js +2 -2
  266. package/dist/module/custom-popper2.js +2 -2
  267. package/dist/module/customer-details.js +1 -1
  268. package/dist/module/dispute-management-core.js +1 -1
  269. package/dist/module/dispute-notification.js +1 -1
  270. package/dist/module/dispute-response-core.js +1 -1
  271. package/dist/module/dispute-response.js +2 -2
  272. package/dist/module/duplicate-charge.js +1 -1
  273. package/dist/module/electronic-evidence.js +1 -1
  274. package/dist/module/file-input-handler.js +4 -7
  275. package/dist/module/form-control-checkbox2.js +2 -2
  276. package/dist/module/form-control-date2.js +2 -2
  277. package/dist/module/form-control-file-v22.js +1 -1
  278. package/dist/module/form-control-file2.js +2 -2
  279. package/dist/module/form-control-monetary2.js +2 -2
  280. package/dist/module/form-control-number-masked2.js +2 -2
  281. package/dist/module/form-control-number.js +2 -2
  282. package/dist/module/form-control-radio2.js +2 -2
  283. package/dist/module/form-control-select2.js +2 -2
  284. package/dist/module/form-control-text2.js +2 -2
  285. package/dist/module/form-control-textarea2.js +2 -2
  286. package/dist/module/gross-payment-chart-core2.js +1 -1
  287. package/dist/module/hidden-input2.js +1 -1
  288. package/dist/module/iframe-input2.js +5 -5
  289. package/dist/module/justifi-business-details.js +1 -1
  290. package/dist/module/justifi-business-form.js +1 -1
  291. package/dist/module/justifi-checkout.js +99 -48
  292. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  293. package/dist/module/justifi-checkouts-list.js +2 -2
  294. package/dist/module/justifi-dispute-management.js +2 -2
  295. package/dist/module/justifi-gross-payment-chart.js +1 -1
  296. package/dist/module/justifi-order-terminals.js +3 -3
  297. package/dist/module/justifi-payment-details.js +1 -1
  298. package/dist/module/justifi-payment-provisioning.js +1 -1
  299. package/dist/module/justifi-payment-transactions-list.js +3 -3
  300. package/dist/module/justifi-payments-list-filters.js +3 -3
  301. package/dist/module/justifi-payments-list.js +2 -2
  302. package/dist/module/justifi-payout-details.js +1 -1
  303. package/dist/module/justifi-payout-transactions-list.js +3 -3
  304. package/dist/module/justifi-payouts-list-filters.js +3 -3
  305. package/dist/module/justifi-payouts-list.js +2 -2
  306. package/dist/module/justifi-refund-payment.js +1 -1
  307. package/dist/module/justifi-season-interruption-insurance.js +11 -9
  308. package/dist/module/justifi-sezzle-payment-method.js +1 -108
  309. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  310. package/dist/module/justifi-terminal-orders-list.js +2 -2
  311. package/dist/module/justifi-terminals-list-filters.js +2 -2
  312. package/dist/module/justifi-terminals-list.js +2 -2
  313. package/dist/module/justifi-tokenize-payment-method.js +40 -41
  314. package/dist/module/package.js +3 -3
  315. package/dist/module/parts.js +1 -1
  316. package/dist/module/payment-details-core2.js +8 -8
  317. package/dist/module/payment-method-options.js +51 -34
  318. package/dist/module/payments-list-core2.js +2 -2
  319. package/dist/module/payout-details-core2.js +3 -3
  320. package/dist/module/payouts-list-core2.js +2 -2
  321. package/dist/module/product-or-service.js +1 -1
  322. package/dist/module/refund-policy.js +1 -1
  323. package/dist/module/saved-payment-method.js +22 -2
  324. package/dist/module/schema-validations.js +1 -1
  325. package/dist/module/sezzle-payment-method.js +104 -0
  326. package/dist/module/shipping-details.js +1 -1
  327. package/dist/module/table-filters-menu2.js +2 -2
  328. package/dist/module/terminal-orders-list-core2.js +2 -2
  329. package/dist/module/terminal-quantity-selector2.js +1 -1
  330. package/dist/module/terminals-list-core2.js +2 -2
  331. package/dist/types/api/Checkout.d.ts +13 -14
  332. package/dist/types/api/ComponentError.d.ts +1 -3
  333. package/dist/types/api/DisputeEvidenceDocument.d.ts +1 -1
  334. package/dist/types/api/Document.d.ts +2 -2
  335. package/dist/types/components/checkout/checkout.d.ts +0 -1
  336. package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
  337. package/dist/types/components/{modular-checkout-parts → checkout}/sezzle-payment-method.d.ts +8 -2
  338. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
  339. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
  340. package/dist/types/components.d.ts +22 -149
  341. package/dist/types/ui-components/form/iframe-input.d.ts +1 -2
  342. package/dist/webcomponents/{p-a76e0f42.entry.js → p-0da7c7e5.entry.js} +1 -1
  343. package/dist/webcomponents/p-111535c9.entry.js +1 -0
  344. package/dist/webcomponents/{p-41dffb12.entry.js → p-18ddc883.entry.js} +1 -1
  345. package/dist/webcomponents/p-1ANZF89K.js +1 -0
  346. package/dist/webcomponents/p-1CYqfEKd.js +1 -0
  347. package/dist/webcomponents/{p-8bb3513f.entry.js → p-249d9a7f.entry.js} +1 -1
  348. package/dist/webcomponents/p-2b5a7776.entry.js +1 -0
  349. package/dist/webcomponents/{p-0fc4a0df.entry.js → p-30415c7f.entry.js} +1 -1
  350. package/dist/webcomponents/{p-7c6f2fad.entry.js → p-312b81a6.entry.js} +1 -1
  351. package/dist/webcomponents/{p-0ed08f7b.entry.js → p-36c99fce.entry.js} +1 -1
  352. package/dist/webcomponents/{p-9c6479a4.entry.js → p-39d3df56.entry.js} +1 -1
  353. package/dist/webcomponents/{p-bac895b4.entry.js → p-3bf842ea.entry.js} +1 -1
  354. package/dist/webcomponents/p-3dc2d47c.entry.js +1 -0
  355. package/dist/webcomponents/p-40bbb25c.entry.js +1 -0
  356. package/dist/webcomponents/{p-1a0f21d1.entry.js → p-40fb2439.entry.js} +1 -1
  357. package/dist/webcomponents/{p-acdf6a5f.entry.js → p-412805ce.entry.js} +1 -1
  358. package/dist/webcomponents/{p-783b70b5.entry.js → p-43c3a433.entry.js} +1 -1
  359. package/dist/webcomponents/{p-feea4bfd.entry.js → p-4ac8d9d4.entry.js} +4 -4
  360. package/dist/webcomponents/{p-1301a9ae.entry.js → p-5436c41f.entry.js} +1 -1
  361. package/dist/webcomponents/p-5576322e.entry.js +1 -0
  362. package/dist/webcomponents/p-59db70c0.entry.js +1 -0
  363. package/dist/webcomponents/p-600da1ee.entry.js +1 -0
  364. package/dist/webcomponents/{p-ef520bb8.entry.js → p-6daf7df0.entry.js} +1 -1
  365. package/dist/webcomponents/{p-9fe2281c.entry.js → p-7d324f45.entry.js} +1 -1
  366. package/dist/webcomponents/p-867a4a55.entry.js +1 -0
  367. package/dist/webcomponents/{p-6d5833b4.entry.js → p-878f26f7.entry.js} +1 -1
  368. package/dist/webcomponents/p-8c0162b3.entry.js +1 -0
  369. package/dist/webcomponents/p-8e201c63.entry.js +1 -0
  370. package/dist/webcomponents/p-91b5da99.entry.js +1 -0
  371. package/dist/webcomponents/{p-17727dd3.entry.js → p-95d99ffc.entry.js} +1 -1
  372. package/dist/webcomponents/p-989f51bc.entry.js +1 -0
  373. package/dist/webcomponents/{p-83037fd2.entry.js → p-9f9002c1.entry.js} +1 -1
  374. package/dist/webcomponents/p-B0XIc_FO.js +1 -0
  375. package/dist/webcomponents/{p-Dqx8L05_.js → p-B3AHoKpE.js} +1 -1
  376. package/dist/webcomponents/{p-CAdO_ZNx.js → p-BLWOT0S7.js} +1 -1
  377. package/dist/webcomponents/{p-Cf4TMP3p.js → p-BOQVwCyQ.js} +1 -1
  378. package/dist/webcomponents/{p-BaoXNxnc.js → p-BSl0X3r8.js} +1 -1
  379. package/dist/webcomponents/{p-BxfUcCXo.js → p-BTS3E50C.js} +1 -1
  380. package/dist/webcomponents/p-BdTK0wi9.js +1 -0
  381. package/dist/webcomponents/{p-BmgpToYI.js → p-Bgdp97Tl.js} +1 -1
  382. package/dist/webcomponents/{p-DhyQbCOq.js → p-BkDN6yJN.js} +1 -1
  383. package/dist/webcomponents/{p-9REosSLu.js → p-BnE7qgLh.js} +1 -1
  384. package/dist/webcomponents/{p-Rx3SLAbu.js → p-Bnrk5pzA.js} +1 -1
  385. package/dist/webcomponents/p-BqoTJ9CO.js +1 -0
  386. package/dist/webcomponents/{p-_6eQgwfE.js → p-BrLVc_85.js} +1 -1
  387. package/dist/webcomponents/p-C5RuuShs.js +1 -0
  388. package/dist/webcomponents/p-C9oyC18r.js +1 -0
  389. package/dist/webcomponents/{p-C39xg5_f.js → p-CNSeavdR.js} +1 -1
  390. package/dist/webcomponents/p-CSO7ljYx.js +1 -0
  391. package/dist/webcomponents/{p-XTXkuHkQ.js → p-CYTPbCLN.js} +1 -1
  392. package/dist/webcomponents/p-CgEahdBL.js +1 -0
  393. package/dist/webcomponents/p-Ckf8pUs-.js +1 -0
  394. package/dist/webcomponents/{p-MNmf3fQL.js → p-Clv1feia.js} +1 -1
  395. package/dist/webcomponents/p-Cm9gh1Sz.js +1 -0
  396. package/dist/webcomponents/p-CraCsD1A.js +1 -0
  397. package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
  398. package/dist/webcomponents/{p-CdkOB2ri.js → p-Cw3BMq7G.js} +1 -1
  399. package/dist/webcomponents/{p-DHvfrLVU.js → p-D9lioyBA.js} +1 -1
  400. package/dist/webcomponents/p-DVnVdicA.js +1 -0
  401. package/dist/webcomponents/p-DgIkDBGX.js +1 -0
  402. package/dist/webcomponents/p-DniQ6yo6.js +1 -0
  403. package/dist/webcomponents/p-DpbCEDZ3.js +1 -0
  404. package/dist/webcomponents/p-Ds11n2AD.js +1 -0
  405. package/dist/webcomponents/p-DvuraFxP.js +1 -0
  406. package/dist/webcomponents/{p-D7js9xfx.js → p-DzFysjCc.js} +1 -1
  407. package/dist/webcomponents/{p-C8Zhkgm5.js → p-JOSiCHl7.js} +1 -1
  408. package/dist/webcomponents/{p-CFpYbRwn.js → p-KoNvNGKV.js} +1 -1
  409. package/dist/webcomponents/p-SdntD1xf.js +1 -0
  410. package/dist/webcomponents/p-Zuu7wsNB.js +1 -0
  411. package/dist/webcomponents/p-a151a347.entry.js +1 -0
  412. package/dist/webcomponents/{p-02e39fe2.entry.js → p-a23dfac9.entry.js} +1 -1
  413. package/dist/webcomponents/{p-cdc71a77.entry.js → p-a38b3d9a.entry.js} +1 -1
  414. package/dist/webcomponents/p-a48f8ec2.entry.js +1 -0
  415. package/dist/webcomponents/{p-042c6784.entry.js → p-a7e9a1d1.entry.js} +1 -1
  416. package/dist/webcomponents/{p-9b1992ef.entry.js → p-a87c50de.entry.js} +1 -1
  417. package/dist/webcomponents/{p-de969ec7.entry.js → p-aa72125e.entry.js} +1 -1
  418. package/dist/webcomponents/p-b648fca4.entry.js +1 -0
  419. package/dist/webcomponents/p-b92737c4.entry.js +1 -0
  420. package/dist/webcomponents/p-bbf264c6.entry.js +1 -0
  421. package/dist/webcomponents/{p-60abac93.entry.js → p-bdbd0c8e.entry.js} +1 -1
  422. package/dist/webcomponents/p-be89720e.entry.js +1 -0
  423. package/dist/webcomponents/{p-03ed0703.entry.js → p-c18a5ebf.entry.js} +1 -1
  424. package/dist/webcomponents/p-c87WhXVB.js +1 -0
  425. package/dist/webcomponents/p-d3a2fa7e.entry.js +1 -0
  426. package/dist/webcomponents/p-d6tXI5Iw.js +1 -0
  427. package/dist/webcomponents/{p-6286917e.entry.js → p-d768d814.entry.js} +1 -1
  428. package/dist/webcomponents/p-d7883a41.entry.js +1 -0
  429. package/dist/webcomponents/{p-4ed62ecf.entry.js → p-d9a9279b.entry.js} +1 -1
  430. package/dist/webcomponents/p-d9ae1fea.entry.js +1 -0
  431. package/dist/webcomponents/p-da872abc.entry.js +1 -0
  432. package/dist/webcomponents/p-db86c150.entry.js +1 -0
  433. package/dist/webcomponents/{p-d5ada96f.entry.js → p-dbcc1a8e.entry.js} +1 -1
  434. package/dist/webcomponents/p-e0345315.entry.js +1 -0
  435. package/dist/webcomponents/{p-6f6d7a87.entry.js → p-e21ba107.entry.js} +1 -1
  436. package/dist/webcomponents/p-e2867ef6.entry.js +1 -0
  437. package/dist/webcomponents/{p-46c0aa2e.entry.js → p-e4fa3f41.entry.js} +1 -1
  438. package/dist/webcomponents/{p-c4d2ff85.entry.js → p-edfcb58d.entry.js} +1 -1
  439. package/dist/webcomponents/p-f37bb6d6.entry.js +1 -0
  440. package/dist/webcomponents/p-f5eeb11d.entry.js +1 -0
  441. package/dist/webcomponents/p-f6d5f392.entry.js +1 -0
  442. package/dist/webcomponents/p-f6debdb8.entry.js +1 -0
  443. package/dist/webcomponents/{p-6ff96203.entry.js → p-fcb85a8e.entry.js} +1 -1
  444. package/dist/webcomponents/p-hBHbB3i6.js +1 -0
  445. package/dist/webcomponents/{p-Smvec9tp.js → p-pOQo1ck9.js} +1 -1
  446. package/dist/webcomponents/{p-DddGO-XR.js → p-vTsHmSQQ.js} +1 -1
  447. package/dist/webcomponents/webcomponents.esm.js +1 -1
  448. package/package.json +1 -1
  449. package/dist/cjs/billing-form-schema-X1bkxteI.js +0 -26
  450. package/dist/cjs/checkout-actions-CRbQgLn0.js +0 -61
  451. package/dist/cjs/checkout.store-LEOetpmH.js +0 -29
  452. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -85
  453. package/dist/cjs/justifi-billing-information-form.cjs.entry.js +0 -50
  454. package/dist/cjs/justifi-card-form.cjs.entry.js +0 -93
  455. package/dist/cjs/justifi-checkout-summary.cjs.entry.js +0 -21
  456. package/dist/cjs/justifi-modular-checkout.cjs.entry.js +0 -204
  457. package/dist/cjs/justifi-postal-code-form.cjs.entry.js +0 -49
  458. package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +0 -31
  459. package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +0 -80
  460. package/dist/cjs/payment-method-option-utils-imuSE7KV.js +0 -25
  461. package/dist/collection/api/BillingInformation.js +0 -1
  462. package/dist/collection/api/PaymentMethod.js +0 -1
  463. package/dist/collection/components/modular-checkout/modular-checkout.js +0 -345
  464. package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +0 -10
  465. package/dist/collection/components/modular-checkout-parts/bank-account.js +0 -98
  466. package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +0 -21
  467. package/dist/collection/components/modular-checkout-parts/billing-form.js +0 -116
  468. package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +0 -10
  469. package/dist/collection/components/modular-checkout-parts/card-form.js +0 -102
  470. package/dist/collection/components/modular-checkout-parts/postal-code-form.js +0 -114
  471. package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +0 -23
  472. package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +0 -127
  473. package/dist/collection/components/modular-checkout-parts/summary.js +0 -12
  474. package/dist/collection/store/checkout.store.js +0 -25
  475. package/dist/esm/billing-form-schema-BQf2Ydp0.js +0 -24
  476. package/dist/esm/checkout-actions-UQ6g1s7I.js +0 -58
  477. package/dist/esm/checkout.store-Ffl2B_i4.js +0 -27
  478. package/dist/esm/justifi-bank-account-form.entry.js +0 -83
  479. package/dist/esm/justifi-billing-information-form.entry.js +0 -48
  480. package/dist/esm/justifi-card-form.entry.js +0 -91
  481. package/dist/esm/justifi-checkout-summary.entry.js +0 -19
  482. package/dist/esm/justifi-modular-checkout.entry.js +0 -202
  483. package/dist/esm/justifi-postal-code-form.entry.js +0 -47
  484. package/dist/esm/justifi-saved-payment-methods.entry.js +0 -29
  485. package/dist/esm/justifi-sezzle-payment-method.entry.js +0 -78
  486. package/dist/esm/payment-method-option-utils-8n_ALxec.js +0 -23
  487. package/dist/module/billing-form-schema.js +0 -24
  488. package/dist/module/checkout-actions.js +0 -58
  489. package/dist/module/checkout.store.js +0 -27
  490. package/dist/module/justifi-bank-account-form.d.ts +0 -11
  491. package/dist/module/justifi-bank-account-form.js +0 -105
  492. package/dist/module/justifi-billing-information-form.d.ts +0 -11
  493. package/dist/module/justifi-billing-information-form.js +0 -94
  494. package/dist/module/justifi-card-form.d.ts +0 -11
  495. package/dist/module/justifi-card-form.js +0 -113
  496. package/dist/module/justifi-checkout-summary.d.ts +0 -11
  497. package/dist/module/justifi-checkout-summary.js +0 -37
  498. package/dist/module/justifi-modular-checkout.d.ts +0 -11
  499. package/dist/module/justifi-modular-checkout.js +0 -218
  500. package/dist/module/justifi-postal-code-form.d.ts +0 -11
  501. package/dist/module/justifi-postal-code-form.js +0 -86
  502. package/dist/module/justifi-saved-payment-methods.d.ts +0 -11
  503. package/dist/module/justifi-saved-payment-methods.js +0 -58
  504. package/dist/module/payment-method-option-utils.js +0 -23
  505. package/dist/types/api/BillingInformation.d.ts +0 -13
  506. package/dist/types/api/PaymentMethod.d.ts +0 -21
  507. package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -31
  508. package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +0 -6
  509. package/dist/types/components/modular-checkout-parts/bank-account.d.ts +0 -18
  510. package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +0 -23
  511. package/dist/types/components/modular-checkout-parts/billing-form.d.ts +0 -16
  512. package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +0 -6
  513. package/dist/types/components/modular-checkout-parts/card-form.d.ts +0 -20
  514. package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +0 -16
  515. package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +0 -5
  516. package/dist/types/components/modular-checkout-parts/summary.d.ts +0 -3
  517. package/dist/types/store/checkout.store.d.ts +0 -19
  518. package/dist/webcomponents/p-05ab99e7.entry.js +0 -1
  519. package/dist/webcomponents/p-05d92d45.entry.js +0 -1
  520. package/dist/webcomponents/p-0977a99a.entry.js +0 -1
  521. package/dist/webcomponents/p-0a7c3741.entry.js +0 -1
  522. package/dist/webcomponents/p-0d8ebb69.entry.js +0 -1
  523. package/dist/webcomponents/p-0lkrqFgg.js +0 -1
  524. package/dist/webcomponents/p-0wMiAwXe.js +0 -1
  525. package/dist/webcomponents/p-15db3b15.entry.js +0 -1
  526. package/dist/webcomponents/p-31a9d45e.entry.js +0 -1
  527. package/dist/webcomponents/p-33bf5d85.entry.js +0 -1
  528. package/dist/webcomponents/p-4126de9e.entry.js +0 -1
  529. package/dist/webcomponents/p-4e38dfac.entry.js +0 -1
  530. package/dist/webcomponents/p-5f33350c.entry.js +0 -1
  531. package/dist/webcomponents/p-631bbd5a.entry.js +0 -1
  532. package/dist/webcomponents/p-63e5e6f6.entry.js +0 -1
  533. package/dist/webcomponents/p-64f047ea.entry.js +0 -1
  534. package/dist/webcomponents/p-716dc79c.entry.js +0 -1
  535. package/dist/webcomponents/p-738ee098.entry.js +0 -1
  536. package/dist/webcomponents/p-7c466cc9.entry.js +0 -1
  537. package/dist/webcomponents/p-7e484d46.entry.js +0 -1
  538. package/dist/webcomponents/p-8ba23f7f.entry.js +0 -1
  539. package/dist/webcomponents/p-8fefebd7.entry.js +0 -1
  540. package/dist/webcomponents/p-93a843db.entry.js +0 -1
  541. package/dist/webcomponents/p-9ba825c5.entry.js +0 -1
  542. package/dist/webcomponents/p-BByypogb.js +0 -1
  543. package/dist/webcomponents/p-BI7GlCtv.js +0 -1
  544. package/dist/webcomponents/p-BJatoeR1.js +0 -1
  545. package/dist/webcomponents/p-BKatPL5G.js +0 -1
  546. package/dist/webcomponents/p-BXeHgiPz.js +0 -1
  547. package/dist/webcomponents/p-BgiXKaf2.js +0 -1
  548. package/dist/webcomponents/p-BhrFjjAs.js +0 -1
  549. package/dist/webcomponents/p-BnvoOeKL.js +0 -1
  550. package/dist/webcomponents/p-Bond4qGX.js +0 -1
  551. package/dist/webcomponents/p-BooprPq0.js +0 -1
  552. package/dist/webcomponents/p-CCPoezRw.js +0 -1
  553. package/dist/webcomponents/p-D5ny0x8_.js +0 -1
  554. package/dist/webcomponents/p-D7uH6T8P.js +0 -1
  555. package/dist/webcomponents/p-DKClunJd.js +0 -1
  556. package/dist/webcomponents/p-DLopwJ61.js +0 -1
  557. package/dist/webcomponents/p-DRKOMqbX.js +0 -1
  558. package/dist/webcomponents/p-DXJXAroG.js +0 -1
  559. package/dist/webcomponents/p-DyvT8iXz.js +0 -1
  560. package/dist/webcomponents/p-NqdaxjDT.js +0 -1
  561. package/dist/webcomponents/p-bc05e051.entry.js +0 -1
  562. package/dist/webcomponents/p-c102dea5.entry.js +0 -1
  563. package/dist/webcomponents/p-cb84a2e6.entry.js +0 -1
  564. package/dist/webcomponents/p-ce242f4c.entry.js +0 -1
  565. package/dist/webcomponents/p-d0d83153.entry.js +0 -1
  566. package/dist/webcomponents/p-d81f30f6.entry.js +0 -1
  567. package/dist/webcomponents/p-d90e981c.entry.js +0 -1
  568. package/dist/webcomponents/p-da961813.entry.js +0 -1
  569. package/dist/webcomponents/p-dadd593a.entry.js +0 -1
  570. package/dist/webcomponents/p-e3437894.entry.js +0 -1
  571. package/dist/webcomponents/p-eb6f1a3f.entry.js +0 -1
  572. package/dist/webcomponents/p-ebc0b06d.entry.js +0 -1
  573. package/dist/webcomponents/p-ecfab304.entry.js +0 -1
  574. package/dist/webcomponents/p-efa7aef1.entry.js +0 -1
  575. package/dist/webcomponents/p-eilUGO3o.js +0 -1
  576. package/dist/webcomponents/p-fd7c5ac5.entry.js +0 -1
  577. package/dist/webcomponents/p-hDoH7hHP.js +0 -1
  578. package/dist/webcomponents/p-jA8bbxkp.js +0 -1
  579. package/dist/webcomponents/p-pGzabKc7.js +0 -1
  580. package/dist/webcomponents/p-rzqedGq4.js +0 -1
  581. package/dist/webcomponents/p-zucQG3cz.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as s,h as e}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-CFpYbRwn.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 f,h as d,i as u,j as b,k as m,l as j}from"./p-XTXkuHkQ.js";import{T as g}from"./p-CZfYo5-1.js";import{c as y,a as k}from"./p-Rx3SLAbu.js";import{o as l,g as C}from"./p-CKRDBISo.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-_6eQgwfE.js";import"./p-D7uH6T8P.js";import"./p-BaoXNxnc.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:g.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:g.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:g.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,y,k),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(j,{key:"c496328d1840fb1f823f233c04c78525b5f12553"},e(r,{key:"f994cfed9bf75a299fc94dd22306911d84b44541"},e(h,{key:"0ffb6ce97ebe1a35eb0143b43767223d844a70e0"},e(o,{key:"d063eaafc44bf75be0de5463a1f9b2789ec8b76e"},this.checkoutsTable.columnData.map((t=>t)))),e(c,{key:"624a316c1631070a999c48342e71c55207b51be3"},e(n,{key:"0f7444acf626537bf2179fdb64a435550bcf20d3",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"ea68f85498d3bcbb44c8d9158d5cc6a228867e6c",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(f,{key:"db72f0190431182f410f246ad00fceb51901fd66",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(u,{key:"855184d90f85a1dd299c372b5b065e1af2151a99"},e(b,{key:"b216c505abd04f79c0a733312fc5babdb35f2b77"},e(m,{key:"efa83af6ee8543443826ccfe4efc230afc5d05f6",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"70664e167672a40b63c7fdd2603c52e8584870e9",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as checkouts_list_core}
1
+ import{r as t,c as s,h as e}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.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-KoNvNGKV.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-CYTPbCLN.js";import{T as j}from"./p-CZfYo5-1.js";import{c as y,a as k}from"./p-Bnrk5pzA.js";import{o as l,g as C}from"./p-CKRDBISo.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BrLVc_85.js";import"./p-DgIkDBGX.js";import"./p-BSl0X3r8.js";const S=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,y,k),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{S as checkouts_list_core}
@@ -0,0 +1 @@
1
+ import{h as r}from"./p-N3w5zrz2.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{h as t}from"./p-N3w5zrz2.js";import{B as e,a}from"./p-BSl0X3r8.js";const n=n=>t(a,Object.assign({},{canceled:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Canceled"},failed:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Failed"},forwarded:{variant:e.SECONDARY,title:"This payout initially failed; the funds have been forwarded to your next successful payout",text:"Forwarded"},in_transit:{variant:e.PRIMARY,title:"Transfer to your bank account has been initiated",text:"In Transit"},paid:{variant:e.SUCCESS,title:"Successfully deposited into your bank account",text:"Paid"},pending:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Pending"},scheduled:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Scheduled"},withdrawn:{variant:e.SUCCESS,title:"Negative payout balance successfully withdrawn from your bank account",text:"Withdrawn"}}[n]));export{n as M}
@@ -1 +1 @@
1
- import{r as e,h as t,H as a,c as s,a as r}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import{i as o,d as i,j as c}from"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{E as l}from"./p-CFpYbRwn.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{Z as f,x as b,ak as h,I as p,al as m,c as u,l as y,b as k,T as x,a as j}from"./p-_6eQgwfE.js";import{S as v}from"./p-BI7GlCtv.js";import"./p-CZfYo5-1.js";import{F as _}from"./p-BooprPq0.js";import"./p-Dcbfnfn2.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."})))}},w=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(v,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:f},t("div",{class:"card-body"},t("h5",{class:"card-title",part:b},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:h},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:m},e.file_name),t("td",{part:m},e.file_type),t("td",{part:m},o(e.document_type)),t("td",{part:m},`${i(e.created_at)} - ${c(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:"329fd1cedefedb6bd17acfbb30adfefecefb19ca"},t("div",{key:"abdd1db599e47f367bc56008386026361ee8aa3b",class:"form-group d-flex flex-column"},t("div",{key:"9306d438e038947b68cc3b8b2faa2ab412fab203",class:"d-flex align-items-start gap-2"},t("label",{key:"164c4e92e01d5219013623d0edaa3c96a814ff6c",part:y,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"2d7fe58881cfa259f3d2ba8edbc6f07411ea26c6",helpText:this.helpText})),t("input",{key:"1964930b98527640df99e1e22b6322e0627bc668",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:"02ffabfccf4e06936e0ed44fe2ad715f7f44fe3f",errorText:this.errorText,name:this.name})))}get el(){return r(this)}};export{T as bank_account_document_form_inputs,g as bank_account_form_inputs,w as business_documents_on_file,H as form_control_file}
1
+ import{r as e,h as t,H as a,c as s,a as c}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.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-KoNvNGKV.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-C9oyC18r.js";import"./p-CZfYo5-1.js";import{F as _}from"./p-Zuu7wsNB.js";import"./p-Dcbfnfn2.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."})))}},w=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,w as business_documents_on_file,H as form_control_file}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-N3w5zrz2.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(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,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}
@@ -1 +1 @@
1
- import{r as e,h as a,H as t}from"./p-N3w5zrz2.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-N3w5zrz2.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}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import{P as r}from"./p-Cf4TMP3p.js";import{m as p}from"./p-BJatoeR1.js";import{E as e}from"./p-MNmf3fQL.js";import{C as o,a}from"./p-BhrFjjAs.js";import{c as m,J as n}from"./p-0lkrqFgg.js";import"./p-DHvfrLVU.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-7MWRbTXI.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-NqdaxjDT.js";import"./p-_6eQgwfE.js";import"./p-rzqedGq4.js";const h=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.paymentService=new r,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new n(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=p({id:this.paymentId,authToken:this.authToken,service:new r}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?e(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{h as justifi_payment_details}
1
+ import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import{P as r}from"./p-BOQVwCyQ.js";import{m as p}from"./p-BqoTJ9CO.js";import{E as e}from"./p-Clv1feia.js";import{C as o,a}from"./p-SdntD1xf.js";import{c as m,J as n}from"./p-Ckf8pUs-.js";import"./p-D9lioyBA.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-BnE7qgLh.js";import"./p-BFTU3MAI.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-7MWRbTXI.js";import"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-C5RuuShs.js";import"./p-BrLVc_85.js";import"./p-B0XIc_FO.js";const h=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.paymentService=new r,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new n(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=p({id:this.paymentId,authToken:this.authToken,service:new r}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?e(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{h as justifi_payment_details}
@@ -1 +1 @@
1
- import{r as a,h as e,H as s}from"./p-N3w5zrz2.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-N3w5zrz2.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}
@@ -1 +1 @@
1
- import{r as t,c as s,h as a,H as i}from"./p-N3w5zrz2.js";import{I as e}from"./p-Ce_F4E0f.js";import{C as r}from"./p-B-iV5cYd.js";import{_ as o,l as h,U as c,b as n,T as f,a as l}from"./p-_6eQgwfE.js";import{F as d}from"./p-DLopwJ61.js";import{F as p}from"./p-BooprPq0.js";import"./p-CZfYo5-1.js";const m=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.maskOptions=r.DECIMAL,this.initializeIMask=()=>{this.textInput&&(this.imask=e(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.formControlInput.emit({name:s,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}get inputPart(){let t=o;return this.errorText&&(t=n),this.disabled&&(t=f),this.isFocused&&(t=l),t}render(){return a(i,{key:"950019f15743434eaa378b48338e73157525d677"},a("div",{key:"9a4dab257ec7a62f3f3f1ba1cc2c4aad3f823c17",class:"form-group d-flex flex-column"},a("label",{key:"19d046ba0d9f5d2b8fc7c3d8c1b9dc893a5834e5",part:h,class:"form-label",htmlFor:this.name},this.label),a("div",{key:"ba7df233aa5965ee0a7f5c01dfd84aabd3cecf70",class:"input-group"},a("span",{key:"e325e64173d5d7c260b824ef492f02f2333bdb8f",class:"input-group-text",part:c},"$"),a("input",{key:"5b1632e00657f9aa31139a9869ab63ad9388612e",ref:t=>this.textInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.inputPart,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),a(d,{key:"cb7f04dc7e6849d335eb0cfecfb05d7e0c26ff1f",helpText:this.helpText,name:this.name}),a(p,{key:"6ad1b947a48e8c97a2f5a1c4c2c1094679ce25cd",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_monetary_provisioning}
1
+ import{r as t,c as s,h as a,H as i}from"./p-N3w5zrz2.js";import{I as e}from"./p-Ce_F4E0f.js";import{C as r}from"./p-B-iV5cYd.js";import{Y as h,l as o,S as c,b as n,R as f,a as l}from"./p-BrLVc_85.js";import{F as d}from"./p-DpbCEDZ3.js";import{F as p}from"./p-Zuu7wsNB.js";import"./p-CZfYo5-1.js";const m=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.maskOptions=r.DECIMAL,this.initializeIMask=()=>{this.textInput&&(this.imask=e(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.formControlInput.emit({name:s,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}get inputPart(){let t=h;return this.errorText&&(t=n),this.disabled&&(t=f),this.isFocused&&(t=l),t}render(){return a(i,{key:"950019f15743434eaa378b48338e73157525d677"},a("div",{key:"9a4dab257ec7a62f3f3f1ba1cc2c4aad3f823c17",class:"form-group d-flex flex-column"},a("label",{key:"19d046ba0d9f5d2b8fc7c3d8c1b9dc893a5834e5",part:o,class:"form-label",htmlFor:this.name},this.label),a("div",{key:"ba7df233aa5965ee0a7f5c01dfd84aabd3cecf70",class:"input-group"},a("span",{key:"e325e64173d5d7c260b824ef492f02f2333bdb8f",class:"input-group-text",part:c},"$"),a("input",{key:"5b1632e00657f9aa31139a9869ab63ad9388612e",ref:t=>this.textInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.inputPart,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),a(d,{key:"cb7f04dc7e6849d335eb0cfecfb05d7e0c26ff1f",helpText:this.helpText,name:this.name}),a(p,{key:"6ad1b947a48e8c97a2f5a1c4c2c1094679ce25cd",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_monetary_provisioning}
@@ -1 +1 @@
1
- import{r as e,c as t,h as a,H as s}from"./p-N3w5zrz2.js";import{I as i}from"./p-Ce_F4E0f.js";import{b as l,T as d,a as o,c as r,l as c}from"./p-_6eQgwfE.js";import{F as f}from"./p-BooprPq0.js";import"./p-CZfYo5-1.js";import{S as n}from"./p-BX8GieXu.js";import{n as h}from"./p-BnjCmwMr.js";const b=class{constructor(a){e(this,a),this.formControlInput=t(this,"formControlInput"),this.formControlBlur=t(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.initializeIMask=()=>{this.textInput&&(this.imask=i(this.textInput,{mask:this.mask}),this.imask.on("accept",(()=>{var e;const t=null===(e=this.imask)||void 0===e?void 0:e.unmaskedValue;void 0!==t&&this.inputHandler(this.name,t)})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.formControlInput.emit({name:a,value:t.value})},this.updateInput=e=>{this.imask&&e&&(this.imask.value=String(e))}}handleDefaultValueChange(e){this.initializeIMask(),this.updateInput(e)}disconnectedCallback(){var e;null===(e=this.imask)||void 0===e||e.destroy()}componentDidLoad(){this.textInput&&(this.initializeIMask(),this.updateInput(this.defaultValue))}get part(){return this.errorText?l:this.disabled?d:this.isFocused?o:r}render(){return a(s,{key:"cb63ba287e7fc1ee36b212118b137c6cf3b655b5"},a("div",{key:"db73b8a97ea151737018354f24f0e4f0efad92da",class:"form-group d-flex flex-column"},a("div",{key:"833c67c07e655d7394b9a262ecfc90f9c28fa06b",class:"d-flex align-items-start gap-2"},a("label",{key:"cb21d0026c79860ae7b03b311832c2bc5d1541ba",part:c,class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"25e97d3cfe5611fdfbb31dee90a5c9a284beaf18",helpText:this.helpText})),a("input",{key:"a1eaaa42cac4325eea57a5814611af3dfada4270",ref:e=>this.textInput=e,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),a(f,{key:"9a412bb22888801d7a5ae67f5d840d9b46525e5e",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},u=class{constructor(t){e(this,t),this.address={},this.inputHandler=(e,t)=>{this.address[e]=t,this.address=Object.assign({},this.address)}}handleAddressChange(e){this.handleFormUpdate(e)}render(){var e,t,i,l,d,o,r,c,f,b,u,m;return a(s,{key:"ee0ad865c40fb26b4138c0b68a944f05f96fdc65"},a("div",{key:"15e35c582daaa30f5d7523d30445546fa9d648b8",class:"row gy-3"},a("div",{key:"066f08f377cdb74ff640787fdc54082b74952de0",class:"col-12 col-md-8"},a("form-control-text",{key:"9b96dd42003108200b0ebb0bb5f246e48028967a",name:"line1",label:"Street Address",defaultValue:null===(e=this.defaultValues)||void 0===e?void 0:e.line1,errorText:null===(t=this.errors)||void 0===t?void 0:t.line1,inputHandler:this.inputHandler,helpText:"​​Enter your address exactly as stated on your driver's license. No PO Boxes."})),a("div",{key:"c0f25515428343bdbb6e2ee715dc8e7996ae922b",class:"col-12 col-md-4"},a("form-control-text",{key:"af541412c694f912fb2d511d1b72d02274e4ef21",name:"line2",label:"Apartment, Suite, etc. (optional)",defaultValue:null===(i=this.defaultValues)||void 0===i?void 0:i.line2,errorText:null===(l=this.errors)||void 0===l?void 0:l.line2,inputHandler:this.inputHandler})),a("div",{key:"61cdbddac8ab71b22feab3a5169f5fda57f751ee",class:"col-12"},a("form-control-text",{key:"1861b0a9807c2f0679eaba07f313d4dfaf563fd2",name:"city",label:"City",defaultValue:null===(d=this.defaultValues)||void 0===d?void 0:d.city,errorText:null===(o=this.errors)||void 0===o?void 0:o.city,inputHandler:this.inputHandler})),a("div",{key:"cb3aab077c4e3824e6becf46396b67114ff24f16",class:"col-12 col-md-6"},a("form-control-select",{key:"0adfc316afc87f6aa91198d01da7ad3a86b6221d",name:"state",label:"State",defaultValue:null===(r=this.defaultValues)||void 0===r?void 0:r.state,options:n,errorText:null===(c=this.errors)||void 0===c?void 0:c.state,inputHandler:this.inputHandler})),a("div",{key:"36ae7e269ba4f31541ffc2d20e0931500b33732a",class:"col-12 col-md-6"},a("form-control-text",{key:"7f8a76e23c78f505133a3fcd23575ae0e04e2c7a",name:"postal_code",label:"Postal Code",defaultValue:null===(f=this.defaultValues)||void 0===f?void 0:f.postal_code,errorText:null===(b=this.errors)||void 0===b?void 0:b.postal_code,maxLength:5,keyDownHandler:h,inputHandler:this.inputHandler})),a("div",{key:"67d3c31c5450fffcc5d333f2a6927f805d88fc4f",class:"col-12"},a("form-control-select",{key:"c99faee491f35231c852e9a6096e5822c389d6cb",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null===(u=this.defaultValues)||void 0===u?void 0:u.country,errorText:null===(m=this.errors)||void 0===m?void 0:m.country,disabled:!0}))))}static get watchers(){return{address:["handleAddressChange"]}}};export{b as form_control_number_masked,u as justifi_identity_address_form}
1
+ import{r as e,c as t,h as a,H as s}from"./p-N3w5zrz2.js";import{I as d}from"./p-Ce_F4E0f.js";import{b as i,R as l,a as o,c as r,l as c}from"./p-BrLVc_85.js";import{F as n}from"./p-Zuu7wsNB.js";import"./p-CZfYo5-1.js";import{S as f}from"./p-BX8GieXu.js";import{n as h}from"./p-BnjCmwMr.js";const u=class{constructor(a){e(this,a),this.formControlInput=t(this,"formControlInput"),this.formControlBlur=t(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.initializeIMask=()=>{this.textInput&&(this.imask=d(this.textInput,{mask:this.mask}),this.imask.on("accept",(()=>{var e;const t=null===(e=this.imask)||void 0===e?void 0:e.unmaskedValue;void 0!==t&&this.inputHandler(this.name,t)})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.formControlInput.emit({name:a,value:t.value})},this.updateInput=e=>{this.imask&&e&&(this.imask.value=String(e))}}handleDefaultValueChange(e){this.initializeIMask(),this.updateInput(e)}disconnectedCallback(){var e;null===(e=this.imask)||void 0===e||e.destroy()}componentDidLoad(){this.textInput&&(this.initializeIMask(),this.updateInput(this.defaultValue))}get part(){return this.errorText?i:this.disabled?l:this.isFocused?o:r}render(){return a(s,{key:"328a9d2bf17d2ec2a8a9fa5acf6bbe76af38a38a"},a("div",{key:"24d1757d7d554ac65e7c2413490425ca3d06aefc",class:"form-group d-flex flex-column"},a("div",{key:"4548a8ee8d7538f2c3b7ddb0d76ec8c7342cc88a",class:"d-flex align-items-start gap-2"},a("label",{key:"c58ccd5ecb756e084a30d9686603e54487bf34ab",part:c,class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"50d1aeed268375b7b2a9845065ccdc4e1dc5a495",helpText:this.helpText})),a("input",{key:"ed473e972cc773b9a914dde41d9bff2d8880c604",ref:e=>this.textInput=e,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),a(n,{key:"6e02db8068b1df62e757de4dd7df5673ad375180",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},b=class{constructor(t){e(this,t),this.address={},this.inputHandler=(e,t)=>{this.address[e]=t,this.address=Object.assign({},this.address)}}handleAddressChange(e){this.handleFormUpdate(e)}render(){var e,t,d,i,l,o,r,c,n,u,b,m;return a(s,{key:"ee0ad865c40fb26b4138c0b68a944f05f96fdc65"},a("div",{key:"15e35c582daaa30f5d7523d30445546fa9d648b8",class:"row gy-3"},a("div",{key:"066f08f377cdb74ff640787fdc54082b74952de0",class:"col-12 col-md-8"},a("form-control-text",{key:"9b96dd42003108200b0ebb0bb5f246e48028967a",name:"line1",label:"Street Address",defaultValue:null===(e=this.defaultValues)||void 0===e?void 0:e.line1,errorText:null===(t=this.errors)||void 0===t?void 0:t.line1,inputHandler:this.inputHandler,helpText:"​​Enter your address exactly as stated on your driver's license. No PO Boxes."})),a("div",{key:"c0f25515428343bdbb6e2ee715dc8e7996ae922b",class:"col-12 col-md-4"},a("form-control-text",{key:"af541412c694f912fb2d511d1b72d02274e4ef21",name:"line2",label:"Apartment, Suite, etc. (optional)",defaultValue:null===(d=this.defaultValues)||void 0===d?void 0:d.line2,errorText:null===(i=this.errors)||void 0===i?void 0:i.line2,inputHandler:this.inputHandler})),a("div",{key:"61cdbddac8ab71b22feab3a5169f5fda57f751ee",class:"col-12"},a("form-control-text",{key:"1861b0a9807c2f0679eaba07f313d4dfaf563fd2",name:"city",label:"City",defaultValue:null===(l=this.defaultValues)||void 0===l?void 0:l.city,errorText:null===(o=this.errors)||void 0===o?void 0:o.city,inputHandler:this.inputHandler})),a("div",{key:"cb3aab077c4e3824e6becf46396b67114ff24f16",class:"col-12 col-md-6"},a("form-control-select",{key:"0adfc316afc87f6aa91198d01da7ad3a86b6221d",name:"state",label:"State",defaultValue:null===(r=this.defaultValues)||void 0===r?void 0:r.state,options:f,errorText:null===(c=this.errors)||void 0===c?void 0:c.state,inputHandler:this.inputHandler})),a("div",{key:"36ae7e269ba4f31541ffc2d20e0931500b33732a",class:"col-12 col-md-6"},a("form-control-text",{key:"7f8a76e23c78f505133a3fcd23575ae0e04e2c7a",name:"postal_code",label:"Postal Code",defaultValue:null===(n=this.defaultValues)||void 0===n?void 0:n.postal_code,errorText:null===(u=this.errors)||void 0===u?void 0:u.postal_code,maxLength:5,keyDownHandler:h,inputHandler:this.inputHandler})),a("div",{key:"67d3c31c5450fffcc5d333f2a6927f805d88fc4f",class:"col-12"},a("form-control-select",{key:"c99faee491f35231c852e9a6096e5822c389d6cb",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null===(b=this.defaultValues)||void 0===b?void 0:b.country,errorText:null===(m=this.errors)||void 0===m?void 0:m.country,disabled:!0}))))}static get watchers(){return{address:["handleAddressChange"]}}};export{u as form_control_number_masked,b as justifi_identity_address_form}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import{C as r,a as o}from"./p-SdntD1xf.js";import{c as e,J as p}from"./p-Ckf8pUs-.js";import{T as n}from"./p-BkDN6yJN.js";import"./p-CfBKn_Vl.js";import"./p-BnE7qgLh.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{b as a}from"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as c,a as h}from"./p-C5RuuShs.js";import{m,S as l}from"./p-hBHbB3i6.js";import{S as u}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-BLWOT0S7.js";import"./p-B0XIc_FO.js";import"./p-D9lioyBA.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BSl0X3r8.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=j,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 n,m;try{const l=await i.fetchTerminals(t,s,o);if(l.error)return p({error:h(l.error),code:c(null===(m=l.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},l.page_info);e({terminals:(null===(n=l.data)||void 0===n?void 0:n.map((t=>new a(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 n}):(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=m({accountId:this.accountId,authToken:this.authToken,service:new l}))}render(){return i(u,{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}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import{P as o}from"./p-Cm9gh1Sz.js";import"./p-CfBKn_Vl.js";import"./p-BnE7qgLh.js";import{C as r,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-KoNvNGKV.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-Clv1feia.js";import{c as m,J as c}from"./p-Ckf8pUs-.js";import{m as d}from"./p-DniQ6yo6.js";import"./p-D9lioyBA.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BrLVc_85.js";import"./p-B0XIc_FO.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:o,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=d({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e}from"./p-N3w5zrz2.js";import{T as i,a,b as r,c as h,d as o,e as n,f as p,g as c,h as d,i as f,j as m,k as b,l as j}from"./p-XTXkuHkQ.js";import{T as u}from"./p-CZfYo5-1.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import{p as g}from"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{t as l,a as y}from"./p-C39xg5_f.js";import{o as k,g as w}from"./p-w128-0Mj.js";import"./p-_6eQgwfE.js";import"./p-D7uH6T8P.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BaoXNxnc.js";const C=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminalOrders=[],this.loading=!0,this.paging=g,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:u.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:u.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:u.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new i(this.terminalOrders,this.columns,l,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=w();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"aae9cc67cadd3989bfe35b4a029f6838e0d1ab54"},e(a,{key:"e5fe37a91442392ed811478fae42686abdd0f764"},e(r,{key:"7ec41066cd103cbc7846fd957ffb7fa3f6a92318"},e(h,{key:"17291d4aa59ea50de7e2d1e6d302a4bea8c2989c"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"020a2ce88efdb3223a02a01f5eeb2d5d743e1e29"},e(n,{key:"8d104a25063bed6d617d0eda6cff9591ce9f81d2",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"1ff344e0a586b616fea6fda64c4f7a9b0071285a",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(c,{key:"97dd1548d785d0c300f8fe48ebc3db906a1977c9",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"95b22129c05b799281992eb2656a94b012cdfdda"},e(m,{key:"b17eaaf582cea7dc7732b0fedd3e5d013737111b"},e(b,{key:"1ec85f78971ed79021aa1eec527edc59c8dfbb09",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"08c14ef23e528575927210859e7cd46f21c77d7c",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{C as terminal_orders_list_core}
1
+ import{r as t,c as s,h as e}from"./p-N3w5zrz2.js";import{T as i,a,b as r,c as h,d as o,e as n,f as p,g as c,h as d,i as f,j as m,k as b,l as j}from"./p-CYTPbCLN.js";import{T as g}from"./p-CZfYo5-1.js";import"./p-CfBKn_Vl.js";import"./p-BnE7qgLh.js";import"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import{p as l}from"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{t as u,a as y}from"./p-CNSeavdR.js";import{o as k,g as C}from"./p-w128-0Mj.js";import"./p-BrLVc_85.js";import"./p-DgIkDBGX.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BSl0X3r8.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminalOrders=[],this.loading=!0,this.paging=l,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:g.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:g.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:g.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new i(this.terminalOrders,this.columns,u,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"5d03d7f992d4918b6174d89aa67ac87159b0918d"},e(a,{key:"30dfd6db82678f7c8e25ee03619403bf0a73ad47"},e(r,{key:"3e51fd3124abf93a1a76ac6d6b66ec64edf30216"},e(h,{key:"170385237e96ba55aa21c954bff4f74a7724463b"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"c313d42ae1ad3f54a806f8965b8ff99616df85ab"},e(n,{key:"7f01919e6120a497383990bafb8288fec806f421",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"e6585de336bb6cfe0f7bddc4bd503cf5632481da",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(c,{key:"3490d034636506fdd54c748bff98596baed09673",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"52ba4b6e8c0d2afcded3feaaf6a22927036b96fa"},e(m,{key:"8fccd42dc633300f5e6664ff380c3828010ff6ec"},e(b,{key:"7937c9bceb54abe450e9b7956bd2599de228cc8b",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"90854b93870cb20251488fd15e936982245c3d3b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as terminal_orders_list_core}
@@ -1 +1 @@
1
- import{r as e,c as t,h as s}from"./p-N3w5zrz2.js";import{f as i}from"./p-9REosSLu.js";import{t as a,aj as r}from"./p-_6eQgwfE.js";import{B as d}from"./p-Smvec9tp.js";import{S as o}from"./p-o5iASgog.js";import{S as c}from"./p-BI7GlCtv.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-BhrFjjAs.js";import{g as p,a as l}from"./p-NqdaxjDT.js";import{D as f}from"./p-BnvoOeKL.js";import{D as b}from"./p-Bg2SZArf.js";import{c as u,J as y}from"./p-0lkrqFgg.js";import"./p-BFTU3MAI.js";import"./p-DHvfrLVU.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-7MWRbTXI.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-rzqedGq4.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:l(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new f})({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:b.respondToDispute})}render(){var e,t,n,h,p,l,f;return s(o,{key:"ec6f99be66b3b164c367b96d8274824d2e709dd5"},this.isLoading&&s("div",{key:"26587e055eb4756785ae5935fd803746ddab355d",style:{marginBottom:"8px"}},s(c,{key:"159c5d9b0fb16af4aac0125ea5e69bd9f7b4210e",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(c,{key:"5c89a8dd2244ddaed8c26b743cb22f20fa2e2742",height:"18px",styles:{marginBottom:"8px"}}),s(c,{key:"6f0a6ebf743bdbea125c6630cb98c5bda5bd9919",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"f44a0c9494731be14b75e3b25adc2b09c61c84a5",part:a},s("h1",{key:"d8820437a86bebcc0782607796b4f2c5429d40e7",class:"h4",part:r},"This payment is disputed"),s("p",{key:"8cf4a2b3194d781d5f17ae3067d9931be54159e2"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"d79312da2cc6715016be0b57d1b70e0ddbc2b8c5",class:"h5"},"Dispute details"),s("div",{key:"958af1e87a119c4af76729b54bf322c16b966c54",class:"d-table gap-2"},s("div",{key:"e10802db747c99408371863c94c2f47737a03626",class:"d-table-row gap-2"},s("span",{key:"84b151c7c9846fd395517ab14339504e56e5298d",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"197dffa3676aa9ff7425cea00eca69bb84bef427",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:"4754429fa095be98083e34b32485cc45f379151b",class:"d-table-row gap-2"},s("span",{key:"c3e168a4d7dd902b9c4bc67531b7489dea32bda2",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"f08c9ce67f2b7b673de82963bacaf6ea8af87353",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:"0de1ab69dbc18cb00b31df8c2c4ab421a5982b4b",class:"d-table-row gap-2"},s("span",{key:"8217191859fed71cbeac5173b0a43ff4a98c397d",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"e63c3d2a1f0dbd98aae53a402be9fa96344e4f0b",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:"5767bc945b2fd3c7390011771b5c7a53c27c4447",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"dd6676ca0348579051cf13ce32bf6d9b1a2a3d21",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"27655bc90dd44e05180739e9c2a0f695ad294266",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"2b25123f6bf95ad7e847b4365f96eab71f1933f8"},s("h1",{key:"ab4b47f721ded5deb8b04a9b55b6c2978616f23b",class:"h4"},"This payment is disputed and under review"),s("p",{key:"bf4ee462258e4742ddf5722f470b597134489ee1"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(l=this.dispute)||void 0===l?void 0:l.won)&&s("div",{key:"ba1257cb1448cb8b4cd1aba4340f2ac65208e264"},s("h1",{key:"203b5926fa96278cfd3a7b0a4d5398226b2361b6",class:"h4"},"This payment was disputed"),s("p",{key:"8f05fc9fb0d7f5151519bbf82ed6abeca676e4b5"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(f=this.dispute)||void 0===f?void 0:f.lost)&&s("div",{key:"1f6d1d4048cc011d61292934dd225ef07dcf260d"},s("h1",{key:"3df3c3a6bf4c86e8eb0361b039d88f55b502177c",class:"h4"},"This payment was disputed"),s("p",{key:"03f2dce54b06ad242f8e8d1d4c8194219013af1c"},"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(){u(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:l(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new f}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:l(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new f}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new f})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(o,{key:"29abcdaed7ccbfee203794068c72354a5e1e0bab"},s("justifi-dispute-response-core",{key:"e0697cb6261d0b50d6adb6d33caa955d08e4e158","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:b.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:b.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:b.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:b.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"41406d4115c2a084c84ca59895c0107af2a30e4d",class:"row gy-3"},s("div",{key:"54f86cc1ffdb90a4ec738ca6cdac8165025ede65",class:"col-12"},s("h1",{key:"28a0289b5926d7f4d04a658f13782d80aa96584a",class:"h4",part:r},"Counter dispute")),s("div",{key:"abfcc8a09326b8d780647a644dd0b6e1deada071",class:"col-12"},this.currentStepComponent),s("div",{key:"e1bfbd12d9c6c86521d1d47cd4afb007960cdf9b",class:"col-12"},s("div",{key:"3149002728d1953c116758ab48eb0a2481a68398",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{v as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
1
+ import{r as e,c as t,h as s}from"./p-N3w5zrz2.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-pOQo1ck9.js";import{S as o}from"./p-o5iASgog.js";import{S as c}from"./p-C9oyC18r.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-c87WhXVB.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-Ckf8pUs-.js";import"./p-BFTU3MAI.js";import"./p-D9lioyBA.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-7MWRbTXI.js";import"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-B0XIc_FO.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(o,{key:"77119b1227200909f4742e24df0a45e1f631c65c"},this.isLoading&&s("div",{key:"f0766ff057fb2f4b75b34c7d4a386bde43e49652",style:{marginBottom:"8px"}},s(c,{key:"d7268194dea5ac2a3b87aea8e17573b4768e308f",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(c,{key:"f8863e45a917f56be302ca1b0b3d472119f6465c",height:"18px",styles:{marginBottom:"8px"}}),s(c,{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 o;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(o,{key:"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}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import{C as o,a as r}from"./p-BhrFjjAs.js";import{c as e,J as p}from"./p-0lkrqFgg.js";import{P as a}from"./p-DyvT8iXz.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{P as n}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as c,a as h}from"./p-NqdaxjDT.js";import{m}from"./p-pGzabKc7.js";import{m as u,S as d}from"./p-CCPoezRw.js";import{S as j}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{d as f}from"./p-BmgpToYI.js";import"./p-rzqedGq4.js";import"./p-DHvfrLVU.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-eilUGO3o.js";import"./p-BaoXNxnc.js";import"./p-_6eQgwfE.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=f,this.handleOnError=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.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:e,onError:p})=>{var a,m;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return p({error:h(u.error),code:c(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);e({payouts:(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:o.ERROR})}})(t),this.getPayoutCSV=m(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(j,{key:"cb3d9f45b26f10dcb3e4f230655e3dbcb9169e66"},i("payouts-list-core",{key:"0099531b4747cc5b04741ed7fc12cf5f2add028e",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_payouts_list}
1
+ import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import{C as o,a as r}from"./p-SdntD1xf.js";import{c as e,J as p}from"./p-Ckf8pUs-.js";import{P as a}from"./p-Cm9gh1Sz.js";import"./p-CfBKn_Vl.js";import"./p-BnE7qgLh.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{P as n}from"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as c,a as h}from"./p-C5RuuShs.js";import{m}from"./p-DniQ6yo6.js";import{m as u,S as d}from"./p-hBHbB3i6.js";import{S as j}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-Bgdp97Tl.js";import"./p-B0XIc_FO.js";import"./p-D9lioyBA.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-1CYqfEKd.js";import"./p-BSl0X3r8.js";import"./p-BrLVc_85.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleOnError=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.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:e,onError:p})=>{var a,m;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return p({error:h(u.error),code:c(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);e({payouts:(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:o.ERROR})}})(t),this.getPayoutCSV=m(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(j,{key:"922ee0ed12294b66d854d28aa18a06dc0438c662"},i("payouts-list-core",{key:"cc0557c8fdc14b16df203a6a648c3381a6ff2c13",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}