import{l as n,Q as g,p as u}from"./index.2e2ba873.js";const r=(h,o=200)=>{const t=n(!1),s=n(!1),a=()=>{s.value||(t.value=!t.value)},l=()=>{const e=h.value;if(e){if(t.value){e.classList.remove("hide"),e.style.height="auto",e.style.transition="none";const i=window.getComputedStyle(e).height;e.style.height="0",setTimeout(()=>{e.style.transition="height .2s",e.style.height=i}),setTimeout(()=>{e.style.height="auto",e.classList.remove("ov_hidden")},o)}else{e.classList.add("ov_hidden"),e.style.height="auto",e.style.transition="none";const i=window.getComputedStyle(e).height;e.style.height=i,setTimeout(()=>{e.style.transition="height .2s",e.style.height="0"})}s.value=!0,setTimeout(()=>s.value=!1,o+50)}};return g(t,()=>l(),{flush:"post"}),u(()=>{setTimeout(()=>l())}),{isShowMoreConditions:t,toggleSlideMoreConditions:a}};export{r as u};
