1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b095d43d-b9cc-40c3-8b7a-a871f248899e",e._sentryDebugIdIdentifier="sentry-dbid-b095d43d-b9cc-40c3-8b7a-a871f248899e")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[902,62357,66652],{902:(e,n,t)=>{t.r(n),t.d(n,{PhotographersFullScreenBackground:()=>c});var s=t(86739),i=t(50979);t(25963);var r=t(3452),a=t(25788),l=t(52383);function o(){let e=(0,s._)(["\n background-image: url(",");\n background-size: contain;\n background-repeat: no-repeat;\n background-position: bottom center;\n\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: block;\n\n pointer-events: none;\n\n background-size: 160%;\n\n background-position-y: 581px;\n @media (max-height: 800px) {\n background-image: none;\n }\n\n @media (min-height: 900px) {\n background-position-y: 681px;\n }\n\n @media (min-height: 1000px) {\n background-position: bottom center;\n }\n\n @media (min-width: 1000px) {\n background-size: 1700px;\n\n background-position-y: 545px;\n\n @media (max-height: 800px) {\n background-image: url(",");\n }\n\n @media (min-height: 900px) {\n background-position-y: 581px;\n }\n\n @media (min-height: 1000px) {\n background-position-y: bottom;\n }\n }\n\n @media (min-width: 1700px) {\n background-size: contain;\n\n @media (min-height: 1000px) {\n background-position-y: 150%;\n }\n\n @media (min-height: 1180px) {\n background-position-y: 126%;\n }\n }\n\n transition: opacity 1s;\n opacity: 0;\n &.show {\n opacity: 1;\n }\n"]);return o=function(){return e},e}let d=r.Ay.div(o(),e=>e.heroImage,e=>e.heroImage);function c(e){let{location:n,showInPathnameEnds:t,heroImage:s="https://snappr.imgix.net/media/bookingflow-bg.jpg?auto=format%2Ccompress&w=2800&s=4e5415a9847348bc40fafe96d1ab3282",BackgroundComponent:r=d}=e;return(0,i.jsx)(a.A,{query:"(min-width: 540px)",children:e=>e&&(0,i.jsx)(l.z,{src:s,render:e=>{let{loaded:a,error:l}=e;return(0,i.jsx)(r,{className:a&&!l&&(null==t||t.find(e=>n.pathname.endsWith(e)))&&"show",heroImage:s})}})},"k-2")}},52383:(e,n,t)=>{t.d(n,{z:()=>i});var s=t(25963);class i extends s.Component{componentDidMount(){this.deactivate=(()=>{let e=!1,n=this,t=new Image;return t.onload=function(){e||n.setState({loaded:!0,width:this.width,height:this.height})},t.onerror=()=>!e&&this.setState({error:!0}),t.src=this.props.src,()=>e=!0})()}componentWillUnmount(){this.deactivate()}render(){let e=this.props.children||this.props.render;return void 0!==e?e(this.state):null}constructor(...e){super(...e),this.state={loaded:!1,error:!1,width:null,height:null}}}},62357:(e,n,t)=>{t.r(n),t.d(n,{PhotoTaggingSignUpRoute:()=>f});var s=t(50979),i=t(25963),r=t(32071),a=t(73349),l=t(17264),o=t(51255),d=t(61062),c=t(54113),m=t(98759),u=t(902),h=t(41382),p=t(66652),g=t(7585),x=t(91966);class f extends i.Component{componentDidMount(){this.state.email&&this.setState({emailExistPromise:(0,h.nr)("/rpc/v1/user/exists",{method:"POST",body:JSON.stringify({email:this.state.email})})})}render(){let e=r.parse(this.props.location.search),n=e.email,t=e.referrer_firstname;return(0,s.jsx)(a.A,{promise:this.state.emailExistPromise,children:e=>{let{isPending:f,result:{exists:b}={}}=e;return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(c.j,{}),(0,s.jsx)(u.PhotographersFullScreenBackground,{showInPathnameEnds:["lite-sign-up"],...this.props}),(0,s.jsx)("div",{className:"base-div-wrapper d-flex flex-column flex-1 position-relative",children:(0,s.jsx)("div",{className:"base-div-2 d-flex flex-column flex-1",children:(0,s.jsx)("div",{className:"base-div d-flex flex-column flex-1 bg-white",children:f&&null==b?(0,s.jsx)("div",{className:"container d-flex flex-column flex-1 align-items-center justify-content-center",children:(0,s.jsx)(d.k,{})}):b?(0,s.jsx)(m.v,{to:"/login?"+r.stringify({...r.parse(this.props.location.search),email:this.state.email||void 0})}):(0,s.jsx)(a.A,{promise:this.state.signUpPromise,children:e=>{let{isPending:i,error:a}=e;return(0,s.jsx)(o.$.Consumer,{children:e=>{let{postMessage:o,inMobileApp:d}=e;return(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault();let n=Math.random().toString(36).substring(4),{localStorageService:t}=this.props,s=(0,h.nr)("/rpc/v1/user/exists",{method:"POST",body:JSON.stringify({email:this.state.email})});this.setState({emailExistPromise:s,signUpPromise:s.then(async e=>{let{exists:s}=e;return!s&&(0,h.nr)("/api/v2/customers",{method:"POST",body:JSON.stringify({email:this.state.email,firstname:this.state.firstname,surname:this.state.surname,password:n,self_generated_password:!0,lite_user:!0})}).then(()=>(0,p.login)({username:this.state.email,password:n,localStorageService:t,postMessage:o,isSignUp:!0})).then(()=>window.location.replace((0,x.qt)({next:(0,g.GX)(r.parse(this.props.location.search).next),fallback:"/book"})))})})},className:"container d-flex flex-1 flex-column",children:[(0,s.jsx)("div",{className:"d-flex flex-column justify-content-center",style:{minHeight:"6rem"},children:(0,s.jsxs)("h3",{className:"text-center m-0",children:["See the photo gallery ","you've"," been tagged in"]})}),!i&&a&&(0,s.jsx)("div",{className:"alert alert-danger",children:"There was an error. Please try again or c
1ontact support."}),(0,s.jsxs)("p",{className:"text-secondary text-center",children:["First, just confirm for us that"," ",null!=t?"".concat(t," typed your name correctly..."):"we have your name correct..."]}),null==n&&(0,s.jsxs)("div",{className:"form-group",children:[(0,s.jsx)("label",{htmlFor:"email",className:"sr-only",children:"Email address"}),(0,s.jsx)("input",{type:"email",className:"form-control",id:"email",placeholder:"Email",value:this.state.email||"",onChange:e=>{let{target:{value:n}}=e;return this.setState({email:""===n?null:n})},disabled:i})]}),(0,s.jsxs)("div",{className:"form-group form-row",children:[(0,s.jsx)("div",{className:"col",children:(0,s.jsx)("input",{value:this.state.firstname||"",onChange:e=>{let{target:{value:n}}=e;return this.setState({firstname:""===n?null:n})},type:"text",className:"form-control",placeholder:"First name",required:!0,disabled:i})}),(0,s.jsx)("div",{className:"col",children:(0,s.jsx)("input",{value:this.state.surname||"",onChange:e=>{let{target:{value:n}}=e;return this.setState({surname:""===n?null:n})},type:"text",className:"form-control",placeholder:"Surname",required:!0,disabled:i})})]}),(0,s.jsx)("div",{className:"flex-grow-1"}),(0,s.jsx)(l.v,{children:(0,s.jsx)("button",{type:"submit",className:"btn btn-primary btn-block",disabled:i,children:i?"Processing...":"Continue to the photos"})})]})}})}})})})})]})}})}constructor(...e){super(...e),this.state={signUpPromise:null,...(()=>{let e=r.parse(this.props.location.search),n=(0,g.GX)(e.email)||null,t=(0,g.GX)(e.firstname)||null,s=(0,g.GX)(e.surname)||null,i=(0,g.GX)(e.full_name)||null,a=(0,g.GX)(e.referrer_firstname)||null;if(i&&(!t||!s)){let e=i.split(" ");return{email:n,firstname:e.length>1?e.slice(0,e.length-1).join(" "):i,surname:e.length>1?e[e.length-1]:null}}return{email:n,firstname:t,surname:s,referrer_firstname:a}})(),emailExistPromise:null}}}},66652:(e,n,t)=>{t.r(n),t.d(n,{LoginRoute:()=>y,login:()=>j});var s=t(50979),i=t(25963),r=t(32071),a=t(46795),l=t(50844),o=t(50039),d=t(81723),c=t(51255),m=t(41382),u=t(66296),h=t(902),p=t(67525),g=t(46874),x=t(7585),f=t(44079),b=t(76469),v=t(71579);let j=e=>{let{username:n,password:t,localStorageService:s,postMessage:i,isSignUp:r=!1}=e;return(0,m.nr)("/auth/token",{method:"POST",body:JSON.stringify({username:n,password:t})}).then(e=>{let{expire:n,token:t,uid:a}=e;return s.setItem(p.Mj.token,t),s.setItem(p.Mj.expire,n),s.setItem(p.Mj.uid,a),(0,u.jr)({uid:a,token:t,expire:n}),(0,f.ze)(),null==i||i({type:"auth_token",data:{expire:n,token:t,uid:a,isSignUp:r}}),{expire:n,token:t,uid:a}})};function y(e){let{postMessage:n,inMobileApp:t}=i.useContext(c.$),[m,y]=i.useState({loginPromise:null,email:(0,x.GX)(r.parse(e.location.search).email)||"",password:""}),k=(0,d.v)(),w=e.session,{t:N}=(0,o.Bd)([b.I4.userAuth,b.I4.common]);return(null==w?void 0:w.token)!=null&&(null==w?void 0:w.uid)!=null&&(null==w?void 0:w.expire)!=null&&(null==w?void 0:w.user)!=null?(0,s.jsx)(l.A,{didMount:()=>{var n;(0,f.LM)().token!==(null==(n=e.session)?void 0:n.token)&&(0,u.jr)({uid:w.uid,token:w.token,expire:w.expire}),window.location.replace((0,u.SW)({location:e.location,user:w.user}))}}):(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(v.B,{session:w,partnerLogo:void 0,logoRedirectUrl:"/shoot"}),(0,s.jsxs)("div",{className:"base-div-wrapper d-flex flex-column flex-1 position-relative",children:[(0,s.jsx)(h.PhotographersFullScreenBackground,{showInPathnameEnds:["login"],...e}),(0,s.jsxs)("div",{className:"base-div-2 d-flex flex-column flex-1",children:[(0,s.jsx)("div",{className:"bg-white",children:t?(0,s.jsx)("div",{className:"d-flex justify-content-center align-items-center d-md-none pt-5",children:(0,s.jsxs)("p",{style:{color:"#454F5C",fontSize:22,fontWeight:"bold"},children:[N("Login_welcomeBack",{ns:b.I4.userAuth})," "]})}):(0,s.jsx)("div",{className:"d-flex justify-content-center align-items-center d-md-none",style:{height:170,background:"no-repeat center",backgroundSize:"cover",backgroundImage:"url(".concat(p.ag,")"),borderBottomRightRadius:40}})}),(0,s.jsx)("div",{className:"base-div d-flex flex-column flex-1 bg-white p-3 pt-4 position-relative",children:(0,s.jsxs)("form",{onSubmit:t=>{t.preventDefault();let{localStorageService:s}=e;k.setPromise(j({username:m.email,password:m.password,localStorageService:s,postMessage:n}).then(n=>e.fetchSession(n)))},className:"d-flex flex-1 flex-column",children:[(0,s.jsxs)("div",{className:"flex-1 d-flex flex-column px-2",children:[(0,s.jsxs)("h3",{className:"d-none d-md-block text-center mb-4",children:[N("Login_loginSnapprAccount",{ns:b.I4.userAuth})," "]}),(0,s.jsxs)("div",{className:"form-group",children:[(0,s.jsxs)("label",{htmlFor:"email",className:"sr-only",children:[N("Login_emailAddress",{ns:b.I4.userAuth})," "]}),(0,s.jsx)("div",{style:{position:"relative"},children:(0,s.jsx)("input",{type:"email",name:"email",className:"form-control",id:"email",placeholder:N("email",{ns:b.I4.common}),value:m.email,onChange:e=>{let{target:{value:n,name:t}}=e;return y(e=>({...e,[t]:n}))}})})]}),(0,s.jsxs)("div",{className:"form-group",children:[(0,s.jsxs)("label",{htmlFor:"password",className:"sr-only",children:[N("password",{ns:b.I4.common})," "]}),(0,s.jsx)("div",{style:{position:"relative"},children:(0,s.jsx)("input",{type:"password",name:"password",className:"form-control",id:"password",placeholder:N("password",{ns:b.I4.common}),value:m.password,onChange:e=>{let{target:{value:n,name:t}}=e;return y(e=>({...e,[t]:n}))}})})]}),!k.isPending&&k.error&&(0,s.jsx)("div",{className:"alert alert-danger",children:N("Login_incorrectPassword",{ns:b.I4.userAuth})}),(0,s.jsx)("button",{type:"submit",className:"btn btn-primary btn-block",disabled:k.isPending,children:(0,s.jsx)(g.qn,{children:k.isPending?N("Login_login",{ns:b.I4.userAuth}):N("login",{ns:b.I4.common})})}),(0,s.jsx)(a.N_,{className:"btn btn-link btn-block",to:{...e.location,pathname:"/recover",search:r.stringify({...r.parse(e.location.search),email:m.email.length>1?m.email:void 0})},children:N("Login_forgotPassword",{ns:b.I4.userAuth})})]}),!t&&(0,s.jsx)(a.N_,{className:"btn btn-link btn-block",to:{...e.location,pathname:"/book",search:r.stringify({...r.parse(e.location.search),email:m.email.length>1?m.email:void 0})},children:N("Login_dontHaveAccount",{ns:b.I4.userAuth})})]})})]})]})]})}}}]);
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.