1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{n as t,t as n}from"./jsx-runtime-D3F0h15I.js";import{a as r,c as i,s as a}from"./react-intl-CZJDGRhA.js";import{B as o,C as s,I as c,N as l,O as u,c as d,k as f,u as p,v as m,x as h}from"./initial_state-BDMmxUUh.js";import{B as g,Q as _,b as ee,c as v,et as te,ot as ne,pt as re,tt as y,ut as ie}from"./poll-BJat-Emz.js";import{$n as ae,_a as b,cn as x,ea as S,j as C,nn as w,pn as oe,rn as se}from"./render-Bh4OKCq5.js";import{c as T,u as ce}from"./react-router-D0L-bsDO.js";import{E as le}from"./accounts-C6OlpGsI.js";import{n as ue,o as E,s as D}from"./typed_functions-DH20Nxd1.js";import{n as O,r as de}from"./short_number-BgjDzBct.js";import{$t as fe,Xt as pe,Yt as k,Zt as A,en as j,nn as M,tn as N}from"./collection_preview_card-BkcyIskZ.js";import{t as P}from"./classnames-CfLRLWYq.js";import{s as F}from"./column-D3YBrDFe.js";import{t as I}from"./useBreakpoint-CcBSLRU4.js";import{t as L}from"./info-BnsNWy2K.js";import{t as R}from"./home-fill-CyA9QjcE.js";import{n as z,r as B,t as me}from"./settings-DUpUVy-q.js";import{a as he,i as ge}from"./notifications-DydleJA3.js";import{t as _e}from"./notifications-CQvvwL6U.js";import{n as ve,t as V}from"./icon_with_badge-DSQLPzVB.js";import{n as ye}from"./use-gesture-react.esm-B4rcD9HS.js";import{t as be}from"./bookmarks-fill-zMbuP00q.js";import{t as xe}from"./person_add-fill-Cwfwq4e9.js";import{t as Se}from"./person_add-DLMe3gH4.js";import{t as Ce}from"./star-fill-D2i9oqk9.js";import{t as we}from"./star-BiflUtY8.js";import{t as Te}from"./trending_up-vWbZg_RD.js";import{t as Ee}from"./account-BjlM11zC.js";import{t as De}from"./search-B8p7KPau.js";import{t as Oe}from"./index.module-y4HS80Z2.js";import{t as H}from"./list_alt-CBXV55Gk.js";import{t as ke}from"./lists-BZw4hOtw.js";import{n as Ae,t as je}from"./keyboard_arrow_up-B9LNvMdp.js";import{r as Me}from"./hashtag-COJNf9k1.js";var U=e(P()),W=e(t()),G=n(),Ne=e=>(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,G.jsx)(`path`,{d:`M160-80v-560q0-33 23.5-56.5T240-720h320q33 0 56.5 23.5T640-640v560L400-200 160-80Zm80-121 160-86 160 86v-439H240v439Zm480-39v-560H280v-80h440q33 0 56.5 23.5T800-800v560h-80ZM240-640h320-320Z`})}),K=({icon:e,activeIcon:t,iconComponent:n,activeIconComponent:r,text:i,to:a,href:o,method:s,badge:c,transparent:l,...u})=>{let d=ce((typeof a==`string`?a:a?.pathname)??``),f=(0,U.default)(`column-link`,{"column-link--transparent":l}),p=c===void 0?null:(0,G.jsx)(`span`,{className:`column-link__badge`,children:c}),m=n?(0,G.jsx)(y,{id:typeof e==`string`?e:``,icon:n,className:`column-link__icon`}):e,h=t??(r?(0,G.jsx)(y,{id:typeof e==`string`?e:``,icon:r,className:`column-link__icon`}):m),g=!!d;return o?(0,G.jsxs)(`a`,{href:o,className:f,"data-method":s,...u,children:[g?h:m,(0,G.jsx)(`span`,{children:i}),p]}):a?(0,G.jsxs)(de,{to:a,className:f,...u,children:[g?h:m,(0,G.jsx)(`span`,{children:i}),p]}):null},Pe=e=>(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 20 20`,...e,children:(0,G.jsx)(`path`,{fill:`currentColor`,d:`M9.2 8.525c.35 0 .646-.12.888-.363.241-.241.362-.537.362-.887s-.12-.646-.362-.888a1.207 1.207 0 0 0-.888-.362c-.35 0-.646.12-.887.362a1.207 1.207 0 0 0-.363.888c0 .35.12.646.362.887.242.242.538.363.888.363ZM18.525 20c-.7 0-1.642-.292-2.825-.875-1.183-.583-2.45-1.375-3.8-2.375a7.564 7.564 0 0 1-1.95.25C8 17 6.35 16.325 5 14.975c-1.35-1.35-2.025-3-2.025-4.95 0-.333.025-.667.075-1a9.18 9.18 0 0 1 .2-.975C2.267 6.7 1.48 5.437.888 4.262.296 3.089 0 2.15 0 1.45 0 1 .125.646.375.387.625.13.967 0 1.4 0c.433 0 .996.15 1.688.45.691.3 1.645.808 2.862 1.525-.35.183-.675.375-.975.575-.3.2-.592.417-.875.65a9.777 9.777 0 0 0-.925-.475c-.3-.133-.617-.275-.95-.425.3.633.62 1.25.962 1.85.342.6.705 1.192 1.088 1.775A6.775 6.775 0 0 1 6.7 3.8c.983-.517 2.067-.775 3.25-.775 1.95 0 3.604.68 4.963 2.038 1.358 1.358 2.037 3.012 2.037 4.962 0 1.183-.262 2.267-.787 3.25a6.89 6.89 0 0 1-2.138 2.425c.583.383 1.18.75 1.787 1.1.609.35 1.23.667 1.863.95-.133-.317-.27-.625-.413-.925-.141-.3-.304-.608-.487-.925.25-.283.475-.583.675-.9.2-.317.383-.642.55-.975.767 1.3 1.288 2.27 1.563 2.912.274.642.412 1.18.412 1.613 0 .483-.133.846-.4 1.087-.267.242-.617.363-1.05.363ZM11.7 13.025c.283 0 .52-.096.713-.287a.968.968 0 0 0 .287-.713.968.968 0 0 0-.287-.713.968.968 0 0 0-.713-.287.968.968 0 0 0-.712.287.968.968 0 0 0-.288.713c0 .283.096.52.288.713.191.191.429.287.712.287Zm1.25-3.5a.728.728 0 0 0 .75-.75.728.728 0 0 0-.75-.75.728.728 0 0 0-.75.75.728.728 0 0 0 .75.75Zm-3.275 5.45a45.451 45.451 0 0 1-2.45-2.275 39.166 39.166 0 0 1-2.25-2.45 4.944 4.944 0 0 0 1.45 3.275c.433.433.925.775 1.475 1.025.55.25 1.142.392 1.775.425Zm2.575-.525c.8-.417 1.45-1.02 1.95-1.813.5-.791.75-1.67.75-2.637 0-1.383-.487-2.558-1.462-3.525-.976-.967-2.155-1.45-3.538-1.45-.967 0-1.842.25-2.625.75a5.052 5.052 0 0 0-1.8 1.95 33.58 33.58 0 0 0 3.125 3.6 33.583 33.583 0 0 0 3.6 3.125Z`})}),Fe=ue([e=>e.modal.getIn([`stack`,0,`modalType`])],e=>e===`ANNUAL_REPORT`),Ie=()=>{let{state:e,year:t}=D(e=>e.annualReport),n=D(Fe),i=E(),a=(0,W.useCallback)(()=>{i(b({modalType:`ANNUAL_REPORT`,modalProps:{}}))},[i]);return!t||!e||e===`ineligible`?null:(0,G.jsxs)(`button`,{type:`button`,className:(0,U.default)(`column-link column-link--transparent`,{active:n}),onClick:a,children:[(0,G.jsx)(y,{icon:Pe,id:`wrapstodon-planet`,width:`24`,height:`24`}),(0,G.jsxs)(`span`,{children:[`Wrapstodon `,t]}),(0,G.jsx)(`span`,{className:(0,U.default)(`column-link__badge`,Oe.navItemBadge),children:(0,G.jsx)(r,{id:`annual_report.nav_item.badge`,defaultMessage:`New`})})]})},Le=()=>{let e=D(e=>d?e.accounts.get(d):void 0),t=D(e=>s?e.accounts.get(s):void 0),n=E(),i=(0,W.useCallback)(e=>(e.preventDefault(),e.stopPropagation(),n(b({modalType:`CONFIRM_LOG_OUT`,modalProps:{}})),!1),[n]),a=(0,G.jsxs)(O,{to:`/@${e?.acct}`,children:[e?.acct,`@`,p]});return(0,G.jsxs)(`div`,{className:`sign-in-banner`,children:[(0,G.jsx)(`p`,{children:t?(0,G.jsx)(r,{id:`moved_to_account_banner.text`,defaultMessage:`Your account {disabledAccount} is currently disabled because you moved to {movedToAccount}.`,values:{disabledAccount:a,movedToAccount:(0,G.jsx)(O,{to:`/@${t.acct}`,children:t.acct.includes(`@`)?t.acct:`${t.acct}@${p}`})}}):(0,G.jsx)(r,{id:`disabled_account_banner.text`,defaultMessage:`Your account {disabledAccount} is currently disabled.`,values:{disabledAccount:a}})}),(0,G.jsx)(`a`,{href:`/auth/edit`,className:`button button--block`,children:(0,G.jsx)(r,{id:`disabled_account_banner.account_settings`,defaultMessage:`Account settings`})}),(0,G.jsx)(`button`,{type:`button`,className:`button button--block button-secondary`,onClick:i,children:(0,G.jsx)(r,{id:`confirmations.logout.confirm`,defaultMessage:`Log out`})})]})},q=e=>(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,G.jsx)(`path`,{d:`M348.5-291.5Q360-303 360-320t-11.5-28.5Q337-360 320-360t-28.5 11.5Q280-337 280-320t11.5 28.5Q303-280 320-280t28.5-11.5Zm0-160Q360-463 360-480t-11.5-28.5Q337-520 320-520t-28.5 11.5Q280-497 280-480t11.5 28.5Q303-440 320-440t28.5-11.5Zm0-160Q360-623 360-640t-11.5-28.5Q337-680 320-680t-28.5 11.5Q280-657 280-640t11.5 28.5Q303-600 320-600t28.5-11.5ZM440-280h240v-80H440v80Zm0-160h240v-80H440v80Zm0-160h240v-80H440v80ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z`})}),Re=({children:e,to:t,icon:n,iconComponent:r,activeIconComponent:i,title:a,c
1ollapseTitle:o,expandTitle:s,loading:c})=>{let[l,u]=(0,W.useState)(!1),d=(0,W.useId)(),f=(0,W.useCallback)(()=>{u(e=>!e)},[u]);return(0,G.jsxs)(`li`,{className:`navigation-panel__list-panel`,children:[(0,G.jsxs)(`div`,{className:`navigation-panel__list-panel__header`,children:[(0,G.jsx)(K,{transparent:!0,to:t,icon:n,iconComponent:r,activeIconComponent:i,text:a,id:`${d}-title`}),(c||e.length>0)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`navigation-panel__list-panel__header__sep`}),(0,G.jsx)(te,{icon:`down`,expanded:l,iconComponent:c?ne:l?je:Ae,title:l?o:s,onClick:f,ariaControls:`${d}-content`})]})]}),e.length>0&&l&&(0,G.jsx)(`div`,{className:`navigation-panel__list-panel__items`,role:`region`,id:`${d}-content`,"aria-labelledby":`${d}-title`,children:e})]})},J=a({lists:{id:`navigation_bar.lists`,defaultMessage:`Lists`},expand:{id:`navigation_panel.expand_lists`,defaultMessage:`Expand list menu`},collapse:{id:`navigation_panel.collapse_lists`,defaultMessage:`Collapse list menu`}}),Y=()=>{let e=i(),t=E(),n=D(e=>ke(e)),[r,a]=(0,W.useState)(!0);return(0,W.useEffect)(()=>{t(oe()).then(()=>(a(!1),``))},[t]),(0,G.jsx)(Re,{to:`/lists`,icon:`list-ul`,iconComponent:H,activeIconComponent:q,title:e.formatMessage(J.lists),collapseTitle:e.formatMessage(J.collapse),expandTitle:e.formatMessage(J.expand),loading:r,children:n.map(e=>(0,G.jsx)(K,{icon:`list-ul`,iconComponent:H,activeIconComponent:q,text:e.title,to:`/lists/${e.id}`,transparent:!0},e.id))})},X=a({collections:{id:`navigation_bar.collections`,defaultMessage:`Collections`},followedTags:{id:`navigation_bar.followed_tags`,defaultMessage:`Followed hashtags`},blocks:{id:`navigation_bar.blocks`,defaultMessage:`Blocked users`},domainBlocks:{id:`navigation_bar.domain_blocks`,defaultMessage:`Blocked domains`},mutes:{id:`navigation_bar.mutes`,defaultMessage:`Muted users`},filters:{id:`navigation_bar.filters`,defaultMessage:`Muted words`},administration:{id:`navigation_bar.administration`,defaultMessage:`Administration`},moderation:{id:`navigation_bar.moderation`,defaultMessage:`Moderation`},logout:{id:`navigation_bar.logout`,defaultMessage:`Logout`},automatedDeletion:{id:`navigation_bar.automated_deletion`,defaultMessage:`Automated post deleti
1on`},accountSettings:{id:`navigation_bar.account_settings`,defaultMessage:`Password and security`},importExport:{id:`navigation_bar.import_export`,defaultMessage:`Import and export`},privacyAndReach:{id:`navigation_bar.privacy_and_reach`,defaultMessage:`Privacy and reach`}}),ze=()=>{let e=i(),{permissions:t}=_(),n=E(),a=g(h),o=(0,W.useMemo)(()=>{let r=[...a?[{to:`/@${a.acct}/collections`,text:e.formatMessage(X.collections)}]:[],{to:`/followed_tags`,text:e.formatMessage(X.followedTags)},null,{href:`/filters`,text:e.formatMessage(X.filters)},{to:`/mutes`,text:e.formatMessage(X.mutes)},{to:`/blocks`,text:e.formatMessage(X.blocks)},{to:`/domain_blocks`,text:e.formatMessage(X.domainBlocks)},null,{href:`/settings/privacy`,text:e.formatMessage(X.privacyAndReach)},{href:`/statuses_cleanup`,text:e.formatMessage(X.automatedDeletion)},{href:`/auth/edit`,text:e.formatMessage(X.accountSettings)},{href:`/settings/export`,text:e.formatMessage(X.importExport)}];return k(t)&&r.push(null,{href:`/admin/reports`,text:e.formatMessage(X.moderation)}),pe(t)&&r.push({href:`/admin/dashboard`,text:e.formatMessage(X.administration)}),r.push(null,{text:e.formatMessage(X.logout),action:()=>{n(b({modalType:`CONFIRM_LOG_OUT`,modalProps:{}}))}}),r},[e,n,t,a]);return(0,G.jsx)(ee,{items:o,placement:`bottom-start`,children:(0,G.jsxs)(`button`,{className:`column-link column-link--transparent`,type:`button`,children:[(0,G.jsx)(y,{id:``,icon:fe,className:`column-link__icon`}),(0,G.jsx)(r,{id:`navigation_bar.more`,defaultMessage:`More`})]})})},Be=()=>{let e=E(),t=(0,W.useCallback)(()=>e(b({modalType:`CLOSED_REGISTRATIONS`,modalProps:{}})),[e]),n,i=D(e=>e.server.server.item?.registrations.url??`/auth/sign_up`);return c?(0,G.jsxs)(`div`,{className:`sign-in-banner`,children:[(0,G.jsx)(`p`,{children:(0,G.jsx)(`strong`,{children:(0,G.jsx)(r,{id:`sign_in_banner.mastodon_is`,defaultMessage:`Mastodon is the best way to keep up with what's happening.`})})}),(0,G.jsx)(`p`,{children:(0,G.jsx)(r,{id:`sign_in_banner.follow_anyone`,defaultMessage:`Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.`})}),(0,G.jsx)(`a`,{href:c,"data-method":`post`,className:`button button--block button-secondary`,children:(0,G.jsx)(r,{id:`sign_in_banner.sso_redirect`,defaultMessage:`Login or Register`})})]}):(n=u?(0,G.jsx)(`a`,{href:i,className:`button button--block`,children:(0,G.jsx)(r,{id:`sign_in_banner.create_account`,defaultMessage:`Create account`})}):(0,G.jsx)(`button`,{className:`button button--block`,onClick:t,type:`button`,children:(0,G.jsx)(r,{id:`sign_in_banner.create_account`,defaultMessage:`Create account`})}),(0,G.jsxs)(`div`,{className:`sign-in-banner`,children:[(0,G.jsx)(`p`,{children:(0,G.jsx)(`strong`,{children:(0,G.jsx)(r,{id:`sign_in_banner.mastodon_is`,defaultMessage:`Mastodon is the best way to keep up with what's happening.`})})}),(0,G.jsx)(`p`,{children:(0,G.jsx)(r,{id:`sign_in_banner.follow_anyone`,defaultMessage:`Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.`})}),n,(0,G.jsx)(`a`,{href:`/auth/sign_in`,className:`button button--block button-secondary`,children:(0,G.jsx)(r,{id:`sign_in_banner.sign_in`,defaultMessage:`Login`})})]}))},Ve=()=>{let e=E(),t=D(e=>e.trends.getIn([`tags`,`items`]));return(0,W.useEffect)(()=>{e(C());let t=setInterval(()=>{e(C())},9e5);return()=>{clearInterval(t)}},[e]),!l||t.isEmpty()?null:(0,G.jsx)(`aside`,{className:`navigation-panel__portal`,children:(0,G.jsxs)(`div`,{className:`getting-started__trends`,children:[(0,G.jsx)(`h2`,{className:`getting-started__trends-heading`,children:(0,G.jsx)(O,{to:`/explore/tags`,children:(0,G.jsx)(r,{id:`trends.trending_now`,defaultMessage:`Trending now`})})}),t.take(4).map(e=>(0,G.jsx)(Me,{hashtag:e},e.get(`name`)))]})})},Z=a({home:{id:`tabs_bar.home`,defaultMessage:`Home`},forYou:{id:`column.for_you`,defaultMessage:`For you`},notifications:{id:`tabs_bar.notifications`,defaultMessage:`Notifications`},explore:{id:`explore.title`,defaultMessage:`Trending`},firehose:{id:`column.firehose`,defaultMessage:`Live feeds`},firehose_singular:{id:`column.firehose_singular`,defaultMessage:`Live feed`},main:{id:`navigation_bar.main`,defaultMessage:`Main`},direct:{id:`navigation_bar.direct`,defaultMessage:`Private mentions`},favourites:{id:`navigation_bar.favourites`,defaultMessage:`Favorites`},bookmarks:{id:`navigation_bar.bookmarks`,defaultMessage:`Bookmarks`},preferences:{id:`navigation_bar.preferences`,defaultMessage:`Preferences`},followsAndFollowers:{id:`navigation_bar.follows_and_followers`,defaultMessage:`Follows and followers`},about:{id:`navigation_bar.about`,defaultMessage:`About`},search:{id:`navigation_bar.search`,defaultMessage:`Search`},searchTrends:{id:`navigation_bar.search_trends`,defaultMessage:`Search / Trending`},advancedInterface:{id:`navigation_bar.advanced_interface`,defaultMessage:`Open in advanced web interface`},openedInClassicInterface:{id:`navigation_bar.opened_in_classic_interface`,defaultMessage:`Posts, accounts, and other specific pages are opened by default in the classic web interface.`},followRequests:{id:`navigation_bar.follow_requests`,defaultMessage:`Follow requests`},logout:{id:`navigation_bar.logout`,defaultMessage:`Logout`},compose:{id:`tabs_bar.publish`,defaultMessage:`New Post`}}),He=()=>{let e=D(ge),t=i();return(0,G.jsx)(K,{transparent:!0,to:`/notifications`,icon:(0,G.jsx)(V,{id:`bell`,icon:_e,count:e,className:`column-link__icon`}),activeIcon:(0,G.jsx)(V,{id:`bell`,icon:he,count:e,className:`column-link__icon`}),text:t.formatMessage(Z.notifications)},`notifications`)},Ue=()=>{let e=i(),t=D(e=>e.user_lists.getIn([`follow_requests`,`items`])?.size??0),n=E();return(0,W.useEffect)(()=>
1{n(le())},[n]),t===0?null:(0,G.jsx)(K,{transparent:!0,to:`/follow_requests`,icon:(0,G.jsx)(V,{id:`user-plus`,icon:Se,count:t,className:`column-link__icon`}),activeIcon:(0,G.jsx)(V,{id:`user-plus`,icon:xe,count:t,className:`column-link__icon`}),text:e.formatMessage(Z.followRequests)})},We=()=>h?(0,G.jsx)(`div`,{className:`navigation-bar`,children:(0,G.jsx)(Ee,{id:h,minimal:!0,size:36})}):null,Ge=(e,{pathname:t})=>!!e||t.startsWith(`/public`),Q=284,$=({multiColumn:e=!1})=>{let t=i(),{signedIn:n,permissions:r,disabledAccountId:a}=_(),s=T(),c=I(`full`)&&!e,l=D(ae),u=E(),d=(0,W.useCallback)(()=>{l&&u(S({forceRefresh:!0}))},[u,l]),p;return x&&(p=(0,G.jsxs)(`div`,{className:`switch-to-advanced`,children:[t.formatMessage(Z.openedInClassicInterface),` `,(0,G.jsx)(`a`,{href:`/deck${s.pathname}`,className:`switch-to-advanced__toggle`,children:t.formatMessage(Z.advancedInterface)})]})),(0,G.jsxs)(`nav`,{className:`navigation-panel`,"aria-label":t.formatMessage(Z.main),children:[(0,G.jsx)(`div`,{className:`navigation-panel__logo`,children:(0,G.jsx)(O,{to:`/`,className:`column-link column-link--logo`,id:F(),children:(0,G.jsx)(v,{})})}),c&&(0,G.jsx)(De,{singleColumn:!0}),!e&&(0,G.jsx)(We,{}),p&&(0,G.jsx)(`div`,{className:`navigation-panel__banner`,children:p}),(0,G.jsxs)(`ul`,{className:`navigation-panel__menu`,children:[n&&(0,G.jsxs)(G.Fragment,{children:[!e&&(0,G.jsx)(`li`,{children:(0,G.jsx)(K,{to:{pathname:`/publish`,state:{focusTarget:!1}},icon:`plus`,iconComponent:M,activeIconComponent:M,text:t.formatMessage(Z.compose),className:`button navigation-panel__compose-button`})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(K,{transparent:!0,to:`/home`,icon:`home`,onClick:d,iconComponent:l?z:B,activeIconComponent:l?ve:R,text:t.formatMessage(l?Z.forYou:Z.home)})})]}),o&&(0,G.jsx)(`li`,{children:(0,G.jsx)(K,{transparent:!0,to:`/explore`,icon:`explore`,iconComponent:Te,text:t.formatMessage(Z.explore)})}),(A(n,r,m)||A(n,r,f))&&(0,G.jsx)(`li`,{children:(0,G.jsx)(K,{transparent:!0,to:A(n,r,m)?`/public/local`:`/public/remote`,icon:`globe`,iconComponent:j,isActive:Ge,text:t.formatMessage(A(n,r,m)&&A(n,r,f)?Z.firehose:Z.firehose_singular)})}),n&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`li`,{children:(0,G.jsx)(He,{})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(Ue,{})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(Ie,{})}),(0,G.jsx)(`li`,{role:`separator`}),(0,G.jsx)(Y,{}),(0,G.jsx)(`li`,{children:(0,G.jsx)(K,{transparent:!0,to:`/favourites`,icon:`star`,iconComponent:we,activeIconComponent:Ce,text:t.formatMessage(Z.favourites)})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(K,{transparent:!0,to:`/bookmarks`,icon:`bookmarks`,iconComponent:Ne,activeIconComponent:be,text:t.formatMessage(Z.bookmarks)})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(K,{transparent:!0,to:`/conversations`,icon:`at`,iconComponent:N,text:t.formatMessage(Z.direct)})}),(0,G.jsx)(`li`,{role:`separator`}),(0,G.jsx)(`li`,{children:(0,G.jsx)(K,{transparent:!0,href:`/settings/preferences`,icon:`cog`,iconComponent:me,text:t.formatMessage(Z.preferences)})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(ze,{})})]}),(0,G.jsx)(`li`,{className:`navigation-panel__legal`,children:(0,G.jsx)(K,{transparent:!0,to:`/about`,icon:`ellipsis-h`,iconComponent:L,text:t.formatMessage(Z.about)})}),!n&&(0,G.jsxs)(`li`,{className:`navigation-panel__sign-in-banner`,children:[(0,G.jsx)(`hr`,{}),a?(0,G.jsx)(Le,{}):(0,G.jsx)(Be,{})]})]}),(0,G.jsx)(`div`,{className:`flex-spacer`}),(0,G.jsx)(Ve,{})]})},Ke=()=>{let e=D(e=>e.navigation.open),t=E(),n=I(`openable`),r=T(),i=(0,W.useRef)(null);(0,W.useEffect)(()=>{t(w())},[t,r]),(0,W.useEffect)(()=>{let e=e=>{i.current&&e.target===i.current&&t(w())},n=e=>{e.key===`Escape`&&t(w())};return document.addEventListener(`click`,e),document.addEventListener(`keyup`,n),()=>{document.removeEventListener(`click`,e),document.removeEventListener(`keyup`,n)}},[t]);let a=getComputedStyle(document.body).direction!==`rtl`,o=a?Q:-284,[{x:s},c]=re(()=>({x:e?0:o,onRest:{x({value:e}){e===0?t(se()):e===o&&t(w())}}}),[e]),l=ye(({last:e,offset:[t],velocity:[n],direction:[r],cancel:i})=>{let s=a?r:-r,l=a?t:-t;l<-70&&i(),e?l>Q/2||n>.5&&s>0?c.start({x:o}):c.start({x:0}):c.start({x:t,immediate:!0})},{from:()=>
1[s.get(),0],axis:`x`,filterTaps:!0,bounds:a?{left:0}:{right:0},rubberband:!0,enabled:n}),u=(0,W.useRef)(null);return(0,W.useEffect)(()=>{if(e){let e=document.querySelector(`.navigation-panel__menu .column-link`);u.current=document.activeElement,e?.focus()}else u.current?.focus()},[e]),(0,G.jsx)(`div`,{className:(0,U.default)(`columns-area__panels__pane columns-area__panels__pane--start columns-area__panels__pane--navigational`,{"columns-area__panels__pane--overlay":n&&e}),ref:i,children:(0,G.jsx)(ie.div,{className:`columns-area__panels__pane__inner`,...l(),style:n?{x:s}:void 0,children:(0,G.jsx)($,{})})})};export{$ as n,Ke as t}; 2//# sourceMappingURL=navigation_panel-CVWypxvw.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.