1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="245a3b0e-ad6b-459c-ae8c-72c1d687d86d",e._sentryDebugIdIdentifier="sentry-dbid-245a3b0e-ad6b-459c-ae8c-72c1d687d86d")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[163],{20994:(e,s,t)=>{"use strict";t.d(s,{A:()=>l});var a=t(37876),r=t(48014),n=t(22767);function l(e){let{type:s}=e;return e.valid?(console.error("Invalid invocation of AuthErrorResponse"),(0,a.jsx)(a.Fragment,{})):"loading"===s?(0,a.jsx)(n.A,{}):"unauthenticated"===s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"p",children:"Login required."}),(0,a.jsx)(r.A,{})]}):"unauthorized"===s?(0,a.jsx)("p",{className:"p",children:"Insufficient privileges."}):null}},32953:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>y});var a=t(37876),r=t(20585),n=t(14232),l=t(31167),i=t(64177),d=t(1889),m=t(16710),o=t(58545),c=t(88129),h=t(44842),u=t(45561),x=t(73695),p=t(53359);function b(){let[e,s]=(0,n.useState)("MODERATORS"),{data:t,refetch:r}=(0,l.I)(d.pE,{variables:{slug:e},skip:!1}),[b]=(0,i.n)(d.gh),f=async s=>{e&&s.member?.id&&(await b({variables:{slug:e,input:{removeTeamMembersByMemberId:[s.member.id]}}}),r())},g=t?.getTeam?.memberships||[];return(0,a.jsxs)("div",{className:"space-y-8","data-sentry-component":"TeamManagement","data-sentry-source-file":"TeamManagement.tsx",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-gray-600 mb-3",children:["Some emails from GroupFlow are sent to specific admin teams. For example, forum moderators are notified when topics need approval, and Calendar Team members are alerted when draft events are created. Adding someone to a team's email list subscribes them to those messages â it does ",(0,a.jsx)("strong",{children:"not"})," grant any admin access. To assign permissions, edit the member's record directly."]}),(0,a.jsx)("p",{className:"text-gray-600 mb-6",children:"Select a team below to manage its email list."})]}),(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow p-6",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold mb-4",children:"Assign Members to a Team"}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Select Team"}),(0,a.jsx)(m.A,{options:h.T,value:e,onChange:e=>{s(e.target.value||"MODERATORS")},"data-sentry-element":"Select","data-sentry-source-file":"TeamManagement.tsx"})]}),e&&(0,a.jsx)("p",{className:"text-gray-600 text-sm",children:h.T.find(s=>
1s.value===e)?.description})]}),e&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Select Member"}),(0,a.jsx)("div",{className:"flex-grow",children:(0,a.jsx)(o.A,{onSelected:async s=>{s&&(await b({variables:{slug:e,input:{addTeamMembersByMemberId:[s.id]}}}),r())},searchPlaceholder:"Search for a member...",apiParams:{skipMemberIds:g.map(e=>e.member?.id).filter(Boolean)}})})]})]})]}),e&&(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow",children:[(0,a.jsx)("div",{className:"p-6 border-b",children:(0,a.jsxs)("h2",{className:"text-xl font-semibold",children:[h.T.find(s=>s.value===e)?.label," Members"]})}),g.length>0?(0,a.jsx)("div",{className:"p-6",children:(0,a.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:g.map(e=>(0,a.jsxs)(u.A,{className:"p-5 flex flex-col justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-row gap-4",children:[(0,a.jsx)(p.A,{photoUrl:e.member?.profile?.photo?.thumbUrl,photoSize:80}),(0,a.jsx)("div",{className:"flex-grow",children:(0,a.jsx)("div",{className:"flex-grow flex-1 min-h-[45px]",children:(0,a.jsx)(x.A,{children:e.member?.name||"N/A"})})})]}),(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsxs)("button",{onClick:()=>f(e),className:"text-red-600 hover:text-red-800 flex items-center gap-2",children:[(0,a.jsx)(c.A,{className:"h-5 w-5"}),(0,a.jsx)("span",{children:"Remove from team"})]})})]},e.id))})}):(0,a.jsx)("div",{className:"p-6 text-center text-gray-500",children:"No members assigned to this team"})]})]})}var f=t(13220),g=t(20994);let y=(0,t(5811).PA)(function(){let e=(0,f.Hh)("members");return e.valid?(0,a.jsx)(r.A,{windowTitle:"Team Email Subscriptions","data-sentry-element":"AdminLayout","data-sentry-component":"TeamsPage","data-sentry-source-file":"index.tsx",children:(0,a.jsxs)("div",{className:"p-8",children:[(0,a.jsx)("h1",{className:"text-2xl font-bold mb-4",children:"Team Email Subscriptions"}),(0,a.jsx)(b,{"data-sentry-element":"TeamManagement","data-sentry-source-file":"index.tsx"})]})}):(0,g.A)(e)})},44842:(e,s,t)=>{"use strict";t.d(s,{T:()=>a});let a=[{value:"MEMBERSHIP",label:"Membership Team",description:"Member onboarding, dues management, and other tasks"},{value:"APPLICATIONS",label:"Applications Team",description:"Member application review and processing"},{value:"CALENDAR",label:"Calendar Team",description:"Event reviewing, scheduling, and publishing"},{value:"MODERATORS",label:"Forum Moderators",description:"Content moderation and forum governance"}]},45561:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var a=t(37876),r=t(49995);function n({children:e,className:s}){return(0,a.jsx)("div",{className:(0,r.A)("border border-new-gray-100 shadow-gf-lg rounded-2xl",s),"data-sentry-component":"ItemCard","data-sentry-source-file":"ItemCard.tsx",children:e})}},53359:(e,s,t)=>{"use strict";t.d(s,{A:()=>d});var a=t(37876),r=t(80229),n=t(81684),l=t(54587),i=t.n(l);function d(e){let s,{className:t,domRef:l}=e,{photoUrl:d}=e,m=e.photoSize||40;s=e.photoSize?{...{minWidth:`${m}px`,maxWidth:`${m}px`,width:`${m}px`,height:`${m}px`},...e.style||{}}:e.style;let o=e.alt;return(e.name&&(o=`Member photo of ${e.name}`),d)?(0,a.jsx)(i(),{className:(0,r.Wd)(t,"rounded-full object-cover md:block"),ref:l,src:d,style:s,alt:o||"Member photo",width:m,height:m,"data-sentry-element":"Image","data-sentry-component":"AdminMemberPhoto","data-sentry-source-file":"AdminMemberPhoto.tsx"}):(0,a.jsx)(n.A,{className:(0,r.Wd)(t),style:s})}},58545:(e,s,t)=>{"use strict";t.d(s,{A:()=>c});var a=t(37876),r=t(14232),n=t(9327),l=t(24295);function i(e){let{member:s}=e;return(0,a.jsxs)("div",{className:"flex","data-sentry-component":"MemberSearchResult","data-sentry-source-file":"MemberSearchResult.tsx",children:[(0,a.jsx)("div",{className:"pr-4",children:(0,a.jsx)(l.g,{url:s.photo?.url,"data-sentry-element":"PersonPhoto","data-sentry-source-file":"MemberSearchResult.tsx"})}),(0,a.jsxs)("div",{children:[s.name,(0,a.jsx)("br",{}),s.title]})]})}var d=t(55494),m=t(43371),o=t(78248);function c(e){let s=(0,r.useRef)(null),[t,l]=(0,r.useState)([]),[c]=(0,o._)(d.VW);async function h(s){if(1===s.length)return;let t={search:s,limit:20,...e.apiParams},a=await c({variables:t});!a.error&&a.data&&l(a.data.listMembers2.results.map(m.hX))}return(0,a.jsx)(n.EM,{inputRef:s,onSearch:h,onItemSelected:function(s){let a=t.find(e=>e.id===s.id),r=(0,m.ZI)(a);l([]);let{onSelected:n}=e;n&&n(r)},items:t,placeholder:e.searchPlaceholder||"Add event host by nameâ¦",mapResultItem:function(e){let s=(0,m.Uw)(e);return(0,a.jsx)(i,{member:s,"data-sentry-element":"MemberSearchResult","data-sentry-component":"mapResultItem","data-sentry-source-file":"MemberSearch.tsx"})},searchInputTestId:e.searchInputTestId,"data-sentry-element":"ItemSearch","data-sentry-component":"MemberSearch","data-sentry-source-file":"MemberSearch.tsx"})}},73695:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var a=t(37876),r=t(49995);function n({children:e,className:s}){return(0,a.jsx)("div",{className:(0,r.A)("text-new-green-900 text-xl font-bold",s),"data-sentry-component":"ItemTitle","data-sentry-source-file":"ItemTitle.tsx",children:e})}},97545:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_admin/teams",function(){return t(32953)}])}},e=>{e.O(0,[7214,9481,585,636,6593,8792],()=>e(e.s=97545)),_N_E=e.O()}]); 2//# sourceMappingURL=teams-b160e383ca767419.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.