PageSourceSearch

https://dashboard.goldenvolunteer.com/_next/static/chunks/951-2d6a9f17c4b0ef1f.js

js goldenvolunteer.com collected 2026-09-24 10:55:36 UTC 26,383 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[951],{26720:(e,t,a)=>{a.d(t,{A:()=>y});var n=a(37876),i=a(14232),r=a(45182),o=a(34657),l=a(77858),c=a(94314),d=a(41177),s=a(28993),u=a(16773),p=a(44878),h=a(19990);let m=(0,p.k3)(),g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.type!==h.Es&&"Yes"===e.expiration&&"Fixed Date"===e["expiration-type"]},k=(0,s.n9)()(()=>({modal:{'& [data-field="volunteerInfoToCollect"]':{"& .list":{marginTop:18,display:"flex",flexWrap:"wrap",gap:24,"& label.option":{margin:0,flex:"0 1 200px","& + label.option":{margin:0}}}},'& [data-field="formQuestions"]':{"& .emptyStateWrapper":{display:"none"},"& .btnWrapper":{display:"inline-flex",justifyContent:"center",marginBottom:16}}}})),y=e=>{let t,{open:a,mode:s,initialValues:p,onClose:y,onSuccess:b,createPackage:f}=e,{classes:v}=k(),[x,C]=(0,i.useState)({}),[w,P]=(0,i.useState)([]),[N,q]=(0,i.useState)(!1),[I,A]=(0,i.useState)([]),[S,j]=(0,i.useState)(!1),[E,$]=(0,i.useState)(null),{currentOrganization:M,loadCredentials:z}=(0,i.useContext)(o.eB),T=M.featuresById,B=M.lmsConfiguration,O=B&&B.enabled&&B.hasApiKey,Y=M.sterlingConfiguration,_=M.checkrConfiguration,F=M.accurateConfiguration,W=Y&&(Y.configured||Y.hasCredentials),D=_&&(_.configured||_.hasCredentials),R=F&&(F.configured||F.hasCredentials),H=W||D||R,L=!!(null==T?void 0:T.internal_checkr_credentials),V=L||H,[Q,G]=(0,i.useState)(!1);(0,i.useEffect)(()=>{(null==M?void 0:M.id)&&d.Ay.Workflow.getOrganizationHierarchyTree(M.id).then(e=>G(((null==e?void 0:e.children)||[]).length>0)).catch(()=>G(!1))},[null==M?void 0:M.id]),(0,i.useEffect)(()=>{setTimeout(()=>(0,o._$)(document.getElementsByName("name")[0]),50)},[]),(0,i.useEffect)(()=>{(async()=>{if(!a||!E||"internal"===E)return A([]);j(!0);try{let e=await d.Ay.Organization.getBackgroundCheckPackages({organizationId:M.id,provider:E});A(e||[])}catch(e){console.error("Failed to fetch background check packages:",e),A([])}finally{j(!1)}})()},[M.id,a,E]),(0,i.useEffect)(()=>{a||($(null),A([]))},[a]);let Z=(0,i.useCallback)(async e=>{if(e&&e.trim()){q(!0);try{let t=await d.Ay.Organization.getLMSCourses({organizationId:M.id,search:e.trim(),limit:10});P(t||[])}catch(e){console.error("Failed to search LMS courses:",e),P([])}finally{q(!1)}}},[M.id]);(0,i.useEffect)(()=>{let e=e=>{"Enter"===e.key&&"lmsCourseSearch"===e.target.name&&(e.preventDefault(),Z(e.target.value))};return document.addEventListener("keypress",e),()=>{document.removeEventListener("keypress",e)}},[Z]);let U=async e=>{let t;if(f)t="create"===s?await d.Ay.Workflow.createWorkflowDefinition(M.id,e.name,e.description,"ORGANIZATION",{},"Package","None","No",null,e.inheritable,e.internalName):await d.Ay.Workflow.editWorkflowDefinition(e.id,M.id,e.name,e.description,"ORGANIZATION",{},"Package","None","No",null,void 0,e.inheritable,e.internalName);else{let a={...e};if(delete a.formQuestions_unfiltered,e.type===h.Es&&(a.expiration="No",a["review-required"]="No"),e.type===h.$$){a.expiration="Yes",a["review-required"]||(a["review-required"]="Yes");let t=e.backgroundCheckProvider;if(!t&&(L&&!H?t="internal":L||!W||D||R?L||!D||W||R?L||!R||W||D||(t="accurate"):t="checkr":t="sterling"),a.backgroundCheckProvider=t,"internal"!==t){let t=I.find(t=>t.id===e.backgroundCheckPackageId);t?(a.packageId=t.id,a.packageName=t.name):(delete a.packageId,delete a.packageName)}else delete a.packageId,delete a.packageName,a.backgroundCheckType=e.backgroundCheckType||"background";"sterling"===t||"accurate"===t?a.backgroundCheckPayer="external":("internal"===t||"checkr"===t)&&(a.backgroundCheckPayer=e.backgroundCheckPayer||"volunteer"),a.minorHandling=e.backgroundCheckMinorHandling}if(g(a)&&(a["review-required"]="Yes",e.type===h.$$&&V&&(a.backgroundCheckMinorHandling="block",a.minorHandling="block")),"Yes"!==a.expiration?(delete a["expiration-type"],delete a["expiration-time"]):"Relative Date"!==a["expiration-type"]&&delete a["expiration-time"],e.type===h.Es&&e.lmsCourseId){let t=w.find(t=>t.id===e.lmsCourseId);t&&(a.lmsCourseId=t.id,a.lmsCourseName=t.name)}let n=a["expiration-type"];
1n||(n="None"),t="create"===s?await d.Ay.Workflow.createWorkflowDefinition(M.id,e.name,e.description,"ORGANIZATION",a,e.type,n,a["review-required"],e.instructions,e.inheritable,e.internalName):await d.Ay.Workflow.editWorkflowDefinition(e.id,M.id,e.name,e.description,"ORGANIZATION",a,e.type,n,a["review-required"],e.instructions,void 0,e.inheritable,e.internalName)}return z(),b(t),t},K=async(e,t)=>{var a;let n=(null==t||null==(a=t.fieldData)?void 0:a.uploadPath)||"/files",i=12e4;"/videos"===n&&(i=0),C({file:!0});let r=await d.Ay.userClient().postFile({url:"".concat(n,"?organizationId=").concat(M.id),data:e,timeout:i});return C({file:!1}),r};t=f?"create"===s?m("create-package-modal-title","Create a Package of Individual Credentials"):m("edit-package-modal-title","Edit Package Details"):"create"===s?m("create-credential-modal-title","Create New Credential"):m("edit-credential-modal-title","Edit Credential");let J=(0,i.useMemo)(()=>f?((e,t,a)=>[{type:"text",name:"name",label:e("custom-credential-credential-package-name","Package Name"),placeholder:e("create-credential-package-name-placeholder","e.g. CPR Certification and Screening")},{type:"text",name:"internalName",label:e("custom-credential-internal-name","Internal Name"),placeholder:e("create-credential-internal-name-placeholder","e.g. BGC - Adults Only"),optional:!0},{type:"textarea",name:"description",label:e("custom-credential-package-description","Description"),placeholder:e("create-credential-package-description-placeholder","e.g. This is the general application for all volunteers new to the org"),optional:!0},{type:"checkbox",name:"inheritable",label:e("inheritable-credential","Make available to child organizations"),controlType:"switch",optional:!0,hide:()=>!a},{type:"actionbar",children:[{type:"submit",key:"submit",name:"submit",label:"create"===t?e("create-package","Create Package"):e("save","Save"),size:"mondo"}]}])(m,s,Q):((e,t,a,i,r,l,d,s,p,m,k,y,b,f,v,x)=>{let C=e("fixed-date-requires-review","Credentials that expire at a fixed date require review so that the expiration date can be entered."),w=e=>{let{values:t}=e;return g(t)?C:void 0};return[{type:"text",name:"name",label:e("custom-credential-credential-name","Credential Name"),placeholder:e("create-credential-name-placeholder","e.g. CPR Certification")},{type:"text",name:"internalName",label:e("custom-credential-internal-name","Internal Name"),placeholder:e("create-credential-internal-name-placeholder","e.g. BGC - Adults Only"),optional:!0},{type:"textarea",name:"description",label:e("custom-credential-description","Description"),placeholder:"e.g. American Heart Association in person class assessment",optional:!0},{type:"checkbox",name:"inheritable",label:e("inheritable-credential","Make available to child organizations"),controlType:"switch",optional:!0,hide:()=>!x},{type:"radiogroup",name:"expiration",label:e("expiration","Does this Credential expire?"),options:[{value:"Yes",label:e("yes","Yes")}
1,{value:"No",label:e("no","No")}],hide:e=>{let{values:t}=e;return t.type===h.Es||t.type===h.$$}},{type:"callback",name:"backgroundCheckExpirationInfo",hide:e=>{let{values:t}=e;return t.type!==h.$$},content:()=>(0,n.jsx)("div",{style:{padding:"12px 16px",backgroundColor:"#e8f4fd",border:"1px solid #90caf9",borderRadius:"4px",marginBottom:"16px"},children:(0,n.jsxs)("div",{style:{color:"#1565c0",fontSize:"0.875rem"},children:[(0,n.jsx)("strong",{children:e("background-check-expiration-required-title","Expiration Required")}),(0,n.jsx)("div",{style:{marginTop:"4px"},children:e("background-check-expiration-required-description","Background Check credentials must have an expiration date to ensure compliance with data retention policies. Please configure when this credential should expire below.")})]})})},{type:"radiogroup",name:"expiration-type",label:e("expiration-type","How will this Credential expire?"),options:[{value:"Fixed Date",label:"At a fixed date."},{value:"Relative Date",label:"At a relative date from when this Credential is awarded."}],hide:e=>{let{values:t}=e;return"Yes"!==t.expiration}},{type:"select",name:"expiration-time",label:e("expiration-time","Select a relative date from when the Credential is awarded to the participant."),options:[{value:"Three Months",name:"3 months"},{value:"Six Months",name:"6 months"},{value:"One Year",name:"1 year"},{value:"Two Years",name:"2 years"},{value:"Three Years",name:"3 years"},{value:"Four Years",name:"4 years"},{value:"Five Years",name:"5 years"}],hide:e=>{let{values:t}=e;return"Yes"!==t.expiration||"Relative Date"!==t["expiration-type"]}},{type:"radiogroup",name:"review-required",label:e("review-required","Does this Credential require review by the Organization?"),options:[{value:"Yes",label:"Yes"},{value:"No",label:"No"}],disabled:e=>{let{values:t}=e;return g(t)},help:w,hide:e=>{let{values:t}=e;return t.type===h.Es}},{type:"select",name:"type",label:e("custom-credential-type","What type of Credential is this?"),placeholder:e("select-credential-type","Select a Credential type"),disabled:"edit"===t,help:"edit"===t?e("credential-type-locked","Credential type cannot be changed after creation. To use a different type, please delete this credential and create a new one."):void 0,options:[{name:"Form",value:"Form"},{name:"Interview",value:"Interview"},{name:"Video",value:"Video"},{name:"Document Upload",value:"Document Upload"},{name:"Offline Process",value:"Offline Process"},...l?[{name:"LMS (Learning Management System)",value:h.Es}]:[],...m?[{name:"Background Check",value:h.$$}]:[]]},{type:"checkboxlist",name:"volunteerInfoToCollect",label:e("store-responses-in-participant-profile","Select which participant information to collect:"),layout:"horizontal",options:[{label:e("phone-number","Phone Number"),name:"phone"},{label:e("middle-name","Middle Name"),name:"middleName"},{label:e("date-of-birth","Date of Birth"),name:"dob"},{label:e("mailing-address","Mailing Address"),name:"mailingAddress"},a.post_signup_line_messenger&&{label:e("line-messenger","LINE Messenger"),name:"lineMessenger"},{label:e("company-affiliation","Company Affiliation"),name:"companyAffiliations"},{label:e("dietary-restrictions","Dietary Restrictions"),name:"dietaryRestrictions"},{label:e("need-for-transportation","Need for Transportation"),name:"needsTransportation"},{label:e("emergency-contact","Emergency Contact"),name:"emergencyContact"},{label:e("allow-email-notifications","Allow Email Notifications"),name:"allowEmailNotifications"},((null==a?void 0:a.demographics_all)||(null==a?void 0:a.demographics_language))&&{label:e("language-proficiency","Language Proficiency"),name:"languageProficiency"},((null==a?void 0:a.demographics_all)||(null==a?void 0:a.demographics_pronouns))&&{label:e("pronouns","Pronouns"),name:"pronouns"},((null==a?void 0:a.demographics_all)||(null==a?void 0:a.demographics_gender))&&{label:e("gender","Gender"),name:"gender"}].filter(Boolean),hide:e=>{let{values:t}=e;return"Form"!==t.type}},{type:"text",name:"lmsCourseSearch",label:e("search-lms-courses","Search for LMS Course"),placeholder:e("search-course-placeholder","Enter course name or keyword (e.g., safety), then press Enter"),help:i.length>0?"Found ".concat(i.length," course").concat(1!==i.length?"s":""):null,hide:e=>{let{values:t}=e;return t.type!==h.Es||!l}},{type:"select",name:"lmsCourseId",label:e("lms-course-selection","Select LMS Course"),placeholder:0===i.length?e("search-courses-first","Search for courses first"):e("select-lms-course","Choose a course from your LMS"),options:i.map(e=>({name:e.name,value:e.id})),loading:r,hide:e=>{let{values:t}=e;return t.type!==h.Es||!l}},{type:"callback",name:"lmsNotConfiguredWarning",hide:e=>{let{values:t}=e;return t.type!==h.Es||l},content:()=>(0,n.jsxs)("div",{style:{padding:"16px",backgroundColor:"#fff3cd",border:"1px solid #ffc107",borderRadius:"4px",marginBottom:"16
1px"},children:[(0,n.jsx)("div",{style:{fontWeight:"bold",color:"#856404",marginBottom:"8px"},children:"⚠️ Litmos LMS Integration Not Configured"}),(0,n.jsxs)("div",{style:{color:"#856404"},children:["To create LMS credentials, you must first configure the Litmos integration in your"," ",(0,n.jsx)(o.N_,{href:"/".concat(d.id,"/settings/integrations"),style:{color:"#856404",textDecoration:"underline"},children:"organization settings"}),"."]})]})},{type:"select",name:"backgroundCheckProvider",label:e("background-check-provider","Background Check Provider"),placeholder:e("select-background-check-provider","Select a provider"),options:[...k?[{name:e("golden-internal","Golden (Internal Checkr)"),value:"internal"}]:[],...b?[{name:e("organization-sterling","Organization's Sterling Account"),value:"sterling"}]:[],...f?[{name:e("organization-checkr","Organization's Checkr Account"),value:"checkr"}]:[],...v?[{name:e("organization-accurate","Organization's Accurate Account"),value:"accurate"}]:[]],hide:e=>{let{values:t}=e;return t.type!==h.$$||!m||+!!k+ +!!b+ +!!f+ +!!v<=1}},{type:"radiogroup",name:"backgroundCheckPayer",label:e("background-check-payer","Who will pay for the background check?"),options:[{value:"organization",label:e("organization-pays","Organization pays")},{value:"volunteer",label:e("volunteer-pays","Volunteer pays")}],hide:e=>{let{values:t}=e;if(t.type!==h.$$||!m)return!0;let a=t.backgroundCheckProvider;return"internal"!==a&&"checkr"!==a}},{type:"callback",name:"orgPaysCheckrInfo",hide:e=>{let{values:t}=e;if(t.type!==h.$$)return!0;let a=t.backgroundCheckProvider,n=t.backgroundCheckPayer;return"internal"!==a&&"checkr"!==a||"organization"!==n},content:()=>{let t=!!d.checksPaymentMethod,a=!!d.checksPaymentMethodExpired;return!t||a?(0,n.jsxs)("div",{style:{padding:"16px",backgroundColor:"#fff3e0",border:"1px solid #ff9800",borderRadius:"4px",marginBottom:"16px"},children:[(0,n.jsx)("div",{style:{fontWeight:"bold",color:"#e65100",marginBottom:"8px"},children:e("org-pays-missing-payment-title","Payment Method Required")}),(0,n.jsx)("div",{style:{color:"#e65100"},children:a?e("org-pays-expired-payment-description","Your organization's payment method has expired. Please update your payment method in billing settings before creating an organization-paid background check credential."):e("org-pays-missing-payment-description","Your organization must have a payment method configured to pay for background checks. Please add a payment method in billing settings before creating this credential.")}),(0,n.jsx)("div",{style:{marginTop:"12px"},children:(0,n.jsx)(o.N_,{href:"/".concat(d.id,"/settings/billing"),style:{color:"#e65100",textDecoration:"underline"},children:e("go-to-billing-settings","Go to Billing Settings")})})]}):(0,n.jsxs)("div",{style:{padding:"16px",backgroundColor:"#e8f5e9",border:"1px solid #4caf50",borderRadius:"4px",marginBottom:"16px"},children:[(0,n.jsx)("div",{style:{fontWeight:"bold",color:"#2e7d32",marginBottom:"8px"},children:e("org-pays-checkr-info-title","Organization Sponsored Background Check")}),(0,n.jsx)("div",{style:{color:"#2e7d32"},children:e("org-pays-checkr-info-description","Your organization will be charged for each background check when volunteers complete this credential.")})]})}}
1,{type:"callback",name:"volunteerPaysCheckrInfo",hide:e=>{let{values:t}=e;if(t.type!==h.$$)return!0;let a=t.backgroundCheckProvider,n=t.backgroundCheckPayer;return"internal"!==a&&"checkr"!==a||"volunteer"!==n},content:()=>(0,n.jsxs)("div",{style:{padding:"16px",backgroundColor:"#e3f2fd",border:"1px solid #2196f3",borderRadius:"4px",marginBottom:"16px"},children:[(0,n.jsx)("div",{style:{fontWeight:"bold",color:"#1565c0",marginBottom:"8px"},children:e("volunteer-pays-checkr-info-title","Volunteer Paid Background Check")}),(0,n.jsx)("div",{style:{color:"#1565c0"},children:e("volunteer-pays-checkr-info-description","Volunteers will pay for their own background check through Golden's secure payment system before the check is initiated.")})]})},{type:"select",name:"backgroundCheckPackageId",label:e("background-check-package","Select Background Check Package"),placeholder:0===s.length?e("no-packages-available","No packages available"):e("select-background-check-package","Choose a background check package"),options:s.map(e=>({name:e.name,value:e.id})),loading:p,hide:e=>{let{values:t}=e;return!(t.type===h.$$&&m&&["sterling","checkr","accurate"].includes(t.backgroundCheckProvider))||!!k&&!y}},{type:"radiogroup",name:"backgroundCheckType",label:e("background-check-type","Check Type"),options:[{value:"background",label:e("background-check","Background Check")},{value:"motorVehicle",label:e("motor-vehicle-check","Motor Vehicle Records Check")}],hide:e=>{let{values:t}=e;return t.type!==h.$$||!m||"internal"!==t.backgroundCheckProvider}},{type:"radiogroup",name:"backgroundCheckMinorHandling",label:e("background-check-minor-handling","How should minors be handled?"),options:[{value:"block",label:e("block-minors","Require review (skip background check)")},{value:"skip",label:e("skip-for-minors","Auto-complete for minors (no background check required)")}],disabled:e=>{let{values:t}=e;return g(t)},help:w,hide:e=>{let{values:t}=e;return t.type!==h.$$||!m}},{type:"questions",name:"formQuestions",supportsConditionals:!1,supportsFiles:!1,supportsParticipantStorage:!0,supportsMultiline:!0,initialQuestions:null,totalSections:1,showPaymentCustomQuestions:null==a?void 0:a.allow_payment_custom_questions,hide:e=>{let{values:t}=e;return"Form"!==t.type}},{type:"fileuploadlist",key:"fileupload",name:"videoObjects",label:e("videos","Videos"),uploadCTA:e("choose-videos","Choose a Video"),help:(0,n.jsxs)(u.Trans,{i18nKey:"videoUploadHelp",children:[(0,n.jsxs)(c.A,{children:[(0,n.jsx)("strong",{children:"Golden recommends videos no longer than 30 minutes in length"}),"."]}),(0,n.jsxs)(c.A,{children:["In order to receive credit for completing this credential, the participant must watch the entire video in a single session (they cannot pause it or return at a later time to complete and interrupted session).  If you have materials longer than 30 minutes in duration, we recommend using multiple credentials in sequence to complete the viewing requirement.  Please reach out to ",(0,n.jsx)(o.N_,{href:"mailto:[email protected]",children:"support"})," for questions."]})]}),disableMultiple:!0,size:"large",allowedFiletypes:["video"],uploadPath:"/videos",hide:e=>{let{values:t}=e;return"Video"!==t.type}},{type:"textarea",name:"instructions",label:e("instructions","Instructions"),placeholder:e("instructions-placeholder","Explain how to complete this Credential."),optional:!0},{type:"actionbar",children:[{type:"submit",key:"submit",name:"submit",label:"create"===t?e("create-credential","Create Credential"):e("save","Save"),size:"mondo"}]}]})(m,s,T,w,N,O,M,I,S,V,L,H,W,D,R,Q),[f,m,s,T,w,N,O,M,I,S,V,L,H,W,D,R,Q]),X=!!(M.checksPaymentMethod&&!M.checksPaymentMethodExpired),ee=f?(e=>{let{t}=e;return r.object().shape({name:r.string().ensure().trim().required().label(t("credential-name","Credential Name"))})})({t:m}):(e=>{let{t,isLMSConfigured:a,isBackgroundCheckConfigured:n,hasOrgPaymentMethod:i}=e;return r.object().shape({name:r.string().ensure().trim().required().label(t("credential-name","Credential Name")),expiration:r.string().when("type",(e,a)=>e===h.Es||e===h.$$?a:a.required().label(t("has-expiration","Expiration"))),"expiration-type":r.string().when("expiration",(e,a)=>"Yes"===e?a.required().label(t("expiration-type","Expiration type")):a),"expiration-time":r.string().when(["expiration","expiration-type"],(e,a,n)=>"Yes"===e&&"Relative Date"===a?n.required().label(t("expiration-type","Expiration time")):n),"review-required":r.string().when("type",(e,a)=>e===h.Es?a:a.required().label(t("requires-review","Requires review"))),type:r.string().required().label(t("credential-type","Credential type")),volunteerInfoToCollect:r.object().when("type",(e,a)=>"Form"===e?a.test("form-has-content",t("form-must-collect-something","Form credentials must collect either participant information or have at least one custom question"),function(e){let t=this.parent.formQuestions_unfiltered||this.parent.formQuestions||[],a=e&&Object.values(e).some(e=>!0===e),n=t.some(e=>(null==e?void 0:e.type)!=="sectionHeader"&&(null==e?void 0:e.type)!=="sectionFooter"&&(null==e?void 0:e.payload)&&e.payload.trim().length>0);return a||n}):a),backgroundCheckProvider:r.string().when("type",(e,a)=>e===h.$$&&n?a.required().label(t("background-check-provider","Backgroun
1d Check Provider")):a),videoObjects:r.mixed().when("type",(e,a)=>"Video"===e?a.required("A video is required for this credential type").test("has-video","You must upload a video",e=>e&&Array.isArray(e)&&e.length>0).label(t("videos","Videos")):a),lmsCourseId:r.string().when("type",(e,n)=>e===h.Es&&a?n.required().label(t("lms-course","LMS Course")):n),backgroundCheckPackageId:r.string().when(["type","backgroundCheckProvider"],(e,a,i)=>e===h.$$&&n&&("sterling"===a||"checkr"===a||"accurate"===a)?i.required().label(t("background-check-package","Background Check Package")):i),backgroundCheckMinorHandling:r.string().when("type",(e,a)=>e===h.$$&&n?a.required().label(t("background-check-minor-handling","Minor handling")):a),backgroundCheckPayer:r.string().when(["type","backgroundCheckProvider"],(e,a,r)=>e===h.$$&&n&&("internal"===a||"checkr"===a)?r.required().test("org-has-payment-method",t("org-payment-method-required",'Your organization must have a payment method configured to select "Organization pays". Please add a payment method in Billing Settings.'),e=>"organization"!==e||i).label(t("background-check-payer","Who pays")):r),formQuestions:r.array().when("type",(e,a)=>"Form"===e?a.test("at-least-one-question",t("at-least-one-question-required","Please add at least one question or select participant information to collect"),function(e){if(Object.values(this.parent.volunteerInfoToCollect||{}).some(e=>!0===e))return!0;let t=this.parent.formQuestions_unfiltered||e;return!!t&&0!==t.length&&t.some(e=>(null==e?void 0:e.type)!=="sectionHeader"&&(null==e?void 0:e.type)!=="sectionFooter"&&(null==e?void 0:e.payload)&&e.payload.trim().length>0)}).test("list-questions-have-options",t("list-questions-need-options","List-type questions must have at least one answer option"),function(e){let t=this.parent.formQuestions_unfiltered||e;return!t||0===t.length||t.every(e=>!((null==e?void 0:e.payload)&&e.payload.trim())||(null==e?void 0:e.type)==="sectionHeader"||(null==e?void 0:e.type)==="sectionFooter"||(null==e?void 0:e.type)!=="multiselect"&&(null==e?void 0:e.type)!=="select"&&(null==e?void 0:e.type)!=="radio"&&(null==e?void 0:e.type)!=="checklist"||(null==e?void 0:e.options)&&e.options.filter(e=>(null==e?void 0:e.trim)&&e.trim().length>0).length>0)}).label(t("custom-questions","Custom Questions")):a)})})({t:m,isLMSConfigured:O,isBackgroundCheckConfigured:V,hasOrgPaymentMethod:X}),et=(0,i.useMemo)(()=>{let e={...p||{}};return e.packageId&&!e.backgroundCheckPackageId&&(e.backgroundCheckPackageId=e.packageId),e.minorHandling&&!e.backgroundCheckMinorHandling&&(e.backgroundCheckMinorHandling=e.minorHandling),e},[p]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(o.aF,{open:a,title:t,toggleVisibility:y,maxWidth:"md",fullWidth:!0,alignContent:"leftOnly",rootClassName:v.modal,children:(0,n.jsx)(l.default,{initialValues:et,data:J,validationSchema:ee,onSubmit:U,onChange:e=>{let{values:t,setFieldValue:a}=e;if(!t.formQuestions&&"Form"===t.type){let e=document.querySelector('[data-field="formQuestions"] button');e&&e.click()}if(t.type===h.Es&&("No"!==t.expiration&&a("expiration","No"),"No"!==t["review-required"]&&a("review-required","No")),t.type===h.$$){"Yes"!==t.expiration&&a("expiration","Yes"),t["review-required"]||a("review-required","Yes");let e=null;!t.backgroundCheckProvider&&(L&&!H?(a("backgroundCheckProvider","internal"),e="internal"):L||!W||D||R?L||!D||W||R?L||!R||W||D||(a("backgroundCheckProvider","accurate"),e="accurate"):(a("backgroundCheckProvider","checkr"),e="checkr"):(a("backgroundCheckProvider","sterling"),e="sterling"));let n=e||t.backgroundCheckProvider;"internal"!==n||t.backgroundCheckType||a("backgroundCheckType","background");let i=null!==E&&n!==E;n!==E&&$(n||null),i&&a("backgroundCheckPackageId","")}else E&&($(null),a("backgroundCheckPackageId",""));g(t)&&("Yes"!==t["review-required"]&&a("review-required","Yes"),t.type===h.$$&&V&&"block"!==t.backgroundCheckMinorHandling&&a("backgroundCheckMinorHandling","block"))},onFileSelected:K,fetching:x})})})}},38773:(e,t,a)=>{a.d(t,{A:()=>r});var n=a(37876);a(14232);var i=a(68768);let r=e=>{let{t,usages:a,organizationId:r}=e;return(0,n.jsx)("ul",{style:{margin:"8px 0 0",paddingLeft:"20px"},children:a.map(e=>{let a=e.organizationId===r,o=(e=>{switch(e){case"draft":return t("credential-usage-status-draft","draft");case"submitted":return t("credential-usage-status-submitted","pending approval");case"template":return t("credential-usage-status-template","template");default:return null}})(e.opportunityStatus);return(0,n.jsxs)("li",{children:[a?(0,n.jsx)(i.A,{href:"/".concat(r,"/opportunities/all?edit=").concat(e.opportunityId),newTab:!0,children:e.opportunityName}):(0,n.jsxs)(n.Fragment,{children:[e.opportunityName,e.organizationName?" — ".concat(e.organizationName):""]}),o?" (".concat(o,")"):"",e.viaPackageName?" ".concat(t("credential-usage-via-package",'(via package "{{name}}")',{name:e.viaPackageName})):""]},"".concat(e.opportunityId,"-").concat(e.viaPackageId||"direct"))})})}},55982:(e,t,a)=>{a.d(t,{A:()=>r});var n=a(28993),i=a(97397);let r=(0,n.n9)()(e=>
1({root:{"& .rootdivider":{border:"2px solid ".concat((0,i.A)(e.custom.colors.amberjack,.5)),marginTop:16,marginBottom:16},"& .pageactions":{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",marginBottom:24}},table:{'& [data-role*="col-actions"]':{display:"flex",justifyContent:"flex-end",minWidth:75,[e.breakpoints.down("sm")]:{justifyContent:"space-between",marginTop:25,padding:"15px 0 5px 0px",position:"relative","&:before":{content:'""',height:1,left:0,right:0,position:"absolute",top:0,backgroundColor:e.custom.colors.shimmer}}},'& [data-role*="mob-col-actions"]':{display:"none"}},modalButtonArray:{'& [data-field="actions"] [data-field]':{width:"unset"}},addCredentialButton:{"& button":{marginTop:16}}}),{name:"GroupsListPage"})}}]);

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.