@adyen/bento-vue3 1.4.1 → 1.5.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 (220) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-lazy-load/data-grid-lazy-load.vue.d.ts +17 -0
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  5. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +2 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/composables/useLazyLoading/useLazyLoading.d.ts +8 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -1
  9. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +28 -2
  10. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +455 -123
  11. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +3 -3
  12. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +13 -13
  13. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +4 -4
  14. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +12 -3
  15. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +3 -3
  16. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +5 -1
  17. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +12 -3
  18. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +2 -1
  19. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +2 -0
  20. package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
  21. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +2 -0
  22. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +24 -0
  23. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -3
  24. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -1
  25. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +14 -3
  26. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.types.d.ts +1 -9
  27. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.utils.d.ts +5 -21
  28. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +122 -72
  29. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +3 -2
  30. package/dist/@types/packages/vue2/src/components/stepper/components/step/index.d.ts +1 -0
  31. package/dist/@types/packages/vue2/src/components/stepper/components/step/step.vue.d.ts +35 -0
  32. package/dist/@types/packages/vue2/src/components/stepper/composables/useKeyboardNavigation/useKeyboardNavigation.d.ts +15 -0
  33. package/dist/@types/packages/vue2/src/components/stepper/index.d.ts +3 -0
  34. package/dist/@types/packages/vue2/src/components/stepper/stepper.keys.d.ts +3 -0
  35. package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +24 -0
  36. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +44 -0
  37. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +363 -82
  39. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  40. package/dist/@types/packages/vue2/src/types/index.d.ts +1 -0
  41. package/dist/@types/packages/vue2/src/types/lazy-load.d.ts +1 -0
  42. package/dist/accordion.js +3 -3
  43. package/dist/alert.js +4 -4
  44. package/dist/assets/base-button.css +1 -1
  45. package/dist/assets/base-modal.css +1 -1
  46. package/dist/assets/button.css +1 -1
  47. package/dist/assets/calendar.css +1 -1
  48. package/dist/assets/checkbox.css +1 -1
  49. package/dist/assets/dropdown-default-textbox.css +1 -1
  50. package/dist/assets/dropdown.css +1 -1
  51. package/dist/assets/index.css +1 -1
  52. package/dist/assets/index10.css +1 -1
  53. package/dist/assets/index11.css +1 -1
  54. package/dist/assets/index12.css +1 -1
  55. package/dist/assets/index13.css +1 -1
  56. package/dist/assets/index14.css +1 -1
  57. package/dist/assets/index15.css +1 -1
  58. package/dist/assets/index16.css +1 -1
  59. package/dist/assets/index17.css +1 -1
  60. package/dist/assets/index18.css +1 -1
  61. package/dist/assets/index19.css +1 -1
  62. package/dist/assets/index2.css +1 -1
  63. package/dist/assets/index20.css +1 -1
  64. package/dist/assets/index21.css +1 -1
  65. package/dist/assets/index22.css +1 -1
  66. package/dist/assets/index23.css +1 -1
  67. package/dist/assets/index24.css +1 -1
  68. package/dist/assets/index25.css +1 -1
  69. package/dist/assets/index26.css +1 -1
  70. package/dist/assets/index27.css +1 -1
  71. package/dist/assets/index28.css +1 -1
  72. package/dist/assets/index29.css +1 -1
  73. package/dist/assets/index3.css +1 -1
  74. package/dist/assets/index30.css +1 -1
  75. package/dist/assets/index31.css +1 -1
  76. package/dist/assets/index32.css +1 -1
  77. package/dist/assets/index33.css +1 -1
  78. package/dist/assets/index34.css +1 -1
  79. package/dist/assets/index35.css +1 -1
  80. package/dist/assets/index36.css +1 -1
  81. package/dist/assets/index37.css +1 -1
  82. package/dist/assets/index38.css +1 -1
  83. package/dist/assets/index39.css +1 -1
  84. package/dist/assets/index4.css +1 -1
  85. package/dist/assets/index40.css +1 -1
  86. package/dist/assets/index41.css +1 -1
  87. package/dist/assets/index42.css +1 -1
  88. package/dist/assets/index43.css +1 -1
  89. package/dist/assets/index44.css +1 -0
  90. package/dist/assets/index5.css +1 -1
  91. package/dist/assets/index6.css +1 -1
  92. package/dist/assets/index7.css +1 -1
  93. package/dist/assets/index8.css +1 -1
  94. package/dist/assets/index9.css +1 -1
  95. package/dist/assets/tooltip.css +1 -1
  96. package/dist/avatar-image.js +1 -1
  97. package/dist/badge.js +1 -1
  98. package/dist/button.js +5 -5
  99. package/dist/card.js +4 -4
  100. package/dist/checkbox.js +6 -6
  101. package/dist/chunks/base-button.9740f320.js +116 -0
  102. package/dist/chunks/base-button.9740f320.js.map +1 -0
  103. package/dist/chunks/base-modal.be77971f.js +296 -0
  104. package/dist/chunks/base-modal.be77971f.js.map +1 -0
  105. package/dist/chunks/{button.7d09c245.js → button.7072457f.js} +3 -3
  106. package/dist/chunks/{button.7d09c245.js.map → button.7072457f.js.map} +1 -1
  107. package/dist/chunks/{calendar.0e42130b.js → calendar.1e50c7d1.js} +5 -5
  108. package/dist/chunks/{calendar.0e42130b.js.map → calendar.1e50c7d1.js.map} +1 -1
  109. package/dist/chunks/{checkbox.17462cb0.js → checkbox.638bab98.js} +24 -24
  110. package/dist/chunks/{checkbox.17462cb0.js.map → checkbox.638bab98.js.map} +1 -1
  111. package/dist/chunks/{chevron-up.c03b58f8.js → chevron-up.9bf21068.js} +3 -3
  112. package/dist/chunks/{chevron-up.c03b58f8.js.map → chevron-up.9bf21068.js.map} +1 -1
  113. package/dist/chunks/{controls-group.0d6db9c0.js → controls-group.efcf4e8d.js} +2 -2
  114. package/dist/chunks/{controls-group.0d6db9c0.js.map → controls-group.efcf4e8d.js.map} +1 -1
  115. package/dist/chunks/{copy.c9a29be0.js → copy.527c3d76.js} +3 -3
  116. package/dist/chunks/{copy.c9a29be0.js.map → copy.527c3d76.js.map} +1 -1
  117. package/dist/chunks/debounce.b5ef6acf.js +10 -0
  118. package/dist/chunks/debounce.b5ef6acf.js.map +1 -0
  119. package/dist/chunks/{dropdown-default-textbox.cd789a95.js → dropdown-default-textbox.a1789dc7.js} +19 -18
  120. package/dist/chunks/{dropdown-default-textbox.cd789a95.js.map → dropdown-default-textbox.a1789dc7.js.map} +1 -1
  121. package/dist/chunks/{dropdown.ff4f94a8.js → dropdown.22e51667.js} +9 -7
  122. package/dist/chunks/dropdown.22e51667.js.map +1 -0
  123. package/dist/chunks/{error-message.8c67a507.js → error-message.37b6c7aa.js} +2 -2
  124. package/dist/chunks/{error-message.8c67a507.js.map → error-message.37b6c7aa.js.map} +1 -1
  125. package/dist/chunks/{footer-actions.a587e374.js → footer-actions.5275203a.js} +3 -3
  126. package/dist/chunks/{footer-actions.a587e374.js.map → footer-actions.5275203a.js.map} +1 -1
  127. package/dist/chunks/{grid-layout.984317d7.js → grid-layout.c98e6bc7.js} +2 -2
  128. package/dist/chunks/{grid-layout.984317d7.js.map → grid-layout.c98e6bc7.js.map} +1 -1
  129. package/dist/chunks/{index.77c651df.js → index.32ed68b7.js} +2 -2
  130. package/dist/chunks/{index.77c651df.js.map → index.32ed68b7.js.map} +1 -1
  131. package/dist/chunks/{index.fdb0c13d.js → index.604da8e9.js} +3 -3
  132. package/dist/chunks/{index.fdb0c13d.js.map → index.604da8e9.js.map} +1 -1
  133. package/dist/chunks/{index.fd1cd23a.js → index.a57930ba.js} +197 -188
  134. package/dist/chunks/index.a57930ba.js.map +1 -0
  135. package/dist/chunks/{index.ee69b530.js → index.c22c4278.js} +6 -6
  136. package/dist/chunks/{index.ee69b530.js.map → index.c22c4278.js.map} +1 -1
  137. package/dist/chunks/{index.140bf28f.js → index.c62ea69f.js} +2 -2
  138. package/dist/chunks/{index.140bf28f.js.map → index.c62ea69f.js.map} +1 -1
  139. package/dist/chunks/{index.450b70d5.js → index.dd20095f.js} +3 -3
  140. package/dist/chunks/{index.450b70d5.js.map → index.dd20095f.js.map} +1 -1
  141. package/dist/chunks/{debounce.f8d92e44.js → keyboard-navigation.ca47dfa8.js} +11 -17
  142. package/dist/chunks/keyboard-navigation.ca47dfa8.js.map +1 -0
  143. package/dist/chunks/{listbox-option-tag.ffe70226.js → listbox-option-tag.fa70334e.js} +3 -3
  144. package/dist/chunks/{listbox-option-tag.ffe70226.js.map → listbox-option-tag.fa70334e.js.map} +1 -1
  145. package/dist/chunks/{listbox.f535a736.js → listbox.4205c0de.js} +12 -11
  146. package/dist/chunks/{listbox.f535a736.js.map → listbox.4205c0de.js.map} +1 -1
  147. package/dist/chunks/{loading-button.bc6e3967.js → loading-button.41c15584.js} +2 -2
  148. package/dist/chunks/{loading-button.bc6e3967.js.map → loading-button.41c15584.js.map} +1 -1
  149. package/dist/chunks/{tooltip.973c86d3.js → tooltip.c8350cd0.js} +37 -36
  150. package/dist/chunks/{tooltip.973c86d3.js.map → tooltip.c8350cd0.js.map} +1 -1
  151. package/dist/chunks/use-has-slot.3daaffc6.js +17 -0
  152. package/dist/chunks/use-has-slot.3daaffc6.js.map +1 -0
  153. package/dist/code-snippet.js +469 -466
  154. package/dist/code-snippet.js.map +1 -1
  155. package/dist/country.js +2 -2
  156. package/dist/currency.js +1 -1
  157. package/dist/data-grid.js +963 -834
  158. package/dist/data-grid.js.map +1 -1
  159. package/dist/date-picker.js +8 -8
  160. package/dist/date-range-picker.js +2 -2
  161. package/dist/date.js +1 -1
  162. package/dist/divider.js +1 -1
  163. package/dist/dropdown.js +4 -4
  164. package/dist/empty-state.js +21 -21
  165. package/dist/empty-state.js.map +1 -1
  166. package/dist/filter-bar.js +853 -784
  167. package/dist/filter-bar.js.map +1 -1
  168. package/dist/focus-trap.js +1 -1
  169. package/dist/form-layout.js +72 -51
  170. package/dist/form-layout.js.map +1 -1
  171. package/dist/header.js +190 -112
  172. package/dist/header.js.map +1 -1
  173. package/dist/image.js +3 -1
  174. package/dist/index.js +219 -211
  175. package/dist/index.js.map +1 -1
  176. package/dist/info-icon.js +2 -2
  177. package/dist/input-field.js +5 -5
  178. package/dist/internal.js +7 -7
  179. package/dist/link.js +2 -2
  180. package/dist/loading-indicator.js +1 -1
  181. package/dist/menu.js +114 -104
  182. package/dist/menu.js.map +1 -1
  183. package/dist/modal.js +33 -30
  184. package/dist/modal.js.map +1 -1
  185. package/dist/pagination.js +4 -4
  186. package/dist/payment-method.js +2 -2
  187. package/dist/popover.js +72 -61
  188. package/dist/popover.js.map +1 -1
  189. package/dist/popper-container.js +1238 -192
  190. package/dist/popper-container.js.map +1 -1
  191. package/dist/radio-group.js +5 -5
  192. package/dist/search-bar.js +3 -3
  193. package/dist/segmented-control.js +15 -15
  194. package/dist/segmented-control.js.map +1 -1
  195. package/dist/sidepanel.js +7 -7
  196. package/dist/sidepanel.js.map +1 -1
  197. package/dist/status.js +2 -2
  198. package/dist/stepper.js +276 -0
  199. package/dist/stepper.js.map +1 -0
  200. package/dist/structured-list.js +1 -1
  201. package/dist/summary-grid.js +5 -5
  202. package/dist/tabs.js +2 -2
  203. package/dist/tag.js +3 -3
  204. package/dist/textarea.js +4 -4
  205. package/dist/timeline.js +5 -5
  206. package/dist/toast.js +4 -4
  207. package/dist/toggle.js +12 -12
  208. package/dist/toggle.js.map +1 -1
  209. package/dist/typography.js +1 -1
  210. package/dist/web-types.json +1 -1
  211. package/package.json +3 -3
  212. package/dist/chunks/base-button.c4ac1ad1.js +0 -108
  213. package/dist/chunks/base-button.c4ac1ad1.js.map +0 -1
  214. package/dist/chunks/base-modal.db7a9829.js +0 -291
  215. package/dist/chunks/base-modal.db7a9829.js.map +0 -1
  216. package/dist/chunks/debounce.f8d92e44.js.map +0 -1
  217. package/dist/chunks/dropdown.ff4f94a8.js.map +0 -1
  218. package/dist/chunks/index.fd1cd23a.js.map +0 -1
  219. package/dist/chunks/use-has-slot.9fac7123.js +0 -16
  220. package/dist/chunks/use-has-slot.9fac7123.js.map +0 -1
@@ -1,233 +1,1279 @@
1
- import { createPopper as d } from "@popperjs/core";
2
- import { defineComponent as n, resolveComponent as f, openBlock as s, createBlock as c, mergeProps as m, withCtx as h, renderSlot as u, createElementBlock as T, normalizeClass as y, createCommentVNode as _ } from "vue";
3
- import { B as b } from "./chunks/index.fdb0c13d.js";
4
- import { _ as O } from "./chunks/_plugin-vue_export-helper.dad06003.js";
5
- import "./assets/index8.css";
6
- var o = /* @__PURE__ */ ((e) => (e.TOP = "top", e.RIGHT = "right", e.BOTTOM = "bottom", e.LEFT = "left", e))(o || {}), a = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.AUTO_START = "auto-start", e.AUTO_END = "auto-end", e.TOP_START = "top-start", e.TOP_END = "top-end", e.RIGHT_START = "right-start", e.RIGHT_END = "right-end", e.BOTTOM_START = "bottom-start", e.BOTTOM_END = "bottom-end", e.LEFT_START = "left-start", e.LEFT_END = "left-end", e))(a || {}), p = /* @__PURE__ */ ((e) => (e.TOOLTIP = "tooltip", e.POPOVER = "dialog", e))(p || {});
7
- const i = { ...o, ...a }, g = (e, t) => ({
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.604da8e9.js";
3
+ import { _ as ne } from "./chunks/_plugin-vue_export-helper.dad06003.js";
4
+ import "./assets/index27.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) => ({
8
255
  name: "arrow",
9
- options: {
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 {
10
801
  element: e,
11
- padding: t.padding || 0
12
- }
13
- }), w = (e, t) => ({
14
- name: "offset",
15
- options: { offset: e ? [t[0], t[1] + 7] : t }
16
- }), A = (e) => ({
17
- name: "flip",
18
- options: {
19
- fallbackPlacements: Array.isArray(e) ? e : [e]
20
- }
21
- }), M = {
22
- name: "applyArrowHide",
23
- enabled: !0,
24
- phase: "write",
25
- fn({ state: e }) {
26
- const { arrow: t } = e.elements;
27
- t && (e.modifiersData.arrow.centerOffset !== 0 ? t.setAttribute("data-hide", "") : t.removeAttribute("data-hide"));
28
- }
29
- }, $ = {
30
- name: "sameWidth",
31
- enabled: !0,
32
- phase: "beforeWrite",
33
- requires: ["computeStyles"],
34
- fn: ({ state: e }) => {
35
- e.styles.popper.width = `${e.rects.reference.width}px`;
36
- },
37
- effect: ({ state: e }) => {
38
- e.elements.popper.style.width = `${e.elements.reference.offsetWidth}px`;
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;
39
892
  }
40
- }, R = n({
41
- components: { BentoFocusTrap: b },
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",
42
1101
  props: {
43
1102
  /**
44
- * The id to be set on the component. Use it for accessibility purposes.
45
- */
46
- id: { type: String, default: null },
47
- /**
48
- * Reference to the DOM element or Vue component for positioning
49
- */
50
- targetElement: { type: [Element, Object], required: !0 },
51
- /**
52
- * Position relative to the target element
53
- * @see {@link https://popper.js.org/docs/v2/constructors/#placement}
1103
+ * The aria role assigned to the container. Defaults to null, which means it's not set if nothing is passed.
54
1104
  */
55
- position: {
1105
+ ariaRole: {
56
1106
  type: String,
57
- default: i.AUTO,
58
- validator: (e) => Object.values(i).includes(e)
1107
+ default: null,
1108
+ validator: (t) => Object.values(jt).includes(t)
59
1109
  },
60
- /**
61
- * Instructs popover to be visible outside of the containing container.
62
- * Useful when component would be used in limited containers like Modal, Side panel, etc.
63
- * https://popper.js.org/docs/v2/constructors/#strategy
64
- */
65
- fixedPositioning: { type: Boolean, default: !1 },
66
1110
  /**
67
1111
  * Indicates if container should have additional arrow, pointing at target element
68
1112
  * Can be just a boolean flag, or an object with additional configuration:
69
1113
  * @property {Array<string>} arrow.classes – apply any additional classes to the arrow element.
70
- * @property {string} arrow.padding – useful when content has rounded corners, https://popper.js.org/docs/v2/modifiers/arrow/#padding
1114
+ * @property {string} arrow.padding – useful when content has rounded corners, @see {@link https://floating-ui.com/docs/arrow#padding}
71
1115
  */
72
1116
  arrow: { type: Object, default: void 0 },
73
- /**
74
- * Allows to displace a popper container from its target element.
75
- * @see {@link https://popper.js.org/docs/v2/modifiers/offset/}
76
- */
77
- offset: {
78
- type: Array,
79
- default: () => [0, 0],
80
- validator: (e) => (e == null ? void 0 : e.length) === 2
81
- },
82
- /**
83
- * Instructs popper container to have the same width as target element.
84
- */
85
- matchWidth: { type: Boolean, default: !1 },
86
1117
  /**
87
1118
  * Disables wrapping focus-trap component.
88
1119
  * Mostly useful for the storybook demo.
89
1120
  */
90
1121
  disabledFocusTrap: { type: Boolean, default: !1 },
91
- /**
92
- * Custom set of modifiers. Useful for low-level control over Popper behavior in some really complex use cases.
93
- */
94
- modifiers: { type: Array, default: null },
95
1122
  /**
96
1123
  * Allows to configure to fallback position to the one specified, it could be 'auto' or ['right', 'top', ...].
97
1124
  * Useful when not using auto as starting placement.
98
- * https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements
1125
+ * @see {@link https://floating-ui.com/docs/flip#fallbackplacements}
99
1126
  */
100
1127
  fallbackPosition: {
101
1128
  type: [Array, String],
102
1129
  default: null
103
1130
  },
104
1131
  /**
105
- * The aria role assigned to the container. Defaults to null, which means it's not set if nothing is passed.
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}
106
1135
  */
107
- ariaRole: {
108
- type: String,
109
- default: null,
110
- validator: (e) => Object.values(p).includes(e)
111
- }
112
- },
113
- data: () => ({
114
- popper: null,
115
- emittedPosition: null
116
- }),
117
- computed: {
118
- strategy() {
119
- return this.fixedPositioning ? "fixed" : "absolute";
120
- },
1136
+ fixedPositioning: { type: Boolean, default: !1 },
121
1137
  /**
122
- * Retrieves all the popper modifiers to be applied to popover.
123
- * Read utils file for more info on each modifier.
1138
+ * The id to be set on the component. Use it for accessibility purposes.
124
1139
  */
125
- allModifiers() {
126
- const e = this.modifiers || [];
127
- return [
128
- // Create arrow modifier if arrow props are set
129
- ...this.arrow ? [g(this.$refs.arrow, this.arrow)] : [],
130
- // Create offset modifier
131
- w(this.arrow, this.offset),
132
- // Apply data-hide attribute to arrow element depnding on center offset.
133
- M,
134
- // If matchWidth set to true, set the width of popover to same as target element.
135
- ...this.matchWidth ? [$] : [],
136
- // Emits position of popover when position is updated.
137
- {
138
- name: "trackPosition",
139
- enabled: !0,
140
- phase: "afterWrite",
141
- fn: ({ state: r }) => {
142
- this.emittedPosition !== r.placement && (this.emittedPosition = r.placement, this.$emit("position", this.emittedPosition));
143
- }
144
- },
145
- // Sets Flip modifier if fallbackPosition is set
146
- ...this.fallbackPosition ? [A(this.fallbackPosition)] : [],
147
- ...e || []
148
- ];
149
- },
1140
+ id: { type: String, default: null },
150
1141
  /**
151
- * Sets default arrow classes if none have been set.
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.
152
1144
  */
153
- arrowClasses() {
154
- var e;
155
- return ((e = this == null ? void 0 : this.arrow) == null ? void 0 : e.classes) ?? [];
156
- }
157
- },
158
- watch: {
159
- targetElement(e) {
160
- this.destroyPopper(), this.$refs.popperContainerRef.$el && e && this.initPopper();
161
- },
162
- position(e) {
163
- this.updatePopperOptions({ placement: e });
164
- },
165
- strategy(e) {
166
- this.updatePopperOptions({ strategy: e });
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
167
1163
  },
168
- async arrow(e) {
169
- e && await this.$nextTick(), this.updateModifiers();
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)
170
1172
  },
171
- offset: "updateModifiers",
172
- matchWidth: "updateModifiers"
173
- },
174
- mounted() {
175
- this.initPopper();
176
- },
177
- beforeUnmount() {
178
- this.destroyPopper();
1173
+ /**
1174
+ * Reference to the DOM element or Vue component for positioning
1175
+ */
1176
+ targetElement: { type: [Element, Object], required: !0 }
179
1177
  },
180
- methods: {
181
- initPopper() {
182
- const e = this.targetElement.$el ? this.targetElement.$el : this.targetElement;
183
- this.popper = d(
184
- e,
185
- this.$refs.popperContainerRef.$el,
186
- {
187
- placement: this.position,
188
- strategy: this.strategy,
189
- modifiers: this.allModifiers
190
- }
191
- );
192
- },
193
- destroyPopper() {
194
- this.popper && this.popper.destroy();
195
- },
196
- updatePopperOptions(e) {
197
- this.popper && this.popper.setOptions(e);
198
- },
199
- updateModifiers() {
200
- this.updatePopperOptions({ modifiers: this.allModifiers });
201
- }
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"]));
202
1269
  }
203
1270
  });
204
- function S(e, t, r, v, k, B) {
205
- const l = f("bento-focus-trap");
206
- return s(), c(l, m({
207
- id: e.id,
208
- ref: "popperContainerRef",
209
- disabled: e.disabledFocusTrap,
210
- class: "b-popper-container",
211
- role: e.ariaRole
212
- }, e.$attrs), {
213
- default: h(() => [
214
- u(e.$slots, "default", {}, void 0, !0),
215
- e.arrow ? (s(), T("span", {
216
- key: 0,
217
- ref: "arrow",
218
- class: y([e.arrowClasses, "b-popper-container__arrow"]),
219
- "data-testid": "arrow"
220
- }, null, 2)) : _("", !0)
221
- ]),
222
- _: 3
223
- }, 16, ["id", "disabled", "role"]);
224
- }
225
- const N = /* @__PURE__ */ O(R, [["render", S], ["__scopeId", "data-v-a5dcb2cd"]]);
1271
+ const Qe = /* @__PURE__ */ ne(qe, [["__scopeId", "data-v-339046b9"]]);
226
1272
  export {
227
- N as PopperContainer,
228
- p as PopperContainerAriaRole,
229
- i as PopperContainerPosition,
230
- o as PopperContainerPositionBasic,
231
- a as PopperContainerPositionExtended
1273
+ Qe as PopperContainer,
1274
+ jt as PopperContainerAriaRole,
1275
+ Lt as PopperContainerPosition,
1276
+ Wt as PopperContainerPositionBasic,
1277
+ It as PopperContainerPositionExtended
232
1278
  };
233
1279
  //# sourceMappingURL=popper-container.js.map