1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5555],{67323:function(e,r,t){var n,s,a=t(67294);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},i.apply(this,arguments)}r.Z=function(e){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",style:{enableBackground:"new 0 0 1920 1080"},xmlSpace:"preserve",viewBox:"747.98 326.67 426.02 426.03"},e),n||(n=a.createElement("path",{d:"M918.3 496.9c-1 0-1.9.1-2.9.1H833v254.8l-.4.4c-.1.1-.1.1-.2.1-.8.1-1.6.1-2.4.1-27.1 0-54.2 0-81.3-.1-.2 0-.4-.1-.7-.3V327h84.9c.3 5.6.1 11.2.1 16.9v67.9c7.2.1 14.2 0 21.2.1h63.7c0 1.1.1 2 .1 3v78.8c.1 1.2.2 2.3.3 3.2-.1.1 0 0 0 0zM1003.1 582.7c.7.1 1.4.3 2.1.3h82.7c.1-7.8 0-15.6.1-23.4V326.7h86v426h-86v-84.9c-7.2-.3-14.2-.1-21.2-.1h-63.7c-.1-.8-.2-1.5-.2-2.2v-81c-.1-.4.1-1.1.2-1.8z"})),s||(s=a.createElement("path",{d:"M1003.1 582.7c-.8.1-1.6.3-2.3.3h-82.6c-.1-.6-.2-1.2-.2-1.7v-82.7c0-.2 0-.5.1-.7l-.1.1h85.1v82c-.3.8-.1 1.8 0 2.7z"})))}},93930:function(e,r,t){var n,s=t(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},a.apply(this,arguments)}r.Z=function(e){return s.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:25,height:100,viewBox:"0 0 24 24"},e),n||(n=s.createElement("path",{d:"m2.367 3 7.096 10.14L2.74 21h2.64l5.265-6.17L14.96 21h6.91L14.45 10.375 20.74 3h-2.6l-4.869 5.688L9.3 3H2.367zm3.84 2h2.049l9.777 14h-2.031L6.207 5z"})))}},55555:function(e,r,t){t.d(r,{X:function(){return L}});var n,s=t(85893),a=t(26042),i=t(69396),c=t(15512),o=t(82497),l=t(11163),d=t(67294),u=t(87536),m=function(e){var r=e.isRegistering,t=void 0!==r&&r,n=e.isResettingPassword,m=void 0!==n&&n,p=(0,d.useState)(""),h=p[0],f=p[1],x=(0,o.aF)(),g=x.createEmailUser,v=x.logInEmail,w=x.handleSendPasswordResetEmail,b=(0,l.useRouter)(),j=(0,u.cI)(),y=j.register,k=j.handleSubmit,N=j.setError,E=(j.clearErrors,j.watch),O=j.getValues,Z=j.formState.errors;return(0,s.jsxs)("form",{encType:"multipart/form-data",className:"mt-8 space-y-6",children:[(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-6",children:[(0,s.jsxs)("div",{className:"col-span-6",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-white",children:"Email"}),(0,s.jsx)("input",(0,i.Z)((0,a.Z)({},y("email",{required:!0,pattern:{value:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Please enter a valid email"}})),{className:"relative block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 text-black placeholder-gray-500 focus:z-10 focus:border-brand-pink focus:outline-none focus:ring-brand-pink sm:text-sm"})),Z.email&&(0,s.jsx)("span",{className:"text-sm text-red-500",children:Z.email.message}),h&&(0,s.jsx)("span",{className:"text-sm text-brand-pink",children:h})]}),!m&&(0,s.jsxs)("div",{className:"col-span-6",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-white",children:"Password"}),(0,s.jsx)("input",(0,i.Z)((0,a.Z)({},y("password",{required:!0,minLength:{value:6,message:"Password must be at least 6 characters"}})),{type:"password",className:"relative block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 text-black placeholder-gray-500 focus:z-10 focus:border-brand-pink focus:outline-none focus:ring-brand-pink sm:text-sm"})),Z.password&&(0,s.jsx)("span",{className:"text-sm text-red-500",children:Z.password.message})]}),!t&&(0,s.jsx)("div",{className:"col-span-2 flex flex-col justify-self-start text-brand-pink",children:m?(0,s.jsx)(c.Av,{textColor:"text-brand-pink",className:"self-start",onClick:function(){return b.back()},children:"Back"}):(0,s.jsx)(c.Av,{textColor:"text-brand-pink",href:"/reset",children:"Forgot Password?"})}),t&&(0,s.jsxs)("div",{className:"col-span-6",children:[(0,s.jsx)("label",{className:"text-md block font-medium text-white",children:"Confirm Password"}),(0,s.jsx)("input",(0,i.Z)((0,a.Z)({},y("confirmPassword",{required:!0,validate:function(e){if(E("password")!=e)return"Passwords do not match!"}})),{type:"password",className:"relative block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 text-black placeholder-gray-500 focus:z-10 focus:border-brand-pink focus:outline-none focus:ring-brand-pink sm:text-sm"})),Z.confirmPassword&&(0,s.jsx)("span",{className:"text-sm text-red-500",children:Z.confirmPassword.message})]})]}),(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)("button",{type:"button",onClick:k((function(e){m?function(){var e=O("email");w(e).then((function(e){e.error?N("email",{type:"fail",message:"Error: ".concat(e.error)}):f("Password reset email sent!")}
1)).catch((function(e){return N("email",{type:"fail",message:"Error: ".concat(e.error)})}))}():function(e){t?t&&g(e.email,e.password).then((function(e){e.error&&N("password",{type:"fail",message:"Error: ".concat(e.error)})})).catch((function(e){return N("password",{type:"fail",message:"Error: ".concat(e.error)})})):v(e.email,e.password).then((function(e){e.error&&N("password",{type:"fail",message:"Error: ".concat(e.error)})})).catch((function(e){return N("password",{type:"fail",message:"Error: ".concat(e.error)})}))}(e)})),className:"rounded-md bg-brand-pink px-4 py-2 text-brand-black",children:t?"Register":"Submit"})})]})},p=t(47568),h=t(34051),f=t.n(h),x=t(96087),g=function(e){var r=e.isOpen,t=e.setIsOpen;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(x.V,{open:r,onClose:function(){return t(!1)},children:(0,s.jsx)("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true",children:(0,s.jsx)("div",{className:"fixed inset-0 flex items-center justify-center p-4 text-center",children:(0,s.jsxs)(x.V.Panel,{className:"mx-auto max-w-md rounded bg-white p-4",children:[(0,s.jsx)(x.V.Title,{className:"pb-4 text-center",children:"Sorry, you need a browser extension for that!"}),(0,s.jsxs)(x.V.Description,{className:"text-center text-sm",children:["To log in with Nostr, you need a browser extension that supports \n NIP-07. On mobile? Try this on a desktop browser with an extension \n like ",(0,s.jsx)("a",{href:"https://getalby.com/",target:"_blank",rel:"noreferrer",children:(0,s.jsx)("p",{className:"hover:pointer inline text-brand-pink",children:"Alby"})}),". You can find out more about NIP-07 ",(0,s.jsx)("a",{href:"https://github.com/nostr-protocol/nips/blob/master/07.md",target:"_blank",rel:"noreferrer",children:(0,s.jsx)("p",{className:"hover:pointer inline text-brand-pink",children:"here."})})]}),(0,s.jsx)(c.zx,{className:"bg-wavgray mx-auto mt-4 w-28 self-start hover:tracking-wider",onClick:function(){return t(!1)},children:"OK"})]})})})})})},v=t(81479);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},w.apply(this,arguments)}var b,j,y=function(e){return d.createElement("svg",w({height:800,width:800,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.773 22.773",xmlSpace:"preserve"},e),n||(n=d.createElement("path",{d:"M15.769 0h.162c.13 1.606-.483 2.806-1.228 3.675-.731.863-1.732 1.7-3.351 1.573-.108-1.583.506-2.694 1.25-3.561C13.292.879 14.557.16 15.769 0zM20.67 16.716v.045c-.455 1.378-1.104 2.559-1.896 3.655-.723.995-1.609 2.334-3.191 2.334-1.367 0-2.275-.879-3.676-.903-1.482-.024-2.297.735-3.652.926h-.462c-.995-.144-1.798-.932-2.383-1.642-1.725-2.098-3.058-4.808-3.306-8.276v-1.019c.105-2.482 1.311-4.5 2.914-5.478.846-.52 2.009-.963 3.304-.765.555.086 1.122.276 1.619.464.471.181 1.06.502 1.618.485.378-.011.754-.208 1.135-.347 1.116-.403 2.21-.865 3.652-.648 1.733.262 2.963 1.032 3.723 2.22-1.466.933-2.625 2.339-2.427 4.74.176 2.181 1.444 3.457 3.028 4.209z"})))};function k(){return k=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},k.apply(this,arguments)}var N,E,O,Z,P=function(e){return d.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 1 30 30",width:30,height:30},e),b||(b=d.createElement("path",{d:"M15 13h10v4H15z"})),j||(j=d.createElement("path",{d:"M22.733 13c.166.641.267 1.307.267 2a8 8 0 1 1-8-8 7.96 7.96 0 0 1 5.245 1.969l2.841-2.84A11.962 11.962 0 0 0 15.003 3C8.374 3 3 8.373 3 15s5.374 12 12.003 12c10.01 0 12.266-9.293 11.327-14h-3.597z"})))},z=t(67323);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},S.apply(this,arguments)}var C=function(e){return d.createElement("svg",S({width:57,height:14,viewBox:"0 0 113 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),N||(N=d.createElement("path",{d:"M6.003 10.11s7.184.724 7.734-9.11c0 0-.07 8.12 7.263 9.082 0 0-6.774.381-7.045 8.918-.008.008.05-8.061-7.955-8.89h.003Z",fill:"#F0FF27",stroke:"#000",strokeLinejoin:"round"})),E||(E=d.createElement("g",{clipPath:"url(#zbd_svg__a)",fill:"#121422"},d.createElement("path",{d:"m27 18.673 16.32-8.152V9.79H27V3.996h26.506v8.69L37.219 20.77v.731h16.354v5.793H27v-8.622ZM74.1 16.012v-.8c4.489 0 7.473-1.872 7.473-5.147C81.573 5.755 78.419 4 72.76 4H55.3v23.292h17.46c6.099 0 8.813-2.19 8.813-5.62 0-3.565-2.177-5.661-7.473-5.661Zm-4.658 5.99H64.18v-3.894h5.262c1.701 0 2.58.767 2.58 1.93 0 1.506-1.025 1.963-2.58 1.963Zm0-8.852H64.18V9.29h5.262c1.365 0 2.58.337 2.58 1.962 0 1.547-1.4 1.9-2.58 1.9ZM82.806 4h16.052C108.605 4 113 8.79 113 15.646c0 7.2-5.281 11.646-14.14 11.646H82.805V4Zm20.71 11.646c0-4.112-2.873-5.657-5.664-5.657h-5.764v11.313h5.764c2.757 0 5.664-1.544 5.664-5.656Z"}))),O||(O=d.createElement("path",{d:"m4.124 19 .93 1.832c.29.582.755 1.047 1.365 1.367l1.83.931-1.83.93c-.581.292-1.046.757-1.365 1.368l-.93 1.832-.93-1.832A3.103 3.103 0 0 0 1.83 24.06L0 23.13l1.83-.93a3.102 3.102 0 0 0 1.365-1.368L4.125 19Z",fill:"#8B73EF"})),Z||(Z=d.createElement("defs",null,d.createElement("clipPath",{id:"zbd_svg__a"},d.createElement("path",{fill:"#fff",transform:"translate(27 4)",d:"M0 0h86v23.292H0z"})))))},R=[{name:"Google",icon:P},{name:"Twitter",icon:t(93930).Z},{name:"ZBD",icon:C},{name:"Apple",icon:y},{name:"Nostr",icon:z.Z}];function _(){var e=(0,d.useState)(!1),r=e[0],t=e[1],n=(0,v.N)(),a=n.isNostrWindow,i=n.nip07Login,c=(0,o.aF)(),l=c.logInGoogle,u=c.logInTwitter,m=c.logOut,h=c.logInZBD,x=c.logInApple,w=function(){var e=(0,p.Z)(f().mark((function e(){var r,t,n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l();case 2:r=e.sent,t=r.success,n=r.error,t||alert(null!==n&&void 0!==n?n:"Something went wrong logging you in");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=(0,p.Z)(f().mark((function e(){var r,t,n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u();case 2:r=e.sent,t=r.success,n=r.error,t||alert(null!==n&&void 0!==n?n:"Something went wrong logging you in");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=(0,p.Z)(f().mark((function e(){var r,t,n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:r=e.sent,t=r.success,n=r.error,t||alert(null!==n&&void 0!==n?n:"Something went wrong logging you in");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(){var e=(0,p.Z)(f().mark((function e(){var r,t,n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:r=e.sent,t=r.success,n=r.error,t||alert(null!==n&&void 0!==n?n:"Something went wrong logging you in");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,s.jsxs)("div",{className:"mb-20 mt-10 flex items-center justify-center px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"w-full max-w-md justify-center space-y-4",children:[(0,s.jsx)("div",{className:"flex justify-around",children:(0,s.jsx)("h2",{className:"mt-6 text-center text-base font-normal tracking-tight text-white md:text-xl",children:"or continue with"})}),(0,s.jsx)("div",{className:"grid grid-cols-1 items-center justify-items-center space-y-2",children:R.map((function(e){return(0,s.jsxs)("div",{className:"grid w-60 cursor-pointer grid-cols-2 items-center justify-items-center rounded-md bg-brand-pink py-2 pr-4",onClick:function(){switch(e.name){case"Nostr":m(),i(),a||t(!r);break;case"Twitter":b();break;case"Google":w();break;case"ZBD":j();break;case"Apple":y()}},children:[(0,s.jsx)(e.icon,{className:"col-start-1 h-5 fill-brand-black"}),(0,s.jsx)("p",{className:"col-start-2 text-brand-black",children:e.name})]},e.name)}))})]}),(0,s.jsx)(g,{isOpen:r,setIsOpen:t})]})}var B=t(41664),H=t.n(B),L=function(e){var r,t=e.isRegistering,n=void 0!==t&&t,a=e.isResettingPassword,i=void 0!==a&&a;
1r=i?"Reset your password":n?"Register a new account":"Sign in to your account";var c=n?"Sign in":"Register";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mx-8 mt-20 flex items-center justify-center",children:(0,s.jsxs)("div",{className:"w-full max-w-md space-y-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"mt-6 text-center text-3xl font-normal tracking-tight text-white",children:r}),!i&&(0,s.jsxs)("p",{className:"mt-2 text-center text-sm text-white",children:["Or"," ",(0,s.jsx)(H(),{href:n?"/login":"/register",passHref:!0,children:(0,s.jsx)("a",{className:"font-medium text-brand-pink hover:text-brand-pink-dark",children:c})})]})]}),(0,s.jsx)(m,{isRegistering:n,isResettingPassword:i})]})}),(0,s.jsx)(_,{})]})}}}]);
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.