PageSourceSearch

https://navisavitravel.com/_next/static/chunks/pages/register-66983c4903fa2e63.js

js navisavitravel.com collected 2026-10-09 22:42:24 UTC 16,445 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]="c9ec8f9e-d7ab-4811-9bfc-d1507f2b294c",e._sentryDebugIdIdentifier="sentry-dbid-c9ec8f9e-d7ab-4811-9bfc-d1507f2b294c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{54722:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return i(35765)}])},73093:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});let n=(0,i(1462).Z)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},81194:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});let n=(0,i(1462).Z)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},35765:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return M},default:function(){return T}});var n=i(62364),o=i(67294),a=i(81292),r=i(42727),s=i(48099),d=i(89600),c=i(88062),l=i(41664),m=i.n(l),p=i(81517),u=i(29496),g=i(47041),h=i(11163),v=i(92729),f=i(54795),w=i(60285),b=i(31500),y=i(61312),Z=i(39255),x=i(65423),k=i(85918),C=i(5810),I=i(7877),S=i(9835),P=i(86552),_=i(30109),O=()=>{var e,t;let i=(0,h.useRouter)(),{terms:a,setTerms:r,getCustomerByFirebaseId:s,setUser:d}=(0,k.a)(),{fetchUserPurchaseData:c}=(0,C.iQ)(),[l,O]=(0,o.useState)({email:"",password:"",confirmPassword:"",termsAccepted:!1}),[X,z]=(0,o.useState)(!0),[B,E]=(0,o.useState)(),[N,W]=(0,o.useState)(!1),[A,M]=(0,o.useState)(!1),[T,H]=(0,o.useState)(!1),[L,D]=(0,o.useState)(!1),[j,F]=(0,o.useState)({active:!1,message:""});(0,o.useEffect)(()=>{O(e=>({...e,termsAccepted:a}))},[a]);let Y=async e=>{let t=await s();return await c(null),d(t),!!e},q=async e=>{if(!e)return!1;try{let t=await fetch("/api/mailchimp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});return t.ok||await t.json(),!0}catch(e){return!1}},G=e=>{let{name:t,type:i,checked:n,value:o}=e.target;"termsAccepted"===t&&r(n),O(e=>({...e,[t]:"checkbox"===i?n:o}))},J=async()=>{let e;E(""),F({active:!0,message:"Logging in..."});try{e=(await (0,p.e5)((0,p.v0)(),l.email,l.password)).user.uid}catch(e){E("Incorrect username or password. Please try again."),(0,u.yv)("Incorrect username or password. Please try again.",{variant:"error"}),F({active:!1});return}try{await Y(e)}catch(e){}(0,u.yv)("Login successful!",{variant:"success"}),F({active:!1}),i.replace("/")},V=async e=>{var t,i,n,o,a;if(e.preventDefault(),!X){await J();return}if(l.password!==l.confirmPassword){E("Passwords do not match"),(0,u.yv)("Passwords do not match",{variant:"error"});return}E("");try{F({active:!0,message:"Creating user..."});let e=await S.Z.post("/api/customer/create-local-customer",{email:l.email,password:l.password});(0,g.setCookie)("verify_email",l.email),(null==e?void 0:e.status)===200&&(localStorage.setItem("verification_email",JSON.stringify(l.email)),(0,u.yv)(null!==(i=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.message)&&void 0!==i?i:"Email verification sent!",{variant:"success"}),(0,P.H)("Signup"),D(!0))}catch(e){(0,u.yv)(null!==(a=null==e?void 0:null===(o=e.response)||void 0===o?void 0:null===(n=o.data)||void 0===n?void 0:n.message)&&void 0!==a?a:"An error occurred: ".concat(e.message),{variant:"error"})}finally{F({active:!1})}},R=async()=>{let e=new p.hJ;try{let t=(await (0,p.rh)(I.I,e)).user,n=t.uid,o=await s();if(!(null==o?void 0:o.customer_id)){let e=(await S.Z.post("/api/customer/stripe/create-stripe-customer",{email:t.email})).data.customerId;await v.Z.post("/api/customer/social-signup",{customer_id:e,firebase_id:n,email:t.email,provider:"google"}),await q(t.email||""),(0,P.H)("Signup")}try{await Y(n)}catch(e){}F({active:!0,message:"Loading..."}),(0,u.yv)("Login successful!",{variant:"success"}),i.replace("/")}catch(e){(0,p.w7)(I.I).then(()=>{(0,u.yv)("Error during Google login: ".concat(e),{variant:"error"})}).catch(e=>{(0,u.yv)("Error during login: ".concat(e),{variant:"error"})})}},Q=async()=>{var e,t,i,n,o,a,r,s,d,c,l;try{let o=await (0,g.getCookie)("verify_email");if(!o){let e=localStorage.getItem("verification_email");if(e)o=JSON.parse(e);else{D(!1),(0,u.yv)("Please try again!",{variant:"error"});return}}let a=await S.Z.post("/api/customer/resend-email-verification",{email:o});if((null==a?void 0:a.status)===200){(0,u.yv)(null!==(t=null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.message)&&void 0!==t?t:"Email verification sent!",{variant:"success"}),D(!0);return}(null==a?void 0:a.status)===409&&((0,g.deleteCookie)("verify_email"),localStorage.removeItem("verification_email"),(0,u.yv)(null!==(n=null==a?void 0:null===(i=a.data)||void 0===i?void 0:i.message)&&void 0!==n?n:"Email already used",{variant:"success"}),D(!1))}catch(e){if((null==e?void 0:null===(o=e.response)||void 0===o?void 0:o.status)===409){(0,g.deleteCookie)("verify_email"),localStorage.removeItem("verification_email"),(0,u.yv)(null!==(c=null==e?void 0:null===(d=e.response)||void 0===d?void 0:null===(s=d.data)||void 0===s?void 0:s.message)&&void 0!==c?c:"Email already used",{variant:"error"}),D(!1);return}(0,u.yv)(null!==(l=null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(a=r.data)||void 0===a?void 0:a.message)&&void 0!==l?l:"An error occurred: ".concat(e.message),{variant:"error"})}};return L?(0,n.tZ)(x.Z,{setShowVerified:D,resendEmail:Q,showLogin:()=>{D(!1),z(!1),E(""),O(e=>({...e,email:"",password:"",confirmPassword:""}))}}):(0,n.BX)(n.HY,{children:[j.active&&(0,n.tZ)(y.Z,{message:(null==j?void 0:null===(e=j.message)||void 0===e?void 0:e.length)&&(null==j?void 0:null===(t=j.message)||void 0===t?void 0:t.length)>0?j.message:void 0}),(0,n.tZ)(_.j4,{children:"NaviSavi Video Library"}),(0,n.tZ)(_.Dx,{children:X?"Create your account":"Welcome back"}),(0,n.tZ)(_.QE,{children:X?"Create an account to save videos, build playlists and license content.":"Access your playlists, purchases and licensed travel videos."}),(0,n.BX)(_.VL,{type:"button",onClick:R,children:[(0,n.tZ)(f.Z,{}),(0,n.tZ)("span",{children:X?"Sign up with Google":"Login with Google"})]}),(0,n.tZ)(_.iz,{children:(0,n.tZ)("span",{children:"or"})}),(0,n.BX)(_.n5,{children:[(0,n.BX)(_.l0,{onSubmit:V,children:[(0,n.tZ)(_.II,{required:!0,type:"email",name:"email",placeholder:"Email",autoComplete:"email",value:l.email,onChange:G}),(0,n.BX)(_.T5,{children:[(0,n.tZ)(_.II,{required:!0,type:A?"text":"password",name:"password",placeholder:"Password",autoComplete:X?"new-password":"current-password",value:l.password,onChange:G}),(0,n.tZ)(_.j1,{type:"button",onClick:()=>M(e=>!e),"aria-label":A?"Hide password":"Show password",children:A?(0,n.tZ)(b.Z,{}):(0,n.tZ)(w.Z,{})})]}),X&&(0,n.BX)(_.T5,{children:[(0,n.tZ)(_.II,{required:!0,type:T?"text":"password",name:"confirmPassword",placeholder:"Confirm Password",autoComplete:"new-password",value:l.confirmPassword,onChange:G}),(0,n.tZ)(_.j1,{type:"button",onClick:()=>H(e=>!e),"aria-label":T?"Hide confirm password":"Show confirm password",children:T?(0,n.tZ)(b.Z,{}):(0,n.tZ)(w.Z,{})})]}),B&&(0,n.tZ)(_.Bc,{children:B}),X&&(0,n.BX)(_.l5,{children:[(0,n.tZ)(_.bQ,{type:"checkbox",id:"terms",name:"termsAccepted",checked:l.termsAccepted,onChange:G}),(0,n.BX)(_.ar,{htmlFor:"terms",children:["I agree to\xa0",(0,n.tZ)(_.wc,{type:"button",onClick:e=>{e.preventDefault(),W(!0)},children:"terms and conditions"})]})]}),(0,n.tZ)(_.Mm,{disabled:X&&!l.termsAccepted,type:"submit",children:X?"Create account":"Login"})]}),(0,n.BX)(_.IH,{children:[X?"Already have an account? ":"Don't have an account? ",(0,n.tZ)(_.gs,{type:"button",onClick:()=>{z(e=>!e),E(""),M(!1),H(!1),O(e=>({...e,email:"",password:"",confirmPassword:""}))},children:X?"Login":"Join"})]}),(0,n.BX)(_.tq,{children:["Forgot password?",(0,n.tZ)(m(),{href:"/reset-password",children:"Click here"})]})]}),(0,n.tZ)(Z.Z,{isOpen:N,onClose:()=>{W(!1)}})]})},X=i(15437),z=i(46347);let B=X.ZP.section.withConfig({componentId:"sc-80513490-0"})(["position:relative;width:100vw;margin-left:calc(50% - 50vw);min-height:calc(100vh - 8rem);display:flex;align-items:center;justify-content:center;padding:"," ",";overflow:hidden;@media (max-width:1023px){padding:"," ",";}@media (max-width:640px){min-height:auto;padding:"," ",";}"],z.W0.sectionY,z.W0.pageX,z.W0.sectionYMobile,z.W0.pageXTablet,z.W0.sectionYMobile,z.W0.pageXMobile),E=X.ZP.video.withConfig({componentId:"sc-80513490-1"})(["position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;pointer-events:none;"]),N=X.ZP.div.withConfig({componentId:"sc-80513490-2"})(["position:absolute;inset:0;z-index:1;background:rgba(0,0,0,0.35);pointer-events:none;"]),W=X.ZP.div.withConfig({componentId:"sc-80513490-3"})(["position:relative;z-index:2;width:100%;max-width:48rem;box-sizing:border-box;padding:4rem;border-radius:",";background:",";box-shadow:0 3rem 6rem rgba(0,0,0,0.35);display:flex;flex-direction:column;gap:1.2rem;font-family:",";@media (max-width:640px){padding:2.4rem 2rem;}"],z.W0.radiusCard,z.O9.background.panel,z.cp.fontFamily.primary);var A=i(83454),M=!0,T=e=>{var t,i,o;let{content:l,shared:m}=e,p={canonicalUrl:"".concat(null!==(t=A.env.NS_URL_HOSTNAME)&&void 0!==t?t:"https://www.navisavitravel.com","/register"),metaDescription:null!==(i=null==l?void 0:l.metaDescription)&&void 0!==i?i:"Register",title:null!==(o=null==l?void 0:l.pageTitle)&&void 0!==o?o:"Register"},u=(0,r.Eg)(l,m),g=null==l?void 0:l.openGraphMetadata;return(0,n.BX)(a.Z,{metadata:p,ogmd:g,shared:m,children:[u&&(0,n.tZ)(d.Z,{banner:u}),(0,n.BX)(B,{children:[(0,n.tZ)(E,{src:"/videos/background-video.mp4",autoPlay:!0,muted:!0,loop:!0,playsInl
1ine:!0,preload:"auto",controls:!1,"aria-hidden":"true",onContextMenu:s.ke}),(0,n.tZ)(N,{}),(0,n.tZ)(W,{children:(0,n.tZ)(O,{})})]}),(0,n.tZ)(c.Z,{})]})}},88062:function(e,t,i){"use strict";i.d(t,{Z:function(){return C}});var n=i(62364);i(67294);var o=i(41664),a=i.n(o),r=i(15437),s=i(46347);let d=r.ZP.section.withConfig({componentId:"sc-5cceb271-0"})(["width:100%;max-width:",";margin:0 auto;padding:"," ",";background:",";@media (max-width:1023px){padding:"," ",";}@media (max-width:640px){padding:"," ",";}"],s.W0.maxWidthTight,s.W0.sectionY,s.W0.pageX,s.O9.background.page,s.W0.sectionYMobile,s.W0.pageXTablet,s.W0.sectionYMobile,s.W0.pageXMobile),c=r.ZP.div.withConfig({componentId:"sc-5cceb271-1"})(["max-width:72rem;margin:0 auto 4rem;text-align:center;@media (max-width:640px){margin-bottom:2.8rem;text-align:left;}"]),l=r.ZP.p.withConfig({componentId:"sc-5cceb271-2"})(["margin:0 0 1rem;color:",";font-family:",";font-size:",";font-weight:",";letter-spacing:0.14em;text-transform:uppercase;"],s.O9.brand.pink,s.cp.fontFamily.primary,s.cp.section.eyebrow,s.cp.weight.bold),m=r.ZP.h2.withConfig({componentId:"sc-5cceb271-3"})(["margin:0;color:",";font-family:",";font-size:",";font-weight:",";line-height:",";letter-spacing:-0.02em;@media (max-width:640px){font-size:",";}"],s.O9.text.primary,s.cp.fontFamily.primary,s.cp.section.title,s.cp.weight.bold,s.cp.lineHeight.heading,s.cp.section.titleMobile),p=r.ZP.p.withConfig({componentId:"sc-5cceb271-4"})(["max-width:58rem;margin:1.4rem auto 0;color:",";font-family:",";font-size:",";font-weight:",";line-height:",";@media (max-width:640px){margin-left:0;margin-right:0;font-size:",";}"],s.O9.text.secondary,s.cp.fontFamily.primary,s.cp.body.md,s.cp.weight.medium,s.cp.lineHeight.body,s.cp.body.sm),u=r.ZP.div.withConfig({componentId:"sc-5cceb271-5"})(["display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.4rem;@media (max-width:1023px){grid-template-columns:repeat(2,minmax(0,1fr));gap:1.8rem;}@media (max-width:640px){grid-template-columns:1fr;gap:1.4rem;}"]),g=r.ZP.div.withConfig({componentId:"sc-5cceb271-6"})(["min-width:0;a{display:block;height:100%;color:inherit;text-decoration:none;}"]),h=r.ZP.article.withConfig({componentId:"sc-5cceb271-7"})(["position:relative;min-height:22rem;height:100%;padding:2.8rem;border-radius:8px;border:1px solid ",";background:",";box-shadow:0 14px 38px ",";display:flex;flex-direction:column;align-items:flex-start;gap:1.4rem;overflow:hidden;transition:transform 0.2s ease,border-color 0.2s ease,box-shadow 0.2s ease;&:hover{transform:translateY(-3px);border-color:",";box-shadow:0 22px 54px ",";}@media (max-width:640px){min-height:auto;padding:2rem;}"],e=>{let{$isComingSoon:t}=e;return t?s.O9.border.pinkSoft:s.O9.border.soft},e=>{let{$isComingSoon:t}=e;return t?"linear-gradient(135deg, ".concat(s.O9.background.panel," 0%, ").concat(s.O9.background.soft," 52%, rgba(255, 0, 138, 0.08) 100%)"):s.O9.background.panel},s.O9.shadow.soft,s.O9.border.pinkSoft,s.O9.shadow.medium),v=r.ZP.div.withConfig({componentId:"sc-5cceb271-8"})(["width:4.4rem;height:4.4rem;border-radius:999px;background:",";color:",";border:1px solid ",";display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(0.4,0,0.2,1);svg{width:2rem;height:2rem;stroke:currentColor;stroke-width:2;}",":hover &{background:",";color:",";border:1px solid transparent;transform:scale(1.05);}"],s.O9.brand.white,s.O9.brand.pink,s.O9.brand.pink,h,s.O9.brand.pink,s.O9.brand.white),f=r.ZP.h3.withConfig({componentId:"sc-5cceb271-9"})(["margin:0;color:",";font-family:",";font-size:",";font-weight:",";line-height:",";"],s.O9.text.primary,s.cp.fontFamily.primary,s.cp.body.lg,s.cp.weight.bold,s.cp.lineHeight.heading),w=r.ZP.p.withConfig({componentId:"sc-5cceb271-10"})(["margin:0;color:",";font-family:",";font-size:",";font-weight:",";line-height:",";@media (max-width:640px){font-size:",";}"],s.O9.text.secondary,s.cp.fontFamily.primary,s.cp.body.md,s.cp.weight.medium,s.cp.lineHeight.body,s.cp.body.sm);var b=function(e){let{id:t,icon:i,title:o,link:r,description:s}=e,d=r.startsWith("http");return(0,n.tZ)(g,{children:(0,n.tZ)(a(),{href:r,target:d?"_blank":void 0,rel:d?"noopener noreferrer":void 0,children:(0,n.BX)(h,{$isComingSoon:"coming_soon"===t,children:[(0,n.tZ)(v,{children:i}),(0,n.tZ)(f,{children:o}),(0,n.tZ)(w,{children:s})]})})})},y=i(81194),Z=i(47963),x=i(73093);let k=[{id:"moats",link:"/moats",title:"Build your own travel video library",icon:(0,n.tZ)(y.Z,{size:24}),description:"Collect guest, customer and creator videos into your own branded content hub with NaviSavi MOATS."},{id:"ugc",link:"/creators",title:"Commission travel creators",icon:(0,n.tZ)(Z.Z,{size:24}),description:"Need custom content? With access to 5k+ global travel creators, we help brands produce destination shoots, campaigns and social-first travel content."},{id:"video_api",link:"/api-access",title:"Plug travel video into your platform",icon:(0,n.tZ)(x.Z,{size:24}),description:"Use the NaviSavi API to power destination pages, booking flows, apps and websites with licensed travel video."}];var C=function(){return(0,n.BX)(d,{children:[(0,n.BX)(c,{children:[(0,n.tZ)(l,{children:"NaviSavi for businesses"}),(0,n.tZ)(m,{children:"Everything you need to power your travel business with video."}),(0,n.tZ)(p,{children:"NaviSavi helps travel brands source, organize, license and distribute authentic travel video across websites, apps, campaigns and booking experiences."})]}),(0,n.tZ)(u,{children:k.map(e=>(0,n.tZ)(b,{...e},e.id))})]})}},89600:function(e,t,i){"use strict";var n=i(62364),o=i(67294),a=i(15437),r=i(233),s=i(13049);let d=a.ZP.div.withConfig({componentId:"sc-24a7eb8e-0"})(["display:flex;width:100%;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;background:rgb(23,115,235);position:relative;background-color:rgba(70,80,99,0.1);font-size:12px;font-weight:400;padding:1.5rem 3rem;box-sizing:border-box;*{color:rgba(70,80,99,1);padding:0;margin:0;}a{font-weight:700;text-decoration:none;}"]),c=a.ZP.div.withConfig({componentId:"sc-24a7eb8e-1"})(["color:white;"]),l=a.ZP.div.withConfig({componentId:"sc-24a7eb8e-2"})(["position:absolute;right:1.5rem;"]);t.Z=e=>{let{banner:t}
1=e,[i,a]=o.useState(!0),{closable:m,content:p}=t;return i?(0,n.BX)(d,{children:[(0,n.tZ)(c,{className:"intro",dangerouslySetInnerHTML:{__html:null!=p?p:""}}),m&&(0,n.tZ)(l,{children:(0,n.tZ)(r.Z,{onClick:()=>a(!1),title:"Close Banner",icon:(0,n.tZ)(s.Z,{}),styles:{border:"0px",padding:0}})})]}):null}}},function(e){e.O(0,[4577,9332,9184,7636,4097,1292,2888,9774,179],function(){return e(e.s=54722)}),_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.