1import{u as v,ao as y,b as l,h as x,a as S,a4 as n,ap as w,j as t}from"./index-_aijvlUq.js";const j=[{label:"Support",rows:[{opens:"feedback",label:"Send feedback"},{to:"/help",label:"Help Center"}]},{label:"Band",rows:[{to:"/schedule",label:"Schedule",action:"performance:list"},{to:"/performances",label:"Performances",action:"performance:list"},{to:"/sections",label:"Sections",action:"section:list"},{to:"/my-section",label:"My Section",mySection:!0},{to:"/ensembles",label:"Ensembles",action:"ensemble:list"},{to:"/events",label:"Events",action:"event:manage"},{to:"/locations",label:"Locations",action:"performance:list"},{to:"/equipment",label:"Equipment",action:"equipment:list"},{to:"/music-folders",label:"Music Folders",action:"music:read_full"}]},{label:"Administration",rows:[{to:"/groups",label:"Email Lists",action:"groups:send"},{to:"/settings/communications",label:"Communications",action:"communications:read"},{to:"/settings/organizations",label:"Organization Settings",action:"org:update"},{to:"/settings/roles",label:"Roles & Access",action:"roles:manage"},{to:"/settings/partnerships",label:"Partnerships",action:"partnership:manage"},{to:"/playbooks",label:"Playbooks",action:"org:update"},{to:"/payments",label:"Payments",action:"payments:view"},{to:"/settings/billing",label:"Billing",action:"billing:view",roles:[n.SUPERADMIN,n.PRESIDENT,n.VICE_PRESIDENT,n.TREASURER]},{to:"/reports",label:"Reports",anyAction:w}]},{label:"My Account",rows:[{to:"/account/profile",label:"My Profile"},{to:"/account/notifications",label:"Notification Preferences"},{to:"/account/payments",label:"Dues & Payments"},{to:"/account/sharing",label:"Contact Sharing"},{to:"/account/calendar",label:"Calendar Feed"},{to:"/account/change-password",label:"Change Password"}]}];function P(){const c=v(),b=y(e=>e.open),a=l(e=>e.user),d=l(e=>e.logout),{currentOrg:p}=x(),{canAny:s,role:i,authority:r}=S(),u=a?.sectionId,g=e=>e.mySection?!!u:!(e.roles&&!e.roles.includes(i)&&r!=="owner"&&r!=="admin"||e.anyAction&&!e.anyAction.some(o=>s(o))||e.action&&!s(e.action)),m=j.map(e=>({...e,rows:e.rows.filter(g)})).filter(e=>e.rows.length>0);async function f(){await d(),window.location.assign("/app/login")}return t.jsxs("div",{style:{minHeight:"100%",background:"var(--bb-bg)"},children:[t.jsxs("div",{"data-testid":"more-header-card",style:{padding:"var(--bb-space-5) var(--bb-space-4)",background:"var(--bb-surface)",borderBottom:"1px solid var(--bb-border-soft)"},children:[t.jsx("p",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.08em",textTransform:"uppercase",color:"var(--bb-fg-muted)",margin:0},children:"Organization"}),t.jsx("p",{style:{fontSize:20,fontWeight:700,color:"var(--bb-fg)",margin:"2px 0 0 0",lineHeight:1.2},children:p?.name??"Your Organization"}),t.jsxs("p",{style:{fontSize:13,color:"var(--bb-fg-muted)",margin:"2px 0 0 0",textTransform:"capitalize"},children:["Signed in as ",a?.displayName," â ",i?.replace(/_/g," ")]})]}),m.map(e=>t.jsxs("section",{style:{marginTop:"var(--bb-space-5)"},children:[t.jsx("h2",{style:{margin:"0 0 var(--bb-space-2) 0",padding:"0 var(--bb-space-4)",fontSize:11,fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase",color:"var(--bb-fg-muted)"},children:e.label}),t.jsx("ul",{style:{margin:0,padding:0,listStyle:"none",background:"var(--bb-surface)",borderTop:"1px solid var(--bb-border-soft)",borderBottom:"1px solid var(--bb-border-soft)"},children:e.rows.map((o,h)=>t.jsx("li",{style:{borderTop:h===0?"none":"1px solid var(--bb-border-soft)"},children:t.jsxs("button",{type:"button",onClick:()=>o.opens==="feedback"?b():c(o.to),style:{width:"100%",minHeight:48,padding:"12px var(--bb-space-4)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"transparent",border:"none",textAlign:"left",fontFamily:"inherit",fontSize:15,color:"var(--bb-fg)",cursor:"pointer"},children:[t.jsx("span",{children:o.label}),t.jsx(k,{})]})},o.to||o.label))})]},e.label)),t.jsx("div",{style:{padding:"var(--bb-space-6) var(--bb-space-4)"},children:t.jsx("button",{type:"button",onClick:f,style:{width:"100%",minHeight:48,padding:"12px var(--bb-space-4)",background:"var(--bb-surface)",border:"1px solid var(--bb-border)",borderRadius:"var(--bb-radius-md)",color:"var(--bb-danger)",fontFamily:"inherit",fontSize:15,fontWeight:600,cursor:"pointer"},children:"Sign out"})})]})}function k(){return t.jsx("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",stroke:"var(--bb-fg-subtle)",strokeWidth:2,"aria-hidden":"true",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})}
1export{P as MorePage};
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.