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