PageSourceSearch

https://www.arubavolunteers.org/assets/index-bIgJnXVP.js

js arubavolunteers.org collected 2026-10-04 02:16:44 UTC 3,776 bytes, 2 lines download raw bytes

1import{a as T,e as v,h as c,hI as E,z as _,p as k,hJ as D,hK as F,ad as u,hL as L,hM as A,j as a,A as l,hN as f}from"./index-ZWP6Dbbj.js";import{r}from"./vendor-DKtCm5W2.js";import{S as b}from"./Section-9c2B7Hiq.js";import{N as P}from"./NotificationItem-zw1WuF7u.js";import"./app-BUG-_G7c.js";import"./dayjs-timezone-iana-plugin-CmU3ItL3.js";import"./operations.graphql-B03L7CAc.js";import"./operations.graphql-DkCSgPZU.js";import"./operations.graphql-2grdW__p.js";import"./useRefetchOrgNavPendingDeeds-CC771tSr.js";import"./operations.graphql-CJ1dHQPp.js";import"./refetchApolloQueriesLogged-CeqJHF1L.js";try{let s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="a87b44fd-83ec-425b-aa71-29da3109534a",s._sentryDebugIdIdentifier="sentry-dbid-a87b44fd-83ec-425b-aa71-29da3109534a")}catch{}const R={en:"My Notifications",nl:"Mijn Notificaties"},B={en:"No notifications",nl:"Geen notificaties"},U={en:"Notifications from your %{g:organizations} could not be loaded. Please reload the page to try again.",nl:"Notificaties van je %{g:organizations} konden niet worden geladen. Herlaad de pagina om het opnieuw te proberen."},q={en:"%{org} Notifications",nl:"%{org} Notificaties"},G={en:"Some of these notifications could not be loaded, so this list may be incomplete. Please reload the page to try again.",nl:"Sommige van deze notificaties konden niet worden geladen, dus deze lijst is mogelijk onvolledig. Herlaad de pagina om het opnieuw te proberen."},H={en:"These notifications could not be loaded. Please reload the page to try again.",nl:"Deze notificaties konden niet worden geladen. Herlaad de pagina om het opnieuw te proberen."},C={en:"Notifications",nl:"Notificaties"},$={myNotifications:R,noNotifications:B,orgListUnavailable:U,orgNotifications:q,orgNotificationsMayBeIncomplete:G,orgNotificationsUnavailable:H,title:C},ni=s=>{const o=T($),d=v(),I=c(i=>i.myNotifications.loaded),j=c(i=>i.organizationNotifications.loaded),{organizations:m,error:x}=E(),z=c(i=>i.myNotifications.all),S=c(i=>i.organizationNotifications.byOrganization),w=_();k(o("title"));const g=r.useMemo(()=>[...m].sort((i,t)=>i.name.localeCompare(t.name,o.locale)),[m,o.locale]);r.useEffect(()=>{d(D()).then(async i=>{const t=i.filter(e=>!e.seen).map(e=>e.id);if(t.length!==0)return d(F({ids:t}))},w()).catch(u)},[]);const h=r.useRef(new Set),[O,M]=r.useState(()=>new Set);r.useEffect(()=>{for(const i of g)h.current.has(i.id)||(h.current.add(i.id),d(L({organization_id:i.id})).then(async t=>{const e=t.filter(n=>!n.seen).map(n=>n.id);if(e.length!==0)return d(A({organization_id:i.id,ids:e}))},t=>{M(e=>e.has(i.id)?e:new Set(e).add(i.id)),u(t)}).catch(u))},[g]);function N(i,t,e,n,p){return a.jsxs(b,{heading:i,bordered:!0,children:[p,e.length===0&&t&&a.jsx("span",{children:o("noNotifications")}),a.jsx("ul",{style:{listStyleType:"none",padding:0,marginBottom:"30px"},...l(f.list(n)),children:e.map(y=>a.jsx("li",{children:a.jsx(P,{notification:y})},`${n}-${y.id}`))})]},n)}return a.jsxs("div",{className:"container",children:[N(o("myNotifications"),I,z,"myNotifications"),x&&a.jsx("span",{...l(f.orgListLoadFailed),children:o("orgListUnavailable")}),g.map(i=>{const t=S[i.id],e=O.has(i.id),n=!!t&&t.length>0;if(e&&!n)return a.jsx(b,{heading:o("orgNotifications",{org:i.name}),bordered:!0,children:a.jsx("span",{...l(f.orgLoadFailed),children:o("orgNotificationsUnavailable")})},String(i.id));if(!n)return null;const p=e?a.jsx("span",{...l(f.orgMayBeIncomplete),children:o("orgNotificationsMayBeIncomplete")}
1):void 0;return N(o("orgNotifications",{org:i.name}),j,t,String(i.id),p)})]})};export{ni as default};
2//# sourceMappingURL=index-bIgJnXVP.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.