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]="e49e8f53-f89e-526d-9c74-c6fddf057852")}catch(e){}}();const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/D2C1DYnc.js","assets/1_rjLJJT.js","assets/BzLaZ4LI.js","assets/CJi0kXOi.js","assets/CF1GVhvA.js","assets/BiUYuhao.js","assets/mjsrr5Sc.css","assets/BnWyCVyG.js","assets/CBRm8yvn.css"])))=>i.map(i=>d[i]); 2import{j as s,r as $,k as ct,_ as ms}from"./1_rjLJJT.js";import{c as z,t as W,s as ge,a as B,ag as us,ao as De,aZ as Dt,b4 as At,dj as Le,eJ as vt,B as H,u as ne,aG as dt,L as qe,bf as ft,cb as ps,T as E,e as Nt,V as Ut,eK as xs,d5 as hs,d6 as gs,dk as bs,e5 as js,j as mt,D as Tt,H as he,eL as ks,eb as ys,eM as vs,b2 as Ns,a0 as Wt,O as ue,aV as Fe,d_ as Vt,bQ as Gt,eN as ws,d$ as ot,e0 as $t,A as Ss,a1 as _s,am as Cs,b_ as Is,b$ as Ps,dL as As,bc as st,de as Ts,cQ as $s,o as zs,c1 as Ft,e8 as Os,r as Ds,a7 as wt,ar as Fs,S as Lt,a5 as Ls,Q as Me,eO as Es,eP as Rs,eQ as Bs,bi as Ms,eR as qs,ap as Us,cW as Ws,ew as Vs,d as Gs,f as Hs,eS as Ys,eT as Qs,eU as Ks,eV as Zs,eW as Xs,eX as Js,F as el,C as tl,ae as sl,af as ll}from"./BzLaZ4LI.js";import{u as il,a as nl}from"./Bxg64AHq.js";import{P as al}from"./BcIS_HcJ.js";import{L as ie,u as Ht,H as ol,b as rl,a as cl}from"./CJi0kXOi.js";import{B as Et,R as dl,u as Yt,T as fl,a as ml,b as ul,c as pl,d as xl,e as hl,f as gl,g as bl}from"./zJT7lHJo.js";import{F as jl}from"./DPVnJu1g.js";import{m as St,O as Rt,a_ as kl,ap as yl,a$ as vl,R as Qt,af as Kt,au as Zt,b0 as Nl,b1 as wl,v as Sl}from"./CF1GVhvA.js";import{b as _l,a as Cl,c as Il,e as Pl,D as Al,d as Tl}from"./CqYXRKlk.js";import{u as $l,C as Xt}from"./B7eBE0o_.js";import{b as zl,a as Ol,A as Dl,g as Fl}from"./DsKN6oxK.js";import{j as Jt,a as Ee,D as Re,i as Ue,e as zt,T as es,f as Ot,g as Ll,c as El,b as Rl}from"./B8Gh17e6.js";import{U as Bl}from"./DM328RO0.js";import{T as ts}from"./5Z1yrvCS.js";import{d as Ml,f as ql,S as Ul,a as Wl}from"./eOhqpjg0.js";import{M as Vl}from"./ofoxVyg6.js";import{h as Gl,s as Hl,a as Yl,b as Ql,c as Kl,S as Zl}from"./BJkpDQtF.js";import{L as Xl}from"./DBIb6WQG.js";import{R as Jl,A as ss,a as ls,I as ei}from"./DAIPpCI8.js";import{S as ti}from"./xaCEvY5Q.js";import{p as si}from"./Dg3ccKHI.js";import{u as is}from"./DYGnTKRA.js";import{b as lt,T as li,c as it,a as ii}from"./Da5HTlwd.js";import{a as rt,R as ns}from"./9r5vtoby.js";import{A as ni}from"./BEc5voS0.js";import"./BiUYuhao.js";import"./BnWyCVyG.js";import"./CLYx_U9u.js";import"./D2C1DYnc.js";import"./h8ll4IgM.js";import"./BkkCmsdY.js";import"./CzXA0r1W.js";import"./TwMjxees.js";import"./CwRjIYSi.js";import"./CZEInz57.js";import"./CGkMmlqZ.js";function ai(t){const e=z.c(12),{isLoading:l,link:d,profileImageUrl:o}=t,i=ge();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=B("flex items-center justify-center p-1"),e[0]=n):n=e[0];let a;e[1]!==i?(a=()=>i?.capture("profile_header_clicked"),e[1]=i,e[2]=a):a=e[2];let r;e[3]!==l||e[4]!==o?(r=!l&&s.jsx("div",{className:B("rounded-full overflow-hidden w-8 h-8 bg-ink-black-100 dark:bg-ink-black-900"),children:s.jsx(us,{pictureUrl:o,size:32,ring:!1})}),e[3]=l,e[4]=o,e[5]=r):r=e[5];let c;e[6]!==r?(c=s.jsx("div",{className:"flex flex-row font-medium items-center text-sm gap-3",children:r}),e[6]=r,e[7]=c):c=e[7];let f;return e[8]!==d||e[9]!==a||e[10]!==c?(f=s.jsx("div",{className:"bg-ink-black/5 rounded-full hover:bg-ink-black/10 transition-colors",children:s.jsx(ie,{to:d,className:n,onClick:a,viewTransition:!0,children:c})}),e[8]=d,e[9]=a,e[10]=c,e[11]=f):f=e[11],f}function oi(t){const e=z.c(6),{personId:l,link:d}=t,o=!!l;let i;e[0]!==o?(i={enabled:o},e[0]=o,e[1]=i):i=e[1];const{data:n,isLoading:a}=W.getPersonSettings.useQuery(l,i),r=n?.profileImagePath;let c;return e[2]!==a||e[3]!==d||e[4]!==r?(c=s.jsx(ai,{link:d,profileImageUrl:r,isLoading:a}),e[2]=a,e[3]=d,e[4]=r,e[5]=c):c=e[5],c}function ri(t){const e=z.c(5),{className:l,size:d,style:o}=t,i=d===void 0?24:d;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("path",{d:"M15.5 18.3333L18.8333 21.6667L26.3333 14.1667M17 32L19.4333 35.2445C19.7952 35.727 19.9762 35.9682 20.198 36.0545C20.3922 36.13 20.6078 36.13 20.802 36.0545C21.0238 35.9682 21.2048 35.727 21.5667 35.2445L24 32C24.4885 31.3485 24.7328 31.0228 25.0308 30.7742C25.4282 30.4427 25.8972 30.208 26.4008 30.0892C2
26.7785 30 27.1857 30 28 30C30.3297 30 31.4945 30 32.4135 29.6193C33.6385 29.112 34.612 28.1385 35.1193 26.9135C35.5 25.9945 35.5 24.8297 35.5 22.5V13C35.5 10.1997 35.5 8.7996 34.955 7.73005C34.4757 6.78923 33.7108 6.02433 32.77 5.54497C31.7003 5 30.3003 5 27.5 5H13.5C10.6997 5 9.2996 5 8.23005 5.54497C7.28923 6.02433 6.52433 6.78923 6.04497 7.73005C5.5 8.7996 5.5 10.1997 5.5 13V22.5C5.5 24.8297 5.5 25.9945 5.8806 26.9135C6.38807 28.1385 7.36145 29.112 8.58658 29.6193C9.50543 30 10.6703 30 13 30C13.8143 30 14.2214 30 14.5992 30.0892C15.1028 30.208 15.5719 30.4427 15.9692 30.7742C16.2671 31.0228 16.5114 31.3485 17 32Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e[0]=n):n=e[0];let a;return e[1]!==l||e[2]!==i||e[3]!==o?(a=s.jsx("svg",{width:i,height:i,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:l,style:o,children:n}),e[1]=l,e[2]=i,e[3]=o,e[4]=a):a=e[4],a}function ci(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(De,{icon:ri,title:"Nothing to see",description:"When you schedule a request, it'll appear here"}),t[0]=e):e=t[0],e}const Q={bookIds:[],archived:!1,blocked:!1},_t="card",Ct="desc",Y=$.createContext({clearFilter:()=>{},clearSearch:()=>{},debouncedSearch:"",filter:{...Q},isUsingDefaultFilter:!0,isUsingDefaultViewAsAndSortBy:!0,search:"",setFilter:()=>{},setSearch:()=>{},setSortBy:()=>{},setViewAs:()=>{},sortBy:Ct,viewAs:_t});function di(t){const e=z.c(23),{children:l}=t,[d,o]=$.useState(""),[i,n]=Dt("inbox::filter",Q),[a,r]=Dt("inbox::sortByCreatedAt",Ct),[c,f]=At("inbox::viewAs",_t),u=Le(d,250);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{o("")},e[0]=m):m=e[0];const p=m;let x;e[1]!==n?(x=()=>{n(Q)},e[1]=n,e[2]=x):x=e[2];const h=x;let b;e[3]!==i?(b=vt(i,Q),e[3]=i,e[4]=b):b=e[4];const g=b;let j;e[5]!==a||e[6]!==c?(j=vt(c,_t)&&vt(a,Ct),e[5]=a,e[6]=c,e[7]=j):j=e[7];const k=j;let y;e[8]!==h||e[9]!==u||e[10]!==i||e[11]!==g||e[12]!==k||e[13]!==d||e[14]!==n||e[15]!==r||e[16]!==f||e[17]!==a||e[18]!==c?(y={clearFilter:h,clearSearch:p,debouncedSearch:u,filter:i,isUsingDefaultFilter:g,isUsingDefaultViewAsAndSortBy:k,search:d,setFilter:n,setSearch:o,setSortBy:r,setViewAs:f,
2sortBy:a,viewAs:c},e[8]=h,e[9]=u,e[10]=i,e[11]=g,e[12]=k,e[13]=d,e[14]=n,e[15]=r,e[16]=f,e[17]=a,e[18]=c,e[19]=y):y=e[19];let v;return e[20]!==l||e[21]!==y?(v=s.jsx(Y.Provider,{value:y,children:l}),e[20]=l,e[21]=y,e[22]=v):v=e[22],v}function ut(t){const e=z.c(6),{isLoading:l,hasResults:d,defaultEmptyStateSlot:o,supportsBlockedFilter:i}=t,n=i===void 0?!1:i,{clearFilter:a,filter:r,isUsingDefaultFilter:c}=$.useContext(Y);let f;e:{if(n){f=c;break e}f=(r?.starredFilter??Q.starredFilter)===Q.starredFilter&&(r?.bookIds??Q.bookIds).length===Q.bookIds.length&&(r?.archived??Q.archived)===Q.archived}const u=f;if(l)return null;if(d){if(u)return null;let m;return e[0]!==a?(m=s.jsxs("div",{className:"text-sm leading-tighter font-normal text-center text-ink-black-600 pb-6",children:["Can't find something?"," ",s.jsx("button",{type:"button",className:"underline text-ink-forest",onClick:a,children:"Clear filters"})]}),e[0]=a,e[1]=m):m=e[1],m}else{if(u)return o;if(n&&r?.blocked){let m;return e[2]!==a?(m=s.jsx(De,{icon:Et,title:"No spam",description:"Requests from suspicious numbers or emails and blocked clients appear here",children:s.jsx(H,{size:"sm",onClick:a,pulse:!0,children:"Clear all filters"})}),e[2]=a,e[3]=m):m=e[3],m}else{let m;return e[4]!==a?(m=s.jsx(De,{icon:Et,title:"Nothing to display",description:"You can try removing some filters to find what you're looking for",children:s.jsx(H,{size:"sm",onClick:a,pulse:!0,children:"Clear all filters"})}),e[4]=a,e[5]=m):m=e[5],m}}}function fi(){const t=z.c(39),{personId:e}=ne(),{debouncedSearch:l,filter:d}=$.useContext(Y),o=Le(d,750),i=e||"";let n;t[0]!==o?(n=o??{},t[0]=o,t[1]=n):n=t[1];let a;t[2]!==l||t[3]!==i||t[4]!==n?(a={personId:i,...n,searchText:l,limit:24},t[2]=l,t[3]=i,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;t[6]!==r?(c={getNextPageParam:pi,enabled:r,placeholderData:ct},t[6]=r,t[7]=c):c=t[7];const{data:f,isLoading:u,isFetchingNextPage:m,fetchNextPage:p}=W.getPageOfAcceptedAppointmentRequests.useInfiniteQuery(a,c);if(!e)return null;let x,h,b,g,j,k,y,v;if(t[8]!==f?.pages||t[9]!==p||t[10]!==m||t[11]!==u){b=Symbol.for("react.early_return_sentinel");e:{const T=f?.pages??[],D=T[T.length-1]?.hasMore===!0;if(h=T.flatMap(ui),u&&!m){let _;t[20]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(dt,{children:s.jsx(qe,{})}),t[20]=_):_=t[20],b=_;break e}const L=h.length===0&&"flex flex-col flex-1 justify-center";t[21]!==L?(v=B(L),t[21]=L,t[22]=v):v=t[22],x=ft,k=D,y=p,g="flex flex-col gap-6 pb-5",j=h.map(mi)}t[8]=f?.pages,t[9]=p,t[10]=m,t[11]=u,t[12]=x,t[13]=h,t[14]=b,t[15]=g,t[16]=j,t[17]=k,t[18]=y,t[19]=v}else x=t[12],h=t[13],b=t[14],g=t[15],j=t[16],k=t[17],y=t[18],v=t[19];if(b!==Symbol.for("react.early_return_sentinel"))return b;const w=u&&!m,I=h.length>0;let N;t[23]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ci,{}),t[23]=N):N=t[23];let C;t[24]!==w||t[25]!==I?(C=s.jsx(ut,{isLoading:w,hasResults:I,defaultEmptyStateSlot:N,supportsBlockedFilter:!0}),t[24]=w,t[25]=I,t[26]=C):C=t[26];let A;t[27]!==C||t[28]!==g||t[29]!==j?(A=s.jsxs("div",{className:g,children:[j,C]}),t[27]=C,t[28]=g,t[29]=j,t[30]=A):A=t[30];let S;t[31]!==x||t[32]!==A||t[33]!==k||t[34]!==y?(S=s.jsx(x,{hasMore:k,onLoadMore:y,children:A}),t[31]=x,t[32]=A,t[33]=k,t[34]=y,t[35]=S):S=t[35];let P;return t[36]!==S||t[37]!==v?(P=s.jsx("div",{className:v,children:S}),t[36]=S,t[37]=v,t[38]=P):P=t[38],P}function mi(t){return s.jsx(dl,{request:t},t.appointmentId)}function ui(t){return t.requests}function pi(t){return t.requests[t.requests.length-1]?.appointmentId}const xi=3e3,as="onboarding-tutorial-collapsed:",os="collapsed",It="expanded",hi=t=>{if(typeof window>"u")return null;const e=window.localStorage.getItem(`${as}${t}`);return e===os||e===It?e:null},gi=[{card:"exploreBookingForm",label:"Form"},{card:"uploadFlash",label:"Flash"},{card:"customizeYourLook",label:"Look"},{card:"takingPayments",label:"Payments"},{card:"shareBookingLink",label:"Share"},{card:"pushNotifications",label:"Alerts",mobileOnly:!0}];function bi(){const t=z.c(25),{personId:e}=ne(),l=W.useUtils(),[d,o]=$.useState(!0),[i,n]=$.useState(null),a=!!e,r=$.useRef(!1);let c;t[0]!==e?(c=T=>{n(T),!(typeof window>"u"||!e)&&window.localStorage.setItem(`${as}${e}`,T?It:os)},t[0]=e,t[1]=c):c=t[1];const f=c;let u;t[2]!==l?(u={onSuccess:async()=>{await l.getOnboardingTutorial.invalidate(),await l.getOnboardingStatus.invalidate()}},t[2]=l,t[3]=u):u=t[3];const{mutate:m}=W.updatePersonOnboardingChecklistCompleted.useMutation(u);let p;t[4]!==a?(p=a?void 0:{isOnboardingIncomplete:!1,isOnboardingChecklistIncomplete:!1,isStudioManager:!1,lifetimeDepositsInCents:0}
2,t[4]=a,t[5]=p):p=t[5];let x;t[6]!==a||t[7]!==p?(x={enabled:a,placeholderData:p,staleTime:Number.POSITIVE_INFINITY},t[6]=a,t[7]=p,t[8]=x):x=t[8];const{data:h,isLoading:b}=W.isOnboardingIncomplete.useQuery(e,x);let g;t[9]!==e?(g={personId:e},t[9]=e,t[10]=g):g=t[10];let j;t[11]!==a?(j={enabled:a},t[11]=a,t[12]=j):j=t[12];const{isLoading:k}=W.getOnboardingTutorial.useQuery(g,j),y=Yt(e||""),v=gi.filter(ji);let w;t[13]!==e||t[14]!==m?(w=()=>{!r.current&&e&&(r.current=!0,setTimeout(()=>{o(!1),m({personId:e})},xi))},t[13]=e,t[14]=m,t[15]=w):w=t[15];const I=w;let N,C;if(t[16]!==I||t[17]!==y.isComplete?(N=()=>{y.isComplete&&I()},C=[y.isComplete,I],t[16]=I,t[17]=y.isComplete,t[18]=N,t[19]=C):(N=t[18],C=t[19]),$.useEffect(N,C),i===null&&e&&!b&&!k){const T=hi(e);let D;t[20]!==y.cards?(D=_=>y.cards[_.card]?.isComplete,t[20]=y.cards,t[21]=D):D=t[21];const L=v.some(D);n(T!==null?T===It:!L)}if(!e||b||k||i===null||h?.lifetimeDepositsInCents&&h.lifetimeDepositsInCents>1e5||!h?.isOnboardingChecklistIncomplete||h?.isStudioManager)return null;const A=Rt,S=d&&s.jsxs(St.div,{className:B("relative",i?"z-20":"z-10"),initial:{opacity:1},animate:{opacity:1},exit:{opacity:0,height:0},children:[s.jsxs("div",{className:B("bg-ink-black rounded-3xl p-5 pt-4 flex flex-col gap-4",i&&"invisible"),children:[s.jsx(Bt,{action:"Show",onAction:()=>f(!0)}),s.jsx("div",{className:"flex gap-1 items-center w-full",children:v.map(T=>{const D=y.cards[T.card]?.isComplete;return s.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[s.jsx("div",{className:B("h-1 w-full rounded-sm",D?"bg-ink-white":"bg-ink-white/10")}),s.jsxs("div",{className:"flex items-center gap-0.5 justify-center",children:[D&&s.jsx(ps,{size:12,className:"text-ink-white shrink-0"}),s.jsx(E,{variant:"heading",size:"xs",element:"span",className:"text-ink-white text-center whitespace-nowrap",children:T.label})]})]},T.card)})})]}),s.jsx(Rt,{children:i&&s.jsxs(St.div,{className:"absolute inset-x-0 top-0 z-20 bg-ink-black rounded-3xl py-5 flex flex-col gap-4 shadow-[0px_12px_26px_0px_rgba(44,44,44,0.32),0px_48px_48px_0px_rgba(44,44,44,0.28),0px_107px_64px_0px_rgba(44,44,44,0.16)]",initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},children:[s.jsx("div",{className:"px-5",children:s.jsx(Bt,{action:"Collapse",onAction:()=>f(!1)})}),s.jsx(fl,{personId:e,onComplete:I})]})})]});let P;return t[22]!==A||t[23]!==S?(P=s.jsx(A,{children:S}),t[22]=A,t[23]=S,t[24]=P):P=t[24],P}function ji(t){return!t.mobileOnly||Nt.isNative()}function Bt(t){const e=z.c(6),{action:l,onAction:d}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(E,{variant:"label",size:"sm",className:"text-ink-white",children:"Customize your venue"}),e[0]=o):o=e[0];let i;e[1]!==l?(i=s.jsx(E,{variant:"label",size:"sm",className:"text-ink-white underline",children:l}),e[1]=l,e[2]=i):i=e[2];let n;return e[3]!==d||e[4]!==i?(n=s.jsxs("div",{className:"flex items-center justify-between",children:[o,s.jsx("button",{onClick:d,children:i})]}),e[3]=d,e[4]=i,e[5]=n):n=e[5],n}function ki(t){const e=z.c(13),{children:l,selected:d,faded:o,onSelect:i}=t;let n;e[0]!==o||e[1]!==d?(n=B(mt({variant:"secondary",className:"px-3 py-2 rounded-2xl"}),d&&"bg-ink-black-50 border-transparent",o&&"opacity-50"),e[0]=o,e[1]=d,e[2]=n):n=e[2];let a;e[3]!==i||e[4]!==d?(a=f=>{(f.key==="Enter"||f.key===" "&&!d)&&(f.preventDefault(),i(f))},e[3]=i,e[4]=d,e[5]=a):a=e[5];let r;e[6]!==l?(r=s.jsx("div",{className:"flex flex-row justify-start items-start flex-1 gap-3",children:l}),e[6]=l,e[7]=r):r=e[7];let c;return e[8]!==i||e[9]!==n||e[10]!==a||e[11]!==r?(c=s.jsx("div",{className:n,onClick:i,role:"button",tabIndex:0,onKeyDown:a,children:r}),e[8]=i,e[9]=n,e[10]=a,e[11]=r,e[12]=c):c=e[12],c}function yi(t){const e=z.c(2),{children:l}=t;let d;return e[0]!==l?(d=s.jsx("div",{className:"flex flex-col gap-1.5 text-left flex-1",children:l}),e[0]=l,e[1]=d):d=e[1],d}function vi(t){const e=z.c(2),{children:l}=t;let d;return e[0]!==l?(d=s.jsx("div",{className:"text-base leading-5 min-h-5 font-normal",children:l}),e[0]=l,e[1]=d):d=e[1],d}const Ni=[{title:"Google",value:"GOOGLE",icon:s.jsx(xs,{monoColor:!0,size:20}),textField:!0,textPlaceholder:"Which Google search?"},{title:"Instagram",value:"INSTAGRAM",icon:s.jsx(hs,{size:20})},{title:"TikTok",value:"TIKTOK",icon:s.jsx(gs,{size:20})},{title:"Reddit",value:"REDDIT",icon:s.jsx(ml,{size:20}),textField:!0,textPlaceholder:"Which subreddit?"},{title:"Facebook",value:"FACEBOOK",icon:s.jsx(yl,{className:"size-5"})},{title:"Referral",value:"REFERRAL",icon:s.jsx(bs,{size:20}),textField:!0,textPlaceholder:"Anyone in particular?"},{title:"Convention",value:"CONVENTION",icon:s.jsx(vl,{className:"size-5"})},{title:"Other",value:"OTHER",icon:s.jsx(js,{size:20}),textField:!0,textPlaceholder:"Tell us more"}];function wi(t){const e=z.c(29),{personId:l}=t,{isAdmin:d}=$.useContext(Ut),[o,i]=$.useState(!0),[n,a]=$.useState(void 0),[r,c]=$.useState(""),f=!!l;let u;e[0]!==f?(u={enabled:f},e[0]=f,e[1]=u):u=e[1];const{data:m,isLoading:p}=W.getPersonAttribution.useQuery(l,u),x=W.useUtils();let h;e[2]!==l||e[3]!==x?(h={onSuccess:()=>{x.getPersonAttribution.invalidate(l)}},e[2]=l,e[3]=x,e[4]=h):h=e[4];const{mutateAsync:b,isPending:g}=W.updatePerson.useMutation(h);if(p||m?.attributionChannel||!m?.promptForAttribution)return null;let j;e[5]!==d||e[6]!==g||e[7]!==l||e[8]!==b||e[9]!==r?(j=async S=>{g||(d||b({personId:l,attributionChannel:S,attributionChannelText:r||null}),i(!1))},e[5]=d,e[6]=g,e[7]=l,e[8]=b,e[9]=r,e[10]=j):j=e[10];const k=j;let y;e[11]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(_l,{children:"How did you find us?"}),e[11]=y):y=e[11];let v;e[12]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsxs(Cl,{children:[y,s.jsx(Qt,{children:s.jsx(Il,{children:"This helps us understand how people find us and improve our outreach."})})]}),e[12]=v):v=e[12];let w;e[13]!==k||e[14]!==n?(w=S=>{S.preventDefault(),S.stopPropagation(),n&&k(n)},e[13]=k,e[14]=n,e[15]=w):w=e[15];let I;e[16]!==k||e[17]!==g||e[18]!==n||e[19]!==r?(I=Ni.map(S=>s.jsxs(ki,{selected:n===S.value,faded:n!==void 0&&n!==S.value,onSelect:()=>{if(!g){if(S.textField){n!==S.value&&(c(""),a(S.value));return}k(S.value)}},children:[S.icon,s.jsxs(yi,{children:[s.jsx(vi,{children:S.title}),S.textField&&S.textPlaceholder&&n===S.value&&s.jsxs("div",{className:"flex flex-row gap-2",children:[s.jsx("input",{type:"text",value:r,disabled:g,onClick:Ci,onKeyDown:P=>{P.stopPropagation(),P.key==="Enter"&&k(S.value)}
2,name:"attribution_channel_text",onChange:P=>c(P.target.value),placeholder:S.textPlaceholder,className:"w-full text-ink-black min-h-8 rounded-lg border border-ink-black-100 text-sm leading-tighter font-medium p-2 focus:outline-2 focus:outline-ink-forest focus:outline-offset-1 bg-ink-white"}),s.jsx(H,{submit:!0,"aria-label":"Submit attribution",size:"sm",disabled:g,onClick:_i,onKeyDown:Si,children:s.jsx(kl,{className:"size-5"})})]})]})]},S.value)),e[16]=k,e[17]=g,e[18]=n,e[19]=r,e[20]=I):I=e[20];let N;e[21]!==I?(N=s.jsx(Pl,{className:"flex-col",children:I}),e[21]=I,e[22]=N):N=e[22];let C;e[23]!==w||e[24]!==N?(C=s.jsxs(Al,{showClose:!1,className:"max-h-[90vh] flex flex-col py-7 px-5 max-w-xs sm:max-w-sm",children:[v,s.jsx("form",{className:"flex-1 overflow-y-auto p-1",onSubmit:w,children:N})]}),e[23]=w,e[24]=N,e[25]=C):C=e[25];let A;return e[26]!==o||e[27]!==C?(A=s.jsx(Tl,{open:o,children:C}),e[26]=o,e[27]=C,e[28]=A):A=e[28],A}function Si(t){return t.stopPropagation()}function _i(t){return t.stopPropagation()}function Ci(t){return t.stopPropagation()}function Ii(t){const e=z.c(31),{open:l,onOpenChange:d,studioName:o,applicationDetailTo:i,heroImageUrl:n}=t;let a;e[0]!==n?(a=n?s.jsx("img",{src:n,alt:"",className:"h-full w-full object-cover"}):s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(Kt,{className:"size-10 text-ink-black/20"})}),e[0]=n,e[1]=a):a=e[1];let r;e[2]!==d?(r=()=>d(!1),e[2]=d,e[3]=r):r=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Tt,{size:24}),e[4]=c):c=e[4];let f;e[5]!==r?(f=s.jsx("button",{type:"button","aria-label":"Close",onClick:r,className:"absolute right-5 top-5 flex size-8 items-center justify-center rounded-full bg-ink-white/50 text-ink-black",children:c}),e[5]=r,e[6]=f):f=e[6];let u;e[7]!==a||e[8]!==f?(u=s.jsxs("div",{className:"relative h-72 w-full overflow-hidden bg-ink-paper",children:[a,f]}),e[7]=a,e[8]=f,e[9]=u):u=e[9];let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(he,{size:"3xl",children:"Guest application sent!"}),e[10]=m):m=e[10];let p;e[11]!==o?(p=s.jsxs("div",{className:"flex flex-col gap-4 text-center",children:[m,s.jsxs(E,{variant:"body",size:"lg",children:["Youâll be notified when ",o," contacts you."]})]}),e[11]=o,e[12]=p):p=e[12];let x;e[13]!==d?(x=s.jsx(H,{fullWidth:!0,onClick:()=>d(!1),children:"Explore Venue"}),e[13]=d,e[14]=x):x=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=mt({variant:"tertiary",fullWidth:!0}),e[15]=h):h=e[15];let b;e[16]!==i?(b=s.jsx(Jt,{asChild:!0,children:s.jsx(ie,{to:i,className:h,children:"View your application"})}),e[16]=i,e[17]=b):b=e[17];let g;e[18]!==b||e[19]!==x?(g=s.jsxs("div",{className:"flex flex-col gap-1",children:[x,b]}),e[18]=b,e[19]=x,e[20]=g):g=e[20];let j;e[21]!==g||e[22]!==p?(j=s.jsxs("div",{className:"flex flex-col gap-8 px-5 pb-safe-or-8 pt-8",children:[p,g]}),e[21]=g,e[22]=p,e[23]=j):j=e[23];let k;e[24]!==j||e[25]!==u?(k=s.jsxs(Ee,{showClose:!1,className:"rounded-t-[32px] border-t-0",children:[u,j]}),e[24]=j,e[25]=u,e[26]=k):k=e[26];let y;return e[27]!==d||e[28]!==l||e[29]!==k?(y=s.jsx(Re,{open:l,onOpenChange:d,children:k}),e[27]=d,e[28]=l,e[29]=k,e[30]=y):y=e[30],y}const Pi="/assets/CUhJFyCg.avif",Ai=[{id:"track",icon:ks,text:"Keep track of everything. All your conversations, appointments, and payment receipts in one place."},{id:"booked",icon:ys,text:"Get booked directly through your personalized link in bio."},{id:"support",icon:vs,text:s.jsxs(s.Fragment,{children:["Built for tattoo artists, by tattoo artists. If you need help or have a question, just"," ",s.jsx(Ns,{href:Wt.venueInkInstagramDmUrl,className:"font-light text-ink-lean decoration-solid decoration-from-font",children:"DM us"}),"."]})}];function Ti(t){const e=z.c(9),{children:l}=t;let d;e[0]!==l?(d=s.jsx(Ue,{asChild:!0,children:l}),e[0]=l,e[1]=d):d=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"h-70 w-full overflow-hidden",children:s.jsx("img",{src:Pi,alt:"",className:"h-full w-full object-cover"})}),e[2]=o):o=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("span",{className:"inline-flex h-[18px] w-fit items-center rounded-full bg-ink-acid px-2",children:s.jsx(E,{variant:"label",size:"xs",element:"span",className:"text-ink-black",children:"Venue who?"})}),e[3]=i):i=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"flex flex-col gap-4",children:[i,s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(E,{variant:"heading",size:"2xl",className:"text-pretty",children:"Venue is the app for all things tattoo"}),s.jsx(E,{className:"tracking-wide",children:"We help artists manage their requests, appointments, calendar, and deposits & payments."})]})]}),e[4]=n):n=e[4];let a;e[5]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs("div",{className:"flex flex-col gap-5",children:[n,s.jsx("div",{className:"flex flex-col gap-4.5",children:Ai.map($i)})]}),e[5]=a):a=e[5];let r;e[6]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(Ee,{showClose:!1,className:"rounded-t-[32px] border-t-0",children:[o,s.jsxs("div",{className:"flex flex-col gap-8 px-5 pb-2 pt-5",children:[a,s.jsx(zt,{className:"px-0",children:s.jsx(Jt,{asChild:!0,children:s.jsx(H,{variant:"primary",children:"Ok, got it"})})})]})]}),e[6]=r):r=e[6];let c;return e[7]!==d?(c=s.jsxs(Re,{children:[d,r]}),e[7]=d,e[8]=c):c=e[8],c}function $i(t){return s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"flex shrink-0 items-center pt-0.5",children:s.jsx(t.icon,{size:24,className:"[&_path]:[stroke-width:1.2] [&_path]:[vector-effect:non-scaling-stroke]"})}),s.jsx(E,{className:"tracking-wide",children:t.text})]},t.id)}const zi=3e3,Oi=!0,rs="guest-onboarding-checklist-collapsed:",cs="collapsed",Pt="expanded",Di=t=>{if(typeof window>"u")return null;const e=window.localStorage.getItem(`${rs}${t}`);return e===cs||e===Pt?e:null},nt="flex w-full items-start gap-4 text-left";function ds(t){const e=z.c(5),{done:l}=t;let d;e[0]!==l?(d=l?s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM15.6103 10.1859C15.8511 9.84887 15.773 9.38046 15.4359 9.1397C15.0989 8.89894 14.6305 8.97701 14.3897 9.31407L11.1543 13.8436L9.53033 12.2197C9.23744 11.9268 8.76256 11.9268 8.46967 12.2197C8.17678 12.5126 8.17678 12.9874 8.46967 13.2803L10.7197 15.5303C10.8756 15.6862 11.0921 15.7656 11.3119 15.7474C11.5316 15.7293 11.7322 15.6153 11.8603 15.4359L15.6103 10.1859Z",className:"fill-ink-black dark:fill-ink-white"}):s.jsx("circle",{cx:12,cy:12,r:12,className:"fill-ink-paper dark:fill-ink-black-900"}),e[0]=l,e[1]=d):d=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("circle",{cx:12,cy:12,r:11.5,className:"stroke-ink-black/20 dark:stroke-ink-white/20"}),e[2]=o):o=e[2];let i;return e[3]!==d?(i=s.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0","aria-hidden":"true",children:[d,o]}),e[3]=d,e[4]=i):i=e[4],i}function Fi(t){return!!t&&t.isOnboardingChecklistIncomplete&&!t.isStudioManager&&t.lifetimeDepositsInCents===0}function Li(t){const e=z.c(60),{personId:l,handle:d}=t,o=ue(),i=W.useUtils(),[n,a]=$.useState(!1),[r,c]=$.useState(!1),[f,u]=$.useState(!1),[m,p]=$.useState(!1),[x,h]=$.useState(!1),b=$.useRef(!1),[g,j]=At(`${l}::guestChecklistTourViewed`,!1);let k;e[0]!==l?(k=V=>{a(V),typeof window<"u"&&window.localStorage.setItem(`${rs}${l}`,V?Pt:cs)},e[0]=l,e[1]=k):k=e[1];const y=k;let v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v={staleTime:Number.POSITIVE_INFINITY},e[2]=v):v=e[2];const{data:w,isLoading:I}=W.isOnboardingIncomplete.useQuery(l,v);let N;
2e[3]!==l?(N={personId:l},e[3]=l,e[4]=N):N=e[4];const{isLoading:C}=W.getOnboardingTutorial.useQuery(N),{data:A,isLoading:S}=W.getPersonSettings.useQuery(l),P=Yt(l);let T;e[5]!==i?(T={onSuccess:async()=>{await i.getOnboardingTutorial.invalidate(),await i.getOnboardingStatus.invalidate(),await i.isOnboardingIncomplete.invalidate()}},e[5]=i,e[6]=T):T=e[6];const{mutate:D}=W.updatePersonOnboardingChecklistCompleted.useMutation(T);A?.hasPassword,A?.hasLoggedInWithSso;const L=(A?.hasPassword||A?.hasLoggedInWithSso)??!1;let _;e[7]!==L?(_={key:"password",title:"Secure your account",detail:"Set a password to log back in anytime",done:L,action:"password"},e[7]=L,e[8]=_):_=e[8];let F;e[9]!==g?(F={key:"tour",title:"Booking with Venue",detail:"Take the 2 minute tour",done:g,action:"explainer"},e[9]=g,e[10]=F):F=e[10];let O;e[11]!==P.cards.takingPayments.isComplete?(O={key:"payments",title:"Get ready to get paid",detail:"Setup Stripe to enable payments",done:P.cards.takingPayments.isComplete,action:"payments"},e[11]=P.cards.takingPayments.isComplete,e[12]=O):O=e[12];let q;e[13]!==P.cards.customizeYourLook.isComplete?(q={key:"skin",title:"Customize your Venue",detail:"Choose a skin and make it yours",done:P.cards.customizeYourLook.isComplete,action:"skin"},e[13]=P.cards.customizeYourLook.isComplete,e[14]=q):q=e[14];let M;e[15]!==_||e[16]!==F||e[17]!==O||e[18]!==q?(M=[_,F,O,q],e[15]=_,e[16]=F,e[17]=O,e[18]=q,e[19]=M):M=e[19];const U=M;let R;e[20]!==U?(R=U.filter(qi),e[20]=U,e[21]=R):R=e[21];const G=R,oe=G.every(Mi);let re;e[22]!==D||e[23]!==l?(re=()=>{b.current||(b.current=!0,setTimeout(()=>{p(!0),D({personId:l})},zi))},e[22]=D,e[23]=l,e[24]=re):re=e[24];const ce=re;let de,fe;e[25]!==oe||e[26]!==ce?(de=()=>{oe&&ce()},fe=[oe,ce],e[25]=oe,e[26]=ce,e[27]=de,e[28]=fe):(de=e[27],fe=e[28]),$.useEffect(de,fe);let pe,X;if(e[29]!==x||e[30]!==I||e[31]!==S||e[32]!==C||e[33]!==l||e[34]!==G?(pe=()=>{if(x||I||C||S)return;h(!0);const V=Di(l);if(V!==null){a(V===Pt);return}a(!G.some(Bi))},X=[l,x,I,C,S,G],e[29]=x,e[30]=I,e[31]=S,e[32]=C,e[33]=l,e[34]=G,e[35]=pe,e[36]=X):(pe=e[35],X=e[36]),$.useEffect(pe,X),I||C||S||!x||m||!Fi(w))return null;let J;e[37]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx("div",{className:"-mx-5 h-px bg-ink-black/10"}),e[37]=J):J=e[37];let K;e[38]!==n||e[39]!==o||e[40]!==d||e[41]!==l||e[42]!==P.cards.customizeYourLook||e[43]!==P.cards.takingPayments||e[44]!==y||e[45]!==j||e[46]!==G?(K=n?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(E,{variant:"label",size:"sm",className:"uppercase text-ink-black",children:"Get ready to book"}),s.jsx("button",{type:"button",onClick:()=>y(!1),children:s.jsx(E,{variant:"label",size:"sm",className:"uppercase text-ink-black underline",children:"Collapse"})})]}),s.jsx("div",{className:"flex flex-col gap-5",children:G.map((V,be)=>{const je=V.done?"text-ink-black/30 line-through [text-decoration-thickness:8%] dark:text-ink-white/30":void 0,se=s.jsxs(s.Fragment,{children:[s.jsx(ds,{done:V.done}),s.jsxs("div",{className:"flex flex-1 flex-col gap-1.5",children:[s.jsx(he,{size:"base",className:je,children:V.title}),s.jsx(E,{variant:"body",size:"sm",className:je,children:V.detail})]}),s.jsx(Fe,{size:24,className:"shrink-0 self-center text-ink-black/40"})]});return s.jsxs("div",{className:"flex flex-col gap-5",children:[be>0&&s.jsx("div",{className:"h-px w-full bg-ink-black/10"}),V.action==="explainer"?s.jsx(Ti,{children:s.jsx("button",{type:"button",className:nt,onClick:()=>j(!0),children:se})}):V.action==="skin"?s.jsx(ie,{to:o("artistWebsiteCustomize",{personId:l,handle:d,step:"theme"}),className:nt,onClick:()=>P.cards.customizeYourLook.markComplete(),children:se}):V.action==="password"?s.jsx("button",{type:"button",className:nt,onClick:()=>u(!0),children:se}):s.jsx("button",{type:"button",className:nt,onClick:()=>{P.cards.takingPayments.markComplete(),c(!0)},children:se})]},V.key)})})]}):s.jsxs("button",{type:"button",onClick:()=>y(!0),className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex",children:G.map(Ri)}),s.jsx(E,{variant:"label",size:"sm",className:"uppercase text-ink-black",children:"Get ready to book"}),s.jsx(E,{variant:"label",size:"sm",className:"ml-auto uppercase text-ink-black underline",children:"Show"})]}),e[38]=n,e[39]=o,e[40]=d,e[41]=l,e[42]=P.cards.customizeYourLook,e[43]=P.cards.takingPayments,e[44]=y,e[45]=j,e[46]=G,e[47]=K):K=e[47];let me;e[48]===Symbol.for("react.memo_cache_sentinel")?(me=()=>c(!1),e[48]=me):me=e[48];let ae;e[49]!==r||e[50]!==l?(ae=s.jsx(ul,{open:r,onShown:Ei,onHidden:me,personId:l}),e[49]=r,e[50]=l,e[51]=ae):ae=e[51];let ee;e[52]!==f?(ee=f&&s.jsx(Bl,{onHidden:()=>u(!1)}),e[52]=f,e[53]=ee):ee=e[53];let te;e[54]!==ae||e[55]!==ee?(te=s.jsxs($.Suspense,{children:[ae,ee]}),e[54]=ae,e[55]=ee,e[56]=te):te=e[56];let xe;return e[57]!==K||e[58]!==te?(xe=s.jsxs(s.Fragment,{children:[J,K,te]}),e[57]=K,e[58]=te,e[59]=xe):xe=e[59],xe}function Ei(){}function Ri(t,e){return s.jsx("span",{className:e>0?"-ml-1 rounded-full ring-2 ring-ink-white dark:ring-ink-black-900":"",children:s.jsx(ds,{done:t.done})},t.key)}function Bi(t){return t.done}function Mi(t){return t.done}function qi(t){return Oi}const Ui="guestingApplicationJustSubmitted",at=t=>t==="Accepted"?1:0;function Wi(t,e){const l=new Map;for(const i of t.spots){const n=zl({isArchived:!1,isAccepted:i.isAccepted}),a=i.applicationCreatedAt.getTime(),r=l.get(i.applicationId);if(!(!r||at(n)>at(r.status)||at(n)===at(r.status)&&a>r.sortAt))continue;const f=i.isAccepted&&!i.bookId,u=i.isAccepted&&i.proposedEndsOn!==null&&i.proposedEndsOn<e;l.set(i.applicationId,{applicationId:i.applicationId,studioName:i.studioName??"the studio",studioLocationLabel:i.studioLocationLabel,studioImageUrl:i.studioImageUrl,status:n,sortAt:a,hidden:f||u})}for(const i of t.applications)l.has(i.id)||l.set(i.id,{applicationId:i.id,studioName:i.studioName??"the studio",studioLocationLabel:i.studioLocationLabel,studioImageUrl:i.studioImageUrl,status:Ol({isArchived:i.isArchived,hasAnyAgreement:i.hasAnyAgreement,hasAcceptedAgreement:!1,hasPendingAgreement:!1}),sortAt:i.createdAt.getTime(),hidden:i.isArchived});const d=[...l.values()].filter(i=>!i.hidden).sort((i,n)=>n.sortAt-i.sortAt),[o]=d;return o?{application:{applicationId:o.applicationId,studioName:o.studioName,studioLocationLabel:o.studioLocationLabel,studioImageUrl:o.studioImageUrl,status:o.status},moreCount:d.length-1}:null}function Vi(t){const e=z.c(71),{application:l,moreCount:d}=t,o=ue(),{handle:i,personId:n}=ne(),[a,r]=$l(Ui);let c;e[0]!==l.applicationId||e[1]!==o||e[2]!==i||e[3]!==n?(c=o("guestSpotApplication",{handle:i,personId:n,applicationId:l.applicationId}),e[0]=l.applicationId,e[1]=o,e[2]=i,e[3]=n,e[4]=c):c=e[4];const f=c;let u;e[5]!==o||e[6]!==i||e[7]!==n?(u=o("guestSpotApplications",{handle:i,personId:n}),e[5]=o,e[6]=i,e[7]=n,e[8]=u):u=e[8];const m=u;let p;e[9]!==f||e[10]!==o||e[11]!==i||e[12]!==a||e[13]!==n?(p=a?o("guestSpotApplication",{handle:i,personId:n,applicationId:a}):f,e[9]=f,e[10]=o,e[11]=i,e[12]=a,e[13]=n,e[14]=p):p=e[14];const x=p,h=`venue.ink/${i??"you"}`;let b;e[15]!==h?(b=async()=>{try{await navigator.clipboard.writeText(`https://${h}`)}catch{return}Zt.custom(Gi,{position:"bottom-center",className:"sm:left-1/2"})},e[15]=h,e[16]=b):b=e[16];const g=b;let j;e[17]!==l.studioImageUrl?(j=s.jsx("div",{className:"flex size-20 shrink-0 items-center justify-center overflow-clip rounded-2xl bg-ink-
2paper",children:l.studioImageUrl?s.jsx("img",{src:l.studioImageUrl,alt:"",className:"size-full object-cover"}):s.jsx(Kt,{className:"size-7 text-ink-black/20"})}),e[17]=l.studioImageUrl,e[18]=j):j=e[18];let k;e[19]!==l.studioName?(k=s.jsx(he,{size:"lg",children:l.studioName}),e[19]=l.studioName,e[20]=k):k=e[20];let y;e[21]!==l.studioLocationLabel?(y=l.studioLocationLabel&&s.jsx(E,{variant:"body",size:"sm",children:l.studioLocationLabel}),e[21]=l.studioLocationLabel,e[22]=y):y=e[22];let v;e[23]!==k||e[24]!==y?(v=s.jsxs("div",{className:"flex flex-col gap-1",children:[k,y]}),e[23]=k,e[24]=y,e[25]=v):v=e[25];let w;e[26]!==l.status?(w=[l.status],e[26]=l.status,e[27]=w):w=e[27];let I;e[28]!==l.status||e[29]!==w?(I=s.jsx(Dl,{statuses:w,label:l.status}),e[28]=l.status,e[29]=w,e[30]=I):I=e[30];let N;e[31]!==I||e[32]!==v?(N=s.jsxs("div",{className:"flex flex-1 flex-col gap-2",children:[v,I]}),e[31]=I,e[32]=v,e[33]=N):N=e[33];let C;e[34]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Fe,{size:24,className:"shrink-0 text-ink-black/40"}),e[34]=C):C=e[34];let A;e[35]!==f||e[36]!==N||e[37]!==j?(A=s.jsxs(ie,{to:f,className:"flex items-center gap-5",children:[j,N,C]}),e[35]=f,e[36]=N,e[37]=j,e[38]=A):A=e[38];let S;e[39]!==m||e[40]!==d?(S=d>0&&s.jsx(ie,{to:m,children:s.jsxs(E,{variant:"body",size:"sm",className:"text-ink-black/60",children:["and ",d," more"," ",d===1?"application":"applications","."," ",s.jsx("span",{className:"underline",children:"View all your guest spots"})]})}),e[39]=m,e[40]=d,e[41]=S):S=e[41];let P;e[42]!==A||e[43]!==S?(P=s.jsxs("div",{className:"flex flex-col gap-3",children:[A,S]}),e[42]=A,e[43]=S,e[44]=P):P=e[44];let T;e[45]!==i||e[46]!==n?(T=n&&s.jsx(Li,{personId:n,handle:i}),e[45]=i,e[46]=n,e[47]=T):T=e[47];let D;e[48]!==h?(D=s.jsx("div",{className:"flex h-8 flex-1 items-center rounded-full bg-ink-black/5 px-3 dark:bg-ink-white/5",children:s.jsx(E,{variant:"heading",size:"base",className:"truncate",children:h})}),e[48]=h,e[49]=D):D=e[49];let L;e[50]!==g?(L=()=>{g()},e[50]=g,e[51]=L):L=e[51];let _;e[52]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(E,{variant:"label",size:"sm",className:"uppercase",children:"Copy"}),e[52]=_):_=e[52];let F;e[53]!==L?(F=s.jsx("button",{type:"button",onClick:L,className:"flex h-8 shrink-0 items-center justify-center rounded-full bg-ink-black px-3 text-ink-white dark:bg-ink-white dark:text-ink-black",children:_}),e[53]=L,e[54]=F):F=e[54];let O;e[55]!==D||e[56]!==F?(O=s.jsxs("div",{className:"-mx-5 flex items-center gap-2 bg-ink-black/5 p-3 dark:bg-ink-white/5",children:[D,F]}),e[55]=D,e[56]=F,e[57]=O):O=e[57];const q=a!==null;let M;e[58]!==r?(M=G=>{G||r(null)},e[58]=r,e[59]=M):M=e[59];let U;e[60]!==l.studioImageUrl||e[61]!==l.studioName||e[62]!==x||e[63]!==q||e[64]!==M?(U=s.jsx(Ii,{open:q,onOpenChange:M,studioName:l.studioName,applicationDetailTo:x,heroImageUrl:l.studioImageUrl}),e[60]=l.studioImageUrl,e[61]=l.studioName,e[62]=x,e[63]=q,e[64]=M,e[65]=U):U=e[65];let R;return e[66]!==P||e[67]!==T||e[68]!==O||e[69]!==U?(R=s.jsxs("div",{className:"flex flex-col gap-5 overflow-hidden rounded-3xl border border-ink-black/10 px-5 pt-5 dark:border-ink-white/10",children:[P,T,O,U]}),e[66]=P,e[67]=T,e[68]=O,e[69]=U,e[70]=R):R=e[70],R}function Gi(t){return s.jsxs("div",{className:"mx-auto w-max max-w-screen-xs rounded-2xl text-ink-black-100 bg-ink-black flex flex-row gap-3 pl-6 pr-4 py-3 items-center justify-between sm:-translate-x-1/2",children:[s.jsx(E,{size:"base",children:"Booking link copied"}),s.jsx("button",{"aria-label":"Dismiss notification",onClick:e=>{e.stopPropagation(),Zt.dismiss(t)},type:"button",children:s.jsx(Tt,{size:24,className:"text-ink-black-400"})})]})}function Hi(t){const e=z.c(15),{personId:l}=t,d=ge(),[o,i]=$.useState(!1),n=`${Vt.TAP_TO_PAY_SETUP_INBOX_DISMISSED}-${l}`;let a;e[0]!==n?(a=()=>ot(n),e[0]=n,e[1]=a):a=e[1];const[r,c]=$.useState(a),{isAvailable:f}=Gt(l),u=ws(l);let m;e[2]!==n?(m=()=>{c(!0),$t(n)},e[2]=n,e[3]=m):m=e[3];const p=m,x=!f||r||u;if(x&&!o)return null;let h;e[4]!==p||e[5]!==x||e[6]!==d?(h=!x&&s.jsxs(St.div,{className:"relative",initial:{opacity:0}
2,animate:{opacity:1},transition:{duration:.35,ease:"easeOut"},children:[s.jsxs("button",{type:"button",onClick:()=>{i(!0),d?.capture("tap_to_pay_setup_card_clicked")},className:"flex w-full items-center gap-3 rounded-2xl border border-ink-black/10 bg-ink-white p-4 pr-10 text-left dark:bg-ink-black-900",children:[s.jsx(es,{size:18}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[s.jsx(E,{variant:"heading",size:"sm",className:"leading-snug",children:"Take payments with Tap to Pay on iPhone"}),s.jsx(E,{size:"sm",className:"text-ink-black-500",children:"Set it up once to accept cards and Apple Pay on your phone"})]})]}),s.jsx("button",{type:"button",onClick:p,"aria-label":"Dismiss",className:"absolute right-3 top-3 flex size-6 items-start justify-end text-ink-black-400 transition-opacity hover:opacity-80",children:s.jsx(Tt,{size:14})})]}),e[4]=p,e[5]=x,e[6]=d,e[7]=h):h=e[7];let b;e[8]!==p||e[9]!==o||e[10]!==l?(b=s.jsx(ts,{personId:l,isOpen:o,onOpenChange:i,onCompleted:p}),e[8]=p,e[9]=o,e[10]=l,e[11]=b):b=e[11];let g;return e[12]!==h||e[13]!==b?(g=s.jsxs(s.Fragment,{children:[h,b]}),e[12]=h,e[13]=b,e[14]=g):g=e[14],g}const Yi="/assets/CE4N9T1G.webp";function Qi(t){const e=z.c(32),{personId:l}=t,d=ge(),{isAvailable:o}=Gt(l),i=`${Vt.TAP_TO_PAY_SPLASH_SEEN}-${l}`;let n;e[0]!==l||e[1]!==i?(n=()=>ot(i)||Ss(l),e[0]=l,e[1]=i,e[2]=n):n=e[2];const[a,r]=$.useState(n),[c,f]=$.useState(!1);let u;e[3]!==i?(u=()=>{r(!0),$t(i)},e[3]=i,e[4]=u):u=e[4];const m=u;if(!o||a)return null;const p=!c;let x;e[5]!==m?(x=C=>{C||m()},e[5]=m,e[6]=x):x=e[6];let h,b;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsxs(Qt,{children:[s.jsx(Ml,{children:"Tap to Pay on iPhone"}),s.jsx(ql,{children:"Accept contactless payments on your iPhone"})]}),b=s.jsx("img",{src:Yi,alt:"",className:"max-h-[250px] w-full object-cover"}),e[7]=h,e[8]=b):(h=e[7],b=e[8]);let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 text-center",children:[s.jsx(es,{size:40,className:"text-ink-black-300"}),s.jsx(he,{size:"3xl",className:"w-5/6",children:"Tap to Pay on iPhone is here"}),s.jsx(E,{size:"lg",className:"w-5/6",children:"Take contactless cards, Apple Pay, and Google Pay right on your iPhone. No card reader required."})]}),e[9]=g):g=e[9];let j;e[10]!==d?(j=s.jsx(H,{fullWidth:!0,onClick:()=>{d?.capture("tap_to_pay_splash_set_up_clicked"),f(!0)},children:"Set up Tap to Pay"}),e[10]=d,e[11]=j):j=e[11];let k;e[12]!==m||e[13]!==d?(k=s.jsx(H,{fullWidth:!0,variant:"tertiary",onClick:()=>{d?.capture("tap_to_pay_splash_dismissed"),m()},children:"Maybe later"}),e[12]=m,e[13]=d,e[14]=k):k=e[14];let y;e[15]!==j||e[16]!==k?(y=s.jsxs(Ul,{showClose:!1,side:"bottom",className:"flex h-dvh-safe max-w-screen-xs rounded-4xl flex-col justify-between gap-8 border-0 mx-4 my-safe-or-4",children:[h,b,g,s.jsxs("div",{className:"flex flex-col gap-1 px-6 pb-6",children:[j,k]})]}),e[15]=j,e[16]=k,e[17]=y):y=e[17];let v;e[18]!==y||e[19]!==p||e[20]!==x?(v=s.jsx(Wl,{open:p,onOpenChange:x,children:y}),e[18]=y,e[19]=p,e[20]=x,e[21]=v):v=e[21];let w;e[22]!==m?(w=C=>{f(C),C||m()},e[22]=m,e[23]=w):w=e[23];let I;e[24]!==m||e[25]!==c||e[26]!==l||e[27]!==w?(I=s.jsx(ts,{personId:l,isOpen:c,initialStatus:"configuring",onOpenChange:w,onCompleted:m}),e[24]=m,e[25]=c,e[26]=l,e[27]=w,e[28]=I):I=e[28];let N;return e[29]!==v||e[30]!==I?(N=s.jsxs(s.Fragment,{children:[v,I]}),e[29]=v,e[30]=I,e[31]=N):N=e[31],N}const Ki=[{src:Gl,width:69.7,height:95.6,rotate:-7.13,dx:34.9,dy:-73.9},{src:Hl,width:124,height:146,rotate:15.79,dx:112.5,dy:104.1},{src:Yl,width:75.1,height:103.2,rotate:22.96,dx:-145.6,dy:-33},{src:Ql,width:148,height:176,rotate:10.99,dx:-82.8,dy:153.1},{src:Kl,width:44,height:44,rotate:-98.39,dx:165,dy:-49}];function Zi(){const t=z.c(13),e=ue(),l=ge(),{isEnabled:d,isLoading:o}=_s();if(o||!d)return null;let i;t[0]!==e?(i=e("store"),t[0]=e,t[1]=i):i=t[1];let n;t[2]!==l?(n=()=>l?.capture("store_inbox_card_clicked"),t[2]=l,t[3]=n):n=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs("div",{className:"relative flex h-[200px] w-full items-center justify-center overflow-clip rounded-2xl bg-ink-black/5 py-5",children:[s.jsx(Vl,{size:24,className:"text-ink-black"}),Ki.map(Xi)]}),t[4]=a):a=t[4];let r,c;t[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex w-full flex-col items-center gap-2 text-center",children:[s.jsx(E,{size:"2xl",variant:"heading",element:"h3",className:"text-balance text-ink-black dark:text-ink-black",children:"Up to 25% off Kwadron, Bishop, Peak and more"}),s.jsx(E,{size:"base",className:"text-balance text-ink-black dark:text-ink-black",children:"You're getting the best members only price. Stock up on your favorite brands with us."})]}),c=B(mt({variant:"primary",size:"default"}),"w-[186px]"),t[5]=r,t[6]=c):(r=t[5],c=t[6]);let f;t[7]!==c?(f=s.jsxs("div",{className:"flex w-full flex-col items-center gap-6",children:[r,s.jsx("span",{className:c,children:"Shop now"})]}),t[7]=c,t[8]=f):f=t[8];let u;return t[9]!==i||t[10]!==n||t[11]!==f?(u=s.jsxs(ie,{to:i,viewTransition:!0,onClick:n,className:"flex flex-col items-center gap-6 rounded-3xl bg-ink-
2paper p-2 pb-6 transition-opacity hover:opacity-90 dark:bg-ink-paper",children:[a,f]}),t[9]=i,t[10]=n,t[11]=f,t[12]=u):u=t[12],u}function Xi(t){return s.jsx(Zl,{src:t.src,width:t.width,height:t.height,rotate:t.rotate,style:{left:`calc(50% + ${t.dx-t.width/2}px)`,top:`calc(50% + ${t.dy-t.height/2}px)`}},t.src)}function Ji(t){const e=z.c(6),{handle:l}=t,{toast:d}=Cs();let o;e[0]!==l||e[1]!==d?(o=async()=>{const a=Wt.artistProfileUrl(l);await Is(a),d({title:"Copied to clipboard",description:"Your booking link has been copied to your clipboard."})},e[0]=l,e[1]=d,e[2]=o):o=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ps,{size:16}),e[3]=i):i=e[3];let n;return e[4]!==o?(n=s.jsx(De,{icon:As,title:"All done!",description:"Keep sharing your booking link to get more requests",children:s.jsxs(H,{size:"sm",pulse:!0,onClick:o,children:[i,"Copy booking link"]})}),e[4]=o,e[5]=n):n=e[5],n}const Be="h-[18px] border-0 ring-0 leading-tighter font-normal whitespace-nowrap text-ink-black bg-ink-black-50",Z=t=>{const e=z.c(10),{className:l,requestId:d,children:o}=t,i=ue();let n;e[0]!==l?(n=B("no-underline relative block",l),e[0]=l,e[1]=n):n=e[1];let a;e[2]!==i||e[3]!==d?(a=i("appointmentRequest",{requestId:d}),e[2]=i,e[3]=d,e[4]=a):a=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r={fromApp:!0},e[5]=r):r=e[5];let c;return e[6]!==o||e[7]!==n||e[8]!==a?(c=s.jsx(ie,{className:n,to:a,relative:"path",state:r,viewTransition:!0,children:o}),e[6]=o,e[7]=n,e[8]=a,e[9]=c):c=e[9],c},en=t=>{const e=z.c(52),{requests:l,hasMultipleBooks:d}=t;let o;e[0]!==l?(o=l.some(tn),e[0]=l,e[1]=o):o=e[1];const i=o;let n;e[2]!==l?(n=l.some(sn),e[2]=l,e[3]=n):n=e[3];const a=n;let r;e[4]!==l?(r=l.some(ln),e[4]=l,e[5]=r):r=e[5];const c=r;let f;e[6]!==l?(f=l.some(nn),e[6]=l,e[7]=f):f=e[7];const u=f;let m,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"z-10 pointer-events-none absolute left-0 w-[10%] max-w-[50px] h-full bg-linear-to-r from-ink-white overflow-hidden"}),p=s.jsx("div",{className:"z-10 pointer-events-none absolute right-0 w-[10%] max-w-[50px] h-full bg-linear-to-l from-ink-white overflow-hidden"}),e[8]=m,e[9]=p):(m=e[8],p=e[9]);let x;e[10]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("th",{className:"pl-2 pr-3",colSpan:2}),e[10]=x):x=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Client name"})}),e[11]=h):h=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Submitted"})}),e[12]=b):b=e[12];let g;e[13]!==d?(g=d&&s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Book"})}),e[13]=d,e[14]=g):g=e[14];let j;e[15]!==u?(j=u&&s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Marketing"})}),e[15]=u,e[16]=j):j=e[16];let k;e[17]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Type"})}),e[17]=k):k=e[17];let y;e[18]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Size"})}),e[18]=y):y=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Placement"})}),e[19]=v):v=e[19];let w;e[20]!==a?(w=a&&s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Budget"})}),e[20]=a,e[21]=w):w=e[21];let I;e[22]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Days available"})}),e[22]=I):I=e[22];let N;e[23]!==i?(N=i&&s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Time of day"})}),e[23]=i,e[24]=N):N=e[24];let C;e[25]!==c?(C=c&&s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Other artist?"})}),e[25]=c,e[26]=C):C=e[26];let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx("th",{className:"pl-2 pr-3",children:s.jsx(E,{variant:"label",size:"xs",children:"Description"})}),e[27]=A):A=e[27];let S;e[28]!==g||e[29]!==j||e[30]!==w||e[31]!==N||e[32]!==C?(S=s.jsx("thead",{className:"text-[10px] font-light text-left",children:s.jsxs("tr",{children:[x,h,b,g,j,k,y,v,w,I,N,C,A]})}),e[28]=g,e[29]=j,e[30]=w,e[31]=N,e[32]=C,e[33]=S):S=e[33];let P;if(e[34]!==d||e[35]!==l||e[36]!==a||e[37]!==u||e[38]!==c||e[39]!==i){let L;e[41]!==d||e[42]!==a||e[43]!==u||e[44]!==c||e[45]!==i?(L=_=>s.jsxs("tr",{className:"hover:bg-ink-black-50",children:[s.jsx("td",{className:"pr-2 sticky left-3.5 z-20",children:s.jsx(Z,{requestId:_.id,children:s.jsx(pl,{size:"xs",imagePath:_.referenceImagesDetails[0]?.url??null})})}),s.jsx("td",{className:"pl-3 pr-0",children:s.jsx(ti,{request:_,variant:"tableItem"})}),s.jsx("td",{className:"pr-3",children:s.jsxs(Z,{className:B("py-5 px-2","flex flex-row items-center gap-2"),requestId:_.id,children:[s.jsx(E,{variant:"heading",size:"base",children:_.clientName}),_.isReturnClient&&s.jsxs(st,{variant:"sticker",size:"small",className:`${Be} pl-1.5 pr-2`,children:[s.jsx(Jl,{size:12,className:"text-ink-black-300"}),"Return"]})]})}),s.jsx("td",{className:"pr-3",children:s.jsx(Z,{className:"py-5 px-2",requestId:_.id,children:s.jsx(E,{variant:"body",
2size:"sm",children:s.jsx(Ts,{addSuffix:!0,showSeconds:!0,timestamp:_.createdAt})})})}),d&&s.jsx("td",{className:"pr-3",children:s.jsx(Z,{className:B("py-5 px-2","flex flex-row items-center"),requestId:_.id,children:s.jsx(st,{variant:"sticker",size:"small",className:`${Be} pl-1.5 pr-2`,dotColor:_.bookTagColor??"transparent",children:s.jsx("div",{className:"truncate max-w-[11ch]",children:_.bookTag})})})}),u&&s.jsx("td",{className:"pr-3",children:s.jsx(Z,{className:B("py-5 px-2","flex flex-row items-center"),requestId:_.id,children:_.providerMarketingCampaignTag&&s.jsx($s,{variant:"sticker",size:"small",tag:_.providerMarketingCampaignTag,showMegaphone:!0,className:`${Be} pl-1.5 pr-2`,megaphoneClassName:"text-ink-black-300"})})}),s.jsx("td",{className:"pr-3",children:s.jsx(Z,{className:"py-5 px-2",requestId:_.id,children:_.serviceType})}),s.jsx("td",{className:"pr-3",children:s.jsx(Z,{className:B("py-5 px-2","flex flex-row items-center"),requestId:_.id,children:_.size&&s.jsx(st,{variant:"sticker",size:"small",className:`${Be} px-2 capitalize`,children:_.size})})}),s.jsx("td",{className:"pr-3",children:s.jsx(Z,{className:B("py-5 px-2","flex flex-row items-center"),requestId:_.id,children:_.placement&&s.jsx(st,{variant:"sticker",size:"small",className:`${Be} px-2 capitalize`,children:_.placement})})}),a&&s.jsx("td",{className:"pr-3",children:_.budget&&s.jsx(Z,{className:B("py-5 px-2","truncate max-w-[200px]"),requestId:_.id,children:_.budget})}),s.jsx("td",{className:"pr-3",children:s.jsx(Z,{className:B("py-5 px-2","truncate max-w-[200px]"),requestId:_.id,children:s.jsx(ss,{rawAvailability:_.availability,appearance:"light"})})}),i&&s.jsx("td",{className:"pr-3",children:_.timePreference&&s.jsx(Z,{className:"py-5 px-2",requestId:_.id,children:s.jsx(ls,{className:"gap-2",timePreference:_.timePreference,appearance:"light"})})}),c&&s.jsx("td",{className:"pr-3",children:_.otherArtistWilling!==void 0&&s.jsx(Z,{className:"py-5 px-2",requestId:_.id,children:_.otherArtistWilling?s.jsx(Nl,{className:"text-ink-forest w-full size-4"}):s.jsx(wl,{className:"text-ink-destructive w-full size-4"})})}),s.jsx("td",{className:"pr-3",children:s.jsx(Z,{className:B("py-5 px-2","truncate max-w-[320px]"),requestId:_.id,children:s.jsx(E,{variant:"body",size:"sm",children:_.description})})})]},_.id),e[41]=d,e[42]=a,e[43]=u,e[44]=c,e[45]=i,e[46]=L):L=e[46],P=l.map(L),e[34]=d,e[35]=l,e[36]=a,e[37]=u,e[38]=c,e[39]=i,e[40]=P}else P=e[40];let T;e[47]!==P?(T=s.jsx("tbody",{className:"text-sm font-light",children:P}),e[47]=P,e[48]=T):T=e[48];let D;return e[49]!==S||e[50]!==T?(D=s.jsxs("div",{className:"relative w-screen -mx-4",children:[m,p,s.jsx("div",{className:"w-screen overflow-x-scroll overflow-y-hidden relative",children:s.jsxs("table",{className:"border-spacing-0 border-collapse table-auto text-nowrap",children:[S,T]})})]}),e[49]=S,e[50]=T,e[51]=D):D=e[51],D}
2;function tn(t){return t.timePreference}function sn(t){return t.budget}function ln(t){return t.otherArtistWilling}function nn(t){return t.providerMarketingCampaignTag}function an(t){const e=z.c(29),{personId:l}=t,{handle:d}=ne(),{debouncedSearch:o,filter:i,sortBy:n,viewAs:a}=$.useContext(Y),r=Le(i,750),c=l||"";let f;e[0]!==r||e[1]!==o||e[2]!==n||e[3]!==c?(f={personId:c,...r,searchText:o,sortByCreatedAt:n,limit:24},e[0]=r,e[1]=o,e[2]=n,e[3]=c,e[4]=f):f=e[4];const u=!!l;let m;e[5]!==u?(m={getNextPageParam:rn,enabled:u,placeholderData:ct},e[5]=u,e[6]=m):m=e[6];const{data:p,isLoading:x,isFetchingNextPage:h,fetchNextPage:b}=W.getPageOfNewAppointmentRequests.useInfiniteQuery(f,m);let g,j,k,y,v;if(e[7]!==p?.pages||e[8]!==b||e[9]!==h||e[10]!==x||e[11]!==a){const S=p?.pages??[],P=S[S.length-1]?.hasMore===!0;j=S.flatMap(on),g=ft,k=P,y=b,v=x&&!h?s.jsx(dt,{children:s.jsx(qe,{})}):j.length>0?s.jsx("div",{className:"flex flex-col gap-4 pb-5",children:a==="card"?j.map(T=>s.jsx(xl,{request:T,hasMultipleBooks:S[0].hasMultipleBooks},T.id)):s.jsx(en,{requests:j,hasMultipleBooks:S[0].hasMultipleBooks})}):null,e[7]=p?.pages,e[8]=b,e[9]=h,e[10]=x,e[11]=a,e[12]=g,e[13]=j,e[14]=k,e[15]=y,e[16]=v}else g=e[12],j=e[13],k=e[14],y=e[15],v=e[16];const w=x&&!h,I=j.length>0;let N;e[17]!==d?(N=s.jsx(Ji,{handle:d}),e[17]=d,e[18]=N):N=e[18];let C;e[19]!==N||e[20]!==w||e[21]!==I?(C=s.jsx(ut,{isLoading:w,hasResults:I,defaultEmptyStateSlot:N,supportsBlockedFilter:!0}),e[19]=N,e[20]=w,e[21]=I,e[22]=C):C=e[22];let A;return e[23]!==g||e[24]!==C||e[25]!==k||e[26]!==y||e[27]!==v?(A=s.jsxs(g,{hasMore:k,onLoadMore:y,children:[v,C]}),e[23]=g,e[24]=C,e[25]=k,e[26]=y,e[27]=v,e[28]=A):A=e[28],A}function on(t){return t.requests}function rn(t){return t.requests[t.requests.length-1]?.id}function Mt(t){const e=z.c(7),{count:l,className:d,isActive:o}=t,i=o===void 0?!0:o,n=l>0?"bg-ink-black text-ink-white":"bg-ink-black-50 text-ink-black-600",a=!i&&"opacity-60";let r;e[0]!==d||e[1]!==n||e[2]!==a?(r=B("flex items-center justify-center h-5 min-w-[20px] px-1 rounded-full text-sm","text-[10px] leading-none font-medium transition-all","bg-ink-black-50 text-ink-black-600 font-emphasis",n,a,d),e[0]=d,e[1]=n,e[2]=a,e[3]=r):r=e[3];const c=l>99?"99+":l;let f;return e[4]!==r||e[5]!==c?(f=s.jsx("div",{className:r,children:c}),e[4]=r,e[5]=c,e[6]=f):f=e[6],f}function cn(t){const e=z.c(43),{request:l}=t,d=ue();let o;e[0]!==d||e[1]!==l.id?(o=d("appointmentRequest",{requestId:l.id}),e[0]=d,e[1]=l.id,e[2]=o):o=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={fromApp:!0},e[3]=i):i=e[3];let n;e[4]!==l.referenceImagesDetails?(n=l.referenceImagesDetails.map(dn),e[4]=l.referenceImagesDetails,e[5]=n):n=e[5];let a;e[6]!==l.bookTag||e[7]!==l.bookTagColor||e[8]!==l.referenceFilesDetails||e[9]!==n?(a=s.jsx(ei,{className:"rounded-t-2xl rounded-b-none",imagePaths:n,fileDetails:l.referenceFilesDetails,canZoomIn:!1,hideFileDownload:!0,bookTag:l.bookTag,bookTagColor:l.bookTagColor,hasMultipleBooks:!1}),e[6]=l.bookTag,e[7]=l.bookTagColor,e[8]=l.referenceFilesDetails,e[9]=n,e[10]=a):a=e[10];let r;e[11]!==l.clientName?(r=s.jsx(E,{size:"sm",className:"font-normal",children:l.clientName}),e[11]=l.clientName,e[12]=r):r=e[12];let c;e[13]!==l.createdAt?(c=Fl(l.createdAt,zs()),e[13]=l.createdAt,e[14]=c):c=e[14];let f;e[15]!==c?(f=s.jsx(E,{size:"sm",className:"text-ink-black/60",children:c}),e[15]=c,e[16]=f):f=e[16];let u;e[17]!==r||e[18]!==f?(u=s.jsx("div",{className:"flex flex-row justify-between items-center",children:s.jsxs("div",{className:"flex flex-row justify-end items-end gap-2",children:[r,f]})}),e[17]=r,e[18]=f,e[19]=u):u=e[19];let m;e[20]!==l.description?(m=!!l.description&&s.jsx(E,{size:"base",className:"font-extralight line-clamp-3 min-h-[3lh]",children:l.description}),e[20]=l.description,e[21]=m):m=e[21];let p;e[22]!==l.placement?(p=l.placement&&s.jsxs(E,{size:"sm",className:"text-ink-black/60 capitalize",children:["#",l.placement]}),e[22]=l.placement,e[23]=p):p=e[23];let x;e[24]!==l.size?(x=l.size&&s.jsxs(E,{size:"sm",className:"text-ink-black/60 capitalize",children:["#",l.size]}),e[24]=l.size,e[25]=x):x=e[25];let h;e[26]!==p||e[27]!==x?(h=s.jsxs("div",{className:"flex flex-row items-center gap-4",children:[p,x]}),e[26]=p,e[27]=x,e[28]=h):h=e[28];let b;e[29]!==l.availability||e[30]!==l.timePreference?(b=(!!l.availability||!!l.timePreference)&&s.jsxs(s.Fragment,{children:[s.jsx("hr",{className:"border-ink-black-100"}),s.jsxs("div",{className:"flex flex-row justify-between",children:[s.jsx(ss,{rawAvailability:l.availability}),l.timePreference&&s.jsx(ls,{timePreference:l.timePreference})]})]}),e[29]=l.availability,e[30]=l.timePreference,e[31]=b):b=e[31];let g;e[32]!==h||e[33]!==b||e[34]!==m?(g=s.jsxs("div",{className:"flex flex-col gap-3",children:[m,h,b]}),e[32]=h,e[33]=b,e[34]=m,e[35]=g):g=e[35];let j;e[36]!==g||e[37]!==u?(j=s.jsxs("div",{className:"flex flex-col gap-3 justify-between w-full p-5 bg-ink-black-50 rounded-b-2xl",children:[u,g]}),e[36]=g,e[37]=u,e[38]=j):j=e[38];let k;return e[39]!==o||e[40]!==j||e[41]!==a?(k=s.jsxs(ie,{className:"no-underline relative",to:o,relative:"path",state:i,onDragStart:fn,viewTransition:!0,children:[a,j]}),e[39]=o,e[40]=j,e[41]=a,e[42]=k):k=e[42],k}function dn(t){return t.url}function fn(t){return t.preventDefault()}const mn="inbox::studioInboxCollapsed";function un(){const t=z.c(55),{personId:e}=ne(),{isUsingDefaultFilter:l,debouncedSearch:d}=$.useContext(Y),[o,i]=At(mn,!1);let n;t[0]!==e?(n={personId:e},t[0]=e,t[1]=n):n=t[1];const a=!!e;let r;t[2]!==a?(r={enabled:a},t[2]=a,t[3]=r):r=t[3];const{data:c}
2=W.getStudioInboxCount.useQuery(n,r),f=!!c?.hasSharedInbox;let u;t[4]!==e?(u={personId:e,limit:24},t[4]=e,t[5]=u):u=t[5];let m;t[6]!==f?(m={enabled:f,getNextPageParam:gn},t[6]=f,t[7]=m):m=t[7];const{data:p,fetchNextPage:x,hasNextPage:h,isFetchingNextPage:b}=W.getPageOfStudioInboxRequests.useInfiniteQuery(u,m),[g,j]=$.useState(null);let k,y;if(t[8]!==x||t[9]!==h||t[10]!==b||t[11]!==g?(k=()=>{if(!g||!h||b)return;const L=new IntersectionObserver(_=>{const[F]=_;F?.isIntersecting&&x()});return L.observe(g),()=>{L.disconnect()}},y=[g,h,b,x],t[8]=x,t[9]=h,t[10]=b,t[11]=g,t[12]=k,t[13]=y):(k=t[12],y=t[13]),$.useEffect(k,y),!c||!f||(!l||!!d))return null;const w=c.count;if(w===0){let L;t[14]!==w?(L=s.jsxs(he,{size:"lg",className:"flex flex-row items-center gap-1.5",children:["Studio Inbox",s.jsx(Mt,{count:w})]}),t[14]=w,t[15]=L):L=t[15];let _;t[16]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(E,{size:"sm",variant:"label",className:"text-ink-black-600",children:"No requests"}),t[16]=_):_=t[16];let F;t[17]!==L?(F=s.jsxs("div",{className:"flex flex-row justify-between items-center py-3",children:[L,_]}),t[17]=L,t[18]=F):F=t[18];let O,q;t[19]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Ft,{className:"h-px"}),q=s.jsx(he,{size:"lg",className:"flex flex-row items-center gap-1.5",children:"Your Requests"}),t[19]=O,t[20]=q):(O=t[19],q=t[20]);let M;return t[21]!==F?(M=s.jsxs("div",{className:"flex flex-col gap-5",children:[F,O,q]}),t[21]=F,t[22]=M):M=t[22],M}let I,N,C,A;if(t[23]!==w||t[24]!==h||t[25]!==o||t[26]!==p?.pages||t[27]!==i){const L=p?.pages.flatMap(hn)??[];I="flex flex-col gap-5",N="flex flex-col gap-3 pt-3 pb-2";const _=!o;let F;t[32]!==w||t[33]!==_?(F=s.jsxs("div",{className:"flex flex-row items-center gap-1.5",children:["Studio Inbox ",s.jsx(Mt,{count:w,isActive:_})]}),t[32]=w,t[33]=_,t[34]=F):F=t[34];let O;t[35]!==i?(O=()=>i(xn),t[35]=i,t[36]=O):O=t[36];const q=!o,M=o?"Expand":"Collapse";let U;t[37]!==M?(U=s.jsx(E,{size:"sm",variant:"label",className:"underline text-ink-black-600",children:M}),t[37]=M,t[38]=U):U=t[38];let R;t[39]!==O||t[40]!==q||t[41]!==U?(R=s.jsx("button",{type:"button",onClick:O,"aria-expanded":q,className:"rounded-sm",children:U}),t[39]=O,t[40]=q,t[41]=U,t[42]=R):R=t[42],t[43]!==F||t[44]!==R?(C=s.jsxs(he,{size:"lg",className:"flex flex-row items-center justify-between",children:[F,R]}),t[43]=F,t[44]=R,t[45]=C):C=t[45],A=!o&&s.jsxs(si,{vertical:!1,hideScrollbars:!1,className:"flex flex-row gap-4 -mx-4 px-4 pb-1 overflow-x-auto invisible-scrollbar",children:[L.map(pn),h&&s.jsx("div",{ref:j,className:"shrink-0 w-px self-stretch"})]}),t[23]=w,t[24]=h,t[25]=o,t[26]=p?.pages,t[27]=i,t[28]=I,t[29]=N,t[30]=C,t[31]=A}else I=t[28],N=t[29],C=t[30],A=t[31];let S;t[46]!==N||t[47]!==C||t[48]!==A?(S=s.jsxs("div",{className:N,children:[C,A]}),t[46]=N,t[47]=C,t[48]=A,t[49]=S):S=t[49];let P,T;t[50]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(Ft,{className:"h-px"}),T=s.jsx(he,{size:"lg",className:"flex flex-row items-center gap-1.5",children:"Your Requests"}),t[50]=P,t[51]=T):(P=t[50],T=t[51]);let D;return t[52]!==I||t[53]!==S?(D=s.jsxs("div",{className:I,children:[S,P,T]}),t[52]=I,t[53]=S,t[54]=D):D=t[54],D}function pn(t){return s.jsx("div",{className:"shrink-0 w-72",children:s.jsx(cn,{request:t})},t.id)}function xn(t){return!t}function hn(t){return t.requests}function gn(t){return t.hasMore?t.requests[t.requests.length-1]?.id:void 0}function bn(){const t=z.c(50),e=ue(),{filter:l}=$.useContext(Y),d=Le(l,750),{personId:o,handle:i}=ne(),n=!!o;let a;t[0]!==n?(a={enabled:n},t[0]=n,t[1]=a):a=t[1];const{data:r,isLoading:c}=W.getPersonSettings.useQuery(o,a),f=d&&d.archived;let u;t[2]!==o||t[3]!==f?(u={personId:o,includeArchived:f},t[2]=o,t[3]=f,t[4]=u):u=t[4];const m=!!o;let p;t[5]!==m?(p={enabled:m},t[5]=m,t[6]=p):p=t[6];const{data:x}=W.flashEvents.getFlashEventsForInbox.useQuery(u,p),h=!!o;let b;t[7]!==h?(b={enabled:h},t[7]=h,t[8]=b):b=t[8];const{data:g}=W.getGuestSpots.useQuery(o,b);if(!o||!r)return null;let j,k,y,v;if(t[9]===Symbol.for("react.memo_cache_sentinel")){const R=new Date;j=R.getFullYear();const G=String(R.getMonth()+1);t[13]!==G?(k=G.padStart(2,"0"),t[13]=G,t[14]=k):k=t[14],y=String,v=R.getDate(),t[9]=j,t[10]=k,t[11]=y,t[12]=v}else j=t[9],k=t[10],y=t[11],v=t[12];const w=y(v);let I;t[15]!==w?(I=w.padStart(2,"0"),t[15]=w,t[16]=I):I=t[16];const N=`${j}-${k}-${I}`;let C;t[17]!==g||t[18]!==N?(C=g?Wi(g,N):null,t[17]=g,t[18]=N,t[19]=C):C=t[19];const A=C;let S;t[20]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Zi,{}),t[20]=S):S=t[20];let P;t[21]!==A?(P=A?s.jsx(Vi,{application:A.application,moreCount:A.moreCount}):s.jsx(bi,{}),t[21]=A,t[22]=P):P=t[22];let T;t[23]!==o?(T=s.jsx(wi,{personId:o}),t[23]=o,t[24]=T):T=t[24];let D;t[25]!==i||t[26]!==c||t[27]!==o||t[28]!==r?(D=!c&&r.allowPaymentsWithoutStripeAccountChargesEnabled&&s.jsx(Xl,{personId:o,handle:i??"",variant:"outsideSettings"}),t[25]=i,t[26]=c,t[27]=o,t[28]=r,t[29]=D):D=t[29];let L,_;t[30]!==o?(L=s.jsx(Qi,{personId:o}),_=s.jsx(Hi,{personId:o}),t[30]=o,t[31]=L,t[32]=_):(L=t[31],_=t[32]);let F;t[33]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(hl,{}),t[33]=F):F=t[33];let O;t[34]!==x||t[35]!==e||t[36]!==i||t[37]!==o?(O=x&&x.length>0&&s.jsx("div",{className:"flex flex-col gap-6",children:x.map(R=>s.jsx(ie,{to:e("flashEventOverview",{flashEventId:R.id,handle:i,personId:o}),state:{fromApp:!0},viewTransition:!0,children:s.jsx(jl,{availableSlotCount:R.availableSlotCount,date:R.startedAt,isPublished:R.isPublished,title:R.title,totalSlotCount:R.totalSlotCount,timeZone:R.timeZone})},R.id))}),t[34]=x,t[35]=e,t[36]=i,t[37]=o,t[38]=O):O=t[38];let q;t[39]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(un,{}),t[39]=q):q=t[39];let M;t[40]!==o?(M=s.jsx(an,{personId:o}),t[40]=o,t[41]=M):M=t[41];let U;return t[42]!==P||t[43]!==T||t[44]!==D||t[45]!==L||t[46]!==_||t[47]!==O||t[48]!==M?(U=s.jsxs("div",{className:"flex flex-col gap-6",children:[S,P,T,D,L,_,F,O,q,M]}),t[42]=P,t[43]=T,t[44]=D,t[45]=L,t[46]=_,t[47]=O,t[48]=M,t[49]=U):U=t[49],U}function jn(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(De,{icon:Os,title:"No upcoming appointments",description:"When you confirm an appointment, it'll appear here"}),t[0]=e):e=t[0],e}function kn(){const t=z.c(42),{personId:e}=ne(),{debouncedSearch:l,filter:d}=$.useContext(Y),o=Le(d,750),{use24h:i}=is(),n=e||"";let a;t[0]!==o?(a=o??{},t[0]=o,t[1]=a):a=t[1];let r;t[2]!==l||t[3]!==n||t[4]!==a?(r={personId:n,...a,searchText:l,limit:24},t[2]=l,t[3]=n,t[4]=a,t[5]=r):r=t[5];const c=!!e;let f;t[6]!==c?(f={getNextPageParam:vn,enabled:c,placeholderData:ct},t[6]=c,t[7]=f):f=t[7];const{data:u,isLoading:m,isFetchingNextPage:p,fetchNextPage:x}=W.getPageOfUpcomingAppointmentRequests.useInfiniteQuery(r,f);if(!e)return null;let h,b,g,j,k,y,v,w;if(t[8]!==u?.pages||t[9]!==x||t[10]!==p||t[11]!==m||t[12]!==i){g=Symbol.for("react.early_return_sentinel");e:{const D=u?.pages??[],L=D[D.length-1]?.hasMore===!0;if(b=D.flatMap(yn),m&&!p){let O;t[21]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(dt,{children:s.jsx(qe,{})}),t[21]=O):O=t[21],g=O;break e}const _=b.length===0&&"flex flex-col flex-1 justify-center";t[22]!==_?(w=B(_),t[22]=_,t[23]=w):w=t[23],h=ft,y=L,v=x,j="flex flex-col gap-6 pb-5";let F;t[24]!==i?(F=O=>s.jsx(gl,{request:O,use24h:i},O.appointmentId),t[24]=i,t[25]=F):F=t[25],k=b.map(F)}t[8]=u?.pages,t[9]=x,t[10]=p,t[11]=m,t[12]=i,t[13]=h,t[14]=b,t[15]=g,t[16]=j,t[17]=k,t[18]=y,t[19]=v,t[20]=w}else h=t[13],b=t[14],g=t[15],j=t[16],k=t[17],y=t[18],v=t[19],w=t[20];if(g!==Symbol.for("react.early_return_sentinel"))return g;const I=m&&!p,N=b.length>0;let C;t[26]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(jn,{}),t[26]=C):C=t[26];let A;t[27]!==I||t[28]!==N?(A=s.jsx(ut,{isLoading:I,hasResults:N,defaultEmptyStateSlot:C,supportsBlockedFilter:!0}),t[27]=I,t[28]=N,t[29]=A):A=t[29];let S;t[30]!==A||t[31]!==j||t[32]!==k?(S=s.jsxs("div",{className:j,children:[k,A]}),t[30]=A,t[31]=j,t[32]=k,t[33]=S):S=t[33];let P;t[34]!==h||t[35]!==S||t[36]!==y||t[37]!==v?(P=s.jsx(h,{hasMore:y,onLoadMore:v,children:S}),t[34]=h,t[35]=S,t[36]=y,t[37]=v,t[38]=P):P=t[38];let T;return t[39]!==P||t[40]!==w?(T=s.jsx("div",{className:w,children:P}),t[39]=P,t[40]=w,t[41]=T):T=t[41],T}function yn(t){return t.requests}function vn(t){return t.requests[t.requests.length-1]?.appointmentId}const Nn=Ds("InAppReview",{web:()=>ms(()=>import("./D2C1DYnc.js").then(t=>t.w),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(t=>new t.InAppReviewWeb)});function wn(t){const e=z.c(9),{personId:l}=t,d=ue(),o=ge();let i;e[0]!==d||e[1]!==l?(i=d("referralInvite",{personId:l}),e[0]=d,e[1]=l,e[2]=i):i=e[2];let n;e[3]!==o?(n=()=>{o?.capture("inbox_gift_icon_clicked",{destination:"rewards"})},e[3]=o,e[4]=n):n=e[4];let a;e[5]===Symbol.for("react.memo_cache_sentinel")?(a=B(mt({variant:"tertiary",size:"sm"}),"text-ink-black"),e[5]=a):a=e[5];let r;return e[6]!==i||e[7]!==n?(r=s.jsx(ie,{to:i,onClick:n,className:a,viewTransition:!0,children:"Invite friends"}),e[6]=i,e[7]=n,e[8]=r):r=e[8],r}function qt(t){const e=z.c(23),{tabType:l,isSelected:d}=t,o=d===void 0?!1:d,{personId:i}=ne();let n;e[0]!==i?(n={providerId:i},e[0]=i,e[1]=n):n=e[1];const a=!!i;let r;e[2]!==a?(r={enabled:a},e[2]=a,e[3]=r):r=e[3];const{data:c,isLoading:f}=W.getRequestCounts.useQuery(n,r);if(f||!i){let A;return e[4]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(wt,{className:"inline-flex h-5 min-w-[20px] rounded-full"}),e[4]=A):A=e[4],A}if(!c)return null;let u;e[5]!==c.acceptedRequestCount||e[6]!==c.newRequestCount||e[7]!==c.pastRequestCount||e[8]!==c.upcomingRequestCount?(u={new:c.newRequestCount,accepted:c.acceptedRequestCount,upcoming:c.upcomingRequestCount,past:c.pastRequestCount},e[5]=c.acceptedRequestCount,e[6]=c.newRequestCount,e[7]=c.pastRequestCount,e[8]=c.upcomingRequestCount,e[9]=u):u=e[9];const p=u[l];
2if(!p||p===0)return null;const x=`${p} new request${p!==1?"s":""}`,h=`${p} accepted request${p!==1?"s":""}`,b=`${p} upcoming appointment${p!==1?"s":""}`,g=`${p} past appointment${p!==1?"s":""}`;let j;e[10]!==x||e[11]!==h||e[12]!==b||e[13]!==g?(j={new:x,accepted:h,upcoming:b,past:g},e[10]=x,e[11]=h,e[12]=b,e[13]=g,e[14]=j):j=e[14];const k=j,y=o?"bg-ink-black text-ink-white":"bg-ink-black/5 text-ink-black-400";let v;e[15]!==y?(v=B("flex items-center justify-center w-4 h-4 px-1 rounded-full text-sm",y),e[15]=y,e[16]=v):v=e[16];const w=k[l],I=p>99?"99+":p;let N;e[17]!==I?(N=s.jsx("span",{className:"text-[10px] leading-none font-medium",children:I}),e[17]=I,e[18]=N):N=e[18];let C;return e[19]!==v||e[20]!==w||e[21]!==N?(C=s.jsx("div",{className:v,"aria-label":w,children:N}),e[19]=v,e[20]=w,e[21]=N,e[22]=C):C=e[22],C}function Sn(t){const e=z.c(8),{onOpenChange:l}=t,{search:d,setSearch:o,clearSearch:i}=$.useContext(Y),[n,a]=$.useState(!1),r=$.useRef(null);let c;e[0]!==l?(c=m=>{a(m),m===!1&&(r.current=null),l&&l(m)},e[0]=l,e[1]=c):c=e[1];const f=c;let u;return e[2]!==i||e[3]!==f||e[4]!==n||e[5]!==d||e[6]!==o?(u=n?s.jsxs("div",{className:"flex flex-1 gap-2 items-center w-full justify-end",children:[s.jsx(H,{onClick:()=>{i(),f(!1)},variant:"tertiary",className:"text-ink-black p-0 pl-1 pr-1 h-9 min-h-9",children:s.jsx(Fs,{})}),s.jsxs("div",{className:"relative w-full",children:[s.jsx("input",{ref:m=>{m&&(m.focus(),r.current=m)},onChange:m=>o(m.target.value),onBlur:()=>{d.length===0&&f(!1)},value:d,placeholder:"Search by name...",className:"bg-transparent w-full h-10 border p-2 pl-11 pr-10 rounded-lg border-ink-black-100 text-base leading-tighter font-normal"}),s.jsx(Lt,{className:"absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none"}),d.length>0&&s.jsx(H,{onClick:()=>{i(),r.current?.focus()},variant:"transparent",className:"absolute right-3 top-1/2 -translate-y-1/2 text-ink-black p-0 h-fit min-h-fit",children:s.jsx(Ls,{size:20})})]})]}):s.jsx(H,{variant:"link",className:"p-1.5 h-8 min-h-8 w-8 text-ink-black",onClick:()=>{f(!0)},children:s.jsx(Lt,{size:18})}),e[2]=i,e[3]=f,e[4]=n,e[5]=d,e[6]=o,e[7]=u):u=e[7],u}function _n(){const t=z.c(8),{filter:e,setFilter:l}=$.useContext(Y),d=ge();let o;t[0]!==e?.archived||t[1]!==d||t[2]!==l?(o=()=>{const c=!e?.archived;l(f=>({...Q,...f,archived:c})),d?.capture(`inbox-archive-filter-${c?"set":"unset"}`)},t[0]=e?.archived,t[1]=d,t[2]=l,t[3]=o):o=t[3];const i=o,n=e?.archived===!0?"primary":"tertiary";let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=B("inline-flex h-7 min-h-7 px-3 rounded-full gap-1 border-0"),t[4]=a):a=t[4];let r;return t[5]!==n||t[6]!==i?(r=s.jsx(H,{variant:n,size:"sm",onClick:i,className:a,children:"Archived"}),t[5]=n,t[6]=i,t[7]=r):r=t[7],r}function Cn(t){const e=z.c(17),{count:l}=t,{filter:d,setFilter:o}=$.useContext(Y),i=ge();let n;e[0]!==d?.blocked||e[1]!==i||e[2]!==o?(n=()=>{const g=!d?.blocked;o(j=>({...Q,...j,blocked:g})),i?.capture(`inbox-blocked-filter-${g?"set":"unset"}`)},e[0]=d?.blocked,e[1]=i,e[2]=o,e[3]=n):n=e[3];const a=n,r=d?.blocked===!0?"primary":"tertiary";let c,f;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=B("h-7 min-h-7 pl-3 pr-2 rounded-full gap-1 border-0"),f=s.jsx("span",{children:"Spam"}),e[4]=c,e[5]=f):(c=e[4],f=e[5]);const u=d?.blocked===!0?"bg-ink-white/10i text-ink-white-600":"bg-ink-black/5 text-ink-black-600";let m;e[6]!==u?(m=B("flex items-center justify-center h-4 w-4 px-1 rounded-full text-sm",u),e[6]=u,e[7]=m):m=e[7];const p=l!==void 0&&l>99?"99+":l;let x;e[8]!==p?(x=s.jsx("span",{className:"text-[10px] leading-none font-medium",children:p}),e[8]=p,e[9]=x):x=e[9];let h;e[10]!==m||e[11]!==x?(h=s.jsx("div",{className:m,"aria-label":"Spam requests count",children:x}),e[10]=m,e[11]=x,e[12]=h):h=e[12];let b;return e[13]!==r||e[14]!==h||e[15]!==a?(b=s.jsxs(H,{variant:r,size:"sm",onClick:a,className:c,children:[f,h]}),e[13]=r,e[14]=h,e[15]=a,e[16]=b):b=e[16],b}const In=2147483647,Pn=(t=0,e=In)=>{const l=Math.ceil(t),d=Math.floor(e);return Math.floor(Math.random()*(d-l+1))+l};function An(t){const e=z.c(19),{onApply:l,onClearAll:d,selectedBookIds:o,toggleBookId:i}=t,{personId:n}=ne(),a=!!n;let r;e[0]!==a?(r={enabled:a},e[0]=a,e[1]=r):r=e[1];const{data:c,isLoading:f,isError:u}=W.getBookOptions.useQuery(n,r);let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsxs(Ot,{className:"text-left text-xl leading-tighter font-medium",children:[s.jsx(Ll,{children:"Book"}),s.jsx(El,{children:"Select which books you want to filter by."})]}),e[2]=m):m=e[2];let p;e[3]!==c||e[4]!==u||e[5]!==f||e[6]!==o||e[7]!==i?(p=c?s.jsx("div",{className:"flex flex-col gap-8 px-5 py-6",children:c.map(j=>s.jsxs(Me,{className:"flex flex-row justify-between font-normal",children:[s.jsx("span",{children:j.name}
2),s.jsx(Xt,{checked:o.includes(j.id),onChange:()=>i(j.id)})]},j.id))}):u?s.jsx("div",{children:"Something went wrong"}):f?s.jsx("div",{className:"flex flex-col gap-4 px-5 py-8",children:Es(3).map(Tn)}):null,e[3]=c,e[4]=u,e[5]=f,e[6]=o,e[7]=i,e[8]=p):p=e[8];let x;e[9]!==d?(x=s.jsx(H,{variant:"secondary",fullWidth:!0,onClick:d,children:"Clear all"}),e[9]=d,e[10]=x):x=e[10];let h;e[11]!==l?(h=s.jsx(H,{variant:"primary",fullWidth:!0,onClick:l,children:"Done"}),e[11]=l,e[12]=h):h=e[12];let b;e[13]!==x||e[14]!==h?(b=s.jsxs(zt,{variant:"inline",children:[x,h]}),e[13]=x,e[14]=h,e[15]=b):b=e[15];let g;return e[16]!==p||e[17]!==b?(g=s.jsxs(s.Fragment,{children:[m,p,b]}),e[16]=p,e[17]=b,e[18]=g):g=e[18],g}function Tn(t,e){return s.jsxs("div",{className:"flex flex-row justify-between font-normal",children:[s.jsx(wt,{className:"h-4",style:{width:`${Pn(72,96)}px`}}),s.jsx(wt,{className:"w-4 h-4 aspect-square"})]},e)}function fs(t){const e=z.c(26),{triggerVariant:l}=t,[d,o]=$.useState(!1),{filter:i,setFilter:n}=$.useContext(Y);let a;e[0]!==i?.bookIds?(a=i?.bookIds||[],e[0]=i?.bookIds,e[1]=a):a=e[1];const[r,c]=$.useState(a);let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=I=>{c(N=>N.includes(I)?N.filter(C=>C!==I):[...N,I])},e[2]=f):f=e[2];const u=f;let m;e[3]!==n?(m=()=>{n($n),c([]),o(!1)},e[3]=n,e[4]=m):m=e[4];const p=m;let x;e[5]!==r||e[6]!==n?(x=()=>{n(I=>({...Q,...I,bookIds:r})),c(r),o(!1)},e[5]=r,e[6]=n,e[7]=x):x=e[7];const h=x;let b;e[8]!==i?.bookIds?(b=()=>{c(i?.bookIds||[])},e[8]=i?.bookIds,e[9]=b):b=e[9];const g=i?.bookIds;let j;e[10]!==g?(j=[g],e[10]=g,e[11]=j):j=e[11],$.useEffect(b,j);let k;e[12]!==i||e[13]!==l?(k=s.jsx(Ue,{asChild:!0,children:l==="in-drawer"?s.jsxs("div",{className:"flex flex-row justify-between items-center",children:[s.jsx("div",{children:"Book"}),s.jsxs("div",{className:"flex flex-row gap-2 items-center",children:[s.jsx("div",{className:"text-base leading-tighter font-light",children:i&&i.bookIds.length>0?"Selected":"All"}),s.jsx("div",{children:s.jsx(Fe,{size:20,className:"text-ink-forest"})})]})]}):s.jsxs(H,{variant:i&&i.bookIds.length>0?"primary":"tertiary",size:"sm",className:B("inline-flex h-7 min-h-7 pl-3 pr-2.5 rounded-full gap-1 border-0"),children:["Book",s.jsx(Fe,{size:12,className:B("text-ink-black-600 rotate-90 [&_path]:stroke-1",i&&i.bookIds.length>0&&"text-ink-white")})]})}),e[12]=i,e[13]=l,e[14]=k):k=e[14];let y;e[15]!==d||e[16]!==h||e[17]!==p||e[18]!==r?(y=d&&s.jsx(An,{onApply:h,onClearAll:p,selectedBookIds:r,toggleBookId:u}),e[15]=d,e[16]=h,e[17]=p,e[18]=r,e[19]=y):y=e[19];let v;e[20]!==y?(v=s.jsx(Ee,{children:y}),e[20]=y,e[21]=v):v=e[21];let w;return e[22]!==d||e[23]!==v||e[24]!==k?(w=s.jsxs(Re,{open:d,onOpenChange:o,children:[k,v]}),e[22]=d,e[23]=v,e[24]=k,e[25]=w):w=e[25],w}function $n(t){return{...Q,...t,bookIds:[]}}function zn(){const t=z.c(6),{filter:e,setFilter:l}=$.useContext(Y);let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("span",{children:"Starred"}),t[0]=d):d=t[0];const o=e&&e.starredFilter!=null;let i;t[1]!==l?(i=a=>{l(r=>({...Q,...r,starredFilter:a?!0:void 0}))},t[1]=l,t[2]=i):i=t[2];let n;return t[3]!==o||t[4]!==i?(n=s.jsxs("label",{className:"flex flex-row justify-between items-center",children:[d,s.jsx(Xt,{checked:o,onChangeChecked:i})]}),t[3]=o,t[4]=i,t[5]=n):n=t[5],n}function On(){const t=z.c(18),[e,l]=$.useState(!1),{sortBy:d,setSortBy:o}=$.useContext(Y);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{children:"Sort by"}),t[0]=i):i=t[0];const n=d==="asc"?"Oldest":"Latest";let a;t[1]!==n?(a=s.jsx("div",{className:"text-base leading-tighter font-light",children:n}),t[1]=n,t[2]=a):a=t[2];let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{children:s.jsx(Fe,{size:20,className:"text-ink-forest"})}),t[3]=r):r=t[3];let c;t[4]!==a?(c=s.jsx(Ue,{asChild:!0,children:s.jsxs("div",{className:"flex flex-row justify-between items-center",children:[i,s.jsxs("div",{className:"flex flex-row gap-2 items-center",children:[a,r]})]})}),t[4]=a,t[5]=c):c=t[5];let f;t[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Ot,{className:"text-left text-xl leading-tighter font-medium",children:"Sort by"}),t[6]=f):f=t[6];let u;t[7]!==o?(u=b=>{o(b),l(!1)},t[7]=o,t[8]=u):u=t[8];let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsxs(Me,{className:"flex flex-row justify-between items-center text-base leading-tighter font-normal",children:[s.jsx("span",{children:"Latest"}),s.jsx(rt,{value:"desc"})]}),t[9]=m):m=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs(Me,{className:"flex flex-row justify-between items-center text-base leading-tighter font-normal",children:[s.jsx("span",{children:"Oldest"}),s.jsx(rt,{value:"asc"})]}),t[10]=p):p=t[10];let x;t[11]!==d||t[12]!==u?(x=s.jsxs(Ee,{className:"pb-safe-or-5",children:[f,s.jsxs(ns,{className:"py-8 px-5 flex flex-col gap-8",value:d,onValueChange:u,children:[m,p]})]}),t[11]=d,t[12]=u,t[13]=x):x=t[13];let h;return t[14]!==e||t[15]!==c||t[16]!==x?(h=s.jsxs(Re,{open:e,onOpenChange:l,children:[c,x]}),t[14]=e,t[15]=c,t[16]=x,t[17]=h):h=t[17],h}function Dn(){const t=z.c(18),[e,l]=$.useState(!1),{viewAs:d,setVie
2wAs:o}=$.useContext(Y);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{children:"View as"}),t[0]=i):i=t[0];const n=d==="card"?"Card":"Grid";let a;t[1]!==n?(a=s.jsx("div",{className:"text-base leading-tighter font-light",children:n}),t[1]=n,t[2]=a):a=t[2];let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{children:s.jsx(Fe,{size:20,className:"text-ink-forest"})}),t[3]=r):r=t[3];let c;t[4]!==a?(c=s.jsx(Ue,{asChild:!0,children:s.jsxs("div",{className:"flex flex-row justify-between items-center",children:[i,s.jsxs("div",{className:"flex flex-row gap-2 items-center",children:[a,r]})]})}),t[4]=a,t[5]=c):c=t[5];let f;t[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Ot,{className:"text-left text-xl leading-tighter font-medium",children:"View as"}),t[6]=f):f=t[6];let u;t[7]!==o?(u=b=>{o(b),l(!1)},t[7]=o,t[8]=u):u=t[8];let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsxs(Me,{className:"flex flex-row justify-between items-center text-base leading-tighter font-normal",children:[s.jsx("span",{children:"Card"}),s.jsx(rt,{value:"card"})]}),t[9]=m):m=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs(Me,{className:"flex flex-row justify-between items-center text-base leading-tighter font-normal",children:[s.jsx("span",{children:"Grid"}),s.jsx(rt,{value:"grid"})]}),t[10]=p):p=t[10];let x;t[11]!==u||t[12]!==d?(x=s.jsxs(Ee,{className:"pb-safe-or-5",children:[f,s.jsxs(ns,{className:"py-8 px-5 flex flex-col gap-8",value:d,onValueChange:u,children:[m,p]})]}),t[11]=u,t[12]=d,t[13]=x):x=t[13];let h;return t[14]!==e||t[15]!==c||t[16]!==x?(h=s.jsxs(Re,{open:e,onOpenChange:l,children:[c,x]}),t[14]=e,t[15]=c,t[16]=x,t[17]=h):h=t[17],h}function Fn(){const t=z.c(16),[e,l]=$.useState(!1),{clearFilter:d,isUsingDefaultFilter:o,isUsingDefaultViewAsAndSortBy:i}=$.useContext(Y),n=(!o||!i)&&"bg-ink-black text-ink-white hover:text-ink-black";let a;t[0]!==n?(a=B("inline-flex p-1.5 h-8 min-h-8 w-8 rounded-full",n),t[0]=n,t[1]=a):a=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Rs,{size:18}),t[2]=r):r=t[2];let c;t[3]!==a?(c=s.jsx(Ue,{asChild:!0,children:s.jsx(H,{variant:"transparent",className:a,children:r})}),t[3]=a,t[4]=c):c=t[4];let f;t[5]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Rl,{children:"Filter"}),t[5]=f):f=t[5];let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsxs("div",{className:"py-8 px-5 flex flex-col gap-8",children:[s.jsx(zn,{}),s.jsx(fs,{triggerVariant:"in-drawer"}),s.jsx("hr",{}),s.jsx(On,{}),s.jsx(Dn,{})]}),t[6]=u):u=t[6];let m;t[7]!==d?(m=s.jsx(H,{variant:"secondary",fullWidth:!0,onClick:()=>{d(),l(!1)},children:"Clear all filters"}),t[7]=d,t[8]=m):m=t[8];let p;t[9]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(H,{variant:"primary",fullWidth:!0,onClick:()=>{l(!1)},children:"Done"}),t[9]=p):p=t[9];let x;t[10]!==m?(x=s.jsxs(Ee,{showClose:!1,children:[f,u,s.jsxs(zt,{variant:"inline",children:[m,p]})]}),t[10]=m,t[11]=x):x=t[11];let h;return t[12]!==e||t[13]!==c||t[14]!==x?(h=s.jsxs(Re,{open:e,onOpenChange:l,children:[c,x]}),t[12]=e,t[13]=c,t[14]=x,t[15]=h):h=t[15],h}function Ln(){const t=z.c(12),{filter:e,setFilter:l}=$.useContext(Y);let d;t[0]!==l?(d=()=>l(En),t[0]=l,t[1]=d):d=t[1];const o=e&&e.starredFilter&&"bg-ink-black";let i;t[2]!==o?(i=B("inline-flex aspect-square h-8 w-8 p-0 rounded-full",o),t[2]=o,t[3]=i):i=t[3];const n=e&&e.starredFilter?"text-ink-white fill-ink-white":"text-ink-black-800";let a;t[4]!==n?(a=B("[&_path]:[stroke-width:1.75]",n),t[4]=n,t[5]=a):a=t[5];let r;t[6]!==a?(r=s.jsx(Bs,{size:18,className:a}),t[6]=a,t[7]=r):r=t[7];let c;return t[8]!==d||t[9]!==i||t[10]!==r?(c=s.jsx(H,{variant:"transparent",size:"sm",onClick:d,className:i,children:r}),t[8]=d,t[9]=i,t[10]=r,t[11]=c):c=t[11],c}function En(t){return{...Q,...t,starredFilter:t&&t.starredFilter?void 0:!0}}function Rn(t){const e=z.c(19),{showDrawer:l,showBlockedFilter:d,blockedCount:o}=t,[i,n]=$.useState(!1);let a;e[0]!==o||e[1]!==i||e[2]!==d||e[3]!==l?(a=!i&&s.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[s.jsx(fs,{triggerVariant:"shortcut"}),s.jsx(_n,{}),(l||d)&&s.jsx(Cn,{count:o})]}),e[0]=o,e[1]=i,e[2]=d,e[3]=l,e[4]=a):a=e[4];let r;e[5]!==a?(r=s.jsx("div",{children:a}),e[5]=a,e[6]=r):r=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Sn,{onOpenChange:n}),e[7]=c):c=e[7];let f;e[8]!==i?(f=!i&&s.jsx(Ln,{}),e[8]=i,e[9]=f):f=e[9];let u;e[10]!==i||e[11]!==l?(u=l&&!i&&s.jsx(Fn,{}),e[10]=i,e[11]=l,e[12]=u):u=e[12];let m;e[13]!==f||e[14]!==u?(m=s.jsxs("div",{className:"flex w-full justify-end items-baseline gap-0.5",children:[c,f,u]}),e[13]=f,e[14]=u,e[15]=m):m=e[15];let p;return e[16]!==r||e[17]!==m?(p=s.jsxs("div",{className:"flex flex-row justify-between items-center mb-3",children:[r,m]}),e[16]=r,e[17]=m,e[18]=p):p=e[18],p}function Bn(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(De,{icon:ni,title:"No past requests",description:"Any past requests will end up here."}),t[0]=e):e=t[0],e}function Mn(){const t=z.c(42),{personId:e}=ne(),{debouncedSearch:l,filter:d}=$.useContext(Y),o=Le(d,750),{use24h:i}=is(),n=e||"";let a;t[0]!==o?(a=o??{},t[0]=o,t[1]=a):a=t[1];let r;t[2]!==l||t[3]!==n||t[4]!==a?(r={personId:n,...a,searchText:l,limit:24},t[2]=l,t[3]=n,t[4]=a,t[5]=r):r=t[5];const c=!!e;let f;t[6]!==c?(f={getNextPageParam:Un,enabled:c,placeholderData:ct},t[6]=c,t[7]=f):f=t[7];const{data:u,isLoading:m,isFetchingNextPage:p,fetchNextPage:x}=W.getPageOfPastAppointmentRequests.useInfiniteQuery(r,f);if(!e)return null;let h,b,g,j,k,y,v,w;if(t[8]!==u?.pages||t[9]!==x||t[10]!==p||t[11]!==m||t[12]!==i){g=Symbol.for("react.early_return_sentinel");e:{const D=u?.pages??[],L=D[D.length-1]?.hasMore===!0;if(b=D.flatMap(qn),m&&!p){let O;t[21]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(dt,{children:s.jsx(qe,{})}),t[21]=O):O=t[21],g=O;break e}const _=b.length===0&&"flex flex-col flex-1 justify-center";t[22]!==_?(w=B(_),t[22]=_,t[23]=w):w=t[23],h=ft,y=L,v=x,j="flex flex-col gap-6 pb-5";let F;t[24]!==i?(F=O=>s.jsx(bl,{request:O,use24h:i},O.appointmentId),t[24]=i,t[25]=F):F=t[25],k=b.map(F)}t[8]=u?.pages,t[9]=x,t[10]=p,t[11]=m,t[12]=i,t[13]=h,t[14]=b,t[15]=g,t[16]=j,t[17]=k,t[18]=y,t[19]=v,t[20]=w}else h=t[13],b=t[14],g=t[15],j=t[16],k=t[17],y=t[18],v=t[19],w=t[20];if(g!==Symbol.for("react.early_return_sentinel"))return g;const I=m&&!p,N=b.length>0;let C;t[26]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Bn,{}),t[26]=C):C=t[26];let A;t[27]!==I||t[28]!==N?(A=s.jsx(ut,{isLoading:I,hasResults:N,defaultEmptyStateSlot:C,supportsBlockedFilter:!0}),t[27]=I,t[28]=N,t[29]=A):A=t[29];let S;t[30]!==A||t[31]!==j||t[32]!==k?(S=s.jsxs("div",{className:j,children:[k,A]}),t[30]=A,t[31]=j,t[32]=k,t[33]=S):S=t[33];let P;t[34]!==h||t[35]!==S||t[36]!==y||t[37]!==v?(P=s.jsx(h,{hasMore:y,onLoadMore:v,children:S}),t[34]=h,t[35]=S,t[36]=y,t[37]=v,t[38]=P):P=t[38];let T;return t[39]!==P||t[40]!==w?(T=s.jsx("div",{className:w,children:P}),t[39]=P,t[40]=w,t[41]=T):T=t[41],T}function qn(t){return t.requests}function Un(t){return t.requests[t.requests.length-1]?.appointmentId}function We(t){const e=z.c(117),{tab:l}=t,d=Ht(),o=ue(),{personId:i,handle:n}=ne(),{personId:a}=$.useContext(Ut),r=ge(),[c,f]=Ms(qs,l??"NEW"),[u,m]=$.useState(!1),{status:p,askPNPermissions:x}=il(),{handleFirstTimePermissionGrant:h}=nl(i??void 0),{isEnabled:b}=Us("prompt-in-native-app-for-app-store-review",a);let g,j;e[0]!==c||e[1]!==f?(g=()=>{c==="STUDIO"&&f("NEW")},j=[c,f],e[0]=c,e[1]=f,e[2]=g,e[3]=j):(g=e[2],j=e[3]),$.useEffect(g,j);const k=Ws();let y;e[4]!==x||e[5]!==h||e[6]!==r?(y=async()=>{r?.capture("push_notification_modal_continue_clicked",{source:"inbox_screen",user_type:"artist",timestamp:new Date().toISOString()}),m(!1),setTimeout(async()=>{const le=await x();r?.capture("push_notification_permission_response",{status:le?"granted":"denied",source:"inbox_screen",user_type:"artist",timestamp:new Date().toISOString()}),le&&await h()},500)},e[4]=x,e[5]=h,e[6]=r,e[7]=y):y=e[7];const v=y,w=!!i;let I;e[8]!==w?(I={enabled:w},e[8]=w,e[9]=I):I=e[9];const{data:N}=W.getAppointmentInProgress.useQuery(i,I);let C;e[10]!==i?(C={providerId:i},e[10]=i,e[11]=C):C=e[11];const A=!!i;let S;e[12]!==A?(S={enabled:A},e[12]=A,e[13]=S):S=e[13];const{data:P}=W.getRequestCounts.useQuery(C,S),T=P?.blockedRequestCount,D=P?.blockedAcceptedCount,L=P?.blockedUpcomingCount,_=P?.blockedPastCount;let F;e[14]!==D||e[15]!==L||e[16]!==_||e[17]!==T?(F={NEW:T,ACCEPTED:D,UPCOMING:L,PAST:_},e[14]=D,e[15]=L,e[16]=_,e[17]=T,e[18]=F):F=e[18];const O=F;N&&(!(N.startedAt instanceof Date)||!(N.endedAt instanceof Date))&&r?.captureException("Appointment in progress unexpectedly doesn't have a start or end Date",{requestId:N.requestId,appointmentId:N.appointmentId,startedAt:N.startedAt,endedAt:N.endedAt,studioTimeZone:N.studioTimeZone});let q;e[19]===Symbol.for("react.memo_cache_sentinel")?(q=[],e[19]=q):q=e[19],$.useEffect(Wn,q);let M,U;e[20]!==l||e[21]!==f?(M=()=>{l&&f(l)},U=[l,f],e[20]=l,e[21]=f,e[22]=M,e[23]=U):(M=e[22],U=e[23]),$.useEffect(M,U);let R,G;e[24]!==b?(R=()=>{(async()=>
2{if(ot("prompt_for_app_store_review_v20251218")||!b||!Nt.isNative()){console.log(`Not prompting for app store review... isFlagSet=${ot("prompt_for_app_store_review_v20251218")}, isPromptForAppStoreReviewEnabled=${b}, isNative=${Nt.isNative()}`);return}const le=await Gs(),tt=await Hs();if(!tt||!le||le.devicePlatform==="IOS"&&parseInt(tt.appBuild,10)<54||le.devicePlatform==="ANDROID"&&parseInt(tt.appBuild,10)<32){console.log(`Not prompting for app store review: native app version too low or missing... devicePlatform=${le?.devicePlatform}, appBuild=${tt?.appBuild}`);return}console.log("Prompting for app store review..."),$t("prompt_for_app_store_review_v20251218"),Nn.requestReview()})()},G=[b],e[24]=b,e[25]=R,e[26]=G):(R=e[25],G=e[26]),$.useEffect(R,G);let oe,re;e[27]!==r||e[28]!==p?(oe=()=>{p==="prompt"&&(Ys()||Qs())&&(r?.capture("push_notification_modal_shown",{source:"inbox_screen",user_type:"artist",timestamp:new Date().toISOString()}),m(!0),Ks(),Zs())},re=[p,r],e[27]=r,e[28]=p,e[29]=oe,e[30]=re):(oe=e[29],re=e[30]),$.useEffect(oe,re);let ce,de;e[31]!==r||e[32]!==p?(ce=()=>{!Xs()&&p==="prompt"&&(r?.capture("push_notification_modal_re_shown_after_snooze",{source:"inbox_screen",user_type:"artist",timestamp:new Date().toISOString()}),m(!0))},de=[p,r],e[31]=r,e[32]=p,e[33]=ce,e[34]=de):(ce=e[33],de=e[34]),$.useEffect(ce,de);let fe;e[35]!==r?(fe=()=>{r?.capture("push_notification_modal_remind_later_clicked",{source:"inbox_screen",user_type:"artist",timestamp:new Date().toISOString()}),Js(),m(!1)},e[35]=r,e[36]=fe):fe=e[36];const pe=fe;let X;e[37]!==o||e[38]!==n||e[39]!==k||e[40]!==i?(X=k==="compact"&&s.jsx(oi,{personId:i,link:o("personSettings",{handle:n,personId:i})}),e[37]=o,e[38]=n,e[39]=k,e[40]=i,e[41]=X):X=e[41];let J;e[42]!==X?(J=s.jsx("div",{children:X}),e[42]=X,e[43]=J):J=e[43];let K;e[44]!==i?(K=s.jsx(wn,{personId:i}),e[44]=i,e[45]=K):K=e[45];let me;e[46]!==J||e[47]!==K?(me=s.jsx("div",{className:"flex flex-row flex-1 justify-between items-center px-4 py-2",children:s.jsxs("div",{className:"flex flex-row justify-between items-center w-full gap-2",children:[J,K]})}),e[46]=J,e[47]=K,e[48]=me):me=e[48];const ae=me;let ee;e[49]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx("div",{className:"absolute bottom-0 left-0 w-full h-px bg-ink-black-100"}),e[49]=ee):ee=e[49];let te;e[50]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx("span",{children:"Requests"}),e[50]=te):te=e[50];const xe=c==="NEW";let V;e[51]!==xe?(V=s.jsx(lt,{variant:"underline",value:"NEW",children:s.jsxs("span",{className:"flex items-center gap-1 flex-nowrap justify-center",children:[te,s.jsx(qt,{tabType:"new",isSelected:xe})]})}),e[51]=xe,e[52]=V):V=e[52];let be;e[53]===Symbol.for("react.memo_cache_sentinel")?(be=s.jsx("span",{children:"Accepted"}),e[53]=be):be=e[53];const je=c==="ACCEPTED";let se;e[54]!==je?(se=s.jsx(lt,{variant:"underline",value:"ACCEPTED",children:s.jsxs("span",{className:"flex items-center gap-1 flex-nowrap justify-center",children:[be,s.jsx(qt,{tabType:"accepted",isSelected:je})]})}),e[54]=je,e[55]=se):se=e[55];let Ve;e[56]===Symbol.for("react.memo_cache_sentinel")?(Ve=s.jsx(lt,{variant:"underline",value:"UPCOMING",children:s.jsx("span",{children:"Upcoming"})}),e[56]=Ve):Ve=e[56];let Ge;e[57]===Symbol.for("react.memo_cache_sentinel")?(Ge=s.jsx(lt,{variant:"underline",value:"PAST",children:s.jsx("span",{children:"Past"})}),e[57]=Ge):Ge=e[57];let He;e[58]!==V||e[59]!==se?(He=s.jsxs("div",{className:"relative",children:[ee,s.jsxs(li,{variant:"underline",className:"relative z-10 mb-3 px-5 overflow-x-auto invisible-scrollbar",children:[V,se,Ve,Ge]})]}),e[58]=V,e[59]=se,e[60]=He):He=e[60];const pt=He;let Ye;e[61]!==N||e[62]!==o?(Ye=N?s.jsx("div",{className:"text-sm text-ink-white p-4 bg-ink-black",children:s.jsx(ie,{to:o("appointmentRequest",{requestId:N.requestId,tab:"payment"}),viewTransition:!0,children:s.jsxs("div",{className:"flex flex-row gap-2 items-center",children:[s.jsxs("div",{className:"flex-1 flex flex-col gap-2",children:["Appointment with ",N.clientName," (",N.startedAt&&N.endedAt?Vs(N.startedAt,N.endedAt,N.studioTimeZone,{useHyphens:!0}
2):"in progress",")",s.jsx("span",{className:"block text-ink-white",children:"Request payment"})]}),s.jsx("div",{children:s.jsx(Sl,{className:"text-ink-white size-4",strokeWidth:2.5})})]})})}):void 0,e[61]=N,e[62]=o,e[63]=Ye):Ye=e[63];const xt=Ye;let Qe;e[64]===Symbol.for("react.memo_cache_sentinel")?(Qe=s.jsx(ol,{children:s.jsx("title",{children:"Inbox"})}),e[64]=Qe):Qe=e[64];let ke;e[65]!==o||e[66]!==d||e[67]!==r||e[68]!==f?(ke=le=>{d(o("bookings",{tab:le}),{viewTransition:!0}),f(le),r?.capture(`inbox-tab-${le.toLowerCase()}-clicked`)},e[65]=o,e[66]=d,e[67]=r,e[68]=f,e[69]=ke):ke=e[69];let ye;e[70]!==ae||e[71]!==pt?(ye=s.jsx("div",{className:"bg-ink-paper dark:bg-ink-black-900",children:s.jsxs("div",{className:"mx-auto max-w-screen-xs w-full",children:[ae,pt]})}),e[70]=ae,e[71]=pt,e[72]=ye):ye=e[72];const ht=c==="NEW",gt=c?O[c]:void 0;let ve;e[73]!==ht||e[74]!==gt?(ve=s.jsx(Rn,{showDrawer:ht,showBlockedFilter:!0,blockedCount:gt}),e[73]=ht,e[74]=gt,e[75]=ve):ve=e[75];const bt=c!=="NEW"&&"hidden";let Ne;e[76]!==bt?(Ne=B("mt-0 flex flex-col flex-1 gap-6",bt),e[76]=bt,e[77]=Ne):Ne=e[77];let Ke;e[78]===Symbol.for("react.memo_cache_sentinel")?(Ke=s.jsx(bn,{}),e[78]=Ke):Ke=e[78];let we;e[79]!==Ne?(we=s.jsx(it,{value:"NEW",className:Ne,children:Ke}),e[79]=Ne,e[80]=we):we=e[80];const jt=c!=="ACCEPTED"&&"hidden";let Se;e[81]!==jt?(Se=B("mt-0 flex flex-col flex-1 gap-5",jt),e[81]=jt,e[82]=Se):Se=e[82];let Ze;e[83]===Symbol.for("react.memo_cache_sentinel")?(Ze=s.jsx(fi,{}),e[83]=Ze):Ze=e[83];let _e;e[84]!==Se?(_e=s.jsx(it,{value:"ACCEPTED",className:Se,children:Ze}),e[84]=Se,e[85]=_e):_e=e[85];const kt=c!=="UPCOMING"&&"hidden";let Ce;e[86]!==kt?(Ce=B("mt-0 flex flex-col flex-1 gap-6",kt),e[86]=kt,e[87]=Ce):Ce=e[87];let Xe;e[88]===Symbol.for("react.memo_cache_sentinel")?(Xe=s.jsx(kn,{}),e[88]=Xe):Xe=e[88];let Ie;e[89]!==Ce?(Ie=s.jsx(it,{value:"UPCOMING",className:Ce,children:Xe}),e[89]=Ce,e[90]=Ie):Ie=e[90];const yt=c!=="PAST"&&"hidden";let Pe;e[91]!==yt?(Pe=B("mt-0 flex flex-col flex-1 gap-6",yt),e[91]=yt,e[92]=Pe):Pe=e[92];let Je;e[93]===Symbol.for("react.memo_cache_sentinel")?(Je=s.jsx(Mn,{}),e[93]=Je):Je=e[93];let Ae;e[94]!==Pe?(Ae=s.jsx(it,{value:"PAST",className:Pe,children:Je}),e[94]=Pe,e[95]=Ae):Ae=e[95];let Te;e[96]!==ve||e[97]!==we||e[98]!==_e||e[99]!==Ie||e[100]!==Ae?(Te=s.jsx("div",{className:"mx-auto max-w-screen-xs w-full",children:s.jsxs("div",{className:"relative flex flex-col flex-1 px-4 pb-4",children:[ve,we,_e,Ie,Ae]})}),e[96]=ve,e[97]=we,e[98]=_e,e[99]=Ie,e[100]=Ae,e[101]=Te):Te=e[101];let $e;e[102]!==xt||e[103]!==ye||e[104]!==Te?($e=s.jsx(el,{bannerSlot:xt,headerSlot:ye,children:Te}),e[102]=xt,e[103]=ye,e[104]=Te,e[105]=$e):$e=e[105];let ze;e[106]!==c||e[107]!==ke||e[108]!==$e?(ze=s.jsx(ii,{value:c,onValueChange:ke,children:$e}),e[106]=c,e[107]=ke,e[108]=$e,e[109]=ze):ze=e[109];let Oe;e[110]!==v||e[111]!==pe||e[112]!==u?(Oe=s.jsx(al,{open:u,onContinue:v,onRemindLater:pe}),e[110]=v,e[111]=pe,e[112]=u,e[113]=Oe):Oe=e[113];let et;return e[114]!==ze||e[115]!==Oe?(et=s.jsxs(di,{children:[Qe,s.jsxs(tl,{className:"px-0",children:[ze,Oe]})]}),e[114]=ze,e[115]=Oe,e[116]=et):et=e[116],et}function Wn(){window.scrollTo(0,0)}function Pa(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(We,{tab:"ACCEPTED"}),t[0]=e):e=t[0],e}function Aa(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(We,{tab:"NEW"}),t[0]=e):e=t[0],e}function Ta(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(We,{tab:"PAST"}),t[0]=e):e=t[0],e}function Vn(){const t=z.c(27),{handle:e,personId:l,requestId:d}=rl(),o=ue(),i=cl(),n=Ht();let a;t[0]!==e?(a=e?.startsWith("@")?e?.slice(1):e,t[0]=e,t[1]=a):a=t[1];const r=a,{hash:c,pathname:f,search:u}=i;let m;t[2]!==f?(m=f.split("/").slice(4).map(Gn),t[2]=f,t[3]=m):m=t[3];const p=m,x=r||l||"",h=d||"";let b;t[4]!==p[0]||t[5]!==x||t[6]!==h?(b={artistId:x,firebaseId:h,legacyBookingPathSuffix:p[0]},t[4]=p[0],t[5]=x,t[6]=h,t[7]=b):b=t[7];const{data:g,isLoading:j}=W.getAppointmentRequestIdByArtistIdAndFirebaseId.useQuery(b);let k;t[8]!==g||t[9]!==o||t[10]!==c||t[11]!==j||t[12]!==n||t[13]!==p[0]||t[14]!==u?(k=()=>
2{if(j||!g||!g.appointmentRequestId)return;if(g.redirectPath){n(g.redirectPath,{replace:!0});return}let v;p[0]==="waiver"||p[0]==="sign-waiver"?v=o("waiver",{requestId:g.appointmentRequestId}):v=o("appointmentRequest",{requestId:g.appointmentRequestId}),n(`${v}${u}${c}`,{replace:!0})},t[8]=g,t[9]=o,t[10]=c,t[11]=j,t[12]=n,t[13]=p[0],t[14]=u,t[15]=k):k=t[15];let y;if(t[16]!==g||t[17]!==o||t[18]!==c||t[19]!==j||t[20]!==i||t[21]!==n||t[22]!==p||t[23]!==u?(y=[g,o,c,j,i,n,p,u],t[16]=g,t[17]=o,t[18]=c,t[19]=j,t[20]=i,t[21]=n,t[22]=p,t[23]=u,t[24]=y):y=t[24],$.useEffect(k,y),j){let v;return t[25]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(qe,{}),t[25]=v):v=t[25],v}if(!g?.appointmentRequestId){let v;return t[26]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(sl,{code:ll.getAppointmentRequestIdByArtistIdAndFirebaseId}),t[26]=v):v=t[26],v}return null}function Gn(t){return t.toLowerCase()}function $a(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Vn,{}),t[0]=e):e=t[0],e}function za(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(We,{}),t[0]=e):e=t[0],e}function Oa(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(We,{tab:"UPCOMING"}),t[0]=e):e=t[0],e}export{Pa as Accepted,za as BookingsIndex,$a as BookingsRequestId,Aa as New,Ta as Past,Oa as Upcoming}; 3 4//# chunkId=e49e8f53-f89e-526d-9c74-c6fddf057852
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.