@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
@@ -1,1279 +1,9 @@
1
- import { unref as B, computed as R, ref as j, shallowRef as Ut, watch as Z, getCurrentScope as Xt, onScopeDispose as Yt, shallowReadonly as q, defineComponent as qt, toRefs as Gt, openBlock as yt, createBlock as Kt, mergeProps as xt, withCtx as Jt, renderSlot as Qt, createElementBlock as Zt, createCommentVNode as te } from "vue";
2
- import { B as ee } from "./chunks/index.6700224a.js";
3
- import { _ as ne } from "./chunks/_plugin-vue_export-helper.dad06003.js";
4
- import "./assets/index24.css";
5
- const oe = ["top", "right", "bottom", "left"], bt = ["start", "end"], Ot = /* @__PURE__ */ oe.reduce((t, e) => t.concat(e, e + "-" + bt[0], e + "-" + bt[1]), []), K = Math.min, X = Math.max, ot = Math.round, nt = Math.floor, z = (t) => ({
6
- x: t,
7
- y: t
8
- }), ie = {
9
- left: "right",
10
- right: "left",
11
- bottom: "top",
12
- top: "bottom"
13
- }, re = {
14
- start: "end",
15
- end: "start"
16
- };
17
- function ft(t, e, n) {
18
- return X(t, K(e, n));
19
- }
20
- function Q(t, e) {
21
- return typeof t == "function" ? t(e) : t;
22
- }
23
- function H(t) {
24
- return t.split("-")[0];
25
- }
26
- function M(t) {
27
- return t.split("-")[1];
28
- }
29
- function Dt(t) {
30
- return t === "x" ? "y" : "x";
31
- }
32
- function dt(t) {
33
- return t === "y" ? "height" : "width";
34
- }
35
- function st(t) {
36
- return ["top", "bottom"].includes(H(t)) ? "y" : "x";
37
- }
38
- function mt(t) {
39
- return Dt(st(t));
40
- }
41
- function Ct(t, e, n) {
42
- n === void 0 && (n = !1);
43
- const o = M(t), i = mt(t), l = dt(i);
44
- let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
45
- return e.reference[l] > e.floating[l] && (r = rt(r)), [r, rt(r)];
46
- }
47
- function le(t) {
48
- const e = rt(t);
49
- return [it(t), e, it(e)];
50
- }
51
- function it(t) {
52
- return t.replace(/start|end/g, (e) => re[e]);
53
- }
54
- function se(t, e, n) {
55
- const o = ["left", "right"], i = ["right", "left"], l = ["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 ? l : r;
63
- default:
64
- return [];
65
- }
66
- }
67
- function ce(t, e, n, o) {
68
- const i = M(t);
69
- let l = se(H(t), n === "start", o);
70
- return i && (l = l.map((r) => r + "-" + i), e && (l = l.concat(l.map(it)))), l;
71
- }
72
- function rt(t) {
73
- return t.replace(/left|right|bottom|top/g, (e) => ie[e]);
74
- }
75
- function ae(t) {
76
- return {
77
- top: 0,
78
- right: 0,
79
- bottom: 0,
80
- left: 0,
81
- ...t
82
- };
83
- }
84
- function Pt(t) {
85
- return typeof t != "number" ? ae(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 l = st(e), r = mt(e), s = dt(r), a = H(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;
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 fe = async (t, e, n) => {
150
- const {
151
- placement: o = "bottom",
152
- strategy: i = "absolute",
153
- middleware: l = [],
154
- platform: r
155
- } = n, s = l.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 < s.length; g++) {
165
- const {
166
- name: w,
167
- fn: h
168
- } = s[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 pt(t, e) {
211
- var n;
212
- e === void 0 && (e = {});
213
- const {
214
- x: o,
215
- y: i,
216
- platform: l,
217
- rects: r,
218
- elements: s,
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 = Pt(f), w = s[p ? d === "floating" ? "reference" : "floating" : d], h = lt(await l.getClippingRect({
227
- 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)),
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 (l.getOffsetParent == null ? void 0 : l.getOffsetParent(s.floating)), b = await (l.isElement == null ? void 0 : l.isElement(y)) ? await (l.getScale == null ? void 0 : l.getScale(y)) || {
236
- x: 1,
237
- y: 1
238
- } : {
239
- x: 1,
240
- y: 1
241
- }, O = lt(l.convertOffsetParentRelativeRectToViewportRelativeRect ? await l.convertOffsetParentRelativeRectToViewportRelativeRect({
242
- elements: s,
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 ue = (t) => ({
255
- name: "arrow",
256
- options: t,
257
- async fn(e) {
258
- const {
259
- x: n,
260
- y: o,
261
- placement: i,
262
- rects: l,
263
- platform: r,
264
- elements: s,
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 = Pt(u), p = {
273
- x: n,
274
- y: o
275
- }, 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", b = l.reference[m] + l.reference[f] - p[f] - l.floating[m], O = p[f] - l.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 = s.floating[y] || l.floating[m]);
278
- const D = b / 2 - O / 2, C = x / 2 - g[m] / 2 - 1, T = K(d[h], C), P = K(d[v], C), E = T, U = x - g[m] - P, S = x / 2 - g[m] / 2 + D, F = ft(E, S, U), k = !a.arrow && M(i) != null && S !== F && l.reference[m] / 2 - (S < E ? T : P) - g[m] / 2 < 0, N = k ? S < E ? S - E : S - U : 0;
279
- return {
280
- [f]: p[f] + N,
281
- data: {
282
- [f]: F,
283
- centerOffset: S - F - N,
284
- ...k && {
285
- alignmentOffset: N
286
- }
287
- },
288
- reset: k
289
- };
290
- }
291
- });
292
- function de(t, e, n) {
293
- return (t ? [...n.filter((i) => M(i) === t), ...n.filter((i) => M(i) !== t)] : n.filter((i) => H(i) === i)).filter((i) => t ? M(i) === t || (e ? it(i) !== i : !1) : !0);
294
- }
295
- const me = 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: l,
303
- middlewareData: r,
304
- placement: s,
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 ? de(d || null, f, p) : p, w = await pt(e, m), h = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, v = g[h];
314
- if (v == null)
315
- return {};
316
- const y = Ct(v, l, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
317
- if (s !== v)
318
- return {
319
- reset: {
320
- placement: g[0]
321
- }
322
- };
323
- const b = [w[H(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]), C = ((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 C !== s ? {
353
- data: {
354
- index: h + 1,
355
- overflows: O
356
- },
357
- reset: {
358
- placement: C
359
- }
360
- } : {};
361
- }
362
- };
363
- }, pe = 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: l,
372
- rects: r,
373
- initialPlacement: s,
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 = l.arrow) != null && n.alignmentOffset)
386
- return {};
387
- const h = H(i), v = H(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = p || (v || !g ? [rt(s)] : le(s));
388
- !p && m !== "none" && b.push(...ce(s, g, m, y));
389
- const O = [s, ...b], A = await pt(e, w), x = [];
390
- let D = ((o = l.flip) == null ? void 0 : o.overflows) || [];
391
- if (u && x.push(A[h]), d) {
392
- const E = Ct(i, r, y);
393
- x.push(A[E[0]], A[E[1]]);
394
- }
395
- if (D = [...D, {
396
- placement: i,
397
- overflows: x
398
- }], !x.every((E) => E <= 0)) {
399
- var C, T;
400
- const E = (((C = l.flip) == null ? void 0 : C.index) || 0) + 1, U = O[E];
401
- if (U)
402
- return {
403
- data: {
404
- index: E,
405
- overflows: D
406
- },
407
- reset: {
408
- placement: U
409
- }
410
- };
411
- let S = (T = D.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 = D.map((k) => [k.placement, k.overflows.filter((N) => N > 0).reduce((N, zt) => N + zt, 0)]).sort((k, N) => k[1] - N[1])[0]) == null ? void 0 : P[0];
417
- F && (S = F);
418
- break;
419
- }
420
- case "initialPlacement":
421
- S = s;
422
- break;
423
- }
424
- if (i !== S)
425
- return {
426
- reset: {
427
- placement: S
428
- }
429
- };
430
- }
431
- return {};
432
- }
433
- };
434
- };
435
- async function ge(t, e) {
436
- const {
437
- placement: n,
438
- platform: o,
439
- elements: i
440
- } = t, l = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = H(n), s = M(n), a = st(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, u = l && a ? -1 : 1, d = Q(e, t);
441
- let {
442
- mainAxis: p,
443
- crossAxis: f,
444
- alignmentAxis: m
445
- } = typeof d == "number" ? {
446
- mainAxis: d,
447
- crossAxis: 0,
448
- alignmentAxis: null
449
- } : {
450
- mainAxis: 0,
451
- crossAxis: 0,
452
- alignmentAxis: null,
453
- ...d
454
- };
455
- return s && typeof m == "number" && (f = s === "end" ? m * -1 : m), a ? {
456
- x: f * u,
457
- y: p * c
458
- } : {
459
- x: p * c,
460
- y: f * u
461
- };
462
- }
463
- const he = function(t) {
464
- return t === void 0 && (t = 0), {
465
- name: "offset",
466
- options: t,
467
- async fn(e) {
468
- var n, o;
469
- const {
470
- x: i,
471
- y: l,
472
- placement: r,
473
- middlewareData: s
474
- } = e, a = await ge(e, t);
475
- return r === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
476
- x: i + a.x,
477
- y: l + a.y,
478
- data: {
479
- ...a,
480
- placement: r
481
- }
482
- };
483
- }
484
- };
485
- }, we = function(t) {
486
- return t === void 0 && (t = {}), {
487
- name: "shift",
488
- options: t,
489
- async fn(e) {
490
- const {
491
- x: n,
492
- y: o,
493
- placement: i
494
- } = e, {
495
- mainAxis: l = !0,
496
- crossAxis: r = !1,
497
- limiter: s = {
498
- fn: (w) => {
499
- let {
500
- x: h,
501
- y: v
502
- } = w;
503
- return {
504
- x: h,
505
- y: v
506
- };
507
- }
508
- },
509
- ...a
510
- } = Q(t, e), c = {
511
- x: n,
512
- y: o
513
- }, u = await pt(e, a), d = st(H(i)), p = Dt(d);
514
- let f = c[p], m = c[d];
515
- if (l) {
516
- const w = p === "y" ? "top" : "left", h = p === "y" ? "bottom" : "right", v = f + u[w], y = f - u[h];
517
- f = ft(v, f, y);
518
- }
519
- if (r) {
520
- const w = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", v = m + u[w], y = m - u[h];
521
- m = ft(v, m, y);
522
- }
523
- const g = s.fn({
524
- ...e,
525
- [p]: f,
526
- [d]: m
527
- });
528
- return {
529
- ...g,
530
- data: {
531
- x: g.x - n,
532
- y: g.y - o
533
- }
534
- };
535
- }
536
- };
537
- };
538
- function V(t) {
539
- return gt(t) ? (t.nodeName || "").toLowerCase() : "#document";
540
- }
541
- function _(t) {
542
- var e;
543
- return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
544
- }
545
- function I(t) {
546
- var e;
547
- return (e = (gt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
548
- }
549
- function gt(t) {
550
- return t instanceof Node || t instanceof _(t).Node;
551
- }
552
- function W(t) {
553
- return t instanceof Element || t instanceof _(t).Element;
554
- }
555
- function $(t) {
556
- return t instanceof HTMLElement || t instanceof _(t).HTMLElement;
557
- }
558
- function Tt(t) {
559
- return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof _(t).ShadowRoot;
560
- }
561
- function et(t) {
562
- const {
563
- overflow: e,
564
- overflowX: n,
565
- overflowY: o,
566
- display: i
567
- } = L(t);
568
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
569
- }
570
- function ve(t) {
571
- return ["table", "td", "th"].includes(V(t));
572
- }
573
- function ht(t) {
574
- const e = wt(), n = L(t);
575
- 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));
576
- }
577
- function ye(t) {
578
- let e = J(t);
579
- for (; $(e) && !ct(e); ) {
580
- if (ht(e))
581
- return e;
582
- e = J(e);
583
- }
584
- return null;
585
- }
586
- function wt() {
587
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
588
- }
589
- function ct(t) {
590
- return ["html", "body", "#document"].includes(V(t));
591
- }
592
- function L(t) {
593
- return _(t).getComputedStyle(t);
594
- }
595
- function at(t) {
596
- return W(t) ? {
597
- scrollLeft: t.scrollLeft,
598
- scrollTop: t.scrollTop
599
- } : {
600
- scrollLeft: t.pageXOffset,
601
- scrollTop: t.pageYOffset
602
- };
603
- }
604
- function J(t) {
605
- if (V(t) === "html")
606
- return t;
607
- const e = (
608
- // Step into the shadow DOM of the parent of a slotted node.
609
- t.assignedSlot || // DOM Element detected.
610
- t.parentNode || // ShadowRoot detected.
611
- Tt(t) && t.host || // Fallback.
612
- I(t)
613
- );
614
- return Tt(e) ? e.host : e;
615
- }
616
- function Ft(t) {
617
- const e = J(t);
618
- return ct(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : $(e) && et(e) ? e : Ft(e);
619
- }
620
- function tt(t, e, n) {
621
- var o;
622
- e === void 0 && (e = []), n === void 0 && (n = !0);
623
- const i = Ft(t), l = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = _(i);
624
- return l ? e.concat(r, r.visualViewport || [], et(i) ? i : [], r.frameElement && n ? tt(r.frameElement) : []) : e.concat(i, tt(i, [], n));
625
- }
626
- function kt(t) {
627
- const e = L(t);
628
- let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
629
- const i = $(t), l = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, s = ot(n) !== l || ot(o) !== r;
630
- return s && (n = l, o = r), {
631
- width: n,
632
- height: o,
633
- $: s
634
- };
635
- }
636
- function vt(t) {
637
- return W(t) ? t : t.contextElement;
638
- }
639
- function G(t) {
640
- const e = vt(t);
641
- if (!$(e))
642
- return z(1);
643
- const n = e.getBoundingClientRect(), {
644
- width: o,
645
- height: i,
646
- $: l
647
- } = kt(e);
648
- let r = (l ? ot(n.width) : n.width) / o, s = (l ? ot(n.height) : n.height) / i;
649
- return (!r || !Number.isFinite(r)) && (r = 1), (!s || !Number.isFinite(s)) && (s = 1), {
650
- x: r,
651
- y: s
652
- };
653
- }
654
- const xe = /* @__PURE__ */ z(0);
655
- function Bt(t) {
656
- const e = _(t);
657
- return !wt() || !e.visualViewport ? xe : {
658
- x: e.visualViewport.offsetLeft,
659
- y: e.visualViewport.offsetTop
660
- };
661
- }
662
- function be(t, e, n) {
663
- return e === void 0 && (e = !1), !n || e && n !== _(t) ? !1 : e;
664
- }
665
- function Y(t, e, n, o) {
666
- e === void 0 && (e = !1), n === void 0 && (n = !1);
667
- const i = t.getBoundingClientRect(), l = vt(t);
668
- let r = z(1);
669
- e && (o ? W(o) && (r = G(o)) : r = G(t));
670
- const s = be(l, n, o) ? Bt(l) : z(0);
671
- 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;
672
- if (l) {
673
- const p = _(l), f = o && W(o) ? _(o) : o;
674
- let m = p, g = m.frameElement;
675
- for (; g && o && f !== m; ) {
676
- const w = G(g), h = g.getBoundingClientRect(), v = L(g), y = h.left + (g.clientLeft + parseFloat(v.paddingLeft)) * w.x, b = h.top + (g.clientTop + parseFloat(v.paddingTop)) * w.y;
677
- a *= w.x, c *= w.y, u *= w.x, d *= w.y, a += y, c += b, m = _(g), g = m.frameElement;
678
- }
679
- }
680
- return lt({
681
- width: u,
682
- height: d,
683
- x: a,
684
- y: c
685
- });
686
- }
687
- const Oe = [":popover-open", ":modal"];
688
- function Mt(t) {
689
- return Oe.some((e) => {
690
- try {
691
- return t.matches(e);
692
- } catch {
693
- return !1;
694
- }
695
- });
696
- }
697
- function Ae(t) {
698
- let {
699
- elements: e,
700
- rect: n,
701
- offsetParent: o,
702
- strategy: i
703
- } = t;
704
- const l = i === "fixed", r = I(o), s = e ? Mt(e.floating) : !1;
705
- if (o === r || s && l)
706
- return n;
707
- let a = {
708
- scrollLeft: 0,
709
- scrollTop: 0
710
- }, c = z(1);
711
- const u = z(0), d = $(o);
712
- if ((d || !d && !l) && ((V(o) !== "body" || et(r)) && (a = at(o)), $(o))) {
713
- const p = Y(o);
714
- c = G(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
715
- }
716
- return {
717
- width: n.width * c.x,
718
- height: n.height * c.y,
719
- x: n.x * c.x - a.scrollLeft * c.x + u.x,
720
- y: n.y * c.y - a.scrollTop * c.y + u.y
721
- };
722
- }
723
- function Te(t) {
724
- return Array.from(t.getClientRects());
725
- }
726
- function $t(t) {
727
- return Y(I(t)).left + at(t).scrollLeft;
728
- }
729
- function Re(t) {
730
- const e = I(t), n = at(t), o = t.ownerDocument.body, i = X(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), l = X(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
731
- let r = -n.scrollLeft + $t(t);
732
- const s = -n.scrollTop;
733
- return L(o).direction === "rtl" && (r += X(e.clientWidth, o.clientWidth) - i), {
734
- width: i,
735
- height: l,
736
- x: r,
737
- y: s
738
- };
739
- }
740
- function Ee(t, e) {
741
- const n = _(t), o = I(t), i = n.visualViewport;
742
- let l = o.clientWidth, r = o.clientHeight, s = 0, a = 0;
743
- if (i) {
744
- l = i.width, r = i.height;
745
- const c = wt();
746
- (!c || c && e === "fixed") && (s = i.offsetLeft, a = i.offsetTop);
747
- }
748
- return {
749
- width: l,
750
- height: r,
751
- x: s,
752
- y: a
753
- };
754
- }
755
- function Se(t, e) {
756
- const n = Y(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, l = $(t) ? G(t) : z(1), r = t.clientWidth * l.x, s = t.clientHeight * l.y, a = i * l.x, c = o * l.y;
757
- return {
758
- width: r,
759
- height: s,
760
- x: a,
761
- y: c
762
- };
763
- }
764
- function Rt(t, e, n) {
765
- let o;
766
- if (e === "viewport")
767
- o = Ee(t, n);
768
- else if (e === "document")
769
- o = Re(I(t));
770
- else if (W(e))
771
- o = Se(e, n);
772
- else {
773
- const i = Bt(t);
774
- o = {
775
- ...e,
776
- x: e.x - i.x,
777
- y: e.y - i.y
778
- };
779
- }
780
- return lt(o);
781
- }
782
- function Nt(t, e) {
783
- const n = J(t);
784
- return n === e || !W(n) || ct(n) ? !1 : L(n).position === "fixed" || Nt(n, e);
785
- }
786
- function _e(t, e) {
787
- const n = e.get(t);
788
- if (n)
789
- return n;
790
- let o = tt(t, [], !1).filter((s) => W(s) && V(s) !== "body"), i = null;
791
- const l = L(t).position === "fixed";
792
- let r = l ? J(t) : t;
793
- for (; W(r) && !ct(r); ) {
794
- const s = L(r), a = ht(r);
795
- !a && s.position === "fixed" && (i = null), (l ? !a && !i : !a && s.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || et(r) && !a && Nt(t, r)) ? o = o.filter((u) => u !== r) : i = s, r = J(r);
796
- }
797
- return e.set(t, o), o;
798
- }
799
- function Le(t) {
800
- let {
801
- element: e,
802
- boundary: n,
803
- rootBoundary: o,
804
- strategy: i
805
- } = t;
806
- const r = [...n === "clippingAncestors" ? _e(e, this._c) : [].concat(n), o], s = r[0], a = r.reduce((c, u) => {
807
- const d = Rt(e, u, i);
808
- return c.top = X(d.top, c.top), c.right = K(d.right, c.right), c.bottom = K(d.bottom, c.bottom), c.left = X(d.left, c.left), c;
809
- }, Rt(e, s, i));
810
- return {
811
- width: a.right - a.left,
812
- height: a.bottom - a.top,
813
- x: a.left,
814
- y: a.top
815
- };
816
- }
817
- function De(t) {
818
- const {
819
- width: e,
820
- height: n
821
- } = kt(t);
822
- return {
823
- width: e,
824
- height: n
825
- };
826
- }
827
- function Ce(t, e, n) {
828
- const o = $(e), i = I(e), l = n === "fixed", r = Y(t, !0, l, e);
829
- let s = {
830
- scrollLeft: 0,
831
- scrollTop: 0
832
- };
833
- const a = z(0);
834
- if (o || !o && !l)
835
- if ((V(e) !== "body" || et(i)) && (s = at(e)), o) {
836
- const d = Y(e, !0, l, e);
837
- a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
838
- } else
839
- i && (a.x = $t(i));
840
- const c = r.left + s.scrollLeft - a.x, u = r.top + s.scrollTop - a.y;
841
- return {
842
- x: c,
843
- y: u,
844
- width: r.width,
845
- height: r.height
846
- };
847
- }
848
- function Et(t, e) {
849
- return !$(t) || L(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
850
- }
851
- function Ht(t, e) {
852
- const n = _(t);
853
- if (!$(t) || Mt(t))
854
- return n;
855
- let o = Et(t, e);
856
- for (; o && ve(o) && L(o).position === "static"; )
857
- o = Et(o, e);
858
- return o && (V(o) === "html" || V(o) === "body" && L(o).position === "static" && !ht(o)) ? n : o || ye(t) || n;
859
- }
860
- const Pe = async function(t) {
861
- const e = this.getOffsetParent || Ht, n = this.getDimensions;
862
- return {
863
- reference: Ce(t.reference, await e(t.floating), t.strategy),
864
- floating: {
865
- x: 0,
866
- y: 0,
867
- ...await n(t.floating)
868
- }
869
- };
870
- };
871
- function Fe(t) {
872
- return L(t).direction === "rtl";
873
- }
874
- const ke = {
875
- convertOffsetParentRelativeRectToViewportRelativeRect: Ae,
876
- getDocumentElement: I,
877
- getClippingRect: Le,
878
- getOffsetParent: Ht,
879
- getElementRects: Pe,
880
- getClientRects: Te,
881
- getDimensions: De,
882
- getScale: G,
883
- isElement: W,
884
- isRTL: Fe
885
- };
886
- function Be(t, e) {
887
- let n = null, o;
888
- const i = I(t);
889
- function l() {
890
- var s;
891
- clearTimeout(o), (s = n) == null || s.disconnect(), n = null;
892
- }
893
- function r(s, a) {
894
- s === void 0 && (s = !1), a === void 0 && (a = 1), l();
895
- const {
896
- left: c,
897
- top: u,
898
- width: d,
899
- height: p
900
- } = t.getBoundingClientRect();
901
- if (s || e(), !d || !p)
902
- return;
903
- const f = nt(u), m = nt(i.clientWidth - (c + d)), g = nt(i.clientHeight - (u + p)), w = nt(c), v = {
904
- rootMargin: -f + "px " + -m + "px " + -g + "px " + -w + "px",
905
- threshold: X(0, K(1, a)) || 1
906
- };
907
- let y = !0;
908
- function b(O) {
909
- const A = O[0].intersectionRatio;
910
- if (A !== a) {
911
- if (!y)
912
- return r();
913
- A ? r(!1, A) : o = setTimeout(() => {
914
- r(!1, 1e-7);
915
- }, 100);
916
- }
917
- y = !1;
918
- }
919
- try {
920
- n = new IntersectionObserver(b, {
921
- ...v,
922
- // Handle <iframe>s
923
- root: i.ownerDocument
924
- });
925
- } catch {
926
- n = new IntersectionObserver(b, v);
927
- }
928
- n.observe(t);
929
- }
930
- return r(!0), l;
931
- }
932
- function St(t, e, n, o) {
933
- o === void 0 && (o = {});
934
- const {
935
- ancestorScroll: i = !0,
936
- ancestorResize: l = !0,
937
- elementResize: r = typeof ResizeObserver == "function",
938
- layoutShift: s = typeof IntersectionObserver == "function",
939
- animationFrame: a = !1
940
- } = o, c = vt(t), u = i || l ? [...c ? tt(c) : [], ...tt(e)] : [];
941
- u.forEach((h) => {
942
- i && h.addEventListener("scroll", n, {
943
- passive: !0
944
- }), l && h.addEventListener("resize", n);
945
- });
946
- const d = c && s ? Be(c, n) : null;
947
- let p = -1, f = null;
948
- r && (f = new ResizeObserver((h) => {
949
- let [v] = h;
950
- v && v.target === c && f && (f.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
951
- var y;
952
- (y = f) == null || y.observe(e);
953
- })), n();
954
- }), c && !a && f.observe(c), f.observe(e));
955
- let m, g = a ? Y(t) : null;
956
- a && w();
957
- function w() {
958
- const h = Y(t);
959
- g && (h.x !== g.x || h.y !== g.y || h.width !== g.width || h.height !== g.height) && n(), g = h, m = requestAnimationFrame(w);
960
- }
961
- return n(), () => {
962
- var h;
963
- u.forEach((v) => {
964
- i && v.removeEventListener("scroll", n), l && v.removeEventListener("resize", n);
965
- }), d == null || d(), (h = f) == null || h.disconnect(), f = null, a && cancelAnimationFrame(m);
966
- };
967
- }
968
- const Me = me, $e = we, Ne = pe, He = ue, Ve = (t, e, n) => {
969
- const o = /* @__PURE__ */ new Map(), i = {
970
- platform: ke,
971
- ...n
972
- }, l = {
973
- ...i.platform,
974
- _c: o
975
- };
976
- return fe(t, e, {
977
- ...i,
978
- platform: l
979
- });
980
- };
981
- function We(t) {
982
- return t != null && typeof t == "object" && "$el" in t;
983
- }
984
- function ut(t) {
985
- if (We(t)) {
986
- const e = t.$el;
987
- return gt(e) && V(e) === "#comment" ? null : e;
988
- }
989
- return t;
990
- }
991
- function Ie(t) {
992
- return {
993
- name: "arrow",
994
- options: t,
995
- fn(e) {
996
- const n = ut(B(t.element));
997
- return n == null ? {} : He({
998
- element: n,
999
- padding: t.padding
1000
- }).fn(e);
1001
- }
1002
- };
1003
- }
1004
- function Vt(t) {
1005
- return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1006
- }
1007
- function _t(t, e) {
1008
- const n = Vt(t);
1009
- return Math.round(e * n) / n;
1010
- }
1011
- function je(t, e, n) {
1012
- n === void 0 && (n = {});
1013
- const o = n.whileElementsMounted, i = R(() => {
1014
- var x;
1015
- return (x = B(n.open)) != null ? x : !0;
1016
- }), l = R(() => B(n.middleware)), r = R(() => {
1017
- var x;
1018
- return (x = B(n.placement)) != null ? x : "bottom";
1019
- }), s = R(() => {
1020
- var x;
1021
- return (x = B(n.strategy)) != null ? x : "absolute";
1022
- }), a = R(() => {
1023
- var x;
1024
- return (x = B(n.transform)) != null ? x : !0;
1025
- }), c = R(() => ut(t.value)), u = R(() => ut(e.value)), d = j(0), p = j(0), f = j(s.value), m = j(r.value), g = Ut({}), w = j(!1), h = R(() => {
1026
- const x = {
1027
- position: f.value,
1028
- left: "0",
1029
- top: "0"
1030
- };
1031
- if (!u.value)
1032
- return x;
1033
- const D = _t(u.value, d.value), C = _t(u.value, p.value);
1034
- return a.value ? {
1035
- ...x,
1036
- transform: "translate(" + D + "px, " + C + "px)",
1037
- ...Vt(u.value) >= 1.5 && {
1038
- willChange: "transform"
1039
- }
1040
- } : {
1041
- position: f.value,
1042
- left: D + "px",
1043
- top: C + "px"
1044
- };
1045
- });
1046
- let v;
1047
- function y() {
1048
- c.value == null || u.value == null || Ve(c.value, u.value, {
1049
- middleware: l.value,
1050
- placement: r.value,
1051
- strategy: s.value
1052
- }).then((x) => {
1053
- d.value = x.x, p.value = x.y, f.value = x.strategy, m.value = x.placement, g.value = x.middlewareData, w.value = !0;
1054
- });
1055
- }
1056
- function b() {
1057
- typeof v == "function" && (v(), v = void 0);
1058
- }
1059
- function O() {
1060
- if (b(), o === void 0) {
1061
- y();
1062
- return;
1063
- }
1064
- if (c.value != null && u.value != null) {
1065
- v = o(c.value, u.value, y);
1066
- return;
1067
- }
1068
- }
1069
- function A() {
1070
- i.value || (w.value = !1);
1071
- }
1072
- return Z([l, r, s], y, {
1073
- flush: "sync"
1074
- }), Z([c, u], O, {
1075
- flush: "sync"
1076
- }), Z(i, A, {
1077
- flush: "sync"
1078
- }), Xt() && Yt(b), {
1079
- x: q(d),
1080
- y: q(p),
1081
- strategy: q(f),
1082
- placement: q(m),
1083
- middlewareData: q(g),
1084
- isPositioned: q(w),
1085
- floatingStyles: h,
1086
- update: y
1087
- };
1088
- }
1089
- var Wt = /* @__PURE__ */ ((t) => (t.TOP = "top", t.RIGHT = "right", t.BOTTOM = "bottom", t.LEFT = "left", t))(Wt || {}), It = /* @__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))(It || {}), jt = /* @__PURE__ */ ((t) => (t.TOOLTIP = "tooltip", t.POPOVER = "dialog", t))(jt || {});
1090
- const Lt = { ...Wt, ...It }, ze = (t, e) => t ? e[1] + 7 : e[1], Ue = (t) => {
1091
- let e = Array.isArray(t) ? t : [t];
1092
- return e = e.filter((n) => n !== "auto" && n !== "auto-start" && n !== "auto-end").map((n) => n), {
1093
- fallbackPlacements: e
1094
- };
1095
- }, Xe = {
1096
- name: "sameWidth",
1097
- fn: ({ elements: t }) => (t.floating.style.width = `${t.reference.offsetWidth}px`, {})
1098
- }, Ye = {}, qe = /* @__PURE__ */ qt({
1099
- ...Ye,
1100
- __name: "popper-container",
1101
- props: {
1102
- /**
1103
- * The aria role assigned to the container. Defaults to null, which means it's not set if nothing is passed.
1104
- */
1105
- ariaRole: {
1106
- type: String,
1107
- default: null,
1108
- validator: (t) => Object.values(jt).includes(t)
1109
- },
1110
- /**
1111
- * Indicates if container should have additional arrow, pointing at target element
1112
- * Can be just a boolean flag, or an object with additional configuration:
1113
- * @property {Array<string>} arrow.classes – apply any additional classes to the arrow element.
1114
- * @property {string} arrow.padding – useful when content has rounded corners, @see {@link https://floating-ui.com/docs/arrow#padding}
1115
- */
1116
- arrow: { type: Object, default: void 0 },
1117
- /**
1118
- * Disables wrapping focus-trap component.
1119
- * Mostly useful for the storybook demo.
1120
- */
1121
- disabledFocusTrap: { type: Boolean, default: !1 },
1122
- /**
1123
- * Allows to configure to fallback position to the one specified, it could be 'auto' or ['right', 'top', ...].
1124
- * Useful when not using auto as starting placement.
1125
- * @see {@link https://floating-ui.com/docs/flip#fallbackplacements}
1126
- */
1127
- fallbackPosition: {
1128
- type: [Array, String],
1129
- default: null
1130
- },
1131
- /**
1132
- * Instructs popover to be visible outside of the containing container.
1133
- * Useful when component would be used in limited containers like Modal, Side panel, etc.
1134
- * @see {@link https://floating-ui.com/docs/usefloating#strategy}
1135
- */
1136
- fixedPositioning: { type: Boolean, default: !1 },
1137
- /**
1138
- * The id to be set on the component. Use it for accessibility purposes.
1139
- */
1140
- id: { type: String, default: null },
1141
- /**
1142
- * If hiding / showing popper element then use this property to tell the popper when to update it's position.
1143
- * This will drastically help improve performance, as we will not need to track hidden elements.
1144
- */
1145
- isHidden: { type: Boolean, default: null },
1146
- /**
1147
- * Instructs popper container to have the same width as target element.
1148
- */
1149
- matchWidth: { type: Boolean, default: !1 },
1150
- /**
1151
- * Custom set of middleware. Useful for low-level control over Popper behavior in some really complex use cases.
1152
- * @see {@link https://floating-ui.com/docs/middleware}
1153
- */
1154
- middleware: { type: Array, default: null },
1155
- /**
1156
- * Allows to displace a popper container from its target element.
1157
- * @see {@link https://floating-ui.com/docs/offset#options}
1158
- */
1159
- offset: {
1160
- type: Array,
1161
- default: () => [0, 0],
1162
- validator: (t) => (t == null ? void 0 : t.length) === 2
1163
- },
1164
- /**
1165
- * Position relative to the target element
1166
- * @see {@link https://floating-ui.com/docs/computeposition#placement}
1167
- */
1168
- position: {
1169
- type: String,
1170
- default: Lt.AUTO,
1171
- validator: (t) => Object.values(Lt).includes(t)
1172
- },
1173
- /**
1174
- * Reference to the DOM element or Vue component for positioning
1175
- */
1176
- targetElement: { type: [Element, Object], required: !0 }
1177
- },
1178
- emits: ["placement"],
1179
- setup(t, { emit: e }) {
1180
- var y;
1181
- const n = t, { position: o } = Gt(n), i = j(), l = j(null), r = j(n.position), s = R(
1182
- () => n.targetElement.$el ? n.targetElement.$el : n.targetElement
1183
- ), a = R(
1184
- () => i.value.$el ? i.value.$el : i.value
1185
- ), c = R(() => (n == null ? void 0 : n.position) !== "auto" && (n == null ? void 0 : n.fallbackPosition) !== "auto"), u = R(() => {
1186
- switch (n.position) {
1187
- case "auto-start":
1188
- return { alignment: "start", crossAxis: !0 };
1189
- case "auto-end":
1190
- return { alignment: "end", crossAxis: !0 };
1191
- default:
1192
- return;
1193
- }
1194
- }), d = R(() => n.fixedPositioning ? "fixed" : "absolute"), { floatingStyles: p, middlewareData: f, placement: m, update: g } = je(s, i, {
1195
- placement: o,
1196
- middleware: [
1197
- // Adds flip modifier if fallbackPosition is not set to auto
1198
- ...c.value ? [
1199
- Ne({
1200
- fallbackPlacements: Ue(n.fallbackPosition).fallbackPlacements
1201
- })
1202
- ] : [],
1203
- // Adds autoposition middlelare if position is set to any auto variants
1204
- ...c.value ? [] : [Me(u.value)],
1205
- // Add shifting middle in case popper is still not fully visible in view port
1206
- $e(),
1207
- // Adds offset middlelare if offset property is set
1208
- ...n.offset ? [he(ze(n.arrow, n.offset))] : [],
1209
- // Adds arrow middlelare if arrow property is set, can set additional padding property
1210
- ...n.arrow ? [Ie({ element: l, padding: n.arrow.padding || 0 })] : [],
1211
- // Adds same width middleware to keep popper width same as referenced element's width
1212
- ...n.matchWidth ? [Xe] : [],
1213
- // If there is additional custom middleware to add via the property then add it
1214
- ...((y = n.middleware) == null ? void 0 : y.length) > 0 ? n.middleware : []
1215
- ],
1216
- strategy: d,
1217
- // If we're mounting the element with a `v-if` then we need to auto update it while it's mounted
1218
- ...n.isHidden === null ? { whileElementsMounted: St } : []
1219
- });
1220
- let w;
1221
- Z(
1222
- () => n.isHidden,
1223
- () => {
1224
- n.isHidden !== null && !n.isHidden ? w = St(s == null ? void 0 : s.value, a == null ? void 0 : a.value, g) : n.isHidden !== null && n.isHidden && typeof w == "function" && w();
1225
- }
1226
- ), Z(
1227
- () => m.value,
1228
- () => {
1229
- r.value !== m.value && (r.value = m.value, e("placement", r.value));
1230
- }
1231
- );
1232
- const h = R(() => {
1233
- var b, O;
1234
- return {
1235
- position: "absolute",
1236
- left: ((b = f.value.arrow) == null ? void 0 : b.x) != null ? `${f.value.arrow.x}px` : "",
1237
- top: ((O = f.value.arrow) == null ? void 0 : O.y) != null ? `${f.value.arrow.y}px` : ""
1238
- };
1239
- }), v = R(() => {
1240
- var b;
1241
- return {
1242
- class: n.arrow.classes,
1243
- style: h.value,
1244
- // Applies a data-hide attribute to arrow element depending on center offset.
1245
- ...((b = f.value.arrow) == null ? void 0 : b.centerOffset) !== 0 ? { "data-hide": "" } : {}
1246
- };
1247
- });
1248
- return (b, O) => (yt(), Kt(B(ee), xt(b.$attrs, {
1249
- id: t.id,
1250
- ref_key: "popperContainerRef",
1251
- ref: i,
1252
- class: "b-popper-container",
1253
- "data-popper-placement": B(m),
1254
- disabled: t.disabledFocusTrap,
1255
- style: B(p),
1256
- role: t.ariaRole
1257
- }), {
1258
- default: Jt(() => [
1259
- Qt(b.$slots, "default", {}, void 0, !0),
1260
- n.arrow ? (yt(), Zt("span", xt({ key: 0 }, B(v), {
1261
- ref_key: "floatingArrow",
1262
- ref: l,
1263
- class: "b-popper-container__arrow",
1264
- "data-testid": "arrow"
1265
- }), null, 16)) : te("", !0)
1266
- ]),
1267
- _: 3
1268
- }, 16, ["id", "data-popper-placement", "disabled", "style", "role"]));
1269
- }
1270
- });
1271
- const Qe = /* @__PURE__ */ ne(qe, [["__scopeId", "data-v-339046b9"]]);
1
+ import { a as n, b as a, c as i, P as r, d as p } from "./chunks/index.bcc58fdd.js";
1272
2
  export {
1273
- Qe as PopperContainer,
1274
- jt as PopperContainerAriaRole,
1275
- Lt as PopperContainerPosition,
1276
- Wt as PopperContainerPositionBasic,
1277
- It as PopperContainerPositionExtended
3
+ n as PopperContainer,
4
+ a as PopperContainerAriaRole,
5
+ i as PopperContainerPosition,
6
+ r as PopperContainerPositionBasic,
7
+ p as PopperContainerPositionExtended
1278
8
  };
1279
9
  //# sourceMappingURL=popper-container.js.map