PageSourceSearch

https://members.arigalper.com/packs/js/RailbarChatThreads-5e671f0916cc35dd.chunk.js

js arigalper.com collected 2026-09-30 22:27:58 UTC 8,832 bytes, 2 lines download raw bytes

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