import{z as u,a3 as d,j as c,a4 as p,a5 as f}from"./index.Drusyo5m.js";const I=d("50%{color:rgba(0,0,0,0);}"),$=u("span",{target:"e1xtngpi0"})(({includeDot:n,shouldBlink:o,theme:t})=>({...n?{"&::before":{opacity:1,content:'"•"',animation:"none",color:t.colors.grayTextColor,margin:`0 ${t.spacing.twoXS}`}}:{},...o?{color:t.colors.redTextColor,animationName:`${I}`,animationDuration:"0.5s",animationIterationCount:5}:{}})),b=({dirty:n,value:o,inForm:t,maxLength:a,className:g,type:r="single",allowEnterToSubmit:m=!0})=>{const s=[],i=(e,l=!1)=>{s.push(c($,{includeDot:s.length>0,shouldBlink:l,children:e},s.length))};if(m){const e=t?"submit form":"apply";if(r==="multiline"){const l=f()?"⌘":"Ctrl";i(`Press ${l}+Enter to ${e}`)}else r==="single"&&i(`Press Enter to ${e}`)}return a&&(r!=="chat"||n)&&i(`${o.length}/${a}`,n&&o.length>=a),c(p,{"data-testid":"InputInstructions",className:g,children:s})};export{b as I};
