import{i as e,t}from"./emotion-styled.browser.esm.BYv_Qzcq.js";import{i as n}from"./emotion-react.browser.esm.CnqdHrzD.js";import{X as r}from"./utils.Vs712G4Z.js";import{t as i}from"./styled-components.D_g2LX2o.js";var a=n(`50%{color:rgba(0,0,0,0);}`),o=t(`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 ${r()?`⌘`:`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(i,{"data-testid":`InputInstructions`,className:c,children:d})};export{s as t};