PageSourceSearch

https://www.henro.org/_next/static/chunks/pages/confirm-email-0341a84772128149.js

js henro.org collected 2026-10-07 08:28:05 UTC 14,259 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6447],{73130:function(e,r,i){"use strict";i.d(r,{Ik:function(){return o},Wl:function(){return l},o0:function(){return d}});var n=i(19521),t=i(76891),s=i(85893),a=n.ZP.div.withConfig({displayName:"alerts__BasicAlert",componentId:"sc-1j60x1d-0"})(["width:100%;padding:24px;display:flex;flex-direction:column;border-radius:8px;border:4px solid #217687;background:transparent;color:",";& > div{margin-bottom:24px;}p{margin:0;}.title{div,p{font-weight:bold;}}.subtle{font-size:12px;font-style:italic;}.content{font-size:15px;margin-bottom:0px;}a{color:#105766;text-decoration:underline !important;&:hover{color:",";}}"],t.Z.darkGray,t.Z.gray9),o=(0,n.ZP)(a).withConfig({displayName:"alerts__SuccessAlert",componentId:"sc-1j60x1d-1"})(["border:2px solid #506f3c;color:#336b11;background-color:#e2e6da;a:hover{color:#5d713f;}"]),c=(0,n.ZP)(a).withConfig({displayName:"alerts__ErrorAlert",componentId:"sc-1j60x1d-2"})(["border:2px solid #ac6660;color:#7c3731;background-color:#f1ebe9;"]),l=function(e){var r,i=e.error,n=e.style,t=void 0===n?{}:n;return i?(r="string"===typeof i?[i]:Array.isArray(i.message)?i.message:[i.message],(0,s.jsx)(c,{style:t,children:r.map((function(e,r){return(0,s.jsx)("span",{children:e},r)}))})):null},d=n.ZP.div.withConfig({displayName:"alerts__AlertNote",componentId:"sc-1j60x1d-3"})(["padding:20px;margin-bottom:20px;background:rgb(170 227 161 / 29%);border:none;border-radius:10px;img{max-width:80px;}line-height:1.8;"])},42508:function(e,r,i){"use strict";var n=i(59499),t=i(25675),s=i.n(t),a=i(67294),o=i(85893);function c(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),i.push.apply(i,n)}return i}var l=function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return"cellular"===(null===e||void 0===e?void 0:e.type)||"slow-2g"===(null===e||void 0===e?void 0:e.effectiveType)||"2g"===(null===e||void 0===e?void 0:e.effectiveType)||"3g"===(null===e||void 0===e?void 0:e.effectiveType)||!0===(null===e||void 0===e?void 0:e.saveData)},d=function(e){if(window.requestIdleCallback){var r=window.requestIdleCallback(e);return function(){return window.cancelIdleCallback(r)}}var i=setTimeout(e,2345+1e3*Math.random());return function(){return clearTimeout(i)}};r.Z=function(e){var r=(0,a.useState)(e.loading),i=r[0],t=r[1];return(0,a.useEffect)((function(){if("eager"!==e.loading&&!e.priority&&!l()){var r,i=function(){r=d((function(){return t("eager")}))};return window.addEventListener("load",i),function(){window.removeEventListener("load",i),r&&r()}}}),[e.loading,e.priority]),(0,o.jsx)(s(),function(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?c(Object(i),!0).forEach((function(r){(0,n.Z)(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))}))}return e}({loading:i},e))}},59967:function(e,r,i){"use strict";var n=i(41664),t=i.n(n),s=i(19521),a=i(76891),o=i(9615),c=i(85893),l=s.ZP.div.withConfig({displayName:"userForm__UserPageWrapper",componentId:"sc-c6ur9u-0"})(["width:100%;min-height:70vh;padding:64px 8%;display:flex;align-items:center;justify-content:center;background-image:",";background-size:cover;background-position:center;@media only screen and (max-width:1024px){flex-direction:column;}@media only screen and (max-width:760px){padding:60px 24px;}"],(function(e){return"url(".concat(e.bgURL,"), linear-gradient(120deg, #87bc7e, #58846f, #80b9bf 95%, #85b3bf)")})),d=s.ZP.div.withConfig({displayName:"userForm__UserFormFields",componentId:"sc-c6ur9u-1"})(["width:100%;max-width:560px;padding:60px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 0 0 1px rgba(10,9,12,.07),0 2px 12px rgba(10,9,12,.25);border-radius:8px;background-color:white;form{width:100%;display:flex;flex-direction:column;align-items:center;}.ohnohoney{opacity:0;position:absolute;top:0;left:0;height:0;width:0;z-index:-1;}.title{margin-bottom:28px;font-size:20px;font-weight:bold;}.success-msg{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#4f7c2f;font-size:17px;img{width:42px;height:42px;}a{font-size:15px;text-decoration:underline;color:",";}}.error-messages{width:100%;margin-top:32px;.error-msg{color:",";margin:0 0 8px 0;}}.user-field-row{width:100%;display:flex;div:first-child{margin-right:12px;}}.user-field-wrap{width:100%;margin-bottom:22px;display:flex;flex-direction:column;label{margin-bottom:8px;font-size:14px;}.label-with-msg{display:flex;justify-content:space-between;.label-success-msg{color:",";font-weight:bold;}}}input,textarea,.submit-btn{width:100%;padding:18px;border-radius:6px;font-size:15px;}input,textarea{border:2px solid ",";&:hover{border-color:",";}}.user-checkbox-field{width:100%;margin-bottom:22px;display:flex;a{text-decoration:underline;color:",";}input{cursor:pointer;margin:2px 16px 0 0;width:18px;height:18px;}label{font-size:15px;}}
1button{cursor:pointer;border:none;background:transparent;&:disabled{opacity:0.5;}}.submit-btn{background-color:",";color:white;&:hover{background-color:",";}}.alt-action-btn{margin-top:24px;align-self:flex-end;color:",";&:hover{text-decoration:underline;}}.form-intro{margin-top:0;margin-bottom:30px;max-width:360px;text-align:center;}.form-intro-subtle{align-self:flex-start;max-width:440px;margin-top:24px;color:",";font-size:15px;a{color:",";text-decoration:underline;}}.form-instructions{width:100%;max-width:440px;margin-top:36px;text-align:left;p{margin:0 0 8px;}ul{padding-left:18px;}}@media only screen and (max-width:1024px){.alt-action-btn{text-decoration:underline;}}@media only screen and (max-width:760px){min-width:auto;width:100%;padding:42px 20px;}"],a.Z.grayBlue8,a.Z.warningRed,a.Z.green6,a.Z.lightGray,a.Z.gray10,a.Z.grayBlue8,a.Z.blue6,a.Z.blue8,a.Z.grayBlue11,a.Z.gray7,a.Z.grayBlue11),u=function(e){var r=Array.isArray(e)?e:[e];return(0,c.jsx)("div",{className:"error-messages",children:r.map((function(e){return(0,c.jsx)("p",{className:"error-msg",children:e},e)}))})},m=function(e){switch(e){case"contact":return(0,c.jsxs)("div",{className:"success-msg",children:[(0,c.jsx)("img",{src:"/images/icons/check-circle.svg",alt:""}),(0,c.jsx)("p",{children:"Thank you for contacting us. We will get back to you as soon as possible."}),(0,c.jsx)(t(),{href:"/",children:"Return to homepage"})]});case"registration":return(0,c.jsxs)("div",{className:"success-msg",children:[(0,c.jsx)("img",{src:"/images/icons/check-circle.svg",alt:""}),(0,c.jsx)("p",{children:"Please check your inbox for a confirmation email to finish setting up your account."}),(0,c.jsx)(t(),{href:"/",children:"Return to homepage"})]});case"confirm":return(0,c.jsxs)("div",{className:"success-msg",children:[(0,c.jsx)("img",{src:"/images/icons/check-circle.svg",alt:""}),(0,c.jsx)("p",{children:"Your pilgrim profile is all set up!"}),(0,c.jsx)("p",{children:"Please wait while we sign you in..."}),(0,c.jsx)(t(),{href:"/login",children:"Log in here if you are not being redirected"})]});case"forgot-password":return(0,c.jsxs)("div",{className:"success-msg",children:[(0,c.jsx)("img",{src:"/images/icons/check-circle.svg",alt:""}),(0,c.jsx)("p",{children:"A reset password link has been sent to your email."}),(0,c.jsx)(t(),{href:"/",children:"Return to homepage"})]});case"password":return(0,c.jsxs)("div",{className:"success-msg",children:[(0,c.jsx)("img",{src:"/images/icons/check-circle.svg",alt:""}),(0,c.jsx)("p",{children:"Your password has been changed successfully."}),(0,c.jsx)(t(),{href:"/login",children:"Log in"})]});default:return}},p=function(e){switch(e){case"password":case"confirm":return(0,c.jsxs)("div",{className:"form-instructions",children:[(0,c.jsxs)("p",{children:["Your password must be ",(0,c.jsx)("b",{children:"8 or more characters"})," long and contain at least:"]}),(0,c.jsxs)("ul",{children:[(0,c.jsx)("li",{children:"one lowercase letter"}),(0,c.jsx)("li",{children:"one uppercase letter"}),(0,c.jsx)("li",{children:"one digit"}),(0,c.jsx)("li",{children:"one special character"})]})]});default:return}};r.Z=function(e){var r=e.children,i=e.success,n=e.error,t=e.onSubmit,s=e.backgroundImage,a=e.formType;return(0,c.jsxs)(l,{bgURL:s||(0,o.n)({src:"background-image-pilgrimage-P1010164.jpg",width:1200}),children:[(0,c.jsxs)(d,{children:[i&&m(a),!i&&(0,c.jsxs)("form",{onSubmit:t,children:[r,!!n&&u(n),p(a)]})]}),!i&&"registration"===a&&(0,c.jsxs)("div",{className:"overflow-hidden w-full max-w-[520px] relative ml-0 md:ml-[8%] mt-6 md:mt-0 px-6 py-5 rounded-lg shadow bg-stone-100",children:[(0,c.jsx)("img",{className:"opacity-10 absolute bottom-[-8px] w-[92%]",src:"/images/icons/mountain-etch.svg",alt:"background image of a mountain range"}),(0,c.jsxs)("div",{className:"z-50 relative",children:[(0,c.jsx)("h4",{className:"mb-3 pb-1 text-lg font-bold border border-transparent border-b-2 border-b-slate-600",children:"Benefits of a free Pilgrim Profile"}),(0,c.jsxs)("ul",{children:[(0,c.jsxs)("li",{className:"mb-3",children:[(0,c.jsx)("b",{className:"mr-1 text-gray-blue-500",children:"Share your expertise:"})," Leave reviews, post photos, and suggest edits to pilgrimage maps. Help improve and preserve pilgrimages for future generations."]}),(0,c.jsxs)("li",{className:"mb-3",children:[(0,c.jsx)("b",{className:"mr-1 text-gray-blue-500",children:"Create lists:"})," Save private or public lists of places while planning your journey."]}),(0,c.jsxs)("li",{className:"mb-3",children:[(0,c.jsx)("i",{children:"(Coming soon)"})," ",(0,c.jsx)("b",{className:"mr-1 text-gray-blue-500",children:"Get featured:"}
1)," Publish beautifully-formatted pilgrimage journals for a wide audience. If selected, your journal may be featured."]}),(0,c.jsxs)("li",{className:"mb-3",children:[(0,c.jsx)("b",{className:"mr-1 text-gray-blue-500",children:"Stay connected:"})," Join exclusive pilgrim communities and subscribe to local feeds (including volunteer opportunities)."]})]})]})]})]})}},9615:function(e,r,i){"use strict";i.d(r,{n:function(){return n}});i(42508),i(85893);var n=function(e){var r=e.src,i=e.width,n=e.quality;"/"===r[0]&&(r=r.slice(1));var t=["w-".concat(i)];n&&t.push("q-".concat(n));var s=t.join(","),a="https://ik.imagekit.io/jwfyqaqnd";return"/"===a[a.length-1]&&(a=a.substring(0,a.length-1)),"".concat(a,"/").concat(r,"?tr=").concat(s)}},13039:function(e,r,i){"use strict";i.r(r),i.d(r,{__N_SSP:function(){return g}});var n=i(67294),t=i(41664),s=i.n(t),a=i(59967),o=i(49020),c=i(11163),l=i.n(c),d=i(73130),u=i(98917),m=i(9615),p=i(17563),x=i(85893),g=!0;r.default=function(e){var r=e.token,i=e.email,t=e.newUser,g=e.error,h=(0,n.useState)(!1),f=h[0],b=h[1],j=(0,n.useState)(!1),w=j[0],v=j[1],y=(0,n.useState)(),k=y[0],N=y[1],_=(0,c.useRouter)(),P=(0,n.useMemo)((function(){var e=p.parse(_.asPath.split("?")[1])||null;return u.YC.includes(e)?null:e}),[]).redirect_url;if(g||null===t||void 0===t||!t.email)return(0,x.jsx)("div",{style:{padding:"48px 20%"},children:(0,x.jsx)(d.Wl,{error:g||"Credentials mismatch or token has expired"})});return(0,x.jsxs)(a.Z,{formType:"confirm",onSubmit:function(e){e.preventDefault(),b(!0);var n=e.currentTarget,s=n.first_name,a=n.last_name,c=n.password,d=n.password_confirmation,m=n.accepted_terms,p=n.consented_marketing;(0,o.ZP)("/registration/finish_registration",{method:"POST",body:{token:r,email:i,first_name:s.value,last_name:a.value,password:c.value,password_confirmation:d.value,accepted_terms:m.checked,consented_marketing:p.checked}}).then((function(){b(!1),v(!0),setTimeout((function(){u.ZP.login(t.email,c.value,P).catch((function(){l().push("/login")}))}),1e3)})).catch((function(e){b(!1),N(e.message)}))},success:w,error:k,backgroundImage:(0,m.n)({src:"background-image-pilgrimage-1.jpg",width:1200}),children:[(0,x.jsx)("div",{className:"title",children:"Finish setting up your account"}),(0,x.jsxs)("div",{className:"user-field-wrap",children:[(0,x.jsxs)("label",{className:"label-with-msg",children:["Email",(0,x.jsx)("span",{className:"label-success-msg",children:"Confirmed!"})]}),(0,x.jsx)("input",{disabled:!0,type:"text",name:"email",placeholder:"Email",value:t.email})]}),(0,x.jsxs)("div",{className:"user-field-row",children:[(0,x.jsxs)("div",{className:"user-field-wrap",children:[(0,x.jsx)("label",{children:"First Name"}),(0,x.jsx)("input",{type:"text",name:"first_name",placeholder:"First Name",defaultValue:t.first_name||""})]}),(0,x.jsxs)("div",{className:"user-field-wrap",children:[(0,x.jsx)("label",{children:"Last Name"}),(0,x.jsx)("input",{type:"text",name:"last_name",placeholder:"Last Name",defaultValue:t.last_name||""})]})]}),(0,x.jsxs)("div",{className:"user-field-wrap",children:[(0,x.jsx)("label",{children:"Password"}),(0,x.jsx)("input",{type:"password",name:"password",placeholder:"Password"})]}),(0,x.jsxs)("div",{className:"user-field-wrap",children:[(0,x.jsx)("label",{children:"Confirm Password"}),(0,x.jsx)("input",{type:"password",name:"password_confirmation",placeholder:"Confirm Password"})]}),(0,x.jsxs)("div",{className:"user-checkbox-field",children:[(0,x.jsx)("div",{children:(0,x.jsx)("input",{type:"checkbox",name:"accepted_terms"})}),(0,x.jsxs)("label",{children:["I understand and agree to the ",(0,x.jsx)("b",{children:(0,x.jsx)(s(),{href:"/terms",children:"Terms & Conditions"})})," and ",(0,x.jsx)("b",{children:(0,x.jsx)(s(),{href:"/privacy",children:"Privacy Policy"})}),"."]})]}),(0,x.jsxs)("div",{className:"user-checkbox-field",children:[(0,x.jsx)("div",{children:(0,x.jsx)("input",{type:"checkbox",name:"consented_marketing"})}),(0,x.jsxs)("label",{children:["I want to receive ",(0,x.jsx)("b",{children:"pilgrimage updates"}),", ",(0,x.jsx)("b",{children:"newsletters"}),", and ",(0,x.jsx)("b",{children:"special offers"})," from Henro."]})]}),(0,x.jsx)("button",{disabled:f,className:"submit-btn",children:"Continue"})]})}},47575:function(e,r,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/confirm-email",function(){return i(13039)}])}},function(e){e.O(0,[9774,2888,179],(function(){return r=47575,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.