1import{t as e}from"./ref_local_storage-B1qENqPE.js";import{r as t,t as n}from"./http_v4-BbHsgtmU.js";import{n as r}from"./util_http-PqVh44uQ.js";import{c as i,l as a}from"./v4_api-BVm5xI2M.js";var o=(e,r)=>t.get(`/groups/${e}/upcoming-events`,{params:r,apiVersion:n.V2025_01_31}),s=(e,r)=>t.get(`/groups/${e}/past-events`,{params:r,apiVersion:n.V2025_01_31}),c=(e,r)=>t.get(`/groups/${e}/events`,{params:r?{...r,...r.statuses&&{statuses:r.statuses}}:void 0,apiVersion:n.V2025_01_31}),l=e=>t.get(`/groups/${e}/info`),u=(e,n)=>t.delete(`/groups/${e}/members/${n}`),d=e=>t.get(`/groups/${e}/membership-types`),f=e=>t.get(`/groups/${e}/peacom`),p=(e,n)=>t.get(`/groups/${e}/followers`,{params:n}),m=(e,n,r)=>{let i=new FormData;return i.append(`photo`,r.photo),t.post(`/groups/${e}/${n}/photos`,i)},h=(e,n)=>t.post(`/groups/${e}/members`,{userId:n}),g=(e,n,r)=>t.patch(`/groups/${e}/followers/${n}`,{userId:n,role:r}),_=(e,n)=>t.delete(`/groups/${e}/followers/${n}`),v=(e,n)=>t.post(`/groups/${e}/messages`,n),y=(e,n)=>t.post(`/groups/${e}/messages/organizer`,n),b=(e,n,r)=>t.post(`/groups/${e}/invitations`,{userIds:n,allEligible:r}),x=(e,n)=>t.delete(`/groups/${e}/invitations`,{params:n}),S=(e,n)=>t.get(`/groups/${e}/content-items`,{params:n}),C=(e,n)=>t.get(`/groups/${e}/content-items/${n}`),w=(e,n)=>t.post(`/groups/${e}/content-items`,n),T=(e,n,r)=>t.patch(`/groups/${e}/content-items/${n}`,r),E=(e,n,r)=>t.put(`/groups/${e}/content-items/${n}/status`,{status:r}),D=(e,n)=>t.delete(`/groups/${e}/content-items/${n}`),O=()=>{let t=localStorage.getItem(e.GROUP_PAGE);if(t)try{let e=JSON.parse(t);if(typeof e.podId==`string`)return e}catch{console.warn(`Failed to parse group data from localStorage`)}return{podId:``}},k=async e=>await a(e).then(e=>e.data.data).catch(e=>({isError:!0,status:e.status,statusText:e.statusText})),A=async e=>{try{let{data:t}=await l(e);return t}catch(e){return e?.data}},j=async(e,t)=>await i(e,t).then(e=>e.data.data).catch(e=>({isError:!0,status:e.status,statusText:e.statusText})),M=async(e,t)=>{try{let{data:n}=await p(e,t);return n}catch(e){return r(e)}},N={set(t){localStorage.setItem(e.GROUP_ID,t)},get(){return localStorage.getItem(e.GROUP_ID)},remove(){localStorage.removeItem(e.GROUP_ID)}},P=async(e,t)=>{try{let{data:n}=await o(e,t);return n}catch(e){return r(e)}},F=async(e,t)=>{try{let{data:n}=await s(e,t);return n}catch(e){return r(e)}},I=async(e,t)=>{try{let{data:n}=await c(e,t);return n}catch(e){return r(e)}},L=async(e,t)=>{try{let{data:n}=await S(e,t);return n}catch(e){return r(e)}},R=async(e,t)=>{try{let{data:n}=await C(e,t);return n}catch(e){return r(e)}},z=async(e,t,n)=>{try{let{data:r}=await T(e,t,n);return r}catch(e){return r(e)}},B=async(e,t,n)=>{try{let{data:r}=await E(e,t,n);return r}catch(e){return r(e)}},V=async(e,t)=>{try{await D(e,t)}catch(e){return r(e)}},H=async(e,t)=>{try{let{data:n}=await h(e,t);return n}catch(e){return r(e)}},U=async(e,t)=>{try{let{data:n}=await u(e,t);return n}catch(e){return r(e)}},W=async e=>{try{let{data:t}=await d(e);return t.data}catch(e){return r(e)}},G=async e=>{try{let{data:t}=await f(e);return t}catch(e){return r(e)}},K=async(e,t,n)=>{try{let{data:r}=await m(e,t,{photo:n});return r}catch(e){return r(e)}},q=async(e,t)=>{try{let{data:n}=await w(e,t);return n}catch(e){return r(e)}},J=async(e,t,n)=>{try{let{data:r}=await g(e,t,n);return r}catch(e){return r(e)}},Y=async(e,t)=>{try{let{data:n}=await _(e,t);return n}catch(e){return r(e)}},X=async(e,t)=>{try{let{data:n}=await v(e,t);return n}catch(e){return r(e)}},Z=async(e,t)=>{try{let{data:n}=await y(e,t);return n}catch(e){return r(e)}},Q=async(e,t,n=!1)=>{try{let{data:r}=await b(e,t,n);return r}catch(e){return r(e)}},$=async(e,t,n=!1)=>{try{let{data:r}=await x(e,{userIds:n?`all`:t.join(`,`)});return r}catch(e){return r(e)}};export{Q as C,J as E,$ as S,B as T,P as _,V as a,U as b,R as c,M as d,A as f,F as g,O as h,q as i,L as l,G as m,K as n,j as o,W as p,H as r,k as s,N as t,I as u,X as v,z as w,Z as x,Y as y};
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.