PageSourceSearch

https://aylagov.com/static/js/9592.1246b867.chunk.js

js aylagov.com collected 2026-10-05 08:52:48 UTC 19,178 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]="c4952325-3b27-53e7-b2e0-7edae524bbcf")}catch(e){}}();
3(self.webpackChunkaylagov_ui=self.webpackChunkaylagov_ui||[]).push([[9592],{32118(e,t,n){n.d(t,{Bq:()=>o,aX:()=>i,jQ:()=>r});var a=n(51795),s=n(70579);function i({id:e,checked:t,disabled:n,onChange:i,title:o,desc:r,reason:l,children:d}){const c=l?`${e}-reason`:void 0;return(0,s.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,s.jsx)("input",{id:e,type:"checkbox",checked:t,disabled:n,"aria-describedby":c,onChange:e=>null===i||void 0===i?void 0:i(e.target.checked),className:"mt-0.5 h-4 w-4 flex-none rounded border-slate-300 text-brand-700 disabled:opacity-60 focus-visible:ring-2 focus-visible:ring-brand-600"}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("label",{htmlFor:e,className:(0,a.cn)("text-body font-semibold",l?"text-slate-500":"text-slate-800"),children:o}),r&&(0,s.jsx)("p",{className:"mt-0.5 text-meta leading-relaxed text-slate-500",children:r}),l&&(0,s.jsx)("p",{id:c,className:"mt-0.5 text-meta leading-relaxed text-amber-700",children:l}),d]})]})}function o({id:e,value:t,onChange:n,disabled:i,max:o=2e3}){return(0,s.jsxs)("label",{htmlFor:e,className:(0,a.cn)("mt-1.5 inline-flex flex-wrap items-center gap-2 text-body",i?"text-slate-500":"text-slate-700"),children:["Its own limit",(0,s.jsx)("input",{id:e,type:"number",min:1,max:o,inputMode:"numeric",placeholder:"None",disabled:i,value:t,onChange:e=>n(e.target.value),className:"h-8 w-20 rounded-md border border-slate-200 bg-white px-2 font-figure text-body tabular-nums placeholder:text-slate-500 disabled:bg-slate-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-600/40"}),"credits, optional"]})}function r(e,t=2e3){const n=Math.trunc(Number(e));return Number.isFinite(n)&&n>0?Math.min(t,n):void 0}},30328(e,t,n){n.d(t,{zj:()=>p});const a="/talent/account",s=["company","you","team","billing","connections"],i=["email","ats","ai"];function o(e){return`${a}?tab=connections&section=${e}`}const r=o("email"),l=o("ats"),d=o("ai"),c=`${a}?tab=company#identity`,u=`${a}?tab=team`,h=`${a}?tab=billing#limits`,m={spend:{tab:"billing"},account:{tab:"you"},profile:{tab:"you"},clients:{tab:"company"},mailbox:{tab:"connections",section:"email"},integrations:{tab:"connections",section:"ats"}},x=e=>!!e&&i.includes(e);function p(e,t,n=new URLSearchParams){var i;const o=(null!==e&&void 0!==e?e:"").trim().toLowerCase(),r=t.replace(/^#/,"");let l=null!==(i=m[o])&&void 0!==i?i:null,d=!1;if("you"===o&&"connector"===r&&(l={tab:"connections",section:"ai"},d=!0),l){var c;const e=new URLSearchParams(n);e.set("tab",l.tab),l.section&&e.set("section",l.section);const t=!d&&r?`#${r}`:"";return{tab:l.tab,section:null!==(c=l.section)&&void 0!==c?c:null,redirect:`${a}?${e.toString()}${t}`}}const u=s.includes(o)?o:"company";if("connections"!==u)return{tab:u,section:null,redirect:null};const h=n.get("section");return{tab:"connections",section:x(h)?h:x(r)?r:"connector"===r?"ai":null,redirect:null}}n.d(t,["AQ",0,a,"Cn",0,r,"WZ",0,d,"Yx",0,l,"bA",0,c,"cM",0,u,"fH",0,h])},29592(e,t,n){n.r(t),n.d(t,{default:()=>T});var a=n(65043),s=n(49367),i=n(53217),o=n(16184),r=n(96539),l=n(69772),d=n(51795),c=n(30328),u=n(41804),h=n(63212),m=n(64018),x=n(26443),p=n(22144),g=n(58484),b=n(36044),f=n(32118),y=n(55355),j=n(70579);const v="/oauth/authorize",w="/login?for=employer";const k=e=>{var t;return null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.status},N=e=>{var t;const n=null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.data;return"string"===typeof(null===n||void 0===n?void 0:n.code)?n.code:void 0};const C={invalid_request:"The app's request is missing something Ayla needs.",invalid_client:"Ayla couldn't identify the app that sent you here.",invalid_redirect_uri:"The app asked Ayla to send you to an address it didn't register.",unauthorized_client:"This app isn't allowed to connect to Ayla.",unsupported_response_type:"The app asked for something Ayla doesn't offer.",invalid_scope:"The app asked for permissions Ayla doesn't have.",invalid_target:"The app asked to connect to something other than Ayla Talent."};function A(e){const t=e.trim();return C[t]?C[t]:!t||/^[a-z_]+$/.test(t)?"The app's request didn't check out.":t}const S=e=>(null!==e&&void 0!==e?e:"").replace(/[^A-Za-z0-9]/g,"").charAt(0).toUpperCase()||"?";function T(){const{search:e}=(0,i.zy)(),t=(0,i.Zp)(),[n,o]=(0,a.useState)({k:"loading"}
3),[r,d]=(0,a.useState)(0);(0,a.useEffect)((()=>{let n=!0;const a=()=>{(0,h.Mh)(v+e),t(w,{replace:!0})};return(async()=>{o({k:"loading"});const t=function(){try{return Boolean(window.sessionStorage.getItem(m.il)||window.localStorage.getItem(m.il))}catch{return!1}}(),s=t?(0,y.wo)().then((e=>({ok:!0,v:e})),(e=>({ok:!1,e:e}))):null;let i;try{i=await(0,y.q7)(e)}catch{return void(n&&o({k:"error"}))}if(!n)return;if(null===i)return o({k:"off"});if(!i.ok)return o({k:"invalid",error:i.error,redirectTo:i.redirectTo});if(!t||!s)return a();const r=await s;if(!r.ok){if(!n)return;return 401===k(r.e)?a():o({k:"error"})}const l=r.v;if(!n)return;if(!l.isClient)return o({k:"noaccess",check:i,email:l.email});if(l.needs2fa)return o({k:"needs2fa",me:l});if(!l.mfaVerified)return o({k:"stepup",me:l});let d;try{d=await(0,y.$T)()}catch(c){if(!n)return;const e=k(c);if(401===e)return a();if(404===e)return o({k:"off"});if(403===e){const e=N(c);return o("2fa_enrollment_required"===e?{k:"needs2fa",me:l}:"mfa_stepup_required"===e?{k:"stepup",me:l}:{k:"noaccess",check:i,email:l.email})}return o({k:"error"})}n&&o(d.enabled?{k:"ready",check:i,ctx:d,me:l}:{k:"disabled",check:i,ctx:d})})(),()=>{n=!1}}),[e,r,t]);const x=()=>d((e=>e+1)),p=async()=>{try{await u.R.post("/users/logout")}catch{}(0,h.q7)(),(0,h.Mh)(v+e),window.location.assign(w)},f=(0,j.jsxs)(s.mg,{children:[(0,j.jsx)("title",{children:"Sign in with Ayla"}),(0,j.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,j.jsx)("meta",{name:"referrer",content:"no-referrer"})]});return"needs2fa"===n.k?(0,j.jsxs)(j.Fragment,{children:[f,(0,j.jsx)(g.A,{surface:"client portal",onEnrolled:x})]}):"stepup"===n.k?(0,j.jsxs)(j.Fragment,{children:[f,(0,j.jsx)(b.A,{surface:"client portal",email:null!==(C=n.me.email)&&void 0!==C?C:"",factors:n.me.mfaFactors,factor:null!==(S=n.me.mfaFactor)&&void 0!==S?S:null,onVerified:x})]}):(0,j.jsxs)(z,{head:f,children:["loading"===n.k&&(0,j.jsxs)("div",{role:"status","aria-busy":"true",className:"space-y-3",children:[(0,j.jsx)("span",{className:"sr-only",children:"Checking the request"}),(0,j.jsx)("span",{className:"block h-7 w-3/4 animate-pulse rounded-sm bg-slate-100"}),(0,j.jsx)("span",{className:"block h-12 animate-pulse rounded-md bg-slate-100"}),(0,j.jsx)("span",{className:"block h-40 animate-pulse rounded-md bg-slate-100"})]}),"error"===n.k&&(0,j.jsxs)(q,{children:[(0,j.jsx)(F,{children:"Ayla didn\u2019t load"}),(0,j.jsx)("p",{role:"alert",className:"text-body leading-relaxed text-slate-600",children:"The connection to Ayla dropped part-way. Nothing was connected."}),(0,j.jsx)("div",{children:(0,j.jsx)(l.$,{onClick:x,className:_,children:"Try again"})})]}),"off"===n.k&&(0,j.jsxs)(q,{children:[(0,j.jsx)(F,{children:"Signing in with Ayla isn\u2019t switched on yet."}),(0,j.jsxs)("p",{className:"text-body leading-relaxed text-slate-600",children:["Until it is, connect the app with a key from"," ",(0,j.jsx)(i.N_,{to:c.WZ,className:"font-semibold text-brand-700 underline-offset-2 hover:underline",children:"Account \u203a Connections"}),"."]})]}),"invalid"===n.k&&(0,j.jsxs)(q,{children:[(0,j.jsx)(F,{children:"This connection request isn\u2019t valid"}),(0,j.jsxs)(Y,{tone:"bad",children:[A(n.error),!n.redirectTo&&" Ayla hasn't sent anything anywhere."]}),n.redirectTo?(0,j.jsx)("div",{children:(0,j.jsx)(l.$,{onClick:()=>window.location.assign(n.redirectTo),className:_,children:"Back to the app"})}):(0,j.jsxs)("p",{className:"text-body leading-relaxed text-slate-600",children:["Close this tab and start connecting again from the app. If it keeps happening, tell us at"," ",(0,j.jsx)("a",{href:"mailto:[email protected]",className:"font-semibold text-brand-700 underline-offset-2 hover:underline",children:"[email protected]"}),"."]})]}),"noaccess"===n.k&&(0,j.jsxs)(q,{children:[(0,j.jsx)(F,{children:"This account doesn\u2019t have Ayla Talent access"}),n.email&&(0,j.jsx)(I,{email:n.email,detail:null,onNotYou:p}),(0,j.jsx)("div",{className:"flex gap-2",children:(0,j.jsx)(l.$,{variant:"outline",onClick:()=>window.location.assign(n.check.denyTo),className:$,children:"Cancel"})})]}),"disabled"===n.k&&(0,j.jsxs)(q,{children:[(0,j.jsx)(F,{children:"Signing in with Ayla isn\u2019t on for this account yet."}),(0,j.jsx)(I,{email:n.ctx.seatEmail,detail:n.ctx.company,onNotYou:p}),(0,j.jsx)("div",{className:"flex gap-2",children:(0,j.jsx)(l.$,{variant:"outline",onClick:()=>window.location.assign(n.check.denyTo),className:$,children:"Cancel"})})]}),"ready"===n.k&&(0,j.jsx)(B,{check:n.check,ctx:n.ctx,me:n.me,search:e,onNotYou:p,onSignIn:()=>{(0,h.Mh)(v+e),t(w,{replace:!0})},onGate:e=>o({k:e,me:n.me})})]});var C,S}const _="h-10 rounded-md px-[18px] text-sm font-bold shadow-none",$="h-10 rounded-md px-[18px] text-sm font-bold text-slate-700 shadow-none";function z({head:e,children:t}){return(0,j.jsxs)("div",{className:"min-h-screen bg-white text-slate-900 lg:grid lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]",children:[e,(0,j.jsxs)("aside",{"aria-label":"About signing in with Ayla",className:"hidden flex-col gap-7 bg-gradient-to-br from-brand-700 to-brand-800 px-10 py-9 text-white lg:flex",children:[(0,j.jsxs)("span",{className:"flex items-center gap-2.5 text-lg font-extrabold",children:[(0,j.jsx)("span",{className:"grid h-8 w-8 place-items-center rounded-md border border-white/25 bg-white/15",children:(0,j.jsx)(x.tm,{className:"h-4 w-4",onDark:!0})}),"Ayla Talent"]}),(0,j.jsx)("p",{className:"mt-auto max-w-[18ch] text-[30px] font-black leading-[1.15] tracking-[-0.02em]",children:"Use your Ayla pool from the AI app you already use."}),(0,j.jsx)("p",{className:"max-w-[40ch] text-body leading-relaxed text-sky-100",children:"The app works on your seat: everything it does shows on Activity under its name, and you can switch it off at once."}),(0,j.jsx)("dl",{className:"mt-1.5 grid gap-2",children:[["1 h","keys it holds renew quietly while you use it"],["30 d","unused, and it ends on its own"],["0","passwords or keys to paste"]].map((([e,t])=>(0,j.jsxs)("div",{className:"flex items-baseline gap-2.5 rounded-md border border-white/15 bg-white/[0.08] px-3 py-2 text-[13px]",children:[(0,j.jsx)("dt",{className:"min-w-[52px] font-slab text-[15px] font-bold tabular-nums",children:e}),(0,j.jsx)("dd",{children:t})]},e)))})]}),(0,j.jsx)("main",{className:"flex justify-center px-4 py-6 sm:px-10 sm:py-9",children:(0,j.jsxs)("div",{className:"w-full max-w-[460px]",children:[(0,j.jsxs)("span",{className:"mb-4 flex items-center gap-2 text-base font-extrabold text-brand-700 lg:hidden",children:[(0,j.jsx)(x.Q3,{className:"h-7 w-7"}),"Ayla Talent"]}),t]})})]})}function q({children:e}){return(0,j.jsx)("div",{className:"grid gap-4",children:e})}function F({children:e}){return(0,j.jsx)("h1",{className:"break-words text-[21px] font-black leading-tight tracking-[-0.02em] text-slate-900 sm:text-2xl",children:e})}function Y({tone:e,children:t}){return(0,j.jsx)("p",{className:(0,d.cn)("rounded-md border px-3 py-2.5 text-body leading-relaxed","warn"===e&&"border-amber-300 bg-amber-50 text-amber-900","info"===e&&"border-brand-200 bg-brand-100 text-brand-900","bad"===e&&"border-rose-300 bg-rose-50 text-rose-900"),children:t})}function I({email:e,detail:t,onNotYou:n}){return(0,j.jsxs)("div",{className:"flex items-center gap-2.5 rounded-lg border border-slate-200 bg-slate-50 px-3 py-2",children:[(0,j.jsx)("span",{"aria-hidden":!0,
3className:"grid h-[30px] w-[30px] flex-none place-items-center rounded-full bg-brand-100 font-bold text-brand-700",children:S(e)}),(0,j.jsxs)("div",{className:"min-w-0",children:[(0,j.jsxs)("div",{className:"truncate text-body font-medium text-slate-900",children:[(0,j.jsx)("span",{className:"sr-only",children:"Signed in as "}),e]}),t&&(0,j.jsx)("div",{className:"truncate text-meta text-slate-500",children:t})]}),(0,j.jsx)("button",{type:"button",onClick:n,className:"ml-auto flex-none whitespace-nowrap rounded-sm text-meta font-semibold text-brand-700 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-600",children:"Not you?"})]})}const L="Not offered to an app Ayla doesn't recognize.";function B({check:e,ctx:t,me:n,search:s,onNotYou:i,onSignIn:c,onGate:u}){const{client:h}=e,[m,g]=(0,a.useState)(!0),[b,v]=(0,a.useState)(!1),[w,C]=(0,a.useState)(!1),[A,T]=(0,a.useState)(""),[z,q]=(0,a.useState)(!1),[B,E]=(0,a.useState)(null),H=h.allowsSensitive?t.grantable.spend.ok?void 0:t.grantable.spend.reason||"Your monthly limit is 0 credits.":L,R=h.allowsSensitive?t.grantable.send.ok?void 0:t.grantable.send.reason||"Your plan doesn't include outreach.":L,U=h.recognized?h.name:`\u201c${h.name}\u201d`,W=h.recognized?h.name:"it",X=(e=>{const t=new Date(e);return Number.isNaN(t.getTime())?null:t.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})})(t.connectionEndsBy),D=[t.company,"owner"===n.role?"owner":null].filter(Boolean).join(" \xb7 "),Q=t.activeGrants>=t.grantLimit;return(0,j.jsxs)("div",{className:"grid gap-4",children:[(0,j.jsxs)("div",{className:"hidden items-center gap-3 lg:flex","aria-hidden":!0,children:[(0,j.jsx)("span",{className:"grid h-11 w-11 flex-none place-items-center rounded-lg border border-slate-200 bg-slate-50 text-lg font-black text-slate-700",children:S(h.name)}),(0,j.jsx)(o.a,{className:"h-4 w-4 text-slate-500",weight:"bold"}),(0,j.jsx)("span",{className:"grid h-11 w-11 flex-none place-items-center rounded-lg border border-brand-200 bg-brand-100",children:(0,j.jsx)(x.tm,{className:"h-5 w-5"})})]}),(0,j.jsxs)(F,{children:["Connect ",U," to Ayla Talent"]}),(0,j.jsx)(I,{email:t.seatEmail,detail:D||null,onNotYou:i}),(0,j.jsxs)("div",{className:"grid gap-1 rounded-lg border border-slate-200 px-3 py-2.5 text-body text-slate-700",children:[h.recognized?(0,j.jsx)(p.oy,{tone:"ok",children:"Recognized app"}):(0,j.jsx)(p.oy,{tone:"watch",children:"Not recognized"}),(0,j.jsxs)("span",{className:"break-words",children:["Ayla will send you back to"," ",(0,j.jsx)("b",{className:"font-bold text-slate-900",children:h.redirectHost}),h.loopback&&", a program on this computer"]}),"cimd"===h.kind&&h.idHost&&h.idHost!==h.redirectHost&&(0,j.jsxs)("span",{className:"text-meta text-slate-500",children:["Identified by ",h.idHost]})]}),h.loopback?(0,j.jsx)(Y,{tone:h.recognized?"info":"warn",children:"Continue only if you just started this from Claude Code, Codex, Cursor or VS Code on this computer."}):!h.recognized&&(0,j.jsx)(Y,{tone:"warn",children:"Ayla doesn\u2019t recognize this app. Continue only if you started connecting it yourself just now. The name an app gives itself is not checked; where it sends you back is."}),(0,j.jsxs)("fieldset",{children:[(0,j.jsxs)("legend",{className:"sr-only",children:["What ",W," may do"]}),(0,j.jsxs)("div",{"aria-hidden":!0,className:"text-caps uppercase text-slate-500",children:["What ",W," may do"]}),(0,j.jsxs)("div",{className:"mt-2.5 grid gap-3",children:[(0,j.jsx)(f.aX,{id:"oauth-read",checked:!0,disabled:!0,title:"Search and review",desc:"Search your pool, rank candidates against your roles, read their records. Always on."}),(0,j.jsx)(f.aX,{id:"oauth-organize",checked:m,disabled:z,onChange:g,title:"Organize your workspace",desc:"Save roles, add shortlisted people to projects, record what candidates told you. Your team sees these."}),(0,j.jsx)(f.aX,{id:"oauth-spend",checked:b&&!H,disabled:!!H||z,onChange:v,title:"Spend credits",desc:H?void 0:"Unlock contact details. It asks before every purchase.",reason:H,children:!H&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("p",{className:"mt-1 text-meta leading-relaxed text-slate-700",children:(0,j.jsx)(M,{allowance:t.allowance})}),(0,j.jsx)(f.Bq,{id:"oauth-cap",value:A,onChange:T,disabled:!b||z,max:t.maxCapCredits})]})}),(0,j.jsx)(f.aX,{id:"oauth-send",checked:w&&!R,disabled:!!R||z,onChange:C,title:"Start outreach",desc:R?void 0:"Draft sequences and add people to them. Nothing sends until you press Activate.",reason:R})]})]}),(0,j.jsxs)("p",{className:"border-t border-slate-200 pt-3 text-meta leading-relaxed text-slate-500",children:["Stays connected while you use it. Ends after 30 days unused",X?(0,j.jsxs)(j.Fragment,{children:[", and by ",(0,j.jsx)("b",{className:"font-bold text-slate-700",children:X})," at the latest"]}):null,". Revoke any time in Account \u203a Connections."]}),Q&&(0,j.jsxs)(Y,{tone:"warn",children:["You have ",t.grantLimit," apps connected, the most allowed. Revoke one in Account \u203a Connections first."]}),B&&(0,j.jsx)("p",{role:"alert",className:"text-body leading-relaxed text-rose-700",children:B}),(0,j.jsxs)("div",{className:"flex gap-2",children:[(0,j.jsx)(l.$,{variant:"outline",disabled:z,onClick:()=>window.location.assign(e.denyTo),className:$,children:"Cancel"}),(0,j.jsxs)(l.$,{disabled:z||Q,onClick:async()=>{q(!0),E(null);const e=[...m?["organize"]:[],...b&&!H?["spend"]:[],...w&&!R?["send"]:[]],n=e.includes("spend")?(0,f.jQ)(A,t.maxCapCredits):void 0;try{const{redirectTo:t}=await(0,y.qg)({query:s,scopes:e,...void 0!==n?{spendCapCredits:n}:{}});window.location.assign(t)}catch(a){const e=k(a);if(401===e)return c();const t=N(a);if(403===e&&"2fa_enrollment_required"===t)return u("needs2fa");if(403===e&&"mfa_stepup_required"===t)return u("stepup");E(function(e){var t;const n=null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.data,a=[null===n||void 0===n?void 0:n.message,null===n||void 0===n?void 0:n.error].map((e=>Array.isArray(e)?e.join(" "):e)).find((e=>"string"===typeof e&&e.trim().length>0));if(a)return a;const s=k(e);return s?`Ayla couldn't connect it (error ${s}). Try again.`:"Ayla couldn't connect it. Check your connection and try again."}(a)),q(!1)}},className:(0,d.cn)(_,"flex-1"),children:[z&&(0,j.jsx)(r.N,{className:"animate-spin",weight:"bold","aria-hidden":!0}),z?"Allowing\u2026":"Allow"]})]}),(0,j.jsxs)("p",{className:"text-meta text-slate-500",children:["We\u2019ll email you that ",U," was connected."]})]})}function M({allowance:e}){const t=e=>(0,j.jsx)("b",{className:"font-slab font-bold tabular-nums text-slate-900",children:e.toLocaleStr
3ing()});return null!==e.monthlyLimit?null!==e.remaining?(0,j.jsxs)(j.Fragment,{children:["Spends within your allocation: ",t(e.remaining)," credits left this month."]}):(0,j.jsxs)(j.Fragment,{children:["Spends within your monthly allocation of ",t(e.monthlyLimit)," credits."]}):(0,j.jsxs)(j.Fragment,{children:["From the team\u2019s ",t(e.teamBalance)," credits. No monthly limit is set for you."]})}}}]);
4//# sourceMappingURL=9592.1246b867.chunk.js.map
5//# debugId=c4952325-3b27-53e7-b2e0-7edae524bbcf

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.