import{a as Pe}from"/_static/build/_shared/chunk-65TMP2FN.js";import{a as we}from"/_static/build/_shared/chunk-D4P2EC56.js";import{a as je}from"/_static/build/_shared/chunk-X77ACCM5.js";import{a as Re}from"/_static/build/_shared/chunk-4OBGY6C7.js";import{a as Ye}from"/_static/build/_shared/chunk-VOHRDSDY.js";import{g as H}from"/_static/build/_shared/chunk-LIUPVHJG.js";import{a as Le}from"/_static/build/_shared/chunk-NIDHIKO7.js";import{a as ke}from"/_static/build/_shared/chunk-YGSRLJ3Y.js";import{a as Q,b as Z}from"/_static/build/_shared/chunk-SPICU6X2.js";import{g as Ce}from"/_static/build/_shared/chunk-TJ656D24.js";import{e as U,f as Ne}from"/_static/build/_shared/chunk-VY2HDHPA.js";import{a as Ge}from"/_static/build/_shared/chunk-7VTL57B4.js";import{c as G}from"/_static/build/_shared/chunk-LEGNDWHX.js";import{a as be}from"/_static/build/_shared/chunk-FB672GBD.js";import{a as ye}from"/_static/build/_shared/chunk-BWXS67QY.js";import{a as ve}from"/_static/build/_shared/chunk-43XYOPMO.js";import{a as le,b as Y,c as he}from"/_static/build/_shared/chunk-5DQUMVF3.js";import{g as ge}from"/_static/build/_shared/chunk-E524X3JK.js";import{a as $}from"/_static/build/_shared/chunk-2XGFHNAL.js";import{a as V}from"/_static/build/_shared/chunk-SETWSQBN.js";import{C as fe,D as J,E,G as xe,c as me,g as de,m as ce,n as R,p as ue,s as pe,w as M}from"/_static/build/_shared/chunk-Z6UT7YKP.js";import{f as S}from"/_static/build/_shared/chunk-UUKJBWK6.js";import{a as oe}from"/_static/build/_shared/chunk-T34BH7WI.js";import{a as ne}from"/_static/build/_shared/chunk-VJXMEMVM.js";import{b as se,e as re,h as y,i as z,n as O,p as ie}from"/_static/build/_shared/chunk-UNIRKE32.js";import{a as K,b as f}from"/_static/build/_shared/chunk-56P5FCB6.js";import{c as l}from"/_static/build/_shared/chunk-6BUZZK5G.js";var at=l(ne(),1);var b=l(K(),1);var L=l(f(),1),Ie=({children:s,title:r,type:u})=>{let g=()=>{switch(u){case"error":return(0,L.jsx)(xe,{className:"h-5 w-5 text-red-400","aria-hidden":"true"});case"warning":return(0,L.jsx)(ue,{className:"h-5 w-5 text-yellow-400","aria-hidden":"true"});default:return(0,L.jsx)(de,{className:"h-5 w-5 text-green-400","aria-hidden":"true"})}},d={error:{bg:"bg-red-50",textBold:"text-red-800",text:"text-red-700"},warning:{bg:"bg-yellow-50",textBold:"text-yellow-800",text:"text-yellow-700"},success:{bg:"bg-green-50",textBold:"text-green-800",text:"text-green-700"}};return(0,L.jsx)("div",{className:`rounded-md ${d[u].bg} p-4`,children:(0,L.jsxs)("div",{className:"flex",children:[(0,L.jsx)("div",{className:"flex-shrink-0",children:g()}),(0,L.jsxs)("div",{className:"ml-3",children:[(0,L.jsx)("h3",{className:`text-sm font-medium ${d[u].textBold}`,children:r}),(0,L.jsx)("div",{className:`mt-2 text-sm ${d[u].text}`,children:s})]})]})})};var te=l(je(),1),st=l(ye(),1),rt=l(Le(),1),it=l(oe(),1);var Ae="/_static/build/_assets/chapter-ZZDXIWE5.css";var nt=l(Re(),1);var _e=l(ne(),1);var Ue=l(K(),1),qe=l(Ye(),1);var c=l(f(),1),Me=s=>(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:"relative mx-auto -mt-12 max-w-7xl px-6 pb-16 lg:px-8",children:(0,c.jsx)("section",{children:(0,c.jsxs)("div",{className:"bg-white shadow sm:rounded-lg",children:[(0,c.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,c.jsx)("h2",{className:"text-lg font-medium leading-6 text-gray-900",children:"Overview"})}),(0,c.jsxs)("div",{className:"px-4 pb-5 sm:px-6",children:[(0,c.jsx)("div",{className:"flex items-center text-sm leading-loose text-gray-500 ",children:s.description||`${s.name} doesn't have a description set`}),(0,c.jsxs)("div",{className:"mt-6",children:[(0,c.jsx)("h3",{className:"text-base font-medium leading-6 text-gray-900",children:"Email"}),(0,c.jsx)("div",{className:"flex items-center text-sm leading-loose text-gray-500 ",children:s.email||`${s.name} doesn't have an email set`})]}),(0,c.jsxs)("div",{className:"mt-6",children:[(0,c.jsx)("h3",{className:"text-base font-medium leading-6 text-gray-900",children:"Phone"}),(0,c.jsx)("div",{className:"flex items-center text-sm leading-loose text-gray-500 ",children:s.phone!==void 0&&s.phone!==0?s.phone:`${s.name} doesn't have a phone number set`})]}),(0,c.jsxs)("div",{className:"mt-6",children:[(0,c.jsx)("h3",{className:"text-base font-medium leading-6 text-gray-900",children:"Address"}),(0,c.jsx)("div",{className:"flex items-center text-sm leading-loose text-gray-500 ",children:s.address.street&&s.address.city&&s.address.state&&s.address.postalCode?[s.address.street,s.address.optional,s.address.city,s.address.state,s.address.postalCode].filter(r=>r!=="").join(", "):`${s.name} doesn't have an address set`})]}),(0,c.jsxs)("div",{className:"mt-6",children:[(0,c.jsx)("h3",{className:"text-base font-medium leading-6 text-gray-900",children:"Location"}),(0,c.jsx)("div",{className:"flex items-center text-sm leading-loose text-gray-500 ",children:s.location||`${s.name} doesn't have a location set`})]})]})]})})})});var C=l(f(),1),Se=s=>(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("div",{className:"relative mx-auto -mt-12 max-w-7xl px-6 pb-16 lg:px-8",children:(0,C.jsx)("section",{children:(0,C.jsxs)("div",{className:"bg-white shadow sm:rounded-lg",children:[(0,C.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,C.jsx)("h2",{className:"text-lg font-medium leading-6 text-gray-900",children:"Upcoming"})}),(0,C.jsx)("div",{className:"px-4 pb-5 sm:px-6",children:(0,C.jsxs)("div",{className:"flex items-center justify-center text-center text-sm leading-loose text-gray-500 ",children:[s.name," doesn\u2019t have any events."]})})]})})})});var W=l(f(),1),Xe=({emails:s,subject:r,body:u,className:g})=>{let d=`mailto:${s.join(",")}?${r?`subject=${r}`:""}${u?`&body=${u}`:""}`;return(0,W.jsxs)("a",{href:d,className:g,target:"_blank",rel:"noreferrer",children:[(0,W.jsx)(R,{className:"h-5 w-5 text-inherit","aria-hidden":"true"}),"Email"]})},De=Xe;var n=l(f(),1),$e=(s,r,u,g)=>(0,n.jsxs)(n.Fragment,{children:[s.description?(0,n.jsx)("div",{className:"relative mx-auto -mt-12 max-w-7xl px-6 pb-16 lg:px-8",children:(0,n.jsx)("section",{children:(0,n.jsxs)("div",{className:"bg-white shadow sm:rounded-lg",children:[(0,n.jsx)("div",{className:"px-4 py-5 sm:px-6 ",children:(0,n.jsx)("h2",{className:"text-lg font-medium leading-6 text-gray-900",children:"About"})}),(0,n.jsx)("div",{className:"px-4 pb-5 sm:px-6",children:(0,n.jsx)("div",{className:"flex items-center text-sm leading-loose text-gray-500 ",children:s.description})}),(0,n.jsx)("div",{className:" flex w-full justify-center border-t border-gray-200 px-4 py-3",children:(0,n.jsx)("button",{onClick:()=>g("about"),className:"text-md text-center font-medium text-gray-500 hover:text-agcra-yellow",children:"See all details"})})]})})}):null,s.officers.length>0?(0,n.jsx)("div",{className:"relative mx-auto -mt-12 max-w-7xl px-6 pb-16 lg:px-8",children:(0,n.jsx)("section",{children:(0,n.jsxs)("div",{className:"bg-white shadow sm:rounded-lg",children:[(0,n.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,n.jsx)("h2",{className:"text-lg font-medium leading-6 text-gray-900",children:"Officers"})}),(0,n.jsx)("div",{className:" flex w-full justify-center px-4 pb-5 sm:px-6",children:(0,n.jsx)("ul",{className:"grid w-full grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:s.officers.map((d,P)=>(0,n.jsxs)("li",{className:"col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg border bg-white text-center hover:shadow-md",children:[(0,n.jsxs)("div",{className:"relative flex flex-1 flex-col p-8",children:[d.avatar?(0,n.jsx)("img",{className:"mx-auto h-32 w-32 flex-shrink-0 rounded-full",src:d.avatar,alt:d.name}):(0,n.jsx)("span",{className:" h-32 w-32 self-center overflow-hidden rounded-full bg-gray-100",children:(0,n.jsx)("svg",{className:"h-full w-full flex-shrink-0 text-gray-300",fill:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"})})}),(0,n.jsxs)(y,{to:`/user/${d.id}`,className:"focus:outline-none",children:[(0,n.jsx)("span",{className:"absolute inset-0","aria-hidden":"true"}),(0,n.jsx)("div",{className:"mt-6 flex items-center justify-center",children:(0,n.jsx)("h3",{className:"mt-6 text-sm font-medium text-gray-900",children:d.name})})]}),(0,n.jsxs)("dl",{className:"mt-1 flex flex-grow flex-col justify-between",children:[d.title?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("dt",{className:"sr-only",children:"Title"}),(0,n.jsx)("dd",{className:"text-sm text-gray-500",children:d.title})]}):null,u.find(p=>p.id===d.id)?.rank!==""?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("dt",{className:"sr-only",children:"Role"}),(0,n.jsx)("dd",{className:"mt-3",children:(0,n.jsx)("span",{className:"rounded-full bg-green-100 px-2 py-1 text-xs font-medium text-green-800",children:U(u.find(p=>p.id===d.id)?.rank||"")})})," "]}):null]})]}),(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:"-mt-px flex divide-x divide-gray-200 ",children:[d.email?(0,n.jsx)("div",{className:"flex w-0 flex-1 ",children:(0,n.jsx)(De,{emails:[d.email],className:"relative -mr-px inline-flex w-0 flex-1 items-center justify-center gap-x-3 rounded-bl-lg border border-transparent py-4 text-sm font-semibold text-gray-700 hover:bg-agcra-yellow hover:text-white"})}):null,d.phone!==void 0&&d.phone!==0?(0,n.jsx)("div",{className:"-ml-px flex w-0 flex-1",children:(0,n.jsxs)("a",{href:`tel:${d.phone}`,className:"relative inline-flex w-0 flex-1 items-center justify-center gap-x-3 rounded-br-lg border border-transparent py-4 text-sm font-semibold text-gray-700 hover:bg-agcra-yellow hover:text-white",children:[(0,n.jsx)(M,{className:"h-5 w-5 text-inherit","aria-hidden":"true"}),"Call"]})}):null]})})]},P))})})]})})}):null,r&&r.length>0?(0,n.jsx)("div",{className:"relative mx-auto -mt-12 max-w-7xl px-6 pb-16 lg:px-8",children:(0,n.jsx)("section",{children:(0,n.jsxs)("div",{className:"bg-white shadow sm:rounded-lg",children:[(0,n.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,n.jsx)("h2",{className:"text-lg font-medium leading-6 text-gray-900",children:"Latest Posts"})}),(0,n.jsx)("div",{className:"px-4 pb-5 sm:px-6",children:(0,n.jsx)(G,{articles:r})})]})})}):null]});var T=l(K(),1);var i=l(f(),1),Ee=({user:s,chapter:r,memberRanks:u,allMembers:g})=>{let[d,P]=(0,T.useState)(g),[p,I]=(0,T.useState)(""),x=(0,T.useRef)(null);(0,T.useEffect)(()=>{let o=g;p&&(o=o.filter(w=>w.firstName.toLowerCase().includes(p.toLowerCase())||w.lastName.toLowerCase().includes(p.toLowerCase())||w.email.toLowerCase().includes(p.toLowerCase())||U(w.rank).toLowerCase().includes(p.toLowerCase())||Ne(w.status).toLowerCase().includes(p.toLowerCase())||r.officers.find(h=>h.id==w.id)?.title.toLowerCase().includes(p.toLowerCase()))),P(o)},[g,r.officers,p]);let A=()=>s===void 0?!1:ke(s,s,r.id),v=o=>(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,i.jsx)("div",{className:"flex items-center justify-center text-center text-sm leading-loose text-gray-500 ",children:o})})});return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"relative mx-auto -mt-12 max-w-7xl px-6 pb-16 lg:px-8",children:(0,i.jsx)("section",{children:(0,i.jsxs)("div",{className:"bg-white shadow sm:rounded-lg",children:[(0,i.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,i.jsxs)("h2",{className:"text-lg font-medium leading-6 text-gray-900",children:[g.length," Members"]})}),s?(0,i.jsx)(i.Fragment,{children:s.membership.status==="active"?(0,i.jsx)(i.Fragment,{children:A()?(0,i.jsx)(i.Fragment,{children:g.length>0?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"px-4 py-5 sm:px-6",children:[(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("label",{htmlFor:"search",className:"sr-only",children:"search all members"}),(0,i.jsx)("input",{ref:x,type:"text",name:"search",id:"search",className:"block w-full rounded-md border-gray-300 shadow-sm focus:border-agcra-blue focus:ring-agcra-blue sm:text-sm",placeholder:"Search members by name, title, status, or email...",onChange:o=>{I(o.currentTarget.value)}}),(0,i.jsx)("button",{type:"submit",className:"ml-4 flex-shrink-0 rounded-md border border-transparent bg-agcra-blue px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-agcra-yellow focus:outline-none focus:ring-2 focus:ring-agcra-blue focus:ring-offset-2",onClick:()=>{x.current&&I(x.current.value)},children:"Search"})]}),(0,i.jsx)("ul",{className:"mt-6 grid w-full grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:d.map((o,w)=>(0,i.jsxs)("li",{className:"col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg border bg-white text-center hover:shadow-md",children:[(0,i.jsxs)("div",{className:"relative flex flex-1 flex-col p-8",children:[o.avatar?(0,i.jsx)("img",{className:"mx-auto h-32 w-32 flex-shrink-0 rounded-full",src:o.avatar,alt:o.firstName.concat(" ",o.lastName)}):(0,i.jsx)("span",{className:" h-32 w-32 self-center overflow-hidden rounded-full bg-gray-100",children:(0,i.jsx)("svg",{className:"h-full w-full flex-shrink-0 text-gray-300",fill:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"})})}),(0,i.jsxs)(y,{to:`/user/${o.id}`,className:"focus:outline-none",children:[(0,i.jsx)("span",{className:"absolute inset-0","aria-hidden":"true"}),(0,i.jsx)("div",{className:"mt-6 flex items-center justify-center",children:(0,i.jsx)("h3",{className:"mt-6 text-sm font-medium text-gray-900",children:o.firstName.concat(" ",o.lastName)})})]}),(0,i.jsxs)("dl",{className:"mt-1 flex flex-grow flex-col justify-between",children:[r.officers.find(h=>h.id==o.id)?(0,i.jsx)(i.Fragment,{children:r.officers.find(h=>h.id==o.id)?.title?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{className:"sr-only",children:"Title"}),(0,i.jsx)("dd",{className:"text-sm text-gray-500",children:r.officers.find(h=>h.id==o.id)?.title})]}):null}):null,u.find(h=>h.id===o.id)?.rank!==""?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{className:"sr-only",children:"Role"}),(0,i.jsx)("dd",{className:"mt-3",children:(0,i.jsx)("span",{className:"rounded-full bg-green-100 px-2 py-1 text-xs font-medium text-green-800",children:U(u.find(h=>h.id===o.id)?.rank||"")})})," "]}):null]})]}),(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"-mt-px flex divide-x divide-gray-200 ",children:[o.email?(0,i.jsx)("div",{className:"flex w-0 flex-1 ",children:(0,i.jsxs)("a",{href:`mailto:${o.email}`,className:"relative -mr-px inline-flex w-0 flex-1 items-center justify-center gap-x-3 rounded-bl-lg border border-transparent py-4 text-sm font-semibold text-gray-700 hover:bg-agcra-yellow hover:text-white",children:[(0,i.jsx)(R,{className:"h-5 w-5 text-inherit","aria-hidden":"true"}),"Email"]})}):null,o.phone!==null&&o.phone!==0?(0,i.jsx)("div",{className:"-ml-px flex w-0 flex-1",children:(0,i.jsxs)("a",{href:`tel:${o.phone}`,className:"relative inline-flex w-0 flex-1 items-center justify-center gap-x-3 rounded-br-lg border border-transparent py-4 text-sm font-semibold text-gray-700 hover:bg-agcra-yellow hover:text-white",children:[(0,i.jsx)(M,{className:"h-5 w-5 text-inherit","aria-hidden":"true"}),"Call"]})}):null]})})]},w))})]})}):null}):v(`You are not authorized to view ${r.name}'s members.`)}):v(`You must have an active membership to view ${r.name}'s members.`)}):v(`Please login to view ${r.name}'s members.`)]})})})})};var k=l(f(),1),Te=s=>(0,k.jsx)(k.Fragment,{children:s&&s.length>0?(0,k.jsx)("div",{className:"relative mx-auto -mt-12 max-w-7xl px-6 pb-16 lg:px-8",children:(0,k.jsx)("section",{children:(0,k.jsxs)("div",{className:"bg-white shadow sm:rounded-lg",children:[(0,k.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,k.jsx)("h2",{className:"text-lg font-medium leading-6 text-gray-900",children:"Latest Posts"})}),(0,k.jsx)("div",{className:"px-4 pb-5 sm:px-6",children:(0,k.jsx)(G,{articles:s})})]})})}):null});var j=l(f(),1),Fe=s=>(0,j.jsx)(j.Fragment,{children:(0,j.jsx)("div",{className:"relative mx-auto -mt-12 max-w-7xl px-6 pb-16 lg:px-8",children:(0,j.jsx)("section",{children:(0,j.jsxs)("div",{className:"bg-white shadow sm:rounded-lg",children:[(0,j.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,j.jsx)("h2",{className:"text-lg font-medium leading-6 text-gray-900",children:"Shop"})}),(0,j.jsx)("div",{className:"px-4 pb-5 sm:px-6",children:(0,j.jsxs)("div",{className:"flex items-center justify-center text-center text-sm leading-loose text-gray-500 ",children:[s.name," doesn\u2019t have any products."]})})]})})})});var Ke=l(Ge(),1),Be=l(je(),1),ze=l(ye(),1),Qe=l(Le(),1),Ze=l(oe(),1),et=l(Re(),1);var a=l(f(),1);function Wt(){return[...Y()]}var X=s=>s.replace(/\(.*?\)/g,"").split(" ").map(r=>r[0]).join("");function tt(){let{user:s,chapter:r,articles:u,memberRanks:g,allMembers:d}=O(),{pathname:P}=se(),[p,I]=(0,Ue.useState)("home"),x=o=>{let w="join",h=o==="membership"?"/join":"/login",N="text-md inline-flex justify-center rounded-md bg-agcra-blue px-3 py-2 font-semibold text-white shadow-sm ring-1 ring-inset ring-gray-300";switch(o){case"join":N=S(N,"hover:bg-agcra-yellow");break;case"unjoin":w="Unjoin",N=S(N,"hover:bg-agcra-scarlet");break;default:return N=S(N,"hover:bg-agcra-yellow"),(0,a.jsxs)(y,{to:h,className:N,children:[(0,a.jsx)(E,{className:"-ml-0.5 mr-1.5 h-6 w-6 text-white","aria-hidden":"true"}),(0,a.jsx)("span",{children:w})]})}return(0,a.jsxs)("button",{type:"submit",className:N,children:[o=="unjoin"?(0,a.jsx)(J,{className:"-ml-0.5 mr-1.5 h-6 w-6 text-white","aria-hidden":"true"}):(0,a.jsx)(E,{className:"-ml-0.5 mr-1.5 h-6 w-6 text-white","aria-hidden":"true"}),(0,a.jsx)("span",{children:w})]})},A=()=>{if(r)switch(p){case"about":return Me(r);case"products":return Fe(r);case"events":return Se(r);case"posts":return Te(u);case"members":return(0,a.jsx)(Ee,{user:s,chapter:r,memberRanks:g,allMembers:d});default:return $e(r,u,g,I)}return(0,a.jsx)(a.Fragment,{})},v=[{name:"Home",href:"home",current:!0},{name:"About",href:"about",current:!1},{name:"Posts",href:"posts",current:!1},{name:"Members",href:"members",current:!1},{name:"Events",href:"events",current:!1}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(re,{}),(0,a.jsxs)("div",{className:"min-h-full",children:[(0,a.jsx)("div",{className:"bg-agcra-blue",children:(0,a.jsx)(he,{})}),r?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("main",{className:"lg:relative",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"relative z-10",children:(0,a.jsx)("img",{className:"h-72 w-full object-cover object-center ",src:r.headerImage||we,alt:r.name})}),(0,a.jsx)("div",{className:"relative mx-auto -mt-12 max-w-7xl px-6 pb-16 lg:px-8",children:(0,a.jsxs)("div",{className:"w-full bg-white px-6 shadow sm:rounded-lg",children:[(0,a.jsxs)("div",{className:"sm:flex sm:items-center sm:space-x-5",children:[(0,a.jsx)("div",{className:"flex",children:r.logo?(0,a.jsx)("img",{className:"z-10 h-24 w-24 rounded-full object-cover object-center ring-4 ring-white sm:h-32 sm:w-32",src:r.logo,alt:r.name}):(0,a.jsx)("div",{className:S(ee[r.region]||"bg-gray-500"," z-10 mx-auto flex h-24 w-24 items-center justify-center overflow-hidden rounded-full ring-4 ring-white sm:h-32 sm:w-32"),children:(0,a.jsx)("span",{className:"text-5xl font-medium leading-none text-white",children:X(r.name)})})}),(0,a.jsxs)("div",{className:"mt-6 max-sm:mt-0 sm:flex sm:min-w-0 sm:flex-1 sm:items-center sm:justify-end sm:space-x-6 sm:pb-1",children:[(0,a.jsxs)("div",{className:" min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 max-sm:mt-0 max-sm:mb-3 max-sm:justify-center",children:[r.region?(0,a.jsxs)("span",{className:S(ee[r.region]||"bg-gray-500","text-md mt-6 inline-flex items-center rounded-md px-2.5 py-0.5 font-medium text-white"),children:[(0,a.jsx)("svg",{className:"-ml-0.5 mr-1.5 h-2 w-2 text-white",fill:"currentColor",viewBox:"0 0 8 8",children:(0,a.jsx)("circle",{cx:4,cy:4,r:3})}),r.region]}):null,(0,a.jsxs)("span",{className:S(r.status!=="deactivated"?" bg-agcra-blue":"bg-gray-500","text-md mt-6 inline-flex items-center rounded-md px-2.5 py-0.5 font-medium capitalize text-white"),children:[(0,a.jsx)("svg",{className:"-ml-0.5 mr-1.5 h-2 w-2 text-white",fill:"currentColor",viewBox:"0 0 8 8",children:(0,a.jsx)("circle",{cx:4,cy:4,r:3})}),r.status]})]}),(0,a.jsx)("h1",{className:" text-2xl font-bold text-gray-900 max-sm:mb-2 max-sm:text-center ",children:r.name})]}),(0,a.jsxs)("div",{className:"justify-stretch flex flex-col items-center space-y-3 sm:flex-row sm:space-y-0 sm:space-x-4",children:[r.status!=="inactive"&&r.status!=="deactivated"?(0,a.jsx)(a.Fragment,{children:s?s.membership.status!=="active"?x("membership"):(0,a.jsxs)(z,{action:P,method:"post",className:"flex w-full",children:[(0,a.jsx)("input",{type:"text",hidden:!0,name:"selectedChapter",id:"selectedChapter",defaultValue:r.id}),(0,a.jsx)("input",{type:"text",hidden:!0,name:"chapterName",id:"chapterName",defaultValue:r.name}),s&&r.id===s.chapterId?x("unjoin"):x("join")]}):x("login")}):null,r.email?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("a",{href:`mailto:${r.email}`,className:"inline-flex justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-agcra-yellow hover:text-white",children:[(0,a.jsx)(R,{className:"-ml-0.5 mr-1.5 h-5 w-5 text-inherit","aria-hidden":"true"}),(0,a.jsx)("span",{children:"Message"})]})}):null,r.phone!==void 0&&r.phone!==0?(0,a.jsxs)("a",{href:`tel:${r.phone}`,className:"inline-flex justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-agcra-yellow hover:text-white",children:[(0,a.jsx)(M,{className:"-ml-0.5 mr-1.5 h-5 w-5 text-inherit","aria-hidden":"true"}),(0,a.jsx)("span",{children:"Call"})]}):null]})]})]}),(0,a.jsx)("div",{className:" border-b border-gray-200 pb-5 sm:pb-0",children:(0,a.jsxs)("div",{className:"mt-3 sm:mt-4",children:[(0,a.jsxs)("div",{className:"sm:hidden",children:[(0,a.jsx)("label",{htmlFor:"current-tab",className:"sr-only",children:"Select a tab"}),(0,a.jsx)("select",{id:"current-tab",name:"current-tab",className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",defaultValue:v.find(o=>o.href==p)?.name,children:v.map(o=>(0,a.jsx)("option",{children:o.name},o.name))})]}),(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)("nav",{className:"-mb-px flex justify-end",children:v.map(o=>(0,a.jsx)("button",{onClick:()=>I(o.href),className:S(o.href===p?"border-agcra-blue text-agcra-blue":"border-transparent text-gray-500 hover:border-agcra-yellow hover:text-agcra-yellow","text-md whitespace-nowrap border-b-2 px-3 pb-5 font-medium"),"aria-current":o.href===p?"page":void 0,children:o.name},o.name))})})]})})]})}),A()]})})}):(0,a.jsx)(be,{title:"Chapter not found",subtitle:"The chapter you're looking for doesn't exist or has been deleted.",children:(0,a.jsxs)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:[(0,a.jsx)(y,{to:"/",className:"rounded-md bg-agcra-blue px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-agcra-yellow focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-agcra-blue",children:"Go back home"}),(0,a.jsx)(y,{to:"/chapters",className:"rounded-md bg-agcra-blue px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-agcra-yellow focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-agcra-blue",children:"Find a Chapter"}),(0,a.jsxs)(y,{to:"/contact-us/",className:"text-sm font-semibold text-gray-900",children:["Contact support",(0,a.jsx)("span",{"aria-hidden":"true",children:"\u2192"})]})]})}),(0,a.jsx)("div",{className:"relative bg-gray-50",children:(0,a.jsx)(le,{})})]})]})}var e=l(f(),1);function oa(){return[...Y(),{rel:"stylesheet",href:Ae}]}var ee={"Outside US":"bg-red-600","US Central":"bg-purple-600","US East":"bg-yellow-500","US West":"bg-green-500",inactive:"bg-gray-500",Inactive:"bg-gray-500"};function ot(){let{user:s,chapters:r,regions:u}=O(),g=ie(),{data:d}=g,P=200,[p,I]=(0,b.useState)(r),[x,A]=(0,b.useState)([]),[v,o]=(0,b.useState)(""),[w,h]=(0,b.useState)(!1),[N,B]=(0,b.useState)(),[ae,Oe]=(0,b.useState)(),[He,_]=(0,b.useState)(!1),q=(0,b.useRef)(null);(0,b.useEffect)(()=>{let t=r;if(v&&(t=t.filter(m=>m.name.toLowerCase().includes(v.toLowerCase())||m.status.toLowerCase().includes(v.toLowerCase())||m.location.toLowerCase().includes(v.toLowerCase())||m.fullAddress.toLowerCase().includes(v.toLowerCase())||m.email.toLowerCase().includes(v.toLowerCase())||m.officers.find(D=>D.name.toLowerCase().includes(v.toLowerCase())))),!x.length){I(t);return}I(t.filter(m=>x.find(D=>D.name===m.region)))},[x,r,v]);function F(...t){return t.filter(Boolean).join(" ")}function Ve(t){return x.length?x.find(m=>m.name===t)?"":"grayscale":""}let Je=t=>{if(t.preventDefault(),!N)return;let m=new FormData;m.append("selectedChapter",N.id),m.append("chapterName",N.name),B(null),h(!1),g.submit(m,{method:"post"})};return(0,e.jsxs)(e.Fragment,{children:[d?.success?(0,e.jsx)(Q,{type:"notification",children:(0,e.jsx)(Z,{show:!0,severity:"success",message:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("p",{className:"text-sm font-medium text-gray-900",children:`You have successfully joined ${r.find(t=>t.id===d.success)?.name}.`})})})}):null,d?.successRemove?(0,e.jsx)(Q,{type:"notification",children:(0,e.jsx)(Z,{show:!0,severity:"success",message:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("p",{className:"text-sm font-medium text-gray-900",children:`You have successfully removed from ${r.find(t=>t.id===d.successRemove)?.name}.`}),(0,e.jsx)("p",{className:"text-sm font-medium text-gray-900",children:"Sorry to see you go."})]})})}):null,(0,e.jsx)(ve,{title:"Chapters",children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"sm:flex sm:items-center",children:(0,e.jsx)("div",{className:"sm:flex-auto",children:(0,e.jsx)("h2",{className:"text-xl font-semibold text-gray-900",children:"Find a Chapter"})})}),(0,e.jsxs)("div",{className:"mt-6 flex",children:[(0,e.jsx)("label",{htmlFor:"search",className:"sr-only",children:"search all chapters"}),(0,e.jsx)("input",{ref:q,type:"text",name:"search",id:"search",className:"block w-full rounded-md border-gray-300 shadow-sm focus:border-agcra-blue focus:ring-agcra-blue sm:text-sm",placeholder:"Search Chapters by name, location, address, or officers...",onChange:t=>{o(t.currentTarget.value)}}),(0,e.jsx)("button",{type:"submit",className:"ml-4 flex-shrink-0 rounded-md border border-transparent bg-agcra-blue px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-agcra-yellow focus:outline-none focus:ring-2 focus:ring-agcra-blue focus:ring-offset-2",onClick:()=>{q.current&&o(q.current.value)},children:"Search"})]}),(0,e.jsx)("h2",{className:"mt-6 text-sm font-medium text-gray-500",children:"Filter By Locations"}),(0,e.jsx)("ul",{className:"mt-3 grid grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 lg:grid-cols-4",children:u.map(t=>(0,e.jsxs)("li",{role:"presentation",className:"col-span-1 flex cursor-pointer rounded-md  shadow-sm",onClick:()=>{if(x.length===u.length-1){A([]);return}x.find(m=>m.name===t.name)?A(()=>x.filter(m=>m.name!==t.name)):A(m=>[...m,t])},children:[(0,e.jsx)("div",{className:F(t.color||"",Ve(t.name),"flex w-16 flex-shrink-0 items-center justify-center rounded-l-md text-sm font-medium text-white"),children:X(t.name)}),(0,e.jsxs)("div",{className:" relative flex flex-1 items-center justify-between truncate rounded-r-md border-t border-r border-b border-gray-200 bg-white",children:[(0,e.jsxs)("div",{className:"flex-1 truncate px-4 py-2 text-sm",children:[(0,e.jsx)("p",{className:"font-medium text-gray-900 hover:text-gray-600",children:t.name}),(0,e.jsxs)("p",{className:"text-gray-500",children:[t.amount.chapters," Chapters"]}),(0,e.jsxs)("p",{className:"text-gray-500",children:[t.amount.members," Members"]})]}),x.find(m=>m.name===t.name)?(0,e.jsx)("div",{className:"flex-shrink-0 pr-2",children:(0,e.jsxs)("button",{type:"button",className:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-white bg-transparent text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-agcra-blue focus:ring-offset-2",onClick:()=>{A(()=>x.filter(m=>m.name!==t.name))},children:[(0,e.jsx)("span",{className:"sr-only",children:"Unselect Location"}),(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6",children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})]})}):null]})]},t.name))}),(0,e.jsx)("div",{className:"mt-5",children:d?.errors?.length?(0,e.jsx)(Ie,{type:"error",title:"An error occurred. Please try again later."}):null}),(0,e.jsx)("ul",{className:" mx-auto mt-20 grid w-full max-w-2xl grid-cols-1 gap-6 sm:grid-cols-2 lg:mx-0 lg:max-w-none lg:grid-cols-3 lg:gap-8",children:p.map((t,m)=>(0,e.jsxs)("li",{className:F(" relative flex flex-col justify-between overflow-hidden rounded-2xl border shadow-sm focus-within:ring-2 focus-within:ring-inset focus-within:ring-agcra-blue",s&&t.id===s.chapterId?"border-4 border-agcra-yellow":"border-gray-200"),children:[(0,e.jsxs)("div",{className:"py-10 px-8",children:[t.logo?(0,e.jsx)("img",{className:" mx-auto h-48 w-48 rounded-full object-cover object-center md:h-56 md:w-56",src:t.logo,alt:t.name}):(0,e.jsx)("div",{className:F(u.find(D=>D.name===t.region)?.color||"bg-gray-500","mx-auto flex h-48 w-48 items-center justify-center rounded-full  md:h-56 md:w-56"),children:(0,e.jsx)("span",{className:"text-5xl font-medium leading-none text-white",children:X(t.name)})}),(0,e.jsxs)(y,{to:`/chapters/${t.id}`,className:"focus:outline-none",children:[(0,e.jsx)("span",{className:"absolute inset-0","aria-hidden":"true"}),(0,e.jsxs)("div",{className:"mt-6 flex items-center justify-center",children:[(0,e.jsx)("h3",{className:"text-center text-2xl font-semibold tracking-tight text-gray-600",children:t.name}),s&&t.id===s.chapterId?(0,e.jsx)("div",{className:"ml-3 inline-block flex-shrink-0 rounded-full bg-agcra-yellow px-2 py-0.5 text-xs font-medium text-black",children:"Member"}):null]})]}),t.address.street&&t.address.city&&t.address.state&&t.address.postalCode?(0,e.jsxs)("p",{className:"mt-4 flex items-start text-sm text-gray-600 ",children:[(0,e.jsx)(pe,{className:"mr-2 h-5 w-5 flex-shrink-0 text-gray-400","aria-hidden":"true"}),[t.address.street,t.address.optional,t.address.city,t.address.state,t.address.postalCode].filter(D=>D!=="").join(", ")]}):null,t.email&&t.email!=="null"?(0,e.jsxs)("p",{className:"mt-4 flex items-start text-sm text-gray-600 ",children:[(0,e.jsx)(R,{className:"mr-2 h-5 w-5 flex-shrink-0 text-gray-400","aria-hidden":"true"}),t.email]}):null,(0,e.jsx)("p",{className:"description mt-4 text-base leading-7 text-gray-600",children:t.description.length>P?`${t.description.substring(0,P)}...`:t.description})]}),(0,e.jsx)("div",{children:(0,e.jsxs)("div",{className:"-mt-px flex divide-x divide-gray-200 border-t ",children:[t.status!=="inactive"&&t.status!=="deactivated"?(0,e.jsx)("div",{className:"flex w-0 flex-1",children:s?s.membership.status!=="active"?(0,e.jsxs)(y,{to:"/join",className:"relative inline-flex w-0 flex-1 items-center justify-center  py-4 text-sm font-medium text-gray-700 hover:bg-agcra-yellow hover:text-white",children:[(0,e.jsx)(E,{className:"h-5 w-5 text-inherit","aria-hidden":"true"}),(0,e.jsx)("span",{className:"ml-3",children:"Join"})]}):(0,e.jsx)(z,{id:"modal",onSubmit:Je,className:"flex w-full",children:s&&t.id===s.chapterId?(0,e.jsxs)("button",{type:"submit",onClick:()=>B(t),className:" relative  -mr-px inline-flex w-0 flex-1 items-center justify-center rounded-bl-lg border border-transparent py-4 text-sm font-medium text-gray-700 hover:bg-agcra-scarlet  hover:text-white",children:[(0,e.jsx)(J,{className:"h-5 w-5 text-inherit","aria-hidden":"true"}),(0,e.jsx)("span",{className:"ml-3",children:"Unjoin"})]}):(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("button",{type:s.chapterId?"button":"submit",onClick:()=>{B(t),s.chapterId&&h(!1)},className:" relative  -mr-px inline-flex w-0 flex-1 items-center justify-center rounded-bl-lg border border-transparent py-4 text-sm font-medium text-gray-700 hover:bg-agcra-yellow hover:text-white",children:[(0,e.jsx)(E,{className:"h-5 w-5 text-inherit","aria-hidden":"true"}),(0,e.jsx)("span",{className:"ml-3",children:"Join"})]})})}):(0,e.jsxs)(y,{to:"/login",className:"relative inline-flex w-0 flex-1 items-center justify-center  py-4 text-sm font-medium text-gray-700 hover:bg-agcra-yellow hover:text-white",children:[(0,e.jsx)(E,{className:"h-5 w-5 text-inherit","aria-hidden":"true"}),(0,e.jsx)("span",{className:"ml-3",children:"Join"})]})}):null,t.officers.length>0?(0,e.jsx)("div",{className:"flex w-0 flex-1",children:(0,e.jsxs)("button",{className:"relative -mr-px inline-flex w-0 flex-1 items-center justify-center py-4 text-sm font-medium text-gray-700 hover:bg-agcra-yellow hover:text-white",onClick:()=>{Oe(t),_(!0)},children:[(0,e.jsx)(fe,{className:"h-5 w-5 text-inherit","aria-hidden":"true"}),(0,e.jsx)("span",{className:"ml-3",children:"Officers"})]})}):null,(0,e.jsx)("div",{className:"-ml-px flex w-0 flex-1",children:(0,e.jsxs)(y,{to:`/chapters/${t.id}`,className:"relative inline-flex w-0 flex-1 items-center justify-center  py-4 text-sm font-medium text-gray-700 hover:bg-agcra-yellow hover:text-white",children:[(0,e.jsx)("span",{className:"mr-3",children:"More"}),(0,e.jsx)(me,{className:"h-5 w-5 text-inherit","aria-hidden":"true"})]})})]})})]},m))}),p.length?null:(0,e.jsx)("p",{children:"No Chapters Found. "})]})}),(0,e.jsx)(V.Root,{show:He,as:b.Fragment,children:(0,e.jsxs)(H,{as:"div",className:"relative z-10",onClose:_,children:[(0,e.jsx)("div",{className:"fixed inset-0"}),(0,e.jsx)("div",{className:"fixed inset-0 overflow-hidden",children:(0,e.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,e.jsx)("div",{className:"pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10 sm:pl-16",children:(0,e.jsx)(V.Child,{as:b.Fragment,enter:"transform transition ease-in-out duration-500 sm:duration-700",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-700",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",children:(0,e.jsx)(H.Panel,{className:"pointer-events-auto w-screen max-w-md",children:(0,e.jsxs)("div",{className:"flex h-full flex-col overflow-y-scroll bg-white shadow-xl",children:[(0,e.jsx)("div",{className:"p-6",children:(0,e.jsxs)("div",{className:"flex items-start justify-between",children:[(0,e.jsxs)(H.Title,{className:"text-base font-semibold leading-6 text-gray-900",children:[`${ae?.name}'s`," Officers"]}),(0,e.jsx)("div",{className:"ml-3 flex h-7 items-center",children:(0,e.jsxs)("button",{type:"button",className:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:ring-2 focus:ring-agcra-blue",onClick:()=>_(!1),children:[(0,e.jsx)("span",{className:"sr-only",children:"Close panel"}),(0,e.jsx)(ge,{className:"h-6 w-6","aria-hidden":"true"})]})})]})}),(0,e.jsx)("ul",{className:"flex-1 divide-y divide-gray-200 overflow-y-auto",children:ae?.officers.map(t=>(0,e.jsx)("li",{children:(0,e.jsxs)("div",{className:"group relative flex items-center py-6 px-5",children:[(0,e.jsxs)(y,{to:`/user/${t.id}`,className:"-m-1 block flex-1 p-1",children:[(0,e.jsx)("div",{className:"absolute inset-0 group-hover:bg-gray-50","aria-hidden":"true"}),(0,e.jsxs)("div",{className:"relative flex min-w-0 flex-1 items-center",children:[(0,e.jsx)("span",{className:"relative inline-block flex-shrink-0",children:t.avatar?(0,e.jsx)("img",{className:"h-10 w-10 rounded-full object-cover",src:t.avatar,alt:`${t.name}'s profile`}):(0,e.jsx)("span",{className:"inline-block h-10 w-10 overflow-hidden rounded-full bg-gray-100",children:(0,e.jsx)("svg",{className:"h-full w-full text-gray-300",fill:"currentColor",viewBox:"0 0 24 24",children:(0,e.jsx)("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"})})})}),(0,e.jsxs)("div",{className:"ml-4 truncate",children:[(0,e.jsx)("p",{className:"truncate text-sm font-medium text-gray-900",children:t.name}),(0,e.jsx)("p",{className:"truncate text-sm text-gray-500",children:t.title})]})]})]}),(0,e.jsxs)($,{as:"div",className:"relative ml-2 inline-block flex-shrink-0 text-left",children:[(0,e.jsxs)($.Button,{className:"group relative inline-flex h-8 w-8 items-center justify-center rounded-full bg-white focus:outline-none focus:ring-2 focus:ring-agcra-blue focus:ring-offset-2",children:[(0,e.jsx)("span",{className:"sr-only",children:"Open options menu"}),(0,e.jsx)("span",{className:"flex h-full w-full items-center justify-center rounded-full",children:(0,e.jsx)(ce,{className:"h-5 w-5 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"})})]}),(0,e.jsx)(V,{as:b.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,e.jsx)($.Items,{className:"absolute top-0 right-9 z-10 w-48 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,e.jsxs)("div",{className:"py-1",children:[(0,e.jsx)($.Item,{children:({active:m})=>(0,e.jsxs)(y,{to:`/user/${t.id}`,className:F(m?"bg-gray-100 text-gray-900":"text-gray-700","flex items-center px-4 py-2 text-sm"),children:[(0,e.jsx)(Ce,{className:"mr-2 h-5 w-5 text-gray-400","aria-hidden":"true"}),"View profile"]})}),t.phone!==void 0&&t.phone!==0?(0,e.jsx)($.Item,{children:({active:m})=>(0,e.jsxs)("a",{href:`tel:${t.phone}`,className:F(m?"bg-gray-100 text-gray-900":"text-gray-700","flex items-center px-4 py-2 text-sm"),children:[(0,e.jsx)(M,{className:"mr-2 h-5 w-5 text-gray-400","aria-hidden":"true"}),"Call"]})}):null,t.email?(0,e.jsx)($.Item,{children:({active:m})=>(0,e.jsxs)("a",{href:`mailto:${t.email}`,className:F(m?"bg-gray-100 text-gray-900":"text-gray-700","flex items-center px-4 py-2 text-sm"),children:[(0,e.jsx)(R,{className:"mr-2 h-5 w-5 text-gray-400","aria-hidden":"true"}),"Email"]})}):null]})})})]})]})},t.id))})]})})})})})})]})}),(0,e.jsx)(Pe,{show:N?!w:!1,close:()=>{h(!1),B(null)},title:"Are you sure?",form:"modal",content:(0,e.jsxs)("p",{className:"text-sm text-gray-500",children:["This will remove you from your current chapter, including any officer positions, notifications, and the like. Do you want to move to new chapter ",(0,e.jsx)("strong",{children:N?.name}),"?"]})})]})}export{oa as a,ot as b,Wt as c,tt as d};
