@justifi/webcomponents 5.6.1 → 5.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (646) hide show
  1. package/dist/cjs/{ApiNew-DG13rvk6.js → Api-C8nf_gS9.js} +1 -1
  2. package/dist/cjs/{Payment-CQCmj3Ck.js → Document-CL5Zc72Q.js} +57 -0
  3. package/dist/cjs/{Refund-CpurRc4w.js → Refund-CYxocU06.js} +1 -0
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  5. package/dist/cjs/{badge-ByWVHNyJ.js → badge-BxoJOyTJ.js} +1 -1
  6. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +12 -10
  7. package/dist/cjs/bank-account-form_9.cjs.entry.js +39 -30
  8. package/dist/cjs/{business-additional-questions-schema-gVepoR4V.js → business-additional-questions-schema-DR8vt11M.js} +1 -1
  9. package/dist/cjs/business-details-core.cjs.entry.js +4 -3
  10. package/dist/cjs/{business-identity-schema-dt0zCW0R.js → business-identity-schema-BYaCsboD.js} +1 -1
  11. package/dist/cjs/{business.service-Vcq4kPU8.js → business.service-C2rg_zSw.js} +20 -24
  12. package/dist/cjs/{button-Bn9jOYbx.js → button-BPFSRx4d.js} +1 -1
  13. package/dist/cjs/{check-pkg-version-7gGchZzS.js → check-pkg-version-BqC8BOhm.js} +14 -3
  14. package/dist/cjs/checkout.service-CyvIIMeq.js +35 -0
  15. package/dist/cjs/checkouts-list-core.cjs.entry.js +16 -12
  16. package/dist/cjs/{checkouts-table-C_cpZa-i.js → checkouts-table-_T5eblyc.js} +2 -2
  17. package/dist/cjs/{config-state-Bm8-EuFE.js → config-state-D7p-XunE.js} +1 -1
  18. package/dist/cjs/custom-popper_4.cjs.entry.js +7 -6
  19. package/dist/cjs/{dispute.service-F-M8EJxq.js → dispute.service-CKPR1vFS.js} +13 -17
  20. package/dist/cjs/event-types-YOY5TKUN.js +8 -0
  21. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  22. package/dist/cjs/form-control-checkbox.cjs.entry.js +6 -5
  23. package/dist/cjs/form-control-date.cjs.entry.js +5 -4
  24. package/dist/cjs/{form-control-error-text-CBAVQoZ3.js → form-control-error-text-D9XDyFoW.js} +1 -1
  25. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  26. package/dist/cjs/{form-control-help-text-DQz5O3wX.js → form-control-help-text-J_boqSMc.js} +1 -1
  27. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +4 -3
  28. package/dist/cjs/form-control-monetary.cjs.entry.js +6 -5
  29. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +5 -4
  30. package/dist/cjs/form-control-number.cjs.entry.js +6 -5
  31. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  32. package/dist/cjs/{get-payment-details-DqvDYbnK.js → get-payment-details-C9HqIv-M.js} +6 -4
  33. package/dist/cjs/{get-subaccounts-CasN5tDA.js → get-subaccounts-BNpIanJ9.js} +8 -6
  34. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
  35. package/dist/cjs/{header-1-Bl1S9jV8.js → header-1-auSUfIpO.js} +1 -1
  36. package/dist/cjs/{header-3-DYzIjFIZ.js → header-3-B-bXHCpC.js} +1 -1
  37. package/dist/cjs/iframe-input.cjs.entry.js +6 -6
  38. package/dist/cjs/{insurance-state-BbmHHQl0.js → insurance-state-CFxbKNWH.js} +1 -1
  39. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +12 -10
  40. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +13 -14
  41. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
  42. package/dist/cjs/justifi-business-details.cjs.entry.js +16 -10
  43. package/dist/cjs/justifi-business-form.cjs.entry.js +78 -54
  44. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  45. package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -7
  46. package/dist/cjs/justifi-checkout.cjs.entry.js +16 -11
  47. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +10 -6
  48. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +24 -22
  49. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  50. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  51. package/dist/cjs/justifi-dispute-management.cjs.entry.js +17 -14
  52. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +19 -12
  53. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +20 -8
  54. package/dist/cjs/justifi-order-terminals.cjs.entry.js +19 -15
  55. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +14 -10
  56. package/dist/cjs/justifi-payment-details.cjs.entry.js +15 -13
  57. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -2
  58. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +20 -13
  59. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +21 -17
  60. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -3
  61. package/dist/cjs/justifi-payments-list.cjs.entry.js +21 -17
  62. package/dist/cjs/justifi-payout-details.cjs.entry.js +16 -13
  63. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +21 -17
  64. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -3
  65. package/dist/cjs/justifi-payouts-list.cjs.entry.js +21 -23
  66. package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -15
  67. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +7 -4
  68. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +19 -19
  69. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +11 -7
  70. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +22 -15
  71. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +10 -6
  72. package/dist/cjs/justifi-terminals-list.cjs.entry.js +20 -16
  73. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +20 -11
  74. package/dist/cjs/loader.cjs.js +1 -1
  75. package/dist/cjs/{package-CseQI95t.js → package-Biee4Hdo.js} +1 -1
  76. package/dist/cjs/pagination-menu.cjs.entry.js +4 -4
  77. package/dist/cjs/{parts-Du1T2dvF.js → parts-9jMf1erK.js} +24 -8
  78. package/dist/cjs/payment-details-core.cjs.entry.js +16 -12
  79. package/dist/cjs/{payment.service-CAJSEb2x.js → payment.service-C996aLGw.js} +9 -2
  80. package/dist/cjs/payments-list-core.cjs.entry.js +17 -13
  81. package/dist/cjs/{payments-status-hksfHuBH.js → payments-status-BTykBx8i.js} +1 -1
  82. package/dist/cjs/{payments-table-CmvP6owu.js → payments-table-BkRhDePE.js} +2 -2
  83. package/dist/cjs/payout-details-core.cjs.entry.js +11 -7
  84. package/dist/cjs/{payout.service-wOnSu52a.js → payout.service-BwKgEbDo.js} +9 -2
  85. package/dist/cjs/payouts-list-core.cjs.entry.js +17 -13
  86. package/dist/cjs/{payouts-status-DfNhfSsm.js → payouts-status-YCqmbd4K.js} +1 -1
  87. package/dist/cjs/{payouts-table-CpgWxl8A.js → payouts-table-DJMz3bVh.js} +2 -2
  88. package/dist/cjs/{schema-validations-p4OCdblz.js → schema-validations-Bhz09M42.js} +1 -1
  89. package/dist/cjs/{skeleton-BFtuPBwQ.js → skeleton-aMh0RMHq.js} +1 -1
  90. package/dist/cjs/{spinner-C9z2tkh2.js → spinner-BTyIjlMM.js} +1 -1
  91. package/dist/cjs/{event-types-cB_-SsYZ.js → table-DKVauFHc.js} +39 -9
  92. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  93. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +16 -12
  94. package/dist/cjs/{terminal-orders-table-CpVY3VsQ.js → terminal-orders-table-CxY1ykZ7.js} +7 -5
  95. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  96. package/dist/cjs/{terminal.service-cGQB3xiL.js → terminal.service-D7dxg9ZQ.js} +9 -2
  97. package/dist/cjs/terminals-list-core.cjs.entry.js +16 -12
  98. package/dist/cjs/{terminals-table-DRQQjYAE.js → terminals-table-D2XUsf_J.js} +2 -2
  99. package/dist/cjs/{utils-B_Ol6YlL.js → utils-5lco6NzU.js} +1 -1
  100. package/dist/cjs/webcomponents.cjs.js +1 -1
  101. package/dist/collection/actions/checkout/get-checkouts.js +2 -2
  102. package/dist/collection/actions/dispute/dispute-actions.js +2 -2
  103. package/dist/collection/api/Analytics.js +3 -0
  104. package/dist/collection/api/Api.js +23 -12
  105. package/dist/collection/api/Payment.js +1 -0
  106. package/dist/collection/api/Payout.js +1 -0
  107. package/dist/collection/api/index.js +5 -1
  108. package/dist/collection/api/services/analytics.service.js +3 -2
  109. package/dist/collection/api/services/business.service.js +13 -24
  110. package/dist/collection/api/services/checkout.service.js +8 -14
  111. package/dist/collection/api/services/dispute.service.js +8 -13
  112. package/dist/collection/api/services/insurance.service.js +5 -8
  113. package/dist/collection/api/services/payment.service.js +1 -1
  114. package/dist/collection/api/services/payout.service.js +1 -1
  115. package/dist/collection/api/services/provision.service.js +4 -6
  116. package/dist/collection/api/services/refund.service.js +1 -1
  117. package/dist/collection/api/services/reports.service.js +3 -3
  118. package/dist/collection/api/services/subaccounts.service.js +1 -1
  119. package/dist/collection/api/services/terminal.service.js +1 -1
  120. package/dist/collection/api/services/terminal_orders.service.js +1 -1
  121. package/dist/collection/collection-manifest.json +1 -1
  122. package/dist/collection/components/business-details/business-details.js +3 -1
  123. package/dist/collection/components/business-forms/business-form/business-form.js +80 -39
  124. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +4 -2
  125. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -3
  126. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +16 -33
  127. package/dist/collection/components/checkout/card-form/card-form.js +9 -26
  128. package/dist/collection/components/checkout/checkout-core.js +2 -21
  129. package/dist/collection/components/checkout/checkout.js +5 -24
  130. package/dist/collection/components/checkout/new-payment-method.js +2 -21
  131. package/dist/collection/components/checkout/payment-method-options.js +2 -21
  132. package/dist/collection/components/checkouts-list/checkouts-list-core.js +2 -3
  133. package/dist/collection/components/checkouts-list/checkouts-list.js +5 -25
  134. package/dist/collection/components/config-provider/config-provider.js +4 -4
  135. package/dist/collection/components/config-provider/config-state.js +1 -1
  136. package/dist/collection/components/dispute-management/dispute-management.js +4 -25
  137. package/dist/collection/components/dispute-management/dispute-response/dispute-response-actions.js +2 -2
  138. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +4 -2
  139. package/dist/collection/{ui-components → components}/filters/table-filters-menu.js +3 -3
  140. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +3 -1
  141. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +4 -1
  142. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -4
  143. package/dist/collection/components/order-terminals/order-terminals.js +6 -1
  144. package/dist/collection/components/payment-details/payment-details-core.js +11 -7
  145. package/dist/collection/components/payment-details/payment-details.js +2 -1
  146. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +5 -4
  147. package/dist/collection/components/payments-list/payments-list-core.js +2 -3
  148. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  149. package/dist/collection/components/payments-list/payments-list.js +4 -2
  150. package/dist/collection/components/payout-details/payout-details-core.js +5 -1
  151. package/dist/collection/components/payout-details/payout-details.js +3 -1
  152. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +5 -4
  153. package/dist/collection/components/payouts-list/payouts-list-core.js +2 -3
  154. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  155. package/dist/collection/components/payouts-list/payouts-list.js +5 -3
  156. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +2 -3
  157. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  158. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +6 -1
  159. package/dist/collection/components/terminals-list/terminals-list-core.js +2 -3
  160. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  161. package/dist/collection/components/terminals-list/terminals-list.js +4 -2
  162. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +6 -22
  163. package/dist/collection/styles/parts.js +12 -5
  164. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  165. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  166. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  167. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  168. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  169. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  170. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  171. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  172. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  173. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  174. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  175. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  176. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  177. package/dist/collection/ui-components/index.js +1 -4
  178. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +4 -4
  179. package/dist/collection/ui-components/table/index.js +5 -0
  180. package/dist/collection/ui-components/{table-empty-state.js → table/table-empty-state.js} +1 -1
  181. package/dist/collection/ui-components/{table-error-state.js → table/table-error-state.js} +1 -1
  182. package/dist/collection/ui-components/{table-loading-state.js → table/table-loading-state.js} +2 -2
  183. package/dist/collection/ui-components/table/table.js +29 -0
  184. package/dist/docs.json +29 -235
  185. package/dist/esm/{ApiNew-UOnmIWcv.js → Api-KYhsw8Nv.js} +1 -1
  186. package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
  187. package/dist/esm/{Payment-BADkZFaz.js → Document-cNXrKmGy.js} +57 -2
  188. package/dist/esm/{Refund-DOvd7RJp.js → Refund-2YJqP9qX.js} +1 -0
  189. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  190. package/dist/esm/{badge-B191hCAo.js → badge-Du9GTXoB.js} +1 -1
  191. package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -10
  192. package/dist/esm/bank-account-form_9.entry.js +32 -23
  193. package/dist/esm/{business-additional-questions-schema-DWnZs60Z.js → business-additional-questions-schema-GpN_koGK.js} +1 -1
  194. package/dist/esm/business-details-core.entry.js +4 -3
  195. package/dist/esm/{business-identity-schema-lqdJS3MT.js → business-identity-schema-BjuQ6ajL.js} +1 -1
  196. package/dist/esm/{business.service-B1VD22Tz.js → business.service-ClD_YDeT.js} +20 -24
  197. package/dist/esm/{button-BRFA5syj.js → button-CjH5C0pG.js} +1 -1
  198. package/dist/esm/{check-pkg-version-DpVT68Qo.js → check-pkg-version-DxnKX9GQ.js} +14 -3
  199. package/dist/esm/checkout.service-DfzkmIe4.js +33 -0
  200. package/dist/esm/checkouts-list-core.entry.js +15 -11
  201. package/dist/esm/{checkouts-table-BIO5rpvV.js → checkouts-table-DKd0QLys.js} +2 -2
  202. package/dist/esm/{config-state-Bl6vWekp.js → config-state-CkKrqnpZ.js} +1 -1
  203. package/dist/esm/custom-popper_4.entry.js +7 -6
  204. package/dist/esm/dispute.service-BTOWqnmk.js +33 -0
  205. package/dist/esm/event-types-CZfYo5-1.js +8 -0
  206. package/dist/esm/form-alert_5.entry.js +1 -1
  207. package/dist/esm/form-control-checkbox.entry.js +6 -5
  208. package/dist/esm/form-control-date.entry.js +5 -4
  209. package/dist/esm/{form-control-error-text-CVPFeRt0.js → form-control-error-text-tGFxd6kW.js} +1 -1
  210. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  211. package/dist/esm/{form-control-help-text-D-ReDn6e.js → form-control-help-text-2DawN8-N.js} +1 -1
  212. package/dist/esm/form-control-monetary-provisioning.entry.js +4 -3
  213. package/dist/esm/form-control-monetary.entry.js +6 -5
  214. package/dist/esm/form-control-number-masked_2.entry.js +5 -4
  215. package/dist/esm/form-control-number.entry.js +6 -5
  216. package/dist/esm/form-control-radio.entry.js +3 -3
  217. package/dist/esm/{get-payment-details-CXiGG9cO.js → get-payment-details-D-prcfRc.js} +5 -3
  218. package/dist/esm/{get-subaccounts-COe5GtaY.js → get-subaccounts-B0uEyOp_.js} +7 -5
  219. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  220. package/dist/esm/{header-1-ClU-iUGF.js → header-1-D2gZb3iT.js} +1 -1
  221. package/dist/esm/{header-3-jLYjhsUb.js → header-3-DAg8Vh4B.js} +1 -1
  222. package/dist/esm/iframe-input.entry.js +6 -6
  223. package/dist/esm/{insurance-state-5MPrBdwI.js → insurance-state-CsZbKSgm.js} +1 -1
  224. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +12 -10
  225. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +14 -15
  226. package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
  227. package/dist/esm/justifi-business-details.entry.js +16 -10
  228. package/dist/esm/justifi-business-form.entry.js +78 -54
  229. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  230. package/dist/esm/justifi-checkout-core.entry.js +8 -7
  231. package/dist/esm/justifi-checkout.entry.js +17 -12
  232. package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -6
  233. package/dist/esm/justifi-checkouts-list.entry.js +24 -22
  234. package/dist/esm/justifi-config-provider.entry.js +3 -3
  235. package/dist/esm/justifi-details.entry.js +2 -2
  236. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  237. package/dist/esm/justifi-dispute-management.entry.js +18 -15
  238. package/dist/esm/justifi-dispute-notification_3.entry.js +20 -13
  239. package/dist/esm/justifi-gross-payment-chart.entry.js +20 -8
  240. package/dist/esm/justifi-order-terminals.entry.js +19 -15
  241. package/dist/esm/justifi-owner-form_3.entry.js +15 -11
  242. package/dist/esm/justifi-payment-details.entry.js +16 -14
  243. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -2
  244. package/dist/esm/justifi-payment-provisioning.entry.js +21 -14
  245. package/dist/esm/justifi-payment-transactions-list.entry.js +20 -16
  246. package/dist/esm/justifi-payments-list-filters.entry.js +4 -3
  247. package/dist/esm/justifi-payments-list.entry.js +20 -16
  248. package/dist/esm/justifi-payout-details.entry.js +16 -13
  249. package/dist/esm/justifi-payout-transactions-list.entry.js +20 -16
  250. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -3
  251. package/dist/esm/justifi-payouts-list.entry.js +21 -23
  252. package/dist/esm/justifi-refund-payment.entry.js +16 -14
  253. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +7 -4
  254. package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -19
  255. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +11 -7
  256. package/dist/esm/justifi-terminal-orders-list.entry.js +21 -14
  257. package/dist/esm/justifi-terminals-list-filters.entry.js +10 -6
  258. package/dist/esm/justifi-terminals-list.entry.js +20 -16
  259. package/dist/esm/justifi-tokenize-payment-method.entry.js +20 -11
  260. package/dist/esm/loader.js +1 -1
  261. package/dist/esm/{package-D2EbqwBe.js → package-DPiTQ9dr.js} +1 -1
  262. package/dist/esm/pagination-menu.entry.js +4 -4
  263. package/dist/esm/{parts-CjO1GttX.js → parts-BrLVc_85.js} +14 -5
  264. package/dist/esm/payment-details-core.entry.js +16 -12
  265. package/dist/esm/{payment-provisioning-actions-CZYFFdTf.js → payment-provisioning-actions-BIfyW239.js} +1 -1
  266. package/dist/esm/{payment.service-B9_zvpM_.js → payment.service-CgwLo1_s.js} +8 -1
  267. package/dist/esm/payments-list-core.entry.js +16 -12
  268. package/dist/esm/{payments-status-CQQH_5oM.js → payments-status-CIUXcA0w.js} +1 -1
  269. package/dist/esm/{payments-table-BdQtWUO-.js → payments-table-BBf5fV74.js} +2 -2
  270. package/dist/esm/payout-details-core.entry.js +11 -7
  271. package/dist/esm/{payout.service-BGSaI-j9.js → payout.service-DYFCNfLa.js} +8 -1
  272. package/dist/esm/payouts-list-core.entry.js +16 -12
  273. package/dist/esm/{payouts-status-Cz9DL-Ph.js → payouts-status-Clo03qUI.js} +1 -1
  274. package/dist/esm/{payouts-table-bOrdlN_0.js → payouts-table-DhZEXhGH.js} +2 -2
  275. package/dist/esm/{schema-validations-BsbYeDDR.js → schema-validations-D9YNVLiI.js} +1 -1
  276. package/dist/esm/{skeleton-t69TLGP9.js → skeleton-Dlpibtr0.js} +1 -1
  277. package/dist/esm/{spinner-Bo1Ff3L8.js → spinner-onCBxbdo.js} +1 -1
  278. package/dist/esm/table-filters-menu.entry.js +3 -3
  279. package/dist/esm/table-p4dOlFPi.js +83 -0
  280. package/dist/esm/terminal-orders-list-core.entry.js +15 -11
  281. package/dist/esm/{terminal-orders-table-5gemV24y.js → terminal-orders-table-BopP465z.js} +7 -5
  282. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  283. package/dist/esm/{terminal.service-B0Rc9vED.js → terminal.service-f-whs_d4.js} +8 -1
  284. package/dist/esm/terminals-list-core.entry.js +15 -11
  285. package/dist/esm/{terminals-table-DFxuyQM-.js → terminals-table-CkWr-6tD.js} +2 -2
  286. package/dist/esm/{utils-CK8L6CE7.js → utils-BpP_VJGf.js} +1 -1
  287. package/dist/esm/webcomponents.js +1 -1
  288. package/dist/module/Api.js +23 -11
  289. package/dist/module/Checkout.js +22 -2
  290. package/dist/module/Payment.js +2 -1
  291. package/dist/module/Refund.js +2 -1
  292. package/dist/module/additional-statement.js +1 -1
  293. package/dist/module/bank-account-document-inputs.js +2 -1
  294. package/dist/module/bank-account-form-inputs2.js +1 -1
  295. package/dist/module/bank-account-form2.js +15 -10
  296. package/dist/module/billing-form.js +2 -1
  297. package/dist/module/business-additional-questions-form-step-core.js +1 -1
  298. package/dist/module/business-additional-questions-form-step.js +1 -1
  299. package/dist/module/business-bank-account-form-step-core.js +3 -3
  300. package/dist/module/business-bank-account-form-step.js +3 -2
  301. package/dist/module/business-core-info-form-step-core.js +1 -1
  302. package/dist/module/business-core-info-form-step.js +1 -1
  303. package/dist/module/business-details-core2.js +1 -0
  304. package/dist/module/business-documents-on-file2.js +2 -1
  305. package/dist/module/business-owners-form-step-core.js +2 -1
  306. package/dist/module/business-owners-form-step.js +1 -1
  307. package/dist/module/business-representative-form-step-core.js +1 -1
  308. package/dist/module/business-representative-form-step.js +1 -1
  309. package/dist/module/business-terms-conditions-form-step.js +6 -7
  310. package/dist/module/business.service.js +19 -24
  311. package/dist/module/button.js +1 -1
  312. package/dist/module/cancellation-policy.js +1 -1
  313. package/dist/module/card-form2.js +8 -3
  314. package/dist/module/check-pkg-version.js +11 -1
  315. package/dist/module/checkout-core.js +6 -7
  316. package/dist/module/checkout.service.js +9 -15
  317. package/dist/module/checkouts-list-core2.js +7 -5
  318. package/dist/module/config-state.js +1 -1
  319. package/dist/module/custom-popper2.js +2 -2
  320. package/dist/module/customer-details.js +1 -1
  321. package/dist/module/dispute-management-core.js +1 -1
  322. package/dist/module/dispute-notification.js +3 -2
  323. package/dist/module/dispute-response-actions.js +10 -15
  324. package/dist/module/dispute-response-core.js +1 -1
  325. package/dist/module/dispute-response.js +6 -3
  326. package/dist/module/duplicate-charge.js +1 -1
  327. package/dist/module/electronic-evidence.js +1 -1
  328. package/dist/module/event-types.js +7 -22
  329. package/dist/module/event-types2.js +22 -21
  330. package/dist/module/event-types3.js +21 -61
  331. package/dist/module/form-control-checkbox2.js +3 -2
  332. package/dist/module/form-control-date2.js +3 -2
  333. package/dist/module/form-control-file-v22.js +1 -1
  334. package/dist/module/form-control-file2.js +3 -2
  335. package/dist/module/form-control-monetary-provisioning2.js +1 -0
  336. package/dist/module/form-control-monetary2.js +4 -3
  337. package/dist/module/form-control-number-masked2.js +3 -2
  338. package/dist/module/form-control-number.js +3 -2
  339. package/dist/module/form-control-radio2.js +2 -2
  340. package/dist/module/form-control-select2.js +1 -0
  341. package/dist/module/form-control-text2.js +3 -2
  342. package/dist/module/form-control-textarea2.js +2 -2
  343. package/dist/module/get-business.js +1 -1
  344. package/dist/module/get-payment-details.js +3 -2
  345. package/dist/module/get-payout-csv.js +1 -1
  346. package/dist/module/get-subaccounts.js +5 -4
  347. package/dist/module/gross-payment-chart-core2.js +1 -1
  348. package/dist/module/hidden-input2.js +1 -1
  349. package/dist/module/iframe-input2.js +3 -3
  350. package/dist/module/justifi-business-details.js +4 -2
  351. package/dist/module/justifi-business-form.js +64 -42
  352. package/dist/module/justifi-checkout.js +6 -6
  353. package/dist/module/justifi-checkouts-list-filters.js +5 -3
  354. package/dist/module/justifi-checkouts-list.js +11 -10
  355. package/dist/module/justifi-config-provider.js +3 -3
  356. package/dist/module/justifi-dispute-management.js +7 -9
  357. package/dist/module/justifi-gross-payment-chart.js +11 -4
  358. package/dist/module/justifi-order-terminals.js +10 -4
  359. package/dist/module/justifi-payment-details.js +3 -2
  360. package/dist/module/justifi-payment-provisioning.js +13 -8
  361. package/dist/module/justifi-payment-transactions-list.js +10 -6
  362. package/dist/module/justifi-payments-list-filters.js +4 -3
  363. package/dist/module/justifi-payments-list.js +8 -4
  364. package/dist/module/justifi-payout-details.js +6 -3
  365. package/dist/module/justifi-payout-transactions-list.js +10 -7
  366. package/dist/module/justifi-payouts-list-filters.js +4 -3
  367. package/dist/module/justifi-payouts-list.js +8 -10
  368. package/dist/module/justifi-refund-payment.js +6 -4
  369. package/dist/module/justifi-season-interruption-insurance.js +10 -14
  370. package/dist/module/justifi-terminal-orders-list-filters.js +6 -4
  371. package/dist/module/justifi-terminal-orders-list.js +11 -4
  372. package/dist/module/justifi-terminals-list-filters.js +5 -3
  373. package/dist/module/justifi-terminals-list.js +8 -4
  374. package/dist/module/justifi-tokenize-payment-method.js +10 -5
  375. package/dist/module/legal-address-form-step-core.js +1 -1
  376. package/dist/module/legal-address-form-step.js +1 -1
  377. package/dist/module/new-payment-method.js +2 -3
  378. package/dist/module/owner-details2.js +1 -1
  379. package/dist/module/owner-form-core2.js +2 -1
  380. package/dist/module/package.js +1 -1
  381. package/dist/module/pagination-menu2.js +4 -4
  382. package/dist/module/parts.js +14 -5
  383. package/dist/module/payment-details-core2.js +13 -8
  384. package/dist/module/payment-method-options.js +2 -3
  385. package/dist/module/payment-provisioning-actions.js +1 -1
  386. package/dist/module/payment-provisioning-core.js +3 -2
  387. package/dist/module/payment-provisioning-form-buttons.js +2 -1
  388. package/dist/module/payment-provisioning-loading.js +1 -0
  389. package/dist/module/payment.service.js +7 -1
  390. package/dist/module/payments-list-core2.js +6 -4
  391. package/dist/module/payout-details-core2.js +7 -2
  392. package/dist/module/payout.service.js +7 -1
  393. package/dist/module/payouts-list-core2.js +7 -5
  394. package/dist/module/product-or-service.js +1 -1
  395. package/dist/module/refund-policy.js +1 -1
  396. package/dist/module/representative-details2.js +1 -1
  397. package/dist/module/season-interruption-insurance-core.js +7 -3
  398. package/dist/module/sezzle-payment-method.js +1 -1
  399. package/dist/module/shipping-details.js +1 -1
  400. package/dist/module/table-filters-menu2.js +2 -2
  401. package/dist/module/table.js +83 -0
  402. package/dist/module/terminal-orders-list-core2.js +6 -4
  403. package/dist/module/terminal-quantity-selector2.js +1 -1
  404. package/dist/module/terminal.service.js +7 -1
  405. package/dist/module/terminals-list-core2.js +6 -4
  406. package/dist/module/utils2.js +1 -1
  407. package/dist/module/utils4.js +1 -1
  408. package/dist/types/actions/checkout/get-checkouts.d.ts +1 -2
  409. package/dist/types/actions/dispute/dispute-actions.d.ts +1 -2
  410. package/dist/types/api/Api.d.ts +41 -35
  411. package/dist/types/api/Payment.d.ts +2 -0
  412. package/dist/types/api/Payout.d.ts +2 -0
  413. package/dist/types/api/index.d.ts +5 -1
  414. package/dist/types/api/services/business.service.d.ts +1 -5
  415. package/dist/types/api/services/checkout.service.d.ts +2 -2
  416. package/dist/types/api/services/dispute.service.d.ts +1 -2
  417. package/dist/types/api/services/payout.service.d.ts +1 -2
  418. package/dist/types/api/services/provision.service.d.ts +1 -1
  419. package/dist/types/api/services/reports.service.d.ts +1 -2
  420. package/dist/types/api/services/subaccounts.service.d.ts +1 -2
  421. package/dist/types/components/business-forms/business-form/business-form.d.ts +8 -6
  422. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +3 -2
  423. package/dist/types/components/checkout/card-form/card-form.d.ts +2 -1
  424. package/dist/types/components/checkout/checkout-core.d.ts +0 -1
  425. package/dist/types/components/checkout/checkout.d.ts +0 -1
  426. package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
  427. package/dist/types/components/checkout/payment-method-options.d.ts +0 -1
  428. package/dist/types/components/checkouts-list/checkouts-list.d.ts +0 -1
  429. package/dist/types/components/config-provider/config-provider.d.ts +1 -1
  430. package/dist/types/components/config-provider/config-state.d.ts +1 -1
  431. package/dist/types/components/dispute-management/dispute-management.d.ts +0 -1
  432. package/dist/types/components/dispute-management/dispute-response/dispute-response-actions.d.ts +1 -2
  433. package/dist/types/components/order-terminals/order-terminals.d.ts +1 -0
  434. package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +1 -0
  435. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -1
  436. package/dist/types/components.d.ts +4 -20
  437. package/dist/types/styles/parts.d.ts +12 -5
  438. package/dist/types/ui-components/index.d.ts +1 -4
  439. package/dist/types/ui-components/table/index.d.ts +5 -0
  440. package/dist/types/ui-components/table/table.d.ts +9 -0
  441. package/dist/webcomponents/p-0ab2f675.entry.js +1 -0
  442. package/dist/webcomponents/p-0b57ecc3.entry.js +1 -0
  443. package/dist/webcomponents/p-0deb6a38.entry.js +1 -0
  444. package/dist/webcomponents/p-16adfe77.entry.js +1 -0
  445. package/dist/webcomponents/p-19b9c96a.entry.js +1 -0
  446. package/dist/webcomponents/p-1a85f26f.entry.js +1 -0
  447. package/dist/webcomponents/p-1b22572d.entry.js +1 -0
  448. package/dist/webcomponents/p-22a0b397.entry.js +1 -0
  449. package/dist/webcomponents/p-22e9ff07.entry.js +1 -0
  450. package/dist/webcomponents/p-24792e8e.entry.js +1 -0
  451. package/dist/webcomponents/p-25ea4450.entry.js +1 -0
  452. package/dist/webcomponents/p-2adda453.entry.js +1 -0
  453. package/dist/webcomponents/p-2b8ac00a.entry.js +1 -0
  454. package/dist/webcomponents/p-2dbc4b19.entry.js +1 -0
  455. package/dist/webcomponents/p-3368d3d5.entry.js +1 -0
  456. package/dist/webcomponents/{p-12674a89.entry.js → p-3a979295.entry.js} +1 -1
  457. package/dist/webcomponents/p-3abc8eab.entry.js +1 -0
  458. package/dist/webcomponents/{p-805269fd.entry.js → p-3babed12.entry.js} +1 -1
  459. package/dist/webcomponents/p-3e94cf62.entry.js +1 -0
  460. package/dist/webcomponents/p-40541e0c.entry.js +1 -0
  461. package/dist/webcomponents/p-4194214c.entry.js +1 -0
  462. package/dist/webcomponents/p-43d6bbed.entry.js +1 -0
  463. package/dist/webcomponents/p-44d8c2b1.entry.js +1 -0
  464. package/dist/webcomponents/p-4749e0d0.entry.js +1 -0
  465. package/dist/webcomponents/p-4ee0cd96.entry.js +1 -0
  466. package/dist/webcomponents/p-54281359.entry.js +1 -0
  467. package/dist/webcomponents/p-59abf1de.entry.js +1 -0
  468. package/dist/webcomponents/p-5e467788.entry.js +1 -0
  469. package/dist/webcomponents/{p-c899df50.entry.js → p-639baa7d.entry.js} +1 -1
  470. package/dist/webcomponents/p-6429afb4.entry.js +1 -0
  471. package/dist/webcomponents/{p-78511d66.entry.js → p-7733b67b.entry.js} +1 -1
  472. package/dist/webcomponents/p-799000c1.entry.js +1 -0
  473. package/dist/webcomponents/p-7c62b59d.entry.js +1 -0
  474. package/dist/webcomponents/p-82515f70.entry.js +1 -0
  475. package/dist/webcomponents/{p-Cixn6QDS.js → p-82kiZkHt.js} +1 -1
  476. package/dist/webcomponents/p-83154291.entry.js +1 -0
  477. package/dist/webcomponents/p-84d27581.entry.js +1 -0
  478. package/dist/webcomponents/{p-4f98895d.entry.js → p-90c24cda.entry.js} +1 -1
  479. package/dist/webcomponents/p-9105f700.entry.js +1 -0
  480. package/dist/webcomponents/p-916ea4fc.entry.js +1 -0
  481. package/dist/webcomponents/p-935bbc62.entry.js +1 -0
  482. package/dist/webcomponents/p-935fa555.entry.js +1 -0
  483. package/dist/webcomponents/p-947239a6.entry.js +1 -0
  484. package/dist/webcomponents/p-99b080d9.entry.js +1 -0
  485. package/dist/webcomponents/p-B0cQ2RjH.js +1 -0
  486. package/dist/webcomponents/p-B190pN0v.js +1 -0
  487. package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
  488. package/dist/webcomponents/p-BM5lviat.js +1 -0
  489. package/dist/webcomponents/{p-bplwtwD3.js → p-BTS3E50C.js} +1 -1
  490. package/dist/webcomponents/p-BWJ7zamv.js +1 -0
  491. package/dist/webcomponents/p-BiPRf6d2.js +1 -0
  492. package/dist/webcomponents/p-BmWpHZ-Z.js +1 -0
  493. package/dist/webcomponents/p-BrLVc_85.js +1 -0
  494. package/dist/webcomponents/{p-DyIEclkx.js → p-ByRPlUBS.js} +1 -1
  495. package/dist/webcomponents/p-BzPi8Ea_.js +1 -0
  496. package/dist/webcomponents/p-C0IqfGFc.js +1 -0
  497. package/dist/webcomponents/p-C0UUR9CN.js +1 -0
  498. package/dist/webcomponents/{p-D9q8WsW5.js → p-C0WFYqwq.js} +1 -1
  499. package/dist/webcomponents/{p-CegkOiUz.js → p-CCGhF18e.js} +1 -1
  500. package/dist/webcomponents/p-CQdeVKF8.js +1 -0
  501. package/dist/webcomponents/p-CZfYo5-1.js +1 -0
  502. package/dist/webcomponents/p-CffckWWF.js +1 -0
  503. package/dist/webcomponents/{p-BQEAUdoy.js → p-CgxzrbM_.js} +1 -1
  504. package/dist/webcomponents/p-D0ptm6-3.js +1 -0
  505. package/dist/webcomponents/{p-CN_YheWL.js → p-D4Mv5jCp.js} +1 -1
  506. package/dist/webcomponents/{p-GTA6l_sT.js → p-D5XSsLKb.js} +1 -1
  507. package/dist/webcomponents/p-DNt_pMGt.js +1 -0
  508. package/dist/webcomponents/p-DPiTQ9dr.js +1 -0
  509. package/dist/webcomponents/p-DZfxGQ1I.js +1 -0
  510. package/dist/webcomponents/p-DgfzEZny.js +1 -0
  511. package/dist/webcomponents/p-DuBhW0xA.js +1 -0
  512. package/dist/webcomponents/p-DvHZ2jYI.js +1 -0
  513. package/dist/webcomponents/p-M61ygz6l.js +1 -0
  514. package/dist/webcomponents/{p-KLQjERL5.js → p-OSmuQKbK.js} +1 -1
  515. package/dist/webcomponents/p-U30-0DaA.js +1 -0
  516. package/dist/webcomponents/p-ZE1NEnP3.js +1 -0
  517. package/dist/webcomponents/p-a46730eb.entry.js +1 -0
  518. package/dist/webcomponents/p-a4dd3835.entry.js +1 -0
  519. package/dist/webcomponents/p-ad85bd0d.entry.js +1 -0
  520. package/dist/webcomponents/p-af2c38f7.entry.js +1 -0
  521. package/dist/webcomponents/{p-b182796a.entry.js → p-afa54e39.entry.js} +1 -1
  522. package/dist/webcomponents/{p-493c9bd9.entry.js → p-b2192f8b.entry.js} +1 -1
  523. package/dist/webcomponents/p-bb50155f.entry.js +1 -0
  524. package/dist/webcomponents/p-bf3e8295.entry.js +1 -0
  525. package/dist/webcomponents/p-cNABKY0P.js +1 -0
  526. package/dist/webcomponents/p-cab175e9.entry.js +1 -0
  527. package/dist/webcomponents/p-ceefc483.entry.js +1 -0
  528. package/dist/webcomponents/{p-BdNmdBIx.js → p-d-_oUZor.js} +1 -1
  529. package/dist/webcomponents/p-d1331dbb.entry.js +1 -0
  530. package/dist/webcomponents/{p-5a1238a1.entry.js → p-d2dc6f22.entry.js} +3 -3
  531. package/dist/webcomponents/p-d9c70010.entry.js +1 -0
  532. package/dist/webcomponents/p-dd05cce1.entry.js +1 -0
  533. package/dist/webcomponents/p-e00aeb33.entry.js +1 -0
  534. package/dist/webcomponents/p-e1c5ee0a.entry.js +1 -0
  535. package/dist/webcomponents/p-ea8dd3e7.entry.js +1 -0
  536. package/dist/webcomponents/p-f389c2aa.entry.js +1 -0
  537. package/dist/webcomponents/p-f8b205f7.entry.js +1 -0
  538. package/dist/webcomponents/p-l3o3Ndc0.js +1 -0
  539. package/dist/webcomponents/p-n2YROtpe.js +1 -0
  540. package/dist/webcomponents/p-o_73WSki.js +1 -0
  541. package/dist/webcomponents/p-vb3fTJEZ.js +1 -0
  542. package/dist/webcomponents/webcomponents.esm.js +1 -1
  543. package/package.json +1 -1
  544. package/dist/cjs/Api-KMweahmp.js +0 -74
  545. package/dist/cjs/Document-rXGBUaOh.js +0 -58
  546. package/dist/cjs/checkout.service-DP9FnXBx.js +0 -40
  547. package/dist/collection/api/ApiNew.js +0 -82
  548. package/dist/collection/ui-components/table/exported-parts.js +0 -5
  549. package/dist/esm/Api-C9CDE-UM.js +0 -72
  550. package/dist/esm/Document-Ct-uNz2r.js +0 -55
  551. package/dist/esm/checkout.service-92ld4w-G.js +0 -38
  552. package/dist/esm/dispute.service-H2Oaq2af.js +0 -37
  553. package/dist/esm/event-types-BIryDMGV.js +0 -62
  554. package/dist/module/ApiNew.js +0 -84
  555. package/dist/module/ComponentError.js +0 -21
  556. package/dist/types/api/ApiNew.d.ts +0 -61
  557. package/dist/types/ui-components/table/exported-parts.d.ts +0 -1
  558. package/dist/webcomponents/p-00eb2bc9.entry.js +0 -1
  559. package/dist/webcomponents/p-0c2f2ea9.entry.js +0 -1
  560. package/dist/webcomponents/p-11344996.entry.js +0 -1
  561. package/dist/webcomponents/p-19581139.entry.js +0 -1
  562. package/dist/webcomponents/p-19d21f35.entry.js +0 -1
  563. package/dist/webcomponents/p-2294e63b.entry.js +0 -1
  564. package/dist/webcomponents/p-24e04f78.entry.js +0 -1
  565. package/dist/webcomponents/p-2P4kwjNi.js +0 -1
  566. package/dist/webcomponents/p-30466d27.entry.js +0 -1
  567. package/dist/webcomponents/p-32c156c6.entry.js +0 -1
  568. package/dist/webcomponents/p-32ff6641.entry.js +0 -1
  569. package/dist/webcomponents/p-38d6c034.entry.js +0 -1
  570. package/dist/webcomponents/p-3add8d1b.entry.js +0 -1
  571. package/dist/webcomponents/p-3c01edb0.entry.js +0 -1
  572. package/dist/webcomponents/p-3cd9d9d8.entry.js +0 -1
  573. package/dist/webcomponents/p-4028ccb0.entry.js +0 -1
  574. package/dist/webcomponents/p-43140695.entry.js +0 -1
  575. package/dist/webcomponents/p-4ac754e7.entry.js +0 -1
  576. package/dist/webcomponents/p-4afcb015.entry.js +0 -1
  577. package/dist/webcomponents/p-4c64b1e9.entry.js +0 -1
  578. package/dist/webcomponents/p-4e3aca7a.entry.js +0 -1
  579. package/dist/webcomponents/p-4e489cf9.entry.js +0 -1
  580. package/dist/webcomponents/p-4e61f480.entry.js +0 -1
  581. package/dist/webcomponents/p-4fc851c0.entry.js +0 -1
  582. package/dist/webcomponents/p-526be31d.entry.js +0 -1
  583. package/dist/webcomponents/p-575fc637.entry.js +0 -1
  584. package/dist/webcomponents/p-581ca781.entry.js +0 -1
  585. package/dist/webcomponents/p-5b4cbfd4.entry.js +0 -1
  586. package/dist/webcomponents/p-5d8d1818.entry.js +0 -1
  587. package/dist/webcomponents/p-5eb85754.entry.js +0 -1
  588. package/dist/webcomponents/p-5f02ec20.entry.js +0 -1
  589. package/dist/webcomponents/p-6567b171.entry.js +0 -1
  590. package/dist/webcomponents/p-6d701784.entry.js +0 -1
  591. package/dist/webcomponents/p-7b649051.entry.js +0 -1
  592. package/dist/webcomponents/p-9d354918.entry.js +0 -1
  593. package/dist/webcomponents/p-AVaenhw9.js +0 -1
  594. package/dist/webcomponents/p-B4Bi1JkP.js +0 -1
  595. package/dist/webcomponents/p-BBsCnePk.js +0 -1
  596. package/dist/webcomponents/p-BHbsXXRt.js +0 -1
  597. package/dist/webcomponents/p-BMDJA9xX.js +0 -1
  598. package/dist/webcomponents/p-BS-e1gnL.js +0 -1
  599. package/dist/webcomponents/p-BXey6mVj.js +0 -1
  600. package/dist/webcomponents/p-Bl3qFMoN.js +0 -1
  601. package/dist/webcomponents/p-Bl79NorO.js +0 -1
  602. package/dist/webcomponents/p-Bxs6fi7a.js +0 -1
  603. package/dist/webcomponents/p-CPXN4Ths.js +0 -1
  604. package/dist/webcomponents/p-CSwEbNEl.js +0 -1
  605. package/dist/webcomponents/p-CWpAvtGa.js +0 -1
  606. package/dist/webcomponents/p-C_9TcvwA.js +0 -1
  607. package/dist/webcomponents/p-CiKdTI9h.js +0 -1
  608. package/dist/webcomponents/p-CjO1GttX.js +0 -1
  609. package/dist/webcomponents/p-Ct-uNz2r.js +0 -1
  610. package/dist/webcomponents/p-Cy4aIACq.js +0 -1
  611. package/dist/webcomponents/p-D2EbqwBe.js +0 -1
  612. package/dist/webcomponents/p-DD14E0K0.js +0 -1
  613. package/dist/webcomponents/p-DavDfnxI.js +0 -1
  614. package/dist/webcomponents/p-DmIOVniD.js +0 -1
  615. package/dist/webcomponents/p-Dss1xCBW.js +0 -1
  616. package/dist/webcomponents/p-Dumd8fMw.js +0 -1
  617. package/dist/webcomponents/p-ERVEQjR2.js +0 -1
  618. package/dist/webcomponents/p-OjYukdAC.js +0 -1
  619. package/dist/webcomponents/p-_bsEVFir.js +0 -1
  620. package/dist/webcomponents/p-a2f77373.entry.js +0 -1
  621. package/dist/webcomponents/p-a4c08055.entry.js +0 -1
  622. package/dist/webcomponents/p-a93cceca.entry.js +0 -1
  623. package/dist/webcomponents/p-ab5cde61.entry.js +0 -1
  624. package/dist/webcomponents/p-ac98a15e.entry.js +0 -1
  625. package/dist/webcomponents/p-b0430518.entry.js +0 -1
  626. package/dist/webcomponents/p-b05693c6.entry.js +0 -1
  627. package/dist/webcomponents/p-b25b8534.entry.js +0 -1
  628. package/dist/webcomponents/p-b2db4fae.entry.js +0 -1
  629. package/dist/webcomponents/p-bb5c9475.entry.js +0 -1
  630. package/dist/webcomponents/p-bb97192f.entry.js +0 -1
  631. package/dist/webcomponents/p-c77481fe.entry.js +0 -1
  632. package/dist/webcomponents/p-ca11ad58.entry.js +0 -1
  633. package/dist/webcomponents/p-d06f7faf.entry.js +0 -1
  634. package/dist/webcomponents/p-d2fbf7ea.entry.js +0 -1
  635. package/dist/webcomponents/p-d7a04fdd.entry.js +0 -1
  636. package/dist/webcomponents/p-d8f7a73b.entry.js +0 -1
  637. package/dist/webcomponents/p-d90b8cc2.entry.js +0 -1
  638. package/dist/webcomponents/p-e558eab8.entry.js +0 -1
  639. package/dist/webcomponents/p-f2dc1405.entry.js +0 -1
  640. package/dist/webcomponents/p-oPo_KSwO.js +0 -1
  641. /package/dist/collection/{ui-components → components}/filters/utils.js +0 -0
  642. /package/dist/types/{ui-components → components}/filters/table-filters-menu.d.ts +0 -0
  643. /package/dist/types/{ui-components → components}/filters/utils.d.ts +0 -0
  644. /package/dist/types/ui-components/{table-empty-state.d.ts → table/table-empty-state.d.ts} +0 -0
  645. /package/dist/types/ui-components/{table-error-state.d.ts → table/table-error-state.d.ts} +0 -0
  646. /package/dist/types/ui-components/{table-loading-state.d.ts → table/table-loading-state.d.ts} +0 -0
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-D6FDxSyt.js";import{c as t,a as i,F as c}from"./p-DVnVdicA.js";import{aj as d}from"./p-CjO1GttX.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){let e="";const a=new Promise(((a,t)=>{const i=new FileReader;i.onload=t=>{e=t.target.result,a(e)},i.onerror=()=>{t(new Error("Error reading file"))},i.readAsDataURL(this._file)}));return await a,e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"5e572a30ed53b4fbcf3808ba545ce2fdf5b988aa"},a("div",{key:"90870dc58e0eab72e64ae03bdaa25bb1749d8e23",class:"row gy-3"},a("div",{key:"cc3b6f19687d02e047744e8a53d22a2f91a8b968",class:"col-12"},a("h2",{key:"230c20dc3f75e48afa4008369374fd8c175cb7ea",class:"h5",part:d},"Additional Evidence")),a("div",{key:"7b49c8012cfc07c44399969f8505db786389b38b",class:"col-12"},a("form-control-textarea",{key:"349a8a2ebda338e170c90266801ae93b6f9482ea",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"01cd368a2278c5de462f0998a50ba4ca5889be26",class:"col-12"},a("form-control-file-v2",{key:"f95d0b78704f9a1fd154003edbbffb062659ae27",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"6dc5100426e8e4124d19a375250f85f8e15b28d4"},a("div",{key:"fb950108be5fd4096a7717c88943938261787f99",class:"row gy-3"},a("div",{key:"08f85a06288e19939a16d3fa52ef3b3199c56f36",class:"col-12"},a("h2",{key:"a585b93921814b1ffbb95c6f9c1de37d4104049b",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"3b7c620518006738d2e36863b62a72142f167733",class:"col-12"},a("form-control-textarea",{key:"70a76160b0d29648a9e0598dd5b867a382935e03",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"e06d4c794bad47e366ca702e764307fdab5e33a8",class:"col-12"},a("form-control-textarea",{key:"1b783920c5a5b94bff60d4b061cc7cc6666cc184",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"3cb3371c1d3727e55140ea60a0cff96bc0f42702",class:"col-12"},a("form-control-file-v2",{key:"738a456bf4653240180963fa7e5ab20a7a4add7c",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"70e29d650d5304522f927c15b4eb5e62e203c5e0"},a("div",{key:"f50422b29cb2a4f3bca911ced94dc681adb3fc41",class:"row gy-3"},a("div",{key:"f29816d9281ea4c4db5018d3b7edb1600569357a",class:"col-12"},a("h2",{key:"a2889c95c293bf0bbf97c16e4486e307ca87729c",class:"h5",part:d},"Customer Details")),a("div",{key:"9cd45719434a1740f67b73c13fd08e0fe562168e",class:"col-12"},a("form-control-text",{key:"5a30a3aef7fbe2d3013c46e43a437724dae41213",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"9812e1f9f6df949b9f15b2c3f28857db7dcf5cb7",class:"col-12"},a("form-control-text",{key:"10b146053a399039e8dbd42c3cab53b4b55c0ec3",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"2742a0922a223bd60d6e3d08a55190742ecf5112",class:"col-12"},a("form-control-textarea",{key:"41491e238c75716520d747cbf9f1bcc329a2d686",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"71074f31e565c24107b91b04d9aa16da77ba618c",class:"col-12"},a("form-control-file-v2",{key:"17f70cf96927b01e65430e13c2d21209e9170603",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"ec696695191e68c7ceb0cc41f99f9e53f2d59da1",class:"col-12"},a("form-control-file-v2",{key:"562ff8b3819f536d491f2e2e55a85a55fcda0e1c",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"0b0d73b396b32f29fa389d3981d48c3f30f96fd7"},a("div",{key:"2fd16a4cf964c863a59789a2be60d94b27a95de8",class:"row gy-3"},a("div",{key:"48c15f7db3285caa9164d815615b82a84283fbfe",class:"col-12"},a("h2",{key:"397b3026311bf57588b172146fc9822f99ede63e",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"c825b6efd428bee298b9b0ddf2265378cf999de9",class:"col-12"},a("form-control-text",{key:"b43283087a10826bf8e582a1e863ed4982b5c000",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"66d5cefa16c341f5c523eaa46de5c11f5b16e619",class:"col-12"},a("form-control-textarea",{key:"f83573136fc2ce108f186f9434f46a3f157bd102",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"cc47dc1d9dbac962d27494b5ff3fef572c98c7b4",class:"col-12"},a("form-control-file-v2",{key:"3cf06b6d61edd6ac96d02b12639d040f698b2526",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"1a4a1d78529c48b8f32029a3efa05b4430c6d271"},a("div",{key:"593d167f4e6b610ac3cdb8a04b4eee30a1cb4f91",class:"row gy-3"},a("div",{key:"39440c3a2802b823c85f251c4393ba76bad287c0",class:"col-12"},a("h2",{key:"f5ec8cce1bbadb772ac6dbe668cf54187d2690d7",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"b9020a773c45a8f59a31ffef44b32253fdb4a551",class:"col-12"},a("form-control-text",{key:"56122eafb7f138f4472a5818cddd32cb0e17fc7e",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"0737f585271838dd60ab9ee1e6ac83d0c6362b96",class:"col-12"},a("form-control-file-v2",{key:"63590d574ee151cbf82638002dfe513cea471035",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"0e2648d399af18f7959bed2e0fff56fd63b541df"},a("div",{key:"4322c227617147721ab7cf33a5e75a09bc370a0c",class:"row gy-3"},a("div",{key:"e2bc9f0642356a864e7fa323262ead13d4825fdc",class:"col-12"},a("h2",{key:"88af660c9add83da7edc7758d4645db796c80fdf",class:"h5",part:d},"Product & Service Details")),a("div",{key:"dcfb0f64e1b611eb8d53f97950d5922f7358a64c",class:"col-12"},a("form-control-text",{key:"42959d4b7c03d14fdef29a656a5f18d0d89d3b2e",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"1f4173e79f10a6ac32b860ecbd62fe5c612cc5b2",class:"col-12"},a("form-control-date",{key:"6e8bab228b3a23655cbf71fe6dc72a850b38947c",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"2e32f65cc5388302d067fb1a8db34e3e529435c2",class:"col-12"},a("form-control-file-v2",{key:"f9fb2ac0c6a2f37a7584eeda2460702b1e0d6cc0",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"882eb01880bcfdde30abe10465fecd7390654ed6"},a("div",{key:"de2f238310e4b80976888d147e90047688ad5ada",class:"row gy-3"},a("div",{key:"305af62aa762ae6abff0678998132e8f56707550",class:"col-12"},a("h2",{key:"6e224996b82639c426d129bfd28633f3d3839f6f",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"b2b8d444c594bf92d04fed6640230745c5fb49ba",class:"col-12"},a("form-control-textarea",{key:"f75c6c360c485ac5253164be5d4941d859deb902",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"1788d1e6ba1ddbe82795ce1a41b901a81c055f6d",class:"col-12"},a("form-control-textarea",{key:"f47fac9b8e0d6b9766311b13c760129bb6335ddd",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"d96552fee8b4cdddf31148b2d3783a4e1dfb031b",class:"col-12"},a("form-control-file-v2",{key:"3c6c06201ef3a730aed41ab6b8cb62d5ee8d8128",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"ec2271dd9646596df3106f56c6e96f618196046a",class:"col-12"},a("form-control-file-v2",{key:"48f956f2580187fc7baecc5426d5ed0a1050150b",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"90641cea619de697d7a90e6e397790f79ceb9376"},a("div",{key:"52d939e26bd26e99240d100897a530b89553e727",class:"row gy-3"},a("div",{key:"01755fbca3430bd3066377e9481038370c49b2d8",class:"col-12"},a("h2",{key:"d273fbe6ff8b7815ba5c2369748a3a20548b0a4d",class:"h5",part:d},"Shipping Details")),a("div",{key:"595f4e63dff85591713a4c895acb6628c8ef8214",class:"col-12"},a("form-control-text",{key:"958169d07544237a72facdc016d4d12ac64a4c48",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"1d3020a30f95c5ced652871a635aba0152bbc4e3",class:"col-12"},a("form-control-text",{key:"088af20353ec2efcb65a4e597a1fb4aec23cfcbb",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"536ee74c42d326d7f7f698274c846bfebf0d34dd",class:"col-12"},a("form-control-date",{key:"71ef44bd4c810a567162b7fe92199eceff9be470",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"8887e0daf44be31486563e85cd989eef1da5f5ce",class:"col-12"},a("form-control-textarea",{key:"c34093bc4ee65f4fb092c377a98e01cd69bdbc7c",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"469a5d8c7e28fa2ad430f104f08f387448f70048",class:"col-12"},a("form-control-file-v2",{key:"a2b6c6c0c1cf32430582b97efe6bcc1d4c47147d",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
1
+ import{r as e,h as a}from"./p-D6FDxSyt.js";import{c as t,a as i,F as c}from"./p-DVnVdicA.js";import{ak as d}from"./p-BrLVc_85.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){let e="";const a=new Promise(((a,t)=>{const i=new FileReader;i.onload=t=>{e=t.target.result,a(e)},i.onerror=()=>{t(new Error("Error reading file"))},i.readAsDataURL(this._file)}));return await a,e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"5e572a30ed53b4fbcf3808ba545ce2fdf5b988aa"},a("div",{key:"90870dc58e0eab72e64ae03bdaa25bb1749d8e23",class:"row gy-3"},a("div",{key:"cc3b6f19687d02e047744e8a53d22a2f91a8b968",class:"col-12"},a("h2",{key:"230c20dc3f75e48afa4008369374fd8c175cb7ea",class:"h5",part:d},"Additional Evidence")),a("div",{key:"7b49c8012cfc07c44399969f8505db786389b38b",class:"col-12"},a("form-control-textarea",{key:"349a8a2ebda338e170c90266801ae93b6f9482ea",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"01cd368a2278c5de462f0998a50ba4ca5889be26",class:"col-12"},a("form-control-file-v2",{key:"f95d0b78704f9a1fd154003edbbffb062659ae27",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"6dc5100426e8e4124d19a375250f85f8e15b28d4"},a("div",{key:"fb950108be5fd4096a7717c88943938261787f99",class:"row gy-3"},a("div",{key:"08f85a06288e19939a16d3fa52ef3b3199c56f36",class:"col-12"},a("h2",{key:"a585b93921814b1ffbb95c6f9c1de37d4104049b",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"3b7c620518006738d2e36863b62a72142f167733",class:"col-12"},a("form-control-textarea",{key:"70a76160b0d29648a9e0598dd5b867a382935e03",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"e06d4c794bad47e366ca702e764307fdab5e33a8",class:"col-12"},a("form-control-textarea",{key:"1b783920c5a5b94bff60d4b061cc7cc6666cc184",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"3cb3371c1d3727e55140ea60a0cff96bc0f42702",class:"col-12"},a("form-control-file-v2",{key:"738a456bf4653240180963fa7e5ab20a7a4add7c",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"70e29d650d5304522f927c15b4eb5e62e203c5e0"},a("div",{key:"f50422b29cb2a4f3bca911ced94dc681adb3fc41",class:"row gy-3"},a("div",{key:"f29816d9281ea4c4db5018d3b7edb1600569357a",class:"col-12"},a("h2",{key:"a2889c95c293bf0bbf97c16e4486e307ca87729c",class:"h5",part:d},"Customer Details")),a("div",{key:"9cd45719434a1740f67b73c13fd08e0fe562168e",class:"col-12"},a("form-control-text",{key:"5a30a3aef7fbe2d3013c46e43a437724dae41213",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"9812e1f9f6df949b9f15b2c3f28857db7dcf5cb7",class:"col-12"},a("form-control-text",{key:"10b146053a399039e8dbd42c3cab53b4b55c0ec3",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"2742a0922a223bd60d6e3d08a55190742ecf5112",class:"col-12"},a("form-control-textarea",{key:"41491e238c75716520d747cbf9f1bcc329a2d686",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"71074f31e565c24107b91b04d9aa16da77ba618c",class:"col-12"},a("form-control-file-v2",{key:"17f70cf96927b01e65430e13c2d21209e9170603",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"ec696695191e68c7ceb0cc41f99f9e53f2d59da1",class:"col-12"},a("form-control-file-v2",{key:"562ff8b3819f536d491f2e2e55a85a55fcda0e1c",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"0b0d73b396b32f29fa389d3981d48c3f30f96fd7"},a("div",{key:"2fd16a4cf964c863a59789a2be60d94b27a95de8",class:"row gy-3"},a("div",{key:"48c15f7db3285caa9164d815615b82a84283fbfe",class:"col-12"},a("h2",{key:"397b3026311bf57588b172146fc9822f99ede63e",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"c825b6efd428bee298b9b0ddf2265378cf999de9",class:"col-12"},a("form-control-text",{key:"b43283087a10826bf8e582a1e863ed4982b5c000",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"66d5cefa16c341f5c523eaa46de5c11f5b16e619",class:"col-12"},a("form-control-textarea",{key:"f83573136fc2ce108f186f9434f46a3f157bd102",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"cc47dc1d9dbac962d27494b5ff3fef572c98c7b4",class:"col-12"},a("form-control-file-v2",{key:"3cf06b6d61edd6ac96d02b12639d040f698b2526",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"1a4a1d78529c48b8f32029a3efa05b4430c6d271"},a("div",{key:"593d167f4e6b610ac3cdb8a04b4eee30a1cb4f91",class:"row gy-3"},a("div",{key:"39440c3a2802b823c85f251c4393ba76bad287c0",class:"col-12"},a("h2",{key:"f5ec8cce1bbadb772ac6dbe668cf54187d2690d7",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"b9020a773c45a8f59a31ffef44b32253fdb4a551",class:"col-12"},a("form-control-text",{key:"56122eafb7f138f4472a5818cddd32cb0e17fc7e",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"0737f585271838dd60ab9ee1e6ac83d0c6362b96",class:"col-12"},a("form-control-file-v2",{key:"63590d574ee151cbf82638002dfe513cea471035",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"0e2648d399af18f7959bed2e0fff56fd63b541df"},a("div",{key:"4322c227617147721ab7cf33a5e75a09bc370a0c",class:"row gy-3"},a("div",{key:"e2bc9f0642356a864e7fa323262ead13d4825fdc",class:"col-12"},a("h2",{key:"88af660c9add83da7edc7758d4645db796c80fdf",class:"h5",part:d},"Product & Service Details")),a("div",{key:"dcfb0f64e1b611eb8d53f97950d5922f7358a64c",class:"col-12"},a("form-control-text",{key:"42959d4b7c03d14fdef29a656a5f18d0d89d3b2e",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"1f4173e79f10a6ac32b860ecbd62fe5c612cc5b2",class:"col-12"},a("form-control-date",{key:"6e8bab228b3a23655cbf71fe6dc72a850b38947c",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"2e32f65cc5388302d067fb1a8db34e3e529435c2",class:"col-12"},a("form-control-file-v2",{key:"f9fb2ac0c6a2f37a7584eeda2460702b1e0d6cc0",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"882eb01880bcfdde30abe10465fecd7390654ed6"},a("div",{key:"de2f238310e4b80976888d147e90047688ad5ada",class:"row gy-3"},a("div",{key:"305af62aa762ae6abff0678998132e8f56707550",class:"col-12"},a("h2",{key:"6e224996b82639c426d129bfd28633f3d3839f6f",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"b2b8d444c594bf92d04fed6640230745c5fb49ba",class:"col-12"},a("form-control-textarea",{key:"f75c6c360c485ac5253164be5d4941d859deb902",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"1788d1e6ba1ddbe82795ce1a41b901a81c055f6d",class:"col-12"},a("form-control-textarea",{key:"f47fac9b8e0d6b9766311b13c760129bb6335ddd",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"d96552fee8b4cdddf31148b2d3783a4e1dfb031b",class:"col-12"},a("form-control-file-v2",{key:"3c6c06201ef3a730aed41ab6b8cb62d5ee8d8128",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"ec2271dd9646596df3106f56c6e96f618196046a",class:"col-12"},a("form-control-file-v2",{key:"48f956f2580187fc7baecc5426d5ed0a1050150b",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"90641cea619de697d7a90e6e397790f79ceb9376"},a("div",{key:"52d939e26bd26e99240d100897a530b89553e727",class:"row gy-3"},a("div",{key:"01755fbca3430bd3066377e9481038370c49b2d8",class:"col-12"},a("h2",{key:"d273fbe6ff8b7815ba5c2369748a3a20548b0a4d",class:"h5",part:d},"Shipping Details")),a("div",{key:"595f4e63dff85591713a4c895acb6628c8ef8214",class:"col-12"},a("form-control-text",{key:"958169d07544237a72facdc016d4d12ac64a4c48",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"1d3020a30f95c5ced652871a635aba0152bbc4e3",class:"col-12"},a("form-control-text",{key:"088af20353ec2efcb65a4e597a1fb4aec23cfcbb",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"536ee74c42d326d7f7f698274c846bfebf0d34dd",class:"col-12"},a("form-control-date",{key:"71ef44bd4c810a567162b7fe92199eceff9be470",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"8887e0daf44be31486563e85cd989eef1da5f5ce",class:"col-12"},a("form-control-textarea",{key:"c34093bc4ee65f4fb092c377a98e01cd69bdbc7c",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"469a5d8c7e28fa2ad430f104f08f387448f70048",class:"col-12"},a("form-control-file-v2",{key:"a2b6c6c0c1cf32430582b97efe6bcc1d4c47147d",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as s}from"./p-D6FDxSyt.js";import{f as i}from"./p-CpTwq2jw.js";import{A as a,ah as r}from"./p-BrLVc_85.js";import{B as d}from"./p-cNABKY0P.js";import{S as c}from"./p-DuYlA4lj.js";import{S as o}from"./p-U30-0DaA.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-M61ygz6l.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-BiPRf6d2.js";import"./p-BFTU3MAI.js";import"./p-OSmuQKbK.js";import"./p-D4Mv5jCp.js";import"./p-Cd06j2SL.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BH0Xfn-F.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DPiTQ9dr.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(c,{key:"77119b1227200909f4742e24df0a45e1f631c65c"},this.isLoading&&s("div",{key:"f0766ff057fb2f4b75b34c7d4a386bde43e49652",style:{marginBottom:"8px"}},s(o,{key:"d7268194dea5ac2a3b87aea8e17573b4768e308f",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(o,{key:"f8863e45a917f56be302ca1b0b3d472119f6465c",height:"18px",styles:{marginBottom:"8px"}}),s(o,{key:"c7b8c9c89d9488eea3be8ea0b4536f98a8151487",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"875fe7def317ce1c4547e04e83baf2b232209058",part:a},s("h1",{key:"09646afc2aac3bf4ef9737bc12442660bbafb2dd",class:"h4",part:r},"This payment is disputed"),s("p",{key:"14224cffb16726eaa589118be954e0f844ffaee8"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"415028b91872a2391796872fdffdbee837a2a511",class:"h5"},"Dispute details"),s("div",{key:"c2b8c6be3132f98eb8c686ab88a5a6a68f92a60e",class:"d-table gap-2"},s("div",{key:"d11bd8b3bc680183e8bee40281cc2c294aedbd5a",class:"d-table-row gap-2"},s("span",{key:"d77796c0d2764329c3b482ae49ceb8b4cac03d37",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"716d8af2a250c3237af6e23b43bf50e032e9f203",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"daba4379197533d2a4b246e81139d81cd15761c6",class:"d-table-row gap-2"},s("span",{key:"a039fbf47aff16445e3411c33a7b53716c42866d",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"19087aba5c516d0c71e9f84e8b3323a044ae532a",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"68ef78b15627df3b22bcde4b90f7c216466e7468",class:"d-table-row gap-2"},s("span",{key:"9463c281d76b5e201a55c2993253fc22d04168dc",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"5cffed27038f5571f37377c5023a88c8b7773a59",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"e856d924edac10116781425f6d7c4c8c6b26ced2",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"6d5278a91f79c2fe8fbdd9e391b109a6491b13b6",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"242b9076b482aae731ab6bedc1592a1a826e24c5",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"f3711546ce5bf8b6a4a8689f5db3fdbf58f45bf4"},s("h1",{key:"06e39be43cfacf667919adbd2f4f8c596702c340",class:"h4"},"This payment is disputed and under review"),s("p",{key:"b3bfef2d40e197f8dc9df6f71d9f13017a4b923d"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"580144b1439d6e017726b9731b7bb15e71900092"},s("h1",{key:"42d74d215d23409672449af86e25c945aac33ea1",class:"h4"},"This payment was disputed"),s("p",{key:"4c337e89a32f62c8f03a53eb84737785f4b0bdb4"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"66c0f7bbada42053683dd25776a7c0abdb708315"},s("h1",{key:"273f2d82dbe73a15da3186946763579be2801aa4",class:"h4"},"This payment was disputed"),s("p",{key:"22172d1c6833eb5407c19dd31b85db805d07d177"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(c,{key:"6f1fd8e2109c806c82c63cfd046739e18cc2b3b7"},s("justifi-dispute-response-core",{key:"56cba360a731ed4054c89c11250f115a7e3b9e63","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.stepCompleteEvent=t(this,"complete-form-step-event"),this.submitEvent=t(this,"submit-event"),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"452cfcf106f40c27f34df05ae2923c0909de9245",class:"row gy-3"},s("div",{key:"d9b608a8d880310b96e98cd4a00cabfcca77dc79",class:"col-12"},s("h1",{key:"050aef1fa636d09880edc7d738d56eab2cf62e52",class:"h4",part:r},"Counter dispute")),s("div",{key:"4e6094f9240d4db3d4bc03c59754ab3d04fed5bc",class:"col-12"},this.currentStepComponent),s("div",{key:"9c1739bc4ed1a9104fd04531a11e02cbbb4f11cc",class:"col-12"},s("div",{key:"d37cda5a7689d8bf9263283eb24e1074ee3d97a0",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{v as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
@@ -0,0 +1 @@
1
+ import{r as s,h as t,H as a}from"./p-D6FDxSyt.js";import{E as o}from"./p-l3o3Ndc0.js";import"./p-BrLVc_85.js";const r=class{constructor(t){s(this,t)}render(){return t(a,{key:"d00d3b1c3b5d73af5a0eb1a18f2095f023aeb816"},this.errorMessage?o(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{r as justifi_details}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as i}from"./p-D6FDxSyt.js";import{f as e}from"./p-CpTwq2jw.js";import{C as a}from"./p-BjB_yKBJ.js";import{C as o}from"./p-SdntD1xf.js";import{v as r,i as d,a as c,H as h}from"./p-D0ptm6-3.js";import{B as n}from"./p-cNABKY0P.js";import{S as l}from"./p-DuYlA4lj.js";import{S as p}from"./p-U30-0DaA.js";import{A as m,T as f}from"./p-BrLVc_85.js";import{H as b}from"./p-DgfzEZny.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-Cd06j2SL.js";const y=class{constructor(i){s(this,i),this.submitEvent=t(this,"submit-event"),this.errorEvent=t(this,"error-event"),this.loaded=t(this,"loaded"),this.hasLoadedFonts=!1,this.renderState="loading",this.creatingNewPaymentMethod=!1,this.insuranceToggled=!1,this.completeCheckout=async s=>{this.complete({payment:s,onSuccess:this.onSubmitted,onError:this.onError})},this.onSubmitted=s=>{this.submitEvent.emit({response:s}),this.renderState="success"},this.onError=({error:s,code:t,severity:i})=>{this.serverError=s,this.errorEvent.emit({errorCode:t,message:s,severity:i}),this.renderState="error"}}async fillBillingForm(s){this.paymentMethodOptionsRef.fillBillingForm(s)}async validate(){const s=r(),{isValid:t}=await this.paymentMethodOptionsRef.validate();return s.isValid&&t?{isValid:!0}:{isValid:!1}}componentWillLoad(){this.getCheckout&&(this.fetchData(),d("set",(s=>{const t=c[s];void 0!==t&&(this.insuranceToggled=t,this.fetchData())})))}fetchData(){this.renderState="loading",this.getCheckout({onSuccess:({checkout:s})=>{this.checkout=new a(s);const{status:t}=this.checkout;this.loaded.emit({checkout_status:t}),this.renderState="success"},onError:({error:s,code:t,severity:i})=>{this.serverError=s,this.renderState="error",this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}async submit(s){var t;s.preventDefault(),this.renderState="loading";const i=r(),e=await this.paymentMethodOptionsRef.resolvePaymentMethod(i);e.validationError?this.renderState="error":e.error?(this.renderState="error",this.serverError=e.error.message,this.onError({code:e.error.code,error:e.error.message,severity:o.ERROR})):e.token?this.completeCheckout({payment_mode:"ecom",payment_token:e.token}):"success"===(null===(t=e.bnpl)||void 0===t?void 0:t.status)?this.completeCheckout({payment_mode:"bnpl"}):this.renderState="error"}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get paymentType(){var s,t,e,a,o;return i("section",null,i("div",{class:!this.isLoading&&"visually-hidden"},i(p,{height:"300px"})),i("div",{class:this.isLoading&&"visually-hidden"},i("justifi-payment-method-options",{ref:s=>this.paymentMethodOptionsRef=s,"show-card":!this.disableCreditCard,"show-ach":!this.disableBankAccount,"show-bnpl":!this.disableBnpl,paymentMethodGroupId:null===(s=this.checkout)||void 0===s?void 0:s.payment_method_group_id,"show-saved-payment-methods":!this.disablePaymentMethodGroup,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,bnpl:null===(t=this.checkout)||void 0===t?void 0:t.bnpl,authToken:this.authToken,"account-id":null===(e=this.checkout)||void 0===e?void 0:e.account_id,savedPaymentMethods:(null===(a=this.checkout)||void 0===a?void 0:a.payment_methods)||[],paymentAmount:null===(o=this.checkout)||void 0===o?void 0:o.payment_amount,insuranceToggled:this.insuranceToggled})))}get summary(){var s,t;return i("section",null,i("div",{class:!this.isLoading&&"visually-hidden"},i(p,{height:"24px"})),i("div",{class:this.isLoading&&"visually-hidden"},i("div",{part:m},null===(s=this.checkout)||void 0===s?void 0:s.payment_description),i("div",null,i("span",{part:m},"Total")," ",i("span",{part:m},e(+(null===(t=this.checkout)||void 0===t?void 0:t.total_amount))))))}render(){return i(l,{key:"2fb8b2c2b543712023c74cf9b41dc57675c89237"},i("div",{key:"caba36e076e4162d9c92844f7c0632b5bf678de6",class:"row gy-3 jfi-checkout-core"},i("div",{key:"6a27d64005d785815d5567894d6e2a6e1e515cf8",class:"col-12",part:f},i(h,{key:"645fe4250331805e86811700b453458f065188bd",text:"Summary",class:"fs-5 fw-bold pb-3"}),this.summary),i("div",{key:"c49c73eb3462ad17e0344e74be508abe958a9358",class:"col-12"},i("slot",{key:"be626bff57c95b92f9853e2e9b63dd9279834142",name:"insurance"})),i("div",{key:"025b0400164935f10d6c79d445bfdcf157290fd6",class:"col-12 mt-4"},i(h,{key:"483b5d53b5cea3ae6fccfbb3aa9d3efe0dc8fcab",text:"Payment",class:"fs-5 fw-bold pb-3"}),i(b,{key:"21abbd4d669e351c8ad0a87b7b408a4998948b46",text:"Select payment type",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"9441e97e1bd64b796ebcf1404d4ca04964990982",class:"d-flex flex-column"},this.paymentType)),i("div",{key:"9db2e4fccff5b868e7d329d9b0be864942adcc3d",class:"col-12"},i("div",{key:"2eaef4ed6062b27de2516de7b71a056c829f8cab",class:"d-flex justify-content-end"},i(n,{key:"505869afa61094d628b58a32749c44f678e4fda3",type:"submit",variant:"primary",onClick:s=>this.submit(s),disabled:this.isLoading,isLoading:this.isLoading,style:{width:"100%"}},"Pay")))))}};export{y as justifi_checkout_core}
@@ -1 +1 @@
1
- import{h as t}from"./p-D6FDxSyt.js";import{B as e,a as i}from"./p-GTA6l_sT.js";import{R as a,S as n}from"./p-CjO1GttX.js";import{e as r}from"./p-CpTwq2jw.js";const o="nickname,provider_serial_number,status",s={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},c={nickname:(e,i)=>t("td",{part:n(i)},e.nickname),model_name:(e,i)=>t("td",{part:n(i)},e.model_name),id:(e,i)=>t("td",{part:n(i)},e.id),provider:(e,i)=>t("td",{part:n(i)},r(e.provider)),provider_serial_number:(e,i)=>t("td",{part:n(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:n(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:n(i)},e.sub_account_name),status:(a,r)=>t("td",{part:n(r)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"}}[a.status])))};export{c as a,o as d,s as t}
1
+ import{h as t}from"./p-D6FDxSyt.js";import{B as e,a as i}from"./p-D5XSsLKb.js";import{P as a,Q as n}from"./p-BrLVc_85.js";import{e as r}from"./p-CpTwq2jw.js";const o="nickname,provider_serial_number,status",s={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},c={nickname:(e,i)=>t("td",{part:n(i)},e.nickname),model_name:(e,i)=>t("td",{part:n(i)},e.model_name),id:(e,i)=>t("td",{part:n(i)},e.id),provider:(e,i)=>t("td",{part:n(i)},r(e.provider)),provider_serial_number:(e,i)=>t("td",{part:n(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:n(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:n(i)},e.sub_account_name),status:(a,r)=>t("td",{part:n(r)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"}}[a.status])))};export{c as a,o as d,s as t}
@@ -0,0 +1 @@
1
+ import{r as a,h as e}from"./p-D6FDxSyt.js";import{f as t,p as s,c as d}from"./p-wqUvt1PB.js";import{k as r,m as c,n as f}from"./p-BrLVc_85.js";import{S as o}from"./p-DuYlA4lj.js";import"./p-CZfYo5-1.js";import{c as p,a as i}from"./p-CpTwq2jw.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";const l=class{constructor(e){a(this,e),this.setParamsOnChange=(a,e)=>{t[a]=e},this.handleDateInput=(a,e)=>{const t=p(e,{setEndOfDay:!0});this.setParamsOnChange(a,t)}}componentWillLoad(){Object.entries({created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([a,e])=>{e&&(s[a]=e)}))}render(){const a=Object.assign({},t);return e(o,{key:"42c48bbbfa426540d33c49d5ef927d2da316fda5"},e("table-filters-menu",{key:"7741ef6667ed7dc6ebbc312f145590939ce1b071",params:a,clearParams:d,part:r},e("div",{key:"0f983dc3e6a735ad12aea940d7663bab98cf623d",class:"grid-cols-2 gap-3 p-1"},e("div",{key:"27faddc94394d5e52de9d1a65a69ecda2f840360",class:"p-2"},e("form-control-date",{key:"58cd7720a5dbcc31b32151de1402b2c4b09b94de",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:i(this.createdAfter,{showInputDate:!0})||i(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:c})),e("div",{key:"a2a8d153acc9fa8371c8effb4cfd0146e31a3018",class:"p-2"},e("form-control-date",{key:"9fc58f04079445952586d0913fad92305fa537a8",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:i(this.createdBefore,{showInputDate:!0})||i(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:f})))))}};export{l as justifi_payouts_list_filters}
@@ -0,0 +1 @@
1
+ import{r as s,c as e,h as t,H as i}from"./p-D6FDxSyt.js";import{C as n,a as r}from"./p-SdntD1xf.js";import{m as a,b as o,f as h,g as d}from"./p-BTS3E50C.js";import{B as c,a as u,D as p}from"./p-ZE1NEnP3.js";import"./p-D4Mv5jCp.js";import"./p-CpTwq2jw.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import{c as f,d as l,F as b}from"./p-DVnVdicA.js";import{A as m}from"./p-OSmuQKbK.js";import{D as g}from"./p-BrLVc_85.js";import{a as k,B as y}from"./p-XYgDHrVL.js";import{B as v}from"./p-cNABKY0P.js";import"./p-CZfYo5-1.js";import"./p-C5RuuShs.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const j=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-additional-questions-form-step-core",{key:"cdc14a51e5655ce4b4d7c24af613b9146c80ba37",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},w=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.postBankAccount=h({authToken:this.authToken,service:new u}),this.postDocumentRecord=d({authToken:this.authToken,service:new p})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-bank-account-form-step-core",{key:"0cdd7da1ea31971df421b28f17673bd1a81bf661",businessId:this.businessId,getBusiness:this.getBusiness,postBankAccount:this.postBankAccount,postDocumentRecord:this.postDocumentRecord,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},_=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-core-info-form-step-core",{key:"21d9ea1603f0e9bf6fe842d177f0f6da0113fb73",businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},C=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t(i,{key:"39dcd68b6ef40bb24dfec2da03d420de7ff17f1a"},t("justifi-business-owners-form-step-core",{key:"f9958c7cb798f256106f93a45bcc8405da5f3b49",authToken:this.authToken,businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s}))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},T=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-representative-form-step-core",{key:"53c23a79fc8c678d98ca016f38fe7e6fe6ad9fba",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},S=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.formCompleted=e(this,"formCompleted"),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:r.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const e=this.termsPayload,t=await this.api.post({endpoint:this.termsConditionsEndpoint,body:e});this.handleResponse(t,s)}catch(s){this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,e)=>{this.acceptedTerms=e,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:e}))}}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=m(),this.formController=new b((s=>{const e=f({accepted:l().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),t=f({accepted:l().nullable()});return s?t:e})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,e){s.error?this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):e(),this.stepCompleteEvent.emit({response:s,formStep:k.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:k.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get merchantAgreementLink(){return t("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return t("form",{key:"6bba766ba11512058470225103aa2afff318ab99"},t("fieldset",{key:"318755ea4fc772e61ac9f8318ccf95494f71bf73"},t("legend",{key:"e5a268e9be8ed0a69eb8eed23ffc742228218685",part:g},"Terms and Conditions"),t("hr",{key:"100eed0ad0c8e7a5c652640c337d899be6f2131a"}),t("div",{key:"08a878a7fe9cd7b8ccb2217932d5d3a3b53bb0c9"},t("p",{key:"a5b3ddc655c511187327028229a893f7ea06c7ca"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),t("br",{key:"5c021ef8a8bce686a615a7478a4312f842eb4248"}),t("div",{key:"6b3172972459d33e70e6bf4b8c2c9d93a843b7f4",class:"row-gy-3"},t("div",{key:"1e99c4eab265b0b0f370a02ddf76b15d27db961c",class:"col-12"},t("form-control-checkbox",{key:"4c974e3fd58f34000fa70d38d3da312f9bd1fe0d",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText,checked:this.acceptedTerms})))))}},B=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-legal-address-form-step-core",{key:"65d876bee76f4deb4df115e636fafaef2c883f24",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},I=class{constructor(e){s(this,e)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return t("div",{key:"7c793a33752cd9b3dd1ebc6c30b7a98002ef8820",class:"d-flex gap-2"},t(v,{key:"5127c233ef8c819fe17204baaff7370d78ec70e7",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),t(v,{key:"d889e96935718eb333eaac70023fd7b273118676",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,y.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),t(v,{key:"5502d7d73084119862451389bf85705407187016",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,y.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},A=class{constructor(e){s(this,e),this.allowOptionalFields=!1,this.componentStepMapping={0:()=>t("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields}),1:()=>t("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields}),2:()=>t("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>t("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields}),4:()=>t("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields}),5:()=>t("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields}),6:()=>t("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return t("div",{key:"f25bbaeeac7ea49b2d99f746af0aec7b637d879a",class:"col-12 mb-4"},this.currentStepComponent)}};export{j as justifi_additional_questions_form_step,w as justifi_business_bank_account_form_step,_ as justifi_business_core_info_form_step,C as justifi_business_owners_form_step,T as justifi_business_representative_form_step,S as justifi_business_terms_conditions_form_step,B as justifi_legal_address_form_step,I as justifi_payment_provisioning_form_buttons,A as justifi_payment_provisioning_form_steps}
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-D6FDxSyt.js";import{u as d,a as t,b as s}from"./p-1ydcg9ti.js";import{P as l,S as o}from"./p-B-iV5cYd.js";import{F as i}from"./p-CjO1GttX.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const r=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{d(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{t(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,d,t,r,c,f,n;return a("form",{key:"02b2888267736b1441b16e569a7d1ff3ab3e7e17"},a("fieldset",{key:"d5d4afd7df869b87272407d4e401ad802708c870"},a("div",{key:"4e2113e9d7d16c6d2b50625dba3dfa82f7b04832",class:"d-flex align-items-center gap-2"},a("legend",{key:"17ffa94355f1d89223c554f4fb80e38735681725",class:"mb-0",part:i},"Representative"),a("form-control-tooltip",{key:"0df0655bc4e409ae53b93e40260486e4ff610410",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),a("hr",{key:"bb67f7aafe877075d18ac9a7e8acaa94267035de",class:"mt-2"}),a("div",{key:"aa5b5fb1913f64c54384d793beeb6dcd5728d10e",class:"row gy-3"},a("div",{key:"6fe16958c76e589581bd099192fc6886f3e7eb6c",class:"col-12 col-md-8"},a("form-control-text",{key:"e0579c2e09c9be66b431174b6d79122349e4d859",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"98cfa2ab8e5537452ab0dae54ad95f1ac2a541f4",class:"col-12 col-md-4"},a("form-control-text",{key:"55962d3f118bc0ffbbe1fbf62d8d6e15c0f04dfb",name:"title",label:"Title",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),a("div",{key:"c8bb3ea449d7adcd0d897ee64a1383ff7639305d",class:"col-12 col-md-6"},a("form-control-text",{key:"df99114c3d94073a3a95b7ea2f326d27db1d4fa9",name:"email",label:"Email Address",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"9fe7cce8fbaa975f2cb2f890ec60cc5696356014",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"236d3629a7d97feb7c7556b7e7ba83b0b45ca3db",name:"phone",label:"Phone Number",defaultValue:null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:l.US})),a("div",{key:"cf99a0654ed61f599d5d854149e68abb9e52798f",class:"col-12 col-md-4"},a("form-control-date",{key:"8bc17351844b590e16f34daaee6da1e67d433d44",name:"dob_full",label:"Birth Date",defaultValue:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>s(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"563dd2be61ca9238c915298fb5db51dfca6468e3",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"a99b04783e2a7a439091aa79394e614d82293ac8",name:"identification_number",label:"SSN",defaultValue:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:o,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),a("div",{key:"4ae17d91e7428f54e07942a1429e554c6e7a37ac",class:"col-12"},a("justifi-identity-address-form",{key:"8490e4d041ff22bcb481d553760ed6f34ca908aa",errors:this.errors.address,defaultValues:null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{r as justifi_business_representative_form_inputs}
1
+ import{r as e,h as a}from"./p-D6FDxSyt.js";import{u as d,a as t,b as s}from"./p-1ydcg9ti.js";import{P as l,S as o}from"./p-B-iV5cYd.js";import{D as r}from"./p-BrLVc_85.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const i=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{d(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{t(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,d,t,i,c,f,n;return a("form",{key:"02b2888267736b1441b16e569a7d1ff3ab3e7e17"},a("fieldset",{key:"d5d4afd7df869b87272407d4e401ad802708c870"},a("div",{key:"4e2113e9d7d16c6d2b50625dba3dfa82f7b04832",class:"d-flex align-items-center gap-2"},a("legend",{key:"17ffa94355f1d89223c554f4fb80e38735681725",class:"mb-0",part:r},"Representative"),a("form-control-tooltip",{key:"0df0655bc4e409ae53b93e40260486e4ff610410",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),a("hr",{key:"bb67f7aafe877075d18ac9a7e8acaa94267035de",class:"mt-2"}),a("div",{key:"aa5b5fb1913f64c54384d793beeb6dcd5728d10e",class:"row gy-3"},a("div",{key:"6fe16958c76e589581bd099192fc6886f3e7eb6c",class:"col-12 col-md-8"},a("form-control-text",{key:"e0579c2e09c9be66b431174b6d79122349e4d859",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"98cfa2ab8e5537452ab0dae54ad95f1ac2a541f4",class:"col-12 col-md-4"},a("form-control-text",{key:"55962d3f118bc0ffbbe1fbf62d8d6e15c0f04dfb",name:"title",label:"Title",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),a("div",{key:"c8bb3ea449d7adcd0d897ee64a1383ff7639305d",class:"col-12 col-md-6"},a("form-control-text",{key:"df99114c3d94073a3a95b7ea2f326d27db1d4fa9",name:"email",label:"Email Address",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"9fe7cce8fbaa975f2cb2f890ec60cc5696356014",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"236d3629a7d97feb7c7556b7e7ba83b0b45ca3db",name:"phone",label:"Phone Number",defaultValue:null===(i=this.representativeDefaultValue)||void 0===i?void 0:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:l.US})),a("div",{key:"cf99a0654ed61f599d5d854149e68abb9e52798f",class:"col-12 col-md-4"},a("form-control-date",{key:"8bc17351844b590e16f34daaee6da1e67d433d44",name:"dob_full",label:"Birth Date",defaultValue:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>s(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"563dd2be61ca9238c915298fb5db51dfca6468e3",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"a99b04783e2a7a439091aa79394e614d82293ac8",name:"identification_number",label:"SSN",defaultValue:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:o,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),a("div",{key:"4ae17d91e7428f54e07942a1429e554c6e7a37ac",class:"col-12"},a("justifi-identity-address-form",{key:"8490e4d041ff22bcb481d553760ed6f34ca908aa",errors:this.errors.address,defaultValues:null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{i as justifi_business_representative_form_inputs}
@@ -0,0 +1 @@
1
+ import{r as a,h as e}from"./p-D6FDxSyt.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as i,c as r}from"./p-DJzjeg3x.js";import{w as l,x as d,y as p,z as o}from"./p-BrLVc_85.js";import{S as f}from"./p-DuYlA4lj.js";import"./p-CZfYo5-1.js";import"./p-D4Mv5jCp.js";import"./p-CpTwq2jw.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import{I as n}from"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import"./p-BFTU3MAI.js";import"./p-Cd06j2SL.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const m=class{constructor(e){a(this,e),this.setParamsOnChange=(a,e)=>{s[a]=e}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId}).forEach((([a,e])=>{e&&(i[a]=e)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:n.connected},{label:"Disconnected",value:n.disconnected},{label:"Unknown",value:n.unknown},{label:"Pending Configuration",value:n.pending_configuration}]}render(){const a=Object.assign({},s);return e(f,{key:"4d3d629e79524a5af3cdaa53a9cf4495adbb1432"},e("table-filters-menu",{key:"d49e21e577afc1a4975b0d860a52937772b65e48",params:a,clearParams:r,part:l},e("div",{key:"0b56a893f0eba5947721b0ca9279b0d2d0e249f3",class:"grid-cols-2 gap-3 p-1"},e("div",{key:"0f037e3d28e052423451b64fc54f551a1e78993c",class:"p-2"},e("form-control-text",{key:"52fdf6336a67d203ef29ad4d5f3ec53d7046f151",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:d})),e("div",{key:"8aaabed2e0ba260298cd5ee0a699007d54d7deb3",class:"p-2"},e("form-control-text",{key:"a15fd5e5eef01ae360a0961abb64da458a64d04f",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||s.terminal_order_id,disabled:!!this.terminalOrderId,part:p})),e("div",{key:"5111cba84dc8685cde783235217e1be2cad8fd8f",class:"p-2"},e("form-control-select",{key:"20c7c224ac401cb3a38f96bf25191fd62d0534f9",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||s.status,disabled:!!this.terminalStatus,part:o})))))}};export{m as justifi_terminals_list_filters}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-D6FDxSyt.js";import"./p-D4Mv5jCp.js";import"./p-CpTwq2jw.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as m,i as b,j as u,k as f,l as j}from"./p-n2YROtpe.js";import{T as g}from"./p-CZfYo5-1.js";import{c as y,a as k}from"./p-ByRPlUBS.js";import{o as l,g as C}from"./p-DjGTAHJM.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BrLVc_85.js";import"./p-CQdeVKF8.js";import"./p-D5XSsLKb.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: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:"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{r as t,c as e,h as s,H as a}from"./p-D6FDxSyt.js";import{c as i,l as r,b as o,R as h,a as f}from"./p-BrLVc_85.js";import{F as c}from"./p-C0IqfGFc.js";import"./p-CZfYo5-1.js";const l=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const e=t.target.value;this.inputHandler(this.name,e),this.formControlInput.emit({name:this.name,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=o),this.disabled&&(t=h),this.isFocused&&(t=f),t}render(){return s(a,{key:"5360f4917c4af8d4e40522a25e838703d8374480"},s("div",{key:"56a3a99c81ebbf00d1ff5befa1a96363660806ae",class:"form-group d-flex flex-column"},s("div",{key:"5556531a79f39fecd1cc4027568bc3642f68ed68",class:"d-flex gap-2"},s("label",{key:"b722b7e91adaf94c57698cf5743d43d8cbb04957",part:r,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"109aabf5047eebe8254ed49379b297af05f68ac2",helpText:this.helpText})),s("input",{key:"eb9862be33313981dccda15889d315893344ff41",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=t,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",disabled:this.disabled,max:this.maxDate}),s(c,{key:"01217373b82eee84fae370f504cfee157c6f83ec",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{l as form_control_date}
@@ -0,0 +1 @@
1
+ import{r as e,h as t}from"./p-D6FDxSyt.js";import"./p-D4Mv5jCp.js";import"./p-CpTwq2jw.js";import"./p-SdntD1xf.js";import{I as a,a as s}from"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import{f as p,p as l,c as r}from"./p-DjGTAHJM.js";import{d as o,s as i,p as c}from"./p-BrLVc_85.js";import{S as d}from"./p-DuYlA4lj.js";import"./p-CZfYo5-1.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const m=class{constructor(t){e(this,t),this.setParamsOnChange=(e,t)=>{p[e]=t}}componentWillLoad(){Object.entries({status:this.checkoutStatus,payment_mode:this.paymentMode}).forEach((([e,t])=>{t&&(l[e]=t)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:a.created},{label:"Completed",value:a.completed},{label:"Attempted",value:a.attempted},{label:"Expired",value:a.expired}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:s.ecom},{label:"BNPL",value:s.bnpl}]}render(){const e=Object.assign({},p);return t(d,{key:"bcae6fee83117dde40a29ebcab8e85089bcdc37e"},t("table-filters-menu",{key:"56c6a5d205836fe010917f0f0d978507cf227a3f",params:e,clearParams:r,part:o},t("div",{key:"c82691f9b863368a2b7523dc7d9d348c3fe2e776",class:"grid-cols-2 gap-3 p-1"},t("div",{key:"9abbb01e53139ebd376a638400b199d88288b175",class:"p-2"},t("form-control-select",{key:"3859777cf1f4ee451a65440a90dfe9e5f4a2f069",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||p.status,disabled:!!this.checkoutStatus,part:i})),t("div",{key:"3c23d4b820ea2424d6ddc01e6952c8c46cd7d975",class:"p-2"},t("form-control-select",{key:"c376228f82419b959b3fefa6b32d25c584c6ea3b",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||p.payment_mode,disabled:!!this.paymentMode,part:c})))))}};export{m as justifi_checkouts_list_filters}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as a}from"./p-D6FDxSyt.js";import{b as i,R as o,a as r,c,l as h,S as d}from"./p-BrLVc_85.js";import{F as f}from"./p-B0cQ2RjH.js";import{F as n}from"./p-C0IqfGFc.js";import"./p-CZfYo5-1.js";import{f as l}from"./p-CpTwq2jw.js";import"./p-BFTU3MAI.js";const p=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.defaultValue="0",this.formatRawValue=t=>t.replace(/\D/g,""),this.formatDisplayValue=t=>l(+t,void 0,!0),this.updateInput=t=>{const s=this.formControl.name,e=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(e),this.inputHandler(s,e),this.formControlInput.emit({name:s,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?o:this.isFocused?r:c}render(){return e(a,{key:"49b912649df6d869e20a79017363c738a17e00c1"},e("div",{key:"2c30b89dd46fafe1cd04d186c90ee8389585e1b8",class:"form-group d-flex flex-column"},e("label",{key:"e526de8712e2ea3c91ce897d89c5246bbf4391a1",part:h,class:"form-label",htmlFor:this.name},this.label),e(f,{key:"c9e7a522371ac171186d45da231943c6cbc202fa",name:this.name,helpText:this.helpText}),e("div",{key:"4e9dc549b30327528fa099ea9b451659def605f7",class:"input-group"},e("span",{key:"5f4d6854d6cc15b7d0dbbdcf08c9dd25fec5c8d0",class:"input-group-text",part:d},"$"),e("input",{key:"c04d0dce879da4d53bf6dc4925bac7729408a09f",ref:t=>this.formControl=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:t=>this.updateInput(t.target.value),onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.inputPart,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled})),e(n,{key:"4ff864c4ffc66727ac14ef6e6cb7b25c32dd6867",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{p as form_control_monetary}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as a,g as i}from"./p-D6FDxSyt.js";import{i as r,a as o,b as h,c as n,l as f}from"./p-BrLVc_85.js";import{F as l}from"./p-B0cQ2RjH.js";import{F as c}from"./p-C0IqfGFc.js";import"./p-CZfYo5-1.js";const d=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,e=s.getAttribute("name");this.inputHandler(e,s.value),this.formControlInput.emit({name:e,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.isFocused?o:this.errorText?h:n}render(){return e(a,{key:"575b10375e81774d2ce099cb9f79960fe530ea71"},e("div",{key:"6f23da58c5fbf994dbf814022ab99668c0c71f77",class:"form-group d-flex flex-column"},e("label",{key:"4b19d3067770ce1523e88a7f701a0e193098eb5f",part:f,class:"form-label",htmlFor:this.name},this.label),e("input",{key:"e6331df9a0484fa12e05d63b3b45af3a9d8b0993",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),e(l,{key:"55ef88b41cea29d14df3412a9743685114cfda13",helpText:this.helpText,name:this.name}),e(c,{key:"efad443056dba5b77f86da12854b2a3668c101cd",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_number}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-D6FDxSyt.js";import{A as r}from"./p-BrLVc_85.js";const e=e=>{const{helpText:m,name:o}=e;return m?t("small",{class:"form-text text-muted",id:`form-help-text-${o}`,part:r},m):null};export{e as F}
@@ -0,0 +1 @@
1
+ import{h as r}from"./p-D6FDxSyt.js";import{C as o}from"./p-BrLVc_85.js";const s=s=>r("h1",{class:`header-1 ${null==s?void 0:s.class}`,part:o},s.text);export{s as H}
@@ -1 +1 @@
1
- var s;!function(s){s.won="won",s.lost="lost",s.underReview="under_review",s.needsResponse="needs_response"}(s||(s={}));class t{get needsResponse(){return this.status==s.needsResponse}get underReview(){return this.status==s.underReview}get won(){return this.status==s.won}get lost(){return this.status==s.lost}constructor(s){this.id=s.id,this.amount=s.amount,this.currency=s.currency,this.payment_id=s.payment_id,this.reason=s.reason,this.due_date=s.due_date,this.status=s.status,this.metadata=s.metadata,this.created_at=s.created_at,this.updated_at=s.updated_at,this.dispute_response=s.dispute_response?new i(s.dispute_response):void 0}}class i{constructor(s){this.additional_statement=s.additional_statement,this.cancellation_policy_disclosure=s.cancellation_policy_disclosure,this.cancellation_rebuttal=s.cancellation_rebuttal,this.customer_billing_address=s.customer_billing_address,this.customer_email_address=s.customer_email_address,this.customer_name=s.customer_name,this.customer_purchase_ip_address=s.customer_purchase_ip_address,this.duplicate_charge_explanation=s.duplicate_charge_explanation,this.product_description=s.product_description,this.refund_policy_disclosure=s.refund_policy_disclosure,this.refund_refusal_explanation=s.refund_refusal_explanation,this.service_date=s.service_date,this.shipping_address=s.shipping_address,this.shipping_carrier=s.shipping_carrier,this.shipping_date=s.shipping_date,this.shipping_tracking_number=s.shipping_tracking_number,this.duplicate_charge_original_payment_id=s.duplicate_charge_original_payment_id}}export{s as D,t as a}
1
+ var s;!function(s){s.won="won",s.lost="lost",s.underReview="under_review",s.needsResponse="needs_response"}(s||(s={}));class t{get needsResponse(){return this.status==s.needsResponse}get underReview(){return this.status==s.underReview}get won(){return this.status==s.won}get lost(){return this.status==s.lost}constructor(s){this.id=s.id,this.amount=s.amount,this.currency=s.currency,this.payment_id=s.payment_id,this.reason=s.reason,this.due_date=s.due_date,this.status=s.status,this.metadata=s.metadata,this.created_at=s.created_at,this.updated_at=s.updated_at,this.dispute_response=s.dispute_response?new i(s.dispute_response):void 0}}class i{constructor(s){this.additional_statement=s.additional_statement,this.cancellation_policy_disclosure=s.cancellation_policy_disclosure,this.cancellation_rebuttal=s.cancellation_rebuttal,this.customer_billing_address=s.customer_billing_address,this.customer_email_address=s.customer_email_address,this.customer_name=s.customer_name,this.customer_purchase_ip_address=s.customer_purchase_ip_address,this.duplicate_charge_explanation=s.duplicate_charge_explanation,this.product_description=s.product_description,this.refund_policy_disclosure=s.refund_policy_disclosure,this.refund_refusal_explanation=s.refund_refusal_explanation,this.service_date=s.service_date,this.shipping_address=s.shipping_address,this.shipping_carrier=s.shipping_carrier,this.shipping_date=s.shipping_date,this.shipping_tracking_number=s.shipping_tracking_number,this.duplicate_charge_original_payment_id=s.duplicate_charge_original_payment_id}}export{t as D,s as a}
@@ -0,0 +1 @@
1
+ import{A as o}from"./p-OSmuQKbK.js";import{C as s}from"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import{S as r}from"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import"./p-D4Mv5jCp.js";import"./p-CpTwq2jw.js";import{g as t,a as n}from"./p-C5RuuShs.js";const p=o();class c{async fetchSubAccounts(o,s,r){return p.get({authToken:s,endpoint:"sub_accounts",params:r,headers:{Account:o}})}}const a=({accountId:o,authToken:p,service:c})=>async({params:a,onSuccess:i,onError:e})=>{var u,m;try{const j=await c.fetchSubAccounts(o,p,a);if(j.error){return e({error:n(j.error),code:t(null===(m=j.error)||void 0===m?void 0:m.code),severity:s.ERROR})}{const o=Object.assign({},j.page_info);i({subAccounts:(null===(u=j.data)||void 0===u?void 0:u.map((o=>new r(o))))||[],pagingInfo:o})}}catch(o){const r=t(null==o?void 0:o.code);return e({error:o.message||o,code:r,severity:s.ERROR})}};export{c as S,a as m}
@@ -1 +1 @@
1
- import{C as r}from"./p-SdntD1xf.js";import{g as e,a as o}from"./p-C5RuuShs.js";const n=({authToken:n,businessId:t,service:s})=>async({onSuccess:i,onError:a,final:c=()=>{}})=>{var u;try{const c=await s.fetchBusiness(t,n);if(c.error){return a({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return a({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},t=({authToken:n,businessId:t,service:s})=>async({payload:i,onSuccess:a,onError:c,final:u=()=>{}})=>{var l;try{const u=await s.patchBusiness(n,t,i);if(u.error){return c({error:o(u.error),code:e(null===(l=u.error)||void 0===l?void 0:l.code),severity:r.ERROR})}a(u)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR})}finally{return u()}},s=({authToken:n,businessId:t,product:s,service:i})=>async({onSuccess:a,onError:c})=>{var u;try{const l=await i.postProvisioning(n,t,s);if(l.error){return c({error:o(l.error),code:e(null===(u=l.error)||void 0===u?void 0:u.code),severity:r.ERROR})}a(l)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR})}},i=({authToken:n,identityId:t,service:s})=>async({onSuccess:i,onError:a,final:c=()=>{}})=>{var u;try{const c=await s.fetchIdentity(t,n);if(c.error){return a({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return a({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},a=({authToken:n,identityId:t,service:s})=>async({payload:i,onSuccess:a,onError:c,final:u=()=>{}})=>{var l;try{const u=await s.patchIdentity(n,t,i);if(u.error){return c({error:o(u.error),code:e(null===(l=u.error)||void 0===l?void 0:l.code),severity:r.ERROR})}a(u)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR})}finally{return u()}},c=({authToken:n,service:t})=>async({payload:s,onSuccess:i,onError:a,final:c=()=>{}})=>{var u;try{const c=await t.postIdentity(n,s);if(c.error){return a({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return a({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},u=({authToken:n,service:t})=>async({payload:s,onSuccess:i,onError:a,final:c=()=>{}})=>{var u;try{const c=await t.postBankAccount(n,s);if(c.error){return a({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return a({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},l=({authToken:n,service:t})=>async({payload:s,onSuccess:i,onError:a,final:c=()=>{}})=>{var u;try{const c=await t.postDocumentRecord(n,s);if(c.error){return a({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return a({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}};export{s as a,i as b,a as c,c as d,t as e,u as f,l as g,n as m}
1
+ import{C as r}from"./p-SdntD1xf.js";import{g as e,a as o}from"./p-C5RuuShs.js";const n=({authToken:n,businessId:t,service:s})=>async({onSuccess:i,onError:a,final:c=()=>{}})=>{var u;try{const c=await s.fetchBusiness(t,n);if(c.error){return a({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return a({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},t=({authToken:n,businessId:t,service:s})=>async({payload:i,onSuccess:a,onError:c,final:u=()=>{}})=>{var l;try{const u=await s.patchBusiness(n,t,i);if(u.error){return c({error:o(u.error),code:e(null===(l=u.error)||void 0===l?void 0:l.code),severity:r.ERROR})}a(u)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR})}finally{return u()}},s=({authToken:n,businessId:t,product:s,service:i})=>async({onSuccess:a,onError:c})=>{var u;try{const l=await i.postProvisioning(n,t,s);if(l.error){return c({error:o(l.error),code:e(null===(u=l.error)||void 0===u?void 0:u.code),severity:r.ERROR})}a(l)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR})}},i=({authToken:n,identityId:t,service:s})=>async({onSuccess:i,onError:a,final:c=()=>{}})=>{var u;try{const c=await s.fetchIdentity(t,n);if(c.error){return a({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return a({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},a=({authToken:n,identityId:t,service:s})=>async({payload:i,onSuccess:a,onError:c,final:u=()=>{}})=>{var l;try{const u=await s.patchIdentity(n,t,i);if(u.error){return c({error:o(u.error),code:e(null===(l=u.error)||void 0===l?void 0:l.code),severity:r.ERROR})}a(u)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR})}finally{return u()}},c=({authToken:n,service:t})=>async({payload:s,onSuccess:i,onError:a,final:c=()=>{}})=>{var u;try{const c=await t.postIdentity(n,s);if(c.error){return a({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return a({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},u=({authToken:n,service:t})=>async({payload:s,onSuccess:i,onError:a,final:c=()=>{}})=>{var u;try{const c=await t.postBankAccount(n,s);if(c.error){return a({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return a({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},l=({authToken:n,service:t})=>async({payload:s,onSuccess:i,onError:a,final:c=()=>{}})=>{var u;try{const c=await t.postDocumentRecord(n,s);if(c.error){return a({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return a({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}};export{s as a,t as b,i as c,a as d,c as e,u as f,l as g,n as m}
@@ -0,0 +1 @@
1
+ import{A as t}from"./p-OSmuQKbK.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";const n=t();class a{async fetchPayments(t,a,p){return n.get({endpoint:`account/${t}/payments`,params:p,authToken:a})}async fetchPayment(t,a){return n.get({endpoint:`payments/${t}`,authToken:a})}async fetchPaymentTransactions(t,a,p){return n.get({endpoint:`payments/${t}/payment_balance_transactions`,params:p,authToken:a})}}export{a as P}
@@ -0,0 +1 @@
1
+ import{p as t}from"./p-DPiTQ9dr.js";import{A as s}from"./p-OSmuQKbK.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";const i=s();class e{async record(t){return i.post({endpoint:"analytics",body:t})}}class o{constructor(t){this.handleCustomEvent=async t=>{await this.service.record(t)},window.location.origin.includes("localhost")||window.location.origin.includes("storybook")||(this.service=new e,this.componentInstance=t,this.setUpBasicData(),this.setupLifecycleTracking(),this.trackCustomEvents())}get resourceId(){return this.componentInstance.accountId||this.componentInstance.businessId||this.componentInstance.paymentId||this.componentInstance.payoutId||this.componentInstance.checkoutId}setUpBasicData(){this.basicData={component_name:this.componentInstance.tagName,component_version:t.version,client_user_agent:navigator.userAgent,client_platform:navigator.userAgent,client_origin:window.location.origin,resource_id:this.resourceId}}trackCustomEvents(){this.eventEmitters=["submit-event","error-event"],this.eventEmitters.forEach((t=>{"function"==typeof this.componentInstance.addEventListener&&this.componentInstance.addEventListener(t,(s=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),{error:s.detail})})))}))}setupLifecycleTracking(){const t=this.componentInstance.componentDidLoad;this.componentInstance.componentDidLoad=()=>{if(this.service.record({event_type:"init",data:this.basicData}),t)return t.apply(this.componentInstance)}}cleanup(){this.eventEmitters&&this.eventEmitters.forEach((t=>{this.componentInstance.removeEventListener(t,this.handleCustomEvent)}))}}const r=async()=>{const s=t.version,i=t.name,e=await(async t=>{const s=await fetch("https://registry.npmjs.org/"+t+"/latest");return(await s.json()).version})(i),o=e.replace(/-rc.*/,""),r=s.split("."),n=e.split(".");r[0]!==n[0]&&console.warn(`The package ${i} is out of date. The latest version is ${o}. Please update.`)};export{o as J,r as c}
@@ -0,0 +1 @@
1
+ import{A as r}from"./p-OSmuQKbK.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";const e=r();class n{async fetchTerminals(r,n,t){return e.get({endpoint:"terminals",params:t,headers:{Account:r},authToken:n})}async fetchTerminal(r,n){return e.get({endpoint:`terminals/${r}`,authToken:n})}async fetchTerminalModels(r,n){return e.get({endpoint:"terminals/order_models",headers:{"sub-account":r},authToken:n})}async orderTerminals(r,n){return e.post({endpoint:"terminals/orders",body:n,headers:{"sub-account":n.sub_account_id},authToken:r})}}export{n as T}
@@ -0,0 +1 @@
1
+ const a="font-family",t="background-color",e=`text color ${a}`,s=`text-danger ${e}`,i=`heading ${e}`,r=`heading-1 ${i}`,l=`heading-2 ${i}`,n=`heading-3 ${i}`,o=`heading-4 ${i}`,$=`heading-5 ${i}`,d=`button ${e}`,p=`button-primary ${d}`,m=`button-secondary ${d}`,u=`button-link ${d}`,c="button-loading",b=`label ${e}`,f=`input ${e} ${t}`,g=`input-group ${f}`,h=`input-invalid ${f}`,y=`input-disabled ${f}`,k=`input-focused ${f}`,x=`input-invalid-and-focused ${f}`,v="input-radio",w=`input-radio-focused ${v}`,j=`input-radio-checked ${v}`,q=`input-radio-checked-focused ${v}`,z=`input-radio-invalid ${v}`,A="input-checkbox",B=`input-checkbox-invalid ${A}`,C=`input-checkbox-focused ${A}`,D=`input-checkbox-checked ${A}`,E=`input-checkbox-checked-focused ${A}`,F=`input-adornment ${e}`,G=`alert-danger alert ${e}`,H=`tooltip ${e}`,I=`tooltip-icon ${e}`,J=`tooltip-inner ${e}`,K=`card ${e} ${t}`,L=`table ${e} ${t}`,M=`table-row ${e} ${t}`,N=`table-cell ${e} ${t}`,O="table-head",P=`table-head-row ${e} ${t}`,Q=`table-head-cell ${N}`,R="table-foot",S=`table-foot-row ${e} ${t}`,T=`table-foot-cell ${N}`,U=`table-cell-even ${N}`,V=`table-cell-odd ${N}`,W=a=>a%2?U:V,X=`table-empty ${e} ${t}`,Y=`table-error ${e} ${t}`,Z=`pagination-button ${d}`,_=`pagination-button-disabled button-disabled ${d}`,aa=`pagination-button-text ${e}`,ta=`pagination-button-icon ${e}`,ea=`pagination-button-icon-next ${ta}`,sa=`pagination-button-icon-previous ${ta}`,ia="loading-spinner",ra=`badge ${a}`,la=`${ra} badge-primary`,na=`${ra} badge-secondary`,oa=`${ra} badge-success`,$a=`${ra} badge-danger`,da=`${ra} badge-warning`,pa=`${ra} badge-info`,ma=`${ra} badge-light`,ua=`${ra} badge-dark`,ca=`dropdown-menu ${e}`,ba=`dropdown-menu-button ${p}`,fa=`radio-list-item ${e}`,ga="skeleton",ha="image",ya="billing-form",ka="checkout-summary",xa="filter-menu",va=`${xa} payments-list-filter-menu`,wa="payments-list-filter-param",ja=`${wa} payment-id-payments-list-filter-param`,qa=`${wa} terminal-id-payments-list-filter-param`,za=`${wa} payment-status-payments-list-filter-param`,Aa=`${wa} created-after-payments-list-filter-param`,Ba=`${wa} created-before-payments-list-filter-param`,Ca=`${xa} payouts-list-filter-menu`,Da="payouts-list-filter-param",Ea=`${Da} created-after-payouts-list-filter-param`,Fa=`${Da} created-before-payouts-list-filter-param`,Ga=`${xa} checkouts-list-filter-menu`,Ha="checkouts-list-filter-param",Ia=`${Ha} checkout-status-checkouts-list-filter-param`,Ja=`${Ha} payment-mode-checkouts-list-filter-param`,Ka=`${xa} terminals-list-filter-menu`,La="terminals-list-filter-param",Ma=`${La} terminal-id-terminals-list-filter-param`,Na=`${La} terminal-order-id-terminals-list-filter-param`,Oa=`${La} terminal-status-terminals-list-filter-param`,Pa=`${xa} terminal-orders-list-filter-menu`,Qa="terminal-orders-list-filter-param",Ra=`${Qa} order-status-terminal-orders-list-filter-param`,Sa=`${Qa} order-type-terminal-orders-list-filter-param`,Ta=`${Qa} created-after-terminal-orders-list-filter-param`,Ua=`${Qa} created-before-terminal-orders-list-filter-param`;export{j as $,e as A,s as B,r as C,l as D,ga as E,ua as F,ma as G,pa as H,da as I,$a as J,oa as K,na as L,la as M,ra as N,ia as O,Q as P,W as Q,y as R,F as S,ka as T,n as U,ha as V,u as W,K as X,g as Y,z as Z,q as _,k as a,w as a0,v as a1,B as a2,E as a3,C as a4,D as a5,A as a6,Z as a7,_ as a8,sa as a9,aa,ea as ab,m as ac,p as ad,c as ae,ba as af,ca as ag,o as ah,L as ai,N as aj,$ as ak,G as al,O as am,P as an,M as ao,R as ap,S as aq,T as ar,X as as,Y as at,ya as au,fa as av,H as aw,J as ax,I as ay,h as b,f as c,Ga as d,va as e,ja as f,za as g,Aa as h,x as i,Ba as j,Ca as k,b as l,Ea as m,Fa as n,Pa as o,Ja as p,Ra as q,Sa as r,Ia as s,qa as t,Ta as u,Ua as v,Ka as w,Ma as x,Na as y,Oa as z}
@@ -1 +1 @@
1
- import{h as t}from"./p-D6FDxSyt.js";import{b as e,d as a}from"./p-CpTwq2jw.js";import{B as c,a as o}from"./p-GTA6l_sT.js";import{R as p,S as s}from"./p-CjO1GttX.js";const r="created_at,payment_amount,payment_description,payment_mode,status",d={created_at:()=>t("th",{part:p,scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>t("th",{part:p,scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>t("th",{part:p,scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>t("th",{part:p,scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>t("th",{part:p,scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>t("th",{part:p,scope:"col",title:"The current status of each checkout"},"Status")},n={created_at:(c,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(c.created_at)),t("div",{class:"fw-bold"},e(c.created_at))),payment_amount:(e,a)=>t("td",{part:s(a)},e.formattedPaymentAmount(e.payment_amount)),payment_description:(e,a)=>t("td",{part:s(a)},e.payment_description),sub_account_name:(e,a)=>t("td",{part:s(a)},e.sub_account_name),payment_mode:(e,a)=>t("td",{part:s(a)},e.payment_mode),status:(e,a)=>t("td",{part:s(a)},t(o,Object.assign({},{created:{variant:c.PRIMARY,title:"The checkout has been created",text:"Created"},completed:{variant:c.SUCCESS,title:"The checkout has been completed",text:"Completed"},attempted:{variant:c.SECONDARY,title:"The checkout has been attempted",text:"Attempted"},expired:{variant:c.DANGER,title:"The checkout has expired",text:"Expired"}}[e.status])))};export{n as a,d as c,r as d}
1
+ import{h as t}from"./p-D6FDxSyt.js";import{b as e,d as a}from"./p-CpTwq2jw.js";import{B as c,a as o}from"./p-D5XSsLKb.js";import{P as p,Q as s}from"./p-BrLVc_85.js";const r="created_at,payment_amount,payment_description,payment_mode,status",d={created_at:()=>t("th",{part:p,scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>t("th",{part:p,scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>t("th",{part:p,scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>t("th",{part:p,scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>t("th",{part:p,scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>t("th",{part:p,scope:"col",title:"The current status of each checkout"},"Status")},n={created_at:(c,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(c.created_at)),t("div",{class:"fw-bold"},e(c.created_at))),payment_amount:(e,a)=>t("td",{part:s(a)},e.formattedPaymentAmount(e.payment_amount)),payment_description:(e,a)=>t("td",{part:s(a)},e.payment_description),sub_account_name:(e,a)=>t("td",{part:s(a)},e.sub_account_name),payment_mode:(e,a)=>t("td",{part:s(a)},e.payment_mode),status:(e,a)=>t("td",{part:s(a)},t(o,Object.assign({},{created:{variant:c.PRIMARY,title:"The checkout has been created",text:"Created"},completed:{variant:c.SUCCESS,title:"The checkout has been completed",text:"Completed"},attempted:{variant:c.SECONDARY,title:"The checkout has been attempted",text:"Attempted"},expired:{variant:c.DANGER,title:"The checkout has expired",text:"Expired"}}[e.status])))};export{n as a,d as c,r as d}
@@ -0,0 +1 @@
1
+ import{f as t}from"./p-CpTwq2jw.js";var s,i,e,h,n,a,r,d,o,c,u,l,f;!function(t){t.payment="payment",t.paymentFee="payment_fee",t.payout="payout",t.refund="refund",t.feeRefund="fee_refund",t.dispute="dispute",t.disputeFee="dispute_fee",t.disputeFeeRefund="dispute_fee_refund",t.disputeRefund="dispute_refund",t.applicationFeeReturned="application_fee_returned"}(s||(s={}));class p{constructor(t){this.id=t.id,this.amount=t.amount,this.balance=t.balance,this.currency=t.currency,this.financial_transaction_id=t.financial_transaction_id,this.payment_id=t.payment_id,this.payment_balance_txn_type=t.payment_balance_txn_type,this.source_id=t.source_id,this.source_type=t.source_type,this.created_at=t.created_at,this.updated_at=t.updated_at}get displayTransactionId(){return this.payment_balance_txn_type===s.paymentFee||this.payment_balance_txn_type===s.applicationFeeReturned?"--":this.source_id}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.paid="paid",t.failed="failed",t.forwarded="forwarded",t.scheduled="scheduled",t.in_transit="in_transit",t.canceled="canceled"}(i||(i={})),function(t){t.paid="Paid",t.failed="Failed",t.forwarded="Forwarded",t.scheduled="Scheduled",t.in_transit="In Transit",t.canceled="Canceled"}(e||(e={}));class _{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.bank_account=t.bank_account,this.delivery_method=t.delivery_method||"standard",this.description=t.description,this.deposits_at=t.deposits_at,this.fees_total=t.fees_total,this.refunds_count=t.refunds_count,this.refunds_total=t.refunds_total,this.payments_count=t.payments_count,this.payments_total=t.payments_total,this.payout_type=t.payout_type,this.other_total=t.other_total,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at,this.settlement_priority=t.settlement_priority||"standard"}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.fee="fee",t.payment="payment",t.payout="payout",t.sellerPaymentRefund="seller_payment_refund",t.disputeAmountCollected="dispute_amount_collected",t.disputeFeeCollected="dispute_fee_collected",t.sellerPayment="seller_payment",t.transfer="transfer",t.partnerPlatformProceedsCredit="partner_platform_proceeds_credit"}(h||(h={}));class m{constructor(t){this.id=t.id,this.account_id=t.account_id,this.payout_id=t.payout_id,this.financial_transaction_id=t.financial_transaction_id,this.amount=t.amount,this.fee=t.fee,this.net=t.net,this.currency=t.currency,this.source_id=t.source_id,this.description=t.description,this.txn_type=t.txn_type,this.created_at=t.created_at,this.available_on=t.available_on,this.updated_at=t.updated_at}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.connected="connected",t.disconnected="disconnected",t.unknown="unknown",t.pending_configuration="pending_configuration"}(n||(n={})),function(t){t.verifone="verifone"}(a||(a={}));class y{constructor(t){this.id=t.id||"",this.status=t.status,this.account_id=t.account_id||"",this.platform_account_id=t.platform_account_id||"",this.provider=t.provider||null,this.provider_id=t.provider_id||"",this.provider_serial_number=t.provider_serial_number||"",this.created_at=t.created_at||"",this.updated_at=t.updated_at||"",this.verified_at=t.verified_at||"",this.nickname=t.nickname||"",this.model_name=t.model_name||null}}!function(t){t.boardingOnly="boarding_only",t.boardingShipping="boarding_shipping"}(r||(r={})),function(t){t.created="created",t.submitted="submitted",t.completed="completed",t.in_progress="in_progress",t.on_hold="on_hold",t.canceled="canceled"}(d||(d={}));class g{constructor(t){this.id=t.id,this.business_id=t.business_id,this.company_name=t.company_name,this.sub_account_id=t.sub_account_id,this.provider=t.provider||a.verifone,this.order_items=[],this.order_type=t.order_type,this.order_status=t.order_status,this.terminals=t.terminals,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{business_id:this.business_id,sub_account_id:this.sub_account_id,order_type:this.order_type,order_items:this.order_items}}get totalQuantity(){return this.order_items.reduce(((t,s)=>t+s.quantity),0)}updateTerminal(t,s){if(0===s)return void(this.order_items=this.order_items.filter((s=>s.model_name!==t)));const i=this.order_items.find((s=>s.model_name===t));i?i.quantity=s:this.order_items.push({model_name:t,quantity:s})}}!function(t){t.v400="v400",t.p400="p400+",t.e285="e285"}(o||(o={}));class b{constructor(t){this.id=t.id,this.model_name=t.model_name,this.description=t.description,this.image_url=t.image_url,this.help_url=t.help_url}}!function(t){t.test="test",t.live="live"}(c||(c={})),function(t){t.created="created",t.submitted="submitted",t.information_needed="information_needed",t.rejected="rejected",t.enabled="enabled",t.disabled="disabled",t.archived="archived"}(u||(u={}));class v{constructor(t){this.id=t.id,this.name=t.name,this.account_type=t.account_type,this.status=t.status,this.currency=t.currency,this.platform_account_id=t.platform_account_id,this.payout_account_id=t.payout_account_id,this.business_id=t.business_id,this.application_fee_rates=t.application_fee_rates,this.processing_ready=t.processing_ready,this.payout_ready=t.payout_ready,this.related_accounts=t.related_accounts,this.created_at=t.created_at,this.updated_at=t.updated_at}}!function(t){t.succeeded="succeeded",t.failed="failed"}(l||(l={})),function(t){t.customerRequest="customer_request",t.duplicate="duplicate",t.fraudulent="fraudulent"}(f||(f={}));class w{constructor(t){this.amount=t.amount,this.reason=t.reason,this.description=t.description,this.metadata=t.metadata}}export{n as I,_ as P,f as R,v as S,d as T,r as a,y as b,p as c,m as d,g as e,b as f,w as g}
@@ -0,0 +1 @@
1
+ import{h as r}from"./p-D6FDxSyt.js";import{B as t}from"./p-BrLVc_85.js";const o=o=>{const{errorText:e,name:s}=o;return e?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},e):null};export{o as F}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-D6FDxSyt.js";import{P as e,Q as r}from"./p-BrLVc_85.js";import{a}from"./p-CpTwq2jw.js";import"./p-D4Mv5jCp.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import{a as s}from"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import{B as i,a as o}from"./p-D5XSsLKb.js";const d="created_at,updated_at,order_status,quantity",p={created_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was created"},"Created At"),updated_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was last updated"},"Updated At"),order_status:()=>t("th",{part:e,scope:"col",title:"The current status of the order"},"Order Status"),business_id:()=>t("th",{part:e,scope:"col",title:"The business ID associated with the order"},"Business ID"),company_name:()=>t("th",{part:e,scope:"col",title:"The business name associated with the order"},"Business Name"),provider:()=>t("th",{part:e,scope:"col",title:"The provider associated with the order"},"Provider"),order_type:()=>t("th",{part:e,scope:"col",title:"The type of order"},"Order Type"),quantity:()=>t("th",{part:e,scope:"col",title:"The number of terminals associated with the order"},"Order Quantity")},l={created_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.created_at,{showTime:!0}))),updated_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.updated_at,{showTime:!0}))),order_status:(e,a)=>t("td",{part:r(a)},t(o,Object.assign({},{submitted:{variant:i.PRIMARY,title:"This order is submitted",text:"Submitted"},completed:{variant:i.SUCCESS,title:"This order has been completed",text:"Completed"},created:{variant:i.SECONDARY,title:"This order is created",text:"Created"},in_progress:{variant:i.PRIMARY,title:"This order is in progress",text:"In Progress"},on_hold:{variant:i.WARNING,title:"This order is on hold",text:"On Hold"},canceled:{variant:i.DANGER,title:"This order is canceled",text:"Canceled"}}[e.order_status]))),business_id:(e,a)=>t("td",{part:r(a)},e.business_id),company_name:(e,a)=>t("td",{part:r(a)},e.company_name),provider:(e,a)=>t("td",{part:r(a)},e.provider),order_type:(e,a)=>{let i;return e.order_type===s.boardingOnly?i="Boarding Only":e.order_type===s.boardingShipping&&(i="Boarding & Shipping"),t("td",{part:r(a)},i)},quantity:(e,a)=>t("td",{part:r(a)},e.terminals.length)};export{l as a,d,p as t}
@@ -1 +1 @@
1
- import{h as e}from"./p-D6FDxSyt.js";import{B as t,a}from"./p-GTA6l_sT.js";const i=i=>e(a,Object.assign({},{succeeded:{variant:t.SUCCESS,title:"This payment was successfully captured",text:"Succeeded"},authorized:{variant:t.PRIMARY,title:"This card payment was authorized, but not captured. It could still succeed or fail.",text:"Authorized"},pending:{variant:t.PRIMARY,title:"This ACH payment was processed, but the funds have not settled. It could still succeed or fail.",text:"Pending"},achFailed:{variant:t.DANGER,title:"The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)",text:"ACH Failed"},failed:{variant:t.DANGER,title:"This card payment did not go through (it will not appear in a payout)",text:"Failed"},canceled:{variant:t.DANGER,title:"This payment was canceled",text:"Canceled"},disputed:{variant:t.SECONDARY,title:"The account holder disputed this payment. The amount has been returned and a fee assessed.",text:"Disputed"},fully_refunded:{variant:t.SECONDARY,title:"The full amount of this payment has been refunded",text:"Fully Refunded"},partially_refunded:{variant:t.SECONDARY,title:"A portion of this payment has been refunded",text:"Partially Refunded"}}[i]));export{i as M}
1
+ import{h as e}from"./p-D6FDxSyt.js";import{B as t,a}from"./p-D5XSsLKb.js";const i=i=>e(a,Object.assign({},{succeeded:{variant:t.SUCCESS,title:"This payment was successfully captured",text:"Succeeded"},authorized:{variant:t.PRIMARY,title:"This card payment was authorized, but not captured. It could still succeed or fail.",text:"Authorized"},pending:{variant:t.PRIMARY,title:"This ACH payment was processed, but the funds have not settled. It could still succeed or fail.",text:"Pending"},achFailed:{variant:t.DANGER,title:"The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)",text:"ACH Failed"},failed:{variant:t.DANGER,title:"This card payment did not go through (it will not appear in a payout)",text:"Failed"},canceled:{variant:t.DANGER,title:"This payment was canceled",text:"Canceled"},disputed:{variant:t.SECONDARY,title:"The account holder disputed this payment. The amount has been returned and a fee assessed.",text:"Disputed"},fully_refunded:{variant:t.SECONDARY,title:"The full amount of this payment has been refunded",text:"Fully Refunded"},partially_refunded:{variant:t.SECONDARY,title:"A portion of this payment has been refunded",text:"Partially Refunded"}}[i]));export{i as M}
@@ -1 +1 @@
1
- import{c as e}from"./p-DVnVdicA.js";import{d as s,t as n,i as a,b as i,a as r,p as t,e as u,w as _,c as o,o as c,s as l,r as b,f as m,g as p,h as d,j as g}from"./p-Cy4aIACq.js";const y=c=>{const l=e({legal_name:o.required("Enter legal name"),website_url:_.required("Enter business website url"),email:u.required("Enter business email"),phone:t.required("Enter phone number"),doing_business_as:r.nullable(),classification:i.required("Select business classification"),industry:a.required("Enter a business industry"),tax_id:n.required("Enter valid tax ID (SSN or EIN) without dashes"),date_of_incorporation:s.required("Enter date of incorporation")}),b=e({legal_name:o.required("Enter legal name"),website_url:_.nullable(),email:u.nullable(),phone:t.nullable(),doing_business_as:r.nullable(),classification:i.nullable(),industry:a.nullable(),tax_id:n.nullable(),date_of_incorporation:s.nullable()});return c?b:l},v=s=>{const n=e({business_revenue:g.required("Enter business revenue"),business_payment_volume:d.required("Enter business payment volume"),business_when_service_received:p.required("Select when service is received"),business_recurring_payments:m.required("Select recurring payments"),business_recurring_payments_percentage:b,business_seasonal:l.required("Select business seasonal"),business_other_payment_details:c.nullable()}),a=e({business_revenue:g.nullable(),business_payment_volume:d.nullable(),business_when_service_received:p.nullable(),business_recurring_payments:m.nullable(),business_recurring_payments_percentage:b,business_seasonal:l.nullable(),business_other_payment_details:c.nullable()});return s?a:n};export{v as a,y as b}
1
+ import{c as e}from"./p-DVnVdicA.js";import{d as s,t as n,i as a,b as i,a as r,p as t,e as _,w as u,c as o,o as c,s as l,r as b,f as m,g as p,h as d,j as g}from"./p-DNt_pMGt.js";const v=c=>{const l=e({legal_name:o.required("Enter legal name"),website_url:u.required("Enter business website url"),email:_.required("Enter business email"),phone:t.required("Enter phone number"),doing_business_as:r.nullable(),classification:i.required("Select business classification"),industry:a.required("Enter a business industry"),tax_id:n.required("Enter valid tax ID (SSN or EIN) without dashes"),date_of_incorporation:s.required("Enter date of incorporation")}),b=e({legal_name:o.required("Enter legal name"),website_url:u.nullable(),email:_.nullable(),phone:t.nullable(),doing_business_as:r.nullable(),classification:i.nullable(),industry:a.nullable(),tax_id:n.nullable(),date_of_incorporation:s.nullable()});return c?b:l},y=s=>{const n=e({business_revenue:g.required("Enter business revenue"),business_payment_volume:d.required("Enter business payment volume"),business_when_service_received:p.required("Select when service is received"),business_recurring_payments:m.required("Select recurring payments"),business_recurring_payments_percentage:b,business_seasonal:l.required("Select business seasonal"),business_other_payment_details:c.nullable()}),a=e({business_revenue:g.nullable(),business_payment_volume:d.nullable(),business_when_service_received:p.nullable(),business_recurring_payments:m.nullable(),business_recurring_payments_percentage:b,business_seasonal:l.nullable(),business_other_payment_details:c.nullable()});return s?a:n};export{y as a,v as b}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-D6FDxSyt.js";import{O as r}from"./p-BrLVc_85.js";const t=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:r},s("span",{class:"visually-hidden"},"Loading...")));export{t as S}
@@ -0,0 +1 @@
1
+ var e;!function(e){e.row="tableRow",e.next="nextPage",e.previous="previousPage"}(e||(e={}));export{e as T}
@@ -0,0 +1 @@
1
+ import{f as t}from"./p-CpTwq2jw.js";import{a as s}from"./p-BH0Xfn-F.js";var i,e,h,n,r,a,u;!function(t){t.automatic="automatic",t.manual="manual"}(i||(i={})),function(t){t.card="card",t.bankAccount="bankAccount",t.sezzle="sezzle",t.saved="saved"}(e||(e={})),function(t){t.card="Card",t.bankAccount="ACH",t.unknown="Unknown"}(h||(h={})),function(t){t.pending="pending",t.automatic="automatic",t.authorized="authorized",t.succeeded="succeeded",t.failed="failed",t.canceled="canceled",t.disputed="disputed",t.fully_refunded="fully_refunded",t.partially_refunded="partially_refunded"}(n||(n={})),function(t){t.usd="usd",t.cad="cad"}(r||(r={}));class o{constructor(t){this.card=t.card?new d(t.card):void 0,this.bank_account=t.bank_account?new c(t.bank_account):void 0}get payersName(){return this.card?this.card.name:this.bank_account?this.bank_account.name:null}get lastFourDigits(){return this.card?`**** ${this.card.acct_last_four}`:this.bank_account?`**** ${this.bank_account.acct_last_four}`:null}}class c{constructor(t){this.id=t.id,this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class d{constructor(t){this.id=t.id||"",this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class l{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.amount_disputed=t.amount_disputed,this.amount_refundable=t.amount_refundable,this.amount_refunded=t.amount_refunded,this.balance=t.balance,this.captured=t.captured,this.capture_strategy=t.capture_strategy,this.description=t.description,this.disputed=t.disputed,this.disputes=t.disputes,this.error_code=t.error_code,this.error_description=t.error_description,this.expedited=t.expedited,this.fee_amount=t.fee_amount,this.is_test=t.is_test,this.metadata=t.metadata,this.payment_method=new o(t.payment_method),this.payment_intent_id=t.payment_intent_id,this.refunded=t.refunded,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}get disputedStatus(){const t=this.disputes.some((t=>t.status===s.lost));return this.disputed?t?s.lost:"open":null}get payment_type(){return this.payment_method?this.payment_method.card?h.card:h.bankAccount:h.unknown}get payers_name(){return this.payment_method.payersName}get last_four_digits(){return this.payment_method.lastFourDigits}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.voidedCheck="voided_check",t.balanceSheet="balance_sheet",t.bankStatement="bank_statement",t.governmentId="government_id",t.profitAndLossStatement="profit_and_loss_statement",t.taxReturn="tax_return",t.other="other"}(a||(a={})),function(t){t.pending="pending",t.uploaded="uploaded",t.canceled="canceled",t.needed="needed"}(u||(u={}));class f{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class p{constructor(t,s){this.file=t.file,this.fileString=this.getFileString(),this.document_type=t.document_type,this.presigned_url=null,this.record_data={business_id:s,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}getFileString(){let t=new FileReader;return t.onload=t=>{this.fileString=t.target.result},t.readAsDataURL(this.file),this.fileString}setPresignedUrl(t){this.presigned_url=t}}export{a as E,l as P,f as a,p as b,e as c}
@@ -1 +1 @@
1
- import{h as t}from"./p-D6FDxSyt.js";import{B as e,a}from"./p-GTA6l_sT.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
+ import{h as t}from"./p-D6FDxSyt.js";import{B as e,a}from"./p-D5XSsLKb.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}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-D6FDxSyt.js";import{D as a}from"./p-BrLVc_85.js";import{c as t}from"./p-Cd06j2SL.js";const r=t=>s("h2",{class:`header-2 ${null==t?void 0:t.class}`,part:a},t.text),o=t({}),{state:e,on:p}=o,i=t({}),{state:l}=i,m=()=>{let s=!0;return Object.keys(e).forEach((a=>{null===e[a]?(l[a]=!0,s=!1):l[a]=!1})),{isValid:s}};export{r as H,e as a,l as b,p as i,m as v}
@@ -1 +1 @@
1
- import{c as t}from"./p-Cd06j2SL.js";const s={apiOrigin:"https://wc-proxy.justifi.ai",iFrameOrigin:"https://components.justifi.ai",accountId:""},i=t((()=>s)),{state:e}=i;let o;const a=new Promise((t=>{o=t})),c=t=>{Object.assign(e,t),o()},n=(t=200)=>new Promise((s=>{const i=setTimeout((()=>{s()}),t);a.then((()=>{clearTimeout(i),s()}))}));export{e as c,c as s,n as w}
1
+ import{c as t}from"./p-Cd06j2SL.js";const s={apiOrigin:"https://wc-proxy.justifi.ai",iframeOrigin:"https://components.justifi.ai",accountId:""},i=t((()=>s)),{state:e}=i;let o;const a=new Promise((t=>{o=t})),c=t=>{Object.assign(e,t),o()},n=(t=200)=>new Promise((s=>{const i=setTimeout((()=>{s()}),t);a.then((()=>{clearTimeout(i),s()}))}));export{e as c,c as s,n as w}
@@ -1 +1 @@
1
- import{h as a}from"./p-D6FDxSyt.js";import{H as r,I as s,J as g,K as e,L as n,M as t,N as d,O as i,P as b}from"./p-CjO1GttX.js";var c;!function(a){a.PRIMARY="primary",a.SECONDARY="secondary",a.SUCCESS="success",a.DANGER="danger",a.WARNING="warning",a.INFO="info",a.LIGHT="light",a.DARK="dark"}(c||(c={}));const o=c=>{const{variant:o,text:p,title:f}=c,l={default:"badge",primary:"badge bg-primary",secondary:"badge bg-secondary",success:"badge bg-success",danger:"badge bg-danger",warning:"badge bg-warning",info:"badge bg-info",light:"badge bg-light",dark:"badge bg-dark"},y={default:b,primary:i,secondary:d,success:t,danger:n,warning:e,info:g,light:s,dark:r};return a("span",{class:l[o]||l.default,part:y[o]||y.default,title:f},p)};export{c as B,o as a}
1
+ import{h as a}from"./p-D6FDxSyt.js";import{F as r,G as s,H as g,I as e,J as n,K as d,L as i,M as t,N as b}from"./p-BrLVc_85.js";var c;!function(a){a.PRIMARY="primary",a.SECONDARY="secondary",a.SUCCESS="success",a.DANGER="danger",a.WARNING="warning",a.INFO="info",a.LIGHT="light",a.DARK="dark"}(c||(c={}));const o=c=>{const{variant:o,text:p,title:f}=c,l={default:"badge",primary:"badge bg-primary",secondary:"badge bg-secondary",success:"badge bg-success",danger:"badge bg-danger",warning:"badge bg-warning",info:"badge bg-info",light:"badge bg-light",dark:"badge bg-dark"},y={default:b,primary:t,secondary:i,success:d,danger:n,warning:e,info:g,light:s,dark:r};return a("span",{class:l[o]||l.default,part:y[o]||y.default,title:f},p)};export{c as B,o as a}
@@ -0,0 +1 @@
1
+ import{a as e,b as a}from"./p-DVnVdicA.js";import{S as t}from"./p-BX8GieXu.js";import{b as s,a as r,r as n,s as c,c as i}from"./p-IA90llLO.js";import{E as l}from"./p-CffckWWF.js";const o=e=>""===e?null:e,u=/^\d+$/,m=/P\.?\s?O\.?\s?Box|Postal\sBox/i,d=e().email("Enter valid email").transform(o),b=e().matches(/^\d{10}$/,"Enter valid phone number").transform(o),h=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(o),p=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(o),v=e().matches(/^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,"Enter valid website url").transform(o),E=e().oneOf(s.map((e=>e.value)),"Select business classification").transform(o),S=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").transform(o),N=e().matches(u,"Enter valid tax id, SSN, or EIN").test("not-repeat","Enter valid tax id, SSN, or EIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid tax id, SSN, or EIN",(e=>"123456789"!==e)).transform(o),f=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(o),g=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(o),w=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").transform(o),y=a=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${a} must be at least 18 years old`,(e=>{const a=new Date(e),t=new Date;return t.setFullYear(t.getFullYear()-18),a<=t})).transform(o),A=e().matches(/^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/,"Enter valid SSN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SSN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SSN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SSN",(e=>"123456789"!==e)).transform(o),x=e().min(5,"Address must be at least 5 characters").max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!m.test(e))).transform(o),$=e().max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!m.test(e))).transform(o),D=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").transform(o),B=e().oneOf(t.map((e=>e.value)),"Select state").transform(o),I=e().matches(/^[0-9]{5}$/,"Enter valid postal code").transform(o),P=e().matches(u,"Enter valid revenue").transform(o),j=e().matches(u,"Enter valid payment volume").transform(o),_=e().oneOf(r.map((e=>e.value)),"Select when service is received").transform(o),z=e().oneOf(n.map((e=>e.value)),"Select recurring payments").transform(o),C=e().when("business_recurring_payments",{is:e=>"Yes"===e,then:e=>e.required("Enter recurring payments percentage"),otherwise:e=>e.nullable()}).transform(o),O=e().oneOf(c.map((e=>e.value)),"Select seasonal business").transform(o),q=e().transform(o),k=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(o),F=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(o),T=e().oneOf(i.map((e=>e.value)),"Select account type").transform(o),V=e().min(4,"Account number must be at least 4 digits").max(17,"Account number must be less than 17 digits").matches(u,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(o),W=e().length(9,"Routing number must be 9 digits").matches(u,"Enter valid routing number").test("not-repeat","Enter valid routing number",(e=>!/^(\d)\1+$/.test(e))).test("valid","Enter valid routing number",(e=>(e=>{if(!e)return!1;const a=Array.from(String(e),Number);return 9===a.length&&0==(3*(a[0]+a[3]+a[6])+7*(a[1]+a[4]+a[7])+(a[2]+a[5]+a[8]))%10})(e))).transform(o),X=a(),Z=(e,a)=>e.some((e=>e.document_type===l.voidedCheck))||a?X.nullable():X.required("Please select one or more files"),G=(e,a)=>e.some((e=>e.document_type===l.bankStatement))||a?X.nullable():X.required("Please select one or more files");export{Z as A,W as B,V as C,T as D,F as E,k as F,p as a,E as b,h as c,f as d,d as e,z as f,_ as g,j as h,S as i,P as j,I as k,B as l,D as m,$ as n,q as o,b as p,x as q,C as r,O as s,N as t,A as u,y as v,v as w,w as x,g as y,G as z}
@@ -0,0 +1 @@
1
+ var e={name:"@justifi/webcomponents",version:"5.7.1"};export{e as p}
@@ -0,0 +1 @@
1
+ import{A as t}from"./p-OSmuQKbK.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";const a=t();class n{async fetchPayouts(t,n,o){return a.get({authToken:n,endpoint:`account/${t}/payouts`,params:o})}async fetchPayout(t,n){return a.get({authToken:n,endpoint:`payouts/${t}`})}async fetchCSV(t,n){return a.get({authToken:n,endpoint:`reports/payouts/${t}`})}async fetchPayoutTransactions(t,n,o){return a.get({authToken:n,endpoint:"balance_transactions",params:o,headers:{"sub-account":t}})}}export{n as P}
@@ -0,0 +1 @@
1
+ import{h as r}from"./p-D6FDxSyt.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"./p-D4Mv5jCp.js";import"./p-CpTwq2jw.js";import{C as r}from"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import{P as o}from"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import{g as s,a as p}from"./p-C5RuuShs.js";const i=({id:i,authToken:t,service:e})=>async({onSuccess:a,onError:m,final:n})=>{var j;try{const n=await e.fetchPayment(i,t);if(n.error){m({error:p(n.error),code:s(null===(j=n.error)||void 0===j?void 0:j.code),severity:r.ERROR})}else a({payment:new o(n.data)})}catch(o){const i=s(null==o?void 0:o.code);m({error:p(o),code:i,severity:r.ERROR})}finally{n()}};export{i as m}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-D6FDxSyt.js";import{a}from"./p-CpTwq2jw.js";import{M as e}from"./p-CgxzrbM_.js";import{P as o,Q as s}from"./p-BrLVc_85.js";const p="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",r={created_at:()=>t("th",{part:o,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:o,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:o,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:o,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:o,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:o,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:o,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:o,scope:"col",title:"Export CSV"})},c=o=>({created_at:(e,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0}))),sub_account_name:(a,e)=>t("td",{part:s(e)},a.sub_account_name),payments_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.payments_total)),refunds_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.refunds_total)),fees_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.fees_total)),other_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.other_total)),amount:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.amount)),status:(a,o)=>t("td",{part:s(o)},e(a.status)),csv:(a,e)=>t("td",{part:s(e)},t("a",{href:"#",onClick:t=>{t.preventDefault(),o(a.id)}},"CSV"))});export{c as a,p as d,r as p}
@@ -0,0 +1 @@
1
+ import{A as e}from"./p-OSmuQKbK.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";const s=e();class t{async fetchDispute(e,t){return s.get({endpoint:`disputes/${e}`,authToken:t})}async updateDisputeResponse(e,t,p){return s.patch({endpoint:`disputes/${e}/response`,body:p,authToken:t})}async submitDisputeResponse(e,t,p){return s.post({endpoint:`disputes/${e}/response`,body:p,authToken:t})}async createDisputeEvidence(e,t,p){return s.put({endpoint:`disputes/${e}/evidence`,body:p,authToken:t})}}export{t as D}
@@ -1 +1 @@
1
- import{w as n,c as a}from"./p-CN_YheWL.js";import{g as t}from"./p-CpTwq2jw.js";const o=()=>{async function o(o){const{authToken:e,endpoint:s,method:r,params:i,body:p,signal:c,headers:d}=o;await n();const h=`${a.apiOrigin}/v1/${s}`,u=i?`${h}?${new URLSearchParams(i)}`:h,m=await async function(n){return n?{Authorization:`Bearer ${n}`,"Idempotency-Key":t(),"Content-Type":"application/json"}:{"Content-Type":"application/json"}}(e),y=Object.assign(Object.assign({},m),d),T=await fetch(u,{method:r,headers:y,body:p,signal:c});if(T)return 204===T.status?{}:T.json();!function(n){console.error(`Error fetching from ${n}`)}(u)}return{get:async function(n){const{authToken:a,endpoint:t,params:e,signal:s,headers:r}=n;return o({authToken:a,endpoint:t,method:"GET",params:e,signal:s,headers:r})},post:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r,headers:i}=n;return o({authToken:a,endpoint:t,method:"POST",params:s,body:JSON.stringify(e),signal:r,headers:i})},put:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r}=n;return o({authToken:a,endpoint:t,method:"PUT",params:s,body:JSON.stringify(e),signal:r})},patch:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r}=n;return o({authToken:a,endpoint:t,method:"PATCH",params:s,body:JSON.stringify(e),signal:r})},destroy:async function(n){const{authToken:a,endpoint:t,params:e,signal:s}=n;return o({authToken:a,endpoint:t,method:"DELETE",params:e,signal:s})}}};export{o as A}
1
+ import{w as n,c as a}from"./p-D4Mv5jCp.js";import{g as t}from"./p-CpTwq2jw.js";const o=()=>{async function o(o){const{authToken:e,endpoint:s,method:r,params:i,body:p,signal:c,headers:d}=o;await n();const h=`${a.apiOrigin}/v1/${s}`,u=i?`${h}?${new URLSearchParams(i)}`:h,m=await async function(n){return n?{Authorization:`Bearer ${n}`,"Idempotency-Key":t(),"Content-Type":"application/json"}:{"Content-Type":"application/json"}}(e),y=Object.assign(Object.assign({},m),d),T=await fetch(u,{method:r,headers:y,body:p,signal:c});if(T)return 204===T.status?{}:T.json();!function(n){console.error(`Error fetching from ${n}`)}(u)}return{get:async function(n){const{authToken:a,endpoint:t,params:e,signal:s,headers:r}=n;return o({authToken:a,endpoint:t,method:"GET",params:e,signal:s,headers:r})},post:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r,headers:i}=n;return o({authToken:a,endpoint:t,method:"POST",params:s,body:JSON.stringify(e),signal:r,headers:i})},put:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r}=n;return o({authToken:a,endpoint:t,method:"PUT",params:s,body:JSON.stringify(e),signal:r})},patch:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r}=n;return o({authToken:a,endpoint:t,method:"PATCH",params:s,body:JSON.stringify(e),signal:r})},destroy:async function(n){const{authToken:a,endpoint:t,params:e,signal:s}=n;return o({authToken:a,endpoint:t,method:"DELETE",params:e,signal:s})}}};export{o as A}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-D6FDxSyt.js";import{E as e}from"./p-BrLVc_85.js";const s=({component:s="div",height:r,width:o,className:i,styles:a={}})=>{const c=Object.assign(Object.assign({},a),{width:o,height:r});return t(s,{class:`${i} skeleton`,style:c,part:e,"aria-hidden":"true"})};export{s as S}
@@ -0,0 +1 @@
1
+ import{A as t}from"./p-OSmuQKbK.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";const n=t();class s{async fetchBusiness(t,s){return n.get({endpoint:`entities/business/${t}`,authToken:s})}async patchBusiness(t,s,e){return n.patch({endpoint:`entities/business/${s}`,body:e,authToken:t})}}class e{async fetchIdentity(t,s){return n.get({endpoint:`entities/identity/${t}`,authToken:s})}async patchIdentity(t,s,e){return n.patch({endpoint:`entities/identity/${s}`,body:e,authToken:t})}async postIdentity(t,s){return n.post({endpoint:"entities/identity",body:s,authToken:t})}}class i{async postBankAccount(t,s){return n.post({endpoint:"entities/bank_accounts",body:s,authToken:t})}}class o{async postDocumentRecord(t,s){return n.post({endpoint:"entities/document",body:s,authToken:t})}}export{s as B,o as D,e as I,i as a}
@@ -0,0 +1 @@
1
+ import{r as s,c as i,h as t,H as r}from"./p-D6FDxSyt.js";import{E as p}from"./p-l3o3Ndc0.js";import{B as o}from"./p-ZE1NEnP3.js";import{m as e}from"./p-D5Sh88BE.js";import{C as m,a as j}from"./p-SdntD1xf.js";import{c as n,J as a}from"./p-BiPRf6d2.js";import"./p-BrLVc_85.js";import"./p-OSmuQKbK.js";import"./p-D4Mv5jCp.js";import"./p-Cd06j2SL.js";import"./p-CpTwq2jw.js";import"./p-BFTU3MAI.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BH0Xfn-F.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-C5RuuShs.js";import"./p-DPiTQ9dr.js";const h=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event")}componentWillLoad(){n(),this.analytics=new a(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:j.MISSING_PROPS,message:this.errorMessage,severity:m.ERROR});this.getBusiness=e({id:this.businessId,authToken:this.authToken,service:new o})}render(){return t(r,null,this.errorMessage?p(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{h as justifi_business_details}
@@ -0,0 +1 @@
1
+ import{r as s,c as i,h as t}from"./p-D6FDxSyt.js";import{c as o,J as r}from"./p-BiPRf6d2.js";import{C as e,a as p}from"./p-SdntD1xf.js";import{m as n,a}from"./p-BTS3E50C.js";import{B as h}from"./p-ZE1NEnP3.js";import{A as m}from"./p-OSmuQKbK.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import"./p-DPiTQ9dr.js";import"./p-C5RuuShs.js";import"./p-D4Mv5jCp.js";import"./p-Cd06j2SL.js";import"./p-CpTwq2jw.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const u=m();class d{async postProvisioning(s,i,t){return u.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const j=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new r(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:p.MISSING_PROPS,severity:e.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"11871305b4b4974787a9278195ea0b314be250b0",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{j as justifi_payment_provisioning}