@adyen/bento-vue3 1.6.1 → 1.7.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 (286) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +3 -1
  3. package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +45 -0
  4. package/dist/@types/packages/vue2/src/components/action-bar/index.d.ts +1 -0
  5. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +4 -4
  6. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
  7. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +229 -220
  8. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +9 -0
  9. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  10. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
  11. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +5 -5
  12. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +4 -3
  14. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +44 -46
  15. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
  16. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +8 -2
  17. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +6 -0
  18. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +8 -2
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
  20. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
  21. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +46 -28
  22. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  23. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.types.d.ts +2 -0
  24. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +22 -4
  25. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +5 -2
  26. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +802 -52
  27. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -5
  28. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +1 -1
  29. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
  30. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -0
  31. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +3 -3
  32. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +1 -1
  33. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  34. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -2
  35. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +21 -0
  36. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +6 -0
  37. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +19 -0
  38. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +22 -1
  40. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +64 -7
  41. package/dist/@types/packages/vue2/src/components/internal/teleport/index.d.ts +1 -0
  42. package/dist/@types/packages/vue2/src/components/internal/teleport/teleport.vue.d.ts +50 -0
  43. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +1 -1
  44. package/dist/@types/packages/vue2/src/components/menu/menu.keys.d.ts +1 -0
  45. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +15 -11
  46. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +9 -0
  47. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +10 -1
  48. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +1 -0
  49. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
  50. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -5
  51. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +10 -5
  52. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +21 -0
  53. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +21 -5
  54. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
  55. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -1
  56. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -2
  57. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
  58. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.keys.d.ts +1 -0
  59. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +3 -0
  60. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -0
  61. package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +9 -0
  62. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -0
  63. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +2 -0
  64. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -5
  65. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +7 -4
  66. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -2
  67. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +15 -15
  68. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/index.d.ts +1 -0
  69. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue.d.ts +12 -0
  70. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/index.d.ts +1 -0
  71. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +173 -0
  72. package/dist/@types/packages/vue2/src/components/tutorial/index.d.ts +2 -0
  73. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +13 -0
  74. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +16 -0
  75. package/dist/@types/packages/vue2/src/composables/index.d.ts +5 -2
  76. package/dist/@types/packages/vue2/src/composables/use-click-outside/use-click-outside.d.ts +3 -0
  77. package/dist/@types/packages/vue2/src/composables/use-form-validate/index.d.ts +2 -0
  78. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +12 -0
  79. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -0
  80. package/dist/@types/packages/vue2/src/composables/use-virtual-list/index.d.ts +2 -0
  81. package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.d.ts +15 -0
  82. package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.types.d.ts +20 -0
  83. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  84. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +4 -4
  85. package/dist/@types/packages/vue2/src/types/listbox.d.ts +12 -0
  86. package/dist/accordion.js +52 -43
  87. package/dist/accordion.js.map +1 -1
  88. package/dist/action-bar.js +210 -0
  89. package/dist/action-bar.js.map +1 -0
  90. package/dist/alert.js +3 -3
  91. package/dist/assets/base-modal.css +1 -1
  92. package/dist/assets/button-actions-with-menu.css +1 -0
  93. package/dist/assets/button.css +1 -1
  94. package/dist/assets/calendar.css +1 -1
  95. package/dist/assets/checkbox.css +1 -1
  96. package/dist/assets/checkmark.css +1 -0
  97. package/dist/assets/chevron-left.css +1 -0
  98. package/dist/assets/dropdown-default-textbox.css +1 -1
  99. package/dist/assets/dropdown.css +1 -1
  100. package/dist/assets/fixed-scroller.css +1 -0
  101. package/dist/assets/index.css +1 -1
  102. package/dist/assets/index10.css +1 -1
  103. package/dist/assets/index11.css +1 -1
  104. package/dist/assets/index12.css +1 -1
  105. package/dist/assets/index13.css +1 -1
  106. package/dist/assets/index14.css +1 -1
  107. package/dist/assets/index15.css +1 -1
  108. package/dist/assets/index16.css +1 -1
  109. package/dist/assets/index17.css +1 -1
  110. package/dist/assets/index18.css +1 -1
  111. package/dist/assets/index19.css +1 -1
  112. package/dist/assets/index2.css +1 -1
  113. package/dist/assets/index20.css +1 -1
  114. package/dist/assets/index21.css +1 -1
  115. package/dist/assets/index22.css +1 -1
  116. package/dist/assets/index23.css +1 -1
  117. package/dist/assets/index24.css +1 -1
  118. package/dist/assets/index25.css +1 -1
  119. package/dist/assets/index26.css +1 -1
  120. package/dist/assets/index27.css +1 -1
  121. package/dist/assets/index28.css +1 -1
  122. package/dist/assets/index29.css +1 -1
  123. package/dist/assets/index3.css +1 -1
  124. package/dist/assets/index30.css +1 -1
  125. package/dist/assets/index31.css +1 -1
  126. package/dist/assets/index32.css +1 -1
  127. package/dist/assets/index33.css +1 -1
  128. package/dist/assets/index34.css +1 -1
  129. package/dist/assets/index35.css +1 -1
  130. package/dist/assets/index36.css +1 -1
  131. package/dist/assets/index37.css +1 -1
  132. package/dist/assets/index38.css +1 -1
  133. package/dist/assets/index39.css +1 -1
  134. package/dist/assets/index40.css +1 -1
  135. package/dist/assets/index41.css +1 -1
  136. package/dist/assets/index42.css +1 -1
  137. package/dist/assets/index43.css +1 -1
  138. package/dist/assets/index44.css +1 -1
  139. package/dist/assets/index45.css +1 -1
  140. package/dist/assets/index46.css +1 -0
  141. package/dist/assets/index5.css +1 -1
  142. package/dist/assets/index6.css +1 -1
  143. package/dist/assets/index7.css +1 -1
  144. package/dist/assets/index8.css +1 -1
  145. package/dist/assets/index9.css +1 -1
  146. package/dist/assets/listbox.css +1 -1
  147. package/dist/assets/refresh.css +1 -0
  148. package/dist/avatar-image.js +1 -1
  149. package/dist/badge.js +1 -1
  150. package/dist/button.js +30 -22
  151. package/dist/button.js.map +1 -1
  152. package/dist/card.js +84 -84
  153. package/dist/card.js.map +1 -1
  154. package/dist/checkbox.js +6 -6
  155. package/dist/chunks/{base-button.4b5ab17e.js → base-button.7897a95e.js} +2 -2
  156. package/dist/chunks/{base-button.4b5ab17e.js.map → base-button.7897a95e.js.map} +1 -1
  157. package/dist/chunks/{base-modal.53a229ac.js → base-modal.0c85e7cb.js} +4 -4
  158. package/dist/chunks/{base-modal.53a229ac.js.map → base-modal.0c85e7cb.js.map} +1 -1
  159. package/dist/chunks/button-actions-with-menu.fa35390c.js +107 -0
  160. package/dist/chunks/button-actions-with-menu.fa35390c.js.map +1 -0
  161. package/dist/chunks/{button.975d0bb8.js → button.e5177388.js} +44 -36
  162. package/dist/chunks/button.e5177388.js.map +1 -0
  163. package/dist/chunks/{calendar.cc37ac1f.js → calendar.c83d4e99.js} +274 -250
  164. package/dist/chunks/calendar.c83d4e99.js.map +1 -0
  165. package/dist/chunks/{checkbox.67ceb148.js → checkbox.3cdbdd52.js} +7 -7
  166. package/dist/chunks/{checkbox.67ceb148.js.map → checkbox.3cdbdd52.js.map} +1 -1
  167. package/dist/chunks/checkmark.83e4f1e0.js +30 -0
  168. package/dist/chunks/checkmark.83e4f1e0.js.map +1 -0
  169. package/dist/chunks/{chevron-right.aef416c6.js → chevron-left.2fd6b083.js} +10 -10
  170. package/dist/chunks/chevron-left.2fd6b083.js.map +1 -0
  171. package/dist/chunks/{controls-group.7214dc7f.js → controls-group.38b436f6.js} +2 -2
  172. package/dist/chunks/{controls-group.7214dc7f.js.map → controls-group.38b436f6.js.map} +1 -1
  173. package/dist/chunks/{copy.7a73d1fd.js → copy.86236c8d.js} +4 -4
  174. package/dist/chunks/{copy.7a73d1fd.js.map → copy.86236c8d.js.map} +1 -1
  175. package/dist/chunks/{dropdown-default-textbox.0f878a8d.js → dropdown-default-textbox.0b38fac3.js} +4 -4
  176. package/dist/chunks/dropdown-default-textbox.0b38fac3.js.map +1 -0
  177. package/dist/chunks/{dropdown.7a104ce3.js → dropdown.afff433b.js} +144 -110
  178. package/dist/chunks/dropdown.afff433b.js.map +1 -0
  179. package/dist/chunks/{error-message.b91afffc.js → error-message.64e1964b.js} +2 -2
  180. package/dist/chunks/{error-message.b91afffc.js.map → error-message.64e1964b.js.map} +1 -1
  181. package/dist/chunks/fixed-scroller.e5aa7b00.js +148 -0
  182. package/dist/chunks/fixed-scroller.e5aa7b00.js.map +1 -0
  183. package/dist/chunks/{footer-actions.13f19a22.js → footer-actions.1ce44374.js} +3 -3
  184. package/dist/chunks/{footer-actions.13f19a22.js.map → footer-actions.1ce44374.js.map} +1 -1
  185. package/dist/chunks/{index.7f24db66.js → index.2bd3812b.js} +2 -2
  186. package/dist/chunks/{index.7f24db66.js.map → index.2bd3812b.js.map} +1 -1
  187. package/dist/chunks/{index.1dc4ebae.js → index.369b0e66.js} +112 -92
  188. package/dist/chunks/index.369b0e66.js.map +1 -0
  189. package/dist/chunks/{index.536bcb56.js → index.6a665ade.js} +3 -3
  190. package/dist/chunks/{index.536bcb56.js.map → index.6a665ade.js.map} +1 -1
  191. package/dist/chunks/{index.4c951e0d.js → index.77f35162.js} +6 -6
  192. package/dist/chunks/{index.4c951e0d.js.map → index.77f35162.js.map} +1 -1
  193. package/dist/chunks/index.bcc58fdd.js +1334 -0
  194. package/dist/chunks/index.bcc58fdd.js.map +1 -0
  195. package/dist/chunks/index.c207e9ab.js +602 -0
  196. package/dist/chunks/index.c207e9ab.js.map +1 -0
  197. package/dist/chunks/{index.6700224a.js → index.e579bc02.js} +2 -2
  198. package/dist/chunks/{index.6700224a.js.map → index.e579bc02.js.map} +1 -1
  199. package/dist/chunks/{index.d68847b0.js → index.fa7b44f1.js} +2 -2
  200. package/dist/chunks/{index.d68847b0.js.map → index.fa7b44f1.js.map} +1 -1
  201. package/dist/chunks/{listbox-option-tag.0f31ecb2.js → listbox-option-tag.809ec40e.js} +3 -3
  202. package/dist/chunks/{listbox-option-tag.0f31ecb2.js.map → listbox-option-tag.809ec40e.js.map} +1 -1
  203. package/dist/chunks/listbox.f6e5a11d.js +1306 -0
  204. package/dist/chunks/listbox.f6e5a11d.js.map +1 -0
  205. package/dist/chunks/{loading-button.6523a015.js → loading-button.746b7fa1.js} +2 -2
  206. package/dist/chunks/{loading-button.6523a015.js.map → loading-button.746b7fa1.js.map} +1 -1
  207. package/dist/chunks/refresh.c38c9eee.js +30 -0
  208. package/dist/chunks/refresh.c38c9eee.js.map +1 -0
  209. package/dist/chunks/summary-grid.keys.1d1028c2.js +5 -0
  210. package/dist/chunks/summary-grid.keys.1d1028c2.js.map +1 -0
  211. package/dist/chunks/{tooltip.b5391514.js → tooltip.f769eb14.js} +54 -51
  212. package/dist/chunks/{tooltip.b5391514.js.map → tooltip.f769eb14.js.map} +1 -1
  213. package/dist/code-snippet.js +6 -6
  214. package/dist/code-snippet.js.map +1 -1
  215. package/dist/country.js +553 -541
  216. package/dist/country.js.map +1 -1
  217. package/dist/currency.js +1 -1
  218. package/dist/data-grid.js +10 -10
  219. package/dist/data-grid.js.map +1 -1
  220. package/dist/date-picker.js +129 -118
  221. package/dist/date-picker.js.map +1 -1
  222. package/dist/date-range-picker.js +2 -2
  223. package/dist/date.js +1 -1
  224. package/dist/divider.js +1 -1
  225. package/dist/dropdown.js +4 -4
  226. package/dist/empty-state.js +44 -42
  227. package/dist/empty-state.js.map +1 -1
  228. package/dist/filter-bar.js +696 -683
  229. package/dist/filter-bar.js.map +1 -1
  230. package/dist/focus-trap.js +1 -1
  231. package/dist/form-layout.js +3 -3
  232. package/dist/header.js +121 -198
  233. package/dist/header.js.map +1 -1
  234. package/dist/image.js +4 -4
  235. package/dist/index.js +164 -158
  236. package/dist/index.js.map +1 -1
  237. package/dist/info-icon.js +8 -8
  238. package/dist/input-field.js +7 -7
  239. package/dist/internal.js +20 -144
  240. package/dist/internal.js.map +1 -1
  241. package/dist/link.js +2 -2
  242. package/dist/loading-indicator.js +1 -1
  243. package/dist/menu.js +3 -592
  244. package/dist/menu.js.map +1 -1
  245. package/dist/modal.js +3 -3
  246. package/dist/pagination.js +37 -21
  247. package/dist/pagination.js.map +1 -1
  248. package/dist/payment-method.js +50 -40
  249. package/dist/payment-method.js.map +1 -1
  250. package/dist/popover.js +16 -16
  251. package/dist/popper-container.js +6 -1276
  252. package/dist/popper-container.js.map +1 -1
  253. package/dist/radio-group.js +128 -97
  254. package/dist/radio-group.js.map +1 -1
  255. package/dist/search-bar.js +2 -2
  256. package/dist/segmented-control.js +130 -106
  257. package/dist/segmented-control.js.map +1 -1
  258. package/dist/sidepanel.js +94 -91
  259. package/dist/sidepanel.js.map +1 -1
  260. package/dist/status.js +2 -2
  261. package/dist/stepper.js +3 -3
  262. package/dist/structured-list.js +1 -1
  263. package/dist/summary-grid.js +146 -163
  264. package/dist/summary-grid.js.map +1 -1
  265. package/dist/tabs.js +128 -99
  266. package/dist/tabs.js.map +1 -1
  267. package/dist/tag.js +3 -3
  268. package/dist/textarea.js +4 -4
  269. package/dist/timeline.js +216 -203
  270. package/dist/timeline.js.map +1 -1
  271. package/dist/toast.js +3 -3
  272. package/dist/toggle.js +6 -6
  273. package/dist/tutorial.js +375 -0
  274. package/dist/tutorial.js.map +1 -0
  275. package/dist/typography.js +1 -1
  276. package/dist/web-types.json +1 -1
  277. package/package.json +5 -2
  278. package/dist/assets/chevron-right.css +0 -1
  279. package/dist/chunks/button.975d0bb8.js.map +0 -1
  280. package/dist/chunks/calendar.cc37ac1f.js.map +0 -1
  281. package/dist/chunks/chevron-right.aef416c6.js.map +0 -1
  282. package/dist/chunks/dropdown-default-textbox.0f878a8d.js.map +0 -1
  283. package/dist/chunks/dropdown.7a104ce3.js.map +0 -1
  284. package/dist/chunks/index.1dc4ebae.js.map +0 -1
  285. package/dist/chunks/listbox.0f25778d.js +0 -1213
  286. package/dist/chunks/listbox.0f25778d.js.map +0 -1
@@ -0,0 +1,1334 @@
1
+ import { unref as B, computed as R, ref as j, shallowRef as qt, watch as Z, getCurrentScope as Gt, onScopeDispose as Kt, shallowReadonly as G, defineComponent as Jt, toRefs as Qt, openBlock as yt, createBlock as Zt, mergeProps as xt, withCtx as te, renderSlot as ee, createElementBlock as ne, createCommentVNode as oe } from "vue";
2
+ import { B as ie } from "./index.e579bc02.js";
3
+ import { _ as re } from "./_plugin-vue_export-helper.dad06003.js";
4
+ import "../assets/index31.css";
5
+ const Pt = ["top", "right", "bottom", "left"], bt = ["start", "end"], Ot = /* @__PURE__ */ Pt.reduce((t, e) => t.concat(e, e + "-" + bt[0], e + "-" + bt[1]), []), J = Math.min, X = Math.max, it = Math.round, ot = Math.floor, z = (t) => ({
6
+ x: t,
7
+ y: t
8
+ }), se = {
9
+ left: "right",
10
+ right: "left",
11
+ bottom: "top",
12
+ top: "bottom"
13
+ }, le = {
14
+ start: "end",
15
+ end: "start"
16
+ };
17
+ function ut(t, e, n) {
18
+ return X(t, J(e, n));
19
+ }
20
+ function q(t, e) {
21
+ return typeof t == "function" ? t(e) : t;
22
+ }
23
+ function N(t) {
24
+ return t.split("-")[0];
25
+ }
26
+ function M(t) {
27
+ return t.split("-")[1];
28
+ }
29
+ function Ft(t) {
30
+ return t === "x" ? "y" : "x";
31
+ }
32
+ function mt(t) {
33
+ return t === "y" ? "height" : "width";
34
+ }
35
+ function ct(t) {
36
+ return ["top", "bottom"].includes(N(t)) ? "y" : "x";
37
+ }
38
+ function pt(t) {
39
+ return Ft(ct(t));
40
+ }
41
+ function kt(t, e, n) {
42
+ n === void 0 && (n = !1);
43
+ const o = M(t), i = pt(t), s = mt(i);
44
+ let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
45
+ return e.reference[s] > e.floating[s] && (r = st(r)), [r, st(r)];
46
+ }
47
+ function ce(t) {
48
+ const e = st(t);
49
+ return [rt(t), e, rt(e)];
50
+ }
51
+ function rt(t) {
52
+ return t.replace(/start|end/g, (e) => le[e]);
53
+ }
54
+ function ae(t, e, n) {
55
+ const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
56
+ switch (t) {
57
+ case "top":
58
+ case "bottom":
59
+ return n ? e ? i : o : e ? o : i;
60
+ case "left":
61
+ case "right":
62
+ return e ? s : r;
63
+ default:
64
+ return [];
65
+ }
66
+ }
67
+ function fe(t, e, n, o) {
68
+ const i = M(t);
69
+ let s = ae(N(t), n === "start", o);
70
+ return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(rt)))), s;
71
+ }
72
+ function st(t) {
73
+ return t.replace(/left|right|bottom|top/g, (e) => se[e]);
74
+ }
75
+ function ue(t) {
76
+ return {
77
+ top: 0,
78
+ right: 0,
79
+ bottom: 0,
80
+ left: 0,
81
+ ...t
82
+ };
83
+ }
84
+ function Bt(t) {
85
+ return typeof t != "number" ? ue(t) : {
86
+ top: t,
87
+ right: t,
88
+ bottom: t,
89
+ left: t
90
+ };
91
+ }
92
+ function lt(t) {
93
+ return {
94
+ ...t,
95
+ top: t.y,
96
+ left: t.x,
97
+ right: t.x + t.width,
98
+ bottom: t.y + t.height
99
+ };
100
+ }
101
+ function At(t, e, n) {
102
+ let {
103
+ reference: o,
104
+ floating: i
105
+ } = t;
106
+ const s = ct(e), r = pt(e), l = mt(r), a = N(e), c = s === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[l] / 2 - i[l] / 2;
107
+ let f;
108
+ switch (a) {
109
+ case "top":
110
+ f = {
111
+ x: u,
112
+ y: o.y - i.height
113
+ };
114
+ break;
115
+ case "bottom":
116
+ f = {
117
+ x: u,
118
+ y: o.y + o.height
119
+ };
120
+ break;
121
+ case "right":
122
+ f = {
123
+ x: o.x + o.width,
124
+ y: d
125
+ };
126
+ break;
127
+ case "left":
128
+ f = {
129
+ x: o.x - i.width,
130
+ y: d
131
+ };
132
+ break;
133
+ default:
134
+ f = {
135
+ x: o.x,
136
+ y: o.y
137
+ };
138
+ }
139
+ switch (M(e)) {
140
+ case "start":
141
+ f[r] -= p * (n && c ? -1 : 1);
142
+ break;
143
+ case "end":
144
+ f[r] += p * (n && c ? -1 : 1);
145
+ break;
146
+ }
147
+ return f;
148
+ }
149
+ const de = async (t, e, n) => {
150
+ const {
151
+ placement: o = "bottom",
152
+ strategy: i = "absolute",
153
+ middleware: s = [],
154
+ platform: r
155
+ } = n, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
156
+ let c = await r.getElementRects({
157
+ reference: t,
158
+ floating: e,
159
+ strategy: i
160
+ }), {
161
+ x: u,
162
+ y: d
163
+ } = At(c, o, a), p = o, f = {}, m = 0;
164
+ for (let g = 0; g < l.length; g++) {
165
+ const {
166
+ name: w,
167
+ fn: h
168
+ } = l[g], {
169
+ x: v,
170
+ y,
171
+ data: b,
172
+ reset: O
173
+ } = await h({
174
+ x: u,
175
+ y: d,
176
+ initialPlacement: o,
177
+ placement: p,
178
+ strategy: i,
179
+ middlewareData: f,
180
+ rects: c,
181
+ platform: r,
182
+ elements: {
183
+ reference: t,
184
+ floating: e
185
+ }
186
+ });
187
+ u = v ?? u, d = y ?? d, f = {
188
+ ...f,
189
+ [w]: {
190
+ ...f[w],
191
+ ...b
192
+ }
193
+ }, O && m <= 50 && (m++, typeof O == "object" && (O.placement && (p = O.placement), O.rects && (c = O.rects === !0 ? await r.getElementRects({
194
+ reference: t,
195
+ floating: e,
196
+ strategy: i
197
+ }) : O.rects), {
198
+ x: u,
199
+ y: d
200
+ } = At(c, p, a)), g = -1);
201
+ }
202
+ return {
203
+ x: u,
204
+ y: d,
205
+ placement: p,
206
+ strategy: i,
207
+ middlewareData: f
208
+ };
209
+ };
210
+ async function tt(t, e) {
211
+ var n;
212
+ e === void 0 && (e = {});
213
+ const {
214
+ x: o,
215
+ y: i,
216
+ platform: s,
217
+ rects: r,
218
+ elements: l,
219
+ strategy: a
220
+ } = t, {
221
+ boundary: c = "clippingAncestors",
222
+ rootBoundary: u = "viewport",
223
+ elementContext: d = "floating",
224
+ altBoundary: p = !1,
225
+ padding: f = 0
226
+ } = q(e, t), m = Bt(f), w = l[p ? d === "floating" ? "reference" : "floating" : d], h = lt(await s.getClippingRect({
227
+ element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
228
+ boundary: c,
229
+ rootBoundary: u,
230
+ strategy: a
231
+ })), v = d === "floating" ? {
232
+ ...r.floating,
233
+ x: o,
234
+ y: i
235
+ } : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), b = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
236
+ x: 1,
237
+ y: 1
238
+ } : {
239
+ x: 1,
240
+ y: 1
241
+ }, O = lt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
242
+ elements: l,
243
+ rect: v,
244
+ offsetParent: y,
245
+ strategy: a
246
+ }) : v);
247
+ return {
248
+ top: (h.top - O.top + m.top) / b.y,
249
+ bottom: (O.bottom - h.bottom + m.bottom) / b.y,
250
+ left: (h.left - O.left + m.left) / b.x,
251
+ right: (O.right - h.right + m.right) / b.x
252
+ };
253
+ }
254
+ const me = (t) => ({
255
+ name: "arrow",
256
+ options: t,
257
+ async fn(e) {
258
+ const {
259
+ x: n,
260
+ y: o,
261
+ placement: i,
262
+ rects: s,
263
+ platform: r,
264
+ elements: l,
265
+ middlewareData: a
266
+ } = e, {
267
+ element: c,
268
+ padding: u = 0
269
+ } = q(t, e) || {};
270
+ if (c == null)
271
+ return {};
272
+ const d = Bt(u), p = {
273
+ x: n,
274
+ y: o
275
+ }, f = pt(i), m = mt(f), g = await r.getDimensions(c), w = f === "y", h = w ? "top" : "left", v = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", b = s.reference[m] + s.reference[f] - p[f] - s.floating[m], O = p[f] - s.reference[f], A = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
276
+ let x = A ? A[y] : 0;
277
+ (!x || !await (r.isElement == null ? void 0 : r.isElement(A))) && (x = l.floating[y] || s.floating[m]);
278
+ const L = b / 2 - O / 2, D = x / 2 - g[m] / 2 - 1, T = J(d[h], D), P = J(d[v], D), E = T, U = x - g[m] - P, S = x / 2 - g[m] / 2 + L, F = ut(E, S, U), k = !a.arrow && M(i) != null && S !== F && s.reference[m] / 2 - (S < E ? T : P) - g[m] / 2 < 0, H = k ? S < E ? S - E : S - U : 0;
279
+ return {
280
+ [f]: p[f] + H,
281
+ data: {
282
+ [f]: F,
283
+ centerOffset: S - F - H,
284
+ ...k && {
285
+ alignmentOffset: H
286
+ }
287
+ },
288
+ reset: k
289
+ };
290
+ }
291
+ });
292
+ function pe(t, e, n) {
293
+ return (t ? [...n.filter((i) => M(i) === t), ...n.filter((i) => M(i) !== t)] : n.filter((i) => N(i) === i)).filter((i) => t ? M(i) === t || (e ? rt(i) !== i : !1) : !0);
294
+ }
295
+ const ge = function(t) {
296
+ return t === void 0 && (t = {}), {
297
+ name: "autoPlacement",
298
+ options: t,
299
+ async fn(e) {
300
+ var n, o, i;
301
+ const {
302
+ rects: s,
303
+ middlewareData: r,
304
+ placement: l,
305
+ platform: a,
306
+ elements: c
307
+ } = e, {
308
+ crossAxis: u = !1,
309
+ alignment: d,
310
+ allowedPlacements: p = Ot,
311
+ autoAlignment: f = !0,
312
+ ...m
313
+ } = q(t, e), g = d !== void 0 || p === Ot ? pe(d || null, f, p) : p, w = await tt(e, m), h = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, v = g[h];
314
+ if (v == null)
315
+ return {};
316
+ const y = kt(v, s, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
317
+ if (l !== v)
318
+ return {
319
+ reset: {
320
+ placement: g[0]
321
+ }
322
+ };
323
+ const b = [w[N(v)], w[y[0]], w[y[1]]], O = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
324
+ placement: v,
325
+ overflows: b
326
+ }], A = g[h + 1];
327
+ if (A)
328
+ return {
329
+ data: {
330
+ index: h + 1,
331
+ overflows: O
332
+ },
333
+ reset: {
334
+ placement: A
335
+ }
336
+ };
337
+ const x = O.map((T) => {
338
+ const P = M(T.placement);
339
+ return [T.placement, P && u ? (
340
+ // Check along the mainAxis and main crossAxis side.
341
+ T.overflows.slice(0, 2).reduce((E, U) => E + U, 0)
342
+ ) : (
343
+ // Check only the mainAxis.
344
+ T.overflows[0]
345
+ ), T.overflows];
346
+ }).sort((T, P) => T[1] - P[1]), D = ((i = x.filter((T) => T[2].slice(
347
+ 0,
348
+ // Aligned placements should not check their opposite crossAxis
349
+ // side.
350
+ M(T[0]) ? 2 : 3
351
+ ).every((P) => P <= 0))[0]) == null ? void 0 : i[0]) || x[0][0];
352
+ return D !== l ? {
353
+ data: {
354
+ index: h + 1,
355
+ overflows: O
356
+ },
357
+ reset: {
358
+ placement: D
359
+ }
360
+ } : {};
361
+ }
362
+ };
363
+ }, he = function(t) {
364
+ return t === void 0 && (t = {}), {
365
+ name: "flip",
366
+ options: t,
367
+ async fn(e) {
368
+ var n, o;
369
+ const {
370
+ placement: i,
371
+ middlewareData: s,
372
+ rects: r,
373
+ initialPlacement: l,
374
+ platform: a,
375
+ elements: c
376
+ } = e, {
377
+ mainAxis: u = !0,
378
+ crossAxis: d = !0,
379
+ fallbackPlacements: p,
380
+ fallbackStrategy: f = "bestFit",
381
+ fallbackAxisSideDirection: m = "none",
382
+ flipAlignment: g = !0,
383
+ ...w
384
+ } = q(t, e);
385
+ if ((n = s.arrow) != null && n.alignmentOffset)
386
+ return {};
387
+ const h = N(i), v = N(l) === l, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = p || (v || !g ? [st(l)] : ce(l));
388
+ !p && m !== "none" && b.push(...fe(l, g, m, y));
389
+ const O = [l, ...b], A = await tt(e, w), x = [];
390
+ let L = ((o = s.flip) == null ? void 0 : o.overflows) || [];
391
+ if (u && x.push(A[h]), d) {
392
+ const E = kt(i, r, y);
393
+ x.push(A[E[0]], A[E[1]]);
394
+ }
395
+ if (L = [...L, {
396
+ placement: i,
397
+ overflows: x
398
+ }], !x.every((E) => E <= 0)) {
399
+ var D, T;
400
+ const E = (((D = s.flip) == null ? void 0 : D.index) || 0) + 1, U = O[E];
401
+ if (U)
402
+ return {
403
+ data: {
404
+ index: E,
405
+ overflows: L
406
+ },
407
+ reset: {
408
+ placement: U
409
+ }
410
+ };
411
+ let S = (T = L.filter((F) => F.overflows[0] <= 0).sort((F, k) => F.overflows[1] - k.overflows[1])[0]) == null ? void 0 : T.placement;
412
+ if (!S)
413
+ switch (f) {
414
+ case "bestFit": {
415
+ var P;
416
+ const F = (P = L.map((k) => [k.placement, k.overflows.filter((H) => H > 0).reduce((H, Yt) => H + Yt, 0)]).sort((k, H) => k[1] - H[1])[0]) == null ? void 0 : P[0];
417
+ F && (S = F);
418
+ break;
419
+ }
420
+ case "initialPlacement":
421
+ S = l;
422
+ break;
423
+ }
424
+ if (i !== S)
425
+ return {
426
+ reset: {
427
+ placement: S
428
+ }
429
+ };
430
+ }
431
+ return {};
432
+ }
433
+ };
434
+ };
435
+ function Tt(t, e) {
436
+ return {
437
+ top: t.top - e.height,
438
+ right: t.right - e.width,
439
+ bottom: t.bottom - e.height,
440
+ left: t.left - e.width
441
+ };
442
+ }
443
+ function Rt(t) {
444
+ return Pt.some((e) => t[e] >= 0);
445
+ }
446
+ const we = function(t) {
447
+ return t === void 0 && (t = {}), {
448
+ name: "hide",
449
+ options: t,
450
+ async fn(e) {
451
+ const {
452
+ rects: n
453
+ } = e, {
454
+ strategy: o = "referenceHidden",
455
+ ...i
456
+ } = q(t, e);
457
+ switch (o) {
458
+ case "referenceHidden": {
459
+ const s = await tt(e, {
460
+ ...i,
461
+ elementContext: "reference"
462
+ }), r = Tt(s, n.reference);
463
+ return {
464
+ data: {
465
+ referenceHiddenOffsets: r,
466
+ referenceHidden: Rt(r)
467
+ }
468
+ };
469
+ }
470
+ case "escaped": {
471
+ const s = await tt(e, {
472
+ ...i,
473
+ altBoundary: !0
474
+ }), r = Tt(s, n.floating);
475
+ return {
476
+ data: {
477
+ escapedOffsets: r,
478
+ escaped: Rt(r)
479
+ }
480
+ };
481
+ }
482
+ default:
483
+ return {};
484
+ }
485
+ }
486
+ };
487
+ };
488
+ async function ve(t, e) {
489
+ const {
490
+ placement: n,
491
+ platform: o,
492
+ elements: i
493
+ } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = N(n), l = M(n), a = ct(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, u = s && a ? -1 : 1, d = q(e, t);
494
+ let {
495
+ mainAxis: p,
496
+ crossAxis: f,
497
+ alignmentAxis: m
498
+ } = typeof d == "number" ? {
499
+ mainAxis: d,
500
+ crossAxis: 0,
501
+ alignmentAxis: null
502
+ } : {
503
+ mainAxis: 0,
504
+ crossAxis: 0,
505
+ alignmentAxis: null,
506
+ ...d
507
+ };
508
+ return l && typeof m == "number" && (f = l === "end" ? m * -1 : m), a ? {
509
+ x: f * u,
510
+ y: p * c
511
+ } : {
512
+ x: p * c,
513
+ y: f * u
514
+ };
515
+ }
516
+ const ye = function(t) {
517
+ return t === void 0 && (t = 0), {
518
+ name: "offset",
519
+ options: t,
520
+ async fn(e) {
521
+ var n, o;
522
+ const {
523
+ x: i,
524
+ y: s,
525
+ placement: r,
526
+ middlewareData: l
527
+ } = e, a = await ve(e, t);
528
+ return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
529
+ x: i + a.x,
530
+ y: s + a.y,
531
+ data: {
532
+ ...a,
533
+ placement: r
534
+ }
535
+ };
536
+ }
537
+ };
538
+ }, xe = function(t) {
539
+ return t === void 0 && (t = {}), {
540
+ name: "shift",
541
+ options: t,
542
+ async fn(e) {
543
+ const {
544
+ x: n,
545
+ y: o,
546
+ placement: i
547
+ } = e, {
548
+ mainAxis: s = !0,
549
+ crossAxis: r = !1,
550
+ limiter: l = {
551
+ fn: (w) => {
552
+ let {
553
+ x: h,
554
+ y: v
555
+ } = w;
556
+ return {
557
+ x: h,
558
+ y: v
559
+ };
560
+ }
561
+ },
562
+ ...a
563
+ } = q(t, e), c = {
564
+ x: n,
565
+ y: o
566
+ }, u = await tt(e, a), d = ct(N(i)), p = Ft(d);
567
+ let f = c[p], m = c[d];
568
+ if (s) {
569
+ const w = p === "y" ? "top" : "left", h = p === "y" ? "bottom" : "right", v = f + u[w], y = f - u[h];
570
+ f = ut(v, f, y);
571
+ }
572
+ if (r) {
573
+ const w = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", v = m + u[w], y = m - u[h];
574
+ m = ut(v, m, y);
575
+ }
576
+ const g = l.fn({
577
+ ...e,
578
+ [p]: f,
579
+ [d]: m
580
+ });
581
+ return {
582
+ ...g,
583
+ data: {
584
+ x: g.x - n,
585
+ y: g.y - o
586
+ }
587
+ };
588
+ }
589
+ };
590
+ };
591
+ function V(t) {
592
+ return gt(t) ? (t.nodeName || "").toLowerCase() : "#document";
593
+ }
594
+ function _(t) {
595
+ var e;
596
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
597
+ }
598
+ function I(t) {
599
+ var e;
600
+ return (e = (gt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
601
+ }
602
+ function gt(t) {
603
+ return t instanceof Node || t instanceof _(t).Node;
604
+ }
605
+ function W(t) {
606
+ return t instanceof Element || t instanceof _(t).Element;
607
+ }
608
+ function $(t) {
609
+ return t instanceof HTMLElement || t instanceof _(t).HTMLElement;
610
+ }
611
+ function Et(t) {
612
+ return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof _(t).ShadowRoot;
613
+ }
614
+ function nt(t) {
615
+ const {
616
+ overflow: e,
617
+ overflowX: n,
618
+ overflowY: o,
619
+ display: i
620
+ } = C(t);
621
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
622
+ }
623
+ function be(t) {
624
+ return ["table", "td", "th"].includes(V(t));
625
+ }
626
+ function ht(t) {
627
+ const e = wt(), n = C(t);
628
+ return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
629
+ }
630
+ function Oe(t) {
631
+ let e = Q(t);
632
+ for (; $(e) && !at(e); ) {
633
+ if (ht(e))
634
+ return e;
635
+ e = Q(e);
636
+ }
637
+ return null;
638
+ }
639
+ function wt() {
640
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
641
+ }
642
+ function at(t) {
643
+ return ["html", "body", "#document"].includes(V(t));
644
+ }
645
+ function C(t) {
646
+ return _(t).getComputedStyle(t);
647
+ }
648
+ function ft(t) {
649
+ return W(t) ? {
650
+ scrollLeft: t.scrollLeft,
651
+ scrollTop: t.scrollTop
652
+ } : {
653
+ scrollLeft: t.pageXOffset,
654
+ scrollTop: t.pageYOffset
655
+ };
656
+ }
657
+ function Q(t) {
658
+ if (V(t) === "html")
659
+ return t;
660
+ const e = (
661
+ // Step into the shadow DOM of the parent of a slotted node.
662
+ t.assignedSlot || // DOM Element detected.
663
+ t.parentNode || // ShadowRoot detected.
664
+ Et(t) && t.host || // Fallback.
665
+ I(t)
666
+ );
667
+ return Et(e) ? e.host : e;
668
+ }
669
+ function Mt(t) {
670
+ const e = Q(t);
671
+ return at(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : $(e) && nt(e) ? e : Mt(e);
672
+ }
673
+ function et(t, e, n) {
674
+ var o;
675
+ e === void 0 && (e = []), n === void 0 && (n = !0);
676
+ const i = Mt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = _(i);
677
+ return s ? e.concat(r, r.visualViewport || [], nt(i) ? i : [], r.frameElement && n ? et(r.frameElement) : []) : e.concat(i, et(i, [], n));
678
+ }
679
+ function $t(t) {
680
+ const e = C(t);
681
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
682
+ const i = $(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = it(n) !== s || it(o) !== r;
683
+ return l && (n = s, o = r), {
684
+ width: n,
685
+ height: o,
686
+ $: l
687
+ };
688
+ }
689
+ function vt(t) {
690
+ return W(t) ? t : t.contextElement;
691
+ }
692
+ function K(t) {
693
+ const e = vt(t);
694
+ if (!$(e))
695
+ return z(1);
696
+ const n = e.getBoundingClientRect(), {
697
+ width: o,
698
+ height: i,
699
+ $: s
700
+ } = $t(e);
701
+ let r = (s ? it(n.width) : n.width) / o, l = (s ? it(n.height) : n.height) / i;
702
+ return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
703
+ x: r,
704
+ y: l
705
+ };
706
+ }
707
+ const Ae = /* @__PURE__ */ z(0);
708
+ function Ht(t) {
709
+ const e = _(t);
710
+ return !wt() || !e.visualViewport ? Ae : {
711
+ x: e.visualViewport.offsetLeft,
712
+ y: e.visualViewport.offsetTop
713
+ };
714
+ }
715
+ function Te(t, e, n) {
716
+ return e === void 0 && (e = !1), !n || e && n !== _(t) ? !1 : e;
717
+ }
718
+ function Y(t, e, n, o) {
719
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
720
+ const i = t.getBoundingClientRect(), s = vt(t);
721
+ let r = z(1);
722
+ e && (o ? W(o) && (r = K(o)) : r = K(t));
723
+ const l = Te(s, n, o) ? Ht(s) : z(0);
724
+ let a = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, u = i.width / r.x, d = i.height / r.y;
725
+ if (s) {
726
+ const p = _(s), f = o && W(o) ? _(o) : o;
727
+ let m = p, g = m.frameElement;
728
+ for (; g && o && f !== m; ) {
729
+ const w = K(g), h = g.getBoundingClientRect(), v = C(g), y = h.left + (g.clientLeft + parseFloat(v.paddingLeft)) * w.x, b = h.top + (g.clientTop + parseFloat(v.paddingTop)) * w.y;
730
+ a *= w.x, c *= w.y, u *= w.x, d *= w.y, a += y, c += b, m = _(g), g = m.frameElement;
731
+ }
732
+ }
733
+ return lt({
734
+ width: u,
735
+ height: d,
736
+ x: a,
737
+ y: c
738
+ });
739
+ }
740
+ const Re = [":popover-open", ":modal"];
741
+ function Nt(t) {
742
+ return Re.some((e) => {
743
+ try {
744
+ return t.matches(e);
745
+ } catch {
746
+ return !1;
747
+ }
748
+ });
749
+ }
750
+ function Ee(t) {
751
+ let {
752
+ elements: e,
753
+ rect: n,
754
+ offsetParent: o,
755
+ strategy: i
756
+ } = t;
757
+ const s = i === "fixed", r = I(o), l = e ? Nt(e.floating) : !1;
758
+ if (o === r || l && s)
759
+ return n;
760
+ let a = {
761
+ scrollLeft: 0,
762
+ scrollTop: 0
763
+ }, c = z(1);
764
+ const u = z(0), d = $(o);
765
+ if ((d || !d && !s) && ((V(o) !== "body" || nt(r)) && (a = ft(o)), $(o))) {
766
+ const p = Y(o);
767
+ c = K(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
768
+ }
769
+ return {
770
+ width: n.width * c.x,
771
+ height: n.height * c.y,
772
+ x: n.x * c.x - a.scrollLeft * c.x + u.x,
773
+ y: n.y * c.y - a.scrollTop * c.y + u.y
774
+ };
775
+ }
776
+ function Se(t) {
777
+ return Array.from(t.getClientRects());
778
+ }
779
+ function Vt(t) {
780
+ return Y(I(t)).left + ft(t).scrollLeft;
781
+ }
782
+ function _e(t) {
783
+ const e = I(t), n = ft(t), o = t.ownerDocument.body, i = X(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = X(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
784
+ let r = -n.scrollLeft + Vt(t);
785
+ const l = -n.scrollTop;
786
+ return C(o).direction === "rtl" && (r += X(e.clientWidth, o.clientWidth) - i), {
787
+ width: i,
788
+ height: s,
789
+ x: r,
790
+ y: l
791
+ };
792
+ }
793
+ function Ce(t, e) {
794
+ const n = _(t), o = I(t), i = n.visualViewport;
795
+ let s = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
796
+ if (i) {
797
+ s = i.width, r = i.height;
798
+ const c = wt();
799
+ (!c || c && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
800
+ }
801
+ return {
802
+ width: s,
803
+ height: r,
804
+ x: l,
805
+ y: a
806
+ };
807
+ }
808
+ function Le(t, e) {
809
+ const n = Y(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = $(t) ? K(t) : z(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
810
+ return {
811
+ width: r,
812
+ height: l,
813
+ x: a,
814
+ y: c
815
+ };
816
+ }
817
+ function St(t, e, n) {
818
+ let o;
819
+ if (e === "viewport")
820
+ o = Ce(t, n);
821
+ else if (e === "document")
822
+ o = _e(I(t));
823
+ else if (W(e))
824
+ o = Le(e, n);
825
+ else {
826
+ const i = Ht(t);
827
+ o = {
828
+ ...e,
829
+ x: e.x - i.x,
830
+ y: e.y - i.y
831
+ };
832
+ }
833
+ return lt(o);
834
+ }
835
+ function Wt(t, e) {
836
+ const n = Q(t);
837
+ return n === e || !W(n) || at(n) ? !1 : C(n).position === "fixed" || Wt(n, e);
838
+ }
839
+ function De(t, e) {
840
+ const n = e.get(t);
841
+ if (n)
842
+ return n;
843
+ let o = et(t, [], !1).filter((l) => W(l) && V(l) !== "body"), i = null;
844
+ const s = C(t).position === "fixed";
845
+ let r = s ? Q(t) : t;
846
+ for (; W(r) && !at(r); ) {
847
+ const l = C(r), a = ht(r);
848
+ !a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || nt(r) && !a && Wt(t, r)) ? o = o.filter((u) => u !== r) : i = l, r = Q(r);
849
+ }
850
+ return e.set(t, o), o;
851
+ }
852
+ function Pe(t) {
853
+ let {
854
+ element: e,
855
+ boundary: n,
856
+ rootBoundary: o,
857
+ strategy: i
858
+ } = t;
859
+ const r = [...n === "clippingAncestors" ? De(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, u) => {
860
+ const d = St(e, u, i);
861
+ return c.top = X(d.top, c.top), c.right = J(d.right, c.right), c.bottom = J(d.bottom, c.bottom), c.left = X(d.left, c.left), c;
862
+ }, St(e, l, i));
863
+ return {
864
+ width: a.right - a.left,
865
+ height: a.bottom - a.top,
866
+ x: a.left,
867
+ y: a.top
868
+ };
869
+ }
870
+ function Fe(t) {
871
+ const {
872
+ width: e,
873
+ height: n
874
+ } = $t(t);
875
+ return {
876
+ width: e,
877
+ height: n
878
+ };
879
+ }
880
+ function ke(t, e, n) {
881
+ const o = $(e), i = I(e), s = n === "fixed", r = Y(t, !0, s, e);
882
+ let l = {
883
+ scrollLeft: 0,
884
+ scrollTop: 0
885
+ };
886
+ const a = z(0);
887
+ if (o || !o && !s)
888
+ if ((V(e) !== "body" || nt(i)) && (l = ft(e)), o) {
889
+ const d = Y(e, !0, s, e);
890
+ a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
891
+ } else
892
+ i && (a.x = Vt(i));
893
+ const c = r.left + l.scrollLeft - a.x, u = r.top + l.scrollTop - a.y;
894
+ return {
895
+ x: c,
896
+ y: u,
897
+ width: r.width,
898
+ height: r.height
899
+ };
900
+ }
901
+ function _t(t, e) {
902
+ return !$(t) || C(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
903
+ }
904
+ function It(t, e) {
905
+ const n = _(t);
906
+ if (!$(t) || Nt(t))
907
+ return n;
908
+ let o = _t(t, e);
909
+ for (; o && be(o) && C(o).position === "static"; )
910
+ o = _t(o, e);
911
+ return o && (V(o) === "html" || V(o) === "body" && C(o).position === "static" && !ht(o)) ? n : o || Oe(t) || n;
912
+ }
913
+ const Be = async function(t) {
914
+ const e = this.getOffsetParent || It, n = this.getDimensions;
915
+ return {
916
+ reference: ke(t.reference, await e(t.floating), t.strategy),
917
+ floating: {
918
+ x: 0,
919
+ y: 0,
920
+ ...await n(t.floating)
921
+ }
922
+ };
923
+ };
924
+ function Me(t) {
925
+ return C(t).direction === "rtl";
926
+ }
927
+ const $e = {
928
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ee,
929
+ getDocumentElement: I,
930
+ getClippingRect: Pe,
931
+ getOffsetParent: It,
932
+ getElementRects: Be,
933
+ getClientRects: Se,
934
+ getDimensions: Fe,
935
+ getScale: K,
936
+ isElement: W,
937
+ isRTL: Me
938
+ };
939
+ function He(t, e) {
940
+ let n = null, o;
941
+ const i = I(t);
942
+ function s() {
943
+ var l;
944
+ clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
945
+ }
946
+ function r(l, a) {
947
+ l === void 0 && (l = !1), a === void 0 && (a = 1), s();
948
+ const {
949
+ left: c,
950
+ top: u,
951
+ width: d,
952
+ height: p
953
+ } = t.getBoundingClientRect();
954
+ if (l || e(), !d || !p)
955
+ return;
956
+ const f = ot(u), m = ot(i.clientWidth - (c + d)), g = ot(i.clientHeight - (u + p)), w = ot(c), v = {
957
+ rootMargin: -f + "px " + -m + "px " + -g + "px " + -w + "px",
958
+ threshold: X(0, J(1, a)) || 1
959
+ };
960
+ let y = !0;
961
+ function b(O) {
962
+ const A = O[0].intersectionRatio;
963
+ if (A !== a) {
964
+ if (!y)
965
+ return r();
966
+ A ? r(!1, A) : o = setTimeout(() => {
967
+ r(!1, 1e-7);
968
+ }, 100);
969
+ }
970
+ y = !1;
971
+ }
972
+ try {
973
+ n = new IntersectionObserver(b, {
974
+ ...v,
975
+ // Handle <iframe>s
976
+ root: i.ownerDocument
977
+ });
978
+ } catch {
979
+ n = new IntersectionObserver(b, v);
980
+ }
981
+ n.observe(t);
982
+ }
983
+ return r(!0), s;
984
+ }
985
+ function Ct(t, e, n, o) {
986
+ o === void 0 && (o = {});
987
+ const {
988
+ ancestorScroll: i = !0,
989
+ ancestorResize: s = !0,
990
+ elementResize: r = typeof ResizeObserver == "function",
991
+ layoutShift: l = typeof IntersectionObserver == "function",
992
+ animationFrame: a = !1
993
+ } = o, c = vt(t), u = i || s ? [...c ? et(c) : [], ...et(e)] : [];
994
+ u.forEach((h) => {
995
+ i && h.addEventListener("scroll", n, {
996
+ passive: !0
997
+ }), s && h.addEventListener("resize", n);
998
+ });
999
+ const d = c && l ? He(c, n) : null;
1000
+ let p = -1, f = null;
1001
+ r && (f = new ResizeObserver((h) => {
1002
+ let [v] = h;
1003
+ v && v.target === c && f && (f.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1004
+ var y;
1005
+ (y = f) == null || y.observe(e);
1006
+ })), n();
1007
+ }), c && !a && f.observe(c), f.observe(e));
1008
+ let m, g = a ? Y(t) : null;
1009
+ a && w();
1010
+ function w() {
1011
+ const h = Y(t);
1012
+ g && (h.x !== g.x || h.y !== g.y || h.width !== g.width || h.height !== g.height) && n(), g = h, m = requestAnimationFrame(w);
1013
+ }
1014
+ return n(), () => {
1015
+ var h;
1016
+ u.forEach((v) => {
1017
+ i && v.removeEventListener("scroll", n), s && v.removeEventListener("resize", n);
1018
+ }), d == null || d(), (h = f) == null || h.disconnect(), f = null, a && cancelAnimationFrame(m);
1019
+ };
1020
+ }
1021
+ const Ne = ge, Ve = xe, We = he, en = we, Ie = me, je = (t, e, n) => {
1022
+ const o = /* @__PURE__ */ new Map(), i = {
1023
+ platform: $e,
1024
+ ...n
1025
+ }, s = {
1026
+ ...i.platform,
1027
+ _c: o
1028
+ };
1029
+ return de(t, e, {
1030
+ ...i,
1031
+ platform: s
1032
+ });
1033
+ };
1034
+ function ze(t) {
1035
+ return t != null && typeof t == "object" && "$el" in t;
1036
+ }
1037
+ function dt(t) {
1038
+ if (ze(t)) {
1039
+ const e = t.$el;
1040
+ return gt(e) && V(e) === "#comment" ? null : e;
1041
+ }
1042
+ return t;
1043
+ }
1044
+ function Ue(t) {
1045
+ return {
1046
+ name: "arrow",
1047
+ options: t,
1048
+ fn(e) {
1049
+ const n = dt(B(t.element));
1050
+ return n == null ? {} : Ie({
1051
+ element: n,
1052
+ padding: t.padding
1053
+ }).fn(e);
1054
+ }
1055
+ };
1056
+ }
1057
+ function jt(t) {
1058
+ return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1059
+ }
1060
+ function Lt(t, e) {
1061
+ const n = jt(t);
1062
+ return Math.round(e * n) / n;
1063
+ }
1064
+ function Xe(t, e, n) {
1065
+ n === void 0 && (n = {});
1066
+ const o = n.whileElementsMounted, i = R(() => {
1067
+ var x;
1068
+ return (x = B(n.open)) != null ? x : !0;
1069
+ }), s = R(() => B(n.middleware)), r = R(() => {
1070
+ var x;
1071
+ return (x = B(n.placement)) != null ? x : "bottom";
1072
+ }), l = R(() => {
1073
+ var x;
1074
+ return (x = B(n.strategy)) != null ? x : "absolute";
1075
+ }), a = R(() => {
1076
+ var x;
1077
+ return (x = B(n.transform)) != null ? x : !0;
1078
+ }), c = R(() => dt(t.value)), u = R(() => dt(e.value)), d = j(0), p = j(0), f = j(l.value), m = j(r.value), g = qt({}), w = j(!1), h = R(() => {
1079
+ const x = {
1080
+ position: f.value,
1081
+ left: "0",
1082
+ top: "0"
1083
+ };
1084
+ if (!u.value)
1085
+ return x;
1086
+ const L = Lt(u.value, d.value), D = Lt(u.value, p.value);
1087
+ return a.value ? {
1088
+ ...x,
1089
+ transform: "translate(" + L + "px, " + D + "px)",
1090
+ ...jt(u.value) >= 1.5 && {
1091
+ willChange: "transform"
1092
+ }
1093
+ } : {
1094
+ position: f.value,
1095
+ left: L + "px",
1096
+ top: D + "px"
1097
+ };
1098
+ });
1099
+ let v;
1100
+ function y() {
1101
+ c.value == null || u.value == null || je(c.value, u.value, {
1102
+ middleware: s.value,
1103
+ placement: r.value,
1104
+ strategy: l.value
1105
+ }).then((x) => {
1106
+ d.value = x.x, p.value = x.y, f.value = x.strategy, m.value = x.placement, g.value = x.middlewareData, w.value = !0;
1107
+ });
1108
+ }
1109
+ function b() {
1110
+ typeof v == "function" && (v(), v = void 0);
1111
+ }
1112
+ function O() {
1113
+ if (b(), o === void 0) {
1114
+ y();
1115
+ return;
1116
+ }
1117
+ if (c.value != null && u.value != null) {
1118
+ v = o(c.value, u.value, y);
1119
+ return;
1120
+ }
1121
+ }
1122
+ function A() {
1123
+ i.value || (w.value = !1);
1124
+ }
1125
+ return Z([s, r, l], y, {
1126
+ flush: "sync"
1127
+ }), Z([c, u], O, {
1128
+ flush: "sync"
1129
+ }), Z(i, A, {
1130
+ flush: "sync"
1131
+ }), Gt() && Kt(b), {
1132
+ x: G(d),
1133
+ y: G(p),
1134
+ strategy: G(f),
1135
+ placement: G(m),
1136
+ middlewareData: G(g),
1137
+ isPositioned: G(w),
1138
+ floatingStyles: h,
1139
+ update: y
1140
+ };
1141
+ }
1142
+ var zt = /* @__PURE__ */ ((t) => (t.TOP = "top", t.RIGHT = "right", t.BOTTOM = "bottom", t.LEFT = "left", t))(zt || {}), Ut = /* @__PURE__ */ ((t) => (t.AUTO = "auto", t.AUTO_START = "auto-start", t.AUTO_END = "auto-end", t.TOP_START = "top-start", t.TOP_END = "top-end", t.RIGHT_START = "right-start", t.RIGHT_END = "right-end", t.BOTTOM_START = "bottom-start", t.BOTTOM_END = "bottom-end", t.LEFT_START = "left-start", t.LEFT_END = "left-end", t))(Ut || {}), Xt = /* @__PURE__ */ ((t) => (t.TOOLTIP = "tooltip", t.POPOVER = "dialog", t))(Xt || {});
1143
+ const Dt = { ...zt, ...Ut }, Ye = (t, e) => t ? e[1] + 7 : e[1], qe = (t) => {
1144
+ let e = Array.isArray(t) ? t : [t];
1145
+ return e = e.filter((n) => n !== "auto" && n !== "auto-start" && n !== "auto-end").map((n) => n), {
1146
+ fallbackPlacements: e
1147
+ };
1148
+ }, Ge = {
1149
+ name: "sameWidth",
1150
+ fn: ({ elements: t }) => (t.floating.style.width = `${t.reference.offsetWidth}px`, {})
1151
+ }, Ke = {}, Je = /* @__PURE__ */ Jt({
1152
+ ...Ke,
1153
+ __name: "popper-container",
1154
+ props: {
1155
+ /**
1156
+ * The aria role assigned to the container. Defaults to null, which means it's not set if nothing is passed.
1157
+ */
1158
+ ariaRole: {
1159
+ type: String,
1160
+ default: null,
1161
+ validator: (t) => Object.values(Xt).includes(t)
1162
+ },
1163
+ /**
1164
+ * Indicates if container should have additional arrow, pointing at target element
1165
+ * Can be just a boolean flag, or an object with additional configuration:
1166
+ * @property {Array<string>} arrow.classes – apply any additional classes to the arrow element.
1167
+ * @property {string} arrow.padding – useful when content has rounded corners, @see {@link https://floating-ui.com/docs/arrow#padding}
1168
+ */
1169
+ arrow: { type: Object, default: void 0 },
1170
+ /**
1171
+ * Disables wrapping focus-trap component.
1172
+ * Mostly useful for the storybook demo.
1173
+ */
1174
+ disabledFocusTrap: { type: Boolean, default: !1 },
1175
+ /**
1176
+ * Allows to configure to fallback position to the one specified, it could be 'auto' or ['right', 'top', ...].
1177
+ * Useful when not using auto as starting placement.
1178
+ * @see {@link https://floating-ui.com/docs/flip#fallbackplacements}
1179
+ */
1180
+ fallbackPosition: {
1181
+ type: [Array, String],
1182
+ default: null
1183
+ },
1184
+ /**
1185
+ * Instructs popover to be visible outside of the containing container.
1186
+ * Useful when component would be used in limited containers like Modal, Side panel, etc.
1187
+ * @see {@link https://floating-ui.com/docs/usefloating#strategy}
1188
+ */
1189
+ fixedPositioning: { type: Boolean, default: !1 },
1190
+ /**
1191
+ * The id to be set on the component. Use it for accessibility purposes.
1192
+ */
1193
+ id: { type: String, default: null },
1194
+ /**
1195
+ * If hiding / showing popper element then use this property to tell the popper when to update it's position.
1196
+ * This will drastically help improve performance, as we will not need to track hidden elements.
1197
+ */
1198
+ isHidden: { type: Boolean, default: null },
1199
+ /**
1200
+ * Instructs popper container to have the same width as target element.
1201
+ */
1202
+ matchWidth: { type: Boolean, default: !1 },
1203
+ /**
1204
+ * Custom set of middleware. Useful for low-level control over Popper behavior in some really complex use cases.
1205
+ * @see {@link https://floating-ui.com/docs/middleware}
1206
+ */
1207
+ middleware: { type: Array, default: null },
1208
+ /**
1209
+ * Allows to displace a popper container from its target element.
1210
+ * @see {@link https://floating-ui.com/docs/offset#options}
1211
+ */
1212
+ offset: {
1213
+ type: Array,
1214
+ default: () => [0, 0],
1215
+ validator: (t) => (t == null ? void 0 : t.length) === 2
1216
+ },
1217
+ /**
1218
+ * Position relative to the target element
1219
+ * @see {@link https://floating-ui.com/docs/computeposition#placement}
1220
+ */
1221
+ position: {
1222
+ type: String,
1223
+ default: Dt.AUTO,
1224
+ validator: (t) => Object.values(Dt).includes(t)
1225
+ },
1226
+ /**
1227
+ * Reference to the DOM element or Vue component for positioning
1228
+ */
1229
+ targetElement: { type: [Element, Object], required: !0 }
1230
+ },
1231
+ emits: ["placement"],
1232
+ setup(t, { emit: e }) {
1233
+ var y;
1234
+ const n = t, { position: o } = Qt(n), i = j(), s = j(null), r = j(n.position), l = R(
1235
+ () => n.targetElement.$el ? n.targetElement.$el : n.targetElement
1236
+ ), a = R(
1237
+ () => i.value.$el ? i.value.$el : i.value
1238
+ ), c = R(() => (n == null ? void 0 : n.position) !== "auto" && (n == null ? void 0 : n.fallbackPosition) !== "auto"), u = R(() => {
1239
+ switch (n.position) {
1240
+ case "auto-start":
1241
+ return { alignment: "start", crossAxis: !0 };
1242
+ case "auto-end":
1243
+ return { alignment: "end", crossAxis: !0 };
1244
+ default:
1245
+ return;
1246
+ }
1247
+ }), d = R(() => n.fixedPositioning ? "fixed" : "absolute"), { floatingStyles: p, middlewareData: f, placement: m, update: g } = Xe(l, i, {
1248
+ placement: o,
1249
+ middleware: [
1250
+ // Adds flip modifier if fallbackPosition is not set to auto
1251
+ ...c.value ? [
1252
+ We({
1253
+ fallbackPlacements: qe(n.fallbackPosition).fallbackPlacements
1254
+ })
1255
+ ] : [],
1256
+ // Adds autoposition middlelare if position is set to any auto variants
1257
+ ...c.value ? [] : [Ne(u.value)],
1258
+ // Add shifting middle in case popper is still not fully visible in view port
1259
+ Ve(),
1260
+ // Adds offset middlelare if offset property is set
1261
+ ...n.offset ? [ye(Ye(n.arrow, n.offset))] : [],
1262
+ // Adds arrow middlelare if arrow property is set, can set additional padding property
1263
+ ...n.arrow ? [Ue({ element: s, padding: n.arrow.padding || 0 })] : [],
1264
+ // Adds same width middleware to keep popper width same as referenced element's width
1265
+ ...n.matchWidth ? [Ge] : [],
1266
+ // If there is additional custom middleware to add via the property then add it
1267
+ ...((y = n.middleware) == null ? void 0 : y.length) > 0 ? n.middleware : []
1268
+ ],
1269
+ strategy: d,
1270
+ // If we're mounting the element with a `v-if` then we need to auto update it while it's mounted
1271
+ ...n.isHidden === null ? { whileElementsMounted: Ct } : []
1272
+ });
1273
+ let w;
1274
+ Z(
1275
+ () => n.isHidden,
1276
+ () => {
1277
+ n.isHidden !== null && !n.isHidden ? w = Ct(l == null ? void 0 : l.value, a == null ? void 0 : a.value, g) : n.isHidden !== null && n.isHidden && typeof w == "function" && w();
1278
+ }
1279
+ ), Z(
1280
+ () => m.value,
1281
+ () => {
1282
+ r.value !== m.value && (r.value = m.value, e("placement", r.value));
1283
+ }
1284
+ );
1285
+ const h = R(() => {
1286
+ var b, O;
1287
+ return {
1288
+ position: "absolute",
1289
+ left: ((b = f.value.arrow) == null ? void 0 : b.x) != null ? `${f.value.arrow.x}px` : "",
1290
+ top: ((O = f.value.arrow) == null ? void 0 : O.y) != null ? `${f.value.arrow.y}px` : ""
1291
+ };
1292
+ }), v = R(() => {
1293
+ var b;
1294
+ return {
1295
+ class: n.arrow.classes,
1296
+ style: h.value,
1297
+ // Applies a data-hide attribute to arrow element depending on center offset.
1298
+ ...((b = f.value.arrow) == null ? void 0 : b.centerOffset) !== 0 ? { "data-hide": "" } : {}
1299
+ };
1300
+ });
1301
+ return (b, O) => (yt(), Zt(B(ie), xt(b.$attrs, {
1302
+ id: t.id,
1303
+ ref_key: "popperContainerRef",
1304
+ ref: i,
1305
+ class: "b-popper-container",
1306
+ "data-popper-placement": B(m),
1307
+ disabled: t.disabledFocusTrap,
1308
+ style: B(p),
1309
+ role: t.ariaRole
1310
+ }), {
1311
+ default: te(() => [
1312
+ ee(b.$slots, "default", {}, void 0, !0),
1313
+ n.arrow ? (yt(), ne("span", xt({ key: 0 }, B(v), {
1314
+ ref_key: "floatingArrow",
1315
+ ref: s,
1316
+ class: "b-popper-container__arrow",
1317
+ "data-testid": "arrow"
1318
+ }), null, 16)) : oe("", !0)
1319
+ ]),
1320
+ _: 3
1321
+ }, 16, ["id", "data-popper-placement", "disabled", "style", "role"]));
1322
+ }
1323
+ });
1324
+ const nn = /* @__PURE__ */ re(Je, [["__scopeId", "data-v-339046b9"]]);
1325
+ export {
1326
+ zt as P,
1327
+ nn as a,
1328
+ Xt as b,
1329
+ Dt as c,
1330
+ Ut as d,
1331
+ en as h,
1332
+ ye as o
1333
+ };
1334
+ //# sourceMappingURL=index.bcc58fdd.js.map