"use strict";(self.webpackChunkflow_web_extension=self.webpackChunkflow_web_extension||[]).push([["77140"],{349658:function(n,e){e.Z={icon:"icon-omhRa7"}},798582:function(n,e){e.Z={font:"font-FvKupi",spin:"spin-J3uJm7",container:"container-kVzOZz","container-hoverable":"container-hoverable-H8Gkvr",containerHoverable:"container-hoverable-H8Gkvr",title:"title-vitxuC",desc:"desc-Ey5BLC",icon:"icon-Y2VQX3","default-thinking":"default-thinking-_D6Pan",defaultThinking:"default-thinking-_D6Pan","default-thinking-text":"default-thinking-text-mMrk6X",defaultThinkingText:"default-thinking-text-mMrk6X"}},136615:function(n,e,i){i.d(e,{Z:()=>s});var t=i(397458);i(652983);var l=i(465031),o=i(698127),a=i(706790),s=(0,l.G)((0,t.jsx)(n=>(0,t.jsx)("svg",(0,a._)((0,o._)({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},n),{children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.74 2.94a1.5 1.5 0 0 1 2.12 0l7.647 7.646a2 2 0 0 1 0 2.828l-7.646 7.647a1.5 1.5 0 0 1-2.122-2.122L14.68 12l-6.94-6.94a1.5 1.5 0 0 1 0-2.12",clipRule:"evenodd"})})),{}))},471455:function(n,e,i){i.r(e),i.d(e,{LocalLifeNodeRenderPlugin:()=>r});var t=i(642494),l=(n,e)=>{var i,l,o=(null===(i=n.content_blocks_v2)||void 0===i?void 0:i.findIndex(n=>n.block_id===e.block_id))===((null===(l=n.content_blocks_v2)||void 0===l?void 0:l.length)||0)-1,a=!!o&&(0,t.vlk)(n),{is_finish:s}=e;return{isBlockFinished:s,isLatestBlock:o,isBroken:a}},o=i(397458),a=i(652983),s=i(377598),c=(0,a.memo)(n=>{var e,{node:i,isBlockFinished:t,isBroken:l}=n,a=null===(e=i.block.content)||void 0===e?void 0:e.local_life_block;return a?(0,o.jsx)(s.R,{isBlockFinished:t,isBroken:l,blockContent:a}):null});class r{constructor(){this.nodeTypes=["block_type:10009"],this.Content=c,this.usePropsSelector=l}}},377598:function(n,e,i){i.d(e,{w:()=>v,R:()=>u});var t=i(397458);i(652983);var l=i(465031),o=i(698127),a=i(706790),s=(0,l.G)((0,t.jsx)(n=>(0,t.jsx)("svg",(0,a._)((0,o._)({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},n),{children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M19 10.35c0 1.914-.866 4.02-2.336 6.003-1.317 1.777-3.016 3.308-4.664 4.343-1.649-1.035-3.347-2.566-4.664-4.343C5.866 14.371 5 12.264 5 10.35 5 6.218 8.205 3 12 3s7 3.218 7 7.35m2 0c0 4.98-4.43 10.072-8.544 12.402a.92.92 0 0 1-.912 0C7.43 20.422 3 15.33 3 10.35 3 5.186 7.03 1 12 1s9 4.186 9 9.35m-7.5.15a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m2 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0",clipRule:"evenodd"})})),{})),c=i(47846),r=i(642494),d=i(349658),u=n=>{var{isBlockFinished:e,isBroken:i,blockContent:l}=n,{summary:o,queries:a=[]}=null!=l?l:{};return!e&&i?null:(0,t.jsx)(c.R,{title:o,loading:!e,query:a,hoverable:!1,prefixIcon:(0,t.jsx)(s,{className:d.Z.icon}),showSuffixIcon:!1})},v=n=>{var e,i,{contentBlock:l,message:o}=n,a=null===(e=null==l?void 0:l.is_finish)||void 0===e||e,s=(0,r.vlk)(o),c=null!==(i=null==l?void 0:l.content_obj)&&void 0!==i?i:{};return(0,t.jsx)(u,{isBlockFinished:a,isBroken:s,blockContent:c})}},47846:function(n,e,i){i.d(e,{R:()=>v});var t=i(397458),l=i(136615),o=i(652983),a=i(681429),s=i(195463),c=i(87608),r=i.n(c),d=i(609842),u=i(798582),v=n=>{var{title:e,desc:i,loading:c,classname:v,prefixIcon:h,hoverable:f=!0,overrideDesc:x,showSuffixIcon:k,query:m=[],onClick:w,renderContent:p,parseQueryText:g=n=>"\u201C".concat(n||"","\u201D")}=n,[_,b]=(0,o.useState)(0),[j,Z]=(0,o.useState)(!0),C=0===m.length,y=x||i;(0,o.useEffect)(()=>{if(j&&!C){var n=setInterval(()=>{_<m.length-1?b(n=>n+1):(clearInterval(n),Z(!1))},600);return()=>clearInterval(n)}},[_,j]);var R=!C&&c?(0,t.jsx)(a.M,{mode:"wait",children:(0,t.jsx)(s.E.div,{layoutId:"query-text",initial:{opacity:0,y:0},animate:{opacity:1,y:0},exit:{opacity:0,y:0},transition:{duration:.1},className:r()(u.Z.title,"inline-block whitespace-nowrap truncate"),children:g(m[_])},_)}):void 0,I=y&&(0,t.jsx)("div",{className:u.Z.desc,children:x||'"'.concat(i,'"')}),N=n=>n?(0,t.jsx)("div",{className:r()(u.Z.title,{"font-normal!":!1}),children:n}):null,B=p?p({renderTitle:N,title:e,queryNode:R,desNode:I}):(0,t.jsxs)(t.Fragment,{children:[N(e),I,R]});return(0,t.jsxs)("div",{className:r()(u.Z.container,v,{[u.Z["container-hoverable"]]:f}),onClick:w,children:[c?(0,t.jsx)(d.Z,{wrapperClassName:u.Z.spin,size:"small"}):h,B,k&&!c&&(0,t.jsx)(l.Z,{className:r()(u.Z.icon,"text-12 -ml-4")})]})}}}]);
//# sourceMappingURL=77140.js.map