@justifi/webcomponents 6.14.4-rc.2 → 6.14.5-rc.1

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 (449) hide show
  1. package/dist/cjs/{Analytics-DahOCpJB.js → Analytics-46pgYofS.js} +3 -3
  2. package/dist/cjs/{Api-B4fSXAdi.js → Api-C2V2lX6a.js} +2 -2
  3. package/dist/cjs/{Plaid-CbaU5Arm.js → Plaid-B2o4c_Ej.js} +2 -0
  4. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +9 -9
  5. package/dist/cjs/{additional-questions_5.cjs.entry.js → additional-questions_4.cjs.entry.js} +0 -16
  6. package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
  7. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +2 -2
  8. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +3 -3
  9. package/dist/cjs/bank-account-form.cjs.entry.js +77 -27
  10. package/dist/cjs/{business.service-BAjtyKsg.js → business.service-COn1NkhY.js} +2 -2
  11. package/dist/cjs/card-form.cjs.entry.js +79 -26
  12. package/dist/cjs/{check-pkg-version-DR4Ghb6-.js → check-pkg-version-BsDr9TZT.js} +1 -1
  13. package/dist/cjs/{checkout-actions-Cm38ZPqN.js → checkout-actions-VCJi-q4z.js} +2 -2
  14. package/dist/cjs/{checkout.service-DyL8PSeF.js → checkout.service-DObCfUj2.js} +2 -2
  15. package/dist/cjs/{checkout.store-CZHrIuaP.js → checkout.store-DOa1-SjA.js} +18 -4
  16. package/dist/cjs/{payments-list-params-state-vGJZ6Oe2.js → checkouts-list-params-state-DDpRrUTY.js} +1 -1
  17. package/dist/cjs/{config-state-BIgGhhe9.js → config-state-C1YMiFpR.js} +1 -1
  18. package/dist/cjs/dispute-notification_2.cjs.entry.js +12 -12
  19. package/dist/cjs/{event-types-DyRIxSSS.js → event-types-CmDSoKh4.js} +2 -2
  20. package/dist/cjs/{hidden-input_2.cjs.entry.js → form-alert_3.cjs.entry.js} +34 -12
  21. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
  23. package/dist/cjs/{get-business-B3Jf5X7U.js → get-business-BBDsPv-b.js} +2 -2
  24. package/dist/cjs/{get-payment-details-Q9lHwr8Y.js → get-payment-details-BYZeUFAB.js} +3 -3
  25. package/dist/cjs/{get-subaccounts-Csq0SIVV.js → get-subaccounts-CuruLv9t.js} +4 -4
  26. package/dist/cjs/{index-W-zoNiyM.js → index-DDrfAj-j.js} +21 -15
  27. package/dist/cjs/{insurance-state-B-XQRmMs.js → insurance-state-CHQD1ZGw.js} +1 -1
  28. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +52 -38
  29. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +7 -7
  30. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +7 -7
  31. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
  32. package/dist/cjs/justifi-business-form.cjs.entry.js +10 -10
  33. package/dist/cjs/justifi-card-form.cjs.entry.js +7 -7
  34. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +7 -7
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -15
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
  38. package/dist/cjs/justifi-config-provider.cjs.entry.js +2 -2
  39. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  40. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
  41. package/dist/cjs/justifi-order-terminals.cjs.entry.js +11 -11
  42. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  43. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  44. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +9 -9
  45. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  46. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
  47. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  48. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +9 -9
  49. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  50. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
  51. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +10 -10
  52. package/dist/cjs/justifi-refund-payment.cjs.entry.js +12 -12
  53. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -10
  54. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -4
  55. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -9
  56. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
  57. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
  58. package/dist/cjs/loader.cjs.js +1 -1
  59. package/dist/cjs/{package-DkLJAjev.js → package-Cb1-8Jj8.js} +1 -1
  60. package/dist/cjs/{payment-provisioning-actions-DeURi9ZW.js → payment-provisioning-actions-CIsDrh8k.js} +2 -2
  61. package/dist/cjs/{payment.service-CBMsLP9b.js → payment.service-XSIPp45g.js} +2 -2
  62. package/dist/cjs/{checkouts-list-params-state-vGJZ6Oe2.js → payments-list-params-state-DDpRrUTY.js} +1 -1
  63. package/dist/cjs/{payout.service-BAturpCC.js → payout.service-CIzggNLL.js} +2 -2
  64. package/dist/cjs/{payouts-list-params-state-vGJZ6Oe2.js → payouts-list-params-state-DDpRrUTY.js} +1 -1
  65. package/dist/cjs/{payouts-status-BKO9VMJ_.js → payouts-status-DVU5138C.js} +2 -2
  66. package/dist/cjs/{plaid.service-DJ42fz7B.js → plaid.service-jphsDR0Z.js} +2 -2
  67. package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
  68. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  69. package/dist/cjs/{terminal-orders-list-params-state-vGJZ6Oe2.js → terminal-orders-list-params-state-DDpRrUTY.js} +1 -1
  70. package/dist/cjs/{terminal.service-C4ksBqBo.js → terminal.service-ZyT05wTw.js} +2 -2
  71. package/dist/cjs/terminals-list-params-state-DDpRrUTY.js +22 -0
  72. package/dist/cjs/{utils-8zgGi717.js → utils-WrOn06xB.js} +1 -1
  73. package/dist/cjs/webcomponents.cjs.js +1 -1
  74. package/dist/collection/api/ComponentError.js +2 -0
  75. package/dist/collection/collection-manifest.json +2 -2
  76. package/dist/collection/components/checkout/bank-account-form/bank-account-form-skeleton.js +1 -5
  77. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +93 -19
  78. package/dist/collection/components/checkout/card-form/card-form-skeleton.js +1 -5
  79. package/dist/collection/components/checkout/card-form/card-form.js +96 -19
  80. package/dist/collection/components/checkout/justifi-checkout.js +2 -7
  81. package/dist/collection/components/checkout/test/use-bridged-fake-timers.js +14 -0
  82. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  83. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +2 -2
  84. package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
  85. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  86. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  87. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  88. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  89. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  90. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  91. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  92. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  93. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  94. package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
  95. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  96. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +27 -9
  97. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +1 -8
  98. package/dist/collection/components/modular-checkout/sub-components/justifi-sezzle-payment-method.js +12 -10
  99. package/dist/collection/components/refund-payment/justifi-refund-payment.js +2 -2
  100. package/dist/collection/store/checkout.store.js +17 -3
  101. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  102. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  103. package/dist/collection/ui-components/form/iframe-input.js +26 -3
  104. package/dist/docs.json +100 -18
  105. package/dist/esm/{Analytics-WT1A3bAb.js → Analytics-YJZMjYtq.js} +4 -4
  106. package/dist/esm/{Api-DoxYyzWs.js → Api-od4ybwHR.js} +2 -2
  107. package/dist/esm/{Business-BcNb9bVO.js → Business-DaDqgDrb.js} +1 -1
  108. package/dist/esm/{Plaid-D389VmvK.js → Plaid-DJ-4YL0_.js} +2 -0
  109. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  110. package/dist/esm/additional-questions-form-step_15.entry.js +19 -19
  111. package/dist/esm/{additional-questions_5.entry.js → additional-questions_4.entry.js} +5 -20
  112. package/dist/esm/additional-statement_8.entry.js +9 -9
  113. package/dist/esm/{badge-Dlcl9qdm.js → badge-B7QMpafx.js} +1 -1
  114. package/dist/esm/bank-account-billing-form-simple_4.entry.js +8 -8
  115. package/dist/esm/bank-account-document-form-inputs.entry.js +4 -4
  116. package/dist/esm/bank-account-form.entry.js +80 -30
  117. package/dist/esm/bank-account-read-only-value.entry.js +1 -1
  118. package/dist/esm/{business-form-options-DXjZp4Rl.js → business-form-options-BxVQL9ar.js} +1 -1
  119. package/dist/esm/{business-identity-schema-CXfLi-Wi.js → business-identity-schema-BkmRlnQo.js} +3 -3
  120. package/dist/esm/{business.service-DhBcj7ui.js → business.service-BM14Brj6.js} +3 -3
  121. package/dist/esm/{button-BvzOzV4l.js → button-CBzHAOFW.js} +1 -1
  122. package/dist/esm/card-form.entry.js +82 -29
  123. package/dist/esm/{check-pkg-version-BL_f_mbi.js → check-pkg-version-DtP8CVbU.js} +1 -1
  124. package/dist/esm/{checkout-actions-Bmn6v-SS.js → checkout-actions-DhL8YxrK.js} +2 -2
  125. package/dist/esm/{checkout.service-NUZlIPnJ.js → checkout.service-B8kSQSsn.js} +3 -3
  126. package/dist/esm/{checkout.store-DibfdUMm.js → checkout.store-B6amfNq_.js} +18 -4
  127. package/dist/esm/{checkouts-list-params-state-CiGfmyWW.js → checkouts-list-params-state-DfRLZrOO.js} +1 -1
  128. package/dist/esm/{config-state-kKn89dp1.js → config-state-BKOsYBXZ.js} +1 -1
  129. package/dist/esm/{country-config-CEJVOOGe.js → country-config-CJwnhkdq.js} +1 -1
  130. package/dist/esm/custom-popper_2.entry.js +1 -1
  131. package/dist/esm/dispute-notification_2.entry.js +16 -16
  132. package/dist/esm/{event-types-CXLixpiw.js → event-types-DL21cZd2.js} +3 -3
  133. package/dist/esm/form-address-fields_3.entry.js +4 -4
  134. package/dist/esm/{hidden-input_2.entry.js → form-alert_3.entry.js} +29 -8
  135. package/dist/esm/form-control-checkbox.entry.js +5 -5
  136. package/dist/esm/form-control-date.entry.js +2 -2
  137. package/dist/esm/{form-control-error-text-Di9QePY5.js → form-control-error-text-FyanxO4T.js} +1 -1
  138. package/dist/esm/form-control-file-v2_2.entry.js +2 -2
  139. package/dist/esm/form-control-file.entry.js +2 -2
  140. package/dist/esm/{form-control-help-text-DGMpMuAm.js → form-control-help-text-DxvEdU36.js} +1 -1
  141. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  142. package/dist/esm/form-control-monetary.entry.js +3 -3
  143. package/dist/esm/form-control-number_2.entry.js +7 -7
  144. package/dist/esm/form-control-radio.entry.js +1 -1
  145. package/dist/esm/form-control-select_2.entry.js +4 -4
  146. package/dist/esm/{get-business-CDr7VlTq.js → get-business-BSyOONF0.js} +3 -3
  147. package/dist/esm/{get-payment-details-CpM_upcS.js → get-payment-details-CoGzqJ6o.js} +4 -4
  148. package/dist/esm/{get-subaccounts-Dnf1EKn1.js → get-subaccounts-yZP4GBHd.js} +5 -5
  149. package/dist/esm/{header-1-evYxFIGN.js → header-1-BI0o3rMW.js} +1 -1
  150. package/dist/esm/{header-3-BUDap2xY.js → header-3-DNqRk_HO.js} +1 -1
  151. package/dist/esm/{index-cDVGjRkU.js → index-3wWWWrhn.js} +21 -15
  152. package/dist/esm/{input-handlers-1lVyzImK.js → input-handlers-Dfuc6aDW.js} +1 -1
  153. package/dist/esm/{insurance-state-C5OZqDCT.js → insurance-state-DM0VaTpH.js} +2 -2
  154. package/dist/esm/internal-button.entry.js +2 -2
  155. package/dist/esm/justifi-apple-pay_11.entry.js +57 -43
  156. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +8 -8
  157. package/dist/esm/justifi-bank-account-form.entry.js +8 -8
  158. package/dist/esm/justifi-business-details.entry.js +14 -14
  159. package/dist/esm/justifi-business-form.entry.js +19 -19
  160. package/dist/esm/justifi-card-form.entry.js +8 -8
  161. package/dist/esm/justifi-checkout-qr-code.entry.js +8 -8
  162. package/dist/esm/justifi-checkout.entry.js +12 -17
  163. package/dist/esm/justifi-checkouts-list-filters.entry.js +8 -8
  164. package/dist/esm/justifi-checkouts-list.entry.js +18 -18
  165. package/dist/esm/justifi-config-provider.entry.js +2 -2
  166. package/dist/esm/justifi-details.entry.js +2 -2
  167. package/dist/esm/justifi-dispute-management.entry.js +11 -11
  168. package/dist/esm/justifi-gross-payment-chart.entry.js +12 -12
  169. package/dist/esm/justifi-order-terminals.entry.js +14 -14
  170. package/dist/esm/justifi-payment-details.entry.js +16 -16
  171. package/dist/esm/justifi-payment-provisioning.entry.js +15 -15
  172. package/dist/esm/justifi-payment-transactions-list.entry.js +13 -13
  173. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  174. package/dist/esm/justifi-payments-list.entry.js +16 -16
  175. package/dist/esm/justifi-payout-details.entry.js +16 -16
  176. package/dist/esm/justifi-payout-transactions-list.entry.js +13 -13
  177. package/dist/esm/justifi-payouts-list-filters.entry.js +6 -6
  178. package/dist/esm/justifi-payouts-list.entry.js +17 -17
  179. package/dist/esm/justifi-qr-terminal.entry.js +11 -11
  180. package/dist/esm/justifi-refund-payment.entry.js +16 -16
  181. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  182. package/dist/esm/justifi-season-interruption-insurance.entry.js +13 -13
  183. package/dist/esm/justifi-skeleton.entry.js +2 -2
  184. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +6 -6
  185. package/dist/esm/justifi-terminal-orders-list.entry.js +14 -14
  186. package/dist/esm/justifi-terminals-list-filters.entry.js +6 -6
  187. package/dist/esm/justifi-terminals-list.entry.js +16 -16
  188. package/dist/esm/loader.js +1 -1
  189. package/dist/esm/{package-CrTWHVKE.js → package-B_uQqefL.js} +1 -1
  190. package/dist/esm/pagination-menu.entry.js +1 -1
  191. package/dist/esm/{parts-CPKMvyV_.js → parts-Bu7gdOaV.js} +1 -1
  192. package/dist/esm/payment-method-option.entry.js +1 -1
  193. package/dist/esm/{payment-provisioning-actions-BJYx_JgF.js → payment-provisioning-actions-DJKGndr3.js} +2 -2
  194. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +3 -3
  195. package/dist/esm/{payment-provisioning-loading-Dve2xQA4.js → payment-provisioning-loading-BxHRVFDi.js} +1 -1
  196. package/dist/esm/{payment.service-UBuViC7e.js → payment.service-S0sEKmRn.js} +3 -3
  197. package/dist/esm/{payments-list-params-state-CiGfmyWW.js → payments-list-params-state-DfRLZrOO.js} +1 -1
  198. package/dist/esm/{payments-status-BlVUt4C1.js → payments-status-If2fvwlv.js} +1 -1
  199. package/dist/esm/{payout.service-CV2uYm-0.js → payout.service-ZABnlfYv.js} +3 -3
  200. package/dist/esm/{payouts-list-params-state-CiGfmyWW.js → payouts-list-params-state-DfRLZrOO.js} +1 -1
  201. package/dist/esm/{payouts-status-BnB9006T.js → payouts-status-C0nijel1.js} +3 -3
  202. package/dist/esm/{plaid.service-B0mFmUgQ.js → plaid.service-qxtz2sWM.js} +3 -3
  203. package/dist/esm/radio-list-item.entry.js +1 -1
  204. package/dist/esm/save-new-payment-method.entry.js +2 -2
  205. package/dist/esm/{schema-validations-DJilm-Nh.js → schema-validations-8dbMCACI.js} +3 -3
  206. package/dist/esm/{skeleton-BEHo2ypu.js → skeleton-dbktEkFS.js} +1 -1
  207. package/dist/esm/{spinner-DIiQZd6_.js → spinner-EZmqiSfd.js} +1 -1
  208. package/dist/esm/{table-DqGfsdys.js → table-CD17nv9n.js} +2 -2
  209. package/dist/esm/table-filters-menu.entry.js +3 -3
  210. package/dist/esm/{terminal-orders-list-params-state-CiGfmyWW.js → terminal-orders-list-params-state-DfRLZrOO.js} +1 -1
  211. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  212. package/dist/esm/{terminal.service-ClKFvbFw.js → terminal.service-CB2kRLwO.js} +3 -3
  213. package/dist/esm/terminals-list-params-state-DfRLZrOO.js +16 -0
  214. package/dist/esm/{utils-CX6puxwf.js → utils-BFduyAPr.js} +1 -1
  215. package/dist/esm/{utils-BdBZQD1G.js → utils-D6LKoG0M.js} +1 -1
  216. package/dist/esm/webcomponents.js +1 -1
  217. package/dist/module/Plaid.js +2 -0
  218. package/dist/module/additional-statement2.js +1 -1
  219. package/dist/module/bank-account-form2.js +84 -25
  220. package/dist/module/business-bank-account-form-step2.js +1 -1
  221. package/dist/module/business-core-info-form-step2.js +1 -1
  222. package/dist/module/business-core-info2.js +1 -1
  223. package/dist/module/business-documents-on-file2.js +1 -1
  224. package/dist/module/business-owners-form-step2.js +1 -1
  225. package/dist/module/business-representative-form-inputs2.js +1 -1
  226. package/dist/module/business-representative2.js +1 -1
  227. package/dist/module/button.js +1 -1
  228. package/dist/module/cancellation-policy2.js +1 -1
  229. package/dist/module/card-form2.js +87 -25
  230. package/dist/module/checkout.store.js +17 -3
  231. package/dist/module/customer-details2.js +1 -1
  232. package/dist/module/dispute-notification2.js +3 -3
  233. package/dist/module/dispute-response2.js +2 -2
  234. package/dist/module/document-upload-list2.js +1 -1
  235. package/dist/module/duplicate-charge2.js +1 -1
  236. package/dist/module/electronic-evidence2.js +1 -1
  237. package/dist/module/form-alert2.js +1 -1
  238. package/dist/module/form-control-checkbox2.js +3 -3
  239. package/dist/module/form-control-select2.js +2 -2
  240. package/dist/module/header-3.js +1 -1
  241. package/dist/module/iframe-input2.js +11 -4
  242. package/dist/module/index3.js +21 -15
  243. package/dist/module/justifi-apple-pay2.js +1 -8
  244. package/dist/module/justifi-bank-account-form.js +8 -2
  245. package/dist/module/justifi-card-form.js +8 -2
  246. package/dist/module/justifi-checkout.js +22 -21
  247. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  248. package/dist/module/justifi-checkouts-list.js +3 -3
  249. package/dist/module/justifi-dispute-management.js +1 -1
  250. package/dist/module/justifi-modular-checkout2.js +27 -9
  251. package/dist/module/justifi-order-terminals.js +1 -1
  252. package/dist/module/justifi-payment-transactions-list.js +1 -1
  253. package/dist/module/justifi-payments-list.js +1 -1
  254. package/dist/module/justifi-payout-transactions-list.js +1 -1
  255. package/dist/module/justifi-payouts-list.js +1 -1
  256. package/dist/module/justifi-refund-payment.js +2 -2
  257. package/dist/module/justifi-sezzle-payment-method2.js +12 -10
  258. package/dist/module/justifi-terminal-orders-list.js +1 -1
  259. package/dist/module/justifi-terminals-list.js +1 -1
  260. package/dist/module/justifi-tokenize-payment-method2.js +20 -14
  261. package/dist/module/owner-form-inputs2.js +1 -1
  262. package/dist/module/owner-form2.js +1 -1
  263. package/dist/module/package.js +1 -1
  264. package/dist/module/parts.js +1 -1
  265. package/dist/module/plaid-verification2.js +1 -1
  266. package/dist/module/product-or-service2.js +1 -1
  267. package/dist/module/refund-policy2.js +1 -1
  268. package/dist/module/shipping-details2.js +1 -1
  269. package/dist/module/table-filters-menu2.js +1 -1
  270. package/dist/module/table.js +1 -1
  271. package/dist/module/terminal-quantity-selector2.js +1 -1
  272. package/dist/types/api/ComponentError.d.ts +2 -0
  273. package/dist/types/components/checkout/bank-account-form/bank-account-form-skeleton.d.ts +1 -4
  274. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +11 -1
  275. package/dist/types/components/checkout/card-form/card-form-skeleton.d.ts +1 -4
  276. package/dist/types/components/checkout/card-form/card-form.d.ts +12 -2
  277. package/dist/types/components/checkout/test/use-bridged-fake-timers.d.ts +1 -0
  278. package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +1 -0
  279. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +0 -1
  280. package/dist/types/components/modular-checkout/sub-components/justifi-sezzle-payment-method.d.ts +1 -1
  281. package/dist/types/components.d.ts +33 -0
  282. package/dist/types/store/checkout.store.d.ts +1 -3
  283. package/dist/types/ui-components/form/iframe-input.d.ts +2 -0
  284. package/dist/webcomponents/{p-33070a71.entry.js → p-005d353c.entry.js} +1 -1
  285. package/dist/webcomponents/p-041a22dd.entry.js +1 -0
  286. package/dist/webcomponents/{p-ec6978cb.entry.js → p-0464be7b.entry.js} +1 -1
  287. package/dist/webcomponents/p-1208da06.entry.js +1 -0
  288. package/dist/webcomponents/p-13cbf119.entry.js +1 -0
  289. package/dist/webcomponents/p-1491320a.entry.js +1 -0
  290. package/dist/webcomponents/{p-1cff91b7.entry.js → p-15934f30.entry.js} +1 -1
  291. package/dist/webcomponents/{p-b46f303d.entry.js → p-16471ba1.entry.js} +1 -1
  292. package/dist/webcomponents/{p-0a4fcb15.entry.js → p-1cdbe8c1.entry.js} +1 -1
  293. package/dist/webcomponents/{p-debc4768.entry.js → p-2139497d.entry.js} +1 -1
  294. package/dist/webcomponents/p-348decec.entry.js +1 -0
  295. package/dist/webcomponents/{p-8fd18ce2.entry.js → p-36d7033b.entry.js} +1 -1
  296. package/dist/webcomponents/p-3734d15d.entry.js +1 -0
  297. package/dist/webcomponents/p-38bdce5d.entry.js +1 -0
  298. package/dist/webcomponents/{p-dc0cc4aa.entry.js → p-3ef039ec.entry.js} +1 -1
  299. package/dist/webcomponents/{p-65c3288f.entry.js → p-465e9e1c.entry.js} +1 -1
  300. package/dist/webcomponents/p-488dc072.entry.js +1 -0
  301. package/dist/webcomponents/{p-b03e361e.entry.js → p-49e40ebe.entry.js} +1 -1
  302. package/dist/webcomponents/{p-5a58f606.entry.js → p-4d60d249.entry.js} +1 -1
  303. package/dist/webcomponents/{p-2599e169.entry.js → p-4d747ce5.entry.js} +1 -1
  304. package/dist/webcomponents/{p-2dfdecbb.entry.js → p-558677a7.entry.js} +1 -1
  305. package/dist/webcomponents/{p-f953fd60.entry.js → p-568b81a2.entry.js} +1 -1
  306. package/dist/webcomponents/{p-e704d652.entry.js → p-5f57c81c.entry.js} +1 -1
  307. package/dist/webcomponents/p-5f7137db.entry.js +1 -0
  308. package/dist/webcomponents/{p-73deced9.entry.js → p-61eae8cd.entry.js} +1 -1
  309. package/dist/webcomponents/{p-2ba48cf1.entry.js → p-6ab4c4e0.entry.js} +1 -1
  310. package/dist/webcomponents/p-6f34fa90.entry.js +1 -0
  311. package/dist/webcomponents/{p-e020f003.entry.js → p-6f88f836.entry.js} +1 -1
  312. package/dist/webcomponents/{p-9399f4f1.entry.js → p-715df6a8.entry.js} +1 -1
  313. package/dist/webcomponents/p-760f423b.entry.js +1 -0
  314. package/dist/webcomponents/{p-1e3f096f.entry.js → p-79fd9000.entry.js} +1 -1
  315. package/dist/webcomponents/{p-52b25165.entry.js → p-836c4136.entry.js} +1 -1
  316. package/dist/webcomponents/{p-396ed502.entry.js → p-88a3c0cf.entry.js} +3 -3
  317. package/dist/webcomponents/p-8fO8CrtQ.js +1 -0
  318. package/dist/webcomponents/{p-6f5d9579.entry.js → p-99d17144.entry.js} +1 -1
  319. package/dist/webcomponents/p-9bd0bb34.entry.js +1 -0
  320. package/dist/webcomponents/p-9c506058.entry.js +1 -0
  321. package/dist/webcomponents/p-9e9dcc20.entry.js +1 -0
  322. package/dist/webcomponents/p-B-Ik8b-s.js +1 -0
  323. package/dist/webcomponents/{p-DVJaoI_m.js → p-B4vLfYnZ.js} +1 -1
  324. package/dist/webcomponents/p-BAB1lPu0.js +1 -0
  325. package/dist/webcomponents/{p-Sr5nnVDM.js → p-BEmZOGbG.js} +1 -1
  326. package/dist/webcomponents/p-BLhz_ggG.js +1 -0
  327. package/dist/webcomponents/p-BTuqVZ6O.js +1 -0
  328. package/dist/webcomponents/p-B_uQqefL.js +1 -0
  329. package/dist/webcomponents/{p-Cu7hgXL1.js → p-Bh6Q8AqQ.js} +1 -1
  330. package/dist/webcomponents/{p-D1_eip6x.js → p-Bi_GCMx0.js} +1 -1
  331. package/dist/webcomponents/p-BjNqkh37.js +1 -0
  332. package/dist/webcomponents/{p-C7lKXwUt.js → p-BnQkpNjd.js} +1 -1
  333. package/dist/webcomponents/{p-CPKMvyV_.js → p-Bu7gdOaV.js} +1 -1
  334. package/dist/webcomponents/p-BzjgvHHT.js +1 -0
  335. package/dist/webcomponents/p-C1PEDhkE.js +1 -0
  336. package/dist/webcomponents/{p-CB69z5Eh.js → p-C2l2dxvr.js} +1 -1
  337. package/dist/webcomponents/{p-BGD3uog3.js → p-C3geClRX.js} +1 -1
  338. package/dist/webcomponents/p-CArdj6i_.js +1 -0
  339. package/dist/webcomponents/{p-DfL-8Yvt.js → p-CELpJl4Y.js} +1 -1
  340. package/dist/webcomponents/p-CGnRD4wF.js +1 -0
  341. package/dist/webcomponents/p-CLZcevBz.js +1 -0
  342. package/dist/webcomponents/p-CMvr3y5s.js +1 -0
  343. package/dist/webcomponents/{p-ECg6MX8R.js → p-CT8oFJ_1.js} +1 -1
  344. package/dist/webcomponents/{p-CHo7TfsM.js → p-CU2Dwa94.js} +1 -1
  345. package/dist/webcomponents/p-CZk3i5Tu.js +1 -0
  346. package/dist/webcomponents/p-CaLXuYmg.js +1 -0
  347. package/dist/webcomponents/{p-DPA5TKvQ.js → p-CawcnSoV.js} +1 -1
  348. package/dist/webcomponents/p-CbyGKcz_.js +1 -0
  349. package/dist/webcomponents/{p-BS8j0DWf.js → p-ChiCyW0k.js} +1 -1
  350. package/dist/webcomponents/{p-B9fbqJSf.js → p-Co3Rtlnu.js} +1 -1
  351. package/dist/webcomponents/p-D1H6VUbM.js +1 -0
  352. package/dist/webcomponents/p-DD9-ceDZ.js +1 -0
  353. package/dist/webcomponents/p-DNuxxP2B.js +1 -0
  354. package/dist/webcomponents/p-DNxN6bjU.js +1 -0
  355. package/dist/webcomponents/p-DUtecvro.js +1 -0
  356. package/dist/webcomponents/{p-BICxxa69.js → p-DZr0wLGh.js} +1 -1
  357. package/dist/webcomponents/{p-BcNb9bVO.js → p-DaDqgDrb.js} +1 -1
  358. package/dist/webcomponents/p-DgTOxu8x.js +1 -0
  359. package/dist/webcomponents/p-Dl0CAW76.js +1 -0
  360. package/dist/webcomponents/{p-DHB_XJ12.js → p-Do9dxNjh.js} +1 -1
  361. package/dist/webcomponents/{p-CHw7tICr.js → p-Dz8KJn2G.js} +1 -1
  362. package/dist/webcomponents/p-MPer3Rw7.js +1 -0
  363. package/dist/webcomponents/{p-BBSnDYJw.js → p-OReJ-ZQb.js} +1 -1
  364. package/dist/webcomponents/{p-76ded81e.entry.js → p-a14d3d7d.entry.js} +1 -1
  365. package/dist/webcomponents/p-a1b7e2fc.entry.js +1 -0
  366. package/dist/webcomponents/{p-49c13952.entry.js → p-af0c6421.entry.js} +1 -1
  367. package/dist/webcomponents/{p-528eef2d.entry.js → p-b17fabdc.entry.js} +1 -1
  368. package/dist/webcomponents/{p-db09f306.entry.js → p-b2129553.entry.js} +1 -1
  369. package/dist/webcomponents/{p-605bd107.entry.js → p-b39dd96b.entry.js} +1 -1
  370. package/dist/webcomponents/{p-06d3d9b6.entry.js → p-b6c112cd.entry.js} +1 -1
  371. package/dist/webcomponents/{p-e1e91bbb.entry.js → p-b8d46fc5.entry.js} +1 -1
  372. package/dist/webcomponents/{p-53d775b9.entry.js → p-b945fa49.entry.js} +1 -1
  373. package/dist/webcomponents/{p-75b5d6ac.entry.js → p-b9b5d046.entry.js} +1 -1
  374. package/dist/webcomponents/{p-8476b45a.entry.js → p-bbd403f5.entry.js} +1 -1
  375. package/dist/webcomponents/p-bc435cae.entry.js +1 -0
  376. package/dist/webcomponents/p-bf3866b3.entry.js +1 -0
  377. package/dist/webcomponents/p-c4799285.entry.js +1 -0
  378. package/dist/webcomponents/p-cb5d2198.entry.js +1 -0
  379. package/dist/webcomponents/p-cb977890.entry.js +1 -0
  380. package/dist/webcomponents/p-d4208a51.entry.js +1 -0
  381. package/dist/webcomponents/{p-58e8d646.entry.js → p-d6122124.entry.js} +1 -1
  382. package/dist/webcomponents/{p-14a03ad0.entry.js → p-de8c6cd4.entry.js} +1 -1
  383. package/dist/webcomponents/p-eBK-iWrz.js +1 -0
  384. package/dist/webcomponents/{p-26fe714a.entry.js → p-ead927fb.entry.js} +1 -1
  385. package/dist/webcomponents/p-ecaec672.entry.js +1 -0
  386. package/dist/webcomponents/p-ecbed9bc.entry.js +1 -0
  387. package/dist/webcomponents/p-ee108873.entry.js +1 -0
  388. package/dist/webcomponents/p-f0083ace.entry.js +1 -0
  389. package/dist/webcomponents/{p-c1209de0.entry.js → p-f1592a71.entry.js} +1 -1
  390. package/dist/webcomponents/{p-eccc1fc6.entry.js → p-f6941969.entry.js} +1 -1
  391. package/dist/webcomponents/{p-CvFpXdzD.js → p-gAlfGUcr.js} +1 -1
  392. package/dist/webcomponents/p-mjjqv7AN.js +1 -0
  393. package/dist/webcomponents/p-x2oNTAWh.js +1 -0
  394. package/dist/webcomponents/webcomponents.esm.js +1 -1
  395. package/package.json +1 -1
  396. package/dist/cjs/terminals-list-params-state-vGJZ6Oe2.js +0 -22
  397. package/dist/esm/terminals-list-params-state-CiGfmyWW.js +0 -16
  398. package/dist/webcomponents/p-0f2a1ac9.entry.js +0 -1
  399. package/dist/webcomponents/p-1b51dea9.entry.js +0 -1
  400. package/dist/webcomponents/p-1de248b1.entry.js +0 -1
  401. package/dist/webcomponents/p-25215ee7.entry.js +0 -1
  402. package/dist/webcomponents/p-67a444f7.entry.js +0 -1
  403. package/dist/webcomponents/p-6fe329d6.entry.js +0 -1
  404. package/dist/webcomponents/p-7d61e758.entry.js +0 -1
  405. package/dist/webcomponents/p-7dfe47bf.entry.js +0 -1
  406. package/dist/webcomponents/p-86e0ac37.entry.js +0 -1
  407. package/dist/webcomponents/p-8fabef40.entry.js +0 -1
  408. package/dist/webcomponents/p-925ca097.entry.js +0 -1
  409. package/dist/webcomponents/p-9735a37b.entry.js +0 -1
  410. package/dist/webcomponents/p-9cc293aa.entry.js +0 -1
  411. package/dist/webcomponents/p-AMVhBsGv.js +0 -1
  412. package/dist/webcomponents/p-AyLerOda.js +0 -1
  413. package/dist/webcomponents/p-B5gBiARs.js +0 -1
  414. package/dist/webcomponents/p-BPTtWj7E.js +0 -1
  415. package/dist/webcomponents/p-B_i1R4O_.js +0 -1
  416. package/dist/webcomponents/p-BmrZbyuT.js +0 -1
  417. package/dist/webcomponents/p-BwPS3971.js +0 -1
  418. package/dist/webcomponents/p-C-Jgmek8.js +0 -1
  419. package/dist/webcomponents/p-C6o0liMT.js +0 -1
  420. package/dist/webcomponents/p-CXIRxyAr.js +0 -1
  421. package/dist/webcomponents/p-CXZRiaUw.js +0 -1
  422. package/dist/webcomponents/p-Ce_W43gc.js +0 -1
  423. package/dist/webcomponents/p-CpGEMRkH.js +0 -1
  424. package/dist/webcomponents/p-CqiVXthx.js +0 -1
  425. package/dist/webcomponents/p-CrTWHVKE.js +0 -1
  426. package/dist/webcomponents/p-D8GTwl9v.js +0 -1
  427. package/dist/webcomponents/p-DMB1dln7.js +0 -1
  428. package/dist/webcomponents/p-DSclFZ32.js +0 -1
  429. package/dist/webcomponents/p-DYHjzFnJ.js +0 -1
  430. package/dist/webcomponents/p-Dm07nLGs.js +0 -1
  431. package/dist/webcomponents/p-Dsm1jN-a.js +0 -1
  432. package/dist/webcomponents/p-Dw63wyhO.js +0 -1
  433. package/dist/webcomponents/p-DyPk4BJt.js +0 -1
  434. package/dist/webcomponents/p-Xf0jRfzp.js +0 -1
  435. package/dist/webcomponents/p-a55fe1c2.entry.js +0 -1
  436. package/dist/webcomponents/p-a7c7898d.entry.js +0 -1
  437. package/dist/webcomponents/p-aa3f1d88.entry.js +0 -1
  438. package/dist/webcomponents/p-b2c4f61b.entry.js +0 -1
  439. package/dist/webcomponents/p-b8fcb871.entry.js +0 -1
  440. package/dist/webcomponents/p-c1ada405.entry.js +0 -1
  441. package/dist/webcomponents/p-ca9886fd.entry.js +0 -1
  442. package/dist/webcomponents/p-d2c8cc7d.entry.js +0 -1
  443. package/dist/webcomponents/p-e3021e22.entry.js +0 -1
  444. package/dist/webcomponents/p-e7cfee5a.entry.js +0 -1
  445. package/dist/webcomponents/p-f8734760.entry.js +0 -1
  446. package/dist/webcomponents/p-fd9b4f83.entry.js +0 -1
  447. package/dist/webcomponents/p-jIDKmNHy.js +0 -1
  448. package/dist/webcomponents/p-rpFC83GL.js +0 -1
  449. package/dist/webcomponents/p-uZ5KAseb.js +0 -1
@@ -1 +1 @@
1
- import{h as t,r as s,c as i}from"./p-CV0Pyo1O.js";import{A as e}from"./p-DfL-8Yvt.js";import{C as r,b as o}from"./p-AyLerOda.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as a,a as n}from"./p-CXZRiaUw.js";import{J as c}from"./p-C7lKXwUt.js";import{c as l}from"./p-BGD3uog3.js";import{c as h}from"./p-DyPk4BJt.js";import{p as d,f as p,r as u,i as v}from"./p-Ds_P-dB8.js";import{v as m,i as y,a as f,H as j}from"./p-C-Jgmek8.js";import{t as _,z as g}from"./p-CPKMvyV_.js";import{S as b}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as k}from"./p-uZ5KAseb.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-CrTWHVKE.js";import"./p-DkoufM1t.js";import"./p-HXpYMWUU.js";const w=e();class C{async fetchQuote(t,s){return w.post({endpoint:"insurance/quotes",body:s,authToken:t})}async toggleCoverage(t,s,i){return w.post({endpoint:`insurance/quotes/${s}/toggle`,body:i,authToken:t})}}const T=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(k,{width:"35%",height:"30px"})),t("div",{class:"col-12"},t(k,{width:"70%"})),t("div",{class:"col-12"},t(k,{width:"40%"})),t("div",{class:"col-12"},t(k,{width:"40%"})),t("div",{class:"col-12"},t(k,{width:"100%"})),t("div",{class:"col-12"},t(k,{width:"80%"}))),H=class{constructor(t){s(this,t),this.insuranceUpdated=i(this,"insurance-updated",7),this.errorEvent=i(this,"error-event",7),this.isLoading=!0}async validate(){return m()}processHTMLContent(t){return d(t,[t=>u(t,"style"),t=>v(t,"a","part",_),t=>v(t,"p","part",_)])}componentWillLoad(){l(),this.analytics=new c(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){const t=this.authToken||h.authToken;if(!t)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const s={authToken:t,service:new C};this.getQuote=(({authToken:t,service:s})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await s.fetchQuote(t,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(t){const s=a(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})(s),this.toggleCoverage=(({authToken:t,service:s})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await s.toggleCoverage(t,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(t){const s=a(null==t?void 0:t.code);return c({error:t.message||t,code:s,severity:r.ERROR})}})(s)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:t})=>{this.quote=t,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[t.policy_type]=t.accepted,this.isLoading=!1},onError:({error:t,code:s,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}onChangeHandler(t,s){this.accepted=s,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}get error(){var t;return f[null===(t=this.quote)||void 0===t?void 0:t.policy_type]}render(){var s,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):t(b,null,this.isLoading?t(T,null):t("div",null,t(j,{text:null===(s=this.quote)||void 0===s?void 0:s.product.title,class:"fs-5 fw-bold pb-3"}),t("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),t("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:g},"Please select an option"),t("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{H as justifi_season_interruption_insurance}
1
+ import{h as t,r as s,c as i}from"./p-CV0Pyo1O.js";import{A as e}from"./p-CELpJl4Y.js";import{C as r,b as o}from"./p-8fO8CrtQ.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import{g as a,a as n}from"./p-D1H6VUbM.js";import{J as c}from"./p-BnQkpNjd.js";import{c as l}from"./p-C3geClRX.js";import{c as h}from"./p-DNxN6bjU.js";import{p as d,f as p,r as u,i as v}from"./p-Ds_P-dB8.js";import{v as m,i as f,a as y,H as j}from"./p-x2oNTAWh.js";import{t as g,z as _}from"./p-Bu7gdOaV.js";import{S as b}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as k}from"./p-eBK-iWrz.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-B_uQqefL.js";import"./p-DkoufM1t.js";import"./p-HXpYMWUU.js";const C=e();class w{async fetchQuote(t,s){return C.post({endpoint:"insurance/quotes",body:s,authToken:t})}async toggleCoverage(t,s,i){return C.post({endpoint:`insurance/quotes/${s}/toggle`,body:i,authToken:t})}}const T=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(k,{width:"35%",height:"30px"})),t("div",{class:"col-12"},t(k,{width:"70%"})),t("div",{class:"col-12"},t(k,{width:"40%"})),t("div",{class:"col-12"},t(k,{width:"40%"})),t("div",{class:"col-12"},t(k,{width:"100%"})),t("div",{class:"col-12"},t(k,{width:"80%"}))),D=class{constructor(t){s(this,t),this.insuranceUpdated=i(this,"insurance-updated",7),this.errorEvent=i(this,"error-event",7),this.isLoading=!0}async validate(){return m()}processHTMLContent(t){return d(t,[t=>u(t,"style"),t=>v(t,"a","part",g),t=>v(t,"p","part",g)])}componentWillLoad(){l(),this.analytics=new c(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){const t=this.authToken||h.authToken;if(!t)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const s={authToken:t,service:new w};this.getQuote=(({authToken:t,service:s})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await s.fetchQuote(t,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(t){const s=a(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})(s),this.toggleCoverage=(({authToken:t,service:s})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await s.toggleCoverage(t,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(t){const s=a(null==t?void 0:t.code);return c({error:t.message||t,code:s,severity:r.ERROR})}})(s)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:t})=>{this.quote=t,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),f[t.policy_type]=t.accepted,this.isLoading=!1},onError:({error:t,code:s,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}onChangeHandler(t,s){this.accepted=s,y[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),f[this.quote.policy_type]=this.accepted},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}get error(){var t;return y[null===(t=this.quote)||void 0===t?void 0:t.policy_type]}render(){var s,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):t(b,null,this.isLoading?t(T,null):t("div",null,t(j,{text:null===(s=this.quote)||void 0===s?void 0:s.product.title,class:"fs-5 fw-bold pb-3"}),t("small",{part:g,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),t("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:_},"Please select an option"),t("small",{part:g,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{D as justifi_season_interruption_insurance}
@@ -1 +1 @@
1
- import{h as t,r as s,c as e}from"./p-CV0Pyo1O.js";import{k as a,C as i,b as o}from"./p-AyLerOda.js";import{J as r}from"./p-C7lKXwUt.js";import{c as h}from"./p-BGD3uog3.js";import{P as c}from"./p-Sr5nnVDM.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as p,a as d}from"./p-CXZRiaUw.js";import{M as u,m as f}from"./p-B9fbqJSf.js";import{m,S as l}from"./p-B_i1R4O_.js";import{S as b}from"./p-05AWudQe.js";import{T as y,a as v,b as g,c as C,d as _,e as j,f as w,g as k,h as S,i as T,j as P,k as O,l as A}from"./p-BICxxa69.js";import{T as D}from"./p-CZfYo5-1.js";import{a as V}from"./p-Ds_P-dB8.js";import{a6 as I,a7 as E}from"./p-CPKMvyV_.js";import{o as B,g as x}from"./p-AMVhBsGv.js";import"./p-CrTWHVKE.js";import"./p-DfL-8Yvt.js";import"./p-D8GTwl9v.js";import"./p-CHw7tICr.js";import"./p-CqiVXthx.js";const M={created_at:()=>t("th",{part:I,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:I,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:I,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:I,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:I,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:I,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:I,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:I,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:I,scope:"col",title:"Export CSV"})},G=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event",7),this.clickEvent=e(this,"click-event",7),this.errorMessage=null,this.payouts=[],this.subAccounts=[],this.loading=!0,this.paging=n,this.pagingParams={},this.columns="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:o.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const a=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){var s;h(),this.analytics=new r(this),this.initializeGetData(),this.payoutsTable=new y(this.payouts,this.columns,M,(s=this.downloadCSV,{created_at:(s,e)=>t("td",{part:E(e)},t("div",{class:"fw-bold"},V(s.created_at,{showDisplayDate:!0}))),sub_account_name:(s,e)=>t("td",{part:E(e)},s.sub_account_name),payments_total:(s,e)=>t("td",{part:E(e)},s.formattedPaymentAmount(s.payments_total)),refunds_total:(s,e)=>t("td",{part:E(e)},s.formattedPaymentAmount(s.refunds_total)),fees_total:(s,e)=>t("td",{part:E(e)},s.formattedPaymentAmount(s.fees_total)),other_total:(s,e)=>t("td",{part:E(e)},s.formattedPaymentAmount(s.other_total)),amount:(s,e)=>t("td",{part:E(e)},s.formattedPaymentAmount(s.amount)),status:(s,e)=>t("td",{part:E(e)},u(s.status)),csv:(e,a)=>t("td",{part:E(a)},t("a",{href:"#",onClick:t=>{t.preventDefault(),s(e.id)}},"CSV"))})),this.getPayouts&&this.getSubAccounts&&this.fetchData(),B("set",(()=>{this.pagingParams={}})),B("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}updateOnPropChange(){this.fetchData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new c};this.getPayouts=(({id:t,authToken:s,service:e})=>async({params:o,onSuccess:r,onError:h})=>{var c,n;try{const u=await e.fetchPayouts(t,s,o);if(u.error)return h({error:d(u.error),code:p(null===(n=u.error)||void 0===n?void 0:n.code),severity:i.ERROR});{const t=Object.assign({},u.page_info);r({payouts:(null===(c=u.data)||void 0===c?void 0:c.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return h({error:t.message||t,code:s,severity:i.ERROR})}})(t),this.getPayoutCSV=f(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({primaryAccountId:this.accountId,authToken:this.authToken,service:new l}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get payoutParams(){const t=x();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){const t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(b,{key:"653896fabc4becf531ec119d252cbaea301a0dc6"},t(v,{key:"63787473d67118a7f092bad666c47346872a7834"},t(g,{key:"c17ecce261475c8bfe357ff30d06f189c8f96480"},t(C,{key:"cc23edeff6a1e595671b77fa51c73ff313692b16"},t(_,{key:"4ed5b5ee149538d2de60ee6e27edde55e8d11eaa"},this.payoutsTable.columnData.map((t=>t)))),t(j,{key:"a0a886e70ba99ececd78e5bc34aec065466fe6ce"},t(w,{key:"38bf9109ca73ecfd5c85529a8f7232069ffcdb00",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),t(k,{key:"6f5341305ef71f86bbf3680e2c6d0dc461f3d09f",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),t(S,{key:"bd5e8cc72b460238636546a568645c797807f2d9",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((s,e)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[e],onClick:this.rowClickHandler},s)))),this.paging&&t(P,{key:"15145b7ef9cc37a2ad70cea5698d53df069979bf"},t(O,{key:"2d4ed5a1ab5eaf0eaae0bbe35f02edf59c23b22e"},t(A,{key:"11c8505cfd97117afaf79ea68a3fb00570a9c7cb",colSpan:this.payoutsTable.columnData.length},t("pagination-menu",{key:"b8e7e29d4d932f43b3381235de57b63cc6a5283b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{G as justifi_payouts_list}
1
+ import{h as t,r as s,c as e}from"./p-CV0Pyo1O.js";import{k as a,C as i,b as o}from"./p-8fO8CrtQ.js";import{J as r}from"./p-BnQkpNjd.js";import{c as h}from"./p-C3geClRX.js";import{P as c}from"./p-BEmZOGbG.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import{g as p,a as d}from"./p-D1H6VUbM.js";import{M as u,m as f}from"./p-Co3Rtlnu.js";import{m,S as l}from"./p-BjNqkh37.js";import{S as b}from"./p-05AWudQe.js";import{T as y,a as g,b as v,c as j,d as C,e as _,f as k,g as w,h as S,i as T,j as D,k as O,l as P}from"./p-DZr0wLGh.js";import{T as A}from"./p-CZfYo5-1.js";import{a as E}from"./p-Ds_P-dB8.js";import{a6 as B,a7 as G}from"./p-Bu7gdOaV.js";import{o as I,g as L}from"./p-CGnRD4wF.js";import"./p-B_uQqefL.js";import"./p-CELpJl4Y.js";import"./p-DgTOxu8x.js";import"./p-Dz8KJn2G.js";import"./p-MPer3Rw7.js";const R={created_at:()=>t("th",{part:B,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:B,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:B,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:B,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:B,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:B,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:B,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:B,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:B,scope:"col",title:"Export CSV"})},V=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event",7),this.clickEvent=e(this,"click-event",7),this.errorMessage=null,this.payouts=[],this.subAccounts=[],this.loading=!0,this.paging=n,this.pagingParams={},this.columns="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:o.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:A.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:A.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const a=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:A.row,data:a})}}componentWillLoad(){var s;h(),this.analytics=new r(this),this.initializeGetData(),this.payoutsTable=new y(this.payouts,this.columns,R,(s=this.downloadCSV,{created_at:(s,e)=>t("td",{part:G(e)},t("div",{class:"fw-bold"},E(s.created_at,{showDisplayDate:!0}))),sub_account_name:(s,e)=>t("td",{part:G(e)},s.sub_account_name),payments_total:(s,e)=>t("td",{part:G(e)},s.formattedPaymentAmount(s.payments_total)),refunds_total:(s,e)=>t("td",{part:G(e)},s.formattedPaymentAmount(s.refunds_total)),fees_total:(s,e)=>t("td",{part:G(e)},s.formattedPaymentAmount(s.fees_total)),other_total:(s,e)=>t("td",{part:G(e)},s.formattedPaymentAmount(s.other_total)),amount:(s,e)=>t("td",{part:G(e)},s.formattedPaymentAmount(s.amount)),status:(s,e)=>t("td",{part:G(e)},u(s.status)),csv:(e,a)=>t("td",{part:G(a)},t("a",{href:"#",onClick:t=>{t.preventDefault(),s(e.id)}},"CSV"))})),this.getPayouts&&this.getSubAccounts&&this.fetchData(),I("set",(()=>{this.pagingParams={}})),I("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}updateOnPropChange(){this.fetchData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new c};this.getPayouts=(({id:t,authToken:s,service:e})=>async({params:o,onSuccess:r,onError:h})=>{var c,n;try{const u=await e.fetchPayouts(t,s,o);if(u.error)return h({error:d(u.error),code:p(null===(n=u.error)||void 0===n?void 0:n.code),severity:i.ERROR});{const t=Object.assign({},u.page_info);r({payouts:(null===(c=u.data)||void 0===c?void 0:c.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return h({error:t.message||t,code:s,severity:i.ERROR})}})(t),this.getPayoutCSV=f(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({primaryAccountId:this.accountId,authToken:this.authToken,service:new l}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get payoutParams(){const t=L();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){const t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(b,{key:"653896fabc4becf531ec119d252cbaea301a0dc6"},t(g,{key:"63787473d67118a7f092bad666c47346872a7834"},t(v,{key:"c17ecce261475c8bfe357ff30d06f189c8f96480"},t(j,{key:"cc23edeff6a1e595671b77fa51c73ff313692b16"},t(C,{key:"4ed5b5ee149538d2de60ee6e27edde55e8d11eaa"},this.payoutsTable.columnData.map((t=>t)))),t(_,{key:"a0a886e70ba99ececd78e5bc34aec065466fe6ce"},t(k,{key:"38bf9109ca73ecfd5c85529a8f7232069ffcdb00",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),t(w,{key:"6f5341305ef71f86bbf3680e2c6d0dc461f3d09f",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),t(S,{key:"bd5e8cc72b460238636546a568645c797807f2d9",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((s,e)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[e],onClick:this.rowClickHandler},s)))),this.paging&&t(D,{key:"15145b7ef9cc37a2ad70cea5698d53df069979bf"},t(O,{key:"2d4ed5a1ab5eaf0eaae0bbe35f02edf59c23b22e"},t(P,{key:"11c8505cfd97117afaf79ea68a3fb00570a9c7cb",colSpan:this.payoutsTable.columnData.length},t("pagination-menu",{key:"b8e7e29d4d932f43b3381235de57b63cc6a5283b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{V as justifi_payouts_list}