PageSourceSearch

https://mastodon.scot/packs/compose-BQnvcFvk.js

js mastodon.scot collected 2026-10-02 06:01:48 UTC 4,394 bytes, 2 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{c as n,s as r}from"./react-intl-DlKP8ATg.js";import{t as i}from"./jsx-runtime-BdxMnOeJ.js";import{T as a,v as o}from"./initial_state-DnZ5UeDQ.js";import"./store-BKpYtGn4.js";import{o as s,s as c}from"./typed_functions-Whap35TF.js";import{qt as l,zt as u}from"./filters-Br4s8K7f.js";import{t as d}from"./helmet-C5cFHKKR.js";import{t as f}from"./react-router-dom-C1dtKQUg.js";import{n as p}from"./modal-CMPL9eyP.js";import{i as m}from"./skip_links-CmGdRWd6.js";import{t as h}from"./icon-BNrUFRb_.js";import{f as g}from"./account-jztc2BSU.js";import{_,i as v,o as y,y as b}from"./navigation_panel-Cy-vodBh.js";import{n as x,r as S}from"./navigation_bar-DJIAaf-V.js";import{a as C}from"./columns_area-CMZxm2t8.js";import{t as w}from"./public-DfIIZjQm.js";import{t as T}from"./compose_form_container-CF8D7fFv.js";import{t as E}from"./edit_square-D-JP-UcA.js";import"./elephant_ui_plane-BKKBlDqk.js";var D=e(t()),O=i(),k=e=>(0,O.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,O.jsx)(`path`,{d:`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h280v80H200Zm440-160-55-58 102-102H360v-80h327L585-622l55-58 200 200-200 200Z`})}),A=r({live_feed_public:{id:`navigation_bar.live_feed_public`,defaultMessage:`Live feed (public)`},live_feed_local:{id:`navigation_bar.live_feed_local`,defaultMessage:`Live feed (local)`},preferences:{id:`navigation_bar.preferences`,defaultMessage:`Preferences`},logout:{id:`navigation_bar.logout`,defaultMessage:`Logout`}}),j=({multiColumn:e})=>{let t=n(),r=s(),i=c(e=>e.settings.get(`columns`));(0,D.useEffect)(()=>(r(u()),()=>{r(l())}),[r]);let j=(0,D.useCallback)(e=>(e.preventDefault(),e.stopPropagation(),r(p({modalType:`CONFIRM_LOG_OUT`,modalProps:{}})),!1),[r]),M=(0,D.useCallback)(()=>{document.querySelector(`.navigation-panel`)?.scrollIntoView({behavior:a?`auto`:`smooth`})},[]);return e?(0,O.jsxs)(`div`,{className:`drawer`,children:[(0,O.jsxs)(`nav`,{className:`drawer__header`,"aria-label":t.formatMessage(x.advancedUiQuickLinks),children:[(0,O.jsx)(f,{to:`/getting-started`,className:`drawer__tab`,title:t.formatMessage(x.menu),"aria-label":t.formatMessage(x.menu),onClick:M,children:(0,O.jsx)(h,{id:`bars`,icon:S})}),!i.some(e=>e.get(`id`)===`HOME`)&&(0,O.jsx)(f,{to:`/home`,className:`drawer__tab`,title:t.formatMessage(x.home),"aria-label":t.formatMessage(x.home),children:(0,O.jsx)(h,{id:`home`,icon:b})}),!i.some(e=>e.get(`id`)===`NOTIFICATIONS`)&&(0,O.jsx)(f,{to:`/notifications`,className:`drawer__tab`,title:t.formatMessage(x.notifications),"aria-label":t.formatMessage(x.notifications),children:(0,O.jsx)(h,{id:`bell`,icon:_})}),!i.some(e=>e.get(`id`)===`COMMUNITY`)&&(0,O.jsx)(f,{to:`/public/local`,className:`drawer__tab`,title:t.formatMessage(A.live_feed_local),"aria-label":t.formatMessage(A.live_feed_local),children:(0,O.jsx)(h,{id:`users`,icon:g})}),!i.some(e=>e.get(`id`)===`PUBLIC`)&&(0,O.jsx)(f,{to:`/public`,className:`drawer__tab`,title:t.formatMessage(A.live_feed_public),"aria-label":t.formatMessage(A.live_feed_public),children:(0,O.jsx)(h,{id:`globe`,icon:w})}),(0,O.jsx)(`a`,{href:`/settings/preferences`,className:`drawer__tab`,title:t.formatMessage(A.preferences),"aria-label":t.formatMessage(A.preferences),children:(0,O.jsx)(h,{id:`cog`,icon:y})}),(0,O.jsx)(`a`,{href:`/auth/sign_out`,className:`drawer__tab`,title:t.formatMessage(A.logout),"aria-label":t.formatMessage(A.logout),onClick:j,children:(0,O.jsx)(h,{id:`sign-out`,icon:k})})]}),(0,O.jsx)(v,{singleColumn:!1}),(0,O.jsx)(`div`,{className:`drawer__pager`,role:`region`,"aria-label":t.formatMessage(x.publish),children:(0,O.jsxs)(`div`,{className:`drawer__inner`,children:[(0,O.jsx)(T,{}),(0,O.jsx)(`div`,{className:`drawer__inner__mastodon with-zig-zag-decoration`,children:(0,O.jsx)(`img`,{alt:``,draggable:`false`,src:o??`/packs/assets/elephant_ui_plane-Cfmrathl.svg`})})]})})]}):(0,O.jsxs)(m,{bindToDocument:!e,label:t.formatMessage(x.publish),children:[(0,O.jsx)(C,{icon:`pencil`,iconComponent:E,title:t.formatMessage(x.publish),multiColumn:e,showBackButton:!0}),(0,O.jsx)(`div`,{className:`scrollable`,children:(0,O.jsx)(T,{autoFocus:!0})}),(0,O.jsx)(d,{children:(0,O.jsx)(`meta`,{name:`robots`,content:`noindex`})})]})};export{j as default};
2//# sourceMappingURL=compose-BQnvcFvk.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.