1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="23ef2dcd-45f1-4f8a-aa5c-87fc07be9a84",e._sentryDebugIdIdentifier="sentry-dbid-23ef2dcd-45f1-4f8a-aa5c-87fc07be9a84")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5161],{1576:(e,l,n)=>{"use strict";n.d(l,{A:()=>p});var t=n(37876),r=n(14232),i=n(69666),a=n(86265),o=n(78202),c=n(89219),s=n(45890);let u=function(e){let{resourceName:l,items:n,selectedItems:r,handleSelectionChange:u,sortValue:d,onSortChange:m,onNext:g,onPrevious:p,filterControl:C,hasNext:h,hasPrevious:y,loading:x=!0,renderItem:f,sortOptions:v,bulkActions:b,hideSelectAllAction:_,totalItemsCount:P,tabs:S}=e;return(0,t.jsx)("div",{style:{width:"100%"},children:(0,t.jsxs)(i.Z,{children:[S&&(0,t.jsx)(a.t,{tabs:S.tabs,selected:S.selected,onSelect:S.onSelect}),(0,t.jsx)(o.j,{resourceName:l,items:n,renderItem:f,selectedItems:r,onSelectionChange:u,sortValue:d,sortOptions:v,onSortChange:m,filterControl:C,loading:x,bulkActions:b,hasMoreItems:!_&&(h||y),totalItemsCount:P}),(0,t.jsx)(c.o,{align:"center",children:(0,t.jsx)(s.d,{onNext:g,onPrevious:p,hasPrevious:y,hasNext:h,type:"table"})})]})})};var d=n(50495),m=n(9938),g=n(43159);let p=function(e){let{items:l,renderItem:n,sortOptions:i,resourceName:a,bulkActions:o,selectedItems:c,onRemoveFilter:s,onClearAllFilters:p,handleSelectionChange:C,setItems:h,disableFilters:y,defaultSort:x,pageSize:f,hideSelectAllAction:v,filters:b,totalItemsCount:_,getItems:P,tabs:S}=e,A=JSON.stringify(b),E=e=>e&&e.reduce((e,l)=>(e[l.key]="[]"===JSON.stringify(l.value)?void 0:l.value,e),{}),[j,L]=(0,r.useState)({total:0,sortValue:[],queryValue:"",items:[],queryData:{query:"",sortBy:x?[x.value]:[],filters:E(b)||{},pageSize:f||10,pageNumber:1},loading:!1}),w=(0,r.useRef)(!1),k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j.queryData,n={...e,filters:e.filters||{},query:e.query.length>0?e.query+"~":e.query};if(L(e=>({...e,loading:!0})),P&&"function"==typeof P)return void P(n).then(e=>{L(l=>({...l,items:e.result,total:e.total,loading:!1})),h&&h(e.result)});if("string"==typeof l){let e;e=l.includes("http")?l:"https://portalapis.cloud.goodcompany.org/api"+(l.startsWith("/")?l:"/"+l),(0,m.KU)(d.A).then(l=>l.getRecords(e,n).then(e=>{L(l=>({...l,items:e.result,total:e.total,loading:!1})),h&&h(e.result)}))}else L(e=>({...e,items:l,total:l.length,loading:!1}))};b&&(0,r.useEffect)(()=>{L(e=>({...e,queryData:{...e.queryData,filters:E(b)}}))},[A]),(0,r.useEffect)(()=>{if(!w.current){w.current=!0;return}let e=setTimeout(()=>{L(e=>({...e,queryData:{...e.queryData,query:e.queryValue||""}}))},500);return()=>{clearTimeout(e)}},[j.queryValue]),(0,r.useEffect)(()=>{k()}
1,[j.queryData]);let G=b&&b.map(e=>({key:e.key,label:e.name,filter:e.component()})),N=b&&Array.isArray(b)&&b.length>0?b.filter(e=>Array.isArray(e.value)&&0!==e.value.length||!Array.isArray(e.value)&&void 0!==e.value).map(e=>({key:e.key,label:" For ".concat(e.name," : ").concat(!0===e.value?"Yes":e.displayValue||e.value),onRemove:()=>{s(null==e?void 0:e.key)}})):void 0,q=y?void 0:(0,t.jsx)(g.C,{queryValue:j.queryValue,onQueryChange:e=>{L(l=>({...l,queryValue:e}))},filters:G||[],onQueryClear:()=>{L(e=>({...e,queryValue:""}))},onClearAll:p,appliedFilters:N||[]});return(0,t.jsx)(u,{onNext:()=>{let{pageNumber:e}=j.queryData;L(l=>({...l,queryData:{...l.queryData,pageNumber:e+1}}))},onPrevious:()=>{let{pageNumber:e}=j.queryData;e>1&&L(l=>({...l,queryData:{...l.queryData,pageNumber:e-1}}))},onSortChange:e=>{L(l=>({...l,queryData:{...l.queryData,sortBy:[e]}}))},selectedItems:c,handleSelectionChange:C,items:j.items,resourceName:a,sortValue:j.queryData.sortBy[0],filterControl:q,hasNext:j.queryData.pageNumber*j.queryData.pageSize<j.total,hasPrevious:j.queryData.pageNumber>1,loading:j.loading,renderItem:n,sortOptions:i,bulkActions:o,hideSelectAllAction:v,totalItemsCount:_,tabs:S})}},12999:(e,l,n)=>{"use strict";n.d(l,{y:()=>a});var t=n(14232),r=n(76232),i=n(96132);let a=(0,t.memo)(function(e){let l=(0,t.useId)(),{showToast:n,hideToast:a}=(0,i.j)();return(0,r.h)(()=>(n({id:l,...e}),()=>{a({id:l})}),[e]),null})},15598:(e,l,n)=>{"use strict";n.d(l,{u:()=>f});var t=n(14232),r=n(8484),i=n(65472),a=n(59151),o={LegacyCard:"Polaris-LegacyCard",Section:"Polaris-LegacyCard__Section",subdued:"Polaris-LegacyCard--subdued","Section-hideOnPrint":"Polaris-LegacyCard__Section--hideOnPrint",hideOnPrint:"Polaris-LegacyCard--hideOnPrint",Header:"Polaris-LegacyCard__Header","Section-fullWidth":"Polaris-LegacyCard__Section--fullWidth","Section-flush":"Polaris-LegacyCard__Section--flush","Section-subdued":"Polaris-LegacyCard__Section--subdued",SectionHeader:"Polaris-LegacyCard__SectionHeader",Subsection:"Polaris-LegacyCard__Subsection",Footer:"Polaris-LegacyCard__Footer",LeftJustified:"Polaris-LegacyCard__LeftJustified",FirstSectionPadding:"Polaris-LegacyCard__FirstSectionPadding",LastSectionPadding:"Polaris-LegacyCard__LastSectionPadding"},c=n(75430),s=n(77521),u=n(89219),d=n(8949);function m(e){let{children:l,title:n,actions:r}=e,i=r?t.createElement(s.e,null,(0,c.G)(r,{variant:"plain"})):null,a=(0,t.isValidElement)(n)?n:t.createElement(d.E,{variant:"headingSm",as:"h2"},n),m=i||l?t.createElement(u.o,{wrap:!1,gap:"200",align:"space-between",blockAlign:"center"},a,t.createElement(u.o,{wrap:!1,gap:"400",blockAlign:"center"},i,l)):a;return t.createElement("div",{className:o.Header},m)}var g=n(57464);function p(e){let{children:l,title:n,subdued:i,flush:a,fullWidth:u,actions:m,hideOnPrint:p}=e,C=(0,r.xW)(o.Section,a&&o["Section-flush"],i&&o["Section-subdued"],u&&o["Section-fullWidth"],p&&o["Section-hideOnPrint"]),h=m?t.createElement(s.e,null,(0,c.G)(m,{variant:"plain"})):null,y="string"==typeof n?t.createElement(d.E,{variant:"headingSm",as:"h3",fontWeight:"medium"},n):n,x=y||h?t.createElement("div",{className:o.SectionHeader},h?t.createElement(g.W,{alignment:"baseline"},t.createElement(g.W.Item,{fill:!0},y),h):y):null;return t.createElement("div",{className:C},x,l)}var C=n(65565),h=n(77742),y=n(35070),x=n(67409);let f=function(e){let{children:l,hideOnPrint:n,title:u,subdued:d,sectioned:g,actions:f,primaryFooterAction:b,secondaryFooterActions:_,secondaryFooterActionsDisclosureText:P,footerActionAlignment:S="right"}=e,A=(0,C.s)(),{value:E,toggle:j}=(0,i.e)(!1),L=function(){let e=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let l,n,t=e.current;if(t){let e=()=>{var e,r,i;let a;v(l,"top",!1),v(n,"bottom",!1);let c=t.querySelectorAll(".".concat(o.Section,", .").concat(o.Header,", .").concat(o.Footer));if(!(null==c?void 0:c.length))return;let s=c[0],u=(a=(i=c)[0],i.forEach(e=>{a.contains(e)||(a=e)}),a);(null==(e=t.firstChild)?void 0:e.contains(s))&&v(l=s,"top",!0),(null==(r=t.lastChild)?void 0:r.contains(u))&&v(n=u,"bottom",!0)};e();let r=new MutationObserver(e);return r.observe(t,{childList:!0,subtree:!0}),()=>{v(l,"top",!1),v(n,"bottom",!1),r.disconnect()}}},[]),e}(),w=(0,r.xW)(o.LegacyCard,d&&o.subdued,n&&o.hideOnPrint),k=u||f?t.createElement(m,{actions:f,title:u}):null,G=g?t.createElement(p,null,l):l,N=b?(0,c.x)(b,{variant:"primary"}):null,q=null;_&&_.length&&(q=1===_.length?(0,c.x)(_[0]):t.createElement(t.Fragment,null,t.createElement(h.A,{active:E,activator:t.createElement(y.$,{disclosure:!0,onClick:j},P||A.translate("Polaris.Common.more")),onClose:j},t.createElement(x.l,{items:_}))));let D=N||q?t.createElement("div",{className:(0,r.xW)(o.Footer,"left"===S&&o.LeftJustified)},"right"===S?t.createElement(s.e,null,q,N):t.createElement(s.e,null,N,q)):null;return t.createElement(a.O.Provider,{value:!0},t.createElement("div",{className:w,ref:L},k,G,D))};function v(e,l,n){if(!(!e||e.className.includes(o["Section-flush"])))switch(l){case"top":e.classList.toggle(o.FirstSectionPadding,n);return;case"bottom":e.classList.toggle(o.LastSectionPadding,n)}}f.Header=m,f.Section=p,f.Subsection=function(e){let{children:l}=e;return t.createElement("div",{className:o.Subsection},l)}},26195:(e,l,n)=>{"use strict";n.d(l,{N:()=>i,x:()=>r});var t=n(80992);function r(e){return"\n font-size: ".concat({extraSmall:.625,small:1.2/1.6,medium:1.4/1.6,large:1.125,extraLarge:2.4/1.6}[e],"rem;\n ")}function i(e){let l={positive:"color:".concat((0,t.y)("green","dark"),";"),negative:"color:".concat((0,t.y)("red","dark"),";"),strong:"font-weight: 600;",subdued:"opacity:0.5;"}[e];return"\n ".concat(l,";\n ")}},41729:(e,l,n)=>{"use strict";n.d(l,{V:()=>r});var t=n(80992);function r(e){return({base:"3px",large:"6px"})[e]}(0,t.y)("sky"),(0,t.y)("sky","dark")},45991:(e,l,n)=>{"use strict";n.d(l,{A:()=>y});var t=n(37876);n(14232);var r=n(44264),i=n(61436),a=n(67299),o=n(64850),c=n(41943),s=n(56362);let u=r.Ay.div.withConfig({componentId:"sc-daf0229e-0"})(["display:flex;justify-content:space-between;background:",";"],(0,i.yW)("white")),d=r.Ay.div.withConfig({componentId:"sc-daf0229e-1"})(["flex:0 1 90%;padding:",";display:flex;justify-content:center;align-items:center;flex-wrap:wrap;"],(0,i.YK)("extra-tight")),m=r.Ay.div.withConfig({componentId:"sc-daf0229e-2"})(["flex:0 1 5%;padding:",";text-align:right;"],(0,i.YK)("tight")),g=r.Ay.div.withConfig({componentId:"sc-daf0229e-3"})(["flex:0 1 5%;padding:",";"],(0,i.YK)("tight")),p=r.Ay.div.withConfig({componentId:"sc-daf0229e-4"})(["",""],e=>{let{$selected:l}=e;return(0,r.AH)(["display:flex;flex-direction:column;align-items:center;margin:0.7rem 0.7rem;@media (max-width:","){& > *{display:none;}
1height:15px;width:10px;background-color:",";border-radius:50%;display:inline-block;}"],a.f.tabletLandscape+"px",l?(0,i.yW)("primary"):"#e9e9e9")}),C=r.Ay.span.withConfig({componentId:"sc-daf0229e-5"})([""," ",";position:relative;margin-bottom:0.35rem;"],e=>{let{$selected:l}=e;return l?"\n ".concat((0,i.xP)("extraLarge"),";\n color: #0b1f59;\n "):"\n ".concat((0,i.xP)("large"),";\n color: #e9e9e9;\n ")},(0,i.N9)("strong")),h=r.Ay.span.withConfig({componentId:"sc-daf0229e-6"})(["background-color:",";height:",";width:150px;"],e=>e.$selected?(0,i.yW)("primary"):"#e9e9e9",(0,i.YK)("extra-tight"));function y(e){let{stepList:l,currentStep:n,onNavigate:r,hideButtons:i,hideLeftButton:a,hideRightButton:y,onClickBack:x}=e;return(0,t.jsxs)(u,{children:[!i&&!a&&(0,t.jsx)(g,{children:(0,t.jsx)(o.A,{primary:!0,icon:c.S,direction:"left",onClick:x,children:"Back"})}),(0,t.jsx)(d,{children:l.map(e=>{let{id:l,label:r}=e,i=n===l;return(0,t.jsxs)(p,{$selected:i,children:[(0,t.jsx)(C,{$selected:i,children:r}),(0,t.jsx)(h,{$selected:i})]},l)})}),!i&&!y&&(0,t.jsx)(m,{children:(0,t.jsx)(o.A,{primary:!0,icon:s.S,direction:"right",onClick:r,children:"Next"})})]})}},48857:(e,l,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/charity/[id]/volunteer-roles",function(){return n(87011)}])},50495:(e,l,n)=>{"use strict";n.d(l,{A:()=>r});var t=n(91040);class r{getRecords(e,l){let n=e.replace(/[?&]$/,"");return this.instance.request({method:"POST",url:n,headers:{Accept:"application/json"},data:l}).then(e=>this.processRecords(e))}processRecords(e){let l=e.status,n={};if(e.headers&&"object"==typeof e.headers)for(let l in e.headers)e.headers.hasOwnProperty(l)&&(n[l]=e.headers[l]);if(200===l){let l=e.data;return l}}constructor(e,l){this.instance=l||t.A.create()}}},56362:(e,l,n)=>{"use strict";n.d(l,{S:()=>r});var t=n(14232),r=function(e){return t.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),t.createElement("path",{fillRule:"evenodd",d:"M3.5 10a.75.75 0 0 1 .75-.75h9.69l-2.72-2.72a.75.75 0 1 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06l2.72-2.72h-9.69a.75.75 0 0 1-.75-.75Z"}))};r.displayName="ArrowRightIcon"},61436:(e,l,n)=>{"use strict";n.d(l,{Vq:()=>t.V,yW:()=>r.y,p0:()=>o,cz:()=>a,r7:()=>c,YK:()=>i.Y,xP:()=>s.x,N9:()=>s.N});var t=n(41729),r=n(80992),i=n(84578);function a(e){return({base:"cubic-bezier(0.64, 0, 0.35, 1)",in:"cubic-bezier(0.36, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.42, 1)",excite:"cubic-bezier(0.18, 0.67, 0.6, 1.22)",overshoot:"cubic-bezier(0.07, 0.28, 0.32, 1.22)",anticipate:"cubic-bezier(0.38, -0.4, 0.88, 0.65)"})[e]}function o(e){return({fast:100,base:200,slow:300,slower:400,slowest:500})[e]+"ms"}function c(e){return({faint:"0 1px 0 0 rgba(22, 29, 37, 0.05)",base:"0 0 0 1px rgba(63, 63, 68, 0.05), 0 1px 3px 0 rgba(63, 63, 68, 0.15)",deep:"0 0 0 1px rgba(6, 44, 82, 0.1), 0 2px 16px rgba(33, 43, 54, 0.08)",layer:"0 31px 41px 0 rgba(32, 42, 53, 0.2), 0 2px 16px 0 rgba(32, 42, 54, 0.08)",transparent:"0 0 0 0 transparent"})[e]}var s=n(26195)},64850:(e,l,n)=>{"use strict";n.d(l,{A:()=>i});var t=n(37876);n(14232);var r=n(35070);let i=e=>{let{children:l,icon:n,onClick:i,...a}=e;return(0,t.jsx)(r.$,{external:!0,variant:"primary",size:"large",fullWidth:!0,icon:n,onClick:i,...a,children:l})}},80425:(e,l,n)=>{"use strict";n.d(l,{P:()=>u});var t=n(14232),r={Layout:"Polaris-Layout",Section:"Polaris-Layout__Section","Section-fullWidth":"Polaris-Layout__Section--fullWidth","Section-oneHalf":"Polaris-Layout__Section--oneHalf","Section-oneThird":"Polaris-Layout__Section--oneThird",AnnotatedSection:"Polaris-Layout__AnnotatedSection",AnnotationWrapper:"Polaris-Layout__AnnotationWrapper",AnnotationContent:"Polaris-Layout__AnnotationContent",Annotation:"Polaris-Layout__Annotation"},i=n(95740),a=n(8949),o=n(30414),c=n(8484);function s(e){let{children:l,variant:n}=e,i=(0,c.xW)(r.Section,r["Section-".concat(n)]);return t.createElement("div",{className:i},l)}let u=function(e){let{sectioned:l,children:n}=e,i=l?t.createElement(s,null,n):n;return t.createElement("div",{className:r.Layout},i)};u.AnnotatedSection=function(e){let{children:l,title:n,description:c,id:s}=e,u="string"==typeof c?t.createElement(a.E,{as:"p",variant:"bodyMd"},c):c;return t.createElement("div",{className:r.AnnotatedSection},t.createElement("div",{className:r.AnnotationWrapper},t.createElement("div",{className:r.Annotation},t.createElement(i.T,{spacing:"tight"},t.createElement(a.E,{id:s,variant:"headingMd",as:"h2"},n),u&&t.createElement(o.a,{color:"text-secondary"},u))),t.createElement("div",{className:r.AnnotationContent},l)))},u.Section=s},84578:(e,l,n)=>{"use strict";function t(e){let l={none:0,"extra-tight":.625,tight:1.25,base:2.5,loose:3.125,"extra-loose":5}[e];return 0===l?0:"".concat(l,"rem")}n.d(l,{Y:()=>t})},87011:(e,l,n)=>{"use strict";n.r(l),n.d(l,{default:()=>w});var t=n(37876),r=n(14232),i=n(1576),a=n(98768),o=n(28751),c=n(89099),s=n.n(c),u=n(59219),d=n(9938),m=n(42997),g=n(8949),p=n(14196),C=n(88469),h=n(32395),y=n(89219),x=n(88052),f=n(81903),v=n(72442),b=n(12999),_=n(46062),P=n(48230),S=n.n(P),A=n(1335),E=n(69034),j=n(37283);let L=e=>{let{charityId:l}=e,n={isActive:void 0},[a,c]=(0,r.useState)(n),[P,L]=(0,r.useState)([]),[w,k]=(0,r.useState)(!1),[G,N]=(0,r.useState)(!1),[q,D]=(0,r.useState)(0),I="isActive",V="isExclusiveToWorkplace",O="isSKillsRequired",W=[{key:I,name:"Online",value:a[I],component:()=>(0,t.jsx)(m.S,{label:"Online",checked:!!a[I],onChange:e=>c(l=>({...l,[I]:e}))})},{key:V,name:"Exclusive",value:a[V],component:()=>(0,t.jsx)(m.S,{label:"Exclusive",checked:!!a[V],onChange:e=>c(l=>({...l,[V]:e}))})},{key:O,name:"Skills Required",value:a[O],component:()=>(0,t.jsx)(m.S,{label:"Yes",checked:!!a[O],onChange:e=>c(l=>({...l,[O]:e}))})}],T=async e=>{if(!l)return;let n="All"===P?[]:P;if(0===n.length)return;N(!1),k(!0);let t=await e(n,l);if(k(!1),(0,E.bJ)(t)){console.error("Error updating volunteer roles:",t.error),N(!0);return}L([]),D(e=>e+1)},X=[{content:"Take Offline",onAction:()=>T((e,l)=>(0,j.JS)({ids:e,isActive:!1},l))},{content:"Take Offline & Archive",onAction:()=>T((e,l)=>(0,j.T8)({ids:e},l))}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.A,{title:"Volunteer Roles",charityId:l,checkVolunteering:!0,primaryAction:{content:"Create a Role",onAction:()=>{s().push("/".concat((0,d.JJ)(),"/admin/charity/").concat(l,"/volunteering/role/create"))},permissions:[o.x.Charity_VolunteeringManage]},settingsMessage:(0,t.jsxs)(g.E,{as:"span",children:["Volunteering is turned off for your charity. Click"," ",(0,t.jsx)(S(),{href:"/admin/charity/".concat(l,"/volunteering"),style:{textDecoration:"none"},children:"here"})," ","to change your preferences"]}),children:(0,t.jsx)(i.A,{items:"/volunteering/charity/".concat(l,"/opportunity/details"),sortOptions:[{label:"Title (A-Z)",value:"title_asc"},{label:"Applications",value:"numberOfApplications_desc"},{label:"Latest",value:"createdOn_desc"}],resourceName:{singular:"Volunteer Role",plural:"Volunteer Roles"},filters:W,onRemoveFilter:e=>{Array.isArray(a[e])?c({...a,[e]:[]}):c({...a,[e]:void 0})},defaultSort:{label:"Latest",value:"createdOn_desc"},onClearAllFilters:()=>{c(n)},bulkActions:X,hideSelectAllAction:!0,selectedItems:P,handleSelectionChange:L,renderItem:e=>{let{id:n,title:r,volunteerOpportunityUrl:i,charityUrl:a,createdOn:c,isExclusiveToWorkplace:s,isExclusiveToCorporate:u,workplace:d,numberOfApplications:m,numberOfParticipants:f,isActive:v,scheduleType:b,isSkillsRequired:P}=e,S="/admin/charity/".concat(l,"/volunteering/").concat(n,"/edit"),E="/admin/charity/".concat(l,"/volunteering/").concat(n,"/copy"),j="/admin/charity/".concat(l,"/volunteering/").concat(n,"/embed"),L=[{content:"Edit",url:S,permissions:[o.x.Charity_VolunteeringManage]},{content:"View",url:"/charity/".concat(a,"/vacancy/").concat(i)},{content:"Copy",url:E,permissions:[o.x.Charity_VolunteeringManage]},...u?[]:[{content:"Embed",url:j,permissions:[o.x.Charity_VolunteeringManage]}]];return(0,t.jsx)(p.K,{id:"".concat(n),accessibilityLabel:"Edit details for ".concat(r),persistActions:!0,url:S,shortcutActions:L,children:(0,t.jsxs)(C.x,{children:[(0,t.jsx)(C.x.Cell,{columnSpan:{xs:6,sm:6,md:6,lg:7},children:(0,t.jsxs)(h.a,{gap:"200",children:[(0,t.jsxs)(y.o,{gap:"200",align:"start",blockAlign:"center",wrap:!0,children:[(0,t.jsx)(g.E,{as:"span",fontWeight:"semibold",variant:"bodyLg",children:r}),(0,t.jsx)(x.E,{tone:v?"success":"warning",children:v?"Online":"Offline"}),s&&d&&(0,t.jsx)(x.E,{tone:"info",children:d.displayName}),P&&(0,t.jsx)(x.E,{tone:"attention",children:"Skills Required"})]}),(0,t.jsxs)(y.o,{gap:"300",align:"start",blockAlign:"center",children:[(0,t.jsx)(g.E,{as:"span",variant:"bodySm",tone
1:"subdued",children:"FixedSchedule"===b?"Fixed Schedule":"Recurring"}),(0,t.jsx)(g.E,{as:"span",variant:"bodySm",tone:"subdued",children:"â¢"}),(0,t.jsx)(g.E,{as:"span",variant:"bodySm",tone:"subdued",children:new Date(c).toDateString()})]})]})}),(0,t.jsx)(C.x.Cell,{columnSpan:{xs:6,sm:6,md:6,lg:5},children:(0,t.jsxs)(y.o,{gap:"400",align:"start",blockAlign:"center",children:[(0,t.jsxs)(h.a,{gap:"100",inlineAlign:"center",children:[(0,t.jsx)(g.E,{as:"span",variant:"bodySm",tone:"subdued",children:"Applications"}),(0,t.jsx)("a",{style:{textDecoration:"none"},href:"/admin/charity/".concat(l,"/volunteer-applications?name=").concat(r,"&opportunityId=").concat(n),children:(0,t.jsx)(g.E,{as:"span",fontWeight:"semibold",variant:"bodyMd",children:m})})]}),(0,t.jsxs)(h.a,{gap:"100",inlineAlign:"center",children:[(0,t.jsx)(g.E,{as:"span",variant:"bodySm",tone:"subdued",children:"Participants"}),(0,t.jsxs)(y.o,{gap:"100",blockAlign:"center",children:[(0,t.jsx)(A.A,{source:_.S,tone:"base"}),(0,t.jsx)(g.E,{as:"span",fontWeight:"semibold",variant:"bodyMd",children:f||0})]})]})]})})]})})}},q)}),(0,t.jsx)(f.a,{open:w,title:"Updating Volunteer Roles",onClose:()=>{},primaryAction:void 0,secondaryActions:void 0,children:(0,t.jsx)(f.a.Section,{children:(0,t.jsxs)(y.o,{align:"center",blockAlign:"center",gap:"400",children:[(0,t.jsx)(v.y,{size:"large"}),(0,t.jsx)(g.E,{as:"p",children:"Processing your request..."})]})})}),G&&(0,t.jsx)(b.y,{error:!0,content:"Couldn't update the selected roles. Please try again.",onDismiss:()=>N(!1)})]})};L.getInitialProps=async e=>{let{id:l}=e.query;return{charityId:l}};let w=(0,a.z)(o.x.Charity_VolunteeringView)(L)},88469:(e,l,n)=>{"use strict";n.d(l,{x:()=>o});var t=n(14232),r={Grid:"Polaris-Grid"},i=n(8484),a={Cell:"Polaris-Grid-Cell","Cell-1-column-xs":"Polaris-Grid-Cell--cell_1ColumnXs","Cell-2-column-xs":"Polaris-Grid-Cell--cell_2ColumnXs","Cell-3-column-xs":"Polaris-Grid-Cell--cell_3ColumnXs","Cell-4-column-xs":"Polaris-Grid-Cell--cell_4ColumnXs","Cell-5-column-xs":"Polaris-Grid-Cell--cell_5ColumnXs","Cell-6-column-xs":"Polaris-Grid-Cell--cell_6ColumnXs","Cell-1-column-sm":"Polaris-Grid-Cell--cell_1ColumnSm","Cell-2-column-sm":"Polaris-Grid-Cell--cell_2ColumnSm","Cell-3-column-sm":"Polaris-Grid-Cell--cell_3ColumnSm","Cell-4-column-sm":"Polaris-Grid-Cell--cell_4ColumnSm","Cell-5-column-sm":"Polaris-Grid-Cell--cell_5ColumnSm","Cell-6-column-sm":"Polaris-Grid-Cell--cell_6ColumnSm","Cell-1-column-md":"Polaris-Grid-Cell--cell_1ColumnMd","Cell-2-column-md":"Polaris-Grid-Cell--cell_2ColumnMd","Cell-3-column-md":"Polaris-Grid-Cell--cell_3ColumnMd","Cell-4-column-md":"Polaris-Grid-Cell--cell_4ColumnMd","Cell-5-column-md":"Polaris-Grid-Cell--cell_5ColumnMd","Cell-6-column-md":"Polaris-Grid-Cell--cell_6ColumnMd","Cell-1-column-lg":"Polaris-Grid-Cell--cell_1ColumnLg","Cell-2-column-lg":"Polaris-Grid-Cell--cell_2ColumnLg","Cell-3-column-lg":"Polaris-Grid-Cell--cell_3ColumnLg","Cell-4-column-lg":"Polaris-Grid-Cell--cell_4ColumnLg","Cell-5-column-lg":"Polaris-Grid-Cell--cell_5ColumnLg","Cell-6-column-lg":"Polaris-Grid-Cell--cell_6ColumnLg","Cell-7-column-lg":"Polaris-Grid-Cell--cell_7ColumnLg","Cell-8-column-lg":"Polaris-Grid-Cell--cell_8ColumnLg","Cell-9-column-lg":"Polaris-Grid-Cell--cell_9ColumnLg","Cell-10-column-lg":"Polaris-Grid-Cell--cell_10ColumnLg","Cell-11-column-lg":"Polaris-Grid-Cell--cell_11ColumnLg","Cell-12-column-lg":"Polaris-Grid-Cell--cell_12ColumnLg","Cell-1-column-xl":"Polaris-Grid-Cell--cell_1ColumnXl","Cell-2-column-xl":"Polaris-Grid-Cell--cell_2ColumnXl","Cell-3-column-xl":"Polaris-Grid-Cell--cell_3ColumnXl","Cell-4-column-xl":"Polaris-Grid-Cell--cell_4ColumnXl","Cell-5-column-xl":"Polaris-Grid-Cell--cell_5ColumnXl","Cell-6-column-xl":"Polaris-Grid-Cell--cell_6ColumnXl","Cell-7-column-xl":"Polaris-Grid-Cell--cell_7ColumnXl","Cell-8-column-xl":"Polaris-Grid-Cell--cell_8ColumnXl","Cell-9-column-xl":"Polaris-Grid-Cell--cell_9ColumnXl","Cell-10-column-xl":"Polaris-Grid-Cell--cell_10ColumnXl","Cell-11-column-xl":"Polaris-Grid-Cell--cell_11ColumnXl","Cell-12-column-xl":"Polaris-Grid-Cell--cell_12ColumnXl"};let o=function(e){let{gap:l,areas:n,children:i,columns:a}=e,o={"--pc-grid-gap-xs":null==l?void 0:l.xs,"--pc-grid-gap-sm":null==l?void 0:l.sm,"--pc-grid-gap-md":null==l?void 0:l.md,"--pc-grid-gap-lg":null==l?void 0:l.lg,"--pc-grid-gap-xl":null==l?void 0:l.xl,"--pc-grid-columns-xs":null==a?void 0:a.xs,"--pc-grid-columns-sm":null==a?void 0:a.sm,"--pc-grid-columns-md":null==a?void 0:a.md,"--pc-grid-columns-lg":null==a?void 0:a.lg,"--pc-grid-columns-xl":null==a?void 0:a.xl,"--pc-grid-areas-xs":c(null==n?void 0:n.xs),"--pc-grid-areas-sm":c(null==n?void 0:n.sm),"--pc-grid-areas-md":c(null==n?void 0:n.md),"--pc-grid-areas-lg"
1:c(null==n?void 0:n.lg),"--pc-grid-areas-xl":c(null==n?void 0:n.xl)};return t.createElement("div",{className:r.Grid,style:o},i)};function c(e){if(e)return"'".concat(null==e?void 0:e.join("' '"),"'")}o.Cell=function(e){let{area:l,column:n,columnSpan:r,row:o,children:c}=e,s=(0,i.xW)(a.Cell,(null==r?void 0:r.xs)&&a["Cell-".concat(r.xs,"-column-xs")],(null==r?void 0:r.sm)&&a["Cell-".concat(r.sm,"-column-sm")],(null==r?void 0:r.md)&&a["Cell-".concat(r.md,"-column-md")],(null==r?void 0:r.lg)&&a["Cell-".concat(r.lg,"-column-lg")],(null==r?void 0:r.xl)&&a["Cell-".concat(r.xl,"-column-xl")]),u={gridArea:l,"--pc-column-xs":null==n?void 0:n.xs,"--pc-column-sm":null==n?void 0:n.sm,"--pc-column-md":null==n?void 0:n.md,"--pc-column-lg":null==n?void 0:n.lg,"--pc-column-xl":null==n?void 0:n.xl,"--pc-row-xs":null==o?void 0:o.xs,"--pc-row-sm":null==o?void 0:o.sm,"--pc-row-md":null==o?void 0:o.md,"--pc-row-lg":null==o?void 0:o.lg,"--pc-row-xl":null==o?void 0:o.xl};return t.createElement("div",{className:s,style:u},c)}},95740:(e,l,n)=>{"use strict";n.d(l,{T:()=>a});var t=n(14232),r=n(8484),i={TextContainer:"Polaris-TextContainer",spacingTight:"Polaris-TextContainer--spacingTight",spacingLoose:"Polaris-TextContainer--spacingLoose"};function a(e){let{spacing:l,children:n}=e,a=(0,r.xW)(i.TextContainer,l&&i[(0,r.Ny)("spacing",l)]);return t.createElement("div",{className:a},n)}}},e=>{e.O(0,[2026,6494,6960,2120,7930,1286,7083,4465,8202,6265,7396,4974,9142,636,6593,8792],()=>e(e.s=48857)),_N_E=e.O()}]); 2//# sourceMappingURL=volunteer-roles-863ab14deff5c74b.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.