"use strict";(self.webpackChunkflow_web_extension=self.webpackChunkflow_web_extension||[]).push([["70849"],{660783:function(e,t,a){a.d(t,{Z:()=>l});var s=a(397458);a(652983);var n=a(465031),i=a(698127),r=a(706790),l=(0,n.G)((0,s.jsx)(e=>(0,s.jsx)("svg",(0,r._)((0,i._)({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 28 28"},e),{children:(0,s.jsx)("path",{d:"M14.007 28q-2.881 0-5.418-1.11a14.3 14.3 0 0 1-4.453-3.026 14.5 14.5 0 0 1-3.04-4.453Q0 16.875 0 13.993q0-2.868 1.095-5.404Q2.191 6.053 4.121 4.12A14.5 14.5 0 0 1 8.59 1.095Q11.124 0 13.993 0t5.404 1.095q2.536 1.096 4.467 3.026A14.2 14.2 0 0 1 26.89 8.59Q28 11.124 28 13.993q0 2.881-1.095 5.418a14.3 14.3 0 0 1-3.027 4.453 14.2 14.2 0 0 1-4.467 3.026Q16.876 28 14.007 28m.015-6.917q.518 0 .835-.317.332-.332.332-.836v-6.816l-.13-2.969 1.37 1.672 1.599 1.643q.316.33.807.331.475 0 .792-.303a.99.99 0 0 0 .332-.763q0-.475-.332-.807L14.944 7.22q-.433-.447-.922-.447-.476 0-.908.447L8.43 11.918q-.317.317-.317.807 0 .461.317.763.318.303.778.303.49 0 .807-.331l1.629-1.658 1.326-1.642-.116 2.954v6.816q0 .504.332.836.331.317.836.317"})})),{}))},819113:function(e,t,a){a.d(t,{l:()=>n});var s,n=((s={}).ReadAndSummarize="ReadAndSummarize",s.WriteAssistant="WriteAssistant",s.ImageGeneration="ImageGeneration",s.Search="Search",s.Translate="Translate",s.ReadPDF="ReadPDF",s.ReadWebsite="ReadWebsite",s.DeepSearch="DeepSearch",s.MusicAssistant="MusicAssistant",s.AcademicSearch="AcademicSearch",s.EduExerciseAssistant="EduExerciseAssistant",s.CodeInterpreter="CodeInterpreter",s.ReadMultiWebsites="ReadMultiWebsites",s.CodeAssistant="CodeAssistant",s.VoiceCall="VoiceCall",s.VideoGeneration="VideoGeneration",s.AiPpt="AiPpt",s.AiSlides="AiSlides",s.DeepResearch="DeepResearch",s.SuperTask="SuperTask",s)},664702:function(e,t,a){a.d(t,{Y:()=>h});var s=a(397458),n=a(87608),i=a.n(n),r=a(372003),l=a(111462),u=a(422784),o=a(221330),c=a(557829),d={"center-input":"center-input-h9fB8P"};function h(){var{className:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.g1)(),a=(0,u.mC)(),n=(0,c.Dv)();return(0,s.jsx)(r.o,{className:i()(e,n&&a===l.z.NewThread&&d["center-input"]),placeholder:t(n?"homepage_centered_input_placeholder":"default_input_placeholder")})}},372003:function(e,t,a){a.d(t,{o:()=>d});var s=a(397458),n=a(660783),i=a(652983),r=a(183911),l=a(87608),u=a.n(l),o={"chat-input":"chat-input-N_qWuN","single-line":"single-line-LkZqpK",bottom:"bottom-eBppoR",placeholder:"placeholder-fgksOI","box-shadow":"box-shadow-Tln4fr",small:"small-w5uzh1","chat-input-with-upload":"chat-input-with-upload-qhPwaM","chat-input-button":"chat-input-button-qTW_WR","chat-input-content":"chat-input-content-JRzPw4","chat-input-tool":"chat-input-tool-pP_BL1","chat-input-button-round":"chat-input-button-round-SQYOVQ"},c=!1,d=e=>{var{placeholder:t,style:a,className:l,uploadIcon:d,boxShadow:h=!1,singleLine:p=!0}=e,m=(0,i.useRef)(null),[f,v]=(0,i.useState)(c);return(0,i.useEffect)(()=>{var e,t=null===(e=m.current)||void 0===e?void 0:e.clientWidth,a=(0,r.Z)(t)||0===t?c:t<480;c=a,v(a)},[]),(0,s.jsx)("div",{ref:m,className:u()(o["chat-input"],p&&o["single-line"],h&&o["box-shadow"],f&&o.small,d&&o["chat-input-with-upload"],l),style:a,children:p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:o["chat-input-content"]}),(0,s.jsx)("div",{className:o["chat-input-tool"]}),(0,s.jsx)("div",{className:o["chat-input-tool"]}),(0,s.jsx)("div",{className:o["chat-input-button-round"]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("textarea",{disabled:!0,placeholder:t}),(0,s.jsxs)("div",{className:o.bottom,children:[d,(0,s.jsx)("div",{className:o.placeholder}),(0,s.jsx)(n.Z,{className:o["chat-input-button"]})]})]})})}},183305:function(e,t,a){a.d(t,{e:()=>r});var s=a(624682),n=a(581810),i=a(492806);class r{focusOnEditor(){i.mr.getState().updateFocusedState(!0)}updateEditorValue(e){(0,s.Z)(e)?i.mr.getState().updateEditorValue({data:[{type:n.f.Text,text:e}]}):i.mr.getState().updateEditorValue(e)}clearEditorValue(){this.updateEditorValue("")}}},217471:function(e,t,a){a.r(t),a.d(t,{CodingAssistantChatInputPlugin:()=>f});var s=a(698127),n=a(397458),i=a(652983),r=a(814835),l=a(819113),u=a(664702),o=a(754751),c=a(771197),d=a(917612);function h(){return Promise.all([a.e("51909"),a.e("87637"),a.e("29717"),a.e("90481"),a.e("12748"),a.e("18383")]).then(a.bind(a,764736))}var p=i.lazy(()=>(0,d.AD)({fn:(0,c._)(function*(){var{CodingAssistantChatInput:e}=yield h();return{default:e}})})),m=a(183305);class f extends r.H{focus(){var e;null===(e=this.ref.current)||void 0===e||e.focus()}render(e){return(0,n.jsx)(i.Suspense,{fallback:(0,n.jsx)(u.Y,{}),children:(0,n.jsx)(p,(0,s._)({ref:this.ref},e))})}preloadChunks(){h()}constructor(...e){super(...e),this.skillType=o.SkillType.CodeAssistant,this.ref=(0,i.createRef)(),this.service=new m.e}}f.pluginName=l.l.CodeAssistant}}]);
//# sourceMappingURL=coding-input-plugin.js.map