{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/hooks/usePlainTextListeners.ts","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/components/PlainTextComposer.tsx","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/hooks/useComposerFunctions.ts","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/hooks/usePlainTextInitialization.ts","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/components/Emoji.tsx","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/SendWysiwygComposer.tsx","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/hooks/useWysiwygSendActionHandler.ts"],"names":["usePlainTextListeners","initialContent","onChange","onSend","ref","useRef","content","setContent","useState","send","useCallback","current","innerHTML","setText","text","enterShouldSend","useSettingValue","onInput","event","target","HTMLDivElement","newInnerHTML","replace","onKeyDown","key","Key","ENTER","sendModifierIsPressed","IS_MAC","metaKey","ctrlKey","shiftKey","preventDefault","stopPropagation","onPaste","PlainTextComposer","className","disabled","children","placeholder","leftComponent","rightComponent","composerFunctions","useMemo","clear","insertText","selection","document","getSelection","anchorOffset","focusOffset","slice","setSelection","anchorNode","firstChild","length","focusNode","isForward","useComposerFunctions","useEffect","innerText","usePlainTextInitialization","useSetCursorPosition","isFocused","onFocus","useIsFocused","computedPlaceholder","undefined","classNames","onBlur","Editor","Emoji","menuPosition","roomContext","useRoomContext","EmojiButton","addEmoji","emoji","dis","dispatch","action","Action","ComposerInsert","timelineRenderingType","Content","forwardRef","composerElement","composerContext","useComposerContext","timeoutId","handler","payload","context","TimelineRenderingType","Room","FocusSendMessageComposer","focusComposer","ClearAndFocusSendMessageComposer","composerType","ComposerType","Send","userId","then","useDispatcher","defaultDispatcher","useWysiwygSendActionHandler","SendWysiwygComposer","isRichTextEnabled","e2eStatus","eventRelation","props","Composer","WysiwygComposer","defaultContextValue","getDefaultContextValue","ComposerContext","Provider","value","E2EIcon","status"],"mappings":"+UAmCO,SAASA,EACZC,EACAC,EACAC,GASA,MAAMC,EAAMC,iBAA8B,OACnCC,EAASC,GAAcC,mBAA6BP,GACrDQ,EAAOC,uBAAY,KACjBN,EAAIO,UACJP,EAAIO,QAAQC,UAAY,IAE5BT,YAAU,GACX,CAACC,EAAKD,IAEHU,EAAUH,uBACXI,IACGP,EAAWO,GACXZ,WAAWY,EAAK,GAEpB,CAACZ,IAGCa,GAAmBC,YAAyB,wCAC5CC,EAAUP,uBACXQ,IACG,GAAiBA,EAAMC,kBA7CNC,eA6Ce,CAE5B,MAAMC,EAAeN,EAAkBG,EAAMC,OAAOP,UAA2BM,EAAMC,OAAOP,UAvCnGU,QAAQ,oBAAqB,MAC7BA,QAAQ,SAAU,MAClBA,QAAQ,WAAY,IAsCbT,EAAQQ,EACZ,IAEJ,CAACR,EAASE,IAGRQ,EAAYb,uBACbQ,IACG,GAAIA,EAAMM,MAAQC,IAAIC,MAAO,CAEzB,MAAMC,EAAwBC,IAASV,EAAMW,QAAUX,EAAMY,QAGzDf,IAAoBG,EAAMa,WAC1Bb,EAAMc,iBACNd,EAAMe,kBACNxB,MAICM,GAAmBY,IACpBT,EAAMc,iBACNd,EAAMe,kBACNxB,IAER,IAEJ,CAACM,EAAiBN,IAGtB,MAAO,CAAEL,MAAKa,UAASiB,QAASjB,EAASM,YAAWjB,UAASC,WAAYM,EAC7E,C,sBC9DO,SAASsB,EAAkB,GAUM,IAVN,UAC9BC,EAAS,SACTC,GAAW,EAAK,OAChBlC,EAAM,SACND,EAAQ,SACRoC,EAAQ,YACRC,EAAW,eACXtC,EAAc,cACduC,EAAa,eACbC,GACqB,EACrB,MAAM,IAAErC,EAAG,QAAEa,EAAO,QAAEiB,EAAO,UAAEX,EAAS,QAAEjB,EAAO,WAAEC,GAAeP,EAC9DC,EACAC,EACAC,GAEEuC,ECnCH,SACHtC,EACAG,GAKA,OA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