import{i as e,n as t}from"./jsx-runtime-DG_AJzB_.js";import{f as n}from"./createReactComponent-_L2mp4Ui.js";var r=e(t()),i={...r},a=0;function o(e,t=`mui`){let[n,i]=r.useState(e),o=e||n;return r.useEffect(()=>{n??(a+=1,i(`${t}-${a}`))},[n,t]),o}var s=i.useId;function c(e,t){if(s!==void 0){let n=s();return e??(t?`${t}-${n}`:n)}return o(e,t)}var l=`none`,u=`trigger-press`,d=`trigger-hover`,f=`trigger-focus`,p=`outside-press`,m=`item-press`,h=`close-press`,g=`focus-out`,_=`escape-key`,v=`list-navigation`,y=`cancel-open`,b=`sibling-open`,x=`disabled`,S=`imperative-action`,C=`window-resize`;function w(e,t,r,i){let a=!1,o=!1,s=i??n;return{reason:e,event:t??new Event(`base-ui`),cancel(){a=!0},allowPropagation(){o=!0},get isCanceled(){return a},get isPropagationAllowed(){return o},trigger:r,...s}}function T(e){return c(e,`base-ui`)}export{C as _,x as a,S as c,l as d,p as f,u as g,d as h,h as i,m as l,f as m,w as n,_ as o,b as p,y as r,g as s,T as t,v as u,c as v};