1import{aK as N,a4 as o,aW as D,c9 as F,gt as W,h8 as G,gq as U,oq as Y,r as u,hb as z,gx as q,bY as H}from"./index-Bw1_3nkz.js";import{$ as K,d3 as Q,by as g,bA as f,S as $,a1 as J,U as V,E as y,a9 as X,a2 as r,ba as d,bb as _,bD as Z,c3 as P,bz as tt,bt as S,bx as st,bw as m,bv as p,b3 as et,a5 as ot,bm as it}from"./Root-BY7ucel4.js";import{C as rt,z as nt}from"./index-qkmnlOmN.js";import{u as at,T as ct}from"./useGetNavigationTabsTitle-l7GNv-NV.js";import{m as lt,G as T}from"./index-lCvTI3l-.js";import"./useQuery-Cu_Unqz4.js";import"./index-D-W0Qqc-.js";const ut=N()(t=>({title:{margin:"32px 0 8px 24px",[t.breakpoints.up("md")]:{margin:"32px 0 8px"}}})),dt=t=>{const{classes:a}=ut();return t.title?o.jsx(D,{className:a.title,children:o.jsx(K,{variant:"h3",children:t.title})}):null},St=[{key:"stories_first_tab",linkTo:Q},{key:"stories_second_tab",linkTo:g},{key:"stories_third_tab",linkTo:f}];var i=(t=>(t[t.NO_TAB_SELECTED=-1]="NO_TAB_SELECTED",t[t.ALL_STORIES=0]="ALL_STORIES",t[t.FOLLOWING_STORIES=1]="FOLLOWING_STORIES",t[t.MY_STORIES=2]="MY_STORIES",t))(i||{});const pt=lt(t=>({writeStoryButton:{alignSelf:"center",width:"90%",margin:t.spacing(2.5)}})),ht=()=>{const{t}=$(),a=pt(),c=J(),h=rt(),O=V(),x=at({navigationTabsConfig:St}),b=y(e=>e.breakpoints.up("md")),l=y(e=>e.breakpoints.up("lg")),{pathname:s}=X(),R=r(F),n=r(W),A=r(G),E=r(U),L=r(Y),I=s.includes(d)||s.includes(_)||s.includes(Z),k=!b&&!s.includes(d)&&!s.includes(P)&&!s.includes(tt),[B,v]=u.useState(i.ALL_STORIES),C=A||E;u.useEffect(()=>{I||c(z()),s.includes(S)||c(q()),v(s.includes(st)||s.includes(m)||s.includes(S)||s.includes(p)?i.ALL_STORIES:s.includes(g)?i.FOLLOWING_STORIES:s.includes(f)?i.MY_STORIES:i.NO_TAB_SELECTED)},[s]),u.useEffect(()=>{s.includes(p)&&nt()},[s]);const j=()=>o.jsx(T,{container:!0,children:(b||k)&&o.jsx(T,{size:{xs:12,md:8},children:o.jsx(ct,{selectedTab:B,tabs:x})})}),w=()=>{let e="";return s.includes(p)&&l&&(e=t("stories_suggested_widget_title")),s.includes(S)&&n&&(e=t("stories_by_author",{author:n==null?void 0:n.memberDisplayName})),s.includes(m)&&(e=t("stories_by_topic",{topicName:L})),o.jsx(dt,{title:C||!e?void 0:e})},M=()=>!s.includes(d)&&!s.includes(_)&&!l&&o.jsx(ot,{minWidth:l?210:void 0,variant:"contained",onClick:()=>{if(R){c(H(!0));return}h("STORIES_WRITE_A_STORY_START"),it(O)},sx:a.writeStoryButton,id:"write-story-button",children:t("stories_write_button")});return o.jsxs(T,{container:!0,direction:"column",children:[j(),w(),M(),o.jsx(et,{})]})};export{ht as StoriesPage}; 2//# sourceMappingURL=StoriesPage-Lw8qd1Hs.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.