@justifi/webcomponents 6.0.0-rc.9 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (640) hide show
  1. package/dist/cjs/{Api-y2G49jOh.js → Api-CwTLkFY4.js} +2 -2
  2. package/dist/cjs/{Refund-BVZHsa6Z.js → Refund-BPSBtjQC.js} +3 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  4. package/dist/cjs/{badge-CcJ9H85-.js → badge-BmOSt4gS.js} +1 -1
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +9 -9
  6. package/dist/cjs/bank-account-form.cjs.entry.js +10 -15
  7. package/dist/cjs/business-details-core.cjs.entry.js +6 -21
  8. package/dist/cjs/{business.service-D5IhSyRJ.js → business.service-Dkhqyggm.js} +2 -2
  9. package/dist/cjs/{button-DsHDMHaa.js → button-7c2RN2yp.js} +2 -3
  10. package/dist/cjs/card-form.cjs.entry.js +10 -19
  11. package/dist/cjs/{check-pkg-version-VnhfIX0p.js → check-pkg-version-7FBAUhHw.js} +3 -3
  12. package/dist/cjs/{checkout.service-4aS641tN.js → checkout.service-LwZVVgP5.js} +2 -2
  13. package/dist/cjs/checkout.store-C3f3E24L.js +84 -0
  14. package/dist/cjs/checkouts-list-core.cjs.entry.js +11 -11
  15. package/dist/cjs/{payments-list-params-state-Cewmin_p.js → checkouts-list-params-state-C4c8UZtP.js} +1 -1
  16. package/dist/cjs/{checkouts-table-B_gpjGhs.js → checkouts-table-BQUhZZd_.js} +4 -6
  17. package/dist/cjs/{config-state-BBOZIS8x.js → config-state-B_gyIchD.js} +1 -1
  18. package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
  19. package/dist/cjs/{dispute.service-64ciJH0r.js → dispute.service-927Gzb0N.js} +2 -2
  20. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  21. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  22. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  23. package/dist/cjs/{form-control-error-text-B-P5UDhm.js → form-control-error-text-DD0dHGu8.js} +1 -1
  24. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  25. package/dist/cjs/{form-control-help-text-JoZjhb9m.js → form-control-help-text-2QwKi78M.js} +1 -1
  26. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  27. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  28. package/dist/cjs/form-control-monetary.cjs.entry.js +6 -6
  29. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  30. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  31. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  32. package/dist/cjs/form-control-select_2.cjs.entry.js +6 -6
  33. package/dist/cjs/{get-payment-details-DE5xUUpt.js → get-payment-details-BSxp1HX0.js} +2 -2
  34. package/dist/cjs/{get-subaccounts-CH477rHs.js → get-subaccounts-B31f95PR.js} +3 -3
  35. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  36. package/dist/cjs/{header-1-DRA3f4Jh.js → header-1-DMsp0XM7.js} +1 -1
  37. package/dist/cjs/{header-3-sOdOpfx3.js → header-3-BSvFq_IF.js} +1 -1
  38. package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
  39. package/dist/cjs/{checkout.store-MSwLBCby.js → index-C2ITzalN.js} +29 -41
  40. package/dist/cjs/{index-B32W0A3m.js → index-D1Ba20gi.js} +1 -1
  41. package/dist/cjs/{index-C9hBD-32.js → index-Dyzl8Hn6.js} +8 -2
  42. package/dist/cjs/index.cjs.js +8 -0
  43. package/dist/cjs/{insurance-state-d2thhXUX.js → insurance-state-uWOl6jJN.js} +2 -2
  44. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +9 -24
  45. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +8 -8
  46. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
  47. package/dist/cjs/justifi-apple-pay.cjs.entry.js +177 -86
  48. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +24 -42
  49. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
  50. package/dist/cjs/justifi-business-form.cjs.entry.js +15 -30
  51. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  52. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +192 -164
  53. package/dist/cjs/justifi-checkout.cjs.entry.js +19 -11
  54. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +8 -8
  55. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
  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 +10 -10
  60. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -15
  61. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +9 -9
  62. package/dist/cjs/justifi-order-terminals.cjs.entry.js +16 -44
  63. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -8
  64. package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -11
  65. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  66. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
  67. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +14 -16
  68. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
  69. package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
  70. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  71. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +16 -22
  72. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
  73. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
  74. package/dist/cjs/justifi-refund-payment.cjs.entry.js +15 -21
  75. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
  76. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +14 -25
  77. package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
  78. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +9 -9
  79. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +12 -12
  80. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +8 -8
  81. package/dist/cjs/justifi-terminals-list.cjs.entry.js +14 -14
  82. package/dist/cjs/loader.cjs.js +2 -2
  83. package/dist/cjs/{package-BS0_inF6.js → package-BNN5fdIc.js} +1 -1
  84. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  85. package/dist/cjs/payment-details-core.cjs.entry.js +16 -28
  86. package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
  87. package/dist/cjs/{payment.service--kzMop3L.js → payment.service-DUq-W7tS.js} +2 -2
  88. package/dist/cjs/payments-list-core.cjs.entry.js +12 -12
  89. package/dist/cjs/{payouts-list-params-state-Cewmin_p.js → payments-list-params-state-C4c8UZtP.js} +1 -1
  90. package/dist/cjs/{payments-status-DXRh_ekP.js → payments-status-3iIQkoov.js} +2 -2
  91. package/dist/cjs/{payments-table-DFRtk-T9.js → payments-table-BSHUQhM-.js} +4 -6
  92. package/dist/cjs/payout-details-core.cjs.entry.js +12 -24
  93. package/dist/cjs/{payout.service-D3omzNG_.js → payout.service-DoKMr8Xw.js} +2 -2
  94. package/dist/cjs/payouts-list-core.cjs.entry.js +12 -12
  95. package/dist/cjs/{terminal-orders-list-params-state-Cewmin_p.js → payouts-list-params-state-C4c8UZtP.js} +1 -1
  96. package/dist/cjs/{payouts-status-DxTQZv3i.js → payouts-status-DoQbxIms.js} +2 -2
  97. package/dist/cjs/{payouts-table-DE3t0x93.js → payouts-table-BD_Fhz_j.js} +5 -7
  98. package/dist/cjs/{skeleton-C7DQRD6r.js → skeleton-CuIMC98G.js} +1 -1
  99. package/dist/cjs/spinner-CMZXdrPe.js +10 -0
  100. package/dist/cjs/{styled-host-BfVJlAsJ.js → styled-host-2KXbjOFw.js} +2 -4
  101. package/dist/cjs/{table-Ccdrt0v_.js → table-DlQCUVag.js} +5 -11
  102. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  103. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +11 -11
  104. package/dist/cjs/{checkouts-list-params-state-Cewmin_p.js → terminal-orders-list-params-state-C4c8UZtP.js} +1 -1
  105. package/dist/cjs/{terminal-orders-table-B1LJitwE.js → terminal-orders-table-t6XxNy_K.js} +7 -11
  106. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  107. package/dist/cjs/{terminal.service-BOvYfpQW.js → terminal.service-Iyje71vN.js} +2 -2
  108. package/dist/cjs/terminals-list-core.cjs.entry.js +11 -11
  109. package/dist/cjs/terminals-list-params-state-C4c8UZtP.js +22 -0
  110. package/dist/cjs/{terminals-table-DYt7exFQ.js → terminals-table-BTdKRiBN.js} +3 -3
  111. package/dist/cjs/{utils-BaGF9XIe.js → utils-ChCUZgUy.js} +6 -0
  112. package/dist/cjs/utils-FFP5ZHyE.js +18 -0
  113. package/dist/cjs/webcomponents.cjs.js +3 -3
  114. package/dist/collection/api/Payment.js +2 -0
  115. package/dist/collection/api/index.js +1 -2
  116. package/dist/collection/api/services/apple-pay.service.js +95 -8
  117. package/dist/collection/collection-manifest.json +2 -2
  118. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +6 -3
  119. package/dist/collection/components/checkout/card-form/card-form.js +6 -3
  120. package/dist/collection/components/checkout/checkout.js +16 -1
  121. package/dist/collection/components/checkout/save-new-payment-method.js +26 -1
  122. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  123. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  124. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  125. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  126. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  127. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  128. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  129. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  130. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  134. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  135. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  136. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  137. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  138. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  139. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  140. package/dist/collection/components/modular-checkout/ModularCheckout.js +27 -0
  141. package/dist/collection/components/modular-checkout/modular-checkout.js +104 -70
  142. package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +2 -2
  143. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +72 -70
  144. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  145. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  146. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  147. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +57 -65
  148. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +8 -6
  149. package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +8 -10
  150. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +22 -7
  151. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  152. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  153. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  154. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  155. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  156. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  157. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  158. package/dist/collection/components/payments-list/payments-list.js +1 -1
  159. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  160. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  161. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  162. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  163. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  164. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  165. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  166. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  167. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  168. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  169. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  170. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +29 -10
  171. package/dist/collection/index.js +1 -0
  172. package/dist/collection/store/checkout.store.js +46 -3
  173. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  174. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  175. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  176. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  177. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  178. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  179. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  180. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  181. package/dist/collection/ui-components/form/form-control-radio.js +5 -5
  182. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  183. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  184. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  185. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  186. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  187. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  188. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  189. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +4 -4
  190. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  191. package/dist/collection/utils/utils.js +5 -0
  192. package/dist/docs.json +153 -97
  193. package/dist/esm/{Api-C1I68Tfr.js → Api-D4tj-h4P.js} +2 -2
  194. package/dist/esm/{Refund-kKW8S1h6.js → Refund-Bc5By0lb.js} +3 -1
  195. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  196. package/dist/esm/{badge-DSYSJcRy.js → badge-ChwzCNAF.js} +1 -1
  197. package/dist/esm/bank-account-document-form-inputs_4.entry.js +9 -9
  198. package/dist/esm/bank-account-form.entry.js +10 -15
  199. package/dist/esm/business-details-core.entry.js +6 -21
  200. package/dist/esm/{business.service-B3wlBl1x.js → business.service-CsbtEDNi.js} +2 -2
  201. package/dist/esm/{button-CpllL0At.js → button-SAIS_5os.js} +2 -3
  202. package/dist/esm/card-form.entry.js +10 -19
  203. package/dist/esm/{check-pkg-version-CGQdCjwh.js → check-pkg-version-BUkwdVdm.js} +3 -3
  204. package/dist/esm/{checkout.service-KDp7tISm.js → checkout.service-BCkQ9pOA.js} +2 -2
  205. package/dist/esm/checkout.store-DBvS7cVB.js +79 -0
  206. package/dist/esm/checkouts-list-core.entry.js +11 -11
  207. package/dist/esm/{checkouts-list-params-state-D8tzsGR_.js → checkouts-list-params-state-C2_GlMKR.js} +1 -1
  208. package/dist/esm/{checkouts-table-QOdiLpak.js → checkouts-table-CItEo0DU.js} +4 -6
  209. package/dist/esm/{config-state-DZeVYerv.js → config-state-Blo0ywwc.js} +1 -1
  210. package/dist/esm/custom-popper_2.entry.js +3 -3
  211. package/dist/esm/{dispute.service-DEZEPwn-.js → dispute.service-CyLtJREK.js} +2 -2
  212. package/dist/esm/form-alert_5.entry.js +1 -1
  213. package/dist/esm/form-control-checkbox.entry.js +5 -5
  214. package/dist/esm/form-control-date.entry.js +4 -4
  215. package/dist/esm/{form-control-error-text-R7U07nTg.js → form-control-error-text-IXJJ4JpV.js} +1 -1
  216. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  217. package/dist/esm/{form-control-help-text-CRLH-2f7.js → form-control-help-text-CuhIsM3v.js} +1 -1
  218. package/dist/esm/form-control-help-text.entry.js +1 -1
  219. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  220. package/dist/esm/form-control-monetary.entry.js +6 -6
  221. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  222. package/dist/esm/form-control-number.entry.js +5 -5
  223. package/dist/esm/form-control-radio.entry.js +3 -3
  224. package/dist/esm/form-control-select_2.entry.js +6 -6
  225. package/dist/esm/{get-payment-details-CYASKLT7.js → get-payment-details-BuT0QNOo.js} +2 -2
  226. package/dist/esm/{get-subaccounts-E0PYy_pc.js → get-subaccounts-VjY6-x_9.js} +3 -3
  227. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  228. package/dist/esm/{header-1-3M9If0gM.js → header-1-zXsamUS3.js} +1 -1
  229. package/dist/esm/{header-3-CWa41YWq.js → header-3-DVtaUAlf.js} +1 -1
  230. package/dist/esm/hidden-input_2.entry.js +8 -8
  231. package/dist/esm/{checkout.store-UMe84fjY.js → index-DCIW8z1f.js} +27 -38
  232. package/dist/esm/{index-B_KxSZIF.js → index-ZfXl6Xrm.js} +1 -1
  233. package/dist/esm/{index-Bn7inNWG.js → index-qipqIMyC.js} +8 -2
  234. package/dist/esm/index.js +1 -1
  235. package/dist/esm/{insurance-state-CTalqbNa.js → insurance-state-Dh9f36Qh.js} +2 -2
  236. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +9 -24
  237. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +8 -8
  238. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  239. package/dist/esm/justifi-apple-pay.entry.js +177 -86
  240. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +24 -42
  241. package/dist/esm/justifi-business-details.entry.js +10 -10
  242. package/dist/esm/justifi-business-form.entry.js +15 -30
  243. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  244. package/dist/esm/justifi-checkout-summary_7.entry.js +185 -157
  245. package/dist/esm/justifi-checkout.entry.js +19 -11
  246. package/dist/esm/justifi-checkouts-list-filters.entry.js +8 -8
  247. package/dist/esm/justifi-checkouts-list.entry.js +14 -14
  248. package/dist/esm/justifi-config-provider.entry.js +3 -3
  249. package/dist/esm/justifi-details.entry.js +2 -2
  250. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  251. package/dist/esm/justifi-dispute-management.entry.js +10 -10
  252. package/dist/esm/justifi-dispute-notification_3.entry.js +15 -15
  253. package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
  254. package/dist/esm/justifi-order-terminals.entry.js +16 -44
  255. package/dist/esm/justifi-owner-form_3.entry.js +8 -8
  256. package/dist/esm/justifi-payment-details.entry.js +11 -11
  257. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  258. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  259. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -16
  260. package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
  261. package/dist/esm/justifi-payments-list.entry.js +14 -14
  262. package/dist/esm/justifi-payout-details.entry.js +10 -10
  263. package/dist/esm/justifi-payout-transactions-list.entry.js +16 -22
  264. package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
  265. package/dist/esm/justifi-payouts-list.entry.js +15 -15
  266. package/dist/esm/justifi-refund-payment.entry.js +15 -21
  267. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  268. package/dist/esm/justifi-season-interruption-insurance.entry.js +14 -25
  269. package/dist/esm/justifi-skeleton.entry.js +4 -4
  270. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +9 -9
  271. package/dist/esm/justifi-terminal-orders-list.entry.js +12 -12
  272. package/dist/esm/justifi-terminals-list-filters.entry.js +8 -8
  273. package/dist/esm/justifi-terminals-list.entry.js +14 -14
  274. package/dist/esm/loader.js +3 -3
  275. package/dist/esm/{package-BiWRKUx3.js → package-BBpkkt2-.js} +1 -1
  276. package/dist/esm/pagination-menu.entry.js +1 -1
  277. package/dist/esm/payment-details-core.entry.js +16 -28
  278. package/dist/esm/payment-method-option.entry.js +3 -3
  279. package/dist/esm/{payment.service-uJpJaX2Z.js → payment.service-QJEmd6Nl.js} +2 -2
  280. package/dist/esm/payments-list-core.entry.js +12 -12
  281. package/dist/esm/{payments-list-params-state-D8tzsGR_.js → payments-list-params-state-C2_GlMKR.js} +1 -1
  282. package/dist/esm/{payments-status-5orNU2Rd.js → payments-status-DDafc8Yr.js} +2 -2
  283. package/dist/esm/{payments-table-B0uyodyJ.js → payments-table-De3Jb6rY.js} +4 -6
  284. package/dist/esm/payout-details-core.entry.js +12 -24
  285. package/dist/esm/{payout.service-ClUgtbbb.js → payout.service-XxyEr0rj.js} +2 -2
  286. package/dist/esm/payouts-list-core.entry.js +12 -12
  287. package/dist/esm/{payouts-list-params-state-D8tzsGR_.js → payouts-list-params-state-C2_GlMKR.js} +1 -1
  288. package/dist/esm/{payouts-status-CZPwa2AE.js → payouts-status-u1eSRz3Q.js} +2 -2
  289. package/dist/esm/{payouts-table-CaCSX_0q.js → payouts-table-BO-MCzXj.js} +5 -7
  290. package/dist/esm/{skeleton-qMb0_Cjy.js → skeleton-DtpkgjZ6.js} +1 -1
  291. package/dist/esm/spinner-CIXUVK4F.js +8 -0
  292. package/dist/esm/{styled-host-CTAGIN84.js → styled-host-CbizlfAU.js} +2 -4
  293. package/dist/esm/{table-Br3n9Xu-.js → table-DcRHK_sm.js} +5 -11
  294. package/dist/esm/table-filters-menu.entry.js +3 -3
  295. package/dist/esm/terminal-orders-list-core.entry.js +11 -11
  296. package/dist/esm/{terminal-orders-list-params-state-D8tzsGR_.js → terminal-orders-list-params-state-C2_GlMKR.js} +1 -1
  297. package/dist/esm/{terminal-orders-table-DPtof5Zb.js → terminal-orders-table-9nsnrAq8.js} +7 -11
  298. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  299. package/dist/esm/{terminal.service-ClNtE3e-.js → terminal.service-D2oETGnk.js} +2 -2
  300. package/dist/esm/terminals-list-core.entry.js +11 -11
  301. package/dist/esm/terminals-list-params-state-C2_GlMKR.js +16 -0
  302. package/dist/esm/{terminals-table-ClkR_jrC.js → terminals-table-C6NO2m-t.js} +3 -3
  303. package/dist/esm/{utils-lb8p1Exq.js → utils-BscIVFn8.js} +6 -1
  304. package/dist/esm/utils-_ckvHjSW.js +11 -0
  305. package/dist/esm/webcomponents.js +4 -4
  306. package/dist/module/ModularCheckout.js +57 -0
  307. package/dist/module/Refund.js +2 -0
  308. package/dist/module/additional-questions-details2.js +4 -2
  309. package/dist/module/additional-questions.js +4 -2
  310. package/dist/module/additional-statement.js +5 -3
  311. package/dist/module/bank-account-billing-form-simple.js +4 -2
  312. package/dist/module/bank-account-document-inputs.js +4 -2
  313. package/dist/module/bank-account-form-inputs2.js +4 -2
  314. package/dist/module/bank-account-form.js +10 -13
  315. package/dist/module/bank-account.js +7 -13
  316. package/dist/module/billing-form-full.js +4 -2
  317. package/dist/module/billing-form.js +4 -2
  318. package/dist/module/business-additional-questions-form-step-core.js +4 -2
  319. package/dist/module/business-additional-questions-form-step.js +4 -2
  320. package/dist/module/business-bank-account-form-step-core.js +4 -2
  321. package/dist/module/business-bank-account-form-step.js +4 -2
  322. package/dist/module/business-core-info-form-step-core.js +4 -2
  323. package/dist/module/business-core-info-form-step.js +4 -2
  324. package/dist/module/business-core-info.js +4 -2
  325. package/dist/module/business-details-core2.js +6 -19
  326. package/dist/module/business-documents-on-file2.js +4 -2
  327. package/dist/module/business-owners-form-step-core.js +4 -2
  328. package/dist/module/business-owners-form-step.js +4 -2
  329. package/dist/module/business-representative-form-inputs.js +4 -2
  330. package/dist/module/business-representative-form-step-core.js +4 -2
  331. package/dist/module/business-representative-form-step.js +4 -2
  332. package/dist/module/business-representative.js +4 -2
  333. package/dist/module/business-terms-conditions-form-step.js +4 -2
  334. package/dist/module/button.js +1 -2
  335. package/dist/module/cancellation-policy.js +5 -3
  336. package/dist/module/card-billing-form-simple.js +4 -2
  337. package/dist/module/card-form.js +10 -17
  338. package/dist/module/card-form2.js +7 -17
  339. package/dist/module/checkout.store.js +42 -31
  340. package/dist/module/checkouts-list-core2.js +6 -6
  341. package/dist/module/core-info-details2.js +4 -2
  342. package/dist/module/custom-popper2.js +6 -4
  343. package/dist/module/customer-details.js +5 -3
  344. package/dist/module/details.js +4 -2
  345. package/dist/module/dispute-management-core.js +5 -3
  346. package/dist/module/dispute-notification.js +5 -3
  347. package/dist/module/dispute-response-core.js +5 -3
  348. package/dist/module/dispute-response.js +5 -3
  349. package/dist/module/duplicate-charge.js +5 -3
  350. package/dist/module/electronic-evidence.js +5 -3
  351. package/dist/module/form-alert2.js +4 -2
  352. package/dist/module/form-control-checkbox2.js +6 -4
  353. package/dist/module/form-control-date2.js +6 -4
  354. package/dist/module/form-control-file-v22.js +5 -3
  355. package/dist/module/form-control-file2.js +6 -4
  356. package/dist/module/form-control-help-text2.js +4 -2
  357. package/dist/module/form-control-monetary-provisioning2.js +4 -2
  358. package/dist/module/form-control-monetary2.js +6 -4
  359. package/dist/module/form-control-number-masked2.js +6 -4
  360. package/dist/module/form-control-number.js +6 -4
  361. package/dist/module/form-control-radio2.js +7 -5
  362. package/dist/module/form-control-select2.js +6 -4
  363. package/dist/module/form-control-text2.js +6 -4
  364. package/dist/module/form-control-textarea2.js +6 -4
  365. package/dist/module/form-control-tooltip2.js +4 -2
  366. package/dist/module/gross-payment-chart-core2.js +6 -4
  367. package/dist/module/hidden-input2.js +5 -3
  368. package/dist/module/identity-address-form.js +4 -2
  369. package/dist/module/iframe-input2.js +7 -5
  370. package/dist/module/index.js +1 -0
  371. package/dist/module/justifi-apple-pay.js +174 -86
  372. package/dist/module/justifi-business-details.js +4 -2
  373. package/dist/module/justifi-business-form.js +6 -19
  374. package/dist/module/justifi-button2.js +5 -3
  375. package/dist/module/justifi-checkout.js +15 -4
  376. package/dist/module/justifi-checkouts-list-filters.js +5 -3
  377. package/dist/module/justifi-checkouts-list.js +5 -3
  378. package/dist/module/justifi-config-provider.js +4 -2
  379. package/dist/module/justifi-dispute-management.js +5 -3
  380. package/dist/module/justifi-gross-payment-chart.js +4 -2
  381. package/dist/module/justifi-header2.js +5 -3
  382. package/dist/module/justifi-order-terminals.js +9 -35
  383. package/dist/module/justifi-payment-details.js +4 -2
  384. package/dist/module/justifi-payment-provisioning.js +4 -2
  385. package/dist/module/justifi-payment-transactions-list.js +6 -6
  386. package/dist/module/justifi-payments-list-filters.js +6 -4
  387. package/dist/module/justifi-payments-list.js +5 -3
  388. package/dist/module/justifi-payout-details.js +4 -2
  389. package/dist/module/justifi-payout-transactions-list.js +8 -12
  390. package/dist/module/justifi-payouts-list-filters.js +6 -4
  391. package/dist/module/justifi-payouts-list.js +5 -3
  392. package/dist/module/justifi-radio-list-item2.js +6 -4
  393. package/dist/module/justifi-refund-payment.js +6 -10
  394. package/dist/module/justifi-saved-payment-method.js +4 -2
  395. package/dist/module/justifi-season-interruption-insurance.js +6 -16
  396. package/dist/module/justifi-skeleton.js +5 -3
  397. package/dist/module/justifi-terminal-orders-list-filters.js +6 -4
  398. package/dist/module/justifi-terminal-orders-list.js +5 -3
  399. package/dist/module/justifi-terminals-list-filters.js +5 -3
  400. package/dist/module/justifi-terminals-list.js +5 -3
  401. package/dist/module/legal-address-details2.js +4 -2
  402. package/dist/module/legal-address-form-step-core.js +4 -2
  403. package/dist/module/legal-address-form-step.js +4 -2
  404. package/dist/module/legal-address-form.js +4 -2
  405. package/dist/module/modular-checkout.js +94 -39
  406. package/dist/module/owner-details2.js +4 -2
  407. package/dist/module/owner-form-core2.js +4 -2
  408. package/dist/module/owner-form-inputs2.js +4 -2
  409. package/dist/module/owner-form.js +4 -2
  410. package/dist/module/package.js +1 -1
  411. package/dist/module/pagination-menu2.js +4 -2
  412. package/dist/module/payment-details-core2.js +13 -23
  413. package/dist/module/payment-method-option.js +5 -3
  414. package/dist/module/payment-provisioning-core.js +4 -2
  415. package/dist/module/payment-provisioning-form-buttons.js +4 -2
  416. package/dist/module/payment-provisioning-form-steps.js +4 -2
  417. package/dist/module/payment-provisioning-loading.js +2 -17
  418. package/dist/module/payments-list-core2.js +6 -6
  419. package/dist/module/payout-details-core2.js +8 -18
  420. package/dist/module/payouts-list-core2.js +7 -7
  421. package/dist/module/plaid-payment-method.js +49 -104
  422. package/dist/module/plaid.service.js +26 -0
  423. package/dist/module/product-or-service.js +5 -3
  424. package/dist/module/refund-policy.js +5 -3
  425. package/dist/module/representative-details2.js +4 -2
  426. package/dist/module/save-new-payment-method.js +7 -3
  427. package/dist/module/saved-payment-methods.js +13 -12
  428. package/dist/module/sezzle-payment-method.js +14 -24
  429. package/dist/module/shipping-details.js +5 -3
  430. package/dist/module/spinner.js +1 -3
  431. package/dist/module/styled-host.js +1 -3
  432. package/dist/module/summary.js +5 -3
  433. package/dist/module/table-filters-menu2.js +5 -3
  434. package/dist/module/table.js +3 -9
  435. package/dist/module/terminal-orders-list-core2.js +7 -9
  436. package/dist/module/terminal-quantity-selector2.js +5 -3
  437. package/dist/module/terminals-list-core2.js +6 -4
  438. package/dist/module/tokenize-payment-method.js +16 -12
  439. package/dist/module/utils.js +5 -16
  440. package/dist/module/utils2.js +6 -1
  441. package/dist/types/api/Checkout.d.ts +7 -15
  442. package/dist/types/api/Payment.d.ts +3 -1
  443. package/dist/types/api/index.d.ts +2 -2
  444. package/dist/types/api/services/apple-pay.service.d.ts +7 -0
  445. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +1 -0
  446. package/dist/types/components/checkout/card-form/card-form.d.ts +1 -0
  447. package/dist/types/components/checkout/checkout.d.ts +5 -0
  448. package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -0
  449. package/dist/types/components/modular-checkout/ModularCheckout.d.ts +41 -0
  450. package/dist/types/components/modular-checkout/modular-checkout.d.ts +5 -5
  451. package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +1 -1
  452. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +9 -3
  453. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +1 -2
  454. package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +3 -3
  455. package/dist/types/components/modular-checkout/sub-components/sezzle-payment-method.d.ts +1 -1
  456. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -1
  457. package/dist/types/components.d.ts +23 -19
  458. package/dist/types/index.d.ts +4 -0
  459. package/dist/types/stencil-public-runtime.d.ts +21 -0
  460. package/dist/types/store/checkout.store.d.ts +12 -5
  461. package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
  462. package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +1 -1
  463. package/dist/types/utils/utils.d.ts +1 -0
  464. package/dist/webcomponents/index.esm.js +1 -0
  465. package/dist/webcomponents/p-005efe51.entry.js +1 -0
  466. package/dist/webcomponents/p-0142114f.entry.js +1 -0
  467. package/dist/webcomponents/{p-54ca3070.entry.js → p-0801324e.entry.js} +1 -1
  468. package/dist/webcomponents/p-0d8fe5f2.entry.js +1 -0
  469. package/dist/webcomponents/{p-613421d4.entry.js → p-146de253.entry.js} +1 -1
  470. package/dist/webcomponents/p-17f7590c.entry.js +1 -0
  471. package/dist/webcomponents/{p-9846b23d.entry.js → p-1b7926f6.entry.js} +1 -1
  472. package/dist/webcomponents/{p-44450a94.entry.js → p-20f036cc.entry.js} +1 -1
  473. package/dist/webcomponents/{p-f13ae573.entry.js → p-2246aa69.entry.js} +1 -1
  474. package/dist/webcomponents/p-246ef4ff.entry.js +1 -0
  475. package/dist/webcomponents/p-25484e99.entry.js +1 -0
  476. package/dist/webcomponents/{p-4e3bf98f.entry.js → p-265d0a1d.entry.js} +1 -1
  477. package/dist/webcomponents/{p-4213d10e.entry.js → p-27fc3ef0.entry.js} +3 -3
  478. package/dist/webcomponents/{p-aeeb0f68.entry.js → p-2a43e77f.entry.js} +1 -1
  479. package/dist/webcomponents/p-30c414b5.entry.js +1 -0
  480. package/dist/webcomponents/{p-497632ad.entry.js → p-3152c84f.entry.js} +1 -1
  481. package/dist/webcomponents/p-3546a5aa.entry.js +1 -0
  482. package/dist/webcomponents/p-3621a429.entry.js +1 -0
  483. package/dist/webcomponents/p-3906296f.entry.js +1 -0
  484. package/dist/webcomponents/{p-f1cba43c.entry.js → p-3d37045d.entry.js} +1 -1
  485. package/dist/webcomponents/p-3e320c0d.entry.js +1 -0
  486. package/dist/webcomponents/p-406ba650.entry.js +1 -0
  487. package/dist/webcomponents/p-44d1341c.entry.js +1 -0
  488. package/dist/webcomponents/{p-6255c685.entry.js → p-44e32f85.entry.js} +1 -1
  489. package/dist/webcomponents/p-4ea83bfd.entry.js +1 -0
  490. package/dist/webcomponents/p-558f7967.entry.js +1 -0
  491. package/dist/webcomponents/p-5c3d8de5.entry.js +1 -0
  492. package/dist/webcomponents/p-5c477f08.entry.js +1 -0
  493. package/dist/webcomponents/p-68329f16.entry.js +1 -0
  494. package/dist/webcomponents/p-6fdc03bc.entry.js +1 -0
  495. package/dist/webcomponents/p-6fe79f16.entry.js +1 -0
  496. package/dist/webcomponents/p-7aeb20d2.entry.js +1 -0
  497. package/dist/webcomponents/p-7b103dad.entry.js +1 -0
  498. package/dist/webcomponents/{p-28618e6f.entry.js → p-7c5cd118.entry.js} +1 -1
  499. package/dist/webcomponents/{p-36d9d95a.entry.js → p-7cb6cc9f.entry.js} +1 -1
  500. package/dist/webcomponents/p-7e04d5af.entry.js +1 -0
  501. package/dist/webcomponents/p-82781411.entry.js +1 -0
  502. package/dist/webcomponents/p-84043580.entry.js +1 -0
  503. package/dist/webcomponents/p-8467851a.entry.js +1 -0
  504. package/dist/webcomponents/{p-95cbb655.entry.js → p-8d3f5638.entry.js} +1 -1
  505. package/dist/webcomponents/p-906fdf0c.entry.js +1 -0
  506. package/dist/webcomponents/{p-9a2c044f.entry.js → p-90e43440.entry.js} +1 -1
  507. package/dist/webcomponents/p-95348ff6.entry.js +1 -0
  508. package/dist/webcomponents/{p-15705e8a.entry.js → p-9c4079cc.entry.js} +1 -1
  509. package/dist/webcomponents/{p-43c5f490.entry.js → p-9d7b5d07.entry.js} +1 -1
  510. package/dist/webcomponents/{p-bc2da364.entry.js → p-9fc464eb.entry.js} +1 -1
  511. package/dist/webcomponents/{p-0mMX1Zv4.js → p-B4idKqyn.js} +1 -1
  512. package/dist/webcomponents/p-BBpkkt2-.js +1 -0
  513. package/dist/webcomponents/{p-zdIeCUeh.js → p-BHf9IqGw.js} +1 -1
  514. package/dist/webcomponents/{p-DNo0OPOP.js → p-BIPdn2VU.js} +1 -1
  515. package/dist/webcomponents/{p-BPtcGAzB.js → p-BUa0YOaw.js} +1 -1
  516. package/dist/webcomponents/{p-B8iBcmNu.js → p-BY2p6Sxk.js} +1 -1
  517. package/dist/webcomponents/{p-CB0mCq1M.js → p-BZ7C9duj.js} +1 -1
  518. package/dist/webcomponents/{p-DGmp4ErD.js → p-BdLLGV9t.js} +1 -1
  519. package/dist/webcomponents/p-BguBT6Hn.js +1 -0
  520. package/dist/webcomponents/{p-DhGNCW2f.js → p-Bp_QFeog.js} +1 -1
  521. package/dist/webcomponents/{p-B71k50jz.js → p-Bvp7uul3.js} +1 -1
  522. package/dist/webcomponents/{p-CvG-itHC.js → p-C1xGBPma.js} +1 -1
  523. package/dist/webcomponents/p-C3n7-tlg.js +1 -0
  524. package/dist/webcomponents/{p-DxqCFDtF.js → p-CLQx9p9q.js} +1 -1
  525. package/dist/webcomponents/{p-b21ncS7l.js → p-CPVN4dXS.js} +1 -1
  526. package/dist/webcomponents/p-CQeex56P.js +1 -0
  527. package/dist/webcomponents/p-CU4XQ3fO.js +1 -0
  528. package/dist/webcomponents/{p-Bb-6bNcq.js → p-C_3N7nqh.js} +1 -1
  529. package/dist/webcomponents/{p-BRLwUSZk.js → p-CaxjN6Uo.js} +1 -1
  530. package/dist/webcomponents/p-CpKvg1ok.js +1 -0
  531. package/dist/webcomponents/p-CrQgyTRz.js +1 -0
  532. package/dist/webcomponents/{p-Bu1jU017.js → p-CxzFvTgf.js} +1 -1
  533. package/dist/webcomponents/{p-DVBbk00Z.js → p-CzPUMw00.js} +1 -1
  534. package/dist/webcomponents/{p-DDUmOl3v.js → p-D--yCspA.js} +1 -1
  535. package/dist/webcomponents/{p-qWQmu-fb.js → p-D-JYHdJ7.js} +1 -1
  536. package/dist/webcomponents/p-D6XirF21.js +1 -0
  537. package/dist/webcomponents/p-DCIW8z1f.js +1 -0
  538. package/dist/webcomponents/{p-BfM6X7lF.js → p-DCMrHeJI.js} +1 -1
  539. package/dist/webcomponents/{p-B_6n1dAh.js → p-D_5McRD_.js} +1 -1
  540. package/dist/webcomponents/p-DbX0g1WF.js +1 -0
  541. package/dist/webcomponents/p-De8UloOS.js +1 -0
  542. package/dist/webcomponents/p-DsAwPf2y.js +1 -0
  543. package/dist/webcomponents/p-DvZcI6pC.js +1 -0
  544. package/dist/webcomponents/p-DyDHaG6n.js +1 -0
  545. package/dist/webcomponents/{p-D2_iJUrZ.js → p-DyOgQlh2.js} +1 -1
  546. package/dist/webcomponents/p-IG_KR8zP.js +1 -0
  547. package/dist/webcomponents/p-Xv8DuU3Y.js +1 -0
  548. package/dist/webcomponents/{p-d46dbb83.entry.js → p-a71a5e64.entry.js} +1 -1
  549. package/dist/webcomponents/p-a7e40e91.entry.js +1 -0
  550. package/dist/webcomponents/{p-72dda22b.entry.js → p-a90b8b93.entry.js} +1 -1
  551. package/dist/webcomponents/{p-70f51444.entry.js → p-a928c6fb.entry.js} +1 -1
  552. package/dist/webcomponents/p-b90999af.entry.js +1 -0
  553. package/dist/webcomponents/{p-4178bdbe.entry.js → p-bc3cdc7b.entry.js} +1 -1
  554. package/dist/webcomponents/p-c16c0cbc.entry.js +1 -0
  555. package/dist/webcomponents/p-c262d10f.entry.js +1 -0
  556. package/dist/webcomponents/p-c4Mh3ZZ_.js +1 -0
  557. package/dist/webcomponents/p-c70e1aac.entry.js +1 -0
  558. package/dist/webcomponents/{p-f680e617.entry.js → p-cecb65c4.entry.js} +1 -1
  559. package/dist/webcomponents/p-d7555ff1.entry.js +1 -0
  560. package/dist/webcomponents/{p-8ff839a4.entry.js → p-df329742.entry.js} +1 -1
  561. package/dist/webcomponents/{p-3e667b07.entry.js → p-e2a38ad0.entry.js} +1 -1
  562. package/dist/webcomponents/p-e6516014.entry.js +1 -0
  563. package/dist/webcomponents/{p-97c0dde4.entry.js → p-e6e96be2.entry.js} +1 -1
  564. package/dist/webcomponents/p-e79338f9.entry.js +1 -0
  565. package/dist/webcomponents/p-ea2a9a81.entry.js +1 -0
  566. package/dist/webcomponents/p-f5c3f489.entry.js +1 -0
  567. package/dist/webcomponents/p-f6fbd43d.entry.js +1 -0
  568. package/dist/webcomponents/{p-36a71a36.entry.js → p-f7690165.entry.js} +1 -1
  569. package/dist/webcomponents/{p-7cf87637.entry.js → p-f8cbcbe9.entry.js} +1 -1
  570. package/dist/webcomponents/p-f99e4566.entry.js +1 -0
  571. package/dist/webcomponents/{p-C5id7s_l.js → p-fUtq2xDs.js} +1 -1
  572. package/dist/webcomponents/{p-Dgflaz6J.js → p-oGKW57R8.js} +1 -1
  573. package/dist/webcomponents/p-qipqIMyC.js +2 -0
  574. package/dist/webcomponents/p-xY5RkFuA.js +1 -0
  575. package/dist/webcomponents/webcomponents.esm.js +1 -1
  576. package/package.json +2 -2
  577. package/dist/cjs/spinner-jmeA44Ee.js +0 -12
  578. package/dist/cjs/terminals-list-params-state-Cewmin_p.js +0 -22
  579. package/dist/cjs/utils-Bzyj4qWe.js +0 -29
  580. package/dist/esm/spinner-DUzyWLhj.js +0 -10
  581. package/dist/esm/terminals-list-params-state-D8tzsGR_.js +0 -16
  582. package/dist/esm/utils-Dg6gMUTv.js +0 -22
  583. package/dist/webcomponents/p-040e8524.entry.js +0 -1
  584. package/dist/webcomponents/p-0db9943e.entry.js +0 -1
  585. package/dist/webcomponents/p-1288fda5.entry.js +0 -1
  586. package/dist/webcomponents/p-14ff3155.entry.js +0 -1
  587. package/dist/webcomponents/p-2f01dfd2.entry.js +0 -1
  588. package/dist/webcomponents/p-3aecd2cd.entry.js +0 -1
  589. package/dist/webcomponents/p-3bf63d1e.entry.js +0 -1
  590. package/dist/webcomponents/p-41e17edd.entry.js +0 -1
  591. package/dist/webcomponents/p-48e87a26.entry.js +0 -1
  592. package/dist/webcomponents/p-5580e6ca.entry.js +0 -1
  593. package/dist/webcomponents/p-57dde36e.entry.js +0 -1
  594. package/dist/webcomponents/p-5bc6f5ca.entry.js +0 -1
  595. package/dist/webcomponents/p-5f87add5.entry.js +0 -1
  596. package/dist/webcomponents/p-60206d9c.entry.js +0 -1
  597. package/dist/webcomponents/p-6c9732b6.entry.js +0 -1
  598. package/dist/webcomponents/p-7089fb85.entry.js +0 -1
  599. package/dist/webcomponents/p-7500c5b7.entry.js +0 -1
  600. package/dist/webcomponents/p-79da5350.entry.js +0 -1
  601. package/dist/webcomponents/p-87884ca5.entry.js +0 -1
  602. package/dist/webcomponents/p-88905a54.entry.js +0 -1
  603. package/dist/webcomponents/p-8990707a.entry.js +0 -1
  604. package/dist/webcomponents/p-8b7cbdbf.entry.js +0 -1
  605. package/dist/webcomponents/p-8cca8903.entry.js +0 -1
  606. package/dist/webcomponents/p-8dc4eb6a.entry.js +0 -1
  607. package/dist/webcomponents/p-98cffba9.entry.js +0 -1
  608. package/dist/webcomponents/p-9df86b97.entry.js +0 -1
  609. package/dist/webcomponents/p-9edfd38c.entry.js +0 -1
  610. package/dist/webcomponents/p-9f5c9e41.entry.js +0 -1
  611. package/dist/webcomponents/p-B5Rc83j1.js +0 -1
  612. package/dist/webcomponents/p-BEPUC3Po.js +0 -1
  613. package/dist/webcomponents/p-BP7op0vq.js +0 -1
  614. package/dist/webcomponents/p-BQ2TIFoY.js +0 -1
  615. package/dist/webcomponents/p-BSt6p1oq.js +0 -1
  616. package/dist/webcomponents/p-BY1mRAvj.js +0 -1
  617. package/dist/webcomponents/p-BbZwa5UI.js +0 -1
  618. package/dist/webcomponents/p-BiWRKUx3.js +0 -1
  619. package/dist/webcomponents/p-Bn7inNWG.js +0 -2
  620. package/dist/webcomponents/p-C6c6Q0E7.js +0 -1
  621. package/dist/webcomponents/p-CaAVuW6B.js +0 -1
  622. package/dist/webcomponents/p-CpaS1Lex.js +0 -1
  623. package/dist/webcomponents/p-DD0Mvpeu.js +0 -1
  624. package/dist/webcomponents/p-DIDloHpm.js +0 -1
  625. package/dist/webcomponents/p-Dc1CS9Mi.js +0 -1
  626. package/dist/webcomponents/p-DsZZxRXY.js +0 -1
  627. package/dist/webcomponents/p-a1d3bb81.entry.js +0 -1
  628. package/dist/webcomponents/p-a9957ca5.entry.js +0 -1
  629. package/dist/webcomponents/p-abbf14b5.entry.js +0 -1
  630. package/dist/webcomponents/p-b2dcef65.entry.js +0 -1
  631. package/dist/webcomponents/p-c44325f8.entry.js +0 -1
  632. package/dist/webcomponents/p-c874ca2b.entry.js +0 -1
  633. package/dist/webcomponents/p-caac63bf.entry.js +0 -1
  634. package/dist/webcomponents/p-d72e8541.entry.js +0 -1
  635. package/dist/webcomponents/p-da44dc6e.entry.js +0 -1
  636. package/dist/webcomponents/p-e0cb5de5.entry.js +0 -1
  637. package/dist/webcomponents/p-eP3fmhta.js +0 -1
  638. package/dist/webcomponents/p-ecce97b3.entry.js +0 -1
  639. package/dist/webcomponents/p-fd4ffaa2.entry.js +0 -1
  640. package/dist/webcomponents/p-sw5RO19U.js +0 -1
@@ -1 +1 @@
1
- import{h as t,r as s,c as e}from"./p-Bn7inNWG.js";import{a as i,b as r}from"./p-DSP8qjHL.js";import{F as o,c as n,b as a}from"./p-CR9D6mKt.js";import{A as l,C as h,R as c,c as d}from"./p-BlJnA265.js";import{C as u,P as m}from"./p-B-iV5cYd.js";import{C as p}from"./p-RvUQ__Pq.js";import{S as f}from"./p-CaAVuW6B.js";import"./p-CZfYo5-1.js";import{a as v,r as b,s as y,b as g}from"./p-yH3TC3ZQ.js";import{a as w,B as _}from"./p-XYgDHrVL.js";import{E as x,k as j,l as k}from"./p-BP7op0vq.js";import{z as S,A as C,B as T,y as O,C as H,D as L}from"./p-CYBR4K2p.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import{C as D,a as E}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{n as B}from"./p-BnjCmwMr.js";import{B as V}from"./p-DD0Mvpeu.js";import{i as A,a as P}from"./p-PgEzcvI6.js";import{S as I}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-zdIeCUeh.js";import"./p-CpaS1Lex.js";class W{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const U=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(f,{width:"25%"})),t("div",{class:"col-12"},t(f,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"50%"}),t(f,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"65%"}),t(f,{width:"35%"}))),q=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(f,{width:"40%",height:"40px"})),t(U,null),t(U,null),t(U,null)),F=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.additional_questions=new l(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s})),this.additional_questions=new l(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}recurringPaymentsWatcher(t){this.recurringPayments="Yes"===(null==t?void 0:t.business_recurring_payments)}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{additional_questions:new l(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n,a;const l=this.formController.getInitialValues();return this.isLoading?t(q,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Additional Questions"),t("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business’ estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==l?void 0:l.business_revenue,maskOptions:u.WHOLE})),t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==l?void 0:l.business_payment_volume,maskOptions:u.WHOLE})),t("div",{class:"col-12"},t("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:v,defaultValue:null==l?void 0:l.business_when_service_received})),t("div",{class:"col-12"},t("form-control-select",{name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_recurring_payments,options:b,defaultValue:null==l?void 0:l.business_recurring_payments})),t("div",{class:"col-12",hidden:!this.recurringPayments},t("form-control-text",{name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==l?void 0:l.business_recurring_payments_percentage,helpText:"For example: 50% monthly, 50% annual."})),t("div",{class:"col-12"},t("form-control-select",{name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:y,defaultValue:null==l?void 0:l.business_seasonal})),t("div",{class:"col-12"},t("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_other_payment_details,defaultValue:null==l?void 0:l.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},N=(t,s)=>t.some((t=>t.document_type===s)),R="Please upload either a voided check or a bank statement. Only one is required.",Y=(t,s)=>{const e=N(t,x.voidedCheck),i=N(t,x.bankStatement),r=e||i,o=n().shape({bank_name:L.required("Enter bank name"),nickname:H.required("Enter nickname"),account_owner_name:O.required("Enter account owner name"),account_type:T.required("Select account type"),account_number:C.required("Enter account number"),routing_number:S.required("Enter routing number"),voided_check:a().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(R),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(R),otherwise:t=>t.notRequired()})},[["voided_check","bank_statement"]]),l=n({bank_name:L.nullable(),nickname:H.nullable(),account_owner_name:O.nullable(),account_type:T.nullable(),account_number:C.nullable(),routing_number:S.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},X=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new j,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(Y(this.existingDocuments,this.allowOptionalFields)),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new k({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new W(t.data.bank_accounts[0]):(this.bankAccount=new W({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:E.POST_ERROR,message:s.error.message,severity:D.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await t.getFileData(),e=await fetch(t.presigned_url,{method:"PUT",body:s});return this.handleUploadResponse(e)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:E.POST_ERROR,message:t.error.message,severity:D.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(Y(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){return new W(this.formController.values.getValue()).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:E.POST_ERROR,severity:D.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:w.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(q,null):t("form",null,t("fieldset",{class:"mb-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Bank Account Info"),t("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),t("hr",{class:"mt-2"}),t("bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),t("fieldset",{class:"mt-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Document Uploads"),t("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),t("hr",{class:"mt-2"}),t("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),t("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},M=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new h(t.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new h(this.formController.values.getValue()).payload}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(r(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){const s=this.formController.getInitialValues();return this.isLoading?t(q,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Business Information")),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:s.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),t("div",{class:"col-12"},t("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:s.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),t("div",{class:"col-12 col-md-8"},t("form-control-select",{name:"classification",label:"Business Classification",options:g,defaultValue:s.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-4"},t("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:s.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"industry",label:"Industry",defaultValue:s.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:s.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:B,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."})),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:s.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:s.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})))))}},G=class{constructor(t){s(this,t),this.clickEvent=e(this,"click-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.matchRef=(t,s)=>{const e=this.refs.findIndex((t=>t===s));-1!==e&&(this.refs[e]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:_.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((s=>s.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)}}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const s=this.refs.map((t=>t.validate()));if(!(await Promise.all(s)).every((t=>t)))return;const e=this.refs.map((t=>t.submit()));(await Promise.all(e)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const s=t.detail,e=this.ownersPayload.map((t=>t.id===s.id?s:t));e.includes(s)||(e[this.ownersPayload.findIndex((t=>!t.id))]=s,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?t(q,null):t("div",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Owners"),t("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},this.ownersPayload.map((s=>t("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),t("div",{class:"d-flex justify-content-start"},t("div",{class:"gap-2"},t(V,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},z=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new c(t.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(A("representative",this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(q,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},Q=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.legal_address=new d(t.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new d(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(P(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n;const a=this.formController.getInitialValues();return this.isLoading?t(q,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Legal Address of your Business"),t("form-control-tooltip",{helpText:"No PO Boxes."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line1,errorText:null===(s=this.errors)||void 0===s?void 0:s.line1})),t("div",{class:"col-12"},t("form-control-text",{name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line2,errorText:null===(e=this.errors)||void 0===e?void 0:e.line2})),t("div",{class:"col-12"},t("form-control-text",{name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.city,errorText:null===(i=this.errors)||void 0===i?void 0:i.city})),t("div",{class:"col-12"},t("form-control-select",{name:"state",label:"State",options:I,inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.state,errorText:null===(r=this.errors)||void 0===r?void 0:r.state})),t("div",{class:"col-12"},t("form-control-text",{name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:B})),t("div",{class:"col-12"},t("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{F as justifi_additional_questions_form_step_core,X as justifi_business_bank_account_form_step_core,M as justifi_business_core_info_form_step_core,G as justifi_business_owners_form_step_core,z as justifi_business_representative_form_step_core,Q as justifi_legal_address_form_step_core}
1
+ import{h as t,r as s,c as e}from"./p-qipqIMyC.js";import{a as i,b as r}from"./p-DSP8qjHL.js";import{F as o,c as n,b as a}from"./p-CR9D6mKt.js";import{A as l,C as h,R as c,c as d}from"./p-BlJnA265.js";import{C as u,P as m}from"./p-B-iV5cYd.js";import{C as p}from"./p-RvUQ__Pq.js";import{S as f}from"./p-Xv8DuU3Y.js";import"./p-CZfYo5-1.js";import{a as v,r as b,s as y,b as g}from"./p-yH3TC3ZQ.js";import{a as w,B as _}from"./p-XYgDHrVL.js";import{E as x,k as j,l as k}from"./p-c4Mh3ZZ_.js";import{z as S,A as T,B as C,y as O,C as H,D as L}from"./p-CYBR4K2p.js";import"./p-Bp_QFeog.js";import"./p-HXpYMWUU.js";import{C as D,a as E}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{n as B}from"./p-BnjCmwMr.js";import{B as A}from"./p-D6XirF21.js";import{i as P,a as V}from"./p-PgEzcvI6.js";import{S as I}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BHf9IqGw.js";import"./p-DsAwPf2y.js";class W{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const q=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(f,{width:"25%"})),t("div",{class:"col-12"},t(f,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"50%"}),t(f,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"65%"}),t(f,{width:"35%"}))),F=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(f,{width:"40%",height:"40px"})),t(q,null),t(q,null),t(q,null)),U=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.additional_questions=new l(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s})),this.additional_questions=new l(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}recurringPaymentsWatcher(t){this.recurringPayments="Yes"===(null==t?void 0:t.business_recurring_payments)}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{additional_questions:new l(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n,a;const l=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Additional Questions"),t("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business’ estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==l?void 0:l.business_revenue,maskOptions:u.WHOLE})),t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==l?void 0:l.business_payment_volume,maskOptions:u.WHOLE})),t("div",{class:"col-12"},t("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:v,defaultValue:null==l?void 0:l.business_when_service_received})),t("div",{class:"col-12"},t("form-control-select",{name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_recurring_payments,options:b,defaultValue:null==l?void 0:l.business_recurring_payments})),t("div",{class:"col-12",hidden:!this.recurringPayments},t("form-control-text",{name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==l?void 0:l.business_recurring_payments_percentage,helpText:"For example: 50% monthly, 50% annual."})),t("div",{class:"col-12"},t("form-control-select",{name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:y,defaultValue:null==l?void 0:l.business_seasonal})),t("div",{class:"col-12"},t("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_other_payment_details,defaultValue:null==l?void 0:l.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},R=(t,s)=>t.some((t=>t.document_type===s)),N="Please upload either a voided check or a bank statement. Only one is required.",X=(t,s)=>{const e=R(t,x.voidedCheck),i=R(t,x.bankStatement),r=e||i,o=n().shape({bank_name:L.required("Enter bank name"),nickname:H.required("Enter nickname"),account_owner_name:O.required("Enter account owner name"),account_type:C.required("Select account type"),account_number:T.required("Enter account number"),routing_number:S.required("Enter routing number"),voided_check:a().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(N),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(N),otherwise:t=>t.notRequired()})},[["voided_check","bank_statement"]]),l=n({bank_name:L.nullable(),nickname:H.nullable(),account_owner_name:O.nullable(),account_type:C.nullable(),account_number:T.nullable(),routing_number:S.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},Y=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new j,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(X(this.existingDocuments,this.allowOptionalFields)),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new k({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new W(t.data.bank_accounts[0]):(this.bankAccount=new W({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:E.POST_ERROR,message:s.error.message,severity:D.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await t.getFileData(),e=await fetch(t.presigned_url,{method:"PUT",body:s});return this.handleUploadResponse(e)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:E.POST_ERROR,message:t.error.message,severity:D.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(X(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){return new W(this.formController.values.getValue()).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:E.POST_ERROR,severity:D.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:w.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",{class:"mb-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Bank Account Info"),t("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),t("hr",{class:"mt-2"}),t("bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),t("fieldset",{class:"mt-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Document Uploads"),t("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),t("hr",{class:"mt-2"}),t("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),t("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},M=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new h(t.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new h(this.formController.values.getValue()).payload}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(r(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){const s=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Business Information")),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:s.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),t("div",{class:"col-12"},t("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:s.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),t("div",{class:"col-12 col-md-8"},t("form-control-select",{name:"classification",label:"Business Classification",options:g,defaultValue:s.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-4"},t("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:s.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"industry",label:"Industry",defaultValue:s.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:s.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:B,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."})),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:s.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:s.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})))))}},Q=class{constructor(t){s(this,t),this.clickEvent=e(this,"click-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.matchRef=(t,s)=>{const e=this.refs.findIndex((t=>t===s));-1!==e&&(this.refs[e]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:_.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((s=>s.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)}}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const s=this.refs.map((t=>t.validate()));if(!(await Promise.all(s)).every((t=>t)))return;const e=this.refs.map((t=>t.submit()));(await Promise.all(e)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const s=t.detail,e=this.ownersPayload.map((t=>t.id===s.id?s:t));e.includes(s)||(e[this.ownersPayload.findIndex((t=>!t.id))]=s,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?t(F,null):t("div",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Owners"),t("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},this.ownersPayload.map((s=>t("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),t("div",{class:"d-flex justify-content-start"},t("div",{class:"gap-2"},t(A,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},Z=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new c(t.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(P("representative",this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(F,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},G=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.legal_address=new d(t.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new d(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(V(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n;const a=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Legal Address of your Business"),t("form-control-tooltip",{helpText:"No PO Boxes."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line1,errorText:null===(s=this.errors)||void 0===s?void 0:s.line1})),t("div",{class:"col-12"},t("form-control-text",{name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line2,errorText:null===(e=this.errors)||void 0===e?void 0:e.line2})),t("div",{class:"col-12"},t("form-control-text",{name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.city,errorText:null===(i=this.errors)||void 0===i?void 0:i.city})),t("div",{class:"col-12"},t("form-control-select",{name:"state",label:"State",options:I,inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.state,errorText:null===(r=this.errors)||void 0===r?void 0:r.state})),t("div",{class:"col-12"},t("form-control-text",{name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:B})),t("div",{class:"col-12"},t("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{U as justifi_additional_questions_form_step_core,Y as justifi_business_bank_account_form_step_core,M as justifi_business_core_info_form_step_core,Q as justifi_business_owners_form_step_core,Z as justifi_business_representative_form_step_core,G as justifi_legal_address_form_step_core}
@@ -0,0 +1 @@
1
+ import{h as e,r as t,c as a}from"./p-qipqIMyC.js";import{e as s,d as i}from"./p-BHf9IqGw.js";import{a as d,b as c,D as f,c as r,C as o,E as l}from"./p-BIPdn2VU.js";import{B as b}from"./p-D6XirF21.js";import{S as h}from"./p-CLQx9p9q.js";import"./p-CZfYo5-1.js";import{M as n}from"./p-fUtq2xDs.js";import{S as p}from"./p-Xv8DuU3Y.js";import{a as y,B as v}from"./p-D--yCspA.js";import"./p-HXpYMWUU.js";import"./p-RvUQ__Pq.js";const u=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(p,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(p,{width:"70%"})),e("div",{class:"col-12"},e(p,{width:"40%"})),e("div",{class:"col-12"},e(p,{width:"40%"})),e("div",{class:"col-12"},e(p,{width:"100%"})),e("div",{class:"col-12"},e(p,{width:"80%"}))),m=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event"),this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})}}componentWillLoad(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}render(){var t;return e(h,{key:"142cd93a5538d48542c001dfaf8ecf0a8f0649e1"},this.loading&&e(u,{key:"e4a301d09a48776c7cbc3c9b606e42558748301b"}),!this.loading&&this.errorMessage&&l(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"65c7a12cf23056d1940d08b0c3ff96368c601720","error-message":this.errorMessage},e(d,{key:"ef299affbf2facfb03f4af8f7d8933fb7cc0dac5",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},n(null===(t=this.payout)||void 0===t?void 0:t.status),e(y,"expedited"===this.payout.settlement_priority?{variant:v.WARNING,title:"Expedited",text:"Expedited"}:{variant:v.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(c,{key:"585d7d174f20f6b49e3fce34e0e236a89b90d083",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payout.updated_at)} ${i(this.payout.updated_at)}`}),e(c,{key:"6066bfdaef670375ae97453d84422228d2a5eead",classes:"border-1 border-end",title:"Created At",value:`${s(this.payout.created_at)} ${i(this.payout.created_at)}`}),e(c,{key:"7e526cbd6e31ca6139c8f31e7946749a59905fea",title:"ID",value:this.payout.id}),e("div",{key:"eeeab1a03a0097c3c1be036d6f3f2a72dfb376dc",class:"m-4"},e(b,{key:"ac90d236d37a925c157b99e1c348128bb0835060",variant:"secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"3d01f52695bb407cba4a2166ebbd90d09580cbe9",slot:"detail-sections"},e(f,{key:"ec7727a7c9a93bd51ae670f20c1453538676a95c",sectionTitle:"Details"}),e("div",{key:"469fad5f27810729811fba91c4a4275d27cbf18e",class:"d-table gap-2 w-100"},e(r,{key:"5f32a3e8631fdd2d047f5ccd933e200322d50de2",title:"Date paid",value:s(this.payout.deposits_at)}),e(r,{key:"807284a840687b7257176366ff06f5150ba4a0ad",title:"Statement Description",value:this.payout.description}),e(r,{key:"908464c42582f596e114c18f873ec3b3eac332ed",title:"Payout Method",value:this.payout.delivery_method}),e(r,{key:"736b86cfb1cbfaad58e042e6a936db4237e5fbb7",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(r,{key:"919453e082a6f8534df07f3fd2cd0ffc6bf81539",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(f,{key:"7b033d532fa94ddb0a6e53861d126a50601f8bdf",sectionTitle:"Account"}),e("div",{key:"373c6745a0ab57d21fa88e9a470e63bd8c0ad999",class:"d-table gap-2 w-100"},e(r,{key:"ea140c2b46fd503a85c97ec9cd5859fa8c0fc8e3",title:"ID",value:this.payout.account_id}),e(r,{key:"d94a8db9bdc0f5ab359e3cb7b9c0cfb1002db550",title:"Account Type",value:this.payout.bank_account.account_type}),e(r,{key:"5317a5bef89080a7e70732025ab030674fcb79c3",title:"Institution",value:this.payout.bank_account.account_type}),e(r,{key:"f46e83995276c83361933381bc620336ef44f166",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(r,{key:"933aee12e24e152a5a8628f303b7c7e9709baf64",title:"Account Number",value:this.payout.bank_account.account_number_last4})),this.payout.metadata&&[e(f,{key:"1e5233f88f9254c0a5525032470273e2f58ed59c",sectionTitle:"Metadata"}),e("div",{key:"63678c1f4eb207a4aced6f132e95c7cd646da9a3",class:"d-table gap-2 w-100"},e(o,{key:"7e5095e9be051524e8ab17ffe380b1315c5f7c98",metadata:this.payout.metadata}))])))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{m as payout_details_core}
@@ -1 +1 @@
1
- import{r as t,c as n,h as e}from"./p-Bn7inNWG.js";import{aw as r,ax as i,ay as o}from"./p-RvUQ__Pq.js";var a="top",u="bottom",f="right",s="left",c="auto",l=[a,u,f,s],p="start",d="end",h="viewport",v="popper",b=l.reduce((function(t,n){return t.concat([n+"-"+p,n+"-"+d])}),[]),m=[].concat(l,[c]).reduce((function(t,n){return t.concat([n,n+"-"+p,n+"-"+d])}),[]),y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function w(t){return t?(t.nodeName||"").toLowerCase():null}function x(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function g(t){return t instanceof x(t).Element||t instanceof Element}function O(t){return t instanceof x(t).HTMLElement||t instanceof HTMLElement}function j(t){return"undefined"!=typeof ShadowRoot&&(t instanceof x(t).ShadowRoot||t instanceof ShadowRoot)}function k(t){return t.split("-")[0]}var M=Math.max,q=Math.min,E=Math.round;function B(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function A(){return!/^((?!chrome|android).)*safari/i.test(B())}function P(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=t.getBoundingClientRect(),i=1,o=1;n&&O(t)&&(i=t.offsetWidth>0&&E(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&E(r.height)/t.offsetHeight||1);var a=(g(t)?x(t):window).visualViewport,u=!A()&&e,f=(r.left+(u&&a?a.offsetLeft:0))/i,s=(r.top+(u&&a?a.offsetTop:0))/o,c=r.width/i,l=r.height/o;return{width:c,height:l,top:s,right:f+c,bottom:s+l,left:f,x:f,y:s}}function R(t){var n=P(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function W(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&j(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function L(t){return x(t).getComputedStyle(t)}function S(t){return["table","td","th"].indexOf(w(t))>=0}function _(t){return((g(t)?t.ownerDocument:t.document)||window.document).documentElement}function z(t){return"html"===w(t)?t:t.assignedSlot||t.parentNode||(j(t)?t.host:null)||_(t)}function C(t){return O(t)&&"fixed"!==L(t).position?t.offsetParent:null}function H(t){for(var n=x(t),e=C(t);e&&S(e)&&"static"===L(e).position;)e=C(e);return e&&("html"===w(e)||"body"===w(e)&&"static"===L(e).position)?n:e||function(t){var n=/firefox/i.test(B());if(/Trident/i.test(B())&&O(t)&&"fixed"===L(t).position)return null;var e=z(t);for(j(e)&&(e=e.host);O(e)&&["html","body"].indexOf(w(e))<0;){var r=L(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function T(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function I(t,n,e){return M(t,q(n,e))}function V(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function D(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function U(t){return t.split("-")[1]}var F={top:"auto",right:"auto",bottom:"auto",left:"auto"};function G(t){var n,e=t.popper,r=t.popperRect,i=t.placement,o=t.variation,c=t.offsets,l=t.position,p=t.gpuAcceleration,h=t.adaptive,v=t.roundOffsets,b=t.isFixed,m=c.x,y=void 0===m?0:m,w=c.y,g=void 0===w?0:w,O="function"==typeof v?v({x:y,y:g}):{x:y,y:g};y=O.x,g=O.y;var j=c.hasOwnProperty("x"),k=c.hasOwnProperty("y"),M=s,q=a,B=window;if(h){var A=H(e),P="clientHeight",R="clientWidth";A===x(e)&&"static"!==L(A=_(e)).position&&"absolute"===l&&(P="scrollHeight",R="scrollWidth"),(i===a||(i===s||i===f)&&o===d)&&(q=u,g-=(b&&A===B&&B.visualViewport?B.visualViewport.height:A[P])-r.height,g*=p?1:-1),i!==s&&(i!==a&&i!==u||o!==d)||(M=f,y-=(b&&A===B&&B.visualViewport?B.visualViewport.width:A[R])-r.width,y*=p?1:-1)}var W,S=Object.assign({position:l},h&&F),z=!0===v?function(t,n){var e=t.y,r=n.devicePixelRatio||1;return{x:E(t.x*r)/r||0,y:E(e*r)/r||0}}({x:y,y:g},x(e)):{x:y,y:g};return y=z.x,g=z.y,Object.assign({},S,p?((W={})[q]=k?"0":"",W[M]=j?"0":"",W.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",W):((n={})[q]=k?g+"px":"",n[M]=j?y+"px":"",n.transform="",n))}var N={passive:!0},Q={left:"right",right:"left",bottom:"top",top:"bottom"};function J(t){return t.replace(/left|right|bottom|top/g,(function(t){return Q[t]}))}var K={start:"end",end:"start"};function X(t){return t.replace(/start|end/g,(function(t){return K[t]}))}function Y(t){var n=x(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Z(t){return P(_(t)).left+Y(t).scrollLeft}function $(t){var n=L(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function tt(t){return["html","body","#document"].indexOf(w(t))>=0?t.ownerDocument.body:O(t)&&$(t)?t:tt(z(t))}function nt(t,n){var e;void 0===n&&(n=[]);var r=tt(t),i=r===(null==(e=t.ownerDocument)?void 0:e.body),o=x(r),a=i?[o].concat(o.visualViewport||[],$(r)?r:[]):r,u=n.concat(a);return i?u:u.concat(nt(z(a)))}function et(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function rt(t,n,e){return n===h?et(function(t,n){var e=x(t),r=_(t),i=e.visualViewport,o=r.clientWidth,a=r.clientHeight,u=0,f=0;if(i){o=i.width,a=i.height;var s=A();(s||!s&&"fixed"===n)&&(u=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:u+Z(t),y:f}}(t,e)):g(n)?function(t,n){var e=P(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):et(function(t){var n,e=_(t),r=Y(t),i=null==(n=t.ownerDocument)?void 0:n.body,o=M(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=M(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+Z(t),f=-r.scrollTop;return"rtl"===L(i||e).direction&&(u+=M(e.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}(_(t)))}function it(t){var n,e=t.reference,r=t.element,i=t.placement,o=i?k(i):null,c=i?U(i):null,l=e.x+e.width/2-r.width/2,h=e.y+e.height/2-r.height/2;switch(o){case a:n={x:l,y:e.y-r.height};break;case u:n={x:l,y:e.y+e.height};break;case f:n={x:e.x+e.width,y:h};break;case s:n={x:e.x-r.width,y:h};break;default:n={x:e.x,y:e.y}}var v=o?T(o):null;if(null!=v){var b="y"===v?"height":"width";switch(c){case p:n[v]=n[v]-(e[b]/2-r[b]/2);break;case d:n[v]=n[v]+(e[b]/2-r[b]/2)}}return n}function ot(t,n){void 0===n&&(n={});var e=n.placement,r=void 0===e?t.placement:e,i=n.strategy,o=void 0===i?t.strategy:i,s=n.boundary,c=void 0===s?"clippingParents":s,p=n.rootBoundary,d=void 0===p?h:p,b=n.elementContext,m=void 0===b?v:b,y=n.altBoundary,x=void 0!==y&&y,j=n.padding,k=void 0===j?0:j,E=V("number"!=typeof k?k:D(k,l)),B=t.rects.popper,A=t.elements[x?m===v?"reference":v:m],R=function(t,n,e,r){var i="clippingParents"===n?function(t){var n=nt(z(t)),e=["absolute","fixed"].indexOf(L(t).position)>=0&&O(t)?H(t):t;return g(e)?n.filter((function(t){return g(t)&&W(t,e)&&"body"!==w(t)})):[]}(t):[].concat(n),o=[].concat(i,[e]),a=o.reduce((function(n,e){var i=rt(t,e,r);return n.top=M(i.top,n.top),n.right=q(i.right,n.right),n.bottom=q(i.bottom,n.bottom),n.left=M(i.left,n.left),n}),rt(t,o[0],r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(g(A)?A:A.contextElement||_(t.elements.popper),c,d,o),S=P(t.elements.reference),C=it({reference:S,element:B,placement:r}),T=et(Object.assign({},B,C)),I=m===v?T:S,U={top:R.top-I.top+E.top,bottom:I.bottom-R.bottom+E.bottom,left:R.left-I.left+E.left,right:I.right-R.right+E.right},F=t.modifiersData.offset;if(m===v&&F){var G=F[r];Object.keys(U).forEach((function(t){var n=[f,u].indexOf(t)>=0?1:-1,e=[a,u].indexOf(t)>=0?"y":"x";U[t]+=G[e]*n}))}return U}function at(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,i=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,u=void 0===a?m:a,f=U(n.placement),s=f?o?b:b.filter((function(t){return U(t)===f})):l,c=s.filter((function(t){return u.indexOf(t)>=0}));0===c.length&&(c=s);var p=c.reduce((function(n,o){return n[o]=ot(t,{placement:o,boundary:e,rootBoundary:r,padding:i})[k(o)],n}),{});return Object.keys(p).sort((function(t,n){return p[t]-p[n]}))}var ut={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,r=t.name;if(!n.modifiersData[r]._skip){for(var i=e.mainAxis,o=void 0===i||i,l=e.altAxis,d=void 0===l||l,h=e.fallbackPlacements,v=e.padding,b=e.boundary,m=e.rootBoundary,y=e.altBoundary,w=e.flipVariations,x=void 0===w||w,g=e.allowedAutoPlacements,O=n.options.placement,j=k(O),M=h||(j!==O&&x?function(t){if(k(t)===c)return[];var n=J(t);return[X(t),n,X(n)]}(O):[J(O)]),q=[O].concat(M).reduce((function(t,e){return t.concat(k(e)===c?at(n,{placement:e,boundary:b,rootBoundary:m,padding:v,flipVariations:x,allowedAutoPlacements:g}):e)}),[]),E=n.rects.reference,B=n.rects.popper,A=new Map,P=!0,R=q[0],W=0;W<q.length;W++){var L=q[W],S=k(L),_=U(L)===p,z=[a,u].indexOf(S)>=0,C=z?"width":"height",H=ot(n,{placement:L,boundary:b,rootBoundary:m,altBoundary:y,padding:v}),T=z?_?f:s:_?u:a;E[C]>B[C]&&(T=J(T));var I=J(T),V=[];if(o&&V.push(H[S]<=0),d&&V.push(H[T]<=0,H[I]<=0),V.every((function(t){return t}))){R=L,P=!1;break}A.set(L,V)}if(P)for(var D=function(t){var n=q.find((function(n){var e=A.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return R=n,"break"},F=x?3:1;F>0&&"break"!==D(F);F--);n.placement!==R&&(n.modifiersData[r]._skip=!0,n.placement=R,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ft(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function st(t){return[a,f,u,s].some((function(n){return t[n]>=0}))}function ct(t,n,e){void 0===e&&(e=!1);var r,i,o=O(n),a=O(n)&&function(t){var n=t.getBoundingClientRect(),e=E(n.width)/t.offsetWidth||1,r=E(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),u=_(n),f=P(t,a,e),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!e)&&(("body"!==w(n)||$(u))&&(s=(r=n)!==x(r)&&O(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:Y(r)),O(n)?((c=P(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):u&&(c.x=Z(u))),{x:f.left+s.scrollLeft-c.x,y:f.top+s.scrollTop-c.y,width:f.width,height:f.height}}function lt(t){var n=new Map,e=new Set,r=[];function i(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||i(t)})),r}var pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ht(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?pt:r;return function(t,n,r){void 0===r&&(r=i);var o,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},pt,i),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},f=[],s=!1,c={state:u,setOptions:function(r){var o="function"==typeof r?r(u.options):r;l(),u.options=Object.assign({},i,u.options,o),u.scrollParents={reference:g(t)?nt(t):t.contextElement?nt(t.contextElement):[],popper:nt(n)};var a,s,p=function(t){var n=lt(t);return y.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((a=[].concat(e,u.options.modifiers),s=a.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(s).map((function(t){return s[t]}))));return u.orderedModifiers=p.filter((function(t){return t.enabled})),u.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:u,name:t.name,instance:c,options:void 0===n?{}:n});f.push(r||function(){})}})),c.update()},forceUpdate:function(){if(!s){var t=u.elements,n=t.reference,e=t.popper;if(dt(n,e)){u.rects={reference:ct(n,H(e),"fixed"===u.options.strategy),popper:R(e)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(t){return u.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var i=u.orderedModifiers[r],o=i.fn,a=i.options;"function"==typeof o&&(u=o({state:u,options:void 0===a?{}:a,name:i.name,instance:c})||u)}else u.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(t){c.forceUpdate(),t(u)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){l(),s=!0}};if(!dt(t,n))return c;function l(){f.forEach((function(t){return t()})),f=[]}return c.setOptions(r).then((function(t){!s&&r.onFirstUpdate&&r.onFirstUpdate(t)})),c}}var vt=ht({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,u=void 0===a||a,f=x(n.elements.popper),s=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&s.forEach((function(t){t.addEventListener("scroll",e.update,N)})),u&&f.addEventListener("resize",e.update,N),function(){o&&s.forEach((function(t){t.removeEventListener("scroll",e.update,N)})),u&&f.removeEventListener("resize",e.update,N)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=it({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,i=void 0===r||r,o=e.adaptive,a=void 0===o||o,u=e.roundOffsets,f=void 0===u||u,s={placement:k(n.placement),variation:U(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:i,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,G(Object.assign({},s,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:f})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,G(Object.assign({},s,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},i=n.elements[t];O(i)&&w(i)&&(Object.assign(i.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?i.removeAttribute(t):i.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],i=n.attributes[t]||{},o=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});O(r)&&w(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,e=t.name,r=t.options.offset,i=void 0===r?[0,0]:r,o=m.reduce((function(t,e){return t[e]=function(t,n,e){var r=k(t),i=[s,a].indexOf(r)>=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,u=o[0],c=o[1];return u=u||0,c=(c||0)*i,[s,f].indexOf(r)>=0?{x:c,y:u}:{x:u,y:c}}(e,n.rects,i),t}),{}),u=o[n.placement],c=u.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=u.x,n.modifiersData.popperOffsets.y+=c),n.modifiersData[e]=o}},ut,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,r=t.name,i=e.mainAxis,o=void 0===i||i,c=e.altAxis,l=void 0!==c&&c,d=e.tether,h=void 0===d||d,v=e.tetherOffset,b=void 0===v?0:v,m=ot(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),y=k(n.placement),w=U(n.placement),x=!w,g=T(y),O="x"===g?"y":"x",j=n.modifiersData.popperOffsets,E=n.rects.reference,B=n.rects.popper,A="function"==typeof b?b(Object.assign({},n.rects,{placement:n.placement})):b,P="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),W=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,L={x:0,y:0};if(j){if(o){var S,_="y"===g?a:s,z="y"===g?u:f,C="y"===g?"height":"width",V=j[g],D=V+m[_],F=V-m[z],G=h?-B[C]/2:0,N=w===p?E[C]:B[C],Q=w===p?-B[C]:-E[C],J=n.elements.arrow,K=h&&J?R(J):{width:0,height:0},X=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=X[_],Z=X[z],$=I(0,E[C],K[C]),tt=x?E[C]/2-G-$-Y-P.mainAxis:N-$-Y-P.mainAxis,nt=x?-E[C]/2+G+$+Z+P.mainAxis:Q+$+Z+P.mainAxis,et=n.elements.arrow&&H(n.elements.arrow),rt=null!=(S=null==W?void 0:W[g])?S:0,it=V+nt-rt,at=I(h?q(D,V+tt-rt-(et?"y"===g?et.clientTop||0:et.clientLeft||0:0)):D,V,h?M(F,it):F);j[g]=at,L[g]=at-V}if(l){var ut,ft=j[O],st="y"===O?"height":"width",ct=ft+m["x"===g?a:s],lt=ft-m["x"===g?u:f],pt=-1!==[a,s].indexOf(y),dt=null!=(ut=null==W?void 0:W[O])?ut:0,ht=pt?ct:ft-E[st]-B[st]-dt+P.altAxis,vt=pt?ft+E[st]+B[st]-dt-P.altAxis:lt,bt=h&&pt?function(t,n,e){var r=I(t,n,e);return r>e?e:r}(ht,ft,vt):I(h?ht:ct,ft,h?vt:lt);j[O]=bt,L[O]=bt-ft}n.modifiersData[r]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,r=t.name,i=t.options,o=e.elements.arrow,c=e.modifiersData.popperOffsets,p=k(e.placement),d=T(p),h=[s,f].indexOf(p)>=0?"height":"width";if(o&&c){var v=function(t,n){return V("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:D(t,l))}(i.padding,e),b=R(o),m="y"===d?a:s,y="y"===d?u:f,w=e.rects.reference[h]+e.rects.reference[d]-c[d]-e.rects.popper[h],x=c[d]-e.rects.reference[d],g=H(o),O=g?"y"===d?g.clientHeight||0:g.clientWidth||0:0,j=O/2-b[h]/2+(w/2-x/2),M=I(v[m],j,O-b[h]-v[y]);e.modifiersData[r]=((n={})[d]=M,n.centerOffset=M-j,n)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&W(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,i=n.rects.popper,o=n.modifiersData.preventOverflow,a=ot(n,{elementContext:"reference"}),u=ot(n,{altBoundary:!0}),f=ft(a,r),s=ft(u,i,o),c=st(f),l=st(s);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:l},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":l})}}]});const bt=class{constructor(e){t(this,e),this.showEvent=n(this,"showEvent"),this.hideEvent=n(this,"hideEvent"),this.placement="bottom",this.offset=[0,10],this.strategy="absolute",this.trigger="click",this.isOpen=!1}componentDidLoad(){this.popperInstance=vt(this.anchorRef,this.popperContentRef,this.popperOptions),"click"===this.trigger?window.addEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.addEventListener("mouseenter",this.show.bind(this)),this.anchorRef.addEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.addEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.addEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.addEventListener("focus",this.show.bind(this)),this.anchorRef.addEventListener("blur",this.hide.bind(this)))}disconnectedCallback(){"click"===this.trigger?window.removeEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.removeEventListener("mouseenter",this.show.bind(this)),this.anchorRef.removeEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.removeEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.removeEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.removeEventListener("focus",this.show.bind(this)),this.anchorRef.removeEventListener("blur",this.hide.bind(this)))}handleClick(t){const n=t.composedPath(),e=n.includes(this.anchorRef),r=n.includes(this.popperContentRef);!this.isOpen&&e?this.show():(this.isOpen&&!r||this.isOpen&&e)&&this.hide()}get popperOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset}}],strategy:this.strategy}}show(){this.isOpen=!0,this.popperContentRef.setAttribute("data-show",""),this.popperInstance.update(),this.showEvent.emit()}hide(){this.isOpen=!1,this.popperContentRef.removeAttribute("data-show"),this.popperInstance.update(),this.hideEvent.emit()}render(){return e("div",{key:"8bfc9503d439750dac5b1d7bf57b52a679342203"},e("style",{key:"c9b621af52af23eca1b31d212d212e9e1851efb4"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),e("div",{key:"278b302602f6694c3d8897a11caffe8053396e14",class:"popper-content",ref:t=>this.popperContentRef=t},e("slot",{key:"512ccb791eaddb6d215f15257c4b09e0aad009c8"})))}},mt=class{constructor(n){t(this,n)}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?e("div",{class:"tooltip-container"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:o},e("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),e("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),e("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},e("div",{class:"tooltip bs-tooltip-top",part:r,role:"tooltip",ref:t=>this.tooltip=t},e("div",{class:"tooltip-inner",part:i},this.helpText)))):null}};export{bt as custom_popper,mt as form_control_tooltip}
1
+ import{r as t,c as n,h as e}from"./p-qipqIMyC.js";import{aw as r,ax as i,ay as o}from"./p-RvUQ__Pq.js";var a="top",u="bottom",f="right",c="left",s="auto",l=[a,u,f,c],p="start",d="end",h="viewport",v="popper",b=l.reduce((function(t,n){return t.concat([n+"-"+p,n+"-"+d])}),[]),m=[].concat(l,[s]).reduce((function(t,n){return t.concat([n,n+"-"+p,n+"-"+d])}),[]),y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function w(t){return t?(t.nodeName||"").toLowerCase():null}function x(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function g(t){return t instanceof x(t).Element||t instanceof Element}function O(t){return t instanceof x(t).HTMLElement||t instanceof HTMLElement}function j(t){return"undefined"!=typeof ShadowRoot&&(t instanceof x(t).ShadowRoot||t instanceof ShadowRoot)}function k(t){return t.split("-")[0]}var M=Math.max,q=Math.min,E=Math.round;function A(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function B(){return!/^((?!chrome|android).)*safari/i.test(A())}function P(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=t.getBoundingClientRect(),i=1,o=1;n&&O(t)&&(i=t.offsetWidth>0&&E(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&E(r.height)/t.offsetHeight||1);var a=(g(t)?x(t):window).visualViewport,u=!B()&&e,f=(r.left+(u&&a?a.offsetLeft:0))/i,c=(r.top+(u&&a?a.offsetTop:0))/o,s=r.width/i,l=r.height/o;return{width:s,height:l,top:c,right:f+s,bottom:c+l,left:f,x:f,y:c}}function R(t){var n=P(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function C(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&j(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function L(t){return x(t).getComputedStyle(t)}function S(t){return["table","td","th"].indexOf(w(t))>=0}function W(t){return((g(t)?t.ownerDocument:t.document)||window.document).documentElement}function _(t){return"html"===w(t)?t:t.assignedSlot||t.parentNode||(j(t)?t.host:null)||W(t)}function z(t){return O(t)&&"fixed"!==L(t).position?t.offsetParent:null}function H(t){for(var n=x(t),e=z(t);e&&S(e)&&"static"===L(e).position;)e=z(e);return e&&("html"===w(e)||"body"===w(e)&&"static"===L(e).position)?n:e||function(t){var n=/firefox/i.test(A());if(/Trident/i.test(A())&&O(t)&&"fixed"===L(t).position)return null;var e=_(t);for(j(e)&&(e=e.host);O(e)&&["html","body"].indexOf(w(e))<0;){var r=L(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function I(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function T(t,n,e){return M(t,q(n,e))}function V(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function D(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function U(t){return t.split("-")[1]}var F={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(t){var n,e=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,l=t.position,p=t.gpuAcceleration,h=t.adaptive,v=t.roundOffsets,b=t.isFixed,m=s.x,y=void 0===m?0:m,w=s.y,g=void 0===w?0:w,O="function"==typeof v?v({x:y,y:g}):{x:y,y:g};y=O.x,g=O.y;var j=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),M=c,q=a,A=window;if(h){var B=H(e),P="clientHeight",R="clientWidth";B===x(e)&&"static"!==L(B=W(e)).position&&"absolute"===l&&(P="scrollHeight",R="scrollWidth"),(i===a||(i===c||i===f)&&o===d)&&(q=u,g-=(b&&B===A&&A.visualViewport?A.visualViewport.height:B[P])-r.height,g*=p?1:-1),i!==c&&(i!==a&&i!==u||o!==d)||(M=f,y-=(b&&B===A&&A.visualViewport?A.visualViewport.width:B[R])-r.width,y*=p?1:-1)}var C,S=Object.assign({position:l},h&&F),_=!0===v?function(t,n){var e=t.y,r=n.devicePixelRatio||1;return{x:E(t.x*r)/r||0,y:E(e*r)/r||0}}({x:y,y:g},x(e)):{x:y,y:g};return y=_.x,g=_.y,Object.assign({},S,p?((C={})[q]=k?"0":"",C[M]=j?"0":"",C.transform=(A.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",C):((n={})[q]=k?g+"px":"",n[M]=j?y+"px":"",n.transform="",n))}var G={passive:!0},J={left:"right",right:"left",bottom:"top",top:"bottom"};function K(t){return t.replace(/left|right|bottom|top/g,(function(t){return J[t]}))}var N={start:"end",end:"start"};function X(t){return t.replace(/start|end/g,(function(t){return N[t]}))}function Y(t){var n=x(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Z(t){return P(W(t)).left+Y(t).scrollLeft}function $(t){var n=L(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function tt(t){return["html","body","#document"].indexOf(w(t))>=0?t.ownerDocument.body:O(t)&&$(t)?t:tt(_(t))}function nt(t,n){var e;void 0===n&&(n=[]);var r=tt(t),i=r===(null==(e=t.ownerDocument)?void 0:e.body),o=x(r),a=i?[o].concat(o.visualViewport||[],$(r)?r:[]):r,u=n.concat(a);return i?u:u.concat(nt(_(a)))}function et(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function rt(t,n,e){return n===h?et(function(t,n){var e=x(t),r=W(t),i=e.visualViewport,o=r.clientWidth,a=r.clientHeight,u=0,f=0;if(i){o=i.width,a=i.height;var c=B();(c||!c&&"fixed"===n)&&(u=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:u+Z(t),y:f}}(t,e)):g(n)?function(t,n){var e=P(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):et(function(t){var n,e=W(t),r=Y(t),i=null==(n=t.ownerDocument)?void 0:n.body,o=M(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=M(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+Z(t),f=-r.scrollTop;return"rtl"===L(i||e).direction&&(u+=M(e.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}(W(t)))}function it(t){var n,e=t.reference,r=t.element,i=t.placement,o=i?k(i):null,s=i?U(i):null,l=e.x+e.width/2-r.width/2,h=e.y+e.height/2-r.height/2;switch(o){case a:n={x:l,y:e.y-r.height};break;case u:n={x:l,y:e.y+e.height};break;case f:n={x:e.x+e.width,y:h};break;case c:n={x:e.x-r.width,y:h};break;default:n={x:e.x,y:e.y}}var v=o?I(o):null;if(null!=v){var b="y"===v?"height":"width";switch(s){case p:n[v]=n[v]-(e[b]/2-r[b]/2);break;case d:n[v]=n[v]+(e[b]/2-r[b]/2)}}return n}function ot(t,n){void 0===n&&(n={});var e=n.placement,r=void 0===e?t.placement:e,i=n.strategy,o=void 0===i?t.strategy:i,c=n.boundary,s=void 0===c?"clippingParents":c,p=n.rootBoundary,d=void 0===p?h:p,b=n.elementContext,m=void 0===b?v:b,y=n.altBoundary,x=void 0!==y&&y,j=n.padding,k=void 0===j?0:j,E=V("number"!=typeof k?k:D(k,l)),A=t.rects.popper,B=t.elements[x?m===v?"reference":v:m],R=function(t,n,e,r){var i="clippingParents"===n?function(t){var n=nt(_(t)),e=["absolute","fixed"].indexOf(L(t).position)>=0&&O(t)?H(t):t;return g(e)?n.filter((function(t){return g(t)&&C(t,e)&&"body"!==w(t)})):[]}(t):[].concat(n),o=[].concat(i,[e]),a=o.reduce((function(n,e){var i=rt(t,e,r);return n.top=M(i.top,n.top),n.right=q(i.right,n.right),n.bottom=q(i.bottom,n.bottom),n.left=M(i.left,n.left),n}),rt(t,o[0],r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(g(B)?B:B.contextElement||W(t.elements.popper),s,d,o),S=P(t.elements.reference),z=it({reference:S,element:A,placement:r}),I=et(Object.assign({},A,z)),T=m===v?I:S,U={top:R.top-T.top+E.top,bottom:T.bottom-R.bottom+E.bottom,left:R.left-T.left+E.left,right:T.right-R.right+E.right},F=t.modifiersData.offset;if(m===v&&F){var Q=F[r];Object.keys(U).forEach((function(t){var n=[f,u].indexOf(t)>=0?1:-1,e=[a,u].indexOf(t)>=0?"y":"x";U[t]+=Q[e]*n}))}return U}function at(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,i=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,u=void 0===a?m:a,f=U(n.placement),c=f?o?b:b.filter((function(t){return U(t)===f})):l,s=c.filter((function(t){return u.indexOf(t)>=0}));0===s.length&&(s=c);var p=s.reduce((function(n,o){return n[o]=ot(t,{placement:o,boundary:e,rootBoundary:r,padding:i})[k(o)],n}),{});return Object.keys(p).sort((function(t,n){return p[t]-p[n]}))}var ut={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,r=t.name;if(!n.modifiersData[r]._skip){for(var i=e.mainAxis,o=void 0===i||i,l=e.altAxis,d=void 0===l||l,h=e.fallbackPlacements,v=e.padding,b=e.boundary,m=e.rootBoundary,y=e.altBoundary,w=e.flipVariations,x=void 0===w||w,g=e.allowedAutoPlacements,O=n.options.placement,j=k(O),M=h||(j!==O&&x?function(t){if(k(t)===s)return[];var n=K(t);return[X(t),n,X(n)]}(O):[K(O)]),q=[O].concat(M).reduce((function(t,e){return t.concat(k(e)===s?at(n,{placement:e,boundary:b,rootBoundary:m,padding:v,flipVariations:x,allowedAutoPlacements:g}):e)}),[]),E=n.rects.reference,A=n.rects.popper,B=new Map,P=!0,R=q[0],C=0;C<q.length;C++){var L=q[C],S=k(L),W=U(L)===p,_=[a,u].indexOf(S)>=0,z=_?"width":"height",H=ot(n,{placement:L,boundary:b,rootBoundary:m,altBoundary:y,padding:v}),I=_?W?f:c:W?u:a;E[z]>A[z]&&(I=K(I));var T=K(I),V=[];if(o&&V.push(H[S]<=0),d&&V.push(H[I]<=0,H[T]<=0),V.every((function(t){return t}))){R=L,P=!1;break}B.set(L,V)}if(P)for(var D=function(t){var n=q.find((function(n){var e=B.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return R=n,"break"},F=x?3:1;F>0&&"break"!==D(F);F--);n.placement!==R&&(n.modifiersData[r]._skip=!0,n.placement=R,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ft(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function ct(t){return[a,f,u,c].some((function(n){return t[n]>=0}))}function st(t,n,e){void 0===e&&(e=!1);var r,i,o=O(n),a=O(n)&&function(t){var n=t.getBoundingClientRect(),e=E(n.width)/t.offsetWidth||1,r=E(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),u=W(n),f=P(t,a,e),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!e)&&(("body"!==w(n)||$(u))&&(c=(r=n)!==x(r)&&O(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:Y(r)),O(n)?((s=P(n,!0)).x+=n.clientLeft,s.y+=n.clientTop):u&&(s.x=Z(u))),{x:f.left+c.scrollLeft-s.x,y:f.top+c.scrollTop-s.y,width:f.width,height:f.height}}function lt(t){var n=new Map,e=new Set,r=[];function i(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||i(t)})),r}var pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ht(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?pt:r;return function(t,n,r){void 0===r&&(r=i);var o,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},pt,i),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},f=[],c=!1,s={state:u,setOptions:function(r){var o="function"==typeof r?r(u.options):r;l(),u.options=Object.assign({},i,u.options,o),u.scrollParents={reference:g(t)?nt(t):t.contextElement?nt(t.contextElement):[],popper:nt(n)};var a,c,p=function(t){var n=lt(t);return y.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((a=[].concat(e,u.options.modifiers),c=a.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return u.orderedModifiers=p.filter((function(t){return t.enabled})),u.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:u,name:t.name,instance:s,options:void 0===n?{}:n});f.push(r||function(){})}})),s.update()},forceUpdate:function(){if(!c){var t=u.elements,n=t.reference,e=t.popper;if(dt(n,e)){u.rects={reference:st(n,H(e),"fixed"===u.options.strategy),popper:R(e)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(t){return u.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var i=u.orderedModifiers[r],o=i.fn,a=i.options;"function"==typeof o&&(u=o({state:u,options:void 0===a?{}:a,name:i.name,instance:s})||u)}else u.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(t){s.forceUpdate(),t(u)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){l(),c=!0}};if(!dt(t,n))return s;function l(){f.forEach((function(t){return t()})),f=[]}return s.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),s}}var vt=ht({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,u=void 0===a||a,f=x(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",e.update,G)})),u&&f.addEventListener("resize",e.update,G),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",e.update,G)})),u&&f.removeEventListener("resize",e.update,G)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=it({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,i=void 0===r||r,o=e.adaptive,a=void 0===o||o,u=e.roundOffsets,f=void 0===u||u,c={placement:k(n.placement),variation:U(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:i,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,Q(Object.assign({},c,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:f})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,Q(Object.assign({},c,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},i=n.elements[t];O(i)&&w(i)&&(Object.assign(i.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?i.removeAttribute(t):i.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],i=n.attributes[t]||{},o=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});O(r)&&w(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,e=t.name,r=t.options.offset,i=void 0===r?[0,0]:r,o=m.reduce((function(t,e){return t[e]=function(t,n,e){var r=k(t),i=[c,a].indexOf(r)>=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,u=o[0],s=o[1];return u=u||0,s=(s||0)*i,[c,f].indexOf(r)>=0?{x:s,y:u}:{x:u,y:s}}(e,n.rects,i),t}),{}),u=o[n.placement],s=u.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=u.x,n.modifiersData.popperOffsets.y+=s),n.modifiersData[e]=o}},ut,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,r=t.name,i=e.mainAxis,o=void 0===i||i,s=e.altAxis,l=void 0!==s&&s,d=e.tether,h=void 0===d||d,v=e.tetherOffset,b=void 0===v?0:v,m=ot(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),y=k(n.placement),w=U(n.placement),x=!w,g=I(y),O="x"===g?"y":"x",j=n.modifiersData.popperOffsets,E=n.rects.reference,A=n.rects.popper,B="function"==typeof b?b(Object.assign({},n.rects,{placement:n.placement})):b,P="number"==typeof B?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),C=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,L={x:0,y:0};if(j){if(o){var S,W="y"===g?a:c,_="y"===g?u:f,z="y"===g?"height":"width",V=j[g],D=V+m[W],F=V-m[_],Q=h?-A[z]/2:0,G=w===p?E[z]:A[z],J=w===p?-A[z]:-E[z],K=n.elements.arrow,N=h&&K?R(K):{width:0,height:0},X=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=X[W],Z=X[_],$=T(0,E[z],N[z]),tt=x?E[z]/2-Q-$-Y-P.mainAxis:G-$-Y-P.mainAxis,nt=x?-E[z]/2+Q+$+Z+P.mainAxis:J+$+Z+P.mainAxis,et=n.elements.arrow&&H(n.elements.arrow),rt=null!=(S=null==C?void 0:C[g])?S:0,it=V+nt-rt,at=T(h?q(D,V+tt-rt-(et?"y"===g?et.clientTop||0:et.clientLeft||0:0)):D,V,h?M(F,it):F);j[g]=at,L[g]=at-V}if(l){var ut,ft=j[O],ct="y"===O?"height":"width",st=ft+m["x"===g?a:c],lt=ft-m["x"===g?u:f],pt=-1!==[a,c].indexOf(y),dt=null!=(ut=null==C?void 0:C[O])?ut:0,ht=pt?st:ft-E[ct]-A[ct]-dt+P.altAxis,vt=pt?ft+E[ct]+A[ct]-dt-P.altAxis:lt,bt=h&&pt?function(t,n,e){var r=T(t,n,e);return r>e?e:r}(ht,ft,vt):T(h?ht:st,ft,h?vt:lt);j[O]=bt,L[O]=bt-ft}n.modifiersData[r]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,r=t.name,i=t.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,p=k(e.placement),d=I(p),h=[c,f].indexOf(p)>=0?"height":"width";if(o&&s){var v=function(t,n){return V("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:D(t,l))}(i.padding,e),b=R(o),m="y"===d?a:c,y="y"===d?u:f,w=e.rects.reference[h]+e.rects.reference[d]-s[d]-e.rects.popper[h],x=s[d]-e.rects.reference[d],g=H(o),O=g?"y"===d?g.clientHeight||0:g.clientWidth||0:0,j=O/2-b[h]/2+(w/2-x/2),M=T(v[m],j,O-b[h]-v[y]);e.modifiersData[r]=((n={})[d]=M,n.centerOffset=M-j,n)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&C(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,i=n.rects.popper,o=n.modifiersData.preventOverflow,a=ot(n,{elementContext:"reference"}),u=ot(n,{altBoundary:!0}),f=ft(a,r),c=ft(u,i,o),s=ct(f),l=ct(c);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:l},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":l})}}]});const bt=class{constructor(e){t(this,e),this.showEvent=n(this,"showEvent"),this.hideEvent=n(this,"hideEvent"),this.placement="bottom",this.offset=[0,10],this.strategy="absolute",this.trigger="click",this.isOpen=!1}componentDidLoad(){this.popperInstance=vt(this.anchorRef,this.popperContentRef,this.popperOptions),"click"===this.trigger?window.addEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.addEventListener("mouseenter",this.show.bind(this)),this.anchorRef.addEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.addEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.addEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.addEventListener("focus",this.show.bind(this)),this.anchorRef.addEventListener("blur",this.hide.bind(this)))}disconnectedCallback(){"click"===this.trigger?window.removeEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.removeEventListener("mouseenter",this.show.bind(this)),this.anchorRef.removeEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.removeEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.removeEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.removeEventListener("focus",this.show.bind(this)),this.anchorRef.removeEventListener("blur",this.hide.bind(this)))}handleClick(t){const n=t.composedPath(),e=n.includes(this.anchorRef),r=n.includes(this.popperContentRef);!this.isOpen&&e?this.show():(this.isOpen&&!r||this.isOpen&&e)&&this.hide()}get popperOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset}}],strategy:this.strategy}}show(){this.isOpen=!0,this.popperContentRef.setAttribute("data-show",""),this.popperInstance.update(),this.showEvent.emit()}hide(){this.isOpen=!1,this.popperContentRef.removeAttribute("data-show"),this.popperInstance.update(),this.hideEvent.emit()}render(){return e("div",{key:"6249f59c6bcced199fe4d509988644633d783b6b"},e("style",{key:"9d6a47ff5b927ebfb318b7d0852678f7ade406ca"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),e("div",{key:"311f13edc07bc1aea0569fb6c92fbbc241704529",class:"popper-content",ref:t=>this.popperContentRef=t},e("slot",{key:"93e806d8db16cd7c1b29ce6b6bec784c8126ab67"})))}},mt=class{constructor(n){t(this,n)}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?e("div",{class:"tooltip-container"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:o},e("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),e("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),e("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},e("div",{class:"tooltip bs-tooltip-top",part:r,role:"tooltip",ref:t=>this.tooltip=t},e("div",{class:"tooltip-inner",part:i},this.helpText)))):null}};export{bt as custom_popper,mt as form_control_tooltip}
@@ -0,0 +1 @@
1
+ import{r as e,h as t}from"./p-qipqIMyC.js";import{r as a}from"./p-RvUQ__Pq.js";import{S as o}from"./p-CLQx9p9q.js";import"./p-CZfYo5-1.js";const s=class{constructor(t){e(this,t)}render(){return t(o,{key:"276e7685b6f5b7430fdac887fa5f270245011f6d",class:"payment-method"},t("div",{key:"032431a1a0e3e97077c84f02288e3e0d1334e230",class:"radio-list-item p-3",part:a,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"33a53344736a2a5d8546cbec24cc6c4aaebf7629",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{s as payment_method_option}
@@ -0,0 +1 @@
1
+ import{h as e,r as i,H as t}from"./p-qipqIMyC.js";import{S as a}from"./p-Xv8DuU3Y.js";import{w as s,c}from"./p-Bp_QFeog.js";import{b as r}from"./p-BHf9IqGw.js";import"./p-RvUQ__Pq.js";import"./p-DsAwPf2y.js";import"./p-HXpYMWUU.js";const o=i=>{const{isReady:t}=i;return t?null:e("div",{class:"container-fluid p-0"},e("div",{class:"row mb-3"},e("div",{class:"col-12 align-content-end"},e(a,{height:"18px",width:"120px"}),e(a,{height:"36px"}))),e("div",{class:"row"},e("div",{class:"col-12 align-content-end"},e(a,{height:"18px",width:"110px"}),e(a,{height:"36px"}))))},n=class{constructor(e){i(this,e),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=c.iframeOrigin,this.tabId=r()}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((i=>{e.addEventListener("iframeLoaded",(()=>{i()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const e=await this.accountNumberIframeElement.validate(),i=await this.routingNumberIframeElement.validate();return e&&i}async tokenize(e,i,t){return this.accountNumberIframeElement.tokenize(e,i,t)}render(){return e(t,{key:"7ee7c6e3c26ab1a90bdbf7215fe13f65aade1025"},e(o,{key:"e4afc94a21b041972d031cfce88a102f763932d1",isReady:this.isReady}),e("div",{key:"8980e0dc0048dbd9cd93a4f93fab8c4cbfeef611",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"d04bb6b18498de9646ba6e2ee32f223774a72cc7",class:"row mb-3"},e("iframe-input",{key:"7eb29da8beff34cbe5d2b7c151fec433d17f8555",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),e("div",{key:"c6345cddc37cbe5627ca4581fb98be55b85550a6",class:"row"},e("iframe-input",{key:"0bf71a22e9126e04f15f213d84953ccfd3388ef0",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}};export{n as bank_account_form}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as a,H as s,g as i}from"./p-qipqIMyC.js";import{F as r}from"./p-DCMrHeJI.js";import{i as o,b as l,a as h,T as c,c as n,l as f}from"./p-RvUQ__Pq.js";const d=class{constructor(a){t(this,a),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur")}render(){return a(s,{key:"151b13500f5bc11102f13e9e8aba583f5535458f",exportparts:"label,input,input-invalid"},a("div",{key:"aa24b590885e67c0dae7bbf10a46e111cbb108ac",class:"form-group d-flex flex-column"},a("div",{key:"a6da0c166f60904ac32eef2e9ebb77c472bb7180",class:"d-flex align-items-start gap-2"},a("label",{key:"24ddc6dc7f49b1be6a8a8d81c829c11f8c76b9e0",part:"label",class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"5d058f5f8029abce0a75c86a2de3b11d3c26a8f6",helpText:this.helpText})),a("input",{key:"c807436e93a21ad7c1fd942cfb295d51bf30a9b7",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit(),onChange:()=>this.errorText=""}),a(r,{key:"59abec5b8a6660de5c3aa09d5341b53bc53b3dea",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},b=class{constructor(a){t(this,a),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,a=e.getAttribute("name");this.inputHandler(a,e.value),this.formControlInput.emit({name:a,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?l:this.isFocused?h:this.disabled?c:n}render(){return a(s,{key:"b4cdee53e150296601582bd17a74e7bff12c1867"},a("div",{key:"198dd6fc463200a2445bd08934a15a0423ba4778",class:"form-group d-flex flex-column"},a("label",{key:"73624f9fa6f506bb184bf461b60717f1aac87fdc",part:f,class:"form-label",htmlFor:this.name},this.label),a("textarea",{key:"4aa0e8ef05e13f8c4c60c73e3312fd8d19d1b442",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),a("form-control-help-text",{key:"e54de23fbe76cfc9f1a9e88d71737b23b84d0ea4",helpText:this.helpText,name:this.name}),a("form-control-error-text",{key:"7ec33f817f34514cf2c8acdb2bb1647de433aad7",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_file_v2,b as form_control_textarea}
@@ -0,0 +1 @@
1
+ import{h as i,r as e,H as a}from"./p-qipqIMyC.js";import{S as t}from"./p-Xv8DuU3Y.js";import{w as s,c as f}from"./p-Bp_QFeog.js";import{b as c}from"./p-BHf9IqGw.js";import"./p-RvUQ__Pq.js";import"./p-DsAwPf2y.js";import"./p-HXpYMWUU.js";const d=e=>{const{isReady:a}=e;return a?null:i("div",{class:"container-fluid p-0"},i("div",{class:"mb-3"},i(t,{height:"18px",width:"100px"}),i(t,{height:"36px"})),i("div",{class:"row"},i("div",{class:"col-4 align-content-end"},i(t,{height:"18px",width:"80px"}),i(t,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(t,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(t,{height:"18px",width:"30px"}),i(t,{height:"36px"}))))},r=class{constructor(i){e(this,i),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=f.iframeOrigin,this.tabId=c()}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((i=>new Promise((e=>{i.addEventListener("iframeLoaded",(()=>{e()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const i=await this.cardNumberIframeElement.validate(),e=await this.expirationMonthIframeElement.validate(),a=await this.expirationYearIframeElement.validate(),t=await this.cvvIframeElement.validate();return i&&e&&a&&t}async tokenize(i,e,a){return this.cardNumberIframeElement.tokenize(i,e,a)}render(){return i(a,{key:"8a6454e0a16e0a26762627f7a42527ab243c1c7a"},i(d,{key:"ed7386f746518e1ebb62d1bf9bc2e98778d9804e",isReady:this.isReady}),i("div",{key:"f3092bcce1626f04a079ebcf64f0cdf06a7029a8",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"3e211e500bef824aff5b6bf6cdedc99435cacfd4",class:"mb-3"},i("iframe-input",{key:"6ad14a317fd6cad6d6535ba661684e31c325c5ab",inputId:"cardNumber",ref:i=>this.cardNumberIframeElement=i,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}`})),i("div",{key:"931e9f1b047ff57c2b37bb2947e29f6708f239d9",class:"d-flex align-items-start"},i("div",{key:"5ca19fbf9047bd6595557890b0bdbbf0d2e65de9",class:"flex-fill me-3"},i("iframe-input",{key:"c99f426b77308b15fcb174e8adbe8c120abc58b5",inputId:"expirationMonth",ref:i=>this.expirationMonthIframeElement=i,label:"Exp. Month",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}`})),i("div",{key:"677b8fb8f33a021afda90a8b4e13b5f44b5fe694",class:"flex-fill me-3"},i("iframe-input",{key:"9bcf91464c5f2ca77b339f2fe299db6027aa9f8b",inputId:"expirationYear",ref:i=>this.expirationYearIframeElement=i,label:"Exp. Year",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}`})),i("div",{key:"9b5c52d9cc5b30eedf522801c3f8f6c0530757ce",class:"flex-fill"},i("iframe-input",{key:"3e73df1c7119193a239fcd2f5212967e109cff83",inputId:"CVV",ref:i=>this.cvvIframeElement=i,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}`})))))}};export{r as card_form}
@@ -1 +1 @@
1
- import{r as e,c as t,h as s}from"./p-Bn7inNWG.js";import{f as i}from"./p-zdIeCUeh.js";import{z as a,ai as r}from"./p-RvUQ__Pq.js";import{B as d}from"./p-DD0Mvpeu.js";import{S as o}from"./p-DxqCFDtF.js";import{S as c}from"./p-CaAVuW6B.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-Cjcsf8ku.js";import{g as p,a as f}from"./p-D2muobcE.js";import{D as l}from"./p-D2_iJUrZ.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-B_6n1dAh.js";import"./p-HXpYMWUU.js";import"./p-BPtcGAzB.js";import"./p-DhGNCW2f.js";import"./p-CpaS1Lex.js";import"./p-BP7op0vq.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BiWRKUx3.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(o,{key:"90d2506d5bde2ea478fa3575fc162bb356b67fac"},this.isLoading&&s("div",{key:"4877ae22d3d8e312640b122c9107b6bdd8f924cb",style:{marginBottom:"8px"}},s(c,{key:"31fa0717949bbc6aa49db1c6ae0e324099ae1de2",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(c,{key:"ac5179232cb9ee33d3f3e16d9f93536ecfbf46a5",height:"18px",styles:{marginBottom:"8px"}}),s(c,{key:"c22a5e3b257d01f92de7f6188fa0758861abc747",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"be331b1a5e2fa0baf46bc593ef7ce4f5872abcff",part:a},s("h1",{key:"8094c16d3b375f28ffe314613f21ae25b63e59ef",class:"h4",part:r},"This payment is disputed"),s("p",{key:"d89ae665e1f9bd99c9338e2132c1dc56e5386696"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"2786733eac76628019993e13473d1f43c0c395ed",class:"h5"},"Dispute details"),s("div",{key:"663c28c46136bd56889b6ad0b9bfce9e5adbb590",class:"d-table gap-2"},s("div",{key:"dc688fad875d1591dcb7f31d423b61a3df2ff954",class:"d-table-row gap-2"},s("span",{key:"442db7a6e95524ca6b092794c7a4a4d987c9866e",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"0a31de8692c9b00f43fcf3c0508e4d00a221d096",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"9fe0c1a3d3350c36fca190ae748dafe24d41b5fc",class:"d-table-row gap-2"},s("span",{key:"12165cb6671519130a5f2e0d8938aaa55e7e3ead",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"4a37ca8a7d64b97142997bb50ec11d737ac6a882",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"4d9cf74a8ed26dd84e4ce7325d4b8703352362a4",class:"d-table-row gap-2"},s("span",{key:"8c0eaa24ebec7703eb18384b0b1f2eae8a684b55",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"238813abf2ea0848e1fe817d5798b9b0d0b78ffc",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"d156a7e9bf0e7214ff2164fc09b12c0b8f1d2b36",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"7822fd12dfc39bd2aced043956d012fd34cc1b01",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"05132b3a6d1fc3d136dc227008ea1999330cdb96",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"b04dd0c34f608b75ea3997a9c28ce948fa9dba5c"},s("h1",{key:"ac2a13373315703e86247b6707097af7cf2e6757",class:"h4"},"This payment is disputed and under review"),s("p",{key:"203aed553e01bbaebe44bb370a1d088c149cda06"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"6325264f8ad7b6678825878ed59f03f90eee421a"},s("h1",{key:"7b647ed77373884e0751de4fc39403211c249db6",class:"h4"},"This payment was disputed"),s("p",{key:"2a5c1560d341af9b743234a058a1187f245a2ae8"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"a89e7f4d7e8926ed052023c7dbbbaf076a03ed9c"},s("h1",{key:"534b560aa35dd43ba0eba668904ef70dc1a6954f",class:"h4"},"This payment was disputed"),s("p",{key:"2381f2f6418b47dce67c498c56d5f3789add57dc"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(o,{key:"b90f636418c3e11b046d36dee9accf345756b407"},s("justifi-dispute-response-core",{key:"ff6e510faad54506eda24b1d8dc94b67afc18014","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.stepCompleteEvent=t(this,"complete-form-step-event"),this.submitEvent=t(this,"submit-event"),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"09b09843d54a2dbced9788d16e244b2e59a3a78f",class:"row gy-3"},s("div",{key:"6a3fe32d65ea1a74161d9ba9984543cf950e47ea",class:"col-12"},s("h1",{key:"bbb6f1334fd6b120e592117ba191d90b628e620f",class:"h4",part:r},"Counter dispute")),s("div",{key:"19cbc45842294e9344dbffb725f5f053bf370af7",class:"col-12"},this.currentStepComponent),s("div",{key:"fa875ca152ea77fc4c8363216d8ba16c7699b597",class:"col-12"},s("div",{key:"fa7b62fff0cbac81c19ebad919f5dd54c3679e84",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{v as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
1
+ import{r as e,c as t,h as s}from"./p-qipqIMyC.js";import{f as i}from"./p-BHf9IqGw.js";import{z as a,ai as r}from"./p-RvUQ__Pq.js";import{B as d}from"./p-D6XirF21.js";import{S as c}from"./p-CLQx9p9q.js";import{S as o}from"./p-Xv8DuU3Y.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-Cjcsf8ku.js";import{g as p,a as f}from"./p-D2muobcE.js";import{D as l}from"./p-DyOgQlh2.js";import{D as u}from"./p-Bg2SZArf.js";import{c as y,J as b}from"./p-D_5McRD_.js";import"./p-HXpYMWUU.js";import"./p-BUa0YOaw.js";import"./p-Bp_QFeog.js";import"./p-DsAwPf2y.js";import"./p-c4Mh3ZZ_.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BBpkkt2-.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(c,{key:"0f1028825a7a96a06e7219518ffed54bc0db1b2b"},this.isLoading&&s("div",{key:"f4b704182a5a7085827854634d38c56423cc2e1b",style:{marginBottom:"8px"}},s(o,{key:"b2062d8b683ab110c26fc30f1600c4500f668d87",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(o,{key:"b5d2afe1fdd2e5ee0ec60048a48778bcfa6c78d3",height:"18px",styles:{marginBottom:"8px"}}),s(o,{key:"1e87c8936b3f2e26e680786927c5a4609aca0b83",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"49090493e3921353b7a830397795496bb234d112",part:a},s("h1",{key:"fd7b56a7cfeaa6820bf2cc121575314d075b5a83",class:"h4",part:r},"This payment is disputed"),s("p",{key:"72ba296695928baca8f7c5c3b1f858c596efedb2"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"cce733ff1bbca7a9530a442035cbae2995e018e7",class:"h5"},"Dispute details"),s("div",{key:"28b7f081e345112d99c52d05f205734995617253",class:"d-table gap-2"},s("div",{key:"d9476d8d0adfa3c6eccad229e94cd3824a720c7d",class:"d-table-row gap-2"},s("span",{key:"4d9e0714eee778c326ee1d70a32f79d90d3d4b09",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"b227edcf9b4b65b790d8aa98021d2662a12855bc",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"b1b1cdaac5482f565a6f26af71c0b526b8c19f4e",class:"d-table-row gap-2"},s("span",{key:"0a479a9de96cce6e42bec90a17affe2c93ced44f",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"5d5020dda571f4465e2a358880ad5f20bc6171ea",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"a5f42c3fcbb5d14f8479d0a576d31a50f8fc6441",class:"d-table-row gap-2"},s("span",{key:"280fca5a101eb0e823eb9ccc13c746ac7ed62069",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"4dfc0b9a295ffc804b708d3590358256009e5376",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"654e7baccd08628bc90d050bad108011b49f9972",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"d0817cdb23bf33086c6ce5122f4ed5388027d96c",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"5446bef44a0ca747692d59fd5490409d00a9e285",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"17fbc5902badc4230c5485b326f480180c844768"},s("h1",{key:"fefa0234306588d9e7f56733872bf8c9793f51dd",class:"h4"},"This payment is disputed and under review"),s("p",{key:"eaad72aa8d9f65ca296379a2800180878ec8a7e5"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"ec1b0d728a7518f913c2a69976fa1f5fc8f76c74"},s("h1",{key:"9d42fad15fbeee507e2f364c3a35f143ff7599e2",class:"h4"},"This payment was disputed"),s("p",{key:"3b728a5544fe17a6c58c12f7e8eef290022945b6"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"6d1813508a657265546fbef00bd1e8f46ffaf740"},s("h1",{key:"de981fc2e06e860f47146647975965a903a39b55",class:"h4"},"This payment was disputed"),s("p",{key:"4e57ab86518bd678a3a5402b712d40d573b3a970"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){y(),this.analytics=new b(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(c,{key:"dbdfd59a21c7e8ea4dfdaecb91f885f82540a27c"},s("justifi-dispute-response-core",{key:"3cff38e5995f0033c45c54fa195ffeebc27e189e","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.stepCompleteEvent=t(this,"complete-form-step-event"),this.submitEvent=t(this,"submit-event"),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"20d075178a9d88cd73be32e52f8df6d3d360f8d7",class:"row gy-3"},s("div",{key:"6c1bc735f1a15709c596b5bea7cc3ce50e9a73f5",class:"col-12"},s("h1",{key:"27a0804924937ee7a8d01265bd0da2d9dd31d301",class:"h4",part:r},"Counter dispute")),s("div",{key:"b60822e91425c5c4af003169f47fd725daf9fb0f",class:"col-12"},this.currentStepComponent),s("div",{key:"d1be3f6be53de37836275067070cf4b5a2eb3e4a",class:"col-12"},s("div",{key:"48c8725d8de8b658e59ccfa851a6af6638e19ca5",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{v as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
@@ -1 +1 @@
1
- import{r as s,c as t,h as e}from"./p-Bn7inNWG.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{c as o}from"./p-Dt-vy9Le.js";import{z as h}from"./p-RvUQ__Pq.js";import{S as n}from"./p-DxqCFDtF.js";import{H as a}from"./p-DIDloHpm.js";import"./p-CZfYo5-1.js";import{B as c}from"./p-XYgDHrVL.js";import"./p-BX8GieXu.js";const d=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=o(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:i.INFO})},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:c.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return e(n,{key:"621b616a3b9d5be0fcc1180dcdb0db6a89ec5aa2"},e("div",{key:"b51c6814bb81a6cdc6cd0c5ede4d485582f154ee",class:"row gap-3"},e(a,{key:"7c03561b4c2b0cfc237d6b933aeffe532f35b626",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"b616b52cc9a0057f27ddbae1356710cee05c60fa",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading}),e("div",{key:"2447bad174b5d32d253e821e76ebb32fb9ec50e3",class:"d-flex justify-content-between align-items-center"},e("div",{key:"d746b5275ae0866a8619f67fe00217916153ea0a",class:"d-flex align-items-center",part:h},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"add808398005b6076d91788cc220ab6620f3ddfc",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{d as justifi_payment_provisioning_core}
1
+ import{r as s,c as t,h as e}from"./p-qipqIMyC.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{c as o}from"./p-Dt-vy9Le.js";import{z as h}from"./p-RvUQ__Pq.js";import{S as n}from"./p-CLQx9p9q.js";import{H as a}from"./p-CQeex56P.js";import"./p-CZfYo5-1.js";import{B as c}from"./p-XYgDHrVL.js";import"./p-BX8GieXu.js";const d=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=o(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:i.INFO})},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:c.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return e(n,{key:"621b616a3b9d5be0fcc1180dcdb0db6a89ec5aa2"},e("div",{key:"b51c6814bb81a6cdc6cd0c5ede4d485582f154ee",class:"row gap-3"},e(a,{key:"7c03561b4c2b0cfc237d6b933aeffe532f35b626",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"b616b52cc9a0057f27ddbae1356710cee05c60fa",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading}),e("div",{key:"2447bad174b5d32d253e821e76ebb32fb9ec50e3",class:"d-flex justify-content-between align-items-center"},e("div",{key:"d746b5275ae0866a8619f67fe00217916153ea0a",class:"d-flex align-items-center",part:h},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"add808398005b6076d91788cc220ab6620f3ddfc",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{d as justifi_payment_provisioning_core}
@@ -0,0 +1 @@
1
+ import{r,c as s,h as t}from"./p-qipqIMyC.js";import{S as i}from"./p-CLQx9p9q.js";import"./p-CZfYo5-1.js";import{c as o,J as e}from"./p-D_5McRD_.js";import{d as a}from"./p-CaxjN6Uo.js";import"./p-Bp_QFeog.js";import"./p-HXpYMWUU.js";import{C as n,a as p}from"./p-Cjcsf8ku.js";import{h as c}from"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as m,a as h}from"./p-D2muobcE.js";import{A as d}from"./p-BUa0YOaw.js";import"./p-BBpkkt2-.js";import"./p-RvUQ__Pq.js";import"./p-BHf9IqGw.js";import"./p-D--yCspA.js";import"./p-DsAwPf2y.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const l=d();class f{async fetchTerminalOrders(r,s,t){return l.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const j=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=a,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){o(),this.analytics=new e(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:i,onSuccess:o,onError:e,final:a})=>{var p,d;try{const a=await t.fetchTerminalOrders(r,s,i);if(a.error)return e({error:h(a.error),code:m(null===(d=a.error)||void 0===d?void 0:d.code),severity:n.ERROR});{const r=Object.assign({},a.page_info);o({terminalOrders:(null===(p=a.data)||void 0===p?void 0:p.map((r=>new c(r))))||[],pagingInfo:r})}}catch(r){const s=m(null==r?void 0:r.code);return e({error:r.message||r,code:s,severity:n.ERROR})}finally{return a()}})({id:this.accountId,authToken:this.authToken,service:new f}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"55f0bf858787e00c304972c941a477815712df9d"},t("terminal-orders-list-core",{key:"2d47e23bc2157d79254f34dfe0551fb32a9d88cc",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{j as justifi_terminal_orders_list}
@@ -1 +1 @@
1
- import{h as t}from"./p-Bn7inNWG.js";import{B as e,a}from"./p-DDUmOl3v.js";const n=n=>t(a,Object.assign({},{canceled:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Canceled"},failed:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Failed"},forwarded:{variant:e.SECONDARY,title:"This payout initially failed; the funds have been forwarded to your next successful payout",text:"Forwarded"},in_transit:{variant:e.PRIMARY,title:"Transfer to your bank account has been initiated",text:"In Transit"},paid:{variant:e.SUCCESS,title:"Successfully deposited into your bank account",text:"Paid"},pending:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Pending"},scheduled:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Scheduled"},withdrawn:{variant:e.SUCCESS,title:"Negative payout balance successfully withdrawn from your bank account",text:"Withdrawn"}}[n]));export{n as M}
1
+ import{h as t}from"./p-qipqIMyC.js";import{B as e,a}from"./p-D--yCspA.js";const n=n=>t(a,Object.assign({},{canceled:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Canceled"},failed:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Failed"},forwarded:{variant:e.SECONDARY,title:"This payout initially failed; the funds have been forwarded to your next successful payout",text:"Forwarded"},in_transit:{variant:e.PRIMARY,title:"Transfer to your bank account has been initiated",text:"In Transit"},paid:{variant:e.SUCCESS,title:"Successfully deposited into your bank account",text:"Paid"},pending:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Pending"},scheduled:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Scheduled"},withdrawn:{variant:e.SUCCESS,title:"Negative payout balance successfully withdrawn from your bank account",text:"Withdrawn"}}[n]));export{n as M}
@@ -1 +1 @@
1
- import{h as t}from"./p-Bn7inNWG.js";import{z as e}from"./p-RvUQ__Pq.js";const r=r=>{const{helpText:m,name:o}=r;return m?t("small",{class:"form-text text-muted",id:`form-help-text-${o}`,part:e},m):null};export{r as F}
1
+ import{h as t}from"./p-qipqIMyC.js";import{z as e}from"./p-RvUQ__Pq.js";const r=r=>{const{helpText:m,name:o}=r;return m?t("small",{class:"form-text text-muted",id:`form-help-text-${o}`,part:e},m):null};export{r as F}
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},e=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.t=t)},o=(t,n)=>n in t,l=(t,n)=>(0,console.error)(t,n),s=new Map,r="http://www.w3.org/1999/xlink",i="undefined"!=typeof window?window:{},c={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},u=t=>Promise.resolve(t),f=!!(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})()&&(()=>!!i.document&&Object.getOwnPropertyDescriptor(i.document.adoptedStyleSheets,"length").writable)(),a=!1,d=[],h=[],p=(t,n)=>e=>{t.push(e),a||(a=!0,n&&4&c.o?y(m):c.raf(m))},v=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){l(t)}t.length=0},m=()=>{v(d),v(h),(a=d.length>0)&&c.raf(m)},y=t=>u().then(t),b=p(h,!0),w=t=>"object"==(t=typeof t)||"function"===t;((n,e)=>{for(var o in e)t(n,o,{get:e[o],enumerable:!0})})({},{err:()=>g,map:()=>j,ok:()=>$,unwrap:()=>S,unwrapErr:()=>k});var $=t=>({isOk:!0,isErr:!1,value:t}),g=t=>({isOk:!1,isErr:!0,value:t});function j(t,n){if(t.isOk){const e=n(t.value);return e instanceof Promise?e.then((t=>$(t))):$(e)}if(t.isErr)return g(t.value);throw"should never get here"}var O,S=t=>{if(t.isOk)return t.value;throw t.value},k=t=>{if(t.isErr)return t.value;throw t.value};function E(){const t=this.attachShadow({mode:"open"});void 0===O&&(O=null),O&&(f?t.adoptedStyleSheets.push(O):t.adoptedStyleSheets=[...t.adoptedStyleSheets,O])}var x=t=>{const n=P(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&N(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!C(t,R(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&P(t,"childNodes").length&&x(t)}};function N(t,n,e){let o,l=0,s=[];for(;l<t.length;l++)o=t[l],!o["s-sr"]||n&&o["s-hn"]!==n||void 0!==e||s.push(o),s=[...s,...N(o.childNodes,n,e)];return s}var C=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)R(l)!==n||!e&&l["s-sr"]||o.push(l);return o},M=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,R=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function P(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var T=new WeakMap,F=(t,n,...e)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!w(o))&&(o+=""),r&&i?c[c.length-1].i+=o:c.push(r?L(null,o):o),i=r)};if(u(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,c,W);const f=L(t,null);return f.u=n,c.length>0&&(f.h=c),f.p=l,f.v=s,f},L=(t,n)=>({o:0,m:t,i:n,$:null,h:null,u:null,p:null,v:null}),U={},W={forEach:(t,n)=>t.map(A).forEach(n),map:(t,n)=>t.map(A).map(n).map(D)},A=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.v,vtag:t.m,vtext:t.i}),D=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),F(t.vtag,n,...t.vchildren||[])}const n=L(t.vtag,t.vtext);return n.u=t.vattrs,n.h=t.vchildren,n.p=t.vkey,n.v=t.vname,n},_=t=>{const n=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};_("::slotted"),_(":host"),_(":host-context");var B,H,q=(t,n)=>{if("string"==typeof t&&(16&n||8&n)&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return null==t||w(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t},z=t=>{var e;return null==(e=n(t))?void 0:e.$hostElement$},I=(t,n)=>{const e=z(t);return{emit:t=>V(e,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},V=(t,n,e)=>{const o=c.ce(n,e);return t.dispatchEvent(o),o},Y=(t,n,e,l,s,u)=>{if(e===l)return;let f=o(t,n),a=n.toLowerCase();if("class"===n){const n=t.classList,o=J(e);let s=J(l);n.remove(...o.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===n){for(const n in e)l&&null!=l[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in l)e&&l[n]===e[n]||(n.includes("-")?t.style.setProperty(n,l[n]):t.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(t);else if(f||"o"!==n[0]||"n"!==n[1]){const o=w(l);if((f||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[n]!==l&&(t[n]=l);else{const o=null==l?"":l;"list"===n?f=!1:null!=e&&t[n]==o||("function"==typeof t.__lookupSetter__(n)?t[n]=o:t.setAttribute(n,o))}}catch(t){}let i=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(n=a,i=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(n)||(i?t.removeAttributeNS(r,n):t.removeAttribute(n)):(!f||4&u||s)&&!o&&1===t.nodeType&&(l=!0===l?"":l,i?t.setAttributeNS(r,n,l):t.setAttribute(n,l))}else if(n="-"===n[2]?n.slice(3):o(i,a)?a.slice(2):a[2]+n.slice(3),e||l){const o=n.endsWith(K);n=n.replace(Q,""),e&&c.rel(t,n,e,o),l&&c.ael(t,n,l,o)}},G=/\s/,J=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(G):[]),K="Capture",Q=RegExp(K+"$"),X=(t,n,e)=>{const o=11===n.$.nodeType&&n.$.host?n.$.host:n.$,l=t&&t.u||{},s=n.u||{};for(const t of Z(Object.keys(l)))t in s||Y(o,t,l[t],void 0,e,n.o);for(const t of Z(Object.keys(s)))Y(o,t,l[t],s[t],e,n.o)};function Z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var tt=!1,nt=!1,et=!1,ot=!1,lt=(t,n,e)=>{var o;const l=n.h[e];let s,r,c,u=0;if(tt||(et=!0,"slot"===l.m&&(l.o|=l.h?2:1)),null!==l.i)s=l.$=i.document.createTextNode(l.i);else if(1&l.o)s=l.$=i.document.createTextNode(""),X(null,l,ot);else{if(ot||(ot="svg"===l.m),!i.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=l.$=i.document.createElementNS(ot?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!tt&&2&l.o?"slot-fb":l.m),ot&&"foreignObject"===l.m&&(ot=!1),X(null,l,ot),l.h)for(u=0;u<l.h.length;++u)r=lt(t,l,u),r&&s.appendChild(r);"svg"===l.m?ot=!1:"foreignObject"===s.tagName&&(ot=!0)}return s["s-hn"]=H,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=B,s["s-sn"]=l.v||"",s["s-rf"]=null==(o=l.u)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===R(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(s),c=t&&t.h&&t.h[e],c&&c.m===l.m&&t.$&&st(t.$,!1)),s},st=(t,n)=>{c.o|=1;const e=Array.from(t.__childNodes||t.childNodes);for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==H&&o["s-ol"]&&(pt(ut(o).parentNode,o,ut(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,et=!0),n&&st(o,n)}c.o&=-2},rt=(t,n,e,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===H&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=lt(null,e,l),r&&(o[l].$=r,pt(i,r,ut(n))))},it=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.$;ht(n),t&&(nt=!0,t["s-ol"]?t["s-ol"].remove():st(t,!0),t.remove())}}},ct=(t,n,e=!1)=>t.m===n.m&&("slot"===t.m?t.v===n.v:e?(e&&!t.p&&n.p&&(t.p=n.p),!0):t.p===n.p),ut=t=>t&&t["s-ol"]||t,ft=(t,n,e=!1)=>{const o=n.$=t.$,l=t.h,s=n.h,r=n.m,i=n.i;let c;null===i?(X(t,n,ot="svg"===r||"foreignObject"!==r&&ot),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=n.length-1,d=n[0],h=n[a],p=o.length-1,v=o[0],m=o[p];for(;i<=a&&c<=p;)if(null==d)d=n[++i];else if(null==h)h=n[--a];else if(null==v)v=o[++c];else if(null==m)m=o[--p];else if(ct(d,v,l))ft(d,v,l),d=n[++i],v=o[++c];else if(ct(h,m,l))ft(h,m,l),h=n[--a],m=o[--p];else if(ct(d,m,l))"slot"!==d.m&&"slot"!==m.m||st(d.$.parentNode,!1),ft(d,m,l),pt(t,d.$,h.$.nextSibling),d=n[++i],m=o[--p];else if(ct(h,v,l))"slot"!==d.m&&"slot"!==m.m||st(h.$.parentNode,!1),ft(h,v,l),pt(t,h.$,d.$),h=n[--a],v=o[++c];else{for(u=-1,f=i;f<=a;++f)if(n[f]&&null!==n[f].p&&n[f].p===v.p){u=f;break}u>=0?(r=n[u],r.m!==v.m?s=lt(n&&n[c],e,u):(ft(r,v,l),n[u]=void 0,s=r.$),v=o[++c]):(s=lt(n&&n[c],e,c),v=o[++c]),s&&pt(ut(d.$).parentNode,s,ut(d.$))}i>a?rt(t,null==o[p+1]?null:o[p+1].$,e,o,c,p):c>p&&it(n,i,a)})(o,l,n,s,e):null!==s?(null!==t.i&&(o.textContent=""),rt(o,null,n,s,0,s.length-1)):!e&&null!==l&&it(l,0,l.length-1),ot&&"svg"===r&&(ot=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:t.i!==i&&(o.data=i)},at=[],dt=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"])if(M(n,l)){let e=at.find((t=>t.j===n));nt=!0,n["s-sn"]=n["s-sn"]||l,e?(e.j["s-sh"]=t["s-hn"],e.O=t):(n["s-sh"]=t["s-hn"],at.push({O:t,j:n})),n["s-sr"]&&at.map((t=>{M(t.j,n["s-sn"])&&(e=at.find((t=>t.j===n)),e&&!t.O&&(t.O=e.O))}))}else at.some((t=>t.j===n))||at.push({j:n})}1===t.nodeType&&dt(t)}},ht=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(ht)},pt=(t,n,e)=>null==t?void 0:t.insertBefore(n,e),vt=(t,n)=>{if(n&&!t.S&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.S=()=>{n["s-p"].splice(e-1,1),o()})))}},mt=(t,n)=>{if(t.o|=16,4&t.o)return void(t.o|=512);vt(t,t.k);const e=()=>yt(t,n);if(!n)return b(e);queueMicrotask((()=>{e()}))},yt=(t,n)=>{const e=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.o|=256,t.N&&(t.N.map((([t,n])=>xt(o,t,n,e))),t.N=void 0),l=xt(o,"componentWillLoad",void 0,e)):l=xt(o,"componentWillUpdate",void 0,e),l=bt(l,(()=>xt(o,"componentWillRender",void 0,e))),bt(l,(()=>$t(t,o,n)))},bt=(t,n)=>wt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),wt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,$t=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];jt(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>St(t);0===n.length?e():(Promise.all(n).then(e),t.o|=4,n.length=0)}},gt=null,jt=(t,n,e,o)=>{try{gt=n,n=n.render(),t.o&=-17,t.o|=2,((t,n,e=!1)=>{var o,l,s,r;const u=t.$hostElement$,f=t.C,a=t.M||L(null,null),d=(t=>t&&t.m===U)(n)?n:F(null,null,n);if(H=u.tagName,e&&d.u)for(const t of Object.keys(d.u))u.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.u[t]=u[t]);if(d.m=null,d.o|=4,t.M=d,d.$=a.$=u.shadowRoot||u,tt=!(!(1&f.o)||128&f.o),B=u["s-cr"],nt=!1,ft(a,d,e),c.o|=1,et){dt(d.$);for(const t of at){const n=t.j;if(!n["s-ol"]&&i.document){const t=i.document.createTextNode("");t["s-nr"]=n,pt(n.parentNode,n["s-ol"]=t,n)}}for(const t of at){const n=t.j,i=t.O;if(i){const t=i.parentNode;let e=i.nextSibling;{let s=null==(o=n["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===n["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===n||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){e=o;break}}s=s.previousSibling}}(!e&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==e)&&n!==e&&(!n["s-hn"]&&n["s-ol"]&&(n["s-hn"]=n["s-ol"].parentNode.nodeName),pt(t,n,e),1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(s=n["s-ih"])&&s)),n&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===n.nodeType&&(e&&(n["s-ih"]=null!=(r=n.hidden)&&r),n.hidden=!0)}}nt&&x(d.$),c.o&=-2,at.length=0,B=void 0})(t,n,o)}catch(n){l(n,t.$hostElement$)}return gt=null,null},Ot=()=>gt,St=t=>{const n=t.$hostElement$,e=t.t,o=t.k;xt(e,"componentDidRender",void 0,n),64&t.o?xt(e,"componentDidUpdate",void 0,n):(t.o|=64,Nt(n),xt(e,"componentDidLoad",void 0,n),t.R(n),o||Et()),t.P(n),t.S&&(t.S(),t.S=void 0),512&t.o&&y((()=>mt(t,!1))),t.o&=-517},kt=t=>{var e;{const o=n(t),l=null==(e=null==o?void 0:o.$hostElement$)?void 0:e.isConnected;return l&&2==(18&o.o)&&mt(o,!1),l}},Et=()=>{y((()=>V(i,"appload",{detail:{namespace:"webcomponents"}})))},xt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){l(t,o)}},Nt=t=>t.classList.add("hydrated"),Ct=(t,e,o,s)=>{const r=n(t);if(!r)return;if(!r)throw Error(`Couldn't find host element for "${s.T}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=r.$hostElement$,c=r.F.get(e),u=r.o,f=r.t;if(o=q(o,s.L[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(r.F.set(e,o),f)){if(s.U&&128&u){const t=s.U[e];t&&t.map((t=>{try{f[t](o,c,e)}catch(t){l(t,i)}}))}if(2==(18&u)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(o,c,e))return;mt(r,!1)}}},Mt=(t,e,o)=>{var l,s;const r=t.prototype;if(e.L||e.U||t.watchers){t.watchers&&!e.U&&(e.U=t.watchers);const i=Object.entries(null!=(l=e.L)?l:{});if(i.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:i}=Object.getOwnPropertyDescriptor(r,t)||{};s&&(e.L[t][0]|=2048),i&&(e.L[t][0]|=4096),(1&o||!s)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.L[t][0]))return((t,e)=>n(this).F.get(e))(0,t);const o=n(this),l=o?o.t:r;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(s){const r=n(this);if(r){if(i){const n=32&l?this[t]:r.$hostElement$[t];return void 0===n&&r.F.get(t)?s=r.F.get(t):!r.F.get(t)&&n&&r.F.set(t,n),i.call(this,q(s,l)),void Ct(this,t,s=32&l?this[t]:r.$hostElement$[t],e)}{if(!(1&o&&4096&e.L[t][0]))return Ct(this,t,s,e),void(1&o&&!r.t&&r.W.then((()=>{4096&e.L[t][0]&&r.t[t]!==r.F.get(t)&&(r.t[t]=s)})));const n=()=>{const n=r.t[t];!r.F.get(t)&&n&&r.F.set(t,n),r.t[t]=q(s,l),Ct(this,t,r.t[t],e)};r.t?n():r.W.then((()=>n()))}}}})}else 1&o&&64&l&&Object.defineProperty(r,t,{value(...e){var o;const l=n(this);return null==(o=null==l?void 0:l.A)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[t](...e)}))}})})),1&o){const o=new Map;r.attributeChangedCallback=function(t,l,s){c.jmp((()=>{var i;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(o&&r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=e.U)?void 0:i[t];null==r||r.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(r,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.U)?s:{}),...i.filter((([t,n])=>31&n[0])).map((([t,n])=>{const e=n[1]||t;return o.set(e,t),e}))]))}}return t},Rt=(t,n)=>{xt(t,"connectedCallback",void 0,n)},Pt=(t,n)=>{xt(t,"disconnectedCallback",void 0,n||t)},Tt=(t,e={})=>{var o;if(!i.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const r=[],u=e.exclude||[],f=i.customElements,a=i.document.head,d=a.querySelector("meta[charset]"),h=i.document.createElement("style"),p=[];let v,m=!0;Object.assign(c,e),c.l=new URL(e.resourcesUrl||"./",i.document.baseURI).href;let y=!1;if(t.map((t=>{t[1].map((e=>{var o;const a={o:e[0],T:e[1],L:e[2],D:e[3]};4&a.o&&(y=!0),a.L=e[2],a.D=e[3],a.U=null!=(o=e[4])?o:{};const d=a.T,h=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const e={o:0,$hostElement$:t,C:n,F:new Map};e.A=new Promise((t=>e.P=t)),e.W=new Promise((t=>e.R=t)),t["s-p"]=[],t["s-rc"]=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,a),1&a.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${a.T}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else E.call(t,a)}connectedCallback(){const t=n(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Lt(this,t,a.D)),v&&(clearTimeout(v),v=null),m?p.push(this):c.jmp((()=>(t=>{if(!(1&c.o)){const e=n(t);if(!e)return;const o=e.C,r=()=>{};if(1&e.o)Lt(t,e,o.D),(null==e?void 0:e.t)?Rt(e.t,t):(null==e?void 0:e.W)&&e.W.then((()=>Rt(e.t,t)));else{e.o|=1,12&o.o&&(t=>{if(!i.document)return;const n=t["s-cr"]=i.document.createComment("");n["s-cn"]=!0,pt(t,n,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){vt(e,e.k=n);break}}o.L&&Object.entries(o.L).map((([n,[e]])=>{if(31&e&&t.hasOwnProperty(n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;if(!(32&n.o))if(n.o|=32,e._){const r=((t,n)=>{const e=t.T.replace(/-/g,"_"),o=t._;if(!o)return;const r=s.get(o);return r?r[e]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[e])),(t=>{l(t,n.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(r&&"then"in r){const t=()=>{};o=await r,t()}else o=r;if(!o)throw Error(`Constructor for "${e.T}#${n.B}" was not found`);o.isProxied||(e.U=o.watchers,Mt(o,e,2),o.isProxied=!0);const i=()=>{};n.o|=8;try{new o(n)}catch(n){l(n,t)}n.o&=-9,n.o|=128,i(),Rt(n.t,t)}else{o=t.constructor;const e=t.localName,l=()=>n.o|=128;customElements.get(e)?l():customElements.whenDefined(e).then(l)}const r=n.k,i=()=>mt(n,!0);r&&r["s-rc"]?r["s-rc"].push(i):i()})(t,e,o)}r()}})(this))))}disconnectedCallback(){c.jmp((()=>(async t=>{if(!(1&c.o)){const e=n(t);(null==e?void 0:e.H)&&(e.H.map((t=>t())),e.H=void 0),(null==e?void 0:e.t)?Pt(e.t,t):(null==e?void 0:e.W)&&e.W.then((()=>Pt(e.t,t)))}T.has(t)&&T.delete(t),t.shadowRoot&&T.has(t.shadowRoot)&&T.delete(t.shadowRoot)})(this))),c.raf((()=>{var t;const e=n(this);if(!e)return;const o=p.findIndex((t=>t===this));o>-1&&p.splice(o,1),(null==(t=null==e?void 0:e.M)?void 0:t.$)instanceof Node&&!e.M.$.isConnected&&delete e.M.$}))}componentOnReady(){var t;return null==(t=n(this))?void 0:t.W}};a._=t[0],u.includes(d)||f.get(d)||(r.push(d),f.define(d,Mt(h,a,1)))}))})),r.length>0&&(y&&(h.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),h.textContent+=r.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",h.innerHTML.length)){h.setAttribute("data-styles","");const t=null!=(o=c.q)?o:function(){var t,n,e;return null!=(e=null==(n=null==(t=i.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?e:void 0}();null!=t&&h.setAttribute("nonce",t),a.insertBefore(h,d?d.nextSibling:a.firstChild)}m=!1,p.length?p.map((t=>t.connectedCallback())):c.jmp((()=>v=setTimeout(Et,30)))},Ft=(t,n)=>n,Lt=(t,n,e)=>{e&&i.document&&e.map((([e,o,l])=>{const s=t,r=Ut(n,l),i=Wt(e);c.ael(s,o,r,i),(n.H=n.H||[]).push((()=>c.rel(s,o,r,i)))}))},Ut=(t,n)=>e=>{var o;try{256&t.o?null==(o=t.t)||o[n](e):(t.N=t.N||[]).push([n,e])}catch(n){l(n,t.$hostElement$)}},Wt=t=>({passive:!!(1&t),capture:!!(2&t)}),At=t=>c.q=t;export{Ft as F,U as H,Ot as a,Tt as b,I as c,kt as f,z as g,F as h,u as p,e as r,At as s}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-qipqIMyC.js";import{M as r}from"./p-RvUQ__Pq.js";const t=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:r},s("span",{class:"visually-hidden"},"Loading...")));export{t as S}