PageSourceSearch

https://realityhub.climaterealityproject.org/packs/js/RailbarChatThreads-8c5880e28bbe4ac7.chunk.js

js climaterealityproject.org collected 2026-09-24 09:12:58 UTC 7,540 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[20192],{305815(e,s,l){l.d(s,{ChatThreads:()=>S});var i=l(391426),r=l(381301),a=l(606580),t=l(779504),n=l(867494),o=l(554013),c=l(451430),d=l(417980),m=l(721226),h=l(367090),f=l(355104),u=l(605274),x=l(30646),j=l(88880),v=l(373585),g=l(733045),p=function(e){var s=e.title,l=e.onClose,r=(0,u.qI)(),a=(0,n.t)(),t=a.isChatSpace,o=a.isCourseSpace,c=a.isLiveStream,h=a.isDrawer,f=(0,m.$)();return r?(0,i.jsxs)("div",{className:"flex w-full items-center justify-between gap-2",children:[(0,i.jsx)(v.K,{icon:"arrow-left",size:"md",onClick:l,variant:"ghost","aria-label":(0,d.t)("back")}),(0,i.jsx)(g.o5,{variant:"label-md",className:"text-center",children:s}),(0,i.jsx)("span",{"aria-hidden":!0,className:"w-9"})]}):c||o&&!f||h?(0,i.jsxs)("div",{className:"flex w-full items-center justify-start gap-3",children:[(0,i.jsx)(v.K,{icon:"arrow-left",size:"md",onClick:l,variant:"ghost","aria-label":(0,d.t)("back")}),(0,i.jsx)(g.o5,{variant:"heading-md",children:s})]}):(0,i.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,i.jsx)(g.o5,{variant:t?"heading-md":"label-md",children:s}),(0,i.jsx)(v.K,{icon:"cross",size:"md",variant:"ghost",onClick:l,"aria-label":(0,d.t)("close")})]})},b=l(428266),w=l(674251),N=function(e){var s=e.title,l=e.onClose,r=(0,u.qI)(),a=(0,n.t)(),t=a.isChatSpace,o=a.isCourseSpace,c=a.isLiveStream,m=a.isDrawer;if(r)return(0,i.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,i.jsx)(b.K,{name:"16-arrow-left",onClick:l,iconClassName:"!text-dark",className:"flex-none",ariaLabel:(0,d.t)("close")}),(0,i.jsx)("div",{className:"flex-auto text-center",children:(0,i.jsx)(w.o.TitleSm,{as:"h2",weight:"semibold",children:s})})]});if(c||o||m)return(0,i.jsxs)("div",{className:"flex w-full items-center justify-start",children:[(0,i.jsx)(b.K,{name:"20-back",onClick:l,iconSize:20,buttonSize:20,iconClassName:"!text-dark !h-5 !w-5",className:"mr-3 size-8 flex-none",ariaLabel:(0,d.t)("back")}),(0,i.jsx)(w.o.TitleSm,{as:"h2",weight:"semibold",children:s})]});var h=t?w.o.TitleSm:w.o.LabelMd;return(0,i.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,i.jsx)(h,{as:"h2",weight:"semibold",children:s}),(0,i.jsx)(b.K,{name:"20-close",iconSize:20,onClick:l,iconClassName:"!text-dark",ariaLabel:(0,d.t)("close")})]})};function y(e){for(var s=1;s<arguments.length;s++){var l=null!=arguments[s]?arguments[s]:{},i=Object.keys(l);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(l).filter(function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable}))),i.forEach(function(s){var i;i=l[s],s in e?Object.defineProperty(e,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[s]=i})}return e}var C=function(e){return(0,f.c)().isCircleV4?(0,i.jsx)(p,y({},e)):(0,i.jsx)(N,y({},e))},S=function(e){var s=e.isFluidRoomDrawer,l=e.isFullWidth,v=void 0!==l&&l,g=e.shouldRenderInline,p=void 0!==g&&g,b=(0,o.v)(),w=b.ref,N=b.height,y=(0,u.Km)(),S=(0,f.c)().isCircleV4,I=(0,x.c)(),k=(0,n.t)(),L=k.closeThreadsRailbar,P=k.parentMessage,F=k.chatRoom,z=void 0===F?{}:F,T=k.messageHighlightId,D=k.setMessageHighlightId,E=k.shouldShowRailBar,R=k.isCourseSpace,O=k.isDrawer,_=k.isLiveStream,B=(0,m.$)(),K=R&&!B,U=(0,h.s)(),H=U.unreadChatThreadIds,M=U.isUnreadThreadFlow,Y=function(){T&&(I({key:"message_id",value:void 0}),D(null)),P.chat_thread_id&&(_||H.includes(P.chat_thread_id))&&!M&&(0,a.r)(P.chat_thread_id),L()};if(!E||(0,c.isEmpty)(z))return null;var W=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:w,children:(0,i.jsx)(r.h.Header,{children:(0,i.jsx)(C,{title:(0,d.t)("messaging.thread"),onClose:Y})})}),(0,i.jsx)(r.h.Content,{heightGap:N,isCourseSpace:K,noPadding:!0,adaptHeightToLgScreen:!p,children:(0,i.jsx)(j.U,{parentMessage:P,chatRoom:z})})]});if(p)return(0,i.jsx)(r.h,{isFullWidth:v,noBorderLeft:K,isSmallScreen:!0,children:W});if(void 0!==s&&s)return(0,i.jsxs)("div",{className:"bg-primary absolute inset-0 z-10 grid grid-rows-[auto_1fr] overflow-hidden",children:[(0,i.jsx)("div",{className:"flex min-h-8 items-center pb-2 pt-1",children:(0,i.jsx)(C,{title:(0,d.t)("messaging.thread"),onClose:Y})}),(0,i.jsx)("div",{id:"rail-content",className:"flex min-h-0 flex-col overflow-hidden",children:(0,i.jsx)(j.U,{parentMessage:P,chatRoom:z,styling:{composerPlacement:"footer"}})})]});if(S&&y)return(0,i.jsx)("div",{className:"fixed inset-0 z-50 flex h-full flex-col bg-primary",children:W});var q=K?"portal":O?"drawer":"header";return(0,i.jsx)(t.En,{position:q,noBorderLeft:K,isFullWidth:v,children:W})}},674098(e,s,l){var i=l(391426),r=l(933578),a=l(973646),t=function(e){var s=e.fetchNewPage,l=e.footerDistanceFromBottom,t=void 0===l?-1e3:l,n=e.componentId,o=e.onEvent,c=void 0===o?"scrollDown":o,d=e.messageId,m=e.isLoading,h=e.scrollUpDistanceFromTop,f=void 0===h?20:h,u=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e=document.getElementById(n||"");if(e){var l=function(){if(!m){var l=!1;if("scrollUp"===c)l=e.scrollTop<f;else{var i,r=null==u||null==(i=u.current)?void 0:i.getBoundingClientRect();l=e.clientHeight-((null==r?void 0:r.top)||0)>t}l&&s(d)}};return e.addEventListener("scroll",l),function(){e.removeEventListener("scroll",l)}}},[n,s,t,m,d,c,f]),(0,i.jsx)("div",{ref:u,className:"flex justify-center",children:m&&(0,i.jsx)(a.In,{type:"loader"})})};l.d(s,{v:()=>t})},17439(e,s,l){var i=l(391426),r=l(257957),a=l(570310),t=l(708585),n=l(674098),o=function(e){var s=e.children,l=e.className,o=e.shouldShowPrevLoader,c=e.shouldShowNextLoader,d=e.hasNextPage,m=e.hasPrevPage,h=e.onPrevPage,f=e.onNextPage,u=e.firstItemId,x=e.lastItemId,j=e.componentId,v=e.isLoading,g=e.scrollableComponentId;return(0,i.jsxs)(t.t,{viewportProps:{id:j},className:"flex min-h-0 flex-1 flex-col",viewportClassName:(0,a.x)("pt-2 [&>div]:!min-w-0 [&>div]:h-full",l),children:[v?(void 0===o||o)&&(0,i.jsx)(r.a,{center:!0}):m&&(0,i.jsx)(n.v,{componentId:null!=g?g:j,fetchNewPage:h,onEvent:"scrollUp",messageId:u,isLoading:v}
1),s,v?(void 0===c||c)&&(0,i.jsx)(r.a,{center:!0}):d&&(0,i.jsx)(n.v,{componentId:null!=g?g:j,fetchNewPage:f,messageId:x,footerDistanceFromBottom:-500,isLoading:v})]})};l.d(s,{A:()=>o})},469569(e,s,l){var i=l(391426),r=l(152938),a=l(417515),t=l(983979),n=l(42984),o=function(){return(0,i.jsxs)("div",{className:"h-full bg-primary flex flex-col justify-between py-5",children:[(0,i.jsxs)(n.Y,{lg:!0,full:!0,children:[(0,i.jsx)("div",{className:"px-5 py-2",children:(0,i.jsxs)(a.j,{md:!0,full:!0,children:[(0,i.jsx)(r.e,{}),(0,i.jsxs)(n.Y,{full:!0,children:[(0,i.jsx)(t.f,{sm:!0}),(0,i.jsx)(t.f,{sm:!0,almostFull:!0})]})]})}),(0,i.jsx)("div",{className:"px-5 py-2",children:(0,i.jsxs)(a.j,{md:!0,full:!0,children:[(0,i.jsx)(r.e,{}),(0,i.jsxs)(n.Y,{full:!0,children:[(0,i.jsx)(t.f,{sm:!0}),(0,i.jsx)(t.f,{sm:!0,full:!0}),(0,i.jsx)(t.f,{sm:!0,almostFull:!0})]})]})}),(0,i.jsx)("div",{className:"px-5 py-2",children:(0,i.jsxs)(a.j,{md:!0,full:!0,children:[(0,i.jsx)(r.e,{}),(0,i.jsxs)(n.Y,{full:!0,children:[(0,i.jsx)(t.f,{sm:!0}),(0,i.jsx)(t.f,{sm:!0,almostFull:!0})]})]})})]}),(0,i.jsx)("div",{className:"bg-primary z-50 w-full p-5",children:(0,i.jsx)("div",{className:"border-primary h-24 w-full rounded-md border",children:(0,i.jsx)("div",{className:"flex h-full items-end space-x-3 p-4",children:[,,,].fill(0).map(function(e,s){return(0,i.jsx)("div",{className:"bg-secondary size-6 rounded-md"},s)})})})})]})};l.d(s,{h:()=>o})}}]);
2//# sourceMappingURL=/packs/js/RailbarChatThreads-8c5880e28bbe4ac7.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.