@justifi/webcomponents 4.7.4 → 4.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (644) hide show
  1. package/LICENSE +1 -1
  2. package/dist/cjs/{Api-548eaa62.js → Api-a06b996e.js} +35 -35
  3. package/dist/cjs/{Pagination-cae1dcbd.js → Pagination-0da8f095.js} +5 -5
  4. package/dist/cjs/Payout-7821eb61.js +183 -0
  5. package/dist/cjs/SubAccount-b9487cbb.js +107 -0
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +50 -50
  7. package/dist/cjs/business-form-schema-a2b87e77.js +148 -0
  8. package/dist/cjs/config-ff2dda66.js +15 -0
  9. package/dist/cjs/{form-1e732a9d.js → form-2ad3d374.js} +84 -84
  10. package/dist/cjs/form-control-datepart_2.cjs.entry.js +108 -108
  11. package/dist/cjs/form-control-monetary.cjs.entry.js +50 -50
  12. package/dist/cjs/form-control-number_3.cjs.entry.js +108 -108
  13. package/dist/cjs/helpers-b254d050.js +26 -0
  14. package/dist/cjs/{index-c5ace247.js → index-4286ac32.js} +189 -51
  15. package/dist/cjs/{index-5a880722.js → index-fc5339a5.js} +406 -195
  16. package/dist/cjs/{index.esm-91ec051e.js → index.esm-c08c2adc.js} +61 -30
  17. package/dist/cjs/justifi-additional-questions_6.cjs.entry.js +372 -372
  18. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +56 -56
  19. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +79 -79
  20. package/dist/cjs/justifi-business-details.cjs.entry.js +61 -61
  21. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +110 -110
  22. package/dist/cjs/justifi-business-form.cjs.entry.js +71 -71
  23. package/dist/cjs/justifi-business-list.cjs.entry.js +128 -128
  24. package/dist/cjs/justifi-card-form.cjs.entry.js +57 -57
  25. package/dist/cjs/justifi-details.cjs.entry.js +13 -13
  26. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +125 -125
  27. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +72 -72
  28. package/dist/cjs/justifi-payment-details.cjs.entry.js +53 -53
  29. package/dist/cjs/justifi-payment-form.cjs.entry.js +89 -89
  30. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +171 -188
  31. package/dist/cjs/justifi-payments-list.cjs.entry.js +97 -98
  32. package/dist/cjs/justifi-payout-details.cjs.entry.js +54 -54
  33. package/dist/cjs/justifi-payouts-list.cjs.entry.js +119 -119
  34. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +135 -135
  35. package/dist/cjs/justifi-refund-form.cjs.entry.js +85 -85
  36. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +62 -62
  37. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +84 -84
  38. package/dist/cjs/justifi-table_2.cjs.entry.js +61 -61
  39. package/dist/cjs/loader.cjs.js +2 -2
  40. package/dist/cjs/select-input_2.cjs.entry.js +38 -38
  41. package/dist/cjs/state-options-96d05a98.js +246 -0
  42. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +41 -41
  43. package/dist/cjs/subaccount-bank-details.cjs.entry.js +11 -11
  44. package/dist/cjs/subaccount-terms-details.cjs.entry.js +11 -11
  45. package/dist/cjs/{utils-13d069be.js → utils-36bf8b3e.js} +108 -108
  46. package/dist/cjs/utils-a2ee48ca.js +35 -0
  47. package/dist/cjs/webcomponents.cjs.js +3 -3
  48. package/dist/collection/api/Api.js +34 -34
  49. package/dist/collection/api/Business.js +39 -39
  50. package/dist/collection/api/Pagination.js +5 -5
  51. package/dist/collection/api/Payment.js +108 -108
  52. package/dist/collection/api/Payout.js +33 -33
  53. package/dist/collection/api/Proceed.js +33 -33
  54. package/dist/collection/api/SubAccount.js +78 -78
  55. package/dist/collection/api/mockData/MockOnboardingData.js +108 -108
  56. package/dist/collection/api/mockData/MockPayments.js +207 -207
  57. package/dist/collection/api/mockData/MockSubAccount.js +96 -96
  58. package/dist/collection/api/mockData/mockGrossVolumeReport.js +123 -123
  59. package/dist/collection/collection-manifest.json +4 -4
  60. package/dist/collection/components/bank-account-form/bank-account-form.js +260 -259
  61. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +10 -10
  62. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +38 -38
  63. package/dist/collection/components/billing-form/billing-form-schema.js +6 -6
  64. package/dist/collection/components/billing-form/billing-form.css +16 -12
  65. package/dist/collection/components/billing-form/billing-form.js +177 -179
  66. package/dist/collection/components/billing-form/state-options.js +240 -240
  67. package/dist/collection/components/billing-form/test/billing-form.spec.js +50 -50
  68. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +23 -16
  69. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +43 -43
  70. package/dist/collection/components/business-details/business-details.css +11 -4
  71. package/dist/collection/components/business-details/business-details.js +107 -107
  72. package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +23 -16
  73. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +43 -43
  74. package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +23 -16
  75. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +43 -43
  76. package/dist/collection/components/business-details/owner-details/owner-details.css +23 -16
  77. package/dist/collection/components/business-details/owner-details/owner-details.js +45 -45
  78. package/dist/collection/components/business-details/representative-details/representative-details.css +23 -16
  79. package/dist/collection/components/business-details/representative-details/representative-details.js +43 -43
  80. package/dist/collection/components/business-form/additional-questions/additional-questions.js +49 -49
  81. package/dist/collection/components/business-form/business-address/business-address-form-schema.js +8 -8
  82. package/dist/collection/components/business-form/business-address/business-address-form.css +16 -12
  83. package/dist/collection/components/business-form/business-address/business-address-form.js +93 -93
  84. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +6 -6
  85. package/dist/collection/components/business-form/business-address/test/business-address.spec.js +21 -21
  86. package/dist/collection/components/business-form/business-form-schema.js +137 -137
  87. package/dist/collection/components/business-form/business-form-stepped.css +23 -16
  88. package/dist/collection/components/business-form/business-form-stepped.js +203 -203
  89. package/dist/collection/components/business-form/business-form.css +23 -16
  90. package/dist/collection/components/business-form/business-form.js +111 -111
  91. package/dist/collection/components/business-form/business-generic-info/business-generic-info.css +16 -12
  92. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +57 -57
  93. package/dist/collection/components/business-form/business-owners/business-owners.css +23 -16
  94. package/dist/collection/components/business-form/business-owners/business-owners.js +117 -117
  95. package/dist/collection/components/business-form/business-representative/business-representative.css +16 -12
  96. package/dist/collection/components/business-form/business-representative/business-representative.js +65 -65
  97. package/dist/collection/components/business-form/helpers.js +19 -19
  98. package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +6 -6
  99. package/dist/collection/components/business-form/legal-address-form/legal-address-form.css +16 -12
  100. package/dist/collection/components/business-form/legal-address-form/legal-address-form.js +61 -61
  101. package/dist/collection/components/business-form/test/business-form.spec.js +35 -35
  102. package/dist/collection/components/business-list/business-list.css +3 -0
  103. package/dist/collection/components/business-list/business-list.js +160 -160
  104. package/dist/collection/components/business-list/business-list.stories.js +10 -10
  105. package/dist/collection/components/card-form/card-form.js +278 -277
  106. package/dist/collection/components/card-form/test/card-form.e2e.js +10 -10
  107. package/dist/collection/components/card-form/test/card-form.spec.js +45 -45
  108. package/dist/collection/components/details/details.css +38 -31
  109. package/dist/collection/components/details/details.js +42 -42
  110. package/dist/collection/components/form/form-control-datepart.js +224 -224
  111. package/dist/collection/components/form/form-control-monetary.js +177 -177
  112. package/dist/collection/components/form/form-control-number-masked.js +208 -208
  113. package/dist/collection/components/form/form-control-number.css +7 -2
  114. package/dist/collection/components/form/form-control-number.js +188 -188
  115. package/dist/collection/components/form/form-control-select.css +7 -2
  116. package/dist/collection/components/form/form-control-select.js +196 -196
  117. package/dist/collection/components/form/form-control-text.css +7 -2
  118. package/dist/collection/components/form/form-control-text.js +188 -188
  119. package/dist/collection/components/form/form.js +80 -80
  120. package/dist/collection/components/gross-payment-chart/chart-utils.js +52 -52
  121. package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +3 -0
  122. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +125 -125
  123. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +7 -7
  124. package/dist/collection/components/pagination-menu/pagination-menu.js +72 -72
  125. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +144 -144
  126. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +10 -10
  127. package/dist/collection/components/payment-details/payment-details.css +38 -31
  128. package/dist/collection/components/payment-details/payment-details.js +106 -106
  129. package/dist/collection/components/payment-form/payment-form.css +16 -12
  130. package/dist/collection/components/payment-form/payment-form.js +319 -318
  131. package/dist/collection/components/payment-form/payment-method-selector.css +6 -2
  132. package/dist/collection/components/payment-form/payment-method-selector.js +90 -90
  133. package/dist/collection/components/payment-form/test/payment-form.e2e.js +9 -9
  134. package/dist/collection/components/payment-form/test/payment-form.spec.js +157 -157
  135. package/dist/collection/components/payment-method-form/get-computed-theme.js +47 -47
  136. package/dist/collection/components/payment-method-form/message-event-types.js +14 -14
  137. package/dist/collection/components/payment-method-form/payment-method-form.js +288 -262
  138. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +16 -16
  139. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +43 -43
  140. package/dist/collection/components/payments-list/payments-list.css +3 -0
  141. package/dist/collection/components/payments-list/payments-list.js +177 -178
  142. package/dist/collection/components/payments-list/test/payments-list.spec.js +21 -21
  143. package/dist/collection/components/payout-details/payout-details.css +38 -31
  144. package/dist/collection/components/payout-details/payout-details.js +107 -107
  145. package/dist/collection/components/payouts-list/payouts-list.css +3 -0
  146. package/dist/collection/components/payouts-list/payouts-list.js +199 -199
  147. package/dist/collection/components/proceeds-list/proceeds-list.css +3 -0
  148. package/dist/collection/components/proceeds-list/proceeds-list.js +182 -182
  149. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +12 -12
  150. package/dist/collection/components/refund-form/refund-form-schema.js +9 -9
  151. package/dist/collection/components/refund-form/refund-form.css +23 -16
  152. package/dist/collection/components/refund-form/refund-form.js +216 -216
  153. package/dist/collection/components/refund-form/refund-form.stories.js +27 -27
  154. package/dist/collection/components/select-input/select-input.css +7 -2
  155. package/dist/collection/components/select-input/select-input.js +139 -139
  156. package/dist/collection/components/select-input/test/select-input.spec.js +38 -38
  157. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +23 -16
  158. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +65 -65
  159. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +23 -16
  160. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +43 -43
  161. package/dist/collection/components/subaccount-details/subaccount-details.css +38 -31
  162. package/dist/collection/components/subaccount-details/subaccount-details.js +132 -132
  163. package/dist/collection/components/subaccount-details/subaccount-details.stories.js +9 -9
  164. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +23 -16
  165. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +43 -44
  166. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +23 -16
  167. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +44 -43
  168. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +23 -16
  169. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +43 -43
  170. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +23 -16
  171. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +43 -43
  172. package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js +7 -7
  173. package/dist/collection/components/subaccounts-list/subaccounts-list.js +164 -164
  174. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +12 -12
  175. package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js +6 -6
  176. package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js +21 -21
  177. package/dist/collection/components/table/table.css +38 -31
  178. package/dist/collection/components/table/table.js +224 -224
  179. package/dist/collection/components/table/test/table.spec.js +48 -48
  180. package/dist/collection/components/text-input/test/text-input.spec.js +31 -31
  181. package/dist/collection/components/text-input/text-input.css +7 -2
  182. package/dist/collection/components/text-input/text-input.js +122 -122
  183. package/dist/collection/utils/country-options.js +198 -198
  184. package/dist/collection/utils/phone-masks.js +1 -1
  185. package/dist/collection/utils/utils.js +107 -107
  186. package/dist/config.js +9 -9
  187. package/dist/docs.d.ts +401 -0
  188. package/dist/docs.json +6506 -0
  189. package/dist/esm/{Api-c65d3ed8.js → Api-0e88671c.js} +35 -35
  190. package/dist/esm/{Pagination-31f770d6.js → Pagination-afc8f96d.js} +5 -5
  191. package/dist/esm/Payout-c42e3877.js +179 -0
  192. package/dist/esm/SubAccount-b3ce8720.js +105 -0
  193. package/dist/esm/additional-questions-details_5.entry.js +50 -50
  194. package/dist/esm/business-form-schema-997c585c.js +144 -0
  195. package/dist/esm/config-476c7241.js +13 -0
  196. package/dist/esm/{form-32cf3d1e.js → form-5279c05a.js} +84 -84
  197. package/dist/esm/form-control-datepart_2.entry.js +108 -108
  198. package/dist/esm/form-control-monetary.entry.js +50 -50
  199. package/dist/esm/form-control-number_3.entry.js +108 -108
  200. package/dist/esm/helpers-d8a6a0f1.js +24 -0
  201. package/dist/esm/{index-5ed53c20.js → index-5eb05747.js} +406 -195
  202. package/dist/esm/{index-7471ed60.js → index-ff8194f9.js} +189 -51
  203. package/dist/esm/{index.esm-9397ffa0.js → index.esm-8ae36d07.js} +61 -30
  204. package/dist/esm/justifi-additional-questions_6.entry.js +372 -372
  205. package/dist/esm/justifi-bank-account-form.entry.js +56 -56
  206. package/dist/esm/justifi-billing-form_2.entry.js +79 -79
  207. package/dist/esm/justifi-business-details.entry.js +61 -61
  208. package/dist/esm/justifi-business-form-stepped.entry.js +110 -110
  209. package/dist/esm/justifi-business-form.entry.js +71 -71
  210. package/dist/esm/justifi-business-list.entry.js +128 -128
  211. package/dist/esm/justifi-card-form.entry.js +57 -57
  212. package/dist/esm/justifi-details.entry.js +13 -13
  213. package/dist/esm/justifi-gross-payment-chart.entry.js +125 -125
  214. package/dist/esm/justifi-payment-balance-transactions.entry.js +72 -72
  215. package/dist/esm/justifi-payment-details.entry.js +53 -53
  216. package/dist/esm/justifi-payment-form.entry.js +89 -89
  217. package/dist/esm/justifi-payment-method-form.entry.js +171 -188
  218. package/dist/esm/justifi-payments-list.entry.js +97 -98
  219. package/dist/esm/justifi-payout-details.entry.js +54 -54
  220. package/dist/esm/justifi-payouts-list.entry.js +119 -119
  221. package/dist/esm/justifi-proceeds-list.entry.js +135 -135
  222. package/dist/esm/justifi-refund-form.entry.js +85 -85
  223. package/dist/esm/justifi-subaccount-details.entry.js +62 -62
  224. package/dist/esm/justifi-subaccounts-list.entry.js +84 -84
  225. package/dist/esm/justifi-table_2.entry.js +61 -61
  226. package/dist/esm/loader.js +3 -3
  227. package/dist/esm/polyfills/core-js.js +0 -0
  228. package/dist/esm/polyfills/dom.js +0 -0
  229. package/dist/esm/polyfills/es5-html-element.js +0 -0
  230. package/dist/esm/polyfills/index.js +0 -0
  231. package/dist/esm/polyfills/system.js +0 -0
  232. package/dist/esm/select-input_2.entry.js +38 -38
  233. package/dist/esm/state-options-fc1daf67.js +244 -0
  234. package/dist/esm/subaccount-account-details_4.entry.js +41 -41
  235. package/dist/esm/subaccount-bank-details.entry.js +11 -11
  236. package/dist/esm/subaccount-terms-details.entry.js +11 -11
  237. package/dist/esm/{utils-40b7002c.js → utils-26c7dd12.js} +108 -108
  238. package/dist/esm/utils-7c6bd149.js +27 -0
  239. package/dist/esm/webcomponents.js +4 -4
  240. package/{loader → dist/loader}/cdn.js +1 -1
  241. package/{loader → dist/loader}/index.cjs.js +1 -1
  242. package/{loader → dist/loader}/index.d.ts +1 -1
  243. package/dist/loader/index.es2017.js +3 -0
  244. package/{loader → dist/loader}/index.js +2 -2
  245. package/dist/{components → module}/Api.js +35 -35
  246. package/dist/{components → module}/Pagination.js +5 -5
  247. package/dist/module/Payout.js +179 -0
  248. package/dist/module/SubAccount.js +105 -0
  249. package/dist/{components → module}/additional-questions-details.d.ts +2 -2
  250. package/dist/module/additional-questions-details2.js +36 -0
  251. package/dist/module/additional-questions.js +50 -0
  252. package/dist/module/billing-form.js +113 -0
  253. package/dist/module/business-address-form.js +72 -0
  254. package/dist/module/business-generic-info.js +212 -0
  255. package/dist/module/business-owners.js +116 -0
  256. package/dist/module/business-representative.js +90 -0
  257. package/dist/module/config.js +13 -0
  258. package/dist/module/details.js +38 -0
  259. package/dist/{components → module}/form-control-datepart.d.ts +2 -2
  260. package/dist/module/form-control-datepart2.js +98 -0
  261. package/dist/{components → module}/form-control-monetary.d.ts +2 -2
  262. package/dist/module/form-control-monetary2.js +83 -0
  263. package/dist/{components → module}/form-control-number-masked.d.ts +2 -2
  264. package/dist/module/form-control-number-masked2.js +82 -0
  265. package/dist/{components → module}/form-control-number.d.ts +2 -2
  266. package/dist/module/form-control-number2.js +71 -0
  267. package/dist/{components → module}/form-control-select.d.ts +2 -2
  268. package/dist/module/form-control-select2.js +67 -0
  269. package/dist/{components → module}/form-control-text.d.ts +2 -2
  270. package/dist/module/form-control-text2.js +71 -0
  271. package/dist/{components → module}/form.js +84 -84
  272. package/dist/{components → module}/generic-info-details.d.ts +2 -2
  273. package/dist/module/generic-info-details2.js +37 -0
  274. package/dist/module/helpers.js +24 -0
  275. package/dist/{components → module}/index.esm.js +61 -30
  276. package/dist/{components → module}/index2.js +406 -195
  277. package/dist/{components → module}/justifi-additional-questions.d.ts +2 -2
  278. package/dist/{components → module}/justifi-bank-account-form.d.ts +2 -2
  279. package/dist/module/justifi-bank-account-form.js +96 -0
  280. package/dist/{components → module}/justifi-billing-form.d.ts +2 -2
  281. package/dist/{components → module}/justifi-business-address-form.d.ts +2 -2
  282. package/dist/{components → module}/justifi-business-details.d.ts +2 -2
  283. package/dist/module/justifi-business-details.js +130 -0
  284. package/dist/{components → module}/justifi-business-form-stepped.d.ts +2 -2
  285. package/dist/module/justifi-business-form-stepped.js +228 -0
  286. package/dist/{components → module}/justifi-business-form.d.ts +2 -2
  287. package/dist/{components/justifi-payment-details.js → module/justifi-business-form.js} +161 -79
  288. package/dist/{components → module}/justifi-business-generic-info.d.ts +2 -2
  289. package/dist/{components → module}/justifi-business-list.d.ts +2 -2
  290. package/dist/module/justifi-business-list.js +197 -0
  291. package/dist/{components → module}/justifi-business-owners.d.ts +2 -2
  292. package/dist/{components → module}/justifi-business-representative.d.ts +2 -2
  293. package/dist/{components → module}/justifi-card-form.d.ts +2 -2
  294. package/dist/module/justifi-card-form.js +98 -0
  295. package/dist/{components → module}/justifi-details.d.ts +2 -2
  296. package/dist/{components → module}/justifi-gross-payment-chart.d.ts +2 -2
  297. package/dist/{components → module}/justifi-gross-payment-chart.js +146 -142
  298. package/dist/{components → module}/justifi-legal-address-form.d.ts +2 -2
  299. package/dist/{components → module}/justifi-payment-balance-transactions.d.ts +2 -2
  300. package/dist/module/justifi-payment-balance-transactions.js +125 -0
  301. package/dist/{components → module}/justifi-payment-details.d.ts +2 -2
  302. package/dist/module/justifi-payment-details.js +98 -0
  303. package/dist/{components → module}/justifi-payment-form.d.ts +2 -2
  304. package/dist/module/justifi-payment-form.js +169 -0
  305. package/dist/{components → module}/justifi-payment-method-form.d.ts +2 -2
  306. package/dist/{components → module}/justifi-payment-method-selector.d.ts +2 -2
  307. package/dist/{components → module}/justifi-payments-list.d.ts +2 -2
  308. package/dist/module/justifi-payments-list.js +154 -0
  309. package/dist/{components → module}/justifi-payout-details.d.ts +2 -2
  310. package/dist/module/justifi-payout-details.js +99 -0
  311. package/dist/{components → module}/justifi-payouts-list.d.ts +2 -2
  312. package/dist/module/justifi-payouts-list.js +176 -0
  313. package/dist/{components → module}/justifi-proceeds-list.d.ts +2 -2
  314. package/dist/module/justifi-proceeds-list.js +199 -0
  315. package/dist/{components → module}/justifi-refund-form.d.ts +2 -2
  316. package/dist/module/justifi-refund-form.js +139 -0
  317. package/dist/{components → module}/justifi-subaccount-details.d.ts +2 -2
  318. package/dist/module/justifi-subaccount-details.js +134 -0
  319. package/dist/{components → module}/justifi-subaccounts-list.d.ts +2 -2
  320. package/dist/module/justifi-subaccounts-list.js +142 -0
  321. package/dist/{components → module}/justifi-table.d.ts +2 -2
  322. package/dist/{components → module}/legal-address-details.d.ts +2 -2
  323. package/dist/module/legal-address-details2.js +36 -0
  324. package/dist/module/legal-address-form.js +268 -0
  325. package/dist/{components → module}/owner-details.d.ts +2 -2
  326. package/dist/module/owner-details2.js +39 -0
  327. package/dist/{components → module}/pagination-menu.d.ts +2 -2
  328. package/dist/module/pagination-menu2.js +43 -0
  329. package/dist/{components → module}/payment-method-form.js +191 -207
  330. package/dist/module/payment-method-selector.js +44 -0
  331. package/dist/{components → module}/phone-masks.js +1 -1
  332. package/dist/{components → module}/representative-details.d.ts +2 -2
  333. package/dist/module/representative-details2.js +37 -0
  334. package/dist/{components → module}/select-input.d.ts +2 -2
  335. package/dist/module/select-input2.js +50 -0
  336. package/dist/module/state-options.js +244 -0
  337. package/dist/{components → module}/subaccount-account-details.d.ts +2 -2
  338. package/dist/module/subaccount-account-details2.js +38 -0
  339. package/dist/{components → module}/subaccount-bank-details.d.ts +2 -2
  340. package/dist/module/subaccount-bank-details.js +39 -0
  341. package/dist/{components → module}/subaccount-merchant-details.d.ts +2 -2
  342. package/dist/module/subaccount-merchant-details2.js +37 -0
  343. package/dist/{components → module}/subaccount-owners-details.d.ts +2 -2
  344. package/dist/module/subaccount-owners-details2.js +37 -0
  345. package/dist/{components → module}/subaccount-representative-details.d.ts +2 -2
  346. package/dist/module/subaccount-representative-details2.js +37 -0
  347. package/dist/{components → module}/subaccount-terms-details.d.ts +2 -2
  348. package/dist/{webcomponents/p-98e4eae3.entry.js → module/subaccount-terms-details.js} +39 -1
  349. package/dist/module/table.js +90 -0
  350. package/dist/{components → module}/text-input.d.ts +2 -2
  351. package/dist/module/text-input2.js +48 -0
  352. package/dist/module/utils.js +27 -0
  353. package/dist/{components → module}/utils2.js +108 -108
  354. package/dist/types/api/Api.d.ts +14 -14
  355. package/dist/types/api/Business.d.ts +120 -120
  356. package/dist/types/api/GrossVolume.d.ts +4 -4
  357. package/dist/types/api/Pagination.d.ts +12 -12
  358. package/dist/types/api/Payment.d.ts +134 -134
  359. package/dist/types/api/Payout.d.ts +51 -51
  360. package/dist/types/api/Proceed.d.ts +51 -51
  361. package/dist/types/api/SubAccount.d.ts +130 -130
  362. package/dist/types/api/mockData/MockOnboardingData.d.ts +5 -5
  363. package/dist/types/api/mockData/mockGrossVolumeReport.d.ts +5 -5
  364. package/dist/types/api/shared.d.ts +9 -9
  365. package/dist/types/components/bank-account-form/bank-account-form.d.ts +58 -0
  366. package/dist/types/components/billing-form/billing-form-schema.d.ts +18 -18
  367. package/dist/types/components/billing-form/billing-form.d.ts +25 -25
  368. package/dist/types/components/billing-form/state-options.d.ts +2 -2
  369. package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +2 -2
  370. package/dist/types/components/business-details/business-details.d.ts +13 -13
  371. package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +2 -2
  372. package/dist/types/components/business-details/legal-address-details/legal-address-details.d.ts +2 -2
  373. package/dist/types/components/business-details/owner-details/owner-details.d.ts +2 -2
  374. package/dist/types/components/business-details/representative-details/representative-details.d.ts +2 -2
  375. package/dist/types/components/business-form/additional-questions/additional-questions.d.ts +7 -7
  376. package/dist/types/components/business-form/business-address/business-address-form-schema.d.ts +16 -16
  377. package/dist/types/components/business-form/business-address/business-address-form.d.ts +7 -7
  378. package/dist/types/components/business-form/business-form-schema.d.ts +102 -102
  379. package/dist/types/components/business-form/business-form-stepped.d.ts +23 -23
  380. package/dist/types/components/business-form/business-form.d.ts +11 -11
  381. package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +6 -6
  382. package/dist/types/components/business-form/business-owners/business-owners.d.ts +22 -22
  383. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +13 -13
  384. package/dist/types/components/business-form/business-representative/business-representative.d.ts +8 -8
  385. package/dist/types/components/business-form/legal-address-form/legal-address-form-schema.d.ts +12 -12
  386. package/dist/types/components/business-form/legal-address-form/legal-address-form.d.ts +7 -7
  387. package/dist/types/components/business-list/business-list.d.ts +27 -27
  388. package/dist/types/components/business-list/business-list.stories.d.ts +3 -3
  389. package/dist/types/components/card-form/card-form.d.ts +68 -0
  390. package/dist/types/components/details/details.d.ts +2 -2
  391. package/dist/types/components/details/utils.d.ts +10 -10
  392. package/dist/types/components/form/form-control-datepart.d.ts +16 -16
  393. package/dist/types/components/form/form-control-monetary.d.ts +14 -14
  394. package/dist/types/components/form/form-control-number-masked.d.ts +16 -16
  395. package/dist/types/components/form/form-control-number.d.ts +15 -15
  396. package/dist/types/components/form/form-control-select.d.ts +17 -17
  397. package/dist/types/components/form/form-control-text.d.ts +15 -15
  398. package/dist/types/components/form/form.d.ts +18 -18
  399. package/dist/types/components/gross-payment-chart/chart-utils.d.ts +39 -39
  400. package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +16 -16
  401. package/dist/types/components/pagination-menu/pagination-menu.d.ts +5 -5
  402. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +14 -14
  403. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +3 -3
  404. package/dist/types/components/payment-details/payment-details.d.ts +9 -9
  405. package/dist/types/components/payment-form/payment-form.d.ts +22 -22
  406. package/dist/types/components/payment-form/payment-method-selector.d.ts +6 -6
  407. package/dist/types/components/payment-form/tokenize.d.ts +3 -3
  408. package/dist/types/components/payment-method-form/message-event-types.d.ts +14 -14
  409. package/dist/types/components/payment-method-form/payment-method-form.d.ts +21 -22
  410. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +40 -40
  411. package/dist/types/components/payment-method-form/theme.d.ts +45 -45
  412. package/dist/types/components/payments-list/payments-list.d.ts +14 -14
  413. package/dist/types/components/payout-details/payout-details.d.ts +9 -9
  414. package/dist/types/components/payouts-list/payouts-list.d.ts +15 -15
  415. package/dist/types/components/proceeds-list/proceeds-list.d.ts +15 -15
  416. package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +4 -4
  417. package/dist/types/components/refund-form/refund-form-schema.d.ts +4 -4
  418. package/dist/types/components/refund-form/refund-form.d.ts +54 -54
  419. package/dist/types/components/refund-form/refund-form.stories.d.ts +21 -21
  420. package/dist/types/components/select-input/select-input.d.ts +14 -14
  421. package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +3 -3
  422. package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +2 -2
  423. package/dist/types/components/subaccount-details/subaccount-details.d.ts +13 -13
  424. package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +3 -3
  425. package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +2 -2
  426. package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +2 -2
  427. package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +2 -2
  428. package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +2 -2
  429. package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +14 -14
  430. package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +4 -4
  431. package/dist/types/components/table/table.d.ts +19 -19
  432. package/dist/types/components/text-input/text-input.d.ts +10 -10
  433. package/dist/types/components.d.ts +228 -15
  434. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/config.d.ts +11 -0
  435. package/dist/types/stencil-public-runtime.d.ts +32 -3
  436. package/dist/types/utils/country-options.d.ts +2 -2
  437. package/dist/types/utils/phone-masks.d.ts +1 -1
  438. package/dist/webcomponents/p-04817850.entry.js +1 -0
  439. package/dist/webcomponents/{p-b157f6ae.js → p-04c7f8f8.js} +1 -1
  440. package/dist/webcomponents/p-0a351e24.entry.js +1 -0
  441. package/dist/webcomponents/{p-ed8c9b88.entry.js → p-0ad353cc.entry.js} +1 -1
  442. package/dist/webcomponents/{p-cdd06952.entry.js → p-0f5206f0.entry.js} +1 -1
  443. package/dist/{components/subaccount-terms-details.js → webcomponents/p-173fb8ef.entry.js} +1 -38
  444. package/dist/webcomponents/p-1e2a98bf.js +1 -0
  445. package/dist/webcomponents/{p-86c23e1e.js → p-210677e3.js} +1 -1
  446. package/dist/webcomponents/p-22c2a11e.entry.js +1 -0
  447. package/dist/webcomponents/p-2cab231e.entry.js +1 -0
  448. package/dist/webcomponents/p-2ea68b03.entry.js +1 -0
  449. package/dist/{components/additional-questions-details2.js → webcomponents/p-33e74da7.entry.js} +1 -35
  450. package/dist/webcomponents/p-34430db2.entry.js +1 -0
  451. package/dist/webcomponents/p-377303af.entry.js +1 -0
  452. package/dist/webcomponents/{p-988191bf.js → p-3bef762a.js} +1 -1
  453. package/dist/webcomponents/p-42bc8e53.entry.js +1 -0
  454. package/dist/webcomponents/p-439a79c7.entry.js +1 -0
  455. package/dist/webcomponents/p-57efe345.entry.js +1 -0
  456. package/dist/webcomponents/p-59ecc2d7.entry.js +1 -0
  457. package/dist/webcomponents/p-650eb614.entry.js +1 -0
  458. package/dist/webcomponents/p-68427454.entry.js +1 -0
  459. package/dist/webcomponents/{p-59860ac8.js → p-78baff54.js} +1 -1
  460. package/dist/webcomponents/p-7d922421.entry.js +1 -0
  461. package/dist/webcomponents/{p-311250e2.entry.js → p-8302a5e2.entry.js} +1 -1
  462. package/dist/webcomponents/p-862f38cc.entry.js +1 -0
  463. package/dist/webcomponents/p-93579716.js +1 -0
  464. package/dist/webcomponents/p-b2dc938f.entry.js +1 -0
  465. package/dist/webcomponents/p-c8099443.entry.js +1 -0
  466. package/dist/webcomponents/p-c8916484.entry.js +1 -0
  467. package/dist/webcomponents/{p-c0f9f6a8.entry.js → p-cb5352a3.entry.js} +2 -2
  468. package/dist/webcomponents/p-cf656598.entry.js +1 -0
  469. package/dist/webcomponents/p-d84cd3a5.entry.js +1 -0
  470. package/dist/webcomponents/p-da00d9bf.js +2 -0
  471. package/dist/webcomponents/p-dd4e8fa1.entry.js +1 -0
  472. package/dist/webcomponents/p-df8f6a0f.entry.js +1 -0
  473. package/dist/webcomponents/p-e8f41c84.entry.js +1 -0
  474. package/dist/webcomponents/p-e9589e45.entry.js +1 -0
  475. package/dist/webcomponents/webcomponents.css +1 -1
  476. package/dist/webcomponents/webcomponents.esm.js +1 -1
  477. package/package.json +18 -41
  478. package/dist/cjs/Payout-f8240e9c.js +0 -183
  479. package/dist/cjs/SubAccount-f47c8522.js +0 -107
  480. package/dist/cjs/business-form-schema-fe831c30.js +0 -148
  481. package/dist/cjs/config-a156df17.js +0 -15
  482. package/dist/cjs/helpers-c505d861.js +0 -26
  483. package/dist/cjs/state-options-83b52cd1.js +0 -246
  484. package/dist/cjs/utils-a47b2e73.js +0 -35
  485. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +0 -132
  486. package/dist/collection/components/bank-account-form/example.js +0 -54
  487. package/dist/collection/components/billing-form/billing-form.stories.js +0 -61
  488. package/dist/collection/components/billing-form/example.js +0 -26
  489. package/dist/collection/components/business-details/business-details.stories.js +0 -23
  490. package/dist/collection/components/business-form/business-form-example.js +0 -12
  491. package/dist/collection/components/business-form/business-form-stepped-example.js +0 -12
  492. package/dist/collection/components/business-form/business-form-stepped.stories.js +0 -132
  493. package/dist/collection/components/business-form/business-form.stories.js +0 -127
  494. package/dist/collection/components/card-form/card-form.stories.js +0 -137
  495. package/dist/collection/components/card-form/example.js +0 -59
  496. package/dist/collection/components/gross-payment-chart/example.js +0 -12
  497. package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js +0 -22
  498. package/dist/collection/components/payment-details/example.js +0 -12
  499. package/dist/collection/components/payment-details/payment-details.stories.js +0 -47
  500. package/dist/collection/components/payment-form/example.js +0 -23
  501. package/dist/collection/components/payment-form/payment-form.stories.js +0 -129
  502. package/dist/collection/components/payments-list/example.js +0 -12
  503. package/dist/collection/components/payments-list/payments-list.stories.js +0 -88
  504. package/dist/collection/components/payout-details/example.js +0 -12
  505. package/dist/collection/components/payout-details/payout-details.stories.js +0 -47
  506. package/dist/collection/components/payouts-list/example.js +0 -12
  507. package/dist/collection/components/payouts-list/payouts-list.stories.js +0 -88
  508. package/dist/components/Payout.js +0 -179
  509. package/dist/components/SubAccount.js +0 -105
  510. package/dist/components/additional-questions.js +0 -49
  511. package/dist/components/billing-form.js +0 -112
  512. package/dist/components/business-address-form.js +0 -69
  513. package/dist/components/business-generic-info.js +0 -211
  514. package/dist/components/business-owners.js +0 -115
  515. package/dist/components/business-representative.js +0 -89
  516. package/dist/components/config.js +0 -13
  517. package/dist/components/details.js +0 -37
  518. package/dist/components/form-control-datepart2.js +0 -95
  519. package/dist/components/form-control-monetary2.js +0 -80
  520. package/dist/components/form-control-number-masked2.js +0 -79
  521. package/dist/components/form-control-number2.js +0 -68
  522. package/dist/components/form-control-select2.js +0 -64
  523. package/dist/components/form-control-text2.js +0 -68
  524. package/dist/components/generic-info-details2.js +0 -36
  525. package/dist/components/helpers.js +0 -24
  526. package/dist/components/justifi-bank-account-form.js +0 -95
  527. package/dist/components/justifi-business-details.js +0 -129
  528. package/dist/components/justifi-business-form-stepped.js +0 -227
  529. package/dist/components/justifi-business-form.js +0 -175
  530. package/dist/components/justifi-business-list.js +0 -192
  531. package/dist/components/justifi-card-form.js +0 -97
  532. package/dist/components/justifi-payment-balance-transactions.js +0 -122
  533. package/dist/components/justifi-payment-form.js +0 -168
  534. package/dist/components/justifi-payments-list.js +0 -149
  535. package/dist/components/justifi-payout-details.js +0 -95
  536. package/dist/components/justifi-payouts-list.js +0 -171
  537. package/dist/components/justifi-proceeds-list.js +0 -194
  538. package/dist/components/justifi-refund-form.js +0 -138
  539. package/dist/components/justifi-subaccount-details.js +0 -130
  540. package/dist/components/justifi-subaccounts-list.js +0 -137
  541. package/dist/components/legal-address-details2.js +0 -35
  542. package/dist/components/legal-address-form.js +0 -267
  543. package/dist/components/owner-details2.js +0 -38
  544. package/dist/components/pagination-menu2.js +0 -42
  545. package/dist/components/payment-method-selector.js +0 -43
  546. package/dist/components/representative-details2.js +0 -36
  547. package/dist/components/select-input2.js +0 -49
  548. package/dist/components/state-options.js +0 -244
  549. package/dist/components/subaccount-account-details2.js +0 -37
  550. package/dist/components/subaccount-bank-details.js +0 -38
  551. package/dist/components/subaccount-merchant-details2.js +0 -36
  552. package/dist/components/subaccount-owners-details2.js +0 -36
  553. package/dist/components/subaccount-representative-details2.js +0 -36
  554. package/dist/components/table.js +0 -89
  555. package/dist/components/text-input2.js +0 -47
  556. package/dist/components/utils.js +0 -27
  557. package/dist/esm/Payout-586f06a3.js +0 -179
  558. package/dist/esm/SubAccount-128190e9.js +0 -105
  559. package/dist/esm/business-form-schema-30a3eadd.js +0 -144
  560. package/dist/esm/config-ceb0f902.js +0 -13
  561. package/dist/esm/helpers-1d5ecdc8.js +0 -24
  562. package/dist/esm/state-options-ece00aa2.js +0 -244
  563. package/dist/esm/utils-d19c2778.js +0 -27
  564. package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +0 -23
  565. package/dist/types/components/billing-form/billing-form.stories.d.ts +0 -8
  566. package/dist/types/components/business-details/business-details.stories.d.ts +0 -7
  567. package/dist/types/components/business-form/business-form-stepped.stories.d.ts +0 -27
  568. package/dist/types/components/business-form/business-form.stories.d.ts +0 -27
  569. package/dist/types/components/card-form/card-form.stories.d.ts +0 -17
  570. package/dist/types/components/gross-payment-chart/gross-payment-chart.stories.d.ts +0 -7
  571. package/dist/types/components/payment-details/payment-details.stories.d.ts +0 -8
  572. package/dist/types/components/payment-form/payment-form.stories.d.ts +0 -8
  573. package/dist/types/components/payments-list/payments-list.stories.d.ts +0 -9
  574. package/dist/types/components/payout-details/payout-details.stories.d.ts +0 -8
  575. package/dist/types/components/payouts-list/payouts-list.stories.d.ts +0 -9
  576. package/dist/types/home/runner/work/web-component-library/web-component-library/stencil-library/.stencil/config.d.ts +0 -11
  577. package/dist/webcomponents/p-14f7229e.entry.js +0 -1
  578. package/dist/webcomponents/p-2c2cde2d.js +0 -1
  579. package/dist/webcomponents/p-3501b0e8.entry.js +0 -1
  580. package/dist/webcomponents/p-3ee831ac.entry.js +0 -1
  581. package/dist/webcomponents/p-3fc95638.entry.js +0 -1
  582. package/dist/webcomponents/p-4214dbb8.entry.js +0 -1
  583. package/dist/webcomponents/p-46d5f717.entry.js +0 -1
  584. package/dist/webcomponents/p-4852ce94.entry.js +0 -1
  585. package/dist/webcomponents/p-4ec00b55.entry.js +0 -1
  586. package/dist/webcomponents/p-4fb653a8.entry.js +0 -1
  587. package/dist/webcomponents/p-586c8a4f.entry.js +0 -1
  588. package/dist/webcomponents/p-5e6726a8.entry.js +0 -1
  589. package/dist/webcomponents/p-7bda12a5.entry.js +0 -1
  590. package/dist/webcomponents/p-8f37e3ee.js +0 -1
  591. package/dist/webcomponents/p-91757d9f.entry.js +0 -1
  592. package/dist/webcomponents/p-9e012e33.entry.js +0 -1
  593. package/dist/webcomponents/p-a1ef6b4c.entry.js +0 -1
  594. package/dist/webcomponents/p-af771964.entry.js +0 -1
  595. package/dist/webcomponents/p-b60a58f4.entry.js +0 -1
  596. package/dist/webcomponents/p-bb70152e.entry.js +0 -1
  597. package/dist/webcomponents/p-bc91044c.entry.js +0 -1
  598. package/dist/webcomponents/p-c29c587f.entry.js +0 -1
  599. package/dist/webcomponents/p-cbb60191.js +0 -2
  600. package/dist/webcomponents/p-d0e4eca5.entry.js +0 -1
  601. package/dist/webcomponents/p-d4b66d74.entry.js +0 -1
  602. package/dist/webcomponents/p-e7ef2455.entry.js +0 -1
  603. package/dist/webcomponents/p-f2f0aa6e.entry.js +0 -1
  604. package/dist/webcomponents/p-f4075186.entry.js +0 -1
  605. package/loader/index.es2017.js +0 -3
  606. /package/{loader → dist/loader}/package.json +0 -0
  607. /package/dist/{components → module}/additional-questions-details.js +0 -0
  608. /package/dist/{components → module}/form-control-datepart.js +0 -0
  609. /package/dist/{components → module}/form-control-monetary.js +0 -0
  610. /package/dist/{components → module}/form-control-number-masked.js +0 -0
  611. /package/dist/{components → module}/form-control-number.js +0 -0
  612. /package/dist/{components → module}/form-control-select.js +0 -0
  613. /package/dist/{components → module}/form-control-text.js +0 -0
  614. /package/dist/{components → module}/generic-info-details.js +0 -0
  615. /package/dist/{components → module}/index.d.ts +0 -0
  616. /package/dist/{components → module}/index.js +0 -0
  617. /package/dist/{components → module}/justifi-additional-questions.js +0 -0
  618. /package/dist/{components → module}/justifi-billing-form.js +0 -0
  619. /package/dist/{components → module}/justifi-business-address-form.js +0 -0
  620. /package/dist/{components → module}/justifi-business-generic-info.js +0 -0
  621. /package/dist/{components → module}/justifi-business-owners.js +0 -0
  622. /package/dist/{components → module}/justifi-business-representative.js +0 -0
  623. /package/dist/{components → module}/justifi-details.js +0 -0
  624. /package/dist/{components → module}/justifi-legal-address-form.js +0 -0
  625. /package/dist/{components → module}/justifi-payment-method-form.js +0 -0
  626. /package/dist/{components → module}/justifi-payment-method-selector.js +0 -0
  627. /package/dist/{components → module}/justifi-table.js +0 -0
  628. /package/dist/{components → module}/legal-address-details.js +0 -0
  629. /package/dist/{components → module}/owner-details.js +0 -0
  630. /package/dist/{components → module}/pagination-menu.js +0 -0
  631. /package/dist/{components → module}/representative-details.js +0 -0
  632. /package/dist/{components → module}/select-input.js +0 -0
  633. /package/dist/{components → module}/subaccount-account-details.js +0 -0
  634. /package/dist/{components → module}/subaccount-merchant-details.js +0 -0
  635. /package/dist/{components → module}/subaccount-owners-details.js +0 -0
  636. /package/dist/{components → module}/subaccount-representative-details.js +0 -0
  637. /package/dist/{components → module}/text-input.js +0 -0
  638. /package/dist/webcomponents/{p-0d5d02d7.js → p-56f6ce4c.js} +0 -0
  639. /package/dist/webcomponents/{p-e12ab547.js → p-71679a41.js} +0 -0
  640. /package/dist/webcomponents/{p-47bc59b5.js → p-8e2a88a8.js} +0 -0
  641. /package/dist/webcomponents/{p-d6b5793d.js → p-9a6e4749.js} +0 -0
  642. /package/dist/webcomponents/{p-526cb161.js → p-9b4b91ba.js} +0 -0
  643. /package/dist/webcomponents/{p-9b6dcac5.js → p-ae263544.js} +0 -0
  644. /package/dist/webcomponents/{p-7d58db66.js → p-bedada09.js} +0 -0
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h, H as Host } from './index-7471ed60.js';
2
- import { A as Api } from './Api-c65d3ed8.js';
3
- import './Pagination-31f770d6.js';
4
- import './Payout-586f06a3.js';
5
- import { a as formatCurrency, b as formatDisplayDate } from './utils-40b7002c.js';
6
- import { E as ErrorState } from './utils-d19c2778.js';
7
- import { c as config } from './config-ceb0f902.js';
1
+ import { r as registerInstance, h, H as Host } from './index-ff8194f9.js';
2
+ import { A as Api } from './Api-0e88671c.js';
3
+ import './Pagination-afc8f96d.js';
4
+ import './Payout-c42e3877.js';
5
+ import { a as formatCurrency, b as formatDisplayDate } from './utils-26c7dd12.js';
6
+ import { E as ErrorState } from './utils-7c6bd149.js';
7
+ import { c as config } from './config-476c7241.js';
8
8
 
9
9
  /*!
10
10
  * @kurkle/color v0.3.2
@@ -10903,133 +10903,133 @@ class LinearScale extends LinearScaleBase {
10903
10903
  }
10904
10904
 
10905
10905
  const generateChartOptions = (total, dates, endDate) => {
10906
- return ({
10907
- type: 'bar',
10908
- options: {
10909
- plugins: {
10910
- legend: {
10911
- display: false
10912
- },
10913
- title: {
10914
- display: true,
10915
- text: ['Trailing 30 Days', 'Gross Payments', formatCurrency(total)],
10916
- position: 'top',
10917
- align: 'start'
10918
- },
10919
- tooltip: {
10920
- displayColors: false,
10921
- intersect: false,
10922
- callbacks: {
10923
- label: (context) => {
10924
- let index = context.dataIndex;
10925
- let date = formatDisplayDate(dates[index].date, endDate);
10926
- let value = formatCurrency(dates[index].value);
10927
- return [date, value];
10906
+ return ({
10907
+ type: 'bar',
10908
+ options: {
10909
+ plugins: {
10910
+ legend: {
10911
+ display: false
10912
+ },
10913
+ title: {
10914
+ display: true,
10915
+ text: ['Trailing 30 Days', 'Gross Payments', formatCurrency(total)],
10916
+ position: 'top',
10917
+ align: 'start'
10918
+ },
10919
+ tooltip: {
10920
+ displayColors: false,
10921
+ intersect: false,
10922
+ callbacks: {
10923
+ label: (context) => {
10924
+ let index = context.dataIndex;
10925
+ let date = formatDisplayDate(dates[index].date, endDate);
10926
+ let value = formatCurrency(dates[index].value);
10927
+ return [date, value];
10928
+ },
10929
+ }
10930
+ }
10928
10931
  },
10929
- }
10930
- }
10931
- },
10932
- scales: {
10933
- x: {
10934
- grid: {
10935
- drawOnChartArea: false,
10936
- drawTicks: false
10937
- },
10938
- ticks: {
10939
- callback: (index) => {
10940
- if (index === 0 || index === dates.length - 1) {
10941
- return formatDisplayDate(dates[index].date, endDate);
10942
- }
10943
- }
10944
- }
10932
+ scales: {
10933
+ x: {
10934
+ grid: {
10935
+ drawOnChartArea: false,
10936
+ drawTicks: false
10937
+ },
10938
+ ticks: {
10939
+ callback: (index) => {
10940
+ if (index === 0 || index === dates.length - 1) {
10941
+ return formatDisplayDate(dates[index].date, endDate);
10942
+ }
10943
+ }
10944
+ }
10945
+ },
10946
+ y: {
10947
+ display: false
10948
+ }
10949
+ }
10945
10950
  },
10946
- y: {
10947
- display: false
10948
- }
10949
- }
10950
- },
10951
- data: {
10952
- labels: dates.map(() => ''),
10953
- datasets: [
10954
- {
10955
- label: 'Gross Volume by Date',
10956
- data: dates.map((date) => date.value)
10957
- }
10958
- ]
10959
- },
10960
- });
10951
+ data: {
10952
+ labels: dates.map(() => ''),
10953
+ datasets: [
10954
+ {
10955
+ label: 'Gross Volume by Date',
10956
+ data: dates.map((date) => date.value)
10957
+ }
10958
+ ]
10959
+ },
10960
+ });
10961
10961
  };
10962
10962
 
10963
- const grossPaymentChartCss = ":root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-font-sans-serif:system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33, 37, 41;--bs-body-bg:#fff;--bs-body-bg-rgb:255, 255, 255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0, 0, 0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33, 37, 41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233, 236, 239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33, 37, 41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248, 249, 250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13, 110, 253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10, 88, 202;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222, 226, 230;--bs-body-bg:#212529;--bs-body-bg-rgb:33, 37, 41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255, 255, 255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222, 226, 230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52, 58, 64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222, 226, 230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43, 48, 53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110, 168, 254;--bs-link-hover-color-rgb:139, 185, 254;--bs-code-color:#e685b5;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg) }}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.clearfix::after{display:block;clear:both;content:\"\"}.text-bg-primary{color:#fff !important;background-color:RGBA(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-secondary{color:#fff !important;background-color:RGBA(var(--bs-secondary-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-success{color:#fff !important;background-color:RGBA(var(--bs-success-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-info{color:#000 !important;background-color:RGBA(var(--bs-info-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-warning{color:#000 !important;background-color:RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-danger{color:#fff !important;background-color:RGBA(var(--bs-danger-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-light{color:#000 !important;background-color:RGBA(var(--bs-light-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-dark{color:#fff !important;background-color:RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity, 1)) !important}.link-primary{color:RGBA(var(--bs-primary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-primary-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-primary:hover,.link-primary:focus{color:RGBA(10, 88, 202, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(10, 88, 202, var(--bs-link-underline-opacity, 1)) !important}.link-secondary{color:RGBA(var(--bs-secondary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-secondary-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-secondary:hover,.link-secondary:focus{color:RGBA(86, 94, 100, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(86, 94, 100, var(--bs-link-underline-opacity, 1)) !important}.link-success{color:RGBA(var(--bs-success-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-success-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-success:hover,.link-success:focus{color:RGBA(20, 108, 67, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(20, 108, 67, var(--bs-link-underline-opacity, 1)) !important}.link-info{color:RGBA(var(--bs-info-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-info-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-info:hover,.link-info:focus{color:RGBA(61, 213, 243, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(61, 213, 243, var(--bs-link-underline-opacity, 1)) !important}.link-warning{color:RGBA(var(--bs-warning-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-warning:hover,.link-warning:focus{color:RGBA(255, 205, 57, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(255, 205, 57, var(--bs-link-underline-opacity, 1)) !important}.link-danger{color:RGBA(var(--bs-danger-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-danger-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-danger:hover,.link-danger:focus{color:RGBA(176, 42, 55, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(176, 42, 55, var(--bs-link-underline-opacity, 1)) !important}.link-light{color:RGBA(var(--bs-light-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-light-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-light:hover,.link-light:focus{color:RGBA(249, 250, 251, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(249, 250, 251, var(--bs-link-underline-opacity, 1)) !important}.link-dark{color:RGBA(var(--bs-dark-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-dark-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-dark:hover,.link-dark:focus{color:RGBA(26, 30, 33, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(26, 30, 33, var(--bs-link-underline-opacity, 1)) !important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 0.75)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 0.75)) !important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:0.375rem;align-items:center;text-decoration-color:rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 0.5));text-underline-offset:0.25em;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:0.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--bs-icon-link-transform, translate3d(0.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:\"\"}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute !important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:\"\"}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:0.25}:host{display:block}";
10963
+ const grossPaymentChartCss = ":root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-font-sans-serif:system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33, 37, 41;--bs-body-bg:#fff;--bs-body-bg-rgb:255, 255, 255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0, 0, 0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33, 37, 41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233, 236, 239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33, 37, 41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248, 249, 250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13, 110, 253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10, 88, 202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222, 226, 230;--bs-body-bg:#212529;--bs-body-bg-rgb:33, 37, 41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255, 255, 255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222, 226, 230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52, 58, 64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222, 226, 230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43, 48, 53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110, 168, 254;--bs-link-hover-color-rgb:139, 185, 254;--bs-code-color:#e685b5;--bs-highlight-color:#dee2e6;--bs-highlight-bg:#664d03;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg) }}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.clearfix::after{display:block;clear:both;content:\"\"}.text-bg-primary{color:#fff !important;background-color:RGBA(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-secondary{color:#fff !important;background-color:RGBA(var(--bs-secondary-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-success{color:#fff !important;background-color:RGBA(var(--bs-success-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-info{color:#000 !important;background-color:RGBA(var(--bs-info-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-warning{color:#000 !important;background-color:RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-danger{color:#fff !important;background-color:RGBA(var(--bs-danger-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-light{color:#000 !important;background-color:RGBA(var(--bs-light-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-dark{color:#fff !important;background-color:RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity, 1)) !important}.link-primary{color:RGBA(var(--bs-primary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-primary-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-primary:hover,.link-primary:focus{color:RGBA(10, 88, 202, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(10, 88, 202, var(--bs-link-underline-opacity, 1)) !important}.link-secondary{color:RGBA(var(--bs-secondary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-secondary-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-secondary:hover,.link-secondary:focus{color:RGBA(86, 94, 100, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(86, 94, 100, var(--bs-link-underline-opacity, 1)) !important}.link-success{color:RGBA(var(--bs-success-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-success-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-success:hover,.link-success:focus{color:RGBA(20, 108, 67, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(20, 108, 67, var(--bs-link-underline-opacity, 1)) !important}.link-info{color:RGBA(var(--bs-info-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-info-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-info:hover,.link-info:focus{color:RGBA(61, 213, 243, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(61, 213, 243, var(--bs-link-underline-opacity, 1)) !important}.link-warning{color:RGBA(var(--bs-warning-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-warning:hover,.link-warning:focus{color:RGBA(255, 205, 57, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(255, 205, 57, var(--bs-link-underline-opacity, 1)) !important}.link-danger{color:RGBA(var(--bs-danger-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-danger-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-danger:hover,.link-danger:focus{color:RGBA(176, 42, 55, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(176, 42, 55, var(--bs-link-underline-opacity, 1)) !important}.link-light{color:RGBA(var(--bs-light-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-light-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-light:hover,.link-light:focus{color:RGBA(249, 250, 251, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(249, 250, 251, var(--bs-link-underline-opacity, 1)) !important}.link-dark{color:RGBA(var(--bs-dark-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-dark-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-dark:hover,.link-dark:focus{color:RGBA(26, 30, 33, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(26, 30, 33, var(--bs-link-underline-opacity, 1)) !important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 0.75)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 0.75)) !important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:0.375rem;align-items:center;text-decoration-color:rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 0.5));text-underline-offset:0.25em;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:0.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--bs-icon-link-transform, translate3d(0.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:\"\"}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute !important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:\"\"}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:0.25}:host{display:block}";
10964
10964
 
10965
10965
  const GrossPaymentChart = class {
10966
- constructor(hostRef) {
10967
- registerInstance(this, hostRef);
10968
- this.accountId = undefined;
10969
- this.authToken = undefined;
10970
- this.data = undefined;
10971
- this.total = undefined;
10972
- this.dates = undefined;
10973
- this.endDate = undefined;
10974
- this.loading = true;
10975
- this.errorMessage = '';
10976
- }
10977
- updateOnPropChange() {
10978
- this.fetchData();
10979
- }
10980
- connectedCallback() {
10981
- this.fetchData();
10982
- }
10983
- componentDidRender() {
10984
- this.renderChart();
10985
- }
10986
- async fetchData() {
10987
- if (!this.accountId || !this.authToken) {
10988
- this.errorMessage = "Can not fetch any data without an AccountID and an AuthToken";
10989
- this.loading = false;
10990
- return;
10991
- }
10992
- this.loading = true;
10993
- try {
10994
- const api = Api(this.authToken, config.proxyApiOrigin);
10995
- const endpoint = `account/${this.accountId}/reports/gross_volume`;
10996
- const response = await api.get(endpoint);
10997
- if (!response.error) {
10998
- this.total = response === null || response === void 0 ? void 0 : response.data.total;
10999
- this.dates = response === null || response === void 0 ? void 0 : response.data.dates.reverse();
11000
- this.endDate = this.dates[this.dates.length - 1].date;
11001
- }
11002
- else {
11003
- this.errorMessage = `Error trying to fetch data : ${response.error}`;
11004
- console.error(this.errorMessage);
11005
- }
11006
- }
11007
- catch (error) {
11008
- this.errorMessage = `Error trying to fetch data : ${error}`;
11009
- console.error(this.errorMessage);
11010
- }
11011
- finally {
11012
- this.loading = false;
10966
+ constructor(hostRef) {
10967
+ registerInstance(this, hostRef);
10968
+ this.accountId = undefined;
10969
+ this.authToken = undefined;
10970
+ this.data = undefined;
10971
+ this.total = undefined;
10972
+ this.dates = undefined;
10973
+ this.endDate = undefined;
10974
+ this.loading = true;
10975
+ this.errorMessage = '';
10976
+ }
10977
+ updateOnPropChange() {
10978
+ this.fetchData();
10979
+ }
10980
+ connectedCallback() {
10981
+ this.fetchData();
10982
+ }
10983
+ componentDidRender() {
10984
+ this.renderChart();
10985
+ }
10986
+ async fetchData() {
10987
+ if (!this.accountId || !this.authToken) {
10988
+ this.errorMessage = "Can not fetch any data without an AccountID and an AuthToken";
10989
+ this.loading = false;
10990
+ return;
10991
+ }
10992
+ this.loading = true;
10993
+ try {
10994
+ const api = Api(this.authToken, config.proxyApiOrigin);
10995
+ const endpoint = `account/${this.accountId}/reports/gross_volume`;
10996
+ const response = await api.get(endpoint);
10997
+ if (!response.error) {
10998
+ this.total = response === null || response === void 0 ? void 0 : response.data.total;
10999
+ this.dates = response === null || response === void 0 ? void 0 : response.data.dates.reverse();
11000
+ this.endDate = this.dates[this.dates.length - 1].date;
11001
+ }
11002
+ else {
11003
+ this.errorMessage = `Error trying to fetch data : ${response.error}`;
11004
+ console.error(this.errorMessage);
11005
+ }
11006
+ }
11007
+ catch (error) {
11008
+ this.errorMessage = `Error trying to fetch data : ${error}`;
11009
+ console.error(this.errorMessage);
11010
+ }
11011
+ finally {
11012
+ this.loading = false;
11013
+ }
11013
11014
  }
11014
- }
11015
- renderChart() {
11016
- if (this.chart) {
11017
- this.chart.update();
11015
+ renderChart() {
11016
+ if (this.chart) {
11017
+ this.chart.update();
11018
+ }
11019
+ else if (this.chartRef && this.endDate) {
11020
+ Chart.register(plugin_colors, BarController, BarElement, CategoryScale, LinearScale, plugin_legend, plugin_tooltip, plugin_title);
11021
+ this.chart = new Chart(this.chartRef.getContext("2d"), generateChartOptions(this.total, this.dates, this.endDate));
11022
+ this.chart.render();
11023
+ }
11018
11024
  }
11019
- else if (this.chartRef && this.endDate) {
11020
- Chart.register(plugin_colors, BarController, BarElement, CategoryScale, LinearScale, plugin_legend, plugin_tooltip, plugin_title);
11021
- this.chart = new Chart(this.chartRef.getContext("2d"), generateChartOptions(this.total, this.dates, this.endDate));
11022
- this.chart.render();
11025
+ render() {
11026
+ return (h(Host, null, this.errorMessage ? ErrorState(this.errorMessage)
11027
+ : h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem })));
11023
11028
  }
11024
- }
11025
- render() {
11026
- return (h(Host, null, this.errorMessage ? ErrorState(this.errorMessage)
11027
- : h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem })));
11028
- }
11029
- static get watchers() { return {
11030
- "accountId": ["updateOnPropChange"],
11031
- "authToken": ["updateOnPropChange"]
11032
- }; }
11029
+ static get watchers() { return {
11030
+ "accountId": ["updateOnPropChange"],
11031
+ "authToken": ["updateOnPropChange"]
11032
+ }; }
11033
11033
  };
11034
11034
  GrossPaymentChart.style = grossPaymentChartCss;
11035
11035
 
@@ -1,82 +1,82 @@
1
- import { r as registerInstance, h, H as Host } from './index-7471ed60.js';
2
- import { A as Api } from './Api-c65d3ed8.js';
3
- import { p as pagingDefaults } from './Pagination-31f770d6.js';
4
- import { P as PaymentBalanceTransaction } from './Payout-586f06a3.js';
5
- import { f as formatDate, c as formatTime, s as snakeCaseToHumanReadable, a as formatCurrency } from './utils-40b7002c.js';
6
- import { c as config } from './config-ceb0f902.js';
1
+ import { r as registerInstance, h, H as Host } from './index-ff8194f9.js';
2
+ import { A as Api } from './Api-0e88671c.js';
3
+ import { p as pagingDefaults } from './Pagination-afc8f96d.js';
4
+ import { P as PaymentBalanceTransaction } from './Payout-c42e3877.js';
5
+ import { f as formatDate, c as formatTime, s as snakeCaseToHumanReadable, a as formatCurrency } from './utils-26c7dd12.js';
6
+ import { c as config } from './config-476c7241.js';
7
7
 
8
8
  const paymentBalanceTransactionsCss = "";
9
9
 
10
10
  const PaymentBalanceTransactions = class {
11
- constructor(hostRef) {
12
- registerInstance(this, hostRef);
13
- this.handleClickPrevious = (beforeCursor) => {
14
- const newParams = Object.assign({}, this.params);
15
- delete newParams.after_cursor;
16
- this.params = (Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor }));
17
- };
18
- this.handleClickNext = (afterCursor) => {
19
- const newParams = Object.assign({}, this.params);
20
- delete newParams.before_cursor;
21
- this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
22
- };
23
- this.accountId = undefined;
24
- this.authToken = undefined;
25
- this.paymentId = undefined;
26
- this.balanceTransactions = [];
27
- this.loading = true;
28
- this.errorMessage = undefined;
29
- this.paging = pagingDefaults;
30
- this.params = undefined;
31
- }
32
- updateOnPropChange() {
33
- this.fetchData();
34
- }
35
- connectedCallback() {
36
- this.fetchData();
37
- }
38
- async fetchData() {
39
- this.loading = true;
40
- if (!this.accountId || !this.paymentId) {
41
- this.errorMessage = 'Missing required props: accountId or paymentId';
42
- this.loading = false;
43
- return;
11
+ constructor(hostRef) {
12
+ registerInstance(this, hostRef);
13
+ this.handleClickPrevious = (beforeCursor) => {
14
+ const newParams = Object.assign({}, this.params);
15
+ delete newParams.after_cursor;
16
+ this.params = (Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor }));
17
+ };
18
+ this.handleClickNext = (afterCursor) => {
19
+ const newParams = Object.assign({}, this.params);
20
+ delete newParams.before_cursor;
21
+ this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
22
+ };
23
+ this.accountId = undefined;
24
+ this.authToken = undefined;
25
+ this.paymentId = undefined;
26
+ this.balanceTransactions = [];
27
+ this.loading = true;
28
+ this.errorMessage = undefined;
29
+ this.paging = pagingDefaults;
30
+ this.params = undefined;
44
31
  }
45
- const endpoint = `account/${this.accountId}/payments/${this.paymentId}/payment_balance_transactions`;
46
- const response = await Api(this.authToken, config.proxyApiOrigin).get(endpoint, this.params);
47
- if (!response.error) {
48
- this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
49
- this.balanceTransactions = response.data.map(dataItem => new PaymentBalanceTransaction(dataItem));
32
+ updateOnPropChange() {
33
+ this.fetchData();
50
34
  }
51
- else {
52
- this.errorMessage =
53
- typeof response.error === 'string'
54
- ? response.error
55
- : response.error.message;
35
+ connectedCallback() {
36
+ this.fetchData();
56
37
  }
57
- this.loading = false;
58
- }
59
- render() {
60
- return (h(Host, null, h("justifi-table", { columnData: [
61
- ['Processed On', 'The date each transaction occurred'],
62
- ['Type', 'The type of each transaction'],
63
- ['ID', 'The unique identifier of each transaction'],
64
- ['Amout', 'The dollar amount of each transaction'],
65
- [
66
- 'Balance',
67
- 'The running total amount of this payment that belongs to you',
68
- ],
69
- ], entityId: this.balanceTransactions.map(transaction => transaction.id), rowData: this.balanceTransactions.map(balanceTransaction => [
70
- h("div", null, h("div", null, formatDate(balanceTransaction.created_at)), h("div", null, formatTime(balanceTransaction.created_at))),
71
- snakeCaseToHumanReadable(balanceTransaction.payment_balance_txn_type),
72
- balanceTransaction.payment_id,
73
- formatCurrency(balanceTransaction.amount),
74
- formatCurrency(balanceTransaction.balance),
75
- ]), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
76
- }
77
- static get watchers() { return {
78
- "params": ["updateOnPropChange"]
79
- }; }
38
+ async fetchData() {
39
+ this.loading = true;
40
+ if (!this.accountId || !this.paymentId) {
41
+ this.errorMessage = 'Missing required props: accountId or paymentId';
42
+ this.loading = false;
43
+ return;
44
+ }
45
+ const endpoint = `account/${this.accountId}/payments/${this.paymentId}/payment_balance_transactions`;
46
+ const response = await Api(this.authToken, config.proxyApiOrigin).get(endpoint, this.params);
47
+ if (!response.error) {
48
+ this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
49
+ this.balanceTransactions = response.data.map(dataItem => new PaymentBalanceTransaction(dataItem));
50
+ }
51
+ else {
52
+ this.errorMessage =
53
+ typeof response.error === 'string'
54
+ ? response.error
55
+ : response.error.message;
56
+ }
57
+ this.loading = false;
58
+ }
59
+ render() {
60
+ return (h(Host, null, h("justifi-table", { columnData: [
61
+ ['Processed On', 'The date each transaction occurred'],
62
+ ['Type', 'The type of each transaction'],
63
+ ['ID', 'The unique identifier of each transaction'],
64
+ ['Amout', 'The dollar amount of each transaction'],
65
+ [
66
+ 'Balance',
67
+ 'The running total amount of this payment that belongs to you',
68
+ ],
69
+ ], entityId: this.balanceTransactions.map(transaction => transaction.id), rowData: this.balanceTransactions.map(balanceTransaction => [
70
+ h("div", null, h("div", null, formatDate(balanceTransaction.created_at)), h("div", null, formatTime(balanceTransaction.created_at))),
71
+ snakeCaseToHumanReadable(balanceTransaction.payment_balance_txn_type),
72
+ balanceTransaction.payment_id,
73
+ formatCurrency(balanceTransaction.amount),
74
+ formatCurrency(balanceTransaction.balance),
75
+ ]), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
76
+ }
77
+ static get watchers() { return {
78
+ "params": ["updateOnPropChange"]
79
+ }; }
80
80
  };
81
81
  PaymentBalanceTransactions.style = paymentBalanceTransactionsCss;
82
82