import{f as m}from"./chunk-RJKRL3AU-CjtrMR1U.js";import{d as c}from"./chunk-KVDW62ZT-CicaeoN1.js";import{h as i,j as u}from"./codemirror-core-vkcnXJgD.js";function v(r){let o=m(r,{enabled:typeof r.elementType=="string"}),t;return r.orientation==="vertical"&&(t="vertical"),r.elementType!=="hr"?{separatorProps:{...o,role:"separator","aria-orientation":t}}:{separatorProps:o}}function P(r){const{as:o,className:t,orientation:e,...s}=r;let a=o||"hr";a==="hr"&&e==="vertical"&&(a="div");const{separatorProps:n}=v({elementType:typeof a=="string"?a:"hr",orientation:e}),p=i.useMemo(()=>c({orientation:e,className:t}),[e,t]),d=i.useCallback((f={})=>({className:p,role:"separator","data-orientation":e,...n,...s,...f}),[p,e,n,s]);return{Component:a,getDividerProps:d}}function y(r){return i.forwardRef(r)}var l=y((r,o)=>{const{Component:t,getDividerProps:e}=P({...r});return u.jsx(t,{ref:o,...e()})});l.displayName="HeroUI.Divider";var g=l;export{g as d};
