@justifi/webcomponents 4.21.0 → 4.22.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 (596) hide show
  1. package/dist/cjs/{Analytics-880f5152.js → Analytics-0d90fa0d.js} +2 -2
  2. package/dist/cjs/{Api-b98b256f.js → Api-f5280a80.js} +6 -4
  3. package/dist/cjs/Checkout-a528241d.js +85 -0
  4. package/dist/cjs/SubAccount-cc95a4a0.js +106 -0
  5. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  6. package/dist/cjs/{business-additional-questions-schema-26b0eecb.js → business-additional-questions-schema-19f08938.js} +2 -2
  7. package/dist/cjs/business-details-core.cjs.entry.js +1 -1
  8. package/dist/cjs/{business-identity-schema-503ecb77.js → business-identity-schema-a8bb2276.js} +2 -2
  9. package/dist/cjs/{business.service-031c0084.js → business.service-7faffa0b.js} +1 -1
  10. package/dist/cjs/{check-pkg-version-54f7dfda.js → check-pkg-version-fafb21ae.js} +1 -1
  11. package/dist/cjs/checkout.service-160f3a9c.js +36 -0
  12. package/dist/cjs/checkouts-list-core.cjs.entry.js +144 -0
  13. package/dist/cjs/checkouts-list-filters.cjs.entry.js +35 -0
  14. package/dist/cjs/checkouts-table-24c065ff.js +47 -0
  15. package/dist/cjs/{custom-popper_5.cjs.entry.js → custom-popper_4.cjs.entry.js} +4 -19
  16. package/dist/cjs/dispute-30c806f6.js +10 -0
  17. package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
  18. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +11 -11
  19. package/dist/cjs/form-control-date.cjs.entry.js +83 -0
  20. package/dist/cjs/form-control-error-text.cjs.entry.js +21 -0
  21. package/dist/cjs/form-control-file.cjs.entry.js +1 -1
  22. package/dist/cjs/form-control-help-text.cjs.entry.js +21 -0
  23. package/dist/cjs/{form-control-help-text_2.cjs.entry.js → form-control-monetary.cjs.entry.js} +1 -16
  24. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +99 -0
  25. package/dist/cjs/form-control-number.cjs.entry.js +1 -1
  26. package/dist/cjs/form-control-radio.cjs.entry.js +44 -0
  27. package/dist/cjs/form-control-textarea.cjs.entry.js +49 -0
  28. package/dist/cjs/{get-payout-csv-a82b2c1c.js → get-payout-csv-12dc9540.js} +3 -2
  29. package/dist/cjs/get-subaccounts-8f7a930f.js +54 -0
  30. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
  31. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +10 -9
  32. package/dist/cjs/justifi-additional-statement_11.cjs.entry.js +173 -0
  33. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  34. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1678 -13
  35. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
  36. package/dist/cjs/justifi-business-form.cjs.entry.js +11 -10
  37. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  39. package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -8
  40. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -25
  41. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +121 -0
  42. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  43. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +28 -0
  44. package/dist/cjs/justifi-dispute-management.cjs.entry.js +16 -0
  45. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  46. package/dist/cjs/{justifi-new-payment-method_4.cjs.entry.js → justifi-new-payment-method_5.cjs.entry.js} +18 -1
  47. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -7
  48. package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -7
  49. package/dist/cjs/justifi-payment-form.cjs.entry.js +10 -9
  50. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +3 -2
  51. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
  52. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -11
  53. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -8
  54. package/dist/cjs/justifi-payouts-list.cjs.entry.js +11 -13
  55. package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -4
  56. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
  57. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -6
  58. package/dist/cjs/justifi-terminals-list.cjs.entry.js +138 -0
  59. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +59 -0
  60. package/dist/cjs/loader.cjs.js +1 -1
  61. package/dist/{esm/payments-list-filters_2.entry.js → cjs/lodash-dbf6a6a4.js} +2 -57
  62. package/dist/cjs/{package-cb1b1015.js → package-596f102c.js} +1 -1
  63. package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
  64. package/dist/cjs/{payment.service-6f79aad2.js → payment.service-83da752a.js} +3 -2
  65. package/dist/cjs/payments-list-core.cjs.entry.js +7 -7
  66. package/dist/cjs/payments-list-filters.cjs.entry.js +35 -0
  67. package/dist/cjs/payments-status-58e45b2e.js +26 -0
  68. package/dist/cjs/payout-details-core.cjs.entry.js +4 -3
  69. package/dist/cjs/payouts-list-core.cjs.entry.js +7 -23
  70. package/dist/cjs/payouts-status-2f7be07d.js +24 -0
  71. package/dist/cjs/{schema-validations-0a7e46a3.js → schema-validations-184a4356.js} +1 -1
  72. package/dist/cjs/table-20e9a053.js +23 -0
  73. package/dist/cjs/table-filters-menu.cjs.entry.js +35 -0
  74. package/dist/cjs/terminals-list-core.cjs.entry.js +143 -0
  75. package/dist/cjs/terminals-list-filters.cjs.entry.js +32 -0
  76. package/dist/cjs/terminals-table-99a7b87b.js +32 -0
  77. package/dist/cjs/{utils-52fb7fa1.js → utils-3d84442d.js} +0 -44
  78. package/dist/cjs/webcomponents.cjs.js +1 -1
  79. package/dist/collection/api/Api.js +6 -4
  80. package/dist/collection/api/Checkout.js +77 -1
  81. package/dist/collection/api/SubAccount.js +33 -0
  82. package/dist/collection/api/Terminal.js +25 -0
  83. package/dist/collection/api/get-subaccounts.js +31 -0
  84. package/dist/collection/api/index.js +2 -0
  85. package/dist/collection/api/services/checkout.service.js +10 -1
  86. package/dist/collection/api/services/subaccounts.service.js +13 -0
  87. package/dist/collection/api/services/terminal.service.js +20 -0
  88. package/dist/collection/collection-manifest.json +37 -15
  89. package/dist/collection/components/billing-form/billing-form.js +3 -3
  90. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
  91. package/dist/collection/components/business-details/business-details-core.js +1 -1
  92. package/dist/collection/components/business-details/business-details.js +1 -1
  93. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +1 -1
  94. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -1
  95. package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
  96. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
  97. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
  98. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +3 -3
  99. package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
  100. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -2
  101. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +4 -4
  102. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +2 -2
  103. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +2 -2
  104. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +3 -3
  105. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +2 -2
  106. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -3
  107. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -3
  108. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +3 -3
  109. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +2 -2
  110. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -2
  111. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -3
  112. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  113. package/dist/collection/components/checkout/checkout-core.js +1 -1
  114. package/dist/collection/components/checkouts-list/checkouts-list-core.js +257 -0
  115. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +84 -0
  116. package/dist/collection/components/checkouts-list/checkouts-list.js +210 -0
  117. package/dist/collection/components/checkouts-list/checkouts-status.js +13 -0
  118. package/dist/collection/components/checkouts-list/checkouts-table.js +20 -0
  119. package/dist/collection/components/checkouts-list/get-checkouts.js +31 -0
  120. package/dist/collection/components/dispute-management/counter-dispute/additional-statement.js +8 -0
  121. package/dist/collection/components/dispute-management/counter-dispute/cancellation-policy.js +8 -0
  122. package/dist/collection/components/dispute-management/counter-dispute/counter-dispute.js +90 -0
  123. package/dist/collection/components/dispute-management/counter-dispute/customer-details.js +8 -0
  124. package/dist/collection/components/dispute-management/counter-dispute/dispute-reason.js +8 -0
  125. package/dist/collection/components/dispute-management/counter-dispute/duplicate-charge.js +8 -0
  126. package/dist/collection/components/dispute-management/counter-dispute/electronic-evidence.js +8 -0
  127. package/dist/collection/components/dispute-management/counter-dispute/product-or-service.js +16 -0
  128. package/dist/collection/components/dispute-management/counter-dispute/refund-policy.js +8 -0
  129. package/dist/collection/components/dispute-management/counter-dispute/shipping-details.js +12 -0
  130. package/dist/collection/components/dispute-management/dispute-management-core.js +53 -0
  131. package/dist/collection/components/dispute-management/dispute-management.js +8 -0
  132. package/dist/collection/components/dispute-management/dispute-notification.js +48 -0
  133. package/dist/collection/components/dispute-management/dispute.js +8 -0
  134. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
  135. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +1 -1
  136. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  137. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  138. package/dist/collection/components/payment-details/payment-details-core.js +10 -9
  139. package/dist/collection/components/payment-details/payment-details.js +1 -1
  140. package/dist/collection/components/payment-form/payment-form.js +3 -3
  141. package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
  142. package/dist/collection/components/payments-list/payments-list-core.js +5 -5
  143. package/dist/collection/components/payments-list/payments-list-filters.js +1 -1
  144. package/dist/collection/components/payments-list/payments-list.js +3 -5
  145. package/dist/collection/components/payments-list/payments-status.js +23 -0
  146. package/dist/collection/components/payout-details/payout-details-core.js +4 -3
  147. package/dist/collection/components/payout-details/payout-details.js +1 -1
  148. package/dist/collection/components/payouts-list/payouts-list-core.js +6 -22
  149. package/dist/collection/components/payouts-list/payouts-list.js +4 -7
  150. package/dist/collection/components/payouts-list/payouts-status.js +21 -0
  151. package/dist/collection/components/refund-form/refund-form.js +2 -2
  152. package/dist/collection/components/terminals-list/get-terminal-detail.js +29 -0
  153. package/dist/collection/components/terminals-list/get-terminals.js +31 -0
  154. package/dist/collection/components/terminals-list/terminals-list-core.js +257 -0
  155. package/dist/collection/components/terminals-list/terminals-list-filters.js +81 -0
  156. package/dist/collection/components/terminals-list/terminals-list.js +211 -0
  157. package/dist/collection/components/terminals-list/terminals-status.js +11 -0
  158. package/dist/collection/components/terminals-list/terminals-table.js +15 -0
  159. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.css +9 -0
  160. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +276 -0
  161. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  162. package/dist/collection/{components → ui-components}/details/details.js +1 -1
  163. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  164. package/dist/collection/{components → ui-components}/form/form-control-checkbox.js +1 -1
  165. package/dist/collection/{components → ui-components}/form/form-control-date.js +21 -2
  166. package/dist/collection/{components → ui-components}/form/form-control-file.js +1 -1
  167. package/dist/collection/{components → ui-components}/form/form-control-monetary.js +1 -1
  168. package/dist/collection/{components → ui-components}/form/form-control-number-masked.js +1 -1
  169. package/dist/collection/{components → ui-components}/form/form-control-number.js +1 -1
  170. package/dist/collection/ui-components/form/form-control-radio.js +209 -0
  171. package/dist/collection/{components → ui-components}/form/form-control-select.js +1 -1
  172. package/dist/collection/{components → ui-components}/form/form-control-text.js +1 -1
  173. package/dist/collection/ui-components/form/form-control-textarea.js +229 -0
  174. package/dist/collection/ui-components/index.js +1 -0
  175. package/dist/collection/utils/table.js +19 -0
  176. package/dist/collection/utils/utils.js +0 -42
  177. package/dist/docs.json +9587 -6724
  178. package/dist/esm/{Analytics-3dde5a98.js → Analytics-a46c0c00.js} +2 -2
  179. package/dist/esm/{Api-c8abc2e0.js → Api-391d00e2.js} +6 -4
  180. package/dist/esm/Checkout-0b4086f8.js +83 -0
  181. package/dist/esm/SubAccount-7f7e4c56.js +102 -0
  182. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  183. package/dist/esm/{business-additional-questions-schema-a5583cf8.js → business-additional-questions-schema-97f52255.js} +2 -2
  184. package/dist/esm/business-details-core.entry.js +1 -1
  185. package/dist/esm/{business-identity-schema-9e3269fb.js → business-identity-schema-434e16bc.js} +2 -2
  186. package/dist/esm/{business.service-1f589b6e.js → business.service-97a3da69.js} +1 -1
  187. package/dist/esm/{check-pkg-version-4d144b72.js → check-pkg-version-ed46fa3b.js} +1 -1
  188. package/dist/esm/checkout.service-ef1549c6.js +34 -0
  189. package/dist/esm/checkouts-list-core.entry.js +140 -0
  190. package/dist/esm/checkouts-list-filters.entry.js +31 -0
  191. package/dist/esm/checkouts-table-62c44909.js +43 -0
  192. package/dist/esm/{custom-popper_5.entry.js → custom-popper_4.entry.js} +5 -19
  193. package/dist/esm/dispute-4d2e0a04.js +10 -0
  194. package/dist/esm/form-alert_5.entry.js +3 -3
  195. package/dist/esm/form-control-checkbox_9.entry.js +11 -11
  196. package/dist/esm/form-control-date.entry.js +79 -0
  197. package/dist/esm/form-control-error-text.entry.js +17 -0
  198. package/dist/esm/form-control-file.entry.js +1 -1
  199. package/dist/esm/form-control-help-text.entry.js +17 -0
  200. package/dist/esm/{form-control-help-text_2.entry.js → form-control-monetary.entry.js} +3 -17
  201. package/dist/esm/form-control-number-masked_2.entry.js +94 -0
  202. package/dist/esm/form-control-number.entry.js +1 -1
  203. package/dist/esm/form-control-radio.entry.js +40 -0
  204. package/dist/esm/form-control-textarea.entry.js +45 -0
  205. package/dist/esm/{get-payout-csv-d29146ee.js → get-payout-csv-70974763.js} +3 -2
  206. package/dist/esm/get-subaccounts-16c8ce40.js +51 -0
  207. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  208. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -9
  209. package/dist/esm/justifi-additional-statement_11.entry.js +159 -0
  210. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  211. package/dist/esm/justifi-billing-form_2.entry.js +1679 -14
  212. package/dist/esm/justifi-business-details.entry.js +6 -6
  213. package/dist/esm/justifi-business-form.entry.js +11 -10
  214. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  215. package/dist/esm/justifi-card-form.entry.js +3 -3
  216. package/dist/esm/justifi-checkout-core.entry.js +2 -7
  217. package/dist/esm/justifi-checkout.entry.js +8 -23
  218. package/dist/esm/justifi-checkouts-list.entry.js +117 -0
  219. package/dist/esm/justifi-details.entry.js +2 -2
  220. package/dist/esm/justifi-dispute-management-core.entry.js +24 -0
  221. package/dist/esm/justifi-dispute-management.entry.js +12 -0
  222. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  223. package/dist/esm/{justifi-new-payment-method_4.entry.js → justifi-new-payment-method_5.entry.js} +18 -2
  224. package/dist/esm/justifi-owner-form_3.entry.js +7 -7
  225. package/dist/esm/justifi-payment-details.entry.js +8 -7
  226. package/dist/esm/justifi-payment-form.entry.js +10 -9
  227. package/dist/esm/justifi-payment-method-selector.entry.js +3 -2
  228. package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
  229. package/dist/esm/justifi-payments-list.entry.js +10 -11
  230. package/dist/esm/justifi-payout-details.entry.js +8 -7
  231. package/dist/esm/justifi-payouts-list.entry.js +11 -13
  232. package/dist/esm/justifi-refund-form.entry.js +5 -4
  233. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
  234. package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -6
  235. package/dist/esm/justifi-terminals-list.entry.js +134 -0
  236. package/dist/esm/justifi-tokenize-payment-method.entry.js +55 -0
  237. package/dist/esm/loader.js +1 -1
  238. package/dist/{cjs/payments-list-filters_2.cjs.entry.js → esm/lodash-faeb5a52.js} +1 -63
  239. package/dist/esm/{package-4ab64620.js → package-6c5cc174.js} +1 -1
  240. package/dist/esm/payment-details-core.entry.js +10 -9
  241. package/dist/esm/{payment.service-f9c3e9d7.js → payment.service-2f67410b.js} +3 -2
  242. package/dist/esm/payments-list-core.entry.js +6 -6
  243. package/dist/esm/payments-list-filters.entry.js +31 -0
  244. package/dist/esm/payments-status-4937a170.js +24 -0
  245. package/dist/esm/payout-details-core.entry.js +4 -3
  246. package/dist/esm/payouts-list-core.entry.js +7 -23
  247. package/dist/esm/payouts-status-cd58e525.js +22 -0
  248. package/dist/esm/{schema-validations-e725d701.js → schema-validations-c1728516.js} +1 -1
  249. package/dist/esm/table-5da154e7.js +21 -0
  250. package/dist/esm/table-filters-menu.entry.js +31 -0
  251. package/dist/esm/terminals-list-core.entry.js +139 -0
  252. package/dist/esm/terminals-list-filters.entry.js +28 -0
  253. package/dist/esm/terminals-table-059c473e.js +28 -0
  254. package/dist/esm/{utils-620f2d78.js → utils-3daada24.js} +1 -43
  255. package/dist/esm/webcomponents.js +1 -1
  256. package/dist/module/Api.js +6 -4
  257. package/dist/module/Checkout.js +83 -0
  258. package/dist/module/SubAccount.js +102 -0
  259. package/dist/module/additional-statement.js +63 -0
  260. package/dist/module/billing-form.js +1 -1
  261. package/dist/module/business-additional-questions-form-step-core.js +1 -1
  262. package/dist/module/business-bank-account-form-step.js +3 -2
  263. package/dist/module/business-core-info-form-step-core.js +1 -1
  264. package/dist/module/business-core-info.js +1 -1
  265. package/dist/module/business-document-upload-form-step.js +1 -1
  266. package/dist/module/business-document-upload-input-group.js +1 -1
  267. package/dist/module/business-documents-on-file.js +1 -1
  268. package/dist/module/business-representative-form-inputs.js +1 -1
  269. package/dist/module/business-representative-form-step-core.js +1 -1
  270. package/dist/module/business-terms-conditions-form-step.js +3 -2
  271. package/dist/module/cancellation-policy.js +63 -0
  272. package/dist/module/checkout-core.js +2 -7
  273. package/dist/module/checkout.service.js +34 -0
  274. package/dist/module/checkouts-list-core.d.ts +11 -0
  275. package/dist/module/checkouts-list-core.js +6 -0
  276. package/dist/module/checkouts-list-core2.js +250 -0
  277. package/dist/module/checkouts-list-filters.d.ts +11 -0
  278. package/dist/module/checkouts-list-filters.js +6 -0
  279. package/dist/module/checkouts-list-filters2.js +80 -0
  280. package/dist/module/counter-dispute.js +189 -0
  281. package/dist/module/custom-popper2.js +2 -2
  282. package/dist/module/customer-details.js +69 -0
  283. package/dist/module/details.js +1 -1
  284. package/dist/module/dispute-management-core.js +160 -0
  285. package/dist/module/dispute-notification.js +36 -0
  286. package/dist/module/dispute-reason.js +45 -0
  287. package/dist/module/duplicate-charge.js +69 -0
  288. package/dist/module/electronic-evidence.js +63 -0
  289. package/dist/module/exported-parts.js +1 -34
  290. package/dist/module/form-control-checkbox2.js +1 -1
  291. package/dist/module/form-control-date2.js +5 -3
  292. package/dist/module/form-control-file2.js +1 -1
  293. package/dist/module/form-control-monetary2.js +1 -1
  294. package/dist/module/form-control-number-masked2.js +1 -1
  295. package/dist/module/form-control-number.js +1 -1
  296. package/dist/module/form-control-radio.d.ts +11 -0
  297. package/dist/module/form-control-radio.js +6 -0
  298. package/dist/module/form-control-radio2.js +78 -0
  299. package/dist/module/form-control-select2.js +1 -1
  300. package/dist/module/form-control-text2.js +1 -1
  301. package/dist/module/form-control-textarea.d.ts +11 -0
  302. package/dist/module/form-control-textarea.js +6 -0
  303. package/dist/module/form-control-textarea2.js +84 -0
  304. package/dist/module/get-payout-csv.js +2 -1
  305. package/dist/module/get-subaccounts.js +51 -0
  306. package/dist/module/gross-payment-chart-core2.js +2 -2
  307. package/dist/module/identity-address-form.js +1 -1
  308. package/dist/module/justifi-additional-statement.d.ts +11 -0
  309. package/dist/module/justifi-additional-statement.js +6 -0
  310. package/dist/module/justifi-business-form.js +3 -2
  311. package/dist/module/justifi-cancellation-policy.d.ts +11 -0
  312. package/dist/module/justifi-cancellation-policy.js +6 -0
  313. package/dist/module/justifi-checkout.js +1 -22
  314. package/dist/module/justifi-checkouts-list.d.ts +11 -0
  315. package/dist/module/justifi-checkouts-list.js +191 -0
  316. package/dist/module/justifi-counter-dispute.d.ts +11 -0
  317. package/dist/module/justifi-counter-dispute.js +6 -0
  318. package/dist/module/justifi-customer-details.d.ts +11 -0
  319. package/dist/module/justifi-customer-details.js +6 -0
  320. package/dist/module/justifi-dispute-management-core.d.ts +11 -0
  321. package/dist/module/justifi-dispute-management-core.js +6 -0
  322. package/dist/module/justifi-dispute-management.d.ts +11 -0
  323. package/dist/module/justifi-dispute-management.js +157 -0
  324. package/dist/module/justifi-dispute-notification.d.ts +11 -0
  325. package/dist/module/justifi-dispute-notification.js +6 -0
  326. package/dist/module/justifi-dispute-reason.d.ts +11 -0
  327. package/dist/module/justifi-dispute-reason.js +6 -0
  328. package/dist/module/justifi-duplicate-charge.d.ts +11 -0
  329. package/dist/module/justifi-duplicate-charge.js +6 -0
  330. package/dist/module/justifi-electronic-evidence.d.ts +11 -0
  331. package/dist/module/justifi-electronic-evidence.js +6 -0
  332. package/dist/module/justifi-payment-details.js +2 -1
  333. package/dist/module/justifi-payment-form.js +5 -4
  334. package/dist/module/justifi-payments-list.js +5 -6
  335. package/dist/module/justifi-payout-details.js +2 -1
  336. package/dist/module/justifi-payouts-list.js +5 -7
  337. package/dist/module/justifi-product-or-service.d.ts +11 -0
  338. package/dist/module/justifi-product-or-service.js +6 -0
  339. package/dist/module/justifi-refund-form.js +3 -2
  340. package/dist/module/justifi-refund-policy.d.ts +11 -0
  341. package/dist/module/justifi-refund-policy.js +6 -0
  342. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  343. package/dist/module/justifi-shipping-details.d.ts +11 -0
  344. package/dist/module/justifi-shipping-details.js +6 -0
  345. package/dist/module/justifi-terminals-list.d.ts +11 -0
  346. package/dist/module/justifi-terminals-list.js +216 -0
  347. package/dist/module/justifi-tokenize-payment-method.d.ts +11 -0
  348. package/dist/module/justifi-tokenize-payment-method.js +153 -0
  349. package/dist/module/legal-address-form-step-core.js +1 -1
  350. package/dist/module/legal-address-form.js +1 -1
  351. package/dist/module/lodash.js +17204 -0
  352. package/dist/module/owner-form-core2.js +1 -1
  353. package/dist/module/owner-form-inputs2.js +1 -1
  354. package/dist/module/package.js +1 -1
  355. package/dist/module/payment-details-core2.js +9 -8
  356. package/dist/module/payment-method-form.js +1 -1
  357. package/dist/module/payment-method-selector.js +3 -2
  358. package/dist/module/payment.service.js +2 -1
  359. package/dist/module/payments-list-core2.js +7 -6
  360. package/dist/module/payments-list-filters2.js +2 -17204
  361. package/dist/module/payments-status.js +24 -0
  362. package/dist/module/payout-details-core2.js +3 -2
  363. package/dist/module/payouts-list-core2.js +8 -23
  364. package/dist/module/payouts-status.js +22 -0
  365. package/dist/module/product-or-service.js +60 -0
  366. package/dist/module/refund-policy.js +63 -0
  367. package/dist/module/saved-payment-method.js +1 -1
  368. package/dist/module/season-interruption-insurance-core.js +3 -3
  369. package/dist/module/sezzle-payment-method.js +1 -1
  370. package/dist/module/shipping-details.js +79 -0
  371. package/dist/module/table-filters-menu2.js +1 -1
  372. package/dist/module/table-loading-state.js +34 -0
  373. package/dist/module/table.js +21 -0
  374. package/dist/module/terminals-list-core.d.ts +11 -0
  375. package/dist/module/terminals-list-core.js +6 -0
  376. package/dist/module/terminals-list-core2.js +241 -0
  377. package/dist/module/terminals-list-filters.d.ts +11 -0
  378. package/dist/module/terminals-list-filters.js +6 -0
  379. package/dist/module/terminals-list-filters2.js +83 -0
  380. package/dist/module/utils2.js +1 -43
  381. package/dist/types/api/Api.d.ts +1 -1
  382. package/dist/types/api/Checkout.d.ts +74 -2
  383. package/dist/types/api/SubAccount.d.ts +51 -0
  384. package/dist/types/api/Terminal.d.ts +48 -0
  385. package/dist/types/api/get-subaccounts.d.ts +10 -0
  386. package/dist/types/api/index.d.ts +2 -0
  387. package/dist/types/api/services/checkout.service.d.ts +3 -1
  388. package/dist/types/api/services/subaccounts.service.d.ts +7 -0
  389. package/dist/types/api/services/terminal.service.d.ts +9 -0
  390. package/dist/types/components/billing-form/billing-form.d.ts +1 -1
  391. package/dist/types/components/business-forms/business-form/additional-questions/additional-questions.d.ts +1 -1
  392. package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +1 -1
  393. package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +1 -1
  394. package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +1 -1
  395. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +1 -1
  396. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +1 -1
  397. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +1 -1
  398. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +1 -1
  399. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +1 -1
  400. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +1 -1
  401. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +1 -1
  402. package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +1 -1
  403. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +1 -1
  404. package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +1 -1
  405. package/dist/types/components/business-forms/utils/input-handlers.d.ts +1 -1
  406. package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +35 -0
  407. package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +15 -0
  408. package/dist/types/components/checkouts-list/checkouts-list.d.ts +44 -0
  409. package/dist/types/components/checkouts-list/checkouts-status.d.ts +1 -0
  410. package/dist/types/components/checkouts-list/checkouts-table.d.ts +17 -0
  411. package/dist/types/components/checkouts-list/get-checkouts.d.ts +10 -0
  412. package/dist/types/components/dispute-management/counter-dispute/additional-statement.d.ts +3 -0
  413. package/dist/types/components/dispute-management/counter-dispute/cancellation-policy.d.ts +3 -0
  414. package/dist/types/components/dispute-management/counter-dispute/counter-dispute.d.ts +14 -0
  415. package/dist/types/components/dispute-management/counter-dispute/customer-details.d.ts +3 -0
  416. package/dist/types/components/dispute-management/counter-dispute/dispute-reason.d.ts +3 -0
  417. package/dist/types/components/dispute-management/counter-dispute/duplicate-charge.d.ts +3 -0
  418. package/dist/types/components/dispute-management/counter-dispute/electronic-evidence.d.ts +3 -0
  419. package/dist/types/components/dispute-management/counter-dispute/product-or-service.d.ts +4 -0
  420. package/dist/types/components/dispute-management/counter-dispute/refund-policy.d.ts +3 -0
  421. package/dist/types/components/dispute-management/counter-dispute/shipping-details.d.ts +3 -0
  422. package/dist/types/components/dispute-management/dispute-management-core.d.ts +7 -0
  423. package/dist/types/components/dispute-management/dispute-management.d.ts +3 -0
  424. package/dist/types/components/dispute-management/dispute-notification.d.ts +8 -0
  425. package/dist/types/components/dispute-management/dispute.d.ts +7 -0
  426. package/dist/types/components/payments-list/payments-status.d.ts +1 -0
  427. package/dist/types/components/payouts-list/payouts-list-core.d.ts +1 -2
  428. package/dist/types/components/payouts-list/payouts-status.d.ts +1 -0
  429. package/dist/types/components/terminals-list/get-terminal-detail.d.ts +8 -0
  430. package/dist/types/components/terminals-list/get-terminals.d.ts +10 -0
  431. package/dist/types/components/terminals-list/terminals-list-core.d.ts +35 -0
  432. package/dist/types/components/terminals-list/terminals-list-filters.d.ts +13 -0
  433. package/dist/types/components/terminals-list/terminals-list.d.ts +44 -0
  434. package/dist/types/components/terminals-list/terminals-status.d.ts +1 -0
  435. package/dist/types/components/terminals-list/terminals-table.d.ts +13 -0
  436. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +22 -0
  437. package/dist/types/components.d.ts +740 -12
  438. package/dist/types/{components → ui-components}/form/form-control-date.d.ts +2 -1
  439. package/dist/types/ui-components/form/form-control-radio.d.ts +19 -0
  440. package/dist/types/ui-components/form/form-control-textarea.d.ts +20 -0
  441. package/dist/types/ui-components/index.d.ts +1 -0
  442. package/dist/types/utils/table.d.ts +14 -0
  443. package/dist/types/utils/utils.d.ts +0 -2
  444. package/dist/webcomponents/p-02cf5e6f.js +1 -0
  445. package/dist/webcomponents/p-088826fe.entry.js +1 -0
  446. package/dist/webcomponents/p-0de9e97b.entry.js +1 -0
  447. package/dist/webcomponents/{p-7d3be485.js → p-0e180654.js} +1 -1
  448. package/dist/webcomponents/{p-1d29488a.entry.js → p-0eb0d813.entry.js} +1 -1
  449. package/dist/webcomponents/{p-a3265844.entry.js → p-11ff46df.entry.js} +1 -1
  450. package/dist/webcomponents/p-16d2932d.js +1 -0
  451. package/dist/webcomponents/p-16fc16aa.entry.js +1 -0
  452. package/dist/webcomponents/p-18afa159.entry.js +1 -0
  453. package/dist/webcomponents/p-1ab798f4.entry.js +1 -0
  454. package/dist/webcomponents/p-1c44712a.entry.js +1 -0
  455. package/dist/webcomponents/p-206fde40.js +1 -0
  456. package/dist/webcomponents/p-269ba6fe.entry.js +1 -0
  457. package/dist/webcomponents/{p-1e178dd1.entry.js → p-286a4e72.entry.js} +2 -2
  458. package/dist/webcomponents/p-2c2b57b3.js +1 -0
  459. package/dist/webcomponents/{p-61514f78.entry.js → p-2c8c214f.entry.js} +1 -1
  460. package/dist/webcomponents/p-32a782c8.entry.js +1 -0
  461. package/dist/webcomponents/p-366c49b6.entry.js +1 -0
  462. package/dist/webcomponents/{p-277aee05.js → p-3d3468a8.js} +1 -1
  463. package/dist/webcomponents/{p-5df26e65.entry.js → p-3fbbdbba.entry.js} +1 -1
  464. package/dist/webcomponents/p-4422ca71.entry.js +1 -0
  465. package/dist/webcomponents/p-47dbe17d.js +1 -0
  466. package/dist/webcomponents/p-4b14abbf.entry.js +1 -0
  467. package/dist/webcomponents/p-4c0c88e4.entry.js +1 -0
  468. package/dist/webcomponents/p-56d84fb3.entry.js +1 -0
  469. package/dist/webcomponents/p-5f10b3e9.entry.js +1 -0
  470. package/dist/webcomponents/p-638c6285.entry.js +1 -0
  471. package/dist/webcomponents/{p-122c2a11.entry.js → p-69ea7334.entry.js} +1 -1
  472. package/dist/webcomponents/p-6caf6f09.entry.js +1 -0
  473. package/dist/webcomponents/{p-da1d174d.entry.js → p-72819173.entry.js} +1 -1
  474. package/dist/webcomponents/{p-799ee8c3.js → p-74822344.js} +1 -1
  475. package/dist/webcomponents/{p-bc9ae56f.js → p-7fea661a.js} +1 -1
  476. package/dist/webcomponents/p-8480e3ab.entry.js +1 -0
  477. package/dist/webcomponents/p-84987cd4.entry.js +1 -0
  478. package/dist/webcomponents/p-869ae0c7.entry.js +1 -0
  479. package/dist/webcomponents/p-8e228e5a.js +1 -0
  480. package/dist/webcomponents/p-8ec550d7.entry.js +1 -0
  481. package/dist/webcomponents/p-8f212554.entry.js +1 -0
  482. package/dist/webcomponents/p-8f26db63.entry.js +1 -0
  483. package/dist/webcomponents/p-907ba963.js +1 -0
  484. package/dist/webcomponents/p-919e6e67.entry.js +1 -0
  485. package/dist/webcomponents/p-927a147c.entry.js +1 -0
  486. package/dist/webcomponents/p-935188c8.entry.js +1 -0
  487. package/dist/webcomponents/p-9f56ad71.js +1 -0
  488. package/dist/webcomponents/p-a3143d62.entry.js +1 -0
  489. package/dist/webcomponents/{p-ca8e126f.js → p-a8f22d4d.js} +1 -1
  490. package/dist/webcomponents/p-ad443df5.entry.js +1 -0
  491. package/dist/webcomponents/p-b16269d7.js +1 -0
  492. package/dist/webcomponents/p-bba131f9.entry.js +1 -0
  493. package/dist/webcomponents/p-bfb990fc.entry.js +1 -0
  494. package/dist/webcomponents/p-c1bf9285.entry.js +1 -0
  495. package/dist/webcomponents/p-c30c8f39.entry.js +1 -0
  496. package/dist/webcomponents/p-c4df0098.entry.js +1 -0
  497. package/dist/webcomponents/p-c5c6e61d.js +1 -0
  498. package/dist/webcomponents/{p-5022f21c.js → p-c65b78cf.js} +1 -1
  499. package/dist/webcomponents/p-c6be72b0.js +10 -0
  500. package/dist/webcomponents/p-c717646f.entry.js +1 -0
  501. package/dist/webcomponents/{p-08d88fd2.entry.js → p-c8b2f11d.entry.js} +1 -1
  502. package/dist/webcomponents/p-ccbff4fa.entry.js +1 -0
  503. package/dist/webcomponents/p-cd4eaeb7.js +1 -0
  504. package/dist/webcomponents/p-cd7e866c.entry.js +1 -0
  505. package/dist/webcomponents/{p-8f447993.entry.js → p-d2eb61e6.entry.js} +1 -1
  506. package/dist/webcomponents/p-d516e700.js +1 -0
  507. package/dist/webcomponents/p-d5cd727b.entry.js +1 -0
  508. package/dist/webcomponents/p-e07d5e0f.entry.js +1 -0
  509. package/dist/webcomponents/p-e412a713.entry.js +1 -0
  510. package/dist/webcomponents/p-e69b2ff8.entry.js +1 -0
  511. package/dist/webcomponents/p-e6be8845.entry.js +1 -0
  512. package/dist/webcomponents/p-e8797be0.entry.js +1 -0
  513. package/dist/webcomponents/p-eb9ba917.entry.js +1 -0
  514. package/dist/webcomponents/{p-1eb60948.entry.js → p-eeb70281.entry.js} +1 -1
  515. package/dist/webcomponents/p-eee24bb2.entry.js +1 -0
  516. package/dist/webcomponents/{p-cd74be05.entry.js → p-efb56234.entry.js} +1 -1
  517. package/dist/webcomponents/{p-401d6607.js → p-f6f8dabc.js} +1 -1
  518. package/dist/webcomponents/{p-6d4b585d.js → p-fb2005de.js} +1 -1
  519. package/dist/webcomponents/p-fc4de0d2.js +1 -0
  520. package/dist/webcomponents/webcomponents.esm.js +1 -1
  521. package/package.json +1 -1
  522. package/dist/cjs/Payout-a2dd7b01.js +0 -45
  523. package/dist/cjs/form-control-date_3.cjs.entry.js +0 -175
  524. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +0 -1688
  525. package/dist/esm/Payout-dfe15b00.js +0 -43
  526. package/dist/esm/form-control-date_3.entry.js +0 -169
  527. package/dist/esm/justifi-payment-method-form.entry.js +0 -1684
  528. package/dist/module/Payout.js +0 -43
  529. package/dist/webcomponents/p-0c2d91a2.entry.js +0 -1
  530. package/dist/webcomponents/p-11f01df5.entry.js +0 -1
  531. package/dist/webcomponents/p-23f95a19.entry.js +0 -1
  532. package/dist/webcomponents/p-2874d4b2.entry.js +0 -10
  533. package/dist/webcomponents/p-43dfda70.entry.js +0 -1
  534. package/dist/webcomponents/p-55182a59.js +0 -1
  535. package/dist/webcomponents/p-55fe2cf2.entry.js +0 -1
  536. package/dist/webcomponents/p-5e5e8a85.js +0 -1
  537. package/dist/webcomponents/p-605614f2.entry.js +0 -1
  538. package/dist/webcomponents/p-6962044f.entry.js +0 -1
  539. package/dist/webcomponents/p-6a9e908b.entry.js +0 -1
  540. package/dist/webcomponents/p-6ba660f2.entry.js +0 -1
  541. package/dist/webcomponents/p-6e258b5f.entry.js +0 -1
  542. package/dist/webcomponents/p-770f60f9.entry.js +0 -1
  543. package/dist/webcomponents/p-7cb3854c.entry.js +0 -1
  544. package/dist/webcomponents/p-80730b71.entry.js +0 -1
  545. package/dist/webcomponents/p-8f04747b.entry.js +0 -1
  546. package/dist/webcomponents/p-9a37eee5.entry.js +0 -1
  547. package/dist/webcomponents/p-a1d037cb.entry.js +0 -1
  548. package/dist/webcomponents/p-a680c982.entry.js +0 -1
  549. package/dist/webcomponents/p-a765230f.entry.js +0 -1
  550. package/dist/webcomponents/p-b7b18954.entry.js +0 -1
  551. package/dist/webcomponents/p-c241cc62.entry.js +0 -1
  552. package/dist/webcomponents/p-d0ffb01c.entry.js +0 -1
  553. package/dist/webcomponents/p-da316a74.entry.js +0 -1
  554. package/dist/webcomponents/p-db3d1d7d.entry.js +0 -1
  555. package/dist/webcomponents/p-dee2a3f8.entry.js +0 -1
  556. package/dist/webcomponents/p-e3fab0e2.js +0 -1
  557. package/dist/webcomponents/p-e56ade55.js +0 -1
  558. package/dist/webcomponents/p-e927fd5c.entry.js +0 -1
  559. package/dist/webcomponents/p-f3e00572.entry.js +0 -1
  560. package/dist/webcomponents/p-f71a5975.entry.js +0 -1
  561. /package/dist/cjs/{exported-parts-b18c68c2.js → exported-parts-a994d693.js} +0 -0
  562. /package/dist/cjs/{index.esm-52757963.js → index.esm-97cf6825.js} +0 -0
  563. /package/dist/cjs/{utils-c1d2e426.js → utils-189dc30d.js} +0 -0
  564. /package/dist/cjs/{utils-ddacfc44.js → utils-bc03ca40.js} +0 -0
  565. /package/dist/collection/{components → ui-components}/details/utils.js +0 -0
  566. /package/dist/collection/{components → ui-components}/form/form-helpers/form-alert/form-alert.js +0 -0
  567. /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-error-text/form-control-error-text.js +0 -0
  568. /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-help-text/form-control-help-text.js +0 -0
  569. /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-tooltip/form-control-tooltip.js +0 -0
  570. /package/dist/collection/{components → ui-components}/form/form.js +0 -0
  571. /package/dist/collection/{components → ui-components}/form/utils.js +0 -0
  572. /package/dist/collection/{components → ui-components}/table/exported-parts.js +0 -0
  573. /package/dist/esm/{exported-parts-abd4c027.js → exported-parts-70e7a12b.js} +0 -0
  574. /package/dist/esm/{index.esm-fc4f5c0c.js → index.esm-ed37201b.js} +0 -0
  575. /package/dist/esm/{utils-3bb6347a.js → utils-20cdf321.js} +0 -0
  576. /package/dist/esm/{utils-01413a95.js → utils-218275b7.js} +0 -0
  577. /package/dist/types/{components → ui-components}/details/details.d.ts +0 -0
  578. /package/dist/types/{components → ui-components}/details/utils.d.ts +0 -0
  579. /package/dist/types/{components → ui-components}/form/form-control-checkbox.d.ts +0 -0
  580. /package/dist/types/{components → ui-components}/form/form-control-file.d.ts +0 -0
  581. /package/dist/types/{components → ui-components}/form/form-control-monetary.d.ts +0 -0
  582. /package/dist/types/{components → ui-components}/form/form-control-number-masked.d.ts +0 -0
  583. /package/dist/types/{components → ui-components}/form/form-control-number.d.ts +0 -0
  584. /package/dist/types/{components → ui-components}/form/form-control-select.d.ts +0 -0
  585. /package/dist/types/{components → ui-components}/form/form-control-text.d.ts +0 -0
  586. /package/dist/types/{components → ui-components}/form/form-helpers/form-alert/form-alert.d.ts +0 -0
  587. /package/dist/types/{components → ui-components}/form/form-helpers/form-control-error-text/form-control-error-text.d.ts +0 -0
  588. /package/dist/types/{components → ui-components}/form/form-helpers/form-control-help-text/form-control-help-text.d.ts +0 -0
  589. /package/dist/types/{components → ui-components}/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +0 -0
  590. /package/dist/types/{components → ui-components}/form/form.d.ts +0 -0
  591. /package/dist/types/{components → ui-components}/form/utils.d.ts +0 -0
  592. /package/dist/types/{components → ui-components}/table/exported-parts.d.ts +0 -0
  593. /package/dist/webcomponents/{p-2eab3c90.js → p-3c654c07.js} +0 -0
  594. /package/dist/webcomponents/{p-2b6c9c4f.js → p-6cc30da2.js} +0 -0
  595. /package/dist/webcomponents/{p-dce846bf.js → p-a8b4f429.js} +0 -0
  596. /package/dist/webcomponents/{p-8df7bde8.js → p-e3c22aa9.js} +0 -0
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const _package = require('./package-cb1b1015.js');
3
+ const _package = require('./package-596f102c.js');
4
4
  const config = require('./config-05767cba.js');
5
- const Api = require('./Api-b98b256f.js');
5
+ const Api = require('./Api-f5280a80.js');
6
6
 
7
7
  class AnalyticsService {
8
8
  async record(body) {
@@ -78,12 +78,14 @@ const Api = ({ authToken, apiOrigin }) => {
78
78
  'Content-Type': 'application/json',
79
79
  };
80
80
  }
81
- async function makeRequest(endpoint, method, params, body, signal) {
81
+ async function makeRequest(endpoint, method, params, body, signal, headers) {
82
82
  const url = `${apiOrigin}/v1/${endpoint}`;
83
83
  const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;
84
+ const defaultHeaders = await getAuthorizationHeader();
85
+ const mergedHeaders = Object.assign(Object.assign({}, defaultHeaders), headers);
84
86
  const response = await fetch(requestUrl, {
85
87
  method: method,
86
- headers: await getAuthorizationHeader(),
88
+ headers: mergedHeaders,
87
89
  body: body,
88
90
  signal: signal,
89
91
  });
@@ -92,8 +94,8 @@ const Api = ({ authToken, apiOrigin }) => {
92
94
  }
93
95
  handleError(requestUrl);
94
96
  }
95
- async function get(endpoint, params, signal) {
96
- return makeRequest(endpoint, 'GET', params, null, signal);
97
+ async function get(endpoint, params, signal, headers) {
98
+ return makeRequest(endpoint, 'GET', params, null, signal, headers);
97
99
  }
98
100
  async function post(endpoint, body, params, signal) {
99
101
  return makeRequest(endpoint, 'POST', params, JSON.stringify(body), signal);
@@ -0,0 +1,85 @@
1
+ 'use strict';
2
+
3
+ class Completion {
4
+ constructor(data) {
5
+ this.payment_mode = ICheckoutPaymentMode[data.payment_mode];
6
+ this.payment_token = data.payment_token;
7
+ this.payment_status = data.payment_status;
8
+ this.payment_response = data.payment_response;
9
+ this.payment_error_code = data.payment_error_code;
10
+ this.payment_error_description = data.payment_error_description;
11
+ this.checkout_id = data.checkout_id;
12
+ this.additional_transactions = data.additional_transactions;
13
+ this.payment_id = data.payment_id;
14
+ this.payment_method_id = data.payment_method_id;
15
+ this.status = data.status;
16
+ this.created_at = data.created_at;
17
+ this.updated_at = data.updated_at;
18
+ }
19
+ }
20
+ class Checkout {
21
+ constructor(data) {
22
+ var _a;
23
+ this.id = data.id;
24
+ this.description = data.description;
25
+ this.payment_intent_id = data.payment_intent_id;
26
+ this.account_id = data.account_id;
27
+ this.platform_account_id = data.platform_account_id;
28
+ this.payment_amount = data.payment_amount;
29
+ this.payment_client_id = data.payment_client_id;
30
+ this.payment_description = data.payment_description;
31
+ this.payment_methods = data.payment_methods;
32
+ this.payment_method_group_id = data.payment_method_group_id;
33
+ this.payment_settings = data.payment_settings;
34
+ this.bnpl = data.bnpl;
35
+ this.total_amount = data.total_amount;
36
+ this.insurance_amount = data.insurance_amount;
37
+ this.status = data.status;
38
+ this.payment_currency = data.payment_currency;
39
+ this.mode = data.mode;
40
+ this.statement_descriptor = data.statement_descriptor;
41
+ this.application_fees = data.application_fees;
42
+ this.successful_payment_id = data.successful_payment_id;
43
+ this.created_at = data.created_at;
44
+ this.updated_at = data.updated_at;
45
+ this.completions = (_a = data.completions) === null || _a === void 0 ? void 0 : _a.map((completion) => new Completion(completion));
46
+ }
47
+ get payment_mode() {
48
+ var _a, _b, _c, _d, _e, _f;
49
+ let paymentMode;
50
+ if (!this.completions || this.completions.length === 0) {
51
+ return ICheckoutPaymentMode.unknown;
52
+ }
53
+ const sortedCompletions = this.completions.sort((a, b) => {
54
+ return new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime();
55
+ });
56
+ const lastCompletion = sortedCompletions[0];
57
+ if (lastCompletion.payment_mode) {
58
+ paymentMode = lastCompletion.payment_mode;
59
+ }
60
+ else if ((_c = (_b = (_a = lastCompletion.payment_response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.payment_method) === null || _c === void 0 ? void 0 : _c.card) {
61
+ paymentMode = ICheckoutPaymentMode.card;
62
+ }
63
+ else if ((_f = (_e = (_d = lastCompletion.payment_response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.payment_method) === null || _f === void 0 ? void 0 : _f.bank_account) {
64
+ paymentMode = ICheckoutPaymentMode.bank_account;
65
+ }
66
+ return paymentMode;
67
+ }
68
+ ;
69
+ }
70
+ var ICheckoutPaymentMode;
71
+ (function (ICheckoutPaymentMode) {
72
+ ICheckoutPaymentMode["bnpl"] = "Buy Now Pay Later";
73
+ ICheckoutPaymentMode["ecom"] = "E-commerce";
74
+ ICheckoutPaymentMode["card"] = "Card";
75
+ ICheckoutPaymentMode["bank_account"] = "Bank Account";
76
+ ICheckoutPaymentMode["card_present"] = "Card Present";
77
+ ICheckoutPaymentMode["unknown"] = "";
78
+ })(ICheckoutPaymentMode || (ICheckoutPaymentMode = {}));
79
+ var CompletionStatuses;
80
+ (function (CompletionStatuses) {
81
+ CompletionStatuses["failed"] = "failed";
82
+ CompletionStatuses["succeeded"] = "succeeded";
83
+ })(CompletionStatuses || (CompletionStatuses = {}));
84
+
85
+ exports.Checkout = Checkout;
@@ -0,0 +1,106 @@
1
+ 'use strict';
2
+
3
+ var PayoutStatuses;
4
+ (function (PayoutStatuses) {
5
+ PayoutStatuses["paid"] = "paid";
6
+ PayoutStatuses["failed"] = "failed";
7
+ PayoutStatuses["forwarded"] = "forwarded";
8
+ PayoutStatuses["scheduled"] = "scheduled";
9
+ PayoutStatuses["in_transit"] = "in_transit";
10
+ PayoutStatuses["canceled"] = "canceled";
11
+ })(PayoutStatuses || (PayoutStatuses = {}));
12
+ var PayoutStatusesSafeNames;
13
+ (function (PayoutStatusesSafeNames) {
14
+ PayoutStatusesSafeNames["paid"] = "Paid";
15
+ PayoutStatusesSafeNames["failed"] = "Failed";
16
+ PayoutStatusesSafeNames["forwarded"] = "Forwarded";
17
+ PayoutStatusesSafeNames["scheduled"] = "Scheduled";
18
+ PayoutStatusesSafeNames["in_transit"] = "In Transit";
19
+ PayoutStatusesSafeNames["canceled"] = "Canceled";
20
+ })(PayoutStatusesSafeNames || (PayoutStatusesSafeNames = {}));
21
+ class Payout {
22
+ constructor(payout) {
23
+ this.id = payout.id;
24
+ this.account_id = payout.account_id;
25
+ this.amount = payout.amount;
26
+ this.bank_account = payout.bank_account;
27
+ this.currency = payout.currency;
28
+ this.delivery_method = payout.delivery_method || 'standard';
29
+ this.description = payout.description;
30
+ this.deposits_at = payout.deposits_at;
31
+ this.fees_total = payout.fees_total;
32
+ this.refunds_count = payout.refunds_count;
33
+ this.refunds_total = payout.refunds_total;
34
+ this.payments_count = payout.payments_count;
35
+ this.payments_total = payout.payments_total;
36
+ this.payout_type = payout.payout_type;
37
+ this.other_total = payout.other_total;
38
+ this.status = payout.status;
39
+ this.metadata = payout.metadata;
40
+ this.created_at = payout.created_at;
41
+ this.updated_at = payout.updated_at;
42
+ }
43
+ }
44
+
45
+ var TerminalStatuses;
46
+ (function (TerminalStatuses) {
47
+ TerminalStatuses["connected"] = "connected";
48
+ TerminalStatuses["disconnected"] = "disconnected";
49
+ TerminalStatuses["unknown"] = "unknown";
50
+ })(TerminalStatuses || (TerminalStatuses = {}));
51
+ var TerminalProviders;
52
+ (function (TerminalProviders) {
53
+ TerminalProviders["verifone"] = "verifone";
54
+ })(TerminalProviders || (TerminalProviders = {}));
55
+ class Terminal {
56
+ constructor(data) {
57
+ this.id = data.id || '';
58
+ this.status = data.status;
59
+ this.account_id = data.account_id || '';
60
+ this.platform_account_id = data.platform_account_id || '';
61
+ this.provider = data.provider || '';
62
+ this.provider_id = data.provider_id || '';
63
+ this.created_at = data.created_at || '';
64
+ this.updated_at = data.updated_at || '';
65
+ this.verified_at = data.verified_at || '';
66
+ this.nickname = data.nickname || '';
67
+ }
68
+ }
69
+
70
+ var AccountType;
71
+ (function (AccountType) {
72
+ AccountType["test"] = "test";
73
+ AccountType["live"] = "live";
74
+ })(AccountType || (AccountType = {}));
75
+ var AccountStatus;
76
+ (function (AccountStatus) {
77
+ AccountStatus["created"] = "created";
78
+ AccountStatus["submitted"] = "submitted";
79
+ AccountStatus["information_needed"] = "information_needed";
80
+ AccountStatus["rejected"] = "rejected";
81
+ AccountStatus["enabled"] = "enabled";
82
+ AccountStatus["disabled"] = "disabled";
83
+ AccountStatus["archived"] = "archived";
84
+ })(AccountStatus || (AccountStatus = {}));
85
+ class SubAccount {
86
+ constructor(subAccount) {
87
+ this.id = subAccount.id;
88
+ this.name = subAccount.name;
89
+ this.account_type = subAccount.account_type;
90
+ this.status = subAccount.status;
91
+ this.currency = subAccount.currency;
92
+ this.platform_account_id = subAccount.platform_account_id;
93
+ this.payout_account_id = subAccount.payout_account_id;
94
+ this.business_id = subAccount.business_id;
95
+ this.application_fee_rates = subAccount.application_fee_rates;
96
+ this.processing_ready = subAccount.processing_ready;
97
+ this.payout_ready = subAccount.payout_ready;
98
+ this.related_accounts = subAccount.related_accounts;
99
+ this.created_at = subAccount.created_at;
100
+ this.updated_at = subAccount.updated_at;
101
+ }
102
+ }
103
+
104
+ exports.Payout = Payout;
105
+ exports.SubAccount = SubAccount;
106
+ exports.Terminal = Terminal;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const utils$1 = require('./utils-c1d2e426.js');
7
- const utils = require('./utils-52fb7fa1.js');
6
+ const utils$1 = require('./utils-189dc30d.js');
7
+ const utils = require('./utils-3d84442d.js');
8
8
 
9
9
  const sharedBusinessDetailsCss$4 = ".flex-1{flex:1}";
10
10
  const AdditionalQuestionsDetailsStyle0 = sharedBusinessDetailsCss$4;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index_esm = require('./index.esm-52757963.js');
4
- const schemaValidations = require('./schema-validations-0a7e46a3.js');
3
+ const index_esm = require('./index.esm-97cf6825.js');
4
+ const schemaValidations = require('./schema-validations-184a4356.js');
5
5
 
6
6
  const businessCoreInfoSchema = (allowOptionalFields) => {
7
7
  const schema = index_esm.create$3({
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const utils = require('./utils-c1d2e426.js');
6
+ const utils = require('./utils-189dc30d.js');
7
7
  const styledHost = require('./styled-host-1adf46c3.js');
8
8
 
9
9
  var RENDER_STATES;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index_esm = require('./index.esm-52757963.js');
4
- const schemaValidations = require('./schema-validations-0a7e46a3.js');
3
+ const index_esm = require('./index.esm-97cf6825.js');
4
+ const schemaValidations = require('./schema-validations-184a4356.js');
5
5
 
6
6
  const addressSchema = (allowOptionalFields) => {
7
7
  const schema = index_esm.create$3({
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const config = require('./config-05767cba.js');
4
- const Api = require('./Api-b98b256f.js');
4
+ const Api = require('./Api-f5280a80.js');
5
5
 
6
6
  class BusinessService {
7
7
  async fetchBusiness(businessId, authToken) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const _package = require('./package-cb1b1015.js');
3
+ const _package = require('./package-596f102c.js');
4
4
 
5
5
  const latestVersion = async (packageName) => {
6
6
  const response = await fetch('https://registry.npmjs.org/' + packageName + '/latest');
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ const config = require('./config-05767cba.js');
4
+ const Api = require('./Api-f5280a80.js');
5
+ require('./Checkout-a528241d.js');
6
+ require('./Pagination-0da8f095.js');
7
+ require('./Payment-04a842f4.js');
8
+ require('./SubAccount-cc95a4a0.js');
9
+
10
+ class CheckoutService {
11
+ async fetchCheckout(authToken, checkoutId) {
12
+ const endpoint = `checkouts/${checkoutId}`;
13
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
14
+ }
15
+ async fetchCheckouts(accountId, authToken, params, apiOrigin) {
16
+ if (!apiOrigin) {
17
+ apiOrigin = config.config.proxyApiOrigin;
18
+ }
19
+ const headers = { Account: accountId };
20
+ const api = Api.Api({ authToken, apiOrigin: apiOrigin });
21
+ const endpoint = 'checkouts';
22
+ return api.get(endpoint, params, null, headers);
23
+ }
24
+ async complete(authToken, checkoutId, payment) {
25
+ const endpoint = `checkouts/${checkoutId}/complete`;
26
+ const payload = {
27
+ payment_mode: payment.payment_mode,
28
+ };
29
+ if (payment.payment_token) {
30
+ payload.payment_token = payment.payment_token;
31
+ }
32
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
33
+ }
34
+ }
35
+
36
+ exports.CheckoutService = CheckoutService;
@@ -0,0 +1,144 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-fb499e95.js');
6
+ require('./Checkout-a528241d.js');
7
+ const Pagination = require('./Pagination-0da8f095.js');
8
+ require('./Payment-04a842f4.js');
9
+ require('./SubAccount-cc95a4a0.js');
10
+ const utils = require('./utils-f8a6962c.js');
11
+ const tableLoadingState = require('./table-loading-state-8b406852.js');
12
+ const checkoutsTable = require('./checkouts-table-24c065ff.js');
13
+ const table = require('./table-20e9a053.js');
14
+ require('./utils-3d84442d.js');
15
+
16
+ const CheckoutsListCore = class {
17
+ constructor(hostRef) {
18
+ index.registerInstance(this, hostRef);
19
+ this.rowClicked = index.createEvent(this, "checkout-row-clicked", 7);
20
+ this.errorEvent = index.createEvent(this, "error-event", 7);
21
+ this.handleClickPrevious = (beforeCursor) => {
22
+ const newParams = Object.assign({}, this.params);
23
+ delete newParams.after_cursor;
24
+ this.params = Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor });
25
+ };
26
+ this.handleClickNext = (afterCursor) => {
27
+ const newParams = Object.assign({}, this.params);
28
+ delete newParams.before_cursor;
29
+ this.params = Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor });
30
+ };
31
+ this.rowClickHandler = (e) => {
32
+ const clickedCheckoutID = e.target.closest('tr').dataset.rowEntityId;
33
+ if (!clickedCheckoutID)
34
+ return;
35
+ this.rowClicked.emit(this.checkouts.find((checkout) => checkout.id === clickedCheckoutID));
36
+ };
37
+ this.setParamsOnChange = (name, value) => {
38
+ let newParams = { [name]: value };
39
+ this.params = utils.onFilterChange(newParams, this.params);
40
+ };
41
+ this.clearParams = () => {
42
+ this.errorMessage = '';
43
+ this.params = {};
44
+ };
45
+ this.getCheckouts = undefined;
46
+ this.getSubAccounts = undefined;
47
+ this.columns = undefined;
48
+ this.checkouts = [];
49
+ this.checkoutsTable = undefined;
50
+ this.subAccounts = [];
51
+ this.loading = true;
52
+ this.errorMessage = undefined;
53
+ this.paging = Pagination.pagingDefaults;
54
+ this.params = {};
55
+ }
56
+ updateOnPropChange() {
57
+ this.fetchCheckouts();
58
+ }
59
+ componentWillLoad() {
60
+ this.checkoutsTable = new table.Table(this.checkouts, this.columns, checkoutsTable.checkoutTableColumns, checkoutsTable.checkoutTableCells);
61
+ if (this.getCheckouts && this.getSubAccounts) {
62
+ this.fetchCheckouts();
63
+ }
64
+ }
65
+ fetchCheckouts() {
66
+ this.loading = true;
67
+ this.getCheckouts({
68
+ params: this.params,
69
+ onSuccess: async ({ checkouts, pagingInfo }) => {
70
+ this.checkouts = checkouts;
71
+ this.paging = pagingInfo;
72
+ this.checkoutsTable.collectionData = this.checkouts;
73
+ const shouldFetchSubAccounts = this.checkoutsTable.columnKeys.includes('sub_account_name');
74
+ if (shouldFetchSubAccounts) {
75
+ await this.fetchSubAccounts();
76
+ }
77
+ else {
78
+ this.loading = false;
79
+ }
80
+ },
81
+ onError: ({ error, code, severity }) => {
82
+ this.errorMessage = error;
83
+ this.errorEvent.emit({
84
+ errorCode: code,
85
+ message: error,
86
+ severity,
87
+ });
88
+ this.loading = false;
89
+ },
90
+ });
91
+ }
92
+ async fetchSubAccounts() {
93
+ this.getSubAccounts({
94
+ params: this.subAccountParams,
95
+ onSuccess: ({ subAccounts }) => {
96
+ this.subAccounts = subAccounts;
97
+ this.checkouts = this.checkouts.map((checkout) => {
98
+ var _a;
99
+ checkout.sub_account_name = (_a = this.subAccounts.find((subAccount) => subAccount.id === checkout.account_id)) === null || _a === void 0 ? void 0 : _a.name;
100
+ return checkout;
101
+ });
102
+ this.loading = false;
103
+ },
104
+ onError: ({ error, code, severity }) => {
105
+ this.errorMessage = error;
106
+ this.errorEvent.emit({
107
+ errorCode: code,
108
+ message: error,
109
+ severity,
110
+ });
111
+ this.loading = false;
112
+ },
113
+ });
114
+ }
115
+ get subAccountParams() {
116
+ let accountIdNumbers = this.checkouts.map((checkout) => checkout.account_id);
117
+ let uniqueAccountIds = [...new Set(accountIdNumbers)];
118
+ let accountIdString = uniqueAccountIds.join(',');
119
+ return { sub_account_id: accountIdString };
120
+ }
121
+ get entityId() {
122
+ return this.checkouts.map((checkout) => checkout.id);
123
+ }
124
+ get showEmptyState() {
125
+ return !this.loading && !this.errorMessage && this.checkoutsTable.rowData.length < 1;
126
+ }
127
+ get showErrorState() {
128
+ return !this.loading && !!this.errorMessage;
129
+ }
130
+ get showRowData() {
131
+ return !this.showEmptyState && !this.showErrorState && !this.loading;
132
+ }
133
+ render() {
134
+ return (index.h("div", { key: '8d2c1fd960b2b3a66f3a1bf648b75576ad2e8857' }, index.h("checkouts-list-filters", { key: '18ba9bf560499112f71a690da751c8e3c4d345a7', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), index.h("div", { key: '12cf6ee2912ac6a9518634ebd470dac5f7623aff', class: "table-wrapper" }, index.h("table", { key: '1ea2c118d7efb620dc1f39db55a510a8a473cb31', class: "table table-hover" }, index.h("thead", { key: '5e334a090be56c82b11ae7584bdf4014cc8743c7', class: "table-head sticky-top", part: "table-head" }, index.h("tr", { key: '233137a8b4e30bac28ded78010199bfecd0ac4e7', class: "table-light text-nowrap", part: "table-head-row" }, this.checkoutsTable.columnData.map((column) => column))), index.h("tbody", { key: 'd4ed9d4bf3ac17d4dc7294b875734e02996c7444', class: "table-body", part: "table-body" }, index.h(tableLoadingState.TableLoadingState, { key: 'a7afbb627c768139af4244da5c12fae493dceafb', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), index.h(tableLoadingState.TableEmptyState, { key: '802c43c8da770bca9a249a88d115901e9b14e102', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), index.h(tableLoadingState.TableErrorState, { key: 'f1cd197cf7d1d5d81868a5abfafa40df762ca3c8', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index$1) => (index.h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler, part: `table-row ${index$1 % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (index.h("tfoot", { key: 'f0c367854322c341515bc481159101e9659117c7', class: "sticky-bottom" }, index.h("tr", { key: '88bc665c23665eddc4c88d27acc8c8f1cb39e277', class: "table-light align-middle" }, index.h("td", { key: '8be265c9b43033cfd3e2c4b3f12ac6d6c104e53d', part: "pagination-bar", colSpan: this.checkoutsTable.columnData.length }, index.h("pagination-menu", { key: '6abdb6091b78e58ec71ac6bf66f278ed9b6542fb', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
135
+ }
136
+ static get watchers() { return {
137
+ "params": ["updateOnPropChange"],
138
+ "getCheckouts": ["updateOnPropChange"],
139
+ "getSubAccounts": ["updateOnPropChange"],
140
+ "columns": ["updateOnPropChange"]
141
+ }; }
142
+ };
143
+
144
+ exports.checkouts_list_core = CheckoutsListCore;
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-fb499e95.js');
6
+
7
+ const CheckoutsListFilters = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ this.params = {};
11
+ this.setParamsOnChange = undefined;
12
+ this.clearParams = undefined;
13
+ }
14
+ get checkoutStatusOptions() {
15
+ return [
16
+ { label: 'All', value: '' },
17
+ { label: 'Created', value: 'created' },
18
+ { label: 'Completed', value: 'completed' },
19
+ { label: 'Attempted', value: 'attempted' },
20
+ { label: 'Expired', value: 'expired' },
21
+ ];
22
+ }
23
+ get checkoutPaymentModeOptions() {
24
+ return [
25
+ { label: 'All', value: '' },
26
+ { label: 'E-commerce', value: 'ecom' },
27
+ { label: 'BNPL', value: 'bnpl' },
28
+ ];
29
+ }
30
+ render() {
31
+ return (index.h("table-filters-menu", { key: '9bbefced0a75175612e10d18a2399c2fba54a541', params: this.params, clearParams: this.clearParams }, index.h("div", { key: 'c9788ad56827b8a3d4452da28678d56b0b7db11c', class: "grid-cols-2 gap-3 p-1" }, index.h("div", { key: '4f4eefcdecb67f6fa58f7daa5044bae0e0df5f6c', class: "p-2" }, index.h("form-control-select", { key: 'cb3d3801b90102e330a96a0454074b5374f15326', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.params.status || '' })), index.h("div", { key: 'b43631eb9021c8d496551d359440696686a3a50b', class: "p-2" }, index.h("form-control-select", { key: '7f2a33df18fb3d48dba2ad726a96d9107cca2bf3', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.params.payment_mode || '' })))));
32
+ }
33
+ };
34
+
35
+ exports.checkouts_list_filters = CheckoutsListFilters;
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-fb499e95.js');
4
+ const utils = require('./utils-3d84442d.js');
5
+
6
+ const MapCheckoutStatusToBadge = (status) => {
7
+ switch (status) {
8
+ case 'created':
9
+ return "<span class='badge bg-primary' title='The checkout has been created'>Created</span>";
10
+ case 'completed':
11
+ return "<span class='badge bg-success' title='The checkout has been completed'>Completed</span>";
12
+ case 'attempted':
13
+ return "<span class='badge bg-secondary' title='The checkout has been attempted'>Attempted</span>";
14
+ case 'expired':
15
+ return "<span class='badge bg-danger' title='The checkout has expired'>Expired</span>";
16
+ }
17
+ };
18
+
19
+ const defaultColumnsKeys = 'created_at,payment_amount,payment_description,payment_mode,status';
20
+ const checkoutTableColumns = {
21
+ created_at: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The date each checkout occurred" }, "Processed On")),
22
+ payment_amount: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The dollar amount of each checkout" }, "Payment Amount")),
23
+ payment_description: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The description of each checkout" }, "Payment Description")),
24
+ sub_account_name: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the checkout" }, "Sub Account")),
25
+ payment_mode: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The payment mode of each checkout" }, "Payment Mode")),
26
+ status: () => (index.h("th", { part: "table-head-cell", scope: "col", title: "The current status of each checkout" }, "Status")),
27
+ };
28
+ const checkoutTableCells = {
29
+ created_at: (value) => (index.h("th", null,
30
+ index.h("div", { class: "fw-bold" },
31
+ utils.formatDate(value),
32
+ " "),
33
+ index.h("div", { class: "fw-bold" },
34
+ utils.formatTime(value),
35
+ " "))),
36
+ payment_amount: (value) => (index.h("td", null,
37
+ utils.formatCurrency(value, true, true),
38
+ " ")),
39
+ payment_description: (value) => (index.h("td", null, value)),
40
+ sub_account_name: (value) => (index.h("td", null, value)),
41
+ payment_mode: (value) => (index.h("td", null, value)),
42
+ status: (value) => (index.h("td", { innerHTML: MapCheckoutStatusToBadge(value) })),
43
+ };
44
+
45
+ exports.checkoutTableCells = checkoutTableCells;
46
+ exports.checkoutTableColumns = checkoutTableColumns;
47
+ exports.defaultColumnsKeys = defaultColumnsKeys;
@@ -1879,7 +1879,7 @@ const CustomPopper = class {
1879
1879
  this.hideEvent.emit();
1880
1880
  }
1881
1881
  render() {
1882
- return (index.h("div", { key: 'e426fcd8c6ed3026bd19b5f88d9fc8caea6dd2ad' }, index.h("style", { key: '2c6a3c8606f19df70d7fac866c60a1563456a20f' }, `
1882
+ return (index.h("div", { key: '8a37af79ca05c760a65fde19686d0c2e796fbb0b' }, index.h("style", { key: '9a92807c0d688d1ddc86f05bcc39e34f1da2a939' }, `
1883
1883
  .popper-content {
1884
1884
  display: none;
1885
1885
  }
@@ -1887,21 +1887,7 @@ const CustomPopper = class {
1887
1887
  display: block;
1888
1888
  z-index: 1030;
1889
1889
  }
1890
- `), index.h("div", { key: '3aafc7f4659c0b598586600cc44979c9b7425eae', class: "popper-content", ref: (el) => this.popperContentRef = el }, index.h("slot", { key: '2f338c682141c1610b265d8eca98a34678632c46' }))));
1891
- }
1892
- };
1893
-
1894
- const FormControlErrorText = class {
1895
- constructor(hostRef) {
1896
- index.registerInstance(this, hostRef);
1897
- this.errorText = undefined;
1898
- this.name = undefined;
1899
- }
1900
- render() {
1901
- if (!this.errorText) {
1902
- return null;
1903
- }
1904
- return (index.h("small", { class: 'form-text text-danger', id: `form-error-text-${this.name}` }, this.errorText));
1890
+ `), index.h("div", { key: 'fc9582fdc9d0b2e0ad115daad752796cd2bc4067', class: "popper-content", ref: (el) => this.popperContentRef = el }, index.h("slot", { key: '79ecc806af9caa4450969cd4b84868b59aa3f55b' }))));
1905
1891
  }
1906
1892
  };
1907
1893
 
@@ -1936,7 +1922,7 @@ const SelectInput = class {
1936
1922
  }
1937
1923
  render() {
1938
1924
  var _a;
1939
- return (index.h(index.Host, { key: 'f76dcf05e5929448b9a89b1d4b6f18a6f7cae3e5', exportparts: "label,input,input-invalid" }, index.h("div", { key: '675bc78c7197ce8ded2cbdfb31b77fde5e12d9e5', class: "form-group d-flex flex-column" }, index.h("div", { key: 'a3f538fb4b3aba7e87071e1838c4d668cb217851', class: "d-flex align-items-start gap-2" }, index.h("label", { key: '389d9573b53b4ea51492455dc88222714df33387', part: "label", class: "form-label", htmlFor: this.name }, this.label), index.h("form-control-tooltip", { key: 'e0853d21ebd9e264e87b4707708bfbef3f50a4bb', helpText: this.helpText })), index.h("select", { key: '50d9af6ee9266eeb514a7b1512fb73b480f5e163', ref: el => (this.selectElement = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText ? 'input-invalid' : ''}`, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (index.h("option", { value: option.value }, option.label)))), index.h("form-control-error-text", { key: 'e199881b4ffd032059ea548202ce9fee94b9187a', errorText: this.errorText, name: this.name }))));
1925
+ return (index.h(index.Host, { key: '2825653443c2fdd8c6e059e03f9170fa0f293fe5', exportparts: "label,input,input-invalid" }, index.h("div", { key: '8eb3d38a99762d030b534cbb195e5f12da754ed4', class: "form-group d-flex flex-column" }, index.h("div", { key: 'ac41bf1269b5eec07e63eb9426d05684dac1aadc', class: "d-flex align-items-start gap-2" }, index.h("label", { key: 'ba1cd374fdb460b72ed509366a469c6d0cf9779e', part: "label", class: "form-label", htmlFor: this.name }, this.label), index.h("form-control-tooltip", { key: '7e81054e6daa2b19cae341126d49085d9c083602', helpText: this.helpText })), index.h("select", { key: '8eea54929eddbc98e71c0d8175e54b7e284a9f63', ref: el => (this.selectElement = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText ? 'input-invalid' : ''}`, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (index.h("option", { value: option.value }, option.label)))), index.h("form-control-error-text", { key: 'e980065897e2c26b3f787dc576d4c5ffaeb7bdd3', errorText: this.errorText, name: this.name }))));
1940
1926
  }
1941
1927
  static get watchers() { return {
1942
1928
  "defaultValue": ["handleDefaultValueChange"]
@@ -1977,7 +1963,7 @@ const TextInput = class {
1977
1963
  this.updateInput(this.defaultValue);
1978
1964
  }
1979
1965
  render() {
1980
- return (index.h(index.Host, { key: '242da84a35d52f4d44bcaaa1ec016487ffb5936e', exportparts: "label,input,input-invalid" }, index.h("div", { key: 'a581089ec206ac71f586c837f53aec54e394776a', class: "form-group d-flex flex-column" }, index.h("div", { key: '88e11b4a8d79e72f63f80415b5dad74d8a47fa5b', class: "d-flex align-items-start gap-2" }, index.h("label", { key: 'd37f5e37ab6e46c43196638301e46410d70f753c', part: "label", class: "form-label", htmlFor: this.name }, this.label), index.h("form-control-tooltip", { key: '2702eabd98b632487a418facb33855bdb19b5167', helpText: this.helpText })), index.h("input", { key: 'e70affeeed2f0d0975a827e9d691a05c7732854f', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? " input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), index.h("form-control-error-text", { key: 'f1ba545bec21198a4e78e4989bf5703f17052642', errorText: this.errorText, name: this.name }))));
1966
+ return (index.h(index.Host, { key: '3450b693ae915280ba28a38613a9bd2ebb360677', exportparts: "label,input,input-invalid" }, index.h("div", { key: 'f815c2ff679a73375cb2d12087ecf4a2bf17d5e4', class: "form-group d-flex flex-column" }, index.h("div", { key: '3119c59e3f7d6b547088b1eccab66641129ec71e', class: "d-flex align-items-start gap-2" }, index.h("label", { key: '4e1cd66eb84cd6b3449bed5c1099627ad9ffa213', part: "label", class: "form-label", htmlFor: this.name }, this.label), index.h("form-control-tooltip", { key: 'fc9bd0b06d2400a6109b93ec7c8cc7f4e8955e3b', helpText: this.helpText })), index.h("input", { key: '9d1d615016acd3611bee6d097ed15c3c926c5e76', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? " input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), index.h("form-control-error-text", { key: 'ac9f44ac5411a76c8b29f00ac4bfda91f5395e71', errorText: this.errorText, name: this.name }))));
1981
1967
  }
1982
1968
  get el() { return index.getElement(this); }
1983
1969
  static get watchers() { return {
@@ -2007,7 +1993,6 @@ const TooltipComponent = class {
2007
1993
  };
2008
1994
 
2009
1995
  exports.custom_popper = CustomPopper;
2010
- exports.form_control_error_text = FormControlErrorText;
2011
1996
  exports.form_control_select = SelectInput;
2012
1997
  exports.form_control_text = TextInput;
2013
1998
  exports.form_control_tooltip = TooltipComponent;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ exports.DisputeManagementClickEvents = void 0;
4
+ (function (DisputeManagementClickEvents) {
5
+ DisputeManagementClickEvents["nextStep"] = "nextStep";
6
+ DisputeManagementClickEvents["previousStep"] = "previousStep";
7
+ DisputeManagementClickEvents["cancelDispute"] = "cancelDispute";
8
+ DisputeManagementClickEvents["counterDispute"] = "counterDispute";
9
+ DisputeManagementClickEvents["submit"] = "submit";
10
+ })(exports.DisputeManagementClickEvents || (exports.DisputeManagementClickEvents = {}));