PageSourceSearch

https://aylagov.com/static/js/7187.475dd3e5.chunk.js

js aylagov.com collected 2026-10-05 08:56:48 UTC 25,577 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2babb950-3f34-502e-8bb2-c73bdbe204d9")}catch(e){}}();
3(self.webpackChunkaylagov_ui=self.webpackChunkaylagov_ui||[]).push([[7187],{68365(e,s,n){n.d(s,{A:()=>o});var t=n(65043),l=n(32975),a=n(69772),r=n(70579);function o({title:e,load:s,onPick:n,extra:o,current:i}){const[d,c]=(0,t.useState)(null),[u,m]=(0,t.useState)(!1),[x,h]=(0,t.useState)(0);(0,t.useEffect)((()=>{let e=!0;return m(!1),s().then((s=>e&&c(s))).catch((()=>e&&m(!0))),()=>{e=!1}}),[x]);const p=(0,t.useMemo)((()=>{const e=new Map;for(const t of null!==d&&void 0!==d?d:[]){var s;e.set(t.connectionId,[...null!==(s=e.get(t.connectionId))&&void 0!==s?s:[],t])}const n=[...e.entries()].map((([e,s])=>({connectionId:e,name:s[0].providerName,workspace:s[0].workspaceName,jobs:s})));return n.map((e=>({...e,heading:n.some((s=>s!==e&&s.name===e.name))&&e.workspace?`${e.name} \xb7 ${e.workspace}`:e.name})))}),[d]),b=e=>!!i&&e.connectionId===i.connectionId&&e.id===i.id,f=d&&d[0]&&d[0].score>=.5?`${d[0].connectionId}:${d[0].id}`:null;return(0,r.jsxs)("div",{className:"w-[320px] max-w-[calc(100vw-2rem)] rounded-lg bg-white py-1.5 text-left text-ink shadow-raise",children:[(0,r.jsx)("div",{className:"px-3 pb-1.5 pt-1 font-mono text-caps uppercase text-ink-3",children:e}),u?(0,r.jsxs)("div",{className:"px-3 py-2",children:[(0,r.jsx)("p",{className:"text-meta text-ink-2",children:"Your open jobs could not be loaded."}),(0,r.jsx)(a.$,{variant:"link",onClick:()=>h((e=>e+1)),className:"mt-1 h-auto p-0 text-meta font-semibold text-brand-700 hover:text-brand-800",children:"Try again"})]}):null===d?(0,r.jsx)("div",{className:"px-3 py-2 text-meta text-ink-3",role:"status",children:"Loading open jobs\u2026"}):(0,r.jsxs)("ul",{className:"max-h-[336px] overflow-y-auto",children:[0===d.length&&(0,r.jsx)("li",{className:"px-3 py-2 text-meta text-ink-2",children:"No open jobs in your ATS."}),p.map((e=>(0,r.jsxs)("li",{children:[p.length>1&&(0,r.jsx)("div",{className:"px-3 pb-0.5 pt-2 text-meta font-semibold text-ink-2",children:e.heading}),(0,r.jsx)("ul",{children:e.jobs.map((e=>(0,r.jsx)("li",{children:(0,r.jsxs)(a.$,{variant:"ghost",onClick:()=>n(e),"aria-current":b(e)?"true":void 0,className:"h-auto w-full items-start justify-start gap-2.5 whitespace-normal rounded-none px-3 py-2 text-left font-normal hover:bg-canvas focus-visible:bg-canvas focus-visible:ring-inset focus-visible:ring-offset-0 "+(b(e)?"bg-brand-50":""),children:[(0,r.jsx)(l.Z,{className:"mt-0.5 h-4 w-4 flex-none text-ink-3"}),(0,r.jsxs)("span",{className:"min-w-0",children:[(0,r.jsx)("span",{className:"block truncate text-body font-semibold text-ink",children:e.label}),(0,r.jsx)("span",{className:"block truncate text-meta text-ink-3",children:[e.location,`${e.connectionId}:${e.id}`===f?"Best match":null].filter(Boolean).join(" \xb7 ")||"Open"})]})]})},`${e.connectionId}:${e.id}`)))})]},e.connectionId)))]}),o&&(0,r.jsx)("div",{className:"mt-1 border-t border-slate-100 pt-1",children:(0,r.jsxs)(a.$,{variant:"ghost",onClick:o.onPick,className:"h-auto w-full flex-col items-start justify-start whitespace-normal rounded-none px-3 py-2 text-left font-normal hover:bg-canvas",children:[(0,r.jsx)("span",{className:"block text-body font-semibold text-ink",children:o.label}),o.sub&&(0,r.jsx)("span",{className:"block text-meta text-ink-3",children:o.sub})]})})]})}},77047(e,s,n){n.d(s,{$V:()=>i,$p:()=>o,BB:()=>c,E2:()=>r,rm:()=>d});var t=n(65043),l=n(71996);let a=null;function r(e=!1){if(!a||e||Date.now()-a.at>6e4){const e=(0,l.KG)().catch((()=>{var s;return(null===(s=a)||void 0===s?void 0:s.promise)===e&&(a=null),null}));a={at:Date.now(),promise:e}}return a.promise}function o(){const e=(0,l.KG)(),s=e.catch((()=>{var e;return(null===(e=a)||void 0===e?void 0:e.promise)===s&&(a=null),null}));return a={at:Date.now(),promise:s},e}function i(){const[e,s]=(0,t.useState)(null);return(0,t.useEffect)((()=>{let e=!0;return r().then((n=>e&&s(n))),()=>{e=!1}}),[]),e}function d(e){return!!e&&e.connections.some((e=>"active"===e.status||"needs_attention"===e.status))}function c(e){return d(e)&&e.mayExport}},98524(e,s,n){n.d(s,{f:()=>l});var t=n(65043);function l(){const[e,s]=(0,t.useState)(!1),n=(0,t.useRef)(null);return(0,t.useEffect)((()=>
3{if(!e)return;const t=e=>"Escape"===e.key&&s(!1),l=e=>{var t;null!==(t=n.current)&&void 0!==t&&t.contains(e.target)||s(!1)};return document.addEventListener("keydown",t),document.addEventListener("mousedown",l),()=>{document.removeEventListener("keydown",t),document.removeEventListener("mousedown",l)}}),[e]),{open:e,setOpen:s,wrap:n}}},71996(e,s,n){n.d(s,{U2:()=>d,ZS:()=>i,rE:()=>c});var t=n(41804);const l="/client/ats",a=e=>t.R.get(e),r=(e,s={})=>t.R.post(e,s),o=(e,s)=>t.R.put(e,s);function i(e){return"hired"===e?"pos":"rejected"===e?"neutral":"dry_run"===e?"warn":"brand"}function d(e){return"rejected"===e.group?"Not moving forward":"hired"===e.group?"Placed":"dry_run"===e.group?"Test send":e.stage}function c(e){const s=e.filter((e=>"disconnected"!==e.status));return 1===s.length?`Send to ${s[0].providerName}`:"Send to ATS"}n.d(s,["Cp",0,(e,s)=>((e,s)=>t.R.patch(e,s))(`${l}/connections/${e}`,s),"DR",0,(e,s)=>r(`${l}/invites`,{provider:e,email:s}),"HE",0,e=>a(`${l}/roles/${e}/link`),"Is",0,(e,s)=>r(`${l}/enrollments/${e}/send`,s),"KG",0,()=>a(`${l}/connections`),"R6",0,e=>a(`${l}/connections/${e}/webhook`),"VH",0,e=>r(`${l}/connections/${e}/disconnect`),"W9",0,(e,s)=>r(`/ats/setup/${encodeURIComponent(e)}`,{fields:s}),"Yh",0,e=>0===e.length?Promise.resolve({}):a(`${l}/stages?ids=${e.slice(0,200).join(",")}`),"Yn",0,(e,s,n)=>r(`${l}/connections`,{provider:e,fields:s,...n?{reconnectId:n}:{}}),"_E",0,(e,s)=>o(`${l}/connections/${e}/webhook-secret`,{secret:s}),"fT",0,e=>a(`/ats/setup/${encodeURIComponent(e)}`),"g0",0,e=>r(`${l}/sends/undo`,{sendIds:e}),"j8",0,e=>a(`${l}/jobs${e?`?roleId=${e}`:""}`),"k2",0,(e,s)=>a(`${l}/oauth/${e}/start${s?`?reconnectId=${s}`:""}`),"t6",0,()=>a(`${l}/enrollments`),"uC",0,e=>r(`${l}/sends`,e),"xd",0,{greenhouse:"Greenhouse",lever:"Lever",ashby:"Ashby",bullhorn:"Bullhorn",spectacled:"Spectacled"},"xh",0,(e,s)=>o(`${l}/roles/${e}/link`,s||{atsJobRef:null})])},9398(e,s,n){n.d(s,{A:()=>y});var t=n(65043),l=n(97555),a=n(47740),r=n(23355),o=n(53217),i=n(76680),d=n(40645),c=n(96539),u=n(14212),m=n(3494),x=n(30714),h=n(55355),p=n(76708),b=n(22144),f=n(69772),v=n(51795),g=n(29571),j=n(70579);function N({open:e,onClose:s,ids:n,projectName:a,onEnrolled:N}){var y,k,$;const[C,S]=(0,t.useState)(null),[q,E]=(0,t.useState)(null),[A,I]=(0,t.useState)(null),[F,R]=(0,t.useState)(!1),[L,_]=(0,t.useState)(!1),[T,D]=(0,t.useState)(null),[M,z]=(0,t.useState)(null),[U,P]=(0,t.useState)(0),[B,W]=(0,t.useState)("work_email"),[G,
3K]=(0,t.useState)(""),[O,V]=(0,t.useState)(null),Y=n.join(","),H=(0,t.useId)(),X=(0,t.useRef)(null),Z=(0,t.useRef)(null),Q=(0,t.useRef)(null);(0,t.useEffect)((()=>{var s;if(e)return Q.current=document.activeElement,null===(s=Z.current)||void 0===s||s.focus(),()=>{const e=Q.current;Q.current=null,e&&e.isConnected&&e.focus()}}),[e]),(0,t.useEffect)((()=>{if(!e)return;let s=!0;return(0,h.CL)().then((e=>s&&V(e.balance))).catch((()=>{})),()=>{s=!1}}),[e]),(0,t.useEffect)((()=>(0,h.U0)(V)),[]),(0,t.useEffect)((()=>{e&&(z(null),D(null),S(null),(0,r.d2)().then((e=>{const s=e.sequences.filter((e=>"archived"!==e.status&&(0,r.Q2)(e.access)));S(s),E((e=>{var n,t,l,a;return null!==(n=null!==(t=null!==e&&void 0!==e?e:null===(l=s.find((e=>"active"===e.status)))||void 0===l?void 0:l.id)&&void 0!==t?t:null===(a=s[0])||void 0===a?void 0:a.id)&&void 0!==n?n:null}))})).catch((e=>{var s,n,t;S([]),D(null!==(s=null===e||void 0===e||null===(n=e.response)||void 0===n||null===(t=n.data)||void 0===t?void 0:t.message)&&void 0!==s?s:"Could not load your sequences")})))}),[e]),(0,t.useEffect)((()=>{if(!e||!q||!n.length)return;let s=!0;return R(!0),I(null),D(null),(0,r.xz)(q,n,B).then((e=>s&&I(e))).catch((e=>{var n,t,l;return s&&D(null!==(n=null===e||void 0===e||null===(t=e.response)||void 0===t||null===(l=t.data)||void 0===l?void 0:l.message)&&void 0!==n?n:"Could not check who can be emailed")})).finally((()=>s&&R(!1))),()=>{s=!1}}),[e,q,Y,U,B]);const J=(e,s=5)=>{const n=e.map((e=>e.name)).filter(Boolean);if(!n.length)return"";const t=n.slice(0,s).join(", ");return n.length>s?`${t} and ${n.length-s} more.`:`${t}.`},ee=(0,t.useMemo)((()=>{var e;return null!==(e=null===C||void 0===C?void 0:C.find((e=>e.id===q)))&&void 0!==e?e:null}),[C,q]),se=(0,t.useMemo)((()=>{const e=G.trim().toLowerCase(),s=null!==C&&void 0!==C?C:[];return e?s.filter((s=>s.name.toLowerCase().includes(e))):s}),[C,G]),ne=null!==(y=null===A||void 0===A?void 0:A.needsUnlock.length)&&void 0!==y?y:0,te=null!==(k=null===A||void 0===A?void 0:A.ready.length)&&void 0!==k?k:0,le=null==O?0:Math.max(0,ne-O),ae=(null!==($=null===M||void 0===M?void 0:M.skipped)&&void 0!==$?$:[]).map((e=>{var s;return null!==(s=e.name)&&void 0!==s?s:"one person"})).join(", "),re=async e=>{if(q&&A){_(!0),D(null);try{const s=await(0,r.xu)(q,[...A.ready,...e?A.needsUnlock:[]].map((e=>e.profileId)),e?A.needsUnlock.map((e=>e.profileId)):[],B);z(s),null===N||void 0===N||N(s),s.charged>0&&(0,h.CL)().then((e=>(0,h.sA)(e.balance))).catch((()=>{}))}catch(l){var s,n,t;D(null!==(s=null===l||void 0===l||null===(n=l.response)||void 0===n||null===(t=n.data)||void 0===t?void 0:t.message)&&void 0!==s?s:"Enrolling failed")}finally{_(!1)}}};return e?(0,j.jsxs)("div",{ref:X,className:"fixed inset-0 z-40",role:"dialog","aria-modal":"true","aria-label":"Add to a sequence",onKeyDown:e=>{if("Escape"===e.key)return e.preventDefault(),e.stopPropagation(),void s();(0,p.Ln)(e,X.current)},children:[(0,j.jsx)("div",{className:"absolute inset-0 bg-slate-900/30","aria-hidden":"true",onClick:s}),(0,j.jsxs)("aside",{className:"absolute inset-y-0 right-0 flex w-full max-w-[440px] flex-col bg-white shadow-raise",children:[(0,j.jsx)("div",{className:"border-b border-slate-200 px-5 pb-3 pt-4",children:(0,j.jsxs)("div",{className:"flex items-start",children:[(0,j.jsxs)("div",{className:"flex-1",children:[(0,j.jsx)("h2",{ref:Z,tabIndex:-1,className:"text-title text-slate-900 focus:outline-none",children:"Add to a sequence"}),(0,j.jsxs)("p",{className:"mt-0.5 text-body text-slate-500",children:[(0,j.jsx)("span",{className:"font-figure tabular-nums font-semibold text-slate-800",children:n.length})," selected",a?` on ${a}`:""]})]}),(0,j.jsx)("button",{onClick:s,className:"-mr-2 -mt-1 inline-flex h-11 w-11 items-center justify-center rounded-sm text-slate-500 hover:bg-slate-100 hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-600/40 sm:-mr-1 sm:h-8 sm:w-8","aria-label":"Close",children:(0,j.jsx)(i.X,{className:"h-5 w-5"})})]})}),(0,j.jsx)("div",{className:"flex-1 space-y-6 overflow-y-auto px-5 py-4",children:M?(0,j.jsxs)("div",{role:"status",className:"rounded-md border border-emerald-200 bg-emerald-50 p-4",children:[(0,j.jsxs)("div",{className:"text-lead text-emerald-900",children:[(0,j.jsx)("span",{className:"font-figure tabular-nums",children:M.enrolled})," ",1===M.enrolled?"person":"people"," added"]}),(0,j.jsxs)("p",{className:"mt-1 text-body text-emerald-900",children:[M.unlocked>0&&(0,j.jsxs)(j.Fragment,{children:[M.unlocked," unlocked for ",M.charged," ",1===M.charged?"credit":"credits","."," "]}),M.schedule.sequenceActive?`First notes go out from ${(0,r.Mj)(M.schedule.firstSendAt)} ${(0,r.XV)(M.schedule.firstSendAt)}, 1\u20133 minutes apart${M.schedule.window?`, inside ${M.schedule.window}`:""}. Follow-ups run through ${(0,r.XV)(M.schedule.lastFollowUpAt)}.`:"They will start when the sequence is activated."]}),M.skipped.length>0&&(0,j.jsxs)("div",{className:"mt-2 text-meta text-emerald-900",children:[(0,j.jsxs)("div",{children:[(0,j.jsx)("span",{className:"font-figure tabular-nums font-semibold",children:M.skipped.length})," skipped \xb7 ",(0,r.qy)(M.skipped)]}),ae&&(0,j.jsx)("div",{className:"truncate text-emerald-800",title:ae,children:ae})]}),(0,j.jsxs)("div",{className:"mt-3 flex gap-2",children:[q&&(0,j.jsx)(f.$,{asChild:!0,size:"sm",className:g.N9,children:(0,j.jsx)(o.N_,{to:`/talent/outreach/${q}`,children:"Open the sequence"})}),(0,j.jsx)(f.$,{variant:"outline",size:"sm",className:g.N9,onClick:s,children:"Done"})]})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("section",{children:[(0,j.jsx)("div",{className:"mb-2 text-caps uppercase text-slate-500",children:"Which mailbox"}
3),(0,j.jsx)(b.$q,{className:"mb-5",label:"Which mailbox",value:B,onChange:W,options:["work_email","personal_email"].map((e=>({key:e,label:r.Df[e]})))}),(0,j.jsx)("div",{id:`${H}-seq`,className:"mb-2 text-caps uppercase text-slate-500",children:"Sequence"}),null===C?(0,j.jsx)("div",{role:"status","aria-label":"Loading your sequences",className:"space-y-2",children:[0,1,2].map((e=>(0,j.jsxs)("div",{className:"flex items-center gap-3 rounded-md border border-slate-100 px-3 py-2.5",children:[(0,j.jsx)("span",{className:"h-3.5 w-3.5 flex-none animate-pulse rounded-full bg-slate-100"}),(0,j.jsxs)("span",{className:"flex-1 space-y-1.5",children:[(0,j.jsx)("span",{className:"block h-3 w-2/3 animate-pulse rounded-sm bg-slate-100"}),(0,j.jsx)("span",{className:"block h-2.5 w-1/3 animate-pulse rounded-sm bg-slate-100"})]})]},e)))}):(0,j.jsxs)("div",{className:"space-y-2",children:[C.length>5&&(0,j.jsx)("input",{id:H,type:"search","aria-label":"Filter sequences by name",value:G,onChange:e=>K(e.target.value),placeholder:"Filter sequences\u2026",className:"h-8 w-full rounded-md border border-slate-200 px-3 text-body text-slate-800 outline-none placeholder:text-slate-500 focus:border-brand-600 focus-visible:ring-2 focus-visible:ring-brand-600/40"}),(0,j.jsx)("div",{role:"radiogroup","aria-labelledby":`${H}-seq`,className:"space-y-2",children:se.map((e=>{const s=e.id===q;return(0,j.jsxs)("label",{className:(0,v.cn)("flex cursor-pointer items-center gap-3 rounded-md border px-3 py-2",s?"border-brand-600 ring-1 ring-brand-600/20":"border-slate-200 hover:border-brand-300"),children:[(0,j.jsx)("input",{type:"radio",name:"sequence",className:"accent-brand-700",checked:s,onChange:()=>E(e.id)}),(0,j.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,j.jsx)("span",{className:"block truncate text-body font-semibold text-slate-900",children:e.name}),(0,j.jsxs)("span",{className:"block text-meta text-slate-500",children:[e.steps," ",1===e.steps?"step":"steps",null!=e.replyRate&&(0,j.jsxs)(j.Fragment,{children:[" \xb7 ",(0,j.jsx)("span",{className:"font-figure tabular-nums text-emerald-700",children:(0,r.al)(e.replyRate)})," reply"]}),"active"!==e.status&&(0,j.jsxs)(j.Fragment,{children:[" \xb7 ",e.status]}),"delegate"===e.access&&e.from.address&&(0,j.jsxs)(j.Fragment,{children:[" \xb7 as ",e.from.address]})]})]})]},e.id)}))}),(0,j.jsxs)(o.N_,{to:"/talent/outreach/new",className:"flex items-center gap-2 rounded-md border border-dashed border-slate-300 px-3 py-2 text-body font-semibold text-slate-600 hover:border-brand-300 hover:text-brand-700",children:[(0,j.jsx)(d.F,{className:"h-4 w-4",weight:"bold"})," New sequence"]})]})]}),(0,j.jsxs)("section",{children:[(0,j.jsx)("div",{className:"mb-2 text-caps uppercase text-slate-500",children:"Who goes in"}),F||null===C?(0,j.jsxs)("div",{role:"status",className:"flex items-center gap-2 text-body text-slate-500",children:[(0,j.jsx)(c.N,{className:"h-4 w-4 animate-spin"})," Checking who can be emailed\u2026"]}):q?A?(0,j.jsxs)("div",{className:"divide-y divide-slate-100 rounded-md border border-slate-200 bg-white",children:[(0,j.jsx)(w,{n:te,tone:"text-emerald-700",title:"Ready",body:`${r.Df[B]} already unlocked. ${J(A.ready)}`}),(0,j.jsx)(w,{n:ne,tone:"text-amber-700",title:"Need an unlock",chip:ne>0?(0,j.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-1.5",children:[(0,j.jsxs)(b.oy,{tone:"watch",children:[(0,j.jsx)(u.T,{"aria-hidden":!0,className:"h-3 w-3"})," ",(0,j.jsx)("span",{className:"font-figure tabular-nums",children:ne})," ",1===ne?"credit":"credits"]}),null!=O&&(0,j.jsxs)("span",{className:(0,v.cn)("font-figure text-meta tabular-nums",le>0?"font-semibold text-rose-700":"text-slate-500"),children:[O.toLocaleString()," left"]})]}):null,body:`${J(A.needsUnlock)}`}),(0,j.jsx)(w,{n:A.blocked.length,tone:"text-slate-600",title:"Can't be emailed",body:A.blocked.length>0?(0,r.qy)(A.blocked):"Nobody.",hint:A.blocked.map((e=>{var s;return null!==(s=e.name)&&void 0!==s?s:"One person"})).join(", ")||void 0})]}):(0,j.jsxs)("div",{className:"space-y-2",children:[(0,j.jsx)(g.Fx,{children:null!==T&&void 0!==T?T:"Could not check who can be emailed."}),(0,j.jsx)(f.$,{variant:"outline",size:"sm",className:g.N9,onClick:()=>P((e=>e+1)),children:"Try again"})]}):(0,j.jsx)("p",{className:"text-body text-slate-600",children:"Pick or create a sequence above, then we\u2019ll check who here can be emailed."})]}),ee&&A&&(0,j.jsxs)("div",{className:"rounded-md border border-slate-200 bg-slate-50 px-4 py-3 text-body leading-6 text-slate-700",children:[(0,j.jsxs)("div",{className:"mb-1 flex items-center gap-2 text-caps uppercase text-slate-500",children:[(0,j.jsx)(m.z,{className:"h-3.5 w-3.5"})," Schedule"]}),"active"===ee.status?"First notes go out inside the sending window, 1\u20133 minutes apart, from the mailbox's remaining budget today. Follow-ups keep the sequence's spacing.":"This sequence is not active yet. People are added now and start when it is activated."]}),T&&A&&(0,j.jsx)(g.Fx,{children:T})]})}),!M&&(0,j.jsxs)("div",{className:"space-y-2 border-t border-slate-200 px-5 py-3",children:["draft"===(null===ee||void 0===ee?void 0:ee.status)&&(0,j.jsxs)("p",{className:"flex items-start gap-2 rounded-sm border border-amber-200 bg-amber-50 px-2.5 py-2 text-meta leading-5 text-amber-900",children:[(0,j.jsx)(x.t,{className:"mt-0.5 h-3.5 w-3.5 flex-none",weight:"fill"}),(0,j.jsxs)("span",{children:[(0,j.jsx)("b",{children:ee.name})," has never been activated. These people are added now and nothing goes out until you activate it."]})]}),le>0&&(0,j.jsxs)("p",{role:"alert",className:"flex items-start gap-2 rounded-sm border border-rose-200 bg-rose-50 px-2.5 py-2 text-meta leading-5 text-rose-800",children:[(0,j.jsx)(u.T,{className:"mt-0.5 h-3.5 w-3.5 flex-none"}),(0,j.jsxs)("span",{children:[(0,j.jsx)("span",{className:"tabular-nums font-semibold",children:(null!==O&&void 0!==O?O:0).toLocaleStr
3ing()})," ",1===O?"credit":"credits"," ","left, ",(0,j.jsx)("span",{className:"tabular-nums font-semibold",children:ne})," needed, so"," ",(0,j.jsx)("span",{className:"tabular-nums font-semibold",children:le})," ",1===le?"person":"people"," will be skipped."," ",(0,j.jsx)(o.N_,{to:"/talent/account?tab=billing",className:"font-semibold underline underline-offset-2",children:"Add credits"}),te>0&&(0,j.jsxs)(j.Fragment,{children:[", or enroll the ",te," ready only"]}),"."]})]}),(0,j.jsxs)(f.$,{size:"sm",disabled:L||!A||te+ne===0,onClick:()=>re(ne>0),className:(0,v.cn)(g.N9,"w-full"),children:[L?(0,j.jsx)(c.N,{className:"animate-spin"}):(0,j.jsx)(l.M,{weight:"bold"}),ne>0?`Enroll ${te+ne} \xb7 unlock ${ne} for ${ne} ${1===ne?"credit":"credits"}`:`Enroll ${te}`]}),ne>0&&te>0&&(0,j.jsxs)(f.$,{variant:"outline",size:"sm",disabled:L,onClick:()=>re(!1),className:(0,v.cn)(g.N9,"w-full"),children:["Enroll the ",te," ready only"]})]})]})]}):null}function w({n:e,tone:s,title:n,body:t,chip:l,hint:a}){return(0,j.jsxs)("div",{className:"flex items-start gap-3 px-4 py-3",children:[(0,j.jsx)("span",{className:(0,v.cn)("w-8 text-right font-figure text-fig leading-none tabular-nums",s),children:e}),(0,j.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,j.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-body font-semibold text-slate-900",children:[n,l]}),(0,j.jsx)("div",{className:"text-meta text-slate-500",title:a,children:t})]})]})}function y({ids:e,projectName:s,onDark:n=!1}){const{me:o}=(0,a.tH)(),[i,d]=(0,t.useState)(!1),c=e.join(","),u=(0,t.useMemo)((()=>e),[c]);return(0,r.RZ)(null===o||void 0===o?void 0:o.modules,"sequences")&&0!==u.length?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("button",{onClick:()=>d(!0),title:"Enroll the shortlist in an email sequence sent from your own mailbox.",className:n?"inline-flex h-9 items-center gap-1.5 rounded-full px-3 text-body font-semibold text-white/85 transition-colors hover:bg-white/10 hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/60":"inline-flex items-center gap-1.5 rounded-md bg-brand-700 px-2.5 py-1 text-body font-semibold text-white hover:bg-brand-800",children:[(0,j.jsx)(l.M,{className:"h-3.5 w-3.5",weight:"bold"}),"Add to sequence"]}),(0,j.jsx)(N,{open:i,onClose:()=>d(!1),ids:u,projectName:s})]}):null}},29571(e,s,n){n.d(s,{F5:()=>j,Fx:()=>m,P0:()=>g,Qv:()=>v,g3:()=>N,jT:()=>u,nY:()=>h,nf:()=>c});var t=n(51042),l=n(14580),a=n(75094),r=n(30714),o=n(22144),i=n(51795),d=n(70579);function c({status:e,waiting:s}){return"active"===e&&s?(0,d.jsxs)(o.oy,{tone:"watch",children:["Waiting \xb7 ",s]}):"active"===e?(0,d.jsx)(o.oy,{tone:"ok",children:"Active"}):"paused"===e?(0,d.jsx)(o.oy,{tone:"watch",children:"Paused"}):(0,d.jsx)(o.oy,{tone:"neutral",children:"draft"===e?"Draft":"Archived"})}function u({sent:e,cap:s,className:n=""}){const t=s>0?Math.min(100,Math.round(e/s*100)):0;return(0,d.jsx)("span",{className:(0,i.cn)("block h-1.5 overflow-hidden rounded-sm bg-slate-200",n),children:(0,d.jsx)("i",{className:"block h-full bg-brand-600",style:{width:`${t}%`}})})}function m({children:e}){return(0,d.jsxs)("div",{role:"alert",className:"flex gap-2 rounded-md border border-rose-200 bg-rose-50 px-3 py-2 text-body text-rose-800",children:[(0,d.jsx)(r.t,{"aria-hidden":!0,weight:"bold",className:"mt-0.5 h-4 w-4 flex-none text-rose-700"}),(0,d.jsx)("div",{className:"min-w-0 flex-1",children:e})]})}const x={ok:{box:"border-emerald-200 bg-emerald-50 text-emerald-900",icon:t.r,ink:"text-emerald-700"},wait:{box:"border-amber-200 bg-amber-50 text-amber-900",icon:a.N,ink:"text-amber-700"},mute:{box:"border-slate-200 bg-slate-50 text-slate-700",icon:l.R,ink:"text-slate-500"}};function h({tone:e="ok",icon:s=x[e].icon,children:n}){const t=x[e];return(0,d.jsxs)("div",{className:(0,i.cn)("flex gap-2 rounded-md border px-3 py-2 text-body",t.box),children:[(0,d.jsx)(s,{"aria-hidden":!0,weight:"bold",className:(0,i.cn)("mt-0.5 h-4 w-4 flex-none",t.ink)}),(0,d.jsx)("div",{className:"min-w-0 flex-1",children:n})]})}function p({className:e=""}){return(0,d.jsx)("span",{className:(0,i.cn)("block animate-pulse rounded-sm bg-slate-100",e)})}function b({rows:e,cols:s}){return(0,d.jsxs)("div",{className:"bg-white",children:[(0,d.jsx)("div",{className:"flex gap-4 border-b border-slate-200 px-3 py-2.5",children:Array.from({length:s}).map(((e,s)=>(0,d.jsx)(p,{className:(0,i.cn)("h-2.5",0===s?"w-32":"w-14")},s)))}),Array.from({length:e}).map(((e,n)=>(0,d.jsxs)("div",{className:"flex items-center gap-4 border-b border-slate-100 px-3 py-3 last:border-b-0",children:[(0,d.jsxs)("span",{className:"w-32 space-y-1.5",children:[(0,d.jsx)(p,{className:"h-3 w-full"}),(0,d.jsx)(p,{className:"h-2.5 w-2/3"})]}),Array.from({length:s-1}).map(((e,s)=>(0,d.jsx)(p,{className:"h-3 w-14"},s)))]},n)))]})}function f({n:e}){return(0,d.jsx)("div",{className:"grid grid-cols-2 gap-px bg-slate-100 min-[1360px]:grid-cols-4",children:Array.from({length:e}).map(((e,s)=>(0,d.jsxs)("div",{className:"space-y-2 bg-white px-4 py-3",children:[(0,d.jsx)(p,{className:"h-5 w-12"}),(0,d.jsx)(p,{className:"h-2.5 w-24"})]},s)))})}
3function v({rows:e=5,cols:s=6,label:n="Loading",figures:t=0}){return(0,d.jsxs)("div",{role:"status","aria-label":n,"aria-busy":"true",className:"grid grid-cols-1 gap-px overflow-hidden rounded-md border border-slate-200 bg-slate-200",children:[t>0&&(0,d.jsx)(f,{n:t}),(0,d.jsx)(b,{rows:e,cols:s})]})}function g({label:e="Loading the sequence"}){return(0,d.jsx)(v,{rows:6,cols:5,figures:4,label:e})}function j({label:e="Setting up the sequence"}){return(0,d.jsxs)("div",{role:"status","aria-label":e,"aria-busy":"true",className:"grid gap-4 lg:grid-cols-[232px_1fr_288px]",children:[(0,d.jsx)("div",{className:"space-y-2",children:[0,1,2].map((e=>(0,d.jsxs)("div",{className:"space-y-1.5 rounded-md border border-slate-200 bg-white p-3",children:[(0,d.jsx)(p,{className:"h-2.5 w-20"}),(0,d.jsx)(p,{className:"h-3 w-full"})]},e)))}),(0,d.jsxs)("div",{className:"space-y-3 rounded-md border border-slate-200 bg-white p-4",children:[(0,d.jsx)(p,{className:"h-4 w-2/3"}),[0,1,2,3,4,5].map((e=>(0,d.jsx)(p,{className:"h-3 w-full"},e)))]}),(0,d.jsxs)("div",{className:"hidden space-y-3 rounded-md border border-slate-200 bg-white p-4 lg:block",children:[(0,d.jsx)(p,{className:"h-2.5 w-20"}),(0,d.jsx)(p,{className:"h-8 w-full"})]})]})}function N({name:e,tone:s="mute",title:n}){const t=(null!==e&&void 0!==e?e:"?").split(/\s+/).map((e=>e[0])).filter(Boolean).slice(0,2).join("").toUpperCase(),l="brand"===s?"bg-brand-100 text-brand-800":"bg-slate-100 text-slate-700";return(0,d.jsx)("span",{title:n,className:(0,i.cn)("grid h-6 w-6 flex-none place-items-center rounded-full text-caps",l),children:t||"?"})}n.d(s,["N9",0,"h-8 gap-1.5 rounded-sm px-3 text-body font-semibold shadow-none [&_svg]:size-3.5","eW",0,"h-[26px] gap-1 rounded-sm px-2 text-meta font-semibold shadow-none [&_svg]:size-3"])}}]);
4//# sourceMappingURL=7187.475dd3e5.chunk.js.map
5//# debugId=2babb950-3f34-502e-8bb2-c73bdbe204d9

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.