PageSourceSearch

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

js venue.ink collected 2026-09-24 09:52:28 UTC 16,122 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]="5ed024be-76a8-5ee1-b3c6-5d6a30315d4e")}catch(e){}}();import{r as j,j as o}from"./1_rjLJJT.js";import{c as ge,ad as Ee,V as He,u as _e,t as ue,cy as Ue,O as Ve,e as Me,ae as le,af as ae,cz as $e,cA as Te,L as pe,aG as Ne,C as ve,cB as Fe,b2 as Qe,k as je,B as Ye,F as Se,cC as De,aI as We,aJ as ze,aZ as Ge,cD as Ze}from"./BzLaZ4LI.js";import{u as Be,B as Je,a as Ke,C as Xe}from"./B1csdeTv.js";import{u as et,R as tt}from"./XWiOs3kt.js";import{u as ot,a as ye,b as st,L as ke}from"./Cwp944Ck.js";import{a as Le,b as Pe,u as rt,L as nt,H as fe,c as it}from"./CJi0kXOi.js";import{b as Ce}from"./BwP38S-3.js";import{P as lt}from"./DyfkUQpD.js";import{F as at}from"./BfCBxEEP.js";import{c as ct}from"./COa-icOB.js";import"./BiUYuhao.js";import"./CF1GVhvA.js";import"./BnWyCVyG.js";import"./CwRjIYSi.js";import"./DQ0Kz3Tt.js";import"./GCROyQFE.js";import"./HtmD5WYw.js";import"./BEc5voS0.js";import"./B7eBE0o_.js";import"./9r5vtoby.js";import"./CZEInz57.js";import"./BkkCmsdY.js";import"./CGkMmlqZ.js";import"./BJkpDQtF.js";import"./0rHg0HyA.js";import"./v9ZcMP--.js";import"./2_6-WBWT.js";import"./CqYXRKlk.js";function Ie(e,l,b){if(!l||!e)return null;const g=e.questionScreens.flatMap(t=>t.questions).find(t=>t.purpose===b);if(!g)return null;const a=l.questions.find(t=>t.questionRef===g.ref);if(!a)return null;if(a.text)return a.text;if(a.choiceRefs.length>0){const t="choices"in g?g.choices:void 0;if(t)return a.choiceRefs.map(f=>t.find(i=>i.ref===f)?.label).filter(f=>!!f).join(", ")}return null}function mt(){const e=ge.c(2),l=Le();let b;if(e[0]!==l.search){const a=new URLSearchParams(l.search);b={};for(const[t,d]of a.entries())b[t]=d;e[0]=l.search,e[1]=b}else b=e[1];return b}const dt=5e3;function Re(){const e=ge.c(99),{bookId:l}=Pe();let b;e[0]!==l?(b={bookId:l},e[0]=l,e[1]=b):b=e[1],Ee("artist_book_link_opened",b);const{personId:g,isLoggedIn:a}=j.useContext(He),{personId:t,handle:d,isLoading:f}=_e();let i;e[2]!==l||e[3]!==t?(i={bookId:l,personId:t},e[2]=l,e[3]=t,e[4]=i):i=e[4];const B=!!t;let c;e[5]!==B?(c={enabled:B,staleTime:Number.POSITIVE_INFINITY},e[5]=B,e[6]=c):c=e[6];const{data:s,isLoading:R}=ue.getBooksTypeformInfo.useQuery(i,c),$=Ue(),S=mt(),[C,ce]=j.useState(!1),[v,me]=j.useState(!0),U=j.useRef(!1),I=Ve(),k=rt(),y=Le(),m=Be();let V;e[7]!==t||e[8]!==S?(V=async()=>{await Te(t,"tutorial_begin",S),U.current=!0},e[7]=t,e[8]=S,e[9]=V):V=e[9];const E=V;let O;e[10]!==t||e[11]!==S?(O=async()=>{await Te(t,"tutorial_complete",S)},e[10]=t,e[11]=S,e[12]=O):O=e[12];const L=O,ee=y.state?.fromOnboardingTutorial||Me.isNative()||a&&g!==t;let Q;e[13]!==k?(Q=()=>{k(-1)},e[13]=k,e[14]=Q):Q=e[14];const w=ee?Q:void 0;let Y;e[15]!==s?.isOpen||e[16]!==v?(Y=()=>{const n=setTimeout(()=>{console.log("checking if Typeform is ready..."),!U.current&&(s?.isOpen||!v)&&ce(!0)},dt);return()=>clearTimeout(n)},e[15]=s?.isOpen,e[16]=v,e[17]=Y):Y=e[17];const Z=s?.isOpen;let D;e[18]!==v||e[19]!==Z?(D=[v,Z],e[18]=v,e[19]=Z,e[20]=D):D=e[20],j.useEffect(Y,D);let J,W;if(e[21]!==$?(J=()=>{$&&(console.log("Instagram browser detected, triggering ready"),U.current=!0)},W=[$],e[21]=$,e[22]=J,e[23]=W):(J=e[22],W=e[23]),j.useEffect(J,W),f||R){let n;return e[24]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(pe,{}),e[24]=n):n=e[24],n}if(!t){let n;return e[25]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(le,{code:ae.hookUseProviderFromRoute}),e[25]=n):n=e[25],n}if(!s){let n;return e[26]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(le,{code:ae.getBooksTypeformInfo}),e[26]=n):n=e[26],n}if(C){let n;e[27]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsx("div",{className:"text-6xl animate-bounce",children:"❤️‍🩹"}),o.jsx("div",{children:"Can't load booking form"})]}),e[27]=n):n=e[27];let x;e[28]!==l||e[29]!==I||e[30]!==t?(x=I("book",{personId:t,bookId:l}),e[28]=l,e[29]=I,e[30]=t,e[31]=x):x=e[31];let u;return e[32]!==x?(u=o.jsx(Ne,{children:o.jsx(ve,{children:o.jsxs(Fe,{className:"flex flex-col gap-8",children:[n,o.jsx("div",{className:"flex flex-col gap-4 text-base font-sans normal-case",children:o.jsxs("p",{children:["If you're browsing from Instagram's browser, try copying"," ",o.jsx(Qe,{href:x,className:"text-ink-forest dark:text-ink-lime",children:"this link"})," ","to Safari or Chrome instead. If you're still having trouble, disable content blockers or adblockers and try again."]})})]})})}),e[32]=x,e[33]=u):u=e[33],u}if(!s.isOpen&&v){let n;e[34]!==I||e[35]!==d||e[36]!==a||e[37]!==y.state?.fromApp||e[38]!==y.state?.fromOnboardingTutorial||e[39]!==g||e[40]!==k||e[41]!==t?(n=o.jsx(je,{onBack:()=>{y.state?.fromOnboardingTutorial||y.state?.fromApp?k(-1):k(a&&g!==t?I("person",{handle:d,personId:t}):I("bookings",{handle:d,personId:t}))}}),e[34]=I,e[35]=d,e[36]=a,e[37]=y.state?.fromApp,e[38]=y.state?.fromOnboardingTutorial,e[39]=g,e[40]=k,e[41]=t,e[42]=n):n=e[42];let x;e[43]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsx("div",{className:"text-6xl animate-bounce",children:"🔎"}),o.jsx("div",{children:"Let's preview your booking form"})]}),e[43]=x):x=e[43];let u;e[44]!==s.bookId||e[45]!==I||e[46]!==d||e[47]!==t?(u=I("bookSettings",{personId:t,bookId:s.bookId,handle:d}),e[44]=s.bookId,e[45]=I,e[46]=d,e[47]=t,e[48]=u):u=e[48];let h;e[49]!==u?(h=o.jsxs("p",{children:["Don't worry, your books are closed. This is only visible to you until you open your books in your"," ",o.jsx(nt,{to:u,className:"text-ink-forest underline dark:text-ink-lime",viewTransition:!0,children:"settings"}),"."]}),e[49]=u,e[50]=h):h=e[50];let T;e[51]===Symbol.for("react.memo_cache_sentinel")?(T=o.jsx("div",{children:o.jsx(Ye,{onClick:()=>{me(!1)},children:"Continue"})}),e[51]=T):T=e[51];let N;e[52]!==h?(N=o.jsx(Ne,{children:o.jsx(ve,{children:o.jsxs(Fe,{className:"flex flex-col gap-8",children:[x,o.jsxs("div",{className:"flex flex-col gap-6 text-base font-sans normal-case leading-snug",children:[h,T]})]})})}),e[52]=h,e[53]=N):N=e[53];let F;return e[54]!==n||e[55]!==N?(F=o.jsx(Se,{headerSlot:n,children:N}),e[54]=n,e[55]=N,e[56]=F):F=e[56],F}if(ee){const n=s.isOpen?`Book @${d} - Venue.ink`:`Previewing book ${s.bookName} - Venue.ink`;let x;e[57]!==n?(x=o.jsx(fe,{children:o.jsx("title",{children:n})}),e[57]=n,e[58]=x):x=e[58];let u;
1e[59]!==I||e[60]!==d||e[61]!==a||e[62]!==y.state?.fromApp||e[63]!==y.state?.fromOnboardingTutorial||e[64]!==g||e[65]!==k||e[66]!==t?(u=o.jsx(je,{onBack:()=>{y.state?.fromOnboardingTutorial||y.state?.fromApp?k(-1):k(a&&g!==t?I("person",{handle:d,personId:t}):I("bookings",{handle:d,personId:t}))}}),e[59]=I,e[60]=d,e[61]=a,e[62]=y.state?.fromApp,e[63]=y.state?.fromOnboardingTutorial,e[64]=g,e[65]=k,e[66]=t,e[67]=u):u=e[67];let h;e[68]!==s.formId||e[69]!==s.hiddenFields||e[70]!==w||e[71]!==E||e[72]!==L||e[73]!==S.targetBookId||e[74]!==m?(h=o.jsx($e.Consumer,{children:F=>o.jsx("div",{style:{height:`calc(100dvh - ${F.top+F.bottom}px)`},children:o.jsx(Ce.Widget,{id:s.formId,fullScreen:!1,inlineOnMobile:!0,className:"h-full",hidden:{...s.hiddenFields,book_id:S.targetBookId??s.hiddenFields.book_id},tracking:m?{source_reference_id:m}:void 0,onReady:E,onSubmit:L,onEndingButtonClick:w})})}),e[68]=s.formId,e[69]=s.hiddenFields,e[70]=w,e[71]=E,e[72]=L,e[73]=S.targetBookId,e[74]=m,e[75]=h):h=e[75];let T;e[76]!==u||e[77]!==h?(T=o.jsx(Se,{headerSlot:u,children:h}),e[76]=u,e[77]=h,e[78]=T):T=e[78];let N;return e[79]!==x||e[80]!==T?(N=o.jsxs(o.Fragment,{children:[x,T]}),e[79]=x,e[80]=T,e[81]=N):N=e[81],N}const p=s.isOpen?`Book @${d} - Venue.ink`:`Previewing book ${s.bookName} - Venue.ink`;let M;e[82]!==p?(M=o.jsx(fe,{children:o.jsx("title",{children:p})}),e[82]=p,e[83]=M):M=e[83];const K=S.targetBookId??s.hiddenFields.book_id;let _;e[84]!==s.hiddenFields||e[85]!==K?(_={...s.hiddenFields,book_id:K},e[84]=s.hiddenFields,e[85]=K,e[86]=_):_=e[86];let q;e[87]!==m?(q=m?{source_reference_id:m}:void 0,e[87]=m,e[88]=q):q=e[88];let P;e[89]!==s.formId||e[90]!==w||e[91]!==E||e[92]!==L||e[93]!==_||e[94]!==q?(P=o.jsx(Ce.Widget,{id:s.formId,fullScreen:!0,hidden:_,tracking:q,onReady:E,onSubmit:L,onEndingButtonClick:w}),e[89]=s.formId,e[90]=w,e[91]=E,e[92]=L,e[93]=_,e[94]=q,e[95]=P):P=e[95];let z;return e[96]!==M||e[97]!==P?(z=o.jsxs(o.Fragment,{children:[M,P]}),e[96]=M,e[97]=P,e[98]=z):z=e[98],z}function ft({bookId:e,clientEmail:l,clientFirstName:b,clientLastName:g,clientPhone:a,customFormId:t,goToNextStep:d,goToPreviousStep:f,context:i}){const B=Be(),{TurnstileWidget:c,isTurnstileVisible:s,getToken:R}=et(),{i18n:$}=ot(),S=j.useRef(null),{data:C,isPending:ce,isError:v}=ue.forms.getPublishedForm.useQuery({formId:t,locale:ye($.language)},{staleTime:Number.POSITIVE_INFINITY,gcTime:0}),[me,U]=j.useState(!1),[I,k]=j.useState(null),y=j.useCallback(async m=>{if(C){k(null);try{const V=Array.from(m.files.values()),E=await R();U(!0);const{referenceId:O}=await De({action:"CUSTOM_REQUEST",formId:t,publishedVersion:C.publishedVersion,locale:ye(C.servedLocale),questions:m.questions,bookId:e,firstName:b,lastName:g,phoneNumber:a,email:l,sourceReferenceId:B},V,E);d({appointmentRequestId:O,formResult:m})}catch(V){k(ct(V,{action:"CUSTOM_REQUEST",formId:t}))}finally{U(!1)}}},[e,l,b,g,a,t,C,R,d,B]);return v?o.jsx(We,{code:ze.errorElement}):ce||!C||me?o.jsx(pe,{}):o.jsx(Se,{headerSlot:o.jsx("div",{className:"max-w-screen-xs mx-auto",children:o.jsx(je,{onBack:()=>{S.current?.handleBack()},className:"border-0",children:o.jsx(Je,{context:i})})}),children:o.jsxs("div",{className:"max-w-screen-xs mx-auto pb-safe-or-4",children:[I&&o.jsx("div",{className:"px-5 pt-4",children:o.jsx(lt,{type:"error",children:I})}),o.jsx(at,{ref:S,form:C,onBack:f,onSuccess:y,showSubmitLabel:!0,bottomSlot:c,bottomSlotVisible:s})]})})}function ut(){const e=ge.c(105),{personId:l,isLoading:b}=_e(),g=!!l;let a;e[0]!==g?(a={enabled:g,staleTime:Number.POSITIVE_INFINITY},e[0]=g,e[1]=a):a=e[1];const{data:t,isLoading:d}=ue.getPersonalHomepage.useQuery(l,a),[f]=it(),{bookId:i}=Pe();let B;e[2]!==i||e[3]!==f?(B=i??f.get("bookId"),e[2]=i,e[3]=f,e[4]=B):B=e[4];const[c,s]=Ge("customTattooOpen::bookId",B);let R;e[5]!==i?(R={bookId:i},e[5]=i,e[6]=R):R=e[6],Ee("artist_book_link_opened",R);const[$,S]=j.useState("contact"),[C,ce]=j.useState(""),[v,me]=j.useState(""),[U,I]=j.useState(""),[k,y]=j.useState(""),[m,V]=j.useState(null);t?.books;let E;e[7]!==t?.books?(E=t?.books.filter(ht)??[],e[7]=t?.books,e[8]=E):E=e[8];const O=E,L=O.length===1?O[0].id:null;let ee,Q;
1e[9]!==c||e[10]!==L||e[11]!==s?(ee=()=>{!c&&L&&s(L)},Q=[c,L,s],e[9]=c,e[10]=L,e[11]=s,e[12]=ee,e[13]=Q):(ee=e[12],Q=e[13]),j.useEffect(ee,Q);let de,w;e[14]!==c||e[15]!==i||e[16]!==s?(de=()=>{i&&i!==c&&s(i)},w=[c,i,s],e[14]=c,e[15]=i,e[16]=s,e[17]=de,e[18]=w):(de=e[17],w=e[18]),j.useEffect(de,w);let Y,Z;e[19]!==c||e[20]!==i||e[21]!==f||e[22]!==s?(Z=()=>{if(i)return;const r=f.get("bookId");r&&r!==c&&s(r)},Y=[c,i,f,s],e[19]=c,e[20]=i,e[21]=f,e[22]=s,e[23]=Y,e[24]=Z):(Y=e[23],Z=e[24]),j.useEffect(Z,Y);let D;e[25]!==c||e[26]!==i||e[27]!==f?(D=i??f.get("bookId")??c,e[25]=c,e[26]=i,e[27]=f,e[28]=D):D=e[28];const J=D;let W;e[29]!==J?(W=r=>r.id===J,e[29]=J,e[30]=W):W=e[30];const p=O.find(W),M=!!p?.customFormId;let K;e[31]!==M?(K={enabled:M},e[31]=M,e[32]=K):K=e[32];const{data:_}=ue.forms.getPublishedForm.useQuery({formId:p?.customFormId??""},K);if(b||d){let r;return e[33]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(pe,{}),e[33]=r):r=e[33],r}if(!l){let r;return e[34]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(le,{code:ae.hookUseProviderFromRoute}),e[34]=r):r=e[34],r}if(!t){let r;return e[35]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(le,{code:ae.getPersonalHomepage}),e[35]=r):r=e[35],r}if(!O.length){let r;return e[36]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(le,{code:ae.getPersonalHomepage}),e[36]=r):r=e[36],r}if(!p){let r;return e[37]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(le,{code:ae.hookUseParams_bookId}),e[37]=r):r=e[37],r}if(!p.customFormId){let r;return e[38]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Re,{}),e[38]=r):r=e[38],r}let q;e[39]!==t.locale?(q=st(t.locale),e[39]=t.locale,e[40]=q):q=e[40];const P=q;let z;e[41]!==t.locale?(z=ye(t.locale),e[41]=t.locale,e[42]=z):z=e[42];const n=z,x=Ke(p.name,p.locationName);let u;e[43]!==p.location||e[44]!==x?(u={title:x,subtitle:p.location},e[43]=p.location,e[44]=x,e[45]=u):u=e[45];const h=u;if($==="contact"){let r;e[46]!==n?(r=o.jsx(fe,{children:o.jsx("html",{lang:n})}),e[46]=n,e[47]=r):r=e[47];let A;e[48]===Symbol.for("react.memo_cache_sentinel")?(A=X=>{const{clientEmail:ie,clientFirstName:be,clientLastName:qe,clientPhone:Ae}=X;ce(be),me(qe),I(ie),y(Ae),S("customForm")},e[48]=A):A=e[48];let H;e[49]!==h||e[50]!==t.handle||e[51]!==p.studioCountry?(H=o.jsx(Xe,{studioCountry:p.studioCountry,providerHandle:t.handle,containerClassName:"max-w-screen-xs mx-auto",context:h,goToNextStep:A}),e[49]=h,e[50]=t.handle,e[51]=p.studioCountry,e[52]=H):H=e[52];let G;return e[53]!==P||e[54]!==r||e[55]!==H?(G=o.jsxs(ke,{locale:P,children:[r,H]}),e[53]=P,e[54]=r,e[55]=H,e[56]=G):G=e[56],G}if($==="customForm"){let r;e[57]!==n?(r=o.jsx(fe,{children:o.jsx("html",{lang:n})}),e[57]=n,e[58]=r):r=e[58];let A;e[59]!==f||e[60]!==p.id?(A=f.get("targetBookId")??p.id,e[59]=f,e[60]=p.id,e[61]=A):A=e[61];let H,G;e[62]===Symbol.for("react.memo_cache_sentinel")?(H=be=>{V(be.formResult),S("requestCreated")},G=()=>{S("contact")},e[62]=H,e[63]=G):(H=e[62],G=e[63]);let X;e[64]!==h||e[65]!==U||e[66]!==C||e[67]!==v||e[68]!==k||e[69]!==p.customFormId||e[70]!==A?(X=o.jsx(ft,{context:h,bookId:A,clientEmail:U,clientFirstName:C,clientLastName:v,clientPhone:k,customFormId:p.customFormId,goToNextStep:H,goToPreviousStep:G}),e[64]=h,e[65]=U,e[66]=C,e[67]=v,e[68]=k,e[69]=p.customFormId,e[70]=A,e[71]=X):X=e[71];let ie;return e[72]!==P||e[73]!==r||e[74]!==X?(ie=o.jsxs(ke,{locale:P,children:[r,X]}),e[72]=P,e[73]=r,e[74]=X,e[75]=ie):ie=e[75],ie}let T;e[76]!==m?(T=m&&m.files.size>0?URL.createObjectURL(Array.from(m.files.values())[0]):null,e[76]=m,e[77]=T):T=e[77];const N=T;let F;e[78]!==n?(F=o.jsx(fe,{children:o.jsx("html",{lang:n})}),e[78]=n,e[79]=F):F=e[79];const Oe=t.handle,we=t.profileImagePath;let te;e[80]!==m||e[81]!==_?(te=Ie(_,m,"PLACEMENT"),e[80]=m,e[81]=_,e[82]=te):te=e[82];let oe;e[83]!==m||e[84]!==_?(oe=Ie(_,m,"SIZE"),e[83]=m,e[84]=_,e[85]=oe):oe=e[85];const xe=`${C} ${v}`;let se;e[86]!==xe?(se=xe.trim(),e[86]=xe,e[87]=se):se=e[87];let re;e[88]!==m||e[89]!==_?(re=Ie(_,m,"DESCRIPTION"),e[88]=m,e[89]=_,e[90]=re):re=e[90];let ne;e[91]!==h||e[92]!==N||e[93]!==l||e[94]!==t.handle||e[95]!==t.profileImagePath||e[96]!==te||e[97]!==oe||e[98]!==se||e[99]!==re?(ne=o.jsx(tt,{context:h,requestType:"custom",providerHandle:Oe,providerId:l,providerProfilePictureUrl:we,imagePath:N,placement:te,size:oe,clientName:se,description:re}),e[91]=h,e[92]=N,e[93]=l,e[94]=t.handle,e[95]=t.profileImagePath,e[96]=te,e[97]=oe,e[98]=se,e[99]=re,e[100]=ne):ne
1=e[100];let he;return e[101]!==P||e[102]!==F||e[103]!==ne?(he=o.jsxs(ke,{locale:P,children:[F,ne]}),e[101]=P,e[102]=F,e[103]=ne,e[104]=he):he=e[104],he}function ht(e){return e.isCustomTattooEnabled}function $t(){const e=ge.c(5),{bookId:l}=Pe(),{personId:b,isLoading:g}=_e(),a=!!b;let t;e[0]!==a?(t={enabled:a,staleTime:Number.POSITIVE_INFINITY},e[0]=a,e[1]=t):t=e[1];const{data:d,isLoading:f}=ue.getPersonalHomepage.useQuery(b,t);if(g||f){let s;return e[2]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(pe,{}),e[2]=s):s=e[2],s}const i=d?.books.find(s=>{const{id:R}=s;return R===l})??null;if(Ze(i,d?.useTypeformForCustomRequests??!0)==="typeform"){let s;return e[3]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(Re,{}),e[3]=s):s=e[3],s}let c;return e[4]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(ut,{}),e[4]=c):c=e[4],c}export{$t as default};
2
3//# chunkId=5ed024be-76a8-5ee1-b3c6-5d6a30315d4e

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.