PageSourceSearch

https://pedroneves.info/assets/_frontend-B_J9IQCk.js

js pedroneves.info collected 2026-10-05 07:10:17 UTC 13,024 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/renderVisualEditing-XE9HR34C-TuuNr2az.js","assets/jsx-runtime-61oo8qHm.js","assets/dist-SSuaD3ek.js","assets/index-BevVM60l.js","assets/sanity-awaCFjpo.js","assets/lazyRouteComponent-DZP7Ga-F.js","assets/link-BGHVHzFt.js","assets/public-routes-DL9MFELF.js","assets/renderVisualEditing-XE9HR34C-DbvanQCQ.css"])))=>i.map(i=>d[i]);
2import{c as e,n as t,r as n,t as r}from"./jsx-runtime-61oo8qHm.js";import{a as i,i as a}from"./lazyRouteComponent-DZP7Ga-F.js";import{n as o,r as s,t as c}from"./link-BGHVHzFt.js";import{a as l,n as u}from"./public-routes-DL9MFELF.js";import{c as d,d as f,f as p,h as m,p as h}from"./index-BevVM60l.js";function g(e){let t=s({warn:e?.router===void 0}),n=e?.router||t;return o(n.stores.__store,i(e,n))}function _(e){let t=s();return o(t.stores.location,i(e,t))}var v=t(),y=r();function b(e){let t=(0,v.c)(11),{email:n}=e,r,i,a;if(t[0]!==n){a=Symbol.for(`react.early_return_sentinel`);bb0:{if(r=n.indexOf(`@`),r<1||r===n.length-1){a=null;break bb0}i=n.slice(0,r)}t[0]=n,t[1]=r,t[2]=i,t[3]=a}else r=t[1],i=t[2],a=t[3];if(a!==Symbol.for(`react.early_return_sentinel`))return a;let o=i,s;t[4]!==r||t[5]!==n?(s=n.slice(r+1),t[4]=r,t[5]=n,t[6]=s):s=t[6];let c=s,l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=function(e){e.preventDefault();let t=e.currentTarget;window.location.href=`mailto:${t.dataset.user}@${t.dataset.domain}`},t[7]=l):l=t[7];let u=l,d;return t[8]!==c||t[9]!==o?(d=(0,y.jsx)(`a`,{className:`transition-colors hover:text-foreground`,"data-domain":c,"data-user":o,href:`#contact`,onClick:u,rel:`noopener noreferrer`,children:`Email`}),t[8]=c,t[9]=o,t[10]=d):d=t[10],d}function x(e){let t=(0,v.c)(24),{className:n,siteSettings:r,noBorder:i}=e,a=r?.instagramUrl,o;t[0]===a?o=t[1]:(o=l(a),t[0]=a,t[1]=o);let s=o,c=r?.linkedinUrl,u;t[2]===c?u=t[3]:(u=l(c),t[2]=c,t[3]=u);let d=u,f=r?.githubUrl,p;t[4]===f?p=t[5]:(p=l(f),t[4]=f,t[5]=p);let m=p,h=r?.email,g;t[6]===h?g=t[7]:(g=l(h),t[6]=h,t[7]=g);let _=g,x=!!(s||d||m||_),S=n?`text-xs ${n}`:`text-xs`,C=`flex flex-col justify-between gap-1.5 md:flex-row md:gap-6 md:items-center${i?``:`border-copper border-t pt-3`}`,w;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,y.jsxs)(`p`,{children:[`© `,new Date().getFullYear(),` PEDRO NEVES`]}),t[8]=w):w=t[8];let T;t[9]!==_||t[10]!==m||t[11]!==x||t[12]!==s||t[13]!==d?(T=x&&(0,y.jsxs)(`ul`,{className:`flex items-center gap-3`,children:[s&&(0,y.jsx)(`li`,{children:(0,y.jsx)(`a`,{className:`transition-colors hover:text-muted-foreground`,href:s,rel:`noopener noreferrer`,target:`_blank`,children:`Instagram`})}),d&&(0,y.jsx)(`li`,{children:(0,y.jsx)(`a`,{className:`transition-colors hover:text-muted-foreground`,href:d,rel:`noopener noreferrer`,target:`_blank`,children:`LinkedIn`})}),m&&(0,y.jsx)(`li`,{children:(0,y.jsx)(`a`,{className:`transition-colors hover:text-muted-foreground`,href:m,rel:`noopener noreferrer`,target:`_blank`,children:`GitHub`})}),_&&(0,y.jsx)(`li`,{children:(0,y.jsx)(b,{email:_})})]}),t[9]=_,t[10]=m,t[11]=x,t[12]=s,t[13]=d,t[14]=T):T=t[14];let E;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,y.jsx)(`p`,{children:(0,y.jsx)(`a`,{className:`transition-colors hover:text-muted-foreground`,href:`https://andreazaccuri.com/`,rel:`noopener noreferrer`,target:`_blank`,children:`Website by AZ`})}),t[15]=E):E=t[15];let D;t[16]===T?D=t[17]:(D=(0,y.jsxs)(`div`,{className:`flex flex-col gap-6 md:flex-row md:gap-12`,children:[T,E]}),t[16]=T,t[17]=D);let O;t[18]!==C||t[19]!==D?(O=(0,y.jsx)(`div`,{className:`flex w-full flex-col gap-8 p-3`,children:(0,y.jsxs)(`div`,{className:C,children:[w,D]})}),t[18]=C,t[19]=D,t[20]=O):O=t[20];let k;return t[21]!==O||t[22]!==S?(k=(0,y.jsx)(`footer`,{className:S,children:O}),t[21]=O,t[22]=S,t[23]=k):k=t[23],k}function S(e){let t=(0,v.c)(7),n,r,i,a,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,y.jsx)(`circle`,{cx:`12`,cy:`12`,fill:`none`,r:`10.8`,stroke:`currentColor`,strokeDasharray:`9.048 7.9166`,strokeLinecap:`round`,strokeWidth:`1.5`,transform:`rotate(30 12 12)`}),r=(0,y.jsx)(`circle`,{cx:`12`,cy:`1.2`,r:`0.75`}),i=(0,y.jsx)(`circle`,{cx:`22.8`,cy:`12`,r:`0.75`}),a=(0,y.jsx)(`circle`,{cx:`12`,cy:`22.8`,r:`0.75`}),o=(0,y.jsx)(`circle`,{cx:`1.2`,cy:`12`,r:`0.75`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o):(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4]);let s;return t[5]===e?s=t[6]:(s=(0,y.jsxs)(`svg`,{fill:`currentColor`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,"aria-label":`About Icon`,children:[n,r,i,a,o]}),t[5]=e,t[6]=s),s}function C(e){let t=(0,v.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,y.jsx)(`path`,{d:`M12 1.2v21.6M1.2 12h21.6M4.363 4.363l15.274 15.274M4.363 19.637 19.637 4.363`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,y.jsx)(`svg`,{fill:`currentColor`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,"aria-label":`Projects Icon`,children:n}),t[1]=e,t[2]=r),r}function w(e){let t=(0,v.c)(4),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,y.jsx)(`path`,{d:`M16.564 2.212a10.8 10.8 0 0 0-14.352 14.352M7.436 21.788A10.8 10.8 0 0 0 21.788 7.436`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`}),r=(0,y.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3.6`}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===e?i=t[3]:(i=(0,y.jsxs)(`svg`,{fill:`currentColor`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,"aria-label":`Research Icon`,children:[n,r]}),t[2]=e,t[3]=i),i}var T={projects:u.projectsPage,research:u.researchPage,about:u.about},E={projects:e=>e.project?.name??void 0,research:e=>e.cls?.name??void 0};function D(){let e=(0,v.c)(17),{pathname:t}=_(),n=p(),r;
2e[0]===t?r=e[1]:(r=t.split(`/`).filter(Boolean),e[0]=t,e[1]=r);let i=r,a=i[0],o=a?T[a]:void 0,s=o?.title,l;if(a&&i.length>1&&E[a]){if(e[2]!==n||e[3]!==a){let t=n.at(-1)?.loaderData;t&&(l=E[a](t)),e[2]=n,e[3]=a,e[4]=l}else l=e[4]}let d;e[5]===l?d=e[6]:(d=l&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`li`,{"aria-current":`page`,className:`font-bold`,children:l}),(0,y.jsx)(`li`,{"aria-hidden":`true`,children:`←`})]}),e[5]=l,e[6]=d);let f;e[7]!==l||e[8]!==a||e[9]!==o?(f=a&&o&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`li`,{children:l?(0,y.jsx)(c,{activeProps:{},to:o.href,children:o.title}):(0,y.jsx)(`span`,{"aria-current":`page`,children:o.title})}),(0,y.jsx)(`li`,{"aria-hidden":`true`,children:`←`})]}),e[7]=l,e[8]=a,e[9]=o,e[10]=f):f=e[10];let m;e[11]===s?m=e[12]:(m=(0,y.jsx)(`li`,{children:s?(0,y.jsx)(c,{to:u.home.href,children:`PMN`}):(0,y.jsx)(`span`,{children:`PMN`})}),e[11]=s,e[12]=m);let h;return e[13]!==d||e[14]!==f||e[15]!==m?(h=(0,y.jsx)(`nav`,{"aria-label":`Breadcrumb`,className:`pt-0.5`,children:(0,y.jsxs)(`ol`,{className:`flex items-center gap-3`,children:[d,f,m]})}),e[13]=d,e[14]=f,e[15]=m,e[16]=h):h=e[16],h}function O(e){let t=(0,v.c)(17),{isHome:n}=e,r=n!==void 0&&n,i=r?`text-black`:`text-federal-blue`,a=r&&`pointer-events-none`,o;t[0]===a?o=t[1]:(o=m(`sticky top-0 z-50 flex h-14 w-full items-center px-3 py-3 font-mono text-base [view-transition-name:site-header]`,a),t[0]=a,t[1]=o);let s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,y.jsx)(c,{className:`pointer-events-auto md:hidden`,to:u.home.href,children:`PMN`}),t[2]=s):s=t[2];let l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,y.jsx)(`div`,{className:`pointer-events-auto hidden md:contents`,children:(0,y.jsx)(D,{})}),t[3]=l):l=t[3];let d=`${i} size-full transition-colors duration-100 ease-out group-hover:text-copper group-data-[status=active]:text-copper`,f;t[4]===d?f=t[5]:(f=(0,y.jsx)(c,{"aria-label":u.projectsPage.title,className:`group size-8`,to:u.projectsPage.href,children:(0,y.jsx)(`span`,{className:`block size-full origin-center animate-[spin_1.5s_linear_infinite] [animation-play-state:paused] motion-reduce:animate-none group-hover:[animation-play-state:running]`,children:(0,y.jsx)(C,{className:d})})}),t[4]=d,t[5]=f);let p=`${i} size-full group-hover:text-copper group-data-[status=active]:text-copper`,h;t[6]===p?h=t[7]:(h=(0,y.jsx)(c,{"aria-label":u.researchPage.title,className:`group size-8`,to:u.researchPage.href,children:(0,y.jsx)(`span`,{className:`block size-full origin-center animate-[spin_2s_linear_infinite] [animation-play-state:paused] motion-reduce:animate-none group-hover:[animation-play-state:running]`,children:(0,y.jsx)(w,{className:p})})}),t[6]=p,t[7]=h);let g=`${i} size-full group-hover:text-copper group-data-[status=active]:text-copper`,_;t[8]===g?_=t[9]:(_=(0,y.jsx)(c,{"aria-label":u.about.title,className:`group size-8`,to:u.about.href,children:(0,y.jsx)(`span`,{className:`block size-full origin-center animate-[spin_2s_linear_infinite] [animation-play-state:paused] motion-reduce:animate-none group-hover:[animation-play-state:running]`,children:(0,y.jsx)(S,{className:g})})}),t[8]=g,t[9]=_);let b;t[10]!==_||t[11]!==f||t[12]!==h?(b=(0,y.jsxs)(`div`,{className:`flex w-full items-center justify-between gap-3 md:justify-end`,children:[s,l,(0,y.jsxs)(`nav`,{className:`pointer-events-auto flex items-center gap-3`,children:[f,h,_]})]}),t[10]=_,t[11]=f,t[12]=h,t[13]=b):b=t[13];let x;return t[14]!==b||t[15]!==o?(x=(0,y.jsx)(`header`,{className:o,children:b}),t[14]=b,t[15]=o,t[16]=x):x=t[16],x}var k={fixed:`h-dvh overflow-hidden`,normal:`min-h-screen`,"responsive-fixed":`min-h-screen md:h-screen md:overflow-hidden`};function A(e){let t=(0,v.c)(14),{children:n,siteSettings:r,hideFooter:i,isHome:a,hideFooterDesktop:o,noFooterBorder:s,viewportMode:c}=e,l=a!==void 0&&a,u=c===void 0?`normal`:c,d=!i||o,f=`flex flex-col font-sans text-base md:text-lg ${k[u]} ${l?`fixed inset-0`:``}`,p=l?``:void 0,m;t[0]===l?m=t[1]:(m=(0,y.jsx)(O,{isHome:l}),t[0]=l,t[1]=m);let h;t[2]!==i||t[3]!==o||t[4]!==s||t[5]!==d||t[6]!==r?(h=d&&(0,y.jsx)(x,{className:o&&!i?`md:hidden`:void 0,noB
2order:s,siteSettings:r}),t[2]=i,t[3]=o,t[4]=s,t[5]=d,t[6]=r,t[7]=h):h=t[7];let g;return t[8]!==n||t[9]!==f||t[10]!==p||t[11]!==m||t[12]!==h?(g=(0,y.jsxs)(`div`,{className:f,"data-home-viewport":p,children:[m,n,h]}),t[8]=n,t[9]=f,t[10]=p,t[11]=m,t[12]=h,t[13]=g):g=t[13],g}var j=e(n(),1);function M(e){let t=(0,v.c)(5),{message:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],t[0]=r):r=t[0],(0,j.useEffect)(N,r);let i,a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i={position:`fixed`,inset:0,zIndex:9999,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:`white`,padding:`2rem`},a={margin:0,fontSize:`1.5rem`,textAlign:`center`},t[1]=i,t[2]=a):(i=t[1],a=t[2]);let o=n||`PMN`,s;return t[3]===o?s=t[4]:(s=(0,y.jsx)(`div`,{role:`status`,style:i,children:(0,y.jsx)(`h1`,{style:a,children:o})}),t[3]=o,t[4]=s),s}function N(){let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}}function P(e={}){let t=new AbortController;return f(async()=>{let{renderVisualEditing:e}=await import(`./renderVisualEditing-XE9HR34C-TuuNr2az.js`);return{renderVisualEditing:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(({renderVisualEditing:n})=>{let{signal:r}=t;r.aborted||n(r,e)}),()=>{t.abort()}}function F(){let e=s(),t=g({select:e=>e.location}),[n,r]=(0,j.useState)();return(0,j.useEffect)(()=>{let t=P({history:{subscribe(e){return r(()=>e),()=>r(void 0)},update(t){try{t.type===`push`||t.type===`replace`?e.navigate({to:t.url,replace:t.type===`replace`}):t.type===`pop`&&e.history.back()}catch(e){console.error(`[visual-editing] Navigation failed:`,e)}}},async refresh(t){try{(t.source===`mutation`||t.source===`manual`)&&await e.invalidate()}catch(e){console.error(`[visual-editing] Refresh failed:`,e)}}});return()=>t()},[e]),(0,j.useEffect)(()=>{n?.({type:`push`,url:t.href})},[t.href,n]),null}function I({isHome:e,isResearch:t}){return t?`responsive-fixed`:e?`fixed`:`normal`}function L(){let e=(0,v.c)(20),{sanityRuntime:t,siteSettings:n}=d.useLoaderData(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={from:`/_frontend/`,shouldThrow:!1},e[0]=r):r=e[0];let i=!!a(r),o;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(o={from:`/_frontend/research/`,shouldThrow:!1},e[1]=o):o=e[1];let s=!!a(o),c;e[2]!==i||e[3]!==s?(c=I({isHome:i,isResearch:s}
2),e[2]=i,e[3]=s,e[4]=c):c=e[4];let l=c,u=t?.mode===`preview`;if(n?.isMaintenanceEnabled&&!u){let t;e[5]===n.maintenanceMessage?t=e[6]:(t=n.maintenanceMessage?.trim()||`PMN`,e[5]=n.maintenanceMessage,e[6]=t);let r;return e[7]===t?r=e[8]:(r=(0,y.jsx)(M,{message:t}),e[7]=t,e[8]=r),r}let f;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,y.jsx)(h,{}),e[9]=f):f=e[9];let p;e[10]!==i||e[11]!==s||e[12]!==n||e[13]!==l?(p=(0,y.jsx)(A,{hideFooter:i,hideFooterDesktop:s,isHome:i,siteSettings:n,viewportMode:l,children:f}),e[10]=i,e[11]=s,e[12]=n,e[13]=l,e[14]=p):p=e[14];let m;e[15]===t?.visualEditingEnabled?m=e[16]:(m=t?.visualEditingEnabled&&(0,y.jsx)(F,{}),e[15]=t?.visualEditingEnabled,e[16]=m);let g;return e[17]!==p||e[18]!==m?(g=(0,y.jsxs)(y.Fragment,{children:[p,m]}),e[17]=p,e[18]=m,e[19]=g):g=e[19],g}export{L 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.