PageSourceSearch

https://theyeshiva.net/_next/static/chunks/pages/sign-up/complete-fd07ace8cd8d87fa.js

js theyeshiva.net collected 2026-10-02 03:00:58 UTC 8,034 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5676c45c-1ce5-4a26-b520-cd18a7016ff0",e._sentryDebugIdIdentifier="sentry-dbid-5676c45c-1ce5-4a26-b520-cd18a7016ff0")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[707],{19900:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>h,default:()=>y});var n=a(28019),s=a(38387),l=a(95166),r=a(81351),o=a.n(r),i=a(47451),c=a(92258),x=a(76002),d=a(17175),p=a(8253),u=a(14676),m=a(14062),f=a(88292),g=a(91893),h=!0;function y(){let{setUser:e,setToken:t}=(0,m.A)(),a=(0,f.useRouter)(),s="string"==typeof a.query.token?a.query.token:null,r={control:(e,t)=>({...e,border:"none",borderBottom:"1px solid #E9E9E9",boxShadow:"none",borderRadius:0,paddingLeft:0,paddingRight:0,minHeight:"30px",backgroundColor:"transparent",cursor:"pointer","&:hover":{borderBottom:"1px solid #E9E9E9"}}),menu:e=>({...e,backgroundColor:"white",borderRadius:"6px",boxShadow:"0 4px 11px rgba(0, 0, 0, 0.1)",marginTop:4,zIndex:20}),option:(e,t)=>({...e,backgroundColor:t.isFocused?"#E5F0FF":t.isSelected?"#67B67D":"#ffffff",color:t.isSelected?"#ffffff":"#3D4A52",padding:"10px 16px",fontWeight:t.isSelected?600:400,cursor:"pointer"}),indicatorSeparator:()=>({display:"none"}),valueContainer:e=>({...e,paddingLeft:0}),placeholder:()=>({display:"none"}),singleValue:e=>({...e,fontWeight:300,color:"#304C5A"})},{t:h}=(0,l.A)("common"),y=d.Ik().shape({first_name:d.Yj().required(h("required")),last_name:d.Yj().required(h("required")),language_code:d.Yj().required(h("required"))}),b=(0,x.oY)(),[_,v]=(0,i.useState)(null),[j,N]=(0,i.useState)({first_name:"",last_name:"",language_code:5===Number("2")?"he":"en",age:void 0,country:void 0,state:void 0,city:void 0,file:void 0});(0,i.useEffect)(()=>{if(s)return;let e=sessionStorage.getItem("signUpPayload");if(e){let t=JSON.parse(e);v(t),console.log(t,"parsed"),N(e=>({...e,first_name:(null==t?void 0:t.first_name)||"",last_name:(null==t?void 0:t.last_name)||""}))}},[s]),(0,i.useEffect)(()=>{if(!s)return;let e={token:s,tokenColumn:"apple_token"};sessionStorage.setItem("signUpPayload",JSON.stringify(e)),v(e)},[s]);let{values:k,errors:w,handleSubmit:S,handleChange:C,resetForm:E,setFieldValue:I}=(0,c.Wx)({initialValues:j,enableReinitialize:!0,onSubmit:async n=>{if(_)try{let s=await b.mutateAsync({...n,token:_.token,tokenColumn:_.tokenColumn}),{user:l,token:r}=s;localStorage.setItem("user",JSON.stringify(l)),e(l),localStorage.setItem("token",r),g.A.set("token",r,{path:"/",expires:7,secure:!0,sameSite:"lax"}),t(r),s.refresh_token&&await fetch("/api/auth/set-token",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:r,refresh_token:s.refresh_token,user:l})}),E(),sessionStorage.removeItem("signUpPayload"),a.push("/user/library")}catch(e){console.error(e)}},validationSchema:y,validateOnBlur:!0,validateOnChange:!1}),{data:O}=(0,p.WG)(),{data:P}=(0,p.QP)(k.country);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o(),{children:[(0,n.jsx)("meta",{property:"og:description",content:h("meta_description")}),(0,n.jsx)("meta",{property:"og:image",content:"/images/meta-logo.jpg"}),(0,n.jsx)("title",{children:"".concat(h("default_title")," - ").concat(h("sign_up"))}),(0,n.jsx)("meta",{property:"og:title",content:"".concat(h("sign_up")," - ").concat(h("metaTitle"))})]}),(0,n.jsx)("section",{className:"bg-granulated-sugar py-[40px]",children:(0,n.jsx)("div",{className:"container flex m-auto bg-white py-[40px] rounded-[24px]",children:(0,n.jsxs)("form",{className:"max-w-[480px] w-full mx-auto",onSubmit:S,children:[(0,n.jsx)("h2",{className:"font-[500] text-light-celtic text-center text-[28px]",children:h("sign_up_your_account")}),(0,n.jsx)("h3",{className:"font-[300] text-light-celtic mb-[25px] text-center text-[20px]",children:h("enter_your_details")}),(0,n.jsxs)("div",{className:"flex items-center w-full gap-[15px] my-[20px]",children:[(0,n.jsxs)("div",{className:"flex w-1/2 flex-col relative",children:[(0,n.jsx)("label",{className:"text-[15px] font-[300] text-dark-gray",children:h("first_name")}
1),(0,n.jsx)("input",{name:"first_name",value:k.first_name,onChange:C,className:"text-[15px] appearance-none outline-none border-b-[1px] py-[3px] text-light-celtic ".concat((null==w?void 0:w.first_name)?"border-republican":"border-border-gray")}),"string"==typeof w.first_name&&(0,n.jsx)("span",{className:"px-[4px] text-[14px] absolute bottom-[-24px] text-republican text-right mt-[5px] block",children:w.first_name})]}),(0,n.jsxs)("div",{className:"flex w-1/2 flex-col relative",children:[(0,n.jsx)("label",{className:"text-[15px] font-[300] text-dark-gray",children:h("last_name")}),(0,n.jsx)("input",{name:"last_name",value:k.last_name,onChange:C,className:"text-[15px] appearance-none outline-none border-b-[1px] py-[3px] text-light-celtic ".concat((null==w?void 0:w.last_name)?"border-republican":"border-border-gray")}),"string"==typeof w.last_name&&(0,n.jsx)("span",{className:"absolute bottom-[-24px] px-[4px] text-[14px] text-republican text-right mt-[5px] block",children:w.last_name})]})]}),(0,n.jsxs)("div",{className:"flex flex-col mb-[20px]",children:[(0,n.jsx)("label",{className:"text-[15px] font-[300] text-dark-gray mb-[10px]",children:h("your_age")}),(0,n.jsx)("div",{className:"flex flex-wrap gap-[20px]",children:p.My.map(e=>(0,n.jsxs)("label",{className:"flex items-center font-[300] gap-[8px] text-dark-gray cursor-pointer",children:[(0,n.jsx)("input",{type:"radio",name:"age",value:e.value,checked:k.age===e.value,onChange:C,className:"custom-radio"}),(0,n.jsx)("span",{className:"text-[15px]",children:e.label})]},e.value))}),"string"==typeof w.age&&(0,n.jsx)("span",{className:"px-[4px] text-[14px] text-republican text-right mt-[5px] block",children:w.age})]}),(0,n.jsxs)("div",{className:"flex items-center gap-[15px] mb-[20px]",children:[(0,n.jsxs)("div",{className:"flex flex-col w-1/2",children:[(0,n.jsx)("label",{className:"text-[15px] font-[300] text-dark-gray",children:h("country")}),(0,n.jsx)(u.Ay,{instanceId:"country-select",options:O,value:O.find(e=>e.value===k.country),onChange:e=>{I("country",null==e?void 0:e.value),I("state",void 0),I("city",void 0)},styles:r}),"string"==typeof w.country&&(0,n.jsx)("span",{className:"px-[4px] text-[14px] text-republican text-right mt-[5px] block",children:w.country})]}),(0,n.jsxs)("div",{className:"flex flex-col w-1/2",children:[(0,n.jsx)("label",{className:"text-[15px] font-[300] text-dark-gray",children:h("state")}),(0,n.jsx)(u.Ay,{instanceId:"state-select",options:P,value:P.find(e=>e.value===k.state),onChange:e=>{I("state",null==e?void 0:e.value),I("city",void 0)},isDisabled:!k.country,styles:r,classNamePrefix:"react-select"}),"string"==typeof w.state&&(0,n.jsx)("span",{className:"px-[4px] text-[14px] text-republican text-right mt-[5px] block",children:w.state})]})]}),(0,n.jsxs)("div",{className:"flex flex-col mb-[20px]",children:[(0,n.jsx)("label",{className:"text-[15px] font-[300] text-dark-gray",children:h("city")}),(0,n.jsx)("input",{name:"city",value:k.city,onChange:C,className:"text-[15px]  outline-none border-b-[1px] py-[3px] text-light-celtic ".concat((null==w?void 0:w.city)?"border-republican":"border-border-gray")}),"string"==typeof w.city&&(0,n.jsx)("span",{className:"px-[4px] text-[14px] text-republican text-right mt-[5px] block",children:w.city})]}),(0,n.jsx)("div",{children:(0,n.jsx)("button",{type:"submit",className:"bg-earth-yellow font-[500] mx-auto text-white w-fit hover:bg-earth-yellow-darken py-[12px] px-[55px] rounded-[30px] flex justify-center uppercase transition ease-in-out duration-300 cursor-pointer",children:h("continue")})})]})})})]})}y.getLayout=function(e){return(0,n.jsx)(s.PE,{children:e})}},50134:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/sign-up/complete",function(){return a(19900)}])}},e=>{e.O(0,[636,593,792],()=>e(e.s=50134)),_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.