import{o as u}from"./keyboard.fb010fef799a7ce832bef6ce05ba84c03d4b928d.js";import{r,i as l,ac as f}from"./entry.fb010fef799a7ce832bef6ce05ba84c03d4b928d.js";function a(t,n){if(t)return t;let e=n??"button";if(typeof e=="string"&&e.toLowerCase()==="button")return"button"}function v(t,n){let e=r(a(t.value.type,t.value.as));return l(()=>{e.value=a(t.value.type,t.value.as)}),f(()=>{var o;e.value||u(n)&&u(n)instanceof HTMLButtonElement&&!((o=u(n))!=null&&o.hasAttribute("type"))&&(e.value="button")}),e}export{v as s};