1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0204d656-4046-449a-ab60-ede3eb9dfc8c",e._sentryDebugIdIdentifier="sentry-dbid-0204d656-4046-449a-ab60-ede3eb9dfc8c")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5313],{11977:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/messages",function(){return t(34794)}])},21377:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var r=t(52322),u=t(2784),s=t(39097),i=t.n(s),o=t(5632),c=t(44366),l=t(7357),d=t(12866),a=t(44467),f=t(55835);let h=d.ZP.button.withConfig({displayName:"chat-channels-list-widget__SearchUserCardWrapper",componentId:"sc-be1603fb-0"})(["all:unset;width:100%;"]);function g(e){let{activeChannelId:n,height:t,redirectToFirstChannel:s,onUserSelect:d=()=>{}}=e,{leftIsHidden:g}=(0,c.nx)({firstSideHidden:"RIGHT"}),{query:{chatUserId:I},push:v}=(0,o.useRouter)(),{channelUserListProps:p,users:y,allConnections:U,error:b,loading:w,search:x,hasMoreConnections:m,loadMoreConnections:_}=(0,l.IW)({chatUserId:I}),{event:j}=(0,f.v)(),C=j?j.id:null,E=(0,a.pv)();return((0,u.useEffect)(()=>{var e;!g&&s&&(null===(e=p.channelUsers[0])||void 0===e?void 0:e.channel.channelUsers.length)>1&&s(p.channelUsers[0].channel.id)},[s,p,g]),b||!p)?null:(0,r.jsx)(l.ZP,{onSearch:x,loading:w,users:y||[],allConnections:U,height:t,renderUserLink:e=>{let{component:n,createChannel:t}=e;return(0,r.jsx)(h,{onClick:async()=>{let{channelId:e}=await t();e&&v(E({channelId:e}))},children:n})},channelUserListProps:{...p,renderChannelUserLink:(e,n)=>(0,r.jsx)(i(),{href:E({channelId:n.channel.id,chatUserId:I}),children:e},n.id)},activeChannelId:n,onUserSelect:d,eventId:C||void 0,onCreateGroupChat:e=>{v(E({channelId:e,chatUserId:I}))},hasMoreConnections:m,loadMoreConnections:_})}},96639:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r=t(52322),u=t(23147),s=t(62234),i=t(3238),o=t(5632),c=t(99565);function l(e){let{title:n,subtitle:t,loading:l,onBack:d,rightComponent:a,withLeftButtonOffset:f}=e,{breakPoints:h}=(0,s.Fg)(),g=!(0,i.ZP)({minWidth:h.sm}),I=(0,c.x)(),{query:{eventSlug:v,communitySlug:p}}=(0,o.useRouter)();if(!g)return null;let y=null!=f?f:!!(v||p);return l?(0,r.jsx)(u.yD,{onBack:d,withLeftButtonOffset:y}):(0,r.jsx)(u.ZP,{offsetTop:I.mobileOffsetTop,onBack:d,centerComponent:(0,r.jsx)(u.XJ,{title:n,subtitle:t,withEventIcon:!!v}),rightComponent:a,withLeftButtonOffset:y})}},73702:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(52322),u=t(2784),s=t(44366),i=t(5632),o=t(83053),c=t(40849),l=t(36933),d=t(21377),a=t(56344),f=t(68390),h=t(17512),g=t(44467),I=t(96639);function v(){let e=(0,i.useRouter)(),{userId:n}=(0,c.II)(),t=(0,f.Eh)();return(0,u.useEffect)(()=>{e.query.chatUserId||t({chatUserId:n})},[e.query.chatUserId,t]),(0,r.jsx)(c.w7,{value:{userId:e.query.chatUserId},children:(0,r.jsx)(p,{})},e.query.chatUserId)}function p(){let{leftIsHidden:e}=(0,s.nx)({firstSideHidden:"RIGHT"}),n=(0,i.useRouter)(),{userId:t}=(0,c.II)(),{t:v}=(0,l.$)(),p=(0,f.Eh)(),{height:y}=(0,a.RJ)(),U=(0,h.eo)(),b=(0,g.pv)(),w=(0,u.useCallback)(e=>{n.push(U({chatUserId:e}))},[n.push,U]);return(0,u.useEffect)(()=>{!n.query.chatUserId&&t&&p({chatUserId:t})},[n.query.chatUserId,t,p]),(0,r.jsx)(s.ZP,{firstSideHidden:"RIGHT",asideLeft:()=>(0,r.jsx)(d.Z,{height:y,onUserSelect:w,redirectToFirstChannel:e=>{n.replace(b({...n.query,channelId:e}))}}),main:()=>e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.Z,{title:v("messages_title")}),(0,r.jsx)(d.Z,{height:y,onUserSelect:w})]}):(0,r.jsx)(o.GX,{height:y})})}},52372:function(e,n,t){"use strict";t.d(n,{X:function(){return l}});var r=t(52322),u=t(15014),s=t(5632),i=t(2784);function o(e){let{children:n}=e,t=(0,s.useRouter)(),{isLoggedIn:o}=(0,u.aC)();return((0,i.useEffect)(()=>{o||t.push("/")},[o,t]),o)?(0,r.jsx)(r.Fragment,{children:n}):null}function c(e){return(0,r.jsx)(o,{children:e})}function l(e){function n(n){return(0,r.jsx)(e,{...n})}return n.getInitialProps=n=>{if(!1===n.isLoggedIn){var t,r;return null===(t=n.res)||void 0===t||t.writeHead(302,{Location:"/"}),null===(r=n.res)||void 0===r||r.end(),{}}return e.getInitialProps?e.getInitialProps(n):{}},n.getLayout=e.getLayout?(n,t)=>{var r;return null===(r=e.getLayout)||void 0===r?void 0:r.call(e,c(n),t)}:c,n}},34794:function(e,n,t){"use strict";t.r(n);var r=t(38869),u=t(73702),s=t(52372);n.default=(0,r.g)((0,s.X)(u.Z))},48045:function(e,n,t){"use strict";t.d(n,{U:function(){return i},g:function(){return s}});var r=t(43349),u=t(19855);let s="/c/[communitySlug]/messages";
1function i(e){let{communitySlug:n,chatUserId:t}=e;return(0,r.J)((0,u.n)(s,{communitySlug:n}),{chatUserId:t})}},73024:function(e,n,t){"use strict";t.d(n,{Y:function(){return i},b:function(){return s}});var r=t(43349),u=t(19855);let s="/event/[eventSlug]/messages";function i(e){let{eventSlug:n,chatUserId:t}=e;return(0,r.J)((0,u.n)(s,{eventSlug:n}),{chatUserId:t})}},17512:function(e,n,t){"use strict";t.d(n,{eo:function(){return d},uh:function(){return l}});var r=t(55835),u=t(29406),s=t(43349),i=t(19855),o=t(73024),c=t(48045);let l="/messages";function d(){let{event:e}=(0,r.v)(),{community:n}=(0,u.Zk)();return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==e?void 0:e.slug)?(0,o.Y)({eventSlug:e.slug,...t}):(null==n?void 0:n.slug)?(0,c.U)({communitySlug:n.slug,...t}):function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.J)((0,i.n)(l),{chatUserId:e.chatUserId})}(t)}}}},function(e){e.O(0,[6618,8892,8869,2888,9774,179],function(){return e(e.s=11977)}),_N_E=e.O()}]);
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.