PageSourceSearch

https://my.mosingers.com/_next/static/chunks/pages/fundraising/donors-27d3025fe8c906d2.js

js mosingers.com collected 2026-10-04 11:22:07 UTC 13,278 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1223],{8710:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/fundraising/donors",function(){return n(28996)}])},74708:function(e,t,n){"use strict";n.d(t,{y:function(){return u}});var r=n(85893),o=n(67294),a=n(11163),i=n(59622),u=function(e){var t=e.children,n=e.mode,u=(0,a.useRouter)(),l=(0,o.useState)(!1),s=l[0],c=l[1],d=(0,o.useState)(!1),f=d[0],h=d[1],m="USER";return(0,o.useEffect)((function(){u.isReady&&(m===n||n.includes(m)?(c(!0),h(!0)):(c(!0),h(!1)))}),[u.isReady]),s?f?(0,r.jsx)(r.Fragment,{children:t}):(0,r.jsx)(i.default,{}):null}},71807:function(e,t,n){"use strict";n.d(t,{K:function(){return d},M:function(){return h}});var r=n(34727),o=n(14251),a=n(52875),i=n(46587),u=n(30120),l=n(29809),s=n(13307),c=n(67294),d=function(){var e=(0,l.Z)().config,t=(0,c.useState)((null===e||void 0===e?void 0:e.timezone)||"US/Central"),n=t[0],r=(t[1],(0,c.useCallback)((function(e){return u.ou.fromISO(e).setZone(n).toLocaleString(u.ou.DATE_SHORT)}),[n])),i=(0,c.useCallback)((function(e){return u.ou.fromISO(e).setZone(n).toLocaleString(u.ou.DATETIME_SHORT)}),[n]),s=(0,c.useCallback)((function(e){return u.ou.fromISO(e).setZone(n).toLocaleString(u.ou.DATE_MED)}),[n]),d=(0,c.useCallback)((function(e){return u.ou.fromISO(e).setZone(n).toLocaleString(u.ou.DATETIME_MED_WITH_WEEKDAY)}),[n]),f=(0,c.useCallback)((function(e){return u.ou.fromISO(e).setZone(n).toLocaleString(u.ou.DATE_MED_WITH_WEEKDAY)}),[n]),h=(0,c.useCallback)((function(e){return u.ou.fromISO(e).setZone(n).toLocaleString((0,a.Z)((0,o.Z)({},u.ou.DATE_MED_WITH_WEEKDAY),{weekday:"long"}))}),[n]),m=(0,c.useCallback)((function(e){return u.ou.fromISO(e).setZone(n).toLocaleString(u.ou.DATETIME_MED)}),[n]),v=(0,c.useCallback)((function(e){return u.ou.fromISO(e).setZone(n).toLocaleString((0,a.Z)((0,o.Z)({},u.ou.DATETIME_MED),{weekday:"long"}))}),[n]),g=(0,c.useCallback)((function(e){return u.ou.fromISO(e).setZone(n).toLocaleString(u.ou.DATETIME_FULL)}),[n]),p=(0,c.useCallback)((function(e){return u.ou.fromISO(e).setZone(n).toLocaleString((0,a.Z)((0,o.Z)({},u.ou.DATETIME_MED_WITH_WEEKDAY),{weekday:"long",month:"long"}))}),[n]),x=(0,c.useCallback)((function(e){return u.ou.fromISO(e).setZone(n).toLocaleString(u.ou.TIME_SIMPLE)}),[n]),Z=(0,c.useCallback)((function(e){var t=u.ou.fromISO(e).setZone(n);return"".concat(t.toLocaleString(u.ou.TIME_SIMPLE),", ").concat(t.toLocaleString(u.ou.DATE_SHORT))}),[n]);(0,c.useCallback)((function(e,t){return u.ou.fromISO(e).setZone(n).toLocaleString(u.ou[t])}),[n]);return{formatSlashesDate:r,formatDate:s,formatDateWithWeekday:f,formatDateWithLongWeekday:h,formatSlashes:i,displayFull:m,formatWithLongMonth:g,formatWithWeekday:d,formatWithLongWeekday:v,formatWithLongMonthLongWeekday:p,displayForTicketPackageDetails:(0,c.useCallback)((function(e){var t=u.ou.fromISO(e).setZone(n);return"".concat(t.toLocaleString(u.ou.TIME_SIMPLE),", ").concat(t.toLocaleString((0,a.Z)((0,o.Z)({},u.ou.DATE_MED_WITH_WEEKDAY),{weekday:"long"})))}),[n]),displayForCurrentCampaigns:(0,c.useCallback)((function(e){var t=u.ou.fromISO(e).setZone(n);return"".concat(t.toLocaleString((0,a.Z)((0,o.Z)({},u.ou.DATETIME_SHORT_WITH_SECONDS),{weekday:"short",minute:void 0})))}),[n]),displayTimeOnly:x,displayTimeFirstDate:Z,startOfDayAsISO:(0,c.useCallback)((function(e){return u.ou.fromJSDate(e).setZone(n).startOf("day").toISO()}),[n])}},f=function(){var e=(0,r.Z)((function(){var e;return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,s.P_)()];case 1:return[2,(null===(e=t.sent())||void 0===e?void 0:e.timezone)||"US/Central"]}}))}));return function(){return e.apply(this,arguments)}}(),h={isTheFuture:function(e){return u.ou.fromISO(e)>u.ou.now()},nowToUtcIso:function(){return u.ou.utc().toISO()},formatWithLongWeekday:function(e,t){return u.ou.fromISO(e).setZone(t).toLocaleString((0,a.Z)((0,o.Z)({},u.ou.DATETIME_MED),{weekday:"long"}))},formatWithLongMonthLongWeekday:function(e,t){return u.ou.fromISO(e).setZone(t).toLocaleString((0,a.Z)((0,o.Z)({},u.ou.DATETIME_MED_WITH_WEEKDAY),{weekday:"long",month:"long"}))},getTz:(0,r.Z)((function(){return(0,i.__generator)(this,(function(e){switch(e.label){case 0:return[4,f()];case 1:return[2,e.sent()]}}))}))}},94453:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=n(85893),o=(0,n(15295).Z)((0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})}),"Plus")},32707:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(85893),o=(0,n(15295).Z)((0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})}),"Search")},59622:function(e,t,n){"use strict";n.r(t);var r=n(85893),o=n(67294),a=n(41664),i=n.n(a),u=n(45955),l=n(66624),s=n(68592),c=n(77046),d=n(67398),f=n(13255),h=n(59084);t.default=function(){var e=(0,f.Z)(),t=(0,u.Z)(e.breakpoints.down("sm"));return(0,o.useEffect)((function(){h.w.push({event:"page_view"})}),[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l.Z,{component:"main",sx:{alignItems:"center",backgroundColor:"background.paper",display:"flex",flexGrow:1,py:"80px"},children:(0,r.jsxs)(s.Z,{maxWidth:"lg",children:[(0,r.jsx)(c.Z,{align:"center",variant:t?"h4":"h1",children:"404: The page you are looking for isn\u2019t here"}),(0,r.jsx)(c.Z,{align:"center",color:"textSecondary",sx:{mt:.5},variant:"subtitle2",children:"You either tried some shady route or you came here by mistake. Whichever it is, try using the navigation."}),(0,r.jsx)(l.Z,{sx:{display:"flex",justifyContent:"center",mt:6},children:(0,r.jsx)(l.Z,{alt:"Under development",component:"img",src:"/static/error/error404_".concat(e.palette.mode,".svg"),sx:{height:"auto",maxWidth:"100%",width:400}})}),(0,r.jsx)(l.Z,{sx:{display:"flex",justifyContent:"center",mt:6},children:(0,r.jsx)(i(),{href:"/",passHref:!0,children:(0,r.jsx)(d.Z,{component:"a",variant:"outlined",children:"Back to Dashboard"})})})]})})})}},28996:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var r=n(34727),o=n(14251),a=n(52875),i=n(46587),u=n(85893),l=n(13307),s=n(67294),c=n(41664),d=n.n(c),f=n(66624),h=n(68592),m=n(78047),v=n(77046),g=n(67398),p=n(74708),x=n(84498),Z=n(44747),S=n(75298),E=n(54937),j=n(32104),y=n(29350),_=n(81687),w=n(17271),I=n(85598),D=n(4810),b=n(855),T=n(36526),k=n(35526),C=n(91076),O=n(90021),L=n(47773),A=n(71807),M=n(32707),W=n(42660),F=function(e){var t=e.donors,n=(0,Z.Z)(e,["donors"]),r=(0,A.K)().formatDate,i=(0,s.use
1State)([]),l=i[0],c=i[1],h=(0,s.useState)(""),v=h[0],p=h[1],x=(0,s.useState)(W.wF.map((function(e){return e.value}))),F=x[0],N=x[1],H=(0,s.useState)(W.xc.map((function(e){return e.value}))),R=H[0],z=H[1],K=(0,s.useReducer)((function(e,t){var n=t.type,r=t.value,o=t.id;switch(n){case"set":return r;case"set-value":return{items:e.items.map((function(e){return e.id===o&&(e.value=r),e})),logicOperator:k.G.And};default:return e}}),{items:[{id:"nameFilter",field:"name",value:"",operator:"contains"},{id:"statusFilter",field:"status",value:"",operator:"one-of"},{id:"stageFilter",field:"stage",value:"",operator:"one-of"}],logicOperator:k.G.And}),P=K[0],U=K[1],Y=(0,C.A)();(0,s.useEffect)((function(){t&&c(t.map((function(e){var t,n;return{id:e.id,name:e.name,status:e.status,stage:e.stage,created:(null===(t=e.created)||void 0===t?void 0:t.datetime)?new Date(null===(n=e.created)||void 0===n?void 0:n.datetime):null}})))}),[t,r]),(0,s.useEffect)((function(){U({type:"set-value",id:"nameFilter",value:v})}),[v]),(0,s.useEffect)((function(){U({type:"set-value",id:"statusFilter",value:F})}),[F]),(0,s.useEffect)((function(){U({type:"set-value",id:"stageFilter",value:R})}),[R]);var V=[{field:"id"},{field:"name",headerName:"Donor",flex:2},{field:"status",headerName:"Status",flex:1,renderCell:function(e){var t=e.value,n=W.wF.find((function(e){return e.value===t}));return(0,u.jsx)(S.Z,{color:n.color,label:n.label.toUpperCase()})},filterOperators:[{label:"One of",value:"one-of",getApplyFilterFn:function(e){return e.field&&e.value&&e.operator?function(e){return F.includes(e)}:null}}]},{field:"stage",headerName:"Stage",flex:1,renderCell:function(e){var t=e.value,n=W.xc.find((function(e){return e.value===t}));return(0,u.jsx)(S.Z,{color:n.color,label:n.label.toUpperCase()})},filterOperators:[{label:"One of",value:"one-of",getApplyFilterFn:function(e){return e.field&&e.value&&e.operator?function(e){return R.includes(e)}:null}}]},{field:"created",headerName:"Date Created",flex:1,type:"date",valueFormatter:function(e){return e?r(e.toISOString()):e}},{field:"actions",headerName:"Action",flex:1,renderCell:function(e){var t=e.row;return(0,u.jsxs)(f.Z,{children:[(0,u.jsx)(d(),{href:"/fundraising/donors/".concat(t.id,"?tab=edit"),passHref:!0,children:(0,u.jsx)(g.Z,{component:"a",children:"Edit"})}),"|",(0,u.jsx)(d(),{href:"/fundraising/donors/".concat(t.id),passHref:!0,children:(0,u.jsx)(g.Z,{component:"a",children:"View"})})]})}}];return(0,u.jsx)(L.O,{children:(0,u.jsxs)(E.Z,(0,a.Z)((0,o.Z)({},n),{children:[(0,u.jsxs)(m.Z,{container:!0,spacing:3,sx:{p:2},children:[(0,u.jsx)(m.Z,{size:{xs:12,md:6},children:(0,u.jsx)(j.Z,{fullWidth:!0,value:v,onChange:function(e){return p(e.target.value)},placeholder:"Search name",slotProps:{input:{startAdornment:(0,u.jsx)(y.Z,{position:"start",children:(0,u.jsx)(M.o,{fontSize:"small"})})}}})}),(0,u.jsx)(m.Z,{size:{xs:12,md:3},children:(0,u.jsxs)(_.Z,{fullWidth:!0,children:[(0,u.jsx)(w.Z,{id:"statusLabel",children:"Status"}),(0,u.jsx)(I.Z,{multiple:!0,labelId:"statusLabel",value:F,label:"Status",onChange:function(e){var t=e.target.value;N("string"===typeof t?t.split(","):t)},renderValue:function(e){var t=e.map((function(e){return W.wF.find((function(t){return t.value===e})).label}));return t.length===W.wF.length?"All":0===t.length?"None":t.join(", ")},children:W.wF.map((function(e){return(0,u.jsxs)(D.Z,{value:e.value,children:[(0,u.jsx)(b.Z,{checked:F.includes(e.value)}),(0,u.jsx)(T.Z,{primary:e.label})]},e.value)}))})]})}),(0,u.jsx)(m.Z,{size:{xs:12,md:3},children:(0,u.jsxs)(_.Z,{fullWidth:!0,children:[(0,u.jsx)(w.Z,{id:"stageLabel",children:"Stage"}),(0,u.jsx)(I.Z,{multiple:!0,labelId:"stageLabel",value:R,label:"Stage",onChange:function(e){var t=e.target.value;z("string"===typeof t?t.split(","):t)},renderValue:function(e){var t=e.map((function(e){return W.xc.find((function(t){return t.value===e})).label}));return t.length===W.xc.length?"All":0===t.length?"None":t.join(", ")},children:W.xc.map((function(e){return(0,u.jsxs)(D.Z,{value:e.value,children:[(0,u.jsx)(b.Z,{checked:R.includes(e.value)}),(0,u.jsx)(T.Z,{primary:e.label})]},e.value)}))})]})})]}),(0,u.jsx)(O.K,{hideFooter:!0,apiRef:Y,columns:V,columnVisibilityModel:{id:!1},filterModel:P,onFilterModelChange:function(e){return U({type:"set",value:e})},rowHeight:80,rows:l,loading:!Array.isArray(t),initialState:{sorting:{sortModel:[{field:"created",sort:"desc"}]}}})]}))})},N=n(94453),H=n(59084),R=n(96486),z=n.n(R),K=function(){var e=(0,s.use
1State)(),t=e[0],n=e[1],c=(0,s.useCallback)((0,r.Z)((function(){var e,t,r,u,s,c;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return[4,(0,l.dZ)()];case 1:return e=i.sent(),t=z().uniq(e.map((function(e){return e.userId}))),u=z().compact,[4,(0,l.K2)(t,["id","firstName","lastName","email"])];case 2:return r=u.apply(z(),[i.sent()]),n((null!==e&&void 0!==e?e:[]).map((function(e){var t=r.find((function(t){return t.id===e.userId}));return(0,a.Z)((0,o.Z)({},e),{name:e.name||(t?"".concat(t.firstName," ").concat(t.lastName," (").concat(t.email,")"):"")})})).toSorted((function(e,t){var n,r;return new Date(null!==(s=null===(n=t.created)||void 0===n?void 0:n.datetime)&&void 0!==s?s:0).getTime()-new Date(null!==(c=null===(r=e.created)||void 0===r?void 0:r.datetime)&&void 0!==c?c:0).getTime()}))),[2]}}))})),[]);return(0,s.useEffect)((function(){H.w.push({event:"page_view"})}),[]),(0,s.useEffect)((function(){c()}),[c]),(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(f.Z,{component:"main",sx:{flexGrow:1,py:6},children:(0,u.jsxs)(h.Z,{maxWidth:"xl",children:[(0,u.jsxs)(m.Z,{container:!0,justifyContent:"space-between",wrap:"nowrap",spacing:3,children:[(0,u.jsx)(m.Z,{children:(0,u.jsx)(v.Z,{color:"textPrimary",variant:"h2",children:"Donor Cultivation List"})}),(0,u.jsx)(m.Z,{children:(0,u.jsx)(f.Z,{sx:{m:-1},children:(0,u.jsx)(d(),{href:"/fundraising/donors/new",passHref:!0,children:(0,u.jsx)(g.Z,{component:"a",color:"primary",startIcon:(0,u.jsx)(N.v,{fontSize:"small"}),sx:{m:1},variant:"contained",children:"Add Donor"})})})})]}),(0,u.jsx)(f.Z,{sx:{mt:3},children:(0,u.jsx)(F,{donors:t})})]})})})};K.getLayout=function(e){return(0,u.jsx)(p.y,{mode:"ADMIN",children:(0,u.jsx)(x.c,{children:e})})};var P=K},91076:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(67294),o=function(){return r.useRef(null)}}},function(e){e.O(0,[1664,8449,4450,9134,8904,6731,8047,854,5866,1362,1710,21,4498,9774,2888,179],(function(){return t=8710,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.