PageSourceSearch

https://www.hamlethub.com/_next/static/chunks/app/signin/page-eea2…?dpl=dpl_CJiR3L2uMXNH2Jt9M2d3m6tMmc6z

js hamlethub.com collected 2026-09-24 09:03:24 UTC 8,967 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4217],{755:e=>{e.exports={card:"auth_card__xr0X4",googleSlot:"auth_googleSlot___MmC2",googleBtn:"auth_googleBtn__T0zoU",divider:"auth_divider__E1L3N",dividerLine:"auth_dividerLine__nb48Q",row:"auth_row__b5sBz",stack:"auth_stack__6FOco",label:"auth_label__Nh6M1",emailInput:"auth_emailInput__rYKEW",honeypot:"auth_honeypot__xqIXQ",continueBtn:"auth_continueBtn__9f7_I",error:"auth_error__BhqnQ",fine:"auth_fine__QPSxl",sent:"auth_sent__x71qq"}},3681:(e,t,n)=>{"use strict";n.d(t,{f:()=>u});var a=n(9621),l=n(8929),i=n(1244);let r=(0,i.createServerReference)("4065249be97cb3e2094ac6b4e386d7dc811a8011ac",i.callServer,void 0,i.findSourceMapURL,"emailContinueAction");var o=n(3785),s=n(755),c=n.n(s);let d=/.+@.+\..+/;function u(e){let{placement:t,redirectTo:n,intent:i=null,townSlug:s="",beforeSubmit:u,onSent:_,onError:m,onFailed:g,layout:h="row",buttonLabel:v="Continue",placeholder:f="Your email address",disabled:p=!1,inputRef:b,className:w}=e,[y,k]=(0,l.useState)(""),[x,S]=(0,l.useState)(""),[j,E]=(0,l.useState)(!1);async function N(e){if(e.preventDefault(),j||p)return;let a=y.trim();if(!d.test(a)){m("Enter a valid email address."),(0,o.Wk)("signin","error",{method:"email",placement:t,error_message:"invalid_email"});return}E(!0),(0,o.Wk)("signin","start",{method:"email",placement:t}),null==u||u();let l=await r({email:a,website:x,townSlug:s||void 0,intent:i,redirectTo:"function"==typeof n?n():n});if(E(!1),l.ok){(0,o.Wk)("signin","submit",{method:"email",placement:t}),_(l.email,l.delayed);return}null==g||g(),m(l.error),(0,o.Wk)("signin","error",{method:"email",placement:t,error_message:l.error})}let T=(0,a.jsx)("input",{ref:b,type:"email",className:c().emailInput,placeholder:f,"aria-label":"stack"===h?void 0:"Email address",autoComplete:"email",value:y,onChange:e=>k(e.target.value),disabled:p});return(0,a.jsxs)("form",{className:"".concat("stack"===h?c().stack:c().row).concat(w?" ".concat(w):""),onSubmit:N,children:["stack"===h?(0,a.jsxs)("label",{className:c().label,children:["Email",T]}):T,(0,a.jsx)("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:c().honeypot,value:x,onChange:e=>S(e.target.value)}),(0,a.jsx)("button",{type:"submit",className:c().continueBtn,disabled:j||p,children:j?"Sending…":v})]})}},3785:(e,t,n)=>{"use strict";n.d(t,{_e:()=>c,NJ:()=>g,CR:()=>r,iv:()=>o,s3:()=>f,Wk:()=>_,Z0:()=>h,Ar:()=>d,WN:()=>u,xf:()=>s,sN:()=>v,_Y:()=>m});var a=n(3076);function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];try{if(!window.clarity){let e=function(){for(var t,n=arguments.length,a=Array(n),l=0;l<n;l++)a[l]=arguments[l];(null!=(t=e.q)?t:e.q=[]).push(a)};window.clarity=e}window.clarity(...t)}catch(e){}}var i=n(4248);function r(e){(0,a.sendGTMEvent)({event:"select_event_card",event_title:e.title,event_date:e.date,event_time:e.time,event_slug:e.slug})}function o(e){(0,a.sendGTMEvent)({event:"view_event_details",event_title:e.title,event_date:e.date,event_time:e.time,event_slug:e.slug,link_kind:e.kind})}function s(e,t,n){(0,a.sendGTMEvent)({event:"share_event",share_channel:e,event_slug:t,placement:n})}function c(e,t,n){(0,a.sendGTMEvent)({event:"add_to_calendar",calendar_target:e,event_slug:t,placement:n})}function d(e){let t=e.trim();t&&(0,a.sendGTMEvent)({event:"search",search_term:t})}function u(e,t,n){let l=e.trim();l&&(0,a.sendGTMEvent)({event:"search_results",search_term:l,result_count:t,place_not_found:n})}function _(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.sendGTMEvent)((0,i.RJ)(e,t,n)),l("set","flow",e),n.placement&&l("set","placement",n.placement),l("event",(0,i.OY)(e,t))}function m(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.sendGTMEvent)({event:"select_town",town_query:e.trim()||"all_towns",from_auto:t})}function g(e,t){(0,a.sendGTMEvent)({event:"auto_located",town_query:e,auto_radius_mi:t})}function h(e,t){(0,a.sendGTMEvent)({event:"follow_calendar",calendar_id:e,follow_op:t})}function v(e,t,n){(0,a.sendGTMEvent)({event:"tag_engagement",tag:e,engagement_kind:t,event_id:n});try{fetch("/api/track/tag",{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:e,kind:t,eventId:n})}).catch(()=>{})}catch(e){}}function f(e,t){(0,a.sendGTMEvent)({event:"event_engagement",engagement_kind:t,event_id:e});try{fetch("/api/track/event",{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify({eventId:e,kind:t})}).catch(()=>{})}catch(e){}}}
1,4248:(e,t,n)=>{"use strict";function a(e,t){return"".concat(e,"_").concat(t)}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l={event:a(e,t),flow:e,flow_step:t};for(let[e,t]of Object.entries(n))null!=t&&""!==t&&(l[e]="string"==typeof t&&t.length>100?t.slice(0,100):t);return l}n.d(t,{OY:()=>a,RJ:()=>l,X2:()=>o,w8:()=>s});let i="signedin",r=["google","one_tap","email"];function o(e,t){let[n,a=""]=e.split("?",2),l=new URLSearchParams(a);return l.set(i,t),"".concat(n,"?").concat(l.toString())}function s(e){let t=e.get(i);return t&&r.includes(t)?t:null}},4604:(e,t,n)=>{Promise.resolve().then(n.bind(n,6105))},5458:(e,t,n)=>{"use strict";n.d(t,{U:()=>d});var a=n(9621),l=n(8929),i=n(3123),r=n(4658),o=n(3785),s=n(755),c=n.n(s);function d(e){let{clientId:t,placement:n,flow:s="signin",redirectUrl:d,onSignedIn:u,onStart:_,onError:m,beforeRedirect:g,prompt:h=!0,disabled:v=!1}=e,f=(0,l.useRef)(null),p=(0,l.useRef)(!1),[b,w]=(0,l.useState)(!1);async function y(e){null==_||_(),(0,o.Wk)(s,"start",{method:"one_tap",placement:n});try{let t=await (0,r.Jv)("google-one-tap",{credential:e,redirect:!1});if(!t||t.error){(0,o.Wk)(s,"error",{method:"one_tap",placement:n,error_message:"one_tap_failed"}),null==m||m("Google sign-in didn't finish. Try the email option below.");return}"signin"===s&&(0,o.Wk)("signin","complete",{method:"one_tap",placement:n}),await u()}catch(e){(0,o.Wk)(s,"error",{method:"one_tap",placement:n,error_message:"exception"}),null==m||m("Something went wrong. Please try again.")}}function k(){var e,n;if(p.current||!t)return;let a=null==(n=window.google)||null==(e=n.accounts)?void 0:e.id;a&&(p.current=!0,a.initialize({client_id:t,callback:e=>{e.credential&&y(e.credential)}}),f.current&&a.renderButton(f.current,{theme:"outline",size:"large",text:"continue_with"}),h&&a.prompt())}return((0,l.useEffect)(()=>{k()},[]),t)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.default,{src:"https://accounts.google.com/gsi/client",strategy:"afterInteractive",onLoad:k,onError:()=>w(!0)}),(0,a.jsx)("div",{ref:f,className:c().googleSlot}),b?(0,a.jsx)("button",{type:"button",className:c().googleBtn,disabled:v,onClick:()=>{null==g||g(),(0,o.Wk)(s,"start",{method:"google",placement:n}),(0,r.Jv)("google",{callbackUrl:d})},children:"Continue with Google"}):null]}):null}},6105:(e,t,n)=>{"use strict";n.d(t,{SigninForm:()=>s});var a=n(9621),l=n(8929),i=n(7762),r=n(755),o=n.n(r);function s(e){let{callbackUrl:t,googleClientId:n}=e,[r,s]=(0,l.useState)(null);return r?(0,a.jsx)("p",{className:o().sent,children:r.delayed?(0,a.jsxs)(a.Fragment,{children:["We hit a snag sending to ",(0,a.jsx)("b",{children:r.email}),", so your link is queued. It should arrive within about half an hour, and it stays good for 24 hours."]}):(0,a.jsxs)(a.Fragment,{children:["Check your inbox. We sent a link to ",(0,a.jsx)("b",{children:r.email}),"."]})}):(0,a.jsx)("div",{className:o().card,children:(0,a.jsx)(i.x,{googleClientId:n,placement:"signin_page",returnTo:t,layout:"stack",emailButtonLabel:"Email me a sign-in link",emailPlaceholder:"[email protected]",onSignedIn:()=>{window.location.href=t},onSent:(e,t)=>s({email:e,delayed:t}),fine:"We'll email you a one-time link. No password needed."})})}},7762:(e,t,n)=>{"use strict";n.d(t,{x:()=>d});var a=n(9621),l=n(8929),i=n(4248),r=n(3681),o=n(5458),s=n(755),c=n.n(s);function d(e){let{googleClientId:t,placement:n,returnTo:s,intent:d=null,beforeLeave:u,onSignedIn:_,onSent:m,onFailed:g,layout:h="row",emailButtonLabel:v,emailPlaceholder:f,prompt:p=!0,fine:b}=e,[w,y]=(0,l.useState)(null),[k,x]=(0,l.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.U,{clientId:t,placement:n,redirectUrl:(0,i.X2)(s,"google"),prompt:p,disabled:k,beforeRedirect:u,onStart:()=>{x(!0),y(null)},onSignedIn:_,onError:e=>{x(!1),y(e)}}),(0,a.jsxs)("div",{className:c().divider,"aria-hidden":!0,children:[(0,a.jsx)("span",{className:c().dividerLine}),"or",(0,a.jsx)("span",{className:c().dividerLine})]})]}):null,(0,a.jsx)(r.f,{placement:n,redirectTo:(0,i.X2)(s,"email"),intent:d,beforeSubmit:()=>{y(null),null==u||u()},onSent:m,onError:y,onFailed:g,layout:h,buttonLabel:v,placeholder:f,disabled:k}),w?(0,a.jsx)("p",{className:c().error,role:"alert",children:w}):null,b?(0,a.jsx)("p",{className:c().fine,children:b}):null]})}}},e=>{e.O(0,[5323,3076,3609,1976,5785,7358],()=>e(e.s=4604)),_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.