PageSourceSearch

https://learn.supernovaconsulting.com/packs/js/CircleAiRecentChatsDrawer-5dc17baf8fdd24a5.chunk.js

js supernovaconsulting.com collected 2026-09-30 14:04:52 UTC 3,835 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[31879],{948052(e,r,t){var a=t(391426),n=t(653529),i=t(134937),l=t(224444),c=t(645765),o=t(570310),s=t(355104),u=t(872518),d=t(34819),h=t(490916),p=t(892907),f=t(933578),x=t(325335),_=t(417980),m=t(804939),y=t(962506),v=t(38509),g=t(215089);function b(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}var j="circle-ai-recent-chats-scroll",w=function(){var e,r,t=(0,s.c)().isCircleV4,w=(0,m.P)(),C=(0,y.B)(function(e){return e.setIsRecentChatsOpen}),N=(0,y.B)(function(e){return e.loadConversation}),k=function(e){if(Array.isArray(e))return e}(e=(0,f.useState)(""))||function(e){var r,t,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(n.push(r.value),2!==n.length);i=!0);}catch(e){l=!0,t=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw t}}return n}}(e)||function(e){if(e){if("string"==typeof e)return b(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),A=k[0],S=k[1],B=(0,u.o)(A,250),I=(0,g.U)({query:B}),D=I.data,L=I.fetchNextPage,M=I.hasNextPage,O=I.isLoading,P=I.isError,T=null!=(r=null==D?void 0:D.pages.flatMap(function(e){return e.records}))?r:[],U=T.length>0,z=function(){return C(!1)},E=function(e){N(e),z()};return(0,a.jsx)(n.o,{children:(0,a.jsxs)("div",{"data-testid":"circle-ai-recent-chats-drawer",className:(0,o.x)("absolute inset-y-0 left-0 z-10 flex w-[420px] max-w-full flex-col shadow-[0px_4px_20px_0px_rgba(0,0,0,0.06),0px_1px_4px_0px_rgba(0,0,0,0.03),0px_1px_4px_0px_rgba(0,0,0,0.03)]",{"bg-primary dark:bg-secondary":t&&!w,"bg-primary":!t,"bg-transparent":w}),children:[(0,a.jsxs)("div",{className:"border-primary flex h-16 items-center gap-2 border-b px-5 py-3",children:[(0,a.jsx)(p.o5,{variant:"heading-sm",color:"primary",component:"h2",className:"flex-1 truncate",children:(0,_.t)("circle_ai_home.recent_chats_drawer.title")}),(0,a.jsx)(d.K,{variant:"outline",size:"sm",icon:"cross","aria-label":(0,_.t)("close"),onClick:z})]}),(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)(h.D,{placeholder:(0,_.t)("circle_ai_home.recent_chats_drawer.search_placeholder"),value:A,onChange:function(e){return S(e.target.value)},onClear:function(){return S("")}})}),(0,a.jsxs)("div",{id:j,className:"flex-1 overflow-y-auto px-4 pb-4",children:[O&&!U&&(0,a.jsx)(l.y,{}),P&&(0,a.jsx)(p.o5,{variant:"body-sm",color:"tertiary",component:"p",children:(0,_.t)("circle_ai_home.recent_chats_drawer.load_error")}),!O&&!P&&!U&&(0,a.jsx)(p.o5,{variant:"body-sm",color:"tertiary",component:"p",children:(0,_.t)(B.length>0?"circle_ai_home.recent_chats_drawer.empty_search":"circle_ai_home.recent_chats_drawer.empty")}),U&&(0,a.jsx)(x.A,{style:{overflow:"initial"},scrollThreshold:.8,next:L,hasMore:!!M,loader:(0,a.jsx)(l.y,{}),scrollableTarget:j,dataLength:T.length,children:(0,a.jsx)("div",{className:"flex flex-col gap-4",children:T.map(function(e){var r;return(0,a.jsx)(v.s,{title:null!=(r=e.title)?r:(0,_.t)("circle_ai_home.new_conversation"),preview:e.last_message_preview,dateLabel:(0,c.B)(e.updated_at).day,onClick:function(){return E(e.uuid)},actions:(0,a.jsx)(i.r,{conversation:{uuid:e.uuid,title:e.title,projectUuid:e.project_id,isDailyBriefConversation:e.daily_brief_conversation}})},e.uuid)})})})]})]})})};t.d(r,{RecentChatsDrawer:()=>w})}}]);
2//# sourceMappingURL=/packs/js/CircleAiRecentChatsDrawer-5dc17baf8fdd24a5.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.