"use strict";(self.webpackChunkflow_web_extension=self.webpackChunkflow_web_extension||[]).push([["71055"],{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,t){t.d(e,{Z:()=>c});var i=t(397458);t(652983);var l=t(465031),o=t(698127),a=t(706790),c=(0,l.G)((0,i.jsx)(n=>(0,i.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,i.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"})})),{}))},305813:function(n,e,t){t.d(e,{e:()=>i});var i=n=>n()},153951:function(n,e,t){t.r(e),t.d(e,{RoutePlanNodeRenderPlugin:()=>s});var i=t(642494),l=(n,e)=>{var t,l,o=(null===(t=n.content_blocks_v2)||void 0===t?void 0:t.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,i.vlk)(n),{is_finish:c}=e;return{isBlockFinished:c,isLatestBlock:o,isBroken:a}},o=t(397458),a=t(652983),c=t(622498),r=(0,a.memo)(n=>{var e,{node:t,isBlockFinished:i,isBroken:l}=n,a=null===(e=t.block.content)||void 0===e?void 0:e.route_block;return a?(0,o.jsx)(c.y,{isBlockFinished:i,isBroken:l,blockContent:a}):null});class s{constructor(){this.nodeTypes=["block_type:10026"],this.Content=r,this.usePropsSelector=l}}},622498:function(n,e,t){t.d(e,{n:()=>d,y:()=>s});var i=t(397458),l=t(297488),o=t(47846),a=t(642494),c=t(305813),r=t(349658),s=n=>{var{isBlockFinished:e,isBroken:t,blockContent:a}=n,{summary:s,start:d,end:u}=a||{},v=(0,c.e)(()=>d&&u&&!e?"".concat(d," \u2192 ").concat(u):"");return!e&&t?null:(0,i.jsx)(o.R,{title:s,loading:!e,desc:v,hoverable:!1,prefixIcon:(0,i.jsx)(l.Z,{className:r.Z.icon}),showSuffixIcon:!1})},d=n=>{var e,t,{message:l,contentBlock:o}=n,c=null===(e=null==o?void 0:o.is_finish)||void 0===e||e,r=(0,a.vlk)(l),d=null!==(t=null==o?void 0:o.content_obj)&&void 0!==t?t:{};return(0,i.jsx)(s,{isBlockFinished:c,isBroken:r,blockContent:d})}},47846:function(n,e,t){t.d(e,{R:()=>v});var i=t(397458),l=t(136615),o=t(652983),a=t(681429),c=t(195463),r=t(87608),s=t.n(r),d=t(609842),u=t(798582),v=n=>{var{title:e,desc:t,loading:r,classname:v,prefixIcon:h,hoverable:f=!0,overrideDesc:k,showSuffixIcon:x,query:m=[],onClick:b,renderContent:p,parseQueryText:_=n=>"\u201C".concat(n||"","\u201D")}=n,[g,w]=(0,o.useState)(0),[j,Z]=(0,o.useState)(!0),y=0===m.length,C=k||t;(0,o.useEffect)(()=>{if(j&&!y){var n=setInterval(()=>{g<m.length-1?w(n=>n+1):(clearInterval(n),Z(!1))},600);return()=>clearInterval(n)}},[g,j]);var I=!y&&r?(0,i.jsx)(a.M,{mode:"wait",children:(0,i.jsx)(c.E.div,{layoutId:"query-text",initial:{opacity:0,y:0},animate:{opacity:1,y:0},exit:{opacity:0,y:0},transition:{duration:.1},className:s()(u.Z.title,"inline-block whitespace-nowrap truncate"),children:_(m[g])},g)}):void 0,N=C&&(0,i.jsx)("div",{className:u.Z.desc,children:k||'"'.concat(t,'"')}),R=n=>n?(0,i.jsx)("div",{className:s()(u.Z.title,{"font-normal!":!1}),children:n}):null,B=p?p({renderTitle:R,title:e,queryNode:I,desNode:N}):(0,i.jsxs)(i.Fragment,{children:[R(e),N,I]});return(0,i.jsxs)("div",{className:s()(u.Z.container,v,{[u.Z["container-hoverable"]]:f}),onClick:b,children:[r?(0,i.jsx)(d.Z,{wrapperClassName:u.Z.spin,size:"small"}):h,B,x&&!r&&(0,i.jsx)(l.Z,{className:s()(u.Z.icon,"text-12 -ml-4")})]})}}}]);
//# sourceMappingURL=71055.js.map