import{d as p,f as _,a as v,s as c}from"./DktbhmWA.js";import{p as b,f as h,t as x,a as g,s as I,c as y,r as w}from"./CPWcrcMP.js";import{r as j,s as n,a as k}from"./BxBMkMrU.js";import{b as q}from"./CFyEX9sq.js";import{p as r}from"./DBypTyp2.js";var z=(l,e)=>{var a;return(a=e.onInput)==null?void 0:a.call(e)},A=_('<input/> <p class="text-error text-sm mt-1"> </p>',1);function G(l,e){b(e,!0);let a=r(e,"value",7),o=r(e,"placeholder",3,""),s=r(e,"error",3,""),i=r(e,"disabled",3,!1);var u=A(),t=h(u);j(t),t.__input=[z,e];var d=I(t,2),m=y(d,!0);w(d),x(()=>{n(t,"type",e.type),n(t,"placeholder",o()),k(t,1,`input ${i()?"input-disabled":"input-bordered"} w-full ${s()?"input-error":""}`),t.disabled=i(),c(m,s())}),q(t,()=>a().value,f=>a().value=f),v(l,u),g()}p(["input"]);export{G as I};
