1import{w as b,e as N,u as g,r as t,A as f,j as a,C as w,P as A,h as O,R as v,b as m,v as E,L as h,x as I,n as x,U as P,G as R}from"./index-Br5nW43a.js";import{w as S,a as y}from"./with-email-verification-Bp5rpZQy.js";import{O as C}from"./organisation-card-BT8Wq7yg.js";import{A as L}from"./Alert-DWTtpk7g.js";import"./Button-DAMaCeRV.js";const k=({firebase:n})=>{const{orgId:i}=N(),{t:e}=g(),l=t.useContext(f),[s,p]=t.useState(null),[c,u]=t.useState(null),[r,d]=t.useState(!0);t.useEffect(()=>{n.cloud("getOrganizationInfo")({orgId:i}).then(o=>{p(o.data),d(!1)}).catch(o=>{u(o.message),d(!1)})},[n,i]);const j=!!l&&(s==null?void 0:s.ownerId)===l.uid;return a.jsxs(w,{className:"content py-2 min-vh-100",children:[a.jsx(A,{title:(s==null?void 0:s.name)||e("organisation.about"),noindex:!0}),r&&a.jsx("div",{className:"text-center py-5",children:a.jsx(O,{animation:"border"})}),!r&&c&&a.jsx(L,{variant:"danger",children:c}),!r&&s&&a.jsxs(v,{className:"g-4",children:[a.jsx(m,{xs:12,md:3,children:a.jsxs("div",{className:"dashboard-panel-wrap",children:[a.jsxs("div",{className:"team-panel-header",children:[a.jsx(E,{className:"team-panel-icon"}),a.jsx("span",{className:"team-panel-title",children:e("organisation.profile")})]}),a.jsx("div",{className:"team-panel-body",children:a.jsx(C,{organization:s,noAccent:!0,children:j&&a.jsxs("div",{className:"d-flex gap-2",children:[a.jsxs(h,{to:x(P,i),className:"btn btn-outline-secondary profile-action-btn",children:[a.jsx(I,{})," ",e("organisation.dashboard")]}),a.jsx(h,{to:x(R,i),className:"btn btn-outline-secondary profile-action-btn",children:e("organisation.editProfile")})]})})})]})}),a.jsx(m,{xs:12,md:9,children:(s.description||s.website||s.contactEmail)&&a.jsxs("div",{className:"training-block-wrap",children:[a.jsx("div",{className:"team-panel-header",children:a.jsx("span",{className:"team-panel-title",children:e("organisation.about")})}),a.jsxs("div",{className:"team-panel-body",children:[s.description&&a.jsx("p",{children:s.description}),s.website&&a.jsx("p",{className:"mb-1",children:a.jsx("a",{href:s.website,target:"_blank",rel:"noreferrer",children:s.website})}),s.contactEmail&&a.jsx("p",{className:"mb-0",children:s.contactEmail})]})]})})]})]})},D=n=>!!n,M=S(y(D)(b(k)));export{M as default};
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.