(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8854],{5629:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/people/[slug]",function(){return n(53488)}])},26121:function(e,t,n){"use strict";var r=n(85893),a=n(41664),i=n.n(a);t.Z=e=>{let{href:t,tag:n,bgColor:a,txtColor:s}=e;return(0,r.jsx)(i(),{href:t,className:"flex text-xs gap-2 py-1 px-4 mb-2 rounded-xl cursor-pointer bg-secondary hover:shadow-lg",passHref:!0,children:(0,r.jsx)("div",{className:"bg-".concat(a," ")+"".concat(s," ")+"capitalize ",children:n})})}},15704:function(e,t,n){"use strict";var r=n(85893),a=n(37901),i=n(76749);n(67294),t.Z=e=>{let{fave:t,handleClickFave:n}=e;return(0,r.jsx)("div",{className:"ml-auto cursor-pointer",children:t?(0,r.jsx)(a.Z,{onClick:n,className:"block w-6 h-6 text-primary"}):(0,r.jsx)(i.Z,{onClick:n,className:"block w-6 h-6 text-primary hover:text-secondary"})})}},92211:function(e,t,n){"use strict";n.d(t,{t:function(){return g}});var r=n(85893),a=n(67294),i=n(41664),s=n.n(i),l=n(5152),c=n.n(l),o=n(60466),u=n(31071),d=n(11728),m=n(15704),x=n(30252),f=n(94722),p=n(81214);let h=c()(()=>Promise.resolve().then(n.bind(n,38769)),{loadableGenerated:{webpack:()=>[38769]},ssr:!1}),g=e=>{var t;let{project:n,className:i,animate:l,faveCallback:c}=e,[g,v]=(0,a.useState)(!1),{defiSafetyReports:j}=(0,o.b)(),b=(0,a.useRef)(null),[w,N]=(0,a.useState)(0),y=(0,a.useMemo)(()=>null==j?void 0:j.find(e=>e.defiSafetyId===n.attributes.defisafety_id),[j,n.attributes.defisafety_id]),_=()=>{var e;let{height:t}=null==b?void 0:null===(e=b.current)||void 0===e?void 0:e.getBoundingClientRect();N(t+12)};(0,a.useEffect)(()=>(window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)),[]),(0,a.useEffect)(()=>{var e;v("true"===(null===(e=globalThis)||void 0===e?void 0:e.localStorage).getItem("favorite-projects:".concat(n.attributes.slug,"|").concat(n.id)))},[n.id,n.attributes.slug]);let Z="string"==typeof n.attributes.description?n.attributes.description:"No description available";return(0,r.jsxs)("article",{className:"relative w-64 h-full flex flex-col rounded-2xl bg-white cursor-pointer shadow-lg text-sm\n    ".concat(l?"transition-transform transform scale:100 hover:scale-105":""," ").concat(i),children:[(0,r.jsx)(s(),{href:"/projects/".concat(n.attributes.slug),ref:b,children:(0,r.jsx)(h,{className:"w-full rounded-t-2xl min-h-[98px] max-h-[98px]",imgUrl:n.attributes.twitter_banner,fallback:(0,r.jsx)("img",{src:"/images/banner-fallback.png",alt:"Banner",onLoad:_,className:"w-full rounded-t-2xl min-h-[98px] max-h-[98px]"}),onLoad:_})}),(0,r.jsx)(s(),{href:"/projects/".concat(n.attributes.slug),className:"h-full",children:(0,r.jsxs)(d.aY,{className:"h-full",children:[(0,r.jsxs)(d.SK,{children:[(0,r.jsx)(d.Ub,{children:(0,r.jsx)(d.fN,{children:n.attributes.name})}),(0,r.jsx)(d.SZ,{children:(0,r.jsx)(p.h,{initialView:Z,children:(0,r.jsx)(f.Z,{children:Z})})})]}),y&&(0,r.jsxs)(d.RC,{children:[(0,r.jsxs)(d.$3,{children:[y.overallScore,"%"]}),(0,r.jsx)(d.jG,{children:"DeFiSafety"})]}),(0,r.jsx)("footer",{children:(0,r.jsxs)(d.bk,{children:[(0,r.jsx)(h,{imgUrl:n.attributes.twitter_img,className:"w-10 h-10 rounded-full",fallback:(0,r.jsx)(x.Z,{})}),(0,r.jsx)("div",{onClick:e=>{e.stopPropagation(),e.preventDefault(),window.open(n.attributes.website_url,"_blank")},className:"overflow-hidden text-center truncate cursor-pointer max-w-[180px] hover:underline",children:(0,u.Qj)(null===(t=n.attributes.website_url)||void 0===t?void 0:t.replace(/^https?:\/\//,""))})]})})]})}),(0,r.jsx)(d.To,{style:{top:w},children:(0,r.jsx)(m.Z,{fave:g,handleClickFave:e=>{var t;e.stopPropagation();let r=null===(t=globalThis)||void 0===t?void 0:t.localStorage,a=!g;v(a),a?r.setItem("favorite-projects:".concat(n.attributes.slug,"|").concat(n.id),"true"):r.removeItem("favorite-projects:".concat(n.attributes.slug,"|").concat(n.id)),c&&c({slug:n.attributes.slug,id:n.id})}})})]})}},96615:function(e,t,n){"use strict";var r=n(85893);t.Z=e=>{let{children:t}=e;return(0,r.jsx)("section",{className:"p-2 sm:p-4 mx-auto max-w-7xl",children:(0,r.jsx)("div",{className:"md:grid md:grid-cols-12 md:gap-x-4",children:t})})}},94722:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(85893),a=n(34585),i=n(91370);function s(e){let{children:t,className:n,...s}=e;return(0,r.jsx)(a.U,{remarkPlugins:[i.Z],...s,className:n,children:t})}},81214:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(67294);function a(e){let{children:t,initialView:n}=e,[a,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{i(!0)},[]),a?t:n}},93269:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(85893),a=n(31071),i=n(25675),s=n.n(i);function l(e){var t;return(0,r.jsx)("div",{className:"truncate max-w-[320px]",children:e.url&&(0,r.jsxs)("a",{href:"".concat(e.url),target:"_blank",rel:"noopener noreferrer","data-test":"styled-link",className:"flex items-center text-xs tracking-wide",children:[(0,r.jsx)("div",{className:"mr-2",children:e.icon&&(0,r.jsx)("div",{className:"w-4 h-4",children:(0,r.jsx)(s(),{width:16,height:16,src:"".concat(e.icon),alt:"".concat(e.text),className:"rounded-2xl border bg-txt-primary border-txt-primary"})})}),(0,r.jsx)("div",{className:"inline cursor-pointer truncate hover:underline",children:(0,a.Qj)(null===(t=e.text)||void 0===t?void 0:t.split("//")[1])})]})})}},59917:function(e,t,n){"use strict";var r=n(85893),a=n(9008),i=n.n(a);let s=["defi","exchange","token","audit","bridge","developer","nft","education","solana","avalanche","polygon","bsc","ethereum","optimism","arbitrum","fantom","matic","filecoin","canto","zora"];t.Z=e=>{let{seo:t}=e,n={metaTitle:"".concat(t.metaTitle," | Welcome onchain"),shareImage:t.shareImage||"https://welcomeonchain.xyz/images/og-img-welcome-onchain.jpg",metaDescription:t.metaDescription,article:t.article||!1};return(0,r.jsxs)(i(),{children:[(0,r.jsx)("meta",{property:"og:title",content:"Welcome onchain"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:site_name",content:"Welcome onchain"}),(0,r.jsx)("meta",{name:"creator",content:"pentacle"}),(0,r.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,r.jsx)("meta",{name:"category",content:"Finance"}),(0,r.jsx)("meta",{name:"keywords",content:s.join(",")}),n.metaTitle&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:n.metaTitle}),(0,r.jsx)("meta",{name:"twitter:title",content:n.metaTitle})]}),n.metaDescription&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:n.metaDescription}),(0,r.jsx)("meta",{property:"og:description",content:n.metaDescription}),(0,r.jsx)("meta",{name:"twitter:description",content:n.metaDescription})]}),n.shareImage&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:image",content:n.shareImage}),(0,r.jsx)("meta",{name:"twitter:image",content:n.shareImage}),(0,r.jsx)("meta",{name:"image",content:n.shareImage}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"})]}),n.article&&(0,r.jsx)("meta",{property:"og:type",content:"article"})]})}},53488:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return _},default:function(){return Z}});var r=n(85893),a=n(41664),i=n.n(a),s=e=>{let{href:t,tag:n,txtColor:a}=e;return(0,r.jsx)(i(),{href:t,className:"flex-none",passHref:!0,children:(0,r.jsxs)("div",{className:a+" py-1 text-xs cursor-pointer hover:underline",children:["# ",n]})})},l=n(5152),c=n.n(l),o=n(67294),u=n(26121),d=n(15704),m=n(30252),x=n(94722),f=n(81214),p=n(93269);let h=c()(()=>Promise.resolve().then(n.bind(n,38769)),{loadableGenerated:{webpack:()=>[38769]},ssr:!1});var g=e=>{let{person:t}=e,[n,a]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{var e;a(!!(null===(e=globalThis)||void 0===e?void 0:e.localStorage).getItem("favorite-people:".concat(t.attributes.slug,"|").concat(t.id)))},[t.attributes.slug,t.id]),(0,r.jsx)("section",{className:"flex flex-col gap-y-4",children:(0,r.jsxs)("article",{className:"grid gap-4 p-4 bg-bg-card-secondary",children:[(0,r.jsxs)("div",{className:"flex gap-3 justify-between w-full",children:[(0,r.jsx)("div",{className:"",children:(0,r.jsx)(h,{imgUrl:t.attributes.twitter_img,className:"w-12 h-12 rounded-3xl",fallback:(0,r.jsx)(m.Z,{})})}),(0,r.jsx)("div",{className:"absolute top-0 -mt-32",children:t.attributes.subject_expert_types.data.map((e,t)=>(0,r.jsx)(u.Z,{href:"/people?category=".concat(e.attributes.slug),tag:e.attributes.name,txtColor:"text-txt-primary"},t))}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{children:t.attributes.name}),(0,r.jsxs)("div",{className:"flex flex-row flex-wrap gap-4",children:[(0,r.jsx)(p.Z,{url:t.attributes.twitter,text:t.attributes.twitter,icon:"/images/icons/twitter.svg"}),(0,r.jsx)(p.Z,{url:t.attributes.github,text:t.attributes.github,icon:"/images/icons/github.svg"}),(0,r.jsx)(p.Z,{url:t.attributes.website||"",text:t.attributes.website||"",icon:"/images/icons/web.svg"})]})]}),(0,r.jsx)(d.Z,{fave:n,handleClickFave:e=>{var r;let i=null===(r=globalThis)||void 0===r?void 0:r.localStorage;e.stopPropagation(),n?(a(!1),i.removeItem("favorite-people:".concat(t.attributes.slug,"|").concat(t.id))):(a(!0),i.setItem("favorite-people:".concat(t.attributes.slug,"|").concat(t.id),"true"))}})]}),(0,r.jsx)("div",{className:"text-sm",children:(0,r.jsx)(f.h,{initialView:t.attributes.bio,children:(0,r.jsx)(x.Z,{children:t.attributes.bio})})}),(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("div",{className:"flex flex-wrap gap-x-4",children:t.attributes.tags.data.map((e,t)=>(0,r.jsx)(s,{href:"/tags/".concat(e.attributes.slug),tag:e.attributes.name,txtColor:"text-txt-primary"},t))}),(0,r.jsx)(i(),{href:"https://github.com/pentaclexyz/pentacle-eli5/blob/main/people/"+t.attributes.slug+".md",target:"_blank",rel:"noopener noreferrer",className:"py-1 text-xs hover:underline",children:"Update bio"})]})]})})},v=n(92211),j=n(96615),b=n(59917),w=n(20296),N=n(11163);let y=c()(()=>Promise.resolve().then(n.bind(n,38769)),{loadableGenerated:{webpack:()=>[38769]},ssr:!1});var _=!0;function Z(e){var t,n,a,s,l,c;let{person:u}=e,d={metaTitle:null==u?void 0:null===(t=u.attributes)||void 0===t?void 0:t.name,metaDescription:"Person: ".concat(null==u?void 0:null===(n=u.attributes)||void 0===n?void 0:n.bio)},m=((null==u?void 0:null===(l=u.attributes)||void 0===l?void 0:null===(s=l.projects)||void 0===s?void 0:null===(a=s.data)||void 0===a?void 0:a.length)||0)>0,x=(0,N.useRouter)(),[f,p]=(0,o.useState)(),h=(0,w.debounce)(e=>{localStorage.setItem("notes-project-".concat(null==u?void 0:u.attributes.name),JSON.stringify({text:e,date:Date.now()}))},1e3),_=e=>{p({text:e,date:Date.now()}),h(e)};return((0,o.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem("notes-project-".concat(null==u?void 0:u.attributes.name)));e&&p(e)}catch(e){console.error(e)}},[null==u?void 0:null===(c=u.attributes)||void 0===c?void 0:c.name]),!u||x.isFallback)?(0,r.jsx)("div",{className:"flex justify-center items-center mx-auto my-12 max-w-7xl",children:(0,r.jsx)("div",{children:"Trying to load ..."})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Z,{seo:d}),(0,r.jsx)("article",{className:"overflow-y-hidden mx-auto max-h-128 md:col-span-12",children:(0,r.jsx)(y,{imgUrl:null==u?void 0:u.attributes.twitter_banner,className:"w-full md:-translate-y-8 lg:-translate-y-26",fallback:(0,r.jsx)("div",{className:"w-full md:h-56 md:-translate-y-8 lg:-translate-y-26 bg-bg-card-secondary"})})}),(0,r.jsx)("article",{className:"grid relative grid-cols-12 gap-6 z-100 md:-mt-60",children:(0,r.jsx)("div",{className:"col-span-12",children:(0,r.jsxs)(j.Z,{children:[(0,r.jsxs)("section",{className:"flex flex-col gap-y-6 mb-4 sm:mb-0 sm:col-span-6",children:[(0,r.jsx)("span",{className:"sm:col-span-6",children:(0,r.jsx)(g,{person:u})}),m&&(0,r.jsxs)("article",{className:"grid gap-4 p-4 sm:col-span-6 bg-bg-card-secondary",children:[(0,r.jsx)("h2",{className:"p-0",children:"Projects"}),(0,r.jsx)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-2",children:null==u?void 0:u.attributes.projects.data.map(e=>(0,r.jsx)(v.t,{project:e,animate:!0},e.id))})]})]}),(0,r.jsx)("section",{className:"flex flex-col gap-y-6 sm:col-span-6",children:(0,r.jsxs)("div",{className:"p-4 mt-4 w-full bg-bg-card-secondary sm:col-span-6 md:mt-0",children:[(0,r.jsx)("div",{className:"flex justify-between items-center pb-2",children:(0,r.jsx)(i(),{href:"/notes",children:(0,r.jsx)("div",{className:"p-0 cursor-pointer internal-link",children:"Notes"})})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("textarea",{rows:2,placeholder:"Start typing …",className:"p-2 w-full text-sm bg-bg-card focus:outline-none focus:ring focus:ring-primary",onChange:e=>_(e.target.value),defaultValue:null==f?void 0:f.text}),(null==f?void 0:f.text)&&(0,r.jsx)("span",{className:"mt-3 ml-auto text-xs",children:new Date(null==f?void 0:f.date).toDateString()})]})]})})]})})})]})}},11728:function(e,t,n){"use strict";n.d(t,{$3:function(){return E},RC:function(){return S},SK:function(){return b},SZ:function(){return _},To:function(){return k},U7:function(){return y},Ub:function(){return w},aY:function(){return j},bk:function(){return Z},fN:function(){return N},fw:function(){return v},jG:function(){return C}});var r=n(82729),a=n(5791);function i(){let e=(0,r._)(["\n  relative\n  w-72\n  h-full\n  flex\n  flex-col\n  rounded-2xl\n  bg-white\n  cursor-pointer\n  shadow-lg\n  text-sm\n  transform \n  transition-transform\n  scale:100\n  hover:scale-105\n  overflow-hidden\n"]);return i=function(){return e},e}function s(){let e=(0,r._)(["\n  flex\n  flex-col\n  justify-between\n  gap-3\n  p-3\n"]);return s=function(){return e},e}function l(){let e=(0,r._)(["\n  flex\n  flex-start\n"]);return l=function(){return e},e}function c(){let e=(0,r._)(["\n  // flex\n  // flex-col\n  // gap-3\n"]);return c=function(){return e},e}function o(){let e=(0,r._)(["\n  flex\n  justify-between\n  align-items-center\n"]);return o=function(){return e},e}function u(){let e=(0,r._)(["\n  pt-0\n  capitalize\n"]);return u=function(){return e},e}function d(){let e=(0,r._)(["\n  line-clamp-2\n  overflow-hidden\n"]);return d=function(){return e},e}function m(){let e=(0,r._)(["\n overflow-hidden\n line-clamp-3\n"]);return m=function(){return e},e}function x(){let e=(0,r._)(["\n  flex \n  justify-between\n  items-center\n"]);return x=function(){return e},e}function f(){let e=(0,r._)(["\n  absolute\n  right-3\n  top-24\n"]);return f=function(){return e},e}function p(){let e=(0,r._)(["\n  bg-bg-01 p-2 rounded-2xl text-center flex gap-2 justify-center\n"]);return p=function(){return e},e}function h(){let e=(0,r._)(["\n  text-xs\n  p-0\n  matter-bold\n"]);return h=function(){return e},e}function g(){let e=(0,r._)(["\n  text-xs\n  p-0\n"]);return g=function(){return e},e}let v=a.Z.article(i()),j=a.Z.div(s());a.Z.div(l());let b=a.Z.div(c()),w=a.Z.div(o()),N=a.Z.h3(u()),y=a.Z.h4(d()),_=a.Z.div(m()),Z=a.Z.div(x()),k=a.Z.div(f()),S=a.Z.div(p()),E=a.Z.span(h()),C=a.Z.span(g())},9008:function(e,t,n){e.exports=n(13709)},76749:function(e,t,n){"use strict";var r=n(67294);let a=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"}))});t.Z=a},37901:function(e,t,n){"use strict";var r=n(67294);let a=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"}))});t.Z=a}},function(e){e.O(0,[7947,8757,2888,9774,179],function(){return e(e.s=5629)}),_N_E=e.O()}]);