@justifi/webcomponents 5.7.4-rc-01 → 5.7.5

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 (581) hide show
  1. package/dist/cjs/{Checkout-BsYZoJ0a.js → Checkout-TZnRz3-3.js} +3 -1
  2. package/dist/cjs/{ComponentError-CEv9ltwy.js → ComponentError-C4MdBBMe.js} +0 -2
  3. package/dist/cjs/{Refund-BFE-2OxN.js → Refund-DN-yzFgy.js} +17 -8
  4. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +5 -5
  5. package/dist/cjs/{bank-account-form_7.cjs.entry.js → bank-account-form_9.cjs.entry.js} +190 -19
  6. package/dist/cjs/{business-additional-questions-schema-C1Ot5vrv.js → business-additional-questions-schema-e3GCIHk5.js} +6 -6
  7. package/dist/cjs/{business-identity-schema-hk4UVEna.js → business-identity-schema-Diqj_WVQ.js} +10 -10
  8. package/dist/cjs/{business.service-BjlK8M6t.js → business.service-U2eLTrq9.js} +3 -3
  9. package/dist/cjs/{Analytics-CLEDjTfr.js → check-pkg-version-DuL7lRe2.js} +23 -23
  10. package/dist/cjs/{checkout.service-Bln6jCAj.js → checkout.service-DtMzeEwi.js} +3 -3
  11. package/dist/cjs/checkouts-list-core.cjs.entry.js +4 -4
  12. package/dist/cjs/custom-popper_4.cjs.entry.js +6 -6
  13. package/dist/cjs/{dispute.service-Bo84yh33.js → dispute.service-CGVAs-5M.js} +3 -3
  14. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  15. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  16. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  17. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  21. package/dist/cjs/{get-business-BiEc-jdH.js → get-business-BJrtsomz.js} +2 -2
  22. package/dist/cjs/{get-payment-details-OrAuseBX.js → get-payment-details-CdVEiscr.js} +4 -4
  23. package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-CXEQkjDm.js} +2 -2
  24. package/dist/cjs/{get-subaccounts-CoC0XYqj.js → get-subaccounts-fBIoOr7m.js} +4 -4
  25. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  26. package/dist/cjs/iframe-input-styles-state-DX5gGQQF.js +26 -0
  27. package/dist/cjs/{hidden-input_2.cjs.entry.js → iframe-input.cjs.entry.js} +14 -111
  28. package/dist/cjs/{form-CWW8IM-X.js → index.esm-CVuJLXJZ.js} +10022 -10022
  29. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +21 -20
  30. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -12
  31. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +46 -49
  32. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
  33. package/dist/cjs/justifi-business-form.cjs.entry.js +16 -16
  34. package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +67 -23
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
  38. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  40. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -12
  41. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
  42. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  43. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -10
  44. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  45. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  46. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  47. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
  48. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  49. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
  50. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  51. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
  52. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
  54. package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -17
  55. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +18 -16
  56. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  57. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
  58. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
  59. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
  60. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -15
  61. package/dist/cjs/loader.cjs.js +1 -1
  62. package/dist/cjs/{package-D89BDRKu.js → package-o4g7MDiy.js} +1 -1
  63. package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
  64. package/dist/cjs/{payment-provisioning-actions-SNMCdsyF.js → payment-provisioning-actions-BkWSDJQQ.js} +2 -2
  65. package/dist/cjs/{payment.service-C0t9DRcu.js → payment.service-DmpOOPu1.js} +3 -3
  66. package/dist/cjs/payments-list-core.cjs.entry.js +4 -4
  67. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  68. package/dist/cjs/{payout.service-DGeLS8BN.js → payout.service-BfO6L79f.js} +3 -3
  69. package/dist/cjs/payouts-list-core.cjs.entry.js +4 -4
  70. package/dist/cjs/{schema-validations-CllkToCZ.js → schema-validations-BSeMee-o.js} +31 -31
  71. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  72. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -5
  73. package/dist/cjs/{terminal-orders-table-Dw6uHG1R.js → terminal-orders-table-DMjFmuxk.js} +3 -3
  74. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  75. package/dist/cjs/{terminal.service-Ck6PIO3G.js → terminal.service-h-LWztbo.js} +3 -3
  76. package/dist/cjs/terminals-list-core.cjs.entry.js +4 -4
  77. package/dist/cjs/{utils-IGCnjtqc.js → utils-l0veqT9y.js} +1 -1
  78. package/dist/cjs/webcomponents.cjs.js +1 -1
  79. package/dist/collection/api/Checkout.js +3 -1
  80. package/dist/collection/api/ComponentError.js +0 -2
  81. package/dist/collection/api/DisputeEvidenceDocument.js +4 -7
  82. package/dist/collection/api/Document.js +17 -8
  83. package/dist/collection/collection-manifest.json +1 -8
  84. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +2 -1
  85. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  86. package/dist/collection/components/checkout/billing-form/billing-form.js +1 -1
  87. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  88. package/dist/collection/components/checkout/checkout.js +2 -11
  89. package/dist/collection/components/checkout/payment-method-options.js +33 -3
  90. package/dist/collection/components/checkout/sezzle-payment-method.js +240 -0
  91. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  92. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  93. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  94. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  95. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  96. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  97. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  98. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  99. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  100. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  101. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  102. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  103. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  104. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  105. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  106. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  107. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  108. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  109. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +12 -10
  110. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  111. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  112. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  113. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  114. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  115. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  116. package/dist/collection/components/payments-list/payments-list.js +1 -1
  117. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  118. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  119. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  120. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  121. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  122. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  123. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  124. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  125. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  126. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  127. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  128. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -10
  129. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  130. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  131. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  132. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  133. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  134. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  135. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  136. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  137. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  138. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  139. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  140. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  141. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  142. package/dist/collection/ui-components/form/iframe-input.js +5 -10
  143. package/dist/docs.json +255 -786
  144. package/dist/esm/{Api-C3T8XYbb.js → Api-69eVlLFc.js} +1 -1
  145. package/dist/esm/{Checkout-CV6qgU0r.js → Checkout-B9LrTq63.js} +4 -2
  146. package/dist/esm/{ComponentError-BhrFjjAs.js → ComponentError-SdntD1xf.js} +0 -2
  147. package/dist/esm/{Payment-BEvE6jAC.js → Payment-BGiKmQYR.js} +1 -1
  148. package/dist/esm/{Refund-BKe90wSq.js → Refund-f_BCgcDa.js} +18 -9
  149. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  150. package/dist/esm/{badge-DHaTxWwu.js → badge-VWumlkvS.js} +1 -1
  151. package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -10
  152. package/dist/esm/{bank-account-form_7.entry.js → bank-account-form_9.entry.js} +186 -17
  153. package/dist/esm/{business-additional-questions-schema-D00MNMDJ.js → business-additional-questions-schema-uQlQ8fXQ.js} +2 -2
  154. package/dist/esm/business-details-core.entry.js +3 -3
  155. package/dist/esm/{business-identity-schema-pxSsAdgG.js → business-identity-schema-BsrgqgDl.js} +2 -2
  156. package/dist/esm/{business.service-BMABw2vX.js → business.service-BviUFOjP.js} +5 -5
  157. package/dist/esm/{button-5hc5r__m.js → button-BfT7Ex96.js} +1 -1
  158. package/dist/esm/{Analytics-B3nThWuq.js → check-pkg-version-phOwcSQM.js} +25 -25
  159. package/dist/esm/{checkout.service-jmweME4d.js → checkout.service-B8W_W-lc.js} +5 -5
  160. package/dist/esm/checkouts-list-core.entry.js +11 -11
  161. package/dist/esm/{checkouts-table-BS_UiHaT.js → checkouts-table-zIrBvmQp.js} +3 -3
  162. package/dist/esm/custom-popper_4.entry.js +8 -8
  163. package/dist/esm/{dispute.service-DWQ8DPZa.js → dispute.service-1e9677RK.js} +5 -5
  164. package/dist/esm/form-alert_5.entry.js +1 -1
  165. package/dist/esm/form-control-checkbox.entry.js +5 -5
  166. package/dist/esm/form-control-date.entry.js +4 -4
  167. package/dist/esm/{form-control-error-text-C93L7yFm.js → form-control-error-text-CYWqNNkG.js} +1 -1
  168. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  169. package/dist/esm/{form-control-help-text-p28euWGX.js → form-control-help-text-DMdU5_la.js} +1 -1
  170. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  171. package/dist/esm/form-control-monetary.entry.js +6 -6
  172. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  173. package/dist/esm/form-control-number.entry.js +5 -5
  174. package/dist/esm/form-control-radio.entry.js +3 -3
  175. package/dist/esm/{get-business-BSRtbTh7.js → get-business-GEPTefIj.js} +2 -2
  176. package/dist/esm/{get-payment-details-PSdVeuGc.js → get-payment-details-B5-Hzdrg.js} +6 -6
  177. package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D7IYYqVL.js} +2 -2
  178. package/dist/esm/{get-subaccounts-CownROrO.js → get-subaccounts-Cv7zn0lA.js} +7 -7
  179. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  180. package/dist/esm/{header-1-CUc5m0Ge.js → header-1-84nZCcj4.js} +1 -1
  181. package/dist/esm/{header-3-BXU3iN46.js → header-3-DpBr7qOY.js} +1 -1
  182. package/dist/esm/iframe-input-styles-state-DqkcQMM1.js +23 -0
  183. package/dist/esm/{hidden-input_2.entry.js → iframe-input.entry.js} +10 -106
  184. package/dist/esm/{form-BjGUIqxU.js → index.esm-BCNUj0Dx.js} +10022 -10022
  185. package/dist/esm/{insurance-state-Br0fBMFI.js → insurance-state-BDLlv3CM.js} +1 -1
  186. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +14 -13
  187. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -12
  188. package/dist/esm/justifi-additional-statement_8.entry.js +14 -17
  189. package/dist/esm/justifi-business-details.entry.js +13 -13
  190. package/dist/esm/justifi-business-form.entry.js +19 -19
  191. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  192. package/dist/esm/justifi-checkout-core.entry.js +8 -8
  193. package/dist/esm/justifi-checkout.entry.js +66 -22
  194. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
  195. package/dist/esm/justifi-checkouts-list.entry.js +15 -15
  196. package/dist/esm/justifi-details.entry.js +2 -2
  197. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  198. package/dist/esm/justifi-dispute-management.entry.js +11 -11
  199. package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
  200. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
  201. package/dist/esm/justifi-order-terminals.entry.js +15 -15
  202. package/dist/esm/justifi-owner-form_3.entry.js +14 -14
  203. package/dist/esm/justifi-payment-details.entry.js +13 -13
  204. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  205. package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
  206. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
  207. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  208. package/dist/esm/justifi-payments-list.entry.js +15 -15
  209. package/dist/esm/justifi-payout-details.entry.js +13 -13
  210. package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
  211. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  212. package/dist/esm/justifi-payouts-list.entry.js +17 -17
  213. package/dist/esm/justifi-refund-payment.entry.js +15 -15
  214. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  215. package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -17
  216. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
  217. package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
  218. package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
  219. package/dist/esm/justifi-terminals-list.entry.js +15 -15
  220. package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -18
  221. package/dist/esm/loader.js +1 -1
  222. package/dist/esm/{package-rzqedGq4.js → package-B0XIc_FO.js} +1 -1
  223. package/dist/esm/pagination-menu.entry.js +1 -1
  224. package/dist/esm/{parts-_6eQgwfE.js → parts-BrLVc_85.js} +1 -1
  225. package/dist/esm/payment-details-core.entry.js +14 -14
  226. package/dist/esm/{payment-provisioning-actions-2qP7AtHj.js → payment-provisioning-actions-BIfyW239.js} +2 -2
  227. package/dist/esm/{payment.service-u8UGq6gX.js → payment.service-BMbF1Svr.js} +5 -5
  228. package/dist/esm/payments-list-core.entry.js +12 -12
  229. package/dist/esm/{payments-status-BMqVM0kB.js → payments-status-_qXPu883.js} +1 -1
  230. package/dist/esm/{payments-table-BMIALfY5.js → payments-table-CrCdh5OV.js} +3 -3
  231. package/dist/esm/payout-details-core.entry.js +10 -10
  232. package/dist/esm/{payout.service-CXW3oJqI.js → payout.service-HKpmn5XB.js} +5 -5
  233. package/dist/esm/payouts-list-core.entry.js +12 -12
  234. package/dist/esm/{payouts-status-BGGBJaXG.js → payouts-status-C1XLgtWW.js} +1 -1
  235. package/dist/esm/{payouts-table-BNPc0Z6X.js → payouts-table-DIqsk6Oa.js} +3 -3
  236. package/dist/esm/{schema-validations-C7pC-de1.js → schema-validations-DLWfpHyI.js} +2 -2
  237. package/dist/esm/{skeleton-C0KgFH0Z.js → skeleton-CdD_FIeP.js} +1 -1
  238. package/dist/esm/{spinner-Dtab-HTx.js → spinner-DIlSUUzM.js} +1 -1
  239. package/dist/esm/{table-wp341KhD.js → table-DjsimZwr.js} +2 -2
  240. package/dist/esm/table-filters-menu.entry.js +3 -3
  241. package/dist/esm/terminal-orders-list-core.entry.js +11 -11
  242. package/dist/esm/{terminal-orders-table-CzEC1eXm.js → terminal-orders-table-BnXCVH7W.js} +7 -7
  243. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  244. package/dist/esm/{terminal.service-Cw0RbYs3.js → terminal.service-XpfOXoFl.js} +5 -5
  245. package/dist/esm/terminals-list-core.entry.js +11 -11
  246. package/dist/esm/{terminals-table-CcKZ_9re.js → terminals-table-CCLlefFA.js} +3 -3
  247. package/dist/esm/{utils-BGp_IJEa.js → utils-6CI1OiOE.js} +1 -1
  248. package/dist/esm/{utils-BjLkBMLe.js → utils-DB5fh6Iv.js} +1 -1
  249. package/dist/esm/{utils-BZvep88z.js → utils-Dccsn9BY.js} +1 -1
  250. package/dist/esm/webcomponents.js +1 -1
  251. package/dist/module/Checkout.js +3 -3
  252. package/dist/module/Refund.js +17 -8
  253. package/dist/module/additional-statement.js +1 -1
  254. package/dist/module/bank-account-form2.js +2 -2
  255. package/dist/module/billing-form.js +3 -3
  256. package/dist/module/business-address-schema.js +1 -1
  257. package/dist/module/business-bank-account-form-step-core.js +3 -2
  258. package/dist/module/business-core-info-schema.js +1 -1
  259. package/dist/module/business-identity-schema.js +1 -1
  260. package/dist/module/button.js +1 -1
  261. package/dist/module/cancellation-policy.js +1 -1
  262. package/dist/module/card-form2.js +2 -2
  263. package/dist/module/{Analytics.js → check-pkg-version.js} +21 -21
  264. package/dist/module/checkout-core.js +38 -32
  265. package/dist/module/checkouts-list-core2.js +2 -2
  266. package/dist/module/custom-popper2.js +2 -2
  267. package/dist/module/customer-details.js +1 -1
  268. package/dist/module/dispute-management-core.js +1 -1
  269. package/dist/module/dispute-notification.js +1 -1
  270. package/dist/module/dispute-response-core.js +1 -1
  271. package/dist/module/dispute-response.js +2 -2
  272. package/dist/module/duplicate-charge.js +1 -1
  273. package/dist/module/electronic-evidence.js +1 -1
  274. package/dist/module/file-input-handler.js +4 -7
  275. package/dist/module/form-control-checkbox2.js +2 -2
  276. package/dist/module/form-control-date2.js +2 -2
  277. package/dist/module/form-control-file-v22.js +1 -1
  278. package/dist/module/form-control-file2.js +2 -2
  279. package/dist/module/form-control-monetary2.js +2 -2
  280. package/dist/module/form-control-number-masked2.js +2 -2
  281. package/dist/module/form-control-number.js +2 -2
  282. package/dist/module/form-control-radio2.js +2 -2
  283. package/dist/module/form-control-select2.js +2 -2
  284. package/dist/module/form-control-text2.js +2 -2
  285. package/dist/module/form-control-textarea2.js +2 -2
  286. package/dist/module/gross-payment-chart-core2.js +1 -1
  287. package/dist/module/hidden-input2.js +1 -1
  288. package/dist/module/iframe-input2.js +5 -5
  289. package/dist/module/justifi-business-details.js +1 -1
  290. package/dist/module/justifi-business-form.js +1 -1
  291. package/dist/module/justifi-checkout.js +99 -48
  292. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  293. package/dist/module/justifi-checkouts-list.js +2 -2
  294. package/dist/module/justifi-dispute-management.js +2 -2
  295. package/dist/module/justifi-gross-payment-chart.js +1 -1
  296. package/dist/module/justifi-order-terminals.js +3 -3
  297. package/dist/module/justifi-payment-details.js +1 -1
  298. package/dist/module/justifi-payment-provisioning.js +1 -1
  299. package/dist/module/justifi-payment-transactions-list.js +3 -3
  300. package/dist/module/justifi-payments-list-filters.js +3 -3
  301. package/dist/module/justifi-payments-list.js +2 -2
  302. package/dist/module/justifi-payout-details.js +1 -1
  303. package/dist/module/justifi-payout-transactions-list.js +3 -3
  304. package/dist/module/justifi-payouts-list-filters.js +3 -3
  305. package/dist/module/justifi-payouts-list.js +2 -2
  306. package/dist/module/justifi-refund-payment.js +1 -1
  307. package/dist/module/justifi-season-interruption-insurance.js +11 -9
  308. package/dist/module/justifi-sezzle-payment-method.js +1 -108
  309. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  310. package/dist/module/justifi-terminal-orders-list.js +2 -2
  311. package/dist/module/justifi-terminals-list-filters.js +2 -2
  312. package/dist/module/justifi-terminals-list.js +2 -2
  313. package/dist/module/justifi-tokenize-payment-method.js +40 -41
  314. package/dist/module/package.js +3 -3
  315. package/dist/module/parts.js +1 -1
  316. package/dist/module/payment-details-core2.js +8 -8
  317. package/dist/module/payment-method-options.js +51 -34
  318. package/dist/module/payments-list-core2.js +2 -2
  319. package/dist/module/payout-details-core2.js +3 -3
  320. package/dist/module/payouts-list-core2.js +2 -2
  321. package/dist/module/product-or-service.js +1 -1
  322. package/dist/module/refund-policy.js +1 -1
  323. package/dist/module/saved-payment-method.js +22 -2
  324. package/dist/module/schema-validations.js +1 -1
  325. package/dist/module/sezzle-payment-method.js +104 -0
  326. package/dist/module/shipping-details.js +1 -1
  327. package/dist/module/table-filters-menu2.js +2 -2
  328. package/dist/module/terminal-orders-list-core2.js +2 -2
  329. package/dist/module/terminal-quantity-selector2.js +1 -1
  330. package/dist/module/terminals-list-core2.js +2 -2
  331. package/dist/types/api/Checkout.d.ts +13 -14
  332. package/dist/types/api/ComponentError.d.ts +1 -3
  333. package/dist/types/api/DisputeEvidenceDocument.d.ts +1 -1
  334. package/dist/types/api/Document.d.ts +2 -2
  335. package/dist/types/components/checkout/checkout.d.ts +0 -1
  336. package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
  337. package/dist/types/components/{modular-checkout-parts → checkout}/sezzle-payment-method.d.ts +8 -2
  338. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
  339. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
  340. package/dist/types/components.d.ts +22 -149
  341. package/dist/types/ui-components/form/iframe-input.d.ts +1 -2
  342. package/dist/webcomponents/{p-a76e0f42.entry.js → p-0da7c7e5.entry.js} +1 -1
  343. package/dist/webcomponents/p-111535c9.entry.js +1 -0
  344. package/dist/webcomponents/{p-41dffb12.entry.js → p-18ddc883.entry.js} +1 -1
  345. package/dist/webcomponents/p-1ANZF89K.js +1 -0
  346. package/dist/webcomponents/p-1CYqfEKd.js +1 -0
  347. package/dist/webcomponents/{p-8bb3513f.entry.js → p-249d9a7f.entry.js} +1 -1
  348. package/dist/webcomponents/p-2b5a7776.entry.js +1 -0
  349. package/dist/webcomponents/{p-0fc4a0df.entry.js → p-30415c7f.entry.js} +1 -1
  350. package/dist/webcomponents/{p-7c6f2fad.entry.js → p-312b81a6.entry.js} +1 -1
  351. package/dist/webcomponents/{p-0ed08f7b.entry.js → p-36c99fce.entry.js} +1 -1
  352. package/dist/webcomponents/{p-9c6479a4.entry.js → p-39d3df56.entry.js} +1 -1
  353. package/dist/webcomponents/{p-bac895b4.entry.js → p-3bf842ea.entry.js} +1 -1
  354. package/dist/webcomponents/p-3dc2d47c.entry.js +1 -0
  355. package/dist/webcomponents/p-40bbb25c.entry.js +1 -0
  356. package/dist/webcomponents/{p-1a0f21d1.entry.js → p-40fb2439.entry.js} +1 -1
  357. package/dist/webcomponents/{p-acdf6a5f.entry.js → p-412805ce.entry.js} +1 -1
  358. package/dist/webcomponents/{p-783b70b5.entry.js → p-43c3a433.entry.js} +1 -1
  359. package/dist/webcomponents/{p-feea4bfd.entry.js → p-4ac8d9d4.entry.js} +4 -4
  360. package/dist/webcomponents/{p-1301a9ae.entry.js → p-5436c41f.entry.js} +1 -1
  361. package/dist/webcomponents/p-5576322e.entry.js +1 -0
  362. package/dist/webcomponents/p-59db70c0.entry.js +1 -0
  363. package/dist/webcomponents/p-600da1ee.entry.js +1 -0
  364. package/dist/webcomponents/{p-ef520bb8.entry.js → p-6daf7df0.entry.js} +1 -1
  365. package/dist/webcomponents/{p-9fe2281c.entry.js → p-7d324f45.entry.js} +1 -1
  366. package/dist/webcomponents/p-867a4a55.entry.js +1 -0
  367. package/dist/webcomponents/{p-6d5833b4.entry.js → p-878f26f7.entry.js} +1 -1
  368. package/dist/webcomponents/p-8c0162b3.entry.js +1 -0
  369. package/dist/webcomponents/p-8e201c63.entry.js +1 -0
  370. package/dist/webcomponents/p-91b5da99.entry.js +1 -0
  371. package/dist/webcomponents/{p-17727dd3.entry.js → p-95d99ffc.entry.js} +1 -1
  372. package/dist/webcomponents/p-989f51bc.entry.js +1 -0
  373. package/dist/webcomponents/{p-83037fd2.entry.js → p-9f9002c1.entry.js} +1 -1
  374. package/dist/webcomponents/p-B0XIc_FO.js +1 -0
  375. package/dist/webcomponents/{p-Dqx8L05_.js → p-B3AHoKpE.js} +1 -1
  376. package/dist/webcomponents/{p-CAdO_ZNx.js → p-BLWOT0S7.js} +1 -1
  377. package/dist/webcomponents/{p-Cf4TMP3p.js → p-BOQVwCyQ.js} +1 -1
  378. package/dist/webcomponents/{p-BaoXNxnc.js → p-BSl0X3r8.js} +1 -1
  379. package/dist/webcomponents/{p-BxfUcCXo.js → p-BTS3E50C.js} +1 -1
  380. package/dist/webcomponents/p-BdTK0wi9.js +1 -0
  381. package/dist/webcomponents/{p-BmgpToYI.js → p-Bgdp97Tl.js} +1 -1
  382. package/dist/webcomponents/{p-DhyQbCOq.js → p-BkDN6yJN.js} +1 -1
  383. package/dist/webcomponents/{p-9REosSLu.js → p-BnE7qgLh.js} +1 -1
  384. package/dist/webcomponents/{p-Rx3SLAbu.js → p-Bnrk5pzA.js} +1 -1
  385. package/dist/webcomponents/p-BqoTJ9CO.js +1 -0
  386. package/dist/webcomponents/{p-_6eQgwfE.js → p-BrLVc_85.js} +1 -1
  387. package/dist/webcomponents/p-C5RuuShs.js +1 -0
  388. package/dist/webcomponents/p-C9oyC18r.js +1 -0
  389. package/dist/webcomponents/{p-C39xg5_f.js → p-CNSeavdR.js} +1 -1
  390. package/dist/webcomponents/p-CSO7ljYx.js +1 -0
  391. package/dist/webcomponents/{p-XTXkuHkQ.js → p-CYTPbCLN.js} +1 -1
  392. package/dist/webcomponents/p-CgEahdBL.js +1 -0
  393. package/dist/webcomponents/p-Ckf8pUs-.js +1 -0
  394. package/dist/webcomponents/{p-MNmf3fQL.js → p-Clv1feia.js} +1 -1
  395. package/dist/webcomponents/p-Cm9gh1Sz.js +1 -0
  396. package/dist/webcomponents/p-CraCsD1A.js +1 -0
  397. package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
  398. package/dist/webcomponents/{p-CdkOB2ri.js → p-Cw3BMq7G.js} +1 -1
  399. package/dist/webcomponents/{p-DHvfrLVU.js → p-D9lioyBA.js} +1 -1
  400. package/dist/webcomponents/p-DVnVdicA.js +1 -0
  401. package/dist/webcomponents/p-DgIkDBGX.js +1 -0
  402. package/dist/webcomponents/p-DniQ6yo6.js +1 -0
  403. package/dist/webcomponents/p-DpbCEDZ3.js +1 -0
  404. package/dist/webcomponents/p-Ds11n2AD.js +1 -0
  405. package/dist/webcomponents/p-DvuraFxP.js +1 -0
  406. package/dist/webcomponents/{p-D7js9xfx.js → p-DzFysjCc.js} +1 -1
  407. package/dist/webcomponents/{p-C8Zhkgm5.js → p-JOSiCHl7.js} +1 -1
  408. package/dist/webcomponents/{p-CFpYbRwn.js → p-KoNvNGKV.js} +1 -1
  409. package/dist/webcomponents/p-SdntD1xf.js +1 -0
  410. package/dist/webcomponents/p-Zuu7wsNB.js +1 -0
  411. package/dist/webcomponents/p-a151a347.entry.js +1 -0
  412. package/dist/webcomponents/{p-02e39fe2.entry.js → p-a23dfac9.entry.js} +1 -1
  413. package/dist/webcomponents/{p-cdc71a77.entry.js → p-a38b3d9a.entry.js} +1 -1
  414. package/dist/webcomponents/p-a48f8ec2.entry.js +1 -0
  415. package/dist/webcomponents/{p-042c6784.entry.js → p-a7e9a1d1.entry.js} +1 -1
  416. package/dist/webcomponents/{p-9b1992ef.entry.js → p-a87c50de.entry.js} +1 -1
  417. package/dist/webcomponents/{p-de969ec7.entry.js → p-aa72125e.entry.js} +1 -1
  418. package/dist/webcomponents/p-b648fca4.entry.js +1 -0
  419. package/dist/webcomponents/p-b92737c4.entry.js +1 -0
  420. package/dist/webcomponents/p-bbf264c6.entry.js +1 -0
  421. package/dist/webcomponents/{p-60abac93.entry.js → p-bdbd0c8e.entry.js} +1 -1
  422. package/dist/webcomponents/p-be89720e.entry.js +1 -0
  423. package/dist/webcomponents/{p-03ed0703.entry.js → p-c18a5ebf.entry.js} +1 -1
  424. package/dist/webcomponents/p-c87WhXVB.js +1 -0
  425. package/dist/webcomponents/p-d3a2fa7e.entry.js +1 -0
  426. package/dist/webcomponents/p-d6tXI5Iw.js +1 -0
  427. package/dist/webcomponents/{p-6286917e.entry.js → p-d768d814.entry.js} +1 -1
  428. package/dist/webcomponents/p-d7883a41.entry.js +1 -0
  429. package/dist/webcomponents/{p-4ed62ecf.entry.js → p-d9a9279b.entry.js} +1 -1
  430. package/dist/webcomponents/p-d9ae1fea.entry.js +1 -0
  431. package/dist/webcomponents/p-da872abc.entry.js +1 -0
  432. package/dist/webcomponents/p-db86c150.entry.js +1 -0
  433. package/dist/webcomponents/{p-d5ada96f.entry.js → p-dbcc1a8e.entry.js} +1 -1
  434. package/dist/webcomponents/p-e0345315.entry.js +1 -0
  435. package/dist/webcomponents/{p-6f6d7a87.entry.js → p-e21ba107.entry.js} +1 -1
  436. package/dist/webcomponents/p-e2867ef6.entry.js +1 -0
  437. package/dist/webcomponents/{p-46c0aa2e.entry.js → p-e4fa3f41.entry.js} +1 -1
  438. package/dist/webcomponents/{p-c4d2ff85.entry.js → p-edfcb58d.entry.js} +1 -1
  439. package/dist/webcomponents/p-f37bb6d6.entry.js +1 -0
  440. package/dist/webcomponents/p-f5eeb11d.entry.js +1 -0
  441. package/dist/webcomponents/p-f6d5f392.entry.js +1 -0
  442. package/dist/webcomponents/p-f6debdb8.entry.js +1 -0
  443. package/dist/webcomponents/{p-6ff96203.entry.js → p-fcb85a8e.entry.js} +1 -1
  444. package/dist/webcomponents/p-hBHbB3i6.js +1 -0
  445. package/dist/webcomponents/{p-Smvec9tp.js → p-pOQo1ck9.js} +1 -1
  446. package/dist/webcomponents/{p-DddGO-XR.js → p-vTsHmSQQ.js} +1 -1
  447. package/dist/webcomponents/webcomponents.esm.js +1 -1
  448. package/package.json +1 -1
  449. package/dist/cjs/billing-form-schema-X1bkxteI.js +0 -26
  450. package/dist/cjs/checkout-actions-CRbQgLn0.js +0 -61
  451. package/dist/cjs/checkout.store-LEOetpmH.js +0 -29
  452. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -85
  453. package/dist/cjs/justifi-billing-information-form.cjs.entry.js +0 -50
  454. package/dist/cjs/justifi-card-form.cjs.entry.js +0 -93
  455. package/dist/cjs/justifi-checkout-summary.cjs.entry.js +0 -21
  456. package/dist/cjs/justifi-modular-checkout.cjs.entry.js +0 -204
  457. package/dist/cjs/justifi-postal-code-form.cjs.entry.js +0 -49
  458. package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +0 -31
  459. package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +0 -80
  460. package/dist/cjs/payment-method-option-utils-imuSE7KV.js +0 -25
  461. package/dist/collection/api/BillingInformation.js +0 -1
  462. package/dist/collection/api/PaymentMethod.js +0 -1
  463. package/dist/collection/components/modular-checkout/modular-checkout.js +0 -345
  464. package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +0 -10
  465. package/dist/collection/components/modular-checkout-parts/bank-account.js +0 -98
  466. package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +0 -21
  467. package/dist/collection/components/modular-checkout-parts/billing-form.js +0 -116
  468. package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +0 -10
  469. package/dist/collection/components/modular-checkout-parts/card-form.js +0 -102
  470. package/dist/collection/components/modular-checkout-parts/postal-code-form.js +0 -114
  471. package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +0 -23
  472. package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +0 -127
  473. package/dist/collection/components/modular-checkout-parts/summary.js +0 -12
  474. package/dist/collection/store/checkout.store.js +0 -25
  475. package/dist/esm/billing-form-schema-BQf2Ydp0.js +0 -24
  476. package/dist/esm/checkout-actions-UQ6g1s7I.js +0 -58
  477. package/dist/esm/checkout.store-Ffl2B_i4.js +0 -27
  478. package/dist/esm/justifi-bank-account-form.entry.js +0 -83
  479. package/dist/esm/justifi-billing-information-form.entry.js +0 -48
  480. package/dist/esm/justifi-card-form.entry.js +0 -91
  481. package/dist/esm/justifi-checkout-summary.entry.js +0 -19
  482. package/dist/esm/justifi-modular-checkout.entry.js +0 -202
  483. package/dist/esm/justifi-postal-code-form.entry.js +0 -47
  484. package/dist/esm/justifi-saved-payment-methods.entry.js +0 -29
  485. package/dist/esm/justifi-sezzle-payment-method.entry.js +0 -78
  486. package/dist/esm/payment-method-option-utils-8n_ALxec.js +0 -23
  487. package/dist/module/billing-form-schema.js +0 -24
  488. package/dist/module/checkout-actions.js +0 -58
  489. package/dist/module/checkout.store.js +0 -27
  490. package/dist/module/justifi-bank-account-form.d.ts +0 -11
  491. package/dist/module/justifi-bank-account-form.js +0 -105
  492. package/dist/module/justifi-billing-information-form.d.ts +0 -11
  493. package/dist/module/justifi-billing-information-form.js +0 -94
  494. package/dist/module/justifi-card-form.d.ts +0 -11
  495. package/dist/module/justifi-card-form.js +0 -113
  496. package/dist/module/justifi-checkout-summary.d.ts +0 -11
  497. package/dist/module/justifi-checkout-summary.js +0 -37
  498. package/dist/module/justifi-modular-checkout.d.ts +0 -11
  499. package/dist/module/justifi-modular-checkout.js +0 -218
  500. package/dist/module/justifi-postal-code-form.d.ts +0 -11
  501. package/dist/module/justifi-postal-code-form.js +0 -86
  502. package/dist/module/justifi-saved-payment-methods.d.ts +0 -11
  503. package/dist/module/justifi-saved-payment-methods.js +0 -58
  504. package/dist/module/payment-method-option-utils.js +0 -23
  505. package/dist/types/api/BillingInformation.d.ts +0 -13
  506. package/dist/types/api/PaymentMethod.d.ts +0 -21
  507. package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -31
  508. package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +0 -6
  509. package/dist/types/components/modular-checkout-parts/bank-account.d.ts +0 -18
  510. package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +0 -23
  511. package/dist/types/components/modular-checkout-parts/billing-form.d.ts +0 -16
  512. package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +0 -6
  513. package/dist/types/components/modular-checkout-parts/card-form.d.ts +0 -20
  514. package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +0 -16
  515. package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +0 -5
  516. package/dist/types/components/modular-checkout-parts/summary.d.ts +0 -3
  517. package/dist/types/store/checkout.store.d.ts +0 -19
  518. package/dist/webcomponents/p-05ab99e7.entry.js +0 -1
  519. package/dist/webcomponents/p-05d92d45.entry.js +0 -1
  520. package/dist/webcomponents/p-0977a99a.entry.js +0 -1
  521. package/dist/webcomponents/p-0a7c3741.entry.js +0 -1
  522. package/dist/webcomponents/p-0d8ebb69.entry.js +0 -1
  523. package/dist/webcomponents/p-0lkrqFgg.js +0 -1
  524. package/dist/webcomponents/p-0wMiAwXe.js +0 -1
  525. package/dist/webcomponents/p-15db3b15.entry.js +0 -1
  526. package/dist/webcomponents/p-31a9d45e.entry.js +0 -1
  527. package/dist/webcomponents/p-33bf5d85.entry.js +0 -1
  528. package/dist/webcomponents/p-4126de9e.entry.js +0 -1
  529. package/dist/webcomponents/p-4e38dfac.entry.js +0 -1
  530. package/dist/webcomponents/p-5f33350c.entry.js +0 -1
  531. package/dist/webcomponents/p-631bbd5a.entry.js +0 -1
  532. package/dist/webcomponents/p-63e5e6f6.entry.js +0 -1
  533. package/dist/webcomponents/p-64f047ea.entry.js +0 -1
  534. package/dist/webcomponents/p-716dc79c.entry.js +0 -1
  535. package/dist/webcomponents/p-738ee098.entry.js +0 -1
  536. package/dist/webcomponents/p-7c466cc9.entry.js +0 -1
  537. package/dist/webcomponents/p-7e484d46.entry.js +0 -1
  538. package/dist/webcomponents/p-8ba23f7f.entry.js +0 -1
  539. package/dist/webcomponents/p-8fefebd7.entry.js +0 -1
  540. package/dist/webcomponents/p-93a843db.entry.js +0 -1
  541. package/dist/webcomponents/p-9ba825c5.entry.js +0 -1
  542. package/dist/webcomponents/p-BByypogb.js +0 -1
  543. package/dist/webcomponents/p-BI7GlCtv.js +0 -1
  544. package/dist/webcomponents/p-BJatoeR1.js +0 -1
  545. package/dist/webcomponents/p-BKatPL5G.js +0 -1
  546. package/dist/webcomponents/p-BXeHgiPz.js +0 -1
  547. package/dist/webcomponents/p-BgiXKaf2.js +0 -1
  548. package/dist/webcomponents/p-BhrFjjAs.js +0 -1
  549. package/dist/webcomponents/p-BnvoOeKL.js +0 -1
  550. package/dist/webcomponents/p-Bond4qGX.js +0 -1
  551. package/dist/webcomponents/p-BooprPq0.js +0 -1
  552. package/dist/webcomponents/p-CCPoezRw.js +0 -1
  553. package/dist/webcomponents/p-D5ny0x8_.js +0 -1
  554. package/dist/webcomponents/p-D7uH6T8P.js +0 -1
  555. package/dist/webcomponents/p-DKClunJd.js +0 -1
  556. package/dist/webcomponents/p-DLopwJ61.js +0 -1
  557. package/dist/webcomponents/p-DRKOMqbX.js +0 -1
  558. package/dist/webcomponents/p-DXJXAroG.js +0 -1
  559. package/dist/webcomponents/p-DyvT8iXz.js +0 -1
  560. package/dist/webcomponents/p-NqdaxjDT.js +0 -1
  561. package/dist/webcomponents/p-bc05e051.entry.js +0 -1
  562. package/dist/webcomponents/p-c102dea5.entry.js +0 -1
  563. package/dist/webcomponents/p-cb84a2e6.entry.js +0 -1
  564. package/dist/webcomponents/p-ce242f4c.entry.js +0 -1
  565. package/dist/webcomponents/p-d0d83153.entry.js +0 -1
  566. package/dist/webcomponents/p-d81f30f6.entry.js +0 -1
  567. package/dist/webcomponents/p-d90e981c.entry.js +0 -1
  568. package/dist/webcomponents/p-da961813.entry.js +0 -1
  569. package/dist/webcomponents/p-dadd593a.entry.js +0 -1
  570. package/dist/webcomponents/p-e3437894.entry.js +0 -1
  571. package/dist/webcomponents/p-eb6f1a3f.entry.js +0 -1
  572. package/dist/webcomponents/p-ebc0b06d.entry.js +0 -1
  573. package/dist/webcomponents/p-ecfab304.entry.js +0 -1
  574. package/dist/webcomponents/p-efa7aef1.entry.js +0 -1
  575. package/dist/webcomponents/p-eilUGO3o.js +0 -1
  576. package/dist/webcomponents/p-fd7c5ac5.entry.js +0 -1
  577. package/dist/webcomponents/p-hDoH7hHP.js +0 -1
  578. package/dist/webcomponents/p-jA8bbxkp.js +0 -1
  579. package/dist/webcomponents/p-pGzabKc7.js +0 -1
  580. package/dist/webcomponents/p-rzqedGq4.js +0 -1
  581. package/dist/webcomponents/p-zucQG3cz.js +0 -1
@@ -1,91 +0,0 @@
1
- import { h, r as registerInstance } from './index-N3w5zrz2.js';
2
- import { S as Skeleton } from './skeleton-C0KgFH0Z.js';
3
- import './event-types-CZfYo5-1.js';
4
- import { S as StyledHost } from './styled-host-DtvbNFVU.js';
5
- import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics-B3nThWuq.js';
6
- import { w as waitForConfig, c as configState } from './config-state-B3mtRA6f.js';
7
- import './parts-_6eQgwfE.js';
8
- import './package-rzqedGq4.js';
9
- import './Api-C3T8XYbb.js';
10
- import './utils-BjLkBMLe.js';
11
- import './_commonjsHelpers-BFTU3MAI.js';
12
- import './ComponentError-BhrFjjAs.js';
13
- import './Checkout-CV6qgU0r.js';
14
- import './Pagination-CLHwhyvu.js';
15
- import './Payment-BEvE6jAC.js';
16
- import './Dispute-7MWRbTXI.js';
17
- import './Refund-BKe90wSq.js';
18
- import './Business-BCoP0TAV.js';
19
- import './helpers-Mu7LQT-w.js';
20
- import './state-options-BX8GieXu.js';
21
- import './index-BAq5IUBW.js';
22
-
23
- const CardFormSkeleton = (props) => {
24
- const { isReady } = props;
25
- if (isReady) {
26
- return null;
27
- }
28
- return (h("div", { class: "container-fluid p-0" },
29
- h("div", { class: "mb-3" },
30
- h(Skeleton, { height: "18px", width: "100px" }),
31
- h(Skeleton, { height: "36px" })),
32
- h("div", { class: "row" },
33
- h("div", { class: "col-4 align-content-end" },
34
- h(Skeleton, { height: "18px", width: "80px" }),
35
- h(Skeleton, { height: "36px" })),
36
- h("div", { class: "col-4 align-content-end" },
37
- h(Skeleton, { height: "36px" })),
38
- h("div", { class: "col-4 align-content-end" },
39
- h(Skeleton, { height: "18px", width: "30px" }),
40
- h(Skeleton, { height: "36px" })))));
41
- };
42
-
43
- const JustifiCardForm = class {
44
- constructor(hostRef) {
45
- registerInstance(this, hostRef);
46
- this.isReady = false;
47
- }
48
- async componentWillLoad() {
49
- await waitForConfig();
50
- this.iframeOrigin = configState.iframeOrigin;
51
- checkPkgVersion();
52
- this.analytics = new JustifiAnalytics(this);
53
- }
54
- componentDidRender() {
55
- const elements = [
56
- this.cardNumberIframeElement,
57
- this.expirationMonthIframeElement,
58
- this.expirationYearIframeElement,
59
- this.cvvIframeElement,
60
- ];
61
- Promise.all(elements.map((element) => {
62
- return new Promise((resolve) => {
63
- element.addEventListener('iframeLoaded', () => { resolve(); });
64
- });
65
- })).then(() => {
66
- this.isReady = true;
67
- });
68
- }
69
- disconnectedCallback() {
70
- var _a;
71
- (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
72
- }
73
- async validate() {
74
- const cardNumberIsValid = await this.cardNumberIframeElement.validate();
75
- const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
76
- const expirationYearIsValid = await this.expirationYearIframeElement.validate();
77
- const cvvIsValid = await this.cvvIframeElement.validate();
78
- return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
79
- }
80
- async tokenize({ clientId, paymentMethodMetadata, account, }) {
81
- return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
82
- }
83
- render() {
84
- return (h(StyledHost, { key: '1b42c4a2b0adbd4d98bffc0cc0355ba7b1e10474' }, h(CardFormSkeleton, { key: 'ae04801424ca38c3831b951bcb6835ffcc1ccd94', isReady: this.isReady }), h("hidden-input", { key: '55396096f088bc5cde3b003ddaa9afda6848dfda' }), h("div", { key: '18f68ac5871fcb7ba8ce270bb552871709f468dd', class: "container-fluid p-0", style: {
85
- opacity: this.isReady ? '1' : '0',
86
- height: this.isReady ? 'auto' : '0',
87
- } }, h("div", { key: '3c9711c64c5d60a121545394c22c382be93882ed', class: "mb-3" }, h("iframe-input", { key: '45401d0f9f8abd4197bd6651c28f531562431989', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: '60bae8a0fb35d86ec46d59f400e86af4a97d4c6a', class: "row" }, h("div", { key: '44883bb16cd5bb65fefb8e6b627b52625c2776d3', class: "col-4 align-content-end" }, h("iframe-input", { key: 'a9df6d2a23e7f586f08623a9e14c19264252c8e7', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '5436effb8f457cb4dae945e3d7ca29c9441df724', class: "col-4 align-content-end" }, h("iframe-input", { key: '550096ddd5488e3cd11b0ab6985636eedc8f0dda', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: 'a6a207066d6ef70c7c3545d9412eb6be0d252062', class: "col-4 align-content-end" }, h("iframe-input", { key: '74a1bec5108a25f6e6f953abf25bc756293dea99', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
88
- }
89
- };
90
-
91
- export { JustifiCardForm as justifi_card_form };
@@ -1,19 +0,0 @@
1
- import { r as registerInstance, h } from './index-N3w5zrz2.js';
2
- import { t as text } from './parts-_6eQgwfE.js';
3
- import { f as formatCurrency } from './utils-BjLkBMLe.js';
4
- import { s as state } from './checkout.store-Ffl2B_i4.js';
5
- import { S as StyledHost } from './styled-host-DtvbNFVU.js';
6
- import './event-types-CZfYo5-1.js';
7
- import './_commonjsHelpers-BFTU3MAI.js';
8
- import './index-BAq5IUBW.js';
9
-
10
- const Summary = class {
11
- constructor(hostRef) {
12
- registerInstance(this, hostRef);
13
- }
14
- render() {
15
- return (h(StyledHost, { key: '9a2eea1693287ad73dfedd3ddc24e949e9d75148' }, h("section", { key: '1943be6cef0c4a1c830ddfc14d893c3906482534' }, h("div", { key: 'cf3f41d3dd3c9829d93d7e56e3d2dfabbd99ccef' }, h("div", { key: 'b5bc944a5310252dc0720e3e7d709f1a57f898c8', part: text }, state === null || state === void 0 ? void 0 : state.paymentDescription), h("div", { key: 'dbe53880d7c3ff8d4513a570e1b024f1e2f43028' }, h("span", { key: 'd8986a9265463d8f9d7f62598cc4ec3203081c09', part: text }, "Total"), "\u00A0", h("span", { key: '32cbc6e259fdee2c71ad72fcf59ab157704c4758', part: text }, formatCurrency(+(state === null || state === void 0 ? void 0 : state.totalAmount))))))));
16
- }
17
- };
18
-
19
- export { Summary as justifi_checkout_summary };
@@ -1,202 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-N3w5zrz2.js';
2
- import { s as state } from './checkout.store-Ffl2B_i4.js';
3
- import { J as JustifiAnalytics, c as checkPkgVersion } from './Analytics-B3nThWuq.js';
4
- import './config-state-B3mtRA6f.js';
5
- import './utils-BjLkBMLe.js';
6
- import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-BhrFjjAs.js';
7
- import './Checkout-CV6qgU0r.js';
8
- import './Pagination-CLHwhyvu.js';
9
- import './Payment-BEvE6jAC.js';
10
- import './Refund-BKe90wSq.js';
11
- import './Business-BCoP0TAV.js';
12
- import './Dispute-7MWRbTXI.js';
13
- import { m as makeGetCheckout, a as makeCheckoutComplete } from './checkout-actions-UQ6g1s7I.js';
14
- import { C as CheckoutService } from './checkout.service-jmweME4d.js';
15
- import './index-BAq5IUBW.js';
16
- import './package-rzqedGq4.js';
17
- import './Api-C3T8XYbb.js';
18
- import './_commonjsHelpers-BFTU3MAI.js';
19
- import './helpers-Mu7LQT-w.js';
20
- import './state-options-BX8GieXu.js';
21
- import './utils-BZvep88z.js';
22
-
23
- const CheckoutWrapper = class {
24
- constructor(hostRef) {
25
- registerInstance(this, hostRef);
26
- this.errorEvent = createEvent(this, "error-event");
27
- this.checkoutComplete = createEvent(this, "checkout-complete-event");
28
- this.savePaymentMethod = false;
29
- }
30
- connectedCallback() {
31
- this.observer = new MutationObserver(() => {
32
- this.queryFormRefs();
33
- });
34
- this.observer.observe(this.hostEl, {
35
- childList: true,
36
- subtree: true
37
- });
38
- state.checkoutId = this.checkoutId;
39
- const config = {
40
- authToken: this.authToken,
41
- checkoutId: this.checkoutId,
42
- service: new CheckoutService()
43
- };
44
- this.getCheckout = makeGetCheckout(config);
45
- this.completeCheckout = makeCheckoutComplete(config);
46
- }
47
- componentWillLoad() {
48
- this.analytics = new JustifiAnalytics(this);
49
- checkPkgVersion();
50
- state.authToken = this.authToken;
51
- state.accountId = this.accountId;
52
- this.fetchCheckout();
53
- }
54
- componentDidLoad() {
55
- this.queryFormRefs();
56
- }
57
- disconnectedCallback() {
58
- var _a;
59
- (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
60
- }
61
- fetchCheckout() {
62
- if (this.getCheckout) {
63
- this.getCheckout({
64
- onSuccess: ({ checkout }) => {
65
- var _a, _b, _c, _d;
66
- state.paymentMethods = checkout.payment_methods;
67
- state.paymentMethodGroupId = checkout.payment_method_group_id;
68
- state.paymentDescription = checkout.payment_description;
69
- state.totalAmount = checkout.total_amount;
70
- state.paymentAmount = checkout.payment_amount;
71
- state.bnplEnabled = checkout.payment_settings.bnpl_payments;
72
- state.bnplProviderClientId = (_a = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _a === void 0 ? void 0 : _a.provider_client_id;
73
- state.bnplProviderMode = (_b = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _b === void 0 ? void 0 : _b.provider_mode;
74
- state.bnplProviderApiVersion = (_c = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _c === void 0 ? void 0 : _c.provider_api_version;
75
- state.bnplProviderCheckoutUrl = (_d = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _d === void 0 ? void 0 : _d.provider_checkout_url;
76
- },
77
- onError: (error) => {
78
- this.errorEvent.emit({
79
- message: error.message,
80
- errorCode: ComponentErrorCodes.FETCH_ERROR,
81
- severity: ComponentErrorSeverity.ERROR,
82
- });
83
- }
84
- });
85
- }
86
- }
87
- queryFormRefs() {
88
- this.paymentMethodFormRef = this.hostEl.querySelector('justifi-card-form, justifi-bank-account-form');
89
- this.billingInformationFormRef = this.hostEl.querySelector('justifi-billing-information-form, justifi-postal-code-form');
90
- this.insuranceFormRef = this.hostEl.querySelector('justifi-season-interruption-insurance');
91
- this.sezzlePaymentMethodRef = this.hostEl.querySelector('justifi-sezzle-payment-method');
92
- }
93
- async tokenizePaymentMethod(tokenizeArgs) {
94
- var _a, _b;
95
- const billingInfoValues = (_b = await ((_a = this.billingInformationFormRef) === null || _a === void 0 ? void 0 : _a.getValues())) !== null && _b !== void 0 ? _b : {};
96
- const combinedBillingInfo = Object.assign(Object.assign({}, tokenizeArgs), billingInfoValues);
97
- const paymentMethodMetadata = Object.assign({ accountId: this.accountId, payment_method_group_id: undefined }, combinedBillingInfo);
98
- if (this.savePaymentMethod) {
99
- paymentMethodMetadata.payment_method_group_id = state.paymentMethodGroupId;
100
- }
101
- return this.paymentMethodFormRef.tokenize({
102
- clientId: this.authToken,
103
- paymentMethodMetadata,
104
- account: this.accountId,
105
- });
106
- }
107
- async getPaymentMethod(submitCheckoutArgs) {
108
- if (!this.paymentMethodFormRef) {
109
- return state.selectedPaymentMethod;
110
- }
111
- const { error, id: token } = await this.tokenizePaymentMethod(submitCheckoutArgs);
112
- if (error) {
113
- this.errorEvent.emit({
114
- errorCode: error.code,
115
- message: error.message,
116
- severity: ComponentErrorSeverity.ERROR,
117
- });
118
- return undefined;
119
- }
120
- return token;
121
- }
122
- async validate() {
123
- var _a, _b;
124
- const promises = [
125
- (_a = this.paymentMethodFormRef) === null || _a === void 0 ? void 0 : _a.validate(),
126
- (_b = this.billingInformationFormRef) === null || _b === void 0 ? void 0 : _b.validate()
127
- ];
128
- if (this.insuranceFormRef) {
129
- promises.push(this.insuranceFormRef.validate());
130
- }
131
- const validationResults = await Promise.all(promises);
132
- return validationResults.every(result => (result === null || result === void 0 ? void 0 : result.isValid) !== false);
133
- }
134
- async submitCheckout(submitCheckoutArgs) {
135
- var _a;
136
- const isValid = await this.validate();
137
- if (!isValid) {
138
- this.errorEvent.emit({
139
- message: 'Please fill in all required fields.',
140
- errorCode: ComponentErrorCodes.VALIDATION_ERROR,
141
- severity: ComponentErrorSeverity.ERROR,
142
- });
143
- return;
144
- }
145
- let payment;
146
- if (state.selectedPaymentMethod === 'sezzle') {
147
- const insuranceValidation = this.insuranceFormRef ? await this.insuranceFormRef.validate() : { isValid: true };
148
- const sezzleResult = await this.sezzlePaymentMethodRef.resolvePaymentMethod(insuranceValidation);
149
- if (sezzleResult.error) {
150
- this.errorEvent.emit({
151
- message: sezzleResult.error.message,
152
- errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
153
- severity: ComponentErrorSeverity.ERROR,
154
- });
155
- return;
156
- }
157
- else if (((_a = sezzleResult.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
158
- payment = {
159
- payment_mode: 'bnpl',
160
- payment_token: undefined,
161
- };
162
- }
163
- }
164
- else {
165
- const paymentMethod = await this.getPaymentMethod(submitCheckoutArgs);
166
- if (!paymentMethod) {
167
- this.errorEvent.emit({
168
- message: 'Payment method tokenization failed.',
169
- errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
170
- severity: ComponentErrorSeverity.ERROR,
171
- });
172
- return;
173
- }
174
- payment = {
175
- payment_mode: 'ecom',
176
- payment_token: paymentMethod,
177
- };
178
- }
179
- this.completeCheckout({
180
- payment,
181
- onSuccess: ({ checkout }) => {
182
- this.checkoutComplete.emit({
183
- checkout,
184
- message: 'Checkout completed successfully',
185
- });
186
- },
187
- onError: (error) => {
188
- this.errorEvent.emit({
189
- message: error.message,
190
- errorCode: ComponentErrorCodes.COMPLETE_CHECKOUT_ERROR,
191
- severity: ComponentErrorSeverity.ERROR,
192
- });
193
- },
194
- });
195
- }
196
- render() {
197
- return (h(Host, { key: '12db8b2a4ea3308772604d50e9223e48dda0f26f' }));
198
- }
199
- get hostEl() { return getElement(this); }
200
- };
201
-
202
- export { CheckoutWrapper as justifi_modular_checkout };
@@ -1,47 +0,0 @@
1
- import { r as registerInstance, h } from './index-N3w5zrz2.js';
2
- import { S as StyledHost } from './styled-host-DtvbNFVU.js';
3
- import './event-types-CZfYo5-1.js';
4
- import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
5
- import { F as FormController } from './form-BjGUIqxU.js';
6
- import { b as billingFormSchema } from './billing-form-schema-BQf2Ydp0.js';
7
- import './_commonjsHelpers-BFTU3MAI.js';
8
- import './schema-validations-C7pC-de1.js';
9
- import './state-options-BX8GieXu.js';
10
- import './business-form-options-CgssATyg.js';
11
- import './Business-BCoP0TAV.js';
12
- import './helpers-Mu7LQT-w.js';
13
-
14
- const PostalCodeForm = class {
15
- constructor(hostRef) {
16
- registerInstance(this, hostRef);
17
- this.errors = {};
18
- this.inputHandler = (name, value) => {
19
- this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
20
- };
21
- }
22
- componentWillLoad() {
23
- this.formController = new FormController(billingFormSchema(true));
24
- }
25
- componentDidLoad() {
26
- this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
27
- this.formController.errors.subscribe(errors => {
28
- this.errors = Object.assign({}, errors);
29
- });
30
- }
31
- async getValues() {
32
- return this.formController.values.getValue();
33
- }
34
- async fill(fields) {
35
- this.formController.setInitialValues(fields);
36
- }
37
- async validate() {
38
- let isValid = await this.formController.validate();
39
- return { isValid: isValid };
40
- }
41
- render() {
42
- const billingFormDefaultValue = this.formController.getInitialValues();
43
- return (h(StyledHost, { key: 'e5cdb9b21be1e5f4ee6fd21a2d919b2d9271b163' }, h("form", { key: '29c0a3edaad9877d50ecc9e4424ca2f5e667dc30' }, h("form-control-text", { key: '00e8688c8a8e9b91df5089e2fb97c8b71673a3fd', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))));
44
- }
45
- };
46
-
47
- export { PostalCodeForm as justifi_postal_code_form };
@@ -1,29 +0,0 @@
1
- import { r as registerInstance, h } from './index-N3w5zrz2.js';
2
- import { r as radioListItem } from './parts-_6eQgwfE.js';
3
- import { S as StyledHost } from './styled-host-DtvbNFVU.js';
4
- import './event-types-CZfYo5-1.js';
5
- import { s as state } from './checkout.store-Ffl2B_i4.js';
6
- import { C as CardBrandLabels } from './payment-method-option-utils-8n_ALxec.js';
7
- import './index-BAq5IUBW.js';
8
- import './utils-BjLkBMLe.js';
9
- import './_commonjsHelpers-BFTU3MAI.js';
10
-
11
- const SavedPaymentMethods = class {
12
- constructor(hostRef) {
13
- registerInstance(this, hostRef);
14
- this.onPaymentMethodOptionClick = (paymentMethodId) => (e) => {
15
- e.preventDefault();
16
- state.selectedPaymentMethod = paymentMethodId;
17
- };
18
- }
19
- componentWillLoad() {
20
- if (!state.paymentMethods.length) {
21
- console.warn('No saved payment methods available.');
22
- }
23
- }
24
- render() {
25
- return (h(StyledHost, { key: '7bebb3f8ff2a2abe400e1d099154a1729913140c' }, h("div", { key: '3a5798c5ceba63160dceecb0dc65f8a211bb5110', class: "saved-payment-methods" }, state.paymentMethods.length ? state.paymentMethods.map((paymentMethod) => (h("div", { class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick(paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id) }, h("form-control-radio", { name: "paymentMethodType", value: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id, checked: state.selectedPaymentMethod === (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id), label: `${CardBrandLabels[paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.brand] || ''} *${paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.acct_last_four}` })))) : null)));
26
- }
27
- };
28
-
29
- export { SavedPaymentMethods as justifi_saved_payment_methods };
@@ -1,78 +0,0 @@
1
- import { h, r as registerInstance, c as createEvent } from './index-N3w5zrz2.js';
2
- import { f as formatCurrency } from './utils-BjLkBMLe.js';
3
- import { r as radioListItem } from './parts-_6eQgwfE.js';
4
- import { s as state } from './checkout.store-Ffl2B_i4.js';
5
- import { S as StyledHost } from './styled-host-DtvbNFVU.js';
6
- import './event-types-CZfYo5-1.js';
7
- import './_commonjsHelpers-BFTU3MAI.js';
8
- import './index-BAq5IUBW.js';
9
-
10
- const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
11
- display: 'inline',
12
- width: '80px',
13
- marginLeft: '5px',
14
- marginTop: '-5px',
15
- } }));
16
- const SezzlePaymentMethod = class {
17
- constructor(hostRef) {
18
- registerInstance(this, hostRef);
19
- this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected");
20
- this.paymentMethodOptionId = 'sezzle';
21
- this.onPaymentMethodOptionClick = (e) => {
22
- e.preventDefault();
23
- state.selectedPaymentMethod = this.paymentMethodOptionId;
24
- this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId);
25
- };
26
- this.initializeSezzleCheckout = () => {
27
- let resolveSezzlePromise;
28
- this.sezzlePromise = new Promise((resolve) => { resolveSezzlePromise = resolve; });
29
- const amount = Number(state.paymentAmount);
30
- const Checkout = window.Checkout;
31
- const checkout = new Checkout({
32
- mode: 'popup',
33
- publicKey: state.bnplProviderClientId,
34
- apiMode: state.bnplProviderMode,
35
- apiVersion: state.bnplProviderApiVersion,
36
- });
37
- checkout.sezzleButtonElement = this.sezzleButtonRef;
38
- checkout.init({
39
- onClick: function (event) {
40
- event.preventDefault();
41
- checkout.startCheckout({
42
- checkout_url: state.bnplProviderCheckoutUrl,
43
- });
44
- },
45
- onComplete: (event) => resolveSezzlePromise({ bnpl: event.data }),
46
- onCancel: (event) => resolveSezzlePromise({ bnpl: event.data }),
47
- onFailure: (event) => resolveSezzlePromise({ bnpl: event.data }),
48
- });
49
- this.sezzleCheckout = checkout;
50
- this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
51
- };
52
- }
53
- componentDidRender() {
54
- if (!this.scriptRef)
55
- return;
56
- this.scriptRef.onload = () => {
57
- this.sezzleButtonRef = document.createElement('button');
58
- this.initializeSezzleCheckout();
59
- };
60
- }
61
- async resolvePaymentMethod(insuranceValidation) {
62
- if (!insuranceValidation.isValid) {
63
- return { validationError: true };
64
- }
65
- this.sezzleButtonRef.click();
66
- return this.sezzlePromise;
67
- }
68
- render() {
69
- var _a, _b;
70
- if (!state.bnplEnabled) {
71
- console.warn('justifi-sezzle-payment-method: BNPL is not enabled for this account.');
72
- return null;
73
- }
74
- return (h(StyledHost, { class: "payment-method" }, h("script", { src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { name: "paymentMethodType", value: this.paymentMethodOptionId, checked: state.selectedPaymentMethod === this.paymentMethodOptionId, label: h("div", null, h("div", null, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", null, h("span", null, (_a = this.installmentPlan) === null || _a === void 0 ? void 0 : _a.installments.length), "\u00A0", h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { class: "fw-bold" }, formatCurrency((_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments[0].amountInCents))))) }))));
75
- }
76
- };
77
-
78
- export { SezzlePaymentMethod as justifi_sezzle_payment_method };
@@ -1,23 +0,0 @@
1
- import { s as snakeToCamel } from './utils-BjLkBMLe.js';
2
-
3
- class PaymentMethodOption {
4
- constructor(paymentMethod) {
5
- this.id = paymentMethod.id;
6
- this.brand = paymentMethod.brand;
7
- this.acct_last_four = paymentMethod.acct_last_four;
8
- this.type = snakeToCamel(paymentMethod.type);
9
- }
10
- }
11
- var CardBrandLabels;
12
- (function (CardBrandLabels) {
13
- CardBrandLabels["american_express"] = "American Express";
14
- CardBrandLabels["diners_club"] = "Diners Club";
15
- CardBrandLabels["discover"] = "Discover";
16
- CardBrandLabels["jcb"] = "JCB";
17
- CardBrandLabels["mastercard"] = "Mastercard";
18
- CardBrandLabels["china_unionpay"] = "UnionPay";
19
- CardBrandLabels["visa"] = "Visa";
20
- CardBrandLabels["unknown"] = "Unknown";
21
- })(CardBrandLabels || (CardBrandLabels = {}));
22
-
23
- export { CardBrandLabels as C, PaymentMethodOption as P };
@@ -1,24 +0,0 @@
1
- import { c as create$3 } from './form.js';
2
- import { c as postalValidation, d as stateValidation, e as cityValidation, l as lineTwoValidation, f as lineOneValidation, i as identityNameValidation } from './schema-validations.js';
3
-
4
- const billingFormSchema = (postalOnly) => {
5
- const fullBillingForm = create$3({
6
- name: identityNameValidation.required('Enter full name'),
7
- address_line1: lineOneValidation.required('Enter street address'),
8
- address_line2: lineTwoValidation.nullable(),
9
- address_city: cityValidation.required('Enter city'),
10
- address_state: stateValidation.required('Select state'),
11
- address_postal_code: postalValidation.required('Enter postal code'),
12
- });
13
- const postalForm = create$3({
14
- name: identityNameValidation.nullable(),
15
- address_line1: lineOneValidation.nullable(),
16
- address_line2: lineTwoValidation.nullable(),
17
- address_city: cityValidation.nullable(),
18
- address_state: stateValidation.nullable(),
19
- address_postal_code: postalValidation.required('Enter postal code'),
20
- });
21
- return postalOnly ? postalForm : fullBillingForm;
22
- };
23
-
24
- export { billingFormSchema as b };
@@ -1,58 +0,0 @@
1
- import { C as ComponentErrorSeverity } from './Checkout.js';
2
- import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
3
-
4
- const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
5
- var _a;
6
- try {
7
- const response = await service.fetchCheckout(authToken, checkoutId);
8
- if (!response.error) {
9
- const checkout = response.data;
10
- onSuccess({ checkout });
11
- }
12
- else {
13
- const responseError = getErrorMessage(response.error);
14
- const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
15
- return onError({
16
- error: responseError,
17
- code,
18
- severity: ComponentErrorSeverity.ERROR,
19
- });
20
- }
21
- }
22
- catch (error) {
23
- const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
24
- return onError({
25
- error: error.message || error,
26
- code,
27
- severity: ComponentErrorSeverity.ERROR,
28
- });
29
- }
30
- };
31
- const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ payment, onSuccess, onError }) => {
32
- var _a;
33
- try {
34
- const response = await service.complete(authToken, checkoutId, payment);
35
- if (!response.error) {
36
- onSuccess(response);
37
- }
38
- else {
39
- const responseError = getErrorMessage(response.error);
40
- const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
41
- return onError({
42
- error: responseError,
43
- code,
44
- severity: ComponentErrorSeverity.ERROR,
45
- });
46
- }
47
- }
48
- catch (error) {
49
- const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
50
- return onError({
51
- error: error.message || error,
52
- code,
53
- severity: ComponentErrorSeverity.ERROR,
54
- });
55
- }
56
- };
57
-
58
- export { makeCheckoutComplete as a, makeGetCheckout as m };
@@ -1,27 +0,0 @@
1
- import { c as createStore } from './index2.js';
2
-
3
- const initialState = {
4
- authToken: '',
5
- accountId: '',
6
- paymentMethods: [],
7
- paymentMethodGroupId: '',
8
- paymentDescription: '',
9
- totalAmount: 0,
10
- paymentAmount: 0,
11
- selectedPaymentMethod: '',
12
- checkoutId: '',
13
- bnplEnabled: false,
14
- bnplProviderClientId: '',
15
- bnplProviderMode: '',
16
- bnplProviderApiVersion: '',
17
- bnplProviderCheckoutUrl: '',
18
- };
19
- const { state, onChange } = createStore(initialState);
20
- Object.keys(initialState).forEach((key) => {
21
- // @ts-ignore
22
- onChange(key, (newValue) => {
23
- state[key] = newValue;
24
- });
25
- });
26
-
27
- export { state as s };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface JustifiBankAccountForm extends Components.JustifiBankAccountForm, HTMLElement {}
4
- export const JustifiBankAccountForm: {
5
- prototype: JustifiBankAccountForm;
6
- new (): JustifiBankAccountForm;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;