PageSourceSearch

https://meetborderless.com/build/assets/site-announcement-fVSM8f3a.js

js meetborderless.com collected 2026-10-09 22:41:14 UTC 2,608 bytes, 1 lines download raw bytes

1import{j as a}from"./app-C1iegf7Q.js";import{h as g,b as h,L as y}from"./inertia-BpyZy4w-.js";import{t as p}from"./use-funnel-tracking-DZvQDmiU.js";import{X as b}from"./x-DQSeRCcH.js";const c=10,v=20,m=[{id:"gtv_accel_v1",days:10},{id:"ifv_accel_v1",days:10}],x=[{id:"gtv_accel_v1",chip:"NEW",text:"The Global Talent Acceleration Programme is now enrolling.",linkLabel:"See what's included",href:"/programmes/gtv-acceleration",priority:n=>n.pathway==="global_talent"||n.intent==="global_talent"?c+v:c},{id:"ifv_accel_v1",chip:"NEW",text:"The Innovator Founder Acceleration Programme is now enrolling.",linkLabel:"See what's included",href:"/programmes/innovator-founder-acceleration",priority:()=>c}];function S(n){const s=m.reduce((o,i)=>o+i.days,0);let t=Math.floor(n/864e5)%s;for(const o of m){if(t<o.days)return o.id;t-=o.days}return m[0].id}function f(n){return`promo_dismissed_${n}`}function k(n,s,t){const o=x.map(e=>({promo:e,priority:e.priority(n)})).filter(e=>e.priority!==null).filter(({promo:e})=>!s.has(e.id)).filter(({promo:e})=>!e.external&&!n.url.startsWith(e.href));if(o.length===0)return null;const i=Math.max(...o.map(e=>e.priority)),r=o.filter(e=>e.priority===i).map(e=>e.promo);return r.length===1?r[0]:r.find(e=>e.id===t)??r[0]}function j(){const{url:n,props:s}=g(),{auth:t,surface:o}=s,[i,r]=h.useState(null),e=n.split("?")[0].split("#")[0];return h.useEffect(()=>{const _={url:e,isAuthenticated:!!t?.user,hasMembershipAccess:!!t?.has_membership_access,intent:t?.user?.onboarding_intent??null,pathway:t?.user?.pathway??null,isSponsorshipJobsSurface:!!o?.is_sponsorship_jobs},u=new Set;for(const d of["membership_v1","gtv_accel_v1","sw_jobs_v1"])localStorage.getItem(f(d))==="1"&&u.add(d);const l=k(_,u,S(Date.now()));r(l),l&&p("promo_view",{promo_id:l.id,path:e})},[e]),{promo:i,dismiss:()=>{i&&(localStorage.setItem(f(i.id),"1"),p("promo_dismiss",{promo_id:i.id,path:e}),r(null))}}}function O(){const{promo:n,dismiss:s}=j();if(!n)return null;const t=n.external?{href:n.href,target:"_blank",rel:"noopener"}:{href:n.href};return a.jsxs("div",{className:"site-announce",role:"region","aria-label":"Announcement",children:[a.jsx("span",{className:"site-announce-chip",children:n.chip}),a.jsxs(y,{...t,className:"site-announce-body",onClick:()=>p("promo_click",{promo_id:n.id}),children:[a.jsx("span",{className:"site-announce-text",children:n.text}),a.jsxs("span",{className:"site-announce-link",children:[n.linkLabel," →"]})]}),a.jsx("button",{type:"button",className:"site-announce-close","aria-label":"Dismiss announcement",onClick:s,children:a.jsx(b,{size:16})})]})}export{O as S};

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.