PageSourceSearch

https://tribe.net/packs/compose-B2m_GyqI.js

js tribe.net collected 2026-10-01 07:34:53 UTC 4,300 bytes, 2 lines download raw bytes

1import{o as e}from"./chunk-CMxvf4Kt.js";import{n as t,t as n}from"./jsx-runtime-SsSjplwM.js";import{c as r,s as i}from"./react-intl-Cop388b4.js";import{E as a,y as o}from"./prop-types-BTvjt2rf.js";import{$ as s}from"./poll-DnT1-M6z.js";import{Kr as c,ei as l,ki as u}from"./render-Ba_suDLt.js";import{o as d,s as f}from"./typed_functions-CyAHd4bl.js";import{t as p}from"./helmet-DcyqcM0_.js";import{n as m}from"./short_number-Coj2vPT7.js";import{on as h}from"./status_quoted-BX5g4uQr.js";import{i as g}from"./skip_links-BkSMjxFC.js";import{f as _}from"./account-mCnsBq-t.js";import{_ as v,i as y,o as b,y as x}from"./navigation_panel-hnhHkMix.js";import{n as S,r as C}from"./navigation_bar-BK9O1_Q0.js";import{a as w}from"./columns_area-DtfxaZn0.js";import{t as T}from"./compose_form_container-oI5Bl-XP.js";import{t as E}from"./edit_square-BpPIKHe8.js";import"./elephant_ui_plane-BKKBlDqk.js";var D=e(t()),O=n(),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=i({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=r(),n=d(),i=f(e=>e.settings.get(`columns`));(0,D.useEffect)(()=>(n(c()),()=>{n(l())}),[n]);let j=(0,D.useCallback)(e=>(e.preventDefault(),e.stopPropagation(),n(u({modalType:`CONFIRM_LOG_OUT`,modalProps:{}})),!1),[n]),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(S.advancedUiQuickLinks),children:[(0,O.jsx)(m,{to:`/getting-started`,className:`drawer__tab`,title:t.formatMessage(S.menu),"aria-label":t.formatMessage(S.menu),onClick:M,children:(0,O.jsx)(s,{id:`bars`,icon:C})}),!i.some(e=>e.get(`id`)===`HOME`)&&(0,O.jsx)(m,{to:`/home`,className:`drawer__tab`,title:t.formatMessage(S.home),"aria-label":t.formatMessage(S.home),children:(0,O.jsx)(s,{id:`home`,icon:x})}),!i.some(e=>e.get(`id`)===`NOTIFICATIONS`)&&(0,O.jsx)(m,{to:`/notifications`,className:`drawer__tab`,title:t.formatMessage(S.notifications),"aria-label":t.formatMessage(S.notifications),children:(0,O.jsx)(s,{id:`bell`,icon:v})}),!i.some(e=>e.get(`id`)===`COMMUNITY`)&&(0,O.jsx)(m,{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)(s,{id:`users`,icon:_})}),!i.some(e=>e.get(`id`)===`PUBLIC`)&&(0,O.jsx)(m,{to:`/public`,className:`drawer__tab`,title:t.formatMessage(A.live_feed_public),"aria-label":t.formatMessage(A.live_feed_public),children:(0,O.jsx)(s,{id:`globe`,icon:h})}),(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)(s,{id:`cog`,icon:b})}),(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)(s,{id:`sign-out`,icon:k})})]}),(0,O.jsx)(y,{singleColumn:!1}),(0,O.jsx)(`div`,{className:`drawer__pager`,role:`region`,"aria-label":t.formatMessage(S.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)(g,{bindToDocument:!e,label:t.formatMessage(S.publish),children:[(0,O.jsx)(w,{icon:`pencil`,iconComponent:E,title:t.formatMessage(S.publish),multiColumn:e,showBackButton:!0}),(0,O.jsx)(`div`,{className:`scrollable`,children:(0,O.jsx)(T,{autoFocus:!0})}),(0,O.jsx)(p,{children:(0,O.jsx)(`meta`,{name:`robots`,content:`noindex`})})]})};export{j as default};
2//# sourceMappingURL=compose-B2m_GyqI.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.