"use strict";(self.webpackChunkflow_web_extension=self.webpackChunkflow_web_extension||[]).push([["75393"],{177322:function(e,a,t){t.r(a),t.d(a,{ReadDocumentMessageListLifeCyclePlugin:()=>i});var d=t(26980),u=t(932842),o=t(468819);class i{mounted(e){var a,{conversationId:t}=e,i=d.vh.get("chatViewService"),{canvasContent:n,conversationId:r}=(0,u.GX)("chatViewCanvasStore")||{};if(!(null!=(a=n)&&a.readContent)||t!==r){var s=o.X.getState().canvasOpenStatusMap[t];s&&setTimeout(()=>{null==i||i.openCanvasPanel(s)},0)}}}},468819:function(e,a,t){t.d(a,{X:()=>l,o:()=>c});var d=t(837222),u=t(531484),o=t(698127),i=t(706790),n=t(497176),r={urlEditorValue:{data:[]},linkEditorValue:"",promptEditorValue:"",readDocEditorFocused:!1,readUrlEditorFocused:!1,latestRead:[],latestReadInitiated:!1,guidanceEditorValue:{data:[]},canvasOpenStatusMap:{}},s={guidanceEditorValue:{data:[]},guidanceEditorFocused:!1},l=(0,u.Ue)()((0,d.XR)(e=>(0,i._)((0,o._)({},r),{updateUrlEditorValue:a=>{e((0,n.Uy)(e=>{e.urlEditorValue=a}))},updateLinkEditorValue:a=>{e((0,n.Uy)(e=>{e.linkEditorValue=a}))},updatePromptEditorValue:a=>{e((0,n.Uy)(e=>{e.promptEditorValue=a}))},updateGuidanceEditorValue:a=>{e((0,n.Uy)(e=>{e.guidanceEditorValue=a}))},updateReadDocEditorFocusedState:a=>{e((0,n.Uy)(e=>{e.readDocEditorFocused=a}))},updateReadUrlEditorFocusedState:a=>{e((0,n.Uy)(e=>{e.readUrlEditorFocused=a}))},updateLatestRead:function(a){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];e((0,n.Uy)(e=>{e.latestReadInitiated=!0,a&&(e.latestRead=t?[...e.latestRead,...a]:a)}))},saveCanvasOpenState:a=>{e((0,n.Uy)(e=>{var{conversationId:t}=a;e.canvasOpenStatusMap[t]=a}))},removeCanvasOpenState:a=>{e((0,n.Uy)(e=>{delete e.canvasOpenStatusMap[a]}))}}))),c=(0,u.Ue)()((0,d.XR)(e=>(0,i._)((0,o._)({},s),{updateGuidanceEditorValue:a=>{e((0,n.Uy)(e=>{e.guidanceEditorValue=a}))},updateGuidanceEditorFocusedState:a=>{e((0,n.Uy)(e=>{e.guidanceEditorFocused=a}))}})))}}]);
//# sourceMappingURL=75393.js.map