import{d as e,l as t,s as n,t as r}from"./hooks.module-BrXTvcfS.js";import{R as i}from"./content_renderer-DOj8g78V.js";import{t as a}from"./jsxRuntime.module-Cao1NCKs.js";import{et as o,p as s}from"./hooks-ClTXKdUl.js";import{t as c}from"./Icon-BEnt7704.js";e();function l({initiallyExpanded:e,...t}){let[r,i]=n(e);return a(u,{...t,expanded:r,setExpanded:i})}function u({title:e,children:l,className:u,expanded:d,setExpanded:f}){let p=r(null),m=r(null),{height:h}=s(m)??{},g=o(),[_,v]=n(!1),[y,b]=n(!1);return t(()=>{let e=setTimeout(()=>{v(!0)},200);return()=>clearTimeout(e)},[]),t(()=>{if(d){if(_){let e=setTimeout(()=>{b(!0)},250);return()=>clearTimeout(e)}b(!0)}else b(!1)},[d,_]),a(`div`,{className:i(`collapsible`,u,{expanded:d,"with-transition":_}),children:[a(`button`,{className:`collapsible-title tn-low-profile`,onClick:e=>{e.preventDefault(),f(!d)},"aria-expanded":d,"aria-controls":g,children:[a(c,{className:`arrow`,icon:`bx bx-chevron-right`}),`\xA0`,e]}),a(`div`,{id:g,ref:p,className:i(`collapsible-body`,{"fully-expanded":y}),style:{height:d?h:`0`},"aria-hidden":!d,children:a(`div`,{ref:m,className:`collapsible-inner-body`,children:l})})]})}function d({type:e,children:t,className:n,...r}){return a(`div`,{className:i(`admonition`,e,n),role:`alert`,...r,children:t})}function f({type:e,icon:t,title:n,details:r,detailsLabel:o,className:s,children:u,...d}){return a(`div`,{className:i(`admonition`,`extended-admonition`,e,s,{"no-title":!n}),role:`alert`,...d,children:[n&&a(`div`,{className:`admonition-header`,children:[a(c,{icon:t}),a(`span`,{className:`admonition-title`,children:n})]}),a(`div`,{className:`admonition-body`,children:[!n&&a(c,{icon:t}),u]}),r&&a(l,{className:`admonition-details`,title:o??``,children:r})]})}export{u as i,f as n,l as r,d as t};