import{u as p}from"./floating-ui.react.BIavrRt9.js";import{r as l}from"./index.BIRwh3HZ.js";import{o as c,s as g,a as h,f as x,b as U}from"./floating-ui.react-dom.Pr5t-z7H.js";function A({placement:u="bottom",offset:s=8,enableFlip:e=!0,enableShift:a=!0,autoUpdate:i=!0,open:n,onOpenChange:d,transform:m=!0,flipFallbackDirection:r="end",arrowRef:o}={}){const f=l.useMemo(()=>{const t=[c(s)];return a&&t.push(g({padding:8})),o&&t.push(h({element:o})),e&&t.push(x({fallbackAxisSideDirection:r})),t},[s,e,a,r,o]);return p({placement:u,middleware:f,whileElementsMounted:i?U:void 0,open:n,onOpenChange:d,transform:m})}export{A as u};
