import{It as e,Ja as t,Wa as n,vr as r,yi as i}from"./index.dkY5s53S.js";var a=n(`50%{color:rgba(0,0,0,0);}`),o=r(`span`,{target:`epumps80`})(({includeDot:e,shouldBlink:t,theme:n})=>({...e?{"&::before":{opacity:1,content:`"•"`,animation:`none`,color:n.colors.grayTextColor,margin:`0 ${n.spacing.twoXS}`}}:{},...t?{color:n.colors.redTextColor,animationName:`${a}`,animationDuration:`0.5s`,animationIterationCount:5}:{}})),s=({dirty:n,value:r,inForm:a,maxLength:s,className:c,type:l=`single`,allowEnterToSubmit:u=!0})=>{let d=[],f=(e,n=!1)=>{d.push(t(o,{includeDot:d.length>0,shouldBlink:n,children:e},d.length))};if(u){let e=a?`submit form`:`apply`;l===`multiline`?f(`Press ${i()?`⌘`:`Ctrl`}+Enter to ${e}`):l===`single`&&f(`Press Enter to ${e}`)}return s&&(l!==`chat`||n)&&f(`${r.length}/${s}`,n&&r.length>=s),t(e,{"data-testid":`InputInstructions`,className:c,children:d})};export{s as t};