@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
@@ -13,7 +13,7 @@ const SubaccountTermsDetails$1 = /*@__PURE__*/ proxyCustomElement(class Subaccou
13
13
  }
14
14
  render() {
15
15
  var _a, _b, _c, _d;
16
- return (h(Host, { key: '43e71442a74f94bfe90d84208b8e7b5a0126cd17' }, h(DetailSectionTitle, { key: '7d42763806de989d098f00a509357766cc91bf7b', sectionTitle: 'Terms and Conditions' }), h("div", { key: '05e028b322f4bb76ed4a7dd26c401ac4aabcfbe8', class: "d-table gap-2 w-100" }, h("div", { key: '470fecfffe35b6682ba91728bf4130e54683ee1d', class: "row gy-3" }, h("div", { key: 'faa19eff64dd52ece544c58ac02fe5a03e2a54f9', class: "col-12 col-md-6" }, h(DetailItem, { key: '9747e01fcb10536957d424b5cbb7fb12deb0783d', title: "IP", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.ip }), h(DetailItem, { key: '8402d3bcdf21e4a40fd0e596a60bd6841ed0cbef', title: "Accepted?", value: (_c = (_b = this.data) === null || _b === void 0 ? void 0 : _b.accepted) === null || _c === void 0 ? void 0 : _c.toString() }), h(DetailItem, { key: '66ab81eff994e764edf7aa5189e532bbfe7b6e6a', title: "User Agent", value: (_d = this.data) === null || _d === void 0 ? void 0 : _d.user_agent }))))));
16
+ return (h(Host, { key: 'dfa4a1103939bd6b7078a0f669f94a93e1e76c07' }, h(DetailSectionTitle, { key: 'd304dcf3046ae24d0d23991323467214f50089d1', sectionTitle: 'Terms and Conditions' }), h("div", { key: '61fd1cd1ec00585abc5964798fc73e58525ffe75', class: "d-table gap-2 w-100" }, h("div", { key: 'a38bf7e19a3280b5b8a78e255ae8f42b013869dd', class: "row gy-3" }, h("div", { key: '80612f89bb5d757f5a925310301e8c9185526202', class: "col-12 col-md-6" }, h(DetailItem, { key: '50bef6ff3dec8796d0f332bd93b407c4bb87417a', title: "IP", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.ip }), h(DetailItem, { key: '98b4d284c0fc7b55fa2fdb9e5a20436f64969797', title: "Accepted?", value: (_c = (_b = this.data) === null || _b === void 0 ? void 0 : _b.accepted) === null || _c === void 0 ? void 0 : _c.toString() }), h(DetailItem, { key: '591109fe30a1d6700ff7b57faac0acfac7d2d8ed', title: "User Agent", value: (_d = this.data) === null || _d === void 0 ? void 0 : _d.user_agent }))))));
17
17
  }
18
18
  static get style() { return SubaccountTermsDetailsStyle0; }
19
19
  }, [1, "subaccount-terms-details", {
@@ -3996,6 +3996,11 @@ function snakeCaseToHumanReadable(snakeCaseStr) {
3996
3996
  .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
3997
3997
  .join(' ');
3998
3998
  }
3999
+ function snakeToCamel(str) {
4000
+ if (!str)
4001
+ return '';
4002
+ return str.replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', '').replace('_', ''));
4003
+ }
3999
4004
  function flattenNestedObject(obj) {
4000
4005
  const result = {};
4001
4006
  for (const key in obj) {
@@ -4049,4 +4054,4 @@ const isInRange = (num, min, max) => {
4049
4054
  return num >= min && num <= max;
4050
4055
  };
4051
4056
 
4052
- export { MapPaymentStatusToBadge as M, formatCurrency as a, formatDisplayDate as b, composeQueryParams as c, flattenNestedObject as d, isInRange as e, formatMediumDate as f, formatDate as g, formatTimeSeconds as h, isEmptyObject as i, formatTime as j, MapPayoutStatusToBadge as k, loadFontsOnParent as l, MapSubAccountStatusToBadge as m, formatPercentage as n, formatLegalAddress as o, snakeCaseToHumanReadable as s };
4057
+ export { MapPaymentStatusToBadge as M, formatCurrency as a, formatDisplayDate as b, composeQueryParams as c, flattenNestedObject as d, isInRange as e, formatMediumDate as f, formatDate as g, formatTimeSeconds as h, isEmptyObject as i, snakeToCamel as j, formatTime as k, loadFontsOnParent as l, MapPayoutStatusToBadge as m, MapSubAccountStatusToBadge as n, formatPercentage as o, formatLegalAddress as p, snakeCaseToHumanReadable as s };
@@ -3,18 +3,27 @@ import { h } from '@stencil/core/internal/client';
3
3
  const LoadingSpinner = () => (h("div", { class: "spinner-border spinner-border-sm", role: "status" },
4
4
  h("span", { class: "visually-hidden" }, "Loading...")));
5
5
  const numberOnlyHandler = (e) => {
6
+ var _a;
6
7
  const specialKeys = ['Backspace', 'Tab', 'Enter', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Delete'];
7
8
  // Check if the key is a special key
8
- if (specialKeys.includes(e.key)) {
9
+ if (e instanceof KeyboardEvent && specialKeys.includes(e.key)) {
9
10
  return;
10
11
  }
11
12
  // Allow Ctrl+V / Command+V for pasting
12
- const isPaste = (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'v';
13
+ const isPaste = e instanceof KeyboardEvent && (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'v';
13
14
  if (isPaste) {
14
15
  return;
15
16
  }
17
+ // Handle paste event
18
+ if (e instanceof ClipboardEvent) {
19
+ const clipboardData = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
20
+ if (clipboardData && !/^\d+$/.test(clipboardData)) {
21
+ e.preventDefault();
22
+ }
23
+ return;
24
+ }
16
25
  // Prevent default action if the key is not a digit
17
- if (!/^\d$/.test(e.key)) {
26
+ if (e instanceof KeyboardEvent && !/^\d$/.test(e.key)) {
18
27
  e.preventDefault();
19
28
  }
20
29
  };
@@ -36,6 +36,7 @@ export interface ICheckout {
36
36
  bnpl?: IBnpl;
37
37
  total_amount: number;
38
38
  insurance_amount: number;
39
+ status: ICheckoutStatus;
39
40
  }
40
41
  export declare class Checkout implements ICheckout {
41
42
  payment_intent_id: string;
@@ -66,6 +67,7 @@ export declare class Checkout implements ICheckout {
66
67
  bnpl?: IBnpl;
67
68
  total_amount: number;
68
69
  insurance_amount: number;
70
+ status: ICheckoutStatus;
69
71
  constructor(data: ICheckout);
70
72
  }
71
73
  export type ICheckoutCompleteResponse = IApiResponse<{
@@ -77,3 +79,7 @@ export type ICheckoutCompleteResponse = IApiResponse<{
77
79
  additional_transactions: any[];
78
80
  checkout: ICheckout;
79
81
  }>;
82
+ export type ICheckoutStatus = 'created' | 'completed' | 'attempted' | 'expired';
83
+ export type ILoadedEventResponse = {
84
+ checkout_status: ICheckoutStatus;
85
+ };
@@ -21,7 +21,6 @@ export declare class BusinessOwnerForm {
21
21
  errorEvent: EventEmitter<ComponentError>;
22
22
  private api;
23
23
  get identityEndpoint(): string;
24
- get identificationNumberLabel(): "Update SSN (optional)" | "SSN";
25
24
  get formTitle(): "Edit Business Owner" | "Add Business Owner";
26
25
  get submitButtonText(): "Update" | "Add";
27
26
  get showRemoveButton(): boolean;
@@ -15,7 +15,6 @@ export declare class BusinessRepresentativeFormStep {
15
15
  errorEvent: EventEmitter<ComponentError>;
16
16
  private api;
17
17
  get businessEndpoint(): string;
18
- get identificationNumberLabel(): "Update SSN (optional)" | "SSN";
19
18
  private fetchData;
20
19
  private sendData;
21
20
  handleResponse(response: any, onSuccess: any): void;
@@ -3,7 +3,6 @@ export declare const validateRoutingNumber: (routingNumber: any) => boolean;
3
3
  export declare const businessNameRegex: RegExp;
4
4
  export declare const phoneRegex: RegExp;
5
5
  export declare const urlRegex: RegExp;
6
- export declare const taxIdRegex: RegExp;
7
6
  export declare const stringLettersOnlyRegex: RegExp;
8
7
  export declare const numbersOnlyRegex: RegExp;
9
8
  export declare const ssnRegex: RegExp;
@@ -1,6 +1,7 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { ICheckout, ICheckoutCompleteResponse } from '../../api/Checkout';
2
+ import { ICheckout, ICheckoutCompleteResponse, ILoadedEventResponse } from '../../api/Checkout';
3
3
  import { ComponentError, ComponentErrorCodes, ComponentErrorSeverity } from '../../api/ComponentError';
4
+ import { BillingFormFields } from '../billing-form/billing-form-schema';
4
5
  export declare class CheckoutCore {
5
6
  /**
6
7
  * URL for the rendered iFrame. End-users need not use this.
@@ -19,9 +20,12 @@ export declare class CheckoutCore {
19
20
  serverError: string;
20
21
  renderState: 'loading' | 'error' | 'success';
21
22
  creatingNewPaymentMethod: boolean;
23
+ insuranceToggled: boolean;
22
24
  submitted: EventEmitter<ICheckoutCompleteResponse>;
23
25
  errorEvent: EventEmitter<ComponentError>;
26
+ loaded: EventEmitter<ILoadedEventResponse>;
24
27
  private paymentMethodOptionsRef?;
28
+ fillBillingForm(fields: BillingFormFields): Promise<void>;
25
29
  componentWillLoad(): void;
26
30
  fetchData(): void;
27
31
  submit(event: any): Promise<void>;
@@ -1,6 +1,8 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { ComponentError } from '../../api/ComponentError';
3
3
  import JustifiAnalytics from '../../api/Analytics';
4
+ import { BillingFormFields } from '../billing-form/billing-form-schema';
5
+ import { ILoadedEventResponse } from '../../api';
4
6
  export declare class Checkout {
5
7
  iframeOrigin?: string;
6
8
  authToken: string;
@@ -13,10 +15,13 @@ export declare class Checkout {
13
15
  complete: Function;
14
16
  errorMessage: string;
15
17
  errorEvent: EventEmitter<ComponentError>;
18
+ loadedEvent: EventEmitter<ILoadedEventResponse>;
19
+ private checkoutCoreRef?;
16
20
  analytics: JustifiAnalytics;
17
21
  componentWillLoad(): void;
18
22
  disconnectedCallback(): void;
19
23
  private initializeGetCheckout;
20
24
  propChanged(): void;
25
+ fillBillingForm(fields: BillingFormFields): Promise<void>;
21
26
  render(): any;
22
27
  }
@@ -1,16 +1,22 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { PaymentMethodOption } from './payment-method-option-utils';
3
3
  import { PaymentMethodPayload } from './payment-method-payload';
4
+ import { BillingFormFields } from '../billing-form/billing-form-schema';
4
5
  export declare class NewPaymentMethod {
5
6
  iframeOrigin?: string;
6
- clientId: string;
7
+ authToken: string;
7
8
  accountId: string;
8
9
  paymentMethodOption: PaymentMethodOption;
10
+ paymentMethodGroupId?: string;
9
11
  isSelected: boolean;
12
+ saveNewPaymentMethodChecked: boolean;
10
13
  paymentMethodOptionSelected: EventEmitter;
11
14
  private billingFormRef?;
12
15
  private paymentMethodFormRef?;
13
- resolvePaymentMethod(): Promise<PaymentMethodPayload>;
16
+ handleCheckboxChanged(event: CustomEvent<boolean>): void;
17
+ fillBillingForm(fields: BillingFormFields): Promise<void>;
18
+ resolvePaymentMethod(insuranceValidation: any): Promise<PaymentMethodPayload>;
19
+ validate(): Promise<boolean>;
14
20
  tokenize(): Promise<any>;
15
21
  onPaymentMethodOptionClick: () => void;
16
22
  showNewPaymentMethodForm(): any;
@@ -2,6 +2,7 @@ export declare class PaymentMethodOption {
2
2
  id: string;
3
3
  brand?: string;
4
4
  acct_last_four?: string;
5
+ type: string;
5
6
  constructor(paymentMethod: any);
6
7
  }
7
8
  export declare enum CardBrandLabels {
@@ -2,13 +2,16 @@ import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { PaymentMethodOption } from './payment-method-option-utils';
3
3
  import { PaymentMethodPayload } from './payment-method-payload';
4
4
  import { IBnpl } from '../../api';
5
+ import { BillingFormFields } from '../billing-form/billing-form-schema';
5
6
  export declare class PaymentMethodOptions {
6
7
  showCard: boolean;
7
8
  showAch: boolean;
8
9
  showBnpl: boolean;
9
10
  showSavedPaymentMethods: boolean;
11
+ paymentMethodGroupId?: string;
10
12
  bnpl: IBnpl;
11
- clientId: string;
13
+ insuranceToggled: boolean;
14
+ authToken: string;
12
15
  accountId: string;
13
16
  iframeOrigin?: string;
14
17
  savedPaymentMethods: any[];
@@ -17,9 +20,10 @@ export declare class PaymentMethodOptions {
17
20
  paymentMethodOptions: PaymentMethodOption[];
18
21
  toggleCreatingNewPaymentMethod: EventEmitter;
19
22
  private selectedPaymentMethodOptionRef?;
23
+ fillBillingForm(fields: BillingFormFields): Promise<void>;
20
24
  connectedCallback(): void;
21
25
  paymentMethodsChanged(): void;
22
26
  paymentMethodOptionSelected(event: CustomEvent<PaymentMethodOption>): void;
23
- resolvePaymentMethod(): Promise<PaymentMethodPayload>;
27
+ resolvePaymentMethod(insuranceValidation: any): Promise<PaymentMethodPayload>;
24
28
  render(): any;
25
29
  }
@@ -10,4 +10,5 @@ export interface PaymentMethodPayload {
10
10
  message: string;
11
11
  decline_code: string;
12
12
  };
13
+ validationError?: boolean;
13
14
  }
@@ -0,0 +1,7 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class SaveNewPaymentMethod {
3
+ isChecked: boolean;
4
+ checkboxChanged: EventEmitter<boolean>;
5
+ handleCheckboxChange(event: Event): void;
6
+ render(): any;
7
+ }
@@ -6,7 +6,7 @@ export declare class SavedPaymentMethod {
6
6
  paymentMethodOption: PaymentMethodOption;
7
7
  isSelected: boolean;
8
8
  paymentMethodOptionSelected: EventEmitter;
9
- resolvePaymentMethod(): Promise<PaymentMethodPayload>;
9
+ resolvePaymentMethod(insuranceValidation: any): Promise<PaymentMethodPayload>;
10
10
  onPaymentMethodOptionClick: () => void;
11
11
  render(): any;
12
12
  }
@@ -16,7 +16,7 @@ export declare class SezzlePaymentMethod {
16
16
  private sezzleButtonRef;
17
17
  paymentMethodOptionSelected: EventEmitter;
18
18
  componentDidRender(): void;
19
- resolvePaymentMethod(): Promise<PaymentMethodPayload>;
19
+ resolvePaymentMethod(insuranceValidation: any): Promise<PaymentMethodPayload>;
20
20
  onPaymentMethodOptionClick: () => void;
21
21
  initializeSezzleCheckout: () => void;
22
22
  render(): any;
@@ -1,2 +1,2 @@
1
1
  export declare const LoadingSpinner: () => any;
2
- export declare const numberOnlyHandler: (e: KeyboardEvent) => void;
2
+ export declare const numberOnlyHandler: (e: KeyboardEvent | ClipboardEvent) => void;
@@ -1,6 +1,6 @@
1
1
  interface PaymentMethodCreateResponseWrapper {
2
2
  id: string;
3
- type: "payment_method";
3
+ type: 'payment_method';
4
4
  error?: {
5
5
  code: string;
6
6
  message: string;
@@ -13,6 +13,7 @@ export interface CardCreateResponse extends PaymentMethodCreateResponseWrapper {
13
13
  signature: string;
14
14
  customer_id: string;
15
15
  account_id: string;
16
+ invalid_reason: string;
16
17
  card: {
17
18
  id: string;
18
19
  name: string;
@@ -25,12 +26,12 @@ export interface CardCreateResponse extends PaymentMethodCreateResponseWrapper {
25
26
  address_line1_check: string;
26
27
  address_postal_code_check: string;
27
28
  bin_details?: {
28
- type: "Credit" | "Debit" | "Prepaid" | "Unknown";
29
+ type: 'Credit' | 'Debit' | 'Prepaid' | 'Unknown';
29
30
  card_brand: string;
30
31
  card_class: string;
31
32
  country: string;
32
33
  issuer: string;
33
- funding_source: "Charge" | "Credit" | "Debit" | "Deferred Debit (Visa Only)" | "Network Only" | "Prepaid";
34
+ funding_source: 'Charge' | 'Credit' | 'Debit' | 'Deferred Debit (Visa Only)' | 'Network Only' | 'Prepaid';
34
35
  };
35
36
  };
36
37
  };
@@ -40,10 +41,11 @@ export interface BankAccountCreateResponse extends PaymentMethodCreateResponseWr
40
41
  signature: string;
41
42
  customer_id: string;
42
43
  account_id: string;
44
+ invalid_reason: string;
43
45
  bank_account: {
44
46
  id: string;
45
47
  account_owner_name: string;
46
- account_type: "checking" | "savings";
48
+ account_type: 'checking' | 'savings';
47
49
  bank_name: string;
48
50
  acct_last_four: number;
49
51
  token: string;
@@ -12,10 +12,10 @@ import { FormController } from "./components/form/form";
12
12
  import { BusinessFormClickEvent, BusinessFormSubmitEvent, OwnerFormClickEvent, OwnerFormSubmitEvent } from "./components/business-forms/utils/business-form-types";
13
13
  import { CreatePaymentMethodResponse } from "./components/payment-method-form/payment-method-responses";
14
14
  import { BillingFormFields } from "./components/billing-form/billing-form-schema";
15
- import { ICheckoutCompleteResponse } from "./api/Checkout";
15
+ import { IBnpl, ILoadedEventResponse, Payment, PaymentMethodTypes, Payout } from "./api";
16
+ import { ICheckoutCompleteResponse, ILoadedEventResponse as ILoadedEventResponse1 } from "./api/Checkout";
16
17
  import { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
17
18
  import { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
18
- import { IBnpl, Payment, PaymentMethodTypes, Payout } from "./api";
19
19
  import { Proceed } from "./api/Proceed";
20
20
  import { RefundFormFields } from "./components/refund-form/refund-form-schema";
21
21
  import { IOnboardingData, SubAccount, SubaccountBankAccount, SubAccountIdentity as SubAccountIdentity1, Terms } from "./api/SubAccount";
@@ -30,10 +30,10 @@ export { FormController } from "./components/form/form";
30
30
  export { BusinessFormClickEvent, BusinessFormSubmitEvent, OwnerFormClickEvent, OwnerFormSubmitEvent } from "./components/business-forms/utils/business-form-types";
31
31
  export { CreatePaymentMethodResponse } from "./components/payment-method-form/payment-method-responses";
32
32
  export { BillingFormFields } from "./components/billing-form/billing-form-schema";
33
- export { ICheckoutCompleteResponse } from "./api/Checkout";
33
+ export { IBnpl, ILoadedEventResponse, Payment, PaymentMethodTypes, Payout } from "./api";
34
+ export { ICheckoutCompleteResponse, ILoadedEventResponse as ILoadedEventResponse1 } from "./api/Checkout";
34
35
  export { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
35
36
  export { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
36
- export { IBnpl, Payment, PaymentMethodTypes, Payout } from "./api";
37
37
  export { Proceed } from "./api/Proceed";
38
38
  export { RefundFormFields } from "./components/refund-form/refund-form-schema";
39
39
  export { IOnboardingData, SubAccount, SubaccountBankAccount, SubAccountIdentity as SubAccountIdentity1, Terms } from "./api/SubAccount";
@@ -378,6 +378,7 @@ export namespace Components {
378
378
  "disableBnpl"?: boolean;
379
379
  "disableCreditCard"?: boolean;
380
380
  "disablePaymentMethodGroup"?: boolean;
381
+ "fillBillingForm": (fields: BillingFormFields) => Promise<void>;
381
382
  "iframeOrigin"?: string;
382
383
  }
383
384
  interface JustifiCheckoutCore {
@@ -388,6 +389,7 @@ export namespace Components {
388
389
  "disableBnpl"?: boolean;
389
390
  "disableCreditCard"?: boolean;
390
391
  "disablePaymentMethodGroup"?: boolean;
392
+ "fillBillingForm": (fields: BillingFormFields) => Promise<void>;
391
393
  "getCheckout": Function;
392
394
  /**
393
395
  * URL for the rendered iFrame. End-users need not use this.
@@ -427,11 +429,13 @@ export namespace Components {
427
429
  }
428
430
  interface JustifiNewPaymentMethod {
429
431
  "accountId": string;
430
- "clientId": string;
432
+ "authToken": string;
433
+ "fillBillingForm": (fields: BillingFormFields) => Promise<void>;
431
434
  "iframeOrigin"?: string;
432
435
  "isSelected": boolean;
436
+ "paymentMethodGroupId"?: string;
433
437
  "paymentMethodOption": PaymentMethodOption;
434
- "resolvePaymentMethod": () => Promise<PaymentMethodPayload>;
438
+ "resolvePaymentMethod": (insuranceValidation: any) => Promise<PaymentMethodPayload>;
435
439
  }
436
440
  interface JustifiOwnerForm {
437
441
  "allowOptionalFields"?: boolean;
@@ -503,11 +507,14 @@ export namespace Components {
503
507
  }
504
508
  interface JustifiPaymentMethodOptions {
505
509
  "accountId": string;
510
+ "authToken": string;
506
511
  "bnpl": IBnpl;
507
- "clientId": string;
512
+ "fillBillingForm": (fields: BillingFormFields) => Promise<void>;
508
513
  "iframeOrigin"?: string;
514
+ "insuranceToggled": boolean;
509
515
  "paymentAmount": number;
510
- "resolvePaymentMethod": () => Promise<PaymentMethodPayload>;
516
+ "paymentMethodGroupId"?: string;
517
+ "resolvePaymentMethod": (insuranceValidation: any) => Promise<PaymentMethodPayload>;
511
518
  "savedPaymentMethods": any[];
512
519
  "showAch": boolean;
513
520
  "showBnpl": boolean;
@@ -651,11 +658,13 @@ export namespace Components {
651
658
  */
652
659
  "withButton"?: boolean;
653
660
  }
661
+ interface JustifiSaveNewPaymentMethod {
662
+ }
654
663
  interface JustifiSavedPaymentMethod {
655
664
  "iframeOrigin"?: string;
656
665
  "isSelected": boolean;
657
666
  "paymentMethodOption": PaymentMethodOption;
658
- "resolvePaymentMethod": () => Promise<PaymentMethodPayload>;
667
+ "resolvePaymentMethod": (insuranceValidation: any) => Promise<PaymentMethodPayload>;
659
668
  }
660
669
  interface JustifiSeasonInterruptionInsurance {
661
670
  "authToken": string;
@@ -698,7 +707,7 @@ export namespace Components {
698
707
  "isSelected": boolean;
699
708
  "paymentAmount": number;
700
709
  "paymentMethodOption": PaymentMethodOption;
701
- "resolvePaymentMethod": () => Promise<PaymentMethodPayload>;
710
+ "resolvePaymentMethod": (insuranceValidation: any) => Promise<PaymentMethodPayload>;
702
711
  }
703
712
  interface JustifiSkeleton {
704
713
  "component": string;
@@ -939,6 +948,10 @@ export interface JustifiRefundFormCustomEvent<T> extends CustomEvent<T> {
939
948
  detail: T;
940
949
  target: HTMLJustifiRefundFormElement;
941
950
  }
951
+ export interface JustifiSaveNewPaymentMethodCustomEvent<T> extends CustomEvent<T> {
952
+ detail: T;
953
+ target: HTMLJustifiSaveNewPaymentMethodElement;
954
+ }
942
955
  export interface JustifiSavedPaymentMethodCustomEvent<T> extends CustomEvent<T> {
943
956
  detail: T;
944
957
  target: HTMLJustifiSavedPaymentMethodElement;
@@ -1525,6 +1538,7 @@ declare global {
1525
1538
  };
1526
1539
  interface HTMLJustifiCheckoutElementEventMap {
1527
1540
  "error-event": ComponentError;
1541
+ "loaded": ILoadedEventResponse;
1528
1542
  }
1529
1543
  interface HTMLJustifiCheckoutElement extends Components.JustifiCheckout, HTMLStencilElement {
1530
1544
  addEventListener<K extends keyof HTMLJustifiCheckoutElementEventMap>(type: K, listener: (this: HTMLJustifiCheckoutElement, ev: JustifiCheckoutCustomEvent<HTMLJustifiCheckoutElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -1543,6 +1557,7 @@ declare global {
1543
1557
  interface HTMLJustifiCheckoutCoreElementEventMap {
1544
1558
  "submitted": ICheckoutCompleteResponse;
1545
1559
  "error-event": ComponentError;
1560
+ "loaded": ILoadedEventResponse1;
1546
1561
  }
1547
1562
  interface HTMLJustifiCheckoutCoreElement extends Components.JustifiCheckoutCore, HTMLStencilElement {
1548
1563
  addEventListener<K extends keyof HTMLJustifiCheckoutCoreElementEventMap>(type: K, listener: (this: HTMLJustifiCheckoutCoreElement, ev: JustifiCheckoutCoreCustomEvent<HTMLJustifiCheckoutCoreElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -1982,6 +1997,23 @@ declare global {
1982
1997
  prototype: HTMLJustifiRefundFormElement;
1983
1998
  new (): HTMLJustifiRefundFormElement;
1984
1999
  };
2000
+ interface HTMLJustifiSaveNewPaymentMethodElementEventMap {
2001
+ "checkboxChanged": boolean;
2002
+ }
2003
+ interface HTMLJustifiSaveNewPaymentMethodElement extends Components.JustifiSaveNewPaymentMethod, HTMLStencilElement {
2004
+ addEventListener<K extends keyof HTMLJustifiSaveNewPaymentMethodElementEventMap>(type: K, listener: (this: HTMLJustifiSaveNewPaymentMethodElement, ev: JustifiSaveNewPaymentMethodCustomEvent<HTMLJustifiSaveNewPaymentMethodElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
2005
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2006
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2007
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2008
+ removeEventListener<K extends keyof HTMLJustifiSaveNewPaymentMethodElementEventMap>(type: K, listener: (this: HTMLJustifiSaveNewPaymentMethodElement, ev: JustifiSaveNewPaymentMethodCustomEvent<HTMLJustifiSaveNewPaymentMethodElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
2009
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2010
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2011
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2012
+ }
2013
+ var HTMLJustifiSaveNewPaymentMethodElement: {
2014
+ prototype: HTMLJustifiSaveNewPaymentMethodElement;
2015
+ new (): HTMLJustifiSaveNewPaymentMethodElement;
2016
+ };
1985
2017
  interface HTMLJustifiSavedPaymentMethodElementEventMap {
1986
2018
  "paymentMethodOptionSelected": any;
1987
2019
  }
@@ -2282,6 +2314,7 @@ declare global {
2282
2314
  "justifi-payouts-list": HTMLJustifiPayoutsListElement;
2283
2315
  "justifi-proceeds-list": HTMLJustifiProceedsListElement;
2284
2316
  "justifi-refund-form": HTMLJustifiRefundFormElement;
2317
+ "justifi-save-new-payment-method": HTMLJustifiSaveNewPaymentMethodElement;
2285
2318
  "justifi-saved-payment-method": HTMLJustifiSavedPaymentMethodElement;
2286
2319
  "justifi-season-interruption-insurance": HTMLJustifiSeasonInterruptionInsuranceElement;
2287
2320
  "justifi-season-interruption-insurance-core": HTMLJustifiSeasonInterruptionInsuranceCoreElement;
@@ -2694,6 +2727,7 @@ declare namespace LocalJSX {
2694
2727
  "disablePaymentMethodGroup"?: boolean;
2695
2728
  "iframeOrigin"?: string;
2696
2729
  "onError-event"?: (event: JustifiCheckoutCustomEvent<ComponentError>) => void;
2730
+ "onLoaded"?: (event: JustifiCheckoutCustomEvent<ILoadedEventResponse>) => void;
2697
2731
  }
2698
2732
  interface JustifiCheckoutCore {
2699
2733
  "authToken"?: string;
@@ -2709,6 +2743,7 @@ declare namespace LocalJSX {
2709
2743
  */
2710
2744
  "iframeOrigin"?: string;
2711
2745
  "onError-event"?: (event: JustifiCheckoutCoreCustomEvent<ComponentError>) => void;
2746
+ "onLoaded"?: (event: JustifiCheckoutCoreCustomEvent<ILoadedEventResponse1>) => void;
2712
2747
  "onSubmitted"?: (event: JustifiCheckoutCoreCustomEvent<ICheckoutCompleteResponse>) => void;
2713
2748
  }
2714
2749
  interface JustifiDetails {
@@ -2747,10 +2782,11 @@ declare namespace LocalJSX {
2747
2782
  }
2748
2783
  interface JustifiNewPaymentMethod {
2749
2784
  "accountId"?: string;
2750
- "clientId"?: string;
2785
+ "authToken"?: string;
2751
2786
  "iframeOrigin"?: string;
2752
2787
  "isSelected"?: boolean;
2753
2788
  "onPaymentMethodOptionSelected"?: (event: JustifiNewPaymentMethodCustomEvent<any>) => void;
2789
+ "paymentMethodGroupId"?: string;
2754
2790
  "paymentMethodOption"?: PaymentMethodOption;
2755
2791
  }
2756
2792
  interface JustifiOwnerForm {
@@ -2825,11 +2861,13 @@ declare namespace LocalJSX {
2825
2861
  }
2826
2862
  interface JustifiPaymentMethodOptions {
2827
2863
  "accountId"?: string;
2864
+ "authToken"?: string;
2828
2865
  "bnpl"?: IBnpl;
2829
- "clientId"?: string;
2830
2866
  "iframeOrigin"?: string;
2867
+ "insuranceToggled"?: boolean;
2831
2868
  "onToggleCreatingNewPaymentMethod"?: (event: JustifiPaymentMethodOptionsCustomEvent<any>) => void;
2832
2869
  "paymentAmount"?: number;
2870
+ "paymentMethodGroupId"?: string;
2833
2871
  "savedPaymentMethods"?: any[];
2834
2872
  "showAch"?: boolean;
2835
2873
  "showBnpl"?: boolean;
@@ -2987,6 +3025,9 @@ declare namespace LocalJSX {
2987
3025
  */
2988
3026
  "withButton"?: boolean;
2989
3027
  }
3028
+ interface JustifiSaveNewPaymentMethod {
3029
+ "onCheckboxChanged"?: (event: JustifiSaveNewPaymentMethodCustomEvent<boolean>) => void;
3030
+ }
2990
3031
  interface JustifiSavedPaymentMethod {
2991
3032
  "iframeOrigin"?: string;
2992
3033
  "isSelected"?: boolean;
@@ -3181,6 +3222,7 @@ declare namespace LocalJSX {
3181
3222
  "justifi-payouts-list": JustifiPayoutsList;
3182
3223
  "justifi-proceeds-list": JustifiProceedsList;
3183
3224
  "justifi-refund-form": JustifiRefundForm;
3225
+ "justifi-save-new-payment-method": JustifiSaveNewPaymentMethod;
3184
3226
  "justifi-saved-payment-method": JustifiSavedPaymentMethod;
3185
3227
  "justifi-season-interruption-insurance": JustifiSeasonInterruptionInsurance;
3186
3228
  "justifi-season-interruption-insurance-core": JustifiSeasonInterruptionInsuranceCore;
@@ -3442,6 +3484,7 @@ declare module "@stencil/core" {
3442
3484
  */
3443
3485
  "justifi-proceeds-list": LocalJSX.JustifiProceedsList & JSXBase.HTMLAttributes<HTMLJustifiProceedsListElement>;
3444
3486
  "justifi-refund-form": LocalJSX.JustifiRefundForm & JSXBase.HTMLAttributes<HTMLJustifiRefundFormElement>;
3487
+ "justifi-save-new-payment-method": LocalJSX.JustifiSaveNewPaymentMethod & JSXBase.HTMLAttributes<HTMLJustifiSaveNewPaymentMethodElement>;
3445
3488
  "justifi-saved-payment-method": LocalJSX.JustifiSavedPaymentMethod & JSXBase.HTMLAttributes<HTMLJustifiSavedPaymentMethodElement>;
3446
3489
  "justifi-season-interruption-insurance": LocalJSX.JustifiSeasonInterruptionInsurance & JSXBase.HTMLAttributes<HTMLJustifiSeasonInterruptionInsuranceElement>;
3447
3490
  "justifi-season-interruption-insurance-core": LocalJSX.JustifiSeasonInterruptionInsuranceCore & JSXBase.HTMLAttributes<HTMLJustifiSeasonInterruptionInsuranceCoreElement>;
@@ -26,6 +26,7 @@ export declare const MapSubAccountStatusToBadge: (status: string) => "<span clas
26
26
  */
27
27
  export declare function snakeCaseToHumanReadable(snakeCaseStr: string): string;
28
28
  export declare function camelToKebab(str: string): string;
29
+ export declare function snakeToCamel(str: string): string;
29
30
  export declare function flattenNestedObject(obj: any): {};
30
31
  export declare function composeQueryParams(values: string[]): string;
31
32
  export declare function loadFontsOnParent(): Promise<any>;
@@ -1 +1 @@
1
- import{r as t,c as i,h as e}from"./p-a63a6fb9.js";import{A as s}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{c as r}from"./p-ae263544.js";import{g as o,a}from"./p-8115b2f4.js";import{C as n,a as d}from"./p-14c91ffd.js";class c{async fetchQuote(t,i){return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post("insurance/quotes",JSON.stringify(i))}async toggleCoverage(t,i,e){const o=`insurance/quotes/${i}/toggle`;return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post(o,JSON.stringify(e))}}const h=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event",7),this.authToken=void 0,this.checkoutId=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.quote=void 0}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){console.log("### componentWillLoad ins season interruption"),this.initializeServiceMethods()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:i})=>async({payload:e,onSuccess:s,onError:r})=>{var d;try{const c=await i.fetchQuote(t,e);if(c.error)return r({error:o(c.error),code:a(null===(d=c.error)||void 0===d?void 0:d.code),severity:n.ERROR});s({quote:c.data})}catch(t){const i=a(null==t?void 0:t.code);return r({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new c}),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:e,payload:s,onSuccess:r,onError:d})=>{var c;try{const h=await i.toggleCoverage(t,e,s);if(h.error)return d({error:o(h.error),code:a(null===(c=h.error)||void 0===c?void 0:c.code),severity:n.ERROR});r({quote:h.data})}catch(t){const i=a(null==t?void 0:t.code);return d({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new c})):this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:"Missing authToken",severity:n.ERROR})}render(){return e("justifi-season-interruption-insurance-core",{key:"0eb05bed71db4d90870063a4bfbdadd980fd2905",ref:t=>this.seasonInterruptionCoreRef=t,"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})}};export{h as justifi_season_interruption_insurance}
1
+ import{r as t,c as i,h as e}from"./p-a63a6fb9.js";import{A as s}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{c as r}from"./p-ae263544.js";import{g as o,a}from"./p-8115b2f4.js";import{C as n,a as c}from"./p-14c91ffd.js";class d{async fetchQuote(t,i){return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post("insurance/quotes",JSON.stringify(i))}async toggleCoverage(t,i,e){const o=`insurance/quotes/${i}/toggle`;return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post(o,JSON.stringify(e))}}const h=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event",7),this.authToken=void 0,this.checkoutId=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.quote=void 0}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){console.log("### componentWillLoad ins season interruption"),this.initializeServiceMethods()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:i})=>async({payload:e,onSuccess:s,onError:r})=>{var c;try{const d=await i.fetchQuote(t,e);if(d.error)return r({error:o(d.error),code:a(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});s({quote:d.data})}catch(t){const i=a(null==t?void 0:t.code);return r({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new d}),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:e,payload:s,onSuccess:r,onError:c})=>{var d;try{const h=await i.toggleCoverage(t,e,s);if(h.error)return c({error:o(h.error),code:a(null===(d=h.error)||void 0===d?void 0:d.code),severity:n.ERROR});r({quote:h.data})}catch(t){const i=a(null==t?void 0:t.code);return c({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new d})):this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:"Missing authToken",severity:n.ERROR})}render(){return e("justifi-season-interruption-insurance-core",{key:"fc932dc338e0fe28348d3cb24701d46315199ea1",ref:t=>this.seasonInterruptionCoreRef=t,"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})}};export{h as justifi_season_interruption_insurance}
@@ -1 +1 @@
1
- import{r as t,c as s,h as r,H as o}from"./p-a63a6fb9.js";import{t as i}from"./p-2b6c9c4f.js";import{P as e}from"./p-ca39c89f.js";import"./p-56f6ce4c.js";import"./p-e8706cc4.js";import{P as a}from"./p-e3fab0e2.js";import{C as c,a as n}from"./p-14c91ffd.js";import{g as p,a as h}from"./p-8115b2f4.js";import{E as d}from"./p-cb68e8fa.js";import{J as u}from"./p-851e57f4.js";import"./p-29c0b182.js";import"./p-ae263544.js";import"./p-3394ff6c.js";const m=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayouts=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new u(this),this.initializeGetPayouts()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPayouts()}initializeGetPayouts(){this.accountId&&this.authToken?this.getPayouts=(({id:t,authToken:s,service:r})=>async({params:o,onSuccess:i,onError:e})=>{var n,d;try{const u=await r.fetchPayouts(t,s,o);if(u.error)return e({error:p(u.error),code:h(null===(d=u.error)||void 0===d?void 0:d.code),severity:c.ERROR});{const t=Object.assign({},u.page_info);i({payouts:(null===(n=u.data)||void 0===n?void 0:n.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){return e({error:p(t),code:h(null==t?void 0:t.code),severity:c.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new e}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:n.MISSING_PROPS,message:"Account ID and Auth Token are required"}))}render(){return this.errorMessage?d(this.errorMessage):r(o,{exportedparts:i},r("payouts-list-core",{getPayouts:this.getPayouts,"onError-event":this.handleOnError}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payouts_list}
1
+ import{r as t,c as s,h as r,H as o}from"./p-a63a6fb9.js";import{t as i}from"./p-2b6c9c4f.js";import{P as e}from"./p-ca39c89f.js";import"./p-56f6ce4c.js";import"./p-e8706cc4.js";import{P as a}from"./p-e3fab0e2.js";import{C as n,a as c}from"./p-14c91ffd.js";import{g as p,a as h}from"./p-8115b2f4.js";import{E as d}from"./p-cb68e8fa.js";import{J as u}from"./p-edb605b3.js";import"./p-29c0b182.js";import"./p-ae263544.js";import"./p-b7d9d9fa.js";const m=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayouts=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new u(this),this.initializeGetPayouts()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPayouts()}initializeGetPayouts(){this.accountId&&this.authToken?this.getPayouts=(({id:t,authToken:s,service:r})=>async({params:o,onSuccess:i,onError:e})=>{var c,d;try{const u=await r.fetchPayouts(t,s,o);if(u.error)return e({error:p(u.error),code:h(null===(d=u.error)||void 0===d?void 0:d.code),severity:n.ERROR});{const t=Object.assign({},u.page_info);i({payouts:(null===(c=u.data)||void 0===c?void 0:c.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){return e({error:p(t),code:h(null==t?void 0:t.code),severity:n.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new e}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:"Account ID and Auth Token are required"}))}render(){return this.errorMessage?d(this.errorMessage):r(o,{exportedparts:i},r("payouts-list-core",{getPayouts:this.getPayouts,"onError-event":this.handleOnError}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payouts_list}
@@ -0,0 +1 @@
1
+ import{h as e}from"./p-a63a6fb9.js";const n=()=>e("div",{class:"spinner-border spinner-border-sm",role:"status"},e("span",{class:"visually-hidden"},"Loading...")),o=e=>{var n;if(!(e instanceof KeyboardEvent&&["Backspace","Tab","Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Delete"].includes(e.key)||e instanceof KeyboardEvent&&(e.ctrlKey||e.metaKey)&&"v"===e.key.toLowerCase()))if(e instanceof ClipboardEvent){const o=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text");o&&!/^\d+$/.test(o)&&e.preventDefault()}else e instanceof KeyboardEvent&&!/^\d$/.test(e.key)&&e.preventDefault()};export{n as L,o as n}