@justifi/webcomponents 5.7.6-rc-21 → 5.7.7

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 (778) hide show
  1. package/dist/cjs/{Api-CPuq_15r.js → Api-DLhABIj9.js} +2 -2
  2. package/dist/cjs/Checkout-BbhldGDh.js +103 -0
  3. package/dist/cjs/{ComponentError-D4OLnOkg.js → ComponentError-C4MdBBMe.js} +0 -10
  4. package/dist/cjs/Payment-D6XuQ4Ve.js +151 -0
  5. package/dist/cjs/{Refund-CqWNG8sx.js → Refund-1bG6RRPO.js} +1 -245
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -4
  7. package/dist/cjs/{badge-CMmPvqtE.js → badge-CcJ9H85-.js} +1 -1
  8. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +14 -13
  9. package/dist/cjs/bank-account-form_9.cjs.entry.js +544 -0
  10. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  11. package/dist/cjs/{business.service-C3BdUPlm.js → business.service-CaCyLLFW.js} +5 -3
  12. package/dist/cjs/{button-CfVQSysQ.js → button-DsHDMHaa.js} +1 -1
  13. package/dist/cjs/{check-pkg-version-BzCIWkkG.js → check-pkg-version-D6Kztnv7.js} +6 -4
  14. package/dist/cjs/{checkout.service-B0ZmvWwI.js → checkout.service-DgD37tJv.js} +5 -3
  15. package/dist/cjs/checkouts-list-core.cjs.entry.js +14 -13
  16. package/dist/cjs/{payments-list-params-state-BNbT1fuJ.js → checkouts-list-params-state-Cewmin_p.js} +1 -1
  17. package/dist/cjs/{checkouts-table-UN5gPpQ_.js → checkouts-table-Bzpqcsu0.js} +3 -3
  18. package/dist/cjs/{config-state-5xZf-jax.js → config-state-BBOZIS8x.js} +1 -1
  19. package/dist/cjs/{custom-popper_2.cjs.entry.js → custom-popper.cjs.entry.js} +3 -23
  20. package/dist/cjs/{dispute.service-DsPEAcDn.js → dispute.service-C0w_4Agq.js} +5 -3
  21. package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
  22. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  23. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  24. package/dist/cjs/{form-control-error-text-HM0zQerh.js → form-control-error-text-B-P5UDhm.js} +1 -1
  25. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  26. package/dist/cjs/{form-control-help-text-5KIUw1IP.js → form-control-help-text-JoZjhb9m.js} +1 -1
  27. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  28. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +5 -5
  29. package/dist/cjs/form-control-monetary.cjs.entry.js +6 -7
  30. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +5 -5
  31. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  32. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  33. package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-select_3.cjs.entry.js} +25 -6
  34. package/dist/cjs/{get-business-o5jPq_ME.js → get-business-BJrtsomz.js} +2 -2
  35. package/dist/cjs/{get-payment-details-DtCXaIMx.js → get-payment-details-BbfnopoD.js} +8 -6
  36. package/dist/cjs/{get-payout-csv-DE_D9y08.js → get-payout-csv-CXEQkjDm.js} +2 -2
  37. package/dist/cjs/{get-subaccounts-CwCH5rC8.js → get-subaccounts-CpCJjnYt.js} +8 -6
  38. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -6
  39. package/dist/cjs/{header-1-DD41iNlG.js → header-1-DRA3f4Jh.js} +1 -1
  40. package/dist/cjs/{header-3-D9Wa0IfT.js → header-3-sOdOpfx3.js} +1 -1
  41. package/dist/cjs/iframe-input-styles-state-DH-5a2Mg.js +26 -0
  42. package/dist/cjs/{hidden-input_2.cjs.entry.js → iframe-input_4.cjs.entry.js} +154 -112
  43. package/dist/cjs/{index-Yd9aLenr.js → index-B32W0A3m.js} +1 -1
  44. package/dist/cjs/{index-dm_GlYlb.js → index-C9hBD-32.js} +2 -2
  45. package/dist/cjs/{insurance-state-Cyva9u6S.js → insurance-state-e44s1lUQ.js} +2 -20
  46. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +10 -9
  47. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +22 -21
  48. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
  49. package/dist/cjs/justifi-business-details.cjs.entry.js +16 -15
  50. package/dist/cjs/justifi-business-form.cjs.entry.js +18 -17
  51. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  52. package/dist/cjs/justifi-checkout-core.cjs.entry.js +141 -0
  53. package/dist/cjs/justifi-checkout.cjs.entry.js +99 -91
  54. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +17 -16
  55. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +19 -18
  56. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  57. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  58. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  59. package/dist/cjs/justifi-dispute-management.cjs.entry.js +14 -13
  60. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +20 -19
  61. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +13 -12
  62. package/dist/cjs/justifi-order-terminals.cjs.entry.js +18 -17
  63. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +17 -16
  64. package/dist/cjs/justifi-payment-details.cjs.entry.js +16 -15
  65. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +5 -5
  66. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +15 -14
  67. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +17 -16
  68. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -8
  69. package/dist/cjs/justifi-payments-list.cjs.entry.js +19 -18
  70. package/dist/cjs/justifi-payout-details.cjs.entry.js +15 -14
  71. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +17 -16
  72. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -8
  73. package/dist/cjs/justifi-payouts-list.cjs.entry.js +20 -19
  74. package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -16
  75. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +124 -0
  76. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +21 -118
  77. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +12 -11
  78. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +16 -15
  79. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +11 -10
  80. package/dist/cjs/justifi-terminals-list.cjs.entry.js +18 -17
  81. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +80 -0
  82. package/dist/cjs/loader.cjs.js +2 -2
  83. package/dist/cjs/{package-B9ks67gS.js → package-C0-LCfay.js} +1 -1
  84. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  85. package/dist/cjs/payment-details-core.cjs.entry.js +15 -16
  86. package/dist/cjs/{payment-provisioning-actions-CZVlnRA0.js → payment-provisioning-actions-BkWSDJQQ.js} +2 -2
  87. package/dist/cjs/{payment.service-1H0VC3LV.js → payment.service-CtSdIJoy.js} +5 -3
  88. package/dist/cjs/payments-list-core.cjs.entry.js +15 -14
  89. package/dist/cjs/{payouts-list-params-state-BNbT1fuJ.js → payments-list-params-state-Cewmin_p.js} +1 -1
  90. package/dist/cjs/{payments-status-PB63klt3.js → payments-status-DXRh_ekP.js} +2 -2
  91. package/dist/cjs/{payments-table-quF0NnsS.js → payments-table-CUGE6F-R.js} +3 -3
  92. package/dist/cjs/payout-details-core.cjs.entry.js +11 -12
  93. package/dist/cjs/{payout.service-CIZFU-hV.js → payout.service-7DP6F8x7.js} +5 -3
  94. package/dist/cjs/payouts-list-core.cjs.entry.js +15 -14
  95. package/dist/cjs/{terminal-orders-list-params-state-BNbT1fuJ.js → payouts-list-params-state-Cewmin_p.js} +1 -1
  96. package/dist/cjs/{payouts-status-Bk1JFzbP.js → payouts-status-DxTQZv3i.js} +2 -2
  97. package/dist/cjs/{payouts-table-D_CCTR_k.js → payouts-table-Ca9HqjV7.js} +3 -3
  98. package/dist/cjs/{skeleton-x-GSs3xk.js → skeleton-C7DQRD6r.js} +1 -1
  99. package/dist/cjs/{spinner-Kb1BFvnL.js → spinner-jmeA44Ee.js} +1 -1
  100. package/dist/cjs/{styled-host-CqQYxX-w.js → styled-host-BfVJlAsJ.js} +1 -1
  101. package/dist/cjs/{table-BJVUhh3s.js → table-Ccdrt0v_.js} +2 -2
  102. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  103. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +14 -13
  104. package/dist/cjs/{checkouts-list-params-state-BNbT1fuJ.js → terminal-orders-list-params-state-Cewmin_p.js} +1 -1
  105. package/dist/cjs/{terminal-orders-table-0O5jtzYj.js → terminal-orders-table-DPe_2FNB.js} +8 -6
  106. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  107. package/dist/cjs/{terminal.service-DUlyMTrX.js → terminal.service-BR9g1yaB.js} +5 -3
  108. package/dist/cjs/terminals-list-core.cjs.entry.js +14 -13
  109. package/dist/cjs/terminals-list-params-state-Cewmin_p.js +22 -0
  110. package/dist/cjs/{terminals-table-C2BNRUS5.js → terminals-table-DDoJIYZu.js} +3 -3
  111. package/dist/cjs/{utils-Df-pajL7.js → utils-Bzyj4qWe.js} +1 -1
  112. package/dist/cjs/{utils-BaGF9XIe.js → utils-Dewr6SlQ.js} +1667 -3
  113. package/dist/cjs/{utils-DvUQQLmR.js → utils-l0veqT9y.js} +1 -1
  114. package/dist/cjs/webcomponents.cjs.js +3 -3
  115. package/dist/collection/actions/checkout/checkout-actions.js +1 -2
  116. package/dist/collection/api/Checkout.js +3 -1
  117. package/dist/collection/api/ComponentError.js +0 -10
  118. package/dist/collection/collection-manifest.json +10 -16
  119. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  120. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  121. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  122. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  123. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  124. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  125. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  126. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  128. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  129. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  130. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  131. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  132. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  133. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  134. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  135. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  136. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  137. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  138. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  139. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  140. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  141. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  142. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +6 -3
  143. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.js +5 -7
  144. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.js +8 -12
  145. package/dist/collection/components/checkout/billing-form/billing-form-schema.js +3 -3
  146. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.js +5 -7
  147. package/dist/collection/components/checkout/card-form/card-form.js +6 -3
  148. package/dist/collection/components/checkout/checkout-core.js +454 -0
  149. package/dist/collection/components/checkout/checkout.js +51 -156
  150. package/dist/collection/components/checkout/new-payment-method.js +378 -0
  151. package/dist/collection/components/checkout/payment-method-option-utils.js +1 -0
  152. package/dist/collection/components/checkout/payment-method-options.js +440 -0
  153. package/dist/collection/components/checkout/save-new-payment-method.js +5 -9
  154. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  155. package/dist/collection/components/checkout/sezzle-payment-method.js +240 -0
  156. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  157. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  158. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  159. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  160. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  161. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  162. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  163. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  164. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  165. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  166. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  167. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  168. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  169. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  170. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  171. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  172. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  173. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  174. package/dist/collection/components/insurance/insurance-state.js +1 -18
  175. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +447 -0
  176. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +12 -114
  177. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  178. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  179. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  180. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  181. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  182. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  183. package/dist/collection/components/payments-list/payments-list.js +1 -1
  184. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  185. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  186. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  187. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  188. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  189. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  190. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  191. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  192. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  193. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  194. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  195. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +83 -293
  196. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  197. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  198. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  199. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  200. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  201. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  202. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  203. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  204. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  205. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  206. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  207. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  208. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  209. package/dist/collection/ui-components/form/iframe-input.js +5 -10
  210. package/dist/collection/ui-components/index.js +0 -1
  211. package/dist/collection/utils/utils.js +5 -0
  212. package/dist/docs.json +2822 -2308
  213. package/dist/esm/{Api-N_veT2p6.js → Api-BJv2_XdA.js} +2 -2
  214. package/dist/esm/Checkout-CIUkm9aQ.js +101 -0
  215. package/dist/esm/{ComponentError-Cjcsf8ku.js → ComponentError-SdntD1xf.js} +1 -11
  216. package/dist/esm/{Dispute-BH0Xfn-F.js → Dispute-7MWRbTXI.js} +1 -1
  217. package/dist/esm/Payment-DrCqUoz-.js +149 -0
  218. package/dist/esm/{Refund-Di6J0oN2.js → Refund-Dwnnpqim.js} +2 -244
  219. package/dist/esm/additional-questions-details_5.entry.js +4 -5
  220. package/dist/esm/{badge-D_mzXSCQ.js → badge-XXatxWS0.js} +2 -2
  221. package/dist/esm/bank-account-document-form-inputs_4.entry.js +16 -15
  222. package/dist/esm/bank-account-form_9.entry.js +534 -0
  223. package/dist/esm/business-details-core.entry.js +5 -5
  224. package/dist/esm/{business.service-Bdvhdc_d.js → business.service-Di9jP2_p.js} +6 -4
  225. package/dist/esm/{button-CeR8qVS3.js → button-C-ZZ9yD1.js} +2 -2
  226. package/dist/esm/{check-pkg-version-D3fhoIFS.js → check-pkg-version-8KHO3ihW.js} +7 -5
  227. package/dist/esm/{checkout.service-XgGFa7H8.js → checkout.service-l-H_OIZa.js} +6 -4
  228. package/dist/esm/checkouts-list-core.entry.js +16 -15
  229. package/dist/esm/{checkouts-list-params-state-SMXQIZTt.js → checkouts-list-params-state-D8tzsGR_.js} +1 -1
  230. package/dist/esm/{checkouts-table-CFZYoYjn.js → checkouts-table-DmwocPX2.js} +4 -4
  231. package/dist/esm/{config-state-BrllxiM0.js → config-state-DZeVYerv.js} +1 -1
  232. package/dist/esm/{custom-popper_2.entry.js → custom-popper.entry.js} +4 -23
  233. package/dist/esm/{dispute.service-CKPcmwhH.js → dispute.service-CaEbHFjw.js} +6 -4
  234. package/dist/esm/form-alert_5.entry.js +6 -6
  235. package/dist/esm/form-control-checkbox.entry.js +6 -6
  236. package/dist/esm/form-control-date.entry.js +5 -5
  237. package/dist/esm/{form-control-error-text-D3ZwkOv-.js → form-control-error-text-eKr_QuRZ.js} +2 -2
  238. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  239. package/dist/esm/{form-control-help-text-C39ZW65w.js → form-control-help-text-Dw2vjMQ5.js} +2 -2
  240. package/dist/esm/form-control-help-text.entry.js +1 -1
  241. package/dist/esm/form-control-monetary-provisioning.entry.js +6 -6
  242. package/dist/esm/form-control-monetary.entry.js +7 -8
  243. package/dist/esm/form-control-number-masked_2.entry.js +6 -6
  244. package/dist/esm/form-control-number.entry.js +6 -6
  245. package/dist/esm/form-control-radio.entry.js +4 -4
  246. package/dist/esm/{form-control-select_2.entry.js → form-control-select_3.entry.js} +26 -8
  247. package/dist/esm/{get-business-Crb6P-iI.js → get-business-GEPTefIj.js} +2 -2
  248. package/dist/esm/{get-payment-details-Dt-dr16k.js → get-payment-details-BOpjKcRB.js} +8 -6
  249. package/dist/esm/{get-payout-csv-D-Lnooki.js → get-payout-csv-D7IYYqVL.js} +2 -2
  250. package/dist/esm/{get-subaccounts-BsoVLANw.js → get-subaccounts-0Ri4RB5r.js} +9 -7
  251. package/dist/esm/gross-payment-chart-core.entry.js +6 -7
  252. package/dist/esm/{header-1-E-hEi3wF.js → header-1-BnwrlkS-.js} +2 -2
  253. package/dist/esm/{header-3-Dm7M85kz.js → header-3-IOnOCyak.js} +2 -2
  254. package/dist/esm/iframe-input-styles-state-Cqb62KAu.js +23 -0
  255. package/dist/esm/{hidden-input_2.entry.js → iframe-input_4.entry.js} +146 -106
  256. package/dist/esm/{index-B9me4yN2.js → index-B_KxSZIF.js} +1 -1
  257. package/dist/esm/{index-kpoIU4v_.js → index-Bn7inNWG.js} +2 -2
  258. package/dist/esm/insurance-state-DRFl0tWj.js +28 -0
  259. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +12 -11
  260. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +24 -23
  261. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  262. package/dist/esm/justifi-business-details.entry.js +17 -16
  263. package/dist/esm/justifi-business-form.entry.js +20 -19
  264. package/dist/esm/justifi-business-representative-form-inputs.entry.js +3 -3
  265. package/dist/esm/justifi-checkout-core.entry.js +139 -0
  266. package/dist/esm/justifi-checkout.entry.js +99 -91
  267. package/dist/esm/justifi-checkouts-list-filters.entry.js +13 -12
  268. package/dist/esm/justifi-checkouts-list.entry.js +20 -19
  269. package/dist/esm/justifi-config-provider.entry.js +3 -3
  270. package/dist/esm/justifi-details.entry.js +3 -3
  271. package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
  272. package/dist/esm/justifi-dispute-management.entry.js +15 -14
  273. package/dist/esm/justifi-dispute-notification_3.entry.js +21 -20
  274. package/dist/esm/justifi-gross-payment-chart.entry.js +15 -14
  275. package/dist/esm/justifi-order-terminals.entry.js +20 -19
  276. package/dist/esm/justifi-owner-form_3.entry.js +18 -17
  277. package/dist/esm/justifi-payment-details.entry.js +17 -16
  278. package/dist/esm/justifi-payment-provisioning-core.entry.js +6 -6
  279. package/dist/esm/justifi-payment-provisioning.entry.js +16 -15
  280. package/dist/esm/justifi-payment-transactions-list.entry.js +19 -18
  281. package/dist/esm/justifi-payments-list-filters.entry.js +8 -9
  282. package/dist/esm/justifi-payments-list.entry.js +20 -19
  283. package/dist/esm/justifi-payout-details.entry.js +17 -16
  284. package/dist/esm/justifi-payout-transactions-list.entry.js +19 -18
  285. package/dist/esm/justifi-payouts-list-filters.entry.js +8 -9
  286. package/dist/esm/justifi-payouts-list.entry.js +22 -21
  287. package/dist/esm/justifi-refund-payment.entry.js +19 -18
  288. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +122 -0
  289. package/dist/esm/justifi-season-interruption-insurance.entry.js +22 -119
  290. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +14 -13
  291. package/dist/esm/justifi-terminal-orders-list.entry.js +18 -17
  292. package/dist/esm/justifi-terminals-list-filters.entry.js +13 -12
  293. package/dist/esm/justifi-terminals-list.entry.js +20 -19
  294. package/dist/esm/justifi-tokenize-payment-method.entry.js +78 -0
  295. package/dist/esm/loader.js +3 -3
  296. package/dist/esm/{package-wutYt_7D.js → package-BOCuVjGs.js} +1 -1
  297. package/dist/esm/pagination-menu.entry.js +2 -2
  298. package/dist/esm/{parts-CfF8KKwx.js → parts-CVGBVdVC.js} +1 -1
  299. package/dist/esm/payment-details-core.entry.js +16 -17
  300. package/dist/esm/{payment-provisioning-actions-ONP8lDnV.js → payment-provisioning-actions-BIfyW239.js} +2 -2
  301. package/dist/esm/{payment.service-BWO84KlP.js → payment.service-Dz5mhgIm.js} +6 -4
  302. package/dist/esm/payments-list-core.entry.js +17 -16
  303. package/dist/esm/{payments-list-params-state-SMXQIZTt.js → payments-list-params-state-D8tzsGR_.js} +1 -1
  304. package/dist/esm/{payments-status-XoZrlbiZ.js → payments-status-CN8wEqKC.js} +2 -2
  305. package/dist/esm/{payments-table-Dh4P9mTb.js → payments-table-SmMgUr5X.js} +4 -4
  306. package/dist/esm/payout-details-core.entry.js +12 -13
  307. package/dist/esm/{payout.service-Cld6TS5W.js → payout.service-DUnRbCmv.js} +6 -4
  308. package/dist/esm/payouts-list-core.entry.js +17 -16
  309. package/dist/esm/{payouts-list-params-state-SMXQIZTt.js → payouts-list-params-state-D8tzsGR_.js} +1 -1
  310. package/dist/esm/{payouts-status-Qm2jZG1-.js → payouts-status-BzTh9X2W.js} +2 -2
  311. package/dist/esm/{payouts-table-DMVAZp-r.js → payouts-table-SB6q0e7V.js} +4 -4
  312. package/dist/esm/{skeleton-DrHwsgs_.js → skeleton-DK6mW457.js} +2 -2
  313. package/dist/esm/{spinner-XBq6mVJW.js → spinner-CWoD0q_S.js} +2 -2
  314. package/dist/esm/{styled-host-B_XBaM7z.js → styled-host-CTAGIN84.js} +1 -1
  315. package/dist/esm/{table-qqt2Ew5y.js → table-KCj3mM1K.js} +3 -3
  316. package/dist/esm/table-filters-menu.entry.js +4 -4
  317. package/dist/esm/terminal-orders-list-core.entry.js +16 -15
  318. package/dist/esm/{terminal-orders-list-params-state-SMXQIZTt.js → terminal-orders-list-params-state-D8tzsGR_.js} +1 -1
  319. package/dist/esm/{terminal-orders-table-BN4Co4T8.js → terminal-orders-table-CPsSDEWs.js} +10 -8
  320. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  321. package/dist/esm/{terminal.service-DmYCUQcA.js → terminal.service-Vhk3qPk2.js} +6 -4
  322. package/dist/esm/terminals-list-core.entry.js +16 -15
  323. package/dist/esm/terminals-list-params-state-D8tzsGR_.js +16 -0
  324. package/dist/esm/{terminals-table-C8LczeG_.js → terminals-table-CAavYaG5.js} +4 -4
  325. package/dist/esm/{utils-lb8p1Exq.js → utils-CKEiU2Q5.js} +1665 -3
  326. package/dist/esm/{utils-BeQLScSm.js → utils-Dccsn9BY.js} +1 -1
  327. package/dist/esm/{utils-kWaZhFAd.js → utils-_kzStVq_.js} +2 -2
  328. package/dist/esm/webcomponents.js +4 -4
  329. package/dist/module/Checkout.js +121 -0
  330. package/dist/module/Payment.js +204 -0
  331. package/dist/module/Refund.js +1 -328
  332. package/dist/module/additional-questions.js +1 -1
  333. package/dist/module/additional-statement.js +2 -2
  334. package/dist/module/badge.js +1 -1
  335. package/dist/module/bank-account-billing-form-simple.js +4 -9
  336. package/dist/module/bank-account-document-inputs.js +5 -3
  337. package/dist/module/bank-account-form-inputs2.js +1 -1
  338. package/dist/module/bank-account-form.js +1 -83
  339. package/dist/module/{bank-account.js → bank-account-form2.js} +11 -26
  340. package/dist/module/billing-form-full.js +11 -14
  341. package/dist/module/billing-form-schema.js +3 -3
  342. package/dist/module/business-additional-questions-form-step.js +2 -2
  343. package/dist/module/business-bank-account-form-step-core.js +4 -2
  344. package/dist/module/business-bank-account-form-step.js +5 -3
  345. package/dist/module/business-core-info-form-step.js +2 -2
  346. package/dist/module/business-core-info.js +1 -1
  347. package/dist/module/business-details-core2.js +0 -1
  348. package/dist/module/business-documents-on-file2.js +1 -2
  349. package/dist/module/business-owners-form-step-core.js +0 -1
  350. package/dist/module/business-owners-form-step.js +2 -2
  351. package/dist/module/business-representative-form-inputs.js +1 -1
  352. package/dist/module/business-representative-form-step.js +2 -2
  353. package/dist/module/business-representative.js +1 -1
  354. package/dist/module/business-terms-conditions-form-step.js +4 -2
  355. package/dist/module/business.service.js +3 -1
  356. package/dist/module/button.js +1 -1
  357. package/dist/module/cancellation-policy.js +2 -2
  358. package/dist/module/card-billing-form-simple.js +4 -9
  359. package/dist/module/card-form.js +1 -91
  360. package/dist/module/card-form2.js +13 -28
  361. package/dist/module/{Analytics.js → check-pkg-version.js} +24 -22
  362. package/dist/module/checkout-core.js +292 -0
  363. package/dist/module/checkout.service.js +3 -1
  364. package/dist/module/checkouts-list-core2.js +6 -6
  365. package/dist/module/custom-popper2.js +2 -2
  366. package/dist/module/customer-details.js +2 -2
  367. package/dist/module/dispute-management-core.js +2 -2
  368. package/dist/module/dispute-notification.js +2 -3
  369. package/dist/module/dispute-response-actions.js +3 -1
  370. package/dist/module/dispute-response-core.js +2 -2
  371. package/dist/module/dispute-response.js +3 -4
  372. package/dist/module/duplicate-charge.js +2 -2
  373. package/dist/module/electronic-evidence.js +2 -2
  374. package/dist/module/form-alert2.js +1 -1
  375. package/dist/module/form-control-checkbox2.js +3 -4
  376. package/dist/module/form-control-date2.js +2 -3
  377. package/dist/module/form-control-file-v22.js +1 -1
  378. package/dist/module/form-control-file2.js +2 -3
  379. package/dist/module/form-control-monetary-provisioning2.js +3 -4
  380. package/dist/module/form-control-monetary2.js +3 -4
  381. package/dist/module/form-control-number-masked2.js +2 -3
  382. package/dist/module/form-control-number.js +3 -4
  383. package/dist/module/form-control-radio2.js +3 -3
  384. package/dist/module/form-control-select2.js +2 -3
  385. package/dist/module/form-control-text2.js +2 -3
  386. package/dist/module/form-control-textarea2.js +3 -3
  387. package/dist/module/get-business.js +1 -1
  388. package/dist/module/get-payment-details.js +4 -2
  389. package/dist/module/get-payout-csv.js +1 -1
  390. package/dist/module/get-subaccounts.js +4 -2
  391. package/dist/module/gross-payment-chart-core2.js +2 -2
  392. package/dist/module/hidden-input2.js +2 -2
  393. package/dist/module/identity-address-form.js +1 -1
  394. package/dist/module/iframe-input2.js +6 -6
  395. package/dist/module/insurance-state.js +7 -18
  396. package/dist/module/justifi-business-details.js +2 -2
  397. package/dist/module/justifi-business-form.js +5 -4
  398. package/dist/module/{justifi-header.d.ts → justifi-checkout-core.d.ts} +4 -4
  399. package/dist/module/justifi-checkout-core.js +6 -0
  400. package/dist/module/justifi-checkout.js +137 -157
  401. package/dist/module/justifi-checkouts-list-filters.js +5 -4
  402. package/dist/module/justifi-checkouts-list.js +6 -5
  403. package/dist/module/justifi-dispute-management.js +4 -3
  404. package/dist/module/justifi-gross-payment-chart.js +4 -2
  405. package/dist/module/justifi-new-payment-method.d.ts +11 -0
  406. package/dist/module/justifi-new-payment-method.js +6 -0
  407. package/dist/module/justifi-order-terminals.js +7 -7
  408. package/dist/module/justifi-payment-details.js +2 -2
  409. package/dist/module/justifi-payment-method-options.d.ts +11 -0
  410. package/dist/module/justifi-payment-method-options.js +6 -0
  411. package/dist/module/justifi-payment-provisioning.js +5 -3
  412. package/dist/module/justifi-payment-transactions-list.js +7 -7
  413. package/dist/module/justifi-payments-list-filters.js +3 -4
  414. package/dist/module/justifi-payments-list.js +6 -5
  415. package/dist/module/justifi-payout-details.js +5 -3
  416. package/dist/module/justifi-payout-transactions-list.js +7 -7
  417. package/dist/module/justifi-payouts-list-filters.js +3 -4
  418. package/dist/module/justifi-payouts-list.js +6 -5
  419. package/dist/module/justifi-refund-payment.js +4 -3
  420. package/dist/module/justifi-saved-payment-method.js +1 -57
  421. package/dist/module/justifi-season-interruption-insurance-core.d.ts +11 -0
  422. package/dist/module/justifi-season-interruption-insurance-core.js +6 -0
  423. package/dist/module/justifi-season-interruption-insurance.js +24 -120
  424. package/dist/module/justifi-terminal-orders-list-filters.js +6 -5
  425. package/dist/module/justifi-terminal-orders-list.js +6 -5
  426. package/dist/module/justifi-terminals-list-filters.js +5 -4
  427. package/dist/module/justifi-terminals-list.js +6 -5
  428. package/dist/module/justifi-tokenize-payment-method.js +219 -1
  429. package/dist/module/legal-address-form-step.js +2 -2
  430. package/dist/module/legal-address-form.js +1 -1
  431. package/dist/module/new-payment-method.js +222 -0
  432. package/dist/module/owner-form-core2.js +2 -3
  433. package/dist/module/owner-form-inputs2.js +1 -1
  434. package/dist/module/owner-form.js +1 -1
  435. package/dist/module/package.js +3 -3
  436. package/dist/module/pagination-menu2.js +1 -1
  437. package/dist/module/parts.js +1 -1
  438. package/dist/module/payment-details-core2.js +9 -10
  439. package/dist/module/payment-method-options.js +237 -0
  440. package/dist/module/payment-provisioning-actions.js +1 -1
  441. package/dist/module/payment-provisioning-core.js +2 -3
  442. package/dist/module/payment-provisioning-form-buttons.js +1 -2
  443. package/dist/module/payment-provisioning-form-steps.js +1 -1
  444. package/dist/module/payment-provisioning-loading.js +0 -1
  445. package/dist/module/payment.service.js +3 -1
  446. package/dist/module/payments-list-core2.js +6 -6
  447. package/dist/module/payout-details-core2.js +4 -5
  448. package/dist/module/payout.service.js +3 -1
  449. package/dist/module/payouts-list-core2.js +6 -6
  450. package/dist/module/product-or-service.js +2 -2
  451. package/dist/module/refund-policy.js +2 -2
  452. package/dist/module/save-new-payment-method.js +6 -13
  453. package/dist/module/saved-payment-method.js +79 -0
  454. package/dist/module/season-interruption-insurance-core.js +168 -0
  455. package/dist/module/sezzle-payment-method.js +18 -25
  456. package/dist/module/shipping-details.js +2 -2
  457. package/dist/module/spinner.js +1 -1
  458. package/dist/module/table-filters-menu2.js +1 -1
  459. package/dist/module/table.js +1 -1
  460. package/dist/module/terminal-orders-list-core2.js +6 -6
  461. package/dist/module/terminal-quantity-selector2.js +2 -2
  462. package/dist/module/terminal.service.js +3 -1
  463. package/dist/module/terminals-list-core2.js +6 -6
  464. package/dist/module/utils2.js +1665 -3
  465. package/dist/module/utils4.js +1 -1
  466. package/dist/types/api/Checkout.d.ts +13 -15
  467. package/dist/types/api/ComponentError.d.ts +1 -10
  468. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +1 -0
  469. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.d.ts +1 -1
  470. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.d.ts +2 -1
  471. package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +4 -4
  472. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.d.ts +1 -1
  473. package/dist/types/components/checkout/card-form/card-form.d.ts +1 -0
  474. package/dist/types/components/checkout/checkout-core.d.ts +49 -0
  475. package/dist/types/components/checkout/checkout.d.ts +11 -27
  476. package/dist/types/components/checkout/new-payment-method.d.ts +31 -0
  477. package/dist/types/components/checkout/payment-method-options.d.ts +32 -0
  478. package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -1
  479. package/dist/types/components/{modular-checkout/sub-components → checkout}/sezzle-payment-method.d.ts +9 -3
  480. package/dist/types/components/insurance/insurance-state.d.ts +1 -2
  481. package/dist/types/components/insurance/season-interruption/season-interruption-insurance-core.d.ts +32 -0
  482. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +3 -9
  483. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +15 -42
  484. package/dist/types/components.d.ts +219 -303
  485. package/dist/types/ui-components/form/iframe-input.d.ts +1 -2
  486. package/dist/types/ui-components/index.d.ts +0 -1
  487. package/dist/types/utils/utils.d.ts +1 -0
  488. package/dist/webcomponents/p-08e1bf28.entry.js +1 -0
  489. package/dist/webcomponents/p-09cb06ed.entry.js +1 -0
  490. package/dist/webcomponents/p-0adbbb23.entry.js +1 -0
  491. package/dist/webcomponents/p-0b067d3c.entry.js +1 -0
  492. package/dist/webcomponents/p-0bfd309e.entry.js +1 -0
  493. package/dist/webcomponents/p-0f005fdd.entry.js +1 -0
  494. package/dist/webcomponents/p-0nMw2Aul.js +1 -0
  495. package/dist/webcomponents/p-14dc17fd.entry.js +1 -0
  496. package/dist/webcomponents/p-266f1ff3.entry.js +1 -0
  497. package/dist/webcomponents/p-35387685.entry.js +1 -0
  498. package/dist/webcomponents/p-3946adfa.entry.js +1 -0
  499. package/dist/webcomponents/p-3c44b724.entry.js +1 -0
  500. package/dist/webcomponents/p-3e3b5cdb.entry.js +1 -0
  501. package/dist/webcomponents/p-41876098.entry.js +1 -0
  502. package/dist/webcomponents/p-45edf188.entry.js +1 -0
  503. package/dist/webcomponents/p-4786f2d0.entry.js +1 -0
  504. package/dist/webcomponents/p-4c1c55bb.entry.js +1 -0
  505. package/dist/webcomponents/p-4f358b63.entry.js +1 -0
  506. package/dist/webcomponents/p-5375df08.entry.js +1 -0
  507. package/dist/webcomponents/p-575b972d.entry.js +1 -0
  508. package/dist/webcomponents/p-580aa2e3.entry.js +1 -0
  509. package/dist/webcomponents/p-5b857a1c.entry.js +1 -0
  510. package/dist/webcomponents/p-5c9d1c35.entry.js +1 -0
  511. package/dist/webcomponents/p-690514f2.entry.js +1 -0
  512. package/dist/webcomponents/p-6a853571.entry.js +1 -0
  513. package/dist/webcomponents/p-724e4e6c.entry.js +1 -0
  514. package/dist/webcomponents/p-756a7021.entry.js +1 -0
  515. package/dist/webcomponents/{p-BH0Xfn-F.js → p-7MWRbTXI.js} +1 -1
  516. package/dist/webcomponents/{p-28c7bef7.entry.js → p-7a0661a2.entry.js} +4 -4
  517. package/dist/webcomponents/{p-a8205044.entry.js → p-80b6c011.entry.js} +1 -1
  518. package/dist/webcomponents/p-89431ee2.entry.js +1 -0
  519. package/dist/webcomponents/p-8f5c1ae6.entry.js +1 -0
  520. package/dist/webcomponents/{p-b0bfa20f.entry.js → p-96247d70.entry.js} +1 -1
  521. package/dist/webcomponents/p-989d56de.entry.js +1 -0
  522. package/dist/webcomponents/p-99f7a36d.entry.js +1 -0
  523. package/dist/webcomponents/p-BCgpQGhw.js +1 -0
  524. package/dist/webcomponents/p-BOCuVjGs.js +1 -0
  525. package/dist/webcomponents/p-BQ2TIFoY.js +1 -0
  526. package/dist/webcomponents/{p-YND5pTuF.js → p-BQQ7ifKz.js} +1 -1
  527. package/dist/webcomponents/{p-5aA7gjr5.js → p-BTS3E50C.js} +1 -1
  528. package/dist/webcomponents/p-BUSn_ReW.js +1 -0
  529. package/dist/webcomponents/p-BY1mRAvj.js +1 -0
  530. package/dist/webcomponents/p-BZtgbC0H.js +1 -0
  531. package/dist/webcomponents/p-B_t2t34m.js +1 -0
  532. package/dist/webcomponents/{p-kpoIU4v_.js → p-Bn7inNWG.js} +1 -1
  533. package/dist/webcomponents/{p-BisQ61nK.js → p-BpWSwi9x.js} +1 -1
  534. package/dist/webcomponents/p-Bs-84XY6.js +1 -0
  535. package/dist/webcomponents/{p-Dvxpy_P1.js → p-BtyEAd0R.js} +1 -1
  536. package/dist/webcomponents/p-BvXjypQm.js +1 -0
  537. package/dist/webcomponents/p-C-wMveZe.js +1 -0
  538. package/dist/webcomponents/{p-D2muobcE.js → p-C5RuuShs.js} +1 -1
  539. package/dist/webcomponents/p-CCl9g-ln.js +1 -0
  540. package/dist/webcomponents/p-CDPZXQAo.js +1 -0
  541. package/dist/webcomponents/p-CKEiU2Q5.js +1 -0
  542. package/dist/webcomponents/p-CS4_rnSp.js +1 -0
  543. package/dist/webcomponents/{p-CfF8KKwx.js → p-CVGBVdVC.js} +1 -1
  544. package/dist/webcomponents/p-CnMP2-Xk.js +1 -0
  545. package/dist/webcomponents/p-CpaS1Lex.js +1 -0
  546. package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
  547. package/dist/webcomponents/p-CxHdQoIo.js +1 -0
  548. package/dist/webcomponents/p-DFWnHEN2.js +1 -0
  549. package/dist/webcomponents/{p-BbYVgLcf.js → p-DK0C7j0u.js} +1 -1
  550. package/dist/webcomponents/p-DKSNNnPC.js +1 -0
  551. package/dist/webcomponents/{p-BeszVz87.js → p-DV1c2IYS.js} +1 -1
  552. package/dist/webcomponents/{p-Bz164TKZ.js → p-DetWIU1e.js} +1 -1
  553. package/dist/webcomponents/{p-9y5MOK55.js → p-DhGNCW2f.js} +1 -1
  554. package/dist/webcomponents/p-DjFzWJxk.js +1 -0
  555. package/dist/webcomponents/p-DnGswpsl.js +1 -0
  556. package/dist/webcomponents/p-DniQ6yo6.js +1 -0
  557. package/dist/webcomponents/p-DsLxs70Z.js +1 -0
  558. package/dist/webcomponents/p-DsZZxRXY.js +1 -0
  559. package/dist/webcomponents/p-DtdcFDM_.js +1 -0
  560. package/dist/webcomponents/p-DwF36W04.js +1 -0
  561. package/dist/webcomponents/{p-CRFzwZW6.js → p-DxqCFDtF.js} +1 -1
  562. package/dist/webcomponents/p-L4y68wud.js +1 -0
  563. package/dist/webcomponents/p-SdntD1xf.js +1 -0
  564. package/dist/webcomponents/p-a09ca567.entry.js +1 -0
  565. package/dist/webcomponents/p-a3313ebe.entry.js +1 -0
  566. package/dist/webcomponents/{p-463ae23a.entry.js → p-abbf14b5.entry.js} +1 -1
  567. package/dist/webcomponents/p-aeaafe28.entry.js +1 -0
  568. package/dist/webcomponents/p-b25bbf0a.entry.js +1 -0
  569. package/dist/webcomponents/p-b7594923.entry.js +1 -0
  570. package/dist/webcomponents/p-b79e302a.entry.js +1 -0
  571. package/dist/webcomponents/p-ba268a78.entry.js +1 -0
  572. package/dist/webcomponents/p-ba68ea4f.entry.js +1 -0
  573. package/dist/webcomponents/{p-48bccf3b.entry.js → p-bcadc072.entry.js} +1 -1
  574. package/dist/webcomponents/p-bf0e00be.entry.js +1 -0
  575. package/dist/webcomponents/p-c15d8dd0.entry.js +1 -0
  576. package/dist/webcomponents/p-c28f2569.entry.js +1 -0
  577. package/dist/webcomponents/{p-c5b48e8d.entry.js → p-c51651aa.entry.js} +1 -1
  578. package/dist/webcomponents/p-c5911cd9.entry.js +1 -0
  579. package/dist/webcomponents/{p-4ba144ac.entry.js → p-cdd2c7c8.entry.js} +1 -1
  580. package/dist/webcomponents/p-cefb9a76.entry.js +1 -0
  581. package/dist/webcomponents/{p-I8XpD1TX.js → p-ck6bcYXe.js} +1 -1
  582. package/dist/webcomponents/p-d2ae3c55.entry.js +1 -0
  583. package/dist/webcomponents/p-d2e1d179.entry.js +1 -0
  584. package/dist/webcomponents/{p-ded22005.entry.js → p-d43a4316.entry.js} +1 -1
  585. package/dist/webcomponents/{p-5e10aa65.entry.js → p-d46dbb83.entry.js} +1 -1
  586. package/dist/webcomponents/p-d4d58793.entry.js +1 -0
  587. package/dist/webcomponents/{p-57143978.entry.js → p-d53c3370.entry.js} +1 -1
  588. package/dist/webcomponents/p-dc6b707a.entry.js +1 -0
  589. package/dist/webcomponents/p-dfd9aff0.entry.js +1 -0
  590. package/dist/webcomponents/{p-CsNubTqD.js → p-dzS7n4Xj.js} +1 -1
  591. package/dist/webcomponents/p-e4682bb6.entry.js +1 -0
  592. package/dist/webcomponents/p-eP3fmhta.js +1 -0
  593. package/dist/webcomponents/p-ee566062.entry.js +1 -0
  594. package/dist/webcomponents/p-ef07d761.entry.js +1 -0
  595. package/dist/webcomponents/p-f24b04eb.entry.js +1 -0
  596. package/dist/webcomponents/p-f8e974af.entry.js +1 -0
  597. package/dist/webcomponents/p-fb60bc7a.entry.js +1 -0
  598. package/dist/webcomponents/{p-DO3INvI2.js → p-qGbNz93o.js} +1 -1
  599. package/dist/webcomponents/p-sw5RO19U.js +1 -0
  600. package/dist/webcomponents/p-v6yK8Vbe.js +1 -0
  601. package/dist/webcomponents/p-znmwKCgq.js +1 -0
  602. package/dist/webcomponents/webcomponents.esm.js +1 -1
  603. package/package.json +1 -1
  604. package/dist/cjs/bank-account-form.cjs.entry.js +0 -63
  605. package/dist/cjs/card-form.cjs.entry.js +0 -71
  606. package/dist/cjs/checkout.store-CV_fuGQw.js +0 -39
  607. package/dist/cjs/dinero-BwNN_k7x.js +0 -1657
  608. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +0 -372
  609. package/dist/cjs/justifi-checkout-summary_6.cjs.entry.js +0 -706
  610. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +0 -31
  611. package/dist/cjs/justifi-skeleton.cjs.entry.js +0 -17
  612. package/dist/cjs/payment-method-option-utils-WYHIHy-l.js +0 -15
  613. package/dist/cjs/payment-method-option.cjs.entry.js +0 -17
  614. package/dist/cjs/terminals-list-params-state-BNbT1fuJ.js +0 -22
  615. package/dist/collection/api/BillingInformation.js +0 -1
  616. package/dist/collection/api/PaymentMethod.js +0 -1
  617. package/dist/collection/components/modular-checkout/modular-checkout.js +0 -430
  618. package/dist/collection/components/modular-checkout/sub-components/bank-account-skeleton.js +0 -10
  619. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +0 -98
  620. package/dist/collection/components/modular-checkout/sub-components/card-form-skeleton.js +0 -10
  621. package/dist/collection/components/modular-checkout/sub-components/card-form.js +0 -102
  622. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +0 -113
  623. package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +0 -40
  624. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +0 -127
  625. package/dist/collection/components/modular-checkout/sub-components/summary.js +0 -12
  626. package/dist/collection/store/checkout.store.js +0 -34
  627. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +0 -176
  628. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +0 -83
  629. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +0 -155
  630. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +0 -108
  631. package/dist/esm/bank-account-form.entry.js +0 -61
  632. package/dist/esm/card-form.entry.js +0 -69
  633. package/dist/esm/checkout.store-B60siz2l.js +0 -36
  634. package/dist/esm/dinero-HXpYMWUU.js +0 -1655
  635. package/dist/esm/insurance-state-CB4l8sOv.js +0 -45
  636. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +0 -362
  637. package/dist/esm/justifi-checkout-summary_6.entry.js +0 -699
  638. package/dist/esm/justifi-saved-payment-method.entry.js +0 -29
  639. package/dist/esm/justifi-skeleton.entry.js +0 -15
  640. package/dist/esm/payment-method-option-utils-lUHAQVFl.js +0 -15
  641. package/dist/esm/payment-method-option.entry.js +0 -15
  642. package/dist/esm/terminals-list-params-state-SMXQIZTt.js +0 -16
  643. package/dist/module/checkout.store.js +0 -36
  644. package/dist/module/dinero.js +0 -1655
  645. package/dist/module/header-2.js +0 -8
  646. package/dist/module/header-3.js +0 -8
  647. package/dist/module/justifi-bank-account-form.d.ts +0 -11
  648. package/dist/module/justifi-bank-account-form.js +0 -6
  649. package/dist/module/justifi-button.d.ts +0 -11
  650. package/dist/module/justifi-button.js +0 -6
  651. package/dist/module/justifi-button2.js +0 -41
  652. package/dist/module/justifi-card-form.d.ts +0 -11
  653. package/dist/module/justifi-card-form.js +0 -6
  654. package/dist/module/justifi-checkout-summary.d.ts +0 -11
  655. package/dist/module/justifi-checkout-summary.js +0 -6
  656. package/dist/module/justifi-header.js +0 -6
  657. package/dist/module/justifi-header2.js +0 -43
  658. package/dist/module/justifi-modular-checkout.d.ts +0 -11
  659. package/dist/module/justifi-modular-checkout.js +0 -6
  660. package/dist/module/justifi-radio-list-item.d.ts +0 -11
  661. package/dist/module/justifi-radio-list-item.js +0 -6
  662. package/dist/module/justifi-radio-list-item2.js +0 -55
  663. package/dist/module/justifi-saved-payment-methods.d.ts +0 -11
  664. package/dist/module/justifi-saved-payment-methods.js +0 -6
  665. package/dist/module/justifi-skeleton.d.ts +0 -11
  666. package/dist/module/justifi-skeleton.js +0 -39
  667. package/dist/module/modular-checkout.js +0 -336
  668. package/dist/module/payment-method-option-utils.js +0 -15
  669. package/dist/module/payment-method-option.d.ts +0 -11
  670. package/dist/module/payment-method-option.js +0 -54
  671. package/dist/module/saved-payment-methods.js +0 -73
  672. package/dist/module/summary.js +0 -35
  673. package/dist/module/tokenize-payment-method.js +0 -400
  674. package/dist/types/api/BillingInformation.d.ts +0 -13
  675. package/dist/types/api/PaymentMethod.d.ts +0 -21
  676. package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -34
  677. package/dist/types/components/modular-checkout/sub-components/bank-account-skeleton.d.ts +0 -6
  678. package/dist/types/components/modular-checkout/sub-components/bank-account.d.ts +0 -18
  679. package/dist/types/components/modular-checkout/sub-components/card-form-skeleton.d.ts +0 -6
  680. package/dist/types/components/modular-checkout/sub-components/card-form.d.ts +0 -20
  681. package/dist/types/components/modular-checkout/sub-components/payment-method-option.d.ts +0 -8
  682. package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +0 -7
  683. package/dist/types/components/modular-checkout/sub-components/summary.d.ts +0 -3
  684. package/dist/types/store/checkout.store.d.ts +0 -27
  685. package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +0 -13
  686. package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +0 -12
  687. package/dist/types/ui-components/shadow-dom-components/justifi-skeleton.d.ts +0 -10
  688. package/dist/webcomponents/p-08ea8974.entry.js +0 -1
  689. package/dist/webcomponents/p-0932f6a9.entry.js +0 -1
  690. package/dist/webcomponents/p-09e768fe.entry.js +0 -1
  691. package/dist/webcomponents/p-15777cfe.entry.js +0 -1
  692. package/dist/webcomponents/p-22be0859.entry.js +0 -1
  693. package/dist/webcomponents/p-283cd78b.entry.js +0 -1
  694. package/dist/webcomponents/p-2a3d5af2.entry.js +0 -1
  695. package/dist/webcomponents/p-2ec9f293.entry.js +0 -1
  696. package/dist/webcomponents/p-3095775c.entry.js +0 -1
  697. package/dist/webcomponents/p-36d72e2d.entry.js +0 -1
  698. package/dist/webcomponents/p-39b79825.entry.js +0 -1
  699. package/dist/webcomponents/p-3d85d046.entry.js +0 -1
  700. package/dist/webcomponents/p-40ba49e4.entry.js +0 -1
  701. package/dist/webcomponents/p-424f491c.entry.js +0 -1
  702. package/dist/webcomponents/p-466f33d7.entry.js +0 -1
  703. package/dist/webcomponents/p-596b2653.entry.js +0 -1
  704. package/dist/webcomponents/p-5b09c0d8.entry.js +0 -1
  705. package/dist/webcomponents/p-5rVtZ2GJ.js +0 -1
  706. package/dist/webcomponents/p-6e18d13f.entry.js +0 -1
  707. package/dist/webcomponents/p-6f847539.entry.js +0 -1
  708. package/dist/webcomponents/p-7721a457.entry.js +0 -1
  709. package/dist/webcomponents/p-77515be6.entry.js +0 -1
  710. package/dist/webcomponents/p-79055216.entry.js +0 -1
  711. package/dist/webcomponents/p-7WIgS5RM.js +0 -1
  712. package/dist/webcomponents/p-7c51805a.entry.js +0 -1
  713. package/dist/webcomponents/p-7d944f7e.entry.js +0 -1
  714. package/dist/webcomponents/p-7ef0b68d.entry.js +0 -1
  715. package/dist/webcomponents/p-818f51fd.entry.js +0 -1
  716. package/dist/webcomponents/p-89e27079.entry.js +0 -1
  717. package/dist/webcomponents/p-8f0339de.entry.js +0 -1
  718. package/dist/webcomponents/p-904a95e5.entry.js +0 -1
  719. package/dist/webcomponents/p-9b75aced.entry.js +0 -1
  720. package/dist/webcomponents/p-9bb8bebf.entry.js +0 -1
  721. package/dist/webcomponents/p-BC8YDY7M.js +0 -1
  722. package/dist/webcomponents/p-BTkXk7ol.js +0 -1
  723. package/dist/webcomponents/p-BVD7g3cE.js +0 -1
  724. package/dist/webcomponents/p-Bb6FBEPP.js +0 -1
  725. package/dist/webcomponents/p-Bpcb3SsP.js +0 -1
  726. package/dist/webcomponents/p-Bt388eye.js +0 -1
  727. package/dist/webcomponents/p-BySyDTv5.js +0 -1
  728. package/dist/webcomponents/p-C1fMfnu0.js +0 -1
  729. package/dist/webcomponents/p-CCME-fyU.js +0 -1
  730. package/dist/webcomponents/p-CEsXw0Ph.js +0 -1
  731. package/dist/webcomponents/p-CLwzqWk2.js +0 -1
  732. package/dist/webcomponents/p-CVQyw7ao.js +0 -1
  733. package/dist/webcomponents/p-C_CXv7AN.js +0 -1
  734. package/dist/webcomponents/p-Cjcsf8ku.js +0 -1
  735. package/dist/webcomponents/p-CwZKT93w.js +0 -1
  736. package/dist/webcomponents/p-D599ZMGU.js +0 -1
  737. package/dist/webcomponents/p-DD74a16D.js +0 -1
  738. package/dist/webcomponents/p-DH8F0bsw.js +0 -1
  739. package/dist/webcomponents/p-DWUnL_zj.js +0 -1
  740. package/dist/webcomponents/p-DYGIC0QH.js +0 -1
  741. package/dist/webcomponents/p-DaDsBt65.js +0 -1
  742. package/dist/webcomponents/p-HXpYMWUU.js +0 -1
  743. package/dist/webcomponents/p-JgbsbAhz.js +0 -1
  744. package/dist/webcomponents/p-UD2JhYS2.js +0 -1
  745. package/dist/webcomponents/p-WEguiGt1.js +0 -1
  746. package/dist/webcomponents/p-ZpPDShvP.js +0 -1
  747. package/dist/webcomponents/p-a357be7d.entry.js +0 -1
  748. package/dist/webcomponents/p-a3d005dc.entry.js +0 -1
  749. package/dist/webcomponents/p-a4172773.entry.js +0 -1
  750. package/dist/webcomponents/p-a7d5e434.entry.js +0 -1
  751. package/dist/webcomponents/p-ae5a3c2a.entry.js +0 -1
  752. package/dist/webcomponents/p-b107ad76.entry.js +0 -1
  753. package/dist/webcomponents/p-b504a22b.entry.js +0 -1
  754. package/dist/webcomponents/p-b6f55d70.entry.js +0 -1
  755. package/dist/webcomponents/p-ba8ae31f.entry.js +0 -1
  756. package/dist/webcomponents/p-bdb56836.entry.js +0 -1
  757. package/dist/webcomponents/p-be06d86a.entry.js +0 -1
  758. package/dist/webcomponents/p-cb0effeb.entry.js +0 -1
  759. package/dist/webcomponents/p-cfca1837.entry.js +0 -1
  760. package/dist/webcomponents/p-d0e24727.entry.js +0 -1
  761. package/dist/webcomponents/p-d77908ca.entry.js +0 -1
  762. package/dist/webcomponents/p-dd6d6ddb.entry.js +0 -1
  763. package/dist/webcomponents/p-df199396.entry.js +0 -1
  764. package/dist/webcomponents/p-e2174f21.entry.js +0 -1
  765. package/dist/webcomponents/p-e57263b7.entry.js +0 -1
  766. package/dist/webcomponents/p-e830a580.entry.js +0 -1
  767. package/dist/webcomponents/p-e859ece8.entry.js +0 -1
  768. package/dist/webcomponents/p-eaea7cc1.entry.js +0 -1
  769. package/dist/webcomponents/p-f2149974.entry.js +0 -1
  770. package/dist/webcomponents/p-fa33df9f.entry.js +0 -1
  771. package/dist/webcomponents/p-ff3377e7.entry.js +0 -1
  772. package/dist/webcomponents/p-ff869ded.entry.js +0 -1
  773. package/dist/webcomponents/p-pska2q1M.js +0 -1
  774. package/dist/webcomponents/p-qMrd7_Gp.js +0 -1
  775. package/dist/webcomponents/p-vRhNRfmB.js +0 -1
  776. package/dist/webcomponents/p-wutYt_7D.js +0 -1
  777. package/dist/webcomponents/p-zdIeCUeh.js +0 -1
  778. package/dist/webcomponents/p-zrUQD0Wr.js +0 -1
@@ -1,28 +1,29 @@
1
- import { h, r as registerInstance, c as createEvent } from './index-kpoIU4v_.js';
1
+ import { h, r as registerInstance, c as createEvent } from './index-Bn7inNWG.js';
2
2
  import { c as create$3, a as create$6, F as FormController } from './index.esm-cYgKOXtz.js';
3
- import { f as formatCurrency } from './utils-lb8p1Exq.js';
4
- import './config-state-BrllxiM0.js';
5
- import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
6
- import { R as RefundReasons, j as RefundPayload } from './Refund-Di6J0oN2.js';
3
+ import { f as formatCurrency } from './utils-CKEiU2Q5.js';
4
+ import './config-state-DZeVYerv.js';
5
+ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
6
+ import './Checkout-CIUkm9aQ.js';
7
7
  import './Pagination-CLHwhyvu.js';
8
+ import './Payment-DrCqUoz-.js';
9
+ import { R as RefundReasons, g as RefundPayload } from './Refund-Dwnnpqim.js';
8
10
  import './Business-BCoP0TAV.js';
9
- import './Dispute-BH0Xfn-F.js';
10
- import { B as Button } from './button-CeR8qVS3.js';
11
- import { S as StyledHost } from './styled-host-B_XBaM7z.js';
11
+ import './Dispute-7MWRbTXI.js';
12
+ import { B as Button } from './button-C-ZZ9yD1.js';
13
+ import { S as StyledHost } from './styled-host-CTAGIN84.js';
12
14
  import './event-types-CZfYo5-1.js';
13
- import { P as PaymentService } from './payment.service-BWO84KlP.js';
14
- import { m as makeGetPaymentDetails } from './get-payment-details-Dt-dr16k.js';
15
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-D3fhoIFS.js';
16
- import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
17
- import { A as Api } from './Api-N_veT2p6.js';
18
- import { S as Skeleton } from './skeleton-DrHwsgs_.js';
15
+ import { P as PaymentService } from './payment.service-Dz5mhgIm.js';
16
+ import { m as makeGetPaymentDetails } from './get-payment-details-BOpjKcRB.js';
17
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8KHO3ihW.js';
18
+ import { g as getErrorCode, a as getErrorMessage } from './utils-Dccsn9BY.js';
19
+ import { A as Api } from './Api-BJv2_XdA.js';
20
+ import { S as Skeleton } from './skeleton-DK6mW457.js';
19
21
  import './_commonjsHelpers-BFTU3MAI.js';
20
- import './dinero-HXpYMWUU.js';
21
- import './index-B9me4yN2.js';
22
+ import './index-B_KxSZIF.js';
22
23
  import './helpers-Mu7LQT-w.js';
23
24
  import './state-options-BX8GieXu.js';
24
- import './parts-CfF8KKwx.js';
25
- import './package-wutYt_7D.js';
25
+ import './parts-CVGBVdVC.js';
26
+ import './package-BOCuVjGs.js';
26
27
 
27
28
  const amountValidation = (maxAmount) => {
28
29
  const max = +maxAmount;
@@ -0,0 +1,122 @@
1
+ import { h, r as registerInstance, c as createEvent } from './index-Bn7inNWG.js';
2
+ import { p as processHTML, f as formatCurrency, r as removeAttribute, h as addAttribute } from './utils-CKEiU2Q5.js';
3
+ import { v as validateInsuranceValues, a as insuranceValues, b as insuranceErrors, H as Header2 } from './insurance-state-DRFl0tWj.js';
4
+ import { A as text, B as textDanger } from './parts-CVGBVdVC.js';
5
+ import { S as StyledHost } from './styled-host-CTAGIN84.js';
6
+ import './event-types-CZfYo5-1.js';
7
+ import { S as Skeleton } from './skeleton-DK6mW457.js';
8
+ import './index-B_KxSZIF.js';
9
+
10
+ const SeasonInterruptionInsuranceLoading = () => (h("div", { class: "row gap-3" },
11
+ h("div", { class: "col-12" },
12
+ h(Skeleton, { width: "35%", height: "30px" })),
13
+ h("div", { class: "col-12" },
14
+ h(Skeleton, { width: "70%" })),
15
+ h("div", { class: "col-12" },
16
+ h(Skeleton, { width: "40%" })),
17
+ h("div", { class: "col-12" },
18
+ h(Skeleton, { width: "40%" })),
19
+ h("div", { class: "col-12" },
20
+ h(Skeleton, { width: "100%" })),
21
+ h("div", { class: "col-12" },
22
+ h(Skeleton, { width: "80%" }))));
23
+
24
+ const SeasonInterruptionInsuranceCore = class {
25
+ constructor(hostRef) {
26
+ registerInstance(this, hostRef);
27
+ this.insuranceUpdated = createEvent(this, "insurance-updated");
28
+ this.errorEvent = createEvent(this, "error-event");
29
+ this.isLoading = true;
30
+ }
31
+ async validate() {
32
+ return validateInsuranceValues();
33
+ }
34
+ processHTMLContent(html) {
35
+ return processHTML(html, [
36
+ (html) => removeAttribute(html, 'style'),
37
+ (html) => addAttribute(html, 'a', 'part', text),
38
+ (html) => addAttribute(html, 'p', 'part', text),
39
+ ]);
40
+ }
41
+ componentWillLoad() {
42
+ if (this.getQuote) {
43
+ this.fetchData();
44
+ }
45
+ }
46
+ ;
47
+ fetchData() {
48
+ this.isLoading = true;
49
+ this.getQuote({
50
+ payload: {
51
+ checkout_id: this.checkoutId,
52
+ policy_type: "season_interruption",
53
+ primary_identity: {
54
+ state: this.primaryIdentityState,
55
+ email: this.primaryIdentityEmailAddress,
56
+ first_name: this.primaryIdentityFirstName,
57
+ last_name: this.primaryIdentityLastName,
58
+ postal_code: this.primaryIdentityPostalCode,
59
+ country: this.primaryIdentityCountry
60
+ },
61
+ policy_attributes: {
62
+ insurable_amount: this.policyAttributesInsurableAmount,
63
+ start_date: this.policyAttributesStartDate,
64
+ end_date: this.policyAttributesEndDate,
65
+ covered_identity: {
66
+ first_name: this.coveredIdentityFirstName,
67
+ last_name: this.coveredIdentityLastName
68
+ }
69
+ }
70
+ },
71
+ onSuccess: ({ quote }) => {
72
+ this.quote = quote;
73
+ this.quote.product.description = this.processHTMLContent(this.quote.product.description);
74
+ this.quote.product.legal_disclaimer = this.processHTMLContent(this.quote.product.legal_disclaimer);
75
+ insuranceValues[quote.policy_type] = quote.accepted;
76
+ this.isLoading = false;
77
+ },
78
+ onError: ({ error, code, severity }) => {
79
+ this.isLoading = false;
80
+ this.errorEvent.emit({
81
+ errorCode: code,
82
+ message: error,
83
+ severity,
84
+ });
85
+ }
86
+ });
87
+ }
88
+ ;
89
+ onChangeHandler(_name, value) {
90
+ this.accepted = value;
91
+ insuranceErrors[this.quote.policy_type] = false;
92
+ this.toggleCoverage({
93
+ quoteId: this.quote.id,
94
+ payload: { accepted: this.accepted },
95
+ onSuccess: () => {
96
+ this.insuranceUpdated.emit();
97
+ insuranceValues[this.quote.policy_type] = this.accepted;
98
+ },
99
+ onError: ({ error, code, severity }) => {
100
+ this.errorEvent.emit({
101
+ errorCode: code,
102
+ message: error,
103
+ severity,
104
+ });
105
+ }
106
+ });
107
+ }
108
+ get error() {
109
+ var _a;
110
+ return insuranceErrors[(_a = this.quote) === null || _a === void 0 ? void 0 : _a.policy_type];
111
+ }
112
+ render() {
113
+ var _a, _b, _c, _d;
114
+ if (this.isLoading)
115
+ return (h(StyledHost, null, h(SeasonInterruptionInsuranceLoading, null)));
116
+ return (h(StyledHost, null, h("div", null, h(Header2, { text: (_a = this.quote) === null || _a === void 0 ? void 0 : _a.product.title, class: "fs-5 fw-bold pb-3" }), h("small", { part: text, innerHTML: (_b = this.quote) === null || _b === void 0 ? void 0 : _b.product.description }), h("form-control-radio", { label: `Accept coverage for ${formatCurrency((_c = this.quote) === null || _c === void 0 ? void 0 : _c.total_cents)}`, name: "opt-in", value: 'true', checked: this.accepted === 'true', inputHandler: this.onChangeHandler.bind(this),
117
+ // don't wanna show error message, but need to show the red border
118
+ errorText: this.error ? ' ' : undefined }), h("form-control-radio", { label: "Decline coverage", name: "opt-in", value: 'false', checked: this.accepted === 'false', inputHandler: this.onChangeHandler.bind(this), errorText: this.error ? ' ' : undefined }), h("div", { class: "invalid-feedback", style: { display: this.error ? 'block' : 'none' }, part: textDanger }, "Please select an option"), h("small", { part: text, innerHTML: (_d = this.quote) === null || _d === void 0 ? void 0 : _d.product.legal_disclaimer }))));
119
+ }
120
+ };
121
+
122
+ export { SeasonInterruptionInsuranceCore as justifi_season_interruption_insurance_core };
@@ -1,25 +1,20 @@
1
- import { h, r as registerInstance, c as createEvent } from './index-kpoIU4v_.js';
2
- import { A as Api } from './Api-N_veT2p6.js';
3
- import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
4
- import './Refund-Di6J0oN2.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
2
+ import { A as Api } from './Api-BJv2_XdA.js';
3
+ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
4
+ import './Checkout-CIUkm9aQ.js';
5
5
  import './Pagination-CLHwhyvu.js';
6
+ import './Payment-DrCqUoz-.js';
7
+ import './Refund-Dwnnpqim.js';
6
8
  import './Business-BCoP0TAV.js';
7
- import './Dispute-BH0Xfn-F.js';
8
- import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
9
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-D3fhoIFS.js';
10
- import { c as checkoutStore } from './checkout.store-B60siz2l.js';
11
- import { p as processHTML, f as formatCurrency, r as removeAttribute, h as addAttribute } from './utils-lb8p1Exq.js';
12
- import { v as validateInsuranceValues, i as insuranceValues, a as insuranceErrors, H as Header2 } from './insurance-state-CB4l8sOv.js';
13
- import { D as text, E as textDanger } from './parts-CfF8KKwx.js';
14
- import { S as StyledHost } from './styled-host-B_XBaM7z.js';
15
- import './event-types-CZfYo5-1.js';
16
- import { S as Skeleton } from './skeleton-DrHwsgs_.js';
17
- import './config-state-BrllxiM0.js';
18
- import './index-B9me4yN2.js';
9
+ import './Dispute-7MWRbTXI.js';
10
+ import { g as getErrorCode, a as getErrorMessage } from './utils-Dccsn9BY.js';
11
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8KHO3ihW.js';
12
+ import './config-state-DZeVYerv.js';
13
+ import './index-B_KxSZIF.js';
14
+ import './utils-CKEiU2Q5.js';
19
15
  import './helpers-Mu7LQT-w.js';
20
16
  import './state-options-BX8GieXu.js';
21
- import './package-wutYt_7D.js';
22
- import './dinero-HXpYMWUU.js';
17
+ import './package-BOCuVjGs.js';
23
18
 
24
19
  const api = Api();
25
20
  class InsuranceService {
@@ -90,52 +85,25 @@ const makeToggleCoverage = ({ authToken, service }) => async ({ quoteId, payload
90
85
  }
91
86
  };
92
87
 
93
- const SeasonInterruptionInsuranceLoading = () => (h("div", { class: "row gap-3" },
94
- h("div", { class: "col-12" },
95
- h(Skeleton, { width: "35%", height: "30px" })),
96
- h("div", { class: "col-12" },
97
- h(Skeleton, { width: "70%" })),
98
- h("div", { class: "col-12" },
99
- h(Skeleton, { width: "40%" })),
100
- h("div", { class: "col-12" },
101
- h(Skeleton, { width: "40%" })),
102
- h("div", { class: "col-12" },
103
- h(Skeleton, { width: "100%" })),
104
- h("div", { class: "col-12" },
105
- h(Skeleton, { width: "80%" }))));
106
-
107
88
  const SeasonInterruptionInsurance = class {
108
89
  constructor(hostRef) {
109
90
  registerInstance(this, hostRef);
110
- this.insuranceUpdated = createEvent(this, "insurance-updated");
111
91
  this.errorEvent = createEvent(this, "error-event");
112
- this.isLoading = true;
113
92
  }
114
93
  async validate() {
115
- return validateInsuranceValues();
116
- }
117
- processHTMLContent(html) {
118
- return processHTML(html, [
119
- (html) => removeAttribute(html, 'style'),
120
- (html) => addAttribute(html, 'a', 'part', text),
121
- (html) => addAttribute(html, 'p', 'part', text),
122
- ]);
94
+ return this.seasonInterruptionCoreRef.validate();
123
95
  }
124
96
  componentWillLoad() {
125
97
  checkPkgVersion();
126
98
  this.analytics = new JustifiAnalytics(this);
127
99
  this.initializeServiceMethods();
128
- if (this.getQuote) {
129
- this.fetchData();
130
- }
131
100
  }
132
101
  disconnectedCallback() {
133
102
  var _a;
134
103
  (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
135
104
  }
136
105
  initializeServiceMethods() {
137
- const authToken = this.authToken || checkoutStore.authToken;
138
- if (!authToken) {
106
+ if (!this.authToken) {
139
107
  this.errorEvent.emit({
140
108
  errorCode: ComponentErrorCodes.MISSING_PROPS,
141
109
  message: 'Missing authToken',
@@ -143,82 +111,17 @@ const SeasonInterruptionInsurance = class {
143
111
  });
144
112
  return;
145
113
  }
146
- const service = new InsuranceService();
147
- const config = { authToken, service };
148
- this.getQuote = makeGetQuote(config);
149
- this.toggleCoverage = makeToggleCoverage(config);
150
- }
151
- fetchData() {
152
- this.isLoading = true;
153
- this.getQuote({
154
- payload: {
155
- checkout_id: this.checkoutId || checkoutStore.checkoutId,
156
- policy_type: "season_interruption",
157
- primary_identity: {
158
- state: this.primaryIdentityState,
159
- email: this.primaryIdentityEmailAddress,
160
- first_name: this.primaryIdentityFirstName,
161
- last_name: this.primaryIdentityLastName,
162
- postal_code: this.primaryIdentityPostalCode,
163
- country: this.primaryIdentityCountry
164
- },
165
- policy_attributes: {
166
- insurable_amount: this.policyAttributesInsurableAmount,
167
- start_date: this.policyAttributesStartDate,
168
- end_date: this.policyAttributesEndDate,
169
- covered_identity: {
170
- first_name: this.coveredIdentityFirstName,
171
- last_name: this.coveredIdentityLastName
172
- }
173
- }
174
- },
175
- onSuccess: ({ quote }) => {
176
- this.quote = quote;
177
- this.quote.product.description = this.processHTMLContent(this.quote.product.description);
178
- this.quote.product.legal_disclaimer = this.processHTMLContent(this.quote.product.legal_disclaimer);
179
- insuranceValues[quote.policy_type] = quote.accepted;
180
- this.isLoading = false;
181
- },
182
- onError: ({ error, code, severity }) => {
183
- this.isLoading = false;
184
- this.errorEvent.emit({
185
- errorCode: code,
186
- message: error,
187
- severity,
188
- });
189
- }
114
+ this.getQuote = makeGetQuote({
115
+ authToken: this.authToken,
116
+ service: new InsuranceService(),
190
117
  });
191
- }
192
- onChangeHandler(_name, value) {
193
- this.accepted = value;
194
- insuranceErrors[this.quote.policy_type] = false;
195
- this.toggleCoverage({
196
- quoteId: this.quote.id,
197
- payload: { accepted: this.accepted },
198
- onSuccess: () => {
199
- this.insuranceUpdated.emit();
200
- insuranceValues[this.quote.policy_type] = this.accepted;
201
- },
202
- onError: ({ error, code, severity }) => {
203
- this.errorEvent.emit({
204
- errorCode: code,
205
- message: error,
206
- severity,
207
- });
208
- }
118
+ this.toggleCoverage = makeToggleCoverage({
119
+ authToken: this.authToken,
120
+ service: new InsuranceService(),
209
121
  });
210
122
  }
211
- get error() {
212
- var _a;
213
- return insuranceErrors[(_a = this.quote) === null || _a === void 0 ? void 0 : _a.policy_type];
214
- }
215
123
  render() {
216
- var _a, _b, _c, _d;
217
- if (this.isLoading)
218
- return (h(StyledHost, null, h(SeasonInterruptionInsuranceLoading, null)));
219
- return (h(StyledHost, null, h("div", null, h(Header2, { text: (_a = this.quote) === null || _a === void 0 ? void 0 : _a.product.title, class: "fs-5 fw-bold pb-3" }), h("small", { part: text, innerHTML: (_b = this.quote) === null || _b === void 0 ? void 0 : _b.product.description }), h("form-control-radio", { label: `Accept coverage for ${formatCurrency((_c = this.quote) === null || _c === void 0 ? void 0 : _c.total_cents)}`, name: "opt-in", value: 'true', checked: this.accepted === 'true', inputHandler: this.onChangeHandler.bind(this),
220
- // don't wanna show error message, but need to show the red border
221
- errorText: this.error ? ' ' : undefined }), h("form-control-radio", { label: "Decline coverage", name: "opt-in", value: 'false', checked: this.accepted === 'false', inputHandler: this.onChangeHandler.bind(this), errorText: this.error ? ' ' : undefined }), h("div", { class: "invalid-feedback", style: { display: this.error ? 'block' : 'none' }, part: textDanger }, "Please select an option"), h("small", { part: text, innerHTML: (_d = this.quote) === null || _d === void 0 ? void 0 : _d.product.legal_disclaimer }))));
124
+ return (h("justifi-season-interruption-insurance-core", { key: 'aac3dc07107f64d56f6cddf44b54df4a34d11715', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
222
125
  }
223
126
  };
224
127
 
@@ -1,17 +1,18 @@
1
- import { r as registerInstance, h } from './index-kpoIU4v_.js';
2
- import { f as filterParams, p as propsParams, c as clearParams } from './terminal-orders-list-params-state-SMXQIZTt.js';
3
- import { q as terminalOrdersListFilterMenu, u as orderStatusTerminalOrdersListFilterParam, v as orderTypeTerminalOrdersListFilterParam, w as createdAfterTerminalOrdersListFilterParam, x as createdBeforeTerminalOrdersListFilterParam } from './parts-CfF8KKwx.js';
4
- import { S as StyledHost } from './styled-host-B_XBaM7z.js';
1
+ import { r as registerInstance, h } from './index-Bn7inNWG.js';
2
+ import { f as filterParams, p as propsParams, c as clearParams } from './terminal-orders-list-params-state-D8tzsGR_.js';
3
+ import { o as terminalOrdersListFilterMenu, q as orderStatusTerminalOrdersListFilterParam, r as orderTypeTerminalOrdersListFilterParam, u as createdAfterTerminalOrdersListFilterParam, v as createdBeforeTerminalOrdersListFilterParam } from './parts-CVGBVdVC.js';
4
+ import { S as StyledHost } from './styled-host-CTAGIN84.js';
5
5
  import './event-types-CZfYo5-1.js';
6
- import './config-state-BrllxiM0.js';
7
- import { c as convertToUTC, a as convertToLocal } from './utils-lb8p1Exq.js';
8
- import './ComponentError-Cjcsf8ku.js';
9
- import { T as TerminalOrderStatus, b as TerminalOrderType } from './Refund-Di6J0oN2.js';
6
+ import './config-state-DZeVYerv.js';
7
+ import { c as convertToUTC, a as convertToLocal } from './utils-CKEiU2Q5.js';
8
+ import './ComponentError-SdntD1xf.js';
9
+ import './Checkout-CIUkm9aQ.js';
10
10
  import './Pagination-CLHwhyvu.js';
11
+ import './Payment-DrCqUoz-.js';
12
+ import { T as TerminalOrderStatus, a as TerminalOrderType } from './Refund-Dwnnpqim.js';
11
13
  import './Business-BCoP0TAV.js';
12
- import './Dispute-BH0Xfn-F.js';
13
- import './index-B9me4yN2.js';
14
- import './dinero-HXpYMWUU.js';
14
+ import './Dispute-7MWRbTXI.js';
15
+ import './index-B_KxSZIF.js';
15
16
  import './helpers-Mu7LQT-w.js';
16
17
  import './state-options-BX8GieXu.js';
17
18
 
@@ -59,8 +60,8 @@ const TerminalOrdersListFilters = class {
59
60
  }
60
61
  render() {
61
62
  const filterMenuParams = Object.assign({}, filterParams);
62
- return (h(StyledHost, { key: '988e8065ca67d21d1c4b68c5bcfed4fd95c6e409' }, h("table-filters-menu", { key: '22073bfda9c93d5aecf8c613497673189df8b007', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: 'a94b84892b641a137ce100bf219bc58480f832ce', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'cfc88bdfea79cd6c84a6ad8c7d35eb95c40d26b8', class: "p-2" }, h("form-control-select", { key: '984fc8a4ad675cb42666ca788b451c0873156b78', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: '7f1d78148dbc10f3b0cb311db4fa32d47974587a', class: "p-2" }, h("form-control-select", { key: '0f229683300698549656a508279758c5e17a2730', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: 'c8728a93377e1733f30ba60eb16a49e0703a9d1f', class: "p-2" }, h("form-control-date", { key: '1dabe01d1b923c40135b4a1ca2b88b13f492900c', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
63
- convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '446ceaa457b97bef17d2443b38b9088b979f628b', class: "p-2" }, h("form-control-date", { key: '72b6a32928b2556dacb62c427af8d8c09a5f0abb', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
63
+ return (h(StyledHost, { key: '583766e7fe6e649d4c575b74674c6df3528b9f23' }, h("table-filters-menu", { key: 'b153c328d120c9f45339b36a05f1f31e95488f05', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: '2f8183f040f65592771425b8ef08d8991112de58', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '5d92afe66d4ad1518b02966a7bd20b919481df8d', class: "p-2" }, h("form-control-select", { key: '5d9619b0f89917158e3f73dbdd257b3ab9f42798', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: '149e9cabd81646a1bed3f448472c83b503519c03', class: "p-2" }, h("form-control-select", { key: '0124bbb2937fb7f1b83f09253f268d06e057a023', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: 'e59daa2229b40867eeaf3be94bffda752304186a', class: "p-2" }, h("form-control-date", { key: '1a6470d8619c6a5e15499021df8fce7dcc1e7a4c', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
64
+ convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '63ce4af7c5ce8e84c222de5f279af78d0fe70b98', class: "p-2" }, h("form-control-date", { key: '44f2c492dda5bd6ebc215b1b8bcdf12fe8d346e8', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
64
65
  convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforeTerminalOrdersListFilterParam }))))));
65
66
  }
66
67
  };
@@ -1,22 +1,23 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
2
- import { S as StyledHost } from './styled-host-B_XBaM7z.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
2
+ import { S as StyledHost } from './styled-host-CTAGIN84.js';
3
3
  import './event-types-CZfYo5-1.js';
4
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-D3fhoIFS.js';
5
- import { d as defaultColumnsKeys } from './terminal-orders-table-BN4Co4T8.js';
6
- import './config-state-BrllxiM0.js';
7
- import './dinero-HXpYMWUU.js';
8
- import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
9
- import { h as TerminalOrder } from './Refund-Di6J0oN2.js';
4
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8KHO3ihW.js';
5
+ import { d as defaultColumnsKeys } from './terminal-orders-table-CPsSDEWs.js';
6
+ import './config-state-DZeVYerv.js';
7
+ import './utils-CKEiU2Q5.js';
8
+ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
9
+ import './Checkout-CIUkm9aQ.js';
10
10
  import './Pagination-CLHwhyvu.js';
11
+ import './Payment-DrCqUoz-.js';
12
+ import { e as TerminalOrder } from './Refund-Dwnnpqim.js';
11
13
  import './Business-BCoP0TAV.js';
12
- import './Dispute-BH0Xfn-F.js';
13
- import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
14
- import { A as Api } from './Api-N_veT2p6.js';
15
- import './package-wutYt_7D.js';
16
- import './parts-CfF8KKwx.js';
17
- import './utils-lb8p1Exq.js';
18
- import './badge-D_mzXSCQ.js';
19
- import './index-B9me4yN2.js';
14
+ import './Dispute-7MWRbTXI.js';
15
+ import { g as getErrorCode, a as getErrorMessage } from './utils-Dccsn9BY.js';
16
+ import { A as Api } from './Api-BJv2_XdA.js';
17
+ import './package-BOCuVjGs.js';
18
+ import './parts-CVGBVdVC.js';
19
+ import './badge-XXatxWS0.js';
20
+ import './index-B_KxSZIF.js';
20
21
  import './helpers-Mu7LQT-w.js';
21
22
  import './state-options-BX8GieXu.js';
22
23
 
@@ -100,7 +101,7 @@ const TerminalOrdersList = class {
100
101
  }
101
102
  }
102
103
  render() {
103
- return (h(StyledHost, { key: '770ec45855c3d0034eb5a09db38a31cdfcc6227c' }, h("terminal-orders-list-core", { key: '53a96754ad9de85d99c1a299212d74925539d193', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
104
+ return (h(StyledHost, { key: 'e1443c306b24a4e0e179458a899f7e362ef50d67' }, h("terminal-orders-list-core", { key: '8c7df6db57f09f71795273aa1e5ec5e93e67a09b', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
104
105
  }
105
106
  };
106
107
 
@@ -1,19 +1,20 @@
1
- import { r as registerInstance, h } from './index-kpoIU4v_.js';
1
+ import { r as registerInstance, h } from './index-Bn7inNWG.js';
2
2
  import { l as lodashExports } from './lodash-BqWxUrkh.js';
3
- import { f as filterParams, p as propsParams, c as clearParams } from './terminals-list-params-state-SMXQIZTt.js';
4
- import { y as terminalsListFilterMenu, z as terminalIdTerminalsListFilterParam, A as terminalOrderIdTerminalsListFilterParam, B as terminalStatusTerminalsListFilterParam } from './parts-CfF8KKwx.js';
5
- import { S as StyledHost } from './styled-host-B_XBaM7z.js';
3
+ import { f as filterParams, p as propsParams, c as clearParams } from './terminals-list-params-state-D8tzsGR_.js';
4
+ import { w as terminalsListFilterMenu, x as terminalIdTerminalsListFilterParam, y as terminalOrderIdTerminalsListFilterParam, z as terminalStatusTerminalsListFilterParam } from './parts-CVGBVdVC.js';
5
+ import { S as StyledHost } from './styled-host-CTAGIN84.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import './config-state-BrllxiM0.js';
8
- import './dinero-HXpYMWUU.js';
9
- import './ComponentError-Cjcsf8ku.js';
10
- import { c as ITerminalStatus } from './Refund-Di6J0oN2.js';
7
+ import './config-state-DZeVYerv.js';
8
+ import './utils-CKEiU2Q5.js';
9
+ import './ComponentError-SdntD1xf.js';
10
+ import './Checkout-CIUkm9aQ.js';
11
11
  import './Pagination-CLHwhyvu.js';
12
+ import './Payment-DrCqUoz-.js';
13
+ import { I as ITerminalStatus } from './Refund-Dwnnpqim.js';
12
14
  import './Business-BCoP0TAV.js';
13
- import './Dispute-BH0Xfn-F.js';
15
+ import './Dispute-7MWRbTXI.js';
14
16
  import './_commonjsHelpers-BFTU3MAI.js';
15
- import './index-B9me4yN2.js';
16
- import './utils-lb8p1Exq.js';
17
+ import './index-B_KxSZIF.js';
17
18
  import './helpers-Mu7LQT-w.js';
18
19
  import './state-options-BX8GieXu.js';
19
20
 
@@ -49,7 +50,7 @@ const TerminalsListFilters = class {
49
50
  }
50
51
  render() {
51
52
  const filterMenuParams = Object.assign({}, filterParams);
52
- return (h(StyledHost, { key: 'b171691b2dd20e57f132d83f6857d15bfda36ea1' }, h("table-filters-menu", { key: '458e8a032f475812a7cc77ecfc2af6ba0e4b8398', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: 'dc1953cae02eded40a0e8351aa2d3b25f1105486', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'f676f3b75ee02a0a1db4b8b95ba6c01cbcd00cb4', class: "p-2" }, h("form-control-text", { key: '8f00314bc11246b6006d682830155fd931adf1b6', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: 'bf6704c3b84fd825c925bc212c8f76b2d6c0a3c3', class: "p-2" }, h("form-control-text", { key: '24b7ef636136f749a44d927752d54110508c5986', name: "terminal_order_id", label: "Terminal Order ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalOrderId || filterParams.terminal_order_id, disabled: !!this.terminalOrderId, part: terminalOrderIdTerminalsListFilterParam })), h("div", { key: '0c1bd807a3ca0e9a0d5bf182f4f48e6bbc78201e', class: "p-2" }, h("form-control-select", { key: 'bf9f459cbda08eabb9c6bbbb6c8c4cd82ce753b5', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
53
+ return (h(StyledHost, { key: '33d0e44947a2df5217d725fab6cbdee16b82b505' }, h("table-filters-menu", { key: '23d37f21ce7fe37f8e09cb8244593c8cd87d6163', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: '72bea11d594c36b78819da9a4df7b637af9c82f5', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '6001d65ea3c2f0e7e950ff647d2e25ab0986e757', class: "p-2" }, h("form-control-text", { key: '035f811a609d95f6445eafc94c5ccca42c5086e0', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: '0f1f0f6a83ecc78dfea9c9744d6c26c64549231d', class: "p-2" }, h("form-control-text", { key: '9798016e2e88ea4e90f280afa3ecb9d34748ff4c', name: "terminal_order_id", label: "Terminal Order ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalOrderId || filterParams.terminal_order_id, disabled: !!this.terminalOrderId, part: terminalOrderIdTerminalsListFilterParam })), h("div", { key: '719f95cc9b707b626fcb7234164f247dec321b0f', class: "p-2" }, h("form-control-select", { key: '08482cde28ea4fb2d25cba044112b8a47ffe8c33', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
53
54
  }
54
55
  };
55
56
 
@@ -1,26 +1,27 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
2
- import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
3
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-D3fhoIFS.js';
4
- import { T as TerminalService } from './terminal.service-DmYCUQcA.js';
5
- import './config-state-BrllxiM0.js';
6
- import './dinero-HXpYMWUU.js';
7
- import { e as Terminal } from './Refund-Di6J0oN2.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
2
+ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8KHO3ihW.js';
4
+ import { T as TerminalService } from './terminal.service-Vhk3qPk2.js';
5
+ import './config-state-DZeVYerv.js';
6
+ import './utils-CKEiU2Q5.js';
7
+ import './Checkout-CIUkm9aQ.js';
8
8
  import './Pagination-CLHwhyvu.js';
9
+ import './Payment-DrCqUoz-.js';
10
+ import { b as Terminal } from './Refund-Dwnnpqim.js';
9
11
  import './Business-BCoP0TAV.js';
10
- import './Dispute-BH0Xfn-F.js';
11
- import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
12
- import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-BsoVLANw.js';
13
- import { S as StyledHost } from './styled-host-B_XBaM7z.js';
12
+ import './Dispute-7MWRbTXI.js';
13
+ import { g as getErrorCode, a as getErrorMessage } from './utils-Dccsn9BY.js';
14
+ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-0Ri4RB5r.js';
15
+ import { S as StyledHost } from './styled-host-CTAGIN84.js';
14
16
  import './event-types-CZfYo5-1.js';
15
- import { d as defaultColumnsKeys } from './terminals-table-C8LczeG_.js';
16
- import './package-wutYt_7D.js';
17
- import './Api-N_veT2p6.js';
18
- import './utils-lb8p1Exq.js';
19
- import './index-B9me4yN2.js';
17
+ import { d as defaultColumnsKeys } from './terminals-table-CAavYaG5.js';
18
+ import './package-BOCuVjGs.js';
19
+ import './Api-BJv2_XdA.js';
20
+ import './index-B_KxSZIF.js';
20
21
  import './helpers-Mu7LQT-w.js';
21
22
  import './state-options-BX8GieXu.js';
22
- import './badge-D_mzXSCQ.js';
23
- import './parts-CfF8KKwx.js';
23
+ import './badge-XXatxWS0.js';
24
+ import './parts-CVGBVdVC.js';
24
25
 
25
26
  const makeGetTerminals = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
26
27
  var _a, _b;
@@ -106,7 +107,7 @@ const TerminalsList = class {
106
107
  }
107
108
  }
108
109
  render() {
109
- return (h(StyledHost, { key: '3e7a05a8497a84bf6b06d9fc95834d9bbb53d954' }, h("terminals-list-core", { key: '1653a639b594c93cc08fadb07ff56346d1ae9295', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
110
+ return (h(StyledHost, { key: 'a35e4efef6e52f45e8c2c232bde43afc0f5945ab' }, h("terminals-list-core", { key: '46cdde8b97d04760cf1a32f561513dcf42c5dd37', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
110
111
  }
111
112
  static get watchers() { return {
112
113
  "accountId": ["propChanged"],
@@ -0,0 +1,78 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
2
+ import { B as Button } from './button-C-ZZ9yD1.js';
3
+ import { S as StyledHost } from './styled-host-CTAGIN84.js';
4
+ import './event-types-CZfYo5-1.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8KHO3ihW.js';
6
+ import './config-state-DZeVYerv.js';
7
+ import './utils-CKEiU2Q5.js';
8
+ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
9
+ import './Checkout-CIUkm9aQ.js';
10
+ import './Pagination-CLHwhyvu.js';
11
+ import './Payment-DrCqUoz-.js';
12
+ import './Refund-Dwnnpqim.js';
13
+ import './Business-BCoP0TAV.js';
14
+ import './Dispute-7MWRbTXI.js';
15
+ import './parts-CVGBVdVC.js';
16
+ import './package-BOCuVjGs.js';
17
+ import './Api-BJv2_XdA.js';
18
+ import './index-B_KxSZIF.js';
19
+ import './helpers-Mu7LQT-w.js';
20
+ import './state-options-BX8GieXu.js';
21
+
22
+ const TokenizePaymentMethod = class {
23
+ constructor(hostRef) {
24
+ registerInstance(this, hostRef);
25
+ this.errorEvent = createEvent(this, "error-event");
26
+ this.submitEvent = createEvent(this, "submit-event");
27
+ this.submitButtonText = 'Submit';
28
+ this.isLoading = false;
29
+ }
30
+ componentWillLoad() {
31
+ checkPkgVersion();
32
+ this.analytics = new JustifiAnalytics(this);
33
+ }
34
+ disconnectedCallback() {
35
+ var _a;
36
+ (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
37
+ }
38
+ ;
39
+ async tokenizePaymentMethod(event) {
40
+ event && event.preventDefault();
41
+ this.isLoading = true;
42
+ let tokenizeResponse;
43
+ try {
44
+ tokenizeResponse = await this.paymentMethodOptionsRef.resolvePaymentMethod({ isValid: true });
45
+ if (tokenizeResponse.error) {
46
+ this.errorEvent.emit({
47
+ errorCode: tokenizeResponse.error.code,
48
+ message: tokenizeResponse.error.message,
49
+ severity: ComponentErrorSeverity.ERROR,
50
+ });
51
+ }
52
+ }
53
+ catch (error) {
54
+ const errorData = {
55
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
56
+ message: error.message,
57
+ severity: ComponentErrorSeverity.ERROR,
58
+ };
59
+ this.errorEvent.emit(errorData);
60
+ }
61
+ finally {
62
+ this.submitEvent.emit({ response: tokenizeResponse });
63
+ this.isLoading = false;
64
+ return tokenizeResponse;
65
+ }
66
+ }
67
+ async fillBillingForm(fields) {
68
+ this.paymentMethodOptionsRef.fillBillingForm(fields);
69
+ }
70
+ async validate() {
71
+ return this.paymentMethodOptionsRef.validate();
72
+ }
73
+ render() {
74
+ return (h(StyledHost, { key: 'bde61e05e8148b4bb3c054d124070a160fd7ca13' }, h("form", { key: 'ea0dd3192fc924bbf22a80562030c6557e32d905' }, h("fieldset", { key: '8a96c0b8e5497d97f0e546558e0ad37a57a459cb' }, h("div", { key: '849547d7b1c810533af86104eb7ae42b569c9c97', class: "row gy-3" }, h("div", { key: 'afc1b73d0a027e2ea6e8cec831f43f53cd2b8666', class: "col-12" }, h("justifi-payment-method-options", { key: '8af2e6076d689ca358a9542cea10d314dee68444', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, authToken: this.authToken, "account-id": this.accountId })), h("div", { key: '62ac0ff4f7774adadfa8bbbdbc474ba3cd15c5f4', class: "col-12" }, h(Button, { key: 'c5212829153b3c217ce18aac4cbb3afa58f1e7b3', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText)))))));
75
+ }
76
+ };
77
+
78
+ export { TokenizePaymentMethod as justifi_tokenize_payment_method };