1(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[9046],{1296:(e,t,r)=>{var n=NaN,s="[object Symbol]",a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,i=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,m=u||d||Function("return this")(),f=Object.prototype.toString,h=Math.max,v=Math.min,p=function(){return m.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function x(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&f.call(e)==s}(e))return n;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var r=l.test(e);return r||i.test(e)?c(e.slice(2),r?2:8):o.test(e)?n:+e}e.exports=function(e,t,r){var n,s,a,o,l,i,c=0,u=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var r=n,a=s;return n=s=void 0,c=t,o=e.apply(a,r)}function E(e){var r=e-i;return void 0===i||r>=t||r<0||d&&e-c>=a}function b(){var e=p();if(E(e))return y(e);l=setTimeout(b,function(e){var r=t-(e-i);return d?v(r,a-(e-c)):r}(e))}function y(e){return l=void 0,m&&n?f(e):(n=s=void 0,o)}function w(){var e=p(),r=E(e);if(n=arguments,s=this,i=e,r){if(void 0===l)return function(e){return c=e,l=setTimeout(b,t),u?f(e):o}(i);if(d)return l=setTimeout(b,t),f(i)}return void 0===l&&(l=setTimeout(b,t)),o}return t=x(t)||0,g(r)&&(u=!!r.leading,a=(d="maxWait"in r)?h(x(r.maxWait)||0,t):a,m="trailing"in r?!!r.trailing:m),w.cancel=function(){void 0!==l&&clearTimeout(l),c=0,n=i=s=l=void 0},w.flush=function(){return void 0===l?o:y(p())},w}},6709:(e,t,r)=>{"use strict";r.d(t,{C:()=>l});var n=r(7294),s=r(1296),a=r.n(s),o=function(e,t,r){return e?a()(t,e,r):t};function l(e,t){var r=(0,n.useMemo)((function(){var e,r,n,s;return{offset:null!=(e=null==t?void 0:t.offset)?e:0,debounce:null!=(r=null==t?void 0:t.debounce)?r:200,debounceOptions:null!=(n=null==t?void 0:t.debounceOptions)?n:{leading:!0},triggerOnNoScroll:null!=(s=null==t?void 0:t.triggerOnNoScroll)&&s}}),[null==t?void 0:t.offset,null==t?void 0:t.debounce,null==t?void 0:t.debounceOptions,null==t?void 0:t.triggerOnNoScroll]),s=r.offset,a=r.triggerOnNoScroll,l=r.debounce,i=r.debounceOptions,c=(0,n.useMemo)((function(){return o(l,e,i)}),[l,e]),u=(0,n.useRef)(null),d=(0,n.useCallback)((function(){if(null!=u.current){var e=u.current,t=Math.round(e.scrollTop+e.clientHeight);Math.round(e.scrollHeight-s)<=t&&c()}else{var r=document.scrollingElement||document.documentElement,n=Math.round(r.scrollTop+window.innerHeight);Math.round(r.scrollHeight-s)<=n&&c()}}),[s,e,u.current]);return(0,n.useEffect)((function(){var e=u.current;return null!=e?e.addEventListener("scroll",d):window.addEventListener("scroll",d),a&&d(),function(){null!=e?e.removeEventListener("scroll",d):window.removeEventListener("scroll",d)}}),[d,l]),u}},7235:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(7294),s=r(3967),a=r.n(s);const o={xs:"min-w-[20px] min-h-[20px] w-[20px] h-[20px]",sm:"min-w-[30px] min-h-[30px] w-[30px] h-[30px]",base:"min-w-10 min-h-10 w-10 h-10"},l=({url:e,size:t="base",className:r,alt:s,...l})=>n.createElement("img",{...l,alt:s??"avatar",src:e,className:a()("rounded-full object-cover",o[t],r)})},8748:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(7294),s=r(3967),a=r.n(s);const o=(0,n.forwardRef)((({variant:e,size:t,children:r,onClick:s,className:o,...l},i)=>n.createElement("button",{ref:i,type:"button",onClick:s,className:a()("btn",{"btn-primary":"primary"===e||!e,"btn-secondary":"secondary"===e,"btn-outline":"outline"===e,"btn-edu":"edu"===e,link:"link"===e,"btn-small":"sm"===t,"btn-large":"lg"===t},o),...l},r)));o.defaultProps={onClick:()=>null};const l=o},409:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(7294),s=r(3967),a=r.n(s);const o=({title:e,children:t,className:r,href:s,...o})=>null===s?n.createElement(n.Fragment,null,t):n.createElement("a",{className:a()("link",r),title:e,target:"_blank",rel:"noopener noreferrer",href:s,...o},t)},6102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(7294),s=r(3967),a=r.n(s);const o="nf",l=({icon:e,className:t,...r})=>{const s=function(e){return e.startsWith(`${o}-`)?e:`${o}-${e}`}(e);return n.createElement("i",{...r,className:a()("nf-icon",s,t)})}},7500:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(7294),s=r(3967),a=r.n(s),o=r(8748),l=r(764),i=r(6102);
1const c=({title:e,subtitle:t,icon:r,imageContent:s,action:c,className:u})=>n.createElement("div",{className:a()("inset-0 flex flex-col flex-1 bg-gray-light dark:bg-black-bg items-center px-2 mt-20",u)},r&&n.createElement(i.Z,{icon:r,className:"text-[45px] nf-icon text-gray-icons dark:text-gray-icons-dm mb-2"}),s,n.createElement("h1",{className:"w-full text-center text-h3 mb-2"},e),t&&n.createElement("p",{className:"text-md text-gray-text mb-8 text-center"},t),"link"===c?.type&&n.createElement(l.Z,{href:c.href,variant:"primary",size:"lg",className:"mt-4",external:c.external},c.text),"button"===c?.type&&n.createElement(o.Z,{variant:"primary",size:"lg",onClick:c.onClick,className:"mt-4",disabled:c.disabled},c.text))},9667:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(7294),s=r(3967),a=r.n(s),o=r(5324);function l(e,t=.875){if(!e)return;const r=document.createElement("option");r.textContent=e.selectedOptions[0].textContent;const n=document.createElement("select");n.style.visibility="hidden",n.style.position="fixed",n.style.width="auto",n.style.fontSize=`${t}rem`,n.appendChild(r),e.after(n),e.style.width=+n.clientWidth+30+"px",n.remove()}const i=({variant:e="base",name:t,label:r,error:s,className:i,children:c,borderless:u,autoWidth:d,solidBackground:m,selectClassName:f,onChange:h,...v})=>{const[p,g]=(0,n.useState)(!1),x=(0,n.useRef)(null);return(0,n.useEffect)((()=>{d&&x.current&&l(x.current)}),[d]),n.createElement("div",{className:a()("flex flex-col",i)},r&&n.createElement("label",{className:"w-full mb-2 text-black text-md dark:text-gray whitespace-nowrap",htmlFor:v.id??t},r),n.createElement("div",{className:a()("relative rounded-sm select w-full flex items-center text-xl",u?"border-none hover:bg-gray-highlight dark:hover:bg-gray-highlight-dm mix-blend-multiply dark:mix-blend-normal":"border mb-2",s?"border-orange":"border-gray",{"border-orange":s&&!p,"border-gray dark:border-gray-border-dm":!s&&!p,"border-gray-text":p})},n.createElement("select",{ref:x,name:t,onFocus:()=>g(!0),onBlur:()=>g(!1),className:a()("appearance-none text-md w-full cursor-pointer p-8 ellipsify text-black dark:text-gray",{"bg-transparent":!m,"bg-white dark:bg-black-bg2":m,"pl-4 py-3":"base"===e,"pl-2.5 py-1.5":"sm"===e},f),onChange:e=>{"function"==typeof h&&h(e),d&&x.current&&l(x.current)},...v},c),n.createElement("i",{className:"absolute right-0 pr-1 text-black pointer-events-none nf-icon nf-chevron-down dark:text-gray"})),n.createElement(o.Z,{error:s}))};i.defaultProps={variant:"base"};const c=i},5324:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(7294);const s=({error:e})=>e?n.createElement("p",{className:"text-orange w-full flex flex-row items-baseline"},n.createElement("i",{className:"nf-icon nf-warning-sign mr-1"}),e):null},8553:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(7294),s=r(669);const a=e=>n.lazy((async()=>{const t=s.Z.hasBeenForceRefreshed;try{const t=await e();return s.Z.hasBeenForceRefreshed=!1,t}catch(e){if(!t)return s.Z.hasBeenForceRefreshed=!0,window.location.reload();throw e}}))},2540:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(7294),s=r(1072),a=r(9250),o=r(7500);const l=({titleKey:e})=>{const t=(0,a.lk)();console.error(t);const{t:r}=(0,s.$G)();return n.createElement(o.Z,{icon:"warning-sign",title:r(e??"errorUnexpected.title"),subtitle:n.createElement(s.cC,{i18nKey:"errorUnexpected.subtitle"},"Please try again. If the issue continues email",n.createElement("a",{href:"mailto:[email protected]",className:"orange-link"},"[email protected]"),"and include the URL of this page.")})}},6550:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>L,errorElement:()=>z});var n=r(7294),s=r(2540),a=r(6709),o=r(1072),l=r(409),i=r(1252);const c=({external_id:e,username:t})=>n.createElement(l.Z,{className:"underline-link mr-1 word-break-word",href:i.default.userProfilePath(e)},t);var u=r(1959);const d=({time:e})=>n.createElement("span",{className:"text-gray-text dark:text-gray-text-dm pl-2.5 text-xs whitespace-nowrap self-baseline"},(0,u.SY)(e,new Date)),m=({children:e,event:t,message:r})=>{const{t:s}=(0,o.$G)(),{action:a,actor:l,when:i}=t;return n.createElement("div",{className:"flex flex-col w-full"},n.createElement("div",{className:"ml-3 flex-1 flex flex-row items-center min-w-0"},n.createElement("span",{className:"flex-1"},l&&n.createElement(c,{external_id:l.external_id,username:l.username}),s(`event.${a}`),r),n.createElement(d,{time:i})),e)},f=({event:e})=>n.createElement(m,{event:e});var h=r(4082);function v(e){return"comment"===e?.object_type}const p=(0,r(8553).Z)((()=>
1Promise.all([r.e(6770),r.e(1659)]).then(r.bind(r,1659)))),g=({actionDetails:e})=>{return v(e)||(t=e,"post"===t?.object_type)?n.createElement("div",{className:"ml-3"},n.createElement(n.Suspense,{fallback:n.createElement(h.Z,null)},n.createElement(p,{markdown:e.text}))):null;var t},x=({event:e})=>{const{actionTarget:t,actionDetails:r}=e,s=t.forum?.group_id?i.default.viewGroupDiscussionPath(t.forum.group_id,t.forum.id,t.id):i.default.viewDiscussionPath(t.forum_id,t.id);return n.createElement(m,{event:e,message:n.createElement(l.Z,{className:"underline-link ml-1 word-break-word",href:s},t.name)},n.createElement(g,{actionDetails:r}))};var E=r(7235),b=r(7796);function y(e){let t=`/users/avatars/${e}`;const r=(0,b.EF)();return r&&(t+=`?${r}`),t}const w=({event:e})=>{const{actionTarget:t}=e;return n.createElement(m,{event:e,message:n.createElement(l.Z,{className:"underline-link mx-1 relative pl-6 word-break-word",href:i.default.userProfilePath(t.external_id)},n.createElement(E.Z,{url:y(t.external_id),size:"xs",className:"absolute left-0 top-0",alt:t.username}),t.username)})},N=({event:e})=>{const{t}=(0,o.$G)(),{action:r,actionDetails:s}=e;return"rating"!==s?.object_type?null:"ratedScore"===r||"ratedTitle"===r?n.createElement(n.Fragment,null,t("event.withStars",{count:s.rating})):"yourScoreRated"===r||"yourTitleRated"===r?n.createElement(n.Fragment,null,t("event.wasRated",{count:s.rating})):null},S=({event:e})=>{const{actionTarget:t}=e;return n.createElement(m,{event:e,message:n.createElement(n.Fragment,null,n.createElement(l.Z,{className:"underline-link mx-1",href:i.default.editorPath(t.external_id)},t.title),n.createElement(N,{event:e}))})};var T=r(3967),_=r.n(T);const k=({event:e})=>{const{t}=(0,o.$G)(),{action:r,actionTarget:s,actionDetails:a}=e;return n.createElement(m,{event:e,message:n.createElement(n.Fragment,null,n.createElement((()=>n.createElement(l.Z,{className:_()("underline-link",["sharedScoreWithUser","sharedScoreWithYou"].includes(r)?"mx-1":"ml-1"),href:i.default.editorPath(s.external_id)},s.title)),null),n.createElement((()=>{return"sharedScoreWithUser"!==r||(e=a,"user"!==e?.object_type)?null:n.createElement(n.Fragment,null,t("event.with"),n.createElement(l.Z,{className:"underline-link mr-1 flex flex-row items-center word-break-word",href:i.default.userProfilePath(a.external_id)},n.createElement("div",{className:"w-[20px] h-[20px] inline-block mx-1"},n.createElement("img",{src:y(a.external_id),alt:a.username})),a.username));var e}),null),"sharedScoreWithYou"===r&&t("event.withYou"))},v(a)&&n.createElement(g,{actionDetails:a}))},Z=({title:e})=>n.createElement(l.Z,{className:"underline-link mx-1 word-break-word",href:i.default.musicTitlePath(e.uuid)},e.title),R=({event:e})=>{const{actionTarget:t,actionDetails:r}=e;return n.createElement(m,{event:e,message:n.createElement(Z,{title:t})},n.createElement(g,{actionDetails:r}))},C=({event:e})=>{const{actionTarget:t}=e;return n.createElement(m,{event:e,message:n.createElement(n.Fragment,null,n.createElement(Z,{title:t}),n.createElement(N,{event:e}))})};var I=r(6102);const P=(0,n.memo)((({event:e})=>{const{actor:t,action:r}=e,s=function(e){return!!e.action&&["ratedScore","yourScoreRated","ratedTitle","yourTitleRated"].includes(e.action)}(e);if(!s&&!t?.identified)return null;const a=function(e){switch(e){case"favedYourScore":case"favedScore":case"unfavedYourScore":case"unfavedScore":case"viewedYourScore":case"viewedScore":case"favedTitle":case"favedYourTitle":case"unfavedTitle":case"unfavedYourTitle":return"favorite-solid";case"copiedYourScore":case"copiedScore":case"commentedYourScore":case"commentedScore":case"postedToDiscussion":case"commentedTitle":case"commentedYourTitle":case"copiedTitle":case"copiedYourTitle":return"comment";case"followedYou":case"followedUser":case"unfollowedYou":case"unfollowedUser":return"more-horz";case"sharedScoreWithYou":case"sharedScoreWithUser":case"publishedScore":return"share";case"publishedCommunityTitle":case"publishedUpdateCommunityTitle":case"unpublishedCommunityTitle":return"music-sm";case"ratedScore":case"yourScoreRated":case"ratedTitle":case"yourTitleRated":return"star";default:return null}}(r);return n.createElement("div",{className:"relative mb-1 p-2 bg-white dark:bg-black-bg2 rounded flex flex-row items-start hover:bg-opacity-60 dark:hover:bg-opacity-60 min-w-0"},n.createElement("div",{className:"flex flex-row items-center"},n.createElement(l.Z,{href:t?i.default.userProfilePath(t.external_id):null,"aria-label":t?.username??"anonymous"},n.createElement(E.Z,{url:y(t?.external_id??"default"),size:"sm",className:"mr-2"})),a&&n.createElement(I.Z,{icon:a,className:"text-gray-icons dark:text-gray-icons-dm text-lg"})),n.createElement("div",{className:"w-full mt-1.5 min-w-0"},n.createElement(B,{event:e})))})),B=({event:e})=>{switch(e.action){case"favedYourScore":case"commentedYourScore":case"sharedScoreWithYou":case"sharedScoreWithUser":case"favedScore":case"commentedScore":case"publishedScore":case"unfavedScore":case"unfavedYourScore":case"copiedYourScore":case"copiedScore":case"viewedYourScore":case"viewedScore":return n.createElement(k,{event:e});case"postedToDiscussion":return n.createElement(x,{event:e});case"followedUser":case"unfollowedUser":return n.createElement(w,{event:e});case"ratedScore":case"yourScoreRated":return n.createElement(S,{event:e});case"publishedCommunityTitle":case"publishedUpdateCommunityTitle":case"unpublishedCommunityTitle":case"favedTitle":case"favedYourTitle":case"unfavedTitle":case"unfavedYourTitle":case"commentedTitle":case"commentedYourTitle":case"copiedTitle":case"copiedYourTitle":return n.createElement(R,{event:e});case"ratedTitle":case"yourTitleRated":return n.createElement(C,{event:e});default:return n.createElement(f,{event:e})}};var Y=r(7500),D=r(9667),M=r(1972),$=r(8271),F=r(797),O=r(5154);class j{sourceName;options;eventsRetrieved;events;nextBeforeId;nextCallback;stopped;constructor(e,t){this.sourceName=e,this.options=t??{},this.eventsRetrieved=!1,this.events=null,this.nextBeforeId=null,this.nextCallback=null,this.stopped=!1,t?.initialSourceEvents&&this.storeReceivedEvents(t.initialSourceEvents)}stop(){this.stopped=!0}async next(){if(this.stopped)return null;if(!this.eventsRetrieved)return this.getMoreEvents();if(this.events&&this.events.length>0){const e=this.events.shift();return e?.privatelyVisible&&!this.options.includePrivatelyVisibleEvents?this.next():e??null}return this.nextBeforeId?this.getMoreEvents():null}async getMoreEvents(){let e=null;if("function"==typeof this.options.getMoreEventsCall)e=await this.options.getMoreEventsCall(this.sourceName,20,this.nextBeforeId);
1else{const[t]=await O.ZP.post(F.ZP.activityStream.sourceEventsPath(),{source_name:this.sourceName,limit:20,before_id:this.nextBeforeId});t?.data&&(e=t.data)}return e&&this.storeReceivedEvents(e),this.next()}storeReceivedEvents(e){this.eventsRetrieved=!0,this.nextBeforeId=e.next_before_id,this.events=e.before_events}}class U{options;sources;sourcesByName;sourcesRetrieved;completedSourcesByName;eventsById;sourcesNextBeforeId;sourcesNextAfterId;oldestReturnedEventId;nextCallback;sourceToRefresh;personalSourceLoaded;stopped;constructor(e){this.options=e??{},this.sources=[],this.sourcesByName={},this.sourcesRetrieved=!1,this.completedSourcesByName={},this.eventsById={},this.sourcesNextBeforeId=null,this.sourcesNextAfterId=null,this.oldestReturnedEventId=null,this.nextCallback=null,this.sourceToRefresh=null,this.personalSourceLoaded=!1,this.stopped=!1}stop(){this.stopped=!0}async next(){if(this.stopped)return null;if(this.options.personalSource&&!this.personalSourceLoaded)return this.loadPersonalSource();if(this.sourceToRefresh){const e=this.sourceToRefresh;return this.sourceToRefresh=null,this.prepareNextEvent(e)}if(!this.sourcesRetrieved)return this.retrieveSources();if(this.sources.length>0){const e=this.sources[0],{nextEvent:t}=e;return t?(this.sourceToRefresh=e,this.isValidEvent(t)?(this.oldestReturnedEventId=t.event_id,this.eventsById[t.event_id]=t,t):this.next()):this.prepareNextEvent(e)}return this.sourcesNextBeforeId?this.retrieveSources():null}async loadPersonalSource(){if(!this.options.personalSource)return null;this.personalSourceLoaded=!0;const e=this.addSource({source_name:this.options.personalSource});return e?this.prepareNextEvent(e):null}async retrieveSources(){let e=null;if("function"==typeof this.options.getMoreSourcesCall)e=await this.options.getMoreSourcesCall(this.sourcesNextBeforeId,this.sourcesNextAfterId,10);else{const[t]=await O.ZP.post(F.ZP.activityStream.sourcesPath(),{before_id:this.sourcesNextBeforeId,after_id:this.sourcesNextAfterId,limit:10});t?.data&&(e=t.data)}return e?this.sourcesReceived(e):null}async sourcesReceived(e){if(this.sourcesNextBeforeId=e.next_before_id,this.sourcesNextAfterId=e.next_after_id,this.sourcesRetrieved=!0,!e.next_before_id)return 0===this.sources.length?null:this.next();let t=[];e.after_sources&&(t=t.concat(e.after_sources)),e.before_sources&&(t=t.concat(e.before_sources));for(const e of t)this.addSource(e);return this.sortSources()}async prepareNextEvent(e){const t=await e.eventsIterator.next();return this.nextEventReceived(t,e)}async nextEventReceived(e,t){return e?(t.nextEvent=e,t.nextEventId=e.event_id,this.sortSources()):this.removeSource(t)}addSource(e){let t=null;return this.sourcesByName[e.source_name]||this.completedSourcesByName[e.source_name]||(t=new W(e.source_name,e.last_activity_event_id,e.source_events,this.options),this.sources.push(t),this.sourcesByName[t.sourceName]=t),t}async removeSource(e){for(let t=0;t<this.sources.length;t++)if(this.sources[t]===e){this.sources.splice(t,1);break}return this.sourcesByName[e.sourceName]=null,this.completedSourcesByName[e.sourceName]=e,this.sortSources()}async sortSources(){return this.sources.sort(((e,t)=>e.nextEventId>t.nextEventId?-1:e.nextEventId<t.nextEventId?1:0)),this.sources.length>0&&this.sourcesNextBeforeId&&this.sources[0].nextEventId<this.sourcesNextBeforeId?this.retrieveSources():this.next()}isValidEvent(e){return!(this.oldestReturnedEventId&&e.event_id>this.oldestReturnedEventId)&&!this.eventsById[e.event_id]}}class W{sourceName;eventsIterator;nextEventId;nextEvent;constructor(e,t,r,n){this.sourceName=e,this.eventsIterator=new j(e,{initialSourceEvents:r,getMoreEventsCall:n?.getMoreEventsCall?.bind(this)}),this.nextEvent=null,this.nextEventId=t??""}}const L=()=>{const e=(0,$.kP)(),{t}=(0,o.$G)();(0,M.Tt)(t("titles.news"));const[r,s]=(0,n.useState)([]),[l,i]=(0,n.useState)("allNews"),[c,u]=(0,n.use
1State)(),[d,m]=(0,n.useState)(!1),[f,v]=(0,n.useState)(!1),p=async()=>{if(d||!c)return;m(!0);const e=r.length+20,t=[];let n;for(;(n=await c.next())&&(t.push(n),!(r.length+t.length>=e)););s((e=>[...e,...t])),m(!1),n||v(!1)},g=()=>{s([]),c&&c.stop(),u(function(e,t){switch(e){case"youNews":return new j(`personal_user:${t}`);case"followNews":return new U;default:return new U({personalSource:`personal_user:${t}`})}}(l,e.current_user?.external_id)),m(!1),v(!0)},x=(0,a.C)((async()=>{f&&!d&&await p()}),{triggerOnNoScroll:!0});return(0,n.useEffect)((()=>{g()}),[l]),(0,n.useEffect)((()=>(p(),()=>{c?.stop()})),[c]),n.createElement(n.Fragment,null,n.createElement("div",{className:"flex flex-row justify-end w-full h-16 items-center"},n.createElement(D.Z,{autoWidth:!0,"aria-label":"Filter by activity type",variant:"sm",name:"filter",borderless:!0,onChange:e=>i(e.target.value),className:"text-base",value:l},n.createElement("option",{value:"allNews"},t("filter.allNews")),n.createElement("option",{value:"youNews"},t("filter.youNews")),n.createElement("option",{value:"followNews"},t("filter.followNews")))),n.createElement("div",{className:"flex flex-col flex-1 overflow-y-auto mb-4",ref:x},0===r.length&&!d&&!f&&n.createElement(Y.Z,{title:t("content.empty.activity.title"),icon:"bell"}),r.map((e=>n.createElement(P,{event:e,key:e.event_id}))),(d||f)&&n.createElement(h.Z,null)))};L.displayName="LazyActivityPage";const z=n.createElement(s.Z,{titleKey:"messages.activityLoadingFailed"})},1972:(e,t,r)=>{"use strict";r.d(t,{Tt:()=>u,ZP:()=>c});var n=r(7294),s=r(8553),a=r(4904),o=r(7796);const l=(0,s.Z)((()=>r.e(6727).then(r.bind(r,4593)))),i=(0,n.createContext)({pageTitle:null,setPageTitle:()=>null}),c=({children:e,initialTitle:t})=>{const{pageData:r}=(0,a.e0)(),[s,o]=(0,n.useState)(t);return(0,n.useEffect)((()=>{t&&o(t)}),[t]),n.createElement(i.Provider,{value:{pageTitle:s??r?.page_title??null,setPageTitle:o}},n.createElement(n.Suspense,{fallback:null},n.createElement(l,null,n.createElement("title",null,s))),e)},u=(e,t)=>{const{setPageTitle:r}=(0,n.useContext)(i);(0,n.useEffect)((()=>{r((0,o.in)(e))}),t??[])}},1959:(e,t,r)=>{"use strict";r.d(t,{SY:()=>d,X_:()=>m,p6:()=>u});var n=r(7155);const s=864e5,a=Math.pow(10,10);function o(e){if(null==e)return new Date;switch(typeof e){case"number":return new Date(e<a?1e3*e:e);case"string":return new Date(e)}return e}function l(e,t,r={}){const s=`date.format.${t??"default"}`,a=r.monthLong?"date.monthLong.":"date.month.";let o=e.getFullYear();o<1900&&(o+=1900);const l=e.getMonth()+1,i=n.ZP.t(a+e.getMonth()),c=e.getDate(),u=n.ZP.t(`date.day.${e.getDay()}`),d=e.getHours();let m=e.getHours()%12;0===m&&(m=12);let f=e.getMinutes();f<10&&(f="0"+f);const h=n.ZP.t(d>=12?"time.pm":"time.am");return n.ZP.t(s,{d:c,mo:l,month:i,y:o,day:u,hh:d,h:m,m:f,amPm:h})}function i(e,t){let r,s=Math.floor((e.getTime()-t.getTime())/1e3);if(s<60)r="seconds";else if((s/=60)<60)r="minutes";else if((s/=60)<24)r="hours";else{if(!((s/=24)<30))return l(e);r="days"}return n.ZP.t(`time.${r}.fromNow`,{count:Math.floor(s)})}function c(e,t){let r="time_long_ago";if(t.getTime()-e.getDate()<6*s)switch(t.getDay()-e.getDay()){case 0:r="time_today";break;case 1:case-6:r="time_yesterday";break;default:r="time_days_ago"}else e.getFullYear()===t.getFullYear()&&(r="time_this_year");return l(e,r)}function u(e,t={}){return l(function(e){let t=o(e);return t.getTime()%s==0&&(t=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())),t}(e),null,t)}function d(e,t=new Date){const r=o(e),n=o(t);return(r.getTime()>n.getTime()?i:c)(r,n)}function m(e){return n.ZP.t("date.format.dayAndMonth",{mo:n.ZP.t(`date.month.${e.getMonth()}`),d:e.getDate()})}}}]); 2//# sourceMappingURL=http://localhost:5309/sourcemaps/js/activity-page.d3139fec82c6a14667c6.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.