@justifi/webcomponents 4.16.0 → 4.17.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 (293) hide show
  1. package/dist/cjs/{Analytics-423b2bb5.js → Analytics-80336968.js} +1 -1
  2. package/dist/cjs/{SubAccount-4f4fac22.js → SubAccount-135ff8c8.js} +1 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
  4. package/dist/cjs/{business-additional-questions-schema-606d1292.js → business-additional-questions-schema-cf545610.js} +2 -2
  5. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  6. package/dist/cjs/form-control-checkbox_5.cjs.entry.js +7 -10
  7. package/dist/cjs/form-control-date_3.cjs.entry.js +3 -3
  8. package/dist/cjs/form-control-error-text_4.cjs.entry.js +2 -2
  9. package/dist/cjs/form-control-file.cjs.entry.js +1 -1
  10. package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
  11. package/dist/cjs/form-control-number.cjs.entry.js +1 -1
  12. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
  13. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +8 -11
  14. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +13 -1678
  16. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-business-form.cjs.entry.js +5 -5
  18. package/dist/cjs/justifi-business-list.cjs.entry.js +1 -1
  19. package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-checkout-core.cjs.entry.js +13 -5
  21. package/dist/cjs/justifi-checkout.cjs.entry.js +11 -3
  22. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  23. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  24. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +68 -26
  25. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +2 -2
  26. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  27. package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -6
  28. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1688 -0
  29. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +1 -1
  30. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  31. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  32. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  33. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  34. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +2 -2
  35. package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
  36. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
  37. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +3 -3
  40. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +3 -3
  41. package/dist/cjs/loader.cjs.js +1 -1
  42. package/dist/cjs/{package-b40227dd.js → package-7b63c02b.js} +1 -1
  43. package/dist/cjs/{payload-parsers-6e4cf5d7.js → payload-parsers-78445405.js} +1 -1
  44. package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
  45. package/dist/cjs/payments-list-core.cjs.entry.js +2 -2
  46. package/dist/cjs/payout-details-core.cjs.entry.js +2 -2
  47. package/dist/cjs/payouts-list-core.cjs.entry.js +2 -2
  48. package/dist/cjs/{schema-validations-9668fd79.js → schema-validations-2733de42.js} +3 -4
  49. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +5 -5
  50. package/dist/cjs/subaccount-bank-details.cjs.entry.js +1 -1
  51. package/dist/cjs/subaccount-terms-details.cjs.entry.js +1 -1
  52. package/dist/cjs/{utils-fd644316.js → utils-742da2e3.js} +12 -3
  53. package/dist/cjs/{utils-17869710.js → utils-80191fbe.js} +6 -0
  54. package/dist/cjs/webcomponents.cjs.js +1 -1
  55. package/dist/collection/api/Checkout.js +0 -1
  56. package/dist/collection/collection-manifest.json +1 -0
  57. package/dist/collection/components/billing-form/billing-form.js +2 -2
  58. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  59. package/dist/collection/components/business-forms/owner-form/owner-form.js +2 -5
  60. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  61. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -2
  62. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -4
  63. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
  64. package/dist/collection/components/business-forms/schemas/schema-helpers.js +0 -1
  65. package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -4
  66. package/dist/collection/components/checkout/checkout-core.js +64 -5
  67. package/dist/collection/components/checkout/checkout.js +59 -1
  68. package/dist/collection/components/checkout/new-payment-method.js +94 -14
  69. package/dist/collection/components/checkout/payment-method-option-utils.js +2 -0
  70. package/dist/collection/components/checkout/payment-method-options.css +8 -0
  71. package/dist/collection/components/checkout/payment-method-options.js +98 -14
  72. package/dist/collection/components/checkout/save-new-payment-method.js +38 -0
  73. package/dist/collection/components/checkout/saved-payment-method.js +11 -4
  74. package/dist/collection/components/checkout/sezzle-payment-method.js +11 -4
  75. package/dist/collection/components/details/details.js +1 -1
  76. package/dist/collection/components/form/form-control-checkbox.js +1 -1
  77. package/dist/collection/components/form/form-control-date.js +1 -1
  78. package/dist/collection/components/form/form-control-file.js +1 -1
  79. package/dist/collection/components/form/form-control-monetary.js +1 -1
  80. package/dist/collection/components/form/form-control-number-masked.js +1 -1
  81. package/dist/collection/components/form/form-control-number.js +1 -1
  82. package/dist/collection/components/form/form-control-select.js +1 -1
  83. package/dist/collection/components/form/form-control-text.js +1 -1
  84. package/dist/collection/components/form/utils.js +12 -3
  85. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  86. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  87. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  88. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +1 -1
  89. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  90. package/dist/collection/components/payment-form/payment-form.js +3 -3
  91. package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
  92. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  93. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  94. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  95. package/dist/collection/components/proceeds-list/proceeds-list.js +1 -1
  96. package/dist/collection/components/refund-form/refund-form.js +1 -1
  97. package/dist/collection/components/skeleton/skeleton.js +1 -1
  98. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +1 -1
  99. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +1 -1
  100. package/dist/collection/components/subaccount-details/subaccount-details.js +1 -1
  101. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +1 -1
  102. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +1 -1
  103. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +1 -1
  104. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +1 -1
  105. package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
  106. package/dist/collection/utils/utils.js +5 -0
  107. package/dist/docs.json +415 -41
  108. package/dist/esm/{Analytics-17c33e9e.js → Analytics-c52faca6.js} +1 -1
  109. package/dist/esm/{SubAccount-8bf9cb0c.js → SubAccount-7fcb1450.js} +1 -1
  110. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  111. package/dist/esm/{business-additional-questions-schema-b00a73ba.js → business-additional-questions-schema-956e3caf.js} +2 -2
  112. package/dist/esm/form-alert_5.entry.js +2 -2
  113. package/dist/esm/form-control-checkbox_5.entry.js +7 -10
  114. package/dist/esm/form-control-date_3.entry.js +3 -3
  115. package/dist/esm/form-control-error-text_4.entry.js +2 -2
  116. package/dist/esm/form-control-file.entry.js +1 -1
  117. package/dist/esm/form-control-monetary.entry.js +1 -1
  118. package/dist/esm/form-control-number.entry.js +1 -1
  119. package/dist/esm/gross-payment-chart-core.entry.js +2 -2
  120. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +9 -12
  121. package/dist/esm/justifi-bank-account-form.entry.js +2 -2
  122. package/dist/esm/justifi-billing-form_2.entry.js +13 -1678
  123. package/dist/esm/justifi-business-details.entry.js +2 -2
  124. package/dist/esm/justifi-business-form.entry.js +5 -5
  125. package/dist/esm/justifi-business-list.entry.js +1 -1
  126. package/dist/esm/justifi-card-form.entry.js +2 -2
  127. package/dist/esm/justifi-checkout-core.entry.js +13 -5
  128. package/dist/esm/justifi-checkout.entry.js +11 -3
  129. package/dist/esm/justifi-details.entry.js +1 -1
  130. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  131. package/dist/esm/justifi-new-payment-method_4.entry.js +68 -26
  132. package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -2
  133. package/dist/esm/justifi-payment-details.entry.js +2 -2
  134. package/dist/esm/justifi-payment-form.entry.js +6 -6
  135. package/dist/esm/justifi-payment-method-form.entry.js +1684 -0
  136. package/dist/esm/justifi-payment-method-selector.entry.js +1 -1
  137. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  138. package/dist/esm/justifi-payments-list.entry.js +2 -2
  139. package/dist/esm/justifi-payout-details.entry.js +2 -2
  140. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  141. package/dist/esm/justifi-proceeds-list.entry.js +2 -2
  142. package/dist/esm/justifi-refund-form.entry.js +1 -1
  143. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
  144. package/dist/esm/justifi-season-interruption-insurance.entry.js +1 -1
  145. package/dist/esm/justifi-skeleton.entry.js +1 -1
  146. package/dist/esm/justifi-subaccount-details.entry.js +3 -3
  147. package/dist/esm/justifi-subaccounts-list.entry.js +3 -3
  148. package/dist/esm/loader.js +1 -1
  149. package/dist/esm/{package-02a6e473.js → package-8ab448a3.js} +1 -1
  150. package/dist/esm/{payload-parsers-a9e8f8cc.js → payload-parsers-57289fc4.js} +1 -1
  151. package/dist/esm/payment-details-core.entry.js +8 -8
  152. package/dist/esm/payments-list-core.entry.js +2 -2
  153. package/dist/esm/payout-details-core.entry.js +2 -2
  154. package/dist/esm/payouts-list-core.entry.js +2 -2
  155. package/dist/esm/{schema-validations-770bdf3e.js → schema-validations-a83ff220.js} +3 -4
  156. package/dist/esm/subaccount-account-details_4.entry.js +5 -5
  157. package/dist/esm/subaccount-bank-details.entry.js +1 -1
  158. package/dist/esm/subaccount-terms-details.entry.js +1 -1
  159. package/dist/esm/{utils-61a21dea.js → utils-5f4c4faa.js} +6 -1
  160. package/dist/esm/{utils-8de964da.js → utils-c7b3f21a.js} +12 -3
  161. package/dist/esm/webcomponents.js +1 -1
  162. package/dist/module/SubAccount.js +1 -1
  163. package/dist/module/additional-questions.js +1 -1
  164. package/dist/module/billing-form.js +2 -2
  165. package/dist/module/business-additional-questions-form-step.js +1 -1
  166. package/dist/module/business-core-info-form-step.js +3 -2
  167. package/dist/module/business-core-info-schema.js +1 -1
  168. package/dist/module/business-representative-form-step.js +1 -4
  169. package/dist/module/checkout-core.js +37 -21
  170. package/dist/module/details.js +1 -1
  171. package/dist/module/form-control-checkbox2.js +1 -1
  172. package/dist/module/form-control-date2.js +1 -1
  173. package/dist/module/form-control-file2.js +1 -1
  174. package/dist/module/form-control-monetary2.js +1 -1
  175. package/dist/module/form-control-number-masked2.js +1 -1
  176. package/dist/module/form-control-number.js +1 -1
  177. package/dist/module/form-control-select2.js +1 -1
  178. package/dist/module/form-control-text2.js +1 -1
  179. package/dist/module/gross-payment-chart-core2.js +1 -1
  180. package/dist/module/justifi-checkout.js +35 -20
  181. package/dist/module/justifi-payment-balance-transactions.js +2 -2
  182. package/dist/module/justifi-payment-form.js +3 -3
  183. package/dist/module/justifi-proceeds-list.js +1 -1
  184. package/dist/module/justifi-refund-form.js +1 -1
  185. package/dist/module/justifi-save-new-payment-method.d.ts +11 -0
  186. package/dist/module/justifi-save-new-payment-method.js +6 -0
  187. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  188. package/dist/module/justifi-subaccount-details.js +2 -2
  189. package/dist/module/justifi-subaccounts-list.js +2 -2
  190. package/dist/module/new-payment-method.js +52 -24
  191. package/dist/module/owner-form.js +2 -5
  192. package/dist/module/package.js +1 -1
  193. package/dist/module/payment-details-core2.js +8 -8
  194. package/dist/module/payment-method-options.js +51 -26
  195. package/dist/module/payment-method-selector.js +1 -1
  196. package/dist/module/payments-list-core2.js +2 -2
  197. package/dist/module/payout-details-core2.js +2 -2
  198. package/dist/module/payouts-list-core2.js +2 -2
  199. package/dist/module/save-new-payment-method.js +36 -0
  200. package/dist/module/saved-payment-method.js +7 -2
  201. package/dist/module/schema-validations.js +3 -4
  202. package/dist/module/season-interruption-insurance-core.js +2 -2
  203. package/dist/module/sezzle-payment-method.js +5 -2
  204. package/dist/module/skeleton.js +1 -1
  205. package/dist/module/subaccount-account-details2.js +1 -1
  206. package/dist/module/subaccount-bank-details.js +1 -1
  207. package/dist/module/subaccount-merchant-details2.js +2 -2
  208. package/dist/module/subaccount-owners-details2.js +1 -1
  209. package/dist/module/subaccount-representative-details2.js +1 -1
  210. package/dist/module/subaccount-terms-details.js +1 -1
  211. package/dist/module/utils2.js +6 -1
  212. package/dist/module/utils3.js +12 -3
  213. package/dist/types/api/Checkout.d.ts +6 -0
  214. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -1
  215. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +0 -1
  216. package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +0 -1
  217. package/dist/types/components/checkout/checkout-core.d.ts +5 -1
  218. package/dist/types/components/checkout/checkout.d.ts +5 -0
  219. package/dist/types/components/checkout/new-payment-method.d.ts +8 -2
  220. package/dist/types/components/checkout/payment-method-option-utils.d.ts +1 -0
  221. package/dist/types/components/checkout/payment-method-options.d.ts +6 -2
  222. package/dist/types/components/checkout/payment-method-payload.d.ts +1 -0
  223. package/dist/types/components/checkout/save-new-payment-method.d.ts +7 -0
  224. package/dist/types/components/checkout/saved-payment-method.d.ts +1 -1
  225. package/dist/types/components/checkout/sezzle-payment-method.d.ts +1 -1
  226. package/dist/types/components/form/utils.d.ts +1 -1
  227. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +6 -4
  228. package/dist/types/components.d.ts +55 -12
  229. package/dist/types/utils/utils.d.ts +1 -0
  230. package/dist/webcomponents/{p-4791c1f2.entry.js → p-00de4ae0.entry.js} +1 -1
  231. package/dist/webcomponents/{p-0f10316f.entry.js → p-015ba24e.entry.js} +1 -1
  232. package/dist/webcomponents/p-0575daac.js +1 -0
  233. package/dist/webcomponents/p-0a09edbb.entry.js +1 -0
  234. package/dist/webcomponents/{p-31031d15.entry.js → p-0fc18c89.entry.js} +1 -1
  235. package/dist/webcomponents/{p-f14db665.entry.js → p-100cb35c.entry.js} +1 -1
  236. package/dist/webcomponents/{p-b01c0120.entry.js → p-189dee9f.entry.js} +1 -1
  237. package/dist/webcomponents/{p-288c95b3.entry.js → p-1c60004a.entry.js} +1 -1
  238. package/dist/webcomponents/{p-65969627.entry.js → p-30a7bebc.entry.js} +2 -2
  239. package/dist/webcomponents/{p-7ae2d26f.entry.js → p-378bb067.entry.js} +1 -1
  240. package/dist/webcomponents/p-3fd13ca3.js +1 -0
  241. package/dist/webcomponents/{p-923c37a2.entry.js → p-404d7c56.entry.js} +1 -1
  242. package/dist/webcomponents/{p-f18e63c3.entry.js → p-43326623.entry.js} +1 -1
  243. package/dist/webcomponents/{p-9228912b.entry.js → p-4c5f9260.entry.js} +1 -1
  244. package/dist/webcomponents/{p-7c28a80d.entry.js → p-5309e887.entry.js} +1 -1
  245. package/dist/webcomponents/{p-fee616cf.entry.js → p-6006e085.entry.js} +1 -1
  246. package/dist/webcomponents/{p-9c00adf1.entry.js → p-61e486ad.entry.js} +1 -1
  247. package/dist/webcomponents/{p-eefe2f29.entry.js → p-738049aa.entry.js} +1 -1
  248. package/dist/webcomponents/{p-56275f64.entry.js → p-739f1e09.entry.js} +1 -1
  249. package/dist/webcomponents/{p-4b260a52.entry.js → p-7f77d91f.entry.js} +1 -1
  250. package/dist/webcomponents/{p-ebce7b2f.entry.js → p-84b3cead.entry.js} +1 -1
  251. package/dist/webcomponents/{p-06baf263.entry.js → p-8805d083.entry.js} +1 -1
  252. package/dist/webcomponents/p-89887332.js +1 -0
  253. package/dist/webcomponents/p-95c18035.entry.js +1 -0
  254. package/dist/webcomponents/{p-fa9773c0.entry.js → p-95c8c313.entry.js} +1 -1
  255. package/dist/webcomponents/p-97220d5b.entry.js +1 -0
  256. package/dist/webcomponents/{p-8e8f5033.entry.js → p-98985c7d.entry.js} +1 -1
  257. package/dist/webcomponents/{p-e3a31451.entry.js → p-9936c393.entry.js} +1 -1
  258. package/dist/webcomponents/p-9d03464e.entry.js +1 -0
  259. package/dist/webcomponents/{p-3a7e0753.entry.js → p-a34c28af.entry.js} +1 -1
  260. package/dist/webcomponents/{p-d42e284d.entry.js → p-a6477232.entry.js} +1 -1
  261. package/dist/webcomponents/{p-2451611d.entry.js → p-a90a6703.entry.js} +1 -1
  262. package/dist/webcomponents/{p-a33c3e1c.entry.js → p-b1a24d24.entry.js} +1 -1
  263. package/dist/webcomponents/{p-9b1e7f5e.entry.js → p-b27d2ce1.entry.js} +1 -1
  264. package/dist/webcomponents/{p-3394ff6c.js → p-b7d9d9fa.js} +1 -1
  265. package/dist/webcomponents/{p-1e53021d.entry.js → p-be049573.entry.js} +1 -1
  266. package/dist/webcomponents/{p-c85fb952.entry.js → p-bfe69314.entry.js} +1 -1
  267. package/dist/webcomponents/{p-9601cf9d.entry.js → p-c2d6a5e2.entry.js} +1 -1
  268. package/dist/webcomponents/{p-4b4fc43d.js → p-c4264aaf.js} +1 -1
  269. package/dist/webcomponents/{p-808c8988.entry.js → p-c69713c2.entry.js} +1 -1
  270. package/dist/webcomponents/{p-9e5d765c.js → p-c8c08fe3.js} +1 -1
  271. package/dist/webcomponents/{p-b94bf537.entry.js → p-d779f2f2.entry.js} +1 -1
  272. package/dist/webcomponents/{p-26779944.entry.js → p-da313a7e.entry.js} +1 -1
  273. package/dist/webcomponents/{p-6ce586e0.entry.js → p-e04f7070.entry.js} +1 -1
  274. package/dist/webcomponents/p-e7915927.entry.js +1 -0
  275. package/dist/webcomponents/{p-fb53112b.js → p-e8c651b8.js} +1 -1
  276. package/dist/webcomponents/p-eb142b8a.entry.js +1 -0
  277. package/dist/webcomponents/{p-851e57f4.js → p-edb605b3.js} +1 -1
  278. package/dist/webcomponents/{p-e673e681.entry.js → p-efe744ce.entry.js} +1 -1
  279. package/dist/webcomponents/p-f6858597.entry.js +1 -0
  280. package/dist/webcomponents/p-f68cf935.entry.js +1 -0
  281. package/dist/webcomponents/{p-3f06ce2f.entry.js → p-fcf42299.entry.js} +1 -1
  282. package/dist/webcomponents/webcomponents.esm.js +1 -1
  283. package/package.json +1 -1
  284. package/dist/webcomponents/p-038fb958.entry.js +0 -1
  285. package/dist/webcomponents/p-144e4bda.js +0 -1
  286. package/dist/webcomponents/p-1feebf9c.entry.js +0 -1
  287. package/dist/webcomponents/p-306aea52.entry.js +0 -1
  288. package/dist/webcomponents/p-6b05f357.entry.js +0 -1
  289. package/dist/webcomponents/p-71800e4c.js +0 -1
  290. package/dist/webcomponents/p-88d68804.entry.js +0 -1
  291. package/dist/webcomponents/p-8a6049ed.js +0 -1
  292. package/dist/webcomponents/p-bacd9d6e.entry.js +0 -1
  293. package/dist/webcomponents/p-f3ae3cb6.entry.js +0 -1
@@ -3,7 +3,7 @@ import { A as Api } from './Api.js';
3
3
  import { p as pagingDefaults } from './Pagination.js';
4
4
  import { a as PaymentBalanceTransaction } from './Payment.js';
5
5
  import './Payout.js';
6
- import { g as formatDate, j as formatTime, s as snakeCaseToHumanReadable, a as formatCurrency } from './utils2.js';
6
+ import { g as formatDate, k as formatTime, s as snakeCaseToHumanReadable, a as formatCurrency } from './utils2.js';
7
7
  import { c as config } from './config.js';
8
8
  import { d as defineCustomElement$3 } from './table.js';
9
9
  import { d as defineCustomElement$2 } from './pagination-menu2.js';
@@ -63,7 +63,7 @@ const PaymentBalanceTransactions = /*@__PURE__*/ proxyCustomElement(class Paymen
63
63
  this.loading = false;
64
64
  }
65
65
  render() {
66
- return (h(Host, { key: '6366d27ac3f4477ce6621de2139dba859fa02c0d' }, h("justifi-table", { key: '58c0c030b08bdbd71780927ba0d660cb145f44e0', columnData: [
66
+ return (h(Host, { key: 'b1280a1b4c01852333d7f7786c441556b2be7704' }, h("justifi-table", { key: 'eecf276d17dcf70cb6b52a1756d5699e90b11ea8', columnData: [
67
67
  ['Processed On', 'The date each transaction occurred'],
68
68
  ['Type', 'The type of each transaction'],
69
69
  ['ID', 'The unique identifier of each transaction'],
@@ -123,15 +123,15 @@ const PaymentForm = /*@__PURE__*/ proxyCustomElement(class PaymentForm extends H
123
123
  }
124
124
  }
125
125
  render() {
126
- return (h(Host, { key: '51685dec044c155f5be6310691f8803b5d00581e' }, h("form", { key: '47a440bca78caa50442b6667e8804e9d6be029c7', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: 'fda7820f0d102986acac8440e592fb188a798756', class: "col-12" }, h("justifi-payment-method-selector", { key: '4e927b0587d5973cdb2eaf00b76b7c889f6a269a', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: '827466d42e8ced48f4ffd5b934bccdc7318bfb1c', class: "col-12" }, h("justifi-payment-method-form", { key: '06ec15ce0dc540994f6aee72026658ea17b406c1', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
126
+ return (h(Host, { key: '6bb1d061cfc89f6b2c501b9d817316d5ffc157a3' }, h("form", { key: '4b53b443d2634bfb6c4c9fdeea8362928ec58a1f', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '53cf08073c4b1562f031633d830d67aad36bcb78', class: "col-12" }, h("justifi-payment-method-selector", { key: 'ab7c6e69cb9c1529359c3f318ae8db5a31208b39', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: '351d228acfb01c41217fc60b70d388bdc0a1b44e', class: "col-12" }, h("justifi-payment-method-form", { key: '4a705248eb3ca4b996ed04f27f0f45b06cca27e6', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
127
127
  if (el) {
128
128
  this.paymentMethodFormRef = el;
129
129
  }
130
- } })), h("div", { key: 'bd8083cdd92352307fc246e765a65a707609e25f', class: "col-12" }, h("justifi-billing-form", { key: 'b9d03353fbe161a8365a00e36e71d93a6429a3bb', legend: "Billing Info", ref: el => {
130
+ } })), h("div", { key: '4c3993a6bfcd2dc84ef021247d90b7613fb7a1d8', class: "col-12" }, h("justifi-billing-form", { key: 'e8ec1a4841da81fa35b1f059ab6e657cb3ecc164', legend: "Billing Info", ref: el => {
131
131
  if (el) {
132
132
  this.billingFormRef = el;
133
133
  }
134
- } })), h("slot", { key: 'df0331de9ea0f0849f6c787ac2bc1911f1f95174', name: 'insurance' }), h("div", { key: '20bf6667efabe7f7ac93febc798f861ae5dd083e', class: "col-12" }, h("button", { key: 'e057a4cae1543ba5b68f9071c7088b34bf743708', "data-testid": "submit-button", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, class: `btn btn-primary jfi-submit-button${this.isLoading ? ' jfi-submit-button-loading' : ''}` }, this.isLoading ?
134
+ } })), h("slot", { key: 'd4db0a59c4c1fa443d455b25320f310da4688464', name: 'insurance' }), h("div", { key: 'ef9170b0d2745093a7e37f0e00b1369fd77c48e0', class: "col-12" }, h("button", { key: '88ad7f14aacf59a7a07a383f8638d39abb051495', "data-testid": "submit-button", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, class: `btn btn-primary jfi-submit-button${this.isLoading ? ' jfi-submit-button-loading' : ''}` }, this.isLoading ?
135
135
  h("div", { class: "spinner-border spinner-border-sm", role: "status" }, h("span", { class: "visually-hidden" }, "Loading...")) :
136
136
  this.submitButtonText || 'Submit')))));
137
137
  }
@@ -121,7 +121,7 @@ const ProceedsList = /*@__PURE__*/ proxyCustomElement(class ProceedsList extends
121
121
  this.loading = false;
122
122
  }
123
123
  render() {
124
- return (h(Host, { key: 'a8a71597e9af52dc31faf77d3eb0adcae8d3345c' }, h("justifi-table", { key: '59a7f7eb404bc307f332e6d45b0162853f9bfcb1', rowClickHandler: (e) => {
124
+ return (h(Host, { key: 'e81d11c902a038a7d5ae41c6b3b9b84c0d4eda87' }, h("justifi-table", { key: 'c37b037ed04803465ecd2a026899eca133814033', rowClickHandler: (e) => {
125
125
  const clickedProceedID = e.target.closest('tr').dataset.rowEntityId;
126
126
  if (!clickedProceedID) {
127
127
  return;
@@ -99,7 +99,7 @@ const RefundForm = /*@__PURE__*/ proxyCustomElement(class RefundForm extends HTM
99
99
  }
100
100
  render() {
101
101
  var _a;
102
- return (h(Host, { key: '904b3965a477062c9272d22b62187234cdfbb9be' }, h("h1", { key: 'f4a12096e358ef3f6c26ddd3f3704b89e1c3a24e' }, "Refund"), this.refundInfoText && (h("div", { key: 'bc90d77a75a17a8df219c5ad422b76fcb9c44bac', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '66c4646a2cd642e48917b873654f621a574fd41b', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: '6a995e416aa16ab5e0570deb53099a3f15a76ef9', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: 'bff93e16857926396daf80cb6af3b2b39626f236', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '280883f9bb7885689fd6a4b93684d5ff12b65319', class: "form-group" }, h("form-control-monetary", { key: '3b62a66024103013b5f90e8dd3ca0411431185f8', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: '23da4119d94d7cc3556423ca497e9fcb4497570b', class: "form-group" }, h("form-control-text", { key: '2cf947b44484f6d641a302f478bb49f69c95a2c1', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '9b7e03f6019805d90e15c50ff42b03e0d8f64540', class: "form-group d-flex flex-row-reverse" }, h("button", { key: 'ee4d8ff62e1ad9baa56bd81886875eb3182d0a1f', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
102
+ return (h(Host, { key: 'c1204baf898f32af0e24be0bda2bb4a45b58ffdb' }, h("h1", { key: '80eb0250723dcd9cf55e00915132341608c89d81' }, "Refund"), this.refundInfoText && (h("div", { key: '72899f8bb5e8b13c63643f19a9a7af8ea5b959a3', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '4d49bb939bba038dab3a4450f0b4020e1ac278bf', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: '40f32b9e44c3310e0cf82bd5b48aea527d673e19', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '0145bb7fd4db003fc43a978998cc71df54963979', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '1fe07975dff4ec3368ff3090500a3fe21d76f2c9', class: "form-group" }, h("form-control-monetary", { key: 'edc395f0f3bfbb11cde509416d901476abbd08ca', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: 'c95bb3e1d63eac32a8aedfe2e60712c9fa5edadc', class: "form-group" }, h("form-control-text", { key: '77efb3d1e87fcb991f76b6e6f704bd36221e62d1', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '1e7502abf193475b82c614a60bf1f23549472328', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '41a7173e4ac2b7fb2515f382a13d772e3e68ab3b', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
103
103
  }
104
104
  static get style() { return JustifiRefundFormStyle0; }
105
105
  }, [1, "justifi-refund-form", {
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface JustifiSaveNewPaymentMethod extends Components.JustifiSaveNewPaymentMethod, HTMLElement {}
4
+ export const JustifiSaveNewPaymentMethod: {
5
+ prototype: JustifiSaveNewPaymentMethod;
6
+ new (): JustifiSaveNewPaymentMethod;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { S as SaveNewPaymentMethod, d as defineCustomElement$1 } from './save-new-payment-method.js';
2
+
3
+ const JustifiSaveNewPaymentMethod = SaveNewPaymentMethod;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { JustifiSaveNewPaymentMethod, defineCustomElement };
@@ -123,7 +123,7 @@ const SeasonInterruptionInsurance = /*@__PURE__*/ proxyCustomElement(class Seaso
123
123
  });
124
124
  }
125
125
  render() {
126
- return (h("justifi-season-interruption-insurance-core", { key: '0eb05bed71db4d90870063a4bfbdadd980fd2905', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
126
+ return (h("justifi-season-interruption-insurance-core", { key: 'fc932dc338e0fe28348d3cb24701d46315199ea1', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
127
127
  }
128
128
  }, [1, "justifi-season-interruption-insurance", {
129
129
  "authToken": [1, "auth-token"],
@@ -5,7 +5,7 @@ import './Payment.js';
5
5
  import './Payout.js';
6
6
  import { S as SubAccount } from './SubAccount.js';
7
7
  import { L as LoadingState, E as ErrorState, b as EntityHeadInfo, c as EntityHeadInfoItem } from './utils.js';
8
- import { m as MapSubAccountStatusToBadge, g as formatDate, j as formatTime } from './utils2.js';
8
+ import { n as MapSubAccountStatusToBadge, g as formatDate, k as formatTime } from './utils2.js';
9
9
  import { c as config } from './config.js';
10
10
  import { d as defineCustomElement$6 } from './details.js';
11
11
  import { d as defineCustomElement$5 } from './subaccount-account-details2.js';
@@ -71,7 +71,7 @@ const SubaccountDetails = /*@__PURE__*/ proxyCustomElement(class SubaccountDetai
71
71
  }
72
72
  render() {
73
73
  var _a, _b;
74
- return (h(Host, { key: 'f590781cda6211b0c8b865724da12742ad20b0d2' }, this.loading && LoadingState, !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.subaccount && this.onboardingData && (h("justifi-details", { key: 'a2e4d7450efbd32dce14f95c8032364b6399f4ab' }, h(EntityHeadInfo, { key: '99a75fbce11927970c55ecf21f2de6335a3dc69c', slot: 'head-info', badge: h("span", { slot: 'badge', innerHTML: MapSubAccountStatusToBadge(this.subaccount.status) }), title: this.subaccount.name }, h(EntityHeadInfoItem, { key: '866fd7877a57a0d4284b39d02dee10af7286e9cc', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.subaccount.created_at)} ${formatTime(this.subaccount.created_at)}` }), h(EntityHeadInfoItem, { key: 'b459464f8b5321f76ed323a0f4ce22816b3a3812', classes: "border-1 border-end", title: "Last Updated", value: `${formatDate(this.subaccount.updated_at)} ${formatTime(this.subaccount.updated_at)}` }), h(EntityHeadInfoItem, { key: 'c53731a01c3b90af184b9e6dc2ad0bdd2c49e595', title: "ID", value: this.subaccount.id })), h("div", { key: 'c74c2ae4df5d0b378dc0d24ea86383c2f858eb55', slot: 'detail-sections' }, h("subaccount-account-details", { key: 'abd3b8ad50cf7e9c3c3ee913bda837888f95450f', subaccount: this.subaccount, onboardingData: this.onboardingData }), h("subaccount-merchant-details", { key: '1fdddccced3ac4143413136a6f722768d59f2ab6', onboardingData: this.onboardingData }), h("subaccount-representative-details", { key: '7ac103837569675a29e70940b495c27241e2985f', data: (_a = this.onboardingData.payload) === null || _a === void 0 ? void 0 : _a.representative }), h("subaccount-owners-details", { key: 'd35cd7d1fe61881ff101f7bd52ddf2820bfc9d00', data: (_b = this.onboardingData.payload) === null || _b === void 0 ? void 0 : _b.owners }))))));
74
+ return (h(Host, { key: 'e8ea59f40b5ecb11510f2481b867626fa0519d36' }, this.loading && LoadingState, !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.subaccount && this.onboardingData && (h("justifi-details", { key: 'ee4566efe203baaddaa09902d8cf5219198a6cd1' }, h(EntityHeadInfo, { key: 'b063c9ef0649f118b00e4538b13a141620168427', slot: 'head-info', badge: h("span", { slot: 'badge', innerHTML: MapSubAccountStatusToBadge(this.subaccount.status) }), title: this.subaccount.name }, h(EntityHeadInfoItem, { key: '3ab38d25fd53cba0e33da35d952459e2db644a4d', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.subaccount.created_at)} ${formatTime(this.subaccount.created_at)}` }), h(EntityHeadInfoItem, { key: 'c084194ddb1e99bbc78733dd9f651f13b42f39c2', classes: "border-1 border-end", title: "Last Updated", value: `${formatDate(this.subaccount.updated_at)} ${formatTime(this.subaccount.updated_at)}` }), h(EntityHeadInfoItem, { key: 'c8b1be96a054a84628eab49aad3ffaca768e4621', title: "ID", value: this.subaccount.id })), h("div", { key: '3b85e0eb44e58be561f274996bbdf98cf3069cd3', slot: 'detail-sections' }, h("subaccount-account-details", { key: 'c0e5403cb63591fa37025868f7704513d032ce4f', subaccount: this.subaccount, onboardingData: this.onboardingData }), h("subaccount-merchant-details", { key: '66833414a707ee82d719799fafb56e71b6defbc7', onboardingData: this.onboardingData }), h("subaccount-representative-details", { key: '63b9a1533a475de5bd8d2f4c4ee0ff4d9a118cff', data: (_a = this.onboardingData.payload) === null || _a === void 0 ? void 0 : _a.representative }), h("subaccount-owners-details", { key: '7ccab7251f6456c98b7e08716e5349df479deb10', data: (_b = this.onboardingData.payload) === null || _b === void 0 ? void 0 : _b.owners }))))));
75
75
  }
76
76
  static get watchers() { return {
77
77
  "subaccountId": ["updateOnPropChange"],
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { S as SubAccount } from './SubAccount.js';
3
- import { m as MapSubAccountStatusToBadge } from './utils2.js';
3
+ import { n as MapSubAccountStatusToBadge } from './utils2.js';
4
4
  import { A as Api } from './Api.js';
5
5
  import { p as pagingDefaults } from './Pagination.js';
6
6
  import './Payment.js';
@@ -63,7 +63,7 @@ const SubaccountsList = /*@__PURE__*/ proxyCustomElement(class SubaccountsList e
63
63
  this.loading = false;
64
64
  }
65
65
  render() {
66
- return (h(Host, { key: 'c2a490790e861ab58c02caaac8238f4c3c7b6aa9' }, h("justifi-table", { key: '67367596ec93a4b3488318bf5be935d1937f3bce', rowClickHandler: e => {
66
+ return (h(Host, { key: 'c967447440e0ed6993e6a96ea02ef9cd72dfaaec' }, h("justifi-table", { key: 'f1675c85915a330510be1e3469a712d7cececa0b', rowClickHandler: e => {
67
67
  const clickSubAccountId = e.target.closest('tr').dataset.rowEntityId;
68
68
  if (!clickSubAccountId) {
69
69
  return;
@@ -1,11 +1,12 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { c as config } from './config.js';
3
- import { d as defineCustomElement$6 } from './form-control-error-text2.js';
4
- import { d as defineCustomElement$5 } from './form-control-help-text2.js';
5
- import { d as defineCustomElement$4 } from './form-control-select2.js';
6
- import { d as defineCustomElement$3 } from './form-control-text2.js';
7
- import { d as defineCustomElement$2 } from './billing-form.js';
8
- import { d as defineCustomElement$1 } from './payment-method-form.js';
3
+ import { d as defineCustomElement$7 } from './form-control-error-text2.js';
4
+ import { d as defineCustomElement$6 } from './form-control-help-text2.js';
5
+ import { d as defineCustomElement$5 } from './form-control-select2.js';
6
+ import { d as defineCustomElement$4 } from './form-control-text2.js';
7
+ import { d as defineCustomElement$3 } from './billing-form.js';
8
+ import { d as defineCustomElement$2 } from './payment-method-form.js';
9
+ import { d as defineCustomElement$1 } from './save-new-payment-method.js';
9
10
 
10
11
  const PaymentMethodTypeLabels = {
11
12
  bankAccount: 'New bank account',
@@ -20,19 +21,27 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
20
21
  this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
21
22
  };
22
23
  this.iframeOrigin = config.iframeOrigin;
23
- this.clientId = undefined;
24
+ this.authToken = undefined;
24
25
  this.accountId = undefined;
25
26
  this.paymentMethodOption = undefined;
27
+ this.paymentMethodGroupId = undefined;
26
28
  this.isSelected = undefined;
29
+ this.saveNewPaymentMethodChecked = false;
27
30
  }
28
- async resolvePaymentMethod() {
31
+ handleCheckboxChanged(event) {
32
+ this.saveNewPaymentMethodChecked = event.detail;
33
+ }
34
+ async fillBillingForm(fields) {
35
+ this.billingFormRef.fill(fields);
36
+ }
37
+ async resolvePaymentMethod(insuranceValidation) {
29
38
  var _a, _b;
30
39
  if (!this.paymentMethodFormRef || !this.billingFormRef)
31
40
  return;
32
- const billingFormValidation = await this.billingFormRef.validate();
33
- const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
34
- if (!billingFormValidation.isValid || !paymentMethodFormValidation.isValid)
35
- return;
41
+ const isValid = await this.validate();
42
+ if (!isValid || !insuranceValidation.isValid) {
43
+ return { validationError: true };
44
+ }
36
45
  const tokenizeResponse = await this.tokenize();
37
46
  if (tokenizeResponse.error) {
38
47
  return { error: tokenizeResponse.error };
@@ -42,11 +51,22 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
42
51
  return { token: ((_a = tokenizeRessponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeRessponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token) };
43
52
  }
44
53
  }
54
+ async validate() {
55
+ const billingFormValidation = await this.billingFormRef.validate();
56
+ const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
57
+ return billingFormValidation.isValid && paymentMethodFormValidation.isValid;
58
+ }
45
59
  async tokenize() {
46
60
  try {
47
61
  const billingFormFieldValues = await this.billingFormRef.getValues();
48
- const paymentMethodData = Object.assign({}, billingFormFieldValues);
49
- const clientId = this.clientId;
62
+ let paymentMethodData;
63
+ if (this.saveNewPaymentMethodChecked) {
64
+ paymentMethodData = Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupId });
65
+ }
66
+ else {
67
+ paymentMethodData = Object.assign({}, billingFormFieldValues);
68
+ }
69
+ const clientId = this.authToken;
50
70
  const tokenizeResponse = await this.paymentMethodFormRef.tokenize(clientId, paymentMethodData, this.accountId);
51
71
  return tokenizeResponse;
52
72
  }
@@ -56,25 +76,28 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
56
76
  }
57
77
  showNewPaymentMethodForm() {
58
78
  var _a;
59
- return (h("div", { class: "mt-2 pb-4 border-bottom" }, h("div", { class: "mb-3" }, h("justifi-payment-method-form", { ref: (el) => (this.paymentMethodFormRef = el), "payment-method-form-type": (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, "iframe-origin": this.iframeOrigin })), h("h3", { class: "fs-6 fw-bold lh-lg mb-4" }, "Billing address"), h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el) })));
79
+ return (h("div", { class: "mt-2 pb-4 border-bottom" }, h("div", { class: "mb-3" }, h("justifi-payment-method-form", { ref: (el) => (this.paymentMethodFormRef = el), "payment-method-form-type": (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, "iframe-origin": this.iframeOrigin })), h("h3", { class: "fs-6 fw-bold lh-lg mb-4" }, "Billing address"), h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el) }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
60
80
  }
61
81
  render() {
62
82
  var _a, _b, _c, _d;
63
- return (h("div", { key: '8bddfe713987ded758c657639f2fde20c6a3e9a8', class: "payment-method" }, h("div", { key: '972cd6066acdc0414daae542d5dc4ef17414b85e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: 'f15d6d8eeeda7c016885fc1c1d0a509fb774894f', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '1b5d421bb919f815932387b1047163d7686d17c6', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
83
+ return (h("div", { key: '7a9d21ea2d343fbbf56de456bb0275f25e7538a1', class: "payment-method" }, h("div", { key: '84ed7ef64a6cc1d6936b182fd4139e8dceb497ec', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '9dd41da85d45145f6054a28e216c530dd6a140e8', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '7e1a273a1ca12f07c9b4ee8a5c6eebcf713362e8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
64
84
  }
65
85
  }, [0, "justifi-new-payment-method", {
66
86
  "iframeOrigin": [1025, "iframe-origin"],
67
- "clientId": [1, "client-id"],
87
+ "authToken": [1, "auth-token"],
68
88
  "accountId": [1, "account-id"],
69
89
  "paymentMethodOption": [16],
90
+ "paymentMethodGroupId": [1, "payment-method-group-id"],
70
91
  "isSelected": [4, "is-selected"],
92
+ "saveNewPaymentMethodChecked": [32],
93
+ "fillBillingForm": [64],
71
94
  "resolvePaymentMethod": [64]
72
- }]);
95
+ }, [[0, "checkboxChanged", "handleCheckboxChanged"]]]);
73
96
  function defineCustomElement() {
74
97
  if (typeof customElements === "undefined") {
75
98
  return;
76
99
  }
77
- const components = ["justifi-new-payment-method", "form-control-error-text", "form-control-help-text", "form-control-select", "form-control-text", "justifi-billing-form", "justifi-payment-method-form"];
100
+ const components = ["justifi-new-payment-method", "form-control-error-text", "form-control-help-text", "form-control-select", "form-control-text", "justifi-billing-form", "justifi-payment-method-form", "justifi-save-new-payment-method"];
78
101
  components.forEach(tagName => { switch (tagName) {
79
102
  case "justifi-new-payment-method":
80
103
  if (!customElements.get(tagName)) {
@@ -83,30 +106,35 @@ function defineCustomElement() {
83
106
  break;
84
107
  case "form-control-error-text":
85
108
  if (!customElements.get(tagName)) {
86
- defineCustomElement$6();
109
+ defineCustomElement$7();
87
110
  }
88
111
  break;
89
112
  case "form-control-help-text":
90
113
  if (!customElements.get(tagName)) {
91
- defineCustomElement$5();
114
+ defineCustomElement$6();
92
115
  }
93
116
  break;
94
117
  case "form-control-select":
95
118
  if (!customElements.get(tagName)) {
96
- defineCustomElement$4();
119
+ defineCustomElement$5();
97
120
  }
98
121
  break;
99
122
  case "form-control-text":
100
123
  if (!customElements.get(tagName)) {
101
- defineCustomElement$3();
124
+ defineCustomElement$4();
102
125
  }
103
126
  break;
104
127
  case "justifi-billing-form":
105
128
  if (!customElements.get(tagName)) {
106
- defineCustomElement$2();
129
+ defineCustomElement$3();
107
130
  }
108
131
  break;
109
132
  case "justifi-payment-method-form":
133
+ if (!customElements.get(tagName)) {
134
+ defineCustomElement$2();
135
+ }
136
+ break;
137
+ case "justifi-save-new-payment-method":
110
138
  if (!customElements.get(tagName)) {
111
139
  defineCustomElement$1();
112
140
  }
@@ -127,9 +127,6 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
127
127
  get identityEndpoint() {
128
128
  return this.ownerId ? `entities/identity/${this.ownerId}` : 'entities/identity';
129
129
  }
130
- get identificationNumberLabel() {
131
- return this.owner.ssn_last4 ? 'Update SSN (optional)' : 'SSN';
132
- }
133
130
  get formTitle() {
134
131
  return this.ownerId ? 'Edit Business Owner' : 'Add Business Owner';
135
132
  }
@@ -192,8 +189,8 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
192
189
  }
193
190
  render() {
194
191
  const ownerDefaultValue = this.formController.getInitialValues();
195
- return (h(Host, { key: 'a4c0404708538ef03ababd0b4485a92a371c8508', exportparts: "label,input,input-invalid" }, h("form", { key: 'e465f7e31313a7262fd39d4dcc1b3cced69a1ce1', onSubmit: this.validateAndSubmit }, h("fieldset", { key: 'd2a754d0e4cc5cdc400a2baf681fb0ecf92adfdd' }, h("legend", { key: 'dc0af522c7e8b4e1710b752e7ba2887c5293986a', class: 'fw-semibold fs-5' }, this.formTitle), h("br", { key: '0c7fee0bb6d9739264c69e7fa4152ca5dea62ad6' }), h("div", { key: '45f52e4e0a4467d91c90a91a9aa8ce59613075f7', class: 'row gy-3' }, h("div", { key: '3906bcd7cfabbd2d39e53d4db53e798e5d003d35', class: "col-12 col-md-6" }, h("form-control-text", { key: '5586f24927c3cdf32aa2c3ae8e0b99812a677fdd', name: "name", label: "Full Name", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'bc477162d20f90187342ae4cf9477d68a095f0e0', class: "col-12 col-md-4" }, h("form-control-text", { key: '5c166558fd47ab8e719ab7739985d1efe739707e', name: "title", label: "Title", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: 'b49969e3e38ee42e7f96e1177e61d0eb32f3fec4', class: "col-12 col-md-6" }, h("form-control-text", { key: '0b044ea6fee3b3e9edf874f045a16769ca165822', name: "email", label: "Email Address", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'bb754754a5c6d300cd4ec344e973c0a4a80be0ec', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '6865f3458aa79f5f0b54b7ebf13b6927c9df3928', name: "phone", label: "Phone Number", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '75dc0f7b0c61f15beaef5045f97a52d7fa99066f', class: "col-12 col-md-4" }, h("form-control-date", { key: '899c24b2b9fb47c16ac0a22213f11c23dfde035b', name: "dob_full", label: "Birth Date", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { key: '1196001b3abc8ad48872ab594451412ff2bdbf85', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '4897aac1a0354778b34a8e5d57d6bee9710572b9', name: "identification_number", label: this.identificationNumberLabel, defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: 'e74a8ce68241b1ad067795724739f226383f0bcb', class: "col-12" }, h("justifi-identity-address-form", { key: '69dbc687d0deb6349825dbbfa1e4fdd58926ba21', errors: this.errors.address, defaultValues: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })), h("div", { key: '480f6ddc304297c65b2cebe193a1136daed64c11', class: "container d-flex gap-2" }, h("button", { key: 'f57a245d2cd6895383c770faac2f315198608a93', type: "submit", class: `btn btn-primary jfi-submit-button${this.isLoading ? ' jfi-submit-button-loading' : ''}`, onClick: () => this.handleAddOwner(), disabled: this.isLoading }, this.isLoading ? LoadingSpinner() : this.submitButtonText), this.showRemoveButton &&
196
- h("button", { key: 'a06b9eff52b98af51abdff063c5d047a6d787183', type: "button", class: "btn btn-danger", onClick: () => this.handleRemoveOwner() }, "Remove owner"))), h("hr", { key: '0e5af7210f354286c1bb47acd3dfe5ba5338b3fb' })))));
192
+ return (h(Host, { key: 'eb92a5570638938a9aa2edec8d63d92ab127cb3e', exportparts: 'label,input,input-invalid' }, h("form", { key: 'f8ac2519ce5908045ca3ba04212406c64bd65622', onSubmit: this.validateAndSubmit }, h("fieldset", { key: 'ba8e81033034ac31151f6d920bcb19d825195bb5' }, h("legend", { key: '6d77419ef49152d3fe7b08804c3c61598ce44122', class: 'fw-semibold fs-5' }, this.formTitle), h("br", { key: '28135226e296cfbdc5971328925ab39c7359ceac' }), h("div", { key: 'daf7896bf801e4b5af710ede94059105a441dd9a', class: 'row gy-3' }, h("div", { key: 'e50be4e2f648e9be2fce68aa93c87f67c945a614', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'e295419d4a0f9a777a4eb1f4f7365c67cae0a478', name: 'name', label: 'Full Name', defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '315cd57b8e378d7252029dcede76822053bc292f', class: 'col-12 col-md-4' }, h("form-control-text", { key: '88e61763b61a695afd4175d1d772b2a44abad599', name: 'title', label: 'Title', defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '1d15f0fd4fd9c4152cfc8fc5f37a7cec6ff376f4', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'ffd5c799986ff594e61069198454d16d7b36d286', name: 'email', label: 'Email Address', defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '40f44c917379bfff2c60361903559053c994e160', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: '79df11699b9a59c8887c041e8dc744d2b2c5affc', name: 'phone', label: 'Phone Number', defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '0d78cbd8638cff7fa7981e451c66fdc983306dbf', class: 'col-12 col-md-4' }, h("form-control-date", { key: '29c8f7929489424b967e0ac2b6476e345c9fa035', name: 'dob_full', label: 'Birth Date', defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { key: 'a11ef411b2bcdb07801fe8448fd29f6533a3e0ad', class: 'col-12 col-md-8' }, h("form-control-number-masked", { key: '1630d85878b798245b2303f45c2eef101eae25fc', name: 'identification_number', label: 'SSN', defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: 'b134c3a8bc92f3edd099b44e97926c6bee2a6e02', class: 'col-12' }, h("justifi-identity-address-form", { key: '68e9763e33025502e0290fdf84353bdf039bc7df', errors: this.errors.address, defaultValues: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })), h("div", { key: 'c5238b99b02d82e3e94a96ae282d0be11dd65206', class: 'container d-flex gap-2' }, h("button", { key: 'e57ff503567de6c13a7657c2ac7bb31593765169', type: 'submit', class: `btn btn-primary jfi-submit-button${this.isLoading ? ' jfi-submit-button-loading' : ''}`, onClick: () => this.handleAddOwner(), disabled: this.isLoading }, this.isLoading ? LoadingSpinner() : this.submitButtonText), this.showRemoveButton &&
193
+ h("button", { key: 'f7c3376b98e5727dd7a37f6148005da398557484', type: 'button', class: 'btn btn-danger', onClick: () => this.handleRemoveOwner() }, "Remove owner"))), h("hr", { key: '818dc67030ba2c4789b353a663a82309bfd6723f' })))));
197
194
  }
198
195
  static get watchers() { return {
199
196
  "isLoading": ["loadingWatcher"]
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "4.16.0";
2
+ const version = "4.17.0";
3
3
  const description = "JustiFi Web Components";
4
4
  const collection = "dist/collection/collection-manifest.json";
5
5
  const main = "dist/index.cjs.js";
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { M as MapPaymentStatusToBadge, a as formatCurrency, g as formatDate, j as formatTime, s as snakeCaseToHumanReadable } from './utils2.js';
2
+ import { M as MapPaymentStatusToBadge, a as formatCurrency, g as formatDate, k as formatTime, s as snakeCaseToHumanReadable } from './utils2.js';
3
3
  import { L as LoadingState, E as ErrorState, b as EntityHeadInfo, c as EntityHeadInfoItem, D as DetailSectionTitle, a as DetailItem, C as CodeBlock } from './utils.js';
4
4
  import { d as defineCustomElement$1 } from './details.js';
5
5
 
@@ -45,14 +45,14 @@ const PaymentDetailsCore = /*@__PURE__*/ proxyCustomElement(class PaymentDetails
45
45
  }
46
46
  render() {
47
47
  var _a;
48
- return (h(Host, { key: 'ec842a977f2a555593343525b8cdd3500d0f148e' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
49
- this.payment && (h("justifi-details", { key: '3912cae9ac811efdcaa7b7f59ec692c5842beb2f', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '174e871b7707a3104f9c17cfa3bab3059ae47cb7', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPaymentStatusToBadge(this.payment.status) }), title: `${formatCurrency(this.payment.amount)} ${(_a = this.payment) === null || _a === void 0 ? void 0 : _a.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: '229e7bf9c63d927127a45e74d73fb3827ab0cf96', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: 'c00c1f43c07b23aca4750de8b7de1ff2c48b0d1b', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: '020d54a6f00e32b873c50e9abc917392e5059db9', title: "ID", value: this.payment.id })), h("div", { key: '33b06853774b9f7cb6b65a6ea1290f857b0841ba', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'b7ea9ffe4b40d324c9bf61abeff2d2d3ba297a93', sectionTitle: "Details" }), h("div", { key: '42dc078ab22e604727da23acc52823196e6a8f1e', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '07a8db366a138b85c05070deff2acb20ec01c22d', title: "Amount", value: formatCurrency(this.payment.amount) }), h(DetailItem, { key: '6b7a4d3f037730ec4125f22801bea7d5ff44c749', title: "Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { key: '3ba08759253568578b25a5e19b4e4a3d79b6249f', title: "Refunded", value: formatCurrency(this.payment.amount_refunded) }), h(DetailItem, { key: '9f932a91efb8edf352c96fa5aaa3707faedba147', title: "Net", value: formatCurrency(this.payment.balance) }), h(DetailItem, { key: '484789625ec3ed8844bf84679bc9946e909aea63', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: 'a7197b9e3fd37eb3e31159f00367fd24e6f686e9', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: 'b4a8f8dc1a02576bd81b578c70899f9e831f9b9e', title: "Processing Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { key: 'ab67436984fd0c63d197d6dba32fe68811f1d5ed', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: 'eb98a0f0c7b9829f4bac79e8405a764a50b3045b', title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
50
- h(DetailSectionTitle, { key: '2a9f8477253316d439b1f008d7a0e44057483b84', sectionTitle: "Payment Method" }),
51
- h("div", { key: '4d36fda4d79e57834da25d0d14ac40b1524c7528', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'a6c4903a325084e757e5d3a0b7d28f1367d06b2e', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: 'afa4ad9827a3106eda5c3c0d699a0f44a357f1c2', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '89e9b2d4050009e8110ca2607a8faa4077b65928', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: 'c3fa744314ee8c7ed4f337158b9172fa41f40067', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: '8927a9c1102d754966d267e59e8f77fcbffc9ebe', title: "Cardholder", value: this.payment.payment_method.payersName }))
48
+ return (h(Host, { key: 'bd8ae58c2bdc531eaf600ee1496cd7c83e08e65e' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
49
+ this.payment && (h("justifi-details", { key: '63b8181d5ee4bf0de531ce03db9246ed6ae0fb0a', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '8081e264446dad39ddfc047f532ee6c14132b479', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPaymentStatusToBadge(this.payment.status) }), title: `${formatCurrency(this.payment.amount)} ${(_a = this.payment) === null || _a === void 0 ? void 0 : _a.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: '9dff116d0a3d458cded839834c1709082064c59b', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '8e3cf65ddc5200d9c53acee5c612512f82313439', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: 'e290ebaee2819eb9028b59dbd8999aa9aa1f633a', title: "ID", value: this.payment.id })), h("div", { key: '9450cfae9e007c9ee51e5afdfe528ddde0b0f20c', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'aa7e4d50f0e5f9c018c6b992b37c72d77bdc13c5', sectionTitle: "Details" }), h("div", { key: '427c2d09562f414f4addc4be7a888c737974aa4e', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '56d1a94073dfd1d188c2ffaae3a04718c49ba7e4', title: "Amount", value: formatCurrency(this.payment.amount) }), h(DetailItem, { key: 'a43806e99a08c291b0d9549c1e190be3f1ab859e', title: "Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { key: '1aac77568d812bfc0c59dbe32de7057c91e84c77', title: "Refunded", value: formatCurrency(this.payment.amount_refunded) }), h(DetailItem, { key: 'b872e82bc21f8861420a88acaa17fcf21242f8cc', title: "Net", value: formatCurrency(this.payment.balance) }), h(DetailItem, { key: '4938fd45955e365069699f02520315e2ca644141', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: 'df86a116579d10f6fb881d7aa6b5df09e0fbbb3f', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '9cdda05db1f2fd2de06efb49dcd91cc04a4bcd6f', title: "Processing Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { key: 'e85406a153ab40873a32ce80d915b4985bd265ec', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: '5d73dfa6965e6f10c2cce84538e8ff6652267525', title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
50
+ h(DetailSectionTitle, { key: 'bd668c1a85d1b70e13ea72f2aa1ce507900b8282', sectionTitle: "Payment Method" }),
51
+ h("div", { key: '5d48d49397c47b72ebad7acccce02fe8668a036b', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'f126c5c16e80236e14daf9cf08cec9f87e90b0c3', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: '6c067dc28b2927f4154da58aaedc020458c865a9', title: "Payment Type", value: "Card" }), h(DetailItem, { key: 'a270e68e938e00bfbb0ff8ceeb7146b5067c14a8', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: '9fb53acc8b99e50e7a512fa6386251e30218bfd2', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: 'fedeaed5473baabd39571bf4ae85811e5ee6b7a1', title: "Cardholder", value: this.payment.payment_method.payersName }))
52
52
  ], this.payment.payment_method.bank_account && [
53
- h(DetailSectionTitle, { key: 'cb93b009acbbb0ffcf7ca2bb62d1bb994402a94d', sectionTitle: "Payment Method" }),
54
- h("div", { key: 'c415068d776d72ae855e44a2b4af34e5c03a9c98', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'bb29fbc25854f3e0441cc68c97f200aa47c5f124', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: '83686af8f7a1cf2c4658eb3e8703352e05cb35aa', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: '9097af01a1bef3a91232fa7aec363bf1028efc12', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '6f3202a94628356b05147aebd7f15614f7728ef8', title: "Account Owner", value: this.payment.payment_method.payersName }))
55
- ], h(DetailSectionTitle, { key: 'cc497bb5a2e2a4c3a69cc5807aaf3c493a55eb1c', sectionTitle: 'Metadata' }), h("div", { key: '46611a1528b5edc4a3a22448f5990a44531d3f7b', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '33b3103dfb4236119c187862a1856fd15111049d', metadata: this.payment.metadata })))))));
53
+ h(DetailSectionTitle, { key: 'a7f9afc09d110fb8bb9eb7b186d853502691cd18', sectionTitle: "Payment Method" }),
54
+ h("div", { key: '11cc2b588e33d76994daac92e7ed38c410e73354', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '9eae0589fac515298613ad8eaf63733de0f87df8', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: '15e1c30ff5dd7f47739f93bb7e55cb3d01dbe874', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: '7b8694aec9a33412cc923039f4f5c2dd6c8e3582', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: 'cc4ea781cb71b7bad5ab8070c23b8a7613785ec6', title: "Account Owner", value: this.payment.payment_method.payersName }))
55
+ ], h(DetailSectionTitle, { key: '32d72a16d74b4f2c86375ee441ad3c37649a8dd4', sectionTitle: 'Metadata' }), h("div", { key: 'f8ba0111eb568c65c3c7f2c980dea5dbaa29feea', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'b687420b7b51d0254bf08f423ce661fbf1805d36', metadata: this.payment.metadata })))))));
56
56
  }
57
57
  static get watchers() { return {
58
58
  "getPaymentDetails": ["updateOnPropChange"]