@justifi/webcomponents 4.23.0 → 5.0.0-rc-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 (957) hide show
  1. package/dist/cjs/{Business-aa799fec.js → Business-cfd6a2dd.js} +5 -0
  2. package/dist/cjs/Dispute-eb6bad54.js +59 -0
  3. package/dist/cjs/{Payment-87b47c43.js → Payment-d074b246.js} +7 -9
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +9 -28
  5. package/dist/cjs/bank-account-form_9.cjs.entry.js +493 -0
  6. package/dist/cjs/{business-additional-questions-schema-0cddd038.js → business-additional-questions-schema-caa23e95.js} +2 -2
  7. package/dist/cjs/business-details-core.cjs.entry.js +26 -4
  8. package/dist/cjs/{business-form-options-5db0bd5e.js → business-form-options-4bcb8943.js} +1 -1
  9. package/dist/cjs/{business-identity-schema-f5a3b008.js → business-identity-schema-0c537067.js} +2 -2
  10. package/dist/cjs/button-94bdc1f0.js +20 -0
  11. package/dist/cjs/{Analytics-25d3d168.js → check-pkg-version-23c816dd.js} +22 -2
  12. package/dist/cjs/{checkout.service-aae1996c.js → checkout.service-9891a349.js} +1 -1
  13. package/dist/cjs/checkouts-list-core.cjs.entry.js +37 -30
  14. package/dist/cjs/checkouts-list-params-state-418c75a3.js +14 -0
  15. package/dist/cjs/checkouts-table-17648e93.js +48 -0
  16. package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +3 -107
  17. package/dist/cjs/dispute.service-2064ae0f.js +29 -0
  18. package/dist/cjs/event-types-180a85a9.js +23 -0
  19. package/dist/cjs/{table-ec9ce9f7.js → event-types-4df47396.js} +16 -8
  20. package/dist/cjs/event-types-8edaabbb.js +22 -0
  21. package/dist/cjs/form-alert_5.cjs.entry.js +9 -8
  22. package/dist/cjs/form-control-checkbox.cjs.entry.js +57 -0
  23. package/dist/cjs/form-control-date.cjs.entry.js +21 -2
  24. package/dist/cjs/form-control-error-text-a2fd5fc1.js +14 -0
  25. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +90 -0
  26. package/dist/cjs/form-control-file.cjs.entry.js +21 -2
  27. package/dist/cjs/form-control-help-text-b6f7ae6e.js +14 -0
  28. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  29. package/dist/cjs/form-control-monetary.cjs.entry.js +22 -2
  30. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +21 -3
  31. package/dist/cjs/form-control-number.cjs.entry.js +21 -2
  32. package/dist/cjs/form-control-radio.cjs.entry.js +25 -17
  33. package/dist/cjs/form-control-select_3.cjs.entry.js +145 -0
  34. package/dist/cjs/{get-payout-csv-1eed32ee.js → get-payout-csv-4e60474e.js} +1 -1
  35. package/dist/cjs/{get-subaccounts-1d2fb201.js → get-subaccounts-2ea9676c.js} +1 -1
  36. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +6 -8
  37. package/dist/cjs/header-1-cb7af794.js +10 -0
  38. package/dist/cjs/header-3-75e50713.js +10 -0
  39. package/dist/cjs/iframe-input-styles-state-d0de0b24.js +26 -0
  40. package/dist/cjs/{justifi-billing-form_2.cjs.entry.js → iframe-input.cjs.entry.js} +73 -180
  41. package/dist/cjs/{index-fb499e95.js → index-5b9a3b5f.js} +1 -93
  42. package/dist/cjs/{insurance-state-80e24caf.js → index-d2d0b181.js} +2 -24
  43. package/dist/cjs/{index.esm-97cf6825.js → index.esm-a397536a.js} +1 -1
  44. package/dist/cjs/insurance-state-001cfe12.js +34 -0
  45. package/dist/cjs/justifi-additional-questions-form-step-core_8.cjs.entry.js +591 -0
  46. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +41 -41
  47. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +413 -0
  48. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -7
  49. package/dist/cjs/justifi-business-form.cjs.entry.js +24 -31
  50. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +3 -2
  51. package/dist/cjs/justifi-checkout-core.cjs.entry.js +15 -19
  52. package/dist/cjs/justifi-checkout.cjs.entry.js +9 -9
  53. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +38 -0
  54. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
  55. package/dist/cjs/justifi-details.cjs.entry.js +4 -4
  56. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +50 -11
  57. package/dist/cjs/justifi-dispute-management.cjs.entry.js +87 -2
  58. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +378 -0
  59. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
  60. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +16 -26
  61. package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -8
  62. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +13 -8
  63. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
  64. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +43 -0
  65. package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -12
  66. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -8
  67. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +27 -0
  68. package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -13
  69. package/dist/cjs/justifi-refund-form.cjs.entry.js +6 -9
  70. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +17 -18
  71. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
  72. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +35 -0
  73. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
  74. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +10 -14
  75. package/dist/cjs/loader.cjs.js +2 -2
  76. package/dist/cjs/{package-bc606eae.js → package-1a3b3cdf.js} +1 -1
  77. package/dist/cjs/pagination-menu.cjs.entry.js +26 -0
  78. package/dist/cjs/parts-811ddb9c.js +119 -0
  79. package/dist/cjs/payment-details-core.cjs.entry.js +13 -11
  80. package/dist/cjs/{payment.service-86871f43.js → payment.service-0a8c3a01.js} +1 -1
  81. package/dist/cjs/payments-list-core.cjs.entry.js +34 -27
  82. package/dist/cjs/payments-list-params-state-0ff968a7.js +14 -0
  83. package/dist/cjs/payments-table-cf5d1c33.js +32 -0
  84. package/dist/cjs/payout-details-core.cjs.entry.js +8 -5
  85. package/dist/cjs/payouts-list-core.cjs.entry.js +37 -30
  86. package/dist/cjs/payouts-list-params-state-16348184.js +14 -0
  87. package/dist/cjs/payouts-table-58881d95.js +38 -0
  88. package/dist/cjs/{schema-validations-e8a17401.js → schema-validations-0be8068a.js} +3 -3
  89. package/dist/cjs/skeleton-5ca03840.js +13 -0
  90. package/dist/cjs/spinner-c11fcb44.js +12 -0
  91. package/dist/cjs/styled-host-94309bab.js +14 -0
  92. package/dist/cjs/table-filters-menu.cjs.entry.js +45 -0
  93. package/dist/cjs/terminals-list-core.cjs.entry.js +36 -29
  94. package/dist/cjs/terminals-list-params-state-95ff6a64.js +14 -0
  95. package/dist/cjs/terminals-table-91985249.js +33 -0
  96. package/dist/cjs/{utils-e88fbc94.js → utils-a21b7453.js} +31 -28
  97. package/dist/cjs/utils-fc17191b.js +29 -0
  98. package/dist/cjs/webcomponents.cjs.js +2 -2
  99. package/dist/collection/api/Analytics.js +1 -1
  100. package/dist/collection/api/Business.js +5 -0
  101. package/dist/collection/api/Dispute.js +55 -0
  102. package/dist/collection/api/DisputeEvidenceDocument.js +44 -0
  103. package/dist/collection/api/Payment.js +6 -9
  104. package/dist/collection/api/services/dispute.service.js +20 -0
  105. package/dist/collection/collection-manifest.json +16 -17
  106. package/dist/collection/components/billing-form/billing-form.js +2 -19
  107. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -19
  108. package/dist/collection/components/business-details/business-details-core.js +8 -7
  109. package/dist/collection/components/business-details/business-details-loading.js +6 -0
  110. package/dist/collection/components/business-details/business-details.js +5 -13
  111. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +1 -11
  112. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -11
  113. package/dist/collection/components/business-details/owner-details/owner-details.js +1 -11
  114. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -19
  115. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -6
  116. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -4
  117. package/dist/collection/components/business-forms/business-form/business-form.js +18 -59
  118. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -1
  119. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +2 -6
  120. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  121. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +22 -52
  122. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  123. package/dist/collection/components/business-forms/owner-form/owner-form.js +6 -6
  124. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +18 -40
  125. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +6 -11
  126. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +19 -44
  127. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +18 -40
  128. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +6 -11
  129. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +26 -47
  130. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +6 -11
  131. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -1
  132. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +17 -39
  133. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +6 -6
  134. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +21 -42
  135. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +1 -1
  136. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +4 -3
  137. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +18 -39
  138. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +6 -11
  139. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +32 -23
  140. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
  141. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -20
  142. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +7 -11
  143. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +30 -31
  144. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +2 -11
  145. package/dist/collection/components/business-forms/schemas/schema-validations.js +1 -1
  146. package/dist/collection/components/business-forms/utils/event-types.js +21 -0
  147. package/dist/collection/components/business-forms/utils/index.js +4 -0
  148. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +65 -0
  149. package/dist/collection/components/checkout/card-form/card-form.js +67 -0
  150. package/dist/collection/components/checkout/checkout-core.js +19 -28
  151. package/dist/collection/components/checkout/checkout.js +7 -7
  152. package/dist/collection/components/checkout/message-event-types.js +4 -0
  153. package/dist/collection/components/checkout/new-payment-method.js +23 -15
  154. package/dist/collection/components/checkout/payment-method-options.js +1 -11
  155. package/dist/collection/components/checkout/save-new-payment-method.js +3 -4
  156. package/dist/collection/components/checkout/saved-payment-method.js +6 -5
  157. package/dist/collection/components/checkout/sezzle-payment-method.js +6 -4
  158. package/dist/collection/components/checkouts-list/checkouts-list-core.js +43 -36
  159. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +8 -61
  160. package/dist/collection/components/checkouts-list/checkouts-list-params-state.js +8 -0
  161. package/dist/collection/components/checkouts-list/checkouts-list.js +7 -29
  162. package/dist/collection/components/checkouts-list/checkouts-table.js +13 -12
  163. package/dist/collection/components/dispute-management/dispute-actions.js +31 -0
  164. package/dist/collection/components/dispute-management/dispute-management-core.js +131 -17
  165. package/dist/collection/components/dispute-management/dispute-management.js +143 -2
  166. package/dist/collection/components/dispute-management/dispute-notification.js +135 -15
  167. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +110 -0
  168. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +106 -0
  169. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +106 -0
  170. package/dist/collection/components/dispute-management/dispute-response/dispute-response-actions.js +117 -0
  171. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +362 -0
  172. package/dist/collection/components/dispute-management/dispute-response/dispute-response-form-types.js +12 -0
  173. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +186 -0
  174. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +106 -0
  175. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +106 -0
  176. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +106 -0
  177. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +106 -0
  178. package/dist/collection/components/dispute-management/dispute-response/schemas/additional-statement-schema.js +5 -0
  179. package/dist/collection/components/dispute-management/dispute-response/schemas/cancellation-policy-schema.js +6 -0
  180. package/dist/collection/components/dispute-management/dispute-response/schemas/customer-details-schema.js +7 -0
  181. package/dist/collection/components/dispute-management/dispute-response/schemas/dispute-reason-schema.js +5 -0
  182. package/dist/collection/components/dispute-management/dispute-response/schemas/duplicate-charge-schema.js +6 -0
  183. package/dist/collection/components/dispute-management/dispute-response/schemas/electronic-evidence-schema.js +5 -0
  184. package/dist/collection/components/dispute-management/dispute-response/schemas/product-or-service-schema.js +6 -0
  185. package/dist/collection/components/dispute-management/dispute-response/schemas/refund-policy-schema.js +6 -0
  186. package/dist/collection/components/dispute-management/dispute-response/schemas/shipping-details-schema.js +8 -0
  187. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +106 -0
  188. package/dist/collection/components/dispute-management/event-types.js +20 -0
  189. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +8 -17
  190. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +5 -5
  191. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +19 -22
  192. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -6
  193. package/dist/collection/components/pagination-menu/pagination-menu.js +5 -4
  194. package/dist/collection/components/payment-details/payment-details-core.js +15 -13
  195. package/dist/collection/components/payment-details/payment-details.js +5 -28
  196. package/dist/collection/components/payments-list/payments-list-core.js +40 -33
  197. package/dist/collection/components/payments-list/payments-list-filters.js +8 -61
  198. package/dist/collection/components/payments-list/payments-list-params-state.js +8 -0
  199. package/dist/collection/components/payments-list/payments-list.js +7 -29
  200. package/dist/collection/components/payments-list/payments-table.js +15 -14
  201. package/dist/collection/components/payout-details/payout-details-core.js +10 -8
  202. package/dist/collection/components/payout-details/payout-details.js +5 -5
  203. package/dist/collection/components/payouts-list/payouts-list-core.js +43 -36
  204. package/dist/collection/components/payouts-list/payouts-list-filters.js +8 -60
  205. package/dist/collection/components/payouts-list/payouts-list-params-state.js +8 -0
  206. package/dist/collection/components/payouts-list/payouts-list.js +6 -28
  207. package/dist/collection/components/payouts-list/payouts-table.js +19 -18
  208. package/dist/collection/components/refund-form/refund-form.js +1 -11
  209. package/dist/collection/components/refund-form/refund-form.stories.js +1 -60
  210. package/dist/collection/components/terminals-list/terminals-list-core.js +43 -36
  211. package/dist/collection/components/terminals-list/terminals-list-filters.js +8 -61
  212. package/dist/collection/components/terminals-list/terminals-list-params-state.js +8 -0
  213. package/dist/collection/components/terminals-list/terminals-list.js +7 -29
  214. package/dist/collection/components/terminals-list/terminals-table.js +9 -8
  215. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +20 -24
  216. package/dist/collection/styles/parts.js +74 -0
  217. package/dist/collection/ui-components/button.js +6 -12
  218. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  219. package/dist/collection/ui-components/details/details.js +2 -4
  220. package/dist/collection/ui-components/details/utils.js +7 -10
  221. package/dist/collection/ui-components/filters/table-filters-menu.js +5 -1
  222. package/dist/collection/ui-components/form/form-control-checkbox.js +31 -16
  223. package/dist/collection/ui-components/form/form-control-date.js +25 -1
  224. package/dist/collection/ui-components/form/form-control-file-v2.js +177 -0
  225. package/dist/collection/ui-components/form/form-control-file.js +22 -2
  226. package/dist/collection/ui-components/form/form-control-monetary.js +25 -1
  227. package/dist/collection/ui-components/form/form-control-number-masked.js +24 -1
  228. package/dist/collection/ui-components/form/form-control-number.js +24 -1
  229. package/dist/collection/ui-components/form/form-control-radio.js +50 -40
  230. package/dist/collection/ui-components/form/form-control-select.js +25 -1
  231. package/dist/collection/ui-components/form/form-control-text.js +24 -1
  232. package/dist/collection/ui-components/form/form-control-textarea.js +27 -2
  233. package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +2 -1
  234. package/dist/collection/ui-components/form/form-helpers/form-control-error-text.js +9 -0
  235. package/dist/collection/ui-components/form/form-helpers/form-control-help-text.js +9 -0
  236. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +2 -1
  237. package/dist/collection/ui-components/form/form.js +1 -1
  238. package/dist/collection/ui-components/form/hidden-input.js +85 -0
  239. package/dist/collection/ui-components/form/iframe-input-styles-state.js +21 -0
  240. package/dist/collection/ui-components/form/iframe-input.js +215 -0
  241. package/dist/collection/ui-components/headers/header-1.js +5 -0
  242. package/dist/collection/ui-components/headers/header-2.js +5 -0
  243. package/dist/collection/ui-components/headers/header-3.js +5 -0
  244. package/dist/collection/ui-components/index.js +6 -0
  245. package/dist/collection/ui-components/skeleton.js +4 -34
  246. package/dist/collection/ui-components/spinner.js +6 -0
  247. package/dist/collection/ui-components/table/event-types.js +6 -0
  248. package/dist/collection/ui-components/table-empty-state.js +2 -1
  249. package/dist/collection/ui-components/table-error-state.js +2 -1
  250. package/dist/collection/ui-components/table-loading-state.js +3 -1
  251. package/dist/collection/utils/table.js +2 -2
  252. package/dist/collection/utils/utils.js +27 -26
  253. package/dist/docs.json +3573 -4721
  254. package/dist/esm/{Business-b73d5055.js → Business-29c69f22.js} +6 -1
  255. package/dist/esm/Dispute-5fd28ec9.js +57 -0
  256. package/dist/esm/{Payment-2a868d0c.js → Payment-4f72d277.js} +7 -9
  257. package/dist/esm/additional-questions-details_5.entry.js +9 -28
  258. package/dist/esm/bank-account-form_9.entry.js +481 -0
  259. package/dist/esm/{business-additional-questions-schema-af4aa8ae.js → business-additional-questions-schema-48e93928.js} +2 -2
  260. package/dist/esm/business-details-core.entry.js +26 -4
  261. package/dist/esm/{business-form-options-d790973e.js → business-form-options-018f62a5.js} +1 -1
  262. package/dist/esm/{business-identity-schema-1a5cb306.js → business-identity-schema-75126188.js} +2 -2
  263. package/dist/esm/button-1886a33d.js +18 -0
  264. package/dist/esm/{Analytics-810c3026.js → check-pkg-version-c2078b31.js} +22 -3
  265. package/dist/esm/{checkout.service-c1e44e0c.js → checkout.service-925ded8e.js} +1 -1
  266. package/dist/esm/checkouts-list-core.entry.js +36 -29
  267. package/dist/esm/checkouts-list-params-state-1d968971.js +10 -0
  268. package/dist/esm/checkouts-table-8b116232.js +44 -0
  269. package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -105
  270. package/dist/esm/dispute.service-588dd905.js +27 -0
  271. package/dist/esm/{table-44e3d1e7.js → event-types-01dcdcbd.js} +17 -9
  272. package/dist/esm/event-types-07cdb9a0.js +22 -0
  273. package/dist/esm/event-types-5c87de02.js +23 -0
  274. package/dist/esm/form-alert_5.entry.js +9 -8
  275. package/dist/esm/form-control-checkbox.entry.js +53 -0
  276. package/dist/esm/form-control-date.entry.js +21 -2
  277. package/dist/esm/form-control-error-text-3b2553b5.js +12 -0
  278. package/dist/esm/form-control-file-v2_2.entry.js +85 -0
  279. package/dist/esm/form-control-file.entry.js +21 -2
  280. package/dist/esm/form-control-help-text-a2fc3617.js +12 -0
  281. package/dist/esm/form-control-help-text.entry.js +1 -1
  282. package/dist/esm/form-control-monetary.entry.js +22 -2
  283. package/dist/esm/form-control-number-masked_2.entry.js +21 -3
  284. package/dist/esm/form-control-number.entry.js +21 -2
  285. package/dist/esm/form-control-radio.entry.js +25 -17
  286. package/dist/esm/form-control-select_3.entry.js +139 -0
  287. package/dist/esm/{get-payout-csv-3b83b088.js → get-payout-csv-b95a5d54.js} +1 -1
  288. package/dist/esm/{get-subaccounts-dd20cfa4.js → get-subaccounts-b9a00d48.js} +1 -1
  289. package/dist/esm/gross-payment-chart-core.entry.js +6 -8
  290. package/dist/esm/header-1-c6a00a22.js +8 -0
  291. package/dist/esm/header-3-a1c6d475.js +8 -0
  292. package/dist/esm/iframe-input-styles-state-ff730fe5.js +23 -0
  293. package/dist/esm/{justifi-billing-form_2.entry.js → iframe-input.entry.js} +73 -179
  294. package/dist/esm/{index-57431c24.js → index-29fcfdf5.js} +1 -93
  295. package/dist/esm/{insurance-state-8ce01e59.js → index-a47fdc7f.js} +2 -21
  296. package/dist/esm/{index.esm-ed37201b.js → index.esm-0b6849c2.js} +1 -1
  297. package/dist/esm/insurance-state-8fc9376f.js +28 -0
  298. package/dist/esm/justifi-additional-questions-form-step-core_8.entry.js +580 -0
  299. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +41 -41
  300. package/dist/esm/justifi-additional-statement_8.entry.js +402 -0
  301. package/dist/esm/justifi-business-details.entry.js +6 -6
  302. package/dist/esm/justifi-business-form.entry.js +20 -27
  303. package/dist/esm/justifi-business-representative-form-inputs.entry.js +3 -2
  304. package/dist/esm/justifi-checkout-core.entry.js +15 -19
  305. package/dist/esm/justifi-checkout.entry.js +8 -8
  306. package/dist/esm/justifi-checkouts-list-filters.entry.js +34 -0
  307. package/dist/esm/justifi-checkouts-list.entry.js +12 -12
  308. package/dist/esm/justifi-details.entry.js +4 -4
  309. package/dist/esm/justifi-dispute-management-core.entry.js +50 -11
  310. package/dist/esm/justifi-dispute-management.entry.js +87 -2
  311. package/dist/esm/justifi-dispute-notification_3.entry.js +372 -0
  312. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  313. package/dist/esm/justifi-owner-form_3.entry.js +14 -24
  314. package/dist/esm/justifi-payment-details.entry.js +8 -7
  315. package/dist/esm/justifi-payment-provisioning-core.entry.js +12 -7
  316. package/dist/esm/justifi-payment-provisioning.entry.js +4 -5
  317. package/dist/esm/justifi-payments-list-filters.entry.js +39 -0
  318. package/dist/esm/justifi-payments-list.entry.js +11 -11
  319. package/dist/esm/justifi-payout-details.entry.js +8 -7
  320. package/dist/esm/justifi-payouts-list-filters.entry.js +23 -0
  321. package/dist/esm/justifi-payouts-list.entry.js +18 -12
  322. package/dist/esm/justifi-refund-form.entry.js +6 -9
  323. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +17 -18
  324. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
  325. package/dist/esm/justifi-terminals-list-filters.entry.js +31 -0
  326. package/dist/esm/justifi-terminals-list.entry.js +10 -10
  327. package/dist/esm/justifi-tokenize-payment-method.entry.js +9 -13
  328. package/dist/esm/loader.js +3 -3
  329. package/dist/esm/{package-16f4801d.js → package-84f77b11.js} +1 -1
  330. package/dist/esm/pagination-menu.entry.js +22 -0
  331. package/dist/esm/parts-186d437f.js +72 -0
  332. package/dist/esm/payment-details-core.entry.js +13 -11
  333. package/dist/esm/{payment.service-ca6b5bc5.js → payment.service-064fac31.js} +1 -1
  334. package/dist/esm/payments-list-core.entry.js +33 -26
  335. package/dist/esm/payments-list-params-state-b3dab8bc.js +10 -0
  336. package/dist/esm/payments-table-d6fbab5b.js +28 -0
  337. package/dist/esm/payout-details-core.entry.js +8 -5
  338. package/dist/esm/payouts-list-core.entry.js +36 -29
  339. package/dist/esm/payouts-list-params-state-49618e7a.js +10 -0
  340. package/dist/esm/payouts-table-2e61a116.js +34 -0
  341. package/dist/esm/{schema-validations-5dc879a9.js → schema-validations-c7d4f9df.js} +3 -3
  342. package/dist/esm/skeleton-8f71cdf7.js +11 -0
  343. package/dist/esm/spinner-879489b3.js +10 -0
  344. package/dist/esm/styled-host-32228b45.js +12 -0
  345. package/dist/esm/table-filters-menu.entry.js +41 -0
  346. package/dist/esm/terminals-list-core.entry.js +35 -28
  347. package/dist/esm/terminals-list-params-state-2c48d35f.js +10 -0
  348. package/dist/esm/terminals-table-8e42977c.js +29 -0
  349. package/dist/esm/{utils-1df1e55a.js → utils-54543523.js} +31 -30
  350. package/dist/esm/utils-d7633e66.js +22 -0
  351. package/dist/esm/webcomponents.js +3 -3
  352. package/dist/module/Business.js +6 -1
  353. package/dist/module/Payment.js +62 -10
  354. package/dist/module/additional-questions-details2.js +1 -5
  355. package/dist/module/additional-questions.js +4 -15
  356. package/dist/module/additional-statement.js +52 -13
  357. package/dist/module/{justifi-card-form.d.ts → bank-account-form.d.ts} +4 -4
  358. package/dist/module/bank-account-form.js +6 -0
  359. package/dist/module/bank-account-form2.js +44 -0
  360. package/dist/module/billing-form.js +6 -18
  361. package/dist/module/business-additional-questions-form-step-core.js +8 -21
  362. package/dist/module/business-additional-questions-form-step.js +3 -15
  363. package/dist/module/business-bank-account-form-step.js +11 -18
  364. package/dist/module/business-core-info-form-step-core.js +11 -18
  365. package/dist/module/business-core-info-form-step.js +5 -11
  366. package/dist/module/business-core-info.js +6 -11
  367. package/dist/module/business-details-core2.js +25 -3
  368. package/dist/module/business-document-upload-form-step.js +12 -18
  369. package/dist/module/business-document-upload-input-group.js +3 -9
  370. package/dist/module/business-documents-on-file.js +4 -3
  371. package/dist/module/business-owners-form-step-core.js +12 -18
  372. package/dist/module/business-owners-form-step.js +5 -11
  373. package/dist/module/business-representative-form-inputs.js +6 -11
  374. package/dist/module/business-representative-form-step-core.js +9 -17
  375. package/dist/module/business-representative-form-step.js +5 -11
  376. package/dist/module/business-representative.js +6 -11
  377. package/dist/module/business-terms-conditions-form-step.js +16 -22
  378. package/dist/module/business-terms-conditions-text.js +2 -5
  379. package/dist/module/button.js +6 -12
  380. package/dist/module/cancellation-policy.js +49 -13
  381. package/dist/module/{justifi-payment-form.d.ts → card-form.d.ts} +4 -4
  382. package/dist/module/card-form.js +6 -0
  383. package/dist/module/card-form2.js +46 -0
  384. package/dist/module/check-pkg-version.js +76 -1
  385. package/dist/module/checkout-core.js +55 -30
  386. package/dist/module/checkouts-list-core2.js +47 -77
  387. package/dist/module/checkouts-list-params-state.js +10 -0
  388. package/dist/module/custom-popper2.js +2 -2
  389. package/dist/module/customer-details.js +50 -13
  390. package/dist/module/details.js +3 -5
  391. package/dist/module/dispute-management-core.js +74 -39
  392. package/dist/module/dispute-notification.js +41 -8
  393. package/dist/module/dispute-response-actions.js +117 -0
  394. package/dist/module/dispute-response-core.js +280 -0
  395. package/dist/module/dispute-response-form-types.js +59 -0
  396. package/dist/module/dispute-response.js +198 -0
  397. package/dist/module/duplicate-charge.js +49 -13
  398. package/dist/module/electronic-evidence.js +49 -20
  399. package/dist/module/{table.js → event-types.js} +16 -8
  400. package/dist/module/event-types2.js +23 -0
  401. package/dist/module/event-types3.js +22 -0
  402. package/dist/module/form-alert2.js +2 -1
  403. package/dist/module/form-control-checkbox2.js +29 -27
  404. package/dist/module/form-control-date2.js +25 -10
  405. package/dist/module/form-control-error-text.js +10 -4
  406. package/dist/module/{payouts-list-filters.d.ts → form-control-file-v2.d.ts} +4 -4
  407. package/dist/module/form-control-file-v2.js +6 -0
  408. package/dist/module/form-control-file-v22.js +59 -0
  409. package/dist/module/form-control-file2.js +25 -10
  410. package/dist/module/form-control-help-text.js +1 -1
  411. package/dist/module/form-control-help-text2.js +9 -32
  412. package/dist/module/form-control-help-text3.js +35 -0
  413. package/dist/module/form-control-monetary2.js +26 -16
  414. package/dist/module/form-control-number-masked2.js +25 -11
  415. package/dist/module/form-control-number.js +24 -15
  416. package/dist/module/form-control-radio2.js +31 -30
  417. package/dist/module/form-control-select2.js +25 -10
  418. package/dist/module/form-control-text2.js +24 -10
  419. package/dist/module/form-control-textarea2.js +26 -11
  420. package/dist/module/form-control-tooltip2.js +2 -1
  421. package/dist/module/form.js +1 -1
  422. package/dist/module/generic-info-details2.js +1 -5
  423. package/dist/module/get-payout-csv.js +1 -1
  424. package/dist/module/get-subaccounts.js +1 -1
  425. package/dist/module/gross-payment-chart-core2.js +3 -6
  426. package/dist/module/header-1.js +8 -0
  427. package/dist/module/{payments-list-filters.d.ts → hidden-input.d.ts} +4 -4
  428. package/dist/module/hidden-input.js +6 -0
  429. package/dist/module/hidden-input2.js +100 -0
  430. package/dist/module/identity-address-form.js +4 -10
  431. package/dist/module/iframe-input-styles-state.js +23 -0
  432. package/dist/module/iframe-input.d.ts +11 -0
  433. package/dist/module/iframe-input.js +6 -0
  434. package/dist/module/{payment-method-form.js → iframe-input2.js} +83 -131
  435. package/dist/module/index2.js +167 -3572
  436. package/dist/module/index3.js +3599 -0
  437. package/dist/module/insurance-state.js +6 -191
  438. package/dist/module/justifi-business-details.js +2 -3
  439. package/dist/module/justifi-business-form.js +16 -36
  440. package/dist/module/justifi-checkout.js +52 -23
  441. package/dist/module/justifi-checkouts-list-filters.d.ts +11 -0
  442. package/dist/module/justifi-checkouts-list-filters.js +77 -0
  443. package/dist/module/justifi-checkouts-list.js +8 -45
  444. package/dist/module/justifi-dispute-management.js +109 -34
  445. package/dist/module/justifi-dispute-response-core.d.ts +11 -0
  446. package/dist/module/justifi-dispute-response-core.js +6 -0
  447. package/dist/module/justifi-dispute-response.d.ts +11 -0
  448. package/dist/module/justifi-dispute-response.js +6 -0
  449. package/dist/module/justifi-gross-payment-chart.js +2 -3
  450. package/dist/module/justifi-payment-details.js +3 -4
  451. package/dist/module/justifi-payment-provisioning.js +12 -24
  452. package/dist/module/justifi-payments-list-filters.d.ts +11 -0
  453. package/dist/module/justifi-payments-list-filters.js +94 -0
  454. package/dist/module/justifi-payments-list.js +9 -58
  455. package/dist/module/justifi-payout-details.js +2 -3
  456. package/dist/module/justifi-payouts-list-filters.d.ts +11 -0
  457. package/dist/module/justifi-payouts-list-filters.js +66 -0
  458. package/dist/module/justifi-payouts-list.js +14 -45
  459. package/dist/module/justifi-refund-form.js +4 -19
  460. package/dist/module/justifi-season-interruption-insurance.js +16 -5
  461. package/dist/module/justifi-terminals-list-filters.d.ts +11 -0
  462. package/dist/module/{terminals-list-filters2.js → justifi-terminals-list-filters.js} +25 -28
  463. package/dist/module/justifi-terminals-list.js +8 -51
  464. package/dist/module/justifi-tokenize-payment-method.js +51 -25
  465. package/dist/module/legal-address-details2.js +1 -5
  466. package/dist/module/legal-address-form-step-core.js +10 -17
  467. package/dist/module/legal-address-form-step.js +3 -9
  468. package/dist/module/legal-address-form.js +5 -10
  469. package/dist/module/new-payment-method.js +72 -30
  470. package/dist/module/owner-details2.js +1 -5
  471. package/dist/module/owner-form-core2.js +10 -25
  472. package/dist/module/owner-form-inputs2.js +5 -11
  473. package/dist/module/owner-form.js +5 -11
  474. package/dist/module/package.js +1 -1
  475. package/dist/module/pagination-menu2.js +4 -3
  476. package/dist/module/parts.js +72 -0
  477. package/dist/module/payment-details-core2.js +11 -9
  478. package/dist/module/payment-method-options.js +47 -24
  479. package/dist/module/payment-provisioning-actions.js +1 -1
  480. package/dist/module/payment-provisioning-core.js +21 -28
  481. package/dist/module/payment-provisioning-form-buttons.js +4 -2
  482. package/dist/module/payment-provisioning-form-steps.js +11 -24
  483. package/dist/module/payments-list-core2.js +46 -88
  484. package/dist/module/payments-list-params-state.js +10 -0
  485. package/dist/module/payout-details-core2.js +6 -3
  486. package/dist/module/payouts-list-core2.js +53 -83
  487. package/dist/module/payouts-list-params-state.js +10 -0
  488. package/dist/module/product-or-service.js +46 -13
  489. package/dist/module/refund-policy.js +49 -13
  490. package/dist/module/representative-details2.js +1 -5
  491. package/dist/module/save-new-payment-method.js +10 -5
  492. package/dist/module/saved-payment-method.js +19 -6
  493. package/dist/module/schema-validations.js +1 -1
  494. package/dist/module/season-interruption-insurance-core.js +29 -19
  495. package/dist/module/sezzle-payment-method.js +19 -5
  496. package/dist/module/shipping-details.js +53 -19
  497. package/dist/module/skeleton.js +4 -34
  498. package/dist/module/spinner.js +10 -0
  499. package/dist/module/styled-host.js +1 -1
  500. package/dist/module/table-filters-menu2.js +12 -2
  501. package/dist/module/terminals-list-core2.js +43 -79
  502. package/dist/module/terminals-list-params-state.js +10 -0
  503. package/dist/module/utils.js +14 -19
  504. package/dist/module/utils2.js +31 -30
  505. package/dist/module/utils3.js +25 -30
  506. package/dist/module/utils4.js +23 -24
  507. package/dist/types/api/Business.d.ts +4 -0
  508. package/dist/types/api/Checkout.d.ts +1 -3
  509. package/dist/types/api/ComponentError.d.ts +0 -6
  510. package/dist/types/api/ComponentEvents.d.ts +23 -0
  511. package/dist/types/api/Dispute.d.ts +76 -0
  512. package/dist/types/api/DisputeEvidenceDocument.d.ts +23 -0
  513. package/dist/types/api/Payment.d.ts +6 -11
  514. package/dist/types/api/Payout.d.ts +1 -3
  515. package/dist/types/api/Terminal.d.ts +1 -4
  516. package/dist/types/api/services/dispute.service.d.ts +14 -0
  517. package/dist/types/components/billing-form/billing-form.d.ts +0 -5
  518. package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +0 -8
  519. package/dist/types/components/business-details/business-details-core.d.ts +2 -2
  520. package/dist/types/components/business-details/business-details-loading.d.ts +1 -0
  521. package/dist/types/components/business-details/business-details.d.ts +2 -10
  522. package/dist/types/components/business-details/representative-details/representative-details.d.ts +0 -8
  523. package/dist/types/components/business-forms/business-form/additional-questions/additional-questions.d.ts +0 -5
  524. package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +0 -3
  525. package/dist/types/components/business-forms/business-form/business-form.d.ts +4 -11
  526. package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +0 -5
  527. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +4 -6
  528. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -2
  529. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +3 -5
  530. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +2 -7
  531. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +3 -8
  532. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +3 -5
  533. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +2 -7
  534. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +4 -6
  535. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +2 -7
  536. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +3 -5
  537. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +2 -2
  538. package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +3 -5
  539. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +3 -5
  540. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +2 -7
  541. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +5 -5
  542. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -2
  543. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +2 -7
  544. package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +5 -5
  545. package/dist/types/components/business-forms/utils/event-types.d.ts +19 -0
  546. package/dist/types/components/business-forms/utils/index.d.ts +4 -0
  547. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +7 -0
  548. package/dist/types/components/checkout/card-form/card-form.d.ts +9 -0
  549. package/dist/types/components/checkout/checkout-core.d.ts +5 -4
  550. package/dist/types/components/checkout/checkout.d.ts +2 -2
  551. package/dist/types/components/checkout/message-event-types.d.ts +4 -0
  552. package/dist/types/components/checkout/new-payment-method.d.ts +3 -3
  553. package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -1
  554. package/dist/types/components/checkout/saved-payment-method.d.ts +1 -1
  555. package/dist/types/components/checkout/sezzle-payment-method.d.ts +1 -1
  556. package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +7 -8
  557. package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +1 -3
  558. package/dist/types/components/checkouts-list/checkouts-list-params-state.d.ts +5 -0
  559. package/dist/types/components/checkouts-list/checkouts-list.d.ts +2 -24
  560. package/dist/types/components/checkouts-list/checkouts-table.d.ts +6 -6
  561. package/dist/types/components/dispute-management/dispute-actions.d.ts +9 -0
  562. package/dist/types/components/dispute-management/dispute-management-core.d.ts +14 -3
  563. package/dist/types/components/dispute-management/dispute-management.d.ts +15 -0
  564. package/dist/types/components/dispute-management/dispute-notification.d.ts +9 -3
  565. package/dist/types/components/dispute-management/dispute-response/additional-statement.d.ts +17 -0
  566. package/dist/types/components/dispute-management/dispute-response/cancellation-policy.d.ts +15 -0
  567. package/dist/types/components/dispute-management/dispute-response/customer-details.d.ts +15 -0
  568. package/dist/types/components/dispute-management/dispute-response/dispute-response-actions.d.ts +40 -0
  569. package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +46 -0
  570. package/dist/types/components/dispute-management/dispute-response/dispute-response-form-types.d.ts +20 -0
  571. package/dist/types/components/dispute-management/dispute-response/dispute-response.d.ts +35 -0
  572. package/dist/types/components/dispute-management/dispute-response/duplicate-charge.d.ts +15 -0
  573. package/dist/types/components/dispute-management/dispute-response/electronic-evidence.d.ts +15 -0
  574. package/dist/types/components/dispute-management/dispute-response/product-or-service.d.ts +15 -0
  575. package/dist/types/components/dispute-management/dispute-response/refund-policy.d.ts +15 -0
  576. package/dist/types/components/dispute-management/dispute-response/schemas/additional-statement-schema.d.ts +6 -0
  577. package/dist/types/components/dispute-management/dispute-response/schemas/cancellation-policy-schema.d.ts +8 -0
  578. package/dist/types/components/dispute-management/dispute-response/schemas/customer-details-schema.d.ts +10 -0
  579. package/dist/types/components/dispute-management/dispute-response/schemas/dispute-reason-schema.d.ts +6 -0
  580. package/dist/types/components/dispute-management/dispute-response/schemas/duplicate-charge-schema.d.ts +8 -0
  581. package/dist/types/components/dispute-management/dispute-response/schemas/electronic-evidence-schema.d.ts +6 -0
  582. package/dist/types/components/dispute-management/dispute-response/schemas/product-or-service-schema.d.ts +8 -0
  583. package/dist/types/components/dispute-management/dispute-response/schemas/refund-policy-schema.d.ts +8 -0
  584. package/dist/types/components/dispute-management/dispute-response/schemas/shipping-details-schema.d.ts +12 -0
  585. package/dist/types/components/dispute-management/dispute-response/shipping-details.d.ts +15 -0
  586. package/dist/types/components/dispute-management/event-types.d.ts +18 -0
  587. package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +2 -2
  588. package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +3 -3
  589. package/dist/types/components/insurance/season-interruption/season-interruption-insurance-core.d.ts +4 -4
  590. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
  591. package/dist/types/components/payment-details/payment-details-core.d.ts +2 -2
  592. package/dist/types/components/payment-details/payment-details.d.ts +2 -25
  593. package/dist/types/components/payments-list/payments-list-core.d.ts +6 -7
  594. package/dist/types/components/payments-list/payments-list-filters.d.ts +1 -4
  595. package/dist/types/components/payments-list/payments-list-params-state.d.ts +5 -0
  596. package/dist/types/components/payments-list/payments-list.d.ts +2 -24
  597. package/dist/types/components/payments-list/payments-table.d.ts +7 -7
  598. package/dist/types/components/payout-details/payout-details-core.d.ts +2 -2
  599. package/dist/types/components/payout-details/payout-details.d.ts +3 -3
  600. package/dist/types/components/payouts-list/payouts-list-core.d.ts +7 -8
  601. package/dist/types/components/payouts-list/payouts-list-filters.d.ts +0 -3
  602. package/dist/types/components/payouts-list/payouts-list-params-state.d.ts +5 -0
  603. package/dist/types/components/payouts-list/payouts-list.d.ts +2 -24
  604. package/dist/types/components/payouts-list/payouts-table.d.ts +9 -9
  605. package/dist/types/components/terminals-list/terminals-list-core.d.ts +7 -8
  606. package/dist/types/components/terminals-list/terminals-list-filters.d.ts +1 -4
  607. package/dist/types/components/terminals-list/terminals-list-params-state.d.ts +5 -0
  608. package/dist/types/components/terminals-list/terminals-list.d.ts +2 -24
  609. package/dist/types/components/terminals-list/terminals-table.d.ts +4 -4
  610. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +4 -5
  611. package/dist/types/components.d.ts +465 -1338
  612. package/dist/types/styles/parts.d.ts +58 -0
  613. package/dist/types/ui-components/details/utils.d.ts +0 -1
  614. package/dist/types/ui-components/filters/table-filters-menu.d.ts +1 -0
  615. package/dist/types/ui-components/form/form-control-checkbox.d.ts +3 -3
  616. package/dist/types/ui-components/form/form-control-date.d.ts +2 -0
  617. package/dist/types/ui-components/form/form-control-file-v2.d.ts +15 -0
  618. package/dist/types/ui-components/form/form-control-file.d.ts +2 -0
  619. package/dist/types/ui-components/form/form-control-monetary.d.ts +2 -0
  620. package/dist/types/ui-components/form/form-control-number-masked.d.ts +2 -0
  621. package/dist/types/ui-components/form/form-control-number.d.ts +2 -0
  622. package/dist/types/ui-components/form/form-control-radio.d.ts +6 -7
  623. package/dist/types/ui-components/form/form-control-select.d.ts +2 -0
  624. package/dist/types/ui-components/form/form-control-text.d.ts +2 -0
  625. package/dist/types/ui-components/form/form-control-textarea.d.ts +2 -0
  626. package/dist/types/ui-components/form/form-helpers/form-control-error-text.d.ts +4 -0
  627. package/dist/types/ui-components/form/form-helpers/form-control-help-text.d.ts +4 -0
  628. package/dist/types/ui-components/form/form.d.ts +1 -1
  629. package/dist/types/ui-components/form/hidden-input.d.ts +11 -0
  630. package/dist/types/ui-components/form/iframe-input-styles-state.d.ts +3 -0
  631. package/dist/types/ui-components/form/iframe-input.d.ts +21 -0
  632. package/dist/types/ui-components/headers/header-1.d.ts +6 -0
  633. package/dist/types/ui-components/headers/header-2.d.ts +6 -0
  634. package/dist/types/ui-components/headers/header-3.d.ts +6 -0
  635. package/dist/types/ui-components/index.d.ts +6 -0
  636. package/dist/types/ui-components/skeleton.d.ts +1 -2
  637. package/dist/types/ui-components/spinner.d.ts +2 -0
  638. package/dist/types/ui-components/table/event-types.d.ts +5 -0
  639. package/dist/types/utils/utils.d.ts +3 -2
  640. package/dist/webcomponents/p-0201ec6c.entry.js +1 -0
  641. package/dist/webcomponents/p-02a0b21e.js +1 -0
  642. package/dist/webcomponents/p-08b8d1f0.entry.js +1 -0
  643. package/dist/webcomponents/p-0aa63869.entry.js +1 -0
  644. package/dist/webcomponents/p-0cc6c539.js +1 -0
  645. package/dist/webcomponents/p-0ccbc022.entry.js +1 -0
  646. package/dist/webcomponents/{p-1815a43b.js → p-0ea387a2.js} +1 -1
  647. package/dist/webcomponents/p-0eb86b3f.entry.js +1 -0
  648. package/dist/webcomponents/p-16ba9bea.js +1 -0
  649. package/dist/webcomponents/p-174b151e.js +1 -0
  650. package/dist/webcomponents/p-1ce22da6.entry.js +1 -0
  651. package/dist/webcomponents/p-1dbae48b.entry.js +1 -0
  652. package/dist/webcomponents/p-22034555.entry.js +1 -0
  653. package/dist/webcomponents/p-275f2154.js +1 -0
  654. package/dist/webcomponents/p-2783e363.js +2 -0
  655. package/dist/webcomponents/p-2a6f8329.entry.js +1 -0
  656. package/dist/webcomponents/p-2ed8e8db.entry.js +1 -0
  657. package/dist/webcomponents/p-323ba4df.entry.js +1 -0
  658. package/dist/webcomponents/p-32a5bf4e.js +1 -0
  659. package/dist/webcomponents/p-34c14f59.js +1 -0
  660. package/dist/webcomponents/p-438df53f.entry.js +1 -0
  661. package/dist/webcomponents/p-4a576796.js +1 -0
  662. package/dist/webcomponents/p-4cc3c7f9.js +1 -0
  663. package/dist/webcomponents/p-4d916b2d.js +1 -0
  664. package/dist/webcomponents/p-4f569cbf.entry.js +1 -0
  665. package/dist/webcomponents/p-53cf5687.entry.js +1 -0
  666. package/dist/webcomponents/{p-544a4e7a.js → p-54d36e97.js} +1 -1
  667. package/dist/webcomponents/p-57281853.entry.js +1 -0
  668. package/dist/webcomponents/p-5844a0f0.js +1 -0
  669. package/dist/webcomponents/p-597bd1e1.entry.js +1 -0
  670. package/dist/webcomponents/p-5cb947bc.entry.js +1 -0
  671. package/dist/webcomponents/p-5d3f81c0.entry.js +1 -0
  672. package/dist/webcomponents/p-663a00cd.entry.js +1 -0
  673. package/dist/webcomponents/p-6677c60d.entry.js +1 -0
  674. package/dist/webcomponents/p-667ebd79.js +1 -0
  675. package/dist/webcomponents/p-66c63ef7.entry.js +1 -0
  676. package/dist/webcomponents/p-68694a17.entry.js +1 -0
  677. package/dist/webcomponents/p-6b840696.entry.js +1 -0
  678. package/dist/webcomponents/p-6fbd6abb.js +1 -0
  679. package/dist/webcomponents/p-6feeb9f2.js +1 -0
  680. package/dist/webcomponents/p-7216ef00.entry.js +1 -0
  681. package/dist/webcomponents/p-733dc19b.entry.js +1 -0
  682. package/dist/webcomponents/p-73a18b5a.entry.js +1 -0
  683. package/dist/webcomponents/p-73f9be7c.js +1 -0
  684. package/dist/webcomponents/{p-7fc27a1a.js → p-79b7c30d.js} +1 -1
  685. package/dist/webcomponents/p-7a975a3c.js +1 -0
  686. package/dist/webcomponents/p-7b9f21cd.entry.js +1 -0
  687. package/dist/webcomponents/p-808bb677.entry.js +1 -0
  688. package/dist/webcomponents/p-8a550a5e.entry.js +1 -0
  689. package/dist/webcomponents/p-8a94d2c8.js +1 -0
  690. package/dist/webcomponents/p-8c7a81c1.js +1 -0
  691. package/dist/webcomponents/p-8da3667c.js +1 -0
  692. package/dist/webcomponents/p-90dc2f2c.js +1 -0
  693. package/dist/webcomponents/p-95e688bd.entry.js +1 -0
  694. package/dist/webcomponents/p-96ea95ce.entry.js +1 -0
  695. package/dist/webcomponents/p-99c92f1f.entry.js +1 -0
  696. package/dist/webcomponents/p-9c2e00cc.js +1 -0
  697. package/dist/webcomponents/p-9c652bc3.entry.js +1 -0
  698. package/dist/webcomponents/p-9e990e7d.entry.js +1 -0
  699. package/dist/webcomponents/p-9f773228.js +1 -0
  700. package/dist/webcomponents/p-a17be58e.entry.js +1 -0
  701. package/dist/webcomponents/p-a3949f32.js +1 -0
  702. package/dist/webcomponents/p-a41a1843.entry.js +1 -0
  703. package/dist/webcomponents/p-a520766d.entry.js +1 -0
  704. package/dist/webcomponents/p-abdbcd8e.js +1 -0
  705. package/dist/webcomponents/p-ac147eef.entry.js +1 -0
  706. package/dist/webcomponents/p-af620972.js +1 -0
  707. package/dist/webcomponents/{p-fd5f2836.js → p-af834eb8.js} +1 -1
  708. package/dist/webcomponents/p-b056034f.entry.js +1 -0
  709. package/dist/webcomponents/p-b1d4e520.entry.js +1 -0
  710. package/dist/webcomponents/p-b392ec21.js +1 -0
  711. package/dist/webcomponents/p-bb61c6e0.js +1 -0
  712. package/dist/webcomponents/p-bfe9748b.js +1 -0
  713. package/dist/webcomponents/p-c092cbb2.js +1 -0
  714. package/dist/webcomponents/p-c2a2b9fe.entry.js +1 -0
  715. package/dist/webcomponents/p-c740f609.entry.js +1 -0
  716. package/dist/webcomponents/p-c9670f3c.entry.js +1 -0
  717. package/dist/webcomponents/{p-bc8205ec.js → p-cb00d4f3.js} +1 -1
  718. package/dist/webcomponents/{p-89f6691e.js → p-d1c93dd3.js} +1 -1
  719. package/dist/webcomponents/p-d53c5ea5.entry.js +1 -0
  720. package/dist/webcomponents/p-d67bb568.entry.js +1 -0
  721. package/dist/webcomponents/p-d75b52c8.entry.js +1 -0
  722. package/dist/webcomponents/p-d960db89.entry.js +1 -0
  723. package/dist/webcomponents/{p-c8243721.js → p-e19589a2.js} +1 -1
  724. package/dist/webcomponents/p-ecced6e5.entry.js +1 -0
  725. package/dist/webcomponents/p-ed8918d1.entry.js +1 -0
  726. package/dist/webcomponents/p-ee4a2aac.entry.js +1 -0
  727. package/dist/webcomponents/p-ef4c49b9.js +1 -0
  728. package/dist/webcomponents/p-f0f3442e.entry.js +1 -0
  729. package/dist/webcomponents/p-f20b6ce1.js +1 -0
  730. package/dist/webcomponents/{p-c13a7d10.js → p-f4722957.js} +1 -1
  731. package/dist/webcomponents/p-f88d5c0d.entry.js +1 -0
  732. package/dist/webcomponents/{p-628693c1.entry.js → p-f9fdcc1a.entry.js} +4 -4
  733. package/dist/webcomponents/p-fa2e3dc7.entry.js +1 -0
  734. package/dist/webcomponents/{p-ccbff4fa.entry.js → p-faa35b47.entry.js} +1 -1
  735. package/dist/webcomponents/p-fc3daedd.js +1 -0
  736. package/dist/webcomponents/webcomponents.esm.js +1 -1
  737. package/package.json +1 -1
  738. package/dist/cjs/business-form-types-719b7f52.js +0 -50
  739. package/dist/cjs/button-3f400a66.js +0 -26
  740. package/dist/cjs/check-pkg-version-f5b03b02.js +0 -24
  741. package/dist/cjs/checkouts-list-filters.cjs.entry.js +0 -35
  742. package/dist/cjs/checkouts-table-00b6482f.js +0 -47
  743. package/dist/cjs/dispute-30c806f6.js +0 -10
  744. package/dist/cjs/exported-parts-a994d693.js +0 -9
  745. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +0 -641
  746. package/dist/cjs/form-control-error-text.cjs.entry.js +0 -21
  747. package/dist/cjs/form-control-textarea.cjs.entry.js +0 -49
  748. package/dist/cjs/justifi-additional-statement_11.cjs.entry.js +0 -173
  749. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -79
  750. package/dist/cjs/justifi-card-form.cjs.entry.js +0 -80
  751. package/dist/cjs/justifi-new-payment-method_5.cjs.entry.js +0 -320
  752. package/dist/cjs/justifi-payment-form.cjs.entry.js +0 -141
  753. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +0 -34
  754. package/dist/cjs/pagination-menu_2.cjs.entry.js +0 -54
  755. package/dist/cjs/payments-list-filters.cjs.entry.js +0 -40
  756. package/dist/cjs/payments-table-7087e771.js +0 -31
  757. package/dist/cjs/payouts-list-filters.cjs.entry.js +0 -24
  758. package/dist/cjs/payouts-table-4858eb84.js +0 -37
  759. package/dist/cjs/skeleton-748c5dde.js +0 -43
  760. package/dist/cjs/styled-host-1adf46c3.js +0 -14
  761. package/dist/cjs/terminals-list-filters.cjs.entry.js +0 -32
  762. package/dist/cjs/terminals-table-12410159.js +0 -32
  763. package/dist/cjs/utils-189dc30d.js +0 -35
  764. package/dist/cjs/utils-ba79e868.js +0 -37
  765. package/dist/collection/components/bank-account-form/bank-account-form.js +0 -281
  766. package/dist/collection/components/billing-form/billing-form.css +0 -51
  767. package/dist/collection/components/business-details/shared-business-details.css +0 -3
  768. package/dist/collection/components/business-forms/business-form/business-form.css +0 -121
  769. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.css +0 -18
  770. package/dist/collection/components/business-forms/utils/business-form-types.js +0 -48
  771. package/dist/collection/components/card-form/card-form.js +0 -300
  772. package/dist/collection/components/checkout/checkout-core.css +0 -110
  773. package/dist/collection/components/checkout/form-check-input.css +0 -20
  774. package/dist/collection/components/checkout/header.css +0 -4
  775. package/dist/collection/components/checkout/payment-method-options.css +0 -15
  776. package/dist/collection/components/dispute-management/counter-dispute/additional-statement.js +0 -8
  777. package/dist/collection/components/dispute-management/counter-dispute/cancellation-policy.js +0 -8
  778. package/dist/collection/components/dispute-management/counter-dispute/counter-dispute.js +0 -90
  779. package/dist/collection/components/dispute-management/counter-dispute/customer-details.js +0 -8
  780. package/dist/collection/components/dispute-management/counter-dispute/dispute-reason.js +0 -8
  781. package/dist/collection/components/dispute-management/counter-dispute/duplicate-charge.js +0 -8
  782. package/dist/collection/components/dispute-management/counter-dispute/electronic-evidence.js +0 -8
  783. package/dist/collection/components/dispute-management/counter-dispute/product-or-service.js +0 -16
  784. package/dist/collection/components/dispute-management/counter-dispute/refund-policy.js +0 -8
  785. package/dist/collection/components/dispute-management/counter-dispute/shipping-details.js +0 -12
  786. package/dist/collection/components/dispute-management/dispute.js +0 -8
  787. package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +0 -3
  788. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.css +0 -11
  789. package/dist/collection/components/payment-form/payment-form.css +0 -97
  790. package/dist/collection/components/payment-form/payment-form.js +0 -372
  791. package/dist/collection/components/payment-form/payment-method-selector.css +0 -39
  792. package/dist/collection/components/payment-form/payment-method-selector.js +0 -74
  793. package/dist/collection/components/payment-method-form/message-event-types.js +0 -16
  794. package/dist/collection/components/payment-method-form/payment-method-form.css +0 -13
  795. package/dist/collection/components/payment-method-form/payment-method-form.js +0 -298
  796. package/dist/collection/components/refund-form/refund-form.css +0 -59
  797. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.css +0 -9
  798. package/dist/collection/ui-components/form/form-helpers/form-control-error-text/form-control-error-text.js +0 -52
  799. package/dist/collection/utils/get-computed-theme.js +0 -50
  800. package/dist/esm/business-form-types-8fd61b0e.js +0 -50
  801. package/dist/esm/button-34e75e0f.js +0 -24
  802. package/dist/esm/check-pkg-version-434f72bf.js +0 -22
  803. package/dist/esm/checkouts-list-filters.entry.js +0 -31
  804. package/dist/esm/checkouts-table-cd33b57c.js +0 -43
  805. package/dist/esm/dispute-4d2e0a04.js +0 -10
  806. package/dist/esm/exported-parts-70e7a12b.js +0 -7
  807. package/dist/esm/form-control-checkbox_9.entry.js +0 -629
  808. package/dist/esm/form-control-error-text.entry.js +0 -17
  809. package/dist/esm/form-control-textarea.entry.js +0 -45
  810. package/dist/esm/justifi-additional-statement_11.entry.js +0 -159
  811. package/dist/esm/justifi-bank-account-form.entry.js +0 -75
  812. package/dist/esm/justifi-card-form.entry.js +0 -76
  813. package/dist/esm/justifi-new-payment-method_5.entry.js +0 -312
  814. package/dist/esm/justifi-payment-form.entry.js +0 -137
  815. package/dist/esm/justifi-payment-method-selector.entry.js +0 -30
  816. package/dist/esm/pagination-menu_2.entry.js +0 -49
  817. package/dist/esm/payments-list-filters.entry.js +0 -36
  818. package/dist/esm/payments-table-bba91324.js +0 -27
  819. package/dist/esm/payouts-list-filters.entry.js +0 -20
  820. package/dist/esm/payouts-table-edff9bbe.js +0 -33
  821. package/dist/esm/skeleton-145a80d4.js +0 -41
  822. package/dist/esm/styled-host-e0ddb759.js +0 -12
  823. package/dist/esm/terminals-list-filters.entry.js +0 -28
  824. package/dist/esm/terminals-table-dc787616.js +0 -28
  825. package/dist/esm/utils-218275b7.js +0 -27
  826. package/dist/esm/utils-4006c425.js +0 -33
  827. package/dist/module/Analytics.js +0 -78
  828. package/dist/module/business-form-types.js +0 -50
  829. package/dist/module/checkouts-list-filters.d.ts +0 -11
  830. package/dist/module/checkouts-list-filters.js +0 -6
  831. package/dist/module/checkouts-list-filters2.js +0 -80
  832. package/dist/module/counter-dispute.js +0 -189
  833. package/dist/module/dispute-reason.js +0 -45
  834. package/dist/module/exported-parts.js +0 -7
  835. package/dist/module/form-control-error-text.d.ts +0 -11
  836. package/dist/module/form-control-error-text2.js +0 -35
  837. package/dist/module/justifi-bank-account-form.d.ts +0 -11
  838. package/dist/module/justifi-bank-account-form.js +0 -104
  839. package/dist/module/justifi-card-form.js +0 -106
  840. package/dist/module/justifi-counter-dispute.d.ts +0 -11
  841. package/dist/module/justifi-counter-dispute.js +0 -6
  842. package/dist/module/justifi-dispute-reason.d.ts +0 -11
  843. package/dist/module/justifi-dispute-reason.js +0 -6
  844. package/dist/module/justifi-payment-form.js +0 -216
  845. package/dist/module/justifi-payment-method-form.d.ts +0 -11
  846. package/dist/module/justifi-payment-method-form.js +0 -6
  847. package/dist/module/justifi-payment-method-selector.d.ts +0 -11
  848. package/dist/module/justifi-payment-method-selector.js +0 -6
  849. package/dist/module/payment-method-selector.js +0 -47
  850. package/dist/module/payments-list-filters.js +0 -6
  851. package/dist/module/payments-list-filters2.js +0 -97
  852. package/dist/module/payouts-list-filters.js +0 -6
  853. package/dist/module/payouts-list-filters2.js +0 -69
  854. package/dist/module/terminals-list-filters.d.ts +0 -11
  855. package/dist/module/terminals-list-filters.js +0 -6
  856. package/dist/module/utils5.js +0 -27
  857. package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -62
  858. package/dist/types/components/business-forms/utils/business-form-types.d.ts +0 -76
  859. package/dist/types/components/card-form/card-form.d.ts +0 -72
  860. package/dist/types/components/dispute-management/counter-dispute/additional-statement.d.ts +0 -3
  861. package/dist/types/components/dispute-management/counter-dispute/cancellation-policy.d.ts +0 -3
  862. package/dist/types/components/dispute-management/counter-dispute/counter-dispute.d.ts +0 -14
  863. package/dist/types/components/dispute-management/counter-dispute/customer-details.d.ts +0 -3
  864. package/dist/types/components/dispute-management/counter-dispute/dispute-reason.d.ts +0 -3
  865. package/dist/types/components/dispute-management/counter-dispute/duplicate-charge.d.ts +0 -3
  866. package/dist/types/components/dispute-management/counter-dispute/electronic-evidence.d.ts +0 -3
  867. package/dist/types/components/dispute-management/counter-dispute/product-or-service.d.ts +0 -4
  868. package/dist/types/components/dispute-management/counter-dispute/refund-policy.d.ts +0 -3
  869. package/dist/types/components/dispute-management/counter-dispute/shipping-details.d.ts +0 -3
  870. package/dist/types/components/dispute-management/dispute.d.ts +0 -7
  871. package/dist/types/components/payment-form/payment-form.d.ts +0 -36
  872. package/dist/types/components/payment-form/payment-method-selector.d.ts +0 -10
  873. package/dist/types/components/payment-form/tokenize.d.ts +0 -5
  874. package/dist/types/components/payment-method-form/message-event-types.d.ts +0 -16
  875. package/dist/types/components/payment-method-form/payment-method-form.d.ts +0 -25
  876. package/dist/types/ui-components/form/form-helpers/form-control-error-text/form-control-error-text.d.ts +0 -5
  877. package/dist/types/utils/get-computed-theme.d.ts +0 -3
  878. package/dist/webcomponents/p-08b0fb31.js +0 -1
  879. package/dist/webcomponents/p-0a963f7e.entry.js +0 -1
  880. package/dist/webcomponents/p-0d6ddff2.js +0 -1
  881. package/dist/webcomponents/p-0fbab710.entry.js +0 -1
  882. package/dist/webcomponents/p-10277025.entry.js +0 -1
  883. package/dist/webcomponents/p-157ddb71.entry.js +0 -1
  884. package/dist/webcomponents/p-17984027.entry.js +0 -1
  885. package/dist/webcomponents/p-229f2096.entry.js +0 -1
  886. package/dist/webcomponents/p-2338affa.js +0 -1
  887. package/dist/webcomponents/p-286b87ab.js +0 -1
  888. package/dist/webcomponents/p-28bd6dcd.js +0 -1
  889. package/dist/webcomponents/p-2f422aad.entry.js +0 -1
  890. package/dist/webcomponents/p-3186d1fb.entry.js +0 -1
  891. package/dist/webcomponents/p-3c654c07.js +0 -1
  892. package/dist/webcomponents/p-3ec27a31.entry.js +0 -1
  893. package/dist/webcomponents/p-3ed7fc42.entry.js +0 -1
  894. package/dist/webcomponents/p-4046e45c.entry.js +0 -1
  895. package/dist/webcomponents/p-420adedb.entry.js +0 -1
  896. package/dist/webcomponents/p-4408a32d.js +0 -1
  897. package/dist/webcomponents/p-448826a7.entry.js +0 -1
  898. package/dist/webcomponents/p-44d3f5ed.js +0 -1
  899. package/dist/webcomponents/p-469804a9.entry.js +0 -1
  900. package/dist/webcomponents/p-486da67e.entry.js +0 -1
  901. package/dist/webcomponents/p-4a5e5574.entry.js +0 -1
  902. package/dist/webcomponents/p-54145a37.entry.js +0 -1
  903. package/dist/webcomponents/p-56d84fb3.entry.js +0 -1
  904. package/dist/webcomponents/p-59959934.entry.js +0 -1
  905. package/dist/webcomponents/p-5e7c60d8.js +0 -1
  906. package/dist/webcomponents/p-673cf8c4.js +0 -1
  907. package/dist/webcomponents/p-69527219.entry.js +0 -1
  908. package/dist/webcomponents/p-6cc30da2.js +0 -1
  909. package/dist/webcomponents/p-72819173.entry.js +0 -1
  910. package/dist/webcomponents/p-74340f69.entry.js +0 -1
  911. package/dist/webcomponents/p-74da98da.js +0 -1
  912. package/dist/webcomponents/p-81635086.entry.js +0 -1
  913. package/dist/webcomponents/p-91de21cc.js +0 -1
  914. package/dist/webcomponents/p-95ec39f6.entry.js +0 -1
  915. package/dist/webcomponents/p-9690eca9.entry.js +0 -1
  916. package/dist/webcomponents/p-9c9c7dac.js +0 -1
  917. package/dist/webcomponents/p-a76ece26.js +0 -1
  918. package/dist/webcomponents/p-a7830e98.entry.js +0 -1
  919. package/dist/webcomponents/p-a856444a.entry.js +0 -1
  920. package/dist/webcomponents/p-a8b4f429.js +0 -1
  921. package/dist/webcomponents/p-a9775002.entry.js +0 -1
  922. package/dist/webcomponents/p-ada9ac19.entry.js +0 -1
  923. package/dist/webcomponents/p-b607a07f.entry.js +0 -1
  924. package/dist/webcomponents/p-bfb990fc.entry.js +0 -1
  925. package/dist/webcomponents/p-c1bf9285.entry.js +0 -1
  926. package/dist/webcomponents/p-c3fb5d3a.entry.js +0 -1
  927. package/dist/webcomponents/p-c420cb7d.entry.js +0 -1
  928. package/dist/webcomponents/p-c5175bd7.js +0 -1
  929. package/dist/webcomponents/p-cd19c597.entry.js +0 -1
  930. package/dist/webcomponents/p-ce94232f.js +0 -1
  931. package/dist/webcomponents/p-d09e9336.entry.js +0 -1
  932. package/dist/webcomponents/p-d1f75fa6.js +0 -1
  933. package/dist/webcomponents/p-d2eb61e6.entry.js +0 -1
  934. package/dist/webcomponents/p-d516e700.js +0 -1
  935. package/dist/webcomponents/p-daa7872f.entry.js +0 -1
  936. package/dist/webcomponents/p-dcb288a3.entry.js +0 -1
  937. package/dist/webcomponents/p-dd43bf3d.entry.js +0 -1
  938. package/dist/webcomponents/p-df3ca87f.entry.js +0 -1
  939. package/dist/webcomponents/p-df5a1202.entry.js +0 -1
  940. package/dist/webcomponents/p-e2ce097c.js +0 -1
  941. package/dist/webcomponents/p-e5790011.entry.js +0 -1
  942. package/dist/webcomponents/p-e69b2ff8.entry.js +0 -1
  943. package/dist/webcomponents/p-e9919d54.entry.js +0 -1
  944. package/dist/webcomponents/p-e99957ff.entry.js +0 -1
  945. package/dist/webcomponents/p-eab21e1f.entry.js +0 -1
  946. package/dist/webcomponents/p-eb9ba917.entry.js +0 -1
  947. package/dist/webcomponents/p-ed05a597.entry.js +0 -1
  948. package/dist/webcomponents/p-ed95feec.entry.js +0 -1
  949. package/dist/webcomponents/p-f698d6d9.entry.js +0 -1
  950. package/dist/webcomponents/p-fad19d75.js +0 -2
  951. package/dist/webcomponents/p-fea520c6.entry.js +0 -1
  952. package/dist/webcomponents/p-ff4bac14.entry.js +0 -1
  953. package/dist/webcomponents/p-ffe27126.entry.js +0 -1
  954. package/dist/webcomponents/webcomponents.css +0 -6
  955. /package/dist/collection/{components/payment-form/tokenize.js → api/ComponentEvents.js} +0 -0
  956. /package/dist/collection/components/{payment-method-form → checkout}/payment-method-responses.js +0 -0
  957. /package/dist/types/components/{payment-method-form → checkout}/payment-method-responses.d.ts +0 -0
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as e,H as i}from"./p-2783e363.js";import{a,C as n}from"./p-14c91ffd.js";import{m as o,b as r}from"./p-5968ff8a.js";import{B as h}from"./p-f6f8dabc.js";import{c,F as d,e as u}from"./p-5844a0f0.js";import{z as f,A as l,u as b,B as p,C as m,D as v,E as y,F as g,G as k,H as _,I as w,J as j,K as T,L as C,M as O}from"./p-af834eb8.js";import{A as S}from"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{c as x}from"./p-5a62fca2.js";import{n as I}from"./p-e3c22aa9.js";import{h as A}from"./p-ef4c49b9.js";import{c as L}from"./p-0ea387a2.js";import{a as F,B}from"./p-73f9be7c.js";import{B as E}from"./p-275f2154.js";import{S as D}from"./p-0cc6c539.js";import{B as H}from"./p-32a5bf4e.js";import"./p-8115b2f4.js";import"./p-6078a370.js";import"./p-abdbcd8e.js";import"./p-1ff8810b.js";const P=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-additional-questions-form-step-core",{key:"bef3e4d67c4ccbb25dae52291ba9a399e854fb53",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};class W{constructor(s){this.id=s.id,this.account_owner_name=s.account_owner_name,this.full_name=s.full_name,this.account_type=s.account_type,this.acct_last_four=s.acct_last_four,this.account_number_last4=s.account_number_last4,this.routing_number=s.routing_number,this.bank_name=s.bank_name,this.country=s.country,this.currency=s.currency,this.nickname=s.nickname,this.metadata=s.metadata,this.business_id=s.business_id,this.platform_account_id=s.platform_account_id,this.created_at=s.created_at,this.updated_at=s.updated_at}}const q=class{constructor(e){s(this,e),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.bankAccount=Object.assign({},new W(s.data.bank_accounts.length>0?s.data.bank_accounts[0]:{})),this.formController.setInitialValues(Object.assign({},this.bankAccount))}catch(s){this.errorEvent.emit({errorCode:a.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 t=this.formController.values.getValue(),e=Object.assign(Object.assign({},t),{business_id:this.businessId}),i=await this.api.post(this.bankAccountEndpoint,e);this.handleResponse(i,s)}catch(s){this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.bankAccount=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get bankAccountEndpoint(){return"entities/bank_accounts"}get formDisabled(){var s;return!!(null===(s=this.bankAccount)||void 0===s?void 0:s.id)}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):t(),this.stepCompleteEvent.emit({response:s,formStep:F.bankAccount})}async validateAndSubmit({onSuccess:s}){this.formDisabled?(this.stepCompleteEvent.emit({response:null,formStep:F.bankAccount,metadata:"no data submitted"}),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.formController=new d((s=>{const t=c({bank_name:f.required("Enter bank name"),nickname:l.required("Enter nickname"),account_owner_name:b.required("Enter account owner name"),account_type:p.required("Select account type"),account_number:m.required("Enter account number"),routing_number:v.required("Enter routing number")}),e=c({bank_name:f.nullable(),nickname:l.nullable(),account_owner_name:b.nullable(),account_type:p.nullable(),account_number:m.nullable(),routing_number:v.nullable()});return s?e:t})(this.allowOptionalFields)),this.api=S({authToken:this.authToken,apiOrigin:x.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((s=>this.bankAccount=Object.assign({},s))),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){const s=this.formController.getInitialValues();return e("form",{key:"d326af8d567422ee342571d35119497cd5983a7f"},e("fieldset",{key:"4ada14e070e9f9b1f12aa3288af50e78c8d7e2f3"},e("div",{key:"e9e104ca5ddd22fbddb2154d026ec0cb6610426a",class:"d-flex align-items-center gap-2"},e("legend",{key:"7800c3648bebce9ca000162e3c85f0cc558f045e",class:"mb-0",part:A},"Bank Account Info"),e("form-control-tooltip",{key:"3dbc31dfc1f7f60b68f10f2666e58ae208bb36cb",helpText:"The Direct Deposit Account is the business bank account where your funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),e("hr",{key:"489cf91c3af1050ee1f0babe8fa6ba7fa9d1912d",class:"mt-2"}),e("div",{key:"cace0eee0e8b9849294b11bad15452b77dcd9ee9",class:"row gy-3"},e("div",{key:"0697524d52d53ccfab7201e1f06c0f8f477c8da7",class:"col-12"},e("form-control-text",{key:"b391b6e7e3f9c1c92f5bb651da2291ca75afc7f3",name:"bank_name",label:"Bank Name",defaultValue:s.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"84afc5c90399809d228561e348f4a6f5fbeeaa48",class:"col-12"},e("form-control-text",{key:"add80854eae161c51dfc3006e8f03ef01113291c",name:"nickname",label:"Nickname",defaultValue:s.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"f5d31db2be25a09b6f57b78fcac9b6031077d235",class:"col-12"},e("form-control-text",{key:"5a916bfbad467bd2a55f0159716c29cb78d4d9d0",name:"account_owner_name",label:"Account Owner Name",defaultValue:s.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"ebce663decaf9bd6b46794b820197c7ba8a450cc",class:"col-12"},e("form-control-select",{key:"dd42e72741934d015a1d405b09e7c14b8f865606",name:"account_type",label:"Account Type",options:L,defaultValue:s.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"2fa3139ed30465e1e0f9a5075eb13e9c3874aa0a",class:"col-12"},e("form-control-text",{key:"f309563391770bd1074b7c29b47c39c5c7ecec5f",name:"account_number",label:"Account Number",defaultValue:s.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:I,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),e("div",{key:"80424fa942fe444ba9137e724ecd50fb4839c59f",class:"col-12"},e("form-control-text",{key:"c5e08a9cdbb11c92e3271d6507f6bd3225abdf2f",name:"routing_number",label:"Routing Number",defaultValue:s.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:I,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))))}},V=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-business-core-info-form-step-core",{key:"fbaca40250e3cabd3a1ec91f1a10aab53174a23e",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"]}}},z=class{constructor(e){s(this,e),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.fetchData=async()=>{this.renderState="loading",this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.business=Object.assign({},new E(s.data)),this.existingDocuments=s.data.documents,this.paymentVolume=s.data.additional_questions.business_payment_volume}catch(s){this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s}),this.renderState="error"}finally{this.initializeFormController(),this.formLoading.emit(!1),this.renderState="success"}},this.initializeFormController=()=>{this.formController=new d(((s,t,e)=>{const i=c({voided_check:y(t,e),government_id:g.nullable(),ss4:k.nullable(),other:_.nullable(),balance_sheet:w(s,t,e),bank_statement:j(s,t,e),profit_and_loss_statement:T(s,t,e)}),a=c({voided_check:y(t,e),government_id:g.nullable(),ss4:k.nullable(),other:_.nullable(),balance_sheet:w(s,t,e),bank_statement:j(s,t,e),profit_and_loss_statement:T(s,t,e)});return e?a:i})(this.paymentVolume,this.existingDocuments,this.allowOptionalFields)),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))},this.createDocumentRecord=async s=>{this.formLoading.emit(!0);const t=s.record_data;try{const e=await this.api.post(this.documentEndpoint,t);return this.handleDocRecordResponse(s,e)}catch(s){return this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s}),!1}},this.handleDocRecordResponse=(s,t)=>t.error?(this.errorEvent.emit({errorCode:a.POST_ERROR,message:t.error.message,severity:n.ERROR,data:t.error}),!1):(s.setPresignedUrl(t.data.presigned_url),!0),this.uploadDocument=async s=>{if(!s.presigned_url)throw new Error("Presigned URL is not set");const t=await fetch(s.presigned_url,{method:"PUT",body:s.fileString});return this.handleUploadResponse(t)},this.handleUploadResponse=s=>s.error?(this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}),!1):(this.stepCompleteEvent.emit({response:s,formStep:F.documentUpload}),!0),this.storeFiles=s=>{const t=Array.from(s.detail.fileList),e=s.detail.document_type,i=t.map((s=>new C({file:s,document_type:e},this.businessId)));this.documentData[e]=i},this.sendData=async s=>{try{const t=Object.values(this.documentData).flat();if(!t.length)return this.stepCompleteEvent.emit({response:null,formStep:F.documentUpload,metadata:"no data submitted"}),s();const e=t.map((s=>this.createDocumentRecord(s)));if(!await Promise.all(e))return;const i=t.map((s=>this.uploadDocument(s)));if(!await Promise.all(i))return;await s()}finally{this.formLoading.emit(!1)}},this.formController=void 0,this.errors={},this.existingDocuments=[],this.paymentVolume=void 0,this.business=void 0,this.documentData=new O,this.renderState="loading",this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get documentEndpoint(){return"entities/document"}componentWillLoad(){this.api=S({authToken:this.authToken,apiOrigin:x.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get documentsOnFile(){return this.isError?null:this.isLoading?e(D,{height:"50px"}):e("justifi-business-documents-on-file",{documents:this.existingDocuments})}get formInputs(){return this.isError?null:this.isLoading?e(D,{height:"350px"}):e("justifi-business-document-upload-input-group",{paymentVolume:this.paymentVolume,inputHandler:this.inputHandler,storeFiles:this.storeFiles,errors:this.errors})}render(){return e("form",{key:"0d59a81a25ce1b983e1cc1e076072fc60f277829"},e("fieldset",{key:"806183bf7a2b7bd49f11be8f8e66685360b392d8"},e("div",{key:"22e1914c580e90acbf0cc295ed878c2f4d3cb12f",class:"d-flex align-items-center gap-2"},e("legend",{key:"88369a06ab43a76c477a6af93672364fd101a7d2",class:"mb-0",part:A},"Document Uploads"),e("form-control-tooltip",{key:"ccbff3cea2f17156a358a82de3e5e8afa87e2ab5",helpText:"Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."})),e("hr",{key:"e99c7eba9c7605244bee06ae4c0fa4954cafb99a",class:"mt-2"}),this.documentsOnFile,e("div",{key:"ddbeda2a9740d2a20becde70f5f8113e4a327dc7",class:"d-flex flex-column"},this.formInputs)))}},M=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e(i,{key:"2f5256be2313b3916c1f0d7a69d2b27b305cf66c"},e("justifi-business-owners-form-step-core",{key:"2c8d3c4cb731b3cf58cf1cc71df2a52c72f660cc",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"]}}},N=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-business-representative-form-step-core",{key:"24461e0acb80a0161fb796c3ee35f511601f707e",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},R=class{constructor(e){s(this,e),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.formCompleted=t(this,"formCompleted",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:a.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 t=this.termsPayload,e=await this.api.post(this.termsConditionsEndpoint,t);this.handleResponse(e,s)}catch(s){this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,t)=>{this.acceptedTerms=t,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.acceptedTermsBefore=void 0,this.acceptedTerms=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}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=S({authToken:this.authToken,apiOrigin:x.proxyApiOrigin}),this.formController=new d((s=>{const t=c({accepted:u().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),e=c({accepted:u().nullable()});return s?e:t})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):t(),this.stepCompleteEvent.emit({response:s,formStep:F.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:F.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)}))}render(){return e("form",{key:"acbe79a11f280351401eed6722db5f033cf3f889"},e("fieldset",{key:"dceb358d0578dca96ab26433dc056296854359cd"},e("legend",{key:"81c73a6eab1654a1da56031bdd83cdc2a13dfb2d",part:A},"Terms and Conditions"),e("hr",{key:"24c0e396766b7c5c925d50d05154913eeee1fca0"}),e("justifi-business-terms-conditions-text",{key:"dc0634fa35ae5f74105b0c7711d9e53254f5f555"}),e("br",{key:"cd3abfa1415477fad5014a6a28c6a99b9205d2c6"}),e("div",{key:"21d395c38900bf670df836cbf5aff7a9336081c1",class:"row-gy-3"},e("div",{key:"1930a06c942c99121b00b569215b388eb0d3e953",class:"col-12"},e("form-control-checkbox",{key:"ebf7dc7ec3fbabdcebac51e13df0e15aa48dfe25",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})))))}},U=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-legal-address-form-step-core",{key:"66973db19fe252e82b8e44f875aef6e6de4f519d",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},Y=class{constructor(t){s(this,t),this.currentStep=void 0,this.totalSteps=void 0,this.formLoading=void 0,this.formDisabled=void 0,this.previousStepButtonOnClick=void 0,this.nextStepButtonOnClick=void 0}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return e("div",{key:"e1ab54d1e838fcf447bc27cb7a24360c683d6ad8",class:"d-flex gap-2"},e(H,{key:"203ce170dcd2c39edbd238cdacbd5a778d6e3a39",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),e(H,{key:"820000f2ffc9a3d037b12ca11b724169de0747b8",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,B.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),e(H,{key:"5da1da1e44963c1138b4ecf9619b43f7ff0caa06",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,B.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},$=class{constructor(t){s(this,t),this.componentStepMapping={0:()=>e("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields}),1:()=>e("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields}),2:()=>e("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>e("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields}),4:()=>e("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields}),5:()=>e("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),6:()=>e("justifi-business-document-upload-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),7:()=>e("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[7]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})},this.businessId=void 0,this.authToken=void 0,this.refs=void 0,this.currentStep=void 0,this.allowOptionalFields=!1,this.handleFormLoading=void 0}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return e("div",{key:"95db2f73894dc4adff2c17298f5f0791c8db463b",class:"col-12 mb-4"},this.currentStepComponent)}};export{P as justifi_additional_questions_form_step,q as justifi_business_bank_account_form_step,V as justifi_business_core_info_form_step,z as justifi_business_document_upload_form_step,M as justifi_business_owners_form_step,N as justifi_business_representative_form_step,R as justifi_business_terms_conditions_form_step,U as justifi_legal_address_form_step,Y as justifi_payment_provisioning_form_buttons,$ as justifi_payment_provisioning_form_steps}
@@ -0,0 +1 @@
1
+ import{r as e,c as a,h as t}from"./p-2783e363.js";import{b as d,a as s,f as c,s as i}from"./p-f4722957.js";import{a as b,b as f,D as l,c as r,C as h,E as o}from"./p-9c2e00cc.js";import{w as y}from"./p-ef4c49b9.js";import{S as n}from"./p-bfe9748b.js";import{S as k}from"./p-90dc2f2c.js";import{M as u}from"./p-bb71cef3.js";const v=class{constructor(t){e(this,t),this.errorEvent=a(this,"error-event",7),this.getPaymentDetails=void 0,this.payment=void 0,this.loading=!0,this.errorMessage=void 0}componentWillLoad(){this.getPaymentDetails&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.loading=!1,this.errorMessage=null},onError:({error:e,code:a,severity:t})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:a,message:e,severity:t}),this.loading=!1}})}render(){var e;return t(n,{key:"7550877e5bc7bf30d0964d496b07c39f57ea23c7"},this.loading&&t(k,{key:"320d191ef2cbd736158382f693bd4e1b2676a850"}),!this.loading&&this.errorMessage&&o(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&t("justifi-details",{key:"cc147622d2821fb3070d3acb17dabbe0d6acb44e","error-message":this.errorMessage},t(b,{key:"102fbe95740cfcbeed7d79c500841e4e69644c1b",slot:"head-info",badge:t("span",{slot:"badge",part:y,innerHTML:u(this.payment.status)}),title:`${d(this.payment.amount)} ${null===(e=this.payment)||void 0===e?void 0:e.currency.toUpperCase()}`},t(f,{key:"1f6b55ebbc0abb37ced9cda26b193a779f7ba4a9",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payment.updated_at)} ${c(this.payment.updated_at)}`}),t(f,{key:"cb64b263862128ef00b4923cdfd986ee63d40670",classes:"border-1 border-end",title:"Created At",value:`${s(this.payment.created_at)} ${c(this.payment.created_at)}`}),t(f,{key:"4a245ba3ad052ef015d7c5c2abb8d05051e0784a",title:"ID",value:this.payment.id})),t("div",{key:"9721335ed8558618cae9685f83c68e2eff8dfb8b",slot:"detail-sections"},t(l,{key:"8c460e5675898d68ceb335a56da05b459b81b112",sectionTitle:"Details"}),t("div",{key:"1094ca8b231926460913bbabd9c9816e04d5bb1f",class:"d-table gap-2 w-100"},t(r,{key:"e9640bbcf361dbeead436eea32a69fa962e34663",title:"Amount",value:d(this.payment.amount)}),t(r,{key:"ffa1411af9d4d78dbeaedcf7c12ce7d7c1e6eb53",title:"Fees",value:d(this.payment.fee_amount)}),t(r,{key:"c5843ff4773b7a2be2afdd659226dd46096f585d",title:"Refunded",value:d(this.payment.amount_refunded)}),t(r,{key:"8ec788ae9ed769f6af4f32882d72d10877d1de30",title:"Net",value:d(this.payment.balance)}),t(r,{key:"ddd659af132d2628b8187d81ea72fc604e7ea7a8",title:"Status",value:u(this.payment.status)}),t(r,{key:"15cb99e66dfc876d65aa8d446564f873aef1ef8a",title:"Payment ID",value:this.payment.id}),t(r,{key:"499a906f13648cd49a3bf92ccadcc01f0fb430f6",title:"Processing Fees",value:d(this.payment.fee_amount)}),t(r,{key:"75ab13ff4c06f0f58dec6c0fcaad692d6d03b68b",title:"Statement Descriptor",value:this.payment.statement_descriptor}),t(r,{key:"aeb538897b387e4811d35dde9fb19a5813c1c049",title:"Description",value:this.payment.description})),this.payment.payment_method.card&&[t(l,{key:"4c8aa277b28bb1ffaf5fbada3a35f284ee2fabb2",sectionTitle:"Payment Method"}),t("div",{key:"ce52033a650a4f5db13e5c3cdf97191bcb3539b1",class:"d-table gap-2 w-100"},t(r,{key:"168e45e35fc2e11adbf6881b17ebfd36d0a54a71",title:"ID",value:this.payment.payment_method.card.id}),t(r,{key:"38af59143d2961cdc29b03e46af06b720dad3c8e",title:"Payment Type",value:"Card"}),t(r,{key:"07518b2789187d2ae0b3f5edc6510a4b44798154",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),t(r,{key:"724207946a3e0b1b1cfe00bf0e77bfcd2f8c5982",title:"Brand",value:i(this.payment.payment_method.card.brand)}),t(r,{key:"34deb890ddf58566794fcb451d4d422d31f3f8b7",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[t(l,{key:"fbc24139e24a3d72624db86e30d0ce7b602cafe1",sectionTitle:"Payment Method"}),t("div",{key:"cba8888ffd57b95d82ab307f5de83c61f16a75b8",class:"d-table gap-2 w-100"},t(r,{key:"5d7bbf52c0b06be00bdca98df4926dfa5c7ee25f",title:"ID",value:this.payment.payment_method.bank_account.id}),t(r,{key:"19f2450384c28970a69a13aa623a0360c7818f46",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),t(r,{key:"c81914830e67c477c2407112e74afaa127c406c2",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),t(r,{key:"5c8581983f368d84d6d9044d49ea2cab923b6615",title:"Account Owner",value:this.payment.payment_method.payersName}))],t(l,{key:"c8ed7c6c2480365d7fec6c388103aeb1c3622c44",sectionTitle:"Metadata"}),t("div",{key:"cca65ed21900b912ea4a22b2e852d0c46946efd1",class:"d-table gap-2 w-100"},t(h,{key:"c96c267005a5ee26064d7cd6c03768f83442dfc6",metadata:this.payment.metadata})))))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{v as payment_details_core}
@@ -0,0 +1 @@
1
+ var e,n;!function(e){e.nextStep="nextStep",e.previousStep="previousStep",e.submit="submit",e.removeOwner="removeOwner",e.addOwner="addOwner",e.addOwnerForm="addOwnerForm",e.updateOwner="updateOwner"}(e||(e={})),function(e){e.businessInfo="business_info",e.legalAddress="legal_address",e.additionalQuestions="additional_questions",e.representative="representative",e.owners="owners",e.bankAccount="bank_account",e.documentUpload="document_upload",e.termsAndConditions="terms_and_conditions"}(n||(n={}));export{e as B,n as a}
@@ -1 +1 @@
1
- import{c as e}from"./p-3c654c07.js";import{b as s,w as n,e as a,p as i,d as r,a as t,i as _,t as u,c as o,r as c,f as b,g as l,h as m,j as p,s as d,o as g}from"./p-fd5f2836.js";const y=c=>{const b=e({legal_name:s.required("Enter legal name"),website_url:n.required("Enter business website url"),email:a.required("Enter business email"),phone:i.required("Enter phone number"),doing_business_as:r.nullable(),classification:t.required("Select business classification"),industry:_.required("Enter a business industry"),tax_id:u.required("Enter tax id, SSN, or EIN"),date_of_incorporation:o.required("Enter date of incorporation")}),l=e({legal_name:s.required("Enter legal name"),website_url:n.nullable(),email:a.nullable(),phone:i.nullable(),doing_business_as:r.nullable(),classification:t.nullable(),industry:_.nullable(),tax_id:u.nullable(),date_of_incorporation:o.nullable()});return c?l:b},v=s=>{const n=e({business_revenue:c.required("Enter business revenue"),business_payment_volume:b.required("Enter business payment volume"),business_when_service_received:l.required("Select when service is received"),business_recurring_payments:m.required("Select recurring payments"),business_recurring_payments_percentage:p,business_seasonal:d.required("Select business seasonal"),business_other_payment_details:g.nullable()}),a=e({business_revenue:c.nullable(),business_payment_volume:b.nullable(),business_when_service_received:l.nullable(),business_recurring_payments:m.nullable(),business_recurring_payments_percentage:p,business_seasonal:d.nullable(),business_other_payment_details:g.nullable()});return s?a:n};export{v as a,y as b}
1
+ import{c as e}from"./p-5844a0f0.js";import{b as s,w as n,e as a,p as i,d as r,a as t,i as _,t as u,c as o,r as c,f as b,g as l,h as m,j as p,s as d,o as g}from"./p-af834eb8.js";const y=c=>{const b=e({legal_name:s.required("Enter legal name"),website_url:n.required("Enter business website url"),email:a.required("Enter business email"),phone:i.required("Enter phone number"),doing_business_as:r.nullable(),classification:t.required("Select business classification"),industry:_.required("Enter a business industry"),tax_id:u.required("Enter tax id, SSN, or EIN"),date_of_incorporation:o.required("Enter date of incorporation")}),l=e({legal_name:s.required("Enter legal name"),website_url:n.nullable(),email:a.nullable(),phone:i.nullable(),doing_business_as:r.nullable(),classification:t.nullable(),industry:_.nullable(),tax_id:u.nullable(),date_of_incorporation:o.nullable()});return c?l:b},v=s=>{const n=e({business_revenue:c.required("Enter business revenue"),business_payment_volume:b.required("Enter business payment volume"),business_when_service_received:l.required("Select when service is received"),business_recurring_payments:m.required("Select recurring payments"),business_recurring_payments_percentage:p,business_seasonal:d.required("Select business seasonal"),business_other_payment_details:g.nullable()}),a=e({business_revenue:c.nullable(),business_payment_volume:b.nullable(),business_when_service_received:l.nullable(),business_recurring_payments:m.nullable(),business_recurring_payments_percentage:p,business_seasonal:d.nullable(),business_other_payment_details:g.nullable()});return s?a:n};export{v as a,y as b}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-2783e363.js";import{h as a}from"./p-ef4c49b9.js";import{c as t}from"./p-f20b6ce1.js";const e=t=>s("h2",{class:`header-2 ${null==t?void 0:t.class}`,part:a},t.text),r=t({}),{state:o,on:p}=r,i=t({}),{state:l}=i,c=()=>{let s=!0;return Object.keys(o).forEach((a=>{null===o[a]?(l[a]=!0,s=!1):l[a]=!1})),{isValid:s}};export{e as H,o as a,l as b,p as i,c as v}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as s,g as a}from"./p-2783e363.js";import{i as o,b as r,a as h,D as d,c as l,l as f}from"./p-ef4c49b9.js";const c=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.files=void 0,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.multiple=void 0,this.inputHandler=void 0,this.disabled=void 0}render(){return i(s,{key:"0ff92310d25c06e1fa0271f4dcb1f2c3f9af6bc9",exportparts:"label,input,input-invalid"},i("div",{key:"c07d1173914b8f4a474656108219502dcd356798",class:"form-group d-flex flex-column"},i("div",{key:"cc37bcfa3d65f4dc8b1d6f6b43b52a2282398b29",class:"d-flex align-items-start gap-2"},i("label",{key:"5a042d4b42b5372ca465c3636dfedec7beea91f0",part:"label",class:"form-label",htmlFor:this.name},this.label),i("form-control-tooltip",{key:"2b227a49d2e65d2b4a5d4248a5d1dbc234a8aaf0",helpText:this.helpText})),i("input",{key:"9c81ac8b2fe6742959d7502b99b43bd192efecd3",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit()}),i("form-control-error-text",{key:"e650ab21dce572c1ed4c20f6d5f64253a39d5420",errorText:this.errorText,name:this.name})))}get el(){return a(this)}},n=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.inputHandler(i,e.value),this.formControlInput.emit({name:i,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")},this.isFocused=!1,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.maxLength=void 0,this.inputHandler=void 0,this.keyDownHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?r:this.isFocused?h:this.disabled?d:l}render(){return i(s,{key:"2bf7205da9907d7e72c57bdb8cf7225ba79df6f8"},i("div",{key:"bba562087283e69f6bf30d644befa71f3e7edd82",class:"form-group d-flex flex-column"},i("label",{key:"6337fd2a00e5feff788aa867fb357bb42ee76f0e",part:f,class:"form-label",htmlFor:this.name},this.label),i("textarea",{key:"fa0e759bb588317b24ea8ba9c554c93a8c5c8934",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),i("form-control-help-text",{key:"f03979b74b6cc7fd80b46345df805cf81f120dc5",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"5ab2c830a5f1345034e2c2abeca8d3e6e0a1a2ec",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{c as form_control_file_v2,n as form_control_textarea}
@@ -0,0 +1 @@
1
+ import{r as s,h as t,H as a}from"./p-2783e363.js";import{E as e}from"./p-9c2e00cc.js";import"./p-ef4c49b9.js";const i=class{constructor(t){s(this,t),this.errorMessage=void 0}render(){return t(a,{key:"14ab849e7b60f834d823bb6d10f8b772a1184ad4"},this.errorMessage?e(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{i as justifi_details}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as r}from"./p-2783e363.js";import{c as e}from"./p-5a62fca2.js";import{A as o}from"./p-0e180654.js";import{C as i,a}from"./p-14c91ffd.js";import{g as c,a as n}from"./p-8115b2f4.js";import{E as h}from"./p-9c2e00cc.js";import{c as p,J as m}from"./p-174b151e.js";import"./p-ef4c49b9.js";import"./p-af620972.js";class d{async fetchGrossVolumeChartData(s,t){return o({authToken:t,apiOrigin:e.proxyApiOrigin}).get(`account/${s}/reports/gross_volume`)}}const u=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)},this.accountId=void 0,this.authToken=void 0,this.getGrossPayment=void 0,this.errorMessage=null}componentWillLoad(){p(),this.analytics=new m(this),this.initializeGetGrossPayment()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:e,onError:o})=>{var a;try{const h=await r.fetchGrossVolumeChartData(s,t);h.error?o({error:c(h.error),code:n(null===(a=h.error)||void 0===a?void 0:a.code),severity:i.ERROR}):e(h.data)}catch(s){const t=n(null==s?void 0:s.code);o({error:c(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new d}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?h(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_gross_payment_chart}
@@ -0,0 +1 @@
1
+ import{h as o}from"./p-2783e363.js";import{v as r}from"./p-ef4c49b9.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-2783e363.js";import{p as s,q as e,o as r}from"./p-ef4c49b9.js";import{S as a}from"./p-90dc2f2c.js";const n=e=>{const{columnSpan:r,isEmpty:a}=e;return r&&a?t("tr",null,t("td",{class:"empty-state",part:s,colSpan:r,style:{textAlign:"center"}},"No results")):null},l=s=>{const{columnSpan:r,errorMessage:a}=s;return r&&a?t("tr",null,t("td",{class:"error-state",part:e,colSpan:r,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",a)):null},o=s=>{const{columnSpan:e,isLoading:n}=s;return e&&n?t("tr",null,t("td",{class:"loading-state",part:r,colSpan:e,style:{textAlign:"center"}},t(a,null))):null};class c{get columnData(){return this.columnKeys.map((t=>this.tableColumns[t]()))}get rowData(){return this.collection.map(((t,s)=>this.columnKeys.map((e=>this.tableCells[e](t[e],s)))))}set collectionData(t){this.collection=t}constructor(t,s,e,r){this.columnKeys=s.split(","),this.collection=t,this.tableColumns=e,this.tableCells=r}}var i;!function(t){t.row="tableRow",t.next="nextPage",t.previous="previousPage"}(i||(i={}));export{i as T,c as a,o as b,n as c,l as d}
@@ -0,0 +1 @@
1
+ import{c as s}from"./p-f20b6ce1.js";const o={},a=s((()=>o)),{state:t,on:c}=a,e=()=>{a.reset()};export{e as c,c as o,t as q}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-2783e363.js";import{r}from"./p-ef4c49b9.js";const e=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:r},s("span",{class:"visually-hidden"},"Loading...")));export{e as S}
@@ -0,0 +1 @@
1
+ import{r as i,c as t,h as s}from"./p-2783e363.js";import{C as r,a as e}from"./p-14c91ffd.js";import{c as a,J as o}from"./p-174b151e.js";import{c as n}from"./p-5a62fca2.js";import{A as c}from"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import{T as h}from"./p-3db8b3c7.js";import{g as p,a as m}from"./p-8115b2f4.js";import{m as d,S as l}from"./p-cb00d4f3.js";import{S as u}from"./p-bfe9748b.js";import{d as b}from"./p-4a576796.js";import"./p-af620972.js";import"./p-abdbcd8e.js";import"./p-ef4c49b9.js";class f{async fetchTerminals(i,t,s,r){r||(r=n.proxyApiOrigin);const e={Account:i};return c({authToken:t,apiOrigin:r}).get("terminals",s,null,e)}async fetchTerminal(i,t,s){s||(s=n.proxyApiOrigin);const r=`terminals/${i}`;return c({authToken:t,apiOrigin:s}).get(r)}}const j=class{constructor(s){i(this,s),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=i=>{this.errorMessage=i.detail.message,this.errorEvent.emit(i.detail)},this.getTerminals=void 0,this.getSubAccounts=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin=n.proxyApiOrigin,this.columns=b}componentWillLoad(){a(),this.analytics=new o(this),this.initializeGetData()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:i,authToken:t,service:s,apiOrigin:e})=>async({params:a,onSuccess:o,onError:n})=>{var c,d;try{const l=await s.fetchTerminals(i,t,a,e);if(l.error)return n({error:p(l.error),code:m(null===(d=l.error)||void 0===d?void 0:d.code),severity:r.ERROR});{const i=Object.assign({},l.page_info);o({terminals:(null===(c=l.data)||void 0===c?void 0:c.map((i=>new h(i))))||[],pagingInfo:i})}}catch(i){const t=m(null==i?void 0:i.code);return n({error:i.message||i,code:t,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new f,apiOrigin:this.apiOrigin}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=d({accountId:this.accountId,authToken:this.authToken,service:new l,apiOrigin:this.apiOrigin}))}render(){return s(u,{key:"202c9b2b8492e03f999cb8c62aa71871068e46d6"},s("terminals-list-core",{key:"eca0f2a0b076eb92b33bbb3703650506a5e1377b",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_terminals_list}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-2783e363.js";import{m as o,P as e}from"./p-d1c93dd3.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import{P as r}from"./p-3db8b3c7.js";import{C as a,a as p}from"./p-14c91ffd.js";import{g as h,a as d}from"./p-8115b2f4.js";import{E as c}from"./p-9c2e00cc.js";import{c as n,J as m}from"./p-174b151e.js";import"./p-0e180654.js";import"./p-5a62fca2.js";import"./p-abdbcd8e.js";import"./p-ef4c49b9.js";import"./p-af620972.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.payoutId=void 0,this.authToken=void 0,this.getPayout=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){n(),this.analytics=new m(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var p;try{const c=await i.fetchPayout(t,s);c.error?e({error:h(c.error),code:d(null===(p=c.error)||void 0===p?void 0:p.code),severity:a.ERROR}):o(new r(c.data))}catch(t){e({error:h(t),code:d(null==t?void 0:t.code),severity:a.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new e}),this.getPayoutCSV=o({authToken:this.authToken,service:new e})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:p.MISSING_PROPS,severity:a.ERROR}))}render(){return this.errorMessage?c(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-2783e363.js";import{C as e,a as o}from"./p-14c91ffd.js";import{c as a,J as r}from"./p-174b151e.js";import{c as n}from"./p-5a62fca2.js";import{m as p,P as d}from"./p-d1c93dd3.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import{P as h}from"./p-3db8b3c7.js";import{g as c,a as l}from"./p-8115b2f4.js";import{m,S as b}from"./p-cb00d4f3.js";import{S as u}from"./p-bfe9748b.js";import{d as f}from"./p-a3949f32.js";import"./p-af620972.js";import"./p-0e180654.js";import"./p-abdbcd8e.js";import"./p-f4722957.js";import"./p-206fde40.js";import"./p-ef4c49b9.js";const g=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.getPayouts=void 0,this.getPayoutCSV=void 0,this.getSubAccounts=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin=n.proxyApiOrigin,this.columns=f}componentWillLoad(){a(),this.analytics=new r(this),this.initializeGetData()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new d,apiOrigin:this.apiOrigin};this.getPayouts=(({id:t,authToken:s,service:i,apiOrigin:o})=>async({params:a,onSuccess:r,onError:n})=>{var p,d;try{const m=await i.fetchPayouts(t,s,a,o);if(m.error)return n({error:c(m.error),code:l(null===(d=m.error)||void 0===d?void 0:d.code),severity:e.ERROR});{const t=Object.assign({},m.page_info);r({payouts:(null===(p=m.data)||void 0===p?void 0:p.map((t=>new h(t))))||[],pagingInfo:t})}}catch(t){const s=l(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:e.ERROR})}})(t),this.getPayoutCSV=p(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new b,apiOrigin:this.apiOrigin}))}render(){return i(u,{key:"78316ffab976d4674ed157de643d0e579a503050",exportedparts:"\ntable-head,table-head-row,table-head-cell,table-body,table-row,table-row-even,\ntable-row-odd,table-cell,loading-state-cell,loading-state-spinner,error-state,\nempty-state,pagination-bar,page-arrow,page-button,page-button-disabled,page-button-text\n"},i("payouts-list-core",{key:"6d258120f1ab81723505f76db75f4d4289e072b4",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{g as justifi_payouts_list}
@@ -0,0 +1 @@
1
+ import{h as a}from"./p-2783e363.js";import{t as s,h as l,e as t}from"./p-ef4c49b9.js";const e=l=>a("main",{class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},a("p",{part:s},l)),p=s=>a("h2",{part:l,class:"mt-4 fs-5 border-bottom pb-3"},s.sectionTitle),r=({title:l,value:t})=>l&&t?a("div",{class:"d-table-row gap-2"},a("span",{class:"fw-bold d-table-cell px-2",part:s},l),a("span",{class:"flex-1 d-table-cell px-2 text-wrap",part:s,innerHTML:t})):null,c=({title:t,value:e,classes:p})=>a("div",{class:`d-flex flex-column ${p}`},a("span",{class:"fw-bold border-1 border-bottom ps-2 pe-2",part:l},t),a("span",{class:"pt-2 ps-2 pe-2",part:s},e)),o=({title:l,slot:e,badge:p},r)=>a("div",{slot:e,class:"p-2"},a("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},a("h1",{class:"m-0",part:t},l),p),a("div",{class:"d-flex flex-row align-items-top",part:s},r)),n=({metadata:s})=>s&&Object.keys(s).length?a("div",{class:"mt-4"},a("pre",{class:"p-2","aria-label":"metadata content"},a("code",null,JSON.stringify(s,null,2)))):null;export{n as C,p as D,e as E,o as a,c as b,r as c}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as s}from"./p-2783e363.js";import{c as i,d as r,e as a}from"./p-5968ff8a.js";import{I as o}from"./p-f6f8dabc.js";import{F as d}from"./p-5844a0f0.js";import{O as h}from"./p-275f2154.js";import{i as c}from"./p-bb61c6e0.js";import{B as n}from"./p-32a5bf4e.js";import{v as l}from"./p-ef4c49b9.js";import{B as f}from"./p-73f9be7c.js";import{S as b,P as m}from"./p-525db3e8.js";import{u,a as p,b as v}from"./p-7d85af5c.js";import"./p-14c91ffd.js";import"./p-8115b2f4.js";import"./p-5a62fca2.js";import"./p-0e180654.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-af834eb8.js";import"./p-0ea387a2.js";const y=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.authToken=void 0,this.ownerId=void 0,this.businessId=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.patchOwner=r({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.postOwner=a({authToken:this.authToken,service:new o}))}render(){return s("owner-form-core",{key:"994ef390ec2423419aa777656a49d9087ef61e72",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,ref:e=>this.coreComponent=e})}},k=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.ownerSubmitted=t(this,"ownerSubmitted",7),this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:e=>{this.instantiateOwner(e.data)},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({message:e,errorCode:t,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((e=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async e=>{this.owner=Object.assign({},new h(e)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?f.updateOwner:f.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:f.removeOwner})},this.isLoading=!1,this.formController=void 0,this.errors={},this.owner={},this.ownerId=void 0,this.businessId=void 0,this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0,this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(e){e.preventDefault(),await this.validate()&&this.submit()}get payload(){let e=new h(this.formController.values.getValue()).payload;return this.ownerId?e:Object.assign(Object.assign({},e),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new d(c("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){return s("form",{key:"58cbb6a1f804dc14fc3d3c873b733353b01d9365",onSubmit:this.validateAndSubmit},s("fieldset",{key:"23cb93fab96a2d1a3a372057a93f8a5e3b5e886b"},s("legend",{key:"06f0a9595c675d7f2f708741ef292018ad2b98e7",class:"fw-semibold fs-5",part:l},this.formTitle),s("br",{key:"cdde6f04d559cc83bf50282feab27e2917889b74"}),s("div",{key:"25fd59a4755a4344ed0d6c116de79c95db8660df",class:"row gy-3"},s("owner-form-inputs",{key:"f839d830b204439f88594b0a16cce37286fe3e0b",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"5dad56a053aa7ad0c04869374769965eba872247",class:"d-flex gap-2 justify-content-start"},s(n,{key:"22342bc0f6a5978a94927aa9edddb9979309e647",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(n,{key:"ef3d494677011f095d199e736043e3c02a855f2b",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"d2d503eabc8b633ec84cabeacfe04c3802689604"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},w=class{constructor(t){e(this,t),this.inputHandler=(e,t)=>{u(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{p(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))},this.ownerDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){return s("div",{key:"6604b31d64967fbabb85189c72d7d78d98d2c8c8",class:"row gy-3"},s("div",{key:"7b52874d08593e28ac8e2369534d3697f07128c3",class:"col-12 col-md-8"},s("form-control-text",{key:"080456fae1d1f024d3e82be43939922fb19f6ef9",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"e0e431c1d7d6716bc368eb1fa06b80d0576a05ee",class:"col-12 col-md-4"},s("form-control-text",{key:"9134c2a32853cfa00edb42a2db30a85943e0c3f5",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"b129332c1547d43a2d2e09f19940e3a5a1df988a",class:"col-12 col-md-6"},s("form-control-text",{key:"1e56b33c0c12898bdb0dd121fa832869deca9a2b",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"0a551a3d5f820e1f0146ee2603b687559756b80b",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"26c8366c9a8c93e69e8396ae1bb8d2478cc9eb81",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})),s("div",{key:"e9416e635eceb13bee1cd259bad100cb165b9e74",class:"col-12 col-md-4"},s("form-control-date",{key:"9a69bdc97c104169bdc742c341105a208b9a815a",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>v(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"9dedc8f023a3e6cc47835fc3a749f427c29bbee4",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"f1bedfe4d166ed0453a1814a5f02f7912da1e699",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),s("div",{key:"32b1cd3be64345be08b27297478ab654d9201b8b",class:"col-12"},s("justifi-identity-address-form",{key:"e3292e32b13c290081989a562e22454f1bfe4f83",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{y as justifi_owner_form,k as owner_form_core,w as owner_form_inputs}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as s}from"./p-2783e363.js";import{b as i}from"./p-f4722957.js";import{t as a,x as d}from"./p-ef4c49b9.js";import{B as r}from"./p-32a5bf4e.js";import{S as c}from"./p-bfe9748b.js";import{S as o}from"./p-0cc6c539.js";import{C as n,a as h}from"./p-14c91ffd.js";import{g as p,a as f}from"./p-8115b2f4.js";import{D as l}from"./p-02a0b21e.js";import{D as u}from"./p-667ebd79.js";import{c as b,J as y}from"./p-174b151e.js";import{c as v}from"./p-5a62fca2.js";import"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-abdbcd8e.js";import"./p-3db8b3c7.js";import"./p-af620972.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:d,final:r=(()=>{})})=>{var c;try{const r=await s.submitDisputeResponse(t,e,i);if(r.error){return d({error:p(r.error),code:f(null===(c=r.error)||void 0===c?void 0:c.code),severity:n.ERROR})}a(r)}catch(e){const t=f(null==e?void 0:e.code);return d({error:e.message||e,code:t,severity:n.ERROR})}finally{return r()}},k=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitEvent=t(this,"submit-event",7),this.dispute=void 0,this.authToken=void 0,this.isLoading=void 0}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:"df45596c8b40c5665589e976405c38f05271812f"},this.isLoading&&s("div",{key:"9c1f507799665e4297a9e76d24cf1656079bb146",style:{marginBottom:"8px"}},s(o,{key:"6a6e2314fb16348e59d4ff9b4739d895b376303c",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(o,{key:"286352f2b7da7f3b494add74fc332a3d2a6f4d42",height:"18px",styles:{marginBottom:"8px"}}),s(o,{key:"bc3985914e7dbeecbe4ea9efea1fcdd592d2600e",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"e0371f22a67d7ebef374e2ad4ed0e0d151b2105b",part:a},s("h1",{key:"a85046d309d92aee9c6a01e0311fe23d0cc48b98",class:"h4",part:d},"This payment is disputed"),s("p",{key:"886223ea616ea99c76b7f0e719f2bec606e6796a"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"3f12d0ded622ad0c844dee081b8eb3d444e2b4e3",class:"h5"},"Dispute details"),s("div",{key:"add2e0e67fcebcb484a2a30ea66a303693a95be8",class:"d-table gap-2"},s("div",{key:"30b35751ab437971b2c0ef6ab003d7c348d3cc3f",class:"d-table-row gap-2"},s("span",{key:"7b5ea6fdf2d644a2c31e0276185fb2a95b0ee85f",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"f91e37855056374a345a8a534c9343ed71180a1e",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:"6d2ef3c07ee006eba74caae39e1c355c4f1d0e80",class:"d-table-row gap-2"},s("span",{key:"cb60ccb1855a7bc15b8e411986790c33419659c3",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"a2c21645bbba4529576062baacbdd1166e1b4f72",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:"4f9bfc9fa68efc18032a9367938c82fef27f6dbe",class:"d-table-row gap-2"},s("span",{key:"c78b105e6e1bbe3332005c71e230609c9f2a65d9",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"0d75f20d0c665cf18eb6a91eb4a890df0e0a09be",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:"97801ea1983a7591d0c5aa933842fcce2eb12394",class:"d-flex gap-2 mt-4 justify-content-end"},s(r,{key:"8155accf40a4512506b18de08423da53cd3c2ff7",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(r,{key:"b23bd82c73ae7c8c020b7ad5c60223f9a1eae8d2",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"2b3ee4c8f1b9b0100416c7804897530e001826d3"},s("h1",{key:"abdeb425738b1f0cd8b27836a885f9d9e31b1774",class:"h4"},"This payment is disputed and under review"),s("p",{key:"aa42c034af8bef20370aac9607065e6f15a87534"},"The cardholder is disputing this payment. A counter dispute has been submitEvent and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"2a75a70a3a45a0d42dc182b0782983220444c42b"},s("h1",{key:"3e6c8aad4507bab77c6f0bf06c2ee26af382b8e8",class:"h4"},"This payment was disputed"),s("p",{key:"b1d2626f6c6529005676ead7776b988693334971"},"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:"1b9da576c01bd69842cd3d0b65e96997842461e8"},s("h1",{key:"c5521ef13d0f9437b90fd34b96e43f980ab7ceb8",class:"h4"},"This payment was disputed"),s("p",{key:"d5724f0fd2194621a908d803752dc1965d2f0043"},"The cardholder disputed this payment and the card issuer has settled it their favor.")))}},w=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)},this.updateDisputeResponse=void 0,this.submitDisputeResponse=void 0,this.createDisputeEvidence=void 0,this.errorMessage=null,this.authToken=void 0,this.disputeId=void 0,this.disputeResponse=void 0,this.apiOrigin=v.proxyApiOrigin}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:d,final:r=(()=>{})})=>{var c;try{const r=await s.updateDisputeResponse(t,e,i);if(r.error)return d({error:p(r.error),code:f(null===(c=r.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(r)}catch(e){const t=f(null==e?void 0:e.code);return d({error:e.message||e,code:t,severity:n.ERROR})}finally{return r()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:d,final:r=(()=>{})})=>{var c;try{const r=await s.createDisputeEvidence(t,e,i);if(r.error)return d({error:p(r.error),code:f(null===(c=r.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(r)}catch(e){const t=f(null==e?void 0:e.code);return d({error:e.message||e,code:t,severity:n.ERROR})}finally{return r()}})({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:"359300bac34b3e344e045750f354ce974f6a02ed"},s("justifi-dispute-response-core",{key:"121c8c358b1a8a6e9084a9de00c977ff806be974","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",7),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.submitEvent=t(this,"submit-event",7),this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse})],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,this.isLoading=!1},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s}),this.isLoading=!1}}),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.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.handleSubmit=async(e,t,s)=>{this.isLoading=!0,t.length&&(this.documentList=t,await this.initializeMakePresignedURLs(),await this.initializeFileUploads()),await this.saveData(e,s),this.isLoading=!1},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)}))},this.updateDisputeResponse=void 0,this.submitDisputeResponse=void 0,this.createDisputeEvidence=void 0,this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.currentStep=0,this.currentStepComponentRef=void 0}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:"4c1c801c82506c50ee304934ec0c42efc986f07c",class:"row gy-3"},s("div",{key:"27c27411ac45d0a20f5fd99e4a11eb0efe6b0007",class:"col-12"},s("h1",{key:"48aa1635accfafe2ed76e733296bade6fdeeddf5",class:"h4",part:d},"Counter dispute")),s("div",{key:"79ca608ae5ba5a4249556754972216a82104c004",class:"col-12"},this.currentStepComponent),s("div",{key:"39ecb37977d852c3528f09afced344d40e2022ac",class:"col-12"},s("div",{key:"23d7523bffc81324b8e99b5f2354c75f52af9d52",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(r,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(r,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(r,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(r,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{k as justifi_dispute_notification,w as justifi_dispute_response,j as justifi_dispute_response_core}
@@ -0,0 +1 @@
1
+ import{c as s}from"./p-f20b6ce1.js";const o={},a=s((()=>o)),{state:t,on:c}=a,e=()=>{a.reset()};export{e as c,c as o,t as q}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-2783e363.js";import{P as i}from"./p-e19589a2.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import{P as r}from"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{C as o,a}from"./p-14c91ffd.js";import{g as p,a as n}from"./p-8115b2f4.js";import{E as h}from"./p-9c2e00cc.js";import{c,J as m}from"./p-174b151e.js";import"./p-0e180654.js";import"./p-5a62fca2.js";import"./p-abdbcd8e.js";import"./p-ef4c49b9.js";import"./p-af620972.js";const d=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.paymentService=new i,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.paymentId=void 0,this.authToken=void 0,this.getPaymentDetails=void 0,this.errorMessage=null}componentWillLoad(){c(),this.analytics=new m(this),this.initializeGetPaymentDetails()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=(({id:t,authToken:s,service:e})=>async({onSuccess:i,onError:a})=>{var h;try{const c=await e.fetchPayment(t,s);c.error?a({error:p(c.error),code:n(null===(h=c.error)||void 0===h?void 0:h.code),severity:o.ERROR}):i({payment:new r(c.data)})}catch(t){const s=n(null==t?void 0:t.code);a({error:p(t),code:s,severity:o.ERROR})}})({id:this.paymentId,authToken:this.authToken,service:new i}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?h(this.errorMessage):e("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payment_details}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-2783e363.js";import{c as a,b as e}from"./p-f4722957.js";import{M as o}from"./p-206fde40.js";import{m as s,k as p}from"./p-ef4c49b9.js";const r="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",c={created_at:()=>t("th",{part:p,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:p,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:p,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:p,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:p,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:p,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:p,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:p,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:p,scope:"col",title:"Export CSV"})},l=p=>({created_at:(e,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(e,{showDisplayDate:!0})," ")),sub_account_name:(a,e)=>t("td",{part:s(e)},a),payments_total:(a,o)=>t("td",{part:s(o)},e(a)),refunds_total:(a,o)=>t("td",{part:s(o)},e(a)),fees_total:(a,o)=>t("td",{part:s(o)},e(a)),other_total:(a,o)=>t("td",{part:s(o)},e(a)),amount:(a,o)=>t("td",{part:s(o)},e(a)),status:(a,e)=>t("td",{part:s(e),innerHTML:o(a)}),csv:(a,e)=>t("td",{part:s(e)},t("a",{href:"#",onClick:t=>{t.preventDefault(),p(a)}},"CSV"))});export{l as a,r as d,c as p}
@@ -0,0 +1 @@
1
+ import{r as e,h as n,H as i,g as t}from"./p-2783e363.js";import{F as o}from"./p-4d916b2d.js";import{p as r}from"./p-af620972.js";import{a}from"./p-4cc3c7f9.js";import{i as s,b as c,a as u,c as d,l as f}from"./p-ef4c49b9.js";import"./p-f20b6ce1.js";var l,m={exports:{}};l=m,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,i,t=0,o=!1,r=!1,a=7,s="[iFrameSizer]",c=s.length,u=null,d=window.requestAnimationFrame,f=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},h=null,w=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){z("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),b={};window.jQuery!==e&&((i=window.jQuery).fn?i.fn.iFrameResize||(i.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,i){H(i,e)})).end()}):x("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof e&&e.amd?e([],q):l.exports=q(),window.iFrameResize=window.iFrameResize||q()}function g(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function p(e,n,i){e.addEventListener(n,i,!1)}function v(e,n,i){e.removeEventListener(n,i,!1)}function y(e){return m[e]?m[e].log:o}function k(e,n){I("log",e,n,y(e))}function x(e,n){I("info",e,n,y(e))}function z(e,n){I("warn",e,n,!0)}function I(e,n,i,t){!0===t&&"object"==typeof window.console&&console[e](function(e){return s+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}(n),i)}function M(e){function n(){i("Height"),i("Width"),C((function(){E(L),T(P),h("onResized",L)}),L,"init")}function i(e){var n=Number(m[P]["max"+e]),i=Number(m[P]["min"+e]),t=e.toLowerCase(),o=Number(L[t]);k(P,"Checking "+t+" is in range "+i+"-"+n),o<i&&(o=i,k(P,"Set "+t+" to min value")),o>n&&(o=n,k(P,"Set "+t+" to max value")),L[t]=""+o}function t(e){return H.slice(H.indexOf(":")+a+e)}function o(e,n){var i,t;i=function(){var i,t;W("Send Page Info","pageInfo:"+(i=document.body.getBoundingClientRect(),t=L.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-i.top,10),offsetLeft:parseInt(t.left-i.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},b[t=n]||(b[t]=setTimeout((function(){b[t]=null,i()}),32))}function r(e){var n=e.getBoundingClientRect();return R(P),{x:Math.floor(Number(n.left)+Number(u.x)),y:Math.floor(Number(n.top)+Number(u.y))}}function d(e){var n=e?r(L.iframe):{x:0,y:0},i={x:Number(L.width)+n.x,y:Number(L.height)+n.y};k(P,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(u=i,f(),k(P,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):z(P,"Unable to scroll to requested position, window.parentIFrame not found")}function f(){!1===h("onScroll",u)?S():T(P)}function l(e){var n={};if(0===Number(L.width)&&0===Number(L.height)){var i=t(9).split(":");n={x:i[1],y:i[0]}}else n={x:L.width,y:L.height};h(e,{iframe:L.iframe,screenX:Number(n.x),screenY:Number(n.y),type:L.type})}function h(e,n){return F(P,e,n)}var w,g,y,I,M,j,H=e.data,L={},P=null;"[iFrameResizerChild]Ready"===H?function(){for(var e in m)W("iFrame requested init",A(e),m[e].iframe,e)}():s===(""+H).slice(0,c)&&H.slice(c).split(":")[0]in m?(I=(y=H.slice(c).split(":"))[1]?parseInt(y[1],10):0,M=m[y[0]]&&m[y[0]].iframe,j=getComputedStyle(M),L={iframe:M,id:y[0],height:I+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(j)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(j),width:y[2],type:y[3]},m[P=L.id]&&(m[P].loaded=!0),(g=L.type in{true:1,false:1,undefined:1})&&k(P,"Ignoring init message from meta parent page"),!g&&function(e){var n=!0;return m[e]||(n=!1,z(L.type+" No settings for "+e+". Message was: "+H)),n}(P)&&(k(P,"Received: "+H),w=!0,null===L.iframe&&(z(P,"IFrame ("+L.id+") not found"),w=!1),w&&function(){var n,i=e.origin,t=m[P]&&m[P].checkOrigin;if(t&&""+i!="null"&&!(t.constructor===Array?function(){var e=0,n=!1;for(k(P,"Checking connection is from allowed list of origins: "+t);e<t.length;e++)if(t[e]===i){n=!0;break}return n}():(k(P,"Checking connection is from: "+(n=m[P]&&m[P].remoteHost)),i===n)))throw new Error("Unexpected message received from: "+i+" for "+L.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(m[P]&&m[P].firstRun&&m[P]&&(m[P].firstRun=!1),L.type){case"close":O(L.iframe);break;case"message":c=t(6),k(P,"onMessage passed: {iframe: "+L.iframe.id+", message: "+c+"}"),h("onMessage",{iframe:L.iframe,message:JSON.parse(c)}),k(P,"--");break;case"mouseenter":l("onMouseEnter");break;case"mouseleave":l("onMouseLeave");break;case"autoResize":m[P].autoResize=JSON.parse(t(9));break;case"scrollTo":d(!1);break;case"scrollToOffset":d(!0);break;case"pageInfo":o(m[P]&&m[P].iframe,P),function(){function e(e,t){function r(){m[i]?o(m[i].iframe,i):n()}["scroll","resize"].forEach((function(n){k(i,e+n+" listener for sendPageInfo"),t(window,n,r)}))}function n(){e("Remove ",v)}var i=P;e("Add ",p),m[i]&&(m[i].stopPageInfo=n)}();break;case"pageInfoStop":m[P]&&m[P].stopPageInfo&&(m[P].stopPageInfo(),delete m[P].stopPageInfo);break;case"inPageLink":i=t(9).split("#")[1]||"",a=decodeURIComponent(i),(s=document.getElementById(a)||document.getElementsByName(a)[0])?(e=r(s),k(P,"Moving to in page link (#"+i+") at x: "+e.x+" y: "+e.y),u={x:e.x,y:e.y},f(),k(P,"--")):window.top===window.self?k(P,"In page link #"+i+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(i):k(P,"In page link #"+i+" not found and window.parentIFrame not found");break;case"reset":N(L);break;case"init":n(),h("onInit",L.iframe);break;default:0===Number(L.width)&&0===Number(L.height)?z("Unsupported message received ("+L.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,i,a,s,c}())):x(P,"Ignored: "+H)}function F(e,n,i){var t=null,o=null;if(m[e]){if("function"!=typeof(t=m[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=t(i)}return o}function j(e){delete m[e.id]}function O(e){var i=e.id;if(!1!==F(i,"onClose",i)){k(i,"Removing iFrame: "+i);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){z(e)}F(i,"onClosed",i),k(i,"--"),j(e),n&&(n.disconnect(),n=null)}else k(i,"Close iframe cancelled by onClose event")}function R(n){null===u&&k(n,"Get page position: "+(u={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+u.y)}function T(e){null!==u&&(window.scrollTo(u.x,u.y),k(e,"Set page position: "+u.x+","+u.y),S())}function S(){u=null}function N(e){k(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),R(e.id),C((function(){E(e),W("reset","reset",e.iframe,e.id)}),e,"reset")}function E(e){function n(n){r||"0"!==e[n]||(r=!0,k(t,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(m).forEach((function(e){!function(e){function n(n){return"0px"===(m[e]&&m[e].iframe.style[n])}m[e]&&null!==m[e].iframe.offsetParent&&(n("height")||n("width"))&&W("Visibility change","resize",m[e].iframe,e)}(e)}))}function n(n){k("window","Mutation observed: "+n[0].target+" "+n[0].type),L(e,16)}var i,t=g();t&&(i=document.querySelector("body"),new t(n).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function i(i){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",k(e.id,"IFrame ("+t+") "+n+" set to "+e[n]+"px")):k("undefined","messageData id not set")}(i),n(i)}var t=e.iframe.id;m[t]&&(m[t].sizeHeight&&i("height"),m[t].sizeWidth&&i("width"))}function C(e,n,i){i!==n.type&&d&&!window.jasmine?(k(n.id,"Requesting animation frame"),d(e)):e()}function W(e,n,i,t,o){var r,a=!1;m[t=t||i.id]&&(i&&"contentWindow"in i&&null!==i.contentWindow?(k(t,"["+e+"] Sending msg to iframe["+t+"] ("+n+") targetOrigin: "+(r=m[t]&&m[t].targetOrigin)),i.contentWindow.postMessage(s+n,r)):z(t,"["+e+"] IFrame("+t+") not found"),o&&m[t]&&m[t].warningTimeout&&(m[t].msgTimeout=setTimeout((function(){!m[t]||m[t].loaded||a||(a=!0,z(t,"IFrame has not responded within "+m[t].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[t].warningTimeout)))}function A(e){return e+":"+m[e].bodyMarginV1+":"+m[e].sizeWidth+":"+m[e].log+":"+m[e].interval+":"+m[e].enablePublicMethods+":"+m[e].autoResize+":"+m[e].bodyMargin+":"+m[e].heightCalculationMethod+":"+m[e].bodyBackground+":"+m[e].bodyPadding+":"+m[e].tolerance+":"+m[e].inPageLinks+":"+m[e].resizeFrom+":"+m[e].widthCalculationMethod+":"+m[e].mouseEvents}function H(i,r){function a(e){var n=e.split("Callback");if(2===n.length){var i="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[i]=this[e],delete this[e],z(u,"Deprecated: '"+e+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}var s,c,u=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(i.id=(n=r&&r.id||w.id+t++,null!==document.getElementById(n)&&(n+=t++),e=n),o=(r||{}).log,k(e,"Added missing iframe ID: "+e+" ("+i.src+")")),e}(i.id);u in m&&"iFrameResizer"in i?z(u,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},m[u]=Object.create(null),m[u].iframe=i,m[u].firstRun=!0,m[u].remoteHost=i.src&&i.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(a,e),function(e){for(var n in w)Object.prototype.hasOwnProperty.call(w,n)&&(m[u][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:w[n])}(e),m[u]&&(m[u].targetOrigin=!0===m[u].checkOrigin?""===(n=m[u].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(r),function(){switch(k(u,"IFrame scrolling "+(m[u]&&m[u].scrolling?"enabled":"disabled")+" for "+u),i.style.overflow=!1===(m[u]&&m[u].scrolling)?"hidden":"auto",m[u]&&m[u].scrolling){case"omit":break;case!0:i.scrolling="yes";break;case!1:i.scrolling="no";break;default:i.scrolling=m[u]?m[u].scrolling:"no"}}(),function(){function e(e){var n=m[u][e];1/0!==n&&0!==n&&(i.style[e]="number"==typeof n?n+"px":n,k(u,"Set "+e+" = "+i.style[e]))}function n(e){if(m[u]["min"+e]>m[u]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(m[u]&&m[u].bodyMargin)&&"0"!==(m[u]&&m[u].bodyMargin)||(m[u].bodyMarginV1=m[u].bodyMargin,m[u].bodyMargin=m[u].bodyMargin+"px"),s=A(u),(c=g())&&(n=function(e){if(!i.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===i&&O(i)}))}))}));return n.observe(i.parentNode,{childList:!0}),n}(c)),p(i,"load",(function(){W("iFrame.onload",s,i,e,!0),(!m[u]||!m[u].firstRun)&&m[u]&&m[u].heightCalculationMethod in f&&N({iframe:i,height:0,width:0,type:"init"})})),W("init",s,i,e,!0),m[u]&&(m[u].iframe.iFrameResizer={close:O.bind(null,m[u].iframe),removeListeners:j.bind(null,m[u].iframe),resize:W.bind(null,"Window resize","resize",m[u].iframe),moveToAnchor:function(e){W("Move to anchor","moveToAnchor:"+e,m[u].iframe,u)},sendMessage:function(e){W("Send Message","message:"+(e=JSON.stringify(e)),m[u].iframe,u)}}))}function L(e,n){null===h&&(h=setTimeout((function(){h=null,e()}),n))}function P(){"hidden"!==document.visibilityState&&(k("document","Trigger event: Visibility change"),L((function(){V("Tab Visible","resize")}),16))}function V(e,n){Object.keys(m).forEach((function(i){(function(e){return m[e]&&"parent"===m[e].resizeFrom&&m[e].autoResize&&!m[e].firstRun})(i)&&W(e,n,m[i].iframe,i)}))}function q(){function n(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),H(n,e),i.push(n))}var i;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!d;e+=1)d=window[n[e]+"RequestAnimationFrame"];d?d=d.bind(window):k("setup","RequestAnimationFrame not supported")}(),p(window,"message",M),p(window,"resize",(function(){k("window","Trigger event: resize"),L((function(){V("Window resize","resize")}),16)})),p(document,"visibilitychange",P),p(document,"-webkit-visibilitychange",P),function(t,o){switch(i=[],function(e){e&&e.enablePublicMethods&&z("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(t),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),n.bind(e,t));break;case"object":n(t,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return i}}}();const h=m.exports;class w{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const i=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(i,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((i=>{const t=n=>{n.data.eventType===e&&(window.removeEventListener("message",t),i(n.data.data))};window.addEventListener("message",t),this.postMessage(e,n)}))}}const b=class{constructor(n){e(this,n),this.dispatchMessageEvent=e=>{const{eventType:n,data:i}=e.data;(null==i?void 0:i.id)===this.inputId&&("focused"===n&&(this.isFocused=!0),"blurred"===n&&(this.isFocused=!1))},this.isFocused=!1,this.isValid=!0,this.errorText=void 0,this.iframeLoaded=!1,this.inputId=void 0,this.label=void 0,this.iframeOrigin=void 0}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async validate(){const e=await this.frameService.postMessageWithResponseListener("validate");return this.isValid=e.isValid,this.errorText=e.error.message,e}async tokenize(e,n,i){return this.frameService.postMessageWithResponseListener("tokenize",{clientId:e,paymentMethodMetadata:n,account:i,componentVersion:r.version})}initializeFrameCommunicationService(){var e;this.frameService=new w(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}get part(){return this.isFocused&&!this.isValid?s:this.isValid?this.isFocused?u:d:c}get style(){return this.isFocused?this.isValid?a.focused:a.focusedAndInvalid:null}get urlParams(){const e=Object.fromEntries(Object.entries(a.fontStyles).map((([e,n])=>[e,btoa(String(n))])));return new URLSearchParams(e).toString()}render(){return n(i,{key:"c0eca45af47958837580cc400e923135db070e75",class:"form-group d-flex flex-column"},n("div",{key:"374d757e67e81deec4d7e20255710d5256983cb6",style:{visibility:this.iframeLoaded?"visible":"hidden",height:this.iframeLoaded?"auto":"0"}},n("label",{key:"6054db3876710458e93dd8a11f7354d737e737d2",class:"form-label",htmlFor:"",part:f},this.label||""),n("div",{key:"2ccc97c83798026666fc0abc4d23e6d83b19b2fa",class:"p-0 d-flex form-control "+(this.isValid?"":"is-invalid"),part:this.part,style:Object.assign(Object.assign({},this.style),{overflow:"hidden"})},n("iframe",{key:"c71d778eaf2008ee4a2b237842e1dbec7abf5d43",id:this.inputId,name:this.inputId,src:`${this.iframeOrigin}?${this.urlParams}`,ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},width:"100%",onLoad:()=>{h({log:!1,onResized:()=>{this.iframeLoaded=!0}},this.iframeElement)}})),n(o,{key:"6f756711fccec14a52fa55e9faf0638546e80f77",errorText:this.errorText,name:this.inputId})))}get el(){return t(this)}};export{b as iframe_input}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-2783e363.js";import{C as e}from"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{C as o,a as r}from"./p-14c91ffd.js";import{g as a,a as c}from"./p-8115b2f4.js";import{c as h,J as n}from"./p-174b151e.js";import{c as p}from"./p-5a62fca2.js";import{C as d}from"./p-54d36e97.js";import{m,S as f}from"./p-cb00d4f3.js";import{S as u}from"./p-bfe9748b.js";import{d as b}from"./p-6feeb9f2.js";import"./p-abdbcd8e.js";import"./p-af620972.js";import"./p-0e180654.js";import"./p-f4722957.js";import"./p-ef4c49b9.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.getCheckouts=void 0,this.getSubAccounts=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin=p.proxyApiOrigin,this.columns=b}componentWillLoad(){h(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){this.accountId&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i,apiOrigin:r})=>async({params:h,onSuccess:n,onError:p})=>{var d,m;try{const f=await i.fetchCheckouts(t,s,h,r);if(f.error)return p({error:a(f.error),code:c(null===(m=f.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},f.page_info);n({checkouts:(null===(d=f.data)||void 0===d?void 0:d.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new d,apiOrigin:this.apiOrigin}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new f,apiOrigin:this.apiOrigin}))}render(){return i(u,{key:"f96da05a065d13a24cb4de2cc114a0dc10833ab2"},i("checkouts-list-core",{key:"4e98c537644a3e22fb63d15736f5c22ff26a931f",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_checkouts_list}
@@ -0,0 +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}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-2783e363.js";import"./p-16d2932d.js";import{p as a}from"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{n as i,o as r}from"./p-ef4c49b9.js";import{T as h,a as c,b as o,c as d,d as n}from"./p-8c7a81c1.js";import{t as b,a as p}from"./p-4a576796.js";import{o as f,q as m}from"./p-8da3667c.js";import"./p-abdbcd8e.js";import"./p-90dc2f2c.js";import"./p-f20b6ce1.js";const u=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:h.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:h.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:h.row,data:e})},this.getTerminals=void 0,this.getSubAccounts=void 0,this.columns=void 0,this.terminals=[],this.terminalsTable=void 0,this.subAccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=a,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new c(this.terminals,this.columns,b,p),this.getTerminals&&this.getSubAccounts&&this.fetchData(),f("set",(()=>{this.pagingParams={}})),f("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.requestParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get requestParams(){return Object.assign(Object.assign({},m),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e("div",{key:"a293f76edb152df4636282a1bdb64526743ba62b"},e("div",{key:"91c87549f3da243bcbc5e8c3f30690b4f3568312",class:"table-wrapper"},e("table",{key:"b8666ef07d7cddecfd576520004cb9ae369816d0",class:"table table-hover",part:i},e("thead",{key:"82f882e9c8ad8cb8b86fdd8054b2db202f31aee6",class:"table-head sticky-top"},e("tr",{key:"db96b27008b1cdfb394f7480d163ba98a564e654",class:"table-light text-nowrap"},this.terminalsTable.columnData.map((t=>t)))),e("tbody",{key:"afe168ca0facd25953f8e23c82ee40b37ff56418",class:"table-body"},e(o,{key:"fa4a276edaa35687efd922d987b51248670aad4c",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(d,{key:"a7450b6fc3b6e659c46c57c4bb1e06c8102da809",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(n,{key:"89894e4c62d1ec4b4d10f1ca8fd50098e655dcf1",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"ba93ff43a8562b4e77b48a0a026d75d9f84e5249",class:"sticky-bottom"},e("tr",{key:"bd75b89450eec1db55c7e92b2e79eab559605bba",class:"table-light align-middle"},e("td",{key:"b27b8a0bbe6c2d38393684752809d5e909948567",part:r,colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"959649b1f3c8099c5b929543557823eccd3e9dd9",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{queryParams:["updateOnPropChange"],pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{u as terminals_list_core}
@@ -0,0 +1 @@
1
+ const e={name:"@justifi/webcomponents",version:"5.0.0-rc-1",description:"JustiFi Web Components",collection:"dist/collection/collection-manifest.json",main:"dist/index.cjs.js",module:"dist/module/index.js",types:"dist/module/index.d.ts",repository:{type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"},homepage:"https://storybook.justifi.ai/?path=/docs/introduction--docs",publishConfig:{registry:"https://registry.npmjs.org"},files:["dist/"],scripts:{build:"stencil build --docs",dev:"stencil build --watch",lint:"eslint . --max-warnings 0",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",generate:"stencil generate",test:"TZ=utc stencil test --spec","test:watch":"TZ=utc stencil test --spec --watchAll","test:file":"stencil test --spec --watch --"},dependencies:{"@popperjs/core":"^2.11.8","@stencil/core":"^4.0.5","@stencil/store":"^2.0.8",bootstrap:"^5.2.3","chart.js":"^4.4.1","date-fns":"^2.30.0","dinero.js":"^1.9.1","iframe-resizer":"^4.3.7",imask:"^7.6.0",lodash:"^4.17.21",rxjs:"^7.8.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"},devDependencies:{"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@rollup/plugin-replace":"^6.0.1","@stencil/sass":"^3.0.1","@types/jest":"27.0.3","@types/react":"^18.0.37","@types/react-dom":"^18.0.11",dotenv:"^16.3.1",jest:"^29.7.0","jest-cli":"^29.7.0","jest-environment-node":"^29.7.0","ts-jest":"^29.1.2"},license:"MIT",gitHead:"507bac1d941eae6e1f56e185ecd9bc9d22637783"};export{e as p}
@@ -1 +1 @@
1
- import{a as e,b as t}from"./p-3c654c07.js";import{S as s}from"./p-6078a370.js";import{b as a,a as r,r as n,s as i,c}from"./p-1815a43b.js";const l=e=>""===e?null:e,o=/^\d+$/,u=/P\.?\s?O\.?\s?Box|Postal\sBox/i;var d,m;!function(e){e.voidedCheck="voided_check",e.balanceSheet="balance_sheet",e.bankStatement="bank_statement",e.governmentId="government_id",e.profitAndLossStatement="profit_and_loss_statement",e.taxReturn="tax_return",e.other="other"}(d||(d={})),function(e){e.pending="pending",e.uploaded="uploaded",e.canceled="canceled",e.needed="needed"}(m||(m={}));class h{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class b{constructor(e,t){this.file=e.file,this.fileString=this.getFileString(),this.document_type=e.document_type,this.presigned_url=null,this.record_data={business_id:t,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}getFileString(){let e=new FileReader;return e.onload=e=>{this.fileString=e.target.result},e.readAsDataURL(this.file),this.fileString}setPresignedUrl(e){this.presigned_url=e}}const p=e().email("Enter valid email").transform(l),v=e().matches(/^\d{10}$/,"Enter valid phone number").transform(l),E=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),S=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),N=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(l),g=e().oneOf(a.map((e=>e.value)),"Select business classification").transform(l),f=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").transform(l),_=e().matches(o,"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(l),y=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(l),w=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),x=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").transform(l),A=t=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${t} must be at least 18 years old`,(e=>{const t=new Date(e),s=new Date;return s.setFullYear(s.getFullYear()-18),t<=s})).transform(l),$=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(l),I=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=>!u.test(e))).transform(l),P=e().max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!u.test(e))).transform(l),D=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").transform(l),B=e().oneOf(s.map((e=>e.value)),"Select state").transform(l),j=e().matches(/^[0-9]{5}$/,"Enter valid postal code").transform(l),z=e().matches(o,"Enter valid revenue").transform(l),k=e().matches(o,"Enter valid payment volume").transform(l),q=e().oneOf(r.map((e=>e.value)),"Select when service is received").transform(l),C=e().oneOf(n.map((e=>e.value)),"Select recurring payments").transform(l),F=e().when("business_recurring_payments",{is:e=>"Yes"===e,then:e=>e.required("Enter recurring payments percentage"),otherwise:e=>e.nullable()}).transform(l),O=e().oneOf(i.map((e=>e.value)),"Select seasonal business").transform(l),R=e().transform(l),T=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),Z=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),G=e().oneOf(c.map((e=>e.value)),"Select account type").transform(l),H=e().min(8,"Account number must be at least 8 digits").max(17,"Account number must be less than 17 digits").matches(o,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(l),J=e().length(9,"Routing number must be 9 digits").matches(o,"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 t=Array.from(String(e),Number);return 9===t.length&&0==(3*(t[0]+t[3]+t[6])+7*(t[1]+t[4]+t[7])+(t[2]+t[5]+t[8]))%10})(e))).transform(l),K=t(),L=K,M=K,U=K,Y=(e,t)=>e.some((e=>e.document_type===d.voidedCheck))||t?K.nullable():K.required("Please select one or more files"),Q=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.bankStatement))||s?K.nullable():a>=25e4&&!s?K.required("Please select one or more files"):void 0},V=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.balanceSheet))||s?K.nullable():a>=1e6&&!s?K.required("Please select one or more files"):void 0},W=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.profitAndLossStatement))||s?K.nullable():a>=1e6&&!s?K.required("Please select one or more files"):void 0};export{Z as A,G as B,H as C,J as D,Y as E,M as F,L as G,U as H,V as I,Q as J,W as K,b as L,h as M,d as N,g as a,E as b,y as c,S as d,p as e,k as f,q as g,C as h,f as i,F as j,P as k,I as l,D as m,B as n,R as o,v as p,j as q,z as r,O as s,_ as t,w as u,x as v,N as w,A as x,$ as y,T as z}
1
+ import{a as e,b as t}from"./p-5844a0f0.js";import{S as s}from"./p-6078a370.js";import{b as a,a as r,r as n,s as i,c}from"./p-0ea387a2.js";const l=e=>""===e?null:e,o=/^\d+$/,u=/P\.?\s?O\.?\s?Box|Postal\sBox/i;var d,m;!function(e){e.voidedCheck="voided_check",e.balanceSheet="balance_sheet",e.bankStatement="bank_statement",e.governmentId="government_id",e.profitAndLossStatement="profit_and_loss_statement",e.taxReturn="tax_return",e.other="other"}(d||(d={})),function(e){e.pending="pending",e.uploaded="uploaded",e.canceled="canceled",e.needed="needed"}(m||(m={}));class h{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class b{constructor(e,t){this.file=e.file,this.fileString=this.getFileString(),this.document_type=e.document_type,this.presigned_url=null,this.record_data={business_id:t,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}getFileString(){let e=new FileReader;return e.onload=e=>{this.fileString=e.target.result},e.readAsDataURL(this.file),this.fileString}setPresignedUrl(e){this.presigned_url=e}}const p=e().email("Enter valid email").transform(l),v=e().matches(/^\d{10}$/,"Enter valid phone number").transform(l),E=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),S=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),N=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(l),f=e().oneOf(a.map((e=>e.value)),"Select business classification").transform(l),g=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").transform(l),_=e().matches(o,"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(l),y=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(l),w=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),x=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").transform(l),A=t=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${t} must be at least 18 years old`,(e=>{const t=new Date(e),s=new Date;return s.setFullYear(s.getFullYear()-18),t<=s})).transform(l),$=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(l),I=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=>!u.test(e))).transform(l),P=e().max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!u.test(e))).transform(l),D=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").transform(l),B=e().oneOf(s.map((e=>e.value)),"Select state").transform(l),j=e().matches(/^[0-9]{5}$/,"Enter valid postal code").transform(l),z=e().matches(o,"Enter valid revenue").transform(l),k=e().matches(o,"Enter valid payment volume").transform(l),q=e().oneOf(r.map((e=>e.value)),"Select when service is received").transform(l),C=e().oneOf(n.map((e=>e.value)),"Select recurring payments").transform(l),F=e().when("business_recurring_payments",{is:e=>"Yes"===e,then:e=>e.required("Enter recurring payments percentage"),otherwise:e=>e.nullable()}).transform(l),O=e().oneOf(i.map((e=>e.value)),"Select seasonal business").transform(l),R=e().transform(l),T=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),Z=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),G=e().oneOf(c.map((e=>e.value)),"Select account type").transform(l),H=e().min(7,"Account number must be at least 7 digits").max(17,"Account number must be less than 17 digits").matches(o,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(l),J=e().length(9,"Routing number must be 9 digits").matches(o,"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 t=Array.from(String(e),Number);return 9===t.length&&0==(3*(t[0]+t[3]+t[6])+7*(t[1]+t[4]+t[7])+(t[2]+t[5]+t[8]))%10})(e))).transform(l),K=t(),L=K,M=K,U=K,Y=(e,t)=>e.some((e=>e.document_type===d.voidedCheck))||t?K.nullable():K.required("Please select one or more files"),Q=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.bankStatement))||s?K.nullable():a>=25e4&&!s?K.required("Please select one or more files"):void 0},V=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.balanceSheet))||s?K.nullable():a>=1e6&&!s?K.required("Please select one or more files"):void 0},W=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.profitAndLossStatement))||s?K.nullable():a>=1e6&&!s?K.required("Please select one or more files"):void 0};export{Z as A,G as B,H as C,J as D,Y as E,M as F,L as G,U as H,V as I,Q as J,W as K,b as L,h as M,d as N,f as a,E as b,y as c,S as d,p as e,k as f,q as g,C as h,g as i,F as j,P as k,I as l,D as m,B as n,R as o,v as p,j as q,z as r,O as s,_ as t,w as u,x as v,N as w,A as x,$ as y,T as z}
@@ -0,0 +1 @@
1
+ import{r as l,h as i,H as t}from"./p-2783e363.js";import{c as e,D as s}from"./p-9c2e00cc.js";import{i as v,s as d,h as o}from"./p-f4722957.js";import"./p-ef4c49b9.js";const u=class{constructor(i){l(this,i),this.additionalQuestions=void 0}render(){var l,d;return v(this.additionalQuestions)?null:i(t,null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:null===(l=this.additionalQuestions.business_revenue)||void 0===l?void 0:l.toString()}),i(e,{title:"Business Payment Volume",value:null===(d=this.additionalQuestions.business_payment_volume)||void 0===d?void 0:d.toString()})))))}},a=class{constructor(i){l(this,i),this.business=void 0}render(){var l,v,o,u,a,n,r,c;return this.business?i(t,null,i(s,{sectionTitle:"Business Generic Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:null===(l=this.business)||void 0===l?void 0:l.legal_name}),i(e,{title:"Doing Business As (DBA)",value:null===(v=this.business)||void 0===v?void 0:v.doing_business_as}),i(e,{title:"Business Classification",value:d(null===(o=this.business)||void 0===o?void 0:o.classification)}),i(e,{title:"Industry",value:null===(u=this.business)||void 0===u?void 0:u.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:null===(a=this.business)||void 0===a?void 0:a.tax_id}),i(e,{title:"Website URL",value:null===(n=this.business)||void 0===n?void 0:n.website_url}),i(e,{title:"Email Address",value:null===(r=this.business)||void 0===r?void 0:r.email}),i(e,{title:"Phone Number",value:null===(c=this.business)||void 0===c?void 0:c.phone}))))):null}},n=class{constructor(i){l(this,i),this.legalAddress=void 0}render(){var l,d,o,u,a,n,r;return v(this.legalAddress)?null:i(t,null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(d=this.legalAddress)||void 0===d?void 0:d.line1}),i(e,{title:"Address Line 2",value:null===(o=this.legalAddress)||void 0===o?void 0:o.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(u=this.legalAddress)||void 0===u?void 0:u.city}),i(e,{title:"State",value:null===(a=this.legalAddress)||void 0===a?void 0:a.state}),i(e,{title:"Postal Code",value:null===(r=null===(n=this.legalAddress)||void 0===n?void 0:n.postal_code)||void 0===r?void 0:r.toString()})))))}},r=class{constructor(i){l(this,i),this.owners=void 0}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,v,d,u,a;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-table gap-2 w-100 mt-3"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:o(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(v=null==l?void 0:l.address)||void 0===v?void 0:v.line2}),i(e,{title:"City",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.city}),i(e,{title:"State",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.state}),i(e,{title:"Zip",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.postal_code}))]}))):null}},c=class{constructor(i){l(this,i),this.representative=void 0}render(){var l,d,u,a,n,r,c,h,m,p,b,g,w,D;return v(this.representative)?null:i(t,null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(d=this.representative)||void 0===d?void 0:d.id}),i(e,{title:"Address",value:null===(a=null===(u=this.representative)||void 0===u?void 0:u.address)||void 0===a?void 0:a.line1}),i(e,{title:"Created At",value:(null===(n=this.representative)||void 0===n?void 0:n.created_at)&&o(null===(r=this.representative)||void 0===r?void 0:r.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(c=this.representative)||void 0===c?void 0:c.title}),i(e,{title:"Is Owner?",value:null===(h=this.representative)||void 0===h?void 0:h.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&o(new Date(Number(null===(m=this.representative)||void 0===m?void 0:m.dob_year),Number(null===(p=this.representative)||void 0===p?void 0:p.dob_month)-1,Number(null===(b=this.representative)||void 0===b?void 0:b.dob_day)))}),i(e,{title:"Email",value:null===(g=this.representative)||void 0===g?void 0:g.email}),i(e,{title:"Phone",value:null===(w=this.representative)||void 0===w?void 0:w.phone}),i(e,{title:"Updated At",value:this.representative&&o(null===(D=this.representative)||void 0===D?void 0:D.updated_at)})))))}};export{u as additional_questions_details,a as generic_info_details,n as legal_address_details,r as owner_details,c as representative_details}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-2783e363.js";import{c as t,a as i,F as c}from"./p-5844a0f0.js";import{B as d}from"./p-ef4c49b9.js";const s=t({additional_statement:i().nullable()});var o,l;!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"}(o||(o={}));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}}!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"}(l||(l={}));const r=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[],this.acceptedTerms=!1,this.acceptedTermsErrorText=void 0}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e;return a("div",{key:"b87dba6b6f0cfd8be3bd034996ad0848f31df3da"},a("div",{key:"b2af872dd182dede7cb2c697aa8297acc49eb6c1",class:"row gy-3"},a("div",{key:"34815036600a5030f388c0dcb840ab7f4db0b66f",class:"col-12"},a("h2",{key:"c7922a6dd81112aefc028d1f7662aed993cd4c58",class:"h5",part:d},"Additional Evidence")),a("div",{key:"1e760ad49f1a7494181b4658f8e73a3f6ede2a22",class:"col-12"},a("form-control-textarea",{key:"7226c1a3ef90a9f2db529f20470678bf8277738f",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:"cbf8886bd32f9859e6cbe75d5c499ea3eb23aea3",class:"col-12"},a("form-control-file-v2",{key:"05d52880aa75af84bab03122ef39c2fbc0d0cf7b",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:this.handleFileSelection}))))}},f=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.cancellationPolicy)))}componentWillLoad(){this.form=new c(f)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"e4e9bc25a430c01e60345523341a52e343d8ada8"},a("div",{key:"3a22fcf75e13235e40b30686cc953a5c7963f676",class:"row gy-3"},a("div",{key:"88cfd3d1fdc811e20367caa917ee88a1531fae96",class:"col-12"},a("h2",{key:"56030d5fb77119d324b33c8290e62ca220425afc",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"816d7868525662ae14d549852c816840933a15e6",class:"col-12"},a("form-control-textarea",{key:"165335b23db8c03976da96f1a369f28f1ad46505",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:"b7f0333145ef1c1f3a1a6bd69f0e01a199f09da6",class:"col-12"},a("form-control-textarea",{key:"a456a76fd6745bd6386787e69fee81b7b48c7dc2",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:"929e6f0e5fee8e6c4be4558e82b22a15806c1723",class:"col-12"},a("form-control-file-v2",{key:"661504e19c6d2304a93a95f716b6b215832c4a90",label:"Upload Cancellation Policy",name:"cancellation_policy_file",onChange:this.handleFileSelection}))))}},b=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),u=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.customerDetails)))}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:"f3b9a18d93cea09e6c9f7a134ed566ad12887839"},a("div",{key:"f9d3594930e9ae5d5907462bbe76c242019a19bc",class:"row gy-3"},a("div",{key:"809f4e25c8a4d8652ae4711a33321b17d35f5796",class:"col-12"},a("h2",{key:"56f784698452620cb30b532840b02ee2ca3b6a7a",class:"h5",part:d},"Customer Details")),a("div",{key:"6775574f0e8f1047a11e3e9594f9f237aee09aa2",class:"col-12"},a("form-control-text",{key:"4fc621b96baed074292ccbe8507a58d18f005237",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:"f57ace60afc3a74711dc98ea054345413ff51d48",class:"col-12"},a("form-control-text",{key:"31a88ff6476ecd98fd6def5c39778940b448da51",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:"3ea9b1729c1a516fdbf33b28674e33a5ec5f200a",class:"col-12"},a("form-control-textarea",{key:"6eb19b40b3a514db9e1ead3e57832da37d791db6",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:"363371261754410c5548fc9286a5d9edbec5e4a0",class:"col-12"},a("form-control-file-v2",{key:"bf3976ab48c50bb7cd6fd7c29a39a36bee8a70c5",label:"Customer Signature",name:"customer_signature",onChange:this.handleFileSelection})),a("div",{key:"7a85113b3a4c95e0571759f040a63757eead2788",class:"col-12"},a("form-control-file-v2",{key:"686b82077404ce7c345a51b4c572452fa0491b7d",label:"Customer Communication",name:"customer_communication",onChange:this.handleFileSelection}))))}},v=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),p=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.duplicateCharge)))}componentWillLoad(){this.form=new c(v)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"a6729feaab17744bbd3c256b5bdee89939c9be55"},a("div",{key:"d3729ddaa5983766f87aa634399704c52ee4979c",class:"row gy-3"},a("div",{key:"9c9288b63b688e83f53353a110ec31c078068312",class:"col-12"},a("h2",{key:"431878c838002b8a15d202793ab3701cbc81df7e",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"f8b9a8dbb78777cb9c63a4296e41fdfe4edb2c7c",class:"col-12"},a("form-control-text",{key:"8dc4ddad5ab952a09c99deef8734374891075575",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:"c5445211510dbdf1f6b547ef82ce128d3a316554",class:"col-12"},a("form-control-textarea",{key:"a650bf8ca839ae86d00d9df0eb77815a63ebafd6",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:"47625dc4a02045230234220e24295b8260f38043",class:"col-12"},a("form-control-file-v2",{key:"242b9ae244cc8fbad3721053a50042a76d8f40ad",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:this.handleFileSelection}))))}},m=t({customer_purchase_ip_address:i().nullable()}),y=class{constructor(a){e(this,a),this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.electronicEvidence)))}componentWillLoad(){this.form=new c(m)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e;return a("div",{key:"5521599b8e6d23412a06b4a9c6f5360f92ec9c12"},a("div",{key:"b1863623b1ffa07c18940d744184c7678515e1f3",class:"row gy-3"},a("div",{key:"131410f3882f96e0346776db4c213e2ef17b546e",class:"col-12"},a("h2",{key:"30120f59c8a7896f5294b4ccaf09165c1d28771e",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"7211111acc93fd40b4140d49d4b1e3d268d13829",class:"col-12"},a("form-control-text",{key:"eeb3aeaa550569db5c977f3d2ef68b879be446c6",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:"7f98aae20a9f87d4f4f0b42f86350bb1468cc767",class:"col-12"},a("form-control-file-v2",{key:"342b76753a12784852f2eb087941796874b90d39",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:this.handleFileSelection,errorText:this.errors.activity_log}))))}},_=t({product_description:i().nullable(),service_date:i().nullable()}),k=class{constructor(a){e(this,a),this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.productOrService)))}componentWillLoad(){this.form=new c(_)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"ad4e3c33f8bc1c295ea51257afc41e6247537022"},a("div",{key:"a87f06ff09eadf63ee358a84759d6bd9223c76ec",class:"row gy-3"},a("div",{key:"a3053e1d5e2192786fab4592a3ef5a6614fa0de3",class:"col-12"},a("h2",{key:"e2b97bf1d8e6f964306f1d2292f00daf5f4e997d",class:"h5",part:d},"Product & Service Details")),a("div",{key:"0f4e0c72a0b145ec689e7f0a96df86d10be38423",class:"col-12"},a("form-control-text",{key:"dd6a94690ac454a35d3b9ddeadde3ae5926ae170",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:"d9c437dfc8e02bfacc27143e16b753b7940db409",class:"col-12"},a("form-control-text",{key:"42e638a983cf713f0055d409b305b8fca2ac6bda",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:"df1f9b6153433e60973723ab20139fe3c739a4cf",class:"col-12"},a("form-control-file-v2",{key:"6a03cdafcf9d8a4913eaf9b876500792022c58f4",label:"Service Documentation",name:"service_documentation",onChange:this.handleFileSelection,errorText:this.errors.service_documentation}))))}},g=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),x=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.refundPolicy)))}componentWillLoad(){this.form=new c(g)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"54885e971c2d21be1d3c2a4654616e6406a425e5"},a("div",{key:"aefe693ee221d72f44a87806ca5ddc257bbf4073",class:"row gy-3"},a("div",{key:"5a4c220a9cbcd8accd8dd3a3e9c5db74f520f483",class:"col-12"},a("h2",{key:"fee6747bc31eeee7648c5af1fec4e86dd33d2f21",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"70f2d38f553a77c6e5a4e2ec25bed11665cd56e5",class:"col-12"},a("form-control-textarea",{key:"a0635424932726c980d68bad1c7758159d382575",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:"b63f29f32b4a2bb35ec2dbeb2d26695bd58d2c32",class:"col-12"},a("form-control-textarea",{key:"41787fd17b44810eb19945ce7ea5f340ee40ea98",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:"acff917b1af1babc1f93cf0541d9d2f22f8f4460",class:"col-12"},a("form-control-file-v2",{key:"52bee3670ca1cae28fd2d07033796245b13306d4",label:"Upload Refund Policy",name:"refund_policy",onChange:this.handleFileSelection})),a("div",{key:"6e63ed1828f61cfec3882fba0ce0439668111a7a",class:"col-12"},a("form-control-file-v2",{key:"99a13cfd6c0e662794c013368209c88065a7e404",label:"Upload Receipt",name:"receipt",onChange:this.handleFileSelection}))))}},j=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),w=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.shippingDetails)))}componentWillLoad(){this.form=new c(j)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"b2d81ec85e534890a691547a2ec8d28dcc61e784"},a("div",{key:"3b49e0e3647e66196f586c2e58699e878658c9f3",class:"row gy-3"},a("div",{key:"ba6f52f0c2a44c7a39641cb9cb51bf799892a78f",class:"col-12"},a("h2",{key:"70a108aa928d392d47bf72a32c3a2c71538fc068",class:"h5",part:d},"Shipping Details")),a("div",{key:"f5e1b4c54c4d59b7b558fe817d23e5cbc71acec1",class:"col-12"},a("form-control-text",{key:"32da6155a22359d291506e7d864b0b09fda34f99",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:"55a1082190a09f2723ffbcb6075c18a094ddf5e5",class:"col-12"},a("form-control-text",{key:"63e0883c7a8f9e01396b7c395eeac7d8612d8dcf",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:"0d2f87a06e90191c274d96aed25dbc106ea3c347",class:"col-12"},a("form-control-date",{key:"33e5da0712b67146147eea9a2de66f0b05d64a69",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:"9aff91d4c4055cfe55a35fc28cf07167b4767992",class:"col-12"},a("form-control-textarea",{key:"840beacaf520e1155cc2acc21d7e2eeaba2dacca",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:"244eb1c41ee0a26c3ba8b7754404b9c736f0e1a2",class:"col-12"},a("form-control-file-v2",{key:"e09e9d04a0a5bb26232271fa29dbc5fcf1549dec",label:"Shipping Documentation",name:"shipping_documentation",onChange:this.handleFileSelection}))))}};export{r as justifi_additional_statement,h as justifi_cancellation_policy,u as justifi_customer_details,p as justifi_duplicate_charge,y as justifi_electronic_evidence,k as justifi_product_or_service,x as justifi_refund_policy,w as justifi_shipping_details}
@@ -0,0 +1 @@
1
+ import{h as o}from"./p-2783e363.js";import{e as r}from"./p-ef4c49b9.js";const s=s=>o("h1",{class:`header-1 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -0,0 +1 @@
1
+ import{c as e,a as t}from"./p-5844a0f0.js";import{l as a,k as n,m as s,n as r,q as o,u as i,v as l,e as c,p as m,x as d,y as p}from"./p-af834eb8.js";const u=i=>{const l=e({line1:a.required("Enter street address"),line2:n.nullable(),city:s.required("Enter city"),state:r.required("Select state"),postal_code:o.required("Enter postal code"),country:t().required("Select country")}),c=e({line1:a.nullable(),line2:n.nullable(),city:s.nullable(),state:r.nullable(),postal_code:o.nullable(),country:t().required("Select country")});return i?c:l},f=(a,n)=>{const s=e({name:i.required(`Enter ${a} name`),title:l.required(`Enter ${a} title`),email:c.required(`Enter ${a} email`),phone:m.required("Enter phone number"),dob_full:d(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:p,address:u(n)}),r=e({name:i.required(`Enter ${a} name`),title:l.nullable(),email:c.nullable(),phone:m.nullable(),dob_full:d(a).nullable(),ssn_last4:t().nullable(),identification_number:p.nullable(),address:u(n)});return n?r:s};export{u as a,f as i}