1import{a as e,n as t,t as n}from"./jsx-runtime-DWSWI4JT.js";import{n as r,t as i}from"./createServerFn-D3iSAG99.js";import{P as a,p as o,t as s}from"./useStore-CXOrZ9yR.js";import{a as c,l,o as u,r as d,t as f}from"./Match-DT5HIcSl.js";import{n as p}from"./matchContext-D0eJkWZB.js";import{t as m}from"./link-CcWiSoch.js";import{o as h,s as g,t as _}from"./useRouter-DqaSvOqg.js";import{a as ee,c as te,d as ne,g as re,l as ie,n as v,p as ae,r as oe,s as se,t as ce,v as le}from"./sheet-DgNL0Qks.js";import{t as ue}from"./useMutation-BzTGdOPP.js";import{t as de}from"./compiler-runtime-D2MyyVai.js";import{t as y,y as fe}from"./button-D28AY4HJ.js";import{t as b}from"./utils-CHnL9weW.js";import{n as pe,t as me}from"./arrow-right-Du-ZX6gZ.js";import{t as x}from"./createLucideIcon-DqtPwa5-.js";import{t as S}from"./chevron-down-B1bGgBne.js";import{t as he}from"./chevron-right-BNuuHeww.js";import{t as ge}from"./loader-circle-D1JcjiRh.js";import{n as _e}from"./dist-kx5jX9s2.js";import{t as ve}from"./input-GSIjuTen.js";import{t as ye}from"./useRender-BpqHswuE.js";function be(e){if(typeof document<`u`&&document.querySelector){let t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==``){let e=document.getElementById(t.hash);e&&e.scrollIntoView(n)}}}var C=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(C||{});function xe({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Se(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var w=[],T=0,{link:E,unlink:Ce,propagate:we,checkDirty:D,shallowPropagate:O}=xe({update(e){return e._update()},notify(e){w[A++]=e,e.flags&=~C.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=C.Mutable|C.Dirty,P(e))}}),k=0,A=0,j,M=0;function N(e){try{++M,e()}finally{--M||F()}}function P(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Ce(n,e)}function F(){if(!(M>0)){for(;k<A;){let e=w[k];w[k++]=void 0,e.notify()}k=0,A=0}}function Te(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?C.None:C.Mutable,get(){return j!==void 0&&E(i,j,T),i._snapshot},subscribe(e){let t=Se(e),n={current:!1},r=Ee(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=j,o=t?.compare??Object.is;if(n)j=i,++T,i.depsTail=void 0;else if(e===void 0)return!1;
1n&&(i.flags=C.Mutable|C.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{j=a,n&&(i.flags&=~C.RecursedCheck),P(i)}}};return n?(i.flags=C.Mutable|C.Dirty,i.get=function(){let e=i.flags;if(e&C.Dirty||e&C.Pending&&D(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&O(e)}}else e&C.Pending&&(i.flags=e&~C.Pending);return j!==void 0&&E(i,j,T),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(we(e),O(e),F())}},i}function Ee(e){let t=()=>{let t=j;j=n,++T,n.depsTail=void 0,n.flags=C.Watching|C.RecursedCheck;try{return e()}finally{j=t,n.flags&=~C.RecursedCheck,P(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:C.Watching|C.RecursedCheck,notify(){let e=this.flags;e&C.Dirty||e&C.Pending&&D(this.deps,this)?t():this.flags=C.Watching},stop(){this.flags=C.None,this.depsTail=void 0,P(this)}};return t(),n}var I=e(t(),1);function De(){let e=_(),t=I.useRef({router:e,mounted:!1}),[n,r]=I.useState(!1),i=s(e.stores.isLoading,e=>e),a=s(e.stores.hasPending,e=>e),c=g(i),u=i||n||a,d=g(u),f=i||a,p=g(f);return e.startTransition=e=>{r(!0),I.startTransition(()=>{e(),r(!1)})},I.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return o(e.latestLocation.publicHref)!==o(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),h(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),h(()=>{c&&!i&&e.emit({type:`onLoad`,...l(e.stores.location.get(),e.stores.resolvedLocation.get())})},[c,e,i]),h(()=>{p&&!f&&e.emit({type:`onBeforeRouteMount`,...l(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,p,e]),h(()=>
1{if(d&&!u){let t=l(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),N(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())}),t.hrefChanged&&be(e)}},[u,d,e]),null}var L=n();function Oe(){let e=_(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,L.jsx)(t,{}):null,r=(0,L.jsxs)(typeof document<`u`&&e.ssr?d:I.Suspense,{fallback:n,children:[(0,L.jsx)(De,{}),(0,L.jsx)(ke,{})]});return e.options.InnerWrap?(0,L.jsx)(e.options.InnerWrap,{children:r}):r}function ke(){let e=_(),t=s(e.stores.firstId,e=>e),n=s(e.stores.loadedAt,e=>e),r=t?(0,L.jsx)(f,{matchId:t}):null;return(0,L.jsx)(p.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,L.jsx)(c,{getResetKey:()=>n,errorComponent:u,onCatch:void 0,children:r})})}function Ae(e){let t=_(),n=I.useRef(void 0);return s(t.stores.matches,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=a(n.current,i);return n.current=e,e}return i})}var R=x(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),je=x(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),z=de(),Me=i({method:`POST`}).handler(r(`87cbf34566ef5c95611a512e55228b03542362609941505da8be2647ee440863`));function B(e){let t=(0,z.c)(25),{inputId:n}=e,r=n===void 0?`subscribe-email`:n,[i,a]=(0,I.useState)(``),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={mutationFn:Ne,onSuccess:()=>a(``),onError:V},t[0]=o):o=t[0];let s=ue(o);if(s.isSuccess){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsxs)(`div`,{className:`flex items-center gap-2 rounded-md border border-primary/20 bg-primary/5 px-4 py-3 text-sm font-medium text-foreground`,children:[(0,L.jsx)(R,{className:`size-5 shrink-0 text-primary`}),`Youâre on the list. Check your inbox to confirm your subscription.`]}),t[1]=e):e=t[1],e}let c;t[2]!==i||t[3]!==s?(c=e=>{e.preventDefault();let t=i.trim();!t||s.isPending||s.mutate({email:t})},t[2]=i,t[3]=s,t[4]=c):c=t[4];let l;t[5]===r?l=t[6]:(l=(0,L.jsx)(`label`,{htmlFor:r,className:`sr-only`,children:`Email address`}),t[5]=r,t[6]=l);let u;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(u=e=>a(e.currentTarget.value),t[7]=u):u=t[7];let d;t[8]!==i||t[9]!==r||t[10]!==s.isPending?(d=(0,L.jsx)(ve,{id:r,type:`email`,required:!0,autoComplete:`email`,placeholder:`[email protected]`,value:i,onChange:u,disabled:s.isPending,className:`h-11 bg-white sm:flex-1 dark:bg-input/30`}),t[8]=i,t[9]=r,t[10]=s.isPending,t[11]=d):d=t[11];let f;t[12]!==i||t[13]!==s.isPending?(f=s.isPending||!i.trim(),t[12]=i,t[13]=s.isPending,t[14]=f):f=t[14];let p;t[15]===s.isPending?p=t[16]:(p=s.isPending?(0,L.jsxs)(L.Fragment,{children:[`Subscribing`,(0,L.jsx)(ge,{className:`animate-spin`})]}):(0,L.jsxs)(L.Fragment,{children:[`Subscribe`,(0,L.jsx)(me,{})]}),t[15]=s.isPending,t[16]=p);let m;t[17]!==f||t[18]!==p?(m=(0,L.jsx)(y,{type:`submit`,size:`lg`,disabled:f,className:`h-11 shrink-0`,children:p}),t[17]=f,t[18]=p,t[19]=m):m=t[19];let h;return t[20]!==c||t[21]!==l||t[22]!==d||t[23]!==m?(h=(0,L.jsxs)(`form`,{onSubmit:c,className:`flex w-full flex-col gap-2 sm:flex-row`,children:[l,d,m]}),t[20]=c,t[21]=l,t[22]=d,t[23]=m,t[24]=h):h=t[24],h}function V(){return _e.error(`Something went wrong. Please try again.`)}function Ne(e){return Me({data:{email:e.email,referrer:typeof window>`u`?void 0:window.location.href}})}function Pe(e){let t=(0,z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=b(n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fe(e){let t=(0,z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=b(`flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground sm:gap-2.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function H(e){let t=(0,z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=b(`inline-flex items-center gap-1.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function U(e){let t=(0,z.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=ye,r=`a`,i=fe({className:b(`transition-colors hover:text-foreground`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`breadcrumb-link`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function Ie(e){let t=(0,z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=b(`font-normal text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Le(e){let t=(0,z.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=b(`[&>svg]:size-3.5`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=n??(0,L.jsx)(he,{}),t[6]=n,t[7]=o);let s;return t[8]!==i||t[9]!==a||t[10]!==o?(s=(0,L.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:a,...i,children:o}),t[8]=i,t[9]=a,t[10]=o,t[11]=s):s=t[11],s}
1var W=`inline-block text-sm py-1 text-foreground/60 hover:text-foreground transition-colors rounded-sm`,Re=[{to:`/about`,label:`About us`},{to:`/organisations`,label:`Organisations`},{to:`/blog`,label:`Blog`},{to:`/privacy`,label:`Privacy`},{to:`/terms`,label:`Terms`}],ze=[{to:`/`,label:`All jobs`},{categorySlug:`policy-advocacy`,label:`Policy & Advocacy`},{categorySlug:`communication-marketing`,label:`Communications`},{categorySlug:`programmes-events`,label:`Programmes & Events`},{categorySlug:`research`,label:`Research`},{categorySlug:`administration`,label:`Administration`},{categorySlug:`finance`,label:`Finance`},{categorySlug:`legal`,label:`Legal`}];function Be(){let e=(0,z.c)(8),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=new Date().getFullYear(),e[0]=t):t=e[0];let n=t,r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,L.jsx)(Ke,{}),e[1]=r):r=e[1];let i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,L.jsx)(`div`,{id:`newsletter`,className:`border-b`,children:(0,L.jsxs)(`div`,{className:`wrapper-md grid gap-6 py-12 md:grid-cols-2 md:items-center lg:py-14`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`h2`,{className:`font-display text-xl font-semibold tracking-tight sm:text-2xl`,children:`Get new EU jobs in your inbox`}),(0,L.jsx)(`p`,{className:`mt-2 max-w-[420px] text-sm text-foreground/60`,children:`The latest EU affairs roles, straight to your inbox. No spam â unsubscribe anytime.`})]}),(0,L.jsx)(B,{})]})}),e[2]=i):i=e[2];let a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,L.jsx)(m,{to:`/`,"aria-label":`EU Bubble Jobs home`,className:`inline-flex`,children:(0,L.jsx)(`img`,{src:`/logo.svg`,alt:`EU Bubble Jobs`,className:`h-[24px]`})}),e[3]=a):a=e[3];let o;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,L.jsxs)(`p`,{className:`mt-4 max-w-[300px] text-foreground`,children:[`All EU affairs jobs in one place. Made in Brussels `,(0,L.jsx)(`span`,{"aria-hidden":!0,children:`ðªðº`})]}),e[4]=o):o=e[4];let s;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,L.jsxs)(`div`,{className:`relative mr-auto sm:-mt-[10px] xl:col-span-3`,children:[a,o,(0,L.jsxs)(`p`,{className:`mt-4 max-w-[300px] text-sm text-foreground/50`,children:[`Copyright © `,n,` EU Bubble Jobs. All rights reserved. Logos via`,` `,(0,L.jsx)(`a`,{href:`https://logo.dev`,target:`_blank`,rel:`noopener noreferrer`,className:`font-medium transition-colors hover:text-foreground`,children:`Logo.dev`})]})]}),e[5]=s):s=e[5];let c;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,L.jsx)(K,{title:`About`,className:`xl:col-span-2 xl:col-start-5`,children:Re.map(He)}),e[6]=c):c=e[6];let l;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,L.jsxs)(`footer`,{className:`mt-16 border-t bg-background`,children:[r,i,(0,L.jsx)(`div`,{className:`wrapper-md py-14 lg:py-20`,children:(0,L.jsxs)(`div`,{className:`grid gap-12 sm:grid-cols-2 sm:gap-10 md:gap-16 xl:grid-cols-8`,children:[s,c,(0,L.jsx)(K,{title:`Jobs`,className:`hidden xl:col-span-2 xl:block`,children:ze.map(Ve)})]})}),(0,L.jsx)(pe,{direction:`down`,color:`#132EAC`,className:`h-20`})]}),e[7]=l):l=e[7],l}function Ve(e){return(0,L.jsx)(G,{link:e},e.to??e.href??e.categorySlug)}function He(e){return(0,L.jsx)(G,{link:e},e.to??e.href??e.categorySlug)}function G(e){let t=(0,z.c)(11),{link:n}=e;if(n.categorySlug){let e;t[0]===n.categorySlug?e=t[1]:(e={categorySlug:n.categorySlug},t[0]=n.categorySlug,t[1]=e);let r;return t[2]!==n.label||t[3]!==e?(r=(0,L.jsx)(`li`,{children:(0,L.jsx)(m,{to:`/$categorySlug`,params:e,className:W,children:n.label})}),t[2]=n.label,t[3]=e,t[4]=r):r=t[4],r}if(n.to){let e;return t[5]!==n.label||t[6]!==n.to?(e=(0,L.jsx)(`li`,{children:(0,L.jsx)(m,{to:n.to,className:W,children:n.label})}),t[5]=n.label,t[6]=n.to,t[7]=e):e=t[7],e}let r;return t[8]!==n.href||t[9]!==n.label?(r=(0,L.jsx)(`li`,{children:(0,L.jsx)(`a`,{href:n.href,className:W,children:n.label})}),t[8]=n.href,t[9]=n.label,t[10]=r):r=t[10],r}function K(e){let t=(0,z.c)(8),{title:n,children:r,className:i}=e,a;t[0]===n?a=t[1]:(a=(0,L.jsx)(`h3`,{className:`mb-4 font-display text-sm font-semibold tracking-wider`,children:n}),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=(0,L.jsx)(`ul`,{className:`space-y-1.5`,children:r}),t[2]=r,t[3]=o);let s;return t[4]!==i||t[5]!==a||t[6]!==o?(s=(0,L.jsxs)(`section`,{className:i,children:[a,o]}),t[4]=i,t[5]=a,t[6]=o,t[7]=s):s=t[7],s}var Ue={about:`About`,organisations:`Organisations`,privacy:`Privacy`,terms:`Terms`,post:`Post a job`,login:`Sign in`,signup:`Sign up`};function We(){let e=(0,z.c)(14),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:Ge},e[0]=t):t=e[0];let n=le(t),r=Ae();if(n===`/`)return null;let i,a;if(e[1]!==r||e[2]!==n){a=Symbol.for(`react.early_return_sentinel`);
1bb0:{let t=n.split(`/`).filter(Boolean);if(t.length===0){a=null;break bb0}let o=r[r.length-1]?.loaderData;if(t[0]===`job`&&t[1]){let n;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(n={label:`Jobs`,to:`/`},e[5]=n):n=e[5];let r=o?.job?.title??decodeURIComponent(t[1]),i;e[6]===r?i=e[7]:(i=[n,{label:r}],e[6]=r,e[7]=i),a=i;break bb0}if(t[0]===`organisation`&&t[1]){let n;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(n={label:`Organisations`,to:`/organisations`},e[8]=n):n=e[8];let r=o?.organisation?.name??decodeURIComponent(t[1]),i;e[9]===r?i=e[10]:(i=[n,{label:r}],e[9]=r,e[10]=i),a=i;break bb0}if(o?.category&&t.length===1){let n;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(n={label:`Jobs`,to:`/`},e[11]=n):n=e[11];let r=o.category.name??decodeURIComponent(t[0]),i;e[12]===r?i=e[13]:(i=[n,{label:r}],e[12]=r,e[13]=i),a=i;break bb0}i=t.map((e,n)=>{let r=n===t.length-1;return{label:Ue[e]??decodeURIComponent(e),to:r?void 0:`/${t.slice(0,n+1).join(`/`)}`}})}e[1]=r,e[2]=n,e[3]=i,e[4]=a}else i=e[3],a=e[4];return a===Symbol.for(`react.early_return_sentinel`)?i:a}function Ge(e){return e.location.pathname}function Ke(){let e=(0,z.c)(5),t=We();if(!t)return null;let n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,L.jsx)(H,{children:(0,L.jsx)(U,{render:(0,L.jsx)(m,{to:`/`}),children:`Home`})}),e[0]=n):n=e[0];let r;e[1]===t?r=e[2]:(r=t.map(qe),e[1]=t,e[2]=r);let i;return e[3]===r?i=e[4]:(i=(0,L.jsx)(`div`,{className:`border-b`,children:(0,L.jsx)(`div`,{className:`wrapper-md py-4`,children:(0,L.jsx)(Pe,{children:(0,L.jsxs)(Fe,{children:[n,r]})})})}),e[3]=r,e[4]=i),i}function qe(e,t){return(0,L.jsxs)(I.Fragment,{children:[(0,L.jsx)(Le,{}),(0,L.jsx)(H,{children:e.to?(0,L.jsx)(U,{render:(0,L.jsx)(m,{to:e.to}),children:e.label}):(0,L.jsx)(Ie,{children:e.label})})]},`${e.to??`leaf`}-${t}`)}function q(){let e=(0,z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,L.jsx)(`div`,{className:`site-bg-pattern`}),e[0]=t):t=e[0],t}var Je=`flex items-center rounded-md px-2 py-2 text-base font-medium hover:bg-accent hover:text-accent-foreground`,J={label:`Browse jobs`,items:[{label:`All open roles`,href:`/`,routerLink:!0},{label:`Policy & advocacy`,href:`/policy-advocacy`,categorySlug:`policy-advocacy`,ariaLabel:`Policy and advocacy jobs`},{label:`Communications`,href:`/communication-marketing`,categorySlug:`communication-marketing`,ariaLabel:`Communications jobs`},{label:`Research`,href:`/research`,categorySlug:`research`,ariaLabel:`Research jobs`},{label:`Remote & hybrid`,href:`/?remote=true`,ariaLabel:`Remote and hybrid jobs`}]},Y={label:`Organisations`,href:`/organisations`,ariaLabel:`Organisations`},X={label:`Blog`,href:`/blog`,ariaLabel:`Blog`,routerLink:!0},Z={label:`Post a Job`,href:`/post-job`,ariaLabel:`Post a job`,routerLink:!0};function Ye(){let e=(0,z.c)(12),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,L.jsx)(q,{}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,L.jsxs)(m,{to:`/`,className:`flex shrink-0 items-center gap-2`,children:[(0,L.jsx)(`img`,{src:`/logo.svg`,alt:`EU Bubble Jobs`,className:`h-6`}),(0,L.jsx)(`span`,{className:`sr-only text-base font-semibold tracking-tight`,children:`EU Bubble Jobs`})]}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,L.jsx)(Xe,{menu:J}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,L.jsx)(y,{variant:`ghost`,size:`lg`,render:(0,L.jsx)(`a`,{href:Y.href,"aria-label":Y.ariaLabel}),className:`font-semibold`,children:Y.label}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,L.jsx)(y,{variant:`ghost`,size:`lg`,render:(0,L.jsx)(m,{to:X.href,"aria-label":X.ariaLabel}),className:`font-semibold`,children:X.label}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,L.jsxs)(`nav`,{className:`hidden items-center gap-1 sm:gap-2 md:flex`,children:[r,i,a,(0,L.jsx)(y,{size:`lg`,render:(0,L.jsx)(m,{to:Z.href,"aria-label":Z.ariaLabel}),children:Z.label})]}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,L.jsxs)(te,{render:(0,L.jsx)(y,{variant:`ghost`,size:`icon`,className:`md:hidden`}),children:[(0,L.jsx)(je,{className:`size-5`}),(0,L.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,L.jsx)(se,{className:`sr-only`,children:`Menu`}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,L.jsx)($,{title:J.label,items:J.items}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,L.jsx)($,{title:Y.label,items:[{...Y,label:`Browse organisations`}]}),e[9]=u):u=e[9];let d;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,L.jsxs)(`nav`,{className:`flex flex-1 flex-col gap-6 overflow-y-auto px-4 pb-4`,children:[l,u,(0,L.jsx)($,{title:X.label,items:[X]})]}),e[10]=d):d=e[10];let f;return e[11]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,L.jsxs)(L.Fragment,{children:[t,(0,L.jsx)(`header`,{"data-slot":`site-header`,className:`z-40 w-full border-b bg-background/60 md:border-0`,children:(0,L.jsxs)(`div`,{className:`wrapper flex h-16 w-full items-center justify-between gap-4`,children:[n,o,(0,L.jsxs)(ce,{children:[s,(0,L.jsxs)(oe,{side:`right`,className:`flex flex-col`,children:[c,d,(0,L.jsx)(ee,{children:(0,L.jsx)(v,{render:(0,L.jsx)(y,{size:`lg`,render:(0,L.jsx)(m,{to:Z.href,"aria-label":Z.ariaLabel}),children:Z.label})})})]})]})]})})]}),e[11]=f):f=e[11],f}function Xe(e){let t=(0,z.c)(11),{menu:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,L.jsx)(y,{variant:`ghost`,size:`lg`,className:`font-semibold`}),t[0]=r):r=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,L.jsx)(S,{className:`size-4 opacity-70`}),t[1]=i):i=t[1];let a;t[2]===n.label?a=t[3]:(a=(0,L.jsxs)(re,{render:r,children:[n.label,i]}),t[2]=n.label,t[3]=a);let o;t[4]===n.items?o=t[5]:(o=n.items.map(Ze),t[4]=n.items,t[5]=o);let s;t[6]===o?s=t[7]:(s=(0,L.jsx)(ne,{align:`end`,children:o}),t[6]=o,t[7]=s);let c;return t[8]!==a||t[9]!==s?(c=(0,L.jsxs)(ie,{children:[a,s]}
1),t[8]=a,t[9]=s,t[10]=c):c=t[10],c}function Ze(e){return(0,L.jsx)(ae,{render:(0,L.jsx)(Q,{item:e}),children:e.label},e.href)}function Q(e){let t=(0,z.c)(21),n,r,i;if(t[0]===e?(n=t[1],r=t[2],i=t[3]):({item:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i),r.categorySlug){let e;t[4]===r.categorySlug?e=t[5]:(e={categorySlug:r.categorySlug},t[4]=r.categorySlug,t[5]=e);let a;return t[6]!==n||t[7]!==r.ariaLabel||t[8]!==i||t[9]!==e?(a=(0,L.jsx)(m,{to:`/$categorySlug`,params:e,"aria-label":r.ariaLabel,...i,children:n}),t[6]=n,t[7]=r.ariaLabel,t[8]=i,t[9]=e,t[10]=a):a=t[10],a}if(r.routerLink){let e;return t[11]!==n||t[12]!==r.ariaLabel||t[13]!==r.href||t[14]!==i?(e=(0,L.jsx)(m,{to:r.href,"aria-label":r.ariaLabel,...i,children:n}),t[11]=n,t[12]=r.ariaLabel,t[13]=r.href,t[14]=i,t[15]=e):e=t[15],e}let a;return t[16]!==n||t[17]!==r.ariaLabel||t[18]!==r.href||t[19]!==i?(a=(0,L.jsx)(`a`,{href:r.href,"aria-label":r.ariaLabel,...i,children:n}),t[16]=n,t[17]=r.ariaLabel,t[18]=r.href,t[19]=i,t[20]=a):a=t[20],a}function $(e){let t=(0,z.c)(7),{title:n,items:r}=e,i;t[0]===n?i=t[1]:(i=(0,L.jsx)(`h3`,{className:`px-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`,children:n}),t[0]=n,t[1]=i);let a;t[2]===r?a=t[3]:(a=r.map(Qe),t[2]=r,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,L.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function Qe(e){return(0,L.jsx)(v,{render:(0,L.jsx)(Q,{item:e,className:Je}),children:e.label},e.href)}export{R as a,Te as c,B as i,q as n,Oe as o,Be as r,N as s,Ye as t};
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.