PageSourceSearch

https://community.embodiedastrology.com/packs/js/CircleAiRecentChatsDrawer-a139451d66505c1c.chunk.js

js embodiedastrology.com collected 2026-09-25 03:10:43 UTC 3,693 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),o=t(645765),c=t(872518),s=t(373585),u=t(403655),d=t(733045),h=t(933578),p=t(325335),f=t(417980),_=t(962506),x=t(38509),m=t(215089);function y(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 v="circle-ai-recent-chats-scroll",g=function(){var e,r,t=(0,_.B)(function(e){return e.setIsRecentChatsOpen}),g=(0,_.B)(function(e){return e.loadConversation}),b=function(e){if(Array.isArray(e))return e}(e=(0,h.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 y(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 y(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.")}(),j=b[0],w=b[1],C=(0,c.o)(j,250),N=(0,m.U)({query:C}),A=N.data,k=N.fetchNextPage,S=N.hasNextPage,B=N.isLoading,I=N.isError,D=null!=(r=null==A?void 0:A.pages.flatMap(function(e){return e.records}))?r:[],L=D.length>0,M=function(){return t(!1)},O=function(e){g(e),M()};return(0,a.jsx)(n.o,{children:(0,a.jsxs)("div",{"data-testid":"circle-ai-recent-chats-drawer",className:"bg-primary 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)]",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)(d.o5,{variant:"heading-sm",color:"primary",component:"h2",className:"flex-1 truncate",children:(0,f.t)("circle_ai_home.recent_chats_drawer.title")}),(0,a.jsx)(s.K,{variant:"outline",size:"sm",icon:"cross","aria-label":(0,f.t)("close"),onClick:M})]}),(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)(u.D,{placeholder:(0,f.t)("circle_ai_home.recent_chats_drawer.search_placeholder"),value:j,onChange:function(e){return w(e.target.value)},onClear:function(){return w("")}})}),(0,a.jsxs)("div",{id:v,className:"flex-1 overflow-y-auto px-4 pb-4",children:[B&&!L&&(0,a.jsx)(l.y,{}),I&&(0,a.jsx)(d.o5,{variant:"body-sm",color:"tertiary",component:"p",children:(0,f.t)("circle_ai_home.recent_chats_drawer.load_error")}),!B&&!I&&!L&&(0,a.jsx)(d.o5,{variant:"body-sm",color:"tertiary",component:"p",children:(0,f.t)(C.length>0?"circle_ai_home.recent_chats_drawer.empty_search":"circle_ai_home.recent_chats_drawer.empty")}),L&&(0,a.jsx)(p.A,{style:{overflow:"initial"},scrollThreshold:.8,next:k,hasMore:!!S,loader:(0,a.jsx)(l.y,{}),scrollableTarget:v,dataLength:D.length,children:(0,a.jsx)("div",{className:"flex flex-col gap-4",children:D.map(function(e){var r;return(0,a.jsx)(x.s,{title:null!=(r=e.title)?r:(0,f.t)("circle_ai_home.new_conversation"),preview:e.last_message_preview,dateLabel:(0,o.B)(e.updated_at).day,onClick:function(){return O(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:()=>g})}}]);
2//# sourceMappingURL=/packs/js/CircleAiRecentChatsDrawer-a139451d66505c1c.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.