import{l as i}from"./lodash-BXB9EDtO.js";import{h as r}from"./moment-D78_0ZE3.js";import{i as d}from"./isEmail-DcKHGH7o.js";import{c as f}from"./QueryStringUtils-CcAOyuLE.js";import{a as g}from"./util-r6NyJOE9.js";import"./_sentry-release-injection-file-D-6fgGWT.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="89e17da6-19f1-4dc8-a8bc-afb43788cf16",n._sentryDebugIdIdentifier="sentry-dbid-89e17da6-19f1-4dc8-a8bc-afb43788cf16")}catch{}})();(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="2e3a55e8-44a6-451e-827f-399f335d09a7",n._sentryDebugIdIdentifier="sentry-dbid-2e3a55e8-44a6-451e-827f-399f335d09a7")}catch{}})();(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="24b00f0a-86e7-482f-bab5-0eb90b40f732",n._sentryDebugIdIdentifier="sentry-dbid-24b00f0a-86e7-482f-bab5-0eb90b40f732")}catch{}})();(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="b355727b-d4aa-4512-965e-130fda376387",n._sentryDebugIdIdentifier="sentry-dbid-b355727b-d4aa-4512-965e-130fda376387")}catch{}})();const o={job:null,job_type:null,role:null,eng_type:null,design_type:null,science_type:null,recruiting_type:null,design_portfolio_only:"bool",max_experience:"int",min_experience:"int",min_school_year:null,exclude_messaged:"bool",visa:null,keyword:null,yc_affiliation:null,attending_event:null,max_days_old:"int",location:null,locations:null,remote:null,local_only:"bool",tz:null,tz_delta:null,country:null,state:null,page:"int",sort:null,admin_big_y_only:"bool",admin_needs_normal_votes:"bool",admin_needs_intern_votes:"bool",admin_has_autovote:"bool",admin_include_empty_experience:"bool",admin_applied_event:null,admin_use_sql:null,admin_max_days_old:"int"},b=[{value:"1_10",label:"1 - 10 people",order:0},{value:"11_50",label:"11 - 50 people",order:1},{value:"51_300",label:"51 - 300 people",order:2},{value:"300_+",label:"301+ people",order:3}],s=n=>b.filter(e=>n.map(t=>t.value).includes(e.value)).map(e=>e.label).join(", "),A=n=>{if(!n)return"";let e;return n.map(t=>t.rating).every(t=>t!=="low")?(e="Ok with any company size.",n.map(t=>t.rating).some(t=>t==="medium")&&n.map(t=>t.rating).some(t=>t==="high")&&(e=`${e}   Would prefer ${s(n.filter(t=>t.rating==="high"))}.`)):n.map(t=>t.rating).some(t=>t==="medium")&&n.map(t=>t.rating).some(t=>t==="high")?(e=`Would prefer companies of ${s(n.filter(t=>t.rating==="high"))}.  `,e+=` Also ok with ${s(n.filter(t=>t.rating==="medium"))}.`):e=`Looking for companies with ${s(n.filter(t=>t.rating!=="low"))}.`,e},O=n=>{const e={...n};return Object.keys(o).forEach(t=>{t in e||(e[t]=null)}),e},l=n=>{const e=i.pick(f(n),Object.keys(o));if(Object.entries(o).forEach(([t,a])=>{t in e&&a&&typeof e[t]=="string"&&(a==="int"?e[t]=Number.parseInt(e[t],10):a==="bool"&&(e[t]=e[t].toLowerCase()==="true"))}),e.visa==="true"||e.visa===!0?e.visa="yes":(e.visa==="false"||e.visa===!1)&&delete e.visa,e.locations!=null&&e.location==null){const[t]=g(e.locations);e.location=t}return e},S=(n,e)=>{const t=l(n),a=l(e);return i.isEqual(t,a)},N=(n,e,t="s")=>`${e}${n!==1?t:""}`,D=(n,e)=>{const t=[];for(let a=0;a<n.length;a+=e)t[t.length]=n.slice(a,a+e);return t},L=(n,e)=>Array.isArray(n)&&n.includes(e),C=n=>{const e=r(n);return e.isValid()?e.from(r()):null},R=(n,e)=>Object.keys(n).reduce((t,a)=>(e(a)&&(t[a]=n[a]),t),{});function U(n){return n.displayName||n.name||"Component"}const x={container:"ras-container",containerOpen:"ras-container--open",input:"form-control ras-input",inputOpen:"ras-input--open",inputFocused:"ras-input--focused",suggestionsContainer:"ras-suggestions-container",suggestionsContainerOpen:"ras-suggestions-container--open",suggestionsList:"ras-suggestions-list",suggestion:"ras-suggestion",suggestionFirst:"ras-suggestion--first",suggestionHighlighted:"ras-suggestion--highlighted"},$=["(cities)"],F=["(regions)"],Y=[{value:"01",label:"January"},{value:"02",label:"February"},{value:"03",label:"March"},{value:"04",label:"April"},{value:"05",label:"May"},{value:"06",label:"June"},{value:"07",label:"July"},{value:"08",label:"August"},{value:"09",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],u=(n,e)=>[...Array(1+e-n).keys()].map(t=>({value:e-t,label:e-t})),G=u(1950,new Date().getFullYear()+9),P=u(new Date().getFullYear(),new Date().getFullYear()+9).reverse(),k=n=>{const e=(n||"-").split("-",3);return e.length===3&&e[2]==="05"?{year:e[0],month:""}:{year:e[0],month:e[1]}},H=(n,e)=>{e?window.open(n):document.location.href=n},j=n=>!!(n&&d(n));function B(n){const e=(n||"").split(/\//).filter(t=>t!=="");return e[e.length-1]}function M(n){return(n||"").replace(/https?:\/\/(www\.)?/i,"")}function q(n){let e=n?n.trim().split(" ")[0]:"";return n&&!/^(?:f|ht)tps?:\/\//.test(n)&&(e=`https://${e}`),e}const _="any",V="favorite",J="reviewing",W="archived",Z=_,K="/workatastartup/ats",p="hover:cursor-pointer inline-flex items-center border font-medium rounded shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2 text-center",c=`${p} px-2.5 py-1.5`,y="border-transparent bg-orange-500 hover:bg-orange-600 focus:ring-orange-500 text-white",Q=`${c} ${y}`,m="bg-gray-50 hover:bg-gray-100 focus:ring-gray-200 text-gray-700 border border-gray-300",X=`${c} ${m}`;export{K as A,c as B,Z as D,P as F,X as G,$ as L,Y as M,Q as O,_ as S,G as Y,F as a,k as b,M as c,C as d,U as e,S as f,A as g,x as h,j as i,D as j,R as k,H as l,B as m,W as n,V as o,N as p,J as q,q as r,L as s,l as t,O as u};
