PageSourceSearch

https://dashboard.goldenvolunteer.com/_next/static/chunks/pages/[orgId]/credentials-15ae6ce48388c00b.js

js goldenvolunteer.com collected 2026-09-24 10:53:20 UTC 14,666 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7602],{36619:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var n=t(37876);t(14232);let i=e=>{let{className:a,width:t=20,height:i=20}=e;return(0,n.jsx)("svg",{"aria-hidden":"true",focusable:"false",className:a,role:"img",xmlns:"http://www.w3.org/2000/svg",height:"".concat(i,"px"),viewBox:"0 0 576 512",width:"".concat(t,"px"),children:(0,n.jsx)("path",{fill:"currentColor",d:"M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"})})}},45927:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[orgId]/credentials",function(){return t(47622)}])},47622:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSP:()=>H,default:()=>O});var n=t(37876),i=t(14232),l=t(7766),s=t.n(l),r=t(68746),o=t(72147),c=t(22075),d=t(39467);let h=(0,t(87225).A)((0,n.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}),"Lock");var g=t(88787),p=t(15852),u=t(34657),m=t(47475),x=t(32555),v=t(33981),f=t(68768),y=t(13358),j=t(73963),w=t(72126),C=t(41177),k=t(50156),A=t(16773),b=t(19990),N=t(26720),P=t(55276),S=t(38773),E=t(55982),D=t(36572),I=t(31468),T=t(36619),W=t(28993),_=t(75620),F=t(75546),L=t(13659);let z=(0,W.n9)({name:"DashboardStyles"})(()=>({table:{'& dt[data-role="col-name"]':{minWidth:536},'& dd[data-role="col-name"]':{minWidth:544},"& .collapsibleRowWrapper":{'& dd[data-role="col-name"]':{minWidth:504}}}}),{name:"CredentialsPageStyles"});var H=!0;let O=()=>{let{t:e}=(0,A.useTranslation)("common"),{currentOrganization:a,loadCredentials:t}=(0,i.useContext)(u.eB),{companyName:l}=(0,i.useContext)(j.A),W=a.id,[H,O]=(0,i.useState)(),[R,B]=(0,i.useState)(),[q,V]=(0,i.useState)(!1),[M,K]=(0,i.useState)(!1),[J,U]=(0,i.useState)({}),[G,X]=(0,i.useState)(!1),[$,Z]=(0,i.useState)(""),[Q,Y]=(0,i.useState)(!1),[ee,ea]=(0,i.useState)(!1),[et,en]=(0,i.useState)(""),[ei,el]=(0,i.useState)("individual"),[es,er]=(0,i.useState)(""),[eo,ec]=(0,i.useState)(),[ed,eh]=(0,i.useState)([]),[eg,ep]=(0,i.useState)(null),[eu,em]=(0,i.useState)(null),{classes:ex,cx:ev}=(0,E.A)(),{classes:ef}=z();(0,k.HU)(e("page-name-credentials","{{companyName}} - Credentials",{companyName:l})),(0,k.Ok)(b.Jj.CREATE_CREDENTIALS);let ey=async()=>{let e=await C.Ay.Workflow.workflowDefinitionSearch(W,{filterByNonPackage:!0,filterByOrganization:W});B(e.workflows),O(e.workflows)},ej=async()=>{var e;let a=await C.Ay.Workflow.workflowDefinitionSearch(W,{filterByType:"PACKAGE",filterByOrganization:W});
1(null!=(e=null==a?void 0:a.workflows)?e:[]).forEach(e=>{var a;return e.collapsibleRows=null!=(a=e.itemDefinitionMapping.and)?a:[],e}),eh(a.workflows),ec(a.workflows)},ew=e=>{er(e.target.value.toLowerCase())};(0,i.useEffect)(()=>{let e=null==H?void 0:H.filter(e=>{var a,t;let n=es.toLowerCase();return(null==(a=e.name)?void 0:a.toLowerCase().includes(n))||(null==(t=e.internalName)?void 0:t.toLowerCase().includes(n))}),a=null==eo?void 0:eo.filter(e=>{var a,t;let n=es.toLowerCase();return(null==(a=e.name)?void 0:a.toLowerCase().includes(n))||(null==(t=e.internalName)?void 0:t.toLowerCase().includes(n))});B(e),eh(a)},[es,H]);let eC=async()=>{U({}),K(!0)},ek=async()=>{U({type:"Package"}),K(!0)},eA=async e=>{U({...e.values,id:e.id,inheritable:!!e.inheritable,internalName:e.internalName||""}),K(!0)},eb=async(e,t)=>{try{var n;X(!0);let i=await C.Ay.Workflow.getWorkflowDefinitionUsage(e.id,a.id);(null==(n=i.usages)?void 0:n.length)?em({row:e,isPackage:t,usages:i.usages}):ep({row:e,isPackage:t})}catch(a){console.error("failed to check credential usage",a),ep({row:e,isPackage:t})}finally{X(!1)}},eN=async()=>{let{row:e,isPackage:n}=eg;ep(null);try{X(!0),await C.Ay.Workflow.editWorkflowDefinition(e.id,a.id,e.name,e.description,"ORGANIZATION",e.values,e.type,e["expiration-type"],e["review-required"],e.instructions,"INACTIVE",void 0,void 0,{ignoreErrorTypes:["BadRequestError"]}),await ey(),await ej(),t()}catch(t){var i;let a=null==(i=t.response)?void 0:i.data;(null==a?void 0:a.message)?em({row:e,isPackage:n,message:a.message,usages:a.usages||[]}):console.error("failed to deactivate credential",t)}finally{X(!1)}},eP=async e=>{try{Z(e.name),Y(!0),ea(!0);let t=await C.Ay.Workflow.getCredentialShareLink(e.id,a.id);en(t.shareLink),ea(!1)}catch(e){console.error("failed to get credential share link",e)}};(0,i.useEffect)(()=>{X(!0),ey(),ej(),X(!1)},[]);let eS=e=>e.creatorOrganization&&e.creatorOrganization.id!==a.id,eE={name:"name",displayName:e("name","Name"),field:a=>eS(a)?(0,n.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[a.internalName||a.name,(0,n.jsx)(p.A,{arrow:!0,title:e("inherited-from","Inherited from {{orgName}}",{orgName:a.creatorOrganization.name}),children:(0,n.jsx)(h,{color:"primary"})})]}):a.internalName||a.name,options:{sortPath:e=>{var a;return null==(a=e.internalName||s()(e,"name",""))?void 0:a.toLowerCase()},sortPriority:1,forceFlexColumnHeader:!0}},eD={name:"type",displayName:e("type","Type"),field:e=>e.type,options:{sortPath:e=>{var a;return null==(a=s()(e,"type",""))?void 0:a.toLowerCase()},sortPriority:2,forceFlexColumnHeader:!0}},eI={name:"empty",displayName:"",field:()=>""},eT={name:"actions",displayName:(0,n.jsx)("span",{children:"\xa0"}),field:t=>{let i=eS(t);return(0,n.jsx)(n.Fragment,{children:a.permissions.has(b.Jj.CREATE_CREDENTIALS)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.K0,{alwaysHighlighted:!0,onClick:()=>eP(t),explanation:e("share-credential","Share Credential"),children:(0,n.jsx)(T.A,{})}),!i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.K0,{alwaysHighlighted:!0,onClick:()=>eb(t,!1),explanation:e("deactivate-credential","Deactivate Credential"),children:(0,n.jsx)(I.A,{})}),(0,n.jsx)(u.K0,{alwaysHighlighted:!0,onClick:()=>eA(t),explanation:e("edit-credential","Edit Credential"),children:(0,n.jsx)(c.A,{})})]})]})})}},eW={name:"actions",displayName:(0,n.jsx)("span",{children:"\xa0"}),field:t=>{let i=eS(t);return(0,n.jsx)(n.Fragment,{children:a.permissions.has(b.Jj.CREATE_CREDENTIALS)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.K0,{alwaysHighlighted:!0,onClick:()=>eP(t),explanation:e("share-credential","Share Credential"),children:(0,n.jsx)(T.A,{})}),!i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.K0,{alwaysHighlighted:!0,onClick:()=>eb(t,!0),explanation:e("deactivate-package","Deactivate Package"),children:(0,n.jsx)(I.A,{})}),(0,n.jsx)(u.K0,{alwaysHighlighted:!0,component:f.A,href:"/".concat(a.id,"/credentials/").concat(t.id,"/edit"),children:(0,n.jsx)(c.A,{})})]})]})})}},e_=(0,i.useMemo)(()=>[eE,eD,eT].filter(Boolean),[a.id]),eF=(0,i.useMemo)(()=>[eE,eD,eI].filter(Boolean),[a.id]),eL=(0,i.useMemo)(()=>
1[eE,eD,eW].filter(Boolean),[a.id]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:ex.root,children:[G&&(0,n.jsx)(u.Is,{}),(0,n.jsx)("div",{className:"pageheader",children:(0,n.jsx)(u.H2,{children:e("credentials","Credentials")})}),(0,n.jsx)(u.P,{children:e("credentials-page-explanation",'Credentials can either be used on a standalone basis, or bundled together into a "package" (in the case of a multi-step intake application, for example). Once credentials are defined, use the opportunity wizard to apply that credential as a requirement to registration.')}),(0,n.jsx)("div",{style:{marginBottom:"16px"},children:(0,n.jsx)(D.A,{activeTab:ei,onChange:e=>{el(e.id)},tabs:[{id:"individual",label:e("credential-tab-individual","Individual")},{id:"package",label:e("credential-tab-package","Package")}]})}),"individual"===ei?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(u.P,{children:[e("credentials-page-individual-explanation",'Begin by creating individual credentials. They are the "building blocks" of a Package.  For questions about credentials, contact')," ",(0,n.jsx)(f.A,{href:"https://support.goldenvolunteer.com/knowledge_base",newTab:!0,children:"support"}),"."]}),(0,n.jsx)(y.A,{className:"pageactions",alignItems:"flex-end",left:(0,n.jsx)(v.A,{t:e,value:es,fieldData:{size:"small",placeholder:e("search-credentials","Search Credentials"),startAdornment:(0,n.jsx)(d.A,{position:"start",classes:{positionStart:"adornWrapper"},children:(0,n.jsx)(g.A,{className:"searchIcon"})}),clearAdornment:!!es},onChange:ew}),children:a.permissions.has(b.Jj.CREATE_CREDENTIALS)&&(0,n.jsx)(u.$n,{variant:"primary",onClick:()=>eC(),beforeIcon:(0,n.jsx)(r.A,{}),children:e("create-new-credential","Create New Credential")})}),!!(!es||R&&R.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.A,{t:e,header:e("credentials-count","Credentials ({{credentialCount}})",{credentialCount:R?R.length:"..."}),collapsed:q,setCollapsed:V}),!q&&(0,n.jsxs)(n.Fragment,{children:[!R&&(0,n.jsx)(o.A,{size:24}),R&&!R.length&&(0,n.jsx)(x.A,{message:e("credentials-none-yet","No Credentials yet")}),!!(R&&R.length)&&(0,n.jsx)(w.A,{t:e,className:ex.table,data:R,columns:e_,options:{pagination:{enabled:!0,rowsPerPage:15}}})]})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.P,{children:e("credentials-page-package-explanation",'Packages are a way to bundle individual credentials together in a sequence (e.g., a multi-stage application). Begin by creating the individual credentials you would like as the stages in your sequence, then "assemble" them on this screen. Once your package is ready, you should:')}),(0,n.jsxs)("ol",{children:[(0,n.jsx)("li",{children:e("credentials-page-package-explanation-bullet1","Apply it to the opportunities which require the Package for registration")}),(0,n.jsx)("li",{children:e("credentials-page-package-explanation-bullet2",'Invite participants to complete it on the "Statuses" tab')})]}),(0,n.jsxs)(u.P,{children:[e("credentials-page-package-explanation2","For questions about credentials, contact")," ",(0,n.jsx)(f.A,{href:"https://support.goldenvolunteer.com/knowledge_base",newTab:!0,children:"support"}),"."]}),(0,n.jsx)(y.A,{className:"pageactions",alignItems:"flex-end",left:(0,n.jsx)(v.A,{t:e,value:es,fieldData:{size:"small",placeholder:e("search-packages","Search Packages"),startAdornment:(0,n.jsx)(d.A,{position:"start",classes:{positionStart:"adornWrapper"},children:(0,n.jsx)(g.A,{className:"searchIcon"})}),clearAdornment:!!es},onChange:ew}),children:a.permissions.has(b.Jj.CREATE_CREDENTIALS)&&(0,n.jsx)(u.$n,{variant:"primary",onClick:()=>ek(),beforeIcon:(0,n.jsx)(r.A,{}),children:e("create-new-package","Create A Package")})}),!!(!es||ed&&ed.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.A,{t:e,header:e("packages-count","Packages ({{packageCount}})",{packageCount:ed?ed.length:"..."}),collapsed:q,setCollapsed:V}),!q&&(0,n.jsxs)(n.Fragment,{children:[!ed&&(0,n.jsx)(o.A,{size:24}),ed&&!ed.length&&(0,n.jsx)(x.A,{message:e("packages-none-yet","No Packages yet")}),!!(ed&&ed.length)&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(w.A,{t:e,className:ev(ex.table,ef.table),data:ed,columns:eL,options:{pagination:{enabled:!0,rowsPerPage:15}},collapsible:a=>{let t=a.itemDefinitionMapping.and.filter(e=>e.subWorkflowDefinition).map(e=>e.subWorkflowDefinition);return(0,n.jsx)("div",{className:"collapsibleRowWrapper noPadding",style:{width:"100%"},children:(0,n.jsx)(w.A,{t:e,className:ex.subtable,data:t,columns:eF,noHeader:!0,options:{pagination:{enabled:!1},sortInitially:!1}})})}})})]})]})]}),(0,n.jsx)(N.A,{API:C.Ay,t:e,open:M,mode:J.id?"edit":"create",onClose:()=>K(!1),onSuccess:async()=>{X(!0),K(!1),await ey(),await ej(),X(!1)},initialValues:J,createPackage:"Package"===J.type}),(0,n.jsx)(_.A,{t:e,open:Q,fullWidth:!0,maxWidth:"sm",toggleVisibility:()=>Y(!Q),title:e("share-credential","Share Credential"),alignContent:"leftOnly",children:(0,n.jsxs)("div",{className:ex.root,children:[(0,n.jsx)(L.A,{className:"timeDetails",children:e("share-name-quoted",'Share "{{name}}"',{name:$})}),(0,n.jsx)(F.A,{shareUrl:et,loading:ee})]})}),(0,n.jsx)(P.A,{t:e,open:!!eg,title:(null==eg?void 0:eg.isPackage)?e("deactivate-package","Deactivate Package"):e("deactivate-credential","Deactivate Credential"),message:(null==eg?void 0:eg.isPackage)?e("deactivate-package-confirmation",'Are you sure you want to deactivate the package "{{name}}"? Participants will no longer see the package or be able to complete its steps.',{name:null==eg?void 0:eg.row.name}):e("deactivate-credential-confirmation",'Are you sure you want to deactivate "{{name}}"? Participants will no longer see this credential or be able to complete it.',{name:null==eg?void 0:eg.row.name}),yesLabel:e("deactivate","Deactivate"),noLabel:e("cancel","Cancel"),onClose:()=>ep(null),onConfirm:eN}),(0,n.jsxs)(_.A,{t:e,open:!!eu,fullWidth:!0,maxWidth:"sm",toggleVisibility:()=>em(null),title:(null==eu?void 0:eu.isPackage)?e("cannot-deactivate-package","Cannot Deactivate Package"):e("cannot-deactivate-credential","Cannot Deactivate Credential"),alignContent:"leftOnly",actions:{positive:{label:e("close","Close"),onClick:()=>em(null)}},children:[eu&&eu.usages.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.P,{children:e("cannot-deactivate-credential-explanation",'"{{name}}" cannot be deactivated because the following opportunities require it, including any drafts and templates that could become live. Remove the requirement from these opportunities first. Opportunities that belong to another organization can only be updated by that organization — contact support if you need help.',{name:eu.row.name})}),(0,n.jsx)(S.A,{t:e,usages:eu.usages,organizationId:a.id})]}),eu&&0===eu.usages.length&&(0,n.jsx)(u.P,{children:eu.message})]})]})})}},55276:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var n=t(37876);t(14232);var i=t(34657);let l=e=>{let{t:a,open:t,title:l,message:s,listItems:r,noLabel:o,yesLabel:c,onClose:d,onConfirm:h}=e;return(0,n.jsxs)(i.aF,{t:a,open:t,title:l,maxWidth:"sm",fullWidth:!0,alignContent:"leftOnly",toggleVisibility:d,actions:{positive:{label:c,variant:"alert",onClick:h},negative:{label:o,onClick:d}},children:[(0,n.jsx)(i.H3,{children:s}),r&&r.map((e,a)=>(0,n.jsx)("div",{children:e},"li-".concat(a)))]})}}},e=>{var a=a=>e(e.s=a);e.O(0,[951,636,6593,8792],()=>(a(3821),a(45927))),_N_E=e.O()}]);

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.