@justifi/webcomponents 4.7.1-rc.0 → 4.7.2-rc.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 (748) hide show
  1. package/dist/cjs/Api-548eaa62.js +0 -2
  2. package/dist/cjs/Pagination-cae1dcbd.js +0 -2
  3. package/dist/cjs/{Payout-68a99ee3.js → Payout-f8240e9c.js} +49 -3
  4. package/dist/cjs/SubAccount-f47c8522.js +0 -2
  5. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -4
  6. package/dist/cjs/business-form-schema-fe831c30.js +0 -2
  7. package/dist/cjs/config-a156df17.js +0 -2
  8. package/dist/cjs/form-1e732a9d.js +0 -2
  9. package/dist/cjs/form-control-datepart_2.cjs.entry.js +1 -3
  10. package/dist/cjs/form-control-monetary.cjs.entry.js +0 -2
  11. package/dist/cjs/form-control-number_3.cjs.entry.js +0 -2
  12. package/dist/cjs/helpers-c505d861.js +0 -2
  13. package/dist/cjs/index-5a880722.js +0 -2
  14. package/dist/cjs/index-c5ace247.js +0 -2
  15. package/dist/cjs/index.cjs.js +0 -2
  16. package/dist/cjs/index.esm-91ec051e.js +0 -2
  17. package/dist/cjs/justifi-additional-questions_6.cjs.entry.js +0 -2
  18. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -2
  19. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +0 -2
  20. package/dist/cjs/justifi-business-details.cjs.entry.js +16 -14
  21. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +7 -3
  22. package/dist/cjs/justifi-business-form.cjs.entry.js +1 -3
  23. package/dist/cjs/justifi-business-list.cjs.entry.js +1 -3
  24. package/dist/cjs/justifi-card-form.cjs.entry.js +0 -2
  25. package/dist/cjs/justifi-details.cjs.entry.js +0 -2
  26. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +22 -12
  27. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +1 -3
  28. package/dist/cjs/justifi-payment-details.cjs.entry.js +20 -13
  29. package/dist/cjs/justifi-payment-form.cjs.entry.js +16 -8
  30. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +4 -4
  31. package/dist/cjs/justifi-payments-list.cjs.entry.js +22 -25
  32. package/dist/cjs/justifi-payout-details.cjs.entry.js +19 -13
  33. package/dist/cjs/justifi-payouts-list.cjs.entry.js +21 -13
  34. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +1 -3
  35. package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -3
  36. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +3 -7
  37. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +1 -3
  38. package/dist/cjs/justifi-table_2.cjs.entry.js +4 -6
  39. package/dist/cjs/loader.cjs.js +1 -3
  40. package/dist/cjs/select-input_2.cjs.entry.js +0 -2
  41. package/dist/cjs/state-options-83b52cd1.js +0 -2
  42. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -2
  43. package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -2
  44. package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -2
  45. package/dist/cjs/utils-13d069be.js +0 -2
  46. package/dist/cjs/utils-4622829d.js +0 -2
  47. package/dist/cjs/webcomponents.cjs.js +1 -3
  48. package/dist/collection/api/Api.js +0 -1
  49. package/dist/collection/api/Business.js +0 -1
  50. package/dist/collection/api/GrossVolume.js +0 -1
  51. package/dist/collection/api/Pagination.js +0 -1
  52. package/dist/collection/api/Payment.js +49 -2
  53. package/dist/collection/api/Payout.js +0 -1
  54. package/dist/collection/api/Proceed.js +0 -1
  55. package/dist/collection/api/SubAccount.js +0 -1
  56. package/dist/collection/api/index.js +0 -1
  57. package/dist/collection/api/mockData/MockOnboardingData.js +0 -1
  58. package/dist/collection/api/mockData/MockPayments.js +21 -22
  59. package/dist/collection/api/mockData/MockSubAccount.js +0 -1
  60. package/dist/collection/api/mockData/mockGrossVolumeReport.js +0 -1
  61. package/dist/collection/api/shared.js +0 -1
  62. package/dist/collection/components/bank-account-form/bank-account-form.js +0 -1
  63. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +8 -1
  64. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +0 -1
  65. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +0 -1
  66. package/dist/collection/components/billing-form/billing-form-schema.js +0 -1
  67. package/dist/collection/components/billing-form/billing-form.js +0 -1
  68. package/dist/collection/components/billing-form/billing-form.stories.js +0 -1
  69. package/dist/collection/components/billing-form/state-options.js +0 -1
  70. package/dist/collection/components/billing-form/test/billing-form.spec.js +0 -1
  71. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +0 -1
  72. package/dist/collection/components/business-details/business-details.js +16 -13
  73. package/dist/collection/components/business-details/business-details.stories.js +0 -1
  74. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +0 -1
  75. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +0 -1
  76. package/dist/collection/components/business-details/owner-details/owner-details.js +0 -1
  77. package/dist/collection/components/business-details/representative-details/representative-details.js +2 -3
  78. package/dist/collection/components/business-form/additional-questions/additional-questions.js +0 -1
  79. package/dist/collection/components/business-form/business-address/business-address-form-schema.js +0 -1
  80. package/dist/collection/components/business-form/business-address/business-address-form.js +0 -1
  81. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +0 -1
  82. package/dist/collection/components/business-form/business-address/test/business-address.spec.js +0 -1
  83. package/dist/collection/components/business-form/business-form-example.js +12 -0
  84. package/dist/collection/components/business-form/business-form-schema.js +0 -1
  85. package/dist/collection/components/business-form/business-form-stepped-example.js +12 -0
  86. package/dist/collection/components/business-form/business-form-stepped.js +24 -1
  87. package/dist/collection/components/business-form/business-form-stepped.stories.js +1 -1
  88. package/dist/collection/components/business-form/business-form.js +0 -1
  89. package/dist/collection/components/business-form/business-form.stories.js +0 -1
  90. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +0 -1
  91. package/dist/collection/components/business-form/business-owners/business-owners.js +0 -1
  92. package/dist/collection/components/business-form/business-representative/business-representative-schema.js +0 -1
  93. package/dist/collection/components/business-form/business-representative/business-representative.js +0 -1
  94. package/dist/collection/components/business-form/helpers.js +0 -1
  95. package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +0 -1
  96. package/dist/collection/components/business-form/legal-address-form/legal-address-form.js +0 -1
  97. package/dist/collection/components/business-form/test/business-form.spec.js +0 -1
  98. package/dist/collection/components/business-list/business-list.js +0 -1
  99. package/dist/collection/components/business-list/business-list.stories.js +0 -1
  100. package/dist/collection/components/card-form/card-form.js +0 -1
  101. package/dist/collection/components/card-form/card-form.stories.js +8 -1
  102. package/dist/collection/components/card-form/test/card-form.e2e.js +0 -1
  103. package/dist/collection/components/card-form/test/card-form.spec.js +0 -1
  104. package/dist/collection/components/details/details.js +0 -1
  105. package/dist/collection/components/details/utils.js +0 -1
  106. package/dist/collection/components/form/form-control-datepart.js +1 -2
  107. package/dist/collection/components/form/form-control-monetary.js +0 -1
  108. package/dist/collection/components/form/form-control-number-masked.js +0 -1
  109. package/dist/collection/components/form/form-control-number.js +0 -1
  110. package/dist/collection/components/form/form-control-select.js +0 -1
  111. package/dist/collection/components/form/form-control-text.js +0 -1
  112. package/dist/collection/components/form/form.js +0 -1
  113. package/dist/collection/components/gross-payment-chart/chart-utils.js +0 -1
  114. package/dist/collection/components/gross-payment-chart/example.js +12 -0
  115. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +20 -9
  116. package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js +1 -2
  117. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +0 -1
  118. package/dist/collection/components/pagination-menu/pagination-menu.js +0 -1
  119. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +0 -1
  120. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -1
  121. package/dist/collection/components/payment-details/payment-details.js +21 -13
  122. package/dist/collection/components/payment-details/payment-details.stories.js +0 -1
  123. package/dist/collection/components/payment-form/payment-form.js +16 -7
  124. package/dist/collection/components/payment-form/payment-form.stories.js +0 -1
  125. package/dist/collection/components/payment-form/payment-method-selector.js +0 -1
  126. package/dist/collection/components/payment-form/test/payment-form.e2e.js +0 -1
  127. package/dist/collection/components/payment-form/test/payment-form.spec.js +0 -1
  128. package/dist/collection/components/payment-form/tokenize.js +0 -1
  129. package/dist/collection/components/payment-method-form/get-computed-theme.js +0 -1
  130. package/dist/collection/components/payment-method-form/message-event-types.js +0 -1
  131. package/dist/collection/components/payment-method-form/payment-method-form.js +0 -1
  132. package/dist/collection/components/payment-method-form/payment-method-responses.js +0 -1
  133. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +0 -1
  134. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +0 -1
  135. package/dist/collection/components/payment-method-form/theme.js +0 -1
  136. package/dist/collection/components/payments-list/payments-list.js +21 -23
  137. package/dist/collection/components/payments-list/payments-list.stories.js +0 -1
  138. package/dist/collection/components/payments-list/test/payments-list.spec.js +0 -1
  139. package/dist/collection/components/payout-details/payout-details.js +19 -12
  140. package/dist/collection/components/payout-details/payout-details.stories.js +0 -1
  141. package/dist/collection/components/payouts-list/payouts-list.js +20 -11
  142. package/dist/collection/components/payouts-list/payouts-list.stories.js +0 -1
  143. package/dist/collection/components/proceeds-list/proceeds-list.js +0 -1
  144. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -1
  145. package/dist/collection/components/refund-form/refund-form-schema.js +0 -1
  146. package/dist/collection/components/refund-form/refund-form.js +0 -1
  147. package/dist/collection/components/refund-form/refund-form.stories.js +0 -1
  148. package/dist/collection/components/select-input/select-input.js +0 -1
  149. package/dist/collection/components/select-input/test/select-input.spec.js +0 -1
  150. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -1
  151. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -1
  152. package/dist/collection/components/subaccount-details/subaccount-details.js +2 -5
  153. package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -1
  154. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -1
  155. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -1
  156. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -1
  157. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -1
  158. package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js +0 -1
  159. package/dist/collection/components/subaccounts-list/subaccounts-list.js +0 -1
  160. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +0 -1
  161. package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js +0 -1
  162. package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js +0 -1
  163. package/dist/collection/components/table/table.css +5 -0
  164. package/dist/collection/components/table/table.js +2 -3
  165. package/dist/collection/components/table/test/table.spec.js +0 -1
  166. package/dist/collection/components/text-input/test/text-input.spec.js +0 -1
  167. package/dist/collection/components/text-input/text-input.js +0 -1
  168. package/dist/collection/index.js +0 -1
  169. package/dist/collection/utils/country-options.js +0 -1
  170. package/dist/collection/utils/phone-masks.js +0 -1
  171. package/dist/collection/utils/utils.js +0 -1
  172. package/dist/components/Api.js +0 -2
  173. package/dist/components/Pagination.js +0 -2
  174. package/dist/components/Payout.js +50 -4
  175. package/dist/components/SubAccount.js +0 -2
  176. package/dist/components/additional-questions-details.js +0 -2
  177. package/dist/components/additional-questions-details2.js +0 -2
  178. package/dist/components/additional-questions.js +0 -2
  179. package/dist/components/billing-form.js +0 -2
  180. package/dist/components/business-address-form.js +0 -2
  181. package/dist/components/business-generic-info.js +0 -2
  182. package/dist/components/business-owners.js +0 -2
  183. package/dist/components/business-representative.js +0 -2
  184. package/dist/components/config.js +0 -2
  185. package/dist/components/details.js +0 -2
  186. package/dist/components/form-control-datepart.js +0 -2
  187. package/dist/components/form-control-datepart2.js +1 -3
  188. package/dist/components/form-control-monetary.js +0 -2
  189. package/dist/components/form-control-monetary2.js +0 -2
  190. package/dist/components/form-control-number-masked.js +0 -2
  191. package/dist/components/form-control-number-masked2.js +0 -2
  192. package/dist/components/form-control-number.js +0 -2
  193. package/dist/components/form-control-number2.js +0 -2
  194. package/dist/components/form-control-select.js +0 -2
  195. package/dist/components/form-control-select2.js +0 -2
  196. package/dist/components/form-control-text.js +0 -2
  197. package/dist/components/form-control-text2.js +0 -2
  198. package/dist/components/form.js +0 -2
  199. package/dist/components/generic-info-details.js +0 -2
  200. package/dist/components/generic-info-details2.js +0 -2
  201. package/dist/components/helpers.js +0 -2
  202. package/dist/components/index.esm.js +0 -2
  203. package/dist/components/index.js +0 -2
  204. package/dist/components/index2.js +0 -2
  205. package/dist/components/justifi-additional-questions.js +0 -2
  206. package/dist/components/justifi-bank-account-form.js +0 -2
  207. package/dist/components/justifi-billing-form.js +0 -2
  208. package/dist/components/justifi-business-address-form.js +0 -2
  209. package/dist/components/justifi-business-details.js +15 -13
  210. package/dist/components/justifi-business-form-stepped.js +7 -2
  211. package/dist/components/justifi-business-form.js +0 -2
  212. package/dist/components/justifi-business-generic-info.js +0 -2
  213. package/dist/components/justifi-business-list.js +0 -2
  214. package/dist/components/justifi-business-owners.js +0 -2
  215. package/dist/components/justifi-business-representative.js +0 -2
  216. package/dist/components/justifi-card-form.js +0 -2
  217. package/dist/components/justifi-details.js +0 -2
  218. package/dist/components/justifi-gross-payment-chart.js +21 -11
  219. package/dist/components/justifi-legal-address-form.js +0 -2
  220. package/dist/components/justifi-payment-balance-transactions.js +0 -2
  221. package/dist/components/justifi-payment-details.js +21 -14
  222. package/dist/components/justifi-payment-form.js +16 -8
  223. package/dist/components/justifi-payment-method-form.js +0 -2
  224. package/dist/components/justifi-payment-method-selector.js +0 -2
  225. package/dist/components/justifi-payments-list.js +22 -25
  226. package/dist/components/justifi-payout-details.js +19 -13
  227. package/dist/components/justifi-payouts-list.js +21 -13
  228. package/dist/components/justifi-proceeds-list.js +0 -2
  229. package/dist/components/justifi-refund-form.js +0 -2
  230. package/dist/components/justifi-subaccount-details.js +2 -6
  231. package/dist/components/justifi-subaccounts-list.js +0 -2
  232. package/dist/components/justifi-table.js +0 -2
  233. package/dist/components/legal-address-details.js +0 -2
  234. package/dist/components/legal-address-details2.js +0 -2
  235. package/dist/components/legal-address-form.js +0 -2
  236. package/dist/components/owner-details.js +0 -2
  237. package/dist/components/owner-details2.js +0 -2
  238. package/dist/components/pagination-menu.js +0 -2
  239. package/dist/components/pagination-menu2.js +1 -3
  240. package/dist/components/payment-method-form.js +4 -4
  241. package/dist/components/payment-method-selector.js +0 -2
  242. package/dist/components/phone-masks.js +0 -2
  243. package/dist/components/representative-details.js +0 -2
  244. package/dist/components/representative-details2.js +2 -4
  245. package/dist/components/select-input.js +0 -2
  246. package/dist/components/select-input2.js +0 -2
  247. package/dist/components/state-options.js +0 -2
  248. package/dist/components/subaccount-account-details.js +0 -2
  249. package/dist/components/subaccount-account-details2.js +0 -2
  250. package/dist/components/subaccount-bank-details.js +0 -2
  251. package/dist/components/subaccount-merchant-details.js +0 -2
  252. package/dist/components/subaccount-merchant-details2.js +0 -2
  253. package/dist/components/subaccount-owners-details.js +0 -2
  254. package/dist/components/subaccount-owners-details2.js +0 -2
  255. package/dist/components/subaccount-representative-details.js +0 -2
  256. package/dist/components/subaccount-representative-details2.js +0 -2
  257. package/dist/components/subaccount-terms-details.js +0 -2
  258. package/dist/components/table.js +3 -5
  259. package/dist/components/text-input.js +0 -2
  260. package/dist/components/text-input2.js +0 -2
  261. package/dist/components/utils.js +0 -2
  262. package/dist/components/utils2.js +0 -2
  263. package/dist/config.js +0 -1
  264. package/dist/esm/Api-c65d3ed8.js +0 -2
  265. package/dist/esm/Pagination-31f770d6.js +0 -2
  266. package/dist/esm/{Payout-fcf16887.js → Payout-586f06a3.js} +50 -4
  267. package/dist/esm/SubAccount-128190e9.js +0 -2
  268. package/dist/esm/additional-questions-details_5.entry.js +2 -4
  269. package/dist/esm/business-form-schema-30a3eadd.js +0 -2
  270. package/dist/esm/config-ceb0f902.js +0 -2
  271. package/dist/esm/form-32cf3d1e.js +0 -2
  272. package/dist/esm/form-control-datepart_2.entry.js +1 -3
  273. package/dist/esm/form-control-monetary.entry.js +0 -2
  274. package/dist/esm/form-control-number_3.entry.js +0 -2
  275. package/dist/esm/helpers-1d5ecdc8.js +0 -2
  276. package/dist/esm/index-5ed53c20.js +0 -2
  277. package/dist/esm/index-7471ed60.js +0 -2
  278. package/dist/esm/index.esm-9397ffa0.js +0 -2
  279. package/dist/esm/index.js +0 -2
  280. package/dist/esm/justifi-additional-questions_6.entry.js +0 -2
  281. package/dist/esm/justifi-bank-account-form.entry.js +0 -2
  282. package/dist/esm/justifi-billing-form_2.entry.js +0 -2
  283. package/dist/esm/justifi-business-details.entry.js +17 -15
  284. package/dist/esm/justifi-business-form-stepped.entry.js +7 -3
  285. package/dist/esm/justifi-business-form.entry.js +1 -3
  286. package/dist/esm/justifi-business-list.entry.js +1 -3
  287. package/dist/esm/justifi-card-form.entry.js +0 -2
  288. package/dist/esm/justifi-details.entry.js +0 -2
  289. package/dist/esm/justifi-gross-payment-chart.entry.js +22 -12
  290. package/dist/esm/justifi-payment-balance-transactions.entry.js +1 -3
  291. package/dist/esm/justifi-payment-details.entry.js +21 -14
  292. package/dist/esm/justifi-payment-form.entry.js +16 -8
  293. package/dist/esm/justifi-payment-method-form.entry.js +4 -4
  294. package/dist/esm/justifi-payments-list.entry.js +22 -25
  295. package/dist/esm/justifi-payout-details.entry.js +20 -14
  296. package/dist/esm/justifi-payouts-list.entry.js +21 -13
  297. package/dist/esm/justifi-proceeds-list.entry.js +1 -3
  298. package/dist/esm/justifi-refund-form.entry.js +1 -3
  299. package/dist/esm/justifi-subaccount-details.entry.js +4 -8
  300. package/dist/esm/justifi-subaccounts-list.entry.js +1 -3
  301. package/dist/esm/justifi-table_2.entry.js +4 -6
  302. package/dist/esm/loader.js +1 -3
  303. package/dist/esm/select-input_2.entry.js +0 -2
  304. package/dist/esm/state-options-ece00aa2.js +0 -2
  305. package/dist/esm/subaccount-account-details_4.entry.js +0 -2
  306. package/dist/esm/subaccount-bank-details.entry.js +0 -2
  307. package/dist/esm/subaccount-terms-details.entry.js +0 -2
  308. package/dist/esm/utils-40b7002c.js +0 -2
  309. package/dist/esm/utils-6352c002.js +0 -2
  310. package/dist/esm/webcomponents.js +1 -3
  311. package/dist/types/api/Payment.d.ts +32 -5
  312. package/dist/types/api/Payout.d.ts +2 -2
  313. package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +1 -0
  314. package/dist/types/components/business-details/business-details.d.ts +0 -1
  315. package/dist/types/components/business-form/business-form-stepped.d.ts +1 -0
  316. package/dist/types/components/card-form/card-form.stories.d.ts +1 -0
  317. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +7 -1
  318. package/dist/types/components/payments-list/payments-list.d.ts +1 -3
  319. package/dist/types/components.d.ts +2 -0
  320. package/dist/webcomponents/index.esm.js +0 -2
  321. package/dist/webcomponents/p-0ce6fba2.entry.js +1 -0
  322. package/dist/webcomponents/p-0d5d02d7.js +1 -2
  323. package/dist/webcomponents/p-14f7229e.entry.js +1 -0
  324. package/dist/webcomponents/{p-3d82c8a3.entry.js → p-2140e9ba.entry.js} +1 -2
  325. package/dist/webcomponents/p-2c2cde2d.js +1 -2
  326. package/dist/webcomponents/p-311250e2.entry.js +1 -0
  327. package/dist/webcomponents/p-3501b0e8.entry.js +1 -0
  328. package/dist/webcomponents/p-3ee831ac.entry.js +1 -0
  329. package/dist/webcomponents/p-3fd6ff27.entry.js +1 -0
  330. package/dist/webcomponents/p-4214dbb8.entry.js +1 -0
  331. package/dist/webcomponents/p-46d5f717.entry.js +1 -0
  332. package/dist/webcomponents/p-47bc59b5.js +1 -2
  333. package/dist/webcomponents/p-4fb653a8.entry.js +1 -0
  334. package/dist/webcomponents/p-526cb161.js +1 -2
  335. package/dist/webcomponents/p-586c8a4f.entry.js +1 -0
  336. package/dist/webcomponents/p-59860ac8.js +1 -2
  337. package/dist/webcomponents/p-5df52341.entry.js +1 -0
  338. package/dist/webcomponents/p-6444d443.entry.js +1 -0
  339. package/dist/webcomponents/p-6a648652.entry.js +1 -0
  340. package/dist/webcomponents/p-742188d9.entry.js +1 -0
  341. package/dist/webcomponents/p-76dffeec.js +1 -2
  342. package/dist/webcomponents/p-77a8bcea.entry.js +1 -0
  343. package/dist/webcomponents/p-7d58db66.js +1 -2
  344. package/dist/webcomponents/p-8f37e3ee.js +1 -2
  345. package/dist/webcomponents/p-984ff1aa.entry.js +1 -0
  346. package/dist/webcomponents/p-988191bf.js +1 -2
  347. package/dist/webcomponents/p-9b6dcac5.js +1 -2
  348. package/dist/webcomponents/p-9d46e7f1.entry.js +1 -0
  349. package/dist/webcomponents/p-a1ef6b4c.entry.js +1 -0
  350. package/dist/webcomponents/p-ac8ee442.entry.js +1 -0
  351. package/dist/webcomponents/p-af771964.entry.js +1 -0
  352. package/dist/webcomponents/p-b157f6ae.js +1 -2
  353. package/dist/webcomponents/p-bab3fd56.entry.js +1 -0
  354. package/dist/webcomponents/p-bb70152e.entry.js +1 -0
  355. package/dist/webcomponents/p-bc91044c.entry.js +1 -0
  356. package/dist/webcomponents/p-c29c587f.entry.js +1 -0
  357. package/dist/webcomponents/p-cbb60191.js +2 -3
  358. package/dist/webcomponents/p-d0e4eca5.entry.js +1 -0
  359. package/dist/webcomponents/p-d4b66d74.entry.js +1 -0
  360. package/dist/webcomponents/p-d6347f27.entry.js +19 -0
  361. package/dist/webcomponents/p-d6b5793d.js +1 -2
  362. package/dist/webcomponents/{p-b12691c3.entry.js → p-d8d1f417.entry.js} +1 -2
  363. package/dist/webcomponents/p-e12ab547.js +1 -0
  364. package/dist/webcomponents/p-ed8c9b88.entry.js +1 -0
  365. package/dist/webcomponents/webcomponents.esm.js +1 -2
  366. package/package.json +4 -3
  367. package/readme.md +40 -7
  368. package/dist/cjs/Api-548eaa62.js.map +0 -1
  369. package/dist/cjs/Pagination-cae1dcbd.js.map +0 -1
  370. package/dist/cjs/Payout-68a99ee3.js.map +0 -1
  371. package/dist/cjs/SubAccount-f47c8522.js.map +0 -1
  372. package/dist/cjs/additional-questions-details_5.cjs.entry.js.map +0 -1
  373. package/dist/cjs/business-form-schema-fe831c30.js.map +0 -1
  374. package/dist/cjs/config-a156df17.js.map +0 -1
  375. package/dist/cjs/form-1e732a9d.js.map +0 -1
  376. package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +0 -1
  377. package/dist/cjs/form-control-monetary.cjs.entry.js.map +0 -1
  378. package/dist/cjs/form-control-number_3.cjs.entry.js.map +0 -1
  379. package/dist/cjs/helpers-c505d861.js.map +0 -1
  380. package/dist/cjs/index-5a880722.js.map +0 -1
  381. package/dist/cjs/index-c5ace247.js.map +0 -1
  382. package/dist/cjs/index.cjs.js.map +0 -1
  383. package/dist/cjs/index.esm-91ec051e.js.map +0 -1
  384. package/dist/cjs/justifi-additional-questions_6.cjs.entry.js.map +0 -1
  385. package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +0 -1
  386. package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +0 -1
  387. package/dist/cjs/justifi-business-details.cjs.entry.js.map +0 -1
  388. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js.map +0 -1
  389. package/dist/cjs/justifi-business-form.cjs.entry.js.map +0 -1
  390. package/dist/cjs/justifi-business-list.cjs.entry.js.map +0 -1
  391. package/dist/cjs/justifi-card-form.cjs.entry.js.map +0 -1
  392. package/dist/cjs/justifi-details.cjs.entry.js.map +0 -1
  393. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js.map +0 -1
  394. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js.map +0 -1
  395. package/dist/cjs/justifi-payment-details.cjs.entry.js.map +0 -1
  396. package/dist/cjs/justifi-payment-form.cjs.entry.js.map +0 -1
  397. package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +0 -1
  398. package/dist/cjs/justifi-payments-list.cjs.entry.js.map +0 -1
  399. package/dist/cjs/justifi-payout-details.cjs.entry.js.map +0 -1
  400. package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +0 -1
  401. package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +0 -1
  402. package/dist/cjs/justifi-refund-form.cjs.entry.js.map +0 -1
  403. package/dist/cjs/justifi-subaccount-details.cjs.entry.js.map +0 -1
  404. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js.map +0 -1
  405. package/dist/cjs/justifi-table_2.cjs.entry.js.map +0 -1
  406. package/dist/cjs/loader.cjs.js.map +0 -1
  407. package/dist/cjs/select-input_2.cjs.entry.js.map +0 -1
  408. package/dist/cjs/state-options-83b52cd1.js.map +0 -1
  409. package/dist/cjs/subaccount-account-details_4.cjs.entry.js.map +0 -1
  410. package/dist/cjs/subaccount-bank-details.cjs.entry.js.map +0 -1
  411. package/dist/cjs/subaccount-terms-details.cjs.entry.js.map +0 -1
  412. package/dist/cjs/utils-13d069be.js.map +0 -1
  413. package/dist/cjs/utils-4622829d.js.map +0 -1
  414. package/dist/cjs/webcomponents.cjs.js.map +0 -1
  415. package/dist/collection/api/Api.js.map +0 -1
  416. package/dist/collection/api/Business.js.map +0 -1
  417. package/dist/collection/api/GrossVolume.js.map +0 -1
  418. package/dist/collection/api/Pagination.js.map +0 -1
  419. package/dist/collection/api/Payment.js.map +0 -1
  420. package/dist/collection/api/Payout.js.map +0 -1
  421. package/dist/collection/api/Proceed.js.map +0 -1
  422. package/dist/collection/api/SubAccount.js.map +0 -1
  423. package/dist/collection/api/index.js.map +0 -1
  424. package/dist/collection/api/mockData/MockOnboardingData.js.map +0 -1
  425. package/dist/collection/api/mockData/MockPayments.js.map +0 -1
  426. package/dist/collection/api/mockData/MockSubAccount.js.map +0 -1
  427. package/dist/collection/api/mockData/mockGrossVolumeReport.js.map +0 -1
  428. package/dist/collection/api/shared.js.map +0 -1
  429. package/dist/collection/components/bank-account-form/bank-account-form.js.map +0 -1
  430. package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +0 -1
  431. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js.map +0 -1
  432. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js.map +0 -1
  433. package/dist/collection/components/billing-form/billing-form-schema.js.map +0 -1
  434. package/dist/collection/components/billing-form/billing-form.js.map +0 -1
  435. package/dist/collection/components/billing-form/billing-form.stories.js.map +0 -1
  436. package/dist/collection/components/billing-form/state-options.js.map +0 -1
  437. package/dist/collection/components/billing-form/test/billing-form.spec.js.map +0 -1
  438. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js.map +0 -1
  439. package/dist/collection/components/business-details/business-details.js.map +0 -1
  440. package/dist/collection/components/business-details/business-details.stories.js.map +0 -1
  441. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js.map +0 -1
  442. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js.map +0 -1
  443. package/dist/collection/components/business-details/owner-details/owner-details.js.map +0 -1
  444. package/dist/collection/components/business-details/representative-details/representative-details.js.map +0 -1
  445. package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +0 -1
  446. package/dist/collection/components/business-form/business-address/business-address-form-schema.js.map +0 -1
  447. package/dist/collection/components/business-form/business-address/business-address-form.js.map +0 -1
  448. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map +0 -1
  449. package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +0 -1
  450. package/dist/collection/components/business-form/business-form-schema.js.map +0 -1
  451. package/dist/collection/components/business-form/business-form-stepped.js.map +0 -1
  452. package/dist/collection/components/business-form/business-form-stepped.stories.js.map +0 -1
  453. package/dist/collection/components/business-form/business-form.js.map +0 -1
  454. package/dist/collection/components/business-form/business-form.stories.js.map +0 -1
  455. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +0 -1
  456. package/dist/collection/components/business-form/business-owners/business-owners.js.map +0 -1
  457. package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +0 -1
  458. package/dist/collection/components/business-form/business-representative/business-representative.js.map +0 -1
  459. package/dist/collection/components/business-form/helpers.js.map +0 -1
  460. package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js.map +0 -1
  461. package/dist/collection/components/business-form/legal-address-form/legal-address-form.js.map +0 -1
  462. package/dist/collection/components/business-form/test/business-form.spec.js.map +0 -1
  463. package/dist/collection/components/business-list/business-list.js.map +0 -1
  464. package/dist/collection/components/business-list/business-list.stories.js.map +0 -1
  465. package/dist/collection/components/card-form/card-form.js.map +0 -1
  466. package/dist/collection/components/card-form/card-form.stories.js.map +0 -1
  467. package/dist/collection/components/card-form/test/card-form.e2e.js.map +0 -1
  468. package/dist/collection/components/card-form/test/card-form.spec.js.map +0 -1
  469. package/dist/collection/components/details/details.js.map +0 -1
  470. package/dist/collection/components/details/utils.js.map +0 -1
  471. package/dist/collection/components/form/form-control-datepart.js.map +0 -1
  472. package/dist/collection/components/form/form-control-monetary.js.map +0 -1
  473. package/dist/collection/components/form/form-control-number-masked.js.map +0 -1
  474. package/dist/collection/components/form/form-control-number.js.map +0 -1
  475. package/dist/collection/components/form/form-control-select.js.map +0 -1
  476. package/dist/collection/components/form/form-control-text.js.map +0 -1
  477. package/dist/collection/components/form/form.js.map +0 -1
  478. package/dist/collection/components/gross-payment-chart/chart-utils.js.map +0 -1
  479. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js.map +0 -1
  480. package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js.map +0 -1
  481. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js.map +0 -1
  482. package/dist/collection/components/pagination-menu/pagination-menu.js.map +0 -1
  483. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js.map +0 -1
  484. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js.map +0 -1
  485. package/dist/collection/components/payment-details/payment-details.js.map +0 -1
  486. package/dist/collection/components/payment-details/payment-details.stories.js.map +0 -1
  487. package/dist/collection/components/payment-form/payment-form.js.map +0 -1
  488. package/dist/collection/components/payment-form/payment-form.stories.js.map +0 -1
  489. package/dist/collection/components/payment-form/payment-method-selector.js.map +0 -1
  490. package/dist/collection/components/payment-form/test/payment-form.e2e.js.map +0 -1
  491. package/dist/collection/components/payment-form/test/payment-form.spec.js.map +0 -1
  492. package/dist/collection/components/payment-form/tokenize.js.map +0 -1
  493. package/dist/collection/components/payment-method-form/get-computed-theme.js.map +0 -1
  494. package/dist/collection/components/payment-method-form/message-event-types.js.map +0 -1
  495. package/dist/collection/components/payment-method-form/payment-method-form.js.map +0 -1
  496. package/dist/collection/components/payment-method-form/payment-method-responses.js.map +0 -1
  497. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js.map +0 -1
  498. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js.map +0 -1
  499. package/dist/collection/components/payment-method-form/theme.js.map +0 -1
  500. package/dist/collection/components/payments-list/payments-list.js.map +0 -1
  501. package/dist/collection/components/payments-list/payments-list.stories.js.map +0 -1
  502. package/dist/collection/components/payments-list/test/payments-list.spec.js.map +0 -1
  503. package/dist/collection/components/payout-details/payout-details.js.map +0 -1
  504. package/dist/collection/components/payout-details/payout-details.stories.js.map +0 -1
  505. package/dist/collection/components/payouts-list/payouts-list.js.map +0 -1
  506. package/dist/collection/components/payouts-list/payouts-list.stories.js.map +0 -1
  507. package/dist/collection/components/proceeds-list/proceeds-list.js.map +0 -1
  508. package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +0 -1
  509. package/dist/collection/components/refund-form/refund-form-schema.js.map +0 -1
  510. package/dist/collection/components/refund-form/refund-form.js.map +0 -1
  511. package/dist/collection/components/refund-form/refund-form.stories.js.map +0 -1
  512. package/dist/collection/components/select-input/select-input.js.map +0 -1
  513. package/dist/collection/components/select-input/test/select-input.spec.js.map +0 -1
  514. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js.map +0 -1
  515. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js.map +0 -1
  516. package/dist/collection/components/subaccount-details/subaccount-details.js.map +0 -1
  517. package/dist/collection/components/subaccount-details/subaccount-details.stories.js.map +0 -1
  518. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js.map +0 -1
  519. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js.map +0 -1
  520. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js.map +0 -1
  521. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js.map +0 -1
  522. package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js.map +0 -1
  523. package/dist/collection/components/subaccounts-list/subaccounts-list.js.map +0 -1
  524. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js.map +0 -1
  525. package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js.map +0 -1
  526. package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js.map +0 -1
  527. package/dist/collection/components/table/table.js.map +0 -1
  528. package/dist/collection/components/table/test/table.spec.js.map +0 -1
  529. package/dist/collection/components/text-input/test/text-input.spec.js.map +0 -1
  530. package/dist/collection/components/text-input/text-input.js.map +0 -1
  531. package/dist/collection/index.js.map +0 -1
  532. package/dist/collection/utils/country-options.js.map +0 -1
  533. package/dist/collection/utils/phone-masks.js.map +0 -1
  534. package/dist/collection/utils/utils.js.map +0 -1
  535. package/dist/components/Api.js.map +0 -1
  536. package/dist/components/Pagination.js.map +0 -1
  537. package/dist/components/Payout.js.map +0 -1
  538. package/dist/components/SubAccount.js.map +0 -1
  539. package/dist/components/additional-questions-details.js.map +0 -1
  540. package/dist/components/additional-questions-details2.js.map +0 -1
  541. package/dist/components/additional-questions.js.map +0 -1
  542. package/dist/components/billing-form.js.map +0 -1
  543. package/dist/components/business-address-form.js.map +0 -1
  544. package/dist/components/business-generic-info.js.map +0 -1
  545. package/dist/components/business-owners.js.map +0 -1
  546. package/dist/components/business-representative.js.map +0 -1
  547. package/dist/components/config.js.map +0 -1
  548. package/dist/components/details.js.map +0 -1
  549. package/dist/components/form-control-datepart.js.map +0 -1
  550. package/dist/components/form-control-datepart2.js.map +0 -1
  551. package/dist/components/form-control-monetary.js.map +0 -1
  552. package/dist/components/form-control-monetary2.js.map +0 -1
  553. package/dist/components/form-control-number-masked.js.map +0 -1
  554. package/dist/components/form-control-number-masked2.js.map +0 -1
  555. package/dist/components/form-control-number.js.map +0 -1
  556. package/dist/components/form-control-number2.js.map +0 -1
  557. package/dist/components/form-control-select.js.map +0 -1
  558. package/dist/components/form-control-select2.js.map +0 -1
  559. package/dist/components/form-control-text.js.map +0 -1
  560. package/dist/components/form-control-text2.js.map +0 -1
  561. package/dist/components/form.js.map +0 -1
  562. package/dist/components/generic-info-details.js.map +0 -1
  563. package/dist/components/generic-info-details2.js.map +0 -1
  564. package/dist/components/helpers.js.map +0 -1
  565. package/dist/components/index.esm.js.map +0 -1
  566. package/dist/components/index.js.map +0 -1
  567. package/dist/components/index2.js.map +0 -1
  568. package/dist/components/justifi-additional-questions.js.map +0 -1
  569. package/dist/components/justifi-bank-account-form.js.map +0 -1
  570. package/dist/components/justifi-billing-form.js.map +0 -1
  571. package/dist/components/justifi-business-address-form.js.map +0 -1
  572. package/dist/components/justifi-business-details.js.map +0 -1
  573. package/dist/components/justifi-business-form-stepped.js.map +0 -1
  574. package/dist/components/justifi-business-form.js.map +0 -1
  575. package/dist/components/justifi-business-generic-info.js.map +0 -1
  576. package/dist/components/justifi-business-list.js.map +0 -1
  577. package/dist/components/justifi-business-owners.js.map +0 -1
  578. package/dist/components/justifi-business-representative.js.map +0 -1
  579. package/dist/components/justifi-card-form.js.map +0 -1
  580. package/dist/components/justifi-details.js.map +0 -1
  581. package/dist/components/justifi-gross-payment-chart.js.map +0 -1
  582. package/dist/components/justifi-legal-address-form.js.map +0 -1
  583. package/dist/components/justifi-payment-balance-transactions.js.map +0 -1
  584. package/dist/components/justifi-payment-details.js.map +0 -1
  585. package/dist/components/justifi-payment-form.js.map +0 -1
  586. package/dist/components/justifi-payment-method-form.js.map +0 -1
  587. package/dist/components/justifi-payment-method-selector.js.map +0 -1
  588. package/dist/components/justifi-payments-list.js.map +0 -1
  589. package/dist/components/justifi-payout-details.js.map +0 -1
  590. package/dist/components/justifi-payouts-list.js.map +0 -1
  591. package/dist/components/justifi-proceeds-list.js.map +0 -1
  592. package/dist/components/justifi-refund-form.js.map +0 -1
  593. package/dist/components/justifi-subaccount-details.js.map +0 -1
  594. package/dist/components/justifi-subaccounts-list.js.map +0 -1
  595. package/dist/components/justifi-table.js.map +0 -1
  596. package/dist/components/legal-address-details.js.map +0 -1
  597. package/dist/components/legal-address-details2.js.map +0 -1
  598. package/dist/components/legal-address-form.js.map +0 -1
  599. package/dist/components/owner-details.js.map +0 -1
  600. package/dist/components/owner-details2.js.map +0 -1
  601. package/dist/components/pagination-menu.js.map +0 -1
  602. package/dist/components/pagination-menu2.js.map +0 -1
  603. package/dist/components/payment-method-form.js.map +0 -1
  604. package/dist/components/payment-method-selector.js.map +0 -1
  605. package/dist/components/phone-masks.js.map +0 -1
  606. package/dist/components/representative-details.js.map +0 -1
  607. package/dist/components/representative-details2.js.map +0 -1
  608. package/dist/components/select-input.js.map +0 -1
  609. package/dist/components/select-input2.js.map +0 -1
  610. package/dist/components/state-options.js.map +0 -1
  611. package/dist/components/subaccount-account-details.js.map +0 -1
  612. package/dist/components/subaccount-account-details2.js.map +0 -1
  613. package/dist/components/subaccount-bank-details.js.map +0 -1
  614. package/dist/components/subaccount-merchant-details.js.map +0 -1
  615. package/dist/components/subaccount-merchant-details2.js.map +0 -1
  616. package/dist/components/subaccount-owners-details.js.map +0 -1
  617. package/dist/components/subaccount-owners-details2.js.map +0 -1
  618. package/dist/components/subaccount-representative-details.js.map +0 -1
  619. package/dist/components/subaccount-representative-details2.js.map +0 -1
  620. package/dist/components/subaccount-terms-details.js.map +0 -1
  621. package/dist/components/table.js.map +0 -1
  622. package/dist/components/text-input.js.map +0 -1
  623. package/dist/components/text-input2.js.map +0 -1
  624. package/dist/components/utils.js.map +0 -1
  625. package/dist/components/utils2.js.map +0 -1
  626. package/dist/config.js.map +0 -1
  627. package/dist/esm/Api-c65d3ed8.js.map +0 -1
  628. package/dist/esm/Pagination-31f770d6.js.map +0 -1
  629. package/dist/esm/Payout-fcf16887.js.map +0 -1
  630. package/dist/esm/SubAccount-128190e9.js.map +0 -1
  631. package/dist/esm/additional-questions-details_5.entry.js.map +0 -1
  632. package/dist/esm/business-form-schema-30a3eadd.js.map +0 -1
  633. package/dist/esm/config-ceb0f902.js.map +0 -1
  634. package/dist/esm/form-32cf3d1e.js.map +0 -1
  635. package/dist/esm/form-control-datepart_2.entry.js.map +0 -1
  636. package/dist/esm/form-control-monetary.entry.js.map +0 -1
  637. package/dist/esm/form-control-number_3.entry.js.map +0 -1
  638. package/dist/esm/helpers-1d5ecdc8.js.map +0 -1
  639. package/dist/esm/index-5ed53c20.js.map +0 -1
  640. package/dist/esm/index-7471ed60.js.map +0 -1
  641. package/dist/esm/index.esm-9397ffa0.js.map +0 -1
  642. package/dist/esm/index.js.map +0 -1
  643. package/dist/esm/justifi-additional-questions_6.entry.js.map +0 -1
  644. package/dist/esm/justifi-bank-account-form.entry.js.map +0 -1
  645. package/dist/esm/justifi-billing-form_2.entry.js.map +0 -1
  646. package/dist/esm/justifi-business-details.entry.js.map +0 -1
  647. package/dist/esm/justifi-business-form-stepped.entry.js.map +0 -1
  648. package/dist/esm/justifi-business-form.entry.js.map +0 -1
  649. package/dist/esm/justifi-business-list.entry.js.map +0 -1
  650. package/dist/esm/justifi-card-form.entry.js.map +0 -1
  651. package/dist/esm/justifi-details.entry.js.map +0 -1
  652. package/dist/esm/justifi-gross-payment-chart.entry.js.map +0 -1
  653. package/dist/esm/justifi-payment-balance-transactions.entry.js.map +0 -1
  654. package/dist/esm/justifi-payment-details.entry.js.map +0 -1
  655. package/dist/esm/justifi-payment-form.entry.js.map +0 -1
  656. package/dist/esm/justifi-payment-method-form.entry.js.map +0 -1
  657. package/dist/esm/justifi-payments-list.entry.js.map +0 -1
  658. package/dist/esm/justifi-payout-details.entry.js.map +0 -1
  659. package/dist/esm/justifi-payouts-list.entry.js.map +0 -1
  660. package/dist/esm/justifi-proceeds-list.entry.js.map +0 -1
  661. package/dist/esm/justifi-refund-form.entry.js.map +0 -1
  662. package/dist/esm/justifi-subaccount-details.entry.js.map +0 -1
  663. package/dist/esm/justifi-subaccounts-list.entry.js.map +0 -1
  664. package/dist/esm/justifi-table_2.entry.js.map +0 -1
  665. package/dist/esm/loader.js.map +0 -1
  666. package/dist/esm/select-input_2.entry.js.map +0 -1
  667. package/dist/esm/state-options-ece00aa2.js.map +0 -1
  668. package/dist/esm/subaccount-account-details_4.entry.js.map +0 -1
  669. package/dist/esm/subaccount-bank-details.entry.js.map +0 -1
  670. package/dist/esm/subaccount-terms-details.entry.js.map +0 -1
  671. package/dist/esm/utils-40b7002c.js.map +0 -1
  672. package/dist/esm/utils-6352c002.js.map +0 -1
  673. package/dist/esm/webcomponents.js.map +0 -1
  674. package/dist/webcomponents/index.esm.js.map +0 -1
  675. package/dist/webcomponents/p-0d5d02d7.js.map +0 -1
  676. package/dist/webcomponents/p-160c9fbb.entry.js +0 -2
  677. package/dist/webcomponents/p-160c9fbb.entry.js.map +0 -1
  678. package/dist/webcomponents/p-215b4c87.entry.js +0 -2
  679. package/dist/webcomponents/p-215b4c87.entry.js.map +0 -1
  680. package/dist/webcomponents/p-26245f01.entry.js +0 -20
  681. package/dist/webcomponents/p-26245f01.entry.js.map +0 -1
  682. package/dist/webcomponents/p-26dfa274.entry.js +0 -2
  683. package/dist/webcomponents/p-26dfa274.entry.js.map +0 -1
  684. package/dist/webcomponents/p-285a50a6.entry.js +0 -2
  685. package/dist/webcomponents/p-285a50a6.entry.js.map +0 -1
  686. package/dist/webcomponents/p-2c2cde2d.js.map +0 -1
  687. package/dist/webcomponents/p-2cd29187.entry.js +0 -2
  688. package/dist/webcomponents/p-2cd29187.entry.js.map +0 -1
  689. package/dist/webcomponents/p-355eabff.entry.js +0 -2
  690. package/dist/webcomponents/p-355eabff.entry.js.map +0 -1
  691. package/dist/webcomponents/p-356cf20d.entry.js +0 -2
  692. package/dist/webcomponents/p-356cf20d.entry.js.map +0 -1
  693. package/dist/webcomponents/p-378e163d.entry.js +0 -2
  694. package/dist/webcomponents/p-378e163d.entry.js.map +0 -1
  695. package/dist/webcomponents/p-397e0d5a.entry.js +0 -2
  696. package/dist/webcomponents/p-397e0d5a.entry.js.map +0 -1
  697. package/dist/webcomponents/p-3d82c8a3.entry.js.map +0 -1
  698. package/dist/webcomponents/p-47bc59b5.js.map +0 -1
  699. package/dist/webcomponents/p-526cb161.js.map +0 -1
  700. package/dist/webcomponents/p-59860ac8.js.map +0 -1
  701. package/dist/webcomponents/p-5b8f004d.entry.js +0 -2
  702. package/dist/webcomponents/p-5b8f004d.entry.js.map +0 -1
  703. package/dist/webcomponents/p-62872b87.entry.js +0 -2
  704. package/dist/webcomponents/p-62872b87.entry.js.map +0 -1
  705. package/dist/webcomponents/p-635a3b3e.entry.js +0 -2
  706. package/dist/webcomponents/p-635a3b3e.entry.js.map +0 -1
  707. package/dist/webcomponents/p-64af0ae9.entry.js +0 -2
  708. package/dist/webcomponents/p-64af0ae9.entry.js.map +0 -1
  709. package/dist/webcomponents/p-76983a7e.js +0 -2
  710. package/dist/webcomponents/p-76983a7e.js.map +0 -1
  711. package/dist/webcomponents/p-76dffeec.js.map +0 -1
  712. package/dist/webcomponents/p-77e732b2.entry.js +0 -2
  713. package/dist/webcomponents/p-77e732b2.entry.js.map +0 -1
  714. package/dist/webcomponents/p-7d58db66.js.map +0 -1
  715. package/dist/webcomponents/p-88fa33c1.entry.js +0 -2
  716. package/dist/webcomponents/p-88fa33c1.entry.js.map +0 -1
  717. package/dist/webcomponents/p-8f37e3ee.js.map +0 -1
  718. package/dist/webcomponents/p-931989e6.entry.js +0 -2
  719. package/dist/webcomponents/p-931989e6.entry.js.map +0 -1
  720. package/dist/webcomponents/p-96eecdff.entry.js +0 -2
  721. package/dist/webcomponents/p-96eecdff.entry.js.map +0 -1
  722. package/dist/webcomponents/p-988191bf.js.map +0 -1
  723. package/dist/webcomponents/p-9b6dcac5.js.map +0 -1
  724. package/dist/webcomponents/p-9ce9561a.entry.js +0 -2
  725. package/dist/webcomponents/p-9ce9561a.entry.js.map +0 -1
  726. package/dist/webcomponents/p-abc05a34.entry.js +0 -2
  727. package/dist/webcomponents/p-abc05a34.entry.js.map +0 -1
  728. package/dist/webcomponents/p-b12691c3.entry.js.map +0 -1
  729. package/dist/webcomponents/p-b157f6ae.js.map +0 -1
  730. package/dist/webcomponents/p-b98a3f94.entry.js +0 -2
  731. package/dist/webcomponents/p-b98a3f94.entry.js.map +0 -1
  732. package/dist/webcomponents/p-c1ae571b.entry.js +0 -2
  733. package/dist/webcomponents/p-c1ae571b.entry.js.map +0 -1
  734. package/dist/webcomponents/p-c4289027.entry.js +0 -2
  735. package/dist/webcomponents/p-c4289027.entry.js.map +0 -1
  736. package/dist/webcomponents/p-c43e9572.entry.js +0 -2
  737. package/dist/webcomponents/p-c43e9572.entry.js.map +0 -1
  738. package/dist/webcomponents/p-c4c8fb44.entry.js +0 -2
  739. package/dist/webcomponents/p-c4c8fb44.entry.js.map +0 -1
  740. package/dist/webcomponents/p-cbb60191.js.map +0 -1
  741. package/dist/webcomponents/p-d6b5793d.js.map +0 -1
  742. package/dist/webcomponents/p-dbbd2611.entry.js +0 -2
  743. package/dist/webcomponents/p-dbbd2611.entry.js.map +0 -1
  744. package/dist/webcomponents/p-ec1890fc.entry.js +0 -2
  745. package/dist/webcomponents/p-ec1890fc.entry.js.map +0 -1
  746. package/dist/webcomponents/p-f0897468.entry.js +0 -2
  747. package/dist/webcomponents/p-f0897468.entry.js.map +0 -1
  748. package/dist/webcomponents/webcomponents.esm.js.map +0 -1
@@ -1,2 +0,0 @@
1
- import{r as e,c as t,h as r}from"./p-cbb60191.js";const i=class{constructor(r){e(this,r);this.cardFormReady=t(this,"cardFormReady",7);this.ready=t(this,"ready",7);this.cardFormTokenize=t(this,"cardFormTokenize",7);this.cardFormValidate=t(this,"cardFormValidate",7);this.validationMode=undefined;this.iframeOrigin=undefined;this.singleLine=false;this.internalStyleOverrides=undefined}readyHandler(e){console.warn(`The 'cardFormReady' event is deprecated in the next major release and will be renamed to 'ready'`);this.cardFormReady.emit(e);this.ready.emit(e)}tokenizeHandler(e){console.warn(`The 'cardFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`);this.cardFormTokenize.emit(e)}validateHandler(e){console.warn(`The 'cardFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`);this.cardFormValidate.emit(e)}async tokenize(...e){if(!this.childRef){throw new Error("Cannot call tokenize")}return this.childRef.tokenize(...e)}async validate(){if(!this.childRef){throw new Error("Cannot call validate")}return this.childRef.validate()}async resize(){console.warn(`The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach.`);if(!this.childRef){throw new Error("Cannot call validate")}return this.childRef.resize()}render(){return r("justifi-payment-method-form",{ref:e=>{if(e){this.childRef=e}},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"card","single-line":this.singleLine,"payment-method-form-ready":this.cardFormReady,"payment-method-form-tokenize":this.cardFormTokenize,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{i as justifi_card_form};
2
- //# sourceMappingURL=p-96eecdff.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CardForm","readyHandler","event","console","warn","this","cardFormReady","emit","ready","tokenizeHandler","cardFormTokenize","validateHandler","cardFormValidate","tokenize","args","childRef","Error","validate","resize","render","h","ref","el","iframeOrigin","singleLine","validationMode"],"sources":["src/components/card-form/card-form.tsx"],"sourcesContent":["import { Component, Event, Prop, h, EventEmitter, Method, Listen, State } from '@stencil/core';\nimport { CreatePaymentMethodResponse } from '../payment-method-form/payment-method-responses';\nimport { Theme } from '../payment-method-form/theme';\n\n@Component({\n tag: 'justifi-card-form',\n shadow: false,\n})\nexport class CardForm {\n /**\n * When to trigger validation of the form.\n */\n @Prop({ mutable: true }) validationMode: 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all';\n\n /**\n * URL for the rendered iFrame. End-users need not use this.\n */\n @Prop({ mutable: true }) iframeOrigin?: string;\n\n /**\n * Boolean indicating if the Card Form should render in a single line\n */\n @Prop() singleLine: boolean = false;\n\n @State() internalStyleOverrides: Theme;\n\n /**\n * Triggered when iframe has loaded\n * @event justifi-card-form#cardFormReady\n */\n\n @Event() cardFormReady: EventEmitter;\n\n /**\n * Triggered when iframe has loaded\n * @event justifi-card-form#ready\n */\n\n @Event() ready: EventEmitter;\n\n /**\n * Triggered when the tokenize method is called on the component\n * @event justifi-card-form#cardFormTokenize\n */\n @Event() cardFormTokenize: EventEmitter<{ data: any }>;\n\n /**\n * Triggered when the validate method is called on the component\n * @event justifi-card-form#cardFormTokenize\n */\n @Event() cardFormValidate: EventEmitter<{ data: { isValid: boolean } }>;\n\n @Listen('paymentMethodFormReady')\n readyHandler(event: CustomEvent) {\n console.warn(`The 'cardFormReady' event is deprecated in the next major release and will be renamed to 'ready'`);\n this.cardFormReady.emit(event);\n this.ready.emit(event);\n }\n\n @Listen('paymentMethodFormTokenize')\n tokenizeHandler(event: { data: any }) {\n console.warn(\n `The 'cardFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`,\n );\n this.cardFormTokenize.emit(event);\n }\n\n @Listen('paymentMethodFormValidate')\n validateHandler(event: { data: any }) {\n console.warn(\n `The 'cardFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`,\n );\n this.cardFormValidate.emit(event);\n }\n\n private childRef?: HTMLJustifiPaymentMethodFormElement;\n\n /**\n * Makes a tokenization request to the iframe\n */\n @Method()\n async tokenize(...args: Parameters<HTMLJustifiPaymentMethodFormElement['tokenize']>): Promise<CreatePaymentMethodResponse> {\n if (!this.childRef) {\n throw new Error('Cannot call tokenize');\n }\n return this.childRef.tokenize(...args);\n }\n\n /**\n * Runs a validation on the form and shows errors if any\n */\n @Method()\n async validate(): Promise<{ isValid: boolean }> {\n if (!this.childRef) {\n throw new Error('Cannot call validate');\n }\n return this.childRef.validate();\n }\n\n /**\n * Manually resizes the iframe to fit the contents of the iframe\n * @deprecated This method will be removed in future releases.\n */\n @Method()\n async resize(): Promise<void> {\n console.warn(\n `The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach.`,\n );\n if (!this.childRef) {\n throw new Error('Cannot call validate');\n }\n return this.childRef.resize();\n }\n\n render() {\n return (\n <justifi-payment-method-form\n ref={el => {\n if (el) {\n this.childRef = el;\n }\n }}\n iframe-origin={this.iframeOrigin}\n payment-method-form-type=\"card\"\n single-line={this.singleLine}\n payment-method-form-ready={this.cardFormReady}\n payment-method-form-tokenize={this.cardFormTokenize}\n payment-method-form-validation-mode={this.validationMode || 'onSubmit'}\n />\n );\n }\n}\n"],"mappings":"wDAQaA,EAAQ,M,mRAcW,M,sCA+B9B,YAAAC,CAAaC,GACXC,QAAQC,KAAK,oGACbC,KAAKC,cAAcC,KAAKL,GACxBG,KAAKG,MAAMD,KAAKL,E,CAIlB,eAAAO,CAAgBP,GACdC,QAAQC,KACN,0MAEFC,KAAKK,iBAAiBH,KAAKL,E,CAI7B,eAAAS,CAAgBT,GACdC,QAAQC,KACN,0MAEFC,KAAKO,iBAAiBL,KAAKL,E,CAS7B,cAAMW,IAAYC,GAChB,IAAKT,KAAKU,SAAU,CAClB,MAAM,IAAIC,MAAM,uB,CAElB,OAAOX,KAAKU,SAASF,YAAYC,E,CAOnC,cAAMG,GACJ,IAAKZ,KAAKU,SAAU,CAClB,MAAM,IAAIC,MAAM,uB,CAElB,OAAOX,KAAKU,SAASE,U,CAQvB,YAAMC,GACJf,QAAQC,KACN,0KAEF,IAAKC,KAAKU,SAAU,CAClB,MAAM,IAAIC,MAAM,uB,CAElB,OAAOX,KAAKU,SAASG,Q,CAGvB,MAAAC,GACE,OACEC,EAAA,+BACEC,IAAKC,IACH,GAAIA,EAAI,CACNjB,KAAKU,SAAWO,C,GAEnB,gBACcjB,KAAKkB,aAAY,2BACP,OAAM,cAClBlB,KAAKmB,WAAU,4BACDnB,KAAKC,cAAa,+BACfD,KAAKK,iBAAgB,sCACdL,KAAKoB,gBAAkB,Y"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["TagTypes","SubAccountStatusType","AccountType","BusinessType","ForProfitStructure","NonProfitStructure","GovernmentEntityStructure","SubAccount","constructor","subAccount","this","findActiveRate","type","application_fee_rates","find","rate","rate_type","getBasisPercentage","formatPercentage","basis_point_rate","getTransactionFee","formatCurrency","transaction_fee","getFormattedRate","account_type","created_at","dateString","formatDate","timeString","formatTime","currency","id","name","payout_ready","platform_account_id","processing_ready","status","updated_at","related_accounts","activeCardRate","activeAchRate","cardRate","achRate","statusTagType","typeMap","enabled","success","disabled","error","rejected","information_needed","warning","submitted","info","created","neutral","archived"],"sources":["src/api/SubAccount.ts"],"sourcesContent":["import { formatCurrency, formatDate, formatPercentage, formatTime } from '../utils/utils';\nimport { BusinessStructure } from './Business';\n\nexport enum TagTypes {\n neutral = 'neutral',\n info = 'info',\n success = 'success',\n warning = 'warning',\n error = 'error'\n}\n\nexport enum SubAccountStatusType {\n created = 'created',\n submitted = 'submitted',\n information_needed = 'information_needed',\n enabled = 'enabled',\n disabled = 'disabled',\n rejected = 'rejected',\n archived = 'archived'\n}\n\nexport enum AccountType {\n live = 'live',\n test = 'test'\n}\n\nexport enum BusinessType {\n forProfit = 'for_profit',\n nonProfit = 'non_profit',\n government = 'government_entity',\n individual = 'individual'\n}\n\nexport enum ForProfitStructure {\n none = '',\n soleProprietorship = 'sole_proprietorship',\n singleMember = 'single_llc',\n multiMember = 'multi_llc',\n privatePartnership = 'private_partnership',\n privateCorp = 'private_corporation',\n unincorporatedAssociation = 'unincorporated_association',\n publicPartnership = 'public_partnership',\n publicCorp = 'public_corporation'\n}\n\nexport enum NonProfitStructure {\n incorporated = 'incorporated',\n unincorporated = 'unincorporated'\n}\n\nexport enum GovernmentEntityStructure {\n unit = 'government_unit',\n instrumentality = 'government_instrumentality',\n taxExempt = 'tax_exempt_government_instrumentality'\n}\n\nexport interface ApplicationFeeRate {\n basis_point_rate: number,\n created_at: string,\n currency: string,\n id: string,\n rate_type: string,\n transaction_fee: number,\n updated_at: string\n}\n\nexport interface Legal {\n name?: string,\n address_line1?: string,\n address_line2?: string,\n address_city?: string,\n address_state?: string,\n address_postal_code?: string,\n address_country?: string\n}\n\nexport interface ISubAccount {\n account_type: AccountType,\n application_fee_rates: ApplicationFeeRate[] | [],\n created_at: string,\n currency: string,\n id: string,\n name: string,\n payout_ready: boolean,\n platform_account_id: string,\n processing_ready: boolean,\n status: SubAccountStatusType,\n updated_at: string\n related_accounts?: object,\n readonly statusTagType?: TagTypes\n};\n\nexport class SubAccount implements ISubAccount {\n public account_type: AccountType;\n public application_fee_rates: ApplicationFeeRate[] | [];\n public created_at: string;\n public dateString: string;\n public timeString: string;\n public currency: string;\n public id: string;\n public name: string;\n public payout_ready: boolean;\n public platform_account_id: string;\n public processing_ready: boolean;\n public status: SubAccountStatusType;\n public updated_at: string;\n public related_accounts: object;\n public cardRate: string | undefined;\n public achRate: string | undefined;\n\n constructor(subAccount: ISubAccount) {\n this.account_type = subAccount.account_type;\n this.application_fee_rates = subAccount.application_fee_rates || [];\n this.created_at = subAccount.created_at;\n this.dateString = formatDate(subAccount.created_at);\n this.timeString = formatTime(subAccount.created_at);\n this.currency = subAccount.currency;\n this.id = subAccount.id;\n this.name = subAccount.name;\n this.payout_ready = subAccount.payout_ready;\n this.platform_account_id = subAccount.platform_account_id;\n this.processing_ready = subAccount.processing_ready;\n this.status = subAccount.status;\n this.updated_at = subAccount.updated_at;\n this.related_accounts = subAccount.related_accounts || {};\n const activeCardRate = this.findActiveRate(subAccount, 'cc');\n const activeAchRate = this.findActiveRate(subAccount, 'ach');\n this.cardRate = this.getFormattedRate(activeCardRate);\n this.achRate = this.getFormattedRate(activeAchRate);\n }\n\n findActiveRate = (subAccount: ISubAccount, type: string): ApplicationFeeRate | undefined => {\n return subAccount.application_fee_rates.find(rate => rate.rate_type === type);\n };\n\n getBasisPercentage = (rate: ApplicationFeeRate | undefined): string | undefined => {\n return formatPercentage(rate?.basis_point_rate);\n };\n\n getTransactionFee = (rate: ApplicationFeeRate | undefined): string | undefined => {\n return formatCurrency(rate?.transaction_fee);\n };\n\n getFormattedRate = (rate: ApplicationFeeRate | undefined): string | undefined => {\n return rate ?\n `${this.getBasisPercentage(rate)} + ${this.getTransactionFee(rate)}`\n : 'Not set';\n };\n\n get statusTagType(): TagTypes {\n const typeMap = {\n [SubAccountStatusType.enabled]: TagTypes.success,\n [SubAccountStatusType.disabled]: TagTypes.error,\n [SubAccountStatusType.rejected]: TagTypes.error,\n [SubAccountStatusType.information_needed]: TagTypes.warning,\n [SubAccountStatusType.submitted]: TagTypes.info,\n [SubAccountStatusType.created]: TagTypes.neutral,\n [SubAccountStatusType.archived]: TagTypes.neutral,\n };\n return typeMap[this.status];\n }\n}\n\nexport interface SubAccountBusinessDetails {\n url?: string,\n type?: BusinessType,\n structure?: BusinessStructure,\n industry?: string,\n tax_id?: string,\n phone?: string,\n email?: string,\n date_of_incorporation?: string,\n approximate_annual_volume?: string,\n legal?: Legal,\n doing_business_as?: {name: string}\n}\n\nexport interface SubAccountIdentity {\n name?: string,\n title?: string,\n email?: string,\n identification_number?: string,\n dob_month?: string,\n dob_day?: string,\n dob_year?: string,\n address_line1?: string,\n address_line2?: string,\n address_city?: string,\n address_state?: string,\n address_postal_code?: string,\n address_country?: string,\n phone?: string,\n is_owner?: boolean,\n ssn_last4?: string\n}\n\nexport interface SubaccountBankAccount {\n bank_name?: string,\n account_nickname?: string,\n routing_number?: string,\n account_number?: string,\n account_type?: string,\n account_owner_name?: string\n}\n\nexport interface Terms {\n accepted?: boolean,\n ip?: string,\n user_agent?: string\n}\n\nexport interface IOnboardingPayload {\n onboarding_version: string,\n bank_account?: SubaccountBankAccount,\n business_details?: SubAccountBusinessDetails,\n representative?: SubAccountIdentity,\n terms_and_conditions?: Terms\n owners?: SubAccountIdentity[]\n}\n\nexport interface IOnboardingData {\n account_type?: AccountType,\n payload?: IOnboardingPayload,\n platform_account_id?: string,\n seller_account_id?: string,\n sub_account_id?: string\n}\n"],"mappings":"yDAGA,IAAYA,GAAZ,SAAYA,GACVA,EAAA,qBACAA,EAAA,eACAA,EAAA,qBACAA,EAAA,qBACAA,EAAA,gBACD,EAND,CAAYA,MAAQ,KAQpB,IAAYC,GAAZ,SAAYA,GACVA,EAAA,qBACAA,EAAA,yBACAA,EAAA,2CACAA,EAAA,qBACAA,EAAA,uBACAA,EAAA,uBACAA,EAAA,sBACD,EARD,CAAYA,MAAoB,KAUhC,IAAYC,GAAZ,SAAYA,GACVA,EAAA,eACAA,EAAA,cACD,EAHD,CAAYA,MAAW,KAKvB,IAAYC,GAAZ,SAAYA,GACVA,EAAA,0BACAA,EAAA,0BACAA,EAAA,kCACAA,EAAA,0BACD,EALD,CAAYA,MAAY,KAOxB,IAAYC,GAAZ,SAAYA,GACVA,EAAA,WACAA,EAAA,4CACAA,EAAA,6BACAA,EAAA,2BACAA,EAAA,4CACAA,EAAA,qCACAA,EAAA,0DACAA,EAAA,0CACAA,EAAA,kCACD,EAVD,CAAYA,MAAkB,KAY9B,IAAYC,GAAZ,SAAYA,GACVA,EAAA,+BACAA,EAAA,kCACD,EAHD,CAAYA,MAAkB,KAK9B,IAAYC,GAAZ,SAAYA,GACVA,EAAA,0BACAA,EAAA,gDACAA,EAAA,oDACD,EAJD,CAAYA,MAAyB,K,MA0CxBC,EAkBX,WAAAC,CAAYC,GAqBZC,KAAAC,eAAiB,CAACF,EAAyBG,IAClCH,EAAWI,sBAAsBC,MAAKC,GAAQA,EAAKC,YAAcJ,IAG1EF,KAAAO,mBAAsBF,GACbG,EAAiBH,IAAI,MAAJA,SAAI,SAAJA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version":3,"names":["config","iframeOrigin","proxyApiOrigin","proxyAuthToken","exampleAccountId","exampleBusinessId","examplePaymentId","examplePayoutId","privateApiOrigin","privateAuthToken"],"sources":["config.ts"],"sourcesContent":["export const config = {\n iframeOrigin: 'https://js.justifi.ai/v2',\n proxyApiOrigin: 'https://wc-proxy.justifi.ai',\n proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',\n exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',\n exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',\n examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',\n examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',\n privateApiOrigin: '',\n privateAuthToken: '',\n};\n"],"mappings":"MAAaA,EAAS,CACpBC,aAAc,2BACdC,eAAgB,8BAChBC,eAAgB,o9BAChBC,iBAAkB,6BAClBC,kBAAmB,6BACnBC,iBAAkB,4BAClBC,gBAAiB,4BACjBC,iBAAkB,GAClBC,iBAAkB,W"}
@@ -1,2 +0,0 @@
1
- import{r as e,c as n,h as t,H as o}from"./p-cbb60191.js";import{c as i}from"./p-9b6dcac5.js";function r(e,n,t){return t={path:n,exports:{},require:function(e,n){return s()}},e(t,t.exports),t.exports}function s(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var a=r((function(e){(function(n){if(typeof window==="undefined")return;var t=0,o=false,i=false,r="message",s=r.length,a="[iFrameSizer]",c=a.length,f=null,u=window.requestAnimationFrame,d=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),l={},m=null,h=Object.freeze({autoResize:true,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:true,inPageLinks:false,enablePublicMethods:true,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:false,maxHeight:Infinity,maxWidth:Infinity,minHeight:0,minWidth:0,mouseEvents:true,resizeFrom:"parent",scrolling:false,sizeHeight:true,sizeWidth:false,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return true},onClosed:function(){},onInit:function(){},onMessage:function(){z("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return true}});function b(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,n,t){e.addEventListener(n,t,false)}function g(e,n,t){e.removeEventListener(n,t,false)}function p(){var e=["moz","webkit","o","ms"];var n;for(n=0;n<e.length&&!u;n+=1){u=window[e[n]+"RequestAnimationFrame"]}if(u){u=u.bind(window)}else{k("setup","RequestAnimationFrame not supported")}}function y(e){var n="Host page: "+e;if(window.top!==window.self){n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e}return n}function v(e){return a+"["+y(e)+"]"}function j(e){return l[e]?l[e].log:o}function k(e,n){M("log",e,n,j(e))}function x(e,n){M("info",e,n,j(e))}function z(e,n){M("warn",e,n,true)}function M(e,n,t,o){if(true===o&&"object"===typeof window.console){console[e](v(n),t)}}function F(e){function n(){function e(){E(_);T(Q);V("onResized",_)}r("Height");r("Width");N(e,_,"init")}function t(){var e=G.slice(c).split(":");var n=e[1]?parseInt(e[1],10):0;var t=l[e[0]]&&l[e[0]].iframe;var r=getComputedStyle(t);return{iframe:t,id:e[0],height:n+o(r)+i(r),width:e[2],type:e[3]}}function o(e){if(e.boxSizing!=="border-box"){return 0}var n=e.paddingTop?parseInt(e.paddingTop,10):0;var t=e.paddingBottom?parseInt(e.paddingBottom,10):0;return n+t}function i(e){if(e.boxSizing!=="border-box"){return 0}var n=e.borderTopWidth?parseInt(e.borderTopWidth,10):0;var t=e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0;return n+t}function r(e){var n=Number(l[Q]["max"+e]),t=Number(l[Q]["min"+e]),o=e.toLowerCase(),i=Number(_[o]);k(Q,"Checking "+o+" is in range "+t+"-"+n);if(i<t){i=t;k(Q,"Set "+o+" to min value")}if(i>n){i=n;k(Q,"Set "+o+" to max value")}_[o]=""+i}function u(){function n(){function e(){var e=0,n=false;k(Q,"Checking connection is from allowed list of origins: "+o);for(;e<o.length;e++){if(o[e]===t){n=true;break}}return n}function n(){var e=l[Q]&&l[Q].remoteHost;k(Q,"Checking connection is from: "+e);return t===e}return o.constructor===Array?e():n()}var t=e.origin,o=l[Q]&&l[Q].checkOrigin;if(o&&""+t!=="null"&&!n()){throw new Error("Unexpected message received from: "+t+" for "+_.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.")}return true}function d(){return a===(""+G).slice(0,c)&&G.slice(c).split(":")[0]in l}function m(){var e=_.type in{true:1,false:1,undefined:1};if(e){k(Q,"Ignoring init message from meta parent page")}return e}function h(e){return G.slice(G.indexOf(":")+s+e)}function b(e){k(Q,"onMessage passed: {iframe: "+_.iframe.id+", message: "+e+"}");V("onMessage",{iframe:_.iframe,message:JSON.parse(e)});k(Q,"--")}function p(){var e=document.body.getBoundingClientRect(),n=_.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:n.height,iframeWidth:n.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(n.top-e.top,10),offsetLeft:parseInt(n.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function y(e,n){function t(){A("Send Page Info","pageInfo:"+p(),e,n)}D(t,32,n)}function v(){function e(e,t){function i(){if(l[o]){y(l[o].iframe,o)}else{n()}}["scroll","resize"].forEach((function(n){k(o,e+n+" listener for sendPageInfo");t(window,n,i)}))}function n(){e("Remove ",g)}function t(){e("Add ",w)}var o=Q;t();if(l[o]){l[o].stopPageInfo=n}}function j(){if(l[Q]&&l[Q].stopPageInfo){l[Q].stopPageInfo();delete l[Q].stopPageInfo}}function M(){var e=true;if(null===_.iframe){z(Q,"IFrame ("+_.id+") not found");e=false}return e}function F(e){var n=e.getBoundingClientRect();C(Q);return{x:Math.floor(Number(n.left)+Number(f.x)),y:Math.floor(Number(n.top)+Number(f.y))}}function S(e){function n(){f=r;L();k(Q,"--")}function t(){return{x:Number(_.width)+i.x,y:Number(_.height)+i.y}}function o(){if(window.parentIFrame){window.parentIFrame["scrollTo"+(e?"Offset":"")](r.x,r.y)}else{z(Q,"Unable to scroll to requested position, window.parentIFrame not found")}}var i=e?F(_.iframe):{x:0,y:0},r=t();k(Q,"Reposition requested from iFrame (offset x:"+i.x+" y:"+i.y+")");if(window.top===window.self){n()}else{o()}}function L(){if(false===V("onScroll",f)){W()}else{T(Q)}}function q(e){function n(){var e=F(r);k(Q,"Moving to in page link (#"+o+") at x: "+e.x+" y: "+e.y);f={x:e.x,y:e.y};L();k(Q,"--")}function t(){if(window.parentIFrame){window.parentIFrame.moveToAnchor(o)}else{k(Q,"In page link #"+o+" not found and window.parentIFrame not found")}}var o=e.split("#")[1]||"",i=decodeURIComponent(o),r=document.getElementById(i)||document.getElementsByName(i)[0];if(r){n()}else if(window.top===window.self){k(Q,"In page link #"+o+" not found")}else{t()}}function P(e){var n={};if(Number(_.width)===0&&Number(_.height)===0){var t=h(9).split(":");n={x:t[1],y:t[0]}}else{n={x:_.width,y:_.height}}V(e,{iframe:_.iframe,screenX:Number(n.x),screenY:Number(n.y),type:_.type})}function V(e,n){return I(Q,e,n)}function $(){if(l[Q]&&l[Q].firstRun)B();switch(_.type){case"close":{O(_.iframe);break}case"message":{b(h(6));break}case"mouseenter":{P("onMouseEnter");break}case"mouseleave":{P("onMouseLeave");break}case"autoResize":{l[Q].autoResize=JSON.parse(h(9));break}case"scrollTo":{S(false);break}case"scrollToOffset":{S(true);break}case"pageInfo":{y(l[Q]&&l[Q].iframe,Q);v();break}case"pageInfoStop":{j();break}case"inPageLink":{q(h(9));break}case"reset":{R(_);break}case"init":{n();V("onInit",_.iframe);break}default:{if(Number(_.width)===0&&Number(_.height)===0){z("Unsupported message received ("+_.type+"), this is likely due to the iframe containing a later "+"version of iframe-resizer than the parent page")}else{n()}}}}function U(e){var n=true;if(!l[e]){n=false;z(_.type+" No settings for "+e+". Message was: "+G)}return n}function J(){for(var e in l){A("iFrame requested init",H(e),l[e].iframe,e)}}function B(){if(l[Q]){l[Q].firstRun=false}}var G=e.data,_={},Q=null;if("[iFrameResizerChild]Ready"===G){J()}else if(d()){_=t();Q=_.id;if(l[Q]){l[Q].loaded=true}if(!m()&&U(Q)){k(Q,"Received: "+G);if(M()&&u()){$()}}}else{x(Q,"Ignored: "+G)}}function I(e,n,t){var o=null,i=null;if(l[e]){o=l[e][n];if("function"===typeof o){i=o(t)}else{throw new TypeError(n+" on iFrame["+e+"] is not a function")}}return i}function S(e){var n=e.id;delete l[n]}function O(e){var n=e.id;if(I(n,"onClose",n)===false){k(n,"Close iframe cancelled by onClose event");return}k(n,"Removing iFrame: "+n);try{if(e.parentNode){e.parentNode.removeChild(e)}}catch(e){z(e)}I(n,"onClosed",n);k(n,"--");S(e)}function C(e){if(null===f){f={x:window.pageXOffset===n?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===n?document.documentElement.scrollTop:window.pageYOffset};k(e,"Get page position: "+f.x+","+f.y)}}function T(e){if(null!==f){window.scrollTo(f.x,f.y);k(e,"Set page position: "+f.x+","+f.y);W()}}function W(){f=null}function R(e){function n(){E(e);A("reset","reset",e.iframe,e.id)}k(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame"));C(e.id);N(n,e,"reset")}function E(e){function n(n){if(!e.id){k("undefined","messageData id not set");return}e.iframe.style[n]=e[n]+"px";k(e.id,"IFrame ("+r+") "+n+" set to "+e[n]+"px")}function t(n){if(!i&&"0"===e[n]){i=true;k(r,"Hidden iFrame detected, creating visibility listener");$()}}function o(e){n(e);t(e)}var r=e.iframe.id;if(l[r]){if(l[r].sizeHeight){o("height")}if(l[r].sizeWidth){o("width")}}}function N(e,n,t){if(t!==n.type&&u&&!window.jasmine){k(n.id,"Requesting animation frame");u(e)}else{e()}}function A(e,n,t,o,i){function r(){var i=l[o]&&l[o].targetOrigin;k(o,"["+e+"] Sending msg to iframe["+o+"] ("+n+") targetOrigin: "+i);t.contentWindow.postMessage(a+n,i)}function s(){z(o,"["+e+"] IFrame("+o+") not found")}function c(){if(t&&"contentWindow"in t&&null!==t.contentWindow){r()}else{s()}}function f(){function e(){if(l[o]&&!l[o].loaded&&!u){u=true;z(o,"IFrame has not responded within "+l[o].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.")}}if(!!i&&l[o]&&!!l[o].warningTimeout){l[o].msgTimeout=setTimeout(e,l[o].warningTimeout)}}var u=false;o=o||t.id;if(l[o]){c();f()}}function H(e){return e+":"+l[e].bodyMarginV1+":"+l[e].sizeWidth+":"+l[e].log+":"+l[e].interval+":"+l[e].enablePublicMethods+":"+l[e].autoResize+":"+l[e].bodyMargin+":"+l[e].heightCalculationMethod+":"+l[e].bodyBackground+":"+l[e].bodyPadding+":"+l[e].tolerance+":"+l[e].inPageLinks+":"+l[e].resizeFrom+":"+l[e].widthCalculationMethod+":"+l[e].mouseEvents}function L(e){return typeof e==="number"}function q(e,i){function r(){function n(n){var t=l[F][n];if(Infinity!==t&&0!==t){e.style[n]=L(t)?t+"px":t;k(F,"Set "+n+" = "+e.style[n])}}function t(e){if(l[F]["min"+e]>l[F]["max"+e]){throw new Error("Value for min"+e+" can not be greater than max"+e)}}t("Height");t("Width");n("maxHeight");n("minHeight");n("maxWidth");n("minWidth")}function s(){var e=i&&i.id||h.id+t++;if(null!==document.getElementById(e)){e+=t++}return e}function a(n){if(typeof n!=="string"){throw new TypeError("Invaild id for iFrame. Expected String")}if(""===n){e.id=n=s();o=(i||{}).log;k(n,"Added missing iframe ID: "+n+" ("+e.src+")")}return n}function c(){k(F,"IFrame scrolling "+(l[F]&&l[F].scrolling?"enabled":"disabled")+" for "+F);e.style.overflow=false===(l[F]&&l[F].scrolling)?"hidden":"auto";switch(l[F]&&l[F].scrolling){case"omit":{break}case true:{e.scrolling="yes";break}case false:{e.scrolling="no";break}default:{e.scrolling=l[F]?l[F].scrolling:"no"}}}function f(){if("number"===typeof(l[F]&&l[F].bodyMargin)||"0"===(l[F]&&l[F].bodyMargin)){l[F].bodyMarginV1=l[F].bodyMargin;l[F].bodyMargin=""+l[F].bodyMargin+"px"}}function u(){var n=l[F]&&l[F].firstRun,t=l[F]&&l[F].heightCalculationMethod in d;if(!n&&t){R({iframe:e,height:0,width:0,type:"init"})}}function m(){if(l[F]){l[F].iframe.iFrameResizer={close:O.bind(null,l[F].iframe),removeListeners:S.bind(null,l[F].iframe),resize:A.bind(null,"Window resize","resize",l[F].iframe),moveToAnchor:function(e){A("Move to anchor","moveToAnchor:"+e,l[F].iframe,F)},sendMessage:function(e){e=JSON.stringify(e);A("Send Message","message:"+e,l[F].iframe,F)}}}}function g(t){function o(){A("iFrame.onload",t,e,n,true);u()}function i(n){if(!e.parentNode){return}var t=new n((function(n){n.forEach((function(n){var t=Array.prototype.slice.call(n.removedNodes);t.forEach((function(n){if(n===e){O(e)}}))}))}));t.observe(e.parentNode,{childList:true})}var r=b();if(r){i(r)}w(e,"load",o);A("init",t,e,n,true)}function p(e){if("object"!==typeof e){throw new TypeError("Options is not an object")}}function y(e){for(var n in h){if(Object.prototype.hasOwnProperty.call(h,n)){l[F][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:h[n]}}}function v(e){return""===e||null!==e.match(/^(about:blank|javascript:|file:\/\/)/)?"*":e}function j(e){var n=e.split("Callback");if(n.length===2){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e];delete this[e];z(F,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}function x(n){n=n||{};l[F]=Object.create(null);l[F].iframe=e;l[F].firstRun=true;l[F].remoteHost=e.src&&e.src.split("/").slice(0,3).join("/");p(n);Object.keys(n).forEach(j,n);y(n);if(l[F]){l[F].targetOrigin=true===l[F].checkOrigin?v(l[F].remoteHost):"*"}}function M(){return F in l&&"iFrameResizer"in e}var F=a(e.id);if(M()){z(F,"Ignored iFrame, already setup.")}else{x(i);c();r();f();g(H(F));m()}}function P(e,n){if(null===m){m=setTimeout((function(){m=null;e()}),n)}}var V={};function D(e,n,t){if(!V[t]){V[t]=setTimeout((function(){V[t]=null;e()}),n)}}function $(){function e(){function e(e){function n(n){return"0px"===(l[e]&&l[e].iframe.style[n])}function t(e){return null!==e.offsetParent}if(l[e]&&t(l[e].iframe)&&(n("height")||n("width"))){A("Visibility change","resize",l[e].iframe,e)}}Object.keys(l).forEach((function(n){e(n)}))}function n(n){k("window","Mutation observed: "+n[0].target+" "+n[0].type);P(e,16)}function t(){var e=document.querySelector("body"),t={attributes:true,attributeOldValue:false,characterData:true,characterDataOldValue:false,childList:true,subtree:true},i=new o(n);i.observe(e,t)}var o=b();if(o){t()}}function U(e){function n(){B("Window "+e,"resize")}k("window","Trigger event: "+e);P(n,16)}function J(){function e(){B("Tab Visible","resize")}if("hidden"!==document.visibilityState){k("document","Trigger event: Visibility change");P(e,16)}}function B(e,n){function t(e){return l[e]&&"parent"===l[e].resizeFrom&&l[e].autoResize&&!l[e].firstRun}Object.keys(l).forEach((function(o){if(t(o)){A(e,n,l[o].iframe,o)}}))}function G(){w(window,"message",F);w(window,"resize",(function(){U("resize")}));w(document,"visibilitychange",J);w(document,"-webkit-visibilitychange",J)}function _(){function e(e,n){function t(){if(!n.tagName){throw new TypeError("Object is not a valid DOM element")}else if("IFRAME"!==n.tagName.toUpperCase()){throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}}if(n){t();q(n,e);o.push(n)}}function t(e){if(e&&e.enablePublicMethods){z("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}}var o;p();G();return function i(r,s){o=[];t(r);switch(typeof s){case"undefined":case"string":{Array.prototype.forEach.call(document.querySelectorAll(s||"iframe"),e.bind(n,r));break}case"object":{e(r,s);break}default:{throw new TypeError("Unexpected data type ("+typeof s+")")}}return o}}function Q(e){if(!e.fn){x("","Unable to bind to jQuery, it is not fully loaded.")}else if(!e.fn.iFrameResize){e.fn.iFrameResize=function e(n){function t(e,t){q(t,n)}return this.filter("iframe").each(t).end()}}}if(window.jQuery!==n){Q(window.jQuery)}if(typeof n==="function"&&n.amd){n([],_)}else{e.exports=_()}window.iFrameResize=window.iFrameResize||_()})()}));const c={card:{ready:"justifi.card.ready",tokenize:"justifi.card.tokenize",validate:"justifi.card.validate",resize:"justifi.card.resize",styleOverrides:"justifi.card.styleOverrides"},bankAccount:{ready:"justifi.bankAccount.ready",tokenize:"justifi.bankAccount.tokenize",validate:"justifi.bankAccount.validate",resize:"justifi.bankAccount.resize",styleOverrides:"justifi.bankAccount.styleOverrides"}};const f="@justifi/webcomponents";const u="4.7.1-rc.0";const d="JustiFi Web Components";const l="dist/index.cjs.js";const m="dist/components/index.js";const h="dist/esm/index.mjs";const b="dist/esm/index.mjs";const w="dist/types/index.d.ts";const g="dist/collection/collection-manifest.json";const p={type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"};const y={registry:"https://registry.npmjs.org"};const v=["dist/","loader/"];const j={build:"stencil build --docs",start:'concurrently --restart-tries 3 -c "bgBlue.bold,bgMagenta.bold,bgGreen.bold" "npm run start-stencil" "npm run storybook"',"start-stencil":"stencil build --watch",test:"stencil test --spec","test:watch":"stencil test --spec --watchAll","test:e2e":"stencil test --e2e",generate:"stencil generate",storybook:"storybook dev -p 6006 --quiet","build-storybook":"storybook build -o ../docs"};const k={"@stencil/core":"^4.0.5",bootstrap:"^5.2.3","chart.js":"^4.4.1","date-fns":"^2.29.3","dinero.js":"^1.9.1","iframe-resizer":"^4.3.7",imask:"^7.1.3",rxjs:"^7.8.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"};const x={"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@pxtrn/storybook-addon-docs-stencil":"^6.4.1","@stencil/angular-output-target":"^0.7.1","@stencil/react-output-target":"^0.5.3","@stencil/sass":"^3.0.1","@stencil/store":"^2.0.8","@stencil/vue-output-target":"^0.8.6","@storybook/addon-actions":"^7.0.4","@storybook/addon-essentials":"^7.0.4","@storybook/addon-interactions":"^7.0.4","@storybook/addon-links":"^7.0.4","@storybook/html":"^7.0.4","@storybook/html-webpack5":"^7.0.4","@storybook/jest":"^0.1.0","@storybook/testing-library":"^0.1.0","@types/jest":"27.0.3","@types/node":"^20.1.4","@types/react":"^18.0.37","@types/react-dom":"^18.0.11",concurrently:"^7.6.0",dotenv:"^16.3.1",jest:"^27.4.5","jest-cli":"^27.4.5",puppeteer:"^10.0.0",react:"^18.2.0","react-dom":"^18.2.0","rollup-plugin-replace":"^2.2.0",storybook:"^7.0.4"};const z="MIT";const M="507bac1d941eae6e1f56e185ecd9bc9d22637783";const F={name:f,version:u,description:d,main:l,module:m,es2015:h,es2017:b,types:w,collection:g,"collection:main":"dist/collection/index.js",repository:p,publishConfig:y,files:v,scripts:j,dependencies:k,devDependencies:x,license:z,gitHead:M};const I=()=>{const e=getComputedStyle(document.body);const n={loadGoogleFont:e.getPropertyValue("--jfi-load-google-font"),layout:{fontFamily:e.getPropertyValue("--jfi-layout-font-family"),padding:e.getPropertyValue("--jfi-layout-padding"),formControlSpacingHorizontal:e.getPropertyValue("--jfi-layout-form-control-spacing-x"),formControlSpacingVertical:e.getPropertyValue("--jfi-layout-form-control-spacing-y")},formControl:{backgroundColor:e.getPropertyValue("--jfi-form-control-background-color"),borderColor:e.getPropertyValue("--jfi-form-control-border-color"),borderColorFocus:e.getPropertyValue("--jfi-form-control-border-color-focus"),borderColorError:e.getPropertyValue("--jfi-form-control-border-color-error"),borderWidth:e.getPropertyValue("--jfi-form-control-border-width"),borderBottomWidth:e.getPropertyValue("--jfi-form-control-border-bottom-width"),borderLeftWidth:e.getPropertyValue("--jfi-form-control-border-left-width"),borderRightWidth:e.getPropertyValue("--jfi-form-control-border-right-width"),borderTopWidth:e.getPropertyValue("--jfi-form-control-border-top-width"),borderRadius:e.getPropertyValue("--jfi-form-control-border-radius"),borderStyle:e.getPropertyValue("--jfi-form-control-border-style"),boxShadow:e.getPropertyValue("--jfi-form-control-box-shadow"),boxShadowError:e.getPropertyValue("--jfi-form-control-box-shadow-error"),boxShadowErrorFocus:e.getPropertyValue("--jfi-form-control-box-shadow-error-focus"),boxShadowFocus:e.getPropertyValue("--jfi-form-control-box-shadow-focus"),color:e.getPropertyValue("--jfi-form-control-color"),colorFocus:e.getPropertyValue("--jfi-form-control-color-focus"),fontSize:e.getPropertyValue("--jfi-form-control-font-size"),fontWeight:e.getPropertyValue("--jfi-form-control-font-weight"),lineHeight:e.getPropertyValue("--jfi-form-control-line-height"),margin:e.getPropertyValue("--jfi-form-control-margin"),padding:e.getPropertyValue("--jfi-form-control-padding")},formLabel:{color:e.getPropertyValue("--jfi-form-label-color"),fontFamily:e.getPropertyValue("--jfi-form-label-font-family"),fontSize:e.getPropertyValue("--jfi-form-label-font-size"),fontWeight:e.getPropertyValue("--jfi-form-label-font-weight"),margin:e.getPropertyValue("--jfi-form-label-margin")},errorMessage:{color:e.getPropertyValue("--jfi-error-message-color"),margin:e.getPropertyValue("--jfi-error-message-margin"),fontSize:e.getPropertyValue("--jfi-error-message-font-size")}};return n};const S=":host{display:block}justifi-payment-method-form iframe{border:none;width:100%}iframe{width:1px;min-width:100%}";const O=class{constructor(t){e(this,t);this.paymentMethodFormReady=n(this,"paymentMethodFormReady",7);this.paymentMethodFormTokenize=n(this,"paymentMethodFormTokenize",7);this.computedTheme=I();this.paymentMethodFormType=undefined;this.paymentMethodFormValidationMode=undefined;this.iframeOrigin=undefined;this.singleLine=undefined}connectedCallback(){window.addEventListener("message",this.dispatchMessageEvent.bind(this))}disconnectedCallback(){window.removeEventListener("message",this.dispatchMessageEvent.bind(this))}sendStyleOverrides(){if(this.computedTheme){this.postMessage(c[this.paymentMethodFormType].styleOverrides,{styleOverrides:this.computedTheme})}}dispatchMessageEvent(e){const n=e.data;const t=n.eventType;const o=n.data;if(t===c[this.paymentMethodFormType].ready){this.paymentMethodFormReady.emit(o)}}postMessage(e,n){var t,o;(o=(t=this.iframeElement)===null||t===void 0?void 0:t.contentWindow)===null||o===void 0?void 0:o.postMessage(Object.assign({eventType:e},n),i.iframeOrigin)}async resize(){this.postMessage(c[this.paymentMethodFormType].resize)}async postMessageWithResponseListener(e,n){return new Promise((t=>{const o=n=>{if(n.data.eventType!==e)return;window.removeEventListener("message",o);t(n.data.data)};window.addEventListener("message",o);this.postMessage(e,n)}))}async tokenize(e,n,t){const o=c[this.paymentMethodFormType].tokenize;const i={clientId:e,componentVersion:F.version,paymentMethodMetadata:n,account:t};return this.postMessageWithResponseListener(o,i)}async validate(){return this.postMessageWithResponseListener(c[this.paymentMethodFormType].validate)}composeQueryParams(e){const n=e.map((n=>{if(n===e[0]){return n=`?${n}`}else{return n=`&${n}`}}));return n.join("")}getIframeSrc(){const e=i.iframeOrigin;let n=`${e}/${this.paymentMethodFormType}`;let t=[];if(this.paymentMethodFormValidationMode){t.push(`validationMode=${this.paymentMethodFormValidationMode}`)}if(this.singleLine){t.push(`singleLine=${this.singleLine}`)}return n.concat(this.composeQueryParams(t))}render(){return t(o,null,t("iframe",{id:`justifi-payment-method-form-${this.paymentMethodFormType}`,src:this.getIframeSrc(),ref:e=>{this.iframeElement=e},onLoad:()=>{a(this.iframeElement);this.sendStyleOverrides()}}))}};O.style=S;export{O as justifi_payment_method_form};
2
- //# sourceMappingURL=p-9ce9561a.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["undefined","window","count","logEnabled","hiddenCheckEnabled","msgHeader","msgHeaderLen","length","msgId","msgIdLen","pagePosition","requestAnimationFrame","resetRequiredMethods","Object","freeze","max","scroll","bodyScroll","documentElementScroll","settings","timer","defaults","autoResize","bodyBackground","bodyMargin","bodyMarginV1","bodyPadding","checkOrigin","inPageLinks","enablePublicMethods","heightCalculationMethod","id","interval","log","maxHeight","Infinity","maxWidth","minHeight","minWidth","mouseEvents","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClose","onClosed","onInit","onMessage","warn","onMouseEnter","onMouseLeave","onResized","onScroll","getMutationObserver","MutationObserver","WebKitMutationObserver","MozMutationObserver","addEventListener","el","evt","func","removeEventListener","setupRequestAnimationFrame","vendors","x","bind","getMyID","iframeId","retStr","top","self","parentIFrame","getId","formatLogHeader","isLogEnabled","msg","output","info","type","enabled","console","iFrameListener","event","resizeIFrame","resize","setSize","messageData","setPagePosition","on","ensureInRange","syncResize","processMsg","data","slice","split","height","parseInt","iframe","compStyle","getComputedStyle","getPaddingEnds","getBorderEnds","width","boxSizing","paddingTop","bot","paddingBottom","borderTopWidth","borderBottomWidth","Dimension","Number","min","dimension","toLowerCase","size","isMessageFromIFrame","checkAllowedOrigin","checkList","i","retCode","origin","checkSingle","remoteHost","constructor","Array","Error","isMessageForUs","isMessageFromMetaParent","true","false","getMsgBody","offset","indexOf","forwardMsgFromIFrame","msgBody","message","JSON","parse","getPageInfo","bodyPosition","document","body","getBoundingClientRect","iFramePosition","stringify","iframeHeight","iframeWidth","clientHeight","Math","documentElement","innerHeight","clientWidth","innerWidth","offsetTop","offsetLeft","left","scrollTop","pageYOffset","scrollLeft","pageXOffset","documentHeight","documentWidth","windowHeight","windowWidth","sendPageInfoToIframe","debouncedTrigger","trigger","debounceFrameEvents","startPageInfoMonitor","setListener","sendPageInfo","stop","forEach","start","stopPageInfo","stopPageInfoMonitor","checkIFrameExists","retBool","getElementPosition","target","getPagePosition","floor","y","scrollRequestFromChild","addOffset","reposition","newPosition","scrollTo","calcOffset","scrollParent","unsetPagePosition","findTarget","location","jumpToTarget","jumpPosition","hash","jumpToParent","moveToAnchor","hashData","decodeURIComponent","getElementById","getElementsByName","onMouse","mousePos","screenX","screenY","funcName","val","chkEvent","actionMsg","firstRun","closeIFrame","resetIFrame","hasSettings","iFrameReadyMsgReceived","createOutgoingMsg","loaded","retVal","TypeError","removeIframeListeners","parentNode","removeChild","error","reset","setDimension","style","chkZero","fixHiddenIFrames","processDimension","doNotSync","jasmine","calleeMsg","noResponseWarning","postMessageToIFrame","targetOrigin","contentWindow","postMessage","iFrameNotFound","chkAndSend","warnOnNoResponse","warning","errorShown","msgTimeout","setTimeout","isNumber","value","setupIFrame","options","setLimits","addStyle","styleValue","chkMinMax","newId","ensureHasId","src","setScrolling","overflow","setupBodyMarginValues","checkReset","resetRequertMethod","setupIFrameObject","iFrameResizer","close","removeListeners","anchor","sendMessage","init","iFrameLoaded","createDestroyObserver","destroyObserver","mutations","mutation","removedNodes","prototype","call","removedNode","observe","childList","checkOptions","copyOptions","option","hasOwnProperty","getTargetOrigin","match","depricate","key","splitName","name","charAt","toUpperCase","this","processOptions","create","join","keys","beenHere","debouce","fn","time","frameTimer","frameId","checkIFrames","checkIFrame","settingId","chkDimension","isVisible","offsetParent","mutationObserved","createMutationObserver","querySelector","config","attributes","attributeOldValue","characterData","characterDataOldValue","subtree","observer","resizeIFrames","sendTriggerMsg","tabVisible","visibilityState","eventName","isIFrameResizeEnabled","setupEventListeners","factory","element","chkType","tagName","iFrames","push","warnDeprecatedOptions","iFrameResizeF","querySelectorAll","createJQueryPublicMethod","$","iFrameResize","$iFrameResizeF","index","filter","each","end","jQuery","define","amd","module","exports","MessageEventType","card","ready","tokenize","validate","styleOverrides","bankAccount","getComputedTheme","computedStyles","computedTheme","loadGoogleFont","getPropertyValue","layout","fontFamily","padding","formControlSpacingHorizontal","formControlSpacingVertical","formControl","backgroundColor","borderColor","borderColorFocus","borderColorError","borderWidth","borderLeftWidth","borderRightWidth","borderRadius","borderStyle","boxShadow","boxShadowError","boxShadowErrorFocus","boxShadowFocus","color","colorFocus","fontSize","fontWeight","lineHeight","margin","formLabel","errorMessage","paymentMethodFormCss","PaymentMethodForm","connectedCallback","dispatchMessageEvent","disconnectedCallback","sendStyleOverrides","paymentMethodFormType","messageEvent","messagePayload","messageType","eventType","paymentMethodFormReady","emit","payload","_b","_a","iframeElement","assign","iframeOrigin","postMessageWithResponseListener","Promise","resolve","responseListener","clientId","paymentMethodMetadata","account","componentVersion","packageJson","version","composeQueryParams","values","queryParams","map","getIframeSrc","iframeSrc","paramsList","paymentMethodFormValidationMode","singleLine","concat","render","h","Host","ref","onLoad"],"sources":["../node_modules/iframe-resizer/js/iframeResizer.js","src/components/payment-method-form/message-event-types.ts","src/components/payment-method-form/get-computed-theme.ts","src/components/payment-method-form/payment-method-form.css?tag=justifi-payment-method-form","src/components/payment-method-form/payment-method-form.tsx"],"sourcesContent":["/*\n * File: iframeResizer.js\n * Desc: Force iframes to size to content.\n * Requires: iframeResizer.contentWindow.js to be loaded into the target frame.\n * Doc: https://github.com/davidjbradshaw/iframe-resizer\n * Author: David J. Bradshaw - dave@bradshaw.net\n * Contributor: Jure Mav - jure.mav@gmail.com\n * Contributor: Reed Dadoune - reed@dadoune.com\n */\n\n// eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names\n;(function (undefined) {\n if (typeof window === 'undefined') return // don't run for server side render\n\n var count = 0,\n logEnabled = false,\n hiddenCheckEnabled = false,\n msgHeader = 'message',\n msgHeaderLen = msgHeader.length,\n msgId = '[iFrameSizer]', // Must match iframe msg ID\n msgIdLen = msgId.length,\n pagePosition = null,\n requestAnimationFrame = window.requestAnimationFrame,\n resetRequiredMethods = Object.freeze({\n max: 1,\n scroll: 1,\n bodyScroll: 1,\n documentElementScroll: 1\n }),\n settings = {},\n timer = null,\n defaults = Object.freeze({\n autoResize: true,\n bodyBackground: null,\n bodyMargin: null,\n bodyMarginV1: 8,\n bodyPadding: null,\n checkOrigin: true,\n inPageLinks: false,\n enablePublicMethods: true,\n heightCalculationMethod: 'bodyOffset',\n id: 'iFrameResizer',\n interval: 32,\n log: false,\n maxHeight: Infinity,\n maxWidth: Infinity,\n minHeight: 0,\n minWidth: 0,\n mouseEvents: true,\n resizeFrom: 'parent',\n scrolling: false,\n sizeHeight: true,\n sizeWidth: false,\n warningTimeout: 5000,\n tolerance: 0,\n widthCalculationMethod: 'scroll',\n onClose: function () {\n return true\n },\n onClosed: function () {},\n onInit: function () {},\n onMessage: function () {\n warn('onMessage function not defined')\n },\n onMouseEnter: function () {},\n onMouseLeave: function () {},\n onResized: function () {},\n onScroll: function () {\n return true\n }\n })\n\n function getMutationObserver() {\n return (\n window.MutationObserver ||\n window.WebKitMutationObserver ||\n window.MozMutationObserver\n )\n }\n\n function addEventListener(el, evt, func) {\n el.addEventListener(evt, func, false)\n }\n\n function removeEventListener(el, evt, func) {\n el.removeEventListener(evt, func, false)\n }\n\n function setupRequestAnimationFrame() {\n var vendors = ['moz', 'webkit', 'o', 'ms']\n var x\n\n // Remove vendor prefixing if prefixed and break early if not\n for (x = 0; x < vendors.length && !requestAnimationFrame; x += 1) {\n requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame']\n }\n\n if (requestAnimationFrame) {\n // Firefox extension content-scripts have a globalThis object that is not the same as window.\n // Binding `requestAnimationFrame` to window allows the function to work and prevents errors\n // being thrown when run in that context, and should be a no-op in every other context.\n requestAnimationFrame = requestAnimationFrame.bind(window)\n } else {\n log('setup', 'RequestAnimationFrame not supported')\n }\n }\n\n function getMyID(iframeId) {\n var retStr = 'Host page: ' + iframeId\n\n if (window.top !== window.self) {\n retStr =\n window.parentIFrame && window.parentIFrame.getId\n ? window.parentIFrame.getId() + ': ' + iframeId\n : 'Nested host page: ' + iframeId\n }\n\n return retStr\n }\n\n function formatLogHeader(iframeId) {\n return msgId + '[' + getMyID(iframeId) + ']'\n }\n\n function isLogEnabled(iframeId) {\n return settings[iframeId] ? settings[iframeId].log : logEnabled\n }\n\n function log(iframeId, msg) {\n output('log', iframeId, msg, isLogEnabled(iframeId))\n }\n\n function info(iframeId, msg) {\n output('info', iframeId, msg, isLogEnabled(iframeId))\n }\n\n function warn(iframeId, msg) {\n output('warn', iframeId, msg, true)\n }\n\n function output(type, iframeId, msg, enabled) {\n if (true === enabled && 'object' === typeof window.console) {\n // eslint-disable-next-line no-console\n console[type](formatLogHeader(iframeId), msg)\n }\n }\n\n function iFrameListener(event) {\n function resizeIFrame() {\n function resize() {\n setSize(messageData)\n setPagePosition(iframeId)\n on('onResized', messageData)\n }\n\n ensureInRange('Height')\n ensureInRange('Width')\n\n syncResize(resize, messageData, 'init')\n }\n\n function processMsg() {\n var data = msg.slice(msgIdLen).split(':')\n var height = data[1] ? parseInt(data[1], 10) : 0\n var iframe = settings[data[0]] && settings[data[0]].iframe\n var compStyle = getComputedStyle(iframe)\n\n return {\n iframe: iframe,\n id: data[0],\n height: height + getPaddingEnds(compStyle) + getBorderEnds(compStyle),\n width: data[2],\n type: data[3]\n }\n }\n\n function getPaddingEnds(compStyle) {\n if (compStyle.boxSizing !== 'border-box') {\n return 0\n }\n var top = compStyle.paddingTop ? parseInt(compStyle.paddingTop, 10) : 0\n var bot = compStyle.paddingBottom\n ? parseInt(compStyle.paddingBottom, 10)\n : 0\n return top + bot\n }\n\n function getBorderEnds(compStyle) {\n if (compStyle.boxSizing !== 'border-box') {\n return 0\n }\n var top = compStyle.borderTopWidth\n ? parseInt(compStyle.borderTopWidth, 10)\n : 0\n var bot = compStyle.borderBottomWidth\n ? parseInt(compStyle.borderBottomWidth, 10)\n : 0\n return top + bot\n }\n\n function ensureInRange(Dimension) {\n var max = Number(settings[iframeId]['max' + Dimension]),\n min = Number(settings[iframeId]['min' + Dimension]),\n dimension = Dimension.toLowerCase(),\n size = Number(messageData[dimension])\n\n log(iframeId, 'Checking ' + dimension + ' is in range ' + min + '-' + max)\n\n if (size < min) {\n size = min\n log(iframeId, 'Set ' + dimension + ' to min value')\n }\n\n if (size > max) {\n size = max\n log(iframeId, 'Set ' + dimension + ' to max value')\n }\n\n messageData[dimension] = '' + size\n }\n\n function isMessageFromIFrame() {\n function checkAllowedOrigin() {\n function checkList() {\n var i = 0,\n retCode = false\n\n log(\n iframeId,\n 'Checking connection is from allowed list of origins: ' +\n checkOrigin\n )\n\n for (; i < checkOrigin.length; i++) {\n if (checkOrigin[i] === origin) {\n retCode = true\n break\n }\n }\n return retCode\n }\n\n function checkSingle() {\n var remoteHost = settings[iframeId] && settings[iframeId].remoteHost\n log(iframeId, 'Checking connection is from: ' + remoteHost)\n return origin === remoteHost\n }\n\n return checkOrigin.constructor === Array ? checkList() : checkSingle()\n }\n\n var origin = event.origin,\n checkOrigin = settings[iframeId] && settings[iframeId].checkOrigin\n\n if (checkOrigin && '' + origin !== 'null' && !checkAllowedOrigin()) {\n throw new Error(\n 'Unexpected message received from: ' +\n origin +\n ' for ' +\n messageData.iframe.id +\n '. Message was: ' +\n event.data +\n '. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.'\n )\n }\n\n return true\n }\n\n function isMessageForUs() {\n return (\n msgId === ('' + msg).slice(0, msgIdLen) &&\n msg.slice(msgIdLen).split(':')[0] in settings\n ) // ''+Protects against non-string msg\n }\n\n function isMessageFromMetaParent() {\n // Test if this message is from a parent above us. This is an ugly test, however, updating\n // the message format would break backwards compatibility.\n var retCode = messageData.type in { true: 1, false: 1, undefined: 1 }\n\n if (retCode) {\n log(iframeId, 'Ignoring init message from meta parent page')\n }\n\n return retCode\n }\n\n function getMsgBody(offset) {\n return msg.slice(msg.indexOf(':') + msgHeaderLen + offset)\n }\n\n function forwardMsgFromIFrame(msgBody) {\n log(\n iframeId,\n 'onMessage passed: {iframe: ' +\n messageData.iframe.id +\n ', message: ' +\n msgBody +\n '}'\n )\n\n on('onMessage', {\n iframe: messageData.iframe,\n message: JSON.parse(msgBody)\n })\n\n log(iframeId, '--')\n }\n\n function getPageInfo() {\n var bodyPosition = document.body.getBoundingClientRect(),\n iFramePosition = messageData.iframe.getBoundingClientRect()\n\n return JSON.stringify({\n iframeHeight: iFramePosition.height,\n iframeWidth: iFramePosition.width,\n clientHeight: Math.max(\n document.documentElement.clientHeight,\n window.innerHeight || 0\n ),\n clientWidth: Math.max(\n document.documentElement.clientWidth,\n window.innerWidth || 0\n ),\n offsetTop: parseInt(iFramePosition.top - bodyPosition.top, 10),\n offsetLeft: parseInt(iFramePosition.left - bodyPosition.left, 10),\n scrollTop: window.pageYOffset,\n scrollLeft: window.pageXOffset,\n documentHeight: document.documentElement.clientHeight,\n documentWidth: document.documentElement.clientWidth,\n windowHeight: window.innerHeight,\n windowWidth: window.innerWidth\n })\n }\n\n function sendPageInfoToIframe(iframe, iframeId) {\n function debouncedTrigger() {\n trigger('Send Page Info', 'pageInfo:' + getPageInfo(), iframe, iframeId)\n }\n debounceFrameEvents(debouncedTrigger, 32, iframeId)\n }\n\n function startPageInfoMonitor() {\n function setListener(type, func) {\n function sendPageInfo() {\n if (settings[id]) {\n sendPageInfoToIframe(settings[id].iframe, id)\n } else {\n stop()\n }\n }\n\n ;['scroll', 'resize'].forEach(function (evt) {\n log(id, type + evt + ' listener for sendPageInfo')\n func(window, evt, sendPageInfo)\n })\n }\n\n function stop() {\n setListener('Remove ', removeEventListener)\n }\n\n function start() {\n setListener('Add ', addEventListener)\n }\n\n var id = iframeId // Create locally scoped copy of iFrame ID\n\n start()\n\n if (settings[id]) {\n settings[id].stopPageInfo = stop\n }\n }\n\n function stopPageInfoMonitor() {\n if (settings[iframeId] && settings[iframeId].stopPageInfo) {\n settings[iframeId].stopPageInfo()\n delete settings[iframeId].stopPageInfo\n }\n }\n\n function checkIFrameExists() {\n var retBool = true\n\n if (null === messageData.iframe) {\n warn(iframeId, 'IFrame (' + messageData.id + ') not found')\n retBool = false\n }\n return retBool\n }\n\n function getElementPosition(target) {\n var iFramePosition = target.getBoundingClientRect()\n\n getPagePosition(iframeId)\n\n return {\n x: Math.floor(Number(iFramePosition.left) + Number(pagePosition.x)),\n y: Math.floor(Number(iFramePosition.top) + Number(pagePosition.y))\n }\n }\n\n function scrollRequestFromChild(addOffset) {\n /* istanbul ignore next */ // Not testable in Karma\n function reposition() {\n pagePosition = newPosition\n scrollTo()\n log(iframeId, '--')\n }\n\n function calcOffset() {\n return {\n x: Number(messageData.width) + offset.x,\n y: Number(messageData.height) + offset.y\n }\n }\n\n function scrollParent() {\n if (window.parentIFrame) {\n window.parentIFrame['scrollTo' + (addOffset ? 'Offset' : '')](\n newPosition.x,\n newPosition.y\n )\n } else {\n warn(\n iframeId,\n 'Unable to scroll to requested position, window.parentIFrame not found'\n )\n }\n }\n\n var offset = addOffset\n ? getElementPosition(messageData.iframe)\n : { x: 0, y: 0 },\n newPosition = calcOffset()\n\n log(\n iframeId,\n 'Reposition requested from iFrame (offset x:' +\n offset.x +\n ' y:' +\n offset.y +\n ')'\n )\n\n if (window.top === window.self) {\n reposition()\n } else {\n scrollParent()\n }\n }\n\n function scrollTo() {\n if (false === on('onScroll', pagePosition)) {\n unsetPagePosition()\n } else {\n setPagePosition(iframeId)\n }\n }\n\n function findTarget(location) {\n function jumpToTarget() {\n var jumpPosition = getElementPosition(target)\n\n log(\n iframeId,\n 'Moving to in page link (#' +\n hash +\n ') at x: ' +\n jumpPosition.x +\n ' y: ' +\n jumpPosition.y\n )\n pagePosition = {\n x: jumpPosition.x,\n y: jumpPosition.y\n }\n\n scrollTo()\n log(iframeId, '--')\n }\n\n function jumpToParent() {\n if (window.parentIFrame) {\n window.parentIFrame.moveToAnchor(hash)\n } else {\n log(\n iframeId,\n 'In page link #' +\n hash +\n ' not found and window.parentIFrame not found'\n )\n }\n }\n\n var hash = location.split('#')[1] || '',\n hashData = decodeURIComponent(hash),\n target =\n document.getElementById(hashData) ||\n document.getElementsByName(hashData)[0]\n\n if (target) {\n jumpToTarget()\n } else if (window.top === window.self) {\n log(iframeId, 'In page link #' + hash + ' not found')\n } else {\n jumpToParent()\n }\n }\n\n function onMouse(event) {\n var mousePos = {}\n\n if (Number(messageData.width) === 0 && Number(messageData.height) === 0) {\n var data = getMsgBody(9).split(':')\n mousePos = {\n x: data[1],\n y: data[0]\n }\n } else {\n mousePos = {\n x: messageData.width,\n y: messageData.height\n }\n }\n\n on(event, {\n iframe: messageData.iframe,\n screenX: Number(mousePos.x),\n screenY: Number(mousePos.y),\n type: messageData.type\n })\n }\n\n function on(funcName, val) {\n return chkEvent(iframeId, funcName, val)\n }\n\n function actionMsg() {\n if (settings[iframeId] && settings[iframeId].firstRun) firstRun()\n\n switch (messageData.type) {\n case 'close': {\n closeIFrame(messageData.iframe)\n break\n }\n\n case 'message': {\n forwardMsgFromIFrame(getMsgBody(6))\n break\n }\n\n case 'mouseenter': {\n onMouse('onMouseEnter')\n break\n }\n\n case 'mouseleave': {\n onMouse('onMouseLeave')\n break\n }\n\n case 'autoResize': {\n settings[iframeId].autoResize = JSON.parse(getMsgBody(9))\n break\n }\n\n case 'scrollTo': {\n scrollRequestFromChild(false)\n break\n }\n\n case 'scrollToOffset': {\n scrollRequestFromChild(true)\n break\n }\n\n case 'pageInfo': {\n sendPageInfoToIframe(\n settings[iframeId] && settings[iframeId].iframe,\n iframeId\n )\n startPageInfoMonitor()\n break\n }\n\n case 'pageInfoStop': {\n stopPageInfoMonitor()\n break\n }\n\n case 'inPageLink': {\n findTarget(getMsgBody(9))\n break\n }\n\n case 'reset': {\n resetIFrame(messageData)\n break\n }\n\n case 'init': {\n resizeIFrame()\n on('onInit', messageData.iframe)\n break\n }\n\n default: {\n if (\n Number(messageData.width) === 0 &&\n Number(messageData.height) === 0\n ) {\n warn(\n 'Unsupported message received (' +\n messageData.type +\n '), this is likely due to the iframe containing a later ' +\n 'version of iframe-resizer than the parent page'\n )\n } else {\n resizeIFrame()\n }\n }\n }\n }\n\n function hasSettings(iframeId) {\n var retBool = true\n\n if (!settings[iframeId]) {\n retBool = false\n warn(\n messageData.type +\n ' No settings for ' +\n iframeId +\n '. Message was: ' +\n msg\n )\n }\n\n return retBool\n }\n\n function iFrameReadyMsgReceived() {\n // eslint-disable-next-line no-restricted-syntax, guard-for-in\n for (var iframeId in settings) {\n trigger(\n 'iFrame requested init',\n createOutgoingMsg(iframeId),\n settings[iframeId].iframe,\n iframeId\n )\n }\n }\n\n function firstRun() {\n if (settings[iframeId]) {\n settings[iframeId].firstRun = false\n }\n }\n\n var msg = event.data,\n messageData = {},\n iframeId = null\n\n if ('[iFrameResizerChild]Ready' === msg) {\n iFrameReadyMsgReceived()\n } else if (isMessageForUs()) {\n messageData = processMsg()\n iframeId = messageData.id\n if (settings[iframeId]) {\n settings[iframeId].loaded = true\n }\n\n if (!isMessageFromMetaParent() && hasSettings(iframeId)) {\n log(iframeId, 'Received: ' + msg)\n\n if (checkIFrameExists() && isMessageFromIFrame()) {\n actionMsg()\n }\n }\n } else {\n info(iframeId, 'Ignored: ' + msg)\n }\n }\n\n function chkEvent(iframeId, funcName, val) {\n var func = null,\n retVal = null\n\n if (settings[iframeId]) {\n func = settings[iframeId][funcName]\n\n if ('function' === typeof func) {\n retVal = func(val)\n } else {\n throw new TypeError(\n funcName + ' on iFrame[' + iframeId + '] is not a function'\n )\n }\n }\n\n return retVal\n }\n\n function removeIframeListeners(iframe) {\n var iframeId = iframe.id\n delete settings[iframeId]\n }\n\n function closeIFrame(iframe) {\n var iframeId = iframe.id\n if (chkEvent(iframeId, 'onClose', iframeId) === false) {\n log(iframeId, 'Close iframe cancelled by onClose event')\n return\n }\n log(iframeId, 'Removing iFrame: ' + iframeId)\n\n try {\n // Catch race condition error with React\n if (iframe.parentNode) {\n iframe.parentNode.removeChild(iframe)\n }\n } catch (error) {\n warn(error)\n }\n\n chkEvent(iframeId, 'onClosed', iframeId)\n log(iframeId, '--')\n removeIframeListeners(iframe)\n }\n\n function getPagePosition(iframeId) {\n if (null === pagePosition) {\n pagePosition = {\n x:\n window.pageXOffset === undefined\n ? document.documentElement.scrollLeft\n : window.pageXOffset,\n y:\n window.pageYOffset === undefined\n ? document.documentElement.scrollTop\n : window.pageYOffset\n }\n log(\n iframeId,\n 'Get page position: ' + pagePosition.x + ',' + pagePosition.y\n )\n }\n }\n\n function setPagePosition(iframeId) {\n if (null !== pagePosition) {\n window.scrollTo(pagePosition.x, pagePosition.y)\n log(\n iframeId,\n 'Set page position: ' + pagePosition.x + ',' + pagePosition.y\n )\n unsetPagePosition()\n }\n }\n\n function unsetPagePosition() {\n pagePosition = null\n }\n\n function resetIFrame(messageData) {\n function reset() {\n setSize(messageData)\n trigger('reset', 'reset', messageData.iframe, messageData.id)\n }\n\n log(\n messageData.id,\n 'Size reset requested by ' +\n ('init' === messageData.type ? 'host page' : 'iFrame')\n )\n getPagePosition(messageData.id)\n syncResize(reset, messageData, 'reset')\n }\n\n function setSize(messageData) {\n function setDimension(dimension) {\n if (!messageData.id) {\n log('undefined', 'messageData id not set')\n return\n }\n messageData.iframe.style[dimension] = messageData[dimension] + 'px'\n log(\n messageData.id,\n 'IFrame (' +\n iframeId +\n ') ' +\n dimension +\n ' set to ' +\n messageData[dimension] +\n 'px'\n )\n }\n\n function chkZero(dimension) {\n // FireFox sets dimension of hidden iFrames to zero.\n // So if we detect that set up an event to check for\n // when iFrame becomes visible.\n\n /* istanbul ignore next */ // Not testable in PhantomJS\n if (!hiddenCheckEnabled && '0' === messageData[dimension]) {\n hiddenCheckEnabled = true\n log(iframeId, 'Hidden iFrame detected, creating visibility listener')\n fixHiddenIFrames()\n }\n }\n\n function processDimension(dimension) {\n setDimension(dimension)\n chkZero(dimension)\n }\n\n var iframeId = messageData.iframe.id\n\n if (settings[iframeId]) {\n if (settings[iframeId].sizeHeight) {\n processDimension('height')\n }\n if (settings[iframeId].sizeWidth) {\n processDimension('width')\n }\n }\n }\n\n function syncResize(func, messageData, doNotSync) {\n /* istanbul ignore if */ // Not testable in PhantomJS\n if (\n doNotSync !== messageData.type &&\n requestAnimationFrame &&\n // including check for jasmine because had trouble getting spy to work in unit test using requestAnimationFrame\n !window.jasmine\n ) {\n log(messageData.id, 'Requesting animation frame')\n requestAnimationFrame(func)\n } else {\n func()\n }\n }\n\n function trigger(calleeMsg, msg, iframe, id, noResponseWarning) {\n function postMessageToIFrame() {\n var target = settings[id] && settings[id].targetOrigin\n log(\n id,\n '[' +\n calleeMsg +\n '] Sending msg to iframe[' +\n id +\n '] (' +\n msg +\n ') targetOrigin: ' +\n target\n )\n iframe.contentWindow.postMessage(msgId + msg, target)\n }\n\n function iFrameNotFound() {\n warn(id, '[' + calleeMsg + '] IFrame(' + id + ') not found')\n }\n\n function chkAndSend() {\n if (\n iframe &&\n 'contentWindow' in iframe &&\n null !== iframe.contentWindow\n ) {\n // Null test for PhantomJS\n postMessageToIFrame()\n } else {\n iFrameNotFound()\n }\n }\n\n function warnOnNoResponse() {\n function warning() {\n if (settings[id] && !settings[id].loaded && !errorShown) {\n errorShown = true\n warn(\n id,\n 'IFrame has not responded within ' +\n settings[id].warningTimeout / 1000 +\n ' seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.'\n )\n }\n }\n\n if (\n !!noResponseWarning &&\n settings[id] &&\n !!settings[id].warningTimeout\n ) {\n settings[id].msgTimeout = setTimeout(\n warning,\n settings[id].warningTimeout\n )\n }\n }\n\n var errorShown = false\n\n id = id || iframe.id\n\n if (settings[id]) {\n chkAndSend()\n warnOnNoResponse()\n }\n }\n\n function createOutgoingMsg(iframeId) {\n return (\n iframeId +\n ':' +\n settings[iframeId].bodyMarginV1 +\n ':' +\n settings[iframeId].sizeWidth +\n ':' +\n settings[iframeId].log +\n ':' +\n settings[iframeId].interval +\n ':' +\n settings[iframeId].enablePublicMethods +\n ':' +\n settings[iframeId].autoResize +\n ':' +\n settings[iframeId].bodyMargin +\n ':' +\n settings[iframeId].heightCalculationMethod +\n ':' +\n settings[iframeId].bodyBackground +\n ':' +\n settings[iframeId].bodyPadding +\n ':' +\n settings[iframeId].tolerance +\n ':' +\n settings[iframeId].inPageLinks +\n ':' +\n settings[iframeId].resizeFrom +\n ':' +\n settings[iframeId].widthCalculationMethod +\n ':' +\n settings[iframeId].mouseEvents\n )\n }\n\n function isNumber(value) {\n return typeof value === 'number'\n }\n\n function setupIFrame(iframe, options) {\n function setLimits() {\n function addStyle(style) {\n var styleValue = settings[iframeId][style]\n if (Infinity !== styleValue && 0 !== styleValue) {\n iframe.style[style] = isNumber(styleValue)\n ? styleValue + 'px'\n : styleValue\n log(iframeId, 'Set ' + style + ' = ' + iframe.style[style])\n }\n }\n\n function chkMinMax(dimension) {\n if (\n settings[iframeId]['min' + dimension] >\n settings[iframeId]['max' + dimension]\n ) {\n throw new Error(\n 'Value for min' +\n dimension +\n ' can not be greater than max' +\n dimension\n )\n }\n }\n\n chkMinMax('Height')\n chkMinMax('Width')\n\n addStyle('maxHeight')\n addStyle('minHeight')\n addStyle('maxWidth')\n addStyle('minWidth')\n }\n\n function newId() {\n var id = (options && options.id) || defaults.id + count++\n if (null !== document.getElementById(id)) {\n id += count++\n }\n return id\n }\n\n function ensureHasId(iframeId) {\n if (typeof iframeId !== 'string') {\n throw new TypeError('Invaild id for iFrame. Expected String')\n }\n\n if ('' === iframeId) {\n // eslint-disable-next-line no-multi-assign\n iframe.id = iframeId = newId()\n logEnabled = (options || {}).log\n log(\n iframeId,\n 'Added missing iframe ID: ' + iframeId + ' (' + iframe.src + ')'\n )\n }\n\n return iframeId\n }\n\n function setScrolling() {\n log(\n iframeId,\n 'IFrame scrolling ' +\n (settings[iframeId] && settings[iframeId].scrolling\n ? 'enabled'\n : 'disabled') +\n ' for ' +\n iframeId\n )\n iframe.style.overflow =\n false === (settings[iframeId] && settings[iframeId].scrolling)\n ? 'hidden'\n : 'auto'\n switch (settings[iframeId] && settings[iframeId].scrolling) {\n case 'omit': {\n break\n }\n\n case true: {\n iframe.scrolling = 'yes'\n break\n }\n\n case false: {\n iframe.scrolling = 'no'\n break\n }\n\n default: {\n iframe.scrolling = settings[iframeId]\n ? settings[iframeId].scrolling\n : 'no'\n }\n }\n }\n\n // The V1 iFrame script expects an int, where as in V2 expects a CSS\n // string value such as '1px 3em', so if we have an int for V2, set V1=V2\n // and then convert V2 to a string PX value.\n function setupBodyMarginValues() {\n if (\n 'number' ===\n typeof (settings[iframeId] && settings[iframeId].bodyMargin) ||\n '0' === (settings[iframeId] && settings[iframeId].bodyMargin)\n ) {\n settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin\n settings[iframeId].bodyMargin =\n '' + settings[iframeId].bodyMargin + 'px'\n }\n }\n\n function checkReset() {\n // Reduce scope of firstRun to function, because IE8's JS execution\n // context stack is borked and this value gets externally\n // changed midway through running this function!!!\n var firstRun = settings[iframeId] && settings[iframeId].firstRun,\n resetRequertMethod =\n settings[iframeId] &&\n settings[iframeId].heightCalculationMethod in resetRequiredMethods\n\n if (!firstRun && resetRequertMethod) {\n resetIFrame({ iframe: iframe, height: 0, width: 0, type: 'init' })\n }\n }\n\n function setupIFrameObject() {\n if (settings[iframeId]) {\n settings[iframeId].iframe.iFrameResizer = {\n close: closeIFrame.bind(null, settings[iframeId].iframe),\n\n removeListeners: removeIframeListeners.bind(\n null,\n settings[iframeId].iframe\n ),\n\n resize: trigger.bind(\n null,\n 'Window resize',\n 'resize',\n settings[iframeId].iframe\n ),\n\n moveToAnchor: function (anchor) {\n trigger(\n 'Move to anchor',\n 'moveToAnchor:' + anchor,\n settings[iframeId].iframe,\n iframeId\n )\n },\n\n sendMessage: function (message) {\n message = JSON.stringify(message)\n trigger(\n 'Send Message',\n 'message:' + message,\n settings[iframeId].iframe,\n iframeId\n )\n }\n }\n }\n }\n\n // We have to call trigger twice, as we can not be sure if all\n // iframes have completed loading when this code runs. The\n // event listener also catches the page changing in the iFrame.\n function init(msg) {\n function iFrameLoaded() {\n trigger('iFrame.onload', msg, iframe, undefined, true)\n checkReset()\n }\n\n function createDestroyObserver(MutationObserver) {\n if (!iframe.parentNode) {\n return\n }\n\n var destroyObserver = new MutationObserver(function (mutations) {\n mutations.forEach(function (mutation) {\n var removedNodes = Array.prototype.slice.call(mutation.removedNodes) // Transform NodeList into an Array\n removedNodes.forEach(function (removedNode) {\n if (removedNode === iframe) {\n closeIFrame(iframe)\n }\n })\n })\n })\n destroyObserver.observe(iframe.parentNode, {\n childList: true\n })\n }\n\n var MutationObserver = getMutationObserver()\n if (MutationObserver) {\n createDestroyObserver(MutationObserver)\n }\n\n addEventListener(iframe, 'load', iFrameLoaded)\n trigger('init', msg, iframe, undefined, true)\n }\n\n function checkOptions(options) {\n if ('object' !== typeof options) {\n throw new TypeError('Options is not an object')\n }\n }\n\n function copyOptions(options) {\n // eslint-disable-next-line no-restricted-syntax\n for (var option in defaults) {\n if (Object.prototype.hasOwnProperty.call(defaults, option)) {\n settings[iframeId][option] = Object.prototype.hasOwnProperty.call(\n options,\n option\n )\n ? options[option]\n : defaults[option]\n }\n }\n }\n\n function getTargetOrigin(remoteHost) {\n return '' === remoteHost ||\n null !== remoteHost.match(/^(about:blank|javascript:|file:\\/\\/)/)\n ? '*'\n : remoteHost\n }\n\n function depricate(key) {\n var splitName = key.split('Callback')\n\n if (splitName.length === 2) {\n var name =\n 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1)\n this[name] = this[key]\n delete this[key]\n warn(\n iframeId,\n \"Deprecated: '\" +\n key +\n \"' has been renamed '\" +\n name +\n \"'. The old method will be removed in the next major version.\"\n )\n }\n }\n\n function processOptions(options) {\n options = options || {}\n\n settings[iframeId] = Object.create(null) // Protect against prototype attacks\n settings[iframeId].iframe = iframe\n settings[iframeId].firstRun = true\n settings[iframeId].remoteHost =\n iframe.src && iframe.src.split('/').slice(0, 3).join('/')\n\n checkOptions(options)\n Object.keys(options).forEach(depricate, options)\n copyOptions(options)\n\n if (settings[iframeId]) {\n settings[iframeId].targetOrigin =\n true === settings[iframeId].checkOrigin\n ? getTargetOrigin(settings[iframeId].remoteHost)\n : '*'\n }\n }\n\n function beenHere() {\n return iframeId in settings && 'iFrameResizer' in iframe\n }\n\n var iframeId = ensureHasId(iframe.id)\n\n if (beenHere()) {\n warn(iframeId, 'Ignored iFrame, already setup.')\n } else {\n processOptions(options)\n setScrolling()\n setLimits()\n setupBodyMarginValues()\n init(createOutgoingMsg(iframeId))\n setupIFrameObject()\n }\n }\n\n function debouce(fn, time) {\n if (null === timer) {\n timer = setTimeout(function () {\n timer = null\n fn()\n }, time)\n }\n }\n\n var frameTimer = {}\n function debounceFrameEvents(fn, time, frameId) {\n if (!frameTimer[frameId]) {\n frameTimer[frameId] = setTimeout(function () {\n frameTimer[frameId] = null\n fn()\n }, time)\n }\n }\n\n // Not testable in PhantomJS\n /* istanbul ignore next */\n\n function fixHiddenIFrames() {\n function checkIFrames() {\n function checkIFrame(settingId) {\n function chkDimension(dimension) {\n return (\n '0px' ===\n (settings[settingId] && settings[settingId].iframe.style[dimension])\n )\n }\n\n function isVisible(el) {\n return null !== el.offsetParent\n }\n\n if (\n settings[settingId] &&\n isVisible(settings[settingId].iframe) &&\n (chkDimension('height') || chkDimension('width'))\n ) {\n trigger(\n 'Visibility change',\n 'resize',\n settings[settingId].iframe,\n settingId\n )\n }\n }\n\n Object.keys(settings).forEach(function (key) {\n checkIFrame(key)\n })\n }\n\n function mutationObserved(mutations) {\n log(\n 'window',\n 'Mutation observed: ' + mutations[0].target + ' ' + mutations[0].type\n )\n debouce(checkIFrames, 16)\n }\n\n function createMutationObserver() {\n var target = document.querySelector('body'),\n config = {\n attributes: true,\n attributeOldValue: false,\n characterData: true,\n characterDataOldValue: false,\n childList: true,\n subtree: true\n },\n observer = new MutationObserver(mutationObserved)\n\n observer.observe(target, config)\n }\n\n var MutationObserver = getMutationObserver()\n if (MutationObserver) {\n createMutationObserver()\n }\n }\n\n function resizeIFrames(event) {\n function resize() {\n sendTriggerMsg('Window ' + event, 'resize')\n }\n\n log('window', 'Trigger event: ' + event)\n debouce(resize, 16)\n }\n\n // Not testable in PhantomJS\n /* istanbul ignore next */\n function tabVisible() {\n function resize() {\n sendTriggerMsg('Tab Visible', 'resize')\n }\n\n if ('hidden' !== document.visibilityState) {\n log('document', 'Trigger event: Visibility change')\n debouce(resize, 16)\n }\n }\n\n function sendTriggerMsg(eventName, event) {\n function isIFrameResizeEnabled(iframeId) {\n return (\n settings[iframeId] &&\n 'parent' === settings[iframeId].resizeFrom &&\n settings[iframeId].autoResize &&\n !settings[iframeId].firstRun\n )\n }\n\n Object.keys(settings).forEach(function (iframeId) {\n if (isIFrameResizeEnabled(iframeId)) {\n trigger(eventName, event, settings[iframeId].iframe, iframeId)\n }\n })\n }\n\n function setupEventListeners() {\n addEventListener(window, 'message', iFrameListener)\n\n addEventListener(window, 'resize', function () {\n resizeIFrames('resize')\n })\n\n addEventListener(document, 'visibilitychange', tabVisible)\n\n addEventListener(document, '-webkit-visibilitychange', tabVisible)\n }\n\n function factory() {\n function init(options, element) {\n function chkType() {\n if (!element.tagName) {\n throw new TypeError('Object is not a valid DOM element')\n } else if ('IFRAME' !== element.tagName.toUpperCase()) {\n throw new TypeError(\n 'Expected <IFRAME> tag, found <' + element.tagName + '>'\n )\n }\n }\n\n if (element) {\n chkType()\n setupIFrame(element, options)\n iFrames.push(element)\n }\n }\n\n function warnDeprecatedOptions(options) {\n if (options && options.enablePublicMethods) {\n warn(\n 'enablePublicMethods option has been removed, public methods are now always available in the iFrame'\n )\n }\n }\n\n var iFrames\n\n setupRequestAnimationFrame()\n setupEventListeners()\n\n return function iFrameResizeF(options, target) {\n iFrames = [] // Only return iFrames past in on this call\n\n warnDeprecatedOptions(options)\n\n switch (typeof target) {\n case 'undefined':\n case 'string': {\n Array.prototype.forEach.call(\n document.querySelectorAll(target || 'iframe'),\n init.bind(undefined, options)\n )\n break\n }\n\n case 'object': {\n init(options, target)\n break\n }\n\n default: {\n throw new TypeError('Unexpected data type (' + typeof target + ')')\n }\n }\n\n return iFrames\n }\n }\n\n function createJQueryPublicMethod($) {\n if (!$.fn) {\n info('', 'Unable to bind to jQuery, it is not fully loaded.')\n } else if (!$.fn.iFrameResize) {\n $.fn.iFrameResize = function $iFrameResizeF(options) {\n function init(index, element) {\n setupIFrame(element, options)\n }\n\n return this.filter('iframe').each(init).end()\n }\n }\n }\n\n if (window.jQuery !== undefined) {\n createJQueryPublicMethod(window.jQuery)\n }\n\n if (typeof define === 'function' && define.amd) {\n define([], factory)\n } else if (typeof module === 'object' && typeof module.exports === 'object') {\n // Node for browserfy\n module.exports = factory()\n }\n window.iFrameResize = window.iFrameResize || factory()\n})()\n","export const MessageEventType = {\n card: {\n ready: 'justifi.card.ready',\n tokenize: 'justifi.card.tokenize',\n validate: 'justifi.card.validate',\n resize: 'justifi.card.resize',\n styleOverrides: 'justifi.card.styleOverrides',\n },\n bankAccount: {\n ready: 'justifi.bankAccount.ready',\n tokenize: 'justifi.bankAccount.tokenize',\n validate: 'justifi.bankAccount.validate',\n resize: 'justifi.bankAccount.resize',\n styleOverrides: 'justifi.bankAccount.styleOverrides',\n },\n};\n","import { Theme } from './theme';\n\nconst getComputedTheme = () => {\n const computedStyles = getComputedStyle(document.body);\n\n const computedTheme: Theme = {\n loadGoogleFont: computedStyles.getPropertyValue('--jfi-load-google-font'),\n layout: {\n fontFamily: computedStyles.getPropertyValue('--jfi-layout-font-family'),\n padding: computedStyles.getPropertyValue('--jfi-layout-padding'),\n formControlSpacingHorizontal: computedStyles.getPropertyValue('--jfi-layout-form-control-spacing-x'),\n formControlSpacingVertical: computedStyles.getPropertyValue('--jfi-layout-form-control-spacing-y'),\n },\n formControl: {\n backgroundColor: computedStyles.getPropertyValue('--jfi-form-control-background-color'),\n borderColor: computedStyles.getPropertyValue('--jfi-form-control-border-color'),\n borderColorFocus: computedStyles.getPropertyValue('--jfi-form-control-border-color-focus'),\n borderColorError: computedStyles.getPropertyValue('--jfi-form-control-border-color-error'),\n borderWidth: computedStyles.getPropertyValue('--jfi-form-control-border-width'),\n borderBottomWidth: computedStyles.getPropertyValue('--jfi-form-control-border-bottom-width'),\n borderLeftWidth: computedStyles.getPropertyValue('--jfi-form-control-border-left-width'),\n borderRightWidth: computedStyles.getPropertyValue('--jfi-form-control-border-right-width'),\n borderTopWidth: computedStyles.getPropertyValue('--jfi-form-control-border-top-width'),\n borderRadius: computedStyles.getPropertyValue('--jfi-form-control-border-radius'),\n borderStyle: computedStyles.getPropertyValue('--jfi-form-control-border-style'),\n boxShadow: computedStyles.getPropertyValue('--jfi-form-control-box-shadow'),\n boxShadowError: computedStyles.getPropertyValue('--jfi-form-control-box-shadow-error'),\n boxShadowErrorFocus: computedStyles.getPropertyValue('--jfi-form-control-box-shadow-error-focus'),\n boxShadowFocus: computedStyles.getPropertyValue('--jfi-form-control-box-shadow-focus'),\n color: computedStyles.getPropertyValue('--jfi-form-control-color'),\n colorFocus: computedStyles.getPropertyValue('--jfi-form-control-color-focus'),\n fontSize: computedStyles.getPropertyValue('--jfi-form-control-font-size'),\n fontWeight: computedStyles.getPropertyValue('--jfi-form-control-font-weight'),\n lineHeight: computedStyles.getPropertyValue('--jfi-form-control-line-height'),\n margin: computedStyles.getPropertyValue('--jfi-form-control-margin'),\n padding: computedStyles.getPropertyValue('--jfi-form-control-padding'),\n },\n formLabel: {\n color: computedStyles.getPropertyValue('--jfi-form-label-color'),\n fontFamily: computedStyles.getPropertyValue('--jfi-form-label-font-family'),\n fontSize: computedStyles.getPropertyValue('--jfi-form-label-font-size'),\n fontWeight: computedStyles.getPropertyValue('--jfi-form-label-font-weight'),\n margin: computedStyles.getPropertyValue('--jfi-form-label-margin'),\n },\n errorMessage: {\n color: computedStyles.getPropertyValue('--jfi-error-message-color'),\n margin: computedStyles.getPropertyValue('--jfi-error-message-margin'),\n fontSize: computedStyles.getPropertyValue('--jfi-error-message-font-size'),\n },\n };\n\n return computedTheme;\n};\n\nexport default getComputedTheme;\n",":host {\n display: block;\n}\n\njustifi-payment-method-form iframe {\n border: none;\n width: 100%;\n}\n\niframe {\n width: 1px;\n min-width: 100%;\n}\n","import {\n Component,\n Event,\n Host,\n Prop,\n h,\n EventEmitter,\n Method,\n} from '@stencil/core';\nimport iFrameResize from 'iframe-resizer/js/iframeResizer';\nimport { MessageEventType } from './message-event-types';\nimport { Theme } from './theme';\nimport packageJson from '../../../package.json';\nimport getComputedTheme from './get-computed-theme';\nimport { CreatePaymentMethodResponse } from './payment-method-responses';\nimport { config } from '../../../config';\n\n@Component({\n tag: 'justifi-payment-method-form',\n styleUrl: 'payment-method-form.css',\n shadow: false,\n})\nexport class PaymentMethodForm {\n @Prop() paymentMethodFormType: 'card' | 'bankAccount';\n @Prop({\n mutable: true,\n })\n paymentMethodFormValidationMode:\n | 'onChange'\n | 'onBlur'\n | 'onSubmit'\n | 'onTouched'\n | 'all';\n @Prop() iframeOrigin?: string;\n @Prop() singleLine: boolean;\n @Event({ bubbles: true }) paymentMethodFormReady: EventEmitter;\n @Event({ bubbles: true }) paymentMethodFormTokenize: EventEmitter<{\n data: any;\n }>;\n\n private computedTheme: Theme = getComputedTheme();\n\n iframeElement!: HTMLIFrameElement;\n\n connectedCallback() {\n window.addEventListener('message', this.dispatchMessageEvent.bind(this));\n }\n\n disconnectedCallback() {\n window.removeEventListener('message', this.dispatchMessageEvent.bind(this));\n }\n\n sendStyleOverrides() {\n if (this.computedTheme) {\n this.postMessage(\n MessageEventType[this.paymentMethodFormType].styleOverrides,\n { styleOverrides: this.computedTheme },\n );\n }\n }\n\n private dispatchMessageEvent(messageEvent: MessageEvent) {\n const messagePayload = messageEvent.data;\n const messageType = messagePayload.eventType;\n const messageData = messagePayload.data;\n\n if (messageType === MessageEventType[this.paymentMethodFormType].ready) {\n this.paymentMethodFormReady.emit(messageData);\n }\n }\n\n private postMessage(eventType: string, payload?: any) {\n this.iframeElement?.contentWindow?.postMessage({ eventType: eventType, ...payload }, config.iframeOrigin || '*');\n }\n\n @Method()\n async resize(): Promise<any> {\n this.postMessage(MessageEventType[this.paymentMethodFormType].resize);\n }\n\n private async postMessageWithResponseListener(\n eventType: string,\n payload?: any,\n ): Promise<any> {\n return new Promise(resolve => {\n const responseListener = (event: MessageEvent) => {\n if (event.data.eventType !== eventType) return;\n window.removeEventListener('message', responseListener);\n resolve(event.data.data);\n };\n window.addEventListener('message', responseListener);\n this.postMessage(eventType, payload);\n });\n }\n\n @Method()\n async tokenize(\n clientId: string,\n paymentMethodMetadata: any,\n account?: string,\n ): Promise<CreatePaymentMethodResponse> {\n const eventType = MessageEventType[this.paymentMethodFormType].tokenize;\n const payload = {\n clientId: clientId,\n componentVersion: packageJson.version,\n paymentMethodMetadata: paymentMethodMetadata,\n account: account,\n };\n\n return this.postMessageWithResponseListener(eventType, payload);\n }\n\n @Method()\n async validate(): Promise<any> {\n return this.postMessageWithResponseListener(\n MessageEventType[this.paymentMethodFormType].validate,\n );\n }\n\n private composeQueryParams(values: string[]) {\n const queryParams = values.map(value => {\n if (value === values[0]) {\n return (value = `?${value}`);\n } else {\n return (value = `&${value}`);\n }\n });\n return queryParams.join('');\n }\n\n private getIframeSrc() {\n const iframeOrigin = config.iframeOrigin;\n\n let iframeSrc = `${iframeOrigin}/${this.paymentMethodFormType}`;\n let paramsList = [];\n if (this.paymentMethodFormValidationMode) {\n paramsList.push(`validationMode=${this.paymentMethodFormValidationMode}`);\n }\n if (this.singleLine) {\n paramsList.push(`singleLine=${this.singleLine}`);\n }\n\n return iframeSrc.concat(this.composeQueryParams(paramsList));\n }\n\n render() {\n return (\n <Host>\n <iframe\n id={`justifi-payment-method-form-${this.paymentMethodFormType}`}\n src={this.getIframeSrc()}\n ref={el => {\n this.iframeElement = el as HTMLIFrameElement;\n }}\n onLoad={() => {\n iFrameResize(this.iframeElement);\n this.sendStyleOverrides();\n }}\n ></iframe>\n </Host>\n );\n }\n}\n"],"mappings":"qUAWC,SAAWA,GACV,UAAWC,SAAW,YAAa,OAEnC,IAAIC,EAAQ,EACVC,EAAa,MACbC,EAAqB,MACrBC,EAAY,UACZC,EAAeD,EAAUE,OACzBC,EAAQ,gBACRC,EAAWD,EAAMD,OACjBG,EAAe,KACfC,EAAwBV,OAAOU,sBAC/BC,EAAuBC,OAAOC,OAAO,CACnCC,IAAK,EACLC,OAAQ,EACRC,WAAY,EACZC,sBAAuB,IAEzBC,EAAW,GACXC,EAAQ,KACRC,EAAWR,OAAOC,OAAO,CACvBQ,WAAY,KACZC,eAAgB,KAChBC,WAAY,KACZC,aAAc,EACdC,YAAa,KACbC,YAAa,KACbC,YAAa,MACbC,oBAAqB,KACrBC,wBAAyB,aACzBC,GAAI,gBACJC,SAAU,GACVC,IAAK,MACLC,UAAWC,SACXC,SAAUD,SACVE,UAAW,EACX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zB,MAAMC,EAAcD,EAAOE,KAAI5K,IAC7B,GAAIA,IAAU0K,EAAO,GAAI,CACvB,OAAQ1K,EAAQ,IAAIA,G,KACf,CACL,OAAQA,EAAQ,IAAIA,G,KAGxB,OAAO2K,EAAY3H,KAAK,G,CAGlB,YAAA6H,GACN,MAAMf,EAAe7F,EAAO6F,aAE5B,IAAIgB,EAAY,GAAGhB,KAAgBjH,KAAKqG,wBACxC,IAAI6B,EAAa,GACjB,GAAIlI,KAAKmI,gCAAiC,CACxCD,EAAW3F,KAAK,kBAAkBvC,KAAKmI,kC,CAEzC,GAAInI,KAAKoI,WAAY,CACnBF,EAAW3F,KAAK,cAAcvC,KAAKoI,a,CAGrC,OAAOH,EAAUI,OAAOrI,KAAK4H,mBAAmBM,G,CAGlD,MAAAI,GACE,OACEC,EAACC,EAAI,KACHD,EAAA,UACE7Y,GAAI,+BAA+BsQ,KAAKqG,wBACxCzI,IAAKoC,KAAKgI,eACVS,IAAKjX,IACHwO,KAAK+G,cAAgBvV,CAAuB,EAE9CkX,OAAQ,KACN7F,EAAa7C,KAAK+G,eAClB/G,KAAKoG,oBAAoB,I"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as e,h as s,H as a}from"./p-cbb60191.js";import{S as i}from"./p-988191bf.js";import{g as n}from"./p-d6b5793d.js";import{A as c}from"./p-b157f6ae.js";import{p as h}from"./p-0d5d02d7.js";import"./p-76983a7e.js";import{c as r}from"./p-9b6dcac5.js";const o=":host{display:block}";const d=class{constructor(s){t(this,s);this.rowClicked=e(this,"subaccount-row-clicked",7);this.handleClickPrevious=t=>{const e=Object.assign({},this.params);delete e.after_cursor;this.params=Object.assign(Object.assign({},e),{before_cursor:t})};this.handleClickNext=t=>{const e=Object.assign({},this.params);delete e.before_cursor;this.params=Object.assign(Object.assign({},e),{after_cursor:t})};this.accountId=undefined;this.authToken=undefined;this.subaccounts=[];this.loading=true;this.errorMessage=undefined;this.paging=h;this.params=undefined}updateOnPropChange(){this.fetchData()}connectedCallback(){this.fetchData()}async fetchData(){if(!this.accountId||!this.authToken){this.errorMessage="Can not fetch any data without an AccountID and an AuthToken";this.loading=false;return}this.loading=true;const t=c(this.authToken,r.privateApiOrigin);const e=`account/${this.accountId}/seller_accounts`;const s=await t.get(e,this.params);if(!s.error){this.paging=Object.assign(Object.assign({},this.paging),s.page_info);const t=s===null||s===void 0?void 0:s.data.map((t=>new i(t)));this.subaccounts=t}else{this.errorMessage=typeof s.error==="string"?s.error:s.error.message}this.loading=false}render(){return s(a,null,s("justifi-table",{rowClickHandler:t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e){return}this.rowClicked.emit(this.subaccounts.find((t=>t.id===e)))},entityId:this.subaccounts.map((t=>t.id)),columnData:[["Created On","The date and time each sub account was created"],["Name","The name provided for each sub account"],["Account\t","The unique live or test account ID for each sub account"],["Card Rate\t","The rate that determines the fees charged per payment, when paid by card"],["ACH Rate\t","The rate that determines the fees charged per payment, when paid by eCheck"],["Status","The onboarding status of each sub account"]],rowData:this.subaccounts.map((t=>[{type:"head",value:`\n <div>${t.dateString}</div>\n <div>${t.timeString}</div>\n `},t.name,t.id,t.cardRate,t.achRate,{type:"inner",value:n(t.status)}])),loading:this.loading,"error-message":this.errorMessage,params:this.params,paging:Object.assign(Object.assign({},this.paging),{handleClickNext:this.handleClickNext,handleClickPrevious:this.handleClickPrevious})}))}static get watchers(){return{accountId:["updateOnPropChange"],authToken:["updateOnPropChange"],params:["updateOnPropChange"]}}};d.style=o;export{d as justifi_subaccounts_list};
2
- //# sourceMappingURL=p-abc05a34.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["subaccountsListCss","SubaccountsList","this","handleClickPrevious","beforeCursor","newParams","Object","assign","params","after_cursor","before_cursor","handleClickNext","afterCursor","pagingDefaults","updateOnPropChange","fetchData","connectedCallback","accountId","authToken","errorMessage","loading","api","Api","config","privateApiOrigin","endpoint","response","get","error","paging","page_info","data","map","dataItem","SubAccount","subaccounts","message","render","h","Host","rowClickHandler","e","clickSubAccountId","target","closest","dataset","rowEntityId","rowClicked","emit","find","subaccount","id","entityId","columnData","rowData","type","value","dateString","timeString","name","cardRate","achRate","MapSubAccountStatusToBadge","status"],"sources":["src/components/subaccounts-list/subaccounts-list.css?tag=justifi-subaccounts-list&encapsulation=shadow","src/components/subaccounts-list/subaccounts-list.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Host, h, Prop, State, Event, EventEmitter, Watch } from '@stencil/core';\nimport { SubAccount } from '../../api/SubAccount';\nimport { MapSubAccountStatusToBadge } from '../../utils/utils';\nimport { Api, IApiResponseCollection, PagingInfo, pagingDefaults } from '../../api';\nimport { config } from '../../../config';\n\n@Component({\n tag: 'justifi-subaccounts-list',\n styleUrl: 'subaccounts-list.css',\n shadow: true,\n})\nexport class SubaccountsList {\n @Prop() accountId: string;\n @Prop() authToken: string;\n @State() subaccounts: SubAccount[] = [];\n @State() loading: boolean = true;\n @State() errorMessage: string;\n @State() paging: PagingInfo = pagingDefaults;\n @State() params: any;\n @Event({\n eventName: 'subaccount-row-clicked',\n bubbles: true,\n }) rowClicked: EventEmitter<SubAccount>;\n\n\n @Watch('accountId')\n @Watch('authToken')\n @Watch('params')\n updateOnPropChange() {\n this.fetchData();\n }\n\n connectedCallback() {\n this.fetchData();\n }\n\n handleClickPrevious = (beforeCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.after_cursor;\n this.params = ({ ...newParams, before_cursor: beforeCursor });\n };\n\n handleClickNext = (afterCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.before_cursor;\n this.params = ({ ...newParams, after_cursor: afterCursor });\n };\n\n async fetchData(): Promise<void> {\n if (!this.accountId || !this.authToken) {\n this.errorMessage = \"Can not fetch any data without an AccountID and an AuthToken\";\n this.loading = false;\n return;\n }\n this.loading = true;\n const api = Api(this.authToken, config.privateApiOrigin);\n const endpoint = `account/${this.accountId}/seller_accounts`;\n\n\n const response: IApiResponseCollection<SubAccount[]> = await api.get(endpoint, this.params);\n if (!response.error) {\n this.paging = {\n ...this.paging,\n ...response.page_info\n }\n const data = response?.data.map(dataItem => new SubAccount(dataItem));\n this.subaccounts = data;\n } else {\n this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;\n }\n this.loading = false;\n }\n\n render() {\n return (\n <Host>\n <justifi-table\n rowClickHandler={e => {\n const clickSubAccountId = e.target.closest('tr').dataset.rowEntityId;\n if (!clickSubAccountId) { return }\n this.rowClicked.emit(this.subaccounts.find((subaccount) => subaccount.id === clickSubAccountId));\n }}\n entityId={this.subaccounts.map((subaccount) => subaccount.id)}\n columnData={[\n ['Created On', 'The date and time each sub account was created'],\n ['Name', 'The name provided for each sub account'],\n ['Account\t', 'The unique live or test account ID for each sub account'],\n ['Card Rate\t', 'The rate that determines the fees charged per payment, when paid by card'],\n ['ACH Rate\t', 'The rate that determines the fees charged per payment, when paid by eCheck'],\n ['Status', 'The onboarding status of each sub account']\n ]}\n rowData={\n this.subaccounts.map((subaccount) => (\n [\n {\n type: 'head',\n value: `\n <div>${subaccount.dateString}</div>\n <div>${subaccount.timeString}</div>\n `,\n },\n subaccount.name,\n subaccount.id,\n subaccount.cardRate,\n subaccount.achRate,\n {\n type: 'inner',\n value: MapSubAccountStatusToBadge(subaccount.status)\n }\n ]\n ))\n }\n loading={this.loading}\n error-message={this.errorMessage}\n params={this.params}\n paging={{\n ...this.paging,\n handleClickNext: this.handleClickNext,\n handleClickPrevious: this.handleClickPrevious\n }}\n />\n </Host>\n );\n }\n}\n"],"mappings":"qQAAA,MAAMA,EAAqB,uB,MCWdC,EAAe,M,4EAyB1BC,KAAAC,oBAAuBC,IACrB,MAAMC,EAASC,OAAAC,OAAA,GAAaL,KAAKM,eAC1BH,EAAUI,aACjBP,KAAKM,OAAMF,OAAAC,OAAAD,OAAAC,OAAA,GAASF,GAAS,CAAEK,cAAeN,GAAe,EAG/DF,KAAAS,gBAAmBC,IACjB,MAAMP,EAASC,OAAAC,OAAA,GAAaL,KAAKM,eAC1BH,EAAUK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KkB,GAAU,CAE5B,CACEK,KAAM,OACNC,MAAO,8BACEN,EAAWO,8CACXP,EAAWQ,wCAGtBR,EAAWS,KACXT,EAAWC,GACXD,EAAWU,SACXV,EAAWW,QACX,CACEN,KAAM,QACNC,MAAOM,EAA2BZ,EAAWa,YAKrD3C,QAASlB,KAAKkB,QAAO,gBACNlB,KAAKiB,aACpBX,OAAQN,KAAKM,OACbqB,OAAMvB,OAAAC,OAAAD,OAAAC,OAAA,GACDL,KAAK2B,QAAM,CACdlB,gBAAiBT,KAAKS,gBACtBR,oBAAqBD,KAAKC,wB"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["payoutDetailsCss","PaymentDetails","updateOnPropChange","this","fetchData","connectedCallback","errorMessage","payoutId","authToken","loading","endpoint","response","Api","config","proxyApiOrigin","get","error","payout","data","message","render","h","Host","LoadingState","ErrorState","EntityHeadInfo","slot","badge","innerHTML","MapPayoutStatusToBadge","_a","status","title","formatCurrency","amount","currency","toUpperCase","EntityHeadInfoItem","classes","value","formatDate","updated_at","formatTime","created_at","id","DetailSection","sectionTitle","DetailItem","deposits_at","description","delivery_method","fees_total","account_id","bank_account","account_type","routing_number","account_number_last4","CodeBlock","metadata"],"sources":["src/components/payout-details/payout-details.scss?tag=justifi-payout-details&encapsulation=shadow","src/components/payout-details/payout-details.tsx"],"sourcesContent":["@import \"reboot\";\n@import \"tables\";\n@import \"buttons\";\n@import \"badge\";\n@import \"grid\";\n@import \"bootstrap-utilities\";\n\n:host {\n @include host-base-styles;\n}\n","import { Component, Host, h, Prop, State, Watch } from '@stencil/core';\nimport { Api, IApiResponseCollection, Payout } from '../../api';\nimport { MapPayoutStatusToBadge, formatCurrency, formatDate, formatTime } from '../../utils/utils';\nimport { CodeBlock, DetailItem, DetailSection, EntityHeadInfo, EntityHeadInfoItem, ErrorState, LoadingState } from '../details/utils';\nimport { config } from '../../../config';\n\n/**\n * @exportedPart detail-loading-spinner\n * @exportedPart detail-loading-state\n * @exportedPart detail-empty-state\n * @exportedPart detail-head\n * @exportedPart detail-title\n * @exportedPart detail-method\n * @exportedPart detail-info\n * @exportedPart detail-info-item\n * @exportedPart detail-info-item-title\n * @exportedPart detail-info-item-data\n * @exportedPart detail-metadata\n * @exportedPart detail-metadata-title\n * @exportedPart detail-method-title\n * @exportedPart detail-method-data\n * @exportedPart detail-section\n * @exportedPart detail-section-title\n * @exportedPart detail-section-item-title\n * @exportedPart detail-section-item-data\n * @exportedPart detail-head-info\n * @exportedPart detail-head-info-item\n * @exportedPart detail-head-info-item-title\n * @exportedPart detail-head-info-item-data\n*/\n@Component({\n tag: 'justifi-payout-details',\n styleUrl: 'payout-details.scss',\n shadow: true,\n})\n\nexport class PaymentDetails {\n @Prop() payoutId: string;\n @Prop() authToken: string;\n @State() payout: Payout;\n @State() loading: boolean = true;\n @State() errorMessage: string;\n\n @Watch('payoutId')\n @Watch('authToken')\n updateOnPropChange() {\n this.fetchData();\n }\n\n connectedCallback() {\n this.fetchData();\n }\n\n async fetchData(): Promise<void> {\n this.errorMessage = '';\n if (!this.payoutId || !this.authToken) {\n this.errorMessage = \"Can not fetch any data without a PayoutID and an AuthToken\";\n this.loading = false;\n return;\n }\n this.loading = true;\n const endpoint = `payouts/${this.payoutId}`;\n\n const response: IApiResponseCollection<Payout> = await Api(this.authToken, config.proxyApiOrigin).get(endpoint);\n if (!response.error) {\n this.payout = response.data;\n } else {\n this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;\n }\n\n this.loading = false;\n }\n\n render() {\n return (\n <Host>\n {\n this.loading ? LoadingState :\n !this.payout ? ErrorState(this.errorMessage) :\n <justifi-details error-message={this.errorMessage}>\n <EntityHeadInfo slot=\"head-info\" badge={<span slot='badge' innerHTML={MapPayoutStatusToBadge(this.payout?.status)} />} title={`${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}`}>\n <EntityHeadInfoItem\n classes=\"border-1 border-end\"\n title=\"Updated At\"\n value={`${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}`}\n />\n <EntityHeadInfoItem\n classes=\"border-1 border-end\"\n title=\"Created At\"\n value={`${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}`}\n />\n <EntityHeadInfoItem title=\"ID\" value={this.payout.id} />\n </EntityHeadInfo>\n <div slot='detail-sections'>\n <DetailSection sectionTitle=\"Details\">\n <DetailItem title=\"Date paid\" value={formatDate(this.payout.deposits_at)} />\n <DetailItem title=\"Statement Description\" value={this.payout.description} />\n <DetailItem title=\"Payout Method\" value={this.payout.delivery_method} />\n <DetailItem title=\"Amount\" value={formatCurrency(this.payout.amount)} />\n <DetailItem title=\"Fee\" value={formatCurrency(this.payout.fees_total)} />\n </DetailSection>\n <DetailSection sectionTitle=\"Account\">\n <DetailItem title=\"ID\" value={this.payout.account_id} />\n <DetailItem title=\"Account Type\" value={this.payout.bank_account.account_type} />\n <DetailItem title=\"Institution\" value={this.payout.bank_account.account_type} />\n <DetailItem title=\"Routing Number\" value={this.payout.bank_account.routing_number} />\n <DetailItem title=\"Account Number\" value={this.payout.bank_account.account_number_last4} />\n </DetailSection>\n <DetailSection sectionTitle='Metadata'>\n <CodeBlock metadata={this.payout.metadata} />\n </DetailSection>\n </div>\n </justifi-details>\n }\n </Host>\n )\n }\n}"],"mappings":"iTAAA,MAAMA,EAAmB,or5H,MCoCZC,EAAc,M,6GAIG,K,4BAK5B,kBAAAC,GACEC,KAAKC,W,CAGP,iBAAAC,GACEF,KAAKC,W,CAGP,eAAMA,GACJD,KAAKG,aAAe,GACpB,IAAKH,KAAKI,WAAaJ,KAAKK,UAAW,CACrCL,KAAKG,aAAe,6DACpBH,KAAKM,QAAU,MACf,M,CAEFN,KAAKM,QAAU,KACf,MAAMC,EAAW,WAAWP,KAAKI,WAEjC,MAAMI,QAAiDC,EAAIT,KAAKK,UAAWK,EAAOC,gBAAgBC,IAAIL,GACtG,IAAKC,EAASK,MAAO,CACnBb,KAAKc,OAASN,EAASO,I,KAClB,CACLf,KAAKG,oBAAsBK,EAASK,Q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OpC,KAAKc,OAAOmC,aAC1C/B,EAAC0B,EAAU,CAACf,MAAM,eAAeO,MAAOpC,KAAKc,OAAOoC,aAAaC,eACjEjC,EAAC0B,EAAU,CAACf,MAAM,cAAcO,MAAOpC,KAAKc,OAAOoC,aAAaC,eAChEjC,EAAC0B,EAAU,CAACf,MAAM,iBAAiBO,MAAOpC,KAAKc,OAAOoC,aAAaE,iBACnElC,EAAC0B,EAAU,CAACf,MAAM,iBAAiBO,MAAOpC,KAAKc,OAAOoC,aAAaG,wBAErEnC,EAACwB,EAAa,CAACC,aAAa,YAC1BzB,EAACoC,EAAS,CAACC,SAAUvD,KAAKc,OAAOyC,c"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["getRandomValues","rnds8","Uint8Array","rng","crypto","bind","Error","byteToHex","i","push","toString","slice","unsafeStringify","arr","offset","toLowerCase","randomUUID","native","v4","options","buf","rnds","random","Api","authToken","apiOrigin","async","getAuthorizationHeader","Authorization","uuidv4","makeRequest","endpoint","method","params","body","signal","url","requestUrl","URLSearchParams","response","fetch","headers","status","json","handleError","get","post","patch","destroy","console","error"],"sources":["../node_modules/uuid/dist/esm-browser/rng.js","../node_modules/uuid/dist/esm-browser/stringify.js","../node_modules/uuid/dist/esm-browser/native.js","../node_modules/uuid/dist/esm-browser/v4.js","src/api/Api.ts"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;","import { v4 as uuidv4 } from 'uuid';\nimport { PagingInfo } from './Pagination';\n\nexport interface IApiResponse<T> {\n data: T;\n error?: IErrorObject | IServerError;\n page_info?: PagingInfo;\n errors?: string[];\n id: number;\n type: string;\n}\n\nexport type IServerError = string;\n\nexport interface IErrorObject {\n message: string;\n code: string;\n param?: string;\n}\n\nexport interface IApiResponseCollection<T> extends IApiResponse<T> {\n page_info: PagingInfo;\n}\n\nconst Api = (authToken: string, apiOrigin: string) => {\n async function getAuthorizationHeader() {\n return {\n 'Authorization': `Bearer ${authToken}`,\n 'Idempotency-Key': uuidv4(),\n 'Content-Type': 'application/json',\n };\n }\n\n async function makeRequest(endpoint: string, method: string, params?: any, body?: any, signal?: AbortSignal) {\n const url = `${apiOrigin}/v1/${endpoint}`;\n const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;\n const response = await fetch(requestUrl, {\n method: method,\n headers: await getAuthorizationHeader(),\n body: body,\n signal: signal,\n });\n\n if (response) {\n return response.status === 204 ? {} : response.json();\n }\n handleError(requestUrl);\n }\n\n async function get(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'GET', params, null, signal);\n }\n\n async function post(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'POST', params, body, signal);\n }\n\n async function patch(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'PATCH', params, body, signal);\n }\n\n async function destroy(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'DELETE', params, null, signal);\n }\n\n return { get, post, patch, destroy };\n};\n\nfunction handleError(requestUrl: string): void {\n console.error(`Error fetching from ${requestUrl}`);\n}\n\nexport default Api;\n"],"mappings":"AAGA,IAAIA,EACJ,MAAMC,EAAQ,IAAIC,WA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AU,EAEnB,IAAK,IAAIN,EAAI,EAAGA,EAAI,KAAMA,EAAG,CAC3BY,EAAIN,EAASN,GAAKa,EAAKb,EAC7B,CAEI,OAAOY,CACX,CAEE,OAAOR,EAAgBS,EACzB,C,MCFME,EAAM,CAACC,EAAmBC,KAC9BC,eAAeC,IACb,MAAO,CACLC,cAAiB,UAAUJ,IAC3B,kBAAmBK,IACnB,eAAgB,mB,CAIpBH,eAAeI,EAAYC,EAAkBC,EAAgBC,EAAcC,EAAYC,GACrF,MAAMC,EAAM,GAAGX,QAAgBM,IAC/B,MAAMM,EAAaJ,EAAS,GAAGG,KAAO,IAAIE,gBAAgBL,KAAYG,EACtE,MAAMG,QAAiBC,MAAMH,EAAY,CACvCL,OAAQA,EACRS,cAAed,IACfO,KAAMA,EACNC,OAAQA,IAGV,GAAII,EAAU,CACZ,OAAOA,EAASG,SAAW,IAAM,GAAKH,EAASI,M,CAEjDC,EAAYP,E,CAGdX,eAAemB,EAAId,EAAkBE,EAAcE,GACjD,OAAOL,EAAYC,EAAU,MAAOE,EAAQ,KAAME,E,CAGpDT,eAAeoB,EAAKf,EAAkBG,EAAYD,EAAcE,GAC9D,OAAOL,EAAYC,EAAU,OAAQE,EAAQC,EAAMC,E,CAGrDT,eAAeqB,EAAMhB,EAAkBG,EAAYD,EAAcE,GAC/D,OAAOL,EAAYC,EAAU,QAASE,EAAQC,EAAMC,E,CAGtDT,eAAesB,EAAQjB,EAAkBE,EAAcE,GACrD,OAAOL,EAAYC,EAAU,SAAUE,EAAQ,KAAME,E,CAGvD,MAAO,CAAEU,MAAKC,OAAMC,QAAOC,UAAS,EAGtC,SAASJ,EAAYP,GACnBY,QAAQC,MAAM,uBAAuBb,IACvC,Q"}
@@ -1,2 +0,0 @@
1
- import{r,c as o,h as t,H as s}from"./p-cbb60191.js";import{A as e}from"./p-b157f6ae.js";import{p as i}from"./p-0d5d02d7.js";import{c as a,d as n,e as b}from"./p-76983a7e.js";import{f as c,c as l,a as d}from"./p-d6b5793d.js";import{c as p}from"./p-9b6dcac5.js";const g=':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{font-family: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";font-size:1rem;font-weight:400;line-height:1.5;color:#212529}';const m=class{constructor(t){r(this,t);this.rowClicked=o(this,"payout-row-clicked",7);this.mapStatusToBadge=r=>{switch(r){case a.scheduled:return`<span class="badge bg-primary" title='Batched and scheduled to be transferred'>${n[r]}</span>`;case a.in_transit:return`<span class="badge bg-primary" title='Transfer to your bank account has been initiated'>${n[r]}</span>`;case a.failed:return`<span class="badge bg-danger" title='Transfer to your bank account failed'>${n[r]}</span>`;case a.canceled:return`<span class="badge bg-danger" title='Transfer to your bank account failed'>${n[r]}</span>`;case a.forwarded:return`<span class="badge bg-secondary" title='This payout initially failed; the funds have been forwarded to your next successful payout'>${n[r]}</span>`;case a.paid:return`<span class="badge bg-success" title='Successfully deposited into your bank account'>${n[r]}</span>`}};this.handleClickPrevious=r=>{const o=Object.assign({},this.params);delete o.after_cursor;this.params=Object.assign(Object.assign({},o),{before_cursor:r})};this.handleClickNext=r=>{const o=Object.assign({},this.params);delete o.before_cursor;this.params=Object.assign(Object.assign({},o),{after_cursor:r})};this.accountId=undefined;this.authToken=undefined;this.payouts=[];this.loading=true;this.errorMessage=undefined;this.paging=i;this.params=undefined}updateOnPropChange(){this.fetchData()}connectedCallback(){this.fetchData()}async fetchData(){var r;if(!this.accountId||!this.authToken){this.errorMessage="Can not fetch any data without an AccountID and an AuthToken";this.loading=false;return}this.loading=true;const o=e(this.authToken,p.proxyApiOrigin);const t=`account/${this.accountId}/payouts`;const s=await o.get(t,this.params);if(!s.error){this.paging=Object.assign(Object.assign({},this.paging),s.page_info);const o=(r=s===null||s===void 0?void 0:s.data)===null||r===void 0?void 0:r.map((r=>new b(r)));this.payouts=o}else{this.errorMessage=typeof s.error==="string"?s.error:s.error.message}this.loading=false}render(){return t(s,null,t("justifi-table",{rowClickHandler:r=>{const o=r.target.closest("tr").dataset.rowEntityId;if(!o){return}this.rowClicked.emit(this.payouts.find((r=>r.id===o)))},columnData:[["Paid Out On","The date each transaction occurred"],["Type","The type of each transaction"],["Account","The ID of the account associated with each payout"],["Paid Out To","The bank account to which each payout was transferred"],["Payments","Sum of payments in each payout"],["Refunds","Sum of refunds in each payout"],["Fees","Sum of fees in each payout"],["Other","Sum of less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)"],["Payout Amount","The net sum of all transactions in each payout. This is the amount you'll see reflected on your bank statement"],["Status","The real-time status of each payout"]],entityId:this.payouts.map((r=>r.id)),rowData:this.payouts.map((r=>[{type:"head",value:`\n <div>${c(r.created_at)}</div>\n <div>${l(r.created_at)}</div>\n `},r.payout_type,r.account_id,`${r.bank_account.full_name} ${r.bank_account.account_number_last4}`,d(r.payments_total),d(r.refunds_total),d(r.fees_total),d(r.other_total),d(r.amount),{type:"inner",value:this.mapStatusToBadge(r.status)}])),loading:this.loading,"error-message":this.errorMessage,params:this.params,paging:Object.assign(Object.assign({},this.paging),{handleClickNext:this.handleClickNext,handleClickPrevious:this.handleClickPrevious})}))}static get watchers(){return{accountId:["updateOnPropChange"],authToken:["updateOnPropChange"],params:["updateOnPropChange"]}}};m.style=g;export{m as justifi_payouts_list};
2
- //# sourceMappingURL=p-b98a3f94.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["payoutsListCss","PayoutsList","this","mapStatusToBadge","status","PayoutStatuses","scheduled","PayoutStatusesSafeNames","in_transit","failed","canceled","forwarded","paid","handleClickPrevious","beforeCursor","newParams","Object","assign","params","after_cursor","before_cursor","handleClickNext","afterCursor","pagingDefaults","updateOnPropChange","fetchData","connectedCallback","accountId","authToken","errorMessage","loading","api","Api","config","proxyApiOrigin","endpoint","response","get","error","paging","page_info","data","_a","map","dataItem","Payout","payouts","message","render","h","Host","rowClickHandler","e","clickedPayoutID","target","closest","dataset","rowEntityId","rowClicked","emit","find","payout","id","columnData","entityId","rowData","type","value","formatDate","created_at","formatTime","payout_type","account_id","bank_account","full_name","account_number_last4","formatCurrency","payments_total","refunds_total","fees_total","other_total","amount"],"sources":["src/components/payouts-list/payouts-list.scss?tag=justifi-payouts-list&encapsulation=shadow","src/components/payouts-list/payouts-list.tsx"],"sourcesContent":[":host {\n @include host-base-styles;\n}\n","import { Component, Host, h, Prop, State, Watch, Event, EventEmitter } from '@stencil/core';\nimport {\n Api,\n IApiResponseCollection,\n PagingInfo,\n Payout,\n PayoutStatuses,\n PayoutStatusesSafeNames,\n pagingDefaults\n} from '../../api';\nimport { formatCurrency, formatDate, formatTime } from '../../utils/utils';\nimport { config } from '../../../config';\n\n\n/**\n * @exportedPart table-head: Table head\n * @exportedPart table-head-row: Head row\n * @exportedPart table-head-cell: Individual head cell\n * @exportedPart table-body: Body of the table\n * @exportedPart table-row: Row of the table\n * @exportedPart table-cell: Individual cell of the table\n * @exportedPart loading-state-cell: Row for loading state\n * @exportedPart loading-state-spinner: Spinner element for loading state\n * @exportedPart error-state: Row for Error state\n * @exportedPart empty-state: Row for Emtpy state\n * @exportedPart pagination-bar: Pagination bar\n * @exportedPart arrow: Both paging buttons\n * @exportedPart arrow-left: Previous page button\n * @exportedPart arrow-right: Next page button\n * @exportedPart button-disabled: Disabled state for paging buttons\n * @exportedPart previous-button-text: Text for Previous button\n * @exportedPart next-button-text: Text for Next button\n*/\n@Component({\n tag: 'justifi-payouts-list',\n styleUrl: 'payouts-list.scss',\n shadow: true,\n})\n\nexport class PayoutsList {\n @Prop() accountId: string;\n @Prop() authToken: string;\n @State() payouts: Payout[] = [];\n @State() loading: boolean = true;\n @State() errorMessage: string;\n @State() paging: PagingInfo = pagingDefaults;\n @State() params: any\n @Event({\n eventName: 'payout-row-clicked',\n bubbles: true,\n }) rowClicked: EventEmitter<Payout>;\n\n @Watch('accountId')\n @Watch('authToken')\n @Watch('params')\n updateOnPropChange() {\n this.fetchData();\n }\n\n connectedCallback() {\n this.fetchData();\n }\n\n mapStatusToBadge = (status: PayoutStatuses) => {\n switch (status) {\n case PayoutStatuses.scheduled:\n return `<span class=\"badge bg-primary\" title='Batched and scheduled to be transferred'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.in_transit:\n return `<span class=\"badge bg-primary\" title='Transfer to your bank account has been initiated'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.failed:\n return `<span class=\"badge bg-danger\" title='Transfer to your bank account failed'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.canceled:\n return `<span class=\"badge bg-danger\" title='Transfer to your bank account failed'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.forwarded:\n return `<span class=\"badge bg-secondary\" title='This payout initially failed; the funds have been forwarded to your next successful payout'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.paid:\n return `<span class=\"badge bg-success\" title='Successfully deposited into your bank account'>${PayoutStatusesSafeNames[status]}</span>`;\n }\n }\n\n handleClickPrevious = (beforeCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.after_cursor;\n this.params = ({ ...newParams, before_cursor: beforeCursor });\n };\n\n handleClickNext = (afterCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.before_cursor;\n this.params = ({ ...newParams, after_cursor: afterCursor });\n };\n\n async fetchData(): Promise<void> {\n if (!this.accountId || !this.authToken) {\n this.errorMessage = \"Can not fetch any data without an AccountID and an AuthToken\";\n this.loading = false;\n return;\n }\n this.loading = true;\n\n const api = Api(this.authToken, config.proxyApiOrigin);\n const endpoint = `account/${this.accountId}/payouts`;\n\n const response: IApiResponseCollection<Payout[]> = await api.get(endpoint, this.params);\n if (!response.error) {\n this.paging = {\n ...this.paging,\n ...response.page_info\n }\n\n const data = response?.data?.map(dataItem => new Payout(dataItem));\n this.payouts = data;\n } else {\n this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;\n }\n\n this.loading = false;\n }\n\n render() {\n return (\n <Host>\n <justifi-table\n rowClickHandler={(e) => {\n const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;\n if (!clickedPayoutID) { return }\n this.rowClicked.emit(this.payouts.find((payout) => payout.id === clickedPayoutID));\n }}\n columnData={[\n ['Paid Out On', 'The date each transaction occurred'],\n ['Type', 'The type of each transaction'],\n ['Account', 'The ID of the account associated with each payout'],\n ['Paid Out To', 'The bank account to which each payout was transferred'],\n ['Payments', 'Sum of payments in each payout'],\n ['Refunds', 'Sum of refunds in each payout'],\n ['Fees', 'Sum of fees in each payout'],\n ['Other', 'Sum of less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)'],\n ['Payout Amount', 'The net sum of all transactions in each payout. This is the amount you\\'ll see reflected on your bank statement'],\n ['Status', 'The real-time status of each payout']\n ]}\n entityId={this.payouts.map((payout) => payout.id)}\n rowData={\n this.payouts.map((payout) => (\n [\n {\n type: 'head',\n value: `\n <div>${formatDate(payout.created_at)}</div>\n <div>${formatTime(payout.created_at)}</div>\n `,\n },\n payout.payout_type,\n payout.account_id,\n `${payout.bank_account.full_name} ${payout.bank_account.account_number_last4}`,\n formatCurrency(payout.payments_total),\n formatCurrency(payout.refunds_total),\n formatCurrency(payout.fees_total),\n formatCurrency(payout.other_total),\n formatCurrency(payout.amount),\n {\n type: 'inner',\n value: this.mapStatusToBadge(payout.status)\n }\n ]\n ))\n }\n loading={this.loading}\n error-message={this.errorMessage}\n params={this.params}\n paging={{\n ...this.paging,\n handleClickNext: this.handleClickNext,\n handleClickPrevious: this.handleClickPrevious\n }}\n />\n </Host>\n );\n }\n}\n"],"mappings":"oQAAA,MAAMA,EAAiB,stb,MCuCVC,EAAW,M,wEAwBtBC,KAAAC,iBAAoBC,IAClB,OAAQA,GACN,KAAKC,EAAeC,UAClB,MAAO,kFAAkFC,EAAwBH,YACnH,KAAKC,EAAeG,WAClB,MAAO,2FAA2FD,EAAwBH,YAC5H,KAAKC,EAAeI,OAClB,MAAO,8EAA8EF,EAAwBH,YAC/G,KAAKC,EAAeK,SAClB,MAAO,8EAA8EH,EAAwBH,YAC/G,KAAKC,EAAeM,UAClB,MAAO,uIAAuIJ,EAAwBH,YACxK,KAAKC,EAAeO,KAClB,MAAO,wFAAwFL,EAAwBH,Y,EAI7HF,KAAAW,oBAAuBC,IACrB,MAAMC,EAASC,OAAAC,OAAA,GAAaf,KAAKgB,eAC1BH,EAAUI,aACjBjB,KAAKgB,OAAMF,OAAAC,OAAAD,OAAAC,OAAA,GAASF,GAAS,CAAEK,cAAeN,GAAe,EAG/DZ,KAAAmB,gBAAmBC,IACjB,MAAMP,EAASC,OAAAC,OAAA,GAAaf,KAAKgB,eAC1BH,EAAUK,cACjBlB,KAAKgB,OAAMF,OAAAC,OAAAD,OAAAC,OAAA,GAASF,GAAS,CAAEI,aAAcG,GAAc,E,+DA/ChC,G,aACD,K,wCAEEC,E,sBAU9B,kBAAAC,GACEtB,KAAKuB,W,CAGP,iBAAAC,GACExB,KAAKuB,W,CAgCP,eAAMA,G,MACJ,IAAKvB,KAAKyB,YAAczB,KAAK0B,UAAW,CACtC1B,KAAK2B,aAAe,+DACpB3B,KAAK4B,QAAU,MACf,M,CAEF5B,KAAK4B,QAAU,KAEf,MAAMC,EAAMC,EAAI9B,KAAK0B,UAAWK,EAAOC,gBACvC,MAAMC,EAAW,WAAWjC,KAAKyB,oBAEjC,MAAMS,QAAmDL,EAAIM,IAAIF,EAA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0D,EAAOzD,YAK5C0B,QAAS5B,KAAK4B,QAAO,gBACN5B,KAAK2B,aACpBX,OAAQhB,KAAKgB,OACbqB,OAAMvB,OAAAC,OAAAD,OAAAC,OAAA,GACDf,KAAKqC,QAAM,CACdlB,gBAAiBnB,KAAKmB,gBACtBR,oBAAqBX,KAAKW,wB"}
@@ -1,2 +0,0 @@
1
- import{r,c as o,h as i,H as t}from"./p-cbb60191.js";import{A as e}from"./p-b157f6ae.js";import{p as s}from"./p-0d5d02d7.js";import{b as a}from"./p-76983a7e.js";import{f as n,c as b,a as c,M as l}from"./p-d6b5793d.js";import{c as d}from"./p-9b6dcac5.js";const p=':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{font-family: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";font-size:1rem;font-weight:400;line-height:1.5;color:#212529}';const g=class{constructor(i){r(this,i);this.rowClicked=o(this,"payment-row-clicked",7);this.handleClickPrevious=r=>{const o=Object.assign({},this.params);delete o.after_cursor;this.params=Object.assign(Object.assign({},o),{before_cursor:r})};this.handleClickNext=r=>{const o=Object.assign({},this.params);delete o.before_cursor;this.params=Object.assign(Object.assign({},o),{after_cursor:r})};this.accountId=undefined;this.authToken=undefined;this.payments=[];this.loading=true;this.errorMessage=undefined;this.paging=s;this.params=undefined}updateOnPropChange(){this.fetchData()}connectedCallback(){this.fetchData()}async fetchData(){var r;if(!this.accountId||!this.authToken){this.errorMessage="Can not fetch any data without an AccountID and an AuthToken";this.loading=false;return}this.loading=true;const o=e(this.authToken,d.proxyApiOrigin);const i=`account/${this.accountId}/payments`;const t=await o.get(i,this.params);if(!t.error){this.paging=Object.assign(Object.assign({},this.paging),t.page_info);const o=(r=t===null||t===void 0?void 0:t.data)===null||r===void 0?void 0:r.map((r=>new a(r)));this.payments=o}else{this.errorMessage=typeof t.error==="string"?t.error:t.error.message}this.loading=false}getPaymentMethod(r){return r.card||r.bank_account}getPaymentMethodName(r){if(r.card){return r.card.name}else{return r.bank_account.account_owner_name}}render(){return i(t,null,i("justifi-table",{rowClickHandler:r=>{const o=r.target.closest("tr").dataset.rowEntityId;if(!o){return}this.rowClicked.emit(this.payments.find((r=>r.id===o)))},entityId:this.payments.map((r=>r.id)),columnData:[["Made On","The date and time each payment was made"],["Amount","The dollar amount of each payment"],["Description","The payment description, if you provided one"],["Cardholder","The name associated with the payment method"],["Payment Method","The brand and last 4 digits of the payment method"],["Status","The current status of each payment"],["Payment ID","The unique identifier of each payment"]],rowData:this.payments.map((r=>[{type:"head",value:`\n <div>${n(r.created_at)}</div>\n <div>${b(r.created_at)}</div>\n `},c(r.amount),r.description,this.getPaymentMethodName(r.payment_method),this.getPaymentMethod(r.payment_method).acct_last_four,{type:"inner",value:l(r.status)},r.id])),loading:this.loading,"error-message":this.errorMessage,params:this.params,paging:Object.assign(Object.assign({},this.paging),{handleClickNext:this.handleClickNext,handleClickPrevious:this.handleClickPrevious})}))}static get watchers(){return{accountId:["updateOnPropChange"],authToken:["updateOnPropChange"],params:["updateOnPropChange"]}}};g.style=p;export{g as justifi_payments_list};
2
- //# sourceMappingURL=p-c1ae571b.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["paymentsListCss","PaymentsList","this","handleClickPrevious","beforeCursor","newParams","Object","assign","params","after_cursor","before_cursor","handleClickNext","afterCursor","pagingDefaults","updateOnPropChange","fetchData","connectedCallback","accountId","authToken","errorMessage","loading","api","Api","config","proxyApiOrigin","endpoint","response","get","error","paging","page_info","data","_a","map","dataItem","Payment","payments","message","getPaymentMethod","paymentMethod","card","bank_account","getPaymentMethodName","name","account_owner_name","render","h","Host","rowClickHandler","e","clickedPaymentID","target","closest","dataset","rowEntityId","rowClicked","emit","find","payment","id","entityId","columnData","rowData","type","value","formatDate","created_at","formatTime","formatCurrency","amount","description","payment_method","acct_last_four","MapPaymentStatusToBadge","status"],"sources":["src/components/payments-list/payments-list.scss?tag=justifi-payments-list&encapsulation=shadow","src/components/payments-list/payments-list.tsx"],"sourcesContent":[":host {\n @include host-base-styles;\n}\n","import { Component, Host, h, Prop, State, Watch, Event, EventEmitter } from '@stencil/core';\nimport { Api, IApiResponseCollection, IPaymentMethod, PagingInfo, Payment, pagingDefaults } from '../../api';\nimport { MapPaymentStatusToBadge, formatCurrency, formatDate, formatTime } from '../../utils/utils';\nimport { config } from '../../../config';\n\n/**\n * @exportedPart table-head: Table head\n * @exportedPart table-head-row: Head row\n * @exportedPart table-head-cell: Individual head cell\n * @exportedPart table-body: Body of the table\n * @exportedPart table-row: Row of the table\n * @exportedPart table-cell: Individual cell of the table\n * @exportedPart loading-state-cell: Row for loading state\n * @exportedPart loading-state-spinner: Spinner element for loading state\n * @exportedPart error-state: Row for Error state\n * @exportedPart empty-state: Row for Emtpy state\n * @exportedPart pagination-bar: Pagination bar\n * @exportedPart arrow: Both paging buttons\n * @exportedPart arrow-left: Previous page button\n * @exportedPart arrow-right: Next page button\n * @exportedPart button-disabled: Disabled state for paging buttons\n * @exportedPart previous-button-text: Text for Previous button\n * @exportedPart next-button-text: Text for Next button\n*/\n@Component({\n tag: 'justifi-payments-list',\n styleUrl: 'payments-list.scss',\n shadow: true,\n})\n\nexport class PaymentsList {\n @Prop() accountId: string;\n @Prop() authToken: string;\n @State() payments: Payment[] = [];\n @State() loading: boolean = true;\n @State() errorMessage: string;\n @State() paging: PagingInfo = pagingDefaults;\n @State() params: any;\n @Event({\n eventName: 'payment-row-clicked',\n bubbles: true,\n }) rowClicked: EventEmitter<Payment>;\n\n @Watch('accountId')\n @Watch('authToken')\n @Watch('params')\n updateOnPropChange() {\n this.fetchData();\n }\n\n connectedCallback() {\n this.fetchData();\n }\n\n handleClickPrevious = (beforeCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.after_cursor;\n this.params = ({ ...newParams, before_cursor: beforeCursor });\n };\n\n handleClickNext = (afterCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.before_cursor;\n this.params = ({ ...newParams, after_cursor: afterCursor });\n };\n\n async fetchData(): Promise<void> {\n if (!this.accountId || !this.authToken) {\n this.errorMessage = \"Can not fetch any data without an AccountID and an AuthToken\";\n this.loading = false;\n return;\n }\n\n this.loading = true;\n\n const api = Api(this.authToken, config.proxyApiOrigin);\n const endpoint = `account/${this.accountId}/payments`;\n\n const response: IApiResponseCollection<Payment[]> = await api.get(endpoint, this.params);\n\n if (!response.error) {\n this.paging = {\n ...this.paging,\n ...response.page_info\n }\n\n const data = response?.data?.map(dataItem => new Payment(dataItem));\n this.payments = data;\n } else {\n this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;\n }\n\n this.loading = false;\n }\n\n getPaymentMethod(paymentMethod: IPaymentMethod) {\n return paymentMethod.card || paymentMethod.bank_account\n }\n\n getPaymentMethodName(paymentMethod: IPaymentMethod) {\n if (paymentMethod.card) {\n return paymentMethod.card.name;\n } else {\n return paymentMethod.bank_account.account_owner_name\n }\n }\n\n render() {\n return (\n <Host>\n <justifi-table\n rowClickHandler={e => {\n const clickedPaymentID = e.target.closest('tr').dataset.rowEntityId;\n if (!clickedPaymentID) { return }\n this.rowClicked.emit(this.payments.find((payment) => payment.id === clickedPaymentID));\n }}\n entityId={this.payments.map((payment) => payment.id)}\n columnData={[\n ['Made On', 'The date and time each payment was made'],\n ['Amount', 'The dollar amount of each payment'],\n ['Description', 'The payment description, if you provided one'],\n ['Cardholder', 'The name associated with the payment method'],\n ['Payment Method', 'The brand and last 4 digits of the payment method'],\n ['Status', 'The current status of each payment'],\n ['Payment ID', 'The unique identifier of each payment']\n ]}\n rowData={\n this.payments.map((payment) => (\n [\n {\n type: 'head',\n value: `\n <div>${formatDate(payment.created_at)}</div>\n <div>${formatTime(payment.created_at)}</div>\n `,\n },\n formatCurrency(payment.amount),\n payment.description,\n this.getPaymentMethodName(payment.payment_method),\n this.getPaymentMethod(payment.payment_method).acct_last_four,\n {\n type: 'inner',\n value: MapPaymentStatusToBadge(payment.status)\n },\n payment.id\n ]\n ))\n }\n loading={this.loading}\n error-message={this.errorMessage}\n params={this.params}\n paging={{\n ...this.paging,\n handleClickNext: this.handleClickNext,\n handleClickPrevious: this.handleClickPrevious\n }}\n />\n </Host>\n );\n }\n}\n"],"mappings":"6PAAA,MAAMA,EAAkB,stb,MC8BXC,EAAY,M,yEAwBvBC,KAAAC,oBAAuBC,IACrB,MAAMC,EAASC,OAAAC,OAAA,GAAaL,KAAKM,eAC1BH,EAAUI,aACjBP,KAAKM,OAAMF,OAAAC,OAAAD,OAAAC,OAAA,GAASF,GAAS,CAAEK,cAAeN,GAAe,EAG/DF,KAAAS,gBAAmBC,IACjB,MAAMP,EAASC,OAAAC,OAAA,GAAaL,KAAKM,eAC1BH,EAAUK,cACjBR,KAAKM,OAAMF,OAAAC,OAAAD,OAAAC,OAAA,GAASF,GAAS,CAAEI,aAAcG,GAAc,E,gEA9B9B,G,aACH,K,wCAEEC,E,sBAU9B,kBAAAC,GACEZ,KAAKa,W,CAGP,iBAAAC,GACEd,KAAKa,W,CAeP,eAAMA,G,MACJ,IAAKb,KAAKe,YAAcf,KAAKgB,UAAW,CACtChB,KAAKiB,aAAe,+DACpBjB,KAAKkB,QAAU,MACf,M,CAGFlB,KAAKkB,QAAU,KAEf,MAAMC,EAAMC,EAAIpB,KAAKgB,UAAWK,EAAOC,gBACvC,MAAMC,EAAW,WAAWvB,KAAKe,qBAEjC,MAAMS,QAAoDL,EAAIM,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