t2-mapper/docs/_next/static/chunks/450cc5a89761fca0.js
2026-03-12 16:34:43 -07:00

1 line
No EOL
1 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90963,t=>{t.v({Input:"ChatInput-module__mZgxEG__Input",InputForm:"ChatInput-module__mZgxEG__InputForm"})},52728,t=>{"use strict";var e=t.i(43476),n=t.i(932),o=t.i(71645),a=t.i(98755),u=t.i(90963);function r(){let t,r,m,p,s=(0,n.c)(8),[c,g]=(0,o.useState)("");s[0]!==c?(t=t=>{t.preventDefault();let e=c.trim();e&&(a.liveConnectionStore.getState().sendCommand("messageSent",e),g(""))},s[0]=c,s[1]=t):t=s[1];let h=t;return s[2]===Symbol.for("react.memo_cache_sentinel")?(r=t=>g(t.target.value),s[2]=r):r=s[2],s[3]!==c?(m=(0,e.jsx)("input",{className:u.default.Input,type:"text",placeholder:"Say something…",value:c,onChange:r,onKeyDown:l,onKeyUp:i,maxLength:255}),s[3]=c,s[4]=m):m=s[4],s[5]!==h||s[6]!==m?(p=(0,e.jsx)("form",{className:u.default.InputForm,onSubmit:h,children:m}),s[5]=h,s[6]=m,s[7]=p):p=s[7],p}function i(t){return t.stopPropagation()}function l(t){return t.stopPropagation()}t.s(["ChatInput",()=>r])}]);