PageSourceSearch

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

js venue.ink collected 2026-10-01 12:12:13 UTC 13,592 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:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f45b-c7b3-7b92-a52a-c65e6a4c3863")}catch(e){}}();import{j as t,r as Ne}from"./1_rjLJJT.js";import{e as ze,c as je,a3 as Oe,bk as Be,u as De,t as pe,ac as Me,ad as Ye,L as Ge,al as Qe,z as Je,a7 as Ke,bl as Te,T as Le,B as Ee,j as He,a as Xe,bm as Ze,bn as et}from"./Cnl0lOne.js";import{P as tt}from"./Cy75U2yV.js";import{u as st,a as Ve,I as at,U as nt,V as it,L as lt}from"./D_1K9NW_.js";import{u as ot}from"./mrGFdEA4.js";import{S as qe}from"./BmB9UXLw.js";import{S as Re,a as rt,b as fe,c as xe,d as ge,e as dt,f as ct}from"./DGwMc-Sp.js";import{E as mt,n as Ue,R as ht}from"./YLLfQEvQ.js";import{S as ut,a as pt,d as ft,e as xt,f as gt,b as jt,h as wt,g as bt}from"./B35B_vHQ.js";import{e as St,f as vt,g as yt}from"./uzzN2ZB4.js";import{u as We,L as Ae}from"./IR4uT189.js";import{z as Pt}from"./B5dUIQ6s.js";import"./BnWyCVyG.js";import"./DZHzfiV9.js";import"./GqtihGQd.js";import"./Bq04fuRX.js";import"./DSfjkjoJ.js";import"./Bt3tkbpM.js";import"./C_YBBnf9.js";import"./Bz_KDPNB.js";import"./C66g93i7.js";const Ct=ze.isNative(),_t="standalone"in window.navigator&&window.navigator.standalone===!0,Ft=window.matchMedia("(display-mode: standalone)").matches;function kt(){const a=je.c(2);if(Ct)return null;if(_t||Ft){let s;return a[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(qe,{hasChevron:!0,icon:mt,label:"Reload the app",onClick:At}),a[0]=s):s=a[0],s}let e;return a[1]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Re,{children:t.jsx(rt,{href:Oe.mobileAppUrl,className:"no-underline",children:t.jsxs(fe,{hasChevron:!0,children:[t.jsx(xe,{icon:Be}),t.jsx(ge,{children:"Download the app"})]})})}),a[1]=e):e=a[1],e}function At(){window.location.reload()}const Nt=a=>a.map(e=>e.split("_").map(s=>s.toLowerCase()).join(" ")).join(", "),Rt=a=>a.startsWith("@")?a=a.slice(1):a;function It(a){const e=je.c(125),{data:s,onHidden:m}=a,{toast:l}=Qe(),f=Je(),{personId:d}=De(),x=pe.useUtils(),g=We(),X=ot(),h=s.handle,[u,p]=Ne.useState(null),[c,b]=Ne.useState(void 0);let o;e[0]!==f||e[1]!==g||e[2]!==m||e[3]!==u||e[4]!==l||e[5]!==x?(o=async i=>{const{success:r,message:w,errorReasons:Ie}=i;if(await x.getPersonSettings.invalidate(),!r){const ke=Ie&&Nt(Ie)||void 0;l({title:"Unable to update profile",description:w&&ke?`${w}: ${ke}`:w||ke,variant:"error"});return}l({title:"Profile updated",variant:"success"}),u?.changed&&u.newHandle?g(f("personSettings",{handle:u.newHandle})):m(),p(null)},e[0]=f,e[1]=g,e[2]=m,e[3]=u,e[4]=l,e[5]=x,e[6]=o):o=e[6];let S;e[7]!==l?(S=i=>{let r="Unable to update profile. Try again.";i.message.includes("people_handle_key")?r="That handle is already taken. Please choose a different one.":i.message.includes("people_email_key")?r="That email is already in use. Please choose a different one.":(i.message.includes("Current password is required")||i.message.includes("Current password is incorrect"))&&(r=i.message),l({title:r,variant:"error"}),p(null)},e[7]=l,e[8]=S):S=e[8];let Z;e[9]!==o||e[10]!==S?(Z={onSuccess:o,onError:S},e[9]=o,e[10]=S,e[11]=Z):Z=e[11];const{mutateAsync:we}=pe.updatePerson.useMutation(Z),j=Ke(60);let v;e[12]!==s.email||e[13]!==j||e[14]!==l?(v=()=>{j.start(),l({title:"Check your email",description:`We sent a link to ${s.email} to set your password.`,variant:"success"})},e[12]=s.email,e[13]=j,e[14]=l,e[15]=v):v=e[15];let y;e[16]!==l?(y=()=>{l({title:"Couldn’t send the email. Try again.",variant:"error"})},e[16]=l,e[17]=y):y=e[17];let ee;e[18]!==v||e[19]!==y?(ee={onSuccess:v,onError:y},e[18]=v,e[19]=y,e[20]=ee):ee=e[20];const{mutate:be,isPending:te}=pe.sendPasswordResetCode.useMutation(ee),Se=s.preferredName||"",ve=s.legalName||"",$e=s.email,ye=s.phoneNumber||"",Pe=s.instagramHandle||"";let P;e[21]!==Pe?(P=Rt(Pe),e[21]=Pe,e[22]=P):P=e[22];const Ce=s.handle||"";let C;e[23]!==s.email||e[24]!==ye||e[25]!==P||e[26]!==Ce||e[27]!==Se||e[28]!==ve?(C={name:Se,legalName:ve,email:$e,phoneNumber:ye,instagramHandle:P,handle:Ce,currentPassword:""},e[23]=s.email,e[24]=ye,e[25]=P,e[26]=Ce,e[27]=Se,e[28]=ve,e[29]=C):C=e[29];let _;e[30]!==h||e[31]!==d||e[32]!==we?(_=async i=>{const{value:r}=i;if(!d)return;const w=r.handle.toLowerCase();p({changed:h!==w,newHandle:w}),await we({personId:d,...r})},e[30]=h,e[31]=d,e[32]=we,e[33]=_):_=e[33];let se;e[34]!==C||e[35]!==_?(se={defaultValues:C,onSubmit:_},e[34]=C,e[35]=_,e[36]=se):se=e[36];const n=st(se),ae=Ve(n.store,Dt)!==s.email,_e=Ve(n.store,Ut);let F;e[37]!==n?(F=i=>{i.preventDefault(),i.stopPropagation(),n.handleSubmit()},e[37]=n,e[38]=F):F=e[38];let ne;e[39]===Symbol.for("react.memo_cache_sentinel")?(ne=t.jsx(ft,{children:"Account"}),e[39]=ne):ne=e[39];let ie;e[40]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx("div",{className:"bg-ink-white dark:bg-ink-black-900",children:t.jsxs(xt,{children:[ne,t.jsx(gt,{children:t.jsx(ht,{children:"Update your profile information."})})]})}),e[40]=ie):ie=e[40];const Fe=s.profileImagePath??"";let k;e[41]!==Fe?(k=t.jsx("div",{className:"flex flex-col self-center",children:t.jsx("div",{className:"py-6 w-fit",children:t.jsx(nt,{className:"w-36 h-36",profileImagePath:Fe})})}),e[41]=Fe,e[42]=k):k=e[42];let A;e[43]!==n.AppField?(A=t.jsx(n.AppField,{name:"name",children:Vt}),e[43]=n.AppField,e[44]=A):A=e[44];let le;e[45]===Symbol.for("react.memo_cache_sentinel")?(le={onChange:Pt.string().max(255)},e[45]=le):le=e[45];let N;e[46]!==n.AppField?(N=t.jsx(n.AppField,{name:"legalName",validators:le,children:Ht}),e[46]=n.AppField,e[47]=N):N=e[47];let oe;e[48]===Symbol.for("react.memo_cache_sentinel")?(oe={onChange:St},e[48]=oe):oe=e[48];let R;e[49]!==n.AppField?(R=t.jsx(n.AppField,{name:"handle",validators:oe,children:Et}),e[49]=n.AppField,e[50]=R):R=e[50];let re;e[51]===Symbol.for("react.memo_cache_sentinel")?(re={onChange:vt},e[51]=re):re=e[51];let I;e[52]!==s.emailVerified||e[53]!==s.hasPassword?(I=i=>t.jsx(i.TextField,{label:"Email",fullWidth:!0,disabled:!s.hasPassword,hintText:s.hasPassword?s.emailVerified?"":t.jsxs("div",{children:["Unverified, check your email. Can’t find it?"," ",t.jsx(Ae,{className:"underline",to:"../verify-email",preventScrollReset:!0,children:"Verify email"})]}):t.jsx("span",{children:"To change your email, set a password first using the button below."}),icon:t.jsx(t.Fragment,{children:s.emailVerified?t.jsx(it,{className:"text-ink-forest"}):t.jsx(Ze,{size:12,className:"text-ink-destructive stroke-white"})})}),e[52]=s.emailVerified,e[53]=s.hasPassword,e[54]=I):I=e[54];let T;e[55]!==n.AppField||e[56]!==I?(T=t.jsx(n.AppField,{name:"email",validators:re,children:I}),e[55]=n.AppField,e[56]=I,e[57]=T):T=e[57];let L;e[58]!==s.hasPassword||e[59]!==n.AppField||e[60]!==ae?(L=s.hasPassword&&ae&&t.jsx(n.AppField,{name:"currentPassword",validators:{onChangeListenTo:["email"],onChange:i=>{const{value:r}=i;if(ae&&!r)return"Current password is required to change your email address"}},children:Lt}),e[58]=s.hasPassword,e[59]=n.AppField,e[60]=ae,e[61]=L):L=e[61];let E,H;e[62]!==c?(E={onSubmit:i=>{const{value:r}=i;if(r&&c===!1)return{message:"Please enter a valid phone number"}}},H=i=>t.jsx(tt,{onChangeValue:r=>i.handleChange(r),onChangeValidity:b,value:i.state.value,label:"Phone",invalid:!!i.state.value&&c===!1,optIn10DlcText:t.jsxs(t.Fragment,{children:["Provide your number to receive notifications from Venue Ink. Msg freq varies & data rates may apply. Reply HELP for help or STOP to opt out."," ",t.jsx(et,{href:"https://www.venue.ink/privacy-policy",className:"text-ink-black-600 font-light",children:"Privacy Policy"})]})}),e[62]=c,e[63]=E,e[64]=H):(E=e[63],H=e[64]);let V;e[65]!==n.Field||e[66]!==E||e[67]!==H?(V=t.jsx(n.Field,{name:"phoneNumber",validators:E,children:H}),e[65]=n.Field,e[66]=E,e[67]=H,e[68]=V):V=e[68];let de;e[69]===Symbol.for("react.memo_cache_sentinel")?(de={onChange:yt},e[69]=de):de=e[69];let U;e[70]!==n.AppField?(U=t.jsx(n.AppField,{name:"instagramHandle",validators:de,children:Tt}),e[70]=n.AppField,e[71]=U):U=e[71];let D;e[72]!==s.email||e[73]!==s.hasLoggedInWithSso||e[74]!==s.hasPassword||e[75]!==te||e[76]!==be||e[77]!==j?(D=s.hasPassword?t.jsx(Te,{children:t.jsx(qe,{hasChevron:!0,icon:at,label:"Update password",href:"../edit-password"})}):s.hasLoggedInWithSso?t.jsxs("div",{className:"flex flex-col gap-3 px-1",children:[t.jsx(Le,{element:"p",size:"sm",className:"text-ink-black-600",children:"You sign in with Apple or Google, so you don’t have a password yet. Set one to change your email or log in on other devices."}),t.jsx(Ee,{variant:"secondary",fullWidth:!0,isLoading:te,disabled:te||j.disabled,onClick:()=>be(s.email),children:j.disabled?`Link sent — try again in ${j.remaining}s`:"Email me a link to set a password"})]}):t.jsxs("div",{className:"flex flex-col gap-3 px-1",children:[t.jsx(Le,{element:"p",size:"sm",className:"text-ink-black-600",children:"You don’t have a password yet. Set one to log back in to Venue anytime."}),t.jsx(Ae,{to:"../edit-password",className:He({variant:"secondary"}),children:"Set a password"})]}),e[72]=s.email,e[73]=s.hasLoggedInWithSso,e[74]=s.hasPassword,e[75]=te,e[76]=be,e[77]=j,e[78]=D):D=e[78];let q;e[79]!==f||e[80]!==d?(q=f("redeemCode",{personId:d}),e[79]=f,e[80]=d,e[81]=q):q=e[81];let ce;e[82]===Symbol.for("react.memo_cache_sentinel")?(ce=Xe(He({variant:"secondary"})),e[82]=ce):ce=e[82];let W;e[83]!==q?(W=t.jsx(Ae,{to:q,className:ce,viewTransition:!0,children:"Claim a referral or promo code"}),e[83]=q,e[84]=W):W=e[84];let me;e[85]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(kt,{}),e[85]=me):me=e[85];let $;e[86]!==s.isDeletionRequested?($=s.isDeletionRequested&&t.jsxs(fe,{children:[t.jsx(xe,{icon:Ue}
1),t.jsx(ge,{children:"Account deletion requested"})]}),e[86]=s.isDeletionRequested,e[87]=$):$=e[87];let z;e[88]!==s.isDeletionRequested?(z=!s.isDeletionRequested&&t.jsx(Re,{children:t.jsx(dt,{to:"../request-deletion",children:t.jsxs(fe,{hasChevron:!0,children:[t.jsx(xe,{icon:Ue}),t.jsx(ge,{children:"Delete my account"})]})})}),e[88]=s.isDeletionRequested,e[89]=z):z=e[89];let he;e[90]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsxs(fe,{hasChevron:!0,children:[t.jsx(xe,{icon:lt}),t.jsx(ge,{children:"Log Out"})]}),e[90]=he):he=e[90];let O;e[91]!==X?(O=t.jsx(Re,{children:t.jsx(ct,{onClick:X,children:he})}),e[91]=X,e[92]=O):O=e[92];let B;e[93]!==$||e[94]!==z||e[95]!==O?(B=t.jsxs(Te,{children:[me,$,z,O]}),e[93]=$,e[94]=z,e[95]=O,e[96]=B):B=e[96];let M;e[97]!==A||e[98]!==N||e[99]!==R||e[100]!==T||e[101]!==L||e[102]!==V||e[103]!==U||e[104]!==D||e[105]!==W||e[106]!==B?(M=t.jsxs("div",{className:"flex flex-col gap-8 mx-5 pb-4",children:[A,N,R,T,L,V,U,D,W,B]}),e[97]=A,e[98]=N,e[99]=R,e[100]=T,e[101]=L,e[102]=V,e[103]=U,e[104]=D,e[105]=W,e[106]=B,e[107]=M):M=e[107];let Y;e[108]!==k||e[109]!==M?(Y=t.jsxs(jt,{className:"flex flex-col gap-4 bg-ink-white flex-1",children:[k,M]}),e[108]=k,e[109]=M,e[110]=Y):Y=e[110];let G;e[111]!==_e?(G=t.jsx(wt,{asChild:!0,children:t.jsx(Ee,{disabled:_e,variant:"secondary",children:"Cancel"})}),e[111]=_e,e[112]=G):G=e[112];let Q;e[113]!==n.SubmitButton?(Q=t.jsx(n.SubmitButton,{submit:!0,allowResubmit:!0,children:"Update"}),e[113]=n.SubmitButton,e[114]=Q):Q=e[114];let J;e[115]!==n.AppForm||e[116]!==Q?(J=t.jsx(n.AppForm,{children:Q}),e[115]=n.AppForm,e[116]=Q,e[117]=J):J=e[117];let K;e[118]!==G||e[119]!==J?(K=t.jsxs(bt,{children:[G,J]}),e[118]=G,e[119]=J,e[120]=K):K=e[120];let ue;return e[121]!==F||e[122]!==Y||e[123]!==K?(ue=t.jsxs("form",{onSubmit:F,className:"flex flex-col h-full overflow-hidden",children:[ie,Y,K]}),e[121]=F,e[122]=Y,e[123]=K,e[124]=ue):ue=e[124],ue}function Tt(a){return t.jsx(a.TextField,{label:"Instagram",prefixText:"instagram.com/",placeholder:"earthyliltats"})}function Lt(a){return t.jsx(a.TextField,{type:"password",label:"Current password",hintText:"Required to confirm your email change"})}function Et(a){return t.jsx(a.TextField,{label:"Handle",prefixText:"venue.ink/@",placeholder:"earthyliltats",hintText:"⚠️ Changing your handle will break existing links. Please update all places that you have used the previous link."})}function Ht(a){return t.jsx(a.TextField,{label:"Legal name",hintText:"Used on consent forms"})}function Vt(a){return t.jsx(a.TextField,{label:"Name",hintText:"What your clients should call you"})}function Ut(a){return a.isSubmitting}function Dt(a){return a.values.email}function qt(a){const e=je.c(16),{onHidden:s}=a,[m,l]=Ne.useState(!0),{personId:f}=De(),d=!!f;let x;e[0]!==d?(x={enabled:d},e[0]=d,e[1]=x):x=e[1];const{data:g,isLoading:X}=pe.getPersonSettings.useQuery(f,x);if(X){let o;return e[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Ge,{}),e[2]=o):o=e[2],o}if(!g){let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Me,{code:Ye.getPersonSettings}),e[3]=o):o=e[3],o}let h;e[4]!==s||e[5]!==m?(h=()=>{m||s()},e[4]=s,e[5]=m,e[6]=h):h=e[6];let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=()=>l(!1),e[7]=u):u=e[7];let p;e[8]!==g?(p=t.jsx(It,{data:g,onHidden:u}),e[8]=g,e[9]=p):p=e[9];let c;e[10]!==h||e[11]!==p?(c=t.jsx(ut,{side:"right",showClose:!0,onAnimationEndCapture:h,children:p}),e[10]=h,e[11]=p,e[12]=c):c=e[12];let b;return e[13]!==m||e[14]!==c?(b=t.jsx(pt,{open:m,onOpenChange:l,children:c}),e[13]=m,e[14]=c,e[15]=b):b=e[15],b}function ds(){const a=je.c(2),e=We();let s;return a[0]!==e?(s=t.jsx(qt,{onHidden:()=>{e("../",{preventScrollReset:!0})}}),a[0]=e,a[1]=s):s=a[1],s}export{ds as default};
2
3//# chunkId=01a0f45b-c7b3-7b92-a52a-c65e6a4c3863

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.