PageSourceSearch

https://www.metricsgarden.xyz/_next/static/chunks/4605-b347d64de4766b49.js

js metricsgarden.xyz collected 2026-10-07 22:08:22 UTC 9,332 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4605],{76647:function(){},73261:function(e,t,s){"use strict";s.d(t,{default:function(){return b}});var a=s(57437),i=s(87138),l=s(2265),n=s(66648),r=s(41942);s(95956);let c=()=>{window.history.replaceState({},document.title,window.location.pathname)};var d=s(46248),o=s(22771),h=s(59930),x=s.n(h),m=e=>{let{onSignout:t}=e;return(0,a.jsxs)("details",{className:"dropdown",children:[(0,a.jsx)("summary",{className:"btn bg-headerblack border-none flex items-center gap-2 text-white text-lg p-2",children:(0,a.jsx)("div",{className:" w-12 h-12 h-full mr-6 flex items-center",children:(0,a.jsxs)("svg",{width:"93",height:"64",viewBox:"0 0 93 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute top-[60%] transform -translate-y-1/2",children:[(0,a.jsxs)("g",{filter:"url(#filter0_d_351_2429)",children:[(0,a.jsx)("rect",{x:"12.8311",y:"8",width:"68.1689",height:"40",rx:"14",fill:"white",shapeRendering:"crispEdges"}),(0,a.jsx)("rect",{x:"28.8311",y:"17.9155",width:"20.1689",height:"20.1689",rx:"4.48199",fill:"#855DCD"}),(0,a.jsx)("path",{d:"M34.0302 21.0529H43.8009V34.9471H42.3667V28.5827H42.3526C42.1941 26.8237 40.7158 25.4453 38.9155 25.4453C37.1153 25.4453 35.637 26.8237 35.4785 28.5827H35.4644V34.9471H34.0302V21.0529Z",fill:"white"}),(0,a.jsx)("path",{d:"M31.4306 23.025L32.0133 24.9971H32.5063V32.975C32.2587 32.975 32.0581 33.1757 32.0581 33.4232V33.961H31.9684C31.7209 33.961 31.5202 34.1617 31.5202 34.4092V34.9471H36.5401V34.4092C36.5401 34.1617 36.3394 33.961 36.0919 33.961H36.0022V33.4232C36.0022 33.1757 35.8016 32.975 35.554 32.975H35.0162V23.025H31.4306Z",fill:"white"}),(0,a.jsx)("path",{d:"M42.4563 32.975C42.2088 32.975 42.0081 33.1757 42.0081 33.4232V33.961H41.9185C41.6709 33.961 41.4703 34.1617 41.4703 34.4092V34.9471H46.4901V34.4092C46.4901 34.1617 46.2894 33.961 46.0419 33.961H45.9522V33.4232C45.9522 33.1757 45.7516 32.975 45.504 32.975V24.9971H45.9971L46.5797 23.025H42.9941V32.975H42.4563Z",fill:"white"}),(0,a.jsx)("circle",{cx:"61",cy:"28",r:"4",fill:"#04DF00"})]}),(0,a.jsx)("defs",{children:(0,a.jsxs)("filter",{id:"filter0_d_351_2429",x:"0.831055",y:"0",width:"92.1689",height:"64",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,a.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,a.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,a.jsx)("feOffset",{dy:"4"}),(0,a.jsx)("feGaussianBlur",{stdDeviation:"6"}),(0,a.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,a.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),(0,a.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_351_2429"}),(0,a.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_351_2429",result:"shape"})]})})]})})}),(0,a.jsx)("ul",{tabIndex:0,className:"dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box w-40",children:(0,a.jsx)("li",{children:(0,a.jsx)("p",{onClick:t,className:"text-black",children:"Sign Out"})})})]})},u=s(59910),f=s(53742);x().config();let p=(0,u.cn)(!1);var j=e=>{let{onLoginSuccess:t}=e,[s,i,n]=(0,d.Z)("user",{fid:"",username:"",ethAddress:"",isAuthenticated:!1}),[r,h]=(0,o.j1)("fid"),[x,u]=(0,l.useState)(""),[j,g]=(0,o.j1)("ethAddress"),[w,b]=(0,f.KO)(p),[N,y]=(0,l.useState)(!1),k="44721805-4374-450f-9ae7-1ebc46e18fce";if(!k)throw Error("NEXT_PUBLIC_NEYNAR_CLIENT_ID is not defined in .env");async function S(e,t){try{let t=await fetch("".concat(o.$P,"/api/login"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fid:e})});if(t.ok){let e=await t.json();console.log("Data",e)}}catch(e){console.error("Error fetching data",e)}}return(0,l.useEffect)(()=>{b(!!(null==s?void 0:s.fid))},[s.fid]),(0,l.useEffect)(()=>{let e="neynar-signin-script",a=document.getElementById(e);return a||((a=document.createElement("script")).id=e,a.src="https://neynarxyz.github.io/siwn/raw/1.2.0/index.js",a.async=!0,a.defer=!0,document.body.appendChild(a)),window.onSignInSuccess=async e=>{if(console.log("Sign in success",e),e.is_authenticated){y(!0);let s={fid:e.fid,username:e.user.username,ethAddress:e.user.verified_addresses.eth_addresses[0],isAuthenticated:!0};await S(e.fid,s),b(!0),c(),i(s),t(s)}else console.error("User verification failed")},console.log("User",s),()=>{var t;window.onSignInSuccess=void 0,null===(t=document.getElementById(e))||void 0===t||t.remove()}},[i,h,s.username,s.ethAddress]),(0,a.jsx)("div",{className:"bg-headerblack flex items-center",children:w?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(m,{onSignout:()=>{n(),h(""),i({fid:"",username:"",ethAddress:"",isAuthenticated:!1}),u(""),g(""),b(!1),y(!1)}})}):(0,a.jsx)("div",{className:"neynar_signin rounded-xl","data-client_id":k,"data-success_callback":"onSignInSuccess","data-theme":"light","data-variant":"farcaster","data-logo_size":"25px","data-height":"36px","data-width":"120px","data-border_radius":"10px","data-font_size":"16px","data-font_weight":"300","data-
1padding":"4px 15px","data-background_color":"#F4D3C3","data-margin":"0"})})},g=s(63858),w=s(23051);function b(){let[e]=(0,f.KO)(p),[t,s]=(0,l.useState)(!1),[c,o]=(0,l.useState)(!1),[h,x]=(0,l.useState)(!1),[m]=(0,d.Z)("user",{fid:"",username:"",ethAddress:"",isAuthenticated:!1}),[u,b]=(0,l.useState)(!1),[N,y]=(0,l.useState)("");(0,l.useEffect)(()=>{o(!0)},[]),(0,l.useEffect)(()=>{m.isAuthenticated&&u&&(x(!0),b(!1))},[m.isAuthenticated,u]);let k=()=>{s(!t)},S=()=>{s(!1)},[C,v]=(0,l.useState)(!1),E=()=>{v(e=>!e)},_=()=>{v(!1)};return c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center navbar bg-headerblack text-neutral-content p-3 md:p-8",children:[(0,a.jsx)(i.default,{href:"/",children:(0,a.jsx)("button",{className:"btn bg-headerblack text-xl border-none ".concat(g.tq?"pl-2":"pl-10"),children:(0,a.jsx)(n.default,{src:"/mglwhite.png",alt:"MGL Logo",width:40,height:40,className:"h-10 w-10"})})}),(0,a.jsxs)("div",{className:"hidden md:flex justify-end items-center lg:gap-x-8 md:gap-x-2",children:[(0,a.jsxs)("div",{className:"relative inline-block",children:[(0,a.jsxs)("button",{onClick:E,className:"text-white lg:text-md md:text-sm hover:text-opacity-75 flex items-center",children:["IMPACT FRAMEWORK",(0,a.jsx)(w.kc8,{className:"inline-block ml-1 transition-transform duration-300 text-3xl ".concat(C?"rotate-180":"rotate-0")})]}),C&&(0,a.jsxs)("div",{className:"absolute w-full bg-headerblack border border-gray-700 rounded shadow-md mt-2 z-50 animate-dropdown",onMouseLeave:_,children:[(0,a.jsx)(i.default,{href:"/impact-framework/rpgf3/",className:"block px-4 py-2 text-sm text-white hover:text-black hover:bg-primarylp",onClick:_,children:"RPGF3"}),(0,a.jsx)(i.default,{href:"/impact-framework/season7/",className:"block px-4 py-2 text-sm text-white hover:text-black hover:bg-primarylp",onClick:_,children:"SEASON7"})]})]}),(0,a.jsx)(i.default,{href:"/projectSignUp",className:"text-white lg:text-md md:text-sm hover:text-opacity-75",children:"REGISTER PROJECT"}),(0,a.jsx)(i.default,{href:"/searchProject",className:"text-white lg:text-md md:text-sm hover:text-opacity-75",children:"RATE PROJECTS"}),(0,a.jsx)(i.default,{href:"/searchUsers",className:"text-white text-md md:text-sm hover:text-opacity-75",children:"SEARCH USERS"})]}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(j,{onLoginSuccess:e=>{y(e.username),b(!0),x(!0),console.log("User logged in successfully,, opening carousel")}}),(0,a.jsx)("div",{className:"md:hidden ml-4",children:(0,a.jsx)("button",{className:"text-white focus:outline-none",onClick:k,children:t?(0,a.jsx)(r.aHS,{className:"h-6 w-6"}):(0,a.jsx)(r.Fm7,{className:"h-6 w-6"})})})]})]}),t&&(0,a.jsx)("div",{className:"fixed inset-0 bg-black opacity-50 z-40",onClick:S}),(0,a.jsxs)("div",{className:"fixed top-0 right-0 h-screen w-64 bg-headerblack text-white p-4 transition-transform duration-300 ease-in-out transform z-50 ".concat(t?"translate-x-0":"translate-x-full"),children:[(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)("button",{className:"text-white focus:outline-none",onClick:k,children:(0,a.jsx)(r.aHS,{className:"h-6 w-6"})})}),(0,a.jsxs)("ul",{className:"space-y-4 mt-8",children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("button",{onClick:E,className:"flex items-center justify-between w-full py-2",children:["IMPACT FRAMEWORK",(0,a.jsx)(w.kc8,{className:"ml-2 text-2xl transition-transform duration-300 ".concat(C?"rotate-180":"rotate-0")})]}),C&&(0,a.jsxs)("ul",{className:"pl-4 mt-1 space-y-2",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/impact-framework/rpgf3/",className:"block py-1",onClick:S,children:"RPGF3"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/impact-framework/season7/",className:"block py-1",onClick:S,children:"SEASON7"})})]})]}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/projectSignUp",className:"block py-2",onClick:S,children:"REGISTER PROJECT"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/searchProject",className:"block py-2",onClick:S,children:"RATE PROJECTS"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/searchUsers",className:"block py-2",onClick:S,children:"SEARCH USERSS"})})]})]})]}):null}}}]);

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.