PageSourceSearch

https://simchattorahchallenge.org/_next/static/chunks/1341-3414d188516147c2.js

js simchattorahchallenge.org collected 2026-10-02 15:29:20 UTC 12,393 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c89fa746-00e0-4ea3-967a-61868cf79a92",e._sentryDebugIdIdentifier="sentry-dbid-c89fa746-00e0-4ea3-967a-61868cf79a92")}catch(e){}}(),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c89fa746-00e0-4ea3-967a-61868cf79a92",e._sentryDebugIdIdentifier="sentry-dbid-c89fa746-00e0-4ea3-967a-61868cf79a92")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1341],{46607:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(57437),o=n(13581),r=n(46601),l=n.n(r);function i(e){let{types:t,labels:n,placeholders:r,name:i,onClick:s,showIndicator:c,errorClassName:u}=e;return(0,a.jsx)(o.gN,{name:i,children:e=>{let{field:o,form:i,meta:d}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"".concat(l().inputContainer," ").concat(!0===c?l().lefiIndicator:""),children:[(0,a.jsx)("label",{className:l().label,children:n}),(0,a.jsx)("input",{type:t,placeholder:r,...o,onClick:s})]}),(0,a.jsx)("div",{className:"".concat(l().error," ").concat(u||""),children:d.touched&&d.error&&d.error})]})}})}},43008:function(e,t,n){"use strict";var a=n(57437);n(2265);var o=n(37938),r=n.n(o);t.Z=()=>(0,a.jsx)("div",{className:r().loader})},36408:function(e,t,n){"use strict";n.d(t,{VI:function(){return r},q7:function(){return l}});var a=n(7608);let o=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,r=a.Ry({firstName:a.Z_().required("First Name is required"),lastName:a.Z_().required("Last Name is required"),email:a.Z_().required("Email Address is required").matches(o,"Invalid Email Address").transform(e=>null==e?void 0:e.trim().toLowerCase()),hasConset:a.O7().oneOf([!0,!1]).default(!0)}),l=a.Ry({fullName:a.Z_().required("Please enter your name.").test("two-words","Please enter your first and last name.",e=>(e||"").trim().split(/\s+/).filter(Boolean).length>=2),email:a.Z_().required("Please enter your email address.").matches(o,"Please enter a valid email address.").transform(e=>null==e?void 0:e.trim().toLowerCase()),hasConset:a.O7().oneOf([!0,!1]).default(!0)})},1562:function(e,t,n){"use strict";n.d(t,{E:function(){return s},H:function(){return i}});var a=n(57437),o=n(87615),r=n(2265);let l=(0,r.createContext)();function i(e){let{children:t}=e,[n,i]=(0,r.useState)(void 0),[s,c]=(0,r.useState)([]),[u,d]=(0,r.useState)(!1),m=async(e,t,n,a,r)=>{try{return e.utm=t,n&&(e.mailchimp_tag=n),a&&(e.utm_source=a),r&&(e.utm_campaign=r),await o.ZP.signup(e)}catch(e){throw e}},f=async(e,t)=>{try{let n=localStorage.getItem("user_token");return await o.ZP.updateUserDetails(e,t,n)}catch(e){throw e}};return(0,a.jsx)(l.Provider,{value:{signup:m,openedImageIndex:n,setOpenedImageIndex:i,communityCarousel:s,setCommunityCarousel:c,isOverlayVisible:u,setOverlayVisible:d,toggleOverlay:()=>{d(!u)},updateUserDetails:f},children:t})}function s(){return(0,r.useContext)(l)}},78979:function(e,t,n){"use strict";n.d(t,{N:function(){return i},U:function(){return l}});var a=n(57437),o=n(2265);let r=(0,o.createContext)();function l(e){let{children:t}=e,[n,l]=(0,o.useState)({utm_source:null,utm_campaign:null});return(0,o.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.get("utm_source"),n=e.get("utm_campaign");if(t||n){let e={utm_source:t||null,utm_campaign:n||null};l(e),sessionStorage.setItem("utm_params",JSON.stringify(e)),console.log("UTM params updated:",e)}else{let e=sessionStorage.getItem("utm_params");if(e)try{let t=JSON.parse(e);l(t)}catch(e){console.error("Error parsing stored UTM params:",e)}}},[]),(0,a.jsx)(r.Provider,{value:{utmParams:n,clearUtmParams:()=>
1{l({utm_source:null,utm_campaign:null}),sessionStorage.removeItem("utm_params")}},children:t})}function i(){let e=(0,o.useContext)(r);if(!e)throw Error("useUtmContext must be used within UtmProvider");return e}},31612:function(e,t,n){"use strict";let a=n(68564),o=[...a.POPULAR_DOMAINS,"outlook.com","hotmail.com","live.com","yahoo.com","yahoo.co.uk","yahoo.co.il","harvard.edu","yale.edu","stanford.edu","mit.edu","columbia.edu","nyu.edu","princeton.edu","berkeley.edu","cornell.edu","upenn.edu"],r=new Set(["con","comm","cm"]),l=["gmaol.com","gamil.com","gmial.com","gmai.com","gmali.com","gmaill.com","gnail.com","gmal.com","gmeil.com","yaho.com","yahooo.com","yhaoo.com","yahho.com","hotmial.com","hotmai.com","hormail.com","hotamil.com","hotmall.com","homail.com","hotmaill.com","outlok.com","outllok.com","oulook.com","aoll.com","iclod.com","icoud.com"],i=new Set([...l,"gmail.om","gmailc.om","yahoo.om"]);for(let e of[...o,...l]){if(!e.endsWith(".com"))continue;let t=e.slice(0,-3);for(let e of r)i.add("".concat(t).concat(e))}e.exports={EMAIL_DOMAINS:o,suggestEmail:function(e){let t=String(e||"").trim().toLowerCase(),n=t.lastIndexOf("@");if(n<1||n===t.length-1)return;let l=t.slice(0,n),i=t.slice(n+1);if(o.includes(i))return;let s=o.filter(e=>i.startsWith(e)&&i.length>e.length).sort((e,t)=>t.length-e.length)[0];if(s)return{address:l,domain:s,full:"".concat(l,"@").concat(s)};let c=i.lastIndexOf("."),u=-1===c?"":i.slice(c+1);if(r.has(u)){let e="".concat(i.slice(0,c),".com"),t=a.run({email:"".concat(l,"@").concat(e),domains:o});return t&&o.includes(String(t.domain))?t:{address:l,domain:e,full:"".concat(l,"@").concat(e)}}let d=a.run({email:t,domains:o});if(!d)return;let m=String(d.domain||"");return o.includes(m)?d:i.split(".")[0]===m.split(".")[0]?d:void 0},TYPO_BLOCKLIST:i,isBlockedTypoDomain:function(e){let t=String(e||"").trim().toLowerCase(),n=t.lastIndexOf("@");return -1!==n&&i.has(t.slice(n+1))}}},40895:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(57437),o=n(13581),r=n(86626),l=n.n(r);function i(e){let{labels:t,name:n,onClick:r,labelClassName:i}=e;return(0,a.jsx)(o.gN,{name:n,"data-sentry-element":"Field","data-sentry-component":"CheckBoxInputField","data-sentry-source-file":"checkboxInputField.jsx",children:e=>{let{field:o,form:s,meta:c}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:l().inputContainer,children:[(0,a.jsx)("div",{className:l().checkboxWrapper,children:(0,a.jsx)("input",{type:"checkbox",id:"checkbox-".concat(n),className:l().checkbox,...o,checked:o.value,onClick:r})}),(0,a.jsx)("label",{className:"".concat(l().label," ").concat(i||""),htmlFor:"checkbox-".concat(n),onClick:e=>{e.preventDefault(),e.stopPropagation(),s.setFieldValue(n,!o.value)},children:t})]}),c.touched&&c.error&&(0,a.jsx)("div",{className:l().error,children:c.error})]})}})}},28100:function(e,t,n){"use strict";n.d(t,{Z:function(){return c},y:function(){return s}});var a=n(57437),o=n(2265),r=n(31612),l=n(50998),i=n.n(l);function s(){let[e,t]=(0,o.useState)(null),n=(0,o.useRef)(null);return{suggestion:e,intercept:(e,a,o)=>{let l=(0,r.suggestEmail)(null==e?void 0:e.email);return!!l&&(t(l),n.current={values:e,formikHelpers:a,proceed:o},a.setSubmitting(!1),!0)},choose:e=>{t(null);let a=n.current;a&&(n.current=null,a.formikHelpers.setFieldValue("email",e),a.proceed({...a.values,email:e},a.formikHelpers))},dismiss:()=>{t(null),n.current=null}}}function c(e){let{suggestion:t,currentEmail:n,onChoose:r,onDismiss:l}=e,s=(0,o.useRef)(null);return((0,o.useEffect)(()=>{let e=s.current;e&&t&&!e.open&&e.showModal()},[t]),t)?(0,a.jsx)("dialog",{ref:s,className:i().emailModal,onCancel:e=>{e.preventDefault(),l()},onClick:e=>{e.target===s.current&&l()},"data-sentry-component":"EmailSuggestionModal","data-sentry-source-file":"EmailSuggestionModal.jsx",children:(0,a.jsxs)("div",{className:i().emailModalContent,children:[(0,a.jsx)("button",{type:"button",className:i().emailModalClose,onClick:l,children:"\xd7"}),(0,a.jsxs)("p",{children:["Did you mean ",(0,a.jsx)("strong",{children:t.domain}),"?"]}),(0,a.jsxs)("div",{className:i().emailModalActions,children:[(0,a.jsxs)("button",{type:"button",className:i().emailModalBtnPrimary,onClick:()=>r(t.full),children:["Use ",t.full]}),(0,a.jsxs)("button",{type:"button",className:i().emailModalBtnSecondary,onClick:()=>r(n),children:["Keep ",n]})]})]})}):null}},55192:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});
1var a=n(57437),o=n(2265),r=n(13581),l=n(36408),i=n(28100),s=n(1562),c=n(78979),u=n(22822);function d(e){let{children:t,mailchimpTag:n,...d}=e,m=(0,u.useSearchParams)(),f=(0,u.useRouter)(),{signup:h}=(0,s.E)(),{utmParams:p}=(0,c.N)(),g=l.VI,[_,y]=(0,o.useState)({message:"",type:"success"}),[v,x]=(0,o.useState)(!1),{suggestion:b,intercept:w,choose:k,dismiss:S}=(0,i.y)(),C=async(e,t)=>{var a,o,r,l;let{setSubmitting:i,resetForm:s}=t;i(!0);try{let t=null!==(a=m.get("utm_content"))&&void 0!==a?a:"",r={...e};r.email=(null!==(o=r.email)&&void 0!==o?o:"").trim().toLowerCase();let l=await h(r,t,n,p.utm_source,p.utm_campaign);y({message:"You successfully signed up!",type:"success"}),x(!0),s(),localStorage.setItem("user_email",e.email),localStorage.setItem("user_token",l.token),f.push("/success")}catch(t){let e="Unable to complete signup. Please try again later.";(null==t?void 0:null===(l=t.response)||void 0===l?void 0:null===(r=l.data)||void 0===r?void 0:r.message)&&(e=t.response.data.message),y({message:e,type:"error"}),x(!1)}finally{i(!1)}},[I,E]=(0,o.useState)(-1),[N,M]=(0,o.useState)(window.innerWidth);(0,o.useEffect)(()=>{let e=()=>M(window.innerWidth);return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]);let[j,P]=(0,o.useState)([{type:"text",name:"firstName",placeholder:"Enter your first name"},{type:"text",name:"lastName",placeholder:"Enter your last name"},{type:"email",name:"email",placeholder:"Enter your email address"},{type:"checkbox",name:"hasConset",label:"Yes, I'd love to receive relevant content from Simchat Torah Challenge partners."}]),L=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=()=>{if("#sign-up"===window.location.hash){let e=document.getElementById("sign-up");e&&setTimeout(()=>{e.scrollIntoView({behavior:"smooth"})},100)}};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]),(0,o.useEffect)(()=>{document.addEventListener("click",e=>{L.current&&!L.current.contains(e.target)&&E(-1)})},[]),(0,o.useEffect)(()=>{{let e=new URLSearchParams(window.location.search).get("scroll")||window.location.hash.replace("#","");if(e){let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView({behavior:"smooth"}),100)}}},[]);let F={fields:j,setFields:P,isFocused:I,setIsFocused:E,windowWidth:N,setWindowWidth:M,apimessage:_,setApiMessage:y,isSubmittedSuccessfully:v,setIsSubmittedSuccessfully:x,handleCopyLink:()=>{let e=window.location.origin;navigator.clipboard.writeText(e).then(()=>{alert("Link copied to clipboard!")})},emailSuggestion:b,confirmEmailChoice:k,dismissEmailSuggestion:S,ref:L,...d};return(0,a.jsx)(r.J9,{initialValues:{firstName:"",lastName:"",email:"",hasConset:!0},validationSchema:g,validateOnBlur:!1,validateOnChange:!1,onSubmit:(e,t)=>{w(e,t,C)||C(e,t)},"data-sentry-element":"Formik","data-sentry-component":"SignUp","data-sentry-source-file":"signup.jsx",children:e=>{let{isValid:n,dirty:a,isSubmitting:o,errors:r,touched:l,values:i}=e;return"function"==typeof t?t({isValid:n,dirty:a,isSubmitting:o,errors:r,touched:l,values:i,...F}):null}})}},46601:function(e){e.exports={inputContainer:"InputFields_inputContainer__rpuv3",lefiIndicator:"InputFields_lefiIndicator__DDJG_",error:"InputFields_error__IfTbi"}},37938:function(e){e.exports={loader:"Loader_loader__LGXA3",spin:"Loader_spin__tqPOZ"}},86626:function(e){e.exports={inputContainer:"checkboxInputField_inputContainer__JMpoQ",checkboxWrapper:"checkboxInputField_checkboxWrapper__mCHdg",checkbox:"checkboxInputField_checkbox__8PDQr",label:"checkboxInputField_label__ef2Vs",error:"checkboxInputField_error__9u_zn"}},50998:function(e){e.exports={emailModal:"EmailSuggestionModal_emailModal__ICXME",emailModalContent:"EmailSuggestionModal_emailModalContent__8SCcv",emailModalClose:"EmailSuggestionModal_emailModalClose__GeLpX",emailModalActions:"EmailSuggestionModal_emailModalActions__6184A",emailModalBtnPrimary:"EmailSuggestionModal_emailModalBtnPrimary__oaJcU",emailModalBtnSecondary:"EmailSuggestionModal_emailModalBtnSecondary__ukVr9"}}}]);

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.