@justifi/webcomponents 6.4.3 → 6.5.0-rc.2

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 (543) hide show
  1. package/dist/cjs/{Refund-BnhHNKLz.js → GooglePay-D3zN44IX.js} +415 -0
  2. package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +8 -7
  3. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  4. package/dist/cjs/{business.service-DIlSj5KT.js → business.service-88yKWtbE.js} +1 -1
  5. package/dist/cjs/card-form.cjs.entry.js +2 -2
  6. package/dist/cjs/{check-pkg-version-CnAkXgrN.js → check-pkg-version-RW_N0V76.js} +2 -2
  7. package/dist/cjs/{checkout.service-Ce0F8cOf.js → checkout.service-Cj1RxduX.js} +1 -1
  8. package/dist/cjs/checkouts-list-core.cjs.entry.js +3 -2
  9. package/dist/cjs/custom-popper.cjs.entry.js +2 -2
  10. package/dist/cjs/{dispute.service-DuYeSUgK.js → dispute.service-AXzLxuOs.js} +1 -1
  11. package/dist/cjs/form-alert_5.cjs.entry.js +6 -6
  12. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  13. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  14. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  15. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
  16. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  17. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +4 -4
  18. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-select_3.cjs.entry.js +4 -4
  21. package/dist/cjs/{get-payment-details-vVIxYblm.js → get-payment-details-DVBTf7h5.js} +2 -2
  22. package/dist/cjs/{get-subaccounts-yo2pT61R.js → get-subaccounts-DuYNs7Ny.js} +2 -2
  23. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  24. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  25. package/dist/cjs/{index-C2ITzalN.js → index-CajjbB9t.js} +1 -0
  26. package/dist/cjs/index.cjs.js +1 -1
  27. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +23 -24
  28. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +6 -5
  29. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -11
  30. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  31. package/dist/cjs/{justifi-apple-pay_7.cjs.entry.js → justifi-apple-pay_8.cjs.entry.js} +903 -253
  32. package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +2 -2
  33. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -4
  34. package/dist/cjs/justifi-business-form.cjs.entry.js +5 -4
  35. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  36. package/dist/cjs/justifi-checkout.cjs.entry.js +14 -15
  37. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -8
  38. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +8 -7
  39. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  40. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  41. package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -5
  42. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +9 -8
  43. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -3
  44. package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -9
  45. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -6
  46. package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -5
  47. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  48. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
  49. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -6
  50. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  51. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -6
  52. package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -5
  53. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -6
  54. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-payouts-list.cjs.entry.js +8 -7
  56. package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -9
  57. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
  58. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -8
  59. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  60. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +12 -11
  61. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -6
  62. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +8 -7
  63. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -7
  64. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +1 -1
  65. package/dist/cjs/loader.cjs.js +1 -1
  66. package/dist/cjs/{package-CfJO8jEa.js → package-DCSehIuE.js} +1 -1
  67. package/dist/cjs/pagination-menu.cjs.entry.js +3 -3
  68. package/dist/cjs/payment-details-core.cjs.entry.js +11 -10
  69. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  70. package/dist/cjs/{payment.service-DLvoJ2K6.js → payment.service-7Ayen6ud.js} +1 -1
  71. package/dist/cjs/payments-list-core.cjs.entry.js +3 -2
  72. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  73. package/dist/cjs/{payout.service-CrBp8aru.js → payout.service-6PsVtHcu.js} +1 -1
  74. package/dist/cjs/payouts-list-core.cjs.entry.js +3 -2
  75. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  76. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +4 -3
  77. package/dist/cjs/{terminal-orders-table-8PxObvu8.js → terminal-orders-table-BQXO4z_E.js} +3 -3
  78. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  79. package/dist/cjs/{terminal.service-D0fIw59V.js → terminal.service-DgE2p1j0.js} +1 -1
  80. package/dist/cjs/terminals-list-core.cjs.entry.js +3 -2
  81. package/dist/cjs/webcomponents.cjs.js +1 -1
  82. package/dist/collection/api/GooglePay.js +181 -0
  83. package/dist/collection/api/index.js +2 -0
  84. package/dist/collection/api/services/google-pay.service.js +240 -0
  85. package/dist/collection/collection-manifest.json +2 -1
  86. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +7 -6
  87. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  88. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +8 -7
  89. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +7 -6
  90. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  91. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  92. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +8 -7
  93. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  94. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  95. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  96. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
  97. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  98. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
  99. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  100. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  101. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  102. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
  103. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  104. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
  105. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  106. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  107. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  108. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  110. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  111. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  112. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  113. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  114. package/dist/collection/components/checkout/checkout.js +2 -2
  115. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  116. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  117. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  118. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  119. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  120. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  121. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  122. package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
  123. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  124. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  125. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  126. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  127. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  128. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  129. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  130. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  133. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  134. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  135. package/dist/collection/components/modular-checkout/ModularCheckout.js +1 -0
  136. package/dist/collection/components/modular-checkout/modular-checkout.js +46 -9
  137. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  138. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  139. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  140. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  141. package/dist/collection/components/modular-checkout/sub-components/google-pay-skeleton.js +10 -0
  142. package/dist/collection/components/modular-checkout/sub-components/google-pay.js +609 -0
  143. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  144. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  145. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  146. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  147. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  148. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  149. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  150. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  151. package/dist/collection/components/payments-list/payments-list.js +1 -1
  152. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  153. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  154. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  155. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  156. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  157. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  158. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  159. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  160. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  161. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  162. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  163. package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +3 -4
  164. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +5 -10
  165. package/dist/collection/store/checkout.store.js +4 -0
  166. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  167. package/dist/collection/ui-components/details/details.js +1 -1
  168. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  169. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  170. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  171. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  172. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  173. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  174. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  175. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  176. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  177. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  178. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  179. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  180. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  181. package/dist/collection/ui-components/google-pay-button.js +255 -0
  182. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
  183. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  184. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  185. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
  186. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  187. package/dist/docs.json +567 -119
  188. package/dist/esm/{Refund-L_muwEAh.js → GooglePay-ChLgDgG7.js} +405 -1
  189. package/dist/esm/bank-account-document-form-inputs_6.entry.js +8 -7
  190. package/dist/esm/bank-account-form.entry.js +2 -2
  191. package/dist/esm/{business.service-CaEVmi4X.js → business.service-C0JaOBMs.js} +1 -1
  192. package/dist/esm/card-form.entry.js +2 -2
  193. package/dist/esm/{check-pkg-version-DrJd3vkn.js → check-pkg-version-D0GWFnyL.js} +2 -2
  194. package/dist/esm/{checkout.service-BpaVN1_f.js → checkout.service-gxuAcx_d.js} +1 -1
  195. package/dist/esm/checkouts-list-core.entry.js +3 -2
  196. package/dist/esm/custom-popper.entry.js +2 -2
  197. package/dist/esm/{dispute.service-Dq1SPI2m.js → dispute.service-DmYLDaWO.js} +1 -1
  198. package/dist/esm/form-alert_5.entry.js +6 -6
  199. package/dist/esm/form-control-checkbox.entry.js +2 -2
  200. package/dist/esm/form-control-date.entry.js +2 -2
  201. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  202. package/dist/esm/form-control-monetary-provisioning.entry.js +2 -2
  203. package/dist/esm/form-control-monetary.entry.js +2 -2
  204. package/dist/esm/form-control-number-masked_3.entry.js +4 -4
  205. package/dist/esm/form-control-number.entry.js +2 -2
  206. package/dist/esm/form-control-radio.entry.js +2 -2
  207. package/dist/esm/form-control-select_3.entry.js +4 -4
  208. package/dist/esm/{get-payment-details-C2YiQBG7.js → get-payment-details-CJ6fHbft.js} +1 -1
  209. package/dist/esm/{get-subaccounts-Cjz3-2D3.js → get-subaccounts-3zYjlgWb.js} +1 -1
  210. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  211. package/dist/esm/hidden-input_2.entry.js +5 -5
  212. package/dist/esm/{index-DCIW8z1f.js → index-DkoufM1t.js} +1 -0
  213. package/dist/esm/index.js +1 -1
  214. package/dist/esm/internal-tokenize-payment-method_7.entry.js +12 -13
  215. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +2 -1
  216. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -11
  217. package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
  218. package/dist/esm/{justifi-apple-pay_7.entry.js → justifi-apple-pay_8.entry.js} +786 -137
  219. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +2 -2
  220. package/dist/esm/justifi-business-details.entry.js +5 -4
  221. package/dist/esm/justifi-business-form.entry.js +5 -4
  222. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  223. package/dist/esm/justifi-checkout.entry.js +7 -8
  224. package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -2
  225. package/dist/esm/justifi-checkouts-list.entry.js +7 -6
  226. package/dist/esm/justifi-details.entry.js +1 -1
  227. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  228. package/dist/esm/justifi-dispute-management.entry.js +6 -5
  229. package/dist/esm/justifi-dispute-notification_3.entry.js +9 -8
  230. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -3
  231. package/dist/esm/justifi-order-terminals.entry.js +7 -6
  232. package/dist/esm/justifi-owner-form_3.entry.js +7 -6
  233. package/dist/esm/justifi-payment-details.entry.js +6 -5
  234. package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
  235. package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
  236. package/dist/esm/justifi-payment-transactions-list.entry.js +6 -5
  237. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  238. package/dist/esm/justifi-payments-list.entry.js +6 -5
  239. package/dist/esm/justifi-payout-details.entry.js +5 -4
  240. package/dist/esm/justifi-payout-transactions-list.entry.js +6 -5
  241. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  242. package/dist/esm/justifi-payouts-list.entry.js +7 -6
  243. package/dist/esm/justifi-refund-payment.entry.js +6 -5
  244. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  245. package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
  246. package/dist/esm/justifi-skeleton.entry.js +1 -1
  247. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +4 -3
  248. package/dist/esm/justifi-terminal-orders-list.entry.js +6 -5
  249. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -2
  250. package/dist/esm/justifi-terminals-list.entry.js +7 -6
  251. package/dist/esm/justifi-tokenize-payment-method.entry.js +1 -1
  252. package/dist/esm/loader.js +1 -1
  253. package/dist/esm/{package-DUwyoa82.js → package-DbqKgrF-.js} +1 -1
  254. package/dist/esm/pagination-menu.entry.js +3 -3
  255. package/dist/esm/payment-details-core.entry.js +10 -9
  256. package/dist/esm/payment-method-option.entry.js +1 -1
  257. package/dist/esm/{payment.service-4wGt-zDW.js → payment.service-CtzbcN40.js} +1 -1
  258. package/dist/esm/payments-list-core.entry.js +3 -2
  259. package/dist/esm/payout-details-core.entry.js +3 -3
  260. package/dist/esm/{payout.service-BYigYrQu.js → payout.service-BSepoyj1.js} +1 -1
  261. package/dist/esm/payouts-list-core.entry.js +3 -2
  262. package/dist/esm/table-filters-menu.entry.js +1 -1
  263. package/dist/esm/terminal-orders-list-core.entry.js +4 -3
  264. package/dist/esm/{terminal-orders-table-CMWBIr9y.js → terminal-orders-table-BDQyyZp2.js} +1 -1
  265. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  266. package/dist/esm/{terminal.service-RAu777Qf.js → terminal.service-DFPVyp0k.js} +1 -1
  267. package/dist/esm/terminals-list-core.entry.js +3 -2
  268. package/dist/esm/webcomponents.js +1 -1
  269. package/dist/module/Analytics.js +2 -0
  270. package/dist/module/ApplePay.js +121 -0
  271. package/dist/module/GooglePay.js +184 -0
  272. package/dist/module/ModularCheckout.js +1 -0
  273. package/dist/module/additional-questions.js +2 -2
  274. package/dist/module/additional-statement.js +1 -1
  275. package/dist/module/apple-pay.js +1 -120
  276. package/dist/module/bank-account-billing-form-simple.js +1 -1
  277. package/dist/module/bank-account-document-inputs.js +3 -1
  278. package/dist/module/bank-account-form-inputs-canada2.js +1 -1
  279. package/dist/module/bank-account-form-inputs2.js +1 -1
  280. package/dist/module/bank-account-form.js +2 -2
  281. package/dist/module/bank-account-read-only-value2.js +1 -1
  282. package/dist/module/bank-account.js +2 -2
  283. package/dist/module/business-additional-questions-form-step.js +1 -1
  284. package/dist/module/business-bank-account-form-step-core.js +2 -0
  285. package/dist/module/business-bank-account-form-step.js +3 -1
  286. package/dist/module/business-core-info-form-step.js +1 -1
  287. package/dist/module/business-core-info.js +2 -2
  288. package/dist/module/business-owners-form-step.js +1 -1
  289. package/dist/module/business-representative-form-inputs.js +2 -2
  290. package/dist/module/business-representative-form-step.js +1 -1
  291. package/dist/module/business-representative.js +3 -3
  292. package/dist/module/business-terms-conditions-form-step.js +3 -1
  293. package/dist/module/business.service.js +2 -0
  294. package/dist/module/cancellation-policy.js +1 -1
  295. package/dist/module/card-billing-form-simple.js +1 -1
  296. package/dist/module/card-form.js +2 -2
  297. package/dist/module/card-form2.js +2 -2
  298. package/dist/module/checkout.service.js +2 -0
  299. package/dist/module/checkout.store.js +4 -0
  300. package/dist/module/checkouts-list-core2.js +3 -1
  301. package/dist/module/custom-popper2.js +2 -2
  302. package/dist/module/customer-details.js +1 -1
  303. package/dist/module/details.js +1 -1
  304. package/dist/module/dispute-management-core.js +1 -1
  305. package/dist/module/dispute-notification.js +2 -2
  306. package/dist/module/dispute-response-actions.js +2 -0
  307. package/dist/module/dispute-response-core.js +1 -1
  308. package/dist/module/dispute-response.js +1 -1
  309. package/dist/module/duplicate-charge.js +1 -1
  310. package/dist/module/electronic-evidence.js +1 -1
  311. package/dist/module/form-address-fields.js +1 -1
  312. package/dist/module/form-control-checkbox2.js +2 -2
  313. package/dist/module/form-control-date2.js +2 -2
  314. package/dist/module/form-control-file-v22.js +1 -1
  315. package/dist/module/form-control-file2.js +2 -2
  316. package/dist/module/form-control-monetary-provisioning2.js +2 -2
  317. package/dist/module/form-control-monetary2.js +2 -2
  318. package/dist/module/form-control-number-masked2.js +2 -2
  319. package/dist/module/form-control-number.js +2 -2
  320. package/dist/module/form-control-radio2.js +2 -2
  321. package/dist/module/form-control-select2.js +2 -2
  322. package/dist/module/form-control-text2.js +2 -2
  323. package/dist/module/form-control-textarea2.js +2 -2
  324. package/dist/module/get-payment-details.js +2 -0
  325. package/dist/module/get-subaccounts.js +2 -0
  326. package/dist/module/google-pay.js +785 -0
  327. package/dist/module/gross-payment-chart-core2.js +1 -1
  328. package/dist/module/hidden-input2.js +1 -1
  329. package/dist/module/identity-address-form.js +1 -1
  330. package/dist/module/iframe-input2.js +3 -3
  331. package/dist/module/internal-tokenize-payment-method2.js +3 -1
  332. package/dist/module/justifi-business-form.js +2 -0
  333. package/dist/module/justifi-button2.js +1 -1
  334. package/dist/module/justifi-checkout.js +46 -40
  335. package/dist/module/justifi-checkouts-list-filters.js +3 -1
  336. package/dist/module/justifi-checkouts-list.js +3 -1
  337. package/dist/module/justifi-dispute-management.js +1 -1
  338. package/dist/module/justifi-google-pay.d.ts +11 -0
  339. package/dist/module/justifi-google-pay.js +6 -0
  340. package/dist/module/justifi-gross-payment-chart.js +2 -0
  341. package/dist/module/justifi-header2.js +1 -1
  342. package/dist/module/justifi-order-terminals.js +3 -1
  343. package/dist/module/justifi-payment-provisioning.js +3 -1
  344. package/dist/module/justifi-payment-transactions-list.js +3 -1
  345. package/dist/module/justifi-payments-list-filters.js +2 -2
  346. package/dist/module/justifi-payments-list.js +3 -1
  347. package/dist/module/justifi-payout-details.js +2 -0
  348. package/dist/module/justifi-payout-transactions-list.js +3 -1
  349. package/dist/module/justifi-payouts-list-filters.js +2 -2
  350. package/dist/module/justifi-payouts-list.js +3 -1
  351. package/dist/module/justifi-radio-list-item2.js +1 -1
  352. package/dist/module/justifi-refund-payment.js +2 -0
  353. package/dist/module/justifi-saved-payment-method.js +1 -1
  354. package/dist/module/justifi-season-interruption-insurance.js +2 -0
  355. package/dist/module/justifi-skeleton.js +1 -1
  356. package/dist/module/justifi-terminal-orders-list-filters.js +4 -2
  357. package/dist/module/justifi-terminal-orders-list.js +3 -1
  358. package/dist/module/justifi-terminals-list-filters.js +3 -1
  359. package/dist/module/justifi-terminals-list.js +3 -1
  360. package/dist/module/justifi-tokenize-payment-method.js +1 -1
  361. package/dist/module/legal-address-form-step.js +1 -1
  362. package/dist/module/legal-address-form.js +2 -2
  363. package/dist/module/modular-checkout.js +46 -6
  364. package/dist/module/owner-form-core2.js +1 -1
  365. package/dist/module/owner-form-inputs2.js +3 -3
  366. package/dist/module/owner-form.js +1 -1
  367. package/dist/module/package.js +1 -1
  368. package/dist/module/pagination-menu2.js +3 -3
  369. package/dist/module/payment-details-core2.js +10 -8
  370. package/dist/module/payment-method-option.js +1 -1
  371. package/dist/module/payment-provisioning-core.js +1 -1
  372. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  373. package/dist/module/payment-provisioning-form-steps.js +1 -1
  374. package/dist/module/payment.service.js +2 -0
  375. package/dist/module/payments-list-core2.js +3 -1
  376. package/dist/module/payout-details-core2.js +3 -3
  377. package/dist/module/payout.service.js +2 -0
  378. package/dist/module/payouts-list-core2.js +3 -1
  379. package/dist/module/plaid.service.js +2 -0
  380. package/dist/module/product-or-service.js +1 -1
  381. package/dist/module/refund-policy.js +1 -1
  382. package/dist/module/save-new-payment-method.js +1 -1
  383. package/dist/module/shipping-details.js +1 -1
  384. package/dist/module/summary.js +1 -1
  385. package/dist/module/table-filters-menu2.js +1 -1
  386. package/dist/module/terminal-orders-list-core2.js +3 -1
  387. package/dist/module/terminal-quantity-selector2.js +1 -1
  388. package/dist/module/terminal.service.js +2 -0
  389. package/dist/module/terminals-list-core2.js +3 -1
  390. package/dist/types/api/Checkout.d.ts +2 -0
  391. package/dist/types/api/GooglePay.d.ts +271 -0
  392. package/dist/types/api/index.d.ts +2 -0
  393. package/dist/types/api/services/google-pay.service.d.ts +60 -0
  394. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +3 -3
  395. package/dist/types/components/checkout/checkout.d.ts +1 -0
  396. package/dist/types/components/modular-checkout/ModularCheckout.d.ts +2 -1
  397. package/dist/types/components/modular-checkout/modular-checkout.d.ts +5 -0
  398. package/dist/types/components/modular-checkout/sub-components/google-pay-skeleton.d.ts +6 -0
  399. package/dist/types/components/modular-checkout/sub-components/google-pay.d.ts +59 -0
  400. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -1
  401. package/dist/types/components.d.ts +160 -22
  402. package/dist/types/store/checkout.store.d.ts +1 -0
  403. package/dist/types/ui-components/google-pay-button.d.ts +18 -0
  404. package/dist/webcomponents/index.esm.js +1 -1
  405. package/dist/webcomponents/{p-aec9185f.entry.js → p-03c8c754.entry.js} +1 -1
  406. package/dist/webcomponents/p-0772719b.entry.js +1 -0
  407. package/dist/webcomponents/p-10df10cb.entry.js +1 -0
  408. package/dist/webcomponents/p-1120699e.entry.js +1 -0
  409. package/dist/webcomponents/p-136b29e3.entry.js +1 -0
  410. package/dist/webcomponents/{p-1193a1ac.entry.js → p-19dabeab.entry.js} +1 -1
  411. package/dist/webcomponents/p-19f44a6d.entry.js +1 -0
  412. package/dist/webcomponents/p-1a9311e3.entry.js +1 -0
  413. package/dist/webcomponents/p-1afcfafd.entry.js +1 -0
  414. package/dist/webcomponents/p-1ceb7363.entry.js +1 -0
  415. package/dist/webcomponents/p-1f196690.entry.js +1 -0
  416. package/dist/webcomponents/{p-800660f2.entry.js → p-270bf699.entry.js} +1 -1
  417. package/dist/webcomponents/p-2da4e6ca.entry.js +1 -0
  418. package/dist/webcomponents/p-2eb123a3.entry.js +1 -0
  419. package/dist/webcomponents/p-36ad1db9.entry.js +1 -0
  420. package/dist/webcomponents/p-38626adf.entry.js +1 -0
  421. package/dist/webcomponents/p-3868f396.entry.js +1 -0
  422. package/dist/webcomponents/p-3ac5ab7e.entry.js +1 -0
  423. package/dist/webcomponents/p-3ad906c1.entry.js +1 -0
  424. package/dist/webcomponents/p-3ae12b98.entry.js +1 -0
  425. package/dist/webcomponents/{p-58ae4f9e.entry.js → p-3bacf834.entry.js} +1 -1
  426. package/dist/webcomponents/{p-e2e6c201.entry.js → p-48d1bc83.entry.js} +1 -1
  427. package/dist/webcomponents/{p-af48a6bb.entry.js → p-4e71de94.entry.js} +1 -1
  428. package/dist/webcomponents/p-4f102cfd.entry.js +1 -0
  429. package/dist/webcomponents/p-4f82561b.entry.js +1 -0
  430. package/dist/webcomponents/p-51ae205c.entry.js +1 -0
  431. package/dist/webcomponents/p-583a1f08.entry.js +1 -0
  432. package/dist/webcomponents/p-59fb033b.entry.js +1 -0
  433. package/dist/webcomponents/p-5ba28ff0.entry.js +1 -0
  434. package/dist/webcomponents/p-6794a435.entry.js +1 -0
  435. package/dist/webcomponents/p-797be4be.entry.js +1 -0
  436. package/dist/webcomponents/{p-CxPieTnF.js → p-7SgMy3r5.js} +1 -1
  437. package/dist/webcomponents/p-81c1ebd3.entry.js +1 -0
  438. package/dist/webcomponents/{p-1edec396.entry.js → p-86111a0a.entry.js} +1 -1
  439. package/dist/webcomponents/p-8b6b7e20.entry.js +1 -0
  440. package/dist/webcomponents/p-8fcd277c.entry.js +1 -0
  441. package/dist/webcomponents/p-90744983.entry.js +1 -0
  442. package/dist/webcomponents/p-914b590d.entry.js +1 -0
  443. package/dist/webcomponents/{p-BItPr6Gj.js → p-B-9GGR7s.js} +1 -1
  444. package/dist/webcomponents/p-Boe55CYS.js +1 -0
  445. package/dist/webcomponents/{p-Do561C8g.js → p-BusXmwDe.js} +1 -1
  446. package/dist/webcomponents/{p-C9_8N76_.js → p-ByJiG6HY.js} +1 -1
  447. package/dist/webcomponents/{p-XqsvHFg_.js → p-C6kJ3uRN.js} +1 -1
  448. package/dist/webcomponents/p-CQsNLuzi.js +1 -0
  449. package/dist/webcomponents/{p-ZrJKEEoy.js → p-DELUWNSY.js} +1 -1
  450. package/dist/webcomponents/p-DbqKgrF-.js +1 -0
  451. package/dist/webcomponents/{p-wYnnDDuR.js → p-DjhbNep7.js} +1 -1
  452. package/dist/webcomponents/p-DkoufM1t.js +1 -0
  453. package/dist/webcomponents/{p-CriWtqRc.js → p-Ds2u5A8P.js} +1 -1
  454. package/dist/webcomponents/{p-jTVpG8Gt.js → p-E0ZPuuI7.js} +1 -1
  455. package/dist/webcomponents/p-a020c889.entry.js +1 -0
  456. package/dist/webcomponents/{p-0082f428.entry.js → p-a22d1078.entry.js} +1 -1
  457. package/dist/webcomponents/p-a6e816f6.entry.js +1 -0
  458. package/dist/webcomponents/{p-8681f258.entry.js → p-aaed4997.entry.js} +1 -1
  459. package/dist/webcomponents/p-ad9307c1.entry.js +1 -0
  460. package/dist/webcomponents/p-b36d9885.entry.js +1 -0
  461. package/dist/webcomponents/p-b46223fa.entry.js +1 -0
  462. package/dist/webcomponents/p-ba76226e.entry.js +1 -0
  463. package/dist/webcomponents/{p-e23219c6.entry.js → p-bbc42ab9.entry.js} +1 -1
  464. package/dist/webcomponents/p-bc510a8a.entry.js +1 -0
  465. package/dist/webcomponents/p-be3caaf8.entry.js +1 -0
  466. package/dist/webcomponents/p-c11f5079.entry.js +1 -0
  467. package/dist/webcomponents/p-c41191e7.entry.js +1 -0
  468. package/dist/webcomponents/p-c621e7af.entry.js +1 -0
  469. package/dist/webcomponents/p-d13edf9f.entry.js +1 -0
  470. package/dist/webcomponents/p-d4503c9a.entry.js +1 -0
  471. package/dist/webcomponents/p-d913cb6b.entry.js +1 -0
  472. package/dist/webcomponents/p-e016bb2e.entry.js +1 -0
  473. package/dist/webcomponents/{p-2769f945.entry.js → p-e6507b93.entry.js} +1 -1
  474. package/dist/webcomponents/{p-ed55d333.entry.js → p-e7e5fee9.entry.js} +1 -1
  475. package/dist/webcomponents/{p-4e23116c.entry.js → p-f2650bfc.entry.js} +1 -1
  476. package/dist/webcomponents/p-f42c68b0.entry.js +1 -0
  477. package/dist/webcomponents/p-f4cb581f.entry.js +1 -0
  478. package/dist/webcomponents/p-f528da70.entry.js +1 -0
  479. package/dist/webcomponents/p-f632894a.entry.js +1 -0
  480. package/dist/webcomponents/p-f66de935.entry.js +1 -0
  481. package/dist/webcomponents/p-fc9d0344.entry.js +1 -0
  482. package/dist/webcomponents/{p-9f70ce93.entry.js → p-fe862786.entry.js} +1 -1
  483. package/dist/webcomponents/webcomponents.esm.js +1 -1
  484. package/package.json +13 -13
  485. package/LICENSE +0 -21
  486. package/dist/cjs/checkout.store-BA6h-dp2.js +0 -107
  487. package/dist/esm/checkout.store-CaS_htQd.js +0 -101
  488. package/dist/webcomponents/p-087a81ff.entry.js +0 -1
  489. package/dist/webcomponents/p-1242bbf1.entry.js +0 -1
  490. package/dist/webcomponents/p-14d2f6c6.entry.js +0 -1
  491. package/dist/webcomponents/p-170700b1.entry.js +0 -1
  492. package/dist/webcomponents/p-1939d1e3.entry.js +0 -1
  493. package/dist/webcomponents/p-20a8b0c0.entry.js +0 -1
  494. package/dist/webcomponents/p-22f74666.entry.js +0 -1
  495. package/dist/webcomponents/p-30f61f44.entry.js +0 -1
  496. package/dist/webcomponents/p-3b49fc33.entry.js +0 -1
  497. package/dist/webcomponents/p-3c38cec5.entry.js +0 -1
  498. package/dist/webcomponents/p-45936490.entry.js +0 -1
  499. package/dist/webcomponents/p-4761e0aa.entry.js +0 -1
  500. package/dist/webcomponents/p-4c3eea2b.entry.js +0 -1
  501. package/dist/webcomponents/p-4da3e157.entry.js +0 -1
  502. package/dist/webcomponents/p-4dcbc0af.entry.js +0 -1
  503. package/dist/webcomponents/p-58dee174.entry.js +0 -1
  504. package/dist/webcomponents/p-69195676.entry.js +0 -1
  505. package/dist/webcomponents/p-716ddc27.entry.js +0 -1
  506. package/dist/webcomponents/p-7218c312.entry.js +0 -1
  507. package/dist/webcomponents/p-75c65531.entry.js +0 -1
  508. package/dist/webcomponents/p-8432a466.entry.js +0 -1
  509. package/dist/webcomponents/p-84a44362.entry.js +0 -1
  510. package/dist/webcomponents/p-84e2bd93.entry.js +0 -1
  511. package/dist/webcomponents/p-89518b26.entry.js +0 -1
  512. package/dist/webcomponents/p-8b2026d3.entry.js +0 -1
  513. package/dist/webcomponents/p-9d914297.entry.js +0 -1
  514. package/dist/webcomponents/p-CPKSE7M4.js +0 -1
  515. package/dist/webcomponents/p-D0YDz3L6.js +0 -1
  516. package/dist/webcomponents/p-DCIW8z1f.js +0 -1
  517. package/dist/webcomponents/p-DU8dqq9U.js +0 -1
  518. package/dist/webcomponents/p-DUwyoa82.js +0 -1
  519. package/dist/webcomponents/p-a655b996.entry.js +0 -1
  520. package/dist/webcomponents/p-a8f7cf9b.entry.js +0 -1
  521. package/dist/webcomponents/p-aa51df2c.entry.js +0 -1
  522. package/dist/webcomponents/p-ae7a027b.entry.js +0 -1
  523. package/dist/webcomponents/p-b4d8a3f6.entry.js +0 -1
  524. package/dist/webcomponents/p-bd73fba1.entry.js +0 -1
  525. package/dist/webcomponents/p-c1831747.entry.js +0 -1
  526. package/dist/webcomponents/p-c3b71a1f.entry.js +0 -1
  527. package/dist/webcomponents/p-c7279bc6.entry.js +0 -1
  528. package/dist/webcomponents/p-c7bfea00.entry.js +0 -1
  529. package/dist/webcomponents/p-c7f2cf51.entry.js +0 -1
  530. package/dist/webcomponents/p-c988bd84.entry.js +0 -1
  531. package/dist/webcomponents/p-cef213c3.entry.js +0 -1
  532. package/dist/webcomponents/p-d4b8274f.entry.js +0 -1
  533. package/dist/webcomponents/p-db651f27.entry.js +0 -1
  534. package/dist/webcomponents/p-dc0d3484.entry.js +0 -1
  535. package/dist/webcomponents/p-def857b8.entry.js +0 -1
  536. package/dist/webcomponents/p-df0e5377.entry.js +0 -1
  537. package/dist/webcomponents/p-e5caab42.entry.js +0 -1
  538. package/dist/webcomponents/p-eb56ba9b.entry.js +0 -1
  539. package/dist/webcomponents/p-edcb84bf.entry.js +0 -1
  540. package/dist/webcomponents/p-f1af630f.entry.js +0 -1
  541. package/dist/webcomponents/p-f5fb1af2.entry.js +0 -1
  542. package/dist/webcomponents/p-fab28b02.entry.js +0 -1
  543. package/dist/webcomponents/p-ff968ab6.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as n,h as e}from"./p-DwYM91AU.js";var r="top",i="bottom",o="right",a="left",u="auto",f=[r,i,o,a],c="start",s="end",d="viewport",l="popper",p=f.reduce((function(t,n){return t.concat([n+"-"+c,n+"-"+s])}),[]),h=[].concat(f,[u]).reduce((function(t,n){return t.concat([n,n+"-"+c,n+"-"+s])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function b(t){return t?(t.nodeName||"").toLowerCase():null}function m(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function y(t){return t instanceof m(t).Element||t instanceof Element}function w(t){return t instanceof m(t).HTMLElement||t instanceof HTMLElement}function x(t){return"undefined"!=typeof ShadowRoot&&(t instanceof m(t).ShadowRoot||t instanceof ShadowRoot)}function O(t){return t.split("-")[0]}var g=Math.max,j=Math.min,k=Math.round;function M(){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 E(){return!/^((?!chrome|android).)*safari/i.test(M())}function A(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=t.getBoundingClientRect(),i=1,o=1;n&&w(t)&&(i=t.offsetWidth>0&&k(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&k(r.height)/t.offsetHeight||1);var a=(y(t)?m(t):window).visualViewport,u=!E()&&e,f=(r.left+(u&&a?a.offsetLeft:0))/i,c=(r.top+(u&&a?a.offsetTop:0))/o,s=r.width/i,d=r.height/o;return{width:s,height:d,top:c,right:f+s,bottom:c+d,left:f,x:f,y:c}}function q(t){var n=A(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 B(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&x(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function P(t){return m(t).getComputedStyle(t)}function L(t){return["table","td","th"].indexOf(b(t))>=0}function R(t){return((y(t)?t.ownerDocument:t.document)||window.document).documentElement}function S(t){return"html"===b(t)?t:t.assignedSlot||t.parentNode||(x(t)?t.host:null)||R(t)}function W(t){return w(t)&&"fixed"!==P(t).position?t.offsetParent:null}function T(t){for(var n=m(t),e=W(t);e&&L(e)&&"static"===P(e).position;)e=W(e);return e&&("html"===b(e)||"body"===b(e)&&"static"===P(e).position)?n:e||function(t){var n=/firefox/i.test(M());if(/Trident/i.test(M())&&w(t)&&"fixed"===P(t).position)return null;var e=S(t);for(x(e)&&(e=e.host);w(e)&&["html","body"].indexOf(b(e))<0;){var r=P(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 C(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function H(t,n,e){return g(t,j(n,e))}function I(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function z(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function D(t){return t.split("-")[1]}var U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _(t){var n,e=t.popper,u=t.popperRect,f=t.placement,c=t.variation,d=t.offsets,l=t.position,p=t.gpuAcceleration,h=t.adaptive,v=t.roundOffsets,b=t.isFixed,y=d.x,w=void 0===y?0:y,x=d.y,O=void 0===x?0:x,g="function"==typeof v?v({x:w,y:O}):{x:w,y:O};w=g.x,O=g.y;var j=d.hasOwnProperty("x"),M=d.hasOwnProperty("y"),E=a,A=r,q=window;if(h){var B=T(e),L="clientHeight",S="clientWidth";B===m(e)&&"static"!==P(B=R(e)).position&&"absolute"===l&&(L="scrollHeight",S="scrollWidth"),(f===r||(f===a||f===o)&&c===s)&&(A=i,O-=(b&&B===q&&q.visualViewport?q.visualViewport.height:B[L])-u.height,O*=p?1:-1),f!==a&&(f!==r&&f!==i||c!==s)||(E=o,w-=(b&&B===q&&q.visualViewport?q.visualViewport.width:B[S])-u.width,w*=p?1:-1)}var W,C=Object.assign({position:l},h&&U),H=!0===v?function(t,n){var e=t.y,r=n.devicePixelRatio||1;return{x:k(t.x*r)/r||0,y:k(e*r)/r||0}}({x:w,y:O},m(e)):{x:w,y:O};return w=H.x,O=H.y,Object.assign({},C,p?((W={})[A]=M?"0":"",W[E]=j?"0":"",W.transform=(q.devicePixelRatio||1)<=1?"translate("+w+"px, "+O+"px)":"translate3d("+w+"px, "+O+"px, 0)",W):((n={})[A]=M?O+"px":"",n[E]=j?w+"px":"",n.transform="",n))}var F={passive:!0},V={left:"right",right:"left",bottom:"top",top:"bottom"};function Y(t){return t.replace(/left|right|bottom|top/g,(function(t){return V[t]}))}var G={start:"end",end:"start"};function J(t){return t.replace(/start|end/g,(function(t){return G[t]}))}function K(t){var n=m(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function N(t){return A(R(t)).left+K(t).scrollLeft}function Q(t){var n=P(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function X(t){return["html","body","#document"].indexOf(b(t))>=0?t.ownerDocument.body:w(t)&&Q(t)?t:X(S(t))}function Z(t,n){var e;void 0===n&&(n=[]);var r=X(t),i=r===(null==(e=t.ownerDocument)?void 0:e.body),o=m(r),a=i?[o].concat(o.visualViewport||[],Q(r)?r:[]):r,u=n.concat(a);return i?u:u.concat(Z(S(a)))}function $(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tt(t,n,e){return n===d?$(function(t,n){var e=m(t),r=R(t),i=e.visualViewport,o=r.clientWidth,a=r.clientHeight,u=0,f=0;if(i){o=i.width,a=i.height;var c=E();(c||!c&&"fixed"===n)&&(u=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:u+N(t),y:f}}(t,e)):y(n)?function(t,n){var e=A(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):$(function(t){var n,e=R(t),r=K(t),i=null==(n=t.ownerDocument)?void 0:n.body,o=g(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=g(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+N(t),f=-r.scrollTop;return"rtl"===P(i||e).direction&&(u+=g(e.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}(R(t)))}function nt(t){var n,e=t.reference,u=t.element,f=t.placement,d=f?O(f):null,l=f?D(f):null,p=e.x+e.width/2-u.width/2,h=e.y+e.height/2-u.height/2;switch(d){case r:n={x:p,y:e.y-u.height};break;case i:n={x:p,y:e.y+e.height};break;case o:n={x:e.x+e.width,y:h};break;case a:n={x:e.x-u.width,y:h};break;default:n={x:e.x,y:e.y}}var v=d?C(d):null;if(null!=v){var b="y"===v?"height":"width";switch(l){case c:n[v]=n[v]-(e[b]/2-u[b]/2);break;case s:n[v]=n[v]+(e[b]/2-u[b]/2)}}return n}function et(t,n){void 0===n&&(n={});var e=n.placement,a=void 0===e?t.placement:e,u=n.strategy,c=void 0===u?t.strategy:u,s=n.boundary,p=void 0===s?"clippingParents":s,h=n.rootBoundary,v=void 0===h?d:h,m=n.elementContext,x=void 0===m?l:m,O=n.altBoundary,k=void 0!==O&&O,M=n.padding,E=void 0===M?0:M,q=I("number"!=typeof E?E:z(E,f)),L=t.rects.popper,W=t.elements[k?x===l?"reference":l:x],C=function(t,n,e,r){var i="clippingParents"===n?function(t){var n=Z(S(t)),e=["absolute","fixed"].indexOf(P(t).position)>=0&&w(t)?T(t):t;return y(e)?n.filter((function(t){return y(t)&&B(t,e)&&"body"!==b(t)})):[]}(t):[].concat(n),o=[].concat(i,[e]),a=o.reduce((function(n,e){var i=tt(t,e,r);return n.top=g(i.top,n.top),n.right=j(i.right,n.right),n.bottom=j(i.bottom,n.bottom),n.left=g(i.left,n.left),n}),tt(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}(y(W)?W:W.contextElement||R(t.elements.popper),p,v,c),H=A(t.elements.reference),D=nt({reference:H,element:L,placement:a}),U=$(Object.assign({},L,D)),_=x===l?U:H,F={top:C.top-_.top+q.top,bottom:_.bottom-C.bottom+q.bottom,left:C.left-_.left+q.left,right:_.right-C.right+q.right},V=t.modifiersData.offset;if(x===l&&V){var Y=V[a];Object.keys(F).forEach((function(t){var n=[o,i].indexOf(t)>=0?1:-1,e=[r,i].indexOf(t)>=0?"y":"x";F[t]+=Y[e]*n}))}return F}function rt(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?h:a,c=D(n.placement),s=c?o?p:p.filter((function(t){return D(t)===c})):f,d=s.filter((function(t){return u.indexOf(t)>=0}));0===d.length&&(d=s);var l=d.reduce((function(n,o){return n[o]=et(t,{placement:o,boundary:e,rootBoundary:r,padding:i})[O(o)],n}),{});return Object.keys(l).sort((function(t,n){return l[t]-l[n]}))}var it={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,f=t.name;if(!n.modifiersData[f]._skip){for(var s=e.mainAxis,d=void 0===s||s,l=e.altAxis,p=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,j=n.options.placement,k=O(j),M=h||(k!==j&&x?function(t){if(O(t)===u)return[];var n=Y(t);return[J(t),n,J(n)]}(j):[Y(j)]),E=[j].concat(M).reduce((function(t,e){return t.concat(O(e)===u?rt(n,{placement:e,boundary:b,rootBoundary:m,padding:v,flipVariations:x,allowedAutoPlacements:g}):e)}),[]),A=n.rects.reference,q=n.rects.popper,B=new Map,P=!0,L=E[0],R=0;R<E.length;R++){var S=E[R],W=O(S),T=D(S)===c,C=[r,i].indexOf(W)>=0,H=C?"width":"height",I=et(n,{placement:S,boundary:b,rootBoundary:m,altBoundary:y,padding:v}),z=C?T?o:a:T?i:r;A[H]>q[H]&&(z=Y(z));var U=Y(z),_=[];if(d&&_.push(I[W]<=0),p&&_.push(I[z]<=0,I[U]<=0),_.every((function(t){return t}))){L=S,P=!1;break}B.set(S,_)}if(P)for(var F=function(t){var n=E.find((function(n){var e=B.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return L=n,"break"},V=x?3:1;V>0&&"break"!==F(V);V--);n.placement!==L&&(n.modifiersData[f]._skip=!0,n.placement=L,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ot(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 at(t){return[r,o,i,a].some((function(n){return t[n]>=0}))}function ut(t,n,e){void 0===e&&(e=!1);var r,i,o=w(n),a=w(n)&&function(t){var n=t.getBoundingClientRect(),e=k(n.width)/t.offsetWidth||1,r=k(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),u=R(n),f=A(t,a,e),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!e)&&(("body"!==b(n)||Q(u))&&(c=(r=n)!==m(r)&&w(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:K(r)),w(n)?((s=A(n,!0)).x+=n.clientLeft,s.y+=n.clientTop):u&&(s.x=N(u))),{x:f.left+c.scrollLeft-s.x,y:f.top+c.scrollTop-s.y,width:f.width,height:f.height}}function ft(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 ct={placement:"bottom",modifiers:[],strategy:"absolute"};function st(){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 dt(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?ct:r;return function(t,n,r){void 0===r&&(r=i);var o,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ct,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;d(),u.options=Object.assign({},i,u.options,o),u.scrollParents={reference:y(t)?Z(t):t.contextElement?Z(t.contextElement):[],popper:Z(n)};var a,c,l=function(t){var n=ft(t);return v.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=l.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(st(n,e)){u.rects={reference:ut(n,T(e),"fixed"===u.options.strategy),popper:q(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(){d(),c=!0}};if(!st(t,n))return s;function d(){f.forEach((function(t){return t()})),f=[]}return s.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),s}}var lt=dt({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=m(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",e.update,F)})),u&&f.addEventListener("resize",e.update,F),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",e.update,F)})),u&&f.removeEventListener("resize",e.update,F)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=nt({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:O(n.placement),variation:D(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,_(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,_(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];w(i)&&b(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}),{});w(r)&&b(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,i=t.options.offset,u=void 0===i?[0,0]:i,f=h.reduce((function(t,e){return t[e]=function(t,n,e){var i=O(t),u=[a,r].indexOf(i)>=0?-1:1,f="function"==typeof e?e(Object.assign({},n,{placement:t})):e,c=f[0],s=f[1];return c=c||0,s=(s||0)*u,[a,o].indexOf(i)>=0?{x:s,y:c}:{x:c,y:s}}(e,n.rects,u),t}),{}),c=f[n.placement],s=c.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=c.x,n.modifiersData.popperOffsets.y+=s),n.modifiersData[e]=f}},it,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,u=t.name,f=e.mainAxis,s=void 0===f||f,d=e.altAxis,l=void 0!==d&&d,p=e.tether,h=void 0===p||p,v=e.tetherOffset,b=void 0===v?0:v,m=et(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),y=O(n.placement),w=D(n.placement),x=!w,k=C(y),M="x"===k?"y":"x",E=n.modifiersData.popperOffsets,A=n.rects.reference,B=n.rects.popper,P="function"==typeof b?b(Object.assign({},n.rects,{placement:n.placement})):b,L="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),R=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,S={x:0,y:0};if(E){if(s){var W,I="y"===k?r:a,z="y"===k?i:o,U="y"===k?"height":"width",_=E[k],F=_+m[I],V=_-m[z],Y=h?-B[U]/2:0,G=w===c?A[U]:B[U],J=w===c?-B[U]:-A[U],K=n.elements.arrow,N=h&&K?q(K):{width:0,height:0},Q=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=Q[I],Z=Q[z],$=H(0,A[U],N[U]),tt=x?A[U]/2-Y-$-X-L.mainAxis:G-$-X-L.mainAxis,nt=x?-A[U]/2+Y+$+Z+L.mainAxis:J+$+Z+L.mainAxis,rt=n.elements.arrow&&T(n.elements.arrow),it=null!=(W=null==R?void 0:R[k])?W:0,ot=_+nt-it,at=H(h?j(F,_+tt-it-(rt?"y"===k?rt.clientTop||0:rt.clientLeft||0:0)):F,_,h?g(V,ot):V);E[k]=at,S[k]=at-_}if(l){var ut,ft=E[M],ct="y"===M?"height":"width",st=ft+m["x"===k?r:a],dt=ft-m["x"===k?i:o],lt=-1!==[r,a].indexOf(y),pt=null!=(ut=null==R?void 0:R[M])?ut:0,ht=lt?st:ft-A[ct]-B[ct]-pt+L.altAxis,vt=lt?ft+A[ct]+B[ct]-pt-L.altAxis:dt,bt=h&&lt?function(t,n,e){var r=H(t,n,e);return r>e?e:r}(ht,ft,vt):H(h?ht:st,ft,h?vt:dt);E[M]=bt,S[M]=bt-ft}n.modifiersData[u]=S}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,u=t.name,c=t.options,s=e.elements.arrow,d=e.modifiersData.popperOffsets,l=O(e.placement),p=C(l),h=[a,o].indexOf(l)>=0?"height":"width";if(s&&d){var v=function(t,n){return I("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:z(t,f))}(c.padding,e),b=q(s),m="y"===p?r:a,y="y"===p?i:o,w=e.rects.reference[h]+e.rects.reference[p]-d[p]-e.rects.popper[h],x=d[p]-e.rects.reference[p],g=T(s),j=g?"y"===p?g.clientHeight||0:g.clientWidth||0:0,k=j/2-b[h]/2+(w/2-x/2),M=H(v[m],k,j-b[h]-v[y]);e.modifiersData[u]=((n={})[p]=M,n.centerOffset=M-k,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)))&&B(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=et(n,{elementContext:"reference"}),u=et(n,{altBoundary:!0}),f=ot(a,r),c=ot(u,i,o),s=at(f),d=at(c);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:d},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":d})}}]});const pt=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=lt(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:"8f01710b6c352f39b35c5814cd6a876ab7e088c5"},e("style",{key:"e1885fe648eda95a8efa50a8f6cd46a09f59cc61"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),e("div",{key:"b2d5d36d62207fceda79ad2d1d0d0680bee6a366",class:"popper-content",ref:t=>this.popperContentRef=t},e("slot",{key:"406218fe16ad4b65e3e80ca467c3c49a462dee18"})))}};export{pt as custom_popper}
1
+ import{r as t,c as n,h as e}from"./p-DwYM91AU.js";var r="top",i="bottom",o="right",a="left",u="auto",f=[r,i,o,a],c="start",s="end",d="viewport",l="popper",p=f.reduce((function(t,n){return t.concat([n+"-"+c,n+"-"+s])}),[]),h=[].concat(f,[u]).reduce((function(t,n){return t.concat([n,n+"-"+c,n+"-"+s])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function b(t){return t?(t.nodeName||"").toLowerCase():null}function m(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function y(t){return t instanceof m(t).Element||t instanceof Element}function w(t){return t instanceof m(t).HTMLElement||t instanceof HTMLElement}function x(t){return"undefined"!=typeof ShadowRoot&&(t instanceof m(t).ShadowRoot||t instanceof ShadowRoot)}function O(t){return t.split("-")[0]}var g=Math.max,j=Math.min,k=Math.round;function M(){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 E(){return!/^((?!chrome|android).)*safari/i.test(M())}function A(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=t.getBoundingClientRect(),i=1,o=1;n&&w(t)&&(i=t.offsetWidth>0&&k(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&k(r.height)/t.offsetHeight||1);var a=(y(t)?m(t):window).visualViewport,u=!E()&&e,f=(r.left+(u&&a?a.offsetLeft:0))/i,c=(r.top+(u&&a?a.offsetTop:0))/o,s=r.width/i,d=r.height/o;return{width:s,height:d,top:c,right:f+s,bottom:c+d,left:f,x:f,y:c}}function q(t){var n=A(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 B(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&x(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function P(t){return m(t).getComputedStyle(t)}function L(t){return["table","td","th"].indexOf(b(t))>=0}function R(t){return((y(t)?t.ownerDocument:t.document)||window.document).documentElement}function S(t){return"html"===b(t)?t:t.assignedSlot||t.parentNode||(x(t)?t.host:null)||R(t)}function W(t){return w(t)&&"fixed"!==P(t).position?t.offsetParent:null}function T(t){for(var n=m(t),e=W(t);e&&L(e)&&"static"===P(e).position;)e=W(e);return e&&("html"===b(e)||"body"===b(e)&&"static"===P(e).position)?n:e||function(t){var n=/firefox/i.test(M());if(/Trident/i.test(M())&&w(t)&&"fixed"===P(t).position)return null;var e=S(t);for(x(e)&&(e=e.host);w(e)&&["html","body"].indexOf(b(e))<0;){var r=P(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 C(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function H(t,n,e){return g(t,j(n,e))}function I(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function z(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function D(t){return t.split("-")[1]}var U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _(t){var n,e=t.popper,u=t.popperRect,f=t.placement,c=t.variation,d=t.offsets,l=t.position,p=t.gpuAcceleration,h=t.adaptive,v=t.roundOffsets,b=t.isFixed,y=d.x,w=void 0===y?0:y,x=d.y,O=void 0===x?0:x,g="function"==typeof v?v({x:w,y:O}):{x:w,y:O};w=g.x,O=g.y;var j=d.hasOwnProperty("x"),M=d.hasOwnProperty("y"),E=a,A=r,q=window;if(h){var B=T(e),L="clientHeight",S="clientWidth";B===m(e)&&"static"!==P(B=R(e)).position&&"absolute"===l&&(L="scrollHeight",S="scrollWidth"),(f===r||(f===a||f===o)&&c===s)&&(A=i,O-=(b&&B===q&&q.visualViewport?q.visualViewport.height:B[L])-u.height,O*=p?1:-1),f!==a&&(f!==r&&f!==i||c!==s)||(E=o,w-=(b&&B===q&&q.visualViewport?q.visualViewport.width:B[S])-u.width,w*=p?1:-1)}var W,C=Object.assign({position:l},h&&U),H=!0===v?function(t,n){var e=t.y,r=n.devicePixelRatio||1;return{x:k(t.x*r)/r||0,y:k(e*r)/r||0}}({x:w,y:O},m(e)):{x:w,y:O};return w=H.x,O=H.y,Object.assign({},C,p?((W={})[A]=M?"0":"",W[E]=j?"0":"",W.transform=(q.devicePixelRatio||1)<=1?"translate("+w+"px, "+O+"px)":"translate3d("+w+"px, "+O+"px, 0)",W):((n={})[A]=M?O+"px":"",n[E]=j?w+"px":"",n.transform="",n))}var F={passive:!0},V={left:"right",right:"left",bottom:"top",top:"bottom"};function Y(t){return t.replace(/left|right|bottom|top/g,(function(t){return V[t]}))}var G={start:"end",end:"start"};function J(t){return t.replace(/start|end/g,(function(t){return G[t]}))}function K(t){var n=m(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function N(t){return A(R(t)).left+K(t).scrollLeft}function Q(t){var n=P(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function X(t){return["html","body","#document"].indexOf(b(t))>=0?t.ownerDocument.body:w(t)&&Q(t)?t:X(S(t))}function Z(t,n){var e;void 0===n&&(n=[]);var r=X(t),i=r===(null==(e=t.ownerDocument)?void 0:e.body),o=m(r),a=i?[o].concat(o.visualViewport||[],Q(r)?r:[]):r,u=n.concat(a);return i?u:u.concat(Z(S(a)))}function $(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tt(t,n,e){return n===d?$(function(t,n){var e=m(t),r=R(t),i=e.visualViewport,o=r.clientWidth,a=r.clientHeight,u=0,f=0;if(i){o=i.width,a=i.height;var c=E();(c||!c&&"fixed"===n)&&(u=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:u+N(t),y:f}}(t,e)):y(n)?function(t,n){var e=A(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):$(function(t){var n,e=R(t),r=K(t),i=null==(n=t.ownerDocument)?void 0:n.body,o=g(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=g(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+N(t),f=-r.scrollTop;return"rtl"===P(i||e).direction&&(u+=g(e.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}(R(t)))}function nt(t){var n,e=t.reference,u=t.element,f=t.placement,d=f?O(f):null,l=f?D(f):null,p=e.x+e.width/2-u.width/2,h=e.y+e.height/2-u.height/2;switch(d){case r:n={x:p,y:e.y-u.height};break;case i:n={x:p,y:e.y+e.height};break;case o:n={x:e.x+e.width,y:h};break;case a:n={x:e.x-u.width,y:h};break;default:n={x:e.x,y:e.y}}var v=d?C(d):null;if(null!=v){var b="y"===v?"height":"width";switch(l){case c:n[v]=n[v]-(e[b]/2-u[b]/2);break;case s:n[v]=n[v]+(e[b]/2-u[b]/2)}}return n}function et(t,n){void 0===n&&(n={});var e=n.placement,a=void 0===e?t.placement:e,u=n.strategy,c=void 0===u?t.strategy:u,s=n.boundary,p=void 0===s?"clippingParents":s,h=n.rootBoundary,v=void 0===h?d:h,m=n.elementContext,x=void 0===m?l:m,O=n.altBoundary,k=void 0!==O&&O,M=n.padding,E=void 0===M?0:M,q=I("number"!=typeof E?E:z(E,f)),L=t.rects.popper,W=t.elements[k?x===l?"reference":l:x],C=function(t,n,e,r){var i="clippingParents"===n?function(t){var n=Z(S(t)),e=["absolute","fixed"].indexOf(P(t).position)>=0&&w(t)?T(t):t;return y(e)?n.filter((function(t){return y(t)&&B(t,e)&&"body"!==b(t)})):[]}(t):[].concat(n),o=[].concat(i,[e]),a=o.reduce((function(n,e){var i=tt(t,e,r);return n.top=g(i.top,n.top),n.right=j(i.right,n.right),n.bottom=j(i.bottom,n.bottom),n.left=g(i.left,n.left),n}),tt(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}(y(W)?W:W.contextElement||R(t.elements.popper),p,v,c),H=A(t.elements.reference),D=nt({reference:H,element:L,placement:a}),U=$(Object.assign({},L,D)),_=x===l?U:H,F={top:C.top-_.top+q.top,bottom:_.bottom-C.bottom+q.bottom,left:C.left-_.left+q.left,right:_.right-C.right+q.right},V=t.modifiersData.offset;if(x===l&&V){var Y=V[a];Object.keys(F).forEach((function(t){var n=[o,i].indexOf(t)>=0?1:-1,e=[r,i].indexOf(t)>=0?"y":"x";F[t]+=Y[e]*n}))}return F}function rt(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?h:a,c=D(n.placement),s=c?o?p:p.filter((function(t){return D(t)===c})):f,d=s.filter((function(t){return u.indexOf(t)>=0}));0===d.length&&(d=s);var l=d.reduce((function(n,o){return n[o]=et(t,{placement:o,boundary:e,rootBoundary:r,padding:i})[O(o)],n}),{});return Object.keys(l).sort((function(t,n){return l[t]-l[n]}))}var it={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,f=t.name;if(!n.modifiersData[f]._skip){for(var s=e.mainAxis,d=void 0===s||s,l=e.altAxis,p=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,j=n.options.placement,k=O(j),M=h||(k!==j&&x?function(t){if(O(t)===u)return[];var n=Y(t);return[J(t),n,J(n)]}(j):[Y(j)]),E=[j].concat(M).reduce((function(t,e){return t.concat(O(e)===u?rt(n,{placement:e,boundary:b,rootBoundary:m,padding:v,flipVariations:x,allowedAutoPlacements:g}):e)}),[]),A=n.rects.reference,q=n.rects.popper,B=new Map,P=!0,L=E[0],R=0;R<E.length;R++){var S=E[R],W=O(S),T=D(S)===c,C=[r,i].indexOf(W)>=0,H=C?"width":"height",I=et(n,{placement:S,boundary:b,rootBoundary:m,altBoundary:y,padding:v}),z=C?T?o:a:T?i:r;A[H]>q[H]&&(z=Y(z));var U=Y(z),_=[];if(d&&_.push(I[W]<=0),p&&_.push(I[z]<=0,I[U]<=0),_.every((function(t){return t}))){L=S,P=!1;break}B.set(S,_)}if(P)for(var F=function(t){var n=E.find((function(n){var e=B.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return L=n,"break"},V=x?3:1;V>0&&"break"!==F(V);V--);n.placement!==L&&(n.modifiersData[f]._skip=!0,n.placement=L,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ot(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 at(t){return[r,o,i,a].some((function(n){return t[n]>=0}))}function ut(t,n,e){void 0===e&&(e=!1);var r,i,o=w(n),a=w(n)&&function(t){var n=t.getBoundingClientRect(),e=k(n.width)/t.offsetWidth||1,r=k(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),u=R(n),f=A(t,a,e),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!e)&&(("body"!==b(n)||Q(u))&&(c=(r=n)!==m(r)&&w(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:K(r)),w(n)?((s=A(n,!0)).x+=n.clientLeft,s.y+=n.clientTop):u&&(s.x=N(u))),{x:f.left+c.scrollLeft-s.x,y:f.top+c.scrollTop-s.y,width:f.width,height:f.height}}function ft(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 ct={placement:"bottom",modifiers:[],strategy:"absolute"};function st(){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 dt(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?ct:r;return function(t,n,r){void 0===r&&(r=i);var o,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ct,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;d(),u.options=Object.assign({},i,u.options,o),u.scrollParents={reference:y(t)?Z(t):t.contextElement?Z(t.contextElement):[],popper:Z(n)};var a,c,l=function(t){var n=ft(t);return v.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=l.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(st(n,e)){u.rects={reference:ut(n,T(e),"fixed"===u.options.strategy),popper:q(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(){d(),c=!0}};if(!st(t,n))return s;function d(){f.forEach((function(t){return t()})),f=[]}return s.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),s}}var lt=dt({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=m(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",e.update,F)})),u&&f.addEventListener("resize",e.update,F),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",e.update,F)})),u&&f.removeEventListener("resize",e.update,F)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=nt({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:O(n.placement),variation:D(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,_(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,_(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];w(i)&&b(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}),{});w(r)&&b(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,i=t.options.offset,u=void 0===i?[0,0]:i,f=h.reduce((function(t,e){return t[e]=function(t,n,e){var i=O(t),u=[a,r].indexOf(i)>=0?-1:1,f="function"==typeof e?e(Object.assign({},n,{placement:t})):e,c=f[0],s=f[1];return c=c||0,s=(s||0)*u,[a,o].indexOf(i)>=0?{x:s,y:c}:{x:c,y:s}}(e,n.rects,u),t}),{}),c=f[n.placement],s=c.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=c.x,n.modifiersData.popperOffsets.y+=s),n.modifiersData[e]=f}},it,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,u=t.name,f=e.mainAxis,s=void 0===f||f,d=e.altAxis,l=void 0!==d&&d,p=e.tether,h=void 0===p||p,v=e.tetherOffset,b=void 0===v?0:v,m=et(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),y=O(n.placement),w=D(n.placement),x=!w,k=C(y),M="x"===k?"y":"x",E=n.modifiersData.popperOffsets,A=n.rects.reference,B=n.rects.popper,P="function"==typeof b?b(Object.assign({},n.rects,{placement:n.placement})):b,L="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),R=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,S={x:0,y:0};if(E){if(s){var W,I="y"===k?r:a,z="y"===k?i:o,U="y"===k?"height":"width",_=E[k],F=_+m[I],V=_-m[z],Y=h?-B[U]/2:0,G=w===c?A[U]:B[U],J=w===c?-B[U]:-A[U],K=n.elements.arrow,N=h&&K?q(K):{width:0,height:0},Q=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=Q[I],Z=Q[z],$=H(0,A[U],N[U]),tt=x?A[U]/2-Y-$-X-L.mainAxis:G-$-X-L.mainAxis,nt=x?-A[U]/2+Y+$+Z+L.mainAxis:J+$+Z+L.mainAxis,rt=n.elements.arrow&&T(n.elements.arrow),it=null!=(W=null==R?void 0:R[k])?W:0,ot=_+nt-it,at=H(h?j(F,_+tt-it-(rt?"y"===k?rt.clientTop||0:rt.clientLeft||0:0)):F,_,h?g(V,ot):V);E[k]=at,S[k]=at-_}if(l){var ut,ft=E[M],ct="y"===M?"height":"width",st=ft+m["x"===k?r:a],dt=ft-m["x"===k?i:o],lt=-1!==[r,a].indexOf(y),pt=null!=(ut=null==R?void 0:R[M])?ut:0,ht=lt?st:ft-A[ct]-B[ct]-pt+L.altAxis,vt=lt?ft+A[ct]+B[ct]-pt-L.altAxis:dt,bt=h&&lt?function(t,n,e){var r=H(t,n,e);return r>e?e:r}(ht,ft,vt):H(h?ht:st,ft,h?vt:dt);E[M]=bt,S[M]=bt-ft}n.modifiersData[u]=S}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,u=t.name,c=t.options,s=e.elements.arrow,d=e.modifiersData.popperOffsets,l=O(e.placement),p=C(l),h=[a,o].indexOf(l)>=0?"height":"width";if(s&&d){var v=function(t,n){return I("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:z(t,f))}(c.padding,e),b=q(s),m="y"===p?r:a,y="y"===p?i:o,w=e.rects.reference[h]+e.rects.reference[p]-d[p]-e.rects.popper[h],x=d[p]-e.rects.reference[p],g=T(s),j=g?"y"===p?g.clientHeight||0:g.clientWidth||0:0,k=j/2-b[h]/2+(w/2-x/2),M=H(v[m],k,j-b[h]-v[y]);e.modifiersData[u]=((n={})[p]=M,n.centerOffset=M-k,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)))&&B(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=et(n,{elementContext:"reference"}),u=et(n,{altBoundary:!0}),f=ot(a,r),c=ot(u,i,o),s=at(f),d=at(c);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:d},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":d})}}]});const pt=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=lt(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:"d41a43285190500dbdf63ebfe4c381e6ebe3c680"},e("style",{key:"c9f85586d09e78390d94a2c62815a30d5b5c72c8"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),e("div",{key:"34cd3ce248d7856ef8cd287bf460fa663ff047da",class:"popper-content",ref:t=>this.popperContentRef=t},e("slot",{key:"8cf3cc61f96ccd087435dceb2a999bc367c110b8"})))}};export{pt as custom_popper}