1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2304],{20063:(e,s,a)=>{"use strict";var n=a(47260);a.o(n,"usePathname")&&a.d(s,{usePathname:function(){return n.usePathname}}),a.o(n,"useRouter")&&a.d(s,{useRouter:function(){return n.useRouter}}),a.o(n,"useSearchParams")&&a.d(s,{useSearchParams:function(){return n.useSearchParams}})},32304:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>p});var n=a(95155),r=a(12115),l=a(20063),t=a(52619),c=a.n(t);a(75605);var i=a(63857),d=a(55325),o=a(57257);function h(){let e=window.location.origin,[s,a]=(0,r.useState)(null),[l,t]=(0,r.useState)(null);(0,r.useEffect)(()=>{fetch("".concat(e,"/connector.js"),{cache:"no-store"}).then(e=>e.ok?e.text():Promise.reject(Error("".concat(e.status)))).then(a).catch(e=>{var s;return t(String(null!=(s=null==e?void 0:e.message)?s:e))})},[e]);let c=(0,r.useMemo)(()=>s?"javascript:"+encodeURIComponent("(function(){window.JUSTACONNECT_ORIGIN="+JSON.stringify(e)+";\n"+s+"\n})();"):"javascript:void(0)",[e,s]),[i,d]=(0,r.useState)(!1),h=!!s;return(0,n.jsxs)("div",{className:"bookmarklet-hero",children:[(0,n.jsx)(o.C,{href:c,className:"bookmarklet bookmarklet-big",draggable:h,"aria-disabled":!h,style:h?void 0:{opacity:.5,cursor:"wait"},children:h?"ENSign":"loadingâ¦"}),(0,n.jsx)("span",{className:"muted small bookmarklet-hint",children:h?"drag this to your bookmarks bar â":""}),(0,n.jsx)("button",{className:"ghost bookmarklet-copy",onClick:function(){navigator.clipboard.writeText(c).then(()=>{d(!0),setTimeout(()=>d(!1),1500)}).catch(()=>{})},disabled:!h,children:i?"copied":"copy code"}),l&&(0,n.jsxs)("div",{className:"err small",children:["Couldn't load ",(0,n.jsx)("code",{children:"/connector.js"}),": ",l,"."]}),(0,n.jsxs)("details",{className:"muted small bookmarklet-details",children:[(0,n.jsx)("summary",{children:"can't see your bookmarks bar?"}),(0,n.jsxs)("p",{children:["Chrome / Firefox: ",(0,n.jsx)("code",{children:"â+Shift+B"}),'. Safari: View â Show Favorites Bar. Or "copy code" and paste it as the URL of a new bookmark.']})]})]})}var u=a(56921);function p(){let e=(0,l.useRouter)(),[s,a]=(0,r.useState)(null);if((0,r.useEffect)(()=>{let s=(0,i.Ht)();if(!s)return void e.replace("/");a(s.label)},[e]),!s)return(0,n.jsxs)("div",{className:"ds ds-page",children:[(0,n.jsx)(d.s,{}),(0,n.jsx)("main",{className:"ds-wrap ds-app",children:(0,n.jsx)("p",{className:"ds-lede",children:"Redirectingâ¦"})})]});let t="".concat(s,".").concat(u.PP);return(0,n.jsxs)("div",{className:"ds ds-page",children:[(0,n.jsx)(d.s,{}),(0,n.jsxs)("main",{className:"ds-wrap ds-app",children:[(0,n.jsx)("header",{className:"ds-idcard",children:(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"ds-idcard-name",children:"Sign-in"}),(0,n.jsxs)("p",{className:"ds-idcard-addr",children:["use ",t," on any dApp \xb7 nothing to install"]})]})}),(0,n.jsxs)("div",{className:"ds-install",children:[(0,n.jsxs)("section",{className:"ds-drag",children:[(0,n.jsx)("p",{className:"ds-drag-k",children:"Drag me to your bookmarks bar"}),(0,n.jsx)(h,{}),(0,n.jsx)("p",{className:"ds-drag-hint",children:"It carries the connector inside the link itself, so it keeps working on pages whose security policy blocks outside scripts."})]}),(0,n.jsxs)("section",{children:[(0,n.jsxs)("ol",{className:"ds-steps",children:[(0,n.jsxs)("li",{children:[(0,n.jsx)("b",{children:"01"}),(0,n.jsx)("span",{children:"Drag the button onto your bookmarks bar."})]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("b",{children:"02"}),(0,n.jsx)("span",{children:"Open any Sepolia dApp â Aave, Uniswap, anything â and click it."})]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("b",{children:"03"}),(0,n.jsxs)("span",{children:["The page sees a real EIP-1193 signer. Approve with your passkey and it signs as ",(0,n.jsx)("em",{children:t}),"."]})]})]}),(0,n.jsxs)("div",{className:"ds-stat-card",style:{marginTop:14},children:[(0,n.jsx)("p",{className:"ds-stat-k",children:"What the dApp sees"}),(0,n.jsxs)("div",{className:"ds-recs",children:[(0,n.jsxs)("div",{className:"ds-rec",children:[(0,n.jsx)("span",{children:"provider"}),(0,n.jsx)("b",{children:"window.ethereum"})]}),(0,n.jsxs)("div",{className:"ds-rec",children:[(0,n.jsx)("span",{children:"account"}),(0,n.jsx)("b",{children:t})]}),(0,n.jsxs)("div",{className:"ds-rec",children:[(0,n.jsx)("span",{children:"signing"}),(0,n.jsx)("b",{children:"passkey \xb7 ERC-4337"})]}),(0,n.jsxs)("div",{className:"ds-rec",children:[(0,n.jsx)("span",{children:"gas"}),(0,n.jsx)("b",{style:{color:"var(--data)"},children:"sponsored"})]})]})]})]})]})]}),(0,n.jsx)("footer",{className:"ds-footer",children:(0,n.jsxs)("div",{className:"ds-footer-in",children:[(0,n.jsxs)("span",{className:"ds-footer-who",children:[(0,n.jsx)("i",{})," Signed in as ",(0,n.jsx)("b",{children:t})]}),(0,n.jsxs)("span",{className:"ds-footer-links",children:[(0,n.jsx)(c(),{href:"/dashboard",children:"Wallet"}),(0,n.jsx)(c(),{href:"/agents",children:"Agents"}),(0,n.jsx)(c(),{href:"/recovery",children:"Recovery"})]})]})})]})}},55325:(e,s,a)=>{"use strict";a.d(s,{s:()=>h});var n=a(95155),r=a(52619),l=a.n(r),t=a(20063),c=a(63857),i=a(56921),d=a(12115);
1a(75605);let o=[{href:"/dashboard",label:"Wallet"},{href:"/agents",label:"Agents"},{href:"/recovery",label:"Recovery"},{href:"/install",label:"Sign-in"}];function h(){let{onClaim:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=(0,t.usePathname)(),a=(0,t.useRouter)(),[r,h]=(0,d.useState)(null),[u,p]=(0,d.useState)(null),[m,x]=(0,d.useState)(!1),[j,f]=(0,d.useState)(!1),v=(0,d.useRef)(null);async function N(){if(u)try{await navigator.clipboard.writeText(u),f(!0),setTimeout(()=>f(!1),1500)}catch(e){}}(0,d.useEffect)(()=>{var e,s;let a=(0,c.Ht)();h(null!=(e=null==a?void 0:a.label)?e:null),p(null!=(s=null==a?void 0:a.account)?s:null)},[]),(0,d.useEffect)(()=>{if(m)return document.addEventListener("mousedown",e),document.addEventListener("keydown",s),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",s)};function e(e){v.current&&!v.current.contains(e.target)&&x(!1)}function s(e){"Escape"===e.key&&x(!1)}},[m]);let g=null!=e?e:()=>a.push("/"),b=r?"".concat(r,".").concat(i.PP):"";return(0,n.jsx)("nav",{className:"ds-nav",children:(0,n.jsxs)("div",{className:"ds-nav-in",children:[(0,n.jsxs)(l(),{href:r?"/dashboard":"/",className:"ds-brand",style:{textDecoration:"none"},children:["ENSign ",(0,n.jsx)("span",{children:"ENS v2"})]}),r&&(0,n.jsx)("div",{className:"ds-navlinks",children:o.map(e=>(0,n.jsx)(l(),{href:e.href,className:"ds-navlink",style:s===e.href?{color:"var(--on-paper)",fontWeight:500}:void 0,children:e.label},e.href))}),(0,n.jsx)("div",{className:"ds-nav-right",children:r?(0,n.jsxs)("div",{className:"ds-account",ref:v,children:[(0,n.jsxs)("button",{type:"button",className:"ds-account-btn",onClick:()=>x(e=>!e),"aria-expanded":m,"aria-haspopup":"menu",title:b,children:[(0,n.jsx)("i",{}),r,(0,n.jsxs)("span",{className:"ds-account-suffix",children:[".",i.PP]}),(0,n.jsx)("span",{className:"ds-account-caret","aria-hidden":!0,children:"â¾"})]}),m&&(0,n.jsxs)("div",{className:"ds-pop",role:"menu",children:[(0,n.jsxs)("div",{className:"ds-pop-head",children:[(0,n.jsx)("div",{className:"ds-pop-name",children:b}),u&&(0,n.jsxs)("div",{className:"ds-pop-addr",children:[u.slice(0,12),"â¦",u.slice(-10)]})]}),(0,n.jsxs)("button",{type:"button",className:"ds-pop-item",onClick:N,disabled:!u,children:[(0,n.jsx)("span",{children:j?"Address copied":"Copy address"}),(0,n.jsx)("span",{className:"ds-pop-hint",children:j?"â":"â§"})]}),(0,n.jsxs)(l(),{href:"/dashboard",className:"ds-pop-item",onClick:()=>x(!1),children:[(0,n.jsx)("span",{children:"Wallet"}),(0,n.jsx)("span",{className:"ds-pop-hint",children:"â"})]}),(0,n.jsxs)(l(),{href:"/recovery",className:"ds-pop-item",onClick:()=>x(!1),children:[(0,n.jsx)("span",{children:"Recovery"}),(0,n.jsx)("span",{className:"ds-pop-hint",children:"â"})]}),(0,n.jsx)("div",{className:"ds-pop-rule"}),(0,n.jsxs)("a",{className:"ds-pop-item",href:"https://explorer.ens.dev/".concat(b),target:"_blank",rel:"noreferrer",onClick:()=>x(!1),children:[(0,n.jsx)("span",{children:"ENS explorer"}),(0,n.jsx)("span",{className:"ds-pop-hint",children:"â"})]}),u&&(0,n.jsxs)("a",{className:"ds-pop-item",href:"https://sepolia.etherscan.io/address/".concat(u),target:"_blank",rel:"noreferrer",onClick:()=>x(!1),children:[(0,n.jsx)("span",{children:"Etherscan"}),(0,n.jsx)("span",{className:"ds-pop-hint",children:"â"})]}),(0,n.jsx)("div",{className:"ds-pop-rule"}),(0,n.jsx)("button",{type:"button",className:"ds-pop-item ds-pop-item--danger",onClick:function(){(0,c.q7)(),h(null),p(null),x(!1),a.push("/")},children:(0,n.jsx)("span",{children:"Disconnect"})})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l(),{href:"/pitch",className:"ds-navlink",children:"Pitch"}),(0,n.jsx)("a",{className:"ds-navlink",href:"https://github.com/LeoFranklin015/ENSign",target:"_blank",rel:"noreferrer",children:"GitHub"}),(0,n.jsx)("button",{className:"ds-btn",onClick:g,style:{padding:"11px 20px",fontSize:14},children:"Connect"})]})})]})})}},57257:(e,s,a)=>{"use strict";a.d(s,{C:()=>l});var n=a(95155),r=a(12115);function l(e){let{href:s,children:a,onClick:l,...t}=e,c=(0,r.useRef)(null);return(0,r.useEffect)(()=>{var e;null==(e=c.current)||e.setAttribute("href",s)},[s]),(0,n.jsx)("a",{...t,ref:c,onClick:e=>{e.preventDefault(),null==l||l(e)},children:a})}},63857:(e,s,a)=>{"use strict";a.d(s,{E1:()=>t,Ht:()=>c,q7:()=>i});let n="ensign:label",r="ensign:account",l="ensign:credentialId";function t(e){localStorage.setItem(n,e.label),localStorage.setItem(r,e.account),localStorage.setItem(l,e.credentialId)}function c(){let e=localStorage.getItem(n),s=localStorage.getItem(r),a=localStorage.getItem(l);return e&&s&&a?{label:e,fullName:"",account:s,credentialId:a}:null}function i(){localStorage.removeItem(n),localStorage.removeItem(r),localStorage.removeItem(l)}},75605:()=>{}}]);
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.