PageSourceSearch

https://venue.ink/assets/BzdcB7_6.js

js venue.ink collected 2026-09-24 09:52:26 UTC 47,272 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0d059-0dc8-0000-0784-6ee3765120be";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="d5e386a0-5085-54e6-b10f-d6e88b5854e0")}catch(e){}}();import{r as v,j as t}from"./1_rjLJJT.js";import{c as O,V as oe,u as jt,O as ye,a as ee,j as vt,X as tt,e as Pe,gg as Ne,gh as Re,s as Be,cK as Je,Y as Ge,Z as $e,_ as Me,fo as st,fF as it,cA as nt,gi as lt,C as Se,R as ot,dr as Le,B as ne,S as He,a_ as kt,t as we,bi as ke,dQ as wt,gj as yt,dS as St,b0 as _t,b1 as Ct,gk as Nt,fV as It,L as at,cy as rt,fD as ie,bp as Pt,d3 as Lt,b2 as Qe,h as At,d2 as Ve}from"./BzLaZ4LI.js";import{L as De,b as qe,c as _e,a as Et,u as Ce,H as ae,O as Ft,d as Ae}from"./CJi0kXOi.js";import{g as We,a as ct,u as dt,I as ut}from"./BcIS_HcJ.js";import{R as Ut,b as Tt,a as Ze}from"./DPVnJu1g.js";import{D as Ee,a as Ke}from"./Cc9b6DkC.js";import{u as Ye,a as Ie}from"./BEc5voS0.js";import{i as mt,z as le}from"./BiUYuhao.js";import{f as Oe}from"./DQ0Kz3Tt.js";import{r as zt}from"./D2C1DYnc.js";import{a as Rt}from"./CGkMmlqZ.js";import{D as Ot,i as Bt,a as Dt,f as Wt,g as Gt,c as $t,j as Mt}from"./B8Gh17e6.js";import{m as ft,R as Ht,a_ as Xe,O as Vt}from"./CF1GVhvA.js";import{S as et}from"./ZgsKuwYg.js";import{u as xt}from"./BQ7t1Mvm.js";function qt(n){const e=O.c(9),{children:s}=n,{isAdmin:a,personId:c,managedPersonIds:r}=v.useContext(oe),{personId:i}=jt(),l=ye();let u;e[0]!==a||e[1]!==r||e[2]!==i||e[3]!==c?(u=a||!i||i===c||r.includes(i),e[0]=a,e[1]=r,e[2]=i,e[3]=c,e[4]=u):u=e[4];const o=u;let m;return e[5]!==s||e[6]!==o||e[7]!==l?(m=o?t.jsx(t.Fragment,{children:s}):t.jsxs("div",{className:ee("flex flex-col flex-1 h-full p-4 gap-4 items-center justify-center text-center"),children:[t.jsx("div",{className:"text-4xl font-impactful",children:"Not Found"}),t.jsx(De,{to:l("me"),className:ee(vt({variant:"primary"})),viewTransition:!0,children:"Go home"})]}),e[5]=s,e[6]=o,e[7]=l,e[8]=m):m=e[8],m}function Yt(n){const e=O.c(11),{children:s,sidebarContent:a,className:c,sidebarClassName:r}=n;let i;e[0]!==r||e[1]!==a?(i=a&&t.jsx("div",{className:ee("hidden md:flex md:w-2/5 transition-all duration-500",r),children:a}),e[0]=r,e[1]=a,e[2]=i):i=e[2];let l;e[3]!==c?(l=ee("flex-1 h-full min-h-screen","w-full md:w-3/5",c),e[3]=c,e[4]=l):l=e[4];let u;e[5]!==s||e[6]!==l?(u=t.jsx("div",{className:l,children:s}),e[5]=s,e[6]=l,e[7]=u):u=e[7];let o;return e[8]!==i||e[9]!==u?(o=t.jsxs("div",{className:"flex min-h-screen w-full",children:[i,u]}),e[8]=i,e[9]=u,e[10]=o):o=e[10],o}const Jt="/assets/D_9A-j-a.webp",Qt="/assets/Da2Htyz8.webp",Zt="/assets/DDS4CIwP.webp",Kt=async(n,e,{studioInvitationCode:s,deviceInfo:a,appInfo:c,trackingInfo:r}={})=>{try{const{data:i}=await tt(`${Pe.apiBaseUrl()}auth/login/email`,{email:n,password:e,studioInvitationCode:s,deviceInfo:a,appInfo:c,trackingInfo:r});return i}catch(i){throw mt(i)&&i.response?.status===403?i.response?.data?.message==="Login disabled"?new Ne:new Re:i}};function Xt({studioDetails:n,onForgotPasswordClick:e,onSsoClick:s,onSignUpClick:a,onRequestClientLoginClick:c}){const{requestId:r,appointmentId:i}=qe(),{device:l,nativeApp:u,tracking:o}=v.useContext(Ee),m=Be(),[f]=_e(),k=f.get("redirect"),{pathname:h}=Et(),b=ye(),[j,x]=v.useState(null),[w,y]=v.useState(0),S=Ce(),_=Ye({defaultValues:{email:"",password:""},validators:{onSubmit:le.object({email:Oe,password:le.string().min(6,"Password must be at least 6 characters")})},onSubmit:async({value:g})=>{await R(g)}}),C=Ie(_.store,g=>g.isSubmitting);v.useEffect(()=>{w>=2&&!m.sessionRecordingStarted()&&(m.opt_in_capturing(),m.startSessionRecording(),Je(),console.log("Potential login issue detected"))},[w,m]);const R=async g=>{y(p=>p+1),x(null);try{const{userToken:p,firebaseUserToken:A}=await Kt(g.email,g.password,{studioInvitationCode:n?.studioInvitationCode,deviceInfo:l,appInfo:u??void 0,trackingInfo:o??void 0});Ge(p),await $e(A);const{personId:d,email:U}=Me(),B=h.toLowerCase().startsWith(b("signUp").toLowerCase()),E=h.toLowerCase().startsWith(b("login").toLowerCase()),N=U?await st(U.trim().toLocaleLowerCase()):null;it("loggedIn",{partnerParams:{em:N||void 0,external_id:d||void 0}});try{await nt(d,"login",{email:U,sha256_email:N,method:"email"})}catch(z){console.error("Failed to track login event:",z)}(B||E)&&S(We(k,b("bookings",{personId:d})))}catch(p){m.sessionRecordingStarted()||(m.opt_in_capturing(),m.startSessionRecording(),Je()),console.log(p,p instanceof Re,p instanceof Ne),p instanceof Re?x("invalid_credentials"):p instanceof Ne?x("login_disabled"):(x("other"),m?.captureException(p,{studioId:n?.id,studioInvitationCode:n?.studioInvitationCode,email:g.email}))}},F=C;if(j==="login_disabled")return t.jsx(lt,{});const L=!!r||!!i;return t.jsxs(t.Fragment,{children:[t.jsx(ae,{children:t.jsx("title",{children:"Sign in with Email"})}),t.jsxs(Se,{className:"px-4 android:h-screen",children:[t.jsx("button",{type:"button",onClick:s,className:"block absolute top-safe-or-4 left-4","aria-label":"Back",children:t.jsx(ot,{size:32})}),t.jsxs("div",{className:"flex flex-col min-h-dscreen px-10 pb-safe-or-5 flex-1 text-center android:h-full",children:[t.jsxs("div",{className:"flex flex-col gap-8 flex-1 items-center justify-center",children:[t.jsxs("div",{className:"flex flex-col gap-3 w-2/3 items-center",children:[t.jsx("div",{className:"mx-auto mb-3",children:t.jsx("div",{className:"bg-ink-black rounded-xl w-10 h-10 flex items-center justify-center",children:t.jsx(Le,{size:25,className:"text-ink-acid"})})}),t.jsx("div",{className:"text-4xl text-ink-black-900 font-extrabold font-impactful leading-none",children:"Welcome back"}),t.jsx("div",{className:"text-base leading-snug font-light text-ink-black",children:"Nice to see you, friendo."})]}),t.jsxs("form",{className:"flex flex-col gap-3 w-full items-center",onSubmit:g=>{g.preventDefault(),g.stopPropagation(),_.handleSubmit()},children:[t.jsx(_.AppField,{name:"email",validators:{onBlur:Oe},children:g=>t.jsx("div",{className:"flex flex-col gap-2 w-full",children:t.jsx(g.TextField,{fullWidth:!0,label:"Email address",type:"email",inputMode:"email",autoCapitalize:"off",autoCompletePassword:!0})})}),t.jsx(_.AppField,{name:"password",validators:{onBlur:le.string().min(6,"Password must be at least 6 characters")},children:g=>t.jsx("div",{className:"flex flex-col gap-2 w-full",children:t.jsx(g.PasswordField,{})})}
1),t.jsx(ne,{disabled:F,fullWidth:!0,submit:!0,children:n?t.jsxs(t.Fragment,{children:["Join @",n.handle]}):"Log in"}),j==="invalid_credentials"&&t.jsxs("div",{className:"text-red-500",children:["Invalid credentials."," ",t.jsx("button",{className:"underline",onClick:e,children:"Click here to reset your password."})]}),j==="other"&&t.jsx("div",{className:"text-red-500",children:"Server error"})]}),t.jsx("div",{className:"text-sm text-ink-lean",children:t.jsx("button",{onClick:e,children:t.jsx("span",{className:"underline",children:"Forgot your password?"})})})]}),t.jsxs("div",{className:"text-sm leading-tighter font-light text-ink-black flex flex-col gap-4 justify-end",children:[!n&&t.jsxs("div",{className:"border border-ink-black-100 rounded-2xl p-2 pt-3 w-full flex flex-col gap-3",children:[t.jsx("div",{className:"text-xs uppercase font-semibold text-ink-black-800 tracking-wide",children:"For clients"}),t.jsx(ne,{onClick:c,variant:"tertiary",className:"font-medium",size:"sm",children:L?"Access your booking":t.jsxs(t.Fragment,{children:[t.jsx(He,{size:14}),"Find your appointment"]})})]}),t.jsxs("button",{onClick:a,type:"button",children:["New to Venue.ink?"," ",t.jsx("span",{className:"underline text-ink-lean",children:"Sign up"}),"."]})]})]})]})]})}function es({studioDetails:n,onSsoClick:e,onLoginClick:s,promoCode:a,studioSignUp:c,journeyHeaderSlot:r}){const i=Be(),[l]=_e(),u=l.get("redirect"),o=Ce(),m=ye(),[f,k]=v.useState(null),{device:h,nativeApp:b,tracking:j}=v.useContext(Ee),x=Ye({defaultValues:{email:"",password:"",confirmPassword:""},validators:{onSubmit:le.object({email:Oe,password:le.string().min(6,"Password must be at least 6 characters"),confirmPassword:le.string()}).refine(d=>d.password===d.confirmPassword,{message:"Passwords must match",path:["confirmPassword"]})},onSubmit:async({value:d})=>{await F(d)}}),w=Ie(x.store,d=>d.values.email)||"",y=v.useMemo(()=>kt(w),[w]),S=()=>{if(!y||!w)return;const d=Ct(w,y.suggestion);x.setFieldValue("email",d)},_=we.useUtils(),[C]=ke("referredByParam");ke("tourParam",l.get("tour")||void 0),ke("sheetParam",l.get("sheet")||void 0);const{mutateAsync:R}=we.updatePersonReferralCode.useMutation({onSuccess:async()=>{await _.getPersonReferralCode.invalidate()}}),F=async d=>{try{k(null);const{userToken:U,firebaseUserToken:B}=await wt(d.email,d.password,{promoCode:a,studioInvitationCode:n?.studioInvitationCode,studioSignUp:c,deviceInfo:h,appInfo:b??void 0,trackingInfo:j??void 0});Ge(U),await $e(B);const{personId:E,email:N}=Me();E&&C&&await R({referredPersonId:E,referralCode:C});const z=N?await st(N.trim().toLocaleLowerCase()):null;i?.capture("sign_up_completed",{signUpMethod:"email",signUpType:c?"studio":"artist",studioInvitation:!!n}),it("accountCreated",{partnerParams:{em:z||void 0,external_id:E||void 0}}),await nt(E,"generate_lead",{email:N,sha256_email:z}),yt(),o(We(u,m("personSettings",{personId:E})))}catch(U){k(U instanceof St?"user_exists":"other")}},L=Ie(x.store,d=>d.isSubmitting||d.isSubmitted&&!d.isValid),[g,p]=v.useState(!1),A=!!n;return v.useEffect(()=>{i?.capture("sign_up__sign_up_viewed",{signUpViewEmailOrSSO:"email",signUpType:c?"studio":"artist",studioInvitation:A})},[i,A,c]),t.jsxs(t.Fragment,{children:[t.jsx(ae,{children:t.jsx("title",{children:"Sign up with Email"})}),t.jsx(Se,{className:"px-4 android:h-screen",children:t.jsxs("div",{className:"flex flex-col min-h-dscreen pb-safe-or-5 flex-1 text-center android:h-full",children:[r,t.jsxs("div",{className:"flex flex-col gap-10 flex-1 items-center justify-center",children:[t.jsxs("div",{className:"flex flex-col gap-4 w-2/3 items-center",children:[t.jsx("div",{className:"mx-auto mb-2",children:t.jsx("div",{className:"bg-ink-black rounded-xl w-10 h-10 flex items-center justify-center",children:t.jsx(Le,{size:25,className:"text-ink-acid"})})}),t.jsx("div",{className:"text-4xl md:text-5xl text-ink-black-900 font-extrabold font-impactful leading-none",children:"Create an account"}),t.jsx("div",{className:"text-base md:text-lg leading-snug font-light text-ink-black",children:"Welcome! Glad you're here."})]}),t.jsxs("form",{className:"flex flex-col px-5 gap-3 w-full items-center",onSubmit:d=>{i?.capture("sign_up__sign_up_clicked",{signUpMethod:"email",signUpType:c?"
1studio":"artist",studioInvitation:!!n}),d.preventDefault(),d.stopPropagation(),x.handleSubmit()},children:[t.jsx(x.AppField,{name:"email",children:d=>t.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[t.jsx(d.TextField,{fullWidth:!0,label:"Email address",type:"email",autoCompletePassword:!0}),y&&t.jsx(_t,{suggestion:y.suggestion,onAccept:S})]})}),t.jsx(x.AppField,{name:"password",children:d=>t.jsx("div",{className:"flex flex-col gap-2 w-full",children:t.jsx(d.PasswordField,{onShowPassword:p})})}),t.jsx(x.AppField,{name:"confirmPassword",children:d=>t.jsx("div",{className:"flex flex-col gap-2 w-full",children:t.jsx(d.TextField,{fullWidth:!0,label:"Confirm Password",type:g?"text":"password",autoCompletePassword:!0})})}),t.jsx(ne,{disabled:L,fullWidth:!0,submit:!0,children:n?t.jsxs(t.Fragment,{children:["Join @",n.handle]}):"Continue"}),f==="user_exists"&&t.jsx("div",{className:"text-red-500 text-left",children:"A user already exists with that email address. Please log in instead."}),f==="other"&&t.jsx("div",{className:"text-red-500 text-left",children:"Server error"})]})]}),t.jsxs("div",{className:"text-sm leading-tighter font-light text-ink-black flex flex-col gap-2 justify-end",children:[t.jsx("button",{onClick:e,children:t.jsx("span",{className:"underline text-ink-lean",children:"Sign up with Google"})}),t.jsxs("button",{onClick:s,type:"button",children:["Already have an account?"," ",t.jsx("span",{className:"text-ink-lean underline",children:"Log in"})]})]})]})})]})}const ts="/assets/BnDVG2Yn.webp",ss="/assets/CJkueecn.webp",is="/assets/DQLH973S.webp",ns="/assets/BdaSotQ9.webp",ls="/assets/B5EQCwCv.webp",os="/assets/1EcpBhmy.webp",as="/assets/D2LCbZrE.webp",rs="/assets/BaoaSNFN.webp",cs="/assets/DUEgblx9.webp",ds="/assets/CxIhv73s.webp",us="/assets/o0wsPgwa.webp",ms="/assets/DEynglak.webp",fs="/assets/CgEsEN_0.webp",xs="/assets/M0HhsztX.webp",ve=[{title:"Customizable booking forms",description:"Fully customizable forms to make scheduling clients a breeze without any back and forth.",src1x:cs,src2x:ds},{title:"Curate your flash gallery",description:"Upload, sort, and organize flash for clients to browse and book.",src1x:as,src2x:rs},{title:"Pain-free payments",description:"Accept cards with no terminal or sign up required. Clients cover card processing.",src1x:fs,src2x:xs},{title:"All your chats in one place",description:"Chat directly with your client's request at your fingertips. They get notified by text.",src1x:ts,src2x:ss},{title:"Host events, solo or with friends",description:"Easily create events with bookable time slots for conventions and flash days.",src1x:us,src2x:ms},{title:"Auto-messages and reminders",description:"Set custom messages to automatically send to clients and reduce no shows.",src1x:is,src2x:ns},{title:"Booking your clients love",description:"Clients can request, chat, and schedule with you without needing to create an account.",src1x:ls,src2x:os}],gt=2e3,gs=gt/1e3;function ps(n){const e=O.c(27),{studioDetails:s,onGetStartedClick:a,onLoginClick:c,onClientLoginClick:r}=n,i=Be(),l=ye(),[u,o]=v.useState(0),[m,f]=v.useState(!1),[k,h]=v.useState(!1),b=v.useRef(!1),j=ve[u];let x,w;e[0]!==i?(x=()=>{i?.capture("sign_up__benefits_carousel_viewed")},w=[i],e[0]=i,e[1]=x,e[2]=w):(x=e[1],w=e[2]),v.useEffect(x,w);let y,S;e[3]===Symbol.for("react.memo_cache_sentinel")?(y={loop:!0,renderMode:"performance",defaultAnimation:{duration:1500},initial:0,slideChanged(d){o(d.track.details.rel)},created(){f(!0)}},S=[d=>{let U;const B=function(){clearTimeout(U)},E=function(){clearTimeout(U),!b.current&&(U=setTimeout(()=>{b.current||d.next()},gt))};d.on("created",()=>{const N=()=>{b.current=!0,h(!0)};d.container.addEventListener("mousedown",N),d.container.addEventListener("touchstart",N),d.container.addEventListener("keydown",z=>{(z.key==="ArrowLeft"||z.key==="ArrowRight")&&N()}),E()}),d.on("dragStarted",B),d.on("animationEnded",E),d.on("updated",E)}],e[3]=y,e[4]=S):(y=e[3],S=e[4]);const[_,C]=zt.useKeenSlider(y,S);let R;e[5]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(ae,{children:t.jsx("link",{rel:"preload",as:"image",href:ve[0].src1x,imageSrcSet:`${ve[0].src1x} 1440w, ${ve[0].src2x} 2880w`,imageSizes:"100vw"})}),e[5]=R):R=e[5];let F;e[6]===Symbol.for("react.memo_cache_sentinel")?(F=ve.map(hs),e[6]=F):F=e[6];let L;e[7]!==u||e[8]!==C||e[9]!==m||e[10]!==k?(L=m&&t.jsx("div",{className:"absolute top-0 h-6 sm:h-10 w-full flex justify-center items-center bg-linear-to-b from-ink-black/50 to-ink-black/0",children:t.jsx("div",{className:"w-full max-w-screen-xs box-border px-4 sm:px-0 flex gap-2 justify-center",children:[...Array(ve.length).keys()].map(d=>t.jsxs("button",{type:"button",onClick:()=>{C.current?.moveToIdx(d)},className:ee("h-[3px] sm:h-[5px] w-full rounded-full bg-ink-white"),children:[t.jsxs("span",{className:"sr-only",children:["Go to slide ",d+1]}),u===d&&!k?t.jsx(ft.div,{initial:{width:0},animate:{width:"100%"},transition:{duration:gs,ease:"linear"},className:"h-[3px] sm:h-[5px] bg-ink-lime rounded-full"}):t.jsx("div",{className:ee("h-[3px] sm:h-[5px] bg-ink-lime rounded-full",u>=d?"w-full":"w-0")})]},d))})}),e[7]=u,e[8]=C,e[9]=m,e[10]=k,e[11]=L):L=e[11];let g;e[12]!==_||e[13]!==L?(g=t.jsxs("div",{className:"keen-slider rounded-3xl sm:rounded-4xl w-full overflow-x-auto overflow-y-hidden flex flex-row items-stretch relative flex-1",ref:_,children:[F,L]}),e[12]=_,e[13]=L,e[14]=g):g=e[14];let p;e[15]!==j||e[16]!==l||e[17]!==m||e[18]!==r||e[19]!==a||e[20]!==c||e[21]!==i||e[22]!==s?(p=m&&t.jsxs("div",{className:"sm:absolute sm:bottom-6 sm:left-1/2 sm:-translate-x-1/2 w-full max-w-screen-xs mx-auto rounded-t-3xl sm:rounded-t-4xl bg-ink-white",children:[t.jsx("div",{className:"hidden sm:block absolute bottom-0 left-0 -translate-x-full w-6 h-6 sm:w-10 sm:h-10 text-ink-white",children:t.jsx("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M40 40H0C22.0914 40 40 22.0914 40 0V40Z",fill:"currentColor"})})}),t.jsx("div",{className:"hidden sm:block absolute bottom-0 right-0 translate-x-full w-6 h-6 sm:w-10 sm:h-10 text-ink-white",children:t.jsx("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 40L40 40C17.9086 40 0 22.0914 0 0L0 40Z",fill:"currentColor"})})}),t.jsxs("div",{className:"flex flex-col gap-4 sm:gap-8 px-0 sm:px-12 sm:pt-16 pb-0 sm:pb-4 text-center",children:[t.jsx("h1",{className:"text-3xl sm:text-5xl text-ink-black-900 font-extrabold leading-[0.9]",children:j.title}),t.jsx("div",{className:"text-base leading-snug font-light sm:text-xl sm:font-normal",children:j.description}),t.jsxs(Ot,{children:[t.jsx(Bt,{asChild:!0,children:t.jsx(ne,{className:"w-2/3 min-w-44 mx-auto",onClick:d=>{s?(d.preventDefault(),i?.capture("sign_up__create_account_clicked",{signUpType:"artist",studioInvitation:!0}),a()):i?.capture("sign_up__get_started_clicked")},children:s?t.jsxs(t.Fragment,{children:["Join @",s.handle]}):"Get started for free"})}),t.jsxs(Dt,{showClose:!1,children:[t.jsx(Ht,{children:t.jsxs(Wt,{children:[t.jsx(Gt,{children:"Are you an artist or studio?"}),t.jsx($t,{children:"Do you want to create an artist or studio profile?"})]})}),t.jsxs("div",{className:"flex flex-col gap-4 px-5 pb-safe-or-5 pt-5",children:[t.jsx("div",{children:t.jsxs(Mt,{className:"flex items-center justify-center rounded-lg",children:[t.jsx(ot,{size:32,className:"text-ink-black-500"}),t.jsx("span",{className:"sr-only",children:"Close"})]})}),t.jsxs("div",{children:[t.jsxs("button",{onClick:()=>{i?.capture("sign_up__create_account_clicked",{signUpType:"artist"}),a()},className:"flex gap-4 w-full py-4 border-b border-b-ink-black-100",children:[t.jsx("div",{className:"text-ink-black",children:t.jsx(Nt,{size:24})}),t.jsxs("div",{className:"grow text-left",children:[t.jsx("div",{className:"text-base leading-tighter font-normal",children:"Create my artist profile"}),t.jsx("div",{className:"text-sm leading-snug font-normal text-ink-black pt-1.5",children:"Open books as a solo artist"})]}),t.jsx("div",{className:"flex flex-col justify-center text-ink-black",children:t.jsx(Xe,{className:"size-6"})})]}),t.jsxs(De,{to:l("studioSignUp"),onClick:()=>{i?.capture("sign_up__create_account_clicked",{signUpType:"studio"})},className:"flex gap-4 w-full py-4",children:[t.jsx("div",{className:"text-ink-black",children:t.jsx(Rt,{size:24})}),t.jsxs("div",{className:"grow text-left",children:[t.jsx("div",{className:"text-base leading-tighter font-normal",children:"Create my studio profile"}),t.jsx("div",{className:"text-sm leading-snug font-normal text-ink-black pt-1.5",children:"Open books as a studio with multiple artists"})]}),t.jsx("div",{className:"flex flex-col justify-center text-ink-black",children:t.jsx(Xe,{className:"size-6"})})]})]}),t.jsxs("div",{className:"text-sm leading-snug font-normal border border-ink-black-100 px-4 py-5 rounded-2xl flex gap-4",children:[t.jsx("div",{className:"text-ink-black-200",children:t.jsx(He,{size:24})}),t.jsxs("div",{children:["If you're a client looking to book an appointment with your artist, find them"," ",t.jsx("button",{onClick:()=>{i?.capture("sign_up__client_login_clicked"),r()},className:"text-ink-lean underline",children:"here"}),"."]})]})]})]})]}),t.jsxs("div",{className:"text-sm leading-tighter font-light sm:text-base sm:leading-snug",children:["Already on Venue?"," ",t.jsx("button",{type:"button",onClick:()=>{i?.capture("sign_up__login_clicked"),c()},className:"text-ink-black underline",children:"Log in"})]})]})]}),e[15]=j,e[16]=l,e[17]=m,e[18]=r,e[19]=a,e[20]=c,e[21]=i,e[22]=s,e[23]=p):p=e[23];let A;
1return e[24]!==g||e[25]!==p?(A=t.jsxs(t.Fragment,{children:[R,t.jsxs("div",{className:"flex flex-col min-h-dscreen max-w-dscreen box-border p-safe-or-4 gap-4 sm:p-safe-or-6 sm:gap-6 text-foreground android:h-full bg-ink-white",children:[g,p]})]}),e[24]=g,e[25]=p,e[26]=A):A=e[26],A}function hs(n,e){return t.jsx("div",{className:"keen-slider__slide relative",children:t.jsx("img",{src:n.src1x,srcSet:`${n.src1x} 1440w, ${n.src2x} 2880w`,sizes:"100vw",alt:n.title,loading:e===0?"eager":"lazy",className:"absolute inset-0 w-full h-full object-cover"})},e)}function bs(n){const e=O.c(6),{studioDetails:s,onGetStartedClick:a,onLoginClick:c,onClientLoginClick:r}=n;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ae,{children:t.jsx("title",{children:"Sign up"})}),e[0]=i):i=e[0];let l;return e[1]!==r||e[2]!==a||e[3]!==c||e[4]!==s?(l=t.jsxs(t.Fragment,{children:[i,t.jsx(Se,{className:"android:h-screen",fullWidth:!0,children:t.jsx(ps,{studioDetails:s,onGetStartedClick:a,onLoginClick:c,onClientLoginClick:r})})]}),e[1]=r,e[2]=a,e[3]=c,e[4]=s,e[5]=l):l=e[5],l}function js(){const n=O.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"w-full",children:t.jsxs("div",{className:"relative text-ink-black",children:[t.jsx("hr",{className:"absolute top-1/2 w-full z-0 border-ink-black-100"}),t.jsx("span",{className:"absolute p-2 bg-ink-white z-10 left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",children:"or"})]})}),n[0]=e):e=n[0],e}function vs(n){const e=O.c(22),{onLoginClick:s}=n,[a,c]=v.useState(!1),{mutateAsync:r}=we.sendPasswordResetCode.useMutation();let i,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={email:""},l={onSubmit:le.object({email:Oe})},e[0]=i,e[1]=l):(i=e[0],l=e[1]);let u;e[2]!==r?(u={defaultValues:i,validators:l,onSubmit:async _=>{const{value:C}=_;c(!1);try{await r(C.email)}catch{c(!0)}}},e[2]=r,e[3]=u):u=e[3];const o=Ye(u),m=Ie(o.store,ys),f=Ie(o.store,ws),k=m;let h;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(ae,{children:t.jsx("title",{children:"Forgot Password"})}),e[4]=h):h=e[4];let b;e[5]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsxs("div",{className:"flex flex-col gap-3 w-2/3 items-center",children:[t.jsx("div",{className:"mx-auto mb-3",children:t.jsx("div",{className:"bg-ink-black rounded-xl w-10 h-10 flex items-center justify-center",children:t.jsx(Le,{size:25,className:"text-ink-acid"})})}),t.jsx("div",{className:"text-4xl text-ink-black-900 font-extrabold font-impactful leading-none",children:"Forgot password?"}),t.jsx("div",{className:"text-base leading-snug font-light text-ink-black",children:"Start with a fresh password."})]}),e[5]=b):b=e[5];let j;e[6]!==f?(j=f&&t.jsx("div",{children:"You will receive an email with instructions to reset your password. It will expire in a couple hours."}),e[6]=f,e[7]=j):j=e[7];let x;e[8]!==o||e[9]!==k||e[10]!==f||e[11]!==a?(x=!f&&t.jsxs("form",{className:"flex flex-col gap-3 w-full items-center",onSubmit:_=>{_.preventDefault(),_.stopPropagation(),o.handleSubmit()},children:[t.jsx(o.AppField,{name:"email",children:ks}),t.jsx(ne,{disabled:k,fullWidth:!0,submit:!0,children:"Reset my password"}),a&&t.jsx("div",{className:"text-red-500 text-left mt-2",children:"Server error"})]}),e[8]=o,e[9]=k,e[10]=f,e[11]=a,e[12]=x):x=e[12];let w;e[13]!==f?(w=!f&&t.jsx(js,{}),e[13]=f,e[14]=w):w=e[14];let y;e[15]!==s?(y=t.jsx("button",{onClick:s,className:"text-base underline text-ink-lean",children:"Sign in"}),e[15]=s,e[16]=y):y=e[16];let S;return e[17]!==j||e[18]!==x||e[19]!==w||e[20]!==y?(S=t.jsxs(t.Fragment,{children:[h,t.jsx(Se,{className:"px-4 android:h-screen",children:t.jsx("div",{className:"flex flex-col min-h-dscreen px-10 pb-safe-or-5 flex-1 text-center android:h-full",children:t.jsxs("div",{className:"flex flex-col gap-10 flex-1 items-center justify-center",children:[b,j,x,w,y]})})})]}),e[17]=j,e[18]=x,e[19]=w,e[20]=y,e[21]=S):S=e[21],S}function ks(n){return t.jsx("div",{className:"flex flex-col gap-2 w-full",children:t.jsx(n.TextField,{fullWidth:!0,label:"Email address",type:"email",autoCapitalize:"off",autoCompletePassword:!0})})}function ws(n){return n.isSubmitSuccessful}function ys(n){return n.isSubmitting}
1const Ss=async({email:n,code:e,appInfo:s,appointmentId:a,appointmentRequestId:c,deviceInfo:r,headers:i,trackingInfo:l,channel:u,sig:o})=>{try{const{data:m}=await tt(`${Pe.apiBaseUrl()}auth/login/magic-link`,{email:n,code:e,...a?{appointmentId:a}:{},...c?{requestId:c}:{},...r?{deviceInfo:r}:{},...s?{appInfo:s}:{},...l?{trackingInfo:l}:{},...u?{channel:u}:{},...o?{sig:o}:{}},i);return m}catch(m){throw mt(m)&&m.response?.status===403?m.response?.data?.message==="Login disabled"?new Ne:new Re:m}};function _s({onFailed:n,onLoginDisabled:e}){const{device:s,nativeApp:a,tracking:c}=v.useContext(Ee),r=ye(),i=Ce(),[l]=_e(),u=v.useRef(!1);return v.useEffect(()=>{u.current||(u.current=!0,(async()=>{try{const o=await It(),{userToken:m,firebaseUserToken:f}=await Ss({email:l.get("email"),code:l.get("code"),appInfo:a??void 0,trackingInfo:c??void 0,appointmentId:l.get("appointmentId")||void 0,appointmentRequestId:l.get("requestId")||void 0,deviceInfo:s,channel:l.get("channel")||void 0,sig:l.get("sig")||void 0,headers:o?{Authorization:`Bearer ${o}`}:{}});Ge(m),await $e(f);const{personId:k}=Me(),h=r("bookings",{personId:k});i(We(l.get("redirect"),h))}catch(o){o instanceof Ne&&e(),n()}})())},[s,r,a,i,n,e,l,c]),t.jsx(at,{})}const pt=({additionalState:n})=>{const e=Ce(),s=ct(),[a,c]=v.useState(!1),[r,i]=v.useState(null);v.useEffect(()=>{(async()=>{if(Pe.isIOS()&&!a)try{await et.initialize({apple:{}}),c(!0)}catch(u){console.error(u),i(u)}})()},[a]);const l=v.useCallback(async()=>{if(a)try{const{result:u}=await et.login({provider:"apple",options:{scopes:["name","email"]}});if(u.idToken){const o=new URLSearchParams({idToken:u.idToken,state:JSON.stringify({action:"auth-apple",...s?{redirect:s}:{},...n??{}})});e(`/apple-callback?${o.toString()}`,{replace:!0})}else console.error("Unexpected response type from Apple login",u)}catch(u){i(u)}},[n,a,e,s]);return[a,l,r]},ht=n=>{const e=O.c(14),{mode:s,additionalState:a,onClick:c}=n,r=Ce(),[i,l]=v.useState(null),u=ct(),[o,m]=v.useState(!1);let f,k;e[0]!==a||e[1]!==o||e[2]!==r||e[3]!==u?(f=()=>{window?.google?.accounts?.id&&(o||(google.accounts.id.initialize({client_id:Pe.googleClientId(),callback:x=>{const w=new URLSearchParams;w.append("idToken",x.credential),w.append("state",JSON.stringify({action:"auth-gis",...u?{redirect:u}:{},...a??{}})),r(`/google-callback?${w.toString()}`,{replace:!0})}}),m(!0)))},k=[a,o,r,u],e[0]=a,e[1]=o,e[2]=r,e[3]=u,e[4]=f,e[5]=k):(f=e[4],k=e[5]),v.useEffect(f,k);let h,b;e[6]!==i||e[7]!==o||e[8]!==s||e[9]!==c?(h=()=>{!i||!o||(google.accounts.id.renderButton(i,{theme:"filled_black",size:"large",shape:"pill",type:"standard",text:s==="login"?"continue_with":"signup_with",logo_alignment:"left",click_listener:c}),s==="sign-up"&&google.accounts.id.prompt())},b=[i,o,s,c],e[6]=i,e[7]=o,e[8]=s,e[9]=c,e[10]=h,e[11]=b):(h=e[10],b=e[11]),v.useEffect(h,b);let j;return e[12]!==o?(j=[o,l],e[12]=o,e[13]=j):j=e[13],j};function Cs(n){const e=O.c(64),{studioDetails:s,journeyHeaderSlot:a,onEmailClick:c,onRequestClientLoginClick:r,onSignUpClick:i}=n,{requestId:l,appointmentId:u}=qe(),{device:o,nativeApp:m,tracking:f}=v.useContext(Ee),k=rt(),h=s?.studioInvitationCode,b=m??void 0,j=f??void 0;let x;e[0]!==o||e[1]!==h||e[2]!==b||e[3]!==j?(x={mode:"login",additionalState:{studioInvitationCode:h,deviceInfo:o,appInfo:b,trackingInfo:j}},e[0]=o,e[1]=h,e[2]=b,e[3]=j,e[4]=x):x=e[4];const[w,y]=ht(x),S=s?.studioInvitationCode,_=m??void 0,C=f??void 0;let R;e[5]!==o||e[6]!==S||e[7]!==_||e[8]!==C?(R={additionalState:{studioInvitationCode:S,deviceInfo:o,appInfo:_,trackingInfo:C}},e[5]=o,e[6]=S,e[7]=_,e[8]=C,e[9]=R):R=e[9];const[F,L]=pt(R),g=s?.studioInvitationCode,p=m??void 0,A=f??void 0;let d;e[10]!==o||e[11]!==p||e[12]!==A||e[13]!==g?(d={action:"auth",additionalState:{studioInvitationCode:g,deviceInfo:o,appInfo:p,trackingInfo:A}},e[10]=o,e[11]=p,e[12]=A,e[13]=g,e[14]=d):d=e[14];const U=dt(d),B=s?.studioInvitationCode,E=m??void 0,N=f??void 0;let z;e[15]!==o||e[16]!==B||e[17]!==E||e[18]!==N?(z={action:"auth",additionalState:{studioInvitationCode:B,deviceInfo:o,appInfo:E,trackingInfo:N}},e[15]=o,e[16]=B,e[17]=E,e[18]=N,e[19]=z):z=e[19];const[P,D]=xt(z);let I;P?I="native":k?I="instagram":w?I="gis":I="redirect";const W=!!l||!!u;let te;
1e[20]===Symbol.for("react.memo_cache_sentinel")?(te=t.jsx(ae,{children:t.jsx("title",{children:"Sign in"})}),e[20]=te):te=e[20];let se;e[21]===Symbol.for("react.memo_cache_sentinel")?(se=t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx("div",{className:"mx-auto mb-3",children:t.jsx("div",{className:"bg-ink-black rounded-xl w-10 h-10 flex items-center justify-center",children:t.jsx(Le,{size:25,className:"text-ink-acid"})})}),t.jsx("div",{className:"text-4xl text-ink-black-900 font-extrabold font-impactful leading-none",children:"Welcome back"}),t.jsx("div",{className:"text-base leading-snug font-light text-ink-black",children:"Nice to see you, friendo."})]}),e[21]=se):se=e[21];let Q;e[22]!==s?(Q=s?t.jsxs("div",{className:"text-sm uppercase font-semibold text-ink-black-800 tracking-wide",children:["Join @",s.handle]}):t.jsx("div",{className:"text-sm uppercase font-semibold text-ink-black-800 tracking-wide",children:"For artists & studios"}),e[22]=s,e[23]=Q):Q=e[23];let Z;e[24]!==I||e[25]!==D?(Z=I==="native"&&t.jsx(ie,{onClick:D,authority:"google",fullWidth:!0,children:"Continue with Google"}),e[24]=I,e[25]=D,e[26]=Z):Z=e[26];let M;e[27]!==I?(M=I==="instagram"&&t.jsx(ut,{fullWidth:!0,triggerAsChild:!0,children:t.jsx(ie,{authority:"google",fullWidth:!0,children:"Continue with Google"})}),e[27]=I,e[28]=M):M=e[28];let K;e[29]!==I||e[30]!==y?(K=I==="gis"&&t.jsx("div",{ref:y}),e[29]=I,e[30]=y,e[31]=K):K=e[31];let X;e[32]!==I||e[33]!==U?(X=I==="redirect"&&t.jsx(De,{to:U,viewTransition:!0,children:t.jsx(ie,{authority:"google",fullWidth:!0,children:"Continue with Google"})}),e[32]=I,e[33]=U,e[34]=X):X=e[34];let T;e[35]!==F||e[36]!==L?(T=F&&t.jsx(ie,{onClick:L,authority:"apple",fullWidth:!0,children:"Continue with Apple"}),e[35]=F,e[36]=L,e[37]=T):T=e[37];let H;e[38]!==c?(H=t.jsx(ne,{onClick:c,variant:"secondary",className:"text-ink-black font-medium",fullWidth:!0,children:"Continue with email"}),e[38]=c,e[39]=H):H=e[39];let V;e[40]!==Z||e[41]!==M||e[42]!==K||e[43]!==X||e[44]!==T||e[45]!==H?(V=t.jsxs("div",{className:"flex flex-col w-full gap-3 items-center",children:[Z,M,K,X,T,H]}),e[40]=Z,e[41]=M,e[42]=K,e[43]=X,e[44]=T,e[45]=H,e[46]=V):V=e[46];let q;e[47]!==Q||e[48]!==V?(q=t.jsxs("div",{className:"flex flex-col gap-4 items-center border border-ink-black-100 rounded-2xl px-7 py-5 w-full",children:[Q,V]}),e[47]=Q,e[48]=V,e[49]=q):q=e[49];let Y;e[50]!==W||e[51]!==r||e[52]!==s?(Y=!s&&t.jsxs("div",{className:"border border-ink-black-100 rounded-2xl px-7 py-5 pb-8 w-full flex flex-col gap-4",children:[t.jsx("div",{className:"text-sm uppercase font-semibold text-ink-black-800 tracking-wide",children:"For clients"}),t.jsx(ne,{onClick:r,variant:"primary",className:"font-medium",children:W?"Access your booking":t.jsxs(t.Fragment,{children:[t.jsx(He,{}),"Find your appointment"]})})]}),e[50]=W,e[51]=r,e[52]=s,e[53]=Y):Y=e[53];let G;e[54]!==q||e[55]!==Y?(G=t.jsxs("div",{className:"flex flex-col gap-10 flex-1 items-center justify-center px-5",children:[se,q,Y]}),e[54]=q,e[55]=Y,e[56]=G):G=e[56];let $;e[57]!==W||e[58]!==i?($=!W&&t.jsx("div",{className:"text-sm leading-tighter font-light text-ink-black flex flex-col justify-end",children:t.jsxs("button",{onClick:i,type:"button",children:["New to Venue?"," ",t.jsx("span",{className:"text-ink-lean underline",children:"Sign up"})]})}),e[57]=W,e[58]=i,e[59]=$):$=e[59];let J;return e[60]!==a||e[61]!==G||e[62]!==$?(J=t.jsxs(t.Fragment,{children:[te,t.jsx(Se,{className:"px-4 android:h-screen",children:t.jsxs("div",{className:"flex flex-col min-h-dscreen pb-safe-or-5 flex-1 text-center android:h-full",children:[a,G,$]})})]}),e[60]=a,e[61]=G,e[62]=$,e[63]=J):J=e[63],J}function Ns(n){const e=O.c(108),{studioDetails:s,onEmailClick:a,onLoginClick:c,promoCode:r,referralCode:i,studioSignUp:l,journeyHeaderSlot:u}=n,o=Be(),m=rt(),{device:f,nativeApp:k,tracking:h}=v.useContext(Ee),b=!!i;let j;e[0]!==b?(j={enabled:b},e[0]=b,e[1]=j):j=e[1];const{data:x}=we.getPersonProfileImageUrlByHandle.useQuery(i,j),w=!!i;let y;e[2]!==w?(y={enabled:w},e[2]=w,e[3]=y):y=e[3];const{data:S}=we.referrals.getReferredRewardByReferrerHandle.useQuery(i,y);console.log(S);const _=s?.studioInvitationCode,C=k??void 0,R=h??void 0;let F;e[4]!==f||e[5]!==r||e[6]!==l||e[7]!==_||e[8]!==C||e[9]!==R?(F={promoCode:r,studioSignUp:l,studioInvitationCode:_,deviceInfo:f,appInfo:C,trackingInfo:R},e[4]=f,e[5]=r,e[6]=l,e[7]=_,e[8]=C,e[9]=R,e[10]=F):F=e[10];let L;e[11]!==o||e[12]!==s||e[13]!==l?(L=()=>{o?.capture("sign_up__sign_up_clicked",{studioInvitation:!!s,signUpMethod:"google",signUpType:l?"studio":"artist"})},e[11]=o,e[12]=s,e[13]=l,e[14]=L):L=e[14];let g;e[15]!==F||e[16]!==L?(g={mode:"sign-up",additionalState:F,onClick:L},e[15]=F,e[16]=L,e[17]=g):g=e[17];const[p,A]=ht(g),d=s?.studioInvitationCode,U=k??void 0,B=h??void 0;let E;e[18]!==f||e[19]!==r||e[20]!==l||e[21]!==d||e[22]!==U||e[23]!==B?(E={action:"auth",additionalState:{promoCode:r,studioSignUp:l,studioInvitationCode:d,deviceInfo:f,appInfo:U,trackingInfo:B}},e[18]=f,e[19]=r,e[20]=l,e[21]=d,e[22]=U,e[23]=B,e[24]=E):E=e[24];const N=dt(E),z=s?.studioInvitationCode,P=k??void 0,D=h??void 0;let I;e[25]!==f||e[26]!==r||e[27]!==l||e[28]!==z||e[29]!==P||e[30]!==D?(I={action:"auth",additionalState:{promoCode:r,studioSignUp:l,studioInvitationCode:z,deviceInfo:f,appInfo:P,trackingInfo:D}},e[25]=f,e[26]=r,e[27]=l,e[28]=z,e[29]=P,e[30]=D,e[31]=I):I=e[31];const[W,te]=xt(I),se=s?.studioInvitationCode,Q=k??void 0,Z=h??void 0;let M;e[32]!==f||e[33]!==r||e[34]!==l||e[35]!==se||e[36]!==Q||e[37]!==Z?(M={additionalState:{promoCode:r,studioSignUp:l,studioInvitationCode:se,deviceInfo:f,appInfo:Q,trackingInfo:Z}},e[32]=f,e[33]=r,e[34]=l,e[35]=se,e[36]=Q,e[37]=Z,e[38]=M):M=e[38];const[K,X]=pt(M);let T;W?T="native":m?T="instagram":p?T="gis":T="redirect";const H=!!s;let V,q;e[39]!==H||e[40]!==o||e[41]!==l?(V=()=>{o?.capture("sign_up__sign_up_viewed",{signUpViewEmailOrSSO:"sso",studioInvitation:H,signUpType:l?"studio":"artist"})},q=[o,H,l],e[39]=H,e[40]=o,e[41]=l,e[42]=V,e[43]=q):(V=e[42],q=e[43]),v.useEffect(V,q);let Y;e[44]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(ae,{children:t.jsx("title",{children:"Sign up with Google"})}),e[44]=Y):Y=e[44];let G;e[45]!==x||e[46]!==i?(G=i&&x?t.jsx(Ut,{referrerProfileImageUrl:x}):t.jsx("div",{className:"bg-ink-black rounded-xl w-10 h-10 flex items-center justify-center",children:t.jsx(Le,{size:25,className:"text-ink-acid"})}),e[45]=x,e[46]=i,e[47]=G):G=e[47];let $;e[48]!==i||e[49]!==S?.currency||e[50]!==S?.referredRewardCents||e[51]!==s?($=t.jsx("div",{className:"text-4xl md:text-5xl text-ink-black-900 font-extrabold font-impactful leading-none",children:s?t.jsxs(t.Fragment,{children:["Join @",s.handle]}):i?t.jsxs(t.Fragment,{children:["@",i," wants you to earn"," ",Pt(S?.referredRewardCents??0,S?.currency??Lt)]}):t.jsx(t.Fragment,{children:"Start booking with Venue"})}),e[48]=i,e[49]=S?.currency,e[50]=S?.referredRewardCents,e[51]=s,e[52]=$):$=e[52];let J;e[53]!==i?(J=i?t.jsx(t.Fragment,{children:"Start booking with Venue and earn a referral bonus. "}):null,e[53]=i,e[54]=J):J=e[54];let Fe;e[55]===Symbol.for("react.memo_cache_sentinel")?(Fe=t.jsxs(Qe,{href:"https://www.venue.ink/client-terms",className:"underline",children:["terms"," "]}),e[55]=Fe):Fe=e[55];let Ue;e[56]===Symbol.for("react.memo_cache_sentinel")?(Ue=t.jsx(Qe,{href:"https://www.venue.ink/privacy-policy",className:"underline",children:"privacy policy"}),e[56]=Ue):Ue=e[56];let ce;e[57]!==J?(ce=t.jsxs("div",{className:"text-base leading-snug font-light text-ink-black",children:[J,"By continuing you agree to our"," ",Fe,"and"," ",Ue,"."]}),e[57]=J,e[58]=ce):ce=e[58];let de;e[59]!==$||e[60]!==ce?(de=t.jsxs("div",{className:"flex flex-col gap-5 w-5/6 items-center",children:[$,ce]}),e[59]=$,e[60]=ce,e[61]=de):de=e[61];let ue;e[62]!==T||e[63]!==te||e[64]!==o||e[65]!==s||e[66]!==l?(ue=T==="native"&&t.jsx(ie,{onClick:()=>{o?.capture("sign_up__sign_up_clicked",{signUpType:l?"studio":"artist",studioInvitation:!!s,signUpMethod:"google"}),te()},authority:"google",fullWidth:!0,children:"Sign up with Google"}),e[62]=T,e[63]=te,e[64]=o,e[65]=s,e[66]=l,e[67]=ue):ue=e[67];let me;e[68]!==T?(me=T==="instagram"&&t.jsx(ut,{fullWidth:!0,triggerAsChild:!0,children:t.jsx(ie,{authority:"google",fullWidth:!0,children:"Sign up with Google"})}),e[68]=T,e[69]=me):me=e[69];let fe;e[70]!==T||e[71]!==A?(fe=T==="gis"&&t.jsx("div",{ref:A}),e[70]=T,e[71]=A,e[72]=fe):fe=e[72];let xe;e[73]!==T||e[74]!==N||e[75]!==o||e[76]!==s||e[77]!==l?(xe=T==="redirect"&&t.jsx(De,{to:N,onClick:bt=>{bt.preventDefault(),o?.capture("sign_up__sign_up_clicked",{signUpType:l?"studio":"artist",signUpMethod:"google",studioInvitation:!!s},{send_instantly:!0}),window.location.href=N},viewTransition:!0,children:t.jsx(ie,{authority:"google",fullWidth:!0,children:"Sign up with Google"})}),e[73]=T,e[74]=N,e[75]=o,e[76]=s,e[77]=l,e[78]=xe):xe=e[78];let ge;e[79]!==K||e[80]!==X||e[81]!==o||e[82]!==s||e[83]!==l?(ge=K&&t.jsx(ie,{onClick:()=>{o?.capture("sign_up__sign_up_clicked",{signUpType:l?"studio":"artist",signUpMethod:"apple",studioInvitation:!!s}),X()},authority:"apple",fullWidth:!0,children:"Sign up with Apple"}),e[79]=K,e[80]=X,e[81]=o,e[82]=s,e[83]=l,e[84]=ge):ge=e[84];let pe;e[85]!==a||e[86]!==o||e[87]!==s||e[88]!==l?(pe=t.jsx(ne,{onClick:()=>{o?.capture("sign_up__sign_up_clicked",{signUpType:l?"studio":"artist",signUpMethod:"email",studioInvitation:!!s}),a()},variant:"secondary",className:"text-ink-black font-medium",fullWidth:!0,children:"Continue with email"}),e[85]=a,e[86]=o,e[87]=s,e[88]=l,e[89]=pe):pe=e[89];let he;e[90]!==ue||e[91]!==me||e[92]!==fe||e[93]!==xe||e[94]!==ge||e[95]!==pe?(he=t.jsxs("div",{className:"flex flex-col px-5 gap-3 w-full items-center",children:[ue,me,fe,xe,ge,pe]}),e[90]=ue,e[91]=me,e[92]=fe,e[93]=xe,e[94]=ge,e[95]=pe,e[96]=he):he=e[96];let be;
1e[97]!==G||e[98]!==de||e[99]!==he?(be=t.jsxs("div",{className:"flex flex-col gap-10 flex-1 items-center justify-center",children:[G,de,he]}),e[97]=G,e[98]=de,e[99]=he,e[100]=be):be=e[100];let Te;e[101]===Symbol.for("react.memo_cache_sentinel")?(Te=t.jsx("span",{className:"text-ink-lean underline",children:"Log in"}),e[101]=Te):Te=e[101];let je;e[102]!==c?(je=t.jsx("div",{className:"text-sm leading-tighter font-light text-ink-black flex flex-col gap-2 justify-end",children:t.jsxs("button",{onClick:c,type:"button",children:["Already have an account?"," ",Te]})}),e[102]=c,e[103]=je):je=e[103];let ze;return e[104]!==u||e[105]!==be||e[106]!==je?(ze=t.jsxs(t.Fragment,{children:[Y,t.jsx(Se,{className:"px-4 android:h-screen",children:t.jsxs("div",{className:"flex flex-col min-h-dscreen pb-safe-or-5 flex-1 text-center android:h-full",children:[u,be,je]})})]}),e[104]=u,e[105]=be,e[106]=je,e[107]=ze):ze=e[107],ze}function Is(n){const e=O.c(18),{images:s,className:a}=n,c=s.length,r=`gallery-${c}`;let i,l,u,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={opacity:0},l={opacity:1},u={opacity:0},o={duration:.3,ease:"easeOut"},e[0]=i,e[1]=l,e[2]=u,e[3]=o):(i=e[0],l=e[1],u=e[2],o=e[3]);const m=c===1&&"grid-cols-1",f=c===2&&"grid-cols-1",k=c>=3&&"grid-cols-2";let h;e[4]!==a||e[5]!==m||e[6]!==f||e[7]!==k?(h=ee("grid gap-4 h-full p-5 w-full max-h-screen",m,f,k,a),e[4]=a,e[5]=m,e[6]=f,e[7]=k,e[8]=h):h=e[8];let b;if(e[9]!==c||e[10]!==s){let x;e[12]!==c?(x=(w,y)=>t.jsx("div",{className:ee("relative overflow-hidden rounded-lg w-full h-full",c>=3&&y===2&&"col-span-2"),children:t.jsx("img",{src:w.src,className:ee("w-full h-full object-cover rounded-xl",w.className),loading:"lazy",alt:w.alt})},y),e[12]=c,e[13]=x):x=e[13],b=s.map(x),e[9]=c,e[10]=s,e[11]=b}else b=e[11];let j;return e[14]!==r||e[15]!==b||e[16]!==h?(j=t.jsx(Vt,{mode:"popLayout",children:t.jsx(ft.div,{initial:i,animate:l,exit:u,transition:o,className:h,children:b},r)}),e[14]=r,e[15]=b,e[16]=h,e[17]=j):j=e[17],j}function re(n){const e=O.c(45),{initialStep:s,studioSignUp:a}=n,{promoCode:c,requestId:r,appointmentId:i}=qe(),[l]=_e();let u;e[0]!==l?(u=l.get("referred_by")||void 0,e[0]=l,e[1]=u):u=e[1];const o=u;let m;e[2]!==l?(m=l.get("flow"),e[2]=l,e[3]=m):m=e[3];const f=m==="convention-apply";let k;e[4]!==f?(k=(P,D)=>f?t.jsx(Tt,{onBack:P,position:D,className:"pt-safe-or-5"}):null,e[4]=f,e[5]=k):k=e[5];const h=k;let b;e[6]!==l?(b=l.get("join_studio")||void 0,e[6]=l,e[7]=b):b=e[7];const j=b;let x;e[8]!==l?(x=!!l.get("code")&&!!l.get("email"),e[8]=l,e[9]=x):x=e[9];const[w,y]=v.useState(x),S=!!j&&!a;let _;e[10]!==S?(_={enabled:S},e[10]=S,e[11]=_):_=e[11];const{data:C,isLoading:R}=we.getStudioDetailsByInviteCode.useQuery(j,_);ke("referredByParam",o);let F;e[12]!==l?(F=l.get("tour")||void 0,e[12]=l,e[13]=F):F=e[13],ke("tourParam",F);let L;e[14]!==l?(L=l.get("sheet")||void 0,e[14]=l,e[15]=L):L=e[15],ke("sheetParam",L);const[g,p]=v.useState(s),A=ye(),d=Ce();if(R){let P;return e[16]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(at,{code:At.SignUpOrLoginScreen_getStudioDetailsByInviteCode}),e[16]=P):P=e[16],P}if(w){let P;return e[17]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Ke,{children:t.jsx(_s,{onFailed:()=>y(!1),onLoginDisabled:()=>{y(!1),p("login-disabled")}})}),e[17]=P):P=e[17],P}if(g==="login-disabled"){let P;return e[18]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(lt,{}),e[18]=P):P=e[18],P}if(g==="features"){let P,D;e[19]===Symbol.for("react.memo_cache_sentinel")?(P=()=>p("sso-sign-up"),D=()=>p("sso-login"),e[19]=P,e[20]=D):(P=e[19],D=e[20]);let I;e[21]!==i||e[22]!==A||e[23]!==d||e[24]!==r?(I=()=>d(A("findYourAppointment",{requestId:r,appointmentId:i})),e[21]=i,e[22]=A,e[23]=d,e[24]=r,e[25]=I):I=e[25];let W;return e[26]!==C||e[27]!==I?(W=t.jsx(bs,{studioDetails:C,onGetStartedClick:P,onLoginClick:D,onClientLoginClick:I}),e[26]=C,e[27]=I,e[28]=W):W=e[28],W}let U;e[29]!==i||e[30]!==A||e[31]!==h||e[32]!==d||e[33]!==c||e[34]!==o||e[35]!==r||e[36]!==g||e[37]!==C||e[38]!==a?(U=()=>{if(g==="sso-sign-up")return t.jsx(Ns,{studioDetails:C,onEmailClick:()=>p("email-sign-up"),onLoginClick:()=>p("sso-login"),promoCode:c,referralCode:o,studioSignUp:a,journeyHeaderSlot:h(()=>d(-1),Ze.profile)});if(g==="forgot-password")return t.jsx(vs,{onLoginClick:()=>p("email-login")});if(g==="email-sign-up")return t.jsx(es,{studioDetails:C,onSsoClick:()=>p("sso-sign-up"),onLoginClick:()=>p("sso-login"),promoCode:c,studioSignUp:a,journeyHeaderSlot:h(()=>p("sso-sign-up"),Ze.profile)});if(g==="sso-login")return t.jsx(Cs,{studioDetails:C,journeyHeaderSlot:h(()=>d(-1)),onEmailClick:()=>p("email-login"),onRequestClientLoginClick:()=>
1d(A("findYourAppointment",{requestId:r,appointmentId:i})),onSignUpClick:()=>p(a?"sso-sign-up":"features")});if(g==="email-login")return t.jsx(Xt,{studioDetails:C,onForgotPasswordClick:()=>p("forgot-password"),onSsoClick:()=>p("sso-login"),onSignUpClick:()=>p(a?"email-sign-up":"features"),onRequestClientLoginClick:()=>d(A("findYourAppointment",{requestId:r,appointmentId:i}))})},e[29]=i,e[30]=A,e[31]=h,e[32]=d,e[33]=c,e[34]=o,e[35]=r,e[36]=g,e[37]=C,e[38]=a,e[39]=U):U=e[39];const B=U;let E;e[40]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Is,{images:[{src:Qt},{src:Zt},{src:Jt}]}),e[40]=E):E=e[40];let N;e[41]!==B?(N=B(),e[41]=B,e[42]=N):N=e[42];let z;return e[43]!==N?(z=t.jsx(t.Fragment,{children:t.jsx(Yt,{sidebarContent:E,sidebarClassName:"bg-ink-black-50",children:t.jsx(Ke,{children:N})})}),e[43]=N,e[44]=z):z=e[44],z}function Ps(n){const e=O.c(4),{children:s,initialLoginStep:a}=n,c=a===void 0?Pe.isNative()?"features":"sso-login":a,{isLoggedIn:r}=v.useContext(oe);let i;return e[0]!==s||e[1]!==c||e[2]!==r?(i=r?t.jsx(t.Fragment,{children:s}):t.jsx(re,{initialStep:c}),e[0]=s,e[1]=c,e[2]=r,e[3]=i):i=e[3],i}function Ls(){const n=O.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ps,{children:t.jsx(qt,{children:t.jsx(Ft,{})})}),n[0]=e):e=n[0],e}const Ks=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"}));function As(){const n=O.c(5),{isLoggedIn:e}=v.useContext(oe),[s]=_e(),a=!!s.get("code")&&!!s.get("email");if(e&&!a){let r;n[0]!==s?(r=We(s.get("redirect"),"/me"),n[0]=s,n[1]=r):r=n[1];let i;return n[2]!==r?(i=t.jsx(Ae,{to:r,replace:!0}),n[2]=r,n[3]=i):i=n[3],i}let c;return n[4]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(re,{initialStep:"sso-login"}),n[4]=c):c=n[4],c}const Xs=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"}));function Es(){const n=O.c(3);Ve();const{isLoggedIn:e}=v.useContext(oe),[s]=_e();if(e){let i;return n[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Ae,{to:"/me",replace:!0}),n[0]=i):i=n[0],i}const c=s.get("referred_by")||void 0?"sso-sign-up":"features";let r;return n[1]!==c?(r=t.jsx(re,{initialStep:c}),n[1]=c,n[2]=r):r=n[2],r}const ei=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"}));function Fs(){const n=O.c(2),{isLoggedIn:e}=v.useContext(oe);if(e){let a;return n[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Ae,{to:"/me",replace:!0}),n[0]=a):a=n[0],a}let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(re,{initialStep:"sso-sign-up"}),n[1]=s):s=n[1],s}const ti=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"}));function Us(){const n=O.c(2);Ve();const{isLoggedIn:e}=v.useContext(oe);if(e){let a;return n[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Ae,{to:"/me",replace:!0}),n[0]=a):a=n[0],a}let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(re,{initialStep:"sso-sign-up",studioSignUp:!0}),n[1]=s):s=n[1],s}const si=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"}));function Ts(){const n=O.c(2);Ve();const{isLoggedIn:e}=v.useContext(oe);if(e){let a;return n[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Ae,{to:"/me",replace:!0}),n[0]=a):a=n[0],a}let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(re,{initialStep:"sso-sign-up"}),n[1]=s):s=n[1],s}const ii=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"}));function zs(){const n=O.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(re,{initialStep:"forgot-password"}),n[0]=e):e=n[0],e}const ni=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"}));export{qt as A,Is as I,Ps as L,Yt as S,Zt as a,Jt as b,Ks as c,si as d,ii as e,ni as f,Xs as l,Qt as o,ti as p,ei as s};
2
3//# chunkId=d5e386a0-5085-54e6-b10f-d6e88b5854e0

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.