PageSourceSearch

https://rwajobs.org/assets/jobs._slug-CL13Nt1w.js

js rwajobs.org collected 2026-10-07 17:42:01 UTC 10,898 bytes, 1 lines download raw bytes

1import{t as e}from"./jsx-runtime-BkSabwWG.js";import{i as t,o as n}from"./jobs.functions-CHQnj2Gp.js";import{t as r}from"./link-CB_Enok8.js";import{t as i}from"./useQuery-BpnVV5ZH.js";import{t as a}from"./arrow-right-R7pHTT0o.js";import{t as o}from"./briefcase-DHdqT_uY.js";import{t as s}from"./map-pin-Cd_euOD1.js";import{a as c,h as l,l as u,m as d,s as f,t as p}from"./index-DRtRZ9dC.js";import{t as m}from"./dist-C72ODsIx.js";import{t as h}from"./CompanyLogo-Dwe0tVHC.js";var g=l(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),_=l(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),v=l(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),y=l(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),b=e();function x(){let{slug:e}=p.useParams(),{data:l}=i({queryKey:[`jobDetail`,e],queryFn:()=>t({data:{slug:e}})}),{data:x}=i({queryKey:[`relatedJobs`,e],queryFn:()=>n({data:{slug:e,limit:4}})});if(!l)return(0,b.jsxs)(`div`,{className:`max-w-4xl mx-auto px-4 py-16 text-center space-y-4`,children:[(0,b.jsx)(`h1`,{className:`text-2xl font-bold`,children:`Job Not Found`}),(0,b.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:`This position may have expired, been filled, or been removed.`}),(0,b.jsx)(r,{to:`/jobs`,className:`inline-block px-4 py-2.5 bg-primary text-primary-foreground text-xs font-semibold rounded-md`,children:`Browse All Jobs`})]});let S=u(l),C=S?null:f(l),w=c([{name:`Home`,path:`/`},{name:`Jobs`,path:`/jobs`},{name:l.title,path:`/jobs/${l.slug}`}]),T=()=>{navigator.share?navigator.share({title:l.title,url:window.location.href}):(navigator.clipboard.writeText(window.location.href),m.success(`Link copied to clipboard!`))},E=null;try{if(l.applyUrl){let e=new URL(l.applyUrl);(e.protocol===`https:`||e.protocol===`http:`)&&(E=e.toString())}}catch{E=null}return S&&(E=null),(0,b.jsxs)(`div`,{className:`max-w-4xl mx-auto px-4 sm:px-6 py-6 sm:py-10 space-y-6 pb-28 sm:pb-10`,children:[C&&(0,b.jsx)(`script`,{type:`application/ld+json`,dangerouslySetInnerHTML:{__html:JSON.stringify(C)}}),(0,b.jsx)(`script`,{type:`application/ld+json`,dangerouslySetInnerHTML:{__html:JSON.stringify(w)}}),(0,b.jsxs)(`nav`,{className:`flex items-center gap-1.5 text-xs text-muted-foreground flex-wrap`,"aria-label":`Breadcrumb`,children:[(0,b.jsx)(r,{to:`/`,className:`hover:text-foreground`,children:`Home`}),(0,b.jsx)(`span`,{"aria-hidden":`true`,children:`/`}),(0,b.jsx)(r,{to:`/jobs`,className:`hover:text-foreground`,children:`Jobs`}),(0,b.jsx)(`span`,{"aria-hidden":`true`,children:`/`}),(0,b.jsx)(`span`,{className:`font-semibold text-foreground truncate max-w-[60vw]`,children:l.title})]}),(0,b.jsxs)(`div`,{className:`bg-card border rounded-2xl p-5 sm:p-8 shadow-sm space-y-5`,children:[(0,b.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,b.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,b.jsxs)(`div`,{className:`space-y-2 min-w-0 flex-1`,children:[(0,b.jsxs)(`div`,{className:`flex items-center gap-1.5 flex-wrap`,children:[(0,b.jsx)(`span`,{className:`text-[11px] font-bold px-2.5 py-0.5 rounded ${l.relevanceGroup===`direct_rwa`?`bg-primary text-primary-foreground`:`bg-secondary text-secondary-foreground`}`,children:l.relevanceGroup===`direct_rwa`?`Direct RWA Role`:`Supporting Ecosystem`}),(0,b.jsx)(`span`,{className:`text-xs font-semibold text-muted-foreground`,children:l.category}),l.isRemote&&(0,b.jsx)(`span`,{className:`text-[11px] font-semibold px-2 py-0.5 rounded border border-emerald-300 text-emerald-700 dark:text-emerald-300`,children:`Remote`})]}),(0,b.jsx)(`h1`,{className:`text-2xl sm:text-3xl font-extrabold text-foreground wrap-anywhere`,children:l.title})]}),(0,b.jsx)(`button`,{onClick:T,"aria-label":`Share this job`,className:`touch-target shrink-0 p-2.5 border rounded-lg hover:bg-accent text-muted-foreground hover:text-foreground`,children:(0,b.jsx)(y,{className:`h-4 w-4`})})]}),(0,b.jsxs)(`dl`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-3 text-sm`,children:[(0,b.jsxs)(`div`,{className:`flex items-center gap-2 text-muted-foreground min-w-0`,children:[(0,b.jsx)(h,{name:l.companyName,logoUrl:l.companyLogo,size:32,rounded:`rounded-md`,className:`border shrink-0`}),(0,b.jsxs)(r,{to:`/companies/$slug`,params:{slug:l.companyId},className:`font-bold text-foreground hover:underline wrap-anywhere min-w-0`,children:[(0,b.jsx)(d,{className:`h-4 w-4 inline text-primary mr-1`}),l.companyName]})]}),(0,b.jsxs)(`div`,{className:`flex items-center gap-2 text-muted-foreground min-w-0`,children:[(0,b.jsx)(s,{className:`h-4 w-4 shrink-0`}),(0,b.jsx)(`span`,{className:`wrap-anywhere`,children:l.location})]}),(0,b.jsxs)(`div`,{className:`flex items-center gap-2 text-muted-foreground`,children:[(0,b.jsx)(o,{className:`h-4 w-4 shrink-0`}),(0,b.jsx)(`span`,{children:l.employmentType||`Not specified`})]}),(0,b.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,b.jsx)(_,{className:`h-3.5 w-3.5 shrink-0`}),(0,b.jsxs)(`span`,{children:[`Posted `,new Date(l.publishedAt).toLocaleDateString()]})]})]})]}),l.salaryMin&&(0,b.jsxs)(`div`,{className:`p-4 rounded-xl bg-secondary/50 border border-secondary text-sm font-semibold text-foreground flex flex-col sm:flex-row items-start sm:items-center justify-between gap-2`,children:[(0,b.jsx)(`span`,{children:`Estimated Compensation:`}),(0,b.jsxs)(`span`,{className:`text-emerald-600 dark:text-emerald-400 font-bold text-base wrap-anywhere`,children:[`$`,l.salaryMin.toLocaleStr
1ing(),l.salaryMax?` – $${l.salaryMax.toLocaleString()}`:``,` `,l.salaryCurrency,` / year`]})]}),S?(0,b.jsxs)(`div`,{className:`bg-muted border border-border rounded-xl p-5 flex flex-col sm:flex-row items-center justify-between gap-4`,children:[(0,b.jsxs)(`div`,{className:`space-y-1 text-center sm:text-left`,children:[(0,b.jsx)(`div`,{className:`text-xs font-semibold text-foreground`,children:`This position is no longer accepting applications`}),(0,b.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`This listing has expired or been closed. Browse related active roles below.`})]}),(0,b.jsx)(r,{to:`/jobs`,className:`touch-target w-full sm:w-auto px-6 py-3 text-sm font-bold bg-secondary text-secondary-foreground rounded-xl flex items-center justify-center gap-2`,children:`Browse Active Jobs`})]}):E?(0,b.jsxs)(`div`,{className:`bg-primary/5 border border-primary/20 rounded-xl p-5 flex flex-col sm:flex-row items-center justify-between gap-4`,children:[(0,b.jsxs)(`div`,{className:`space-y-1 text-center sm:text-left`,children:[(0,b.jsx)(`div`,{className:`text-xs font-semibold text-foreground`,children:`Apply on Source Board`}),(0,b.jsxs)(`div`,{className:`text-xs text-muted-foreground`,children:[`Source: `,(0,b.jsx)(`strong`,{className:`text-foreground`,children:`Web3.career`}),` (unmodified apply URL)`]})]}),(0,b.jsxs)(`a`,{href:E,target:`_blank`,rel:`noopener noreferrer`,className:`touch-target w-full sm:w-auto px-8 py-3 text-sm font-bold bg-primary text-primary-foreground rounded-xl hover:bg-primary/90 transition-colors shadow-md flex items-center justify-center gap-2`,children:[`Apply on Web3.career `,(0,b.jsx)(v,{className:`h-4 w-4`})]})]}):(0,b.jsxs)(`div`,{className:`bg-muted border rounded-xl p-5 flex flex-col sm:flex-row items-center justify-between gap-4`,children:[(0,b.jsxs)(`div`,{className:`space-y-1 text-center sm:text-left`,children:[(0,b.jsx)(`div`,{className:`text-xs font-semibold text-foreground`,children:`Application link unavailable`}),(0,b.jsxs)(`div`,{className:`text-xs text-muted-foreground`,children:[`Source: `,(0,b.jsx)(`strong`,{className:`text-foreground`,children:`Web3.career`}),` — the original apply URL is missing or invalid.`]})]}),(0,b.jsxs)(`a`,{href:`https://web3.career`,target:`_blank`,rel:`noopener noreferrer`,className:`touch-target w-full sm:w-auto px-8 py-3 text-sm font-bold bg-muted text-muted-foreground rounded-xl border flex items-center justify-center gap-2`,children:[`Visit Web3.career `,(0,b.jsx)(v,{className:`h-4 w-4`})]})]})]}),(0,b.jsxs)(`div`,{className:`bg-card border rounded-2xl p-5 sm:p-8 shadow-sm space-y-6`,children:[(0,b.jsx)(`h2`,{className:`text-xl font-bold text-foreground border-b pb-3`,children:`Role Overview & Requirements`}),(0,b.jsx)(`div`,{className:`prose dark:prose-invert max-w-none text-sm text-foreground/90 leading-relaxed [&_a]:break-all [&_a]:overflow-wrap-anywhere`,dangerouslySetInnerHTML:{__html:l.description}}),l.tags.length>0&&(0,b.jsxs)(`div`,{className:`pt-6 border-t space-y-2`,children:[(0,b.jsx)(`div`,{className:`text-xs font-semibold text-muted-foreground uppercase tracking-wider`,children:`Relevant Tags`}),(0,b.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:l.tags.map(e=>(0,b.jsxs)(`span`,{className:`px-2.5 py-1 bg-muted text-muted-foreground text-xs font-medium rounded-md wrap-anywhere`,children:[`#`,e]},e))})]})]}),x&&x.length>0&&(0,b.jsxs)(`div`,{className:`space-y-4`,children:[(0,b.jsx)(`h2`,{className:`text-xl font-bold text-foreground`,children:`Related Jobs`}),(0,b.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4`,children:x.map(e=>(0,b.jsxs)(r,{to:`/jobs/$slug`,params:{slug:e.slug},className:`bg-card border rounded-xl p-4 hover:border-primary/50 transition-colors flex items-center gap-3 min-w-0`,children:[(0,b.jsx)(h,{name:e.companyName,logoUrl:e.companyLogo,size:32,className:`border shrink-0`}),(0,b.jsxs)(`div`,{className:`min-w-0`,children:[(0,b.jsx)(`div`,{className:`text-sm font-bold text-foreground truncate wrap-anywhere`,children:e.title}),(0,b.jsxs)(`div`,{className:`text-xs text-muted-foreground truncate wrap-anywhere`,children:[e.companyName,` · `,e.location]})]}),(0,b.jsx)(a,{className:`h-4 w-4 text-muted-foreground ml-auto shrink-0`})]},e.id))})]}),(0,b.jsxs)(r,{to:`/jobs`,className:`inline-flex items-center gap-1.5 text-xs font-semibold text-muted-foreground hover:text-foreground`,children:[(0,b.jsx)(g,{className:`h-3.5 w-3.5`}),` Back to all jobs`]}),E&&(0,b.jsx)(`div`,{className:`sm:hidden fixed bottom-0 left-0 right-0 z-30 bg-card border-t shadow-2xl safe-pb`,children:(0,b.jsxs)(`a`,{href:E,target:`_blank`,rel:`noopener noreferrer`,className:`touch-target flex items-center justify-center gap-2 m-3 px-4 py-3 text-sm font-bold bg-primary text-primary-foreground rounded-xl`,children:[`Apply on Web3.career `,(0,b.jsx)(v,{className:`h-4 w-4`})]})})]})}export{x as component};

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.