PageSourceSearch

https://www.tylerxhobbs.com/_next/static/chunks/pages/wallet-verification-signing-2e75456ef2ed62a6.js

js tylerxhobbs.com collected 2026-09-24 19:00:29 UTC 9,544 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[660],{40585:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet-verification-signing",function(){return r(35680)}])},79425:function(e,t,r){"use strict";r.d(t,{w:function(){return SplitTextReveal}});var n=r(85893);r(67294);var l=r(71183);function SplitTextReveal(e){let{children:t,className:r,delay:a}=e,s=t.split(" ");return s.map((e,i)=>(0,n.jsx)("span",{className:"block overflow-hidden mb-0 pb-0 ".concat(r),children:(0,n.jsx)(l.m.span,{className:"block overflow-hidden will-change-transform",initial:{y:"100%"},animate:{y:0,transition:{delay:a||0,type:"spring",stiffness:250,damping:45,mass:1}},exit:{opacity:0,transition:{delay:-.1,duration:.5,ease:[.71,0,.17,1]}},custom:i,children:e+(i!==s.length-1?"\xa0":"")})},t+i))}},35680:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return F},default:function(){return WalletVerificationPage}});var n=r(85893),l=r(94490),a=r(78792),s=r(98428),i=r(18522),o=r(58601),d=r(71183),c=r(2962),u=r(23977),m=r(84829),h=r(79425),g=r(67294),b=r(59598),p=r(20583),x=r(89109),v=r(11502),w=r(30725),f=r(64892),j=r(24657),y=r(74848),k=r(48764).lW;let N=(0,v._)({chains:[f.R],ssr:!0,transports:{[f.R.id]:(0,w.d)()}}),getWindow=()=>window,decodeBase64=e=>k.from(e,"base64").toString("utf8"),S=["QQL","Fidenza","Incomplete Control","Wall"],_=Object.fromEntries(Object.entries({"invalid address":"Not a valid Ethereum address.","invalid message":"Message must be given.","rendering error":["There was an error rendering the form.","The URL you were given to reach this page may have been corrupted.","Please reach out to our team for assistance."],"connection error":["There was a problem connecting your browser-based wallet.","Please make sure your browser-based wallet is connected and try again."],"invalid wallet":["Connected wallet does not hold the address needed for signing.","Please switch to the wallet that holds the ethereum wallet address given above."],"signature error":"There was a problem signing using your wallet.","submission accepted":["Your submission was accepted by the server.","Keep an eye out for a follow-up email from our studio with next steps!"],"submission error":["The server returned an error; please try again later.","If the issue persists, please reach out by replying to the email that led you here."]}).map(e=>{var t,r;let[n,l]=e;return[n,null!==(r=null==l?void 0:null===(t=l.join)||void 0===t?void 0:t.call(l," "))&&void 0!==r?r:l]})),post=(e,t)=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).catch(()=>null),wallet_verification_form_submit=async e=>{var t;let{series:r}=e,n=function(e){if("string"!=typeof e||!S.includes(e))return null;{let t=e.toLowerCase().split(/\s+/).join("-");return new URL(t,"https://api.tylerxhobbs.com/v1/zapier/verify/").toString()}}(r),l=await post(n,e),a=_["submission error"];if(null==l)throw Error(a);if(l.ok)return;let s=l.headers.get("Content-Type");if(!(s&&s.includes("application/json")))throw Error(a);let{error:i=null}=await l.json().catch(()=>{}),o=null!==(t=null==i?void 0:i.message)&&void 0!==t?t:a;throw Error(o)},Input=e=>{let{label:t=null,name:r=null,id:l=null,...a}=e;return(0,n.jsxs)("div",{className:"mt-5",children:[(0,n.jsx)("label",{className:"block text-black dark:text-white mb-1",htmlFor:l,children:t}),(0,n.jsx)("input",{className:"bg-[#F3F1E6] dark:bg-white/5 w-full block mt-1 px-4 py-4 outline-none",type:"text",name:r,id:l,...a})]})},TextArea=e=>{let{label:t=null,name:r=null,id:l=null,...a}=e;return(0,n.jsxs)("div",{className:"mt-5",children:[(0,n.jsx)("label",{className:"block text-black dark:text-white mb-1",htmlFor:l,children:t}),(0,n.jsx)("textarea",{className:"bg-[#F3F1E6] dark:bg-white/5 w-full resize-none mt-1 px-4 py-4 block outline-none",name:r,id:l,...a})]})},Button=e=>{let{disabled:t=!1,...r}=e;return(0,n.jsx)("div",{className:"shadow-none flex items-center justify-center",children:(0,n.jsx)("button",{type:"button",className:["my-3 py-2 w-full rounded-full",t?"bg-transparent text-gray border border-gray":"bg-black text-white dark:bg-white dark:text-black"].join(" "),disabled:t,...r})})},FormError=e=>{let{...t}=e;return(0,n.jsx)("div",{className:"text-red-500 text-md mt-5",...t})},FormSuccess=e=>{let{...t}=e;return(0,n.jsx)("div",{className:"text-green-500 text-md mt-5",...t})},Address=e=>{let{value:t,error:r,...l}=e;return(0,n.jsx)(Input,{label:"Ethereum Wallet Address:",name:"address",id:"address",readOnly:!0,value:t,error:r,...l})},Message=e=>{let{value:t,error:r,...l}=e;return(0,n.jsx)(TextArea,{label:"Statement:",name:"message",id:"message",rows:"4",readOnly:!0,value:t,error:r,...l})},Signature=e=>{let{value:t,error:r,...l}=e;return(0,n.jsx)(TextArea,{label:"Here is your cryptographic signature confirmation:",name:"signature",id:"signature",rows:"4",readOnly:!0,value:t,error:r,...l})};function WalletVerificationForm(){var e,t,r;let[l,a]=(0,g.useState)({}),[s,i]=(0,g.useState)({}),[o,d]=(0,g.useState)({});(0,g.useEffect)(()=>{var e,t,r;let n=null!==(r=null===(t=getWindow())||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.search)&&void 0!==r?r:{},l=function(e){let t=new URLSearchParams(e),{encodedParams:r="",...n}=Object.fromEntries(t.entries());try{let e=decodeBase64(r),t=JSON.parse(e);return{...n,...t}}catch(e){return n}}(n);a(l)},[]),(0,g.useEffect)(()=>{var e,t;let r={},n={};r.address=null!==(e=null==l?void 0:l.address)&&void 0!==e?e:"",y.UJ(r.address)||(n.address=_["invali
1d address"]),r.message=null!==(t=null==l?void 0:l.message)&&void 0!==t?t:"","string"==typeof r.message&&r.message.length>0||(n.message=_["invalid message"]),i(r),d(n)},[l]);let{connect:c,error:u,isLoading:m}=(0,b.$)({config:N});o.connect=u&&_["connection error"];let{addresses:h,isConnected:v}=(0,p.m)({config:N});v&&!h.includes(s.address)&&(null!==(e=o.connect)&&void 0!==e||(o.connect=_["invalid wallet"]));let{data:w,error:f,signMessage:k}=(0,x.Q)({config:N});o.sign=f&&_["signature error"],l.signature=w,s.signature=w;let handleSubmitClick=async()=>{try{await wallet_verification_form_submit(l);let e=_["submission accepted"];i({...s,submit:e})}catch(n){var e;let t=_["submission error"],r=null!==(e=null==n?void 0:n.message)&&void 0!==e?e:t;d({...o,submit:r})}};return m?(0,n.jsx)(n.Fragment,{children:"Loading ... Please wait."}):(null==o?void 0:o.address)!=null||(null==o?void 0:o.message)!=null?(0,n.jsx)(FormError,{children:_["rendering error"]}):(0,n.jsxs)("form",{children:[(0,n.jsx)(Address,{value:s.address}),(0,n.jsx)(Message,{value:s.message}),(null==s?void 0:s.signature)==null?v?(0,n.jsx)(Button,{onClick:()=>{let{address:e=null,message:t=null}=s;k({account:e,message:t})},children:"Sign"}):(0,n.jsx)(Button,{onClick:()=>c({connector:(0,j.L)()}),children:"Click to connect your wallet"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Button,{disabled:!0,children:"Signed"}),(0,n.jsx)(Signature,{value:null!==(t=null==s?void 0:s.signature)&&void 0!==t?t:""}),(null==s?void 0:s.submit)==null?(0,n.jsx)(Button,{onClick:handleSubmitClick,children:"Submit"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Button,{disabled:!0,children:"Submitted"}),(0,n.jsx)(FormSuccess,{children:null!==(r=null==s?void 0:s.submit)&&void 0!==r?r:""})]})]}),Object.values(o).map((e,t)=>(0,n.jsx)(FormError,{children:e},t))]})}let E=new m.Z(u.is);var F=!0;function WalletVerificationPage(e){let{data:{contact:t,firstWorksCatSlug:r}}=E.getPreviewHook(e)();return(0,n.jsxs)(l.Z,{children:[(0,n.jsx)(c.PB,{title:"Wallet Verification"}),(0,n.jsx)(a.Z,{contact:t,worksCats:r}),(0,n.jsx)(i.X,{features:o.H,children:(0,n.jsx)(d.m.main,{initial:"initial",animate:"enter",exit:"exit",children:(0,n.jsx)(d.m.article,{variants:s.U,className:"w-full pb-4 lg:pb-8 pt-20 lg:pt-64",children:(0,n.jsxs)("div",{className:"grid grid-cols-12 w-full px-4 lg:px-8 gap-x-4 lg:gap-x-8",children:[(0,n.jsx)("div",{className:"col-span-12 lg:col-span-10 lg:col-start-3 mb-8 lg:mb-20",children:(0,n.jsx)("h2",{className:"text-[26px]/[1.1] lg:text-5xl/[1.045] w-[90%] lg:w-[80%] mb-0 tracking-[-0.025em] lg:tracking-[-0.025em] flex flex-wrap",children:(0,n.jsx)(h.w,{children:"Wallet Ownership Verification"})})}),(0,n.jsxs)("div",{className:"col-span-12 lg:col-span-6 lg:col-start-7 order-1 lg:order-2",children:[(0,n.jsx)("p",{className:"mb-8 lg:mb-12",children:"Please verify ownership of the Ethereum wallet address you provided by signing the statement below. You’ll receive a confirmation email with additional information and next steps!"}),(0,n.jsxs)("p",{className:"mb-8 lg:mb-12",children:["Please note that signing the wallet confirmation message does not interact with the blockchain, use any gas, or enact any smart contract functions. This signed message will not be published online and is used solely by our team to process your application. To learn more, you can read about wallet confirmation messages"," ",(0,n.jsx)("a",{href:"https://www.coinbase.com/learn/crypto-glossary/whats-a-crypto-wallet-confirmation-message",children:"here"}),"."]}),(0,n.jsx)("div",{className:"mb-8 md:mb-12",children:(0,n.jsx)(WalletVerificationForm,{})}),(0,n.jsx)("h2",{className:"text-[26px]/[1.1] lg:text-4xl/[1.1] tracking-[-0.025em] lg:tracking-[-0.025em] mb-3 lg:mb-4",children:"Have questions?"}),(0,n.jsx)("p",{className:"mb-6 lg:mb-12",children:"If you have additional questions or concerns don’t hesitate to reply back to the initial outreach email."})]})]})})})})]})}}},function(e){e.O(0,[211,764,921,831,774,888,179],function(){return e(e.s=40585)}),_N_E=e.O()}]);

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.