Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 832

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
import{j as e}from"./client-wT6vtYO_.js";import{r as i,u as w,d as I}from"./index-BdTwX--g.js";import{c as G}from"./index-DizoKcfL.js";import{h as ee,N as se,L as T,u as W}from"./short_number-w3W5phxu.js";import{I as L,a as v,u as j,af as A,b as te,be as ae,bf as ne,l as K,bg as F,bh as S,d as oe,bi as ie,h as re,bj as le,aO as ce,aP as de,bk as me}from"./useSelectableClick-DSv4aXzQ.js";import{u as ue}from"./use-gesture-react.esm-PiBFdzIE.js";import{S as P}from"./add-D8GR9P00.js";import{a8 as ge,a9 as pe,ah as fe,ae as he}from"./content_warning-KGK9SYUe.js";import{S as ve}from"./bookmarks-fill-DgzxJ_c4.js";import{S as _e}from"./home-fill-BjwEpYg3.js";import{S as xe,a as be}from"./settings-CPmE9sBj.js";import{S as je}from"./info-HtHaDKcq.js";import{s as Me,S as we}from"./notifications-Dc-KQ9E0.js";import{S as ke}from"./notifications-lYn-LpJE.js";import{S as Ne}from"./person_add-fill-D1U4oKl8.js";import{S as Se}from"./person_add-Bq7Kcwwn.js";import{S as Te}from"./trending_up-De1RKRI5.js";import{A as Ce}from"./index-Ct5WV0Bz.js";import{I as C}from"./icon_with_badge-BNTpk-ky.js";import{W as Ie}from"./logo-D6Accnpz.js";import{S as ye}from"./search-DNQglhtu.js";import{u as X}from"./useBreakpoint-lQ5WUdV4.js";import{z as R,A as B,d as D,q as O,w as Ee,B as Le,t as Ae,C as qe,m as $}from"./initial_state-CaZA8Ule.js";import{M as m}from"./message-UFwkQlnu.js";import{S as H}from"./tag-fitE3XYd.js";import{L as Fe}from"./loading_indicator-CoYIRvVm.js";import{S as Z}from"./list_alt-yox9TcbF.js";import"./api-BktM5Ego.js";import{g as Pe}from"./lists-BXS-_epi.js";import{c as Re,b as Be}from"./permissions-CJkLQvs0.js";import{I as De}from"./hashtag-BzW8t4Na.js";const Oe=s=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,...s},i.createElement("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"})),d=({icon:s,activeIcon:t,iconComponent:a,activeIconComponent:r,text:o,to:n,href:g,method:M,badge:f,transparent:_,...x})=>{const b=ee(n??""),l=G("column-link",{"column-link--transparent":_}),c=typeof f<"u"?e.jsx("span",{className:"column-link__badge",children:f}):null,h=a?e.jsx(L,{id:typeof s=="string"?s:"",icon:a,className:"column-link__icon"}):s,k=t??(r?e.jsx(L,{id:typeof s=="string"?s:"",icon:r,className:"column-link__icon"}):h),N=!!b;return g?e.jsxs("a",{href:g,className:l,"data-method":M,...x,children:[N?k:h,e.jsx("span",{children:o}),c]}):n?e.jsxs(se,{to:n,className:l,...x,children:[N?k:h,e.jsx("span",{children:o}),c]}):null},$e=()=>{const s=v(n=>R?n.accounts.get(R):void 0),t=v(n=>B?n.accounts.get(B):void 0),a=j(),r=i.useCallback(n=>(n.preventDefault(),n.stopPropagation(),a(A({modalType:"CONFIRM_LOG_OUT",modalProps:{}})),!1),[a]),o=e.jsxs(T,{to:`/@${s==null?void 0:s.acct}`,children:[s==null?void 0:s.acct,"@",D]});return e.jsxs("div",{className:"sign-in-banner",children:[e.jsx("p",{children:t?e.jsx(m,{id:"moved_to_account_banner.text",defaultMessage:"Your account {disabledAccount} is currently disabled because you moved to {movedToAccount}.",values:{disabledAccount:o,movedToAccount:e.jsx(T,{to:`/@${t.acct}`,children:t.acct.includes("@")?t.acct:`${t.acct}@${D}`})}}):e.jsx(m,{id:"disabled_account_banner.text",defaultMessage:"Your account {disabledAccount} is currently disabled.",values:{disabledAccount:o}})}),e.jsx("a",{href:"/auth/edit",className:"button button--block",children:e.jsx(m,{id:"disabled_account_banner.account_settings",defaultMessage:"Account settings"})}),e.jsx("button",{type:"button",className:"button button--block button-tertiary",onClick:r,children:e.jsx(m,{id:"confirmations.logout.confirm",defaultMessage:"Log out"})})]})},He=s=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,...s},i.createElement("path",{d:"M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"})),Ze=s=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,...s},i.createElement("path",{d:"M480-528 296-344l-56-56 240-240 240 240-56 56-184-184Z"})),Y=({children:s,to:t,icon:a,iconComponent:r,activeIconComponent:o,title:n,collapseTitle:g,expandTitle:M,loading:f})=>{const[_,x]=i.useState(!1),b=i.useId(),l=i.useCallback(()=>{x(c=>!c)},[x]);return e.jsxs("div",{className:"navigation-panel__list-panel",children:[e.jsxs("div",{className:"navigation-panel__list-panel__header",children:[e.jsx(d,{transparent:!0,to:t,icon:a,iconComponent:r,activeIconComponent:o,text:n,id:`${b}-title`}),(f||s.length>0)&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"navigation-panel__list-panel__header__sep"}),e.jsx(te,{icon:"down",expanded:_,iconComponent:f?Fe:_?Ze:He,title:_?g:M,onClick:l,"aria-controls":`${b}-content`})]})]}),s.length>0&&_&&e.jsx("div",{className:"navigation-panel__list-panel__items",role:"region",id:`${b}-content`,"aria-labelledby":`${b}-title`,children:s})]})},y=I({followedTags:{id:"navigation_bar.followed_tags",defaultMessage:"Followed hashtags"},expand:{id:"navigation_panel.expand_followed_tags",defaultMessage:"Expand followed hashtags menu"},collapse:{id:"navigation_panel.collapse_followed_tags",defaultMessage:"Collapse followed hashtags menu"}}),Ue=4,ze=()=>{const s=w(),t=j(),{tags:a,stale:r,loading:o}=v(n=>n.followedTags);return i.useEffect(()=>{r&&t(ae())},[t,r]),e.jsx(Y,{to:"/followed_tags",icon:"hashtag",iconComponent:H,title:s.formatMessage(y.followedTags),collapseTitle:s.formatMessage(y.collapse),expandTitle:s.formatMessage(y.expand),loading:o,children:a.slice(0,Ue).map(n=>e.jsx(d,{transparent:!0,icon:"hashtag",iconComponent:H,text:`#${n.name}`,to:`/tags/${n.name}`},n.name))})},U=s=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,...s},i.createElement("path",{d:"M320-280q17 0 28.5-11.5T360-320q0-17-11.5-28.5T320-360q-17 0-28.5 11.5T280-320q0 17 11.5 28.5T320-280Zm0-160q17 0 28.5-11.5T360-480q0-17-11.5-28.5T320-520q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440Zm0-160q17 0 28.5-11.5T360-640q0-17-11.5-28.5T320-680q-17 0-28.5 11.5T280-640q0 17 11.5 28.5T320-600Zm120 320h240v-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"})),E=I({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"}}),Ge=()=>{const s=w(),t=j(),a=v(n=>Pe(n)),[r,o]=i.useState(!1);return i.useEffect(()=>{o(!0),t(ne()).then(()=>(o(!1),""))},[t,o]),e.jsx(Y,{to:"/lists",icon:"list-ul",iconComponent:Z,activeIconComponent:U,title:s.formatMessage(E.lists),collapseTitle:s.formatMessage(E.collapse),expandTitle:s.formatMessage(E.expand),loading:r,children:a.map(n=>e.jsx(d,{icon:"list-ul",iconComponent:Z,activeIconComponent:U,text:n.title,to:`/lists/${n.id}`,transparent:!0},n.id))})},p=I({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 deletion"},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"}}),We=()=>{const s=w(),{permissions:t}=K(),a=j(),r=i.useMemo(()=>{const o=[{href:"/filters",text:s.formatMessage(p.filters)},{to:"/mutes",text:s.formatMessage(p.mutes)},{to:"/blocks",text:s.formatMessage(p.blocks)},{to:"/domain_blocks",text:s.formatMessage(p.domainBlocks)},null,{href:"/settings/privacy",text:s.formatMessage(p.privacyAndReach)},{href:"/statuses_cleanup",text:s.formatMessage(p.automatedDeletion)},{href:"/auth/edit",text:s.formatMessage(p.accountSettings)},{href:"/settings/export",text:s.formatMessage(p.importExport)}];Re(t)&&o.push(null,{href:"/admin/reports",text:s.formatMessage(p.moderation)}),Be(t)&&o.push({href:"/admin/dashboard",text:s.formatMessage(p.administration)});const n=()=>{a(A({modalType:"CONFIRM_LOG_OUT",modalProps:{}}))};return o.push(null,{text:s.formatMessage(p.logout),action:n}),o},[s,a,t]);return e.jsx(ge,{items:r,placement:"bottom-start",children:e.jsxs("button",{className:"column-link column-link--transparent",children:[e.jsx(L,{id:"",icon:pe,className:"column-link__icon"}),e.jsx(m,{id:"navigation_bar.more",defaultMessage:"More"})]})})},Ke=()=>{const s=j(),t=i.useCallback(()=>s(A({modalType:"CLOSED_REGISTRATIONS",modalProps:{}})),[s]);let a;const r=v(o=>o.server.getIn(["server","registrations","url"],null)??"/auth/sign_up");return O?e.jsxs("div",{className:"sign-in-banner",children:[e.jsx("p",{children:e.jsx("strong",{children:e.jsx(m,{id:"sign_in_banner.mastodon_is",defaultMessage:"Mastodon is the best way to keep up with what's happening."})})}),e.jsx("p",{children:e.jsx(m,{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."})}),e.jsx("a",{href:O,"data-method":"post",className:"button button--block button-tertiary",children:e.jsx(m,{id:"sign_in_banner.sso_redirect",defaultMessage:"Login or Register"})})]}):(Ee?a=e.jsx("a",{href:r,className:"button button--block",children:e.jsx(m,{id:"sign_in_banner.create_account",defaultMessage:"Create account"})}):a=e.jsx("button",{className:"button button--block",onClick:t,children:e.jsx(m,{id:"sign_in_banner.create_account",defaultMessage:"Create account"})}),e.jsxs("div",{className:"sign-in-banner",children:[e.jsx("p",{children:e.jsx("strong",{children:e.jsx(m,{id:"sign_in_banner.mastodon_is",defaultMessage:"Mastodon is the best way to keep up with what's happening."})})}),e.jsx("p",{children:e.jsx(m,{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."})}),a,e.jsx("a",{href:"/auth/sign_in",className:"button button--block button-tertiary",children:e.jsx(m,{id:"sign_in_banner.sign_in",defaultMessage:"Login"})})]}))},Xe=()=>{const s=j(),t=v(a=>a.trends.getIn(["tags","items"]));return i.useEffect(()=>{s(F());const a=setInterval(()=>{s(F())},900*1e3);return()=>{clearInterval(a)}},[s]),!Le||t.isEmpty()?null:e.jsx("div",{className:"navigation-panel__portal",children:e.jsxs("div",{className:"getting-started__trends",children:[e.jsx("h4",{children:e.jsx(T,{to:"/explore/tags",children:e.jsx(m,{id:"trends.trending_now",defaultMessage:"Trending now"})})}),t.take(4).map(a=>e.jsx(De,{hashtag:a},a.get("name")))]})})},u=I({home:{id:"tabs_bar.home",defaultMessage:"Home"},notifications:{id:"tabs_bar.notifications",defaultMessage:"Notifications"},explore:{id:"explore.title",defaultMessage:"Trending"},firehose:{id:"column.firehose",defaultMessage:"Live feeds"},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"}}),Ye=()=>{const s=v(Me),t=w();return e.jsx(d,{transparent:!0,to:"/notifications",icon:e.jsx(C,{id:"bell",icon:ke,count:s,className:"column-link__icon"}),activeIcon:e.jsx(C,{id:"bell",icon:we,count:s,className:"column-link__icon"}),text:t.formatMessage(u.notifications)},"notifications")},Qe=()=>{const s=w(),t=v(r=>{var o;return((o=r.user_lists.getIn(["follow_requests","items"]))==null?void 0:o.size)??0}),a=j();return i.useEffect(()=>{a(me())},[a]),t===0?null:e.jsx(d,{transparent:!0,to:"/follow_requests",icon:e.jsx(C,{id:"user-plus",icon:Se,count:t,className:"column-link__icon"}),activeIcon:e.jsx(C,{id:"user-plus",icon:Ne,count:t,className:"column-link__icon"}),text:s.formatMessage(u.followRequests)})},Ve=()=>$?e.jsx("div",{className:"navigation-bar",children:e.jsx(Ce,{id:$,minimal:!0,size:36})}):null,Je=(s,{pathname:t})=>!!s||t.startsWith("/public"),z=284,es=({multiColumn:s=!1})=>{const t=w(),{signedIn:a,disabledAccountId:r}=K(),o=W(),n=X("full")&&!s;let g;return le&&(g=e.jsxs("div",{className:"switch-to-advanced",children:[t.formatMessage(u.openedInClassicInterface)," ",e.jsx("a",{href:`/deck${o.pathname}`,className:"switch-to-advanced__toggle",children:t.formatMessage(u.advancedInterface)})]})),e.jsxs("div",{className:"navigation-panel",children:[e.jsx("div",{className:"navigation-panel__logo",children:e.jsx(T,{to:"/",className:"column-link column-link--logo",children:e.jsx(Ie,{})})}),n&&e.jsx(ye,{singleColumn:!0}),!s&&e.jsx(Ve,{}),g&&e.jsx("div",{className:"navigation-panel__banner",children:g}),e.jsxs("div",{className:"navigation-panel__menu",children:[a&&e.jsxs(e.Fragment,{children:[!s&&e.jsx(d,{to:"/publish",icon:"plus",iconComponent:P,activeIconComponent:P,text:t.formatMessage(u.compose),className:"button navigation-panel__compose-button"}),e.jsx(d,{transparent:!0,to:"/home",icon:"home",iconComponent:xe,activeIconComponent:_e,text:t.formatMessage(u.home)})]}),Ae&&e.jsx(d,{transparent:!0,to:"/explore",icon:"explore",iconComponent:Te,text:t.formatMessage(u.explore)}),(a||qe)&&e.jsx(d,{transparent:!0,to:"/public/local",icon:"globe",iconComponent:fe,isActive:Je,text:t.formatMessage(u.firehose)}),a&&e.jsxs(e.Fragment,{children:[e.jsx(Ye,{}),e.jsx(Qe,{}),e.jsx("hr",{}),e.jsx(Ge,{}),e.jsx(ze,{}),e.jsx(d,{transparent:!0,to:"/favourites",icon:"star",iconComponent:de,activeIconComponent:ce,text:t.formatMessage(u.favourites)}),e.jsx(d,{transparent:!0,to:"/bookmarks",icon:"bookmarks",iconComponent:Oe,activeIconComponent:ve,text:t.formatMessage(u.bookmarks)}),e.jsx(d,{transparent:!0,to:"/conversations",icon:"at",iconComponent:he,text:t.formatMessage(u.direct)}),e.jsx("hr",{}),e.jsx(d,{transparent:!0,href:"/settings/preferences",icon:"cog",iconComponent:be,text:t.formatMessage(u.preferences)}),e.jsx(We,{})]}),e.jsx("div",{className:"navigation-panel__legal",children:e.jsx(d,{transparent:!0,to:"/about",icon:"ellipsis-h",iconComponent:je,text:t.formatMessage(u.about)})}),!a&&e.jsxs("div",{className:"navigation-panel__sign-in-banner",children:[e.jsx("hr",{}),r?e.jsx($e,{}):e.jsx(Ke,{})]})]}),e.jsx("div",{className:"flex-spacer"}),e.jsx(Xe,{})]})},As=()=>{const s=v(l=>l.navigation.open),t=j(),a=X("openable"),r=W(),o=i.useRef(null);i.useEffect(()=>{t(S())},[t,r]),i.useEffect(()=>{const l=h=>{o.current&&h.target===o.current&&t(S())},c=h=>{h.key==="Escape"&&t(S())};return document.addEventListener("click",l),document.addEventListener("keyup",c),()=>{document.removeEventListener("click",l),document.removeEventListener("keyup",c)}},[t]);const n=getComputedStyle(document.body).direction!=="rtl",g=n?z:-284,[{x:M},f]=oe(()=>({x:s?0:g,onRest:{x({value:l}){l===0?t(ie()):(n?l>0:l<0)&&t(S())}}}),[s]),_=ue(({last:l,offset:[c],velocity:[h],direction:[k],cancel:N})=>{const Q=n?k:-k,q=n?c:-c;if(q<-70&&N(),l){const V=q>z/2,J=h>.5&&Q>0;V||J?f.start({x:g}):f.start({x:0})}else f.start({x:c,immediate:!0})},{from:()=>[M.get(),0],filterTaps:!0,bounds:n?{left:0}:{right:0},rubberband:!0,enabled:a}),x=i.useRef();i.useEffect(()=>{var l;if(s){const c=document.querySelector(".navigation-panel__menu .column-link");x.current=document.activeElement,c==null||c.focus()}else(l=x.current)==null||l.focus()},[s]);const b=a&&s;return e.jsx("div",{className:G("columns-area__panels__pane columns-area__panels__pane--start columns-area__panels__pane--navigational",{"columns-area__panels__pane--overlay":b}),ref:o,children:e.jsx(re.div,{className:"columns-area__panels__pane__inner",..._(),style:a?{x:M}:void 0,children:e.jsx(es,{})})})};export{As as C,es as N}; //# sourceMappingURL=index-COwuO7Od.js.map