import{c as e,o as t,t as n}from"./emotion-styled.browser.esm.BPUx6WuE.js";import{V as r}from"./src.sR_9Xh2m.js";import{S as i}from"./utils.B9mvrYZE.js";var a=t(`50%{color:rgba(0,0,0,0);}`),o=n(`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:t,value:n,inForm:a,maxLength:s,className:c,type:l=`single`,allowEnterToSubmit:u=!0})=>{let d=[],f=(t,n=!1)=>{d.push(e(o,{includeDot:d.length>0,shouldBlink:n,children:t},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`||t)&&f(`${n.length}/${s}`,t&&n.length>=s),e(r,{"data-testid":`InputInstructions`,className:c,children:d})};export{s as t};