1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4252],{3532:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(14232);let r=s.forwardRef(function(e,t){let{title:a,titleId:r,...n}=e;return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},n),a?s.createElement("title",{id:r},a):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))})},8794:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(37876),r=a(79571),n=a(34933);function l(e){return(0,s.jsxs)(r.a,{seo:null==e?void 0:e.seo,children:[(0,s.jsx)(n.A,{seo:null==e?void 0:e.seo}),(0,s.jsx)("main",{className:"overflow-x-hidden",children:null==e?void 0:e.children})]})}},13907:(e,t,a)=>{"use strict";a.d(t,{A_:()=>u,gU:()=>d,zM:()=>x});var s=a(37876),r=a(45256),n=a(69241),l=a(33905),i=a(14232),c=a(55286);let o="block w-full appearance-none bg-bgLightGray px-3 py-3 focus:bg-bgLightGrayTextFieldFocus focus:border-primaryBlue text-grayInputTextFields text-sm";function d(e){let{id:t,label:a,className:r="",formClassName:o="",showErrors:d=!0,onFileSelect:u,...x}=e,[m,h]=(0,i.useState)(!1),[p,f]=(0,i.useState)(""),g=(0,i.useRef)(null),{t:v}=(0,c.Bd)(["common"]),{setFieldValue:j,values:y}=(0,l.j7)(),w=e=>{e.preventDefault(),e.stopPropagation(),"dragenter"===e.type||"dragover"===e.type?h(!0):"dragleave"===e.type&&h(!1)},b=e=>{f(e.name),j(t,e),u&&u(e)};return(0,i.useEffect)(()=>{!y[t]&&(f(""),g.current&&(g.current.value=""))},[t,y]),(0,s.jsxs)("div",{className:(0,n.A)(r,"relative border-2 border-dashed rounded-3xl transition-colors",m?"border-primaryBlue":"border-gray-300"),onDragEnter:w,onDragLeave:w,onDragOver:w,onDrop:e=>{e.preventDefault(),e.stopPropagation(),h(!1),e.dataTransfer.files&&e.dataTransfer.files[0]&&b(e.dataTransfer.files[0])},children:[(0,s.jsxs)("label",{htmlFor:t,className:"flex flex-col items-center justify-center p-6 cursor-pointer",children:[(0,s.jsx)("span",{className:"text-gray-700 text-sm",children:a}),(0,s.jsx)("span",{className:"text-gray-500 text-xs mt-1",children:v("dropFileAreaIndications")}),(0,s.jsx)("button",{type:"button",onClick:()=>{g.current&&g.current.click()},className:"mt-2 px-4 py-2 bg-primaryBlue text-white rounded-3xl text-xs",children:v("selectFileLabel")}),p&&(0,s.jsxs)("span",{className:"mt-2 text-sm text-gray-700",children:[v("File"),": ",p]})]}),(0,s.jsx)("input",{ref:g,id:t,type:"file",className:"hidden",onChange:e=>{let t=e.target.files[0];t&&b(t)},...x}),d&&(0,s.jsx)(l.Kw,{name:t,component:"div",className:"text-xs text-center text-red-500 px-3 mt-1 mb-5"})]})}function u(e){let{id:t,label:a,type:c="text",asTextarea:d=!1,className:u="",formClassName:x="",showErrors:m=!0,...h}=e,[p,f]=(0,i.useState)(c),[g,v]=(0,i.useState)("password"===c);return(0,s.jsxs)("div",{className:u,children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(l.D0,{placeholder:a,id:t,type:p,...h,onFocus:e=>{"date"===c&&(e.currentTarget.placeholder="")},className:(0,n.A)(g?"block w-[90%] appearance-none bg-bgLightGray px-3 py-3 focus:bg-bgLightGrayTextFieldFocus focus:border-primaryBlue text-grayInputTextFields text-sm":o,x,"placeholder-grayPlaceholder"),as:d?"textarea":"input"}),g&&(0,s.jsx)("button",{type:"button",onClick:()=>{"text"===p?f("password"):f("text")},className:"".concat("text"===p?"text-black":"text-gray-300"," flex flex-row items-center justify-center"),children:(0,s.jsx)(r.A,{className:"w-6 h-6"})})]}),m&&(0,s.jsx)(l.Kw,{name:t,component:"div",className:"text-xs text-red-500 px-3"})]})}function x(e){let{id:t,label:a,className:r="",formClassName:i,error:c,...d}=e;return(0,s.jsxs)("div",{className:"".concat(r," relative"),children:[(0,s.jsx)("div",{children:(0,s.jsx)(l.D0,{placeholder:a,as:"select",id:t,...d,className:(0,n.A)(o,"pr-8 placeholder-primaryBlue text-primaryBlue",i)})}),c&&(0,s.jsx)("div",{className:"col-span-full ml-2 mt-1 text-xs text-red-500",children:c}),!d.disabled&&(0,s.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-4 text-black",children:(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})})]})}},16219:(e,t,a)=>{"use strict";a(14232)},42634:()=>{},45256:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(14232);let r=s.forwardRef(function(e,t){let{title:a,titleId:r,...n}=e;return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},n),a?s.createElement("title",{id:r},a):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))})},57723:(e,t,a)=>{"use strict";a.d(t,{CG:()=>l,_E:()=>i,cp:()=>n});var s=a(74992),r=a(94559);async function n(e){let t=(0,s.xI)(),a=await t.currentUser.getIdToken(),n=await (0,r.X$)("/V1.0/auth/profile",{},{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(a)},body:JSON.stringify(e)});if("success"!=n)throw Error(n||"Failed to register lead.");return n}async function l(e){let t=(0,s.xI)(),a=await t.currentUser.getIdToken(),n=await (0,r.X$)("/V1.0/auth/newsletter-notifications",{},{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(a)},body:JSON.stringify(e)});if("success"!=n)throw Error(n||"Failed to save newsletter notifications.");return n}async function i(){let e=(0,s.xI)(),t=await e.currentUser.getIdToken();return await (0,r.X$)("/V1.0/auth/newsletter-notifications",{},{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}})}},61468:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/signup",function(){return a(71865)}])},71865:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>w,default:()=>b});
1var s=a(37876),r=a(55286),n=a(14232),l=a(8794),i=a(89099),c=a(74992),o=a(47266),d=a(33905),u=a(91408);let x=e=>u.Ik().shape({name:u.Yj().required(e("This field is required.")),lastName:u.Yj().required(e("This field is required.")),email:u.Yj().email(e("Must be a valid email address.")).required(e("This field is required.")),password:u.Yj().matches(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&.])[A-Za-z\d@$!%*#?&.]{8,}$/,e("passwordRestrictions")).required(e("This field is required."))});var m=a(13907),h=a(48230),p=a.n(h),f=a(54587),g=a.n(f);a(16219);var v=a(3532),j=a(57723);function y(e){var t;let{t:a}=(0,r.Bd)(["auth"]),l=(0,r.Bd)(["common"]).t,[u,h]=(0,n.useState)(!1),[f,y]=(0,n.useState)(!1),[w,b]=(0,n.useState)(3),[N,k]=(0,n.useState)(!0),[T,A]=(0,n.useState)(!1),[S,_]=(0,n.useState)(null),[C,E]=(0,n.useState)(!1),R=(0,i.useRouter)(),{returnUrl:L}=R.query,{customFinishAction:I}=e,B=null!=(t=e.onCreating)?t:e=>{},P=(0,c.xI)(),{reloadClaims:D,reloadUser:F,goToMainPage:O}=(0,o.A)(),q=()=>{I?I():(setTimeout(()=>{b(w-1)},1e3),setTimeout(()=>{b(w-2)},2e3),setTimeout(()=>{L?R.push(decodeURIComponent(L)):O()},3e3))},U=async e=>{_(null),h(!0),B(!0),k(!1),await (0,c.eJ)(P,e.email,e.password).then(async t=>{await (0,j.cp)(e).then(async e=>{await D(t.user),await F(t.user),h(!1),A(!0),q()}).catch(e=>{h(!1),k(!0),B(!1),_(e.message)})}).catch(e=>{let t;_("auth/email-already-in-use"===e.code?a("error3"):a("error2")),h(!1),k(!0),B(!1)})};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"flex flex-col lg:flex-row w-full h-screen",children:(0,s.jsxs)("div",{className:"w-full lg:w-1/2 flex-grow flex flex-col items-center justify-center",children:[(0,s.jsx)("div",{children:(0,s.jsx)(p(),{href:"/",draggable:!1,children:(0,s.jsx)(g(),{src:"/assets/scripture-central-logo-black.png",alt:"Scripture Central",width:350,height:98,className:"h-16 xl:h-20 object-contain",priority:!0})})}),(0,s.jsxs)("h2",{className:"text-[25px] lg:text-[36px] text-center",children:[a("signupTitle"),"."]}),u&&(0,s.jsxs)("div",{className:"flex flex-col h-60 items-center justify-center",children:[(0,s.jsx)(v.A,{strokeWidth:1.5,stroke:"currentColor",className:"mr-2 h-6 w-6 animate-spin mb-4"}),a("creatingAccount")," ..."]}),T&&(0,s.jsxs)("div",{className:"mt-10 flex flex-col items-center justify-center ",children:[(0,s.jsx)("h2",{className:"pb-16 font-semibold",children:a("welcome")}),I&&(0,s.jsx)("span",{className:"inline-flex items-center rounded-md bg-green-50 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20",children:a("accountRegisteredSuccess")}),!I&&(0,s.jsxs)("div",{className:"flex flex-col ",children:[(0,s.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,s.jsx)("p",{className:"inline-flex items-center text-center rounded-md bg-green-50 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20",children:a("accountRegisteredSuccess")})}),(0,s.jsxs)("p",{className:"mt-4 text-center text-xs",children:[a("redirectingIn").replace("{}","".concat(w)),"..."]})]})]}),(0,s.jsx)("div",{className:!u&&N?"":"hidden",children:(0,s.jsx)(d.l1,{initialValues:{name:"",lastName:"",email:"",password:""},validationSchema:x(a),onSubmit:(e,t)=>{let{setSubmitting:a}=t;a(!0),U(e).finally(()=>{a(!1)})},children:(0,s.jsx)("div",{className:"w-[270px] sm:w-[458px] flex flex-col",children:(0,s.jsxs)(d.lV,{noValidate:!0,action:"#",className:"mt-3 space-y-3",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsx)(m.A_,{label:a("name"),id:"name",name:"name",type:"text",autoComplete:"given-name",showErrors:f,required:!0}),(0,s.jsx)(m.A_,{label:a("lastName"),id:"lastName",name:"lastName",type:"text",autoComplete:"family-name",showErrors:f,required:!0})]}),(0,s.jsx)("div",{children:(0,s.jsx)(m.A_,{className:"col-span-full",label:a("email"),id:"email",name:"email",type:"email",autoComplete:"email",required:!0,showErrors:f})}),(0,s.jsx)("div",{children:(0,s.jsx)(m.A_,{className:"col-span-full",label:a("password"),id:"password",name:"password",type:"password",autoComplete:"new-password",required:!0,showErrors:f})}),(0,s.jsx)("div",{className:"flex flex-row items-center justify-center space-y-2 w-full",children:(0,s.jsxs)("label",{className:"flex items-center space-x-2 text-xs text-gray-400",children:[(0,s.jsx)(d.D0,{type:"radio",name:"toggleDiv",checked:C,onChange:()=>{E(!C)},className:"form-radio h-4 w-4 text-primaryBlue"}),(0,s.jsx)("span",{children:a("newsReceive")})]})}),C&&(0,s.jsx)("div",{className:"flex flex-col items-center justify-center space-y-2 w-full",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"flex items-center space-x-2 text-xs text-gray-400 pb-2",children:[(0,s.jsx)(d.D0,{type:"checkbox",name:"newsDaily",className:"form-checkbox h-4 w-4 text-primaryBlue"}),(0,s.jsx)("span",{children:a("newsReceiveDaily")})]}),(0,s.jsxs)("label",{className:"flex items-center space-x-2 text-xs text-gray-400 pb-2",children:[(0,s.jsx)(d.D0,{type:"checkbox",name:"newsWeekly",className:"form-checkbox h-4 w-4 text-primaryBlue"}),(0,s.jsx)("span",{children:a("newsReceiveWeekly")})]})]})}),S&&(0,s.jsx)("div",{className:"col-span-full mt-1 text-xs text-red-500",children:S}),(0,s.jsx)("div",{className:"col-span-full mb-4 flex flex-col items-center justify-center space-y-2",children:(0,s.jsx)("button",{type:"submit",className:"w-full bg-primaryBlue text-white py-3 px-3 rounded-3xl",onClick:()=>{y(!0)},children:(0,s.jsx)("span",{children:a("signUp")})})}),(0,s.jsx)("div",{className:"flex flex-col items-center justify-center",children:(0,s.jsxs)("p",{className:"w-[200px] text-xs text-gray-400 col-span-2 text-center",children:[a("policyTerms")," ",(0,s.jsx)(p(),{className:"text-blue-500",href:"/policies",children:l("Policies")})]})})]})})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{className:"text-center text-xs text-gray-400 p-5",children:[a("haveAccount")," "," ",(0,s.jsxs)("span",{className:"text-center",children:[L&&(0,s.jsx)(p(),{href:"/login?returnUrl=".concat(L),className:"text-blue-500",children:a("loginAction")}),!L&&(0,s.jsx)(p(),{href:"/login",className:"text-blue-500",children:a("loginAction")})]})]})})]})})})}var w=!0;function b(e){var t,a,l;let{t:i}
1=(0,r.Bd)(["auth"]),[c,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{o(!0)},[]),(0,s.jsx)(s.Fragment,{children:c&&(0,s.jsx)(y,{className:"",landingImageUrl:null==(l=e.applicationPage.landingImage)||null==(a=l.data)||null==(t=a.attributes)?void 0:t.url})})}b.getLayout=function(e,t){var a;return(0,s.jsx)(l.A,{seo:null==(a=t.applicationPage)?void 0:a.seo,applicationData:t.applicationData,children:e})}},94559:(e,t,a)=>{"use strict";a.d(t,{AE:()=>u,KS:()=>x,PW:()=>i,Vi:()=>o,X$:()=>h,_3:()=>m,vL:()=>c,wi:()=>d});var s=a(30915),r=a.n(s),n=a(91167),l=a.n(n);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.startsWith("https://")||e.startsWith("http://")?e:"".concat(l().env.IS_LOCAL_ENV?l().env.STRAPI_URL:"").concat(e)}function c(e){if(!e||!e.data)return null;let{url:t}=e.data.attributes;return t.startsWith("/")?i(t):t}function o(e){var t,a,s,r;if(!e||!e.data||!e.data.attributes||!e.data.attributes.formats&&!e.data.attributes.url)return null;let{url:n}=(null==(t=e.data.attributes.formats)?void 0:t.large)||(null==(a=e.data.attributes.formats)?void 0:a.medium)||(null==(s=e.data.attributes.formats)?void 0:s.small)||(null==(r=e.data.attributes.formats)?void 0:r.thumbnail)||e.data.attributes||"";return n.startsWith("/")?i(n):n}function d(e){if(!e.data||!e.data.attributes.formats||!e.data.attributes.formats.thumbnail)return null;let{url:t}=e.data.attributes.formats.thumbnail;return t.startsWith("/")?i(t):t}function u(e){return(null==e?void 0:e.data)?e.data.attributes.alternativeText:""}function x(e){return(null==e?void 0:e.data)?e.data.attributes.caption:""}async function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=r().stringify(t);return p("".concat(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(l().env.PROXY_STRAPI_API_URL).concat(e)}("/api".concat(e).concat(s?"?".concat(s,"&v=").concat(l().env.SHORT_SHA):"?v=".concat(l().env.SHORT_SHA)))),t,a)}async function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=r().stringify(t);return p("".concat(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(l().env.SCRIPTURE_CENTRAL_API_URL).concat(e)}("/api".concat(e).concat(s?"?".concat(s,"&v=").concat(l().env.SHORT_SHA):"?v=".concat(l().env.SHORT_SHA)))),t,a)}async function p(e,t,a){let s={headers:{"Content-Type":"application/json"},...a},r=await fetch(e,s);if(404==r.status)return null;if(!r.ok)throw console.error(e,r.statusText),Error("An error occured please try again");return await r.json()}}},e=>{var t=t=>e(e.s=t);e.O(0,[692,915,6864,8507,636,6593,8792],()=>t(61468)),_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.