PageSourceSearch

https://www.jofiscore.com/_next/static/chunks/pages/system/account…/data-exports-3681f9781f16c4c6.js

js jofiscore.com collected 2026-10-09 23:29:57 UTC 32,326 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dcc47b34-c8b2-4f41-bc4f-09dd51b224a8",e._sentryDebugIdIdentifier="sentry-dbid-dcc47b34-c8b2-4f41-bc4f-09dd51b224a8")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8992],{3352:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/system/accounts/[accountId]/data-exports",function(){return n(37466)}])},37466:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ey});var s=n(37876),a=n(48230),r=n.n(a),i=n(89099),o=n(2431),c=n(68500),_=n(40491),l=n(68533),d=n(1129),g=n(29121),u=n(81796),h=n(44534),m=n(81359),p=n(74156),f=n(96804),y=n(35578),x=n(3732),j=n(54043),v=n(88468),k=n(66971),b=n(28320),w=n(84283),I=n(28888),A=n(14232),$=n(86892),E=n(45753),T=n(62247),q=n(15347),D=n(29610),z=n(90518),S=n(1988),C=n(89738),N=n(15637),O=n(66116),P=n(27107),B=n(22005),W=n(15986),R=n(4981),V=n(26080),M=n(22999),F=n.n(M),L=n(37085),X=n.n(L),G=n(1054),Q=n(84893),H=n(48789),J=n(16168),U=n(53889),K=n(56557),Z=n.n(K),Y=n(80147);function ee(){let e=(0,I._)(["\n  query AccountTestTakersAggregateQuery($accountId: Int!) {\n    test_taker_seats_aggregate(where: { account_id: { _eq: $accountId } }) {\n      aggregate {\n        count\n      }\n    }\n  }\n"]);return ee=function(){return e},e}function et(){let e=(0,I._)(["\n  ","\n\n  query AccountTestTakersQuery($accountId: Int!, $cursor: Int!, $limit: Int!) {\n    test_taker_seats(\n      limit: $limit\n      where: { account_id: { _eq: $accountId }, id: { _gt: $cursor } }\n      order_by: { id: asc }\n    ) {\n      ...testTakerFields\n      score_profile_scores(\n        where: { score_profile: { is_system_profile: { _eq: true } } }\n        order_by: { score_profile: { short_name: asc } }\n      ) {\n        score_profile {\n          id\n          display_name\n          short_name\n        }\n        raw_score\n        job_fit_percentage\n        star_score\n      }\n    }\n  }\n"]);return et=function(){return e},e}let en=(0,H.gql)(ee()),es=(0,H.gql)(et(),J.A),ea=e=>{let t=(0,i.useRouter)(),n=(0,G.A)(),{status:a,onLoading:r,onSuccess:o,onError:c}=(0,Q.A)("idle"),[_,d]=(0,A.useState)(null),[g,u]=(0,A.useState)(0),[h,m]=(0,A.useState)(0),[p,f]=(0,A.useState)("fetching"),[j,k]=(0,A.useState)([]);return(0,A.useEffect)(()=>{async function e(e){try{r();let{test_taker_seats_aggregate:{aggregate:{count:t}}}=await n.request(en,{accountId:e});u(t);let s=[],a=Math.ceil(t/25),i=0,c=0;for(;i<=a;){let t=await n.request(es,{accountId:e,cursor:c,limit:25});t.test_taker_seats&&t.test_taker_seats.length>0&&(s=s.concat(t.test_taker_seats),m(s.length),c=t.test_taker_seats[t.test_taker_seats.length-1].id),i+=1}if(d(s),f("processing"),s.length>0){let e=[];for(let t of s){let n;console.log("Calculating job fit for TestTaker ".concat(t.id,"..."));let s=t.assigned_tests.find(e=>e.test.short_name===U.rq.short_name&&e.is_used_for_scoring),a=t.assigned_tests.find(e=>e.test.short_name===U.ah.short_name&&e.is_used_for_scoring),r=t.assigned_tests.find(e=>e.test.short_name===U.Et.short_name&&e.is_used_for_scoring),i=t.assigned_tests.find(e=>e.test.short_name===U.lA.short_name&&e.is_used_for_scoring),o={last_name:t.invitation.last_name,first_name:t.invitation.first_name,email:t.invitation.sent_to_email,custom_id:t.invitation.custom_id?(0,Y.G3)(t.invitation.custom_id):null,team_name:t.invitation.team.display_name,prescreen_completed_at:(null==s?void 0:s.completed_at)?Z()(s.completed_at).format(U.Nt):null,thinking_completed_at:(null==a?void 0:a.completed_at)?Z()(a.completed_at).format(U.Nt):null,personality_completed_at:(null==r?void 0:r.completed_at)?Z()(r.completed_at).format(U.Nt):null,interests_completed_at:(null==i?void 0:i.completed_at)?Z()(i.completed_at).format(U.Nt):null,riasec_letters:t.riasec_letters||null};for(n in t.score_profile_scores.forEach((e,t)=>{o["jf_".concat(t+1,"_name")]="".concat(e.score_profile.short_name," - ").concat(e.score_profile.display_name),o["jf_".concat(t+1,"_jofiscore")]=e.raw_score,o["jf_".concat(t+1,"_five_star")]=e.star_score}),U.dx){let e=U.dx[n],s=0;if(t.tests_with_scores){let n=t.tests_with_scores.find(t=>t.test_taker_scores.some(t=>t.score_component.short_name===e));if(n){let t=n.test_taker_scores.find(t=>t.score_component.short_name===e);t&&(s=t.score_value)}}o[n]=s}e.push(o)}let t=F()(e,["last_name","first_name"],["asc","asc"]);k(t)}f("ready"),o()}catch(e){c("Error loading test takers")}}t.query.accountId&&e(Number(t.query.accountId))},[t.query.accountId]),(0,s.jsxs)($.aF,{isOpen:e.isOpen,onClose:e.onClose,scrollBehavior:"inside",size:"4xl",children:[(0,s.jsx)(E.m,{}),(0,s.jsxs)(T.$,{children:[(0,s.jsx)(q.r,{children:"Account Test Taker Data Export"}),(0,s.jsx)(D.s,{}),(0,s.jsxs)(z.c,{children:["loading"===a&&"fetching"===p&&(0,s.jsxs)(l.B,{textAlign:"center",children:[(0,s.jsx)(x.E,{fontWeight:"bold",children:"Step 1 of 2: Query"}),(0,s.jsx)(S.k,{value:Math.ceil(h/g*100)}),(0,s.jsxs)(x.E,{children:["Fetched data for ",h," of ",g," test takers"]})]}),"loading"===a&&"processing"===p&&_&&(0,s.jsxs)(l.B,{textAlign:"center",alignItems:"center",children:[(0,s.jsx)(x.E,{fontWeight:"bold",children:"Step 2 of 2: Calculate Scores"}),(0,s.jsx)(C.y,{}),(0,s.jsxs)(x.E,{children:["Processing ",_.length," test takers"]})]}),"loaded"===a&&_&&(0,s.jsxs)(y.az,{children:[(0,s.jsxs)(x.E,{children:[j.length," CSV rows"]}),(0,s.jsxs)(N.X,{children:[(0,s.jsx)(O.d,{children:(0,s.jsxs)(P.Tr,{children:[(0,s.jsx)(B.Th,{children:"Name"}),(0,s.jsx)(B.Th,{children:"Email"}),(0,s.jsx)(B.Th,{children:"RIASEC Profile"})]})}),(0,s.jsx)(W.N,{children:j&&j.length>0&&j.map(e=>(0,s.jsxs)(P.Tr,{children:[(0,s.jsxs)(R.Td,{whiteSpace:"nowrap",children:[e.last_name,", ",e.first_name]}),(0,s.jsx)(R.Td,{children:e.email}
1),(0,s.jsx)(R.Td,{children:e.riasec_letters})]},e.email))})]})]}),"error"===a&&(0,s.jsx)(y.az,{textAlign:"center",children:(0,s.jsx)(x.E,{children:"Error. Please refresh and try again."})})]}),(0,s.jsxs)(V.j,{children:[(0,s.jsx)(v.$,{variant:"ghost",mr:3,onClick:e.onClose,children:"Close"}),(0,s.jsx)(v.$,{disabled:"loaded"!==a||0===j.length,onClick:function(){if(j.length>0){let e=t.query.accountId||"unknown",n=X().unparse(j),s=document.createElement("a");s.href="data:text/csv;charset=utf-8,"+encodeURI(n),s.target="_blank",s.download="jofi-account-".concat(e,"_test-taker-data-export_").concat(Z()().format(U.aX),".csv"),s.click()}},children:"Download CSV"})]})]})]})};var er=n(67957);function ei(){let e=(0,I._)(["\n  query AccountTestTakersAggregateQuery($accountId: Int!) {\n    test_taker_seats_aggregate(where: { account_id: { _eq: $accountId } }) {\n      aggregate {\n        count\n      }\n    }\n  }\n"]);return ei=function(){return e},e}function eo(){let e=(0,I._)(["\n  query AccountTestTimingExport($accountId: Int!, $cursor: Int!, $limit: Int!) {\n    test_taker_seats(\n      limit: $limit\n      where: { account_id: { _eq: $accountId }, id: { _gt: $cursor } }\n      order_by: { id: asc }\n    ) {\n      id\n      uuid\n      created_at\n      account {\n        display_name\n        id\n      }\n      team {\n        id\n        display_name\n      }\n      invitation {\n        id\n        custom_id\n        first_name\n        last_name\n        sent_to_email\n        sent_to_phone\n        send_via_email\n        send_via_sms\n        created_at\n        accepted_at\n        sent_by_user {\n          id\n          first_name\n          last_name\n          email\n        }\n      }\n      assigned_tests(\n        order_by: [\n          { completed_at: asc }\n          { progress_saved_at: asc }\n          { started_at: asc }\n          { created_at: asc }\n        ]\n      ) {\n        id\n        is_used_for_scoring\n        created_at\n        started_at\n        progress_saved_at\n        completed_at\n        test {\n          id\n          display_name\n          short_name\n        }\n        drasgow_test_form_id\n        drasgow_session_id\n      }\n    }\n  }\n"]);return eo=function(){return e},e}let ec=(0,H.gql)(ei()),e_=(0,H.gql)(eo());function el(e,t){return e.find(e=>e.test.short_name===t&&e.is_used_for_scoring)}function ed(e){return e?Z()(e).format(U.Nt):null}function eg(e,t){return Z()(e).diff(t,"hour").toString()}function eu(e){var t,n;let{invitation:s,team:a,assigned_tests:r}=e,i=el(r,U.rq.short_name),o=el(r,U.ah.short_name),c=el(r,U.Et.short_name),_=el(r,U.lA.short_name),l=[i,o,c,_],d=function(e){let t=null;for(let n of e)(null==n?void 0:n.completed_at)&&(!t||Z()(n.completed_at).isBefore(t))&&(t=n.completed_at);return t}(l),g=function(e){let t=null;for(let n of e)(null==n?void 0:n.completed_at)&&(!t||Z()(n.completed_at).isAfter(t))&&(t=n.completed_at);return t}(l);return{first_name:s.first_name,last_name:s.last_name,email:s.sent_to_email,custom_id:s.custom_id?(0,Y.G3)(s.custom_id):null,invited_by:null!=(n=null==(t=s.sent_by_user)?void 0:t.email)?n:null,team:a.display_name,invitation_created_at:ed(s.created_at),invitation_accepted_at:ed(s.accepted_at),prescreen_completed_at:ed(null==i?void 0:i.completed_at),thinking_completed_at:ed(null==o?void 0:o.completed_at),personality_completed_at:ed(null==c?void 0:c.completed_at),interests_completed_at:ed(null==_?void 0:_.completed_at),invitation_created_to_first_test_completed_hours:d?eg(d,s.created_at):null,invitation_created_to_invitation_accepted_hours:s.accepted_at?eg(s.accepted_at,s.created_at):null,invitation_accepted_to_first_test_completed_hours:d&&s.accepted_at?eg(d,s.accepted_at):null,first_test_completed_to_last_test_completed_hours:d&&g?eg(g,d):null}}async function eh(e,t,n){let{test_taker_seats_aggregate:{aggregate:{count:s}}}=await e.request(ec,{accountId:t}),a=[],r=0;for(;;){var i;let s=null!=(i=(await e.request(e_,{accountId:t,cursor:r,limit:25})).test_taker_seats)?i:[];if(0===s.length||(a=a.concat(s),null==n||n(a.length),s.length<25))break;r=s[s.length-1].id}return{totalCount:s,testTakerSeats:a}}let em=e=>{let t=(0,G.A)(),{status:n,onLoading:a,onSuccess:r,onError:i}=(0,Q.A)("idle"),[o,c]=(0,A.useState)(null),[_,d]=(0,A.useState)(0),[g,u]=(0,A.useState)(0),[h,m]=(0,A.useState)(!1),[p,f]=(0,A.useState)("fetching"),[j,k]=(0,A.useState)([]);(0,A.useEffect)(()=>
1{if(!e.isOpen)return;let n=!1;return async function(e){c(null),d(0),u(0),m(!1),k([]),f("fetching");try{a();let{totalCount:s,testTakerSeats:i}=await eh(t,e,e=>{n||u(e)});if(n)return;d(s),c(i),m(i.length!==s),f("processing");let o=F()(i.map(eu),["last_name","first_name"],["asc","asc"]);k(o),f("ready"),r()}catch(e){n||i(e,"Error loading test takers")}}(e.accountId),()=>{n=!0}},[e.isOpen,e.accountId]);let b=_>0?Math.min(100,Math.ceil(g/_*100)):0;return(0,s.jsxs)($.aF,{isOpen:e.isOpen,onClose:e.onClose,scrollBehavior:"inside",size:"4xl",children:[(0,s.jsx)(E.m,{}),(0,s.jsxs)(T.$,{children:[(0,s.jsx)(q.r,{children:"Account Test Timing Export"}),(0,s.jsx)(D.s,{}),(0,s.jsxs)(z.c,{children:["loading"===n&&"fetching"===p&&(0,s.jsxs)(l.B,{textAlign:"center",children:[(0,s.jsx)(x.E,{fontWeight:"bold",children:"Step 1 of 2: Query"}),(0,s.jsx)(S.k,{value:b}),(0,s.jsxs)(x.E,{children:["Fetched data for ",g," of ",_," test takers"]})]}),"loading"===n&&"processing"===p&&o&&(0,s.jsxs)(l.B,{textAlign:"center",alignItems:"center",children:[(0,s.jsx)(x.E,{fontWeight:"bold",children:"Step 2 of 2: Calculate Timing"}),(0,s.jsx)(C.y,{}),(0,s.jsxs)(x.E,{children:["Processing ",o.length," test takers"]})]}),"loaded"===n&&o&&(0,s.jsxs)(y.az,{children:[(0,s.jsxs)(x.E,{children:[j.length," CSV rows"]}),h&&(0,s.jsxs)(x.E,{mt:2,color:"orange.600",fontSize:"sm",children:["Expected ",_," test takers but only fetched"," ",o.length,". The CSV may be incomplete."]}),(0,s.jsxs)(N.X,{mt:4,children:[(0,s.jsx)(O.d,{children:(0,s.jsxs)(P.Tr,{children:[(0,s.jsx)(B.Th,{children:"Name"}),(0,s.jsx)(B.Th,{children:"Email"})]})}),(0,s.jsx)(W.N,{children:j.map((e,t)=>(0,s.jsxs)(P.Tr,{children:[(0,s.jsxs)(R.Td,{whiteSpace:"nowrap",children:[e.last_name,", ",e.first_name]}),(0,s.jsx)(R.Td,{children:e.email})]},"".concat(e.email,"-").concat(e.last_name,"-").concat(e.first_name,"-").concat(t)))})]})]}),"error"===n&&(0,s.jsx)(y.az,{textAlign:"center",children:(0,s.jsx)(x.E,{children:"Error. Please refresh and try again."})})]}),(0,s.jsxs)(V.j,{children:[(0,s.jsx)(v.$,{variant:"ghost",mr:3,onClick:e.onClose,children:"Close"}),(0,s.jsx)(v.$,{disabled:"loaded"!==n||0===j.length,onClick:function(){var t;t=e.accountId,0!==j.length&&((0,Y.gL)(j,"jofi-account-".concat(t,"_test-timing-export_").concat(Z()().format(U.aX),".csv"),{utf8Bom:!0,quotes:!0}),(0,er.sx)(er.oA.EXPORT_TEST_TIMING,{accountId:String(t),rowCount:j.length}))},children:"Download CSV"})]})]})]})};var ep=n(86498);function ef(e){let{isOpen:t,onOpen:n,onClose:a}=(0,f.j)(),{isOpen:r,onOpen:i,onClose:o}=(0,f.j)(),{isOpen:c,onOpen:_,onClose:g}=(0,f.j)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.B,{spacing:"4",children:[(0,s.jsxs)(y.az,{children:[(0,s.jsx)(d.D,{size:"md",children:"Account Data Exports"}),(0,s.jsx)(x.E,{fontSize:"sm",color:"gray.600",children:"Choose a pre-configured data export, each built for a specific purpose or client need."})]}),(0,s.jsxs)(l.B,{spacing:"4",children:[(0,s.jsx)(y.az,{children:(0,s.jsxs)(j.z,{spacing:2,align:"center",children:[(0,s.jsx)(v.$,{onClick:n,variant:"outline",size:"sm",children:"Test Taker Data Export"}),(0,s.jsx)(k.m,{label:"Download a CSV of test dates and scores for all test takers in this account.",hasArrow:!0,children:(0,s.jsx)(y.az,{as:"span",cursor:"help",display:"inline-flex",alignItems:"center",children:(0,s.jsx)(b.I,{as:w.__w,boxSize:"3.5",color:"gray.500"})})})]})}),(0,s.jsx)(y.az,{children:(0,s.jsxs)(j.z,{spacing:2,align:"center",children:[(0,s.jsx)(v.$,{onClick:i,variant:"outline",size:"sm",children:"Test Timing Export"}),(0,s.jsx)(k.m,{label:"Download a CSV of test dates and invitation dates.",hasArrow:!0,children:(0,s.jsx)(y.az,{as:"span",cursor:"help",display:"inline-flex",alignItems:"center",children:(0,s.jsx)(b.I,{as:w.__w,boxSize:"3.5",color:"gray.500"})})})]})}),(0,s.jsx)(y.az,{children:(0,s.jsxs)(j.z,{spacing:2,align:"center",children:[(0,s.jsx)(v.$,{onClick:_,variant:"outline",size:"sm",children:"Account Test Takers Export V2"}),(0,s.jsx)(k.m,{label:"Lists all test takers in the account, including their assessment completion dates, scores, and top fit job families. Originally built for Goodwill/GII. Note: this will not work for accounts with a huge number of test takers.",hasArrow:!0,children:(0,s.jsx)(y.az,{as:"span",cursor:"help",display:"inline-flex",alignItems:"center",children:(0,s.jsx)(b.I,{as:w.__w,boxSize:"3.5",color:"gray.500"})})})]})})]})]}),t&&(0,s.jsx)(ea,{isOpen:t,onClose:a}),r&&(0,s.jsx)(em,{accountId:e.accountId,isOpen:r,onClose:o}),c&&(0,s.jsx)(ep.A,{accountId:e.accountId,isOpen:c,onClose:g})]})}let ey=(0,u.O8)(()=>{let e=(0,i.useRouter)(),{data:t,isLoading:n}=(0,h.kN)(Number(e.query.accountId));if(n||!t)return(0,s.jsx)(g.A,{children:(0,s.jsx)(m.A,{})});let a=t.account;return(0,s.jsxs)(g.A,{children:[(0,s.jsxs)(o.Q,{mb:4,children:[(0,s.jsx)(c.J,{children:(0,s.jsx)(r(),{href:"/system/accounts",passHref:!0,children:(0,s.jsx)(_.w,{children:"Accounts"})})}),(0,s.jsx)(c.J,{children:(0,s.jsx)(r(),{href:"/system/accounts/".concat(a.id),passHref:!0,children:(0,s.jsx)(_.w,{children:a.display_name})})}),(0,s.jsx)(c.J,{isCurrentPage:!0,children:(0,s.jsx)(_.w,{fontWeight:"bold",children:"Data Exports"})})]}),(0,s.jsxs)(l.B,{spacing:4,mt:4,children:[(0,s.jsx)(p.A,{account:a}),(0,s.jsx)(d.D,{size:"md",children:"Data Exports"}),(0,s.jsx)(ef,{accountId:a.id})]})]})})},44534:(e,t,n)=>{"use strict";n.d(t,{f_:()=>f,kN:()=>m});var s=n(28888),a=n(23920),r=n(48789),i=n(1054),o=n(98928),c=n(95813),_=n(5773),l=n(823);function d(){let e=(0,s._)(["\n  ",'\n\n  query SystemAccount(\n    $accountId: Int!\n    $sevenDaysAgo: timestamptz!\n    $thirtyDaysAgo: timestamptz!\n    $ninetyDaysAgo: timestamptz!\n    $oneEighty
1DaysAgo: timestamptz!\n    $twelveMonthsAgo: timestamptz!\n  ) {\n    tests(where: { is_assignable: { _eq: true } }, order_by: { id: asc }) {\n      id\n      display_name\n      short_name\n      available_test_versions: test_versions(\n        where: { status: { _neq: "retired" } }\n        order_by: { display_name: asc }\n      ) {\n        id\n        display_name\n        active_test_forms: test_version_test_forms(\n          where: { test_form: { is_retired: { _eq: false } } }\n        ) {\n          test_form {\n            id\n            display_name\n            language {\n              locale_id\n              display_name\n            }\n          }\n        }\n      }\n    }\n    candidateComparisonsActiveAggregate: candidate_comparisons_aggregate(\n      where: {\n        team: { account_id: { _eq: $accountId } }\n        archived_at: { _is_null: true }\n      }\n    ) {\n      aggregate {\n        count\n      }\n    }\n    scorecardAnalysisReportsGeneratedAggregate: test_taker_score_profile_scorecard_analysis_aggregate(\n      where: { test_taker_seat: { account_id: { _eq: $accountId } } }\n    ) {\n      aggregate {\n        count\n      }\n    }\n    account: accounts_by_pk(id: $accountId) {\n      id\n      created_at\n      updated_at\n      display_name\n      display_name_external\n      main_contact_name\n      main_contact_email\n      website\n      salesperson_name\n      contract_renewal_discussion_date\n      account_notes\n      billing_type\n      billing_contact_name\n      billing_contact_email\n      billing_ap_email\n      billing_fiscal_year\n      billing_annual_test_taker_seats\n      billing_quarterly_revenue_cents\n      current_proposal_start_date\n      current_proposal_end_date\n      current_proposal_usage_limit\n      current_proposal_status\n      current_proposal_po_number\n      billing_address\n      billing_invoice_cc\n      billing_ach_w9\n      billing_free_trial_start_date\n      billing_free_trial_end_date\n      billing_notes\n      test_taker_allocation\n      test_reminder_period_hours\n      mfa_required\n      sso_enabled\n      webhooks_enabled\n      webhook_live {\n        webhook_endpoint_url\n        verification_method\n      }\n      is_archived\n      last_activity_at\n      account_primary_use_case\n      account_market_segment\n      excluded_from_analytics_at\n      ','\n      congrats_notification_is_on\n      career_options_spotlight_limit\n      custom_logo_url\n      custom_logo_text\n      custom_signature_logo_url\n      teams(order_by: { display_name: asc }) {\n        id\n        display_name\n        webhooks_enabled\n        congrats_report_id\n        congrats_raw_score_threshold\n        test_takers_created_7d: test_taker_seats_aggregate(\n          where: {\n            created_at: { _gte: $sevenDaysAgo }\n            assigned_tests: { test: { short_name: { _neq: "Prescreen" } } }\n          }\n        ) {\n          aggregate {\n            count\n          }\n        }\n        test_takers_created_30d: test_taker_seats_aggregate(\n          where: {\n            created_at: { _gte: $thirtyDaysAgo }\n            assigned_tests: { test: { short_name: { _neq: "Prescreen" } } }\n          }\n        ) {\n          aggregate {\n            count\n          }\n        }\n        test_takers_created_90d: test_taker_seats_aggregate(\n          where: {\n            created_at: { _gte: $ninetyDaysAgo }\n            assigned_tests: { test: { short_name: { _neq: "Prescreen" } } }\n          }\n        ) {\n          aggregate {\n            count\n          }\n        }\n      }\n      users(\n        where: { is_deleted: { _eq: false }, disabled_at: { _is_null: true } }\n        order_by: [{ first_name: asc }, { last_name: asc }]\n      ) {\n        id\n        first_name\n        last_name\n        email\n        test_takers_created_7d: invited_users_aggregate(\n          where: { created_at: { _gte: $sevenDaysAgo } }\n        ) {\n          aggregate {\n            count\n          }\n        }\n        test_takers_created_30d: invited_users_aggregate(\n          where: { created_at: { _gte: $thirtyDaysAgo } }\n        ) {\n          aggregate {\n            count\n          }\n        }\n        test_takers_created_90d: invited_users_aggregate(\n          where: { created_at: { _gte: $ninetyDaysAgo } }\n        ) {\n          aggregate {\n            count\n          }\n        }\n      }\n      account_system_score_profiles(\n        order_by: { score_profile: { short_name: asc } }\n      ) {\n        id\n        score_profile {\n          id\n          display_name\n          short_name\n        }\n      }\n      custom_score_profiles: score_profiles(order_by: { short_name: asc }) {\n        id\n        display_name\n        short_name\n      }\n      personality_test_version_id\n      thinking_test_version_id\n      interests_test_version_id\n      prescreen_test_version_id\n      active_api_keys_aggregate: api_keys_aggregate(\n        where: { is_test: { _eq: false }, deactivated_at: { _is_null: true } }\n      ) {\n        aggregate {\n          count\n        }\n      }\n      test_takers_jfs_report_generated_7d: test_taker_seats_aggregate(\n        where: {\
1n          reports_generated: {\n            report_id: { _eq: "jfs" }\n            created_at: { _gte: $sevenDaysAgo }\n          }\n        }\n      ) {\n        aggregate {\n          count\n        }\n      }\n      test_takers_jfs_report_generated_30d: test_taker_seats_aggregate(\n        where: {\n          reports_generated: {\n            report_id: { _eq: "jfs" }\n            created_at: { _gte: $thirtyDaysAgo }\n          }\n        }\n      ) {\n        aggregate {\n          count\n        }\n      }\n      test_takers_jdr_report_generated_7d: test_taker_seats_aggregate(\n        where: {\n          reports_generated: {\n            report_id: { _eq: "jdr" }\n            created_at: { _gte: $sevenDaysAgo }\n          }\n        }\n      ) {\n        aggregate {\n          count\n        }\n      }\n      test_takers_jdr_report_generated_30d: test_taker_seats_aggregate(\n        where: {\n          reports_generated: {\n            report_id: { _eq: "jdr" }\n            created_at: { _gte: $thirtyDaysAgo }\n          }\n        }\n      ) {\n        aggregate {\n          count\n        }\n      }\n      test_takers_jfr_report_generated_7d: test_taker_seats_aggregate(\n        where: {\n          reports_generated: {\n            report_id: { _eq: "jfr" }\n            created_at: { _gte: $sevenDaysAgo }\n          }\n        }\n      ) {\n        aggregate {\n          count\n        }\n      }\n      test_takers_jfr_report_generated_30d: test_taker_seats_aggregate(\n        where: {\n          reports_generated: {\n            report_id: { _eq: "jfr" }\n            created_at: { _gte: $thirtyDaysAgo }\n          }\n        }\n      ) {\n        aggregate {\n          count\n        }\n      }\n      test_takers_scr_report_generated_7d: test_taker_seats_aggregate(\n        where: {\n          reports_generated: {\n            report_id: { _eq: "scr" }\n            created_at: { _gte: $sevenDaysAgo }\n          }\n        }\n      ) {\n        aggregate {\n          count\n        }\n      }\n      test_takers_scr_report_generated_30d: test_taker_seats_aggregate(\n        where: {\n          reports_generated: {\n            report_id: { _eq: "scr" }\n            created_at: { _gte: $thirtyDaysAgo }\n          }\n        }\n      ) {\n        aggregate {\n          count\n        }\n      }\n      ...SystemAccountStatsFragment\n    }\n  }\n']);return d=function(){return e},e}function g(){let e=(0,s._)(["\n  query SystemAccountsShort {\n    accounts(\n      where: { is_archived: { _eq: false } }\n      order_by: { display_name: asc }\n    ) {\n      id\n      display_name\n      teams(order_by: { display_name: asc }) {\n        id\n        display_name\n      }\n    }\n  }\n"]);return g=function(){return e},e}function u(){let e=(0,s._)(["\n  query AccountTestTakersShort(\n    $accountId: Int!\n    $limit: Int\n    $offset: Int\n    $where: test_taker_seats_bool_exp\n  ) {\n    account: accounts_by_pk(id: $accountId) {\n      id\n      display_name\n      test_taker_seats_aggregate(where: $where) {\n        aggregate {\n          count\n        }\n      }\n      test_taker_seats(\n        where: $where\n        limit: $limit\n        offset: $offset\n        order_by: { invitation: { created_at: desc } }\n      ) {\n        id\n        assigned_tests(where: { is_used_for_scoring: { _eq: true } }) {\n          id\n          created_at\n          started_at\n          progress_saved_at\n          completed_at\n          test {\n            id\n            short_name\n          }\n        }\n        invitation {\n          id\n          created_at\n          first_name\n          last_name\n          sent_to_email\n          sent_to_phone\n          custom_id\n          person_id\n          sent_by_user {\n            id\n            first_name\n            last_name\n            email\n          }\n          team {\n            id\n            display_name\n          }\n        }\n      }\n    }\n  }\n"]);return u=function(){return e},e}let h=(0,r.gql)(d(),_.Mw,"\n  account_groups(order_by: { account_group: { display_name: asc } }) {\n    account_group_id\n    account_group {\n      id\n      display_name\n    }\n  }\n");function m(e){let t=(0,i.A)(),n=(0,c.P)(e=>e.authTokenIsReady);return(0,a.I)(["system-account-data",e],async()=>{try{return await t.request(h,{accountId:e,sevenDaysAgo:(0,l.g1)(7),thirtyDaysAgo:(0,l.g1)(30),...(0,l.sI)()})}catch(e){console.log("Error fetching account",e)}},{enabled:n&&!!e})}(0,r.gql)(g());let p=(0,r.gql)(u());function f(e){let{accountId:t,limit:n,offset:s=0,searchQuery:r=""}=e,_=(0,i.A)(),l=(0,c.P)(e=>e.authTokenIsReady),d=function(e){let t=(0,o.Z$)(e);return 0===t.length?null:{invitation:{_and:t.map(e=>({_or:[{first_name:{_ilike:"%".concat(e,"%")}},{last_name:{_ilike:"%".concat(e,"%")}},{sent_to_email:{_ilike:"%".concat(e,"%")}},{custom_id:{_ilike:"%".concat(e,"%")}}]}))}}}(r);return(0,a.I)(["list-account-test-takers-short",t,n,s,r],async()=>{try{return await _.request(p,{accountId:t,limit:n,offset:s,where:null!=d?d:null})}catch(e){console.log("Error fetching account test takers",e)}},{enabled:l&&!!t})}},74156:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var s=n(37876),a=n(48230),r=n.n(a),i=n(89099),o=n(68533),c=n(1129),_=n(3732),l=n(27038),d=n(88468),g=n(1035),u=n(8346),h=n(28320),m=n(40395),p=n(33844),f=n(65677),y=n(84283);function x(e,t,n){return n?e===t:e===t||e.startsWith(t+"/")}let j=["daily-user-activity","test-taker-activity","api-activity","api-v1-activity-log","webhook-event-log","notifications-log"];function v(e,t){return j.some(n=>e.includes("/system/accounts/".concat(t,"/").concat(n)))}let k=["settings","email-templates","candidate-comparisons","occupations","score-profiles","api-keys","webhooks","data-exports"];function b(e,t){return k.some(n=>e.includes("/system/accounts/".concat(t,"/").concat(n)))}function w(e){let{account:t,subheading:n}=e,a=(0,i.useRouter)().asPath.split("?")[0];return(0,s.jsxs)(o.B,{spacing:1,children:[(0,s.jsx)(c.D,{size:"lg",children:t.display_name}),(null==n?void 0:n.trim())?(0,s.jsx)(_.E,{fontSize:"sm",color:"gray.600",lineHeight:"short",children:n.trim()}):null,(0,s.jsxs)(l.s,{flexWrap:"wrap",gap:1,alignItems:"center",children:[(0,s.jsx)(d.$,{as:r(),variant:"ghost",size:"sm",href:"/system/accounts/".concat(t.id),bg:x(a,"/system/accounts/".concat(t.id),!0)?"gray.100":void 0,_hover:{bg:x(a,"/system/accounts/".concat(t.id),!0)?"gray.100":"gray.50"},children:"Overview"}),(0,s.jsx)(d.$,{as:r(),variant:"ghost",size:"sm",href:"/system/accounts/".concat(t.id,"/users"),bg:x(a,"/system/accounts/".concat(t.id,"/users"))?"gray.100":void 0,_hover:{bg:x(a,"/system/accounts/".concat(t.id,"/users"))?"gray.100":"gray.50"},children:"Users"}),(0,s.jsx)(d.$,{as:r(),variant:"ghost",size:"sm",href:"/system/accounts/".concat(t.id,"/teams"),bg:x(a,"/system/accounts/".concat(t.id,"/teams"))?"gray.100":void 0,_hover:{bg:x(a,"/system/accounts/".concat(t.id,"/teams"))?"gray.100":"gray.50"},children:"Teams"}),(0,s.jsx)(d.$,{as:r(),variant:"ghost",size:"sm",href:"/system/accounts/".concat(t.id,"/invitations"),bg:x(a,"/system/accounts/".concat(t.id,"/invitations"))?"gray.100":void 0,_hover:{bg:x(a,"/system/accounts/".concat(t.id,"/invitations"))?"gray.100":"gray.50"},children:"Invitations"}),(0,s.jsx)(d.$,{as:r(),variant:"ghost",size:"sm",href:"/system/accounts/".concat(t.id,"/test-takers"),bg:x(a,"/system/accounts/".concat(t.id,"/test-takers"))?"gray.100":void 0,_hover:{bg:x(a,"/system/accounts/".concat(t.id,"/test-takers"))?"gray.100":"gray.50"},children:"Test Takers"}),(0,s.jsx)(d.$,{as:r(),variant:"ghost",size:"sm",href:"/system/accounts/".concat(t.id,"/usage"),bg:x(a,"/system/accounts/".concat(t.id,"/usage"))?"gray.100":void 0,_hover:{bg:x(a,"/system/accounts/".concat(t.id,"/usage"))?"gray.100":"gray.50"},children:"Usage"}),(0,s.jsx)(d.$,{as:r(),variant:"ghost",size:"sm",href:"/system/accounts/".concat(t.id,"/invoices"),bg:x(a,"/system/accounts/".concat(t.id,"/invoices"))?"gray.100":void 0,_hover:{bg:x(a,"/system/accounts/".concat(t.id,"/invoices"))?"gray.100":"gray.50"},children:"Invoices"}),(0,s.jsxs)(g.W,{children:[(0,s.jsx)(u.I,{as:d.$,variant:"ghost",size:"sm",rightIcon:(0,s.jsx)(h.I,{as:y.Vr3}),bg:v(a,t.id)?"gray.100":void 0,_hover:{bg:v(a,t.id)?"gray.100":"gray.50"},children:"Monitoring"}),(0,s.jsxs)(m.c,{zIndex:"popover",children:[(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/daily-user-activity"),children:"Daily User Activity"}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/test-taker-activity"),children:"Test Taker Activity"}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/api-activity"),children:"API v2 Activity L
1og"}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/api-v1-activity-log"),children:"API v1 Activity Log"}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/webhook-event-log"),children:"Webhook Event Log"}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/notifications-log"),children:"Notifications Log"})]})]}),(0,s.jsxs)(g.W,{children:[(0,s.jsx)(u.I,{as:d.$,variant:"ghost",size:"sm",rightIcon:(0,s.jsx)(h.I,{as:y.Vr3}),bg:b(a,t.id)?"gray.100":void 0,_hover:{bg:b(a,t.id)?"gray.100":"gray.50"},children:"More"}),(0,s.jsxs)(m.c,{zIndex:"popover",children:[(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/data-exports"),children:"Data Exports"}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/email-templates"),children:"Email Templates"}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/candidate-comparisons"),children:"Candidate Comparison Reports"}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/occupations"),children:"Occupations (Hide/Highlight)"}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/score-profiles"),children:"Account Score Profiles"}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/api-keys"),children:"API Keys"}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/webhooks"),children:"Webhooks"}),t.is_archived?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.N,{}),(0,s.jsx)(p.D,{as:r(),href:"/system/accounts/".concat(t.id,"/settings"),children:"Settings"})]})]})]})]})]})}},81359:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(37876),a=n(35578),r=n(3732),i=n(1988);let o=e=>(0,s.jsxs)(a.az,{p:8,mx:"auto",textAlign:"center",children:[(0,s.jsx)(r.E,{mb:4,textColor:"gray.300",fontWeight:"bold",children:e.loadingText||"Loading..."}),(0,s.jsx)(i.k,{size:"xs",isIndeterminate:!0})]})},84893:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(14232),a=n(92113);let r=function(e){let[t,n]=(0,s.useState)(e),{toast:r}=(0,a.J)();return{status:t,onLoading:function(){n("loading")},onSuccess:function(e){n("loaded"),e&&r({title:"Success",description:e,status:"success",duration:3e3,isClosable:!0})},onError:function(e,t){n("error"),console.log("Error:",e),r({title:"Error",description:t,status:"error",duration:3e3,isClosable:!0})},onReset:function(){n("idle")}}}}},e=>{e.O(0,[5709,9458,1584,6412,5773,32,636,6593,8792],()=>e(e.s=3352)),_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.