@justifi/webcomponents 4.8.2 → 4.9.0

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 (329) hide show
  1. package/dist/cjs/{Business-42d0c522.js → Business-64dffab7.js} +6 -7
  2. package/dist/cjs/{BusinessFormEventTypes-863f48e9.js → BusinessFormEventTypes-62990815.js} +1 -1
  3. package/dist/cjs/{Payout-44b49b2d.js → Payment-89a8bc21.js} +0 -43
  4. package/dist/cjs/Payout-a2dd7b01.js +45 -0
  5. package/dist/cjs/{SubAccount-2a803b22.js → SubAccount-f8144025.js} +1 -1
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +24 -10
  7. package/dist/{webcomponents/p-4ee44c76.entry.js → cjs/business-details-core.cjs.entry.js} +55 -1
  8. package/dist/cjs/form-control-datepart_3.cjs.entry.js +1 -1
  9. package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
  10. package/dist/cjs/form-control-select_2.cjs.entry.js +1 -1
  11. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +11036 -0
  12. package/dist/cjs/{index-55950669.js → index-07ddbad2.js} +0 -3
  13. package/dist/cjs/justifi-additional-questions_5.cjs.entry.js +3 -3
  14. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
  15. package/dist/cjs/{select-input_2.cjs.entry.js → justifi-billing-form_4.cjs.entry.js} +1818 -1
  16. package/dist/cjs/justifi-business-details.cjs.entry.js +43 -57
  17. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +5 -4
  18. package/dist/cjs/justifi-business-form.cjs.entry.js +5 -4
  19. package/dist/cjs/justifi-business-list.cjs.entry.js +5 -4
  20. package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
  21. package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
  22. package/dist/cjs/justifi-checkout-core.cjs.entry.js +95 -0
  23. package/dist/cjs/justifi-checkout.cjs.entry.js +99 -0
  24. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  25. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +39 -11008
  26. package/dist/cjs/justifi-new-payment-method_3.cjs.entry.js +168 -0
  27. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +5 -4
  28. package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -5
  29. package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -4
  30. package/dist/cjs/{justifi-billing-form_2.cjs.entry.js → justifi-payment-method-selector.cjs.entry.js} +4 -79
  31. package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -5
  32. package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -4
  33. package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -4
  34. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +4 -3
  35. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
  36. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +6 -5
  37. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +5 -4
  38. package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
  39. package/dist/cjs/loader.cjs.js +2 -2
  40. package/dist/cjs/payment-details-core.cjs.entry.js +10 -4
  41. package/dist/cjs/{payment.service-605896dc.js → payment.service-0b0086dc.js} +2 -1
  42. package/dist/cjs/payments-list-core.cjs.entry.js +4 -3
  43. package/dist/cjs/payout-details-core.cjs.entry.js +4 -4
  44. package/dist/cjs/{payout.service-b39f2739.js → payout.service-5cc3b4e9.js} +2 -1
  45. package/dist/cjs/payouts-list-core.cjs.entry.js +4 -3
  46. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +7 -7
  47. package/dist/cjs/subaccount-bank-details.cjs.entry.js +3 -3
  48. package/dist/cjs/subaccount-terms-details.cjs.entry.js +3 -3
  49. package/dist/cjs/{utils-d126d17c.js → utils-5c3e442d.js} +5 -5
  50. package/dist/cjs/{utils-29a8a91d.js → utils-84208d99.js} +11 -2
  51. package/dist/cjs/webcomponents.cjs.js +2 -2
  52. package/dist/collection/api/Business.js +6 -7
  53. package/dist/collection/api/Checkout.js +1 -0
  54. package/dist/collection/api/index.js +1 -0
  55. package/dist/collection/api/services/business.service.js +8 -0
  56. package/dist/collection/api/services/checkout.service.js +12 -0
  57. package/dist/collection/api/services/reports.service.js +9 -0
  58. package/dist/collection/collection-manifest.json +7 -0
  59. package/dist/collection/components/billing-form/billing-form.js +1 -2
  60. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +5 -2
  61. package/dist/collection/components/business-details/additional-questions-details/test/additional-questions.spec.js +16 -0
  62. package/dist/collection/components/business-details/business-details-core.js +86 -0
  63. package/dist/collection/components/business-details/business-details.js +20 -65
  64. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +4 -2
  65. package/dist/collection/components/business-details/generic-info-details/test/generic-info-details.spec.js +16 -0
  66. package/dist/collection/components/business-details/get-business.js +17 -0
  67. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +5 -2
  68. package/dist/collection/components/business-details/legal-address-details/test/legal-address-details.spec.js +16 -0
  69. package/dist/collection/components/business-details/owner-details/owner-details.js +10 -12
  70. package/dist/collection/components/business-details/owner-details/test/owner-details.spec.js +16 -0
  71. package/dist/collection/components/business-details/representative-details/representative-details.js +5 -3
  72. package/dist/collection/components/business-details/representative-details/test/representative-details.spec.js +16 -0
  73. package/dist/collection/components/business-details/test/busines-details-core.spec.js +53 -0
  74. package/dist/collection/components/business-details/test/business-details.spec.js +40 -0
  75. package/dist/collection/components/business-details/test/get-business.spec.js +60 -0
  76. package/dist/collection/components/business-form/business-representative/business-representative.js +1 -1
  77. package/dist/collection/components/checkout/checkout-actions.js +33 -0
  78. package/dist/collection/components/checkout/checkout-core.css +2604 -0
  79. package/dist/collection/components/checkout/checkout-core.js +248 -0
  80. package/dist/collection/components/checkout/checkout.js +112 -0
  81. package/dist/collection/components/checkout/new-payment-method.js +188 -0
  82. package/dist/collection/components/checkout/payment-method-option-utils.js +19 -0
  83. package/dist/collection/components/checkout/payment-method-options.css +7073 -0
  84. package/dist/collection/components/checkout/payment-method-options.js +248 -0
  85. package/dist/collection/components/checkout/saved-payment-method.js +123 -0
  86. package/dist/collection/components/checkout/test/checkout.js +22 -0
  87. package/dist/collection/components/checkout/test/checkout.spec.js +166 -0
  88. package/dist/collection/components/checkout/test/mockCheckout.js +19 -0
  89. package/dist/collection/components/details/utils.js +4 -1
  90. package/dist/collection/components/gross-payment-chart/get-gross-payment-chart-data.js +14 -0
  91. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +119 -0
  92. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +25 -73
  93. package/dist/collection/components/gross-payment-chart/test/get-gross-payment-chart-data.spec.js +69 -0
  94. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart-core.spec.js +64 -0
  95. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +23 -8
  96. package/dist/collection/components/payment-details/payment-details-core.js +8 -2
  97. package/dist/collection/components/payment-details/payment-details.js +0 -1
  98. package/dist/collection/components/payment-form/payment-form.js +1 -1
  99. package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
  100. package/dist/collection/components/payout-details/payout-details-core.js +2 -2
  101. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +2 -2
  102. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +2 -2
  103. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +2 -2
  104. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +2 -2
  105. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +2 -2
  106. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +2 -2
  107. package/dist/collection/utils/utils.js +9 -3
  108. package/dist/docs.json +1152 -187
  109. package/dist/esm/{Business-e9340f6b.js → Business-9921d35f.js} +6 -7
  110. package/dist/esm/{BusinessFormEventTypes-989960ba.js → BusinessFormEventTypes-182e20be.js} +1 -1
  111. package/dist/esm/{Payout-dc5f009c.js → Payment-55886c86.js} +1 -43
  112. package/dist/esm/Payout-dfe15b00.js +43 -0
  113. package/dist/esm/{SubAccount-46b4c2b1.js → SubAccount-76f6d565.js} +1 -1
  114. package/dist/esm/additional-questions-details_5.entry.js +24 -10
  115. package/dist/esm/business-details-core.entry.js +51 -0
  116. package/dist/esm/form-control-datepart_3.entry.js +1 -1
  117. package/dist/esm/form-control-monetary.entry.js +1 -1
  118. package/dist/esm/form-control-select_2.entry.js +1 -1
  119. package/dist/esm/gross-payment-chart-core.entry.js +11032 -0
  120. package/dist/esm/{index-62b8aa8a.js → index-fb5ca346.js} +0 -3
  121. package/dist/esm/justifi-additional-questions_5.entry.js +3 -3
  122. package/dist/esm/justifi-bank-account-form.entry.js +1 -1
  123. package/dist/esm/{select-input_2.entry.js → justifi-billing-form_4.entry.js} +1817 -2
  124. package/dist/esm/justifi-business-details.entry.js +42 -56
  125. package/dist/esm/justifi-business-form-stepped.entry.js +5 -4
  126. package/dist/esm/justifi-business-form.entry.js +5 -4
  127. package/dist/esm/justifi-business-list.entry.js +5 -4
  128. package/dist/esm/justifi-business-owners.entry.js +1 -1
  129. package/dist/esm/justifi-card-form.entry.js +1 -1
  130. package/dist/esm/justifi-checkout-core.entry.js +91 -0
  131. package/dist/esm/justifi-checkout.entry.js +95 -0
  132. package/dist/esm/justifi-details.entry.js +2 -2
  133. package/dist/esm/justifi-gross-payment-chart.entry.js +39 -11008
  134. package/dist/esm/justifi-new-payment-method_3.entry.js +162 -0
  135. package/dist/esm/justifi-payment-balance-transactions.entry.js +4 -3
  136. package/dist/esm/justifi-payment-details.entry.js +5 -4
  137. package/dist/esm/justifi-payment-form.entry.js +4 -3
  138. package/dist/esm/{justifi-billing-form_2.entry.js → justifi-payment-method-selector.entry.js} +4 -78
  139. package/dist/esm/justifi-payments-list.entry.js +5 -4
  140. package/dist/esm/justifi-payout-details.entry.js +5 -4
  141. package/dist/esm/justifi-payouts-list.entry.js +5 -4
  142. package/dist/esm/justifi-proceeds-list.entry.js +4 -3
  143. package/dist/esm/justifi-refund-form.entry.js +3 -2
  144. package/dist/esm/justifi-subaccount-details.entry.js +6 -5
  145. package/dist/esm/justifi-subaccounts-list.entry.js +5 -4
  146. package/dist/esm/justifi-table_2.entry.js +1 -1
  147. package/dist/esm/loader.js +3 -3
  148. package/dist/esm/payment-details-core.entry.js +10 -4
  149. package/dist/esm/{payment.service-bea02ccf.js → payment.service-f274ef98.js} +2 -1
  150. package/dist/esm/payments-list-core.entry.js +4 -3
  151. package/dist/esm/payout-details-core.entry.js +4 -4
  152. package/dist/esm/{payout.service-92e56814.js → payout.service-af293f61.js} +2 -1
  153. package/dist/esm/payouts-list-core.entry.js +4 -3
  154. package/dist/esm/subaccount-account-details_4.entry.js +7 -7
  155. package/dist/esm/subaccount-bank-details.entry.js +3 -3
  156. package/dist/esm/subaccount-terms-details.entry.js +3 -3
  157. package/dist/esm/{utils-76a93600.js → utils-5193fcd7.js} +10 -3
  158. package/dist/esm/{utils-576874df.js → utils-a3e96d9f.js} +5 -5
  159. package/dist/esm/webcomponents.js +3 -3
  160. package/dist/module/Business.js +6 -7
  161. package/dist/module/Payment.js +138 -0
  162. package/dist/module/Payout.js +1 -138
  163. package/dist/module/SubAccount.js +1 -1
  164. package/dist/module/additional-questions-details2.js +5 -2
  165. package/dist/module/billing-form.js +1 -2
  166. package/dist/module/business-details-core.d.ts +11 -0
  167. package/dist/module/business-details-core.js +6 -0
  168. package/dist/module/business-details-core2.js +101 -0
  169. package/dist/module/business-representative.js +1 -1
  170. package/dist/module/checkout-core.js +163 -0
  171. package/dist/module/generic-info-details2.js +4 -2
  172. package/dist/module/gross-payment-chart-core.d.ts +11 -0
  173. package/dist/module/gross-payment-chart-core.js +6 -0
  174. package/dist/module/gross-payment-chart-core2.js +11055 -0
  175. package/dist/module/justifi-business-details.js +51 -60
  176. package/dist/module/justifi-business-form-stepped.js +1 -0
  177. package/dist/module/justifi-business-form.js +1 -0
  178. package/dist/module/justifi-business-list.js +2 -1
  179. package/dist/module/justifi-checkout-core.d.ts +11 -0
  180. package/dist/module/justifi-checkout-core.js +6 -0
  181. package/dist/module/justifi-checkout.d.ts +11 -0
  182. package/dist/module/justifi-checkout.js +172 -0
  183. package/dist/module/justifi-gross-payment-chart.js +49 -11016
  184. package/dist/module/justifi-new-payment-method.d.ts +11 -0
  185. package/dist/module/justifi-new-payment-method.js +6 -0
  186. package/dist/module/justifi-payment-balance-transactions.js +3 -2
  187. package/dist/module/justifi-payment-details.js +2 -1
  188. package/dist/module/justifi-payment-form.js +2 -1
  189. package/dist/module/justifi-payment-method-options.d.ts +11 -0
  190. package/dist/module/justifi-payment-method-options.js +6 -0
  191. package/dist/module/justifi-payments-list.js +2 -1
  192. package/dist/module/justifi-payout-details.js +2 -1
  193. package/dist/module/justifi-payouts-list.js +2 -1
  194. package/dist/module/justifi-proceeds-list.js +2 -1
  195. package/dist/module/justifi-refund-form.js +1 -0
  196. package/dist/module/justifi-saved-payment-method.d.ts +11 -0
  197. package/dist/module/justifi-saved-payment-method.js +6 -0
  198. package/dist/module/justifi-subaccount-details.js +2 -1
  199. package/dist/module/justifi-subaccounts-list.js +2 -1
  200. package/dist/module/legal-address-details2.js +5 -2
  201. package/dist/module/new-payment-method.js +105 -0
  202. package/dist/module/owner-details2.js +10 -4
  203. package/dist/module/payment-details-core2.js +9 -3
  204. package/dist/module/payment-method-form.js +3 -2
  205. package/dist/module/payment-method-options.js +128 -0
  206. package/dist/module/payment-method-selector.js +2 -1
  207. package/dist/module/payment.service.js +1 -0
  208. package/dist/module/payments-list-core2.js +2 -1
  209. package/dist/module/payout-details-core2.js +3 -3
  210. package/dist/module/payout.service.js +1 -0
  211. package/dist/module/payouts-list-core2.js +3 -2
  212. package/dist/module/representative-details2.js +5 -3
  213. package/dist/module/saved-payment-method.js +66 -0
  214. package/dist/module/subaccount-account-details2.js +2 -2
  215. package/dist/module/subaccount-bank-details.js +2 -2
  216. package/dist/module/subaccount-merchant-details2.js +3 -3
  217. package/dist/module/subaccount-owners-details2.js +2 -2
  218. package/dist/module/subaccount-representative-details2.js +2 -2
  219. package/dist/module/subaccount-terms-details.js +2 -2
  220. package/dist/module/utils.js +4 -4
  221. package/dist/module/utils2.js +10 -3
  222. package/dist/types/api/Api.d.ts +1 -1
  223. package/dist/types/api/Checkout.d.ts +14 -0
  224. package/dist/types/api/index.d.ts +1 -0
  225. package/dist/types/api/services/business.service.d.ts +8 -0
  226. package/dist/types/api/services/checkout.service.d.ts +9 -0
  227. package/dist/types/api/services/reports.service.d.ts +5 -0
  228. package/dist/types/components/billing-form/billing-form.d.ts +0 -1
  229. package/dist/types/components/business-details/business-details-core.d.ts +16 -0
  230. package/dist/types/components/business-details/business-details.d.ts +3 -13
  231. package/dist/types/components/business-details/get-business.d.ts +8 -0
  232. package/dist/types/components/business-details/owner-details/owner-details.d.ts +0 -8
  233. package/dist/types/components/checkout/checkout-actions.d.ts +17 -0
  234. package/dist/types/components/checkout/checkout-core.d.ts +28 -0
  235. package/dist/types/components/checkout/checkout.d.ts +12 -0
  236. package/dist/types/components/checkout/new-payment-method.d.ts +17 -0
  237. package/dist/types/components/checkout/payment-method-option-utils.d.ts +16 -0
  238. package/dist/types/components/checkout/payment-method-options.d.ts +18 -0
  239. package/dist/types/components/checkout/saved-payment-method.d.ts +11 -0
  240. package/dist/types/components/checkout/test/checkout.d.ts +1 -0
  241. package/dist/types/components/checkout/test/mockCheckout.d.ts +19 -0
  242. package/dist/types/components/details/utils.d.ts +1 -1
  243. package/dist/types/components/gross-payment-chart/get-gross-payment-chart-data.d.ts +11 -0
  244. package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +18 -0
  245. package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +4 -14
  246. package/dist/types/components/payment-details/payment-details.d.ts +0 -1
  247. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +3 -9
  248. package/dist/types/components.d.ts +217 -32
  249. package/dist/types/utils/utils.d.ts +1 -0
  250. package/dist/webcomponents/p-018b71f5.entry.js +1 -0
  251. package/dist/webcomponents/p-0923e39c.js +1 -0
  252. package/dist/webcomponents/{p-7a1a06c0.entry.js → p-09b94d22.entry.js} +1 -1
  253. package/dist/webcomponents/p-1b04d091.entry.js +1 -0
  254. package/dist/webcomponents/{p-0a0cf2e6.entry.js → p-1bac1674.entry.js} +1 -1
  255. package/dist/webcomponents/p-1cbdca15.entry.js +1 -0
  256. package/dist/webcomponents/p-3134ab82.entry.js +1 -0
  257. package/dist/webcomponents/{p-22c1acd6.js → p-34f9fe6b.js} +1 -1
  258. package/dist/webcomponents/p-3bae0ed3.entry.js +1 -0
  259. package/dist/webcomponents/p-41031759.entry.js +1 -0
  260. package/dist/webcomponents/p-41490d96.entry.js +1 -0
  261. package/dist/webcomponents/p-44b88365.entry.js +1 -0
  262. package/dist/webcomponents/{p-081cf5f6.entry.js → p-4ed3a9f5.entry.js} +1 -1
  263. package/dist/webcomponents/{p-6478f3ca.js → p-4edd9721.js} +1 -1
  264. package/dist/webcomponents/p-51b0bf2a.entry.js +1 -0
  265. package/dist/webcomponents/p-531844f6.entry.js +1 -0
  266. package/dist/webcomponents/{p-4fa27a28.entry.js → p-591e29bf.entry.js} +1 -1
  267. package/dist/webcomponents/p-5d5d7550.entry.js +1 -0
  268. package/dist/webcomponents/{p-810b72b5.js → p-5ea274b8.js} +1 -1
  269. package/dist/webcomponents/{p-4ba2c711.entry.js → p-5f785ede.entry.js} +1 -1
  270. package/dist/webcomponents/p-63296409.js +1 -0
  271. package/dist/webcomponents/{p-4f14df36.js → p-6d05174c.js} +1 -1
  272. package/dist/webcomponents/p-72d1ad98.entry.js +1 -0
  273. package/dist/webcomponents/{p-40349ffc.entry.js → p-796cf44f.entry.js} +1 -1
  274. package/dist/webcomponents/p-79f99d62.entry.js +1 -0
  275. package/dist/webcomponents/p-7b2cddc7.js +1 -0
  276. package/dist/webcomponents/{p-7c0f91fa.entry.js → p-7cd06ada.entry.js} +1 -1
  277. package/dist/webcomponents/p-8f895ec3.entry.js +1 -0
  278. package/dist/webcomponents/p-92a55427.entry.js +1 -0
  279. package/dist/webcomponents/p-97c42345.entry.js +1 -0
  280. package/dist/webcomponents/p-99a8b7d0.entry.js +1 -0
  281. package/dist/webcomponents/p-9a63eec9.entry.js +1 -0
  282. package/dist/webcomponents/p-9c310f5c.entry.js +1 -0
  283. package/dist/webcomponents/p-9e3771b7.entry.js +19 -0
  284. package/dist/webcomponents/{p-4e56ddad.entry.js → p-a81229a5.entry.js} +1 -1
  285. package/dist/webcomponents/{p-234bc840.entry.js → p-adc96df1.entry.js} +1 -1
  286. package/dist/webcomponents/p-baafa7f5.js +1 -0
  287. package/dist/webcomponents/p-babd292f.entry.js +1 -0
  288. package/dist/webcomponents/{p-5c0310ee.js → p-bb037696.js} +1 -1
  289. package/dist/webcomponents/p-bb7f6095.entry.js +1 -0
  290. package/dist/webcomponents/p-c032b216.entry.js +1 -0
  291. package/dist/webcomponents/{p-08833966.entry.js → p-c2c3d5d1.entry.js} +1 -1
  292. package/dist/webcomponents/p-c8d51336.entry.js +1 -0
  293. package/dist/webcomponents/{p-4c01df65.entry.js → p-dc05b5c5.entry.js} +1 -1
  294. package/dist/webcomponents/p-e3fab0e2.js +1 -0
  295. package/dist/webcomponents/p-e536a4c1.entry.js +1 -0
  296. package/dist/webcomponents/p-ec358d69.entry.js +1 -0
  297. package/dist/webcomponents/p-f55ac955.entry.js +1 -0
  298. package/dist/webcomponents/p-f64a85cf.entry.js +1 -0
  299. package/dist/webcomponents/webcomponents.esm.js +1 -1
  300. package/package.json +3 -2
  301. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +0 -1747
  302. package/dist/esm/justifi-payment-method-form.entry.js +0 -1743
  303. package/dist/webcomponents/p-0bc8b02e.entry.js +0 -1
  304. package/dist/webcomponents/p-112acd3c.entry.js +0 -1
  305. package/dist/webcomponents/p-1555e6b1.js +0 -1
  306. package/dist/webcomponents/p-16f41fd0.entry.js +0 -1
  307. package/dist/webcomponents/p-17715325.js +0 -1
  308. package/dist/webcomponents/p-3a4d4869.entry.js +0 -1
  309. package/dist/webcomponents/p-3cb0b96d.js +0 -1
  310. package/dist/webcomponents/p-5422a24b.entry.js +0 -1
  311. package/dist/webcomponents/p-578e0a05.entry.js +0 -1
  312. package/dist/webcomponents/p-640d90dc.entry.js +0 -1
  313. package/dist/webcomponents/p-663bfe87.js +0 -1
  314. package/dist/webcomponents/p-696396c7.entry.js +0 -1
  315. package/dist/webcomponents/p-6ab67031.entry.js +0 -1
  316. package/dist/webcomponents/p-8516d602.entry.js +0 -1
  317. package/dist/webcomponents/p-894a7475.entry.js +0 -19
  318. package/dist/webcomponents/p-94ebfafb.entry.js +0 -1
  319. package/dist/webcomponents/p-9cb3ff78.entry.js +0 -1
  320. package/dist/webcomponents/p-9e81808f.entry.js +0 -1
  321. package/dist/webcomponents/p-a432110c.entry.js +0 -1
  322. package/dist/webcomponents/p-a9dc1e2e.entry.js +0 -1
  323. package/dist/webcomponents/p-b1881723.entry.js +0 -1
  324. package/dist/webcomponents/p-b5aba473.entry.js +0 -1
  325. package/dist/webcomponents/p-bd099662.entry.js +0 -1
  326. package/dist/webcomponents/p-bfd917b8.entry.js +0 -1
  327. package/dist/webcomponents/p-c90fa055.entry.js +0 -1
  328. package/dist/webcomponents/p-ebb91944.entry.js +0 -1
  329. package/dist/webcomponents/p-ec4f27e7.entry.js +0 -1
@@ -0,0 +1,119 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { Chart, BarController, Colors, BarElement, CategoryScale, LinearScale, Legend, Tooltip, Title } from "chart.js";
3
+ import { generateChartOptions } from "./chart-utils";
4
+ import { ErrorState, LoadingState } from "../details/utils";
5
+ Chart.register(Colors, BarController, BarElement, CategoryScale, LinearScale, Legend, Tooltip, Title);
6
+ export class GrossPaymentChartCore {
7
+ constructor() {
8
+ this.getGrossPayment = undefined;
9
+ this.grossVolumeReport = undefined;
10
+ this.loading = true;
11
+ this.errorMessage = '';
12
+ }
13
+ componentDidLoad() {
14
+ if (this.getGrossPayment) {
15
+ this.fetchData();
16
+ }
17
+ }
18
+ propChanged() {
19
+ if (this.getGrossPayment) {
20
+ this.fetchData();
21
+ }
22
+ }
23
+ grossVolumeReportChanged(grossVolumeReport) {
24
+ if (grossVolumeReport) {
25
+ if (!this.chart) {
26
+ this.initChart(grossVolumeReport);
27
+ }
28
+ else {
29
+ this.updateChartData(grossVolumeReport);
30
+ }
31
+ }
32
+ }
33
+ async fetchData() {
34
+ this.loading = true;
35
+ this.getGrossPayment({
36
+ onSuccess: (data) => {
37
+ this.loading = false;
38
+ this.grossVolumeReport = data;
39
+ },
40
+ onError: (error) => {
41
+ this.loading = false;
42
+ this.errorMessage = error;
43
+ }
44
+ });
45
+ }
46
+ initChart(grossVolumeReport) {
47
+ const { dates, total } = grossVolumeReport;
48
+ const reversedDates = dates.reverse();
49
+ const endDate = reversedDates[dates.length - 1].date;
50
+ const chartOptions = generateChartOptions(total, reversedDates, endDate);
51
+ this.chart = new Chart(this.chartRef.getContext('2d'), chartOptions);
52
+ }
53
+ updateChartData(grossVolumeReport) {
54
+ const newData = grossVolumeReport.dates.map((date) => date.value);
55
+ this.chart.data.datasets.forEach((dataset) => {
56
+ dataset.data = newData;
57
+ });
58
+ this.chart.update();
59
+ }
60
+ disconnectedCallback() {
61
+ if (this.chart) {
62
+ this.chart.destroy();
63
+ }
64
+ }
65
+ render() {
66
+ return (h(Host, null, this.loading && LoadingState(), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
67
+ }
68
+ static get is() { return "gross-payment-chart-core"; }
69
+ static get originalStyleUrls() {
70
+ return {
71
+ "$": ["gross-payment-chart.scss"]
72
+ };
73
+ }
74
+ static get styleUrls() {
75
+ return {
76
+ "$": ["gross-payment-chart.css"]
77
+ };
78
+ }
79
+ static get properties() {
80
+ return {
81
+ "getGrossPayment": {
82
+ "type": "unknown",
83
+ "mutable": false,
84
+ "complexType": {
85
+ "original": "Function",
86
+ "resolved": "Function",
87
+ "references": {
88
+ "Function": {
89
+ "location": "global",
90
+ "id": "global::Function"
91
+ }
92
+ }
93
+ },
94
+ "required": false,
95
+ "optional": false,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": ""
99
+ }
100
+ }
101
+ };
102
+ }
103
+ static get states() {
104
+ return {
105
+ "grossVolumeReport": {},
106
+ "loading": {},
107
+ "errorMessage": {}
108
+ };
109
+ }
110
+ static get watchers() {
111
+ return [{
112
+ "propName": "getGrossPayment",
113
+ "methodName": "propChanged"
114
+ }, {
115
+ "propName": "grossVolumeReport",
116
+ "methodName": "grossVolumeReportChanged"
117
+ }];
118
+ }
119
+ }
@@ -1,84 +1,40 @@
1
- import { Host, h } from "@stencil/core";
2
- import { Api } from "../../api";
3
- import { Chart, BarController, Colors, BarElement, CategoryScale, LinearScale, Legend, Tooltip, Title } from "chart.js";
4
- import { generateChartOptions } from "./chart-utils";
1
+ import { h } from "@stencil/core";
2
+ import { ReportsService } from "../../api/services/reports.service";
3
+ import { makeGetGrossPaymentChartData } from "./get-gross-payment-chart-data";
5
4
  import { ErrorState } from "../details/utils";
6
- import { config } from "../../../config";
7
5
  export class GrossPaymentChart {
8
6
  constructor() {
9
7
  this.accountId = undefined;
10
8
  this.authToken = undefined;
11
- this.data = undefined;
12
- this.total = undefined;
13
- this.dates = undefined;
14
- this.endDate = undefined;
15
- this.loading = true;
16
- this.errorMessage = '';
9
+ this.getGrossPayment = undefined;
10
+ this.errorMessage = null;
17
11
  }
18
- updateOnPropChange() {
19
- this.fetchData();
12
+ componentWillLoad() {
13
+ this.initializeGetGrossPayment();
20
14
  }
21
- connectedCallback() {
22
- this.fetchData();
15
+ propChanged() {
16
+ this.initializeGetGrossPayment();
23
17
  }
24
- componentDidRender() {
25
- this.renderChart();
26
- }
27
- async fetchData() {
28
- if (!this.accountId || !this.authToken) {
29
- this.errorMessage = "Can not fetch any data without an AccountID and an AuthToken";
30
- this.loading = false;
31
- return;
32
- }
33
- this.loading = true;
34
- try {
35
- const api = Api(this.authToken, config.proxyApiOrigin);
36
- const endpoint = `account/${this.accountId}/reports/gross_volume`;
37
- const response = await api.get(endpoint);
38
- if (!response.error) {
39
- this.total = response === null || response === void 0 ? void 0 : response.data.total;
40
- this.dates = response === null || response === void 0 ? void 0 : response.data.dates.reverse();
41
- this.endDate = this.dates[this.dates.length - 1].date;
42
- }
43
- else {
44
- this.errorMessage = `Error trying to fetch data : ${response.error}`;
45
- console.error(this.errorMessage);
46
- }
47
- }
48
- catch (error) {
49
- this.errorMessage = `Error trying to fetch data : ${error}`;
50
- console.error(this.errorMessage);
51
- }
52
- finally {
53
- this.loading = false;
54
- }
55
- }
56
- renderChart() {
57
- if (this.chart) {
58
- this.chart.update();
18
+ initializeGetGrossPayment() {
19
+ if (this.accountId && this.authToken) {
20
+ this.getGrossPayment = makeGetGrossPaymentChartData({
21
+ id: this.accountId,
22
+ authToken: this.authToken,
23
+ service: new ReportsService(),
24
+ });
59
25
  }
60
- else if (this.chartRef && this.endDate) {
61
- Chart.register(Colors, BarController, BarElement, CategoryScale, LinearScale, Legend, Tooltip, Title);
62
- this.chart = new Chart(this.chartRef.getContext("2d"), generateChartOptions(this.total, this.dates, this.endDate));
63
- this.chart.render();
26
+ else {
27
+ this.errorMessage = 'Account ID and Auth Token are required';
64
28
  }
65
29
  }
66
30
  render() {
67
- return (h(Host, null, this.errorMessage ? ErrorState(this.errorMessage)
68
- : h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem })));
31
+ if (this.errorMessage) {
32
+ return ErrorState(this.errorMessage);
33
+ }
34
+ return (h("gross-payment-chart-core", { getGrossPayment: this.getGrossPayment }));
69
35
  }
70
36
  static get is() { return "justifi-gross-payment-chart"; }
71
37
  static get encapsulation() { return "shadow"; }
72
- static get originalStyleUrls() {
73
- return {
74
- "$": ["gross-payment-chart.scss"]
75
- };
76
- }
77
- static get styleUrls() {
78
- return {
79
- "$": ["gross-payment-chart.css"]
80
- };
81
- }
82
38
  static get properties() {
83
39
  return {
84
40
  "accountId": {
@@ -119,21 +75,17 @@ export class GrossPaymentChart {
119
75
  }
120
76
  static get states() {
121
77
  return {
122
- "data": {},
123
- "total": {},
124
- "dates": {},
125
- "endDate": {},
126
- "loading": {},
78
+ "getGrossPayment": {},
127
79
  "errorMessage": {}
128
80
  };
129
81
  }
130
82
  static get watchers() {
131
83
  return [{
132
84
  "propName": "accountId",
133
- "methodName": "updateOnPropChange"
85
+ "methodName": "propChanged"
134
86
  }, {
135
87
  "propName": "authToken",
136
- "methodName": "updateOnPropChange"
88
+ "methodName": "propChanged"
137
89
  }];
138
90
  }
139
91
  }
@@ -0,0 +1,69 @@
1
+ import { makeGetGrossPaymentChartData } from "../get-gross-payment-chart-data";
2
+ import { ReportsService } from "../../../api/services/reports.service";
3
+ import { mockGrossVolumeReport } from "../../../api/mockData/mockGrossVolumeReport";
4
+ const mockFetchGrossVolumeChartData = jest.fn().mockResolvedValue({
5
+ data: mockGrossVolumeReport,
6
+ error: null,
7
+ });
8
+ jest.mock('../../../api/services/reports.service', () => ({
9
+ ReportsService: jest.fn().mockImplementation(() => ({
10
+ fetchGrossVolumeChartData: mockFetchGrossVolumeChartData,
11
+ })),
12
+ }));
13
+ describe('makeGetGrossPaymentChartData', () => {
14
+ const mockId = 'test-id';
15
+ const mockAuthToken = 'test-token';
16
+ let mockService;
17
+ beforeEach(() => {
18
+ jest.clearAllMocks();
19
+ mockService = new ReportsService();
20
+ mockService.fetchGrossVolumeChartData = mockFetchGrossVolumeChartData;
21
+ });
22
+ it('calls onSuccess with data on successful fetch', async () => {
23
+ mockFetchGrossVolumeChartData.mockResolvedValue({
24
+ data: mockGrossVolumeReport,
25
+ error: null,
26
+ });
27
+ const onSuccess = jest.fn();
28
+ const onError = jest.fn();
29
+ const getGrossPaymentChartData = makeGetGrossPaymentChartData({
30
+ id: mockId,
31
+ authToken: mockAuthToken,
32
+ service: mockService,
33
+ });
34
+ await getGrossPaymentChartData({ onSuccess, onError });
35
+ expect(onSuccess).toHaveBeenCalledWith(mockGrossVolumeReport);
36
+ expect(onError).not.toHaveBeenCalled();
37
+ });
38
+ it('calls onError with message on API error', async () => {
39
+ const mockError = 'API error';
40
+ mockFetchGrossVolumeChartData.mockResolvedValue({
41
+ error: mockError,
42
+ data: null,
43
+ });
44
+ const onSuccess = jest.fn();
45
+ const onError = jest.fn();
46
+ const getGrossPaymentChartData = makeGetGrossPaymentChartData({
47
+ id: mockId,
48
+ authToken: mockAuthToken,
49
+ service: mockService,
50
+ });
51
+ await getGrossPaymentChartData({ onSuccess, onError });
52
+ expect(onError).toHaveBeenCalledWith(`Error trying to fetch data : ${mockError}`);
53
+ expect(onSuccess).not.toHaveBeenCalled();
54
+ });
55
+ it('calls onError with message on exception', async () => {
56
+ const mockError = new Error('Network error');
57
+ mockFetchGrossVolumeChartData.mockRejectedValue(mockError);
58
+ const onSuccess = jest.fn();
59
+ const onError = jest.fn();
60
+ const getGrossPaymentChartData = makeGetGrossPaymentChartData({
61
+ id: mockId,
62
+ authToken: mockAuthToken,
63
+ service: mockService,
64
+ });
65
+ await getGrossPaymentChartData({ onSuccess, onError });
66
+ expect(onError).toHaveBeenCalledWith(`Error trying to fetch data : ${mockError}`);
67
+ expect(onSuccess).not.toHaveBeenCalled();
68
+ });
69
+ });
@@ -0,0 +1,64 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { GrossPaymentChartCore } from "../gross-payment-chart-core";
3
+ import mockSuccessResponse from "../../../api/mockResponses/mockGrossVolumeReportSuccess.json";
4
+ import { makeGetGrossPaymentChartData } from "../get-gross-payment-chart-data";
5
+ const mockDataResponse = mockSuccessResponse;
6
+ // To prevent this error https://github.com/reactchartjs/react-chartjs-2/issues/155
7
+ jest.mock('chart.js', () => ({
8
+ Chart: () => null,
9
+ }));
10
+ describe('gross-payment-chart', () => {
11
+ it('should initialize with default states', async () => {
12
+ const page = await newSpecPage({
13
+ components: [GrossPaymentChartCore],
14
+ html: `<gross-payment-chart-core />`,
15
+ });
16
+ expect(page.rootInstance.loading).toBeTruthy();
17
+ expect(page.rootInstance.errorMessage).toBe('');
18
+ });
19
+ it('updates the state properly', async () => {
20
+ const mockGetSuccessResponse = {
21
+ fetchGrossVolumeChartData: jest.fn().mockResolvedValue(mockDataResponse)
22
+ };
23
+ const getGrossPayment = makeGetGrossPaymentChartData({
24
+ id: 'my-account-id',
25
+ authToken: 'my-token',
26
+ service: mockGetSuccessResponse
27
+ });
28
+ const page = await newSpecPage({
29
+ components: [GrossPaymentChartCore],
30
+ html: `<gross-payment-chart-core />`,
31
+ });
32
+ page.rootInstance.componentWillLoad = () => { };
33
+ page.rootInstance.getGrossPayment = getGrossPayment;
34
+ page.rootInstance.fetchData();
35
+ await page.waitForChanges();
36
+ expect(page.rootInstance.grossVolumeReport).toEqual(mockDataResponse.data);
37
+ });
38
+ it('matches the snapshot when in loading state', async () => {
39
+ const page = await newSpecPage({
40
+ components: [GrossPaymentChartCore],
41
+ html: `<gross-payment-chart-core></gross-payment-chart-core>`,
42
+ });
43
+ expect(page.root).toMatchSnapshot();
44
+ });
45
+ // tests error state
46
+ it('matches the snapshot when in error state', async () => {
47
+ const getGrossPayment = makeGetGrossPaymentChartData({
48
+ id: 'my-account-id',
49
+ authToken: 'my-token',
50
+ service: {
51
+ fetchGrossVolumeChartData: jest.fn().mockRejectedValue('Error message')
52
+ }
53
+ });
54
+ const page = await newSpecPage({
55
+ components: [GrossPaymentChartCore],
56
+ html: `<gross-payment-chart-core></gross-payment-chart-core>`,
57
+ });
58
+ page.rootInstance.componentWillLoad = () => { };
59
+ page.rootInstance.getGrossPayment = getGrossPayment;
60
+ page.rootInstance.fetchData();
61
+ await page.waitForChanges();
62
+ expect(page.root).toMatchSnapshot();
63
+ });
64
+ });
@@ -1,14 +1,29 @@
1
1
  import { newSpecPage } from "@stencil/core/testing";
2
2
  import { GrossPaymentChart } from "../gross-payment-chart";
3
- describe('gross-payment-chart', () => {
4
- it('renders', async () => {
3
+ import { GrossPaymentChartCore } from "../gross-payment-chart-core";
4
+ describe('GrossPaymentChart', () => {
5
+ it('renders an error when no accountId and authToken is passed', async () => {
5
6
  const page = await newSpecPage({
6
- components: [GrossPaymentChart],
7
- html: `<gross-payment-chart></gross-payment-chart>`,
7
+ components: [GrossPaymentChart, GrossPaymentChartCore],
8
+ html: '<justifi-gross-payment-chart></justifi-gross-payment-chart>',
8
9
  });
9
- expect(page.root).toEqualHtml(`
10
- <gross-payment-chart>
11
- </gross-payment-chart>
12
- `);
10
+ await page.waitForChanges();
11
+ expect(page.root).toMatchSnapshot();
12
+ });
13
+ it('renders an error when no accountId is passed', async () => {
14
+ const page = await newSpecPage({
15
+ components: [GrossPaymentChart, GrossPaymentChartCore],
16
+ html: '<justifi-gross-payment-chart auth-token="abc"></justifi-gross-payment-chart>',
17
+ });
18
+ await page.waitForChanges();
19
+ expect(page.root).toMatchSnapshot();
20
+ });
21
+ it('renders an error when no authToken is passed', async () => {
22
+ const page = await newSpecPage({
23
+ components: [GrossPaymentChart, GrossPaymentChartCore],
24
+ html: '<justifi-gross-payment-chart account-id="abc"></justifi-gross-payment-chart>',
25
+ });
26
+ await page.waitForChanges();
27
+ expect(page.root).toMatchSnapshot();
13
28
  });
14
29
  });
@@ -1,6 +1,6 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import { MapPaymentStatusToBadge, formatCurrency, formatDate, formatTime, snakeCaseToHumanReadable } from "../../utils/utils";
3
- import { CodeBlock, DetailItem, DetailSection, EntityHeadInfo, EntityHeadInfoItem, ErrorState, LoadingState } from "../details/utils";
3
+ import { CodeBlock, DetailItem, DetailSectionTitle, EntityHeadInfo, EntityHeadInfoItem, ErrorState, LoadingState } from "../details/utils";
4
4
  export class PaymentDetailsCore {
5
5
  constructor() {
6
6
  this.getPaymentDetails = undefined;
@@ -33,7 +33,13 @@ export class PaymentDetailsCore {
33
33
  render() {
34
34
  var _a;
35
35
  return (h(Host, null, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
36
- this.payment && (h("justifi-details", { "error-message": this.errorMessage }, h(EntityHeadInfo, { slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPaymentStatusToBadge(this.payment.status) }), title: `${formatCurrency(this.payment.amount)} ${(_a = this.payment) === null || _a === void 0 ? void 0 : _a.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { title: "ID", value: this.payment.id })), h("div", { slot: 'detail-sections' }, h(DetailSection, { sectionTitle: "Details" }, h(DetailItem, { title: "Amount", value: formatCurrency(this.payment.amount) }), h(DetailItem, { title: "Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { title: "Refunded", value: formatCurrency(this.payment.amount_refunded) }), h(DetailItem, { title: "Net", value: formatCurrency(this.payment.balance) }), h(DetailItem, { title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { title: "Payment ID", value: this.payment.id }), h(DetailItem, { title: "Processing Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { title: "Description", value: this.payment.description })), this.payment.payment_method.card && (h(DetailSection, { sectionTitle: "Payment Method" }, h(DetailItem, { title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { title: "Payment Type", value: "Card" }), h(DetailItem, { title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { title: "Cardholder", value: this.payment.payment_method.payersName }))), this.payment.payment_method.bank_account && (h(DetailSection, { sectionTitle: "Payment Method" }, h(DetailItem, { title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { title: "Account Owner", value: this.payment.payment_method.payersName }))), h(DetailSection, { sectionTitle: 'Metadata' }, h(CodeBlock, { metadata: this.payment.metadata })))))));
36
+ this.payment && (h("justifi-details", { "error-message": this.errorMessage }, h(EntityHeadInfo, { slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPaymentStatusToBadge(this.payment.status) }), title: `${formatCurrency(this.payment.amount)} ${(_a = this.payment) === null || _a === void 0 ? void 0 : _a.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { title: "ID", value: this.payment.id })), h("div", { slot: 'detail-sections' }, h(DetailSectionTitle, { sectionTitle: "Details" }), h("div", { class: "d-table gap-2 w-100" }, h(DetailItem, { title: "Amount", value: formatCurrency(this.payment.amount) }), h(DetailItem, { title: "Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { title: "Refunded", value: formatCurrency(this.payment.amount_refunded) }), h(DetailItem, { title: "Net", value: formatCurrency(this.payment.balance) }), h(DetailItem, { title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { title: "Payment ID", value: this.payment.id }), h(DetailItem, { title: "Processing Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
37
+ h(DetailSectionTitle, { sectionTitle: "Payment Method" }),
38
+ h("div", { class: "d-table gap-2 w-100" }, h(DetailItem, { title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { title: "Payment Type", value: "Card" }), h(DetailItem, { title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { title: "Cardholder", value: this.payment.payment_method.payersName }))
39
+ ], this.payment.payment_method.bank_account && [
40
+ h(DetailSectionTitle, { sectionTitle: "Payment Method" }),
41
+ h("div", { class: "d-table gap-2 w-100" }, h(DetailItem, { title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { title: "Account Owner", value: this.payment.payment_method.payersName }))
42
+ ], h(DetailSectionTitle, { sectionTitle: 'Metadata' }), h("div", { class: "d-table gap-2 w-100" }, h(CodeBlock, { metadata: this.payment.metadata })))))));
37
43
  }
38
44
  static get is() { return "payment-details-core"; }
39
45
  static get originalStyleUrls() {
@@ -17,7 +17,6 @@ import { ErrorState } from "../details/utils";
17
17
  * @exportedPart detail-metadata-title
18
18
  * @exportedPart detail-method-title
19
19
  * @exportedPart detail-method-data
20
- * @exportedPart detail-section
21
20
  * @exportedPart detail-section-title
22
21
  * @exportedPart detail-section-item-title
23
22
  * @exportedPart detail-section-item-data
@@ -204,7 +204,7 @@ export class PaymentForm {
204
204
  },
205
205
  "complexType": {
206
206
  "original": "CreatePaymentMethodResponse",
207
- "resolved": "BankAccountCreateResponse | CardCreateResponse | PaymentMethodErrorResponse",
207
+ "resolved": "BankAccountCreateResponse | CardCreateResponse",
208
208
  "references": {
209
209
  "CreatePaymentMethodResponse": {
210
210
  "location": "import",
@@ -212,7 +212,7 @@ export class PaymentMethodForm {
212
212
  },
213
213
  "complexType": {
214
214
  "original": "CreatePaymentMethodResponse",
215
- "resolved": "BankAccountCreateResponse | CardCreateResponse | PaymentMethodErrorResponse",
215
+ "resolved": "BankAccountCreateResponse | CardCreateResponse",
216
216
  "references": {
217
217
  "CreatePaymentMethodResponse": {
218
218
  "location": "import",
@@ -1,6 +1,6 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import { MapPayoutStatusToBadge, formatCurrency, formatDate, formatTime } from "../../utils/utils";
3
- import { CodeBlock, DetailItem, DetailSection, EntityHeadInfo, EntityHeadInfoItem, ErrorState, LoadingState } from "../details/utils";
3
+ import { CodeBlock, DetailItem, DetailSectionTitle, EntityHeadInfo, EntityHeadInfoItem, ErrorState, LoadingState } from "../details/utils";
4
4
  export class PayoutDetailsCore {
5
5
  constructor() {
6
6
  this.getPayout = undefined;
@@ -33,7 +33,7 @@ export class PayoutDetailsCore {
33
33
  }
34
34
  render() {
35
35
  var _a;
36
- return (h(Host, null, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { "error-message": this.errorMessage }, h(EntityHeadInfo, { slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { title: "ID", value: this.payout.id })), h("div", { slot: 'detail-sections' }, h(DetailSection, { sectionTitle: "Details" }, h(DetailItem, { title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { title: "Statement Description", value: this.payout.description }), h(DetailItem, { title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSection, { sectionTitle: "Account" }, h(DetailItem, { title: "ID", value: this.payout.account_id }), h(DetailItem, { title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSection, { sectionTitle: 'Metadata' }, h(CodeBlock, { metadata: this.payout.metadata })))))));
36
+ return (h(Host, null, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { "error-message": this.errorMessage }, h(EntityHeadInfo, { slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { title: "ID", value: this.payout.id })), h("div", { slot: 'detail-sections' }, h(DetailSectionTitle, { sectionTitle: "Details" }), h("div", { class: "d-table gap-2 w-100" }, h(DetailItem, { title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { title: "Statement Description", value: this.payout.description }), h(DetailItem, { title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSectionTitle, { sectionTitle: "Account" }), h("div", { class: "d-table gap-2 w-100" }, h(DetailItem, { title: "ID", value: this.payout.account_id }), h(DetailItem, { title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { sectionTitle: 'Metadata' }), h("div", { class: "d-table gap-2 w-100" }, h(CodeBlock, { metadata: this.payout.metadata })))))));
37
37
  }
38
38
  static get is() { return "payout-details-core"; }
39
39
  static get originalStyleUrls() {
@@ -1,5 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { DetailItem, DetailSection } from "../../details/utils";
2
+ import { DetailItem, DetailSectionTitle } from "../../details/utils";
3
3
  export class SubaccountAccountDetails {
4
4
  constructor() {
5
5
  this.subaccount = undefined;
@@ -7,7 +7,7 @@ export class SubaccountAccountDetails {
7
7
  }
8
8
  render() {
9
9
  var _a, _b, _c;
10
- return (h(Host, null, h("div", { class: 'p-2' }, h(DetailSection, { sectionTitle: 'Account Details' }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: 'Name', value: (_a = this.subaccount) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: 'Terms of Service Accepted', value: (_c = (_b = this.onboardingData) === null || _b === void 0 ? void 0 : _b.payload) === null || _c === void 0 ? void 0 : _c.terms_and_conditions.accepted.toString() }), h(DetailItem, { title: 'Business Entity', value: 'something here' })))))));
10
+ return (h(Host, null, h("div", { class: 'p-2' }, h(DetailSectionTitle, { sectionTitle: 'Account Details' }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: 'Name', value: (_a = this.subaccount) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: 'Terms of Service Accepted', value: (_c = (_b = this.onboardingData) === null || _b === void 0 ? void 0 : _b.payload) === null || _c === void 0 ? void 0 : _c.terms_and_conditions.accepted.toString() }), h(DetailItem, { title: 'Business Entity', value: 'something here' })))))));
11
11
  }
12
12
  static get is() { return "subaccount-account-details"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -1,12 +1,12 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { DetailItem, DetailSection } from "../../details/utils";
2
+ import { DetailItem, DetailSectionTitle } from "../../details/utils";
3
3
  export class SubaccountBankDetails {
4
4
  constructor() {
5
5
  this.data = undefined;
6
6
  }
7
7
  render() {
8
8
  var _a, _b, _c, _d, _e;
9
- return (h(Host, null, h(DetailSection, { sectionTitle: 'Bank Account Details' }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Bank Name", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.bank_name }), h(DetailItem, { title: "Account Type", value: (_b = this.data) === null || _b === void 0 ? void 0 : _b.account_type }), h(DetailItem, { title: "Account Number", value: (_c = this.data) === null || _c === void 0 ? void 0 : _c.account_number }), h(DetailItem, { title: "Routing Number", value: (_d = this.data) === null || _d === void 0 ? void 0 : _d.routing_number }), h(DetailItem, { title: "Account Nickname", value: (_e = this.data) === null || _e === void 0 ? void 0 : _e.account_nickname }))))));
9
+ return (h(Host, null, h(DetailSectionTitle, { sectionTitle: 'Bank Account Details' }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Bank Name", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.bank_name }), h(DetailItem, { title: "Account Type", value: (_b = this.data) === null || _b === void 0 ? void 0 : _b.account_type }), h(DetailItem, { title: "Account Number", value: (_c = this.data) === null || _c === void 0 ? void 0 : _c.account_number }), h(DetailItem, { title: "Routing Number", value: (_d = this.data) === null || _d === void 0 ? void 0 : _d.routing_number }), h(DetailItem, { title: "Account Nickname", value: (_e = this.data) === null || _e === void 0 ? void 0 : _e.account_nickname }))))));
10
10
  }
11
11
  static get is() { return "subaccount-bank-details"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -1,5 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { DetailItem, DetailSection } from "../../details/utils";
2
+ import { DetailItem, DetailSectionTitle } from "../../details/utils";
3
3
  import { formatLegalAddress, snakeCaseToHumanReadable } from "../../../utils/utils";
4
4
  export class SubaccountMerchantDetails {
5
5
  constructor() {
@@ -7,7 +7,7 @@ export class SubaccountMerchantDetails {
7
7
  }
8
8
  render() {
9
9
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
10
- return (h(Host, null, h("div", { class: 'p-2' }, h(DetailSection, { sectionTitle: 'Merchant Details' }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: 'Doing Business As', value: (_d = (_c = (_b = (_a = this.onboardingData) === null || _a === void 0 ? void 0 : _a.payload) === null || _b === void 0 ? void 0 : _b.business_details) === null || _c === void 0 ? void 0 : _c.doing_business_as) === null || _d === void 0 ? void 0 : _d.name }), h(DetailItem, { title: 'Website', value: (_g = (_f = (_e = this.onboardingData) === null || _e === void 0 ? void 0 : _e.payload) === null || _f === void 0 ? void 0 : _f.business_details) === null || _g === void 0 ? void 0 : _g.url }), h(DetailItem, { title: 'Business Email', value: (_k = (_j = (_h = this.onboardingData) === null || _h === void 0 ? void 0 : _h.payload) === null || _j === void 0 ? void 0 : _j.business_details) === null || _k === void 0 ? void 0 : _k.email }), h(DetailItem, { title: 'Phone Number', value: (_o = (_m = (_l = this.onboardingData) === null || _l === void 0 ? void 0 : _l.payload) === null || _m === void 0 ? void 0 : _m.business_details) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: 'Address', value: ((_r = (_q = (_p = this.onboardingData) === null || _p === void 0 ? void 0 : _p.payload) === null || _q === void 0 ? void 0 : _q.business_details) === null || _r === void 0 ? void 0 : _r.legal) ? `${formatLegalAddress((_u = (_t = (_s = this.onboardingData) === null || _s === void 0 ? void 0 : _s.payload) === null || _t === void 0 ? void 0 : _t.business_details) === null || _u === void 0 ? void 0 : _u.legal)}` : '' })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: 'Business Structure', value: ((_x = (_w = (_v = this.onboardingData) === null || _v === void 0 ? void 0 : _v.payload) === null || _w === void 0 ? void 0 : _w.business_details) === null || _x === void 0 ? void 0 : _x.structure) ? snakeCaseToHumanReadable((_0 = (_z = (_y = this.onboardingData) === null || _y === void 0 ? void 0 : _y.payload) === null || _z === void 0 ? void 0 : _z.business_details) === null || _0 === void 0 ? void 0 : _0.structure) : '' }), h(DetailItem, { title: 'Business Type', value: (_3 = (_2 = (_1 = this.onboardingData) === null || _1 === void 0 ? void 0 : _1.payload) === null || _2 === void 0 ? void 0 : _2.business_details) === null || _3 === void 0 ? void 0 : _3.type })))))));
10
+ return (h(Host, null, h("div", { class: 'p-2' }, h(DetailSectionTitle, { sectionTitle: 'Merchant Details' }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: 'Doing Business As', value: (_d = (_c = (_b = (_a = this.onboardingData) === null || _a === void 0 ? void 0 : _a.payload) === null || _b === void 0 ? void 0 : _b.business_details) === null || _c === void 0 ? void 0 : _c.doing_business_as) === null || _d === void 0 ? void 0 : _d.name }), h(DetailItem, { title: 'Website', value: (_g = (_f = (_e = this.onboardingData) === null || _e === void 0 ? void 0 : _e.payload) === null || _f === void 0 ? void 0 : _f.business_details) === null || _g === void 0 ? void 0 : _g.url }), h(DetailItem, { title: 'Business Email', value: (_k = (_j = (_h = this.onboardingData) === null || _h === void 0 ? void 0 : _h.payload) === null || _j === void 0 ? void 0 : _j.business_details) === null || _k === void 0 ? void 0 : _k.email }), h(DetailItem, { title: 'Phone Number', value: (_o = (_m = (_l = this.onboardingData) === null || _l === void 0 ? void 0 : _l.payload) === null || _m === void 0 ? void 0 : _m.business_details) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: 'Address', value: ((_r = (_q = (_p = this.onboardingData) === null || _p === void 0 ? void 0 : _p.payload) === null || _q === void 0 ? void 0 : _q.business_details) === null || _r === void 0 ? void 0 : _r.legal) ? `${formatLegalAddress((_u = (_t = (_s = this.onboardingData) === null || _s === void 0 ? void 0 : _s.payload) === null || _t === void 0 ? void 0 : _t.business_details) === null || _u === void 0 ? void 0 : _u.legal)}` : '' })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: 'Business Structure', value: ((_x = (_w = (_v = this.onboardingData) === null || _v === void 0 ? void 0 : _v.payload) === null || _w === void 0 ? void 0 : _w.business_details) === null || _x === void 0 ? void 0 : _x.structure) ? snakeCaseToHumanReadable((_0 = (_z = (_y = this.onboardingData) === null || _y === void 0 ? void 0 : _y.payload) === null || _z === void 0 ? void 0 : _z.business_details) === null || _0 === void 0 ? void 0 : _0.structure) : '' }), h(DetailItem, { title: 'Business Type', value: (_3 = (_2 = (_1 = this.onboardingData) === null || _1 === void 0 ? void 0 : _1.payload) === null || _2 === void 0 ? void 0 : _2.business_details) === null || _3 === void 0 ? void 0 : _3.type })))))));
11
11
  }
12
12
  static get is() { return "subaccount-merchant-details"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -1,11 +1,11 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { DetailItem, DetailSection } from "../../details/utils";
2
+ import { DetailItem, DetailSectionTitle } from "../../details/utils";
3
3
  export class SubaccountOwnersDetails {
4
4
  constructor() {
5
5
  this.data = undefined;
6
6
  }
7
7
  render() {
8
- return (h(Host, null, h("div", { class: 'p-2' }, h(DetailSection, { sectionTitle: 'Owners' }, h("div", { class: "row gy-3" }, this.data && this.data.map((owner) => {
8
+ return (h(Host, null, h("div", { class: 'p-2' }, h(DetailSectionTitle, { sectionTitle: 'Owners' }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, this.data && this.data.map((owner) => {
9
9
  return (h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: 'Owner Name', value: owner.name }), h(DetailItem, { title: 'Owner Title', value: owner.title }), h(DetailItem, { title: 'Owner Email', value: owner.email }), h(DetailItem, { title: 'Owner Phone', value: owner.phone })));
10
10
  }))))));
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { DetailItem, DetailSection } from "../../details/utils";
2
+ import { DetailItem, DetailSectionTitle } from "../../details/utils";
3
3
  import { formatMediumDate } from "../../../utils/utils";
4
4
  export class SubaccountRepresentativeDetails {
5
5
  constructor() {
@@ -7,7 +7,7 @@ export class SubaccountRepresentativeDetails {
7
7
  }
8
8
  render() {
9
9
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
10
- return (h(Host, null, h("div", { class: 'p-2' }, h(DetailSection, { sectionTitle: 'Representative' }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "Date of Birth", value: formatMediumDate(new Date(Number((_b = this.data) === null || _b === void 0 ? void 0 : _b.dob_year), Number((_c = this.data) === null || _c === void 0 ? void 0 : _c.dob_month) - 1, Number((_d = this.data) === null || _d === void 0 ? void 0 : _d.dob_day))) }), h(DetailItem, { title: "Email", value: (_e = this.data) === null || _e === void 0 ? void 0 : _e.email }), h(DetailItem, { title: "Last 4 SSN Digits", value: (_f = this.data) === null || _f === void 0 ? void 0 : _f.ssn_last4 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.data) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Phone", value: (_h = this.data) === null || _h === void 0 ? void 0 : _h.phone }), h(DetailItem, { title: "Representative Address", value: (_j = this.data) === null || _j === void 0 ? void 0 : _j.address_line1 })))))));
10
+ return (h(Host, null, h("div", { class: 'p-2' }, h(DetailSectionTitle, { sectionTitle: 'Representative' }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "Date of Birth", value: formatMediumDate(new Date(Number((_b = this.data) === null || _b === void 0 ? void 0 : _b.dob_year), Number((_c = this.data) === null || _c === void 0 ? void 0 : _c.dob_month) - 1, Number((_d = this.data) === null || _d === void 0 ? void 0 : _d.dob_day))) }), h(DetailItem, { title: "Email", value: (_e = this.data) === null || _e === void 0 ? void 0 : _e.email }), h(DetailItem, { title: "Last 4 SSN Digits", value: (_f = this.data) === null || _f === void 0 ? void 0 : _f.ssn_last4 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.data) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Phone", value: (_h = this.data) === null || _h === void 0 ? void 0 : _h.phone }), h(DetailItem, { title: "Representative Address", value: (_j = this.data) === null || _j === void 0 ? void 0 : _j.address_line1 })))))));
11
11
  }
12
12
  static get is() { return "subaccount-representative-details"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -1,12 +1,12 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { DetailItem, DetailSection } from "../../details/utils";
2
+ import { DetailItem, DetailSectionTitle } from "../../details/utils";
3
3
  export class SubaccountTermsDetails {
4
4
  constructor() {
5
5
  this.data = undefined;
6
6
  }
7
7
  render() {
8
8
  var _a, _b, _c, _d;
9
- return (h(Host, null, h(DetailSection, { sectionTitle: 'Terms and Conditions' }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "IP", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.ip }), h(DetailItem, { title: "Accepted?", value: (_c = (_b = this.data) === null || _b === void 0 ? void 0 : _b.accepted) === null || _c === void 0 ? void 0 : _c.toString() }), h(DetailItem, { title: "User Agent", value: (_d = this.data) === null || _d === void 0 ? void 0 : _d.user_agent }))))));
9
+ return (h(Host, null, h(DetailSectionTitle, { sectionTitle: 'Terms and Conditions' }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "IP", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.ip }), h(DetailItem, { title: "Accepted?", value: (_c = (_b = this.data) === null || _b === void 0 ? void 0 : _b.accepted) === null || _c === void 0 ? void 0 : _c.toString() }), h(DetailItem, { title: "User Agent", value: (_d = this.data) === null || _d === void 0 ? void 0 : _d.user_agent }))))));
10
10
  }
11
11
  static get is() { return "subaccount-terms-details"; }
12
12
  static get encapsulation() { return "shadow"; }