@justifi/webcomponents 4.16.0 → 4.18.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 (445) hide show
  1. package/dist/cjs/{Analytics-423b2bb5.js → Analytics-d4aa8c07.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 +13 -13
  4. package/dist/cjs/{business-additional-questions-schema-606d1292.js → business-additional-questions-schema-cf545610.js} +2 -2
  5. package/dist/cjs/business-details-core.cjs.entry.js +6 -9
  6. package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
  7. package/dist/cjs/form-control-checkbox_5.cjs.entry.js +10 -13
  8. package/dist/cjs/form-control-date.cjs.entry.js +43 -0
  9. package/dist/cjs/form-control-error-text_2.cjs.entry.js +36 -0
  10. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  11. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  12. package/dist/cjs/{form-control-date_3.cjs.entry.js → form-control-number-masked_2.cjs.entry.js} +3 -40
  13. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  14. package/dist/cjs/{form-control-error-text_4.cjs.entry.js → form-control-select_2.cjs.entry.js} +3 -33
  15. package/dist/cjs/get-payout-csv-e4e4771a.js +48 -0
  16. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  17. package/dist/cjs/{index-b4498996.js → index-fb499e95.js} +15 -3
  18. package/dist/cjs/{insurance-state-3f044af7.js → insurance-state-80e24caf.js} +1 -1
  19. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +9 -12
  20. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  21. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +16 -1680
  22. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
  23. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
  24. package/dist/cjs/justifi-business-list.cjs.entry.js +4 -7
  25. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  26. package/dist/cjs/justifi-checkout-core.cjs.entry.js +21 -9
  27. package/dist/cjs/justifi-checkout.cjs.entry.js +12 -4
  28. package/dist/cjs/justifi-details.cjs.entry.js +4 -7
  29. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  30. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +73 -28
  31. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +4 -7
  32. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
  33. package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -8
  34. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1688 -0
  35. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +3 -3
  36. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +7 -2
  37. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -8
  38. package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
  39. package/dist/cjs/justifi-payout-details.cjs.entry.js +15 -10
  40. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -12
  41. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +4 -7
  42. package/dist/cjs/justifi-refund-form.cjs.entry.js +4 -3
  43. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +14 -9
  44. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -3
  45. package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
  46. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +6 -9
  47. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +4 -4
  48. package/dist/cjs/justifi-table_2.cjs.entry.js +8 -12
  49. package/dist/cjs/loader.cjs.js +2 -2
  50. package/dist/cjs/{package-b40227dd.js → package-5fee1ffb.js} +1 -1
  51. package/dist/cjs/{payload-parsers-6e4cf5d7.js → payload-parsers-1cbc3b57.js} +3 -1
  52. package/dist/cjs/payment-details-core.cjs.entry.js +11 -14
  53. package/dist/cjs/payments-list-core.cjs.entry.js +7 -7
  54. package/dist/cjs/payout-details-core.cjs.entry.js +19 -8
  55. package/dist/cjs/payouts-list-core.cjs.entry.js +29 -8
  56. package/dist/cjs/{schema-validations-9668fd79.js → schema-validations-2733de42.js} +3 -4
  57. package/dist/cjs/styled-host-b8bed12a.js +14 -0
  58. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +7 -23
  59. package/dist/cjs/subaccount-bank-details.cjs.entry.js +3 -7
  60. package/dist/cjs/subaccount-terms-details.cjs.entry.js +3 -7
  61. package/dist/cjs/{utils-17869710.js → utils-80191fbe.js} +6 -0
  62. package/dist/cjs/{utils-fd644316.js → utils-8c3bf659.js} +13 -4
  63. package/dist/cjs/{utils-0c3168ef.js → utils-c1d2e426.js} +1 -1
  64. package/dist/cjs/webcomponents.cjs.js +2 -2
  65. package/dist/collection/api/Checkout.js +0 -1
  66. package/dist/collection/api/services/payout.service.js +5 -0
  67. package/dist/collection/assets/download-icon.js +2 -0
  68. package/dist/collection/collection-manifest.json +1 -0
  69. package/dist/collection/components/billing-form/billing-form.css +2 -8162
  70. package/dist/collection/components/billing-form/billing-form.js +5 -4
  71. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -3
  72. package/dist/collection/components/business-details/business-details-core.js +5 -14
  73. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -3
  74. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +2 -3
  75. package/dist/collection/components/business-details/owner-details/owner-details.js +2 -3
  76. package/dist/collection/components/business-details/representative-details/representative-details.js +2 -3
  77. package/dist/collection/components/business-details/shared-business-details.css +3 -0
  78. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  79. package/dist/collection/components/business-forms/business-form/business-form.css +5 -8768
  80. package/dist/collection/components/business-forms/business-form/business-form.js +4 -3
  81. package/dist/collection/components/business-forms/owner-form/owner-form.js +2 -5
  82. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  83. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -2
  84. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -4
  85. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +14 -2
  86. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +4 -9155
  87. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -12
  88. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.css +5 -763
  89. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +2 -2
  90. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
  91. package/dist/collection/components/business-forms/schemas/schema-helpers.js +0 -1
  92. package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -4
  93. package/dist/collection/components/business-forms/utils/payload-parsers.js +2 -0
  94. package/dist/collection/components/business-list/business-list.js +3 -12
  95. package/dist/collection/components/checkout/checkout-core.css +3 -8147
  96. package/dist/collection/components/checkout/checkout-core.js +68 -8
  97. package/dist/collection/components/checkout/checkout.js +59 -1
  98. package/dist/collection/components/checkout/form-check-input.css +20 -0
  99. package/dist/collection/components/checkout/header.css +4 -0
  100. package/dist/collection/components/checkout/new-payment-method.js +95 -15
  101. package/dist/collection/components/checkout/payment-method-option-utils.js +2 -0
  102. package/dist/collection/components/checkout/payment-method-options.css +1 -7080
  103. package/dist/collection/components/checkout/payment-method-options.js +101 -17
  104. package/dist/collection/components/checkout/save-new-payment-method.js +38 -0
  105. package/dist/collection/components/checkout/saved-payment-method.js +12 -5
  106. package/dist/collection/components/checkout/sezzle-payment-method.js +12 -5
  107. package/dist/collection/components/details/details.js +3 -12
  108. package/dist/collection/components/form/form-control-checkbox.js +1 -1
  109. package/dist/collection/components/form/form-control-date.js +1 -1
  110. package/dist/collection/components/form/form-control-file.js +1 -1
  111. package/dist/collection/components/form/form-control-monetary.js +1 -1
  112. package/dist/collection/components/form/form-control-number-masked.js +1 -1
  113. package/dist/collection/components/form/form-control-number.js +1 -1
  114. package/dist/collection/components/form/form-control-select.js +1 -1
  115. package/dist/collection/components/form/form-control-text.js +1 -1
  116. package/dist/collection/components/form/utils.js +12 -3
  117. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
  118. package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +1 -573
  119. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.css +6 -8183
  120. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +6 -7
  121. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -2
  122. package/dist/collection/components/pagination-menu/pagination-menu.js +3 -14
  123. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +3 -13
  124. package/dist/collection/components/payment-details/payment-details-core.js +9 -18
  125. package/dist/collection/components/payment-form/payment-form.css +3 -2513
  126. package/dist/collection/components/payment-form/payment-form.js +6 -5
  127. package/dist/collection/components/payment-form/payment-method-selector.css +5 -1881
  128. package/dist/collection/components/payment-form/payment-method-selector.js +2 -3
  129. package/dist/collection/components/payments-list/payments-list-core.js +6 -12
  130. package/dist/collection/components/payments-list/payments-list.js +3 -0
  131. package/dist/collection/components/payout-details/get-payout-csv.js +19 -0
  132. package/dist/collection/components/payout-details/payout-details-core.js +37 -12
  133. package/dist/collection/components/payout-details/payout-details.js +11 -4
  134. package/dist/collection/components/payouts-list/payouts-list-core.js +45 -14
  135. package/dist/collection/components/payouts-list/payouts-list.js +14 -6
  136. package/dist/collection/components/proceeds-list/proceeds-list.js +3 -12
  137. package/dist/collection/components/refund-form/refund-form.css +1 -7737
  138. package/dist/collection/components/refund-form/refund-form.js +4 -3
  139. package/dist/collection/components/skeleton/skeleton.css +1 -573
  140. package/dist/collection/components/skeleton/skeleton.js +2 -2
  141. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +1 -12
  142. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +1 -12
  143. package/dist/collection/components/subaccount-details/subaccount-details.js +3 -12
  144. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +1 -12
  145. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +1 -12
  146. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +1 -12
  147. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +1 -12
  148. package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
  149. package/dist/collection/components/table/table.css +0 -8085
  150. package/dist/collection/components/table/table.js +3 -4
  151. package/dist/collection/utils/styled-host/styled-host.js +6 -0
  152. package/dist/collection/utils/utils.js +5 -0
  153. package/dist/docs.json +546 -64
  154. package/dist/esm/{Analytics-17c33e9e.js → Analytics-29fac206.js} +1 -1
  155. package/dist/esm/{SubAccount-8bf9cb0c.js → SubAccount-7fcb1450.js} +1 -1
  156. package/dist/esm/additional-questions-details_5.entry.js +13 -13
  157. package/dist/esm/{business-additional-questions-schema-b00a73ba.js → business-additional-questions-schema-956e3caf.js} +2 -2
  158. package/dist/esm/business-details-core.entry.js +6 -9
  159. package/dist/esm/form-alert_5.entry.js +3 -3
  160. package/dist/esm/form-control-checkbox_5.entry.js +10 -13
  161. package/dist/esm/form-control-date.entry.js +39 -0
  162. package/dist/esm/form-control-error-text_2.entry.js +31 -0
  163. package/dist/esm/form-control-file.entry.js +2 -2
  164. package/dist/esm/form-control-monetary.entry.js +2 -2
  165. package/dist/esm/{form-control-date_3.entry.js → form-control-number-masked_2.entry.js} +4 -40
  166. package/dist/esm/form-control-number.entry.js +2 -2
  167. package/dist/esm/{form-control-error-text_4.entry.js → form-control-select_2.entry.js} +4 -32
  168. package/dist/esm/get-payout-csv-9b4aaada.js +45 -0
  169. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  170. package/dist/esm/{index-4bd1eae9.js → index-57431c24.js} +15 -3
  171. package/dist/esm/{insurance-state-09754ab9.js → insurance-state-8ce01e59.js} +1 -1
  172. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -13
  173. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  174. package/dist/esm/justifi-billing-form_2.entry.js +16 -1680
  175. package/dist/esm/justifi-business-details.entry.js +4 -4
  176. package/dist/esm/justifi-business-form.entry.js +9 -8
  177. package/dist/esm/justifi-business-list.entry.js +4 -7
  178. package/dist/esm/justifi-card-form.entry.js +3 -3
  179. package/dist/esm/justifi-checkout-core.entry.js +21 -9
  180. package/dist/esm/justifi-checkout.entry.js +12 -4
  181. package/dist/esm/justifi-details.entry.js +4 -7
  182. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  183. package/dist/esm/justifi-new-payment-method_4.entry.js +73 -28
  184. package/dist/esm/justifi-payment-balance-transactions.entry.js +4 -7
  185. package/dist/esm/justifi-payment-details.entry.js +4 -4
  186. package/dist/esm/justifi-payment-form.entry.js +9 -8
  187. package/dist/esm/justifi-payment-method-form.entry.js +1684 -0
  188. package/dist/esm/justifi-payment-method-selector.entry.js +3 -3
  189. package/dist/esm/justifi-payment-provisioning-core.entry.js +7 -2
  190. package/dist/esm/justifi-payment-provisioning.entry.js +4 -8
  191. package/dist/esm/justifi-payments-list.entry.js +4 -4
  192. package/dist/esm/justifi-payout-details.entry.js +14 -9
  193. package/dist/esm/justifi-payouts-list.entry.js +14 -11
  194. package/dist/esm/justifi-proceeds-list.entry.js +4 -7
  195. package/dist/esm/justifi-refund-form.entry.js +4 -3
  196. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +14 -9
  197. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -3
  198. package/dist/esm/justifi-skeleton.entry.js +3 -3
  199. package/dist/esm/justifi-subaccount-details.entry.js +6 -9
  200. package/dist/esm/justifi-subaccounts-list.entry.js +4 -4
  201. package/dist/esm/justifi-table_2.entry.js +8 -12
  202. package/dist/esm/loader.js +3 -3
  203. package/dist/esm/{package-02a6e473.js → package-1123f528.js} +1 -1
  204. package/dist/esm/{payload-parsers-a9e8f8cc.js → payload-parsers-acb719d1.js} +3 -1
  205. package/dist/esm/payment-details-core.entry.js +11 -14
  206. package/dist/esm/payments-list-core.entry.js +7 -7
  207. package/dist/esm/payout-details-core.entry.js +19 -8
  208. package/dist/esm/payouts-list-core.entry.js +29 -8
  209. package/dist/esm/{schema-validations-770bdf3e.js → schema-validations-a83ff220.js} +3 -4
  210. package/dist/esm/styled-host-57aae7fa.js +12 -0
  211. package/dist/esm/subaccount-account-details_4.entry.js +7 -23
  212. package/dist/esm/subaccount-bank-details.entry.js +3 -7
  213. package/dist/esm/subaccount-terms-details.entry.js +3 -7
  214. package/dist/esm/{utils-1e583166.js → utils-56719d07.js} +1 -1
  215. package/dist/esm/{utils-61a21dea.js → utils-5f4c4faa.js} +6 -1
  216. package/dist/esm/{utils-8de964da.js → utils-f4c4ba7d.js} +13 -4
  217. package/dist/esm/webcomponents.js +3 -3
  218. package/dist/module/SubAccount.js +1 -1
  219. package/dist/module/additional-questions-details2.js +3 -4
  220. package/dist/module/additional-questions.js +1 -1
  221. package/dist/module/billing-form.js +5 -4
  222. package/dist/module/business-additional-questions-form-step.js +1 -1
  223. package/dist/module/business-core-info-form-step.js +3 -2
  224. package/dist/module/business-core-info-schema.js +1 -1
  225. package/dist/module/business-details-core2.js +5 -8
  226. package/dist/module/business-representative-form-step.js +1 -4
  227. package/dist/module/business-terms-conditions-text.js +2 -2
  228. package/dist/module/checkout-core.js +44 -24
  229. package/dist/module/details.js +3 -6
  230. package/dist/module/form-control-checkbox2.js +1 -1
  231. package/dist/module/form-control-date2.js +1 -1
  232. package/dist/module/form-control-file2.js +1 -1
  233. package/dist/module/form-control-monetary2.js +1 -1
  234. package/dist/module/form-control-number-masked2.js +1 -1
  235. package/dist/module/form-control-number.js +1 -1
  236. package/dist/module/form-control-select2.js +1 -1
  237. package/dist/module/form-control-text2.js +1 -1
  238. package/dist/module/generic-info-details2.js +3 -4
  239. package/dist/module/get-payout-csv.js +45 -0
  240. package/dist/module/gross-payment-chart-core2.js +2 -2
  241. package/dist/module/justifi-business-form.js +4 -3
  242. package/dist/module/justifi-business-list.js +3 -6
  243. package/dist/module/justifi-checkout.js +35 -20
  244. package/dist/module/justifi-payment-balance-transactions.js +5 -9
  245. package/dist/module/justifi-payment-form.js +6 -5
  246. package/dist/module/justifi-payment-provisioning.js +2 -7
  247. package/dist/module/justifi-payments-list.js +19 -1
  248. package/dist/module/justifi-payout-details.js +11 -5
  249. package/dist/module/justifi-payouts-list.js +30 -8
  250. package/dist/module/justifi-proceeds-list.js +3 -6
  251. package/dist/module/justifi-refund-form.js +4 -3
  252. package/dist/module/justifi-save-new-payment-method.d.ts +11 -0
  253. package/dist/module/justifi-save-new-payment-method.js +6 -0
  254. package/dist/module/justifi-season-interruption-insurance.js +1 -2
  255. package/dist/module/justifi-subaccount-details.js +4 -7
  256. package/dist/module/justifi-subaccounts-list.js +2 -2
  257. package/dist/module/legal-address-details2.js +3 -4
  258. package/dist/module/new-payment-method.js +52 -24
  259. package/dist/module/owner-details2.js +3 -4
  260. package/dist/module/owner-form.js +2 -5
  261. package/dist/module/package.js +1 -1
  262. package/dist/module/pagination-menu2.js +4 -9
  263. package/dist/module/payload-parsers.js +2 -0
  264. package/dist/module/payment-details-core2.js +10 -13
  265. package/dist/module/payment-method-options.js +56 -28
  266. package/dist/module/payment-method-selector.js +3 -4
  267. package/dist/module/payment-provisioning-core.js +9 -3
  268. package/dist/module/payments-list-core2.js +26 -8
  269. package/dist/module/payout-details-core2.js +19 -7
  270. package/dist/module/payouts-list-core2.js +49 -9
  271. package/dist/module/representative-details2.js +3 -4
  272. package/dist/module/save-new-payment-method.js +36 -0
  273. package/dist/module/saved-payment-method.js +7 -2
  274. package/dist/module/schema-validations.js +3 -4
  275. package/dist/module/season-interruption-insurance-core.js +12 -7
  276. package/dist/module/sezzle-payment-method.js +5 -2
  277. package/dist/module/skeleton.js +2 -2
  278. package/dist/module/styled-host.js +12 -0
  279. package/dist/module/subaccount-account-details2.js +2 -7
  280. package/dist/module/subaccount-bank-details.js +2 -7
  281. package/dist/module/subaccount-merchant-details2.js +3 -8
  282. package/dist/module/subaccount-owners-details2.js +2 -7
  283. package/dist/module/subaccount-representative-details2.js +2 -7
  284. package/dist/module/subaccount-terms-details.js +2 -7
  285. package/dist/module/table.js +4 -5
  286. package/dist/module/utils2.js +6 -1
  287. package/dist/module/utils3.js +12 -3
  288. package/dist/types/api/Checkout.d.ts +6 -0
  289. package/dist/types/api/services/payout.service.d.ts +2 -0
  290. package/dist/types/assets/download-icon.d.ts +1 -0
  291. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -1
  292. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +0 -1
  293. package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +0 -1
  294. package/dist/types/components/checkout/checkout-core.d.ts +5 -1
  295. package/dist/types/components/checkout/checkout.d.ts +5 -0
  296. package/dist/types/components/checkout/new-payment-method.d.ts +8 -2
  297. package/dist/types/components/checkout/payment-method-option-utils.d.ts +1 -0
  298. package/dist/types/components/checkout/payment-method-options.d.ts +6 -2
  299. package/dist/types/components/checkout/payment-method-payload.d.ts +1 -0
  300. package/dist/types/components/checkout/save-new-payment-method.d.ts +7 -0
  301. package/dist/types/components/checkout/saved-payment-method.d.ts +1 -1
  302. package/dist/types/components/checkout/sezzle-payment-method.d.ts +1 -1
  303. package/dist/types/components/form/utils.d.ts +1 -1
  304. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +6 -4
  305. package/dist/types/components/payments-list/payments-list-core.d.ts +1 -0
  306. package/dist/types/components/payments-list/payments-list.d.ts +3 -0
  307. package/dist/types/components/payout-details/get-payout-csv.d.ts +7 -0
  308. package/dist/types/components/payout-details/payout-details-core.d.ts +2 -0
  309. package/dist/types/components/payout-details/payout-details.d.ts +2 -1
  310. package/dist/types/components/payouts-list/payouts-list-core.d.ts +3 -0
  311. package/dist/types/components/payouts-list/payouts-list.d.ts +5 -1
  312. package/dist/types/components.d.ts +83 -12
  313. package/dist/types/utils/styled-host/styled-host.d.ts +3 -0
  314. package/dist/types/utils/utils.d.ts +1 -0
  315. package/dist/webcomponents/{p-851e57f4.js → p-092e080c.js} +1 -1
  316. package/dist/webcomponents/p-09affce4.entry.js +1 -0
  317. package/dist/webcomponents/p-0a4a9ccd.entry.js +1 -0
  318. package/dist/webcomponents/{p-7c28a80d.entry.js → p-0dca0770.entry.js} +1 -1
  319. package/dist/webcomponents/p-0e4a54c8.entry.js +1 -0
  320. package/dist/webcomponents/p-0ed3c1d2.entry.js +1 -0
  321. package/dist/webcomponents/p-10b57ac6.entry.js +1 -0
  322. package/dist/webcomponents/p-1737f6bf.entry.js +1 -0
  323. package/dist/webcomponents/{p-ebce7b2f.entry.js → p-2244e679.entry.js} +1 -1
  324. package/dist/webcomponents/p-2306d44d.entry.js +1 -0
  325. package/dist/webcomponents/{p-f7b6dcc4.js → p-2338affa.js} +1 -1
  326. package/dist/webcomponents/p-2af3672b.entry.js +1 -0
  327. package/dist/webcomponents/p-3294856b.entry.js +1 -0
  328. package/dist/webcomponents/p-3514b616.entry.js +1 -0
  329. package/dist/webcomponents/p-390157c9.entry.js +1 -0
  330. package/dist/webcomponents/p-3fd13ca3.js +1 -0
  331. package/dist/webcomponents/p-412c7a22.entry.js +1 -0
  332. package/dist/webcomponents/p-464e4dfe.entry.js +1 -0
  333. package/dist/webcomponents/p-49b8e112.js +1 -0
  334. package/dist/webcomponents/{p-808c8988.entry.js → p-4b9587ec.entry.js} +1 -1
  335. package/dist/webcomponents/p-531d873a.entry.js +1 -0
  336. package/dist/webcomponents/p-54287db6.entry.js +1 -0
  337. package/dist/webcomponents/p-547a2cd0.entry.js +1 -0
  338. package/dist/webcomponents/p-571d7f1a.entry.js +1 -0
  339. package/dist/webcomponents/p-5963bcdc.entry.js +1 -0
  340. package/dist/webcomponents/p-5b1451e7.entry.js +1 -0
  341. package/dist/webcomponents/p-66758365.entry.js +1 -0
  342. package/dist/webcomponents/{p-3394ff6c.js → p-667a5aa8.js} +1 -1
  343. package/dist/webcomponents/p-67e497aa.entry.js +1 -0
  344. package/dist/webcomponents/p-68fd8283.js +1 -0
  345. package/dist/webcomponents/p-6bcf621a.entry.js +1 -0
  346. package/dist/webcomponents/p-6bd5d569.entry.js +1 -0
  347. package/dist/webcomponents/p-76180bb4.entry.js +1 -0
  348. package/dist/webcomponents/p-77dc159c.entry.js +1 -0
  349. package/dist/webcomponents/{p-3a7e0753.entry.js → p-7a346c0b.entry.js} +1 -1
  350. package/dist/webcomponents/p-7d6aba64.entry.js +1 -0
  351. package/dist/webcomponents/p-81d3eda6.entry.js +1 -0
  352. package/dist/webcomponents/p-85fc69e5.js +1 -0
  353. package/dist/webcomponents/p-87932e16.js +1 -0
  354. package/dist/webcomponents/p-88c7ef46.entry.js +1 -0
  355. package/dist/webcomponents/p-89887332.js +1 -0
  356. package/dist/webcomponents/p-8cc7a418.entry.js +1 -0
  357. package/dist/webcomponents/p-8dd22c8d.entry.js +1 -0
  358. package/dist/webcomponents/p-959b478a.entry.js +19 -0
  359. package/dist/webcomponents/{p-3f06ce2f.entry.js → p-9631b768.entry.js} +1 -1
  360. package/dist/webcomponents/p-9e7c3231.entry.js +1 -0
  361. package/dist/webcomponents/{p-9601cf9d.entry.js → p-bb32b91c.entry.js} +1 -1
  362. package/dist/webcomponents/p-bbc18b9f.entry.js +1 -0
  363. package/dist/webcomponents/{p-4b4fc43d.js → p-c4264aaf.js} +1 -1
  364. package/dist/webcomponents/p-cb9ee476.entry.js +1 -0
  365. package/dist/webcomponents/p-d083a342.entry.js +1 -0
  366. package/dist/webcomponents/{p-288c95b3.entry.js → p-d5612f35.entry.js} +1 -1
  367. package/dist/webcomponents/p-debeefbb.entry.js +1 -0
  368. package/dist/webcomponents/{p-e3a31451.entry.js → p-df38dd21.entry.js} +1 -1
  369. package/dist/webcomponents/p-e0bcfdb5.entry.js +1 -0
  370. package/dist/webcomponents/{p-cb68e8fa.js → p-e1651130.js} +1 -1
  371. package/dist/webcomponents/p-e46929a1.entry.js +1 -0
  372. package/dist/webcomponents/{p-fee616cf.entry.js → p-e85ef4af.entry.js} +1 -1
  373. package/dist/webcomponents/{p-fb53112b.js → p-e8c651b8.js} +1 -1
  374. package/dist/webcomponents/p-ea7c77a3.entry.js +1 -0
  375. package/dist/webcomponents/{p-2451611d.entry.js → p-f3555f0b.entry.js} +1 -1
  376. package/dist/webcomponents/p-fad19d75.js +2 -0
  377. package/dist/webcomponents/webcomponents.css +1 -1
  378. package/dist/webcomponents/webcomponents.esm.js +1 -1
  379. package/package.json +1 -1
  380. package/dist/cjs/payout.service-eec372aa.js +0 -22
  381. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +0 -7348
  382. package/dist/collection/components/business-details/business-details.css +0 -6446
  383. package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +0 -7348
  384. package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +0 -7348
  385. package/dist/collection/components/business-details/owner-details/owner-details.css +0 -7348
  386. package/dist/collection/components/business-details/representative-details/representative-details.css +0 -7348
  387. package/dist/collection/components/business-list/business-list.css +0 -579
  388. package/dist/collection/components/details/details.css +0 -7993
  389. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
  390. package/dist/collection/components/payment-details/payment-details.css +0 -7993
  391. package/dist/collection/components/payments-list/payments-list.css +0 -579
  392. package/dist/collection/components/payout-details/payout-details.css +0 -7993
  393. package/dist/collection/components/payouts-list/payouts-list.css +0 -579
  394. package/dist/collection/components/proceeds-list/proceeds-list.css +0 -579
  395. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +0 -7352
  396. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +0 -7352
  397. package/dist/collection/components/subaccount-details/subaccount-details.css +0 -7993
  398. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +0 -7352
  399. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +0 -7352
  400. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +0 -7352
  401. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +0 -7352
  402. package/dist/esm/payout.service-28b9594f.js +0 -20
  403. package/dist/module/payout.service.js +0 -20
  404. package/dist/webcomponents/p-023fe908.entry.js +0 -1
  405. package/dist/webcomponents/p-038fb958.entry.js +0 -1
  406. package/dist/webcomponents/p-06baf263.entry.js +0 -1
  407. package/dist/webcomponents/p-0f10316f.entry.js +0 -1
  408. package/dist/webcomponents/p-144e4bda.js +0 -1
  409. package/dist/webcomponents/p-1e53021d.entry.js +0 -1
  410. package/dist/webcomponents/p-1feebf9c.entry.js +0 -1
  411. package/dist/webcomponents/p-26779944.entry.js +0 -1
  412. package/dist/webcomponents/p-306aea52.entry.js +0 -1
  413. package/dist/webcomponents/p-31031d15.entry.js +0 -1
  414. package/dist/webcomponents/p-4791c1f2.entry.js +0 -1
  415. package/dist/webcomponents/p-4b260a52.entry.js +0 -1
  416. package/dist/webcomponents/p-56275f64.entry.js +0 -1
  417. package/dist/webcomponents/p-64d1aeb8.entry.js +0 -1
  418. package/dist/webcomponents/p-65969627.entry.js +0 -19
  419. package/dist/webcomponents/p-68f3a7b0.entry.js +0 -1
  420. package/dist/webcomponents/p-6b05f357.entry.js +0 -1
  421. package/dist/webcomponents/p-6ce586e0.entry.js +0 -1
  422. package/dist/webcomponents/p-71800e4c.js +0 -1
  423. package/dist/webcomponents/p-7ae2d26f.entry.js +0 -1
  424. package/dist/webcomponents/p-88d68804.entry.js +0 -1
  425. package/dist/webcomponents/p-8a6049ed.js +0 -1
  426. package/dist/webcomponents/p-8e8f5033.entry.js +0 -1
  427. package/dist/webcomponents/p-9228912b.entry.js +0 -1
  428. package/dist/webcomponents/p-923c37a2.entry.js +0 -1
  429. package/dist/webcomponents/p-9b1e7f5e.entry.js +0 -1
  430. package/dist/webcomponents/p-9c00adf1.entry.js +0 -1
  431. package/dist/webcomponents/p-9e5d765c.js +0 -1
  432. package/dist/webcomponents/p-a33c3e1c.entry.js +0 -1
  433. package/dist/webcomponents/p-a63a6fb9.js +0 -2
  434. package/dist/webcomponents/p-b01c0120.entry.js +0 -1
  435. package/dist/webcomponents/p-b94bf537.entry.js +0 -1
  436. package/dist/webcomponents/p-bacd9d6e.entry.js +0 -1
  437. package/dist/webcomponents/p-c85fb952.entry.js +0 -1
  438. package/dist/webcomponents/p-ca39c89f.js +0 -1
  439. package/dist/webcomponents/p-d42e284d.entry.js +0 -1
  440. package/dist/webcomponents/p-e673e681.entry.js +0 -1
  441. package/dist/webcomponents/p-eefe2f29.entry.js +0 -1
  442. package/dist/webcomponents/p-f14db665.entry.js +0 -1
  443. package/dist/webcomponents/p-f18e63c3.entry.js +0 -1
  444. package/dist/webcomponents/p-f3ae3cb6.entry.js +0 -1
  445. package/dist/webcomponents/p-fa9773c0.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { h } from "@stencil/core";
1
+ import { h, Host } from "@stencil/core";
2
2
  import { config } from "../../../config";
3
3
  import { PaymentMethodTypes } from "../../api/Payment";
4
4
  import { PaymentMethodOption } from "./payment-method-option-utils";
@@ -8,8 +8,10 @@ export class PaymentMethodOptions {
8
8
  this.showAch = undefined;
9
9
  this.showBnpl = undefined;
10
10
  this.showSavedPaymentMethods = undefined;
11
+ this.paymentMethodGroupId = undefined;
11
12
  this.bnpl = undefined;
12
- this.clientId = undefined;
13
+ this.insuranceToggled = undefined;
14
+ this.authToken = undefined;
13
15
  this.accountId = undefined;
14
16
  this.iframeOrigin = config.iframeOrigin;
15
17
  this.savedPaymentMethods = [];
@@ -17,39 +19,53 @@ export class PaymentMethodOptions {
17
19
  this.selectedPaymentMethodId = undefined;
18
20
  this.paymentMethodOptions = [];
19
21
  }
22
+ async fillBillingForm(fields) {
23
+ const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
24
+ if (newPaymentMethodElement.fillBillingForm) {
25
+ newPaymentMethodElement.fillBillingForm(fields);
26
+ }
27
+ }
20
28
  connectedCallback() {
21
29
  this.paymentMethodsChanged();
22
- this.selectedPaymentMethodId = this.paymentMethodOptions[0].id;
23
30
  }
24
31
  paymentMethodsChanged() {
25
- var _a;
26
- this.paymentMethodOptions = this.savedPaymentMethods.map((paymentMethod) => new PaymentMethodOption(paymentMethod));
32
+ var _a, _b;
33
+ this.paymentMethodOptions = this.savedPaymentMethods
34
+ .map((paymentMethod) => new PaymentMethodOption(paymentMethod))
35
+ .filter((paymentMethod) => {
36
+ // Don't saved card or bank account if they are disabled
37
+ return ((this.showCard || paymentMethod.type !== PaymentMethodTypes.card) &&
38
+ (this.showAch || paymentMethod.type !== PaymentMethodTypes.bankAccount));
39
+ });
40
+ if (this.showBnpl && ((_a = this.bnpl) === null || _a === void 0 ? void 0 : _a.provider) === 'sezzle' && !this.insuranceToggled) {
41
+ this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.sezzle }));
42
+ }
27
43
  if (this.showCard) {
28
44
  this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.card }));
29
45
  }
30
46
  if (this.showAch) {
31
47
  this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.bankAccount }));
32
48
  }
33
- if (this.showBnpl && ((_a = this.bnpl) === null || _a === void 0 ? void 0 : _a.provider) === 'sezzle') {
34
- this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.sezzle }));
49
+ if (!this.selectedPaymentMethodId) {
50
+ this.selectedPaymentMethodId = (_b = this.paymentMethodOptions[0]) === null || _b === void 0 ? void 0 : _b.id;
35
51
  }
36
52
  }
37
53
  paymentMethodOptionSelected(event) {
38
54
  this.selectedPaymentMethodId = event.detail.id;
39
55
  }
40
- async resolvePaymentMethod() {
56
+ async resolvePaymentMethod(insuranceValidation) {
41
57
  var _a;
42
- return await ((_a = this.selectedPaymentMethodOptionRef) === null || _a === void 0 ? void 0 : _a.resolvePaymentMethod());
58
+ return await ((_a = this.selectedPaymentMethodOptionRef) === null || _a === void 0 ? void 0 : _a.resolvePaymentMethod(insuranceValidation));
43
59
  }
44
60
  render() {
45
61
  var _a;
46
- return (h("div", { key: 'e6ebe2b92d49fc499c721ff962703d683223e861' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
62
+ return (h(Host, { key: 'b432005ef4b36d46f54ed57f22f070d7cbfffe11' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
47
63
  const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
48
64
  const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
49
65
  const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
50
66
  const sezzle = paymentMethodOption.id === PaymentMethodTypes.sezzle;
51
67
  if (newCard || newBankAccount) {
52
- return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, "client-id": this.clientId, "account-id": this.accountId, "is-selected": isSelected, ref: (el) => {
68
+ return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, paymentMethodGroupId: this.paymentMethodGroupId, ref: (el) => {
53
69
  if (isSelected) {
54
70
  this.selectedPaymentMethodOptionRef = el;
55
71
  }
@@ -74,12 +90,12 @@ export class PaymentMethodOptions {
74
90
  static get is() { return "justifi-payment-method-options"; }
75
91
  static get originalStyleUrls() {
76
92
  return {
77
- "$": ["payment-method-options.scss"]
93
+ "$": ["payment-method-options.css", "form-check-input.css"]
78
94
  };
79
95
  }
80
96
  static get styleUrls() {
81
97
  return {
82
- "$": ["payment-method-options.css"]
98
+ "$": ["payment-method-options.css", "form-check-input.css"]
83
99
  };
84
100
  }
85
101
  static get properties() {
@@ -152,6 +168,23 @@ export class PaymentMethodOptions {
152
168
  "attribute": "show-saved-payment-methods",
153
169
  "reflect": false
154
170
  },
171
+ "paymentMethodGroupId": {
172
+ "type": "string",
173
+ "mutable": false,
174
+ "complexType": {
175
+ "original": "string",
176
+ "resolved": "string",
177
+ "references": {}
178
+ },
179
+ "required": false,
180
+ "optional": true,
181
+ "docs": {
182
+ "tags": [],
183
+ "text": ""
184
+ },
185
+ "attribute": "payment-method-group-id",
186
+ "reflect": false
187
+ },
155
188
  "bnpl": {
156
189
  "type": "unknown",
157
190
  "mutable": false,
@@ -173,7 +206,24 @@ export class PaymentMethodOptions {
173
206
  "text": ""
174
207
  }
175
208
  },
176
- "clientId": {
209
+ "insuranceToggled": {
210
+ "type": "boolean",
211
+ "mutable": false,
212
+ "complexType": {
213
+ "original": "boolean",
214
+ "resolved": "boolean",
215
+ "references": {}
216
+ },
217
+ "required": false,
218
+ "optional": false,
219
+ "docs": {
220
+ "tags": [],
221
+ "text": ""
222
+ },
223
+ "attribute": "insurance-toggled",
224
+ "reflect": false
225
+ },
226
+ "authToken": {
177
227
  "type": "string",
178
228
  "mutable": false,
179
229
  "complexType": {
@@ -187,7 +237,7 @@ export class PaymentMethodOptions {
187
237
  "tags": [],
188
238
  "text": ""
189
239
  },
190
- "attribute": "client-id",
240
+ "attribute": "auth-token",
191
241
  "reflect": false
192
242
  },
193
243
  "accountId": {
@@ -286,10 +336,44 @@ export class PaymentMethodOptions {
286
336
  }
287
337
  static get methods() {
288
338
  return {
339
+ "fillBillingForm": {
340
+ "complexType": {
341
+ "signature": "(fields: BillingFormFields) => Promise<void>",
342
+ "parameters": [{
343
+ "name": "fields",
344
+ "type": "BillingFormFields",
345
+ "docs": ""
346
+ }],
347
+ "references": {
348
+ "Promise": {
349
+ "location": "global",
350
+ "id": "global::Promise"
351
+ },
352
+ "BillingFormFields": {
353
+ "location": "import",
354
+ "path": "../billing-form/billing-form-schema",
355
+ "id": "src/components/billing-form/billing-form-schema.ts::BillingFormFields"
356
+ },
357
+ "HTMLJustifiNewPaymentMethodElement": {
358
+ "location": "global",
359
+ "id": "global::HTMLJustifiNewPaymentMethodElement"
360
+ }
361
+ },
362
+ "return": "Promise<void>"
363
+ },
364
+ "docs": {
365
+ "text": "",
366
+ "tags": []
367
+ }
368
+ },
289
369
  "resolvePaymentMethod": {
290
370
  "complexType": {
291
- "signature": "() => Promise<PaymentMethodPayload>",
292
- "parameters": [],
371
+ "signature": "(insuranceValidation: any) => Promise<PaymentMethodPayload>",
372
+ "parameters": [{
373
+ "name": "insuranceValidation",
374
+ "type": "any",
375
+ "docs": ""
376
+ }],
293
377
  "references": {
294
378
  "Promise": {
295
379
  "location": "global",
@@ -0,0 +1,38 @@
1
+ import { h } from "@stencil/core";
2
+ export class SaveNewPaymentMethod {
3
+ constructor() {
4
+ this.isChecked = false;
5
+ }
6
+ handleCheckboxChange(event) {
7
+ const target = event.target;
8
+ this.isChecked = target.checked;
9
+ this.checkboxChanged.emit(this.isChecked);
10
+ }
11
+ render() {
12
+ return (h("div", { key: '9492361a8c6d1b0cc29638811ddf41fb2e0e4a8c', class: "mt-4 form-check" }, h("input", { key: 'ef0b68d5daf26ec3c273839d79a66c03a6ae2af7', type: "checkbox", checked: this.isChecked, onChange: (event) => this.handleCheckboxChange(event), class: "form-check-input" }), h("label", { key: '4dbd3b1501c8de8feedf738d73eb6e3e7fa2ad3a', class: "form-check-label" }, "Save new payment method")));
13
+ }
14
+ static get is() { return "justifi-save-new-payment-method"; }
15
+ static get states() {
16
+ return {
17
+ "isChecked": {}
18
+ };
19
+ }
20
+ static get events() {
21
+ return [{
22
+ "method": "checkboxChanged",
23
+ "name": "checkboxChanged",
24
+ "bubbles": true,
25
+ "cancelable": true,
26
+ "composed": true,
27
+ "docs": {
28
+ "tags": [],
29
+ "text": ""
30
+ },
31
+ "complexType": {
32
+ "original": "boolean",
33
+ "resolved": "boolean",
34
+ "references": {}
35
+ }
36
+ }];
37
+ }
38
+ }
@@ -10,14 +10,17 @@ export class SavedPaymentMethod {
10
10
  this.paymentMethodOption = undefined;
11
11
  this.isSelected = undefined;
12
12
  }
13
- async resolvePaymentMethod() {
13
+ async resolvePaymentMethod(insuranceValidation) {
14
14
  var _a;
15
+ if (!insuranceValidation.isValid) {
16
+ return { validationError: true };
17
+ }
15
18
  return { token: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id };
16
19
  }
17
20
  ;
18
21
  render() {
19
22
  var _a, _b, _c, _d, _e;
20
- return (h(Fragment, { key: '3d033fe5bcebdad9c005be57767ef71eb8999f96' }, h("div", { key: 'a9c9521588557f2bb255afc24d442d65ee1599da', class: "payment-method" }, h("div", { key: '4bc8613cc4f55bd72c0e45807e5237d5e7a7ed6c', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '0bec3fe0f62108322ee3ac2f6dde1e6a8521db39', 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: '1dfe0f4a548eb0ac7ba8294c0eb12a9e7b8b2d7b', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
23
+ return (h(Fragment, { key: '534f00b35ee4eda915babee7a12e4e08467f85e0' }, h("div", { key: 'a4a584ec84fc8d227c40f7a783e502f1d71eb94a', class: "payment-method" }, h("div", { key: '2df6119670eb7f9499a68b243af86d26e11e4f90', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: 'd25e191a695d04657a84a364cd60544f593f470d', 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: '80f658216d46b048f5cb857b96a7c5a8f86c4e85', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
21
24
  _e.acct_last_four)))));
22
25
  }
23
26
  static get is() { return "justifi-saved-payment-method"; }
@@ -51,7 +54,7 @@ export class SavedPaymentMethod {
51
54
  "PaymentMethodOption": {
52
55
  "location": "import",
53
56
  "path": "./payment-method-option-utils",
54
- "id": "src/components/checkout/payment-method-option-utils.tsx::PaymentMethodOption"
57
+ "id": "src/components/checkout/payment-method-option-utils.ts::PaymentMethodOption"
55
58
  }
56
59
  }
57
60
  },
@@ -103,8 +106,12 @@ export class SavedPaymentMethod {
103
106
  return {
104
107
  "resolvePaymentMethod": {
105
108
  "complexType": {
106
- "signature": "() => Promise<PaymentMethodPayload>",
107
- "parameters": [],
109
+ "signature": "(insuranceValidation: any) => Promise<PaymentMethodPayload>",
110
+ "parameters": [{
111
+ "name": "insuranceValidation",
112
+ "type": "any",
113
+ "docs": ""
114
+ }],
108
115
  "references": {
109
116
  "Promise": {
110
117
  "location": "global",
@@ -56,13 +56,16 @@ export class SezzlePaymentMethod {
56
56
  this.initializeSezzleCheckout();
57
57
  };
58
58
  }
59
- async resolvePaymentMethod() {
59
+ async resolvePaymentMethod(insuranceValidation) {
60
+ if (!insuranceValidation.isValid) {
61
+ return { validationError: true };
62
+ }
60
63
  this.sezzleButtonRef.click();
61
64
  return this.sezzlePromise;
62
65
  }
63
66
  render() {
64
67
  var _a, _b, _c, _d, _e;
65
- return (h("div", { key: '5ac20dee2234992494bd7afefa302a9fb4cf3e31', class: "payment-method" }, h("script", { key: 'b8e765f8f7b776284c40625cce49bca6533b2847', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: 'cbe9e196cd37880e64690df9fdcbcbc0d776373f', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '3bb4069d587a3f27ea42ecb7017ad252366d1263', 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: '934ed99768f68b49c7c0e611f999622d14ffa8af', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: 'a82e493c824b32629de24e0972be645c2c8bfa1e' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: '10e6292b1a1d3cf2195d5fcb310c394b741dad85' }, h("span", { key: 'fa46a2b4167294b30f238d4f10b3230090b0051f' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: 'e4a33e4b27f7ffb592167dac890471c9bb7b3d47' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: '8779d14429c70f6a69b1ece9157b69125f058e0f', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
68
+ return (h("div", { key: 'ca426a40641b5f7d8bf325e31d4dbcab982359aa', class: "payment-method" }, h("script", { key: '2e1d43d57f815b5e451f625907b5490a825ad0df', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '122decb5b21d0480b5528bc425a50465a4667f18', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: 'f3546c71f0d845d2d341617255b6f3180f7c3faf', 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: 'f9f5683a8f2c9a662ae07264e8458e2d74b2057b', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: '0367a351c9c5045a7a7264b0053e735816ab2b9c' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: '5ca343cd874dc339ee9e6e23a0dcea9aa2e69ff4' }, h("span", { key: '780a3d63a7c32b791d3e1c6d1bcc8ebb33dcedc3' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: '85b902b4dfead7f935b571201605d51120303038' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: 'ead969304aa372477953a9f1159893c43ded914f', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
66
69
  }
67
70
  static get is() { return "justifi-sezzle-payment-method"; }
68
71
  static get properties() {
@@ -146,7 +149,7 @@ export class SezzlePaymentMethod {
146
149
  "PaymentMethodOption": {
147
150
  "location": "import",
148
151
  "path": "./payment-method-option-utils",
149
- "id": "src/components/checkout/payment-method-option-utils.tsx::PaymentMethodOption"
152
+ "id": "src/components/checkout/payment-method-option-utils.ts::PaymentMethodOption"
150
153
  }
151
154
  }
152
155
  },
@@ -222,8 +225,12 @@ export class SezzlePaymentMethod {
222
225
  return {
223
226
  "resolvePaymentMethod": {
224
227
  "complexType": {
225
- "signature": "() => Promise<PaymentMethodPayload>",
226
- "parameters": [],
228
+ "signature": "(insuranceValidation: any) => Promise<PaymentMethodPayload>",
229
+ "parameters": [{
230
+ "name": "insuranceValidation",
231
+ "type": "any",
232
+ "docs": ""
233
+ }],
227
234
  "references": {
228
235
  "Promise": {
229
236
  "location": "global",
@@ -1,27 +1,18 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { ErrorState } from "./utils";
3
+ import StyledHost from "../../utils/styled-host/styled-host";
3
4
  export class Details {
4
5
  constructor() {
5
6
  this.errorMessage = undefined;
6
7
  }
7
8
  render() {
8
- return (h(Host, { key: '7de6a80e49e823bd246ef9c754ba7e99d0e7f94a', exportParts: 'detail-empty-state, detail-metadata-title, detail-metadata, detail-section, detail-section-title, \n detail-section-item-title, detail-section-item-data, detail-head, detail-title, detail-head-info' }, this.errorMessage ?
9
+ return (h(StyledHost, { key: '636b56646441cc0588b3eb1ae44a371a36274d5c', exportParts: 'detail-empty-state, detail-metadata-title, detail-metadata, detail-section, detail-section-title, \n detail-section-item-title, detail-section-item-data, detail-head, detail-title, detail-head-info' }, this.errorMessage ?
9
10
  ErrorState(this.errorMessage)
10
11
  :
11
12
  h("main", { class: "p-2" }, h("slot", { name: "head-info" }), h("slot", { name: 'detail-sections' }))));
12
13
  }
13
14
  static get is() { return "justifi-details"; }
14
15
  static get encapsulation() { return "shadow"; }
15
- static get originalStyleUrls() {
16
- return {
17
- "$": ["./details.scss"]
18
- };
19
- }
20
- static get styleUrls() {
21
- return {
22
- "$": ["details.css"]
23
- };
24
- }
25
16
  static get properties() {
26
17
  return {
27
18
  "errorMessage": {
@@ -25,7 +25,7 @@ export class CheckboxInput {
25
25
  this.updateInput(this.defaultValue);
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: 'cf6e75e0e7be22fe6dbe348ca4a66fffaed8e693', exportparts: "label,input,input-invalid" }, h("div", { key: 'af13d56462f74bbcf823c436aecf18cd4d99292d', class: 'form-group d-flex flex-column' }, h("div", { key: '827f584a99f62966418ef36410dc4245ffabcf74', class: "form-check" }, h("input", { key: '3ca7bd3bc3766b8262e3aa683952948da11c3315', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input-checkbox ${this.errorText ? 'input-checkbox-invalid' : ''}`, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled }), h("label", { key: '47eeb84848b70e844c814b8015c80aac9e31a066', class: "form-check-label", htmlFor: this.name }, this.label)), h("form-control-help-text", { key: '705db385d0ba5063d2f65ada4b18cb3899e6b301', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'c41da4cfa199c35fe5cdd7acc66261707b135a72', errorText: this.errorText, name: this.name }))));
28
+ return (h(Host, { key: '727dd3a3e8024aae9540885f677f2aebca05f4f0', exportparts: "label,input,input-invalid" }, h("div", { key: '8d523339b9f03b078333d4380d03db9d1005bb5d', class: 'form-group d-flex flex-column' }, h("div", { key: 'e1b85ac05cf6a578d7f78a017d2ae85da9fd0b14', class: "form-check" }, h("input", { key: 'd5c111ba29f7035a6213555f7d876ae042badd2f', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input-checkbox ${this.errorText ? 'input-checkbox-invalid' : ''}`, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled }), h("label", { key: '604dc0bba4a0fe0a7171cfed95649a5600d3890f', class: "form-check-label", htmlFor: this.name }, this.label)), h("form-control-help-text", { key: '2779d04d33657d493b17864fa96b8b5c6ab5c4da', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '27b6ba8589b8fb9adbfb1792efd36bd4af4338d2', errorText: this.errorText, name: this.name }))));
29
29
  }
30
30
  static get is() { return "form-control-checkbox"; }
31
31
  static get properties() {
@@ -25,7 +25,7 @@ export class DateInput {
25
25
  this.dateInput.value = value;
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: 'b18e4069bb0cd511968ca94ebcf5140fc9383003', exportparts: "label,input,input-invalid" }, h("label", { key: '37ea611664ace8b990e7324a4c935a829b88dbb4', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'b8dd7851352542bea8b990309c7d21e303e6f4d4', type: "date", ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: '9e5ee014804c49fc4826a05e1a826728fbe1305e', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '2da21abb7f684c0f4a449775bdb37ddfda6d3837', errorText: this.errorText, name: this.name })));
28
+ return (h(Host, { key: '477163306527f6b607c43e63ec4a38aaac5a4780', exportparts: "label,input,input-invalid" }, h("label", { key: '3174cbb24f2bd74e59e28dc6a31e224a0e2ab47d', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'de908daeee9db445c1369b75c536bcf33cb9f4e9', type: "date", ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: 'ea51242481f4a9894d55871d23aeaf4013112e24', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '2db99a325bd6d691c0fdcbf3965535266329506f', errorText: this.errorText, name: this.name })));
29
29
  }
30
30
  static get is() { return "form-control-date"; }
31
31
  static get properties() {
@@ -31,7 +31,7 @@ export class FileInput {
31
31
  this.fileInput = this.el.querySelector('input');
32
32
  }
33
33
  render() {
34
- return (h(Host, { key: '251933346ee879057b88613bc546461d94db2fc5', exportparts: "label,input,input-invalid" }, h("div", { key: '18e1655e8d66826597211fa75f2342d403957387', class: "form-group d-flex flex-column" }, h("label", { key: 'a125ef003eaf3e309a5f8fc571b1865ebd5ab9e5', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'c912e0bedff94de4092069f9b07a052ea26a7f7e', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onBlur: () => this.formControlBlur.emit() }), h("form-control-help-text", { key: '17d54a1ee673d5605431812b8c4ae8b74fbcdc2f', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '054e01d82c2da5e616072af552dadd9fe7dda16d', errorText: this.errorText, name: this.name }))));
34
+ return (h(Host, { key: '2219dfef80cb3ef71148fbc4d2d29df6583d6779', exportparts: "label,input,input-invalid" }, h("div", { key: '18d059b17b226815a97cf1be429857bd93e43115', class: "form-group d-flex flex-column" }, h("label", { key: '91adf40d0dd7559888b7c37eeee40f363628bada', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '6aa37be009cce396e2f1268429c94b812d48167e', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onBlur: () => this.formControlBlur.emit() }), h("form-control-help-text", { key: 'd4241aceb5a40b2dfedebc9658b128231d43fcc0', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'af7dd8c90ea83f2f99f24100e97c9147f787aadf', errorText: this.errorText, name: this.name }))));
35
35
  }
36
36
  static get is() { return "form-control-file"; }
37
37
  static get properties() {
@@ -47,7 +47,7 @@ export class MonetaryInput {
47
47
  (_a = this.imask) === null || _a === void 0 ? void 0 : _a.destroy();
48
48
  }
49
49
  render() {
50
- return (h(Host, { key: '7c2f90ba75ccb2d2d2f3046dc523485e80725df7', exportparts: "label,input,input-invalid" }, h("div", { key: '27cbc179fdfa7bc7b7728cff2cc2ae56574a5ea6', class: "form-group d-flex flex-column" }, h("label", { key: '44cc56701e834cae92d6b9d8ec1ebeac8b43e93a', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("div", { key: '84ec2977eef85b87cc8df2392438427ea4e3c954', class: "input-group" }, h("span", { key: '07c5f50cb93111723ba5b642da54401341e458ff', class: "input-group-text" }, "$"), h("input", { key: '6154ded5d1f401fed15c39a7073bc00c6da40254', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h("form-control-help-text", { key: 'b41d7f42ea7bce82305eff00079bf4572d4f0123', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'ef75f2686527b50d99e14c1a38eb4ebe9ced892f', errorText: this.errorText, name: this.name }))));
50
+ return (h(Host, { key: 'f2aacad037f8f87113058e9f2e30eb87206bfbe3', exportparts: "label,input,input-group-input,input-group-text,input-invalid" }, h("div", { key: '3bc32c7abb0f277bf3b49ca9f67c1207ffcc7d9a', class: "form-group d-flex flex-column" }, h("label", { key: 'ccfb24981f1423c376d9146bf48f53f8ecb3a964', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("div", { key: 'acb22641d9c7b7aea3ba9d04527958a08cc5138f', class: "input-group" }, h("span", { key: 'fc2b1f6ad3332b464fa55c5a72fca2b4d6652d6c', class: "input-group-text", part: "input-group-text" }, "$"), h("input", { key: '39aee063f8a381251ee424a9e1488341e3dbbab5', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input input-group-input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h("form-control-help-text", { key: 'f9e05bb145ee2e33b92132ba3564c56412ea705e', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'e92a7992598bd13c61d9f8cbce17fce999b9924d', errorText: this.errorText, name: this.name }))));
51
51
  }
52
52
  static get is() { return "form-control-monetary"; }
53
53
  static get properties() {
@@ -46,7 +46,7 @@ export class NumberInputMasked {
46
46
  this.updateInput(this.defaultValue);
47
47
  }
48
48
  render() {
49
- return (h(Host, { key: '22b8d67ad6900e9d9698d809dea5eac57081eb16', exportparts: "label,input,input-invalid" }, h("div", { key: '4f349ce234590b0034b566aa1136963583f32449', class: "form-group d-flex flex-column" }, h("label", { key: '4b3164b84b76db133dee732d0d795a7e7d3d1cc3', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'dc8eabab70aa5bf7d94e3324b0bb9328e9f697c7', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: '1b2b703749239d7e8c5d2f3fb0882e6dc0d42dec', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '0eb91b01921b18d8c5c7ec7e4a48cc7c276f4121', errorText: this.errorText, name: this.name }))));
49
+ return (h(Host, { key: '781c4f77fe5b5b4f39c2d44868814ada72ce67c9', exportparts: "label,input,input-invalid" }, h("div", { key: '9c3ed0d13b883e3d2dc302225f25a00414088ef6', class: "form-group d-flex flex-column" }, h("label", { key: '0782f2936175944dd54e5497e54d2389c35c94bc', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '8feee613f2f83e8cb0ac34a4939fd65b5c14729a', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: 'dbdf33259fd04b1488b299216eb550960068c553', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '8a148bb9a29f322fb21acbfd8597a1e89433056a', errorText: this.errorText, name: this.name }))));
50
50
  }
51
51
  static get is() { return "form-control-number-masked"; }
52
52
  static get properties() {
@@ -28,7 +28,7 @@ export class NumberInput {
28
28
  this.updateInput(this.defaultValue);
29
29
  }
30
30
  render() {
31
- return (h(Host, { key: '1177f5d53183054f4cb9081c266f5fdf49f661a8', exportparts: 'label,input,input-invalid' }, h("div", { key: 'ede817d9f4913ed25b1eaef495b1d1213981fe78', class: 'form-group d-flex flex-column' }, h("label", { key: 'b647006b59502f104ede1578123145b07d54c00c', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'ef6c87b156468f8fdbcd83536a28d2ae04a687b4', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h("form-control-help-text", { key: 'fb8e31c1bf6e68596bfb62a118f14c8da9b48f52', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'c09d028d7874b527025aa4d39705e92b056168de', errorText: this.errorText, name: this.name }))));
31
+ return (h(Host, { key: 'da1318fae566f16be182c710840df84a60ccf707', exportparts: 'label,input,input-invalid' }, h("div", { key: 'de12c73d81be1a797c7efd482adef5e648d2947b', class: 'form-group d-flex flex-column' }, h("label", { key: '95113ea706e25074512e948ae041ac121af6c181', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '03d3cf05f76c6dd4ec2b00d486f31045dd36dc12', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h("form-control-help-text", { key: 'ac4d21a4d723c80bff561364858f2dfba3c704b6', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '7f474f8d69bf555a2e6c517772e79d35a7bd32b2', errorText: this.errorText, name: this.name }))));
32
32
  }
33
33
  static get is() { return "form-control-number"; }
34
34
  static get properties() {
@@ -27,7 +27,7 @@ export class SelectInput {
27
27
  }
28
28
  render() {
29
29
  var _a;
30
- return (h(Host, { key: '7cef63bec4f4890fbf6884e33f415c61971eb57f', exportparts: "label,input,input-invalid" }, h("div", { key: '70b2a95ed9f3e2d1c9a22cf53450f14196debdab', class: "form-group d-flex flex-column" }, h("label", { key: 'fdd940d9d01a57de70cfa232b7dc46eec544d64e', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("select", { key: 'd563d4d67d482feea513d1fb1cdffad619c62836', ref: el => (this.selectElement = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText ? 'input-invalid' : ''}`, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h("form-control-help-text", { key: 'e84cd27942594d5a68c0bfac9a2a8e9d054326aa', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '78be0b113d4409c64f9ba576bb0944e980730ca3', errorText: this.errorText, name: this.name }))));
30
+ return (h(Host, { key: 'abc80a7f20c59c99a3468f199142bc01ba7883cb', exportparts: "label,input,input-invalid" }, h("div", { key: 'd34ec19e40c33bd16b1e03e2bfac07dd6dd1a3a8', class: "form-group d-flex flex-column" }, h("label", { key: '43adfb46f3bf2e72e50d2bab17b909fec8693c2a', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("select", { key: 'eacb07490715f8041cfa6cd4fab91959d5b6bfae', ref: el => (this.selectElement = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText ? 'input-invalid' : ''}`, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h("form-control-help-text", { key: '5ec5ba6ca4e0503ffdbddb95e70444bbf8b169b7', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'bd90d61ca9aa0c52d351e336febc9f3d2e501355', errorText: this.errorText, name: this.name }))));
31
31
  }
32
32
  static get is() { return "form-control-select"; }
33
33
  static get properties() {
@@ -30,7 +30,7 @@ export class TextInput {
30
30
  this.updateInput(this.defaultValue);
31
31
  }
32
32
  render() {
33
- return (h(Host, { key: '9bd39dfa599b334b4e0016e70ffe8cd72329474e', exportparts: "label,input,input-invalid" }, h("div", { key: 'a9b36d639a80a655ff123584e95666cd28683300', class: "form-group d-flex flex-column" }, h("label", { key: '1a81c3cd62b526ea614ea8de604434f7d96f5041', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'cb4392faa480cf95ffb9c813495935c659a2de3f', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, onKeyDown: (event) => this.keyDownHandler && this.keyDownHandler(event), maxLength: this.maxLength, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: '33562375f0688b968a615f55d971a5f6a0aed2cc', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '7b8db42dc54dfbed07de2a377a08b7a390b5ba9a', errorText: this.errorText, name: this.name }))));
33
+ return (h(Host, { key: '7b3c980cbad27b29bc87dd4eaa8a23398c8b244c', exportparts: "label,input,input-invalid" }, h("div", { key: 'fa49688c206721f177d2c57b42103ffcd139dde7', class: "form-group d-flex flex-column" }, h("label", { key: '596b8cae71f32769d82fa5e77df11daa172fcce9', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '44ec6ef8e306c5d25190dec87926ba382665f2ca', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: '888e0abf5f3687266784eda12428cb219321f964', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '902a8e06659e63cb35002b5eef8b3f987df8fb44', errorText: this.errorText, name: this.name }))));
34
34
  }
35
35
  static get is() { return "form-control-text"; }
36
36
  static get properties() {
@@ -1,18 +1,27 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const LoadingSpinner = () => (h("div", { class: "spinner-border spinner-border-sm", role: "status" }, h("span", { class: "visually-hidden" }, "Loading...")));
3
3
  export const numberOnlyHandler = (e) => {
4
+ var _a;
4
5
  const specialKeys = ['Backspace', 'Tab', 'Enter', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Delete'];
5
6
  // Check if the key is a special key
6
- if (specialKeys.includes(e.key)) {
7
+ if (e instanceof KeyboardEvent && specialKeys.includes(e.key)) {
7
8
  return;
8
9
  }
9
10
  // Allow Ctrl+V / Command+V for pasting
10
- const isPaste = (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'v';
11
+ const isPaste = e instanceof KeyboardEvent && (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'v';
11
12
  if (isPaste) {
12
13
  return;
13
14
  }
15
+ // Handle paste event
16
+ if (e instanceof ClipboardEvent) {
17
+ const clipboardData = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
18
+ if (clipboardData && !/^\d+$/.test(clipboardData)) {
19
+ e.preventDefault();
20
+ }
21
+ return;
22
+ }
14
23
  // Prevent default action if the key is not a digit
15
- if (!/^\d$/.test(e.key)) {
24
+ if (e instanceof KeyboardEvent && !/^\d$/.test(e.key)) {
16
25
  e.preventDefault();
17
26
  }
18
27
  };
@@ -68,12 +68,12 @@ export class GrossPaymentChartCore {
68
68
  }
69
69
  }
70
70
  render() {
71
- return (h(Host, { key: '46d684da4581001eb7ee5296bf177e21b1a2f24e' }, this.loading && LoadingState(), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
71
+ return (h(Host, { key: 'c84e3a681d35e62474e6b34b2a54edcae47370d2' }, this.loading && LoadingState(), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
72
72
  }
73
73
  static get is() { return "gross-payment-chart-core"; }
74
74
  static get originalStyleUrls() {
75
75
  return {
76
- "$": ["gross-payment-chart.scss"]
76
+ "$": ["gross-payment-chart.css"]
77
77
  };
78
78
  }
79
79
  static get styleUrls() {