1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f45b-c7fb-71f0-bcb0-7e86cf625180")}catch(e){}}();import{j as t,r as R}from"./1_rjLJJT.js";import{c as F,gR as W1,a as H,ap as H1,a2 as C1,an as Z1,t as oe,gS as V1,u as Tt,eM as U1,z as p1,ae as e1,gT as Y1,gU as q1,aW as Ut,C as qt,gV as t1,du as Ct,T as S,cf as Ne,dt as pt,dw as Dt,fr as Q1,ds as b1,dv as gt,aS as G1,B as W,aQ as Qt,c2 as y1,bb as jt,dy as Zt,dx as Vt,fp as s1,fq as l1,b8 as n1,H as vt,eb as j1,ec as K1,bo as X1,c1 as zt,al as J1,gu as es,dr as g1,ee as k1,a5 as tt,bK as v1,bs as ts,fZ as ss,eR as ls,L as ns,k as as,F as is}from"./Cnl0lOne.js";import{q as yt,R as N1,ab as bt,ad as w1,ca as Yt,z as Nt,E as rs,ag as cs,c9 as os,e as ds}from"./YLLfQEvQ.js";import{u as Rt,H as us}from"./IR4uT189.js";import{h as fs,c as S1,d as $t,f as _1,S as Gt,a as P1,i as ms,j as xs,e as hs}from"./B35B_vHQ.js";import{j as et,b as Cs,a4 as ps,a5 as bs}from"./B5dUIQ6s.js";function ys(i){const e=F.c(5),{className:s,style:l,size:n}=i,a=n===void 0?24:n;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("svg",{viewBox:"-5.35 -5.35 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0.175708 0.175732C0.410023 -0.0585823 0.789369 -0.0585824 1.02368 0.175732L4.13523 3.28728L7.24678 0.175732C7.48109 -0.058582 7.86044 -0.0585823 8.09475 0.175732C8.32907 0.410047 8.32907 0.789394 8.09475 1.02371L4.98321 4.13525L8.09475 7.2468C8.32907 7.48111 8.32907 7.86046 8.09475 8.09478C7.86044 8.32909 7.48109 8.32909 7.24678 8.09478L4.13523 4.98323L1.02368 8.09478C0.789369 8.32909 0.410023 8.32909 0.175708 8.09478C-0.0586063 7.86046 -0.0586064 7.48111 0.175708 7.2468L3.28725 4.13525L0.175708 1.02371C-0.0586064 0.789393 -0.0586063 0.410047 0.175708 0.175732Z",fill:"currentColor"})}),e[0]=c):c=e[0];let o;return e[1]!==s||e[2]!==a||e[3]!==l?(o=t.jsx(W1,{size:a,style:l,className:s,children:c}),e[1]=s,e[2]=a,e[3]=l,e[4]=o):o=e[4],o}const ne=i=>{const e=F.c(4);let s;e[0]!==i?({...s}=i,e[0]=i,e[1]=s):s=e[1];let l;return e[2]!==s?(l=t.jsx(P1,{...s}),e[2]=s,e[3]=l):l=e[3],l};ne.displayName="Drawer";const at=R.forwardRef((i,e)=>{const s=F.c(10);let l,n;s[0]!==i?({className:l,...n}=i,s[0]=i,s[1]=l,s[2]=n):(l=s[1],n=s[2]);const a=n.asChild?"":"rounded-sm";let c;s[3]!==l||s[4]!==a?(c=H(a,l),s[3]=l,s[4]=a,s[5]=c):c=s[5];let o;return s[6]!==n||s[7]!==e||s[8]!==c?(o=t.jsx(S1,{ref:e,className:c,...n}),s[6]=n,s[7]=e,s[8]=c,s[9]=o):o=s[9],o});at.displayName=S1.displayName;const js=ms,wt=fs,gs=xs,de=R.forwardRef((i,e)=>{const s=F.c(22);let l,n,a,c;s[0]!==i?({className:n,overlayClassName:a,children:l,...c}=i,s[0]=i,s[1]=l,s[2]=n,s[3]=a,s[4]=c):(l=s[1],n=s[2],a=s[3],c=s[4]);let o;s[5]!==a?(o=H("fixed inset-0 z-50 bg-ink-black-900/70 dark:bg-ink-black/50",a),s[5]=a,s[6]=o):o=s[6];let r;s[7]!==o?(r=t.jsx(gs,{className:o}),s[7]=o,s[8]=r):r=s[8];let d;s[9]!==n?(d=H("overflow-clip fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[24px] bg-ink-white dark:bg-ink-black-900 max-w-screen-xs mx-auto",n),s[9]=n,s[10]=d):d=s[10];let u;s[11]!==l?(u=t.jsx("div",{className:"overflow-y-auto",children:l}),s[11]=l,s[12]=u):u=s[12];let m;s[13]!==a||s[14]!==c||s[15]!==e||s[16]!==d||s[17]!==u?(m=t.jsx(Gt,{side:"bottom",ref:e,overlayClassName:a,className:d,...c,children:u}),s[13]=a,s[14]=c,s[15]=e,s[16]=d,s[17]=u,s[18]=m):m=s[18];let f;return s[19]!==r||s[20]!==m?(f=t.jsxs(js,{children:[r,m]}),s[19]=r,s[20]=m,s[21]=f):f=s[21],f});de.displayName="DrawerContent";const St=i=>{const e=F.c(8);let s,l;e[0]!==i?({className:s,...l}=i,e[0]=i,e[1]=s,e[2]=l):(s=e[1],l=e[2]);let n;e[3]!==s?(n=H("grid gap-1.5 px-5 pt-6 pb-4 text-center sm:text-left justify-center",s),e[3]=s,e[4]=n):n=e[4];let a;return e[5]!==l||e[6]!==n?(a=t.jsx("div",{className:n,...l}),e[5]=l,e[6]=n,e[7]=a):a=e[7],a};St.displayName="DrawerHeader";const ke=R.forwardRef((i,e)=>{const s=F.c(11);let l,n,a;s[0]!==i?({className:l,variant:a,...n}=i,s[0]=i,s[1]=l,s[2]=n,s[3]=a):(l=s[1],n=s[2],a=s[3]);const o=(a===void 0?"stacked":a)==="inline"?"flex-row":"flex-col";let r;s[4]!==l||s[5]!==o?(r=H("mt-auto flex flex-col gap-2 px-4 pt-4 pb-safe-or-5",o,l),s[4]=l,s[5]=o,s[6]=r):r=s[6];let d;return s[7]!==n||s[8]!==e||s[9]!==r?(d=t.jsx("div",{ref:e,className:r,...n}),s[7]=n,s[8]=e,s[9]=r,s[10]=d):d=s[10],d});ke.displayName="DrawerFooter";const Bt=R.forwardRef((i,e)=>{const s=F.c(9);
1let l,n;s[0]!==i?({className:l,...n}=i,s[0]=i,s[1]=l,s[2]=n):(l=s[1],n=s[2]);let a;s[3]!==l?(a=H("text-center text-lg font-light leading-tighter text-ink-black dark:text-ink-white justify-center",l),s[3]=l,s[4]=a):a=s[4];let c;return s[5]!==n||s[6]!==e||s[7]!==a?(c=t.jsx($t,{ref:e,className:a,...n}),s[5]=n,s[6]=e,s[7]=a,s[8]=c):c=s[8],c});Bt.displayName=$t.displayName;const ye=R.forwardRef((i,e)=>{const s=F.c(36);let l,n,a,c,o,r;s[0]!==i?({className:n,showClose:o,onBackButton:a,children:l,titleClassName:r,...c}=i,s[0]=i,s[1]=l,s[2]=n,s[3]=a,s[4]=c,s[5]=o,s[6]=r):(l=s[1],n=s[2],a=s[3],c=s[4],o=s[5],r=s[6]);const d=o===void 0?!0:o;let u;s[7]!==n?(u=H("pt-2 pb-1",n),s[7]=n,s[8]=u):u=s[8];let m;s[9]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"mx-auto h-[5px] w-10 rounded-full bg-ink-black/10 dark:bg-ink-white/10"}),s[9]=m):m=s[9];let f;s[10]!==a?(f=a&&t.jsxs("button",{type:"button",onClick:a,className:"z-10 col-start-1 row-start-1 justify-self-start flex items-center justify-center ml-1.5 w-8 bg-ink-black/5 h-8 rounded-full focus:outline-none",children:[t.jsx(H1,{size:16}),t.jsx("span",{className:"sr-only",children:"Back"})]}),s[10]=a,s[11]=f):f=s[11];const x=d&&"right-12",h=a&&"left-12";let C;s[12]!==x||s[13]!==h?(C=H("absolute inset-0 pointer-events-none rounded-2xl",x,h),s[12]=x,s[13]=h,s[14]=C):C=s[14];let b;s[15]===Symbol.for("react.memo_cache_sentinel")?(b=["radial-gradient(circle, black 0.36px, transparent 0.36px)","radial-gradient(circle, black 0.36px, transparent 0.36px)"],s[15]=b):b=s[15];let p;s[16]===Symbol.for("react.memo_cache_sentinel")?(p={backgroundImage:b.join(", "),backgroundSize:"5px 5px",backgroundPosition:"0 0, 2.5px 2.5px"},s[16]=p):p=s[16];let j;s[17]!==C?(j=t.jsx("div",{className:C,style:p}),s[17]=C,s[18]=j):j=s[18];let y;s[19]!==r?(y=H("relative bg-ink-white",r),s[19]=r,s[20]=y):y=s[20];let N;s[21]!==l||s[22]!==y?(N=t.jsx($t,{className:"z-10 col-start-1 row-start-1 justify-self-center text-sm font-emphasis",children:t.jsx("span",{className:y,children:l})}),s[21]=l,s[22]=y,s[23]=N):N=s[23];let g;s[24]!==d?(g=d&&t.jsx(wt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"z-10 col-start-1 row-start-1 justify-self-end flex items-center justify-center pr-1.5 focus:outline-none",children:[t.jsx(ys,{size:32,className:"bg-ink-black/5"}),t.jsx("span",{className:"sr-only",children:"Close"})]})}),s[24]=d,s[25]=g):g=s[25];let k;s[26]!==j||s[27]!==N||s[28]!==g||s[29]!==f?(k=t.jsxs("div",{className:"relative grid grid-cols-1 items-center overflow-hidden rounded-full dark:bg-ink-black-800 h-8 mt-2 mx-3",children:[f,j,N,g]}),s[26]=j,s[27]=N,s[28]=g,s[29]=f,s[30]=k):k=s[30];let v;return s[31]!==c||s[32]!==e||s[33]!==k||s[34]!==u?(v=t.jsxs("div",{ref:e,className:u,...c,children:[m,k]}),s[31]=c,s[32]=e,s[33]=k,s[34]=u,s[35]=v):v=s[35],v});ye.displayName="DrawerTitleBar";const kt=R.forwardRef((i,e)=>{const s=F.c(9);let l,n;s[0]!==i?({className:l,...n}=i,s[0]=i,s[1]=l,s[2]=n):(l=s[1],n=s[2]);let a;s[3]!==l?(a=H("text-center text-sm leading-snug text-ink-black-600 dark:text-ink-black-200 font-light",l),s[3]=l,s[4]=a):a=s[4];let c;return s[5]!==n||s[6]!==e||s[7]!==a?(c=t.jsx(_1,{ref:e,className:a,...n}),s[5]=n,s[6]=e,s[7]=a,s[8]=c):c=s[8],c});kt.displayName=_1.displayName;const wl=(i,e,s={})=>{const l=Intl.NumberFormat(i,{...s,minimumIntegerDigits:4,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(0),n=l.find(({type:r})=>r==="fraction")?.value,a=l.find(({type:r})=>r==="decimal")?.value,c=`[^0-9${n}${a}]`;let o=e.replace(new RegExp("\\p{White_Space}","gu"),"");if(o=o.replace(new RegExp(c,"gu"),""),a){const r=o.split(a);r.length===2&&(o=[r[0],r[1].slice(0,2)].join("."))}return parseFloat(o)};function Sl(i){const e=F.c(18),{triggerChildren:s,title:l,options:n,onOptionClick:a}=i,[c,o]=R.useState(!1);let r;e[0]!==s?(r=t.jsx(at,{asChild:!0,children:s}),e[0]=s,e[1]=r):r=e[1];let d;e[2]!==l?(d=t.jsx(St,{children:t.jsx(Bt,{children:l})}),e[2]=l,e[3]=d):d=e[3];let u;if(e[4]!==a||e[5]!==n){let h;e[7]!==a?(h=C=>t.jsxs("button",{className:"flex flex-row gap-2 text-left items-center min-h-8",onClick:()=>{a(C.id),o(!1)},children:[t.jsx("div",{className:"flex-1",children:C.title}),C.description&&t.jsx("div",{className:"max-w-40 truncate text-ink-black-600",children:C.description}),t.jsx("div",{children:t.jsx(yt,{className:"text-ink-forest size-4",strokeWidth:2.5})})]},C.id),e[7]=a,e[8]=h):h=e[8],u=n.map(h),e[4]=a,e[5]=n,e[6]=u}else u=e[6];let m;e[9]!==u?(m=t.jsx(ke,{children:t.jsx("div",{className:"flex flex-col gap-2 text-base",children:u})}),e[9]=u,e[10]=m):m=e[10];let f;e[11]!==d||e[12]!==m?(f=t.jsxs(de,{children:[d,m]}),e[11]=d,e[12]=m,e[13]=f):f=e[13];let x;return e[14]!==c||e[15]!==r||e[16]!==f?(x=t.jsxs(ne,{open:c,onOpenChange:o,children:[r,f]}
1),e[14]=c,e[15]=r,e[16]=f,e[17]=x):x=e[17],x}function _l(){const i=F.c(7),{personId:e}=R.useContext(C1),s=Z1("members-only-store",e),l=e??"";let n;i[0]!==l?(n={personId:l},i[0]=l,i[1]=n):n=i[1];const a=!!e;let c;i[2]!==a?(c={enabled:a,staleTime:V1},i[2]=a,i[3]=c):c=i[3];const o=oe.store.getStoreAccess.useQuery(n,c),r=s.isEnabled&&o.data?.open||null,d=s.isLoading||o.isLoading;let u;return i[4]!==r||i[5]!==d?(u={isEnabled:r,isLoading:d},i[4]=r,i[5]=d,i[6]=u):u=i[6],u}function Pl(i){const e=F.c(10),{className:s,size:l,style:n,inverted:a,notificationBadge:c}=i,o=l===void 0?24:l,r=a===void 0?!1:a,d=c===void 0?!1:c;let u;e[0]!==r?(u=r?t.jsx("path",{d:"M17 2H7C4.24 2 2 4.23 2 6.98V12.96V13.96C2 16.71 4.24 18.94 7 18.94H8.5C8.77 18.94 9.13 19.12 9.3 19.34L10.8 21.33C11.46 22.21 12.54 22.21 13.2 21.33L14.7 19.34C14.89 19.09 15.19 18.94 15.5 18.94H17C19.76 18.94 22 16.71 22 13.96V6.98C22 4.23 19.76 2 17 2ZM8 12C7.44 12 7 11.55 7 11C7 10.45 7.45 10 8 10C8.55 10 9 10.45 9 11C9 11.55 8.56 12 8 12ZM12 12C11.44 12 11 11.55 11 11C11 10.45 11.45 10 12 10C12.55 10 13 10.45 13 11C13 11.55 12.56 12 12 12ZM16 12C15.44 12 15 11.55 15 11C15 10.45 15.45 10 16 10C16.55 10 17 10.45 17 11C17 11.55 16.56 12 16 12Z",fill:"currentColor"}):t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M8.5 19H8C4 19 2 18 2 13V8C2 4 4 2 8 2H16C20 2 22 4 22 8V13C22 17 20 19 16 19H15.5C15.19 19 14.89 19.15 14.7 19.4L13.2 21.4C12.54 22.28 11.46 22.28 10.8 21.4L9.3 19.4C9.14 19.18 8.77 19 8.5 19Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M15.9965 11H16.0054",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M11.9955 11H12.0045",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M7.99451 11H8.00349",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),e[0]=r,e[1]=u):u=e[1];let m;e[2]!==d?(m=d&&t.jsx("ellipse",{style:{fill:"rgb(219, 75, 58)",paintOrder:"stroke",strokeWidth:"4px",stroke:"rgb(247, 248, 244)"},cx:"20",cy:"4",rx:"4",ry:"4"}),e[2]=d,e[3]=m):m=e[3];let f;return e[4]!==s||e[5]!==o||e[6]!==n||e[7]!==u||e[8]!==m?(f=t.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,style:n,children:[u,m]}),e[4]=s,e[5]=o,e[6]=n,e[7]=u,e[8]=m,e[9]=f):f=e[9],f}function Al(i){const e=F.c(10),{className:s,style:l,size:n}=i,a=n===void 0?24:n;let c,o,r,d,u,m;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("path",{d:"M22 17.5H15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o=t.jsx("path",{d:"M5 17.5H2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r=t.jsx("path",{d:"M22 6.5H19",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d=t.jsx("path",{d:"M9 6.5H2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u=t.jsx("path",{d:"M7 14.5H13C14.1 14.5 15 15 15 16.5V18.5C15 20 14.1 20.5 13 20.5H7C5.9 20.5 5 20 5 18.5V16.5C5 15 5.9 14.5 7 14.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m=t.jsx("path",{d:"M11 3.5H17C18.1 3.5 19 4 19 5.5V7.5C19 9 18.1 9.5 17 9.5H11C9.9 9.5 9 9 9 7.5V5.5C9 4 9.9 3.5 11 3.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e[0]=c,e[1]=o,e[2]=r,e[3]=d,e[4]=u,e[5]=m):(c=e[0],o=e[1],r=e[2],d=e[3],u=e[4],m=e[5]);let f;return e[6]!==s||e[7]!==a||e[8]!==l?(f=t.jsxs("svg",{width:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,style:l,children:[c,o,r,d,u,m]}),e[6]=s,e[7]=a,e[8]=l,e[9]=f):f=e[9],f}function a1(i){const e=F.c(16),{people:s,targetPerson:l,invitationUrl:n,getPath:a}=i;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs(St,{children:[t.jsx(Bt,{children:"Select an artist"}),t.jsx(kt,{children:"Switch to another artist's account"})]}),e[0]=c):c=e[0];let o;e[1]!==n?(o=n&&t.jsx("div",{className:"border rounded-lg p-3",children:t.jsx(Y1,{url:n})}),e[1]=n,e[2]=o):o=e[2];let r;if(e[3]!==a||e[4]!==s||e[5]!==l?.id){let f;
1e[7]!==a||e[8]!==l?.id?(f=x=>t.jsx(wt,{asChild:!0,children:t.jsx("div",{children:t.jsx(q1,{person:x,showAvatar:!0,isCurrentItem:x.id===l?.id,href:a("bookings",{handle:x.handle,personId:x.id}),className:"py-2"})})},x.id),e[7]=a,e[8]=l?.id,e[9]=f):f=e[9],r=[...s].sort(ks).map(f),e[3]=a,e[4]=s,e[5]=l?.id,e[6]=r}else r=e[6];let d;e[10]!==o||e[11]!==r?(d=t.jsxs("div",{className:"px-5 flex flex-col gap-4",children:[o,r]}),e[10]=o,e[11]=r,e[12]=d):d=e[12];let u;e[13]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(ke,{}),e[13]=u):u=e[13];let m;return e[14]!==d?(m=t.jsxs(de,{children:[c,d,u]}),e[14]=d,e[15]=m):m=e[15],m}function ks(i,e){return i.isStudioAccount&&!e.isStudioAccount?-1:!i.isStudioAccount&&e.isStudioAccount?1:0}function Il(i){const e=F.c(30),{variant:s}=i,l=s===void 0?"top":s,{personId:n}=Tt();let a;e[0]!==n?(a={personId:n},e[0]=n,e[1]=a):a=e[1];const c=!!n;let o;e[2]!==c?(o={enabled:c},e[2]=c,e[3]=o):o=e[3];const{data:r,isLoading:d}=oe.getManagedPeople.useQuery(a,o),{invitationUrl:u,isLoading:m}=U1(n),f=p1();if(d||m||!r||!n||r.people.length===0)return null;if(l==="left"){let y;e[4]!==r.targetPerson?(y=r.targetPerson&&t.jsxs(t.Fragment,{children:[t.jsx(e1,{pictureUrl:r.targetPerson.profileImageUrl,size:24}),t.jsx("div",{className:"text-sm leading-tighter font-normal flex-1 text-left",children:r.targetPerson.handle?`@${r.targetPerson.handle}`:r.targetPerson.email})]}),e[4]=r.targetPerson,e[5]=y):y=e[5];let N;e[6]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(Ut,{className:"text-ink-black-600 rotate-90",size:16}),e[6]=N):N=e[6];let g;e[7]!==y?(g=t.jsx(at,{asChild:!0,children:t.jsxs("button",{className:"w-full rounded-lg flex items-center gap-2 border border-ink-black-100 bg-ink-black-50 hover:bg-ink-black-100 transition-colors p-2",children:[y,N]})}),e[7]=y,e[8]=g):g=e[8];let k;e[9]!==r.people||e[10]!==r.targetPerson||e[11]!==f||e[12]!==u?(k=t.jsx(a1,{people:r.people,targetPerson:r.targetPerson,invitationUrl:u,getPath:f}),e[9]=r.people,e[10]=r.targetPerson,e[11]=f,e[12]=u,e[13]=k):k=e[13];let v;return e[14]!==g||e[15]!==k?(v=t.jsx("div",{className:"border-t border-ink-black-100 px-2 py-2",children:t.jsxs(ne,{children:[g,k]})}),e[14]=g,e[15]=k,e[16]=v):v=e[16],v}let h;e[17]!==r.targetPerson?(h=r.targetPerson&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pl-2",children:t.jsx(e1,{pictureUrl:r.targetPerson.profileImageUrl,size:20})}),t.jsx("div",{className:"text-sm leading-tighter font-normal",children:r.targetPerson.handle?`@${r.targetPerson.handle}`:r.targetPerson.email})]}),e[17]=r.targetPerson,e[18]=h):h=e[18];let C;e[19]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("div",{className:"px-2 border-l border-ink-black-100",children:t.jsx(Ut,{className:"text-ink-forest rotate-90",size:18})}),e[19]=C):C=e[19];let b;e[20]!==h?(b=t.jsx(at,{children:t.jsxs("div",{className:"rounded-lg flex items-center gap-2 border border-ink-black-100 h-8",children:[h,C]})}),e[20]=h,e[21]=b):b=e[21];let p;e[22]!==r.people||e[23]!==r.targetPerson||e[24]!==f||e[25]!==u?(p=t.jsx(a1,{people:r.people,targetPerson:r.targetPerson,invitationUrl:u,getPath:f}),e[22]=r.people,e[23]=r.targetPerson,e[24]=f,e[25]=u,e[26]=p):p=e[26];let j;return e[27]!==b||e[28]!==p?(j=t.jsx("div",{className:"border-b border-b-ink-black-100 py-1.5 bg-ink-white",children:t.jsx(qt,{className:"flex flex-row justify-center px-5",children:t.jsx("div",{children:t.jsxs(ne,{children:[b,p]})})})}),e[27]=b,e[28]=p,e[29]=j):j=e[29],j}const vs=i=>{window.location.href=i},A1=i=>{const[e,s]=R.useState(!1),{mutateAsync:l,isPending:n}=oe.createStripeLoginLink.useMutation(),a=R.useCallback(async()=>{if(e||n)return;const c=i?await l(i):t1;s(!0);try{vs(c||t1)}catch{s(!1)}},[n,e,i,l]);return{isRedirecting:e,isCreatingLink:n,redirectToStripe:a}};function i1(i){const e=F.c(5),{children:s,className:l}=i;let n;e[0]!==l?(n=H("lining-nums tabular-nums slashed-zero",l),e[0]=l,e[1]=n):n=e[1];let a;return e[2]!==s||e[3]!==n?(a=t.jsx(gt,{className:n,children:s}),e[2]=s,e[3]=n,e[4]=a):a=e[4],a}function I1(i){const e=F.c(20),{items:s,total:l}=i;let n;if(e[0]!==s){let m;e[2]!==s.length?(m=(f,x)=>{const C=x===s.length-1&&!f.separator;return t.jsxs("div",{children:[t.jsxs(pt,{className:H(f.highlighted&&f.highlightClassName),children:[t.jsx(Ct,{className:H(f.highlighted&&"text-[#4DB855]"),children:f.label}),t.jsx(i1,{className:H(f.highlighted&&"text-[#4DB855]"),children:f.textValue!=null?f.textValue:t.jsx(Ne,{amountCents:f.amountCents??0,currency:f.currency??"USD",showFraction:!0})})]}),f.separator==="dotted"&&t.jsx(Dt,{}),f.separator==="solid"&&t.jsx(Q1,{className:"bg-ink-black-200"}),C&&t.jsx(Dt,{})]},x)},e[2]=s.length,e[3]=m):m=e[3],n=s.map(m),e[0]=s,e[1]=n}else n=e[1];let a;e[4]!==l.label?(a=t.jsx(Ct,{className:"font-medium leading-tighter uppercase text-ink-black-500",children:l.label}),e[4]=l.label,e[5]=a):a=e[5];let c;e[6]!==l.currency?(c=t.jsx(S,{element:"span",size:"sm",className:"leading-tighter text-ink-black-600",children:l.currency}),e[6]=l.currency,e[7]=c):c=e[7];let o;e[8]!==l.amountCents||e[9]!==l.currency?(o=t.jsx(Ne,{amountCents:l.amountCents,currency:l.currency,showFraction:!0}),e[8]=l.amountCents,e[9]=l.currency,e[10]=o):o=e[10];let r;e[11]!==c||e[12]!==o?(r=t.jsx(i1,{className:"text-2xl leading-tighter font-medium text-ink-black lining-nums tabular-nums slashed-zero flex flex-row gap-1.5 items-center",children:t.jsxs("div",{className:"flex flex-row gap-1.5 items-baseline",children:[c,o]})}),e[11]=c,e[12]=o,e[13]=r):r=e[13];let d;e[14]!==a||e[15]!==r?(d=t.jsxs(pt,{children:[a,r]}),e[14]=a,e[15]=r,e[16]=d):d=e[16];let u;return e[17]!==n||e[18]!==d?(u=t.jsxs(b1,{className:"font-emphasis",children:[n,d]}),e[17]=n,e[18]=d,e[19]=u):u=e[19],u}function Ll(i){const e=F.c(19),{title:s,description:l,items:n,total:a,footer:c,className:o}=i,r=s===void 0?"Receipt":s;let d;e[0]!==o?(d=H("bg-white dark:bg-white overflow-hidden p-0 mask-serrated-top",o),e[0]=o,e[1]=d):d=e[1];let u;e[2]!==r?(u=t.jsx(S,{element:"h2",size:"lg",className:"mx-8 min-h-8 flex items-center text-center leading-tighter dark:text-ink-white justify-center",children:r}),e[2]=r,e[3]=u):u=e[3];let m;e[4]!==l?(m=l&&t.jsx(S,{element:"p",size:"sm",className:"text-center leading-snug dark:text-ink-black-200 text-ink-black-600",children:l}),e[4]=l,e[5]=m):m=e[5];let f;e[6]!==u||e[7]!==m?(f=t.jsxs("div",{className:"grid gap-1.5 px-5 pt-6 pb-4 text-center sm:text-left justify-center mt-4",children:[u,m]}),e[6]=u,e[7]=m,e[8]=f):f=e[8];let x;e[9]!==n||e[10]!==a?(x=t.jsx(I1,{items:n,total:a}),e[9]=n,e[10]=a,e[11]=x):x=e[11];let h;e[12]!==c?(h=c&&t.jsx("div",{className:"mt-auto flex gap-2 px-4 pt-4 pb-safe-or-5 flex-col",children:c}),e[12]=c,e[13]=h):h=e[13];let C;return e[14]!==d||e[15]!==f||e[16]!==x||e[17]!==h?(C=t.jsxs("div",{className:d,children:[f,x,h]}),e[14]=d,e[15]=f,e[16]=x,e[17]=h,e[18]=C):C=e[18],C}function r1(i){const e=F.c(22),{title:s,description:l,items:n,total:a,footer:c}=i,o=s===void 0?"Receipt":s;let r;
1e[0]!==o?(r=t.jsx(ye,{titleClassName:"bg-ink-paper",children:o}),e[0]=o,e[1]=r):r=e[1];let d;e[2]!==l?(d=l&&t.jsx(kt,{className:"text-ink-black-600 text-center pt-1 pb-5",children:l}),e[2]=l,e[3]=d):d=e[3];let u;e[4]!==l?(u=!l&&t.jsx(kt,{className:"py-2",children:t.jsx(N1,{children:"Receipt details"})}),e[4]=l,e[5]=u):u=e[5];let m;e[6]!==n||e[7]!==a?(m=t.jsx(I1,{items:n,total:a}),e[6]=n,e[7]=a,e[8]=m):m=e[8];let f;e[9]!==c?(f=c&&t.jsx(ke,{children:c}),e[9]=c,e[10]=f):f=e[10];let x;e[11]!==c?(x=!c&&t.jsx(ke,{}),e[11]=c,e[12]=x):x=e[12];let h;e[13]!==d||e[14]!==u||e[15]!==m||e[16]!==f||e[17]!==x?(h=t.jsxs("div",{className:"px-4",children:[d,u,m,f,x]}),e[13]=d,e[14]=u,e[15]=m,e[16]=f,e[17]=x,e[18]=h):h=e[18];let C;return e[19]!==r||e[20]!==h?(C=t.jsxs(de,{showClose:!1,className:"bg-ink-paper dark:bg-ink-paper overflow-hidden p-0 pt-4 rounded-none mask-serrated-top",children:[r,h]}),e[19]=r,e[20]=h,e[21]=C):C=e[21],C}function L1(i){const e=F.c(45),{open:s,onClose:l,maxAmountCents:n,currency:a,onConfirm:c}=i,[o,r]=R.useState(""),[d,u]=R.useState(""),m=n/100;let f;e[0]!==m?(f=m.toLocaleString(),e[0]=m,e[1]=f):f=e[1];const x=f;let h;e[2]!==n||e[3]!==o?(h=o?Math.round(Number.parseFloat(o.replace(",","."))*100):n,e[2]=n,e[3]=o,e[4]=h):h=e[4];const C=h,b=C>0&&C<=n;let p;e[5]!==b||e[6]!==C||e[7]!==l||e[8]!==c?(p=()=>{b&&(c(C),l())},e[5]=b,e[6]=C,e[7]=l,e[8]=c,e[9]=p):p=e[9];const j=p;let y;e[10]!==l?(y=Z=>{Z||l()},e[10]=l,e[11]=y):y=e[11];const N=y;let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(ye,{children:"Edit Amount"}),e[12]=g):g=e[12];const k=!o,v=o||x;let P;e[13]!==k||e[14]!==v?(P=t.jsxs(S,{variant:"heading",size:"4xl",className:"font-bold text-[80px]",inactive:k,children:["$",v]}),e[13]=k,e[14]=v,e[15]=P):P=e[15];const M=d&&"text-ink-destructive";let w;e[16]!==M?(w=H(M),e[16]=M,e[17]=w):w=e[17];let T;e[18]!==a||e[19]!==n?(T=t.jsx(Ne,{amountCents:n,currency:a}),e[18]=a,e[19]=n,e[20]=T):T=e[20];let I;e[21]!==w||e[22]!==T?(I=t.jsxs(S,{size:"sm",inactive:!0,className:w,children:["Max"," ",T]}),e[21]=w,e[22]=T,e[23]=I):I=e[23];let D;e[24]!==a||e[25]!==n||e[26]!==o?(D=t.jsx(G1,{value:o,onChangeValue:r,maxCents:n,setErrorMessage:u,currency:a,className:"w-full"}),e[24]=a,e[25]=n,e[26]=o,e[27]=D):D=e[27];let A;e[28]!==I||e[29]!==D||e[30]!==P?(A=t.jsxs("div",{className:"flex flex-col items-center gap-4 p-5",children:[P,I,D]}),e[28]=I,e[29]=D,e[30]=P,e[31]=A):A=e[31];const L=!b;let _;e[32]!==j||e[33]!==L?(_=t.jsx(W,{variant:"primary",fullWidth:!0,disabled:L,onClick:j,children:"Update"}),e[32]=j,e[33]=L,e[34]=_):_=e[34];let z;e[35]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(wt,{asChild:!0,children:t.jsx(W,{variant:"tertiary",fullWidth:!0,children:"Cancel"})}),e[35]=z):z=e[35];let E;e[36]!==_?(E=t.jsxs(ke,{children:[_,z]}),e[36]=_,e[37]=E):E=e[37];let O;e[38]!==A||e[39]!==E?(O=t.jsxs(de,{showClose:!1,children:[g,A,E]}),e[38]=A,e[39]=E,e[40]=O):O=e[40];let $;return e[41]!==N||e[42]!==s||e[43]!==O?($=t.jsx(ne,{open:s,onOpenChange:N,children:O}),e[41]=N,e[42]=s,e[43]=O,e[44]=$):$=e[44],$}function Ns(i){const e=F.c(16);let s,l,n;e[0]!==i?({children:s,personId:l,...n}=i,e[0]=i,e[1]=s,e[2]=l,e[3]=n):(s=e[1],l=e[2],n=e[3]);const{isRedirecting:a,isCreatingLink:c,redirectToStripe:o}=A1(l);let r;e[4]!==o?(r=async()=>{await o()},e[4]=o,e[5]=r):r=e[5];const d=r;let u;e[6]!==c?(u=c&&t.jsx(t.Fragment,{children:"Generating link..."}),e[6]=c,e[7]=u):u=e[7];let m;e[8]!==a?(m=a&&t.jsx(t.Fragment,{children:"Redirecting..."}),e[8]=a,e[9]=m):m=e[9];const f=!c&&!a?s:null;let x;return e[10]!==d||e[11]!==n||e[12]!==u||e[13]!==m||e[14]!==f?(x=t.jsxs(W,{variant:"primary",onClick:d,...n,children:[u,m,f]}),e[10]=d,e[11]=n,e[12]=u,e[13]=m,e[14]=f,e[15]=x):x=e[15],x}function ws(i){const e=F.c(8),{className:s,style:l,size:n}=i,a=n===void 0?169:n;let c;e[0]!==a?(c=Math.round(a/1.2071428571),e[0]=a,e[1]=c):c=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs("g",{children:[t.jsx("path",{d:"M10.4001 65.1584C8.60427 57.7524 13.1551 50.2915 20.5611 48.499L118.357 24.8017C114.662 15.3771 107.001 7.79671 93.8652 2.89061C87.5638 0.536065 72.6226 -1.13698 63.9053 0.946253C55.1848 3.02626 52.0422 10.7811 52.9595 14.434C48.5055 12.7319 43.3959 12.9709 39.1972 14.7505C36.5552 15.8713 34.3589 17.6767 33.025 19.9538C32.3015 21.1908 31.943 22.5829 31.7201 23.9749C31.494 25.3896 31.507 27.082 30.6091 28.2932C29.8307 29.3396 28.3062 29.7498 27.0046 30.16C25.3832 30.6703 23.7974 31.2388 22.3343 32.0172C19.5792 33.4771 14.124 37.1558 12.2217 39.3941C8.19085 44.1355 6.62761 48.021 4.30214 53.6053C1.75058 59.7258 0.0807584 65.7269 1.27254e-05 72.4546C-0.0645838 77.8484 1.37269 83.268 3.89518 88.3647C3.89518 88.3647 8.72054 97.6505 20.8841 108.441L17.1439 93.0124L10.3968 65.1616L10.4001 65.1584Z",fill:"#EDF0E2"}),t.jsx("path",{d:"M167.153 74.0146C165.806 68.4238 163.946 63.0074 161.023 57.7847C159.217 54.5581 156.046 50.5305 152.412 47.4557L154.137 54.5711L161.029 83.0226L163.891 94.8373C165.687 102.243 161.136 109.704 153.73 111.497L64.6094 133.091C94.0718 143.188 113.486 139.189 130.491 134.587C146.343 127.526 176.067 111.045 167.153 74.0146Z",fill:"#EDF0E2"}),t.jsx("path",{d:"M39.1132 140C32.3823 140 26.2553 135.407 24.6016 128.586L9.30195 65.4266C7.36406 57.4263 12.296 49.3388 20.2963 47.4009L131.661 20.4157C139.661 18.4746 147.748 23.4098 149.686 31.41L164.989 94.5693C166.927 102.57 161.995 110.657 153.995 112.595L42.6305 139.577C41.4549 139.861 40.276 139.997 39.1165 139.997L39.1132 140ZM135.175 22.2567C134.19 22.2567 133.192 22.373 132.19 22.6152L20.826 49.5972C14.0369 51.2412 9.85102 58.1046 11.4982 64.8936L26.8011 128.053C28.4451 134.842 35.3085 139.028 42.0976 137.384L153.462 110.402C160.251 108.758 164.437 101.895 162.793 95.1054L147.49 31.9462C146.088 26.1551 140.888 22.26 135.178 22.26L135.175 22.2567Z",fill:"#002319"}),t.jsx("path",{d:"M142.694 60.3137C142.526 59.6936 142.384 59.1575 142.316 58.8345C141.838 56.551 141.046 55.1331 139.826 54.3644C138.052 53.2501 135.895 53.7798 133.162 54.4516C132.607 54.5873 132.022 54.7326 131.405 54.8715C127.494 55.75 123.467 56.7868 119.429 57.9592L119.174 58.0335C115.676 59.0476 114.565 59.5515 114.494 63.3627C114.304 73.766 116.044 79.5086 119.665 80.4291C119.93 80.4969 120.227 80.526 120.55 80.526C121.991 80.526 123.983 79.9188 126.212 79.1888C126.842 78.9821 127.384 78.8045 127.743 78.7108C131.848 77.6385 136.709 76.1237 141.347 74.6445C146.124 73.1232 143.889 64.7903 142.687 60.3105L142.694 60.3137Z",fill:"#B1DD32"}),t.jsx("path",{d:"M115.579 67.8974C115.098 67.8974 114.649 67.5873 114.501 67.1028C114.316 66.5053 114.649 65.8723 115.247 65.6882L124.516 62.8169L120.973 59.545C120.514 59.1219 120.485 58.4049 120.909 57.9463C121.332 57.4876 122.049 57.4586 122.507 57.8817L127.491 62.4842C127.788 62.7587 127.917 63.1689 127.827 63.5629C127.736 63.957 127.446 64.2735 127.058 64.393L115.915 67.8457C115.805 67.8812 115.692 67.8974 115.579 67.8974Z",fill:"#333333"}),t.jsx("path",{d:"M116.439 72.5548C115.954 72.5548 115.505 72.2382 115.357 71.7505C115.176 71.153 115.515 70.5232 116.112 70.3423C118.247 69.6996 120.398 69.031 122.478 68.3818C128.512 66.5053 134.748 64.561 140.998 63.1689C141.609 63.0333 142.213 63.4176 142.348 64.0248C142.484 64.6352 142.099 65.2392 141.492 65.3749C135.336 66.7475 129.419 68.5918 123.153 70.5394C121.067 71.1886 118.913 71.8604 116.768 72.5031C116.658 72.5354 116.548 72.5515 116.442 72.5515L116.439 72.5548Z",fill:"#333333"}),t.jsx("path",{d:"M125.627 79.1663C125.023 79.1663 124.519 78.6883 124.497 78.0778C124.442 76.6341 124.968 74.9287 125.527 73.12C126.05 71.4244 126.59 69.6738 126.638 68.1687C126.658 67.5454 127.178 67.0609 127.804 67.0738C128.428 67.0932 128.919 67.6164 128.899 68.2398C128.841 70.0485 128.256 71.9476 127.691 73.7821C127.194 75.4003 126.722 76.9312 126.761 77.9906C126.784 78.614 126.296 79.1404 125.673 79.163C125.66 79.163 125.643 79.163 125.631 79.163L125.627 79.1663Z",fill:"#333333"}),t.jsx("path",{d:"M131.674 77.5804C131.596 77.5804 131.515 77.5707 131.435 77.5546C130.824 77.4222 130.437 76.8214 130.566 76.211L132.739 66.0887C132.872 65.4783 133.473 65.0875 134.083 65.2199C134.693 65.3523 135.081 65.9531 134.952 66.5635L132.778 76.6858C132.665 77.2155 132.197 77.5804 131.674 77.5804Z",fill:"#333333"}),t.jsx("path",{d:"M131.448 62.9816C130.979 62.9816 130.543 62.6877 130.382 62.2258C129.975 61.0663 128.392 58.7247 127.82 57.9204C127.459 57.4133 127.575 56.706 128.082 56.3443C128.589 55.9825 129.296 56.0988 129.658 56.
16059C129.849 56.8707 131.267 58.8732 132.09 60.5075C133.35 60.1975 134.651 59.9778 135.921 59.7679C137.555 59.4966 139.244 59.2124 140.788 58.7343C141.386 58.5502 142.019 58.8829 142.203 59.4804C142.387 60.078 142.054 60.711 141.457 60.8951C139.768 61.4183 138.001 61.7122 136.292 61.9997C134.697 62.2678 133.188 62.5165 131.77 62.9363C131.664 62.9686 131.557 62.9816 131.451 62.9816H131.448Z",fill:"#333333"}),t.jsx("g",{style:{mixBlendMode:"multiply"},children:t.jsx("path",{d:"M44.7009 80.1933C39.7528 80.1933 36.3162 77.6999 34.4785 72.7712C32.2499 67.6099 35.0566 62.8104 38.8323 60.3396C44.1873 56.832 49.4229 58.3145 52.2328 61.3408C55.6209 64.9873 56.6932 69.7933 55.0266 73.879C53.5086 77.603 49.9235 79.9575 45.4405 80.1739C45.1886 80.1868 44.9431 80.1933 44.7009 80.1933Z",fill:"#B1DD32"})}),t.jsx("g",{style:{mixBlendMode:"multiply"},children:t.jsx("path",{d:"M58.2403 75.6845C57.3198 75.6845 56.3832 75.565 55.453 75.3163C52.8045 74.6154 48.8641 71.7473 48.8641 66.7217C48.8641 61.3731 51.0152 58.4792 56.283 56.7351C61.4798 55.0168 65.614 56.3217 67.6262 60.3202C69.5221 64.0959 69.0344 68.4916 66.3536 71.7958C64.3156 74.3086 61.3603 75.6845 58.2436 75.6845H58.2403Z",fill:"#016146"})}),t.jsx("path",{d:"M50.7341 113.67C50.2819 113.67 49.8556 113.396 49.6812 112.95C49.4551 112.369 49.7425 111.713 50.3239 111.487C57.9625 108.516 65.0099 106.626 72.4708 104.624C76.4241 103.564 80.5131 102.466 84.7248 101.187C85.3223 101.006 85.9521 101.342 86.1362 101.94C86.3171 102.537 85.9812 103.167 85.3837 103.351C81.1364 104.64 77.0281 105.741 73.0587 106.807C65.6591 108.793 58.6698 110.667 51.1443 113.593C51.0086 113.645 50.8698 113.67 50.7341 113.67Z",fill:"#B1DD32"}),t.jsx("path",{d:"M55.3689 120.217C54.8909 120.217 54.4484 119.91 54.2934 119.432C54.1028 118.838 54.429 118.202 55.0233 118.011C63.1173 115.405 92.625 106.891 92.9221 106.804C93.5228 106.633 94.1494 106.978 94.3206 107.576C94.495 108.177 94.1462 108.803 93.5487 108.974C93.2515 109.058 63.7762 117.566 55.7145 120.159C55.5982 120.195 55.482 120.214 55.3689 120.214V120.217Z",fill:"#B1DD32"}),t.jsx("path",{d:"M90.9366 65.2937C90.3247 65.4127 89.7301 65.0117 89.6112 64.3998L89.104 61.7905C88.9851 61.1786 89.3861 60.584 89.998 60.4651C90.6099 60.3461 91.2044 60.7472 91.3233 61.3591L91.8305 63.9684C91.9495 64.5803 91.5485 65.1748 90.9366 65.2937Z",fill:"#002319"}),t.jsx("path",{d:"M83.0136 66.8338C82.4017 66.9528 81.8072 66.5518 81.6882 65.9399L81.181 63.3306C81.0621 62.7187 81.4631 62.1241 82.075 62.0052C82.6869 61.8862 83.2814 62.2873 83.4004 62.8992L83.9076 65.5085C84.0265 66.1204 83.6255 66.7149 83.0136 66.8338Z",fill:"#002319"}),t.jsx("path",{d:"M87.1326 77.4109C86.7965 77.4762 86.4308 77.3894 86.1585 77.1396C85.6952 76.7197 85.6586 76.0062 86.0785 75.5429C86.7151 74.8401 87.8023 73.8654 88.9496 73.2344C91.2298 71.9818 92.5966 72.7163 93.2068 73.2657C93.6726 73.6818 93.7099 74.3984 93.2932 74.8611C92.8764 75.3238 92.1604 75.3643 91.6977 74.9475C91.0642 74.3797 89.0609 75.618 87.7552 77.0596C87.5844 77.2474 87.364 77.3659 87.1326 77.4109Z",fill:"#002319"})]}),e[2]=o):o=e[2];let r;return e[3]!==s||e[4]!==a||e[5]!==l||e[6]!==c?(r=t.jsx("svg",{width:a,height:c,viewBox:"0 0 169 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,style:l,children:o}),e[3]=s,e[4]=a,e[5]=l,e[6]=c,e[7]=r):r=e[7],r}function Ot(i){const e=F.c(48),{open:s,onClose:l,personId:n,reason:a}=i,c=a===void 0?"not-supported":a;if(c==="store-balance"){let y;e[0]!==l?(y=P=>!P&&l(),e[0]=l,e[1]=y):y=e[1];let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(ye,{children:"Payouts on hold"}),e[2]=N):N=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"p-4 flex flex-col gap-4",children:t.jsx(S,{size:"sm",children:"Your payouts are on hold while your store order is paid from your Venue balance. They resume as soon as it's covered."})}),e[3]=g):g=e[3];let k;e[4]!==l?(k=t.jsxs(de,{showClose:!1,children:[N,g,t.jsx(ke,{children:t.jsx(W,{variant:"primary",fullWidth:!0,onClick:l,children:"Got it"})})]}),e[4]=l,e[5]=k):k=e[5];let v;return e[6]!==s||e[7]!==y||e[8]!==k?(v=t.jsx(ne,{open:s,onOpenChange:y,children:k}),e[6]=s,e[7]=y,e[8]=k,e[9]=v):v=e[9],v}if(c==="paused"){let y;e[10]!==l?(y=P=>!P&&l(),e[10]=l,e[11]=y):y=e[11];let N;e[12]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(ye,{children:"Temporarily paused"}),e[12]=N):N=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"p-4 flex flex-col gap-4",children:t.jsxs(S,{size:"sm",children:["Instant payouts are temporarily paused for your account. If you need your balance immediately,"," ",t.jsx("button",{type:"button",onClick:Ss,className:"underline",children:"contact us"}),"."]})}),e[13]=g):g=e[13];let k;e[14]!==l?(k=t.jsxs(de,{showClose:!1,children:[N,g,t.jsx(ke,{children:t.jsx(W,{variant:"primary",fullWidth:!0,onClick:l,children:"Got it"})})]}),e[14]=l,e[15]=k):k=e[15];let v;return e[16]!==s||e[17]!==y||e[18]!==k?(v=t.jsx(ne,{open:s,onOpenChange:y,children:k}),e[16]=s,e[17]=y,e[18]=k,e[19]=v):v=e[19],v}const o=_s[c];let r;e[20]!==l?(r=y=>!y&&l(),e[20]=l,e[21]=r):r=e[21];let d;e[22]!==o.title?(d=t.jsx(ye,{children:o.title}),e[22]=o.title,e[23]=d):d=e[23];let u;e[24]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(ws,{size:120}),e[24]=u):u=e[24];let m;e[25]!==o.heading?(m=t.jsx(S,{variant:"heading",size:"lg",children:o.heading}),e[25]=o.heading,e[26]=m):m=e[26];let f;e[27]!==o.body?(f=t.jsx(S,{size:"sm",children:o.body}),e[27]=o.body,e[28]=f):f=e[28];let x;e[29]!==m||e[30]!==f?(x=t.jsxs("div",{className:"p-4 flex flex-col items-center gap-4 text-center",children:[u,t.jsxs("div",{className:"flex flex-col gap-2",children:[m,f]})]}),e[29]=m,e[30]=f,e[31]=x):x=e[31];let h;e[32]!==o.button||e[33]!==n?(h=t.jsx(Ns,{personId:n,fullWidth:!0,children:o.button}),e[32]=o.button,e[33]=n,e[34]=h):h=e[34];let C;e[35]!==l?(C=t.jsx(W,{variant:"secondary",fullWidth:!0,onClick:l,children:"Back to Payouts"}),e[35]=l,e[36]=C):C=e[36];let b;e[37]!==h||e[38]!==C?(b=t.jsxs(ke,{children:[h,C]}),e[37]=h,e[38]=C,e[39]=b):b=e[39];let p;e[40]!==b||e[41]!==d||e[42]!==x?(p=t.jsxs(de,{showClose:!1,children:[d,x,b]}),e[40]=b,e[41]=d,e[42]=x,e[43]=p):p=e[43];let j;return e[44]!==s||e[45]!==p||e[46]!==r?(j=t.jsx(ne,{open:s,onOpenChange:r,children:p}),e[44]=s,e[45]=p,e[46]=r,e[47]=j):j=e[47],j}function Ss(){return Qt.show()}const _s={"not-supported":{title:"Instant Payout",heading:"Bank account isnât supported",body:"This bank account doesnât support instant payouts. Try adding a debit card or another bank account to Stripe > Settings > Payout details and try again.",button:"Add another account"},"no-account":{title:"Bank Account Required",heading:"No bank account connected",body:"Connect a bank account in Stripe to enable payouts",button:"Connect account"}},Ps=.03,As=100,Is="3%";function M1(i){const e=i-Math.floor(i/(1+Ps));return Math.max(As,e)}function Ls(i){return Math.max(0,i-M1(i))}function c1(i){const e=F.c(13),{account:s}=i,l=s.type==="CARD"?w1:Yt;let n;e[0]!==l?(n=t.jsx("div",{className:"w-8 h-8 rounded-lg bg-ink-black-50 border border-ink-black-100 flex items-center justify-center text-ink-black-600 shrink-0",children:t.jsx(l,{className:"w-4 h-4"})}),e[0]=l,e[1]=n):n=e[1];const a=s.issuerName??(s.type==="CARD"?"Card":"Bank account");let c;e[2]!==a?(c=t.jsx(S,{variant:"heading",children:a}),e[2]=a,e[3]=c):c=e[3];let o;e[4]!==s.last4?(o=t.jsxs(S,{variant:"label",children:["â¢â¢â¢â¢ ",s.last4]}),e[4]=s.last4,e[5]=o):o=e[5];let r;e[6]!==c||e[7]!==o?(r=t.jsxs("div",{className:"flex flex-1 items-baseline justify-between min-w-0 text-sm",children:[c,o]}),e[6]=c,e[7]=o,e[8]=r):r=e[8];let d;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(yt,{className:"shrink-0 text-ink-black/30 size-4"}),e[9]=d):d=e[9];let u;return e[10]!==n||e[11]!==r?(u=t.jsxs("div",{className:"flex flex-1 items-center gap-3 min-w-0",children:[n,r,d]}),e[10]=n,e[11]=r,e[12]=u):u=e[12],u}function Ms(i){const e=F.c(71),{personId:s,data:l,maxAmountCents:n,onSuccess:a,onClose:c,isLimitedByWeeklyLimit:o,limitCents:r,usedBalanceCents:d}=i,[u,m]=R.useState(l.externalAccounts[0]),[f,x]=R.useState(!1),[h,C]=R.use
1State(!1),[b,p]=R.useState(null),[j,y]=R.useState(null);let N;e[0]!==c||e[1]!==a?(N={onSuccess:()=>{a(),c()}},e[0]=c,e[1]=a,e[2]=N):N=e[2];const{mutateAsync:g,isPending:k}=oe.createInstantPayout.useMutation(N),v=b?Math.min(b,n):n,P=M1(v),M=Math.max(0,v-P),w=l.currency;let T;e[3]!==v||e[4]!==g||e[5]!==w||e[6]!==s||e[7]!==u.id?(T=async()=>{y(null),await g({amountCents:v,currency:w,externalAccountId:u.id,personId:s}).catch(be=>{y(y1(be)??be.message)})},e[3]=v,e[4]=g,e[5]=w,e[6]=s,e[7]=u.id,e[8]=T):T=e[8];const I=T;let D;e[9]===Symbol.for("react.memo_cache_sentinel")?(D=()=>x(!0),e[9]=D):D=e[9];let A;e[10]!==u?(A=t.jsx("button",{type:"button",className:"w-full flex items-center gap-3 p-3 rounded-2xl border border-ink-black/10 dark:border-ink-white/10 text-left",onClick:D,children:t.jsx(c1,{account:u})}),e[10]=u,e[11]=A):A=e[11];let L;e[12]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx(S,{variant:"label",children:"ETA"}),t.jsx(S,{className:"font-normal",children:"Instant"})]}),e[12]=L):L=e[12];let _;e[13]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(S,{variant:"label",children:"Amount"}),e[13]=_):_=e[13];const z=n<=0;let E;e[14]===Symbol.for("react.memo_cache_sentinel")?(E=()=>C(!0),e[14]=E):E=e[14];const O=n<=0?"text-ink-black-400":"underline decoration-solid decoration-ink-lean text-ink-lean";let $;e[15]!==O?($=t.jsx(S,{variant:"label",size:"xs",className:O,children:"Edit"}),e[15]=O,e[16]=$):$=e[16];let Z;e[17]!==$||e[18]!==z?(Z=t.jsx("button",{type:"button",disabled:z,onClick:E,children:$}),e[17]=$,e[18]=z,e[19]=Z):Z=e[19];let Y;e[20]!==v||e[21]!==w?(Y=t.jsx(S,{variant:"heading",size:"base",children:t.jsx(Ne,{amountCents:v,currency:w,showFraction:!0})}),e[20]=v,e[21]=w,e[22]=Y):Y=e[22];let se;e[23]!==Z||e[24]!==Y?(se=t.jsxs("div",{className:"flex items-center justify-between",children:[_,t.jsxs("div",{className:"flex items-center gap-2",children:[Z,Y]})]}),e[23]=Z,e[24]=Y,e[25]=se):se=e[25];let J;e[26]!==w||e[27]!==o||e[28]!==r||e[29]!==d?(J=o&&t.jsxs("div",{className:"rounded-xl bg-ink-black-50 p-3 flex items-center justify-between gap-3",children:[t.jsxs(S,{size:"sm",className:"text-ink-black-600",children:["Instant limit used:"," ",t.jsx(Ne,{amountCents:d,currency:w})," ","of"," ",t.jsx(Ne,{amountCents:r,currency:w})]}),d>=r&&t.jsx("button",{type:"button",onClick:Es,className:"shrink-0",children:t.jsx(S,{variant:"label",size:"sm",element:"span",className:"underline text-ink-lean",children:"Request more"})})]}),e[26]=w,e[27]=o,e[28]=r,e[29]=d,e[30]=J):J=e[30];let ue;e[31]===Symbol.for("react.memo_cache_sentinel")?(ue=t.jsx("div",{className:"border-b border-ink-black/20 border-dashed"}),e[31]=ue):ue=e[31];let Q;e[32]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx(S,{variant:"label",children:"You'll Receive"}),e[32]=Q):Q=e[32];let fe;e[33]!==w||e[34]!==M?(fe=t.jsxs("div",{className:"flex items-center justify-between",children:[Q,t.jsx(S,{variant:"heading",size:"base",children:t.jsx(Ne,{amountCents:M,currency:w,showFraction:!0})})]}),e[33]=w,e[34]=M,e[35]=fe):fe=e[35];let V;e[36]!==j?(V=j&&t.jsx(S,{size:"sm",className:"text-ink-destructive mt-2",children:j}),e[36]=j,e[37]=V):V=e[37];let U;e[38]!==se||e[39]!==J||e[40]!==fe||e[41]!==V||e[42]!==A?(U=t.jsxs("div",{className:"p-5 pb-safe-or-5 flex flex-col gap-6",children:[A,L,se,J,ue,fe,V]}),e[38]=se,e[39]=J,e[40]=fe,e[41]=V,e[42]=A,e[43]=U):U=e[43];const ie=k||v<=0;let ae;e[44]===Symbol.for("react.memo_cache_sentinel")?(ae=t.jsx(bt,{className:"size-3.5"}),e[44]=ae):ae=e[44];const re=k?"Processing...":"Payout";let ee;e[45]!==I||e[46]!==ie||e[47]!==re?(ee=t.jsx(ke,{children:t.jsxs(W,{variant:"primary",fullWidth:!0,disabled:ie,onClick:I,children:[ae,re]})}),e[45]=I,e[46]=ie,e[47]=re,e[48]=ee):ee=e[48];let ce;e[49]===Symbol.for("react.memo_cache_sentinel")?(ce=be=>!be&&x(!1),e[49]=ce):ce=e[49];let me;e[50]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(ye,{children:"Select Account"}),e[50]=me):me=e[50];let G;if(e[51]!==l.externalAccounts||e[52]!==u.id){let be;e[54]!==u.id?(be=xe=>t.jsx("button",{type:"button",className:H("w-full flex items-center gap-3 p-5 rounded-3xl border text-left",xe.id===u.id?"border-2 border-ink-black dark:border-ink-white":"border border-ink-black/15 dark:border-ink-white/15"),onClick:()=>{m(xe),x(!1)},children:t.jsx(c1,{account:xe})},xe.id),e[54]=u.id,e[55]=be):be=e[55],G=l.externalAccounts.map(be),e[51]=l.externalAccounts,e[52]=u.id,e[53]=G}else G=e[53];let K;e[56]!==G?(K=t.jsxs(de,{showClose:!1,children:[me,t.jsx("div",{className:"p-5 pb-safe-or-5 flex flex-col gap-3",children:G})]}),e[56]=G,e[57]=K):K=e[57];let X;e[58]!==f||e[59]!==K?(X=t.jsx(ne,{open:f,onOpenChange:ce,children:K}),e[58]=f,e[59]=K,e[60]=X):X=e[60];let he;e[61]===Symbol.for("react.memo_cache_sentinel")?(he=()=>C(!1),e[61]=he):he=e[61];let te;
1e[62]!==w||e[63]!==h||e[64]!==n?(te=t.jsx(L1,{open:h,onClose:he,maxAmountCents:n,currency:w,onConfirm:p}),e[62]=w,e[63]=h,e[64]=n,e[65]=te):te=e[65];let je;return e[66]!==U||e[67]!==ee||e[68]!==X||e[69]!==te?(je=t.jsxs(t.Fragment,{children:[U,ee,X,te]}),e[66]=U,e[67]=ee,e[68]=X,e[69]=te,e[70]=je):je=e[70],je}function Es(){return Qt.show()}function E1(i){const e=F.c(31),{open:s,onClose:l,personId:n,amountCents:a}=i;let c;e[0]!==n?(c={personId:n},e[0]=n,e[1]=c):c=e[1];let o;e[2]!==s?(o={enabled:s},e[2]=s,e[3]=o):o=e[3];const{data:r,isLoading:d}=oe.getInstantPayoutDetails.useQuery(c,o),u=r?.status==="eligible"&&r.externalAccounts.length>0,m=!d&&r?.status==="no_eligible_stripe_external_accounts";if(!d&&r?.status==="ineligible"){const y=r.ineligibleReason==="store_balance_order"?"store-balance":"paused";let N;return e[4]!==l||e[5]!==s||e[6]!==n||e[7]!==y?(N=t.jsx(Ot,{open:s,onClose:l,personId:n,reason:y}),e[4]=l,e[5]=s,e[6]=n,e[7]=y,e[8]=N):N=e[8],N}if(m){let y;return e[9]!==l||e[10]!==s||e[11]!==n?(y=t.jsx(Ot,{open:s,onClose:l,personId:n}),e[9]=l,e[10]=s,e[11]=n,e[12]=y):y=e[12],y}let x;e[13]!==l?(x=y=>!y&&l(),e[13]=l,e[14]=x):x=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(ye,{children:"Instant Payout"}),e[15]=h):h=e[15];let C;e[16]!==d?(C=d&&t.jsx("div",{className:"px-4 py-8 flex items-center justify-center",children:t.jsx(S,{size:"sm",className:"text-ink-black-500",children:"Loading..."})}),e[16]=d,e[17]=C):C=e[17];let b;e[18]!==a||e[19]!==r||e[20]!==u||e[21]!==l||e[22]!==n?(b=u&&r.status==="eligible"&&t.jsx(Ms,{personId:n,data:r,maxAmountCents:Math.min(a,r.amountAvailableCents),onSuccess:()=>{l()},onClose:l,isLimitedByWeeklyLimit:a>r.limitCents-r.usedBalanceCents,limitCents:r.limitCents,usedBalanceCents:r.usedBalanceCents}),e[18]=a,e[19]=r,e[20]=u,e[21]=l,e[22]=n,e[23]=b):b=e[23];let p;e[24]!==C||e[25]!==b?(p=t.jsxs(de,{showClose:!1,children:[h,C,b]}),e[24]=C,e[25]=b,e[26]=p):p=e[26];let j;return e[27]!==s||e[28]!==x||e[29]!==p?(j=t.jsx(ne,{open:s,onOpenChange:x,children:p}),e[27]=s,e[28]=x,e[29]=p,e[30]=j):j=e[30],j}function Kt(i){const e=F.c(5),{className:s,style:l,size:n}=i,a=n===void 0?20:n;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("path",{d:"M10 1.875C8.39303 1.875 6.82214 2.35152 5.48599 3.24431C4.14984 4.1371 3.10844 5.40605 2.49348 6.8907C1.87852 8.37535 1.71761 10.009 2.03112 11.5851C2.34462 13.1612 3.11846 14.6089 4.25476 15.7452C5.39106 16.8815 6.8388 17.6554 8.41489 17.9689C9.99099 18.2824 11.6247 18.1215 13.1093 17.5065C14.594 16.8916 15.8629 15.8502 16.7557 14.514C17.6485 13.1779 18.125 11.607 18.125 10C18.1209 7.84638 17.2635 5.78216 15.7407 4.25932C14.2178 2.73648 12.1536 1.87913 10 1.875ZM10 15C9.81458 15 9.63332 14.945 9.47915 14.842C9.32498 14.739 9.20482 14.5926 9.13386 14.4213C9.06291 14.25 9.04434 14.0615 9.08051 13.8796C9.11669 13.6977 9.20598 13.5307 9.33709 13.3996C9.4682 13.2685 9.63525 13.1792 9.8171 13.143C9.99896 13.1068 10.1875 13.1254 10.3588 13.1964C10.5301 13.2673 10.6765 13.3875 10.7795 13.5417C10.8825 13.6958 10.9375 13.8771 10.9375 14.0625C10.9375 14.3111 10.8387 14.5496 10.6629 14.7254C10.4871 14.9012 10.2486 15 10 15ZM10.625 11.1797V11.25C10.625 11.4158 10.5592 11.5747 10.4419 11.6919C10.3247 11.8092 10.1658 11.875 10 11.875C9.83424 11.875 9.67527 11.8092 9.55806 11.6919C9.44085 11.5747 9.375 11.4158 9.375 11.25V10.625C9.375 10.4592 9.44085 10.3003 9.55806 10.1831C9.67527 10.0658 9.83424 10 10 10C10.309 10 10.6111 9.90836 10.8681 9.73667C11.125 9.56498 11.3253 9.32095 11.4436 9.03544C11.5618 8.74993 11.5928 8.43577 11.5325 8.13267C11.4722 7.82958 11.3234 7.55117 11.1049 7.33265C10.8863 7.11413 10.6079 6.96531 10.3048 6.90502C10.0017 6.84473 9.68757 6.87568 9.40206 6.99394C9.11655 7.1122 8.87252 7.31247 8.70083 7.56942C8.52914 7.82637 8.4375 8.12847 8.4375 8.4375C8.4375 8.60326 8.37165 8.76223 8.25444 8.87944C8.13723 8.99665 7.97826 9.0625 7.8125 9.0625C7.64674 9.0625 7.48777 8.99665 7.37056 8.87944C7.25335 8.76223 7.1875 8.60326 7.1875 8.4375C7.1875 7.90805 7.33695 7.38936 7.61865 6.94107C7.90035 6.49279 8.30287 6.13312 8.7799 5.90344C9.25694 5.67376 9.78912 5.58339 10.3152 5.64273C10.8413 5.70207 11.34 5.90871 11.7539 6.23888C12.1678 6.56905 12.4801 7.00934 12.6549 7.50911C12.8296 8.00888 12.8598 8.54784 12.7418 9.06398C12.6239 9.58013 12.3627 10.0525 11.9882 10.4268C11.6137 10.8011 11.1412 11.062 10.625 11.1797Z",fill:"currentColor",fillOpacity:.2}),e[0]=c):c=e[0];let o;
1return e[1]!==s||e[2]!==a||e[3]!==l?(o=t.jsx("svg",{width:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,style:l,children:c}),e[1]=s,e[2]=a,e[3]=l,e[4]=o):o=e[4],o}function Ml(i){const e=F.c(89),{hideTotal:s,fullPaymentComputedValues:l,artistHandle:n,closeButtonText:a}=i,c=s===void 0?!1:s,o=a===void 0?"Back to payment details":a,r=l.stripeFeeBeforeRebateCents,d=l.stripeFeeAfterRebateCents,u=l.platformFeeBeforeRebateCents,m=l.platformFeeAfterRebateCents,f=d<r,x=m<u,h=d===0&&r>0,C=m===0&&u>0;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsxs(at,{className:"flex flex-row gap-1 items-center text-sm font-medium text-ink-black-600 dark:text-ink-white font-emphasis dark:font-sans",children:["+ taxes and fees",t.jsx(Ut,{className:"pt-0.5 dark:text-ink-lime",size:16})]}),e[0]=b):b=e[0];let p;e[1]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(ye,{children:"Taxes and fees"}),e[1]=p):p=e[1];let j;e[2]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(St,{className:"mt-4",children:t.jsx(kt,{children:t.jsx(N1,{children:"Taxes and fees breakdown"})})}),e[2]=j):j=e[2];let y;e[3]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(Ct,{children:"Taxes"}),e[3]=y):y=e[3];let N;e[4]!==l.currency||e[5]!==l.taxCents?(N=jt(l.taxCents,l.currency,!0),e[4]=l.currency,e[5]=l.taxCents,e[6]=N):N=e[6];let g;e[7]!==N?(g=t.jsxs(pt,{children:[y,t.jsx(gt,{children:N})]}),e[7]=N,e[8]=g):g=e[8];let k;e[9]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(Zt,{className:"font-sans normal-case text-ink-black-600",children:"Standard sales tax owed on goods and services."}),e[9]=k):k=e[9];let v;e[10]!==g?(v=t.jsxs(Vt,{children:[g,k]}),e[10]=g,e[11]=v):v=e[11];let P;e[12]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Dt,{className:"mt-0"}),e[12]=P):P=e[12];const M=f?"text-ink-black dark:text-ink-white":"";let w;e[13]!==M?(w=t.jsx("span",{className:M,children:"Stripe fee"}),e[13]=M,e[14]=w):w=e[14];let T;e[15]!==f?(T=f&&t.jsx(s1,{className:"text-[#3B90B2] dark:text-ink-lime",size:16}),e[15]=f,e[16]=T):T=e[16];let I;e[17]!==w||e[18]!==T?(I=t.jsxs(Ct,{className:"flex items-center gap-1.5",children:[w,T]}),e[17]=w,e[18]=T,e[19]=I):I=e[19];let D;e[20]!==l.currency||e[21]!==r||e[22]!==f?(D=f&&t.jsx("span",{className:"line-through text-ink-black-500 dark:text-ink-black-400",children:jt(r,l.currency,!0)}),e[20]=l.currency,e[21]=r,e[22]=f,e[23]=D):D=e[23];let A;e[24]!==l.currency||e[25]!==d?(A=jt(d,l.currency,!0),e[24]=l.currency,e[25]=d,e[26]=A):A=e[26];let L;e[27]!==A?(L=t.jsx("span",{children:A}),e[27]=A,e[28]=L):L=e[28];let _;e[29]!==D||e[30]!==L?(_=t.jsxs(gt,{className:"flex items-center gap-2",children:[D,L]}),e[29]=D,e[30]=L,e[31]=_):_=e[31];let z;e[32]!==I||e[33]!==_?(z=t.jsxs(pt,{children:[I,_]}),e[32]=I,e[33]=_,e[34]=z):z=e[34];let E;e[35]!==n||e[36]!==h||e[37]!==f?(E=f&&t.jsx(l1,{artistHandle:n,isArtistCoveringFee:h}),e[35]=n,e[36]=h,e[37]=f,e[38]=E):E=e[38];let O;e[39]!==E?(O=t.jsxs(Zt,{className:"font-sans normal-case",children:["Covers the cost to process with your credit card or payment methods like Affirm.",E]}),e[39]=E,e[40]=O):O=e[40];let $;e[41]!==z||e[42]!==O?($=t.jsxs(Vt,{children:[z,O]}),e[41]=z,e[42]=O,e[43]=$):$=e[43];const Z=x?"text-ink-black dark:text-ink-white":"";let Y;e[44]!==Z?(Y=t.jsx("span",{className:Z,children:"Platform fee"}),e[44]=Z,e[45]=Y):Y=e[45];let se;e[46]!==x?(se=x&&t.jsx(s1,{className:"text-[#3B90B2] dark:text-ink-lime",size:16}),e[46]=x,e[47]=se):se=e[47];let J;e[48]!==Y||e[49]!==se?(J=t.jsxs(Ct,{className:"flex items-center gap-1.5",children:[Y,se]}),e[48]=Y,e[49]=se,e[50]=J):J=e[50];let ue;e[51]!==l.currency||e[52]!==u||e[53]!==x?(ue=x&&t.jsx("span",{className:"line-through text-ink-black-500 dark:text-ink-black-400",children:jt(u,l.currency,!0)}),e[51]=l.currency,e[52]=u,e[53]=x,e[54]=ue):ue=e[54];let Q;e[55]!==l.currency||e[56]!==m?(Q=jt(m,l.currency,!0),e[55]=l.currency,e[56]=m,e[57]=Q):Q=e[57];let fe;e[58]!==Q?(fe=t.jsx("span",{children:Q}),e[58]=Q,e[59]=fe):fe=e[59];let V;e[60]!==ue||e[61]!==fe?(V=t.jsxs(gt,{className:"flex items-center gap-2",children:[ue,fe]}),e[60]=ue,e[61]=fe,e[62]=V):V=e[62];let U;e[63]!==J||e[64]!==V?(U=t.jsxs(pt,{children:[J,V]}),e[63]=J,e[64]=V,e[65]=U):U=e[65];let ie;e[66]!==n||e[67]!==C||e[68]!==x?(ie=x&&t.jsx(l1,{artistHandle:n,isArtistCoveringFee:C}),e[66]=n,e[67]=C,e[68]=x,e[69]=ie):ie=e[69];let ae;e[70]!==ie?(ae=t.jsxs(Zt,{className:"font-sans normal-case",children:["Helps cover costs to improve and run Venue and grow the tattoo community.",ie]}),e[70]=ie,e[71]=ae):ae=e[71];let re;e[72]!==U||e[73]!==ae?(re=t.jsxs(Vt,{children:[U,ae]}),e[72]=U,e[73]=ae,e[74]=re):re=e[74];let ee;e[75]!==l.currency||e[76]!==l.taxAndFeeAfterRebateCents||e[77]!==c?(ee=!c&&t.jsxs(t.Fragment,{children:[t.jsx(Dt,{className:"mt-0"}),t.jsxs(pt,{children:[t.jsx(Ct,{className:"leading-tighter font-medium dark:text-ink-white",children:"Taxes and fees"}),t.jsx(gt,{className:"text-2xl leading-tighter font-medium text-ink-black dark:text-ink-white flex flex-row gap-1.5 items-center",children:t.jsxs("div",{className:"flex flex-row gap-1.5 items-baseline",children:[t.jsx(S,{size:"sm",element:"span",className:"leading-tighter text-ink-black-600",children:l.currency}),t.jsx(Ne,{amountCents:l.taxAndFeeAfterRebateCents,currency:l.currency,showFraction:!0})]})})]})]}),e[75]=l.currency,e[76]=l.taxAndFeeAfterRebateCents,e[77]=c,e[78]=ee):ee=e[78];let ce;e[79]!==v||e[80]!==$||e[81]!==re||e[82]!==ee?(ce=t.jsxs(b1,{className:"font-emphasis",children:[v,P,$,re,ee]}),e[79]=v,e[80]=$,e[81]=re,e[82]=ee,e[83]=ce):ce=e[83];let me;e[84]!==o?(me=t.jsx(ke,{className:"mt-3 px-5",children:t.jsx(wt,{asChild:!0,children:t.jsx(W,{variant:"secondary",fullWidth:!0,children:o})})}),e[84]=o,e[85]=me):me=e[85];let G;return e[86]!==ce||e[87]!==me?(G=t.jsxs(ne,{children:[b,t.jsxs(de,{showClose:!1,children:[p,j,ce,me]})]}),e[86]=ce,e[87]=me,e[88]=G):G=e[88],G}function El(i){const e=F.c(12),{src:s,width:l,height:n,rotate:a,style:c,className:o}=i,r=c&&"absolute";let d;e[0]!==o||e[1]!==r?(d=H("pointer-events-none select-none",r,o),e[0]=o,e[1]=r,e[2]=d):d=e[2];const u=`rotate(${a}deg)`;let m;e[3]!==n||e[4]!==c||e[5]!==u||e[6]!==l?(m={width:l,height:n,transform:u,...c},e[3]=n,e[4]=c,e[5]=u,e[6]=l,e[7]=m):m=e[7];let f;return e[8]!==s||e[9]!==d||e[10]!==m?(f=t.jsx("img",{src:s,alt:"","aria-hidden":!0,draggable:!1,
1className:d,style:m}),e[8]=s,e[9]=d,e[10]=m,e[11]=f):f=e[11],f}const Dl="/assets/CPgKvPFy.avif",zl="/assets/IUtn0OH3.avif",Ol="/assets/BGH3IKPE.avif",Fl="/assets/n1gmtIPH.avif",Tl="/assets/Dy7KaaDn.avif",Ds={clientFirstName:{label:"client name",description:"This will insert the client's preferred name",example:"Wayne Thayer"},appointmentDate:{label:"appointment date",description:"This will insert the proposed or scheduled appointment date and time",example:"August 12th at 1:00 PM"},studioName:{label:"studio name",description:"This will insert your studio's name",example:"Nicefolks"},studioAddress:{label:"studio address",description:"This will insert your studio's address",example:"300 Campbell Ave, Unit 206, Toronto, ON"},studioNote:{label:"studio note",description:"This will insert your studio's note",example:"Business in the front, parking in the back. If you see the man wearing a hat, you've gone too far."},artistWebsite:{label:"artist website",description:"This will insert a link to your public artist website",example:"https://venue.ink/@earthyliltats"},consentFormLink:{label:"consent form link",description:"Only use if you have consent forms enabled. This will insert the consent form link for your clients to review and sign.",example:"https://venue.ink/a/apt-8iEfwtcFL2e/waiver"}};function zs(i){const e=F.c(10),{onShortcodeSelect:s,templateVariables:l}=i,[n,a]=R.useState(!1);let c;e[0]!==l?(c=l?.length?Object.entries(Ds).filter(f=>{const[x]=f;return l.includes(x)}):[],e[0]=l,e[1]=c):c=e[1];const o=c;if(o.length===0)return null;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs(at,{className:"text-ink-lean px-3 py-0.5 text-sm flex items-center gap-0.5 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-ink-black focus:rounded-md",children:[t.jsx(n1,{size:16}),"Insert shortcode"]}),e[2]=r):r=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsxs(St,{className:"text-center",children:[t.jsx(Bt,{className:"font-normal",children:"Insert shortcode"}),t.jsx(S,{size:"sm",className:"text-ink-black-500",children:"Automatically autofill client or appointment details"})]}),e[3]=d):d=e[3];let u;e[4]!==o||e[5]!==s?(u=t.jsxs(de,{onCloseAutoFocus:Os,children:[d,t.jsx("div",{className:"px-4 pb-8 overflow-auto",children:t.jsx("div",{className:"flex flex-col divide-y",children:o.map(f=>{const[x,h]=f;return t.jsx("button",{className:"py-6 text-left",onClick:()=>{s(x),a(!1)},children:t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsxs("div",{className:"flex-1 flex flex-col gap-3",children:[t.jsx("h3",{className:"font-normal text-ink-black",children:h.label}),t.jsx(S,{size:"sm",className:"text-ink-black-600",children:h.description}),t.jsxs(S,{size:"sm",className:"text-ink-black-400",children:["Example: ",h.example]})]}),t.jsx(n1,{size:20,className:"text-ink-black"})]})},x)})})})]}),e[4]=o,e[5]=s,e[6]=u):u=e[6];let m;return e[7]!==n||e[8]!==u?(m=t.jsxs(ne,{open:n,onOpenChange:a,children:[r,u]}),e[7]=n,e[8]=u,e[9]=m):m=e[9],m}function Os(i){i.preventDefault()}function Rl(i){const e=F.c(3),{templateVariables:s,onSelect:l}=i;let n;return e[0]!==l||e[1]!==s?(n=t.jsx(zs,{onShortcodeSelect:l,templateVariables:s}),e[0]=l,e[1]=s,e[2]=n):n=e[2],n}const Xt=["SU","MO","TU","WE","TH","FR","SA"],D1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function o1(){return"FREQ=DAILY"}function d1(i){return`FREQ=WEEKLY;BYDAY=${Xt[i]}`}function u1(i){return`FREQ=WEEKLY;INTERVAL=2;BYDAY=${Xt[i]}`}function f1(i){return`FREQ=MONTHLY;BYMONTHDAY=${i}`}function _t(i){const e=Object.fromEntries(i.split(";").map(n=>n.split("="))),s=e.FREQ,l=e.INTERVAL;if(!s)return null;if(s==="DAILY")return{freq:"daily"};if(s==="MONTHLY"){const n=e.BYMONTHDAY;if(n){const a=parseInt(n,10);if(a===1||a===15||a===-1)return{freq:"monthly",monthDay:a}}return{freq:"monthly",monthDay:1}}if(s==="WEEKLY"){const n=e.BYDAY;if(!n)return null;const a=Xt.indexOf(n);return a===-1?null:{dayIndex:a,freq:l==="2"?"biweekly":"weekly"}}return null}function Fs(i,e){if(e==="manual")return"Manual";if(e==="instant")return"Instant";if(!i)return"Recurring";const s=_t(i);return s?s.freq==="daily"?"Automatic":s.freq==="weekly"?"Weekly":s.freq==="biweekly"?"Bi-weekly":"Monthly":"Recurring"}function z1(i,e){const s=D1[i];return e==="weekly"?`Every ${s}`:`Every other ${s}`}function O1(i){return i===1?"1st":i===15?"15th":"last day"}function Ts(i){const e=_t(i);return e?e.freq==="monthly"?`${O1(e.monthDay)} of the month`:e.freq==="daily"?"Automatic":z1(e.dayIndex,e.freq):""}function Rs(i){return D1[i]}function Jt(i){const e=F.c(7),{type:s,issuerName:l}=i;let n="bg-ink-black-50 border border-ink-black-100 text-ink-black-600",a=s==="CARD"?w1:Yt;l==="TD"&&(n="bg-ink-forest",a=Yt);let c;e[0]!==n?(c=H("w-8 h-8 rounded m-1",n),e[0]=n,e[1]=c):c=e[1];let o;e[2]!==a?(o=t.jsx(a,{className:"w-full h-full p-1"}),e[2]=a,e[3]=o):o=e[3];let r;return e[4]!==c||e[5]!==o?(r=t.jsx("div",{className:c,children:o}),e[4]=c,e[5]=o,e[6]=r):r=e[6],r}function F1(i){const e=F.c(16),{open:s,onClose:l,externalAccounts:n,selectedAccountId:a,onSelect:c}=i;let o;e[0]!==l?(o=f=>!f&&l(),e[0]=l,e[1]=o):o=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(ye,{children:"Select Account"}),e[2]=r):r=e[2];let d;if(e[3]!==n||e[4]!==c||e[5]!==a){let f;e[7]!==c||e[8]!==a?(f=x=>t.jsx("button",{type:"button",className:H("w-full flex items-center gap-3 p-5 rounded-3xl border text-left",x.id===a?"border-2 border-ink-black dark:border-ink-white":"border border-ink-black/15 dark:border-ink-white/15"),onClick:()=>c(x),children:t.jsxs("div",{className:"flex flex-1 items-center gap-3 min-w-0",children:[t.jsx(Jt,{type:x.type,issuerName:x.issuerName}),t.jsxs("div",{className:"flex flex-1 items-baseline justify-between min-w-0 text-sm",children:[t.jsx(S,{variant:"heading",children:x.issuerName??(x.type==="CARD"?"Card":"Bank account")}
1),t.jsxs(S,{variant:"label",children:["â¢â¢â¢â¢ ",x.last4]})]}),t.jsx(yt,{className:"shrink-0 text-ink-black/30 size-4"})]})},x.id),e[7]=c,e[8]=a,e[9]=f):f=e[9],d=n.map(f),e[3]=n,e[4]=c,e[5]=a,e[6]=d}else d=e[6];let u;e[10]!==d?(u=t.jsxs(de,{showClose:!1,children:[r,t.jsx("div",{className:"p-5 pb-safe-or-5 flex flex-col gap-3",children:d})]}),e[10]=d,e[11]=u):u=e[11];let m;return e[12]!==s||e[13]!==o||e[14]!==u?(m=t.jsx(ne,{open:s,onOpenChange:o,children:u}),e[12]=s,e[13]=o,e[14]=u,e[15]=m):m=e[15],m}const $s=[{value:1,label:"1st of the month"},{value:15,label:"15th of the month"},{value:-1,label:"Last day of the month"}];function Bs(i){const e=F.c(22),{open:s,onClose:l,selectedMonthDay:n,onSelect:a}=i,[c,o]=R.useState(n);let r;e[0]!==l?(r=p=>!p&&l(),e[0]=l,e[1]=r):r=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(ye,{children:"Choose Payday"}),e[2]=d):d=e[2];let u;e[3]!==c?(u=$s.map(p=>{const j=c===p.value;return t.jsxs("button",{type:"button",className:H("w-full flex items-center justify-between p-5 rounded-3xl border text-left",j?"border-2 border-ink-black dark:border-ink-white":"border border-ink-black/15 dark:border-ink-white/15"),onClick:()=>o(p.value),children:[t.jsx(vt,{size:"base",children:p.label}),j?t.jsx("div",{className:"w-5 h-5 rounded-full bg-ink-black dark:bg-ink-white flex items-center justify-center flex-shrink-0",children:t.jsx(Nt,{className:"stroke-ink-white dark:stroke-ink-black size-3"})}):t.jsx("div",{className:"w-5 h-5 rounded-full border border-ink-black/25 dark:border-ink-white/25 flex-shrink-0"})]},p.value)}),e[3]=c,e[4]=u):u=e[4];let m;e[5]!==u?(m=t.jsx("div",{className:"p-5 pb-0 flex flex-col gap-3",children:u}),e[5]=u,e[6]=m):m=e[6];let f;e[7]!==c||e[8]!==a?(f=()=>a(c),e[7]=c,e[8]=a,e[9]=f):f=e[9];let x;e[10]!==c?(x=O1(c),e[10]=c,e[11]=x):x=e[11];let h;e[12]!==f||e[13]!==x?(h=t.jsx(ke,{children:t.jsxs(W,{variant:"primary",fullWidth:!0,onClick:f,children:["Select ",x]})}),e[12]=f,e[13]=x,e[14]=h):h=e[14];let C;e[15]!==m||e[16]!==h?(C=t.jsxs(de,{showClose:!1,children:[d,m,h]}),e[15]=m,e[16]=h,e[17]=C):C=e[17];let b;return e[18]!==s||e[19]!==r||e[20]!==C?(b=t.jsx(ne,{open:s,onOpenChange:r,children:C}),e[18]=s,e[19]=r,e[20]=C,e[21]=b):b=e[21],b}const Ws=[0,1,2,3,4,5,6];function Hs(i){const e=F.c(23),{open:s,onClose:l,freq:n,selectedDayIndex:a,onSelect:c}=i,[o,r]=R.useState(a);let d;e[0]!==o||e[1]!==c?(d=()=>{c(o)},e[0]=o,e[1]=c,e[2]=d):d=e[2];const u=d;let m;e[3]!==l?(m=y=>!y&&l(),e[3]=l,e[4]=m):m=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ye,{children:"Choose Your Payday"}),e[5]=f):f=e[5];let x;e[6]!==n||e[7]!==o?(x=Ws.map(y=>{const N=o===y;return t.jsxs("button",{type:"button",className:H("w-full flex items-center justify-between p-5 rounded-3xl border text-left",N?"border-2 border-ink-black dark:border-ink-white":"border border-ink-black/15 dark:border-ink-white/15"),onClick:()=>r(y),children:[t.jsx(vt,{size:"base",children:z1(y,n)}),N?t.jsx("div",{className:"w-5 h-5 rounded-full bg-ink-black dark:bg-ink-white flex items-center justify-center flex-shrink-0",children:t.jsx(Nt,{className:"stroke-ink-white dark:stroke-ink-black size-3"})}):t.jsx("div",{className:"w-5 h-5 rounded-full border border-ink-black/25 dark:border-ink-white/25 flex-shrink-0"})]},y)}),e[6]=n,e[7]=o,e[8]=x):x=e[8];let h;e[9]!==x?(h=t.jsx("div",{className:"p-5 pb-0 flex flex-col gap-3",children:x}),e[9]=x,e[10]=h):h=e[10];let C;e[11]!==o?(C=Rs(o),e[11]=o,e[12]=C):C=e[12];let b;e[13]!==u||e[14]!==C?(b=t.jsx(ke,{children:t.jsxs(W,{variant:"primary",fullWidth:!0,onClick:u,children:["Select ",C]})}),e[13]=u,e[14]=C,e[15]=b):b=e[15];let p;e[16]!==h||e[17]!==b?(p=t.jsxs(de,{showClose:!1,children:[f,h,b]}),e[16]=h,e[17]=b,e[18]=p):p=e[18];let j;return e[19]!==s||e[20]!==m||e[21]!==p?(j=t.jsx(ne,{open:s,onOpenChange:m,children:p}),e[19]=s,e[20]=m,e[21]=p,e[22]=j):j=e[22],j}function Zs(i){const e=F.c(2);let s;return e[0]!==i?(s=t.jsx(X1,{...i,inverted:!0}),e[0]=i,e[1]=s):s=e[1],s}const Vs=[{icon:bt,text:"Funds are transferred instantly instead of waiting for your regular payout schedule"},{icon:j1,text:"Applies to all payments you receive using Venue"},{icon:Zs,text:"Instant payouts are available any time for a 3% fee ($1 minimum)"}];function Us(i){const e=F.c(18),{open:s,onClose:l,onEnableInstant:n}=i;let a;e[0]!==l?(a=h=>!h&&l(),e[0]=l,e[1]=a):a=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"h-70 w-full overflow-hidden",children:t.jsx("img",{src:K1,alt:"",className:"h-full w-full object-cover"})}),e[2]=c):c=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("span",{className:"inline-flex h-[18px] w-fit items-center rounded-full bg-ink-acid px-2",children:t.jsx(S,{variant:"label",size:"xs",element:"span",className:"text-[10px] uppercase text-ink-black",children:"Instant Payouts"})}),e[3]=o):o=e[3];let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(S,{variant:"heading",size:"2xl",children:"Get paid instantly"}),t.jsx(S,{className:"tracking-wide",children:"Your deposits, payments, and Quick Sales go straight to your bank as soon as it's collected."})]})]}),e[4]=r):r=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsxs("div",{className:"flex flex-col gap-5",children:[r,t.jsx("div",{className:"flex flex-col gap-4.5",children:Vs.map(Ys)})]}),e[5]=d):d=e[5];let u;e[6]!==l||e[7]!==n?(u=t.jsx(W,{variant:"primary",fullWidth:!0,onClick:()=>{n(),l()},children:"Enable Always Instant"}),e[6]=l,e[7]=n,e[8]=u):u=e[8];let m;e[9]!==l?(m=t.jsx(W,{variant:"tertiary",fullWidth:!0,onClick:l,children:"Not Now"}),e[9]=l,e[10]=m):m=e[10];let f;e[11]!==u||e[12]!==m?(f=t.jsxs(de,{showClose:!1,className:"rounded-t-[32px] border-t-0",children:[c,t.jsxs("div",{className:"flex flex-col gap-8 px-5 pb-2 pt-5",children:[d,t.jsxs(ke,{className:"px-0",children:[u,m]})]})]}),e[11]=u,e[12]=m,e[13]=f):f=e[13];let x;return e[14]!==s||e[15]!==a||e[16]!==f?(x=t.jsx(ne,{open:s,onOpenChange:a,children:f}),e[14]=s,e[15]=a,e[16]=f,e[17]=x):x=e[17],x}function Ys(i){return t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"flex shrink-0 items-center pt-0.5",children:t.jsx(i.icon,{className:"size-6"})}),t.jsx(S,{className:"tracking-wide",children:i.text})]},i.text)}function m1(i){if(i.type==="instant")return"instant";if(i.type==="manual")return"manual";if(!i.recurrenceRrule)return"weekly";const e=_t(i.recurrenceRrule);return e?e.freq:"weekly"}function x1(i){if(!i.recurrenceRrule)return 5;const e=_t(i.recurrenceRrule);return e&&e.freq!=="monthly"&&e.freq!=="daily"?e.dayIndex:5}function h1(i){if(!i.recurrenceRrule)return 1;const e=_t(i.recurrenceRrule);return e?.freq==="monthly"?e.monthDay:1}function qs(i){const e=F.c(120),{open:s,onClose:l,personId:n,schedule:a,externalAccounts:c,canUseInstantPayouts:o,isInstantPaused:r,hasNoEl
1igibleAccount:d,onScheduleUpdated:u}=i,m=r===void 0?!1:r,f=d===void 0?!1:d,{isAdmin:x}=R.useContext(C1);let h;e[0]!==a?(h=m1(a),e[0]=a,e[1]=h):h=e[1];const[C,b]=R.useState(h);let p;e[2]!==c||e[3]!==a?(p=c.find(B=>B.id===a.stripeExternalAccountId)??c[0]??null,e[2]=c,e[3]=a,e[4]=p):p=e[4];const[j,y]=R.useState(p);let N;e[5]!==a?(N=x1(a),e[5]=a,e[6]=N):N=e[6];const[g,k]=R.useState(N);let v;e[7]!==a?(v=h1(a),e[7]=a,e[8]=v):v=e[8];const[P,M]=R.useState(v),[w,T]=R.useState(null),[I,D]=R.useState(!1),[A,L]=R.useState(!1),[_,z]=R.useState(!1),[E,O]=R.useState(null),[$,Z]=R.useState(null),[Y,se]=R.useState(s);s!==Y&&(se(s),s&&(b(m1(a)),k(x1(a)),M(h1(a)),y(c.find(B=>B.id===a.stripeExternalAccountId)??c[0]??null)));let J;e[9]===Symbol.for("react.memo_cache_sentinel")?(J=()=>setTimeout(()=>T(null),0),e[9]=J):J=e[9];const ue=J;let Q;e[10]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>setTimeout(()=>D(!1),0),e[10]=Q):Q=e[10];const fe=Q;let V;e[11]===Symbol.for("react.memo_cache_sentinel")?(V=()=>setTimeout(()=>L(!1),0),e[11]=V):V=e[11];const U=V;let ie;e[12]===Symbol.for("react.memo_cache_sentinel")?(ie=()=>setTimeout(()=>z(!1),0),e[12]=ie):ie=e[12];const ae=ie;let re;e[13]===Symbol.for("react.memo_cache_sentinel")?(re=()=>setTimeout(()=>O(null),0),e[13]=re):re=e[13];const ee=re;let ce;e[14]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>setTimeout(()=>Z(null),0),e[14]=ce):ce=e[14];const me=ce;let G;e[15]!==u?(G={onSuccess:u},e[15]=u,e[16]=G):G=e[16];const{mutate:K,isPending:X}=oe.payouts.updatePayoutSettings.useMutation(G);let he;e[17]!==o||e[18]!==c||e[19]!==f||e[20]!==j?.isInstantPayoutEligible?(he=()=>{if(!o){f&&O("not-supported");return}if(j?.isInstantPayoutEligible){b("instant");return}const B=c.find(Gs);if(!B){O("not-supported");return}Z(B)},e[17]=o,e[18]=c,e[19]=f,e[20]=j?.isInstantPayoutEligible,e[21]=he):he=e[21];const te=he;let je;e[22]!==g||e[23]!==P||e[24]!==n||e[25]!==te||e[26]!==j||e[27]!==C||e[28]!==K?(je=()=>{if(C==="manual"){K({personId:n,type:"manual"});return}if(!j){O("no-account");return}if(C==="instant"){if(!j.isInstantPayoutEligible){te();return}K({personId:n,stripeExternalAccountId:j.id,type:"instant"});return}let B;C==="weekly"?B=d1(g):C==="biweekly"?B=u1(g):C==="daily"?B=o1():B=f1(P),K({personId:n,recurrenceRrule:B,stripeExternalAccountId:j.id,type:"recurring"})},e[22]=g,e[23]=P,e[24]=n,e[25]=te,e[26]=j,e[27]=C,e[28]=K,e[29]=je):je=e[29];const be=je;let xe;e[30]!==g||e[31]!==P?(xe=B=>{let le;return B==="daily"?le=o1():B==="weekly"?le=d1(g):B==="biweekly"?le=u1(g):le=f1(P),Ts(le)},e[30]=g,e[31]=P,e[32]=xe):xe=e[32];const q=xe;let Ce;e[33]!==o?(Ce=o&&t.jsx("button",{type:"button",onClick:B=>{B.stopPropagation(),z(!0)},children:t.jsx(Kt,{size:16})}),e[33]=o,e[34]=Ce):Ce=e[34];let ge;e[35]!==Ce?(ge=t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:["Instant",Ce]}),e[35]=Ce,e[36]=ge):ge=e[36];const we=o?"Payouts at end of day, even on weekends and holidays. Includes fee.":m?"Paused.":f?"Add a bank card to enable.":"Not eligible yet.",qe=!o&&!f;let ve,_e,Re,$e,Qe,Pe,Ie,Le,Ae;if(e[37]!==c.length||e[38]!==q||e[39]!==x||e[40]!==l||e[41]!==s||e[42]!==te||e[43]!==j||e[44]!==C||e[45]!==ge||e[46]!==we||e[47]!==qe){const B=[{type:"instant",label:ge,subtitle:we,disabled:qe},{type:"manual",label:"Manual",subtitle:"Payouts on demand, banked in Venue."},...x?[{type:"daily",label:"Automatic",subtitle:"Send payouts on business days whenever balance is available."}]:[],{type:"weekly",label:"Weekly",subtitle:`Payout every ${q("weekly").replace(/^Every /,"")}.`,rightElement:le=>t.jsx(W,{variant:le?"primary":"tertiary",size:"sm",onClick:Se=>{Se.stopPropagation(),b("weekly"),T("weekly")},children:q("weekly")})},{type:"biweekly",label:"Bi-weekly",subtitle:`Payout ${q("biweekly").replace("Every","every")}.`,rightElement:le=>t.jsx(W,{variant:le?"primary":"tertiary",size:"sm",onClick:Se=>{Se.stopPropagation(),b("biweekly"),T("biweekly")},children:q("biweekly")})},{type:"monthly",label:"Monthly",subtitle:`Payout on the ${q("monthly")}.`,rightElement:le=>t.jsx(W,{variant:le?"primary":"tertiary",size:"sm",onClick:Se=>{Se.stopPropagation(),b("monthly"),D(!0)},children:q("monthly")})}];_e=ne,Le=s,e[57]!==l?(Ae=le=>!le&&l(),e[57]=l,e[58]=Ae):Ae=e[58],ve=de,Qe=!1,e[59]===Symbol.for("react.memo_cache_sentinel")?(Pe=t.jsx(ye,{children:"Payout Scheduling"}),e[59]=Pe):Pe=e[59],e[60]!==c.length||e[61]!==j?(Ie=c.length>0&&j&&t.jsx("div",{className:"px-5 pt-3 pb-2",children:t.jsx("button",{type:"button",className:"w-full flex items-center gap-3 p-3 rounded-2xl border border-ink-black/10 dark:border-ink-white/10 text-left",onClick:()=>L(!0),children:t.jsxs("div",{className:"flex flex-1 items-center gap-3 min-w-0",children:[t.jsx(Jt,{type:j.type,issuerName:j.issuerName}),t.jsxs("div",{className:"flex flex-1 items-baseline justify-between min-w-0 text-sm",children:[t.jsx(S,{variant:"heading",children:j.issuerName??(j.type==="CARD"?"Card":"Bank account")}
1),t.jsxs(S,{variant:"label",children:["â¢â¢â¢â¢ ",j.last4]})]}),t.jsx(yt,{className:"shrink-0 text-ink-black/30 size-4"})]})})}),e[60]=c.length,e[61]=j,e[62]=Ie):Ie=e[62],Re="p-5 pb-0 flex flex-col gap-3",$e=B.map(le=>{const Se=C===le.type,Je=le.disabled===!0;return t.jsxs("button",{type:"button",disabled:Je,className:H("w-full flex items-center gap-5 p-5 rounded-3xl border text-left",Se?"border-2 border-ink-black dark:border-ink-white":"border border-ink-black/15 dark:border-ink-white/15",Je&&"opacity-50"),onClick:()=>{if(!Je){if(le.type==="instant"){te();return}b(le.type)}},children:[Se?t.jsx("div",{className:"w-5 h-5 rounded-full bg-ink-black dark:bg-ink-white flex items-center justify-center flex-shrink-0",children:t.jsx(Nt,{className:"stroke-ink-white dark:stroke-ink-black size-3.5"})}):t.jsx("div",{className:"w-5 h-5 rounded-full border border-ink-black/25 dark:border-ink-white/25 flex-shrink-0"}),t.jsxs("div",{className:H("flex flex-1 flex-col gap-1.5 min-w-0",!Se&&"text-ink-black/60"),children:[t.jsx(vt,{size:"base",inactive:!Se,children:le.label}),t.jsx(S,{size:"xs",inactive:!Se,children:le.subtitle})]}),le.rightElement?.(Se)]},le.type)}),e[37]=c.length,e[38]=q,e[39]=x,e[40]=l,e[41]=s,e[42]=te,e[43]=j,e[44]=C,e[45]=ge,e[46]=we,e[47]=qe,e[48]=ve,e[49]=_e,e[50]=Re,e[51]=$e,e[52]=Qe,e[53]=Pe,e[54]=Ie,e[55]=Le,e[56]=Ae}else ve=e[48],_e=e[49],Re=e[50],$e=e[51],Qe=e[52],Pe=e[53],Ie=e[54],Le=e[55],Ae=e[56];let Be;e[63]!==Re||e[64]!==$e?(Be=t.jsx("div",{className:Re,children:$e}),e[63]=Re,e[64]=$e,e[65]=Be):Be=e[65];let We;e[66]!==be||e[67]!==X?(We=t.jsx(ke,{children:t.jsx(W,{variant:"primary",fullWidth:!0,disabled:X,onClick:be,children:"Update Payouts"})}),e[66]=be,e[67]=X,e[68]=We):We=e[68];let Me;e[69]!==ve||e[70]!==Qe||e[71]!==Pe||e[72]!==Ie||e[73]!==Be||e[74]!==We?(Me=t.jsxs(ve,{showClose:Qe,children:[Pe,Ie,Be,We]}),e[69]=ve,e[70]=Qe,e[71]=Pe,e[72]=Ie,e[73]=Be,e[74]=We,e[75]=Me):Me=e[75];let He;e[76]!==_e||e[77]!==Le||e[78]!==Ae||e[79]!==Me?(He=t.jsx(_e,{open:Le,onOpenChange:Ae,children:Me}),e[76]=_e,e[77]=Le,e[78]=Ae,e[79]=Me,e[80]=He):He=e[80];let Ee;e[81]!==g||e[82]!==w?(Ee=w&&t.jsx(Hs,{open:!!w,onClose:ue,freq:w,selectedDayIndex:g,onSelect:B=>{k(B),ue()}}),e[81]=g,e[82]=w,e[83]=Ee):Ee=e[83];let Ze;e[84]!==P||e[85]!==I?(Ze=I&&t.jsx(Bs,{open:I,onClose:fe,selectedMonthDay:P,onSelect:B=>{M(B),fe()}}),e[84]=P,e[85]=I,e[86]=Ze):Ze=e[86];let Ge;e[87]!==te?(Ge=()=>{ae(),te()},e[87]=te,e[88]=Ge):Ge=e[88];let Ve;e[89]!==_||e[90]!==Ge?(Ve=t.jsx(Us,{open:_,onClose:ae,onEnableInstant:Ge}),e[89]=_,e[90]=Ge,e[91]=Ve):Ve=e[91];const nt=!!E,Ke=E??"not-supported";let De;e[92]!==n||e[93]!==nt||e[94]!==Ke?(De=t.jsx(Ot,{open:nt,onClose:ee,personId:n,reason:Ke}),e[92]=n,e[93]=nt,e[94]=Ke,e[95]=De):De=e[95];const Xe=!!$;let ze;e[96]!==$?(ze=()=>{$&&(y($),b("instant")),me()},e[96]=$,e[97]=ze):ze=e[97];let Oe;e[98]!==$||e[99]!==Xe||e[100]!==ze?(Oe=t.jsx(Ks,{open:Xe,onClose:me,targetAccount:$,onConfirm:ze}),e[98]=$,e[99]=Xe,e[100]=ze,e[101]=Oe):Oe=e[101];let Fe;e[102]!==c||e[103]!==C?(Fe=C==="instant"?c.filter(Qs):c,e[102]=c,e[103]=C,e[104]=Fe):Fe=e[104];const st=j?.id??null;let Ue;e[105]!==C?(Ue=B=>{y(B),U(),C==="instant"&&!B.isInstantPayoutEligible&&(b("manual"),O("not-supported"))},e[105]=C,e[106]=Ue):Ue=e[106];let Te;e[107]!==A||e[108]!==Fe||e[109]!==st||e[110]!==Ue?(Te=t.jsx(F1,{open:A,onClose:U,externalAccounts:Fe,selectedAccountId:st,onSelect:Ue}),e[107]=A,e[108]=Fe,e[109]=st,e[110]=Ue,e[111]=Te):Te=e[111];let Ye;return e[112]!==He||e[113]!==Ee||e[114]!==Ze||e[115]!==Ve||e[116]!==De||e[117]!==Oe||e[118]!==Te?(Ye=t.jsxs(t.Fragment,{children:[He,Ee,Ze,Ve,De,Oe,Te]}),e[112]=He,e[113]=Ee,e[114]=Ze,e[115]=Ve,e[116]=De,e[117]=Oe,e[118]=Te,e[119]=Ye):Ye=e[119],Ye}function Qs(i){return i.isInstantPayoutEligible}function Gs(i){return i.isInstantPayoutEligible}function Ks(i){const e=F.c(20),{open:s,onClose:l,targetAccount:n,onConfirm:a}=i;if(!n)return null;const c=n.issuerName??(n.type==="CARD"?"Card":"Bank account");let o;e[0]!==l?(o=C=>!C&&l(),e[0]=l,e[1]=o):o=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(ye,{children:"Switch payout account?"}),e[2]=r):r=e[2];let d;e[3]!==c||e[4]!==n.last4?(d=t.jsx("div",{className:"p-5 flex flex-col gap-3",children:t.jsxs(S,{size:"sm",children:["Your currently selected account doesnât support instant payouts. Weâll switch your payouts to ",c," ","â¢â¢â¢â¢Â ",n.last4,", which does."]})}),e[3]=c,e[4]=n.last4,e[5]=d):d=e[5];let u;e[6]!==a?(u=t.jsx(W,{variant:"primary",fullWidth:!0,onClick:a,children:"Switch and continue"}),e[6]=a,e[7]=u):u=e[7];let m;
1e[8]!==l?(m=t.jsx(W,{variant:"secondary",fullWidth:!0,onClick:l,children:"Cancel"}),e[8]=l,e[9]=m):m=e[9];let f;e[10]!==u||e[11]!==m?(f=t.jsxs(ke,{children:[u,m]}),e[10]=u,e[11]=m,e[12]=f):f=e[12];let x;e[13]!==d||e[14]!==f?(x=t.jsxs(de,{showClose:!1,children:[r,d,f]}),e[13]=d,e[14]=f,e[15]=x):x=e[15];let h;return e[16]!==s||e[17]!==o||e[18]!==x?(h=t.jsx(ne,{open:s,onOpenChange:o,children:x}),e[16]=s,e[17]=o,e[18]=x,e[19]=h):h=e[19],h}function Xs(i){const e=F.c(47),{onHidden:s}=i,{personId:l}=Tt(),n=!!l;let a;e[0]!==n?(a={enabled:n},e[0]=n,e[1]=a):a=e[1];const{data:c}=oe.getPersonSettings.useQuery(l,a),o=oe.useUtils();let r;e[2]!==o?(r={onSuccess:async()=>{await o.getPersonSettings.invalidate()}},e[2]=o,e[3]=r):r=e[3];const{mutateAsync:d}=oe.updatePerson.useMutation(r),[u,m]=R.useState(!0);let f;e[4]!==s?(f=()=>{m(!1),s()},e[4]=s,e[5]=f):f=e[5];const x=f,h=c?.weekStartDay??0;let C;e[6]!==x||e[7]!==h||e[8]!==l||e[9]!==d?(C=async O=>{if(O===h){x();return}await d({personId:l,weekStartDay:O}),x()},e[6]=x,e[7]=h,e[8]=l,e[9]=d,e[10]=C):C=e[10];const b=C;let p;e[11]!==x?(p=O=>{O||x()},e[11]=x,e[12]=p):p=e[12];let j;e[13]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(ye,{children:"Week starts on"}),e[13]=j):j=e[13];let y;e[14]!==b?(y=()=>b(0),e[14]=b,e[15]=y):y=e[15];const N=h!==0&&"border-ink-black/10 text-ink-black/60 border-1";let g;e[16]!==N?(g=H("w-full py-0 h-auto rounded-3xl border-2 p-5 text-left font-sans border-ink-black",N),e[16]=N,e[17]=g):g=e[17];let k;e[18]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[t.jsx("div",{className:"font-medium",children:"Sunday"}),t.jsx(S,{size:"xs",className:"leading-snug",children:"Calendar weeks begin on Sunday"})]}),e[18]=k):k=e[18];let v;e[19]!==h?(v=h===0&&t.jsx(zt,{size:24}),e[19]=h,e[20]=v):v=e[20];let P;e[21]!==v?(P=t.jsxs("div",{className:"flex flex-row gap-4 items-center flex-1",children:[k,t.jsx("div",{className:"flex items-center",children:v})]}),e[21]=v,e[22]=P):P=e[22];let M;e[23]!==g||e[24]!==P||e[25]!==y?(M=t.jsx(W,{variant:"secondary",onClick:y,fullWidth:!0,className:g,children:P}),e[23]=g,e[24]=P,e[25]=y,e[26]=M):M=e[26];let w;e[27]!==b?(w=()=>b(1),e[27]=b,e[28]=w):w=e[28];const T=h!==1&&"border-ink-black/10 text-ink-black/60 border-1";let I;e[29]!==T?(I=H("w-full py-0 h-auto rounded-3xl border-2 p-5 text-left font-sans border-ink-black",T),e[29]=T,e[30]=I):I=e[30];let D;e[31]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[t.jsx("div",{className:"font-medium",children:"Monday"}),t.jsx(S,{size:"xs",className:"leading-snug",children:"Calendar weeks begin on Monday (ISO 8601)"})]}),e[31]=D):D=e[31];let A;e[32]!==h?(A=h===1&&t.jsx(zt,{size:24}),e[32]=h,e[33]=A):A=e[33];let L;e[34]!==A?(L=t.jsxs("div",{className:"flex flex-row gap-4 items-center flex-1",children:[D,t.jsx("div",{className:"flex items-center",children:A})]}),e[34]=A,e[35]=L):L=e[35];let _;e[36]!==w||e[37]!==I||e[38]!==L?(_=t.jsx(W,{variant:"secondary",onClick:w,fullWidth:!0,className:I,children:L}),e[36]=w,e[37]=I,e[38]=L,e[39]=_):_=e[39];let z;e[40]!==M||e[41]!==_?(z=t.jsxs(de,{showClose:!1,children:[j,t.jsx("div",{className:"p-5 pb-safe-or-5",children:t.jsxs("div",{className:"flex flex-col gap-4",children:[M,_]})})]}),e[40]=M,e[41]=_,e[42]=z):z=e[42];let E;return e[43]!==u||e[44]!==z||e[45]!==p?(E=t.jsx(ne,{open:u,onOpenChange:p,children:z}),e[43]=u,e[44]=z,e[45]=p,e[46]=E):E=e[46],E}function Js(){const i=F.c(2),e=Rt();let s;return i[0]!==e?(s=t.jsx(Xs,{onHidden:()=>{e("../",{preventScrollReset:!0})}}),i[0]=e,i[1]=s):s=i[1],s}const $l=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"}));function el(i){const e=F.c(47),{onHidden:s}=i,{personId:l}=Tt(),n=!!l;let a;e[0]!==n?(a={enabled:n},e[0]=n,e[1]=a):a=e[1];const{data:c}=oe.getPersonSettings.useQuery(l,a),o=oe.useUtils();let r;e[2]!==o?(r={onSuccess:async()=>{await o.getPersonSettings.invalidate()}},e[2]=o,e[3]=r):r=e[3];const{mutateAsync:d}=oe.updatePerson.useMutation(r),[u,m]=R.useState(!0);let f;e[4]!==s?(f=()=>{m(!1),s()},e[4]=s,e[5]=f):f=e[5];const x=f,h=c?.use24hClock??!1;let C;e[6]!==x||e[7]!==c||e[8]!==l||e[9]!==d?(C=async O=>{if(c&&O===c.use24hClock){x();return}await d({personId:l,use24hClock:O}),x()},e[6]=x,e[7]=c,e[8]=l,e[9]=d,e[10]=C):C=e[10];const b=C;let p;e[11]!==x?(p=O=>{O||x()},e[11]=x,e[12]=p):p=e[12];let j;e[13]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(ye,{children:"Time format"}),e[13]=j):j=e[13];let y;e[14]!==b?(y=()=>b(!1),e[14]=b,e[15]=y):y=e[15];const N=h&&"border-ink-black/10 text-ink-black/60 border-1";let g;e[16]!==N?(g=H("w-full py-0 h-auto rounded-3xl border-2 p-5 text-left font-sans border-ink-black",N),e[16]=N,e[17]=g):g=e[17];let k;e[18]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[t.jsx("div",{className:"font-medium",children:"12-hour"}),t.jsx(S,{size:"xs",className:"leading-snug",children:"Times shown as 1:00 PM, 2:30 AM"})]}),e[18]=k):k=e[18];let v;e[19]!==h?(v=!h&&t.jsx(zt,{size:24}),e[19]=h,e[20]=v):v=e[20];let P;e[21]!==v?(P=t.jsxs("div",{className:"flex flex-row gap-4 items-center flex-1",children:[k,t.jsx("div",{className:"flex items-center",children:v})]}),e[21]=v,e[22]=P):P=e[22];let M;e[23]!==g||e[24]!==P||e[25]!==y?(M=t.jsx(W,{variant:"secondary",onClick:y,fullWidth:!0,className:g,children:P}),e[23]=g,e[24]=P,e[25]=y,e[26]=M):M=e[26];let w;e[27]!==b?(w=()=>b(!0),e[27]=b,e[28]=w):w=e[28];const T=!h&&"border-ink-black/10 text-ink-black/60 border-1";let I;e[29]!==T?(I=H("w-full py-0 h-auto rounded-3xl border-2 p-5 text-left font-sans border-ink-black",T),e[29]=T,e[30]=I):I=e[30];let D;e[31]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[t.jsx("div",{className:"font-medium",children:"24-hour"}),t.jsx(S,{size:"xs",className:"leading-snug",children:"Times shown as 13:00, 02:30"})]}),e[31]=D):D=e[31];let A;e[32]!==h?(A=h&&t.jsx(zt,{size:24}),e[32]=h,e[33]=A):A=e[33];let L;e[34]!==A?(L=t.jsxs("div",{className:"flex flex-row gap-4 items-center flex-1",children:[D,t.jsx("div",{className:"flex items-center",children:A})]}),e[34]=A,e[35]=L):L=e[35];let _;e[36]!==w||e[37]!==I||e[38]!==L?(_=t.jsx(W,{variant:"secondary",onClick:w,fullWidth:!0,className:I,children:L}),e[36]=w,e[37]=I,e[38]=L,e[39]=_):_=e[39];let z;
1e[40]!==M||e[41]!==_?(z=t.jsxs(de,{showClose:!1,children:[j,t.jsx("div",{className:"p-5 pb-safe-or-5",children:t.jsxs("div",{className:"flex flex-col gap-4",children:[M,_]})})]}),e[40]=M,e[41]=_,e[42]=z):z=e[42];let E;return e[43]!==u||e[44]!==z||e[45]!==p?(E=t.jsx(ne,{open:u,onOpenChange:p,children:z}),e[43]=u,e[44]=z,e[45]=p,e[46]=E):E=e[46],E}function tl(){const i=F.c(2),e=Rt();let s;return i[0]!==e?(s=t.jsx(el,{onHidden:()=>{e("../",{preventScrollReset:!0})}}),i[0]=e,i[1]=s):s=i[1],s}const Bl=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"}));function Wl({item:i,personId:e,handle:s,open:l,onOpenChange:n,iconClassName:a,onDelete:c}){const[o,r]=R.useState(!1),d=l!==void 0,u=d?l:o,m=d?n:r,f=p1(),x=Rt(),{toast:h}=J1(),C=oe.useUtils(),{mutateAsync:b}=oe.updateHomepagePageAndLink.useMutation({onSuccess:async()=>{await C.getPersonalHomepagePagesAndLinks.invalidate()}}),p=()=>{const y=i.slug||i.id;x(f("artistWebsiteEditPage",{personId:e,handle:s,page:y}),{viewTransition:!0,state:{fromApp:!0}}),m(!1)},j=async()=>{try{await b({homepagePageAndLinkId:i.id,isArchived:!0}),h({title:"Deleted",description:`Your ${i.isLink?"link":"page"} has been deleted.`,variant:"success"}),c&&c()}catch{h({title:"Error",description:"Something went wrong. Please try again.",variant:"error"})}m(!1)};return t.jsxs(ne,{open:u,onOpenChange:m,children:[t.jsx(at,{children:t.jsx(es,{className:a,size:32})}),t.jsx(de,{showClose:!1,className:"py-8 px-5",children:t.jsxs("div",{className:"flex flex-col gap-4 w-full",children:[t.jsx(W,{variant:"secondary",fullWidth:!0,onClick:p,className:"text-ink-forest",children:"Edit"}),t.jsx(W,{variant:"secondary",fullWidth:!0,onClick:j,className:"text-ink-destructive",children:"Delete"})]})})]})}const Ft=i=>{const e=et(i.arrivedAt,"yyyy-w"),s=new Date,l=et(s,"yyyy-w");if(e===l)return"This week";const n=Cs(s,-7),a=et(n,"yyyy-w");return e===a?"Last week":ps(i.arrivedAt)?`Week of ${et(i.arrivedAt,"MMMM d")}`:`Week of ${et(bs(i.arrivedAt),"MMMM d")}`};function T1(i){const e=F.c(37),{payout:s,onClick:l}=i;let n;e[0]!==s.status?(n=s.status==="PAID"&&t.jsx("div",{className:"rounded-full w-8 h-8 bg-ink-lime/25 flex items-center justify-center",children:t.jsx(Nt,{className:"stroke-ink-forest w-3 h-3"})}),e[0]=s.status,e[1]=n):n=e[1];let a;e[2]!==s.status?(a=(s.status==="IN_TRANSIT"||s.status==="PENDING")&&t.jsx("div",{className:"rounded-full w-8 h-8 bg-ink-dodger/25 flex items-center justify-center",children:t.jsx(rs,{className:"stroke-ink-forest w-3 h-3"})}),e[2]=s.status,e[3]=a):a=e[3];let c;e[4]!==s.status?(c=(s.status==="CANCELED"||s.status==="FAILED")&&t.jsx("div",{className:"rounded-full w-8 h-8 bg-ink-destructive/25 flex items-center justify-center",children:t.jsx(cs,{className:"stroke-ink-destructive w-3 h-3"})}),e[4]=s.status,e[5]=c):c=e[5];let o;e[6]!==s.status?(o=s.status==="PAID"&&t.jsx(t.Fragment,{children:"Payout deposited"}),e[6]=s.status,e[7]=o):o=e[7];let r;e[8]!==s.status?(r=(s.status==="IN_TRANSIT"||s.status==="PENDING")&&t.jsxs("span",{className:"inline-flex items-center gap-1",children:["Payout pending",t.jsx(os,{className:"w-3 h-3 text-ink-black-400"})]}),e[8]=s.status,e[9]=r):r=e[9];let d;e[10]!==s.status?(d=s.status==="CANCELED"&&t.jsx(t.Fragment,{children:"Payout cancelled"}),e[10]=s.status,e[11]=d):d=e[11];let u;e[12]!==s.status?(u=s.status==="FAILED"&&t.jsx(t.Fragment,{children:"Payout failed"}),e[12]=s.status,e[13]=u):u=e[13];let m;e[14]!==o||e[15]!==r||e[16]!==d||e[17]!==u?(m=t.jsxs(S,{size:"base",children:[o,r,d,u]}),e[14]=o,e[15]=r,e[16]=d,e[17]=u,e[18]=m):m=e[18];let f;e[19]!==s.arrivedAt?(f=et(s.arrivedAt,"MMMM d 'at' h:mm a"),e[19]=s.arrivedAt,e[20]=f):f=e[20];let x;e[21]!==f?(x=t.jsx(S,{size:"sm",className:"text-ink-black-600",children:f}),e[21]=f,e[22]=x):x=e[22];let h;e[23]!==x||e[24]!==m?(h=t.jsxs("div",{className:"flex-1 flex flex-col gap-2",children:[m,x]}),e[23]=x,e[24]=m,e[25]=h):h=e[25];let C;e[26]!==s.amountCents||e[27]!==s.currency?(C=t.jsx("div",{children:t.jsx(Ne,{amountCents:s.amountCents,currency:s.currency,showFraction:!0})}),e[26]=s.amountCents,e[27]=s.currency,e[28]=C):C=e[28];let b;e[29]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{children:t.jsx(yt,{className:"stroke-ink-black-400 w-4 h-4"})}),e[29]=b):b=e[29];let p;return e[30]!==l||e[31]!==n||e[32]!==h||e[33]!==C||e[34]!==a||e[35]!==c?(p=t.jsxs("button",{className:"appearance-none w-full text-start flex flex-row items-center gap-2 py-4 px-4",onClick:l,type:"button",children:[n,a,c,h,C,b]}),e[30]=l,e[31]=n,e[32]=h,e[33]=C,e[34]=a,e[35]=c,e[36]=p):p=e[36],p}function sl(i){const e=F.c(4),{payout:s}=i;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(S,{size:"lg",className:"py-4 leading-snug",children:"You received"}),e[0]=l):l=e[0];let n;return e[1]!==s.amountCents||e[2]!==s.currency?(n=t.jsx("div",{className:"p-4 flex flex-col gap-4",children:t.jsxs("div",{className:"grid grid-cols-[auto_200px] px-4",children:[l,t.jsx(S,{element:"div",size:"lg",className:"py-4 text-right leading-snug",children:t.jsx(Ne,{amountCents:s.amountCents,currency:s.currency,showFraction:!0})})]})}),e[1]=s.amountCents,e[2]=s.currency,e[3]=n):n=e[3],n}function ll(i){const e=F.c(42),{personId:s}
1=i,[l,n]=R.useState("");let a;e[0]!==s?(a={personId:s},e[0]=s,e[1]=a):a=e[1];const c=!!s;let o;e[2]!==c?(o={enabled:c,getNextPageParam:al},e[2]=c,e[3]=o):o=e[3];const{data:r,fetchNextPage:d,isFetchingNextPage:u,isLoading:m}=oe.earnings.getPageOfPayouts.useInfiniteQuery(a,o);let f;e:{if(!r?.pages.length){let E;e[4]===Symbol.for("react.memo_cache_sentinel")?(E=[[],null,!1],e[4]=E):E=e[4],f=E;break e}const D=r.pages[r.pages.length-1];let A,L;e[5]!==l||e[6]!==r.pages?(A=(r?.pages??[]).flatMap(nl),L=l?A.find(E=>E.id===l)??null:null,e[5]=l,e[6]=r.pages,e[7]=A,e[8]=L):(A=e[7],L=e[8]);const _=L;let z;e[9]!==A||e[10]!==_||e[11]!==D.hasMore?(z=[A,_,D.hasMore],e[9]=A,e[10]=_,e[11]=D.hasMore,e[12]=z):z=e[12],f=z}const[x,h,C]=f,b=m||u;let p;e[13]!==b||e[14]!==x.length?(p=!b&&x.length===0&&t.jsxs("div",{className:"h-[250px] flex flex-col items-center justify-center gap-3 text-ink-black-400 stroke-ink-black-200 text-center",children:[t.jsx(g1,{className:"size-6"}),t.jsx(S,{variant:"heading",size:"base",children:"Nothing to see here"}),t.jsx(S,{size:"base",className:"max-w-[140px]",children:"Future payouts will appear here"})]}),e[13]=b,e[14]=x.length,e[15]=p):p=e[15];let j;e[16]!==x?(j=x.map((D,A)=>{const L=Ft(D),_=A===0?null:Ft(x[A-1]),z=L!==_;return t.jsxs(R.Fragment,{children:[z&&t.jsx("div",{className:"mt-4",children:t.jsx(k1,{label:L})}),!z&&t.jsx("div",{className:"h-px bg-ink-black/10"}),t.jsx(T1,{onClick:()=>n(D.id),payout:D})]},D.id)}),e[16]=x,e[17]=j):j=e[17];let y;e[18]!==b?(y=b&&t.jsxs("div",{className:"w-full flex flex-row items-center gap-2 py-4 px-4",children:[t.jsx(tt,{className:"w-8 h-8 rounded-full"}),t.jsxs("div",{className:"flex-1 flex flex-col gap-2",children:[t.jsx(tt,{className:"h-4 w-[160px]"}),t.jsx(tt,{className:"h-3 w-[100px]"})]}),t.jsx(tt,{className:"h-4 w-[80px] mr-4"})]}),e[18]=b,e[19]=y):y=e[19];let N;e[20]!==d||e[21]!==C||e[22]!==p||e[23]!==j||e[24]!==y?(N=t.jsxs(v1,{hasMore:C,onLoadMore:d,children:[p,j,y]}),e[20]=d,e[21]=C,e[22]=p,e[23]=j,e[24]=y,e[25]=N):N=e[25];const g=!!h;let k;e[26]===Symbol.for("react.memo_cache_sentinel")?(k=D=>{D||n("")},e[26]=k):k=e[26];let v;e[27]!==h?(v=!!h&&t.jsx(t.Fragment,{children:et(h.arrivedAt,"MMMM d yyyy")}),e[27]=h,e[28]=v):v=e[28];let P;e[29]!==v?(P=t.jsx(hs,{className:"border-b-0",children:t.jsx($t,{children:v})}),e[29]=v,e[30]=P):P=e[30];let M;e[31]!==h?(M=!!h&&t.jsx(t.Fragment,{children:t.jsx(sl,{payout:h})}),e[31]=h,e[32]=M):M=e[32];let w;e[33]!==P||e[34]!==M?(w=t.jsxs(Gt,{side:"bottom",children:[P,M]}),e[33]=P,e[34]=M,e[35]=w):w=e[35];let T;e[36]!==w||e[37]!==g?(T=t.jsx(P1,{open:g,onOpenChange:k,children:w}),e[36]=w,e[37]=g,e[38]=T):T=e[38];let I;return e[39]!==T||e[40]!==N?(I=t.jsxs(t.Fragment,{children:[N,T]}),e[39]=T,e[40]=N,e[41]=I):I=e[41],I}function nl(i){return i.items}function al(i){return i.hasMore?i.items[i.items.length-1].id:null}function R1(i){const e=F.c(6),{open:s,onOpenChange:l}=i;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(ye,{children:"Why is my balance available soon?"}),e[0]=n):n=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsxs("div",{className:"flex flex-col gap-3 px-5 pt-4 pb-2",children:[t.jsx(S,{variant:"body",size:"base",children:"To prevent fraud, Stripe holds money for 1â2 business days before it's paid out. If your account qualifies, you can pay out available soon balances with instant payouts."}),t.jsx(S,{variant:"body",size:"base",children:"Getting paid for the first time? It can take up to 5 business days because of banking verifications with Stripe."})]}),e[1]=a):a=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs(de,{showClose:!1,children:[n,a,t.jsx(ke,{children:t.jsx(wt,{asChild:!0,children:t.jsx(W,{variant:"primary",children:"Got it"})})})]}),e[2]=c):c=e[2];let o;return e[3]!==l||e[4]!==s?(o=t.jsx(ne,{open:s,onOpenChange:l,children:c}),e[3]=l,e[4]=s,e[5]=o):o=e[5],o}const il=[{value:"instant",label:"Instant",subtitle:"Immediately available",badge:`${Is} FEE`,badgeVariant:"fee"},{value:"standard",label:"Standard",subtitle:"Deposited in 1-2 business days",badge:"FREE",badgeVariant:"free"}];function rl(i){const e=F.c(15),{open:s,onClose:l,selectedEta:n,onSelect:a,isInstantDisabled:c,isInstantPaused:o}=i,r=c===void 0?!1:c,d=o===void 0?!1:o;let u;e[0]!==l?(u=C=>!C&&l(),e[0]=l,e[1]=u):u=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(ye,{children:"ETA"}),e[2]=m):m=e[2];let f;e[3]!==r||e[4]!==d||e[5]!==l||e[6]!==a||e[7]!==n?(f=il.map(C=>{const b=n===C.value,p=C.value==="instant"&&r,j=p?d?"Paused":"Not eligible yet"
1:C.subtitle;return t.jsxs("button",{type:"button",disabled:p,className:H("w-full flex items-center gap-3 p-5 rounded-3xl border text-left",b?"border-2 border-ink-black dark:border-ink-white":"border border-ink-black/15 dark:border-ink-white/15",p&&"opacity-50"),onClick:()=>{p||(a(C.value),l())},children:[b?t.jsx("div",{className:"w-5 h-5 rounded-full bg-ink-black dark:bg-ink-white flex items-center justify-center flex-shrink-0",children:t.jsx(Nt,{className:"stroke-ink-white dark:stroke-ink-black size-3"})}):t.jsx("div",{className:"w-5 h-5 rounded-full border border-ink-black/25 dark:border-ink-white/25 flex-shrink-0"}),t.jsxs("div",{className:"flex flex-1 flex-col gap-1.5",children:[t.jsx(vt,{size:"base",children:C.label}),t.jsx(S,{size:"xs",children:j})]}),!p&&t.jsx("span",{className:H("text-xs font-label px-1.5 py-1 rounded-full flex-shrink-0","bg-ink-black/5"),children:C.badge})]},C.value)}),e[3]=r,e[4]=d,e[5]=l,e[6]=a,e[7]=n,e[8]=f):f=e[8];let x;e[9]!==f?(x=t.jsxs(de,{showClose:!1,children:[m,t.jsx("div",{className:"p-5 pb-safe-or-5 flex flex-col gap-3",children:f})]}),e[9]=f,e[10]=x):x=e[10];let h;return e[11]!==s||e[12]!==u||e[13]!==x?(h=t.jsx(ne,{open:s,onOpenChange:u,children:x}),e[11]=s,e[12]=u,e[13]=x,e[14]=h):h=e[14],h}function cl(i,e){return e==="standard"?i:Ls(i)}function $1(i){const e=F.c(149),{open:s,onClose:l,personId:n,availableAmountCents:a,instantlyAvailableAmountCents:c,pendingAmountCents:o,externalAccounts:r,stripeExternalAccountId:d,scheduleType:u,currency:m}=i;let f;e[0]!==n?(f={personId:n},e[0]=n,e[1]=f):f=e[1];let x;e[2]!==s?(x={enabled:s},e[2]=s,e[3]=x):x=e[3];const{data:h}=oe.getInstantPayoutDetails.useQuery(f,x),C=h?.canUseInstantPayouts===!0&&h.status==="eligible"&&h.externalAccounts.length>0,b=h?.status==="ineligible",[p,j]=R.useState("standard");let y,N;e[4]!==C||e[5]!==s||e[6]!==u?(y=()=>{s&&u==="instant"&&C&&j("instant")},N=[s,u,C],e[4]=C,e[5]=s,e[6]=u,e[7]=y,e[8]=N):(y=e[7],N=e[8]),R.useEffect(y,N);let g;e[9]!==r||e[10]!==d?(g=r.find(pe=>pe.id===d)??r[0]??null,e[9]=r,e[10]=d,e[11]=g):g=e[11];const[k,v]=R.useState(g),[P,M]=R.useState(!1),[w,T]=R.useState(!1),[I,D]=R.useState(!1),[A,L]=R.useState(null),[_,z]=R.useState(null),[E,O]=R.useState(!1),[$,Z]=R.useState(!1),Y=oe.useUtils(),{isCreatingLink:se,isRedirecting:J,redirectToStripe:ue}=A1(n);let Q;e[12]===Symbol.for("react.memo_cache_sentinel")?(Q=pe=>{const lt=y1(pe);z(lt??pe.message)},e[12]=Q):Q=e[12];const fe=Q;let V;e[13]!==l||e[14]!==n||e[15]!==Y?(V=()=>{Y.payouts.getUpcomingPayoutSummary.invalidate({personId:n}),Y.earnings.getPageOfPayouts.invalidate({personId:n}),l()},e[13]=l,e[14]=n,e[15]=Y,e[16]=V):V=e[16];const U=V;let ie;e[17]!==U?(ie={onSuccess:U,onError:fe},e[17]=U,e[18]=ie):ie=e[18];const{mutateAsync:ae,isPending:re}=oe.payouts.createManualPayout.useMutation(ie);let ee;e[19]!==U?(ee={onSuccess:U,onError:fe},e[19]=U,e[20]=ee):ee=e[20];const{mutateAsync:ce,isPending:me}=oe.createInstantPayout.useMutation(ee),G=re||me;let K,X,he;if(e[21]!==m||e[22]!==p||e[23]!==r||e[24]!==h){X=h?.status==="eligible"?new Set(h.externalAccounts.map(dl)):null;let pe;e[28]!==m?(pe=lt=>lt.currency.toUpperCase()===m,e[28]=m,e[29]=pe):pe=e[29],K=r.filter(pe),he=p==="instant"&&X?K.filter(lt=>X.has(lt.id)):K,e[21]=m,e[22]=p,e[23]=r,e[24]=h,e[25]=K,e[26]=X,e[27]=he}else K=e[25],X=e[26],he=e[27];const te=he,je=p==="standard"&&k!=null&&k.isStandardPayoutEligible===!1,be=h?.status==="eligible"?h.amountAvailableCents:c,xe=p==="instant"?be:a,q=A?Math.min(A,xe):xe,Ce=cl(q,p),ge=h?.status==="eligible"?h.limitCents:0,we=h?.status==="eligible"?h.usedBalanceCents:0,qe=ge-we,ve=p==="instant"&&ge>0&&q>=qe,_e=p==="instant"?"Instant":"1-2 business days",Re=p==="instant"?a+o-c:o;let $e;e[30]!==q||e[31]!==ce||e[32]!==ae||e[33]!==m||e[34]!==p||e[35]!==n||e[36]!==k?.id||e[37]!==d?($e=async()=>{z(null);const pe=k?.id??d;p==="instant"?await ce({amountCents:q,currency:m,externalAccountId:pe,personId:n}):await ae({amountCents:q,personId:n,stripeExternalAccountId:pe})},e[30]=q,e[31]=ce,e[32]=ae,e[33]=m,e[34]=p,e[35]=n,e[36]=k?.id,e[37]=d,e[38]=$e):$e=e[38];const Qe=$e;let Pe;
1e[39]!==l?(Pe=pe=>!pe&&l(),e[39]=l,e[40]=Pe):Pe=e[40];let Ie;e[41]===Symbol.for("react.memo_cache_sentinel")?(Ie=t.jsx(ye,{children:"Payout"}),e[41]=Ie):Ie=e[41];let Le;e[42]!==k?(Le=k&&t.jsx("button",{type:"button",className:"w-full flex items-center gap-3 p-3 rounded-2xl border border-ink-black/10 dark:border-ink-white/10 text-left",onClick:()=>M(!0),children:t.jsxs("div",{className:"flex flex-1 items-center gap-3 min-w-0",children:[t.jsx(Jt,{type:k.type,issuerName:k.issuerName}),t.jsxs("div",{className:"flex flex-1 items-baseline justify-between min-w-0 text-sm",children:[t.jsx(S,{variant:"heading",children:k.issuerName??(k.type==="CARD"?"Card":"Bank account")}),t.jsxs(S,{variant:"label",children:["â¢â¢â¢â¢ ",k.last4]})]}),t.jsx(yt,{className:"shrink-0 text-ink-black/30 size-4"})]})}),e[42]=k,e[43]=Le):Le=e[43];let Ae;e[44]!==se||e[45]!==J||e[46]!==je||e[47]!==ue?(Ae=je&&t.jsx("div",{className:"rounded-xl bg-ink-black-50 p-3",children:t.jsxs(S,{size:"sm",className:"text-ink-black-600",children:["Bank cards don't support standard payouts. Add a payout account using bank account numbers."," ",t.jsx("button",{type:"button",disabled:se||J,onClick:()=>{ue()},children:t.jsx(S,{variant:"label",size:"sm",element:"span",className:"underline text-ink-lean",children:"Add account"})})]})}),e[44]=se,e[45]=J,e[46]=je,e[47]=ue,e[48]=Ae):Ae=e[48];let Be,We;e[49]===Symbol.for("react.memo_cache_sentinel")?(Be=()=>T(!0),We=t.jsx(S,{variant:"label",children:"ETA"}),e[49]=Be,e[50]=We):(Be=e[49],We=e[50]);let Me;e[51]!==_e?(Me=t.jsx(S,{className:"font-normal",children:_e}),e[51]=_e,e[52]=Me):Me=e[52];let He;e[53]===Symbol.for("react.memo_cache_sentinel")?(He=t.jsx(ds,{className:"text-ink-black-400 size-3.5"}),e[53]=He):He=e[53];let Ee;e[54]!==Me?(Ee=t.jsxs("button",{type:"button",className:"w-full flex items-center justify-between text-left",onClick:Be,children:[We,t.jsxs("div",{className:"flex items-center gap-1",children:[Me,He]})]}),e[54]=Me,e[55]=Ee):Ee=e[55];let Ze;e[56]===Symbol.for("react.memo_cache_sentinel")?(Ze=t.jsx(S,{variant:"label",children:"Amount"}),e[56]=Ze):Ze=e[56];const Ge=xe<=0;let Ve;e[57]===Symbol.for("react.memo_cache_sentinel")?(Ve=()=>D(!0),e[57]=Ve):Ve=e[57];const nt=xe<=0?"text-ink-black-400":"underline decoration-solid decoration-ink-lean text-ink-lean";let Ke;e[58]!==nt?(Ke=t.jsx(S,{variant:"label",size:"xs",className:nt,children:"Edit"}),e[58]=nt,e[59]=Ke):Ke=e[59];let De;e[60]!==Ge||e[61]!==Ke?(De=t.jsx("button",{type:"button",disabled:Ge,onClick:Ve,children:Ke}),e[60]=Ge,e[61]=Ke,e[62]=De):De=e[62];let Xe;e[63]!==q||e[64]!==m?(Xe=t.jsx(S,{variant:"heading",size:"base",children:t.jsx(Ne,{amountCents:q,currency:m,showFraction:!0})}),e[63]=q,e[64]=m,e[65]=Xe):Xe=e[65];let ze;e[66]!==De||e[67]!==Xe?(ze=t.jsxs("div",{className:"flex items-center justify-between",children:[Ze,t.jsxs("div",{className:"flex items-center gap-2",children:[De,Xe]})]}),e[66]=De,e[67]=Xe,e[68]=ze):ze=e[68];let Oe;e[69]!==m||e[70]!==Re?(Oe=Re>0&&t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(S,{variant:"label",children:"Available soon"}),t.jsx("button",{type:"button","aria-label":"Why is this not available yet?",onClick:()=>Z(!0),children:t.jsx(Kt,{size:16})})]}),t.jsx(S,{variant:"heading",size:"base",inactive:!0,children:t.jsx(Ne,{amountCents:Re,currency:m,showFraction:!0})})]}),e[69]=m,e[70]=Re,e[71]=Oe):Oe=e[71];let Fe;e[72]!==m||e[73]!==ve||e[74]!==ge||e[75]!==we?(Fe=ve&&t.jsxs("div",{className:"rounded-xl bg-ink-black-50 p-3 flex items-center justify-between gap-3",children:[t.jsxs(S,{size:"sm",className:"text-ink-black-600",children:["Instant limit used:"," ",t.jsx(Ne,{amountCents:we,currency:m})," ","of"," ",t.jsx(Ne,{amountCents:ge,currency:m})]}),we>=ge&&t.jsx("button",{type:"button",onClick:ol,className:"shrink-0",children:t.jsx(S,{variant:"label",size:"sm",element:"span",className:"underline text-ink-lean",children:"Request more"})})]}),e[72]=m,e[73]=ve,e[74]=ge,e[75]=we,e[76]=Fe):Fe=e[76];let st;e[77]===Symbol.for("react.memo_cache_sentinel")?(st=t.jsx("div",{className:"border-b border-ink-black/20 border-dashed"}),e[77]=st):st=e[77];let Ue;e[78]===Symbol.for("react.memo_cache_sentinel")?(Ue=t.jsx(S,{variant:"label",children:"You'll Receive"}),e[78]=Ue):Ue=e[78];let Te;e[79]!==m||e[80]!==Ce?(Te=t.jsxs("div",{className:"flex items-center justify-between",children:[Ue,t.jsx(S,{variant:"heading",size:"base",children:t.jsx(Ne,{amountCents:Ce,currency:m,showFraction:!0})})]}),e[79]=m,e[80]=Ce,e[81]=Te):Te=e[81];let Ye;e[82]!==_?(Ye=_&&t.jsx(S,{size:"sm",className:"text-ink-destructive mt-2",children:_}),e[82]=_,e[83]=Ye):Ye=e[83];let B;e[84]!==Le||e[85]!==Ae||e[86]!==Ee||e[87]!==ze||e[88]!==Oe||e[89]!==Fe||e[90]!==Te||e[91]!==Ye?(B=t.jsxs("div",{className:"p-5 pb-safe-or-5 flex flex-col gap-6",children:[Le,Ae,Ee,ze,Oe,Fe,st,Te,Ye]}),e[84]=Le,e[85]=Ae,e[86]=Ee,e[87]=ze,e[88]=Oe,e[89]=Fe,e[90]=Te,e[91]=Ye,e[92]=B):B=e[92];const le=G||q<=0||je,Se=p==="instant"?"flex items-center gap-1.5":void 0;let Je;e[93]!==p?(Je=p==="instant"&&t.jsx(bt,{className:"size-3.5"}),e[93]=p,e[94]=Je):Je=e[94];let it;e[95]!==q||e[96]!==p||e[97]!==G||e[98]!==Ce?(it=G?"Processing...":p==="instant"?`Instant $${(Ce/100).toFixed(2)}`:`Payout $${(q/100).toFixed(2)}`,e[95]=q,e[96]=p,e[97]=G,e[98]=Ce,e[99]=it):it=e[99];let rt;e[100]!==Qe||e[101]!==le||e[102]!==Se||e[103]!==Je||e[104]!==it?(rt=t.jsx(ke,{children:t.jsxs(W,{variant:"primary",fullWidth:!0,disabled:le,onClick:Qe,className:Se,children:[Je,it]})}),e[100]=Qe,e[101]=le,e[102]=Se,e[103]=Je,e[104]=it,e[105]=rt):rt=e[105];let ct;e[106]!==B||e[107]!==rt?(ct=t.jsxs(de,{showClose:!1,children:[Ie,B,rt]}),e[106]=B,e[107]=rt,e[108]=ct):ct=e[108];let ot;e[109]!==s||e[110]!==Pe||e[111]!==ct?(ot=t.jsx(ne,{open:s,onOpenChange:Pe,children:ct}),e[109]=s,e[110]=Pe,e[111]=ct,e[112]=ot):ot=e[112];let Pt;e[113]===Symbol.for("react.memo_cache_sentinel")?(Pt=()=>T(!1),e[113]=Pt):Pt=e[113];const Wt=!C;let dt;e[114]!==K||e[115]!==X||e[116]!==C||e[117]!==k?(dt=pe=>{if(pe==="instant"&&!C){T(!1),O(!0);return}if(j(pe),L(null),pe==="instant"&&X&&(!k||!X.has(k.id))){const lt=K.find(B1=>X.has(B1.id));lt&&v(lt)}T(!1)},e[114]=K,e[115]=X,e[116]=C,e[117]=k,e[118]=dt):dt=e[118];let ut;e[119]!==p||e[120]!==w||e[121]!==b||e[122]!==Wt||e[123]!==dt?(ut=t.jsx(rl,{open:w,onClose:Pt,isInstantDisabled:Wt,isInstantPaused:b,selectedEta:p,onSelect:dt}),e[119]=p,e[120]=w,e[121]=b,e[122]=Wt,e[123]=dt,e[124]=ut):ut=e[124];let At;e[125]===Symbol.for("react.memo_cache_sentinel")?(At=()=>D(!1),e[125]=At):At=e[125];let ft;e[126]!==m||e[127]!==I||e[128]!==xe?(ft=t.jsx(L1,{open:I,onClose:At,maxAmountCents:xe,currency:m,onConfirm:L}),e[126]=m,e[127]=I,e[128]=xe,e[129]=ft):ft=e[129];let It;e[130]===Symbol.for("react.memo_cache_sentinel")?(It=()=>M(!1),e[130]=It):It=e[130];const Ht=k?.id??null;let Lt;e[131]===Symbol.for("react.memo_cache_sentinel")?(Lt=pe=>{v(pe),M(!1)},e[131]=Lt):Lt=e[131];let mt;e[132]!==P||e[133]!==te||e[134]!==Ht?(mt=t.jsx(F1,{open:P,onClose:It,externalAccounts:te,selectedAccountId:Ht,onSelect:Lt}),e[132]=P,e[133]=te,e[134]=Ht,e[135]=mt):mt=e[135];let Mt;e[136]===Symbol.for("react.memo_cache_sentinel")?(Mt=()=>O(!1),e[136]=Mt):Mt=e[136];let xt;
1e[137]!==E||e[138]!==n?(xt=t.jsx(Ot,{open:E,onClose:Mt,personId:n}),e[137]=E,e[138]=n,e[139]=xt):xt=e[139];let ht;e[140]!==$?(ht=t.jsx(R1,{open:$,onOpenChange:Z}),e[140]=$,e[141]=ht):ht=e[141];let Et;return e[142]!==ot||e[143]!==ut||e[144]!==ft||e[145]!==mt||e[146]!==xt||e[147]!==ht?(Et=t.jsxs(t.Fragment,{children:[ot,ut,ft,mt,xt,ht]}),e[142]=ot,e[143]=ut,e[144]=ft,e[145]=mt,e[146]=xt,e[147]=ht,e[148]=Et):Et=e[148],Et}function ol(){return Qt.show()}function dl(i){return i.id}function ul(i){const e=F.c(56),{open:s,onClose:l,personId:n}=i,[a,c]=R.useState(!1),[o,r]=R.useState(!1);if(i.variant==="completed"){const{payout:_}=i,z=_?.currency??"CAD",E=_?.status==="PENDING"||_?.status==="IN_TRANSIT";let O;e[0]!==l?(O=Y=>!Y&&l(),e[0]=l,e[1]=O):O=e[1];let $;e[2]!==z||e[3]!==E||e[4]!==l||e[5]!==_?($=_&&t.jsx(r1,{title:E?"Pending Payout":"Payout Details",items:[{label:E?"Expected":"Deposited",textValue:et(_.arrivedAt,"MMM d, yyyy")},..._.destinationLast4?[{label:"Account",textValue:`${_.destinationIssuerName?`${_.destinationIssuerName} `:""}â¢â¢â¢â¢ ${_.destinationLast4}`,separator:"dotted"}]:[{label:"",textValue:"",separator:"solid"}]],total:{label:E?"Payout Amount":"You Received",amountCents:_.amountCents,currency:z},footer:t.jsx(W,{variant:"tertiary",fullWidth:!0,onClick:l,children:"Dismiss"})}),e[2]=z,e[3]=E,e[4]=l,e[5]=_,e[6]=$):$=e[6];let Z;return e[7]!==s||e[8]!==O||e[9]!==$?(Z=t.jsx(ne,{open:s,onOpenChange:O,children:$}),e[7]=s,e[8]=O,e[9]=$,e[10]=Z):Z=e[10],Z}const{amountCents:d,estimatedDeliveryDate:u,scheduleType:m,stripeExternalAccountId:f,currency:x}=i,h=m==="manual";let C;e[11]!==l?(C=_=>!_&&l(),e[11]=l,e[12]=C):C=e[12];let b;e[13]!==u?(b=u?[{label:"Estimated",textValue:et(`${u}T00:00:00`,"MMM d, yyyy")}]:[],e[13]=u,e[14]=b):b=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p={label:"",textValue:"",separator:"solid"},e[15]=p):p=e[15];let j;e[16]!==b?(j=[...b,p],e[16]=b,e[17]=j):j=e[17];const y=h?"Balance":"Estimated Payout";let N;e[18]!==d||e[19]!==x||e[20]!==y?(N={label:y,amountCents:d,currency:x},e[18]=d,e[19]=x,e[20]=y,e[21]=N):N=e[21];let g;e[22]!==d||e[23]!==h?(g=h?t.jsx(W,{variant:"primary",fullWidth:!0,onClick:()=>c(!0),children:`Payout $${(d/100).toFixed(2)}`}):t.jsxs(W,{variant:"primary",fullWidth:!0,onClick:()=>r(!0),children:[t.jsx(bt,{className:"size-3.5"}),"Instant"]}),e[22]=d,e[23]=h,e[24]=g):g=e[24];let k;e[25]!==l?(k=t.jsx(W,{variant:"tertiary",fullWidth:!0,onClick:l,children:"Dismiss"}),e[25]=l,e[26]=k):k=e[26];let v;e[27]!==g||e[28]!==k?(v=t.jsxs(t.Fragment,{children:[g,k]}),e[27]=g,e[28]=k,e[29]=v):v=e[29];let P;e[30]!==j||e[31]!==N||e[32]!==v?(P=t.jsx(r1,{title:"Upcoming Payout",items:j,total:N,footer:v}),e[30]=j,e[31]=N,e[32]=v,e[33]=P):P=e[33];let M;e[34]!==s||e[35]!==C||e[36]!==P?(M=t.jsx(ne,{open:s,onOpenChange:C,children:P}),e[34]=s,e[35]=C,e[36]=P,e[37]=M):M=e[37];let w;e[38]===Symbol.for("react.memo_cache_sentinel")?(w=()=>c(!1),e[38]=w):w=e[38];let T;e[39]===Symbol.for("react.memo_cache_sentinel")?(T=[],e[39]=T):T=e[39];let I;e[40]!==d||e[41]!==x||e[42]!==a||e[43]!==n||e[44]!==m||e[45]!==f?(I=t.jsx($1,{open:a,onClose:w,personId:n,availableAmountCents:d,instantlyAvailableAmountCents:d,pendingAmountCents:0,externalAccounts:T,stripeExternalAccountId:f,scheduleType:m,currency:x}),e[40]=d,e[41]=x,e[42]=a,e[43]=n,e[44]=m,e[45]=f,e[46]=I):I=e[46];let D;e[47]===Symbol.for("react.memo_cache_sentinel")?(D=()=>r(!1),e[47]=D):D=e[47];let A;e[48]!==d||e[49]!==o||e[50]!==n?(A=t.jsx(E1,{open:o,onClose:D,personId:n,amountCents:d}),e[48]=d,e[49]=o,e[50]=n,e[51]=A):A=e[51];let L;return e[52]!==M||e[53]!==I||e[54]!==A?(L=t.jsxs(t.Fragment,{children:[M,I,A]}),e[52]=M,e[53]=I,e[54]=A,e[55]=L):L=e[55],L}function fl(i){const e=F.c(92),{personId:s,summary:l}=i,[n,a]=R.useState(!1),[c,o]=R.useState(!1),[r,d]=R.useState(!1),[u,m]=R.useState(!1),f=oe.useUtils();let x;e[0]!==s?(x={personId:s},e[0]=s,e[1]=x):x=e[1];const{data:h}=oe.getInstantPayoutDetails.useQuery(x),C=h?.canUseInstantPayouts===!0,b=C||h?.status==="ineligible"||h?.status==="no_eligible_stripe_external_accounts",p=l.currency;let j;e[2]!==l.schedule.recurrenceRrule||e[3]!==l.schedule.type?(j=Fs(l.schedule.recurrenceRrule,l.schedule.type),e[2]=l.schedule.recurrenceRrule,e[3]=l.schedule.type,e[4]=j):j=e[4];const y=j,N=l.bankedAmountCents,g=l.pendingAmountCents??0;let k;e[5]!==N||e[6]!==g?(k=ts({bankedAmountCents:N,pendingAmountCents:g}),e[5]=N,e[6]=g,e[7]=k):k=e[7];const v=k,P=y==="Automatic",M=l.schedule.type==="instant",w=l.instantlyAvailableAmou
1ntCents??0,T=Math.max(0,M?w:v),I=l.estimatedDeliveryDate,D=P||M||!!I,A=Math.max(0,w-v),L=M?Math.max(0,g-A):g,_=L>0,z=M?v<=0&&w<=0&&g>0:v<=0&&g>0,E=l.schedule.stripeExternalAccountId??"";let O;e[8]!==u?(O=t.jsx(R1,{open:u,onOpenChange:m}),e[8]=u,e[9]=O):O=e[9];let $;e[10]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(S,{variant:"label",children:"Next payout"}),e[10]=$):$=e[10];let Z;e[11]!==p||e[12]!==T?(Z=t.jsxs("div",{className:"flex flex-col gap-4 items-center px-5 w-full text-center",children:[$,t.jsx(S,{variant:"heading",size:"4xl",className:"font-bold",children:t.jsx(Ne,{amountCents:T,currency:p,showFraction:!0})})]}),e[11]=p,e[12]=T,e[13]=Z):Z=e[13];let Y;e[14]!==z||e[15]!==b||e[16]!==l.schedule.type?(Y=!z&&t.jsx("div",{className:"flex gap-1 items-center justify-center pb-3 px-1 w-full",children:l.schedule.type==="manual"?t.jsxs(t.Fragment,{children:[t.jsx(W,{variant:"primary",size:"sm",onClick:()=>o(!0),children:"Payout"}),b&&t.jsxs(W,{variant:"secondary",size:"sm",onClick:()=>d(!0),children:[t.jsx(bt,{className:"size-4"}),"Instant"]})]}):b&&t.jsxs(W,{variant:"primary",size:"sm",onClick:()=>d(!0),children:[t.jsx(bt,{className:"size-3.5"}),"Instant"]})}),e[14]=z,e[15]=b,e[16]=l.schedule.type,e[17]=Y):Y=e[17];let se;e[18]!==L||e[19]!==p||e[20]!==_?(se=_&&t.jsxs("div",{className:"flex items-center justify-between px-6 w-full",children:[t.jsxs("div",{className:"flex items-center gap-2.5",children:[t.jsx(ss,{size:12}),t.jsx(S,{variant:"label",size:"sm",children:"Available soon"}),t.jsx("button",{type:"button","aria-label":"Why is this not available yet?",onClick:()=>m(!0),children:t.jsx(Kt,{size:16})})]}),t.jsx(S,{variant:"label",size:"sm",children:t.jsx(Ne,{amountCents:L,currency:p,showFraction:!0})})]}),e[18]=L,e[19]=p,e[20]=_,e[21]=se):se=e[21];let J;e[22]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsxs("div",{className:"flex items-center gap-2.5",children:[t.jsx(ls,{size:12}),t.jsx(S,{variant:"label",size:"sm",children:"Schedule"})]}),e[22]=J):J=e[22];let ue;e[23]===Symbol.for("react.memo_cache_sentinel")?(ue=t.jsx("button",{type:"button",onClick:()=>a(!0),children:t.jsx(S,{variant:"label",size:"xs",className:"underline decoration-solid decoration-ink-lean text-ink-lean",children:"Change"})}),e[23]=ue):ue=e[23];let Q;e[24]!==y?(Q=t.jsxs("div",{className:"flex items-center justify-between px-6 w-full",children:[J,t.jsxs("div",{className:"flex items-baseline gap-1.5 uppercase",children:[ue,t.jsx(S,{variant:"label",size:"sm",children:y})]})]}),e[24]=y,e[25]=Q):Q=e[25];const fe=!D&&"text-ink-black/30 dark:text-ink-white/30";let V;e[26]!==fe?(V=H(fe),e[26]=fe,e[27]=V):V=e[27];let U;e[28]!==V?(U=t.jsx(j1,{size:12,className:V}),e[28]=V,e[29]=U):U=e[29];const ie=!D&&"text-ink-black/30 dark:text-ink-white/30";let ae;e[30]!==ie?(ae=H(ie),e[30]=ie,e[31]=ae):ae=e[31];let re;e[32]!==ae?(re=t.jsx(S,{variant:"label",size:"sm",className:ae,children:"ETA"}),e[32]=ae,e[33]=re):re=e[33];let ee;e[34]!==U||e[35]!==re?(ee=t.jsxs("div",{className:"flex items-center gap-2.5",children:[U,re]}),e[34]=U,e[35]=re,e[36]=ee):ee=e[36];const ce=!D&&"text-ink-black/30 dark:text-ink-white/30";let me;e[37]!==ce?(me=H(ce),e[37]=ce,e[38]=me):me=e[38];let G;e[39]!==I||e[40]!==P||e[41]!==M?(G=P?"Every 1-2 business days":M?"End of day":I?et(`${I}T00:00:00`,"EEEE, MMM do"):"â â â",e[39]=I,e[40]=P,e[41]=M,e[42]=G):G=e[42];let K;e[43]!==me||e[44]!==G?(K=t.jsx(S,{variant:"label",size:"sm",className:me,children:G}),e[43]=me,e[44]=G,e[45]=K):K=e[45];let X;e[46]!==ee||e[47]!==K?(X=t.jsxs("div",{className:"flex items-center justify-between px-6 w-full",children:[ee,K]}),e[46]=ee,e[47]=K,e[48]=X):X=e[48];let he;e[49]!==Q||e[50]!==X||e[51]!==se?(he=t.jsxs("div",{className:"border-t border-ink-black/10 dark:border-ink-white/10 flex flex-col gap-4 items-center pt-4 w-full",children:[se,Q,X]}),e[49]=Q,e[50]=X,e[51]=se,e[52]=he):he=e[52];let te;e[53]!==he||e[54]!==Z||e[55]!==Y?(te=t.jsxs("div",{className:"mx-2 border border-ink-black/10 dark:border-ink-white/10 rounded-3xl flex flex-col gap-4 items-center py-5",children:[Z,Y,he]}),e[53]=he,e[54]=Z,e[55]=Y,e[56]=te):te=e[56];const je=h?.status==="ineligible",be=h?.status==="no_eligible_str
1ipe_external_accounts";let xe;e[57]===Symbol.for("react.memo_cache_sentinel")?(xe=()=>a(!1),e[57]=xe):xe=e[57];let q;e[58]!==s||e[59]!==f.payouts.getUpcomingPayoutSummary?(q=()=>{f.payouts.getUpcomingPayoutSummary.invalidate({personId:s}),a(!1)},e[58]=s,e[59]=f.payouts.getUpcomingPayoutSummary,e[60]=q):q=e[60];let Ce;e[61]!==C||e[62]!==n||e[63]!==s||e[64]!==l.externalAccounts||e[65]!==l.schedule||e[66]!==je||e[67]!==be||e[68]!==q?(Ce=t.jsx(qs,{canUseInstantPayouts:C,isInstantPaused:je,hasNoEligibleAccount:be,externalAccounts:l.externalAccounts,onClose:xe,open:n,personId:s,schedule:l.schedule,onScheduleUpdated:q}),e[61]=C,e[62]=n,e[63]=s,e[64]=l.externalAccounts,e[65]=l.schedule,e[66]=je,e[67]=be,e[68]=q,e[69]=Ce):Ce=e[69];let ge;e[70]===Symbol.for("react.memo_cache_sentinel")?(ge=()=>o(!1),e[70]=ge):ge=e[70];let we;e[71]!==p||e[72]!==w||e[73]!==c||e[74]!==v||e[75]!==g||e[76]!==s||e[77]!==E||e[78]!==l.externalAccounts||e[79]!==l.schedule.type?(we=t.jsx($1,{open:c,onClose:ge,personId:s,availableAmountCents:v,instantlyAvailableAmountCents:w,pendingAmountCents:g,externalAccounts:l.externalAccounts,stripeExternalAccountId:E,scheduleType:l.schedule.type,currency:p}),e[71]=p,e[72]=w,e[73]=c,e[74]=v,e[75]=g,e[76]=s,e[77]=E,e[78]=l.externalAccounts,e[79]=l.schedule.type,e[80]=we):we=e[80];let qe;e[81]===Symbol.for("react.memo_cache_sentinel")?(qe=()=>d(!1),e[81]=qe):qe=e[81];let ve;e[82]!==r||e[83]!==w||e[84]!==s?(ve=t.jsx(E1,{open:r,onClose:qe,personId:s,amountCents:w}),e[82]=r,e[83]=w,e[84]=s,e[85]=ve):ve=e[85];let _e;return e[86]!==te||e[87]!==Ce||e[88]!==we||e[89]!==ve||e[90]!==O?(_e=t.jsxs(t.Fragment,{children:[O,te,Ce,we,ve]}),e[86]=te,e[87]=Ce,e[88]=we,e[89]=ve,e[90]=O,e[91]=_e):_e=e[91],_e}function ml(i){const e=F.c(42),{personId:s}=i,[l,n]=R.useState(null);let a;e[0]!==s?(a={personId:s},e[0]=s,e[1]=a):a=e[1];const{data:c,isLoading:o}=oe.payouts.getUpcomingPayoutSummary.useQuery(a);let r;e[2]!==s?(r={personId:s},e[2]=s,e[3]=r):r=e[3];const d=!!s;let u;e[4]!==d?(u={enabled:d,getNextPageParam:hl},e[4]=d,e[5]=u):u=e[5];const{data:m,fetchNextPage:f,isFetchingNextPage:x,isLoading:h}=oe.earnings.getPageOfPayouts.useInfiniteQuery(r,u);let C;e:{if(!m?.pages.length){let O;e[6]===Symbol.for("react.memo_cache_sentinel")?(O=[[],null,!1],e[6]=O):O=e[6],C=O;break e}const A=m.pages[m.pages.length-1];let L,_;e[7]!==l||e[8]!==m.pages?(L=m.pages.flatMap(xl),_=l?L.find(O=>O.id===l)??null:null,e[7]=l,e[8]=m.pages,e[9]=L,e[10]=_):(L=e[9],_=e[10]);const z=_;let E;e[11]!==L||e[12]!==z||e[13]!==A.hasMore?(E=[L,z,A.hasMore],e[11]=L,e[12]=z,e[13]=A.hasMore,e[14]=E):E=e[14],C=E}const[b,p,j]=C,y=h||x;let N;e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(vt,{size:"2xl",className:"p-2",children:"Payouts"}),e[15]=N):N=e[15];let g;e[16]!==o||e[17]!==s||e[18]!==c?(g=o?t.jsx("div",{className:"mt-4 mb-2",children:t.jsx(tt,{className:"h-40 w-full rounded-2xl"})}):c?t.jsx("div",{className:"mt-4 mb-2",children:t.jsx(fl,{personId:s,summary:c})}):null,e[16]=o,e[17]=s,e[18]=c,e[19]=g):g=e[19];let k;e[20]!==y||e[21]!==b.length?(k=!y&&b.length===0&&t.jsxs("div",{className:"h-[250px] flex flex-col items-center justify-center gap-3 text-ink-black-400 stroke-ink-black-200 text-center",children:[t.jsx(g1,{className:"size-6"}),t.jsx(S,{size:"base",className:"max-w-[140px]",children:"Future payouts will appear here"})]}),e[20]=y,e[21]=b.length,e[22]=k):k=e[22];let v;e[23]!==b?(v=b.map((A,L)=>{const _=Ft(A),z=L===0?null:Ft(b[L-1]),E=_!==z;return t.jsxs(R.Fragment,{children:[E&&t.jsx("div",{className:"mt-4",children:t.jsx(k1,{label:_})}),!E&&t.jsx("div",{className:"h-px bg-ink-black/10"}),t.jsx(T1,{onClick:()=>n(A.id),payout:A})]},A.id)}),e[23]=b,e[24]=v):v=e[24];let P;e[25]!==y?(P=y&&t.jsxs("div",{className:"w-full flex flex-row items-center gap-2 py-4 px-4",children:[t.jsx(tt,{className:"w-8 h-8 rounded-full"}),t.jsxs("div",{className:"flex-1 flex flex-col gap-2",children:[t.jsx(tt,{className:"h-4 w-[160px]"}),t.jsx(tt,{className:"h-3 w-[100px]"})]}),t.jsx(tt,{className:"h-4 w-[80px] mr-4"})]}),e[25]=y,e[26]=P):P=e[26];let M;e[27]!==f||e[28]!==j||e[29]!==P||e[30]!==k||e[31]!==v?(M=t.jsxs(v1,{hasMore:j,onLoadMore:f,children:[k,v,P]}),e[27]=f,e[28]=j,e[29]=P,e[30]=k,e[31]=v,e[32]=M):M=e[32];let w;e[33]===Symbol.for("react.memo_cache_sentinel")?(w=()=>n(null),e[33]=w):w=e[33];const T=!!p;let I;e[34]!==p||e[35]!==s||e[36]!==T?(I=t.jsx(ul,{variant:"completed",onClose:w,open:T,payout:p,personId:s}
1),e[34]=p,e[35]=s,e[36]=T,e[37]=I):I=e[37];let D;return e[38]!==M||e[39]!==I||e[40]!==g?(D=t.jsxs(t.Fragment,{children:[N,g,M,I]}),e[38]=M,e[39]=I,e[40]=g,e[41]=D):D=e[41],D}function xl(i){return i.items}function hl(i){return i.hasMore?i.items[i.items.length-1].id:null}function Cl(){const i=F.c(17),{personId:e,isLoading:s}=Tt(),l=Rt();let n;i[0]!==e?(n={personId:e},i[0]=e,i[1]=n):n=i[1];const a=!!e;let c;i[2]!==a?(c={enabled:a},i[2]=a,i[3]=c):c=i[3];const{data:o,isLoading:r}=oe.payouts.getPayoutSchedulingEnabled.useQuery(n,c);if(s||r){let C;return i[4]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(ns,{}),i[4]=C):C=i[4],C}if(!e)return null;let d;i[5]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(us,{children:t.jsx("title",{children:"Payouts"})}),i[5]=d):d=i[5];let u;i[6]!==l?(u=()=>l(-1),i[6]=l,i[7]=u):u=i[7];const m=o?"":"Payouts";let f;i[8]!==u||i[9]!==m?(f=t.jsx("div",{className:"flex flex-col gap-2 bg-ink-white dark:bg-ink-black-900",children:t.jsx(as,{onBack:u,className:"border-0",children:m})}),i[8]=u,i[9]=m,i[10]=f):f=i[10];let x;i[11]!==o||i[12]!==e?(x=t.jsx(qt,{children:o?t.jsx(ml,{personId:e}):t.jsx(ll,{personId:e})}),i[11]=o,i[12]=e,i[13]=x):x=i[13];let h;return i[14]!==f||i[15]!==x?(h=t.jsxs(t.Fragment,{children:[d,t.jsx(is,{headerSlot:f,children:x})]}),i[14]=f,i[15]=x,i[16]=h):h=i[16],h}const Hl=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"}));function pl(i){const e=F.c(8),{className:s,style:l,size:n}=i,a=n===void 0?24:n;let c,o,r,d;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("path",{d:"M19.7845 3.3274C19.0236 1.997 17.7622 1.2638 16.4088 1.25H16.3149C15.703 1.25887 15.0738 1.41359 14.4658 1.72796C13.7378 2.10442 13.093 2.60307 12.4821 3.15297C10.8335 4.63908 9.5943 6.4238 8.74915 8.49036C8.61458 8.81951 8.47517 9.08067 8.07051 8.95847C7.78298 8.87174 7.60001 9.02055 7.42284 9.21075C6.09074 10.6348 4.99968 12.2244 4.20875 14.0248C3.7973 14.962 3.71695 15.9741 3.53785 16.9645C3.46524 17.3627 3.49332 17.7342 3.65499 18.1057C3.69081 18.1875 3.7276 18.2703 3.76245 18.3541C3.80795 18.4645 3.84764 18.5778 3.87572 18.696C3.99092 18.9927 4.19713 19.4145 4.5137 19.6796C4.57372 19.72 4.63374 19.7653 4.69473 19.8057C4.72571 19.8264 4.75669 19.8451 4.78767 19.8609C4.98807 19.9594 5.1904 20.0531 5.44114 20.1703C5.45276 20.1733 6.01716 20.3231 6.62706 20.5113L6.65611 20.5202C6.79648 20.5635 6.93879 20.6089 7.07626 20.6542L7.09466 20.6601C7.32313 20.736 7.53902 20.8139 7.71424 20.8868C7.78685 20.9173 7.85268 20.9459 7.9098 20.9745C7.92819 20.9834 7.94756 20.9932 7.96789 21.0031C8.09858 21.0671 8.26897 21.1479 8.46259 21.2376L8.48679 21.2484C8.48969 21.2494 8.49163 21.2504 8.49453 21.2524C8.49453 21.2524 8.50422 21.2573 8.50906 21.2593L8.54294 21.2751C8.86144 21.4219 9.23513 21.5904 9.61172 21.753L9.63593 21.7639C9.63786 21.7639 9.63883 21.7648 9.64077 21.7658H9.64174C9.64174 21.7658 9.64367 21.7658 9.64464 21.7668L9.66497 21.7757C9.98638 21.9146 10.3068 22.0487 10.5914 22.161C10.8286 22.2546 11.0416 22.3335 11.2091 22.3867C11.213 22.3877 11.2159 22.3887 11.2197 22.3896C12.032 22.7119 12.9052 22.6725 13.7668 22.7434C14.4087 22.7957 14.8463 22.5325 15.2412 22.091C16.5511 20.6276 17.5066 18.9483 18.0981 17.068C18.4002 16.1091 18.5889 15.1138 18.8368 14.1372C18.9868 13.5479 18.9868 13.5341 18.4844 13.1872C18.4118 13.1379 18.3469 13.0768 18.2801 13.0226C19.4622 10.9028 19.9762 9.45318 20.3528 7.51769C20.4419 7.06141 20.4932 6.61301 20.5 6.1725V6.09169C20.5029 5.13478 20.2918 4.21335 19.7855 3.32839L19.7845 3.3274ZM11.8413 9.69659C12.2653 8.53668 12.8268 7.42604 13.5703 6.41591C14.0088 5.81969 14.5616 5.3575 15.2383 5.06186C16.1067 4.68146 16.646 4.99287 16.7331 5.95372C16.7883 6.56866 16.7766 7.18558 16.614 7.79362C16.3429 8.81163 15.9973 9.79908 15.5501 10.7511C15.4203 11.028 15.3313 11.1797 14.9605 11.0142C14.0785 10.62 13.1647 10.3017 12.2643 9.94986C12.121 9.89369 11.9497 9.88679 11.8422 9.69561L11.8413 9.69659Z",fill:"currentColor"}),o=t.jsx("path",{d:"M9.70532 16.6821C9.97638 16.9146 10.2939 17.0408 10.6299 17.1374C10.9803 17.2389 11.2794 17.1906 11.5486 17.0181C11.6425 16.95
17 11.7335 16.8811 11.8206 16.7905C12.2417 16.3519 12.4305 15.8079 12.5496 15.2255C12.6968 14.5081 12.7055 13.7788 12.7306 13.0525C12.7568 12.678 12.7858 12.3036 12.8052 11.9291C12.8168 11.6975 12.87 11.4245 12.6164 11.3003C12.4354 11.2116 12.3047 11.2885 12.1904 11.4018C12.1382 11.4541 12.0898 11.5132 12.0423 11.5684C11.4857 12.2139 10.8854 12.818 10.2755 13.4103C10.2688 13.4172 10.261 13.4241 10.2542 13.431C10.2 13.4842 10.1468 13.5374 10.0945 13.5926C10.0074 13.6852 9.92507 13.7828 9.84569 13.8823C9.83117 13.901 9.81471 13.9198 9.80019 13.9385C9.78276 13.9611 9.76727 13.9838 9.75082 14.0065C9.72274 14.0449 9.6937 14.0824 9.66756 14.1218C9.65981 14.1326 9.65401 14.1435 9.64626 14.1543C9.61141 14.2065 9.57753 14.2588 9.54461 14.312C9.42747 14.5061 9.32679 14.7121 9.2445 14.9289C8.97246 15.6542 9.11768 16.1775 9.70435 16.6811L9.70532 16.6821Z",fill:"hsl(var(--ink-paper) / 0.7)"}),r=t.jsx("path",{d:"M18.332 3.72091C18.2875 3.6125 18.2371 3.50903 18.1839 3.40752C17.9506 2.96405 17.6321 2.58464 17.2013 2.29786C16.4732 1.81202 15.7143 1.68292 14.9146 2.08697C14.8168 2.13625 14.72 2.18651 14.6232 2.23874C14.4025 2.35699 14.1856 2.48412 13.9813 2.62702C13.961 2.64081 13.9407 2.65362 13.9213 2.66742C11.7721 4.22252 10.2222 6.26641 9.19699 8.73308C9.18827 8.75476 9.18053 8.77644 9.17472 8.79911C9.16891 8.82178 9.16601 8.84543 9.16504 8.87006C9.16504 8.92032 9.17666 8.9765 9.2086 9.04548C9.55906 9.05731 9.93178 9.12136 10.2997 9.21794C10.4778 9.26524 10.6036 9.21498 10.6704 9.02577C10.7169 8.89766 10.7769 8.7725 10.8428 8.65326C11.7683 6.9868 12.7867 5.39722 14.3754 4.28559C14.6735 4.07765 14.9766 3.88844 15.3386 3.80763C16.1596 3.62433 16.7656 3.9318 17.0328 4.74975C17.3833 5.82294 17.3542 6.91881 17.0841 8.0058C17.0512 8.13982 17.0163 8.27286 16.9796 8.40492C16.722 9.33226 16.3774 10.2271 15.9495 11.0894C15.905 11.1791 15.875 11.254 15.873 11.3239C15.8701 11.4146 15.9156 11.4964 16.0415 11.593C16.206 11.7191 16.3445 11.8216 16.4645 11.8994C16.9815 12.2345 17.1441 12.1064 17.451 11.3318C17.4694 11.2845 17.4888 11.2362 17.5081 11.185C17.5188 11.1564 17.5294 11.1288 17.5401 11.1002C18.0532 9.74715 18.4733 8.36057 18.6921 6.92373C18.7076 6.82223 18.7221 6.72072 18.7357 6.61922C18.7686 6.36989 18.7831 6.12253 18.7812 5.87616C18.7812 5.86532 18.7812 5.85448 18.7812 5.84364C18.7715 5.11734 18.6147 4.40582 18.332 3.72091Z",fill:"hsl(var(--ink-paper) / 0.7)"}),d=t.jsx("path",{d:"M4.38397 17.318C6.76453 17.047 8.98439 17.5358 11.1297 18.5095C11.972 18.8908 12.7571 19.3708 13.5471 19.8428C13.7571 19.968 13.9014 19.9709 14.034 19.8625C14.0785 19.8271 14.1211 19.7778 14.1647 19.7177C14.6352 19.0643 15.1115 18.4158 15.5801 17.7625C15.9421 17.2589 16.2394 16.7267 16.4872 16.1739L16.5462 16.0398C16.7844 15.5264 17.0497 15.349 17.1678 15.4397C17.2839 15.5284 17.2065 15.9117 17.2036 15.9275L17.192 15.9531C16.7583 16.9682 16.159 17.8847 15.491 18.7627C15.1454 19.218 14.8124 19.6832 14.4677 20.1395C14.3845 20.2498 14.2993 20.3454 14.3002 20.5001C14.3002 20.7859 14.2954 21.0717 14.2896 21.3575V21.4157C14.2818 21.7438 14.1347 21.938 13.9701 21.9971C13.8046 22.0562 13.7717 21.6492 13.7717 21.6492V21.6256C13.7784 21.4906 13.7881 21.3299 13.8055 21.1397C13.8375 20.779 13.7194 20.5405 13.4067 20.3572C12.2237 19.6644 11.0513 18.9519 9.74532 18.5095C8.08986 17.9497 6.4044 17.5969 4.63955 17.8157H4.6318C4.34331 17.8462 4.15356 17.7684 4.05965 17.6225C3.97349 17.4875 4.31814 17.3407 4.37138 17.318H4.383H4.38397Z",fill:"hsl(var(--ink-paper) / 0.7)"}),e[0]=c,e[1]=o,e[2]=r,e[3]=d):(c=e[0],o=e[1],r=e[2],d=e[3]);let u;return e[4]!==s||e[5]!==a||e[6]!==l?(u=t.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,style:l,children:[c,o,r,d]}),e[4]=s,e[5]=a,e[6]=l,e[7]=u):u=e[7],u}function bl(i){const e=F.c(6),{className:s,style:l,size:n}=i,a=n===void 0?96:n;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs("g",{clipPath:"url(#clip0_venue_lock_with_key)",children:[t.jsx("path",{d:"M23.0862 54.1852C23.2554 53.2717 22.8325 52.2889 23.6332 51.5251C22.7385 51.1133 22.0675 50.8156 21.4059 50.4955C20.6409 50.1249 19.9699 49.1046 19.017 50.2597C18.8309 50.4843 18.0848 49.7917 18.0791 50.6041C18.0754 51.0571 18.611 51.0365 18.9475 51.1376C19.5207 51.3117 20.4173 51.3173 20.2387 52.1279C20.0169 53.1407 19.1298 52.6577 18.5265 52.4817C15.1734 51.5008 11.8334 50.4824 8.48974 49.4715C8.07248 49.3461 7.6026 49.245 7.47855 48.7452C7.34322 48.2023 7.71725 48.0076 8.15518 47.8167C9.49905 47.2326 9.51597 47.1278 8.33562 46.2873C6.76245 45.1659 5.22875 43.9866 3.42439 43.2153C2.79851 42.9476 1.77228 42.5713 2.30795 41.6728C2.80226 40.8454 3.54468 41.6784 4.09914 41.9386C6.93912 43.2752 9.29418 45.3831 12.0007 46.935C12.1548 47.023 12.3146 47.1053 12.651 47.2869C12.6134 46.3771 12.5721 45.5665 13.5457 45.1659C14.0099 44.975 13.572 44.5276 13.4329 44.2281C12.5909 42.4216 11.7357 40.6226 10.8805 38.8217C10.7471 38.5409 10.5892 38.2714 10.452 37.9906C10.2509 37.5806 10.3918 37.2492
110.7621 37.0508C11.1737 36.8299 11.4782 37.0639 11.7 37.399C11.871 37.6573 12.0007 37.9438 12.1548 38.2152C13.4404 40.4953 14.211 43.0337 15.6639 45.224C16.1733 45.9915 15.3463 46.3022 15.2335 46.8638C16.3594 47.6669 17.5623 48.2585 18.9494 48.6591C19.1129 47.519 18.6599 46.6242 18.2633 45.735C17.8141 44.7279 17.7371 43.7189 17.9382 42.6387C18.4362 39.9505 18.658 37.2062 19.8008 34.6621C21.9961 29.7762 25.0221 25.4631 28.7192 21.5993C29.2116 21.0845 29.7172 20.6802 30.516 20.916C31.6381 21.2492 32.0234 20.5398 32.3974 19.6468C34.7431 14.0383 38.1808 9.19542 42.7556 5.16313C44.449 3.67115 46.2383 2.31956 48.2589 1.29745C53.7715 -1.48996 59.9045 0.316519 63.017 5.63675C65.1089 9.21227 65.3889 12.9993 64.592 17.0054C63.547 22.2583 62.1204 26.1913 58.8406 31.944C59.0248 32.0919 59.2053 32.2566 59.4064 32.3914C60.7991 33.333 60.7991 33.3705 60.3837 34.9691C59.6958 37.6199 59.1733 40.3193 58.335 42.9214C56.6942 48.0226 54.0422 52.5809 50.409 56.5515C49.3133 57.7477 48.101 58.4628 46.3192 58.3205C43.5243 58.0959 40.6824 58.2868 38.1206 56.8285C37.6451 56.5571 37.3293 56.7518 37.0361 57.1711C36.5738 57.8356 36.0268 58.4422 35.5739 59.1124C34.9104 60.0914 33.7676 60.097 32.8316 60.5182C32.6136 60.6156 32.2396 60.565 32.1738 60.3161C31.8373 59.0225 30.6269 59.3651 29.7962 59.0019L29.8074 59.0281C30.4202 57.0737 29.9992 55.0707 30.3018 52.9048C28.9955 53.4346 28.1986 54.2208 27.2964 54.8498C26.3435 55.5125 25.9769 55.3534 25.633 54.2096C25.5259 53.8558 25.4883 53.2923 25.0391 53.5282C24.3925 53.8689 23.5843 53.5918 23.043 54.1628L23.0843 54.1834L23.0862 54.1852ZM19.4286 43.2191C26.7006 41.9948 33.4594 43.3183 39.9983 46.2049C42.3496 47.242 44.5486 48.5449 46.759 49.8272C47.5409 50.2803 47.9938 50.1455 48.4637 49.4903C49.7362 47.7156 51.0255 45.9541 52.2942 44.1775C54.5421 41.0288 55.8522 37.4907 56.6867 33.7467C56.8464 33.026 56.6923 32.5954 56.1003 32.1705C52.8506 29.8361 49.5595 27.6103 45.6745 26.3841C43.1785 25.596 40.7238 24.66 38.2973 23.6735C35.9911 22.7356 33.6003 22.4698 31.1513 22.3724C30.2529 22.3369 29.6326 22.6514 29.0387 23.2953C26.9186 25.6035 25.1575 28.1682 23.4433 30.7796C20.9887 34.5142 19.72 38.6083 19.4268 43.2209L19.4286 43.2191ZM33.6774 21.1538C34.651 21.1856 35.6847 21.3597 36.7035 21.6218C37.1978 21.7491 37.5455 21.6143 37.7334 21.1014C37.8613 20.7532 38.0285 20.4143 38.2127 20.0905C40.7802 15.5677 43.6051 11.2546 48.0126 8.23883C48.8396 7.67349 49.6798 7.16056 50.6853 6.94153C52.9633 6.44171 54.6436 7.27849 55.386 9.49682C56.3615 12.4097 56.2788 15.3824 55.5289 18.3327C54.7921 21.2361 53.7358 24.0273 52.3788 26.7005C52.0987 27.2546 52.0142 27.6028 52.6325 28.0652C55.1737 29.9634 55.5326 29.9503 56.7036 26.9551C58.2693 22.9509 59.5342 18.8418 60.1074 14.5662C60.4702 11.863 60.0473 9.21789 58.9872 6.70379C58.3238 5.12944 57.3163 3.79657 55.8503 2.84185C53.8298 1.52396 51.7247 1.1739 49.5069 2.27089C48.5596 2.73889 47.6123 3.23871 46.7515 3.84711C40.7896 8.06661 36.4892 13.6133 33.6436 20.3058C33.544 20.5398 33.497 20.7794 33.6774 21.1538ZM40.9775 22.9191C41.2745 23.4395 41.7519 23.4582 42.1485 23.6098C44.6464 24.5646 47.1819 25.4275 49.629 26.4965C50.6571 26.9457 50.9034 26.5339 51.2642 25.7814C52.5066 23.198 53.4652 20.5192 54.217 17.7561C54.6681 16.105 54.7019 14.4314 54.5478 12.7635C54.3072 10.1558 52.8111 9.30962 50.4015 10.343C48.5257 11.146 46.9902 12.4003 45.7741 14.0177C43.7122 16.7583 42.1541 19.7704 40.9775 22.9191ZM39.4683 52.5866C39.2164 53.1463 39.0303 53.5357 38.863 53.9307C38.4082 55.0089 38.412 55.007 39.5773 55.4619C41.111 56.061 42.7368 56.28 44.3494 56.3586C47.9525 56.5327 47.2514 57.3302 47.539 53.3522C47.6104 52.3713 47.2721 51.7236 46.3962 51.2256C43.0864 49.3442 39.8028 47.4086 36.1622 46.2068C31.3712 44.6268 26.5032 43.6515 21.4209 44.3947C19.4869 44.6773 19.6185 44.6231 20.032 46.4838C20.4793 48.4887 21.8514 49.2974 23.5768 49.8778C24.3079 50.1249 24.5898 49.7261 24.8699 49.1945C25.1894 48.5842 24.8116 48.4625 24.338 48.3446C24.0128 48.2641 23.7873 48.047 23.8343 47.6726C23.8888 47.2289 24.1933 47.0267 24.6011 47.0117C25.0372 46.9949 25.4826 46.993 25.9112 47.0679C27.2644 47.3019 28.6177 47.54
115 29.9559 47.841C33.1248 48.5468 36.2975 49.2544 39.1995 50.7969C40.0302 51.2387 40.8272 51.7273 41.5 52.3919C41.7914 52.6802 41.9455 53.0284 41.6485 53.3784C41.3835 53.6929 41.0377 53.7865 40.6655 53.4907C40.3291 53.223 39.9795 52.9703 39.4701 52.5847L39.4683 52.5866ZM27.2024 53.0134C28.2512 52.3788 29.1646 51.7142 30.1721 51.2462C31.405 50.6734 31.952 51.0833 31.8016 52.4274C31.6569 53.7285 31.7095 55.0351 31.5949 56.3306C31.5065 57.3265 32.4294 57.0326 32.8015 57.4276C33.185 57.8338 33.4443 57.4407 33.6718 57.1561C35.0683 55.4095 36.5418 53.7191 37.585 51.7198C37.0512 51.2294 36.3802 51.0403 35.7374 50.8325C33.7244 50.181 31.6757 49.6625 29.6026 49.2319C26.6649 48.6217 26.6686 48.6048 25.3529 51.469C25.5052 51.9183 26.0277 51.7123 26.2796 51.9688C26.5765 52.2721 26.8434 52.6034 27.2005 53.0096L27.2024 53.0134ZM48.8904 55.0539C49.0332 55.0819 49.1742 55.11 49.317 55.1381C53.1062 49.9976 55.4556 44.1869 57.1472 38.0617C55.9894 41.3077 54.1662 44.1682 52.1006 46.8938C51.1646 48.1312 50.2624 49.3948 49.3302 50.6341C49.1046 50.9336 48.8753 51.1919 48.8829 51.6131C48.9073 52.7607 48.8904 53.9082 48.8904 55.0557V55.0539ZM11.4763 48.4719L11.6455 48.8744C13.3596 49.4098 15.0719 49.9508 16.7917 50.4731C17.1131 50.5704 17.5266 50.7951 17.6882 50.2484C17.8047 49.8497 17.4739 49.7374 17.2051 49.5932C16.3312 49.1252 15.444 48.6816 14.5926 48.178C14.0118 47.8354 13.5175 47.1596 12.9217 47.0791C11.9387 46.9443 12.5345 48.4363 11.4763 48.4738V48.4719Z",fill:"currentColor"}),t.jsx("path",{d:"M29.7983 59.0054C29.5295 59.0859 29.3416 59.2731 29.4374 59.5427C29.5389 59.8272 29.7833 60.0593 29.8942 60.3439C30.5125 61.9445 30.661 62.1092 32.2755 62.6521C33.1702 62.9535 33.2867 63.6648 33.2736 64.4473C33.2454 66.207 32.783 67.8937 32.3188 69.5691C32.1402 70.2168 32.0857 70.6942 32.4729 71.2951C34.9482 75.1402 35.0892 79.2249 33.6382 83.4594C32.6533 86.3329 31.0933 88.8526 28.9958 91.041C25.7949 94.3806 21.6956 95.8857 17.228 95.9943C13.873 96.0767 10.4842 95.2923 7.50326 93.6543C3.01116 91.1832 0.289595 87.4374 0.0414967 82.1471C-0.0637573 79.8932 -0.0130098 77.6543 0.656105 75.4884C2.31574 70.1157 6.04286 66.6769 11.1364 64.5596C11.4785 64.4174 11.86 64.2545 12.2115 64.2751C14.0365 64.3837 15.0609 63.5132 15.6416 61.8377C15.9424 60.9691 16.478 60.181 16.8145 59.3049C17.0701 58.6385 17.3107 57.7998 18.3952 58.2435C18.8688 58.4363 19.038 57.9683 19.2447 57.6988C19.8105 56.9574 20.3574 56.2012 20.8818 55.4299C21.4156 54.6436 22.0339 54.0427 23.0865 54.185L23.0451 54.1644C23.2068 55.5647 23.3158 56.9724 23.5507 58.3596C23.6861 59.1589 24.03 59.2244 24.6916 58.6947C25.3701 58.1518 25.9377 57.4648 26.7553 57.1016C27.8662 56.6074 28.3342 56.8133 28.7119 57.9571C28.8473 58.3671 28.9225 58.8163 29.1424 59.1758C29.3886 59.5801 29.6367 59.3255 29.8077 59.0316L29.7964 59.0054H29.7983ZM21.7859 57.0155C20.3029 58.0582 20.0868 60.2091 18.0249 60.3289C17.8971 60.3364 17.79 60.7333 17.6772 60.9504C17.3652 61.5588 17.0645 62.1747 16.7412 62.7775C16.448 63.3241 16.104 63.7828 16.963 64.2395C17.3953 64.4698 17.1829 65.2935 16.7806 65.2429C15.7225 65.1081 14.8466 66.6226 13.7132 65.5237C13.576 65.3908 13.1231 65.5818 12.8167 65.6267C11.4352 65.8326 10.1684 66.3568 9.00876 67.1093C3.98288 70.3703 1.23688 74.8875 1.34777 80.9752C1.44363 86.2486 3.79869 90.2472 8.50881 92.5573C12.7848 94.6558 17.3088 94.7026 21.7558 92.868C25.528 91.3105 28.3342 88.6766 30.3058 85.1086C32.3902 81.3346 32.4315 77.5214 30.7118 73.6407C30.1987 72.482 29.3961 71.5385 28.3492 70.7971C27.8943 70.4752 26.9696 70.3572 27.4151 69.498C27.8568 68.6462 28.4958 69.4343 29.0484 69.4736C29.1104 69.4774 29.1724 69.4624 29.2927 69.4493C29.6235 67.6634 30.5971 66.0104 30.5802 64.1197C29.0108 63.8071 28.7157 63.7303 28.8097 62.8823C29.0014 61.1526 27.6782 60.0968 27.3342 58.5449C26.4471 58.8369 26.0054 59.4678 25.4453 59.9302C23.797 61.2855 22.8459 60.986 22.2407 58.9024C22.0697 58.3128 21.9531 57.7081 21.7877 57.0136L21.7859 57.0155Z",fill:"currentColor"}),t.jsx("path",{d:"M43.6621 68.7494C46.1524 71.1512 48.5789 73.4912 51.0054 75.8312C51.2291 76.0483 51.4659 76.2524 51.6764 76.4826C51.9113 76.7391 51.9715 77.0424 51.7253 77.3157C51.4527 77.6189 51.1219 77.7762 50.7498 77.4561C50.419 77.1715 50.0844 76.8889 49.7762 76.5819C47.1655 73.9835 44.5548 71.3833 41.9536 68.7756C41.0683 67.8883 41.0796 67.8789 41.8972 66.6247C40.0759 65.1065 38.2603 63.5789 36.4258 62.0738C36.0217 61.7425 35.5406 61.4561 35.9992 60.8889C36.424 60.3628 36.9164 60.6343 37.3149 60.96C39.5853 62.8189 41.8709 64.6591 44.0887 66.5779C44.9834 67.351 44.9138 67.4315 43.6602 68.7494H43.6621Z",fill:"currentColor"}),t.jsx("path",{d:"M37.9421 69.1332C37.0268 67.7667 36.4084 66.4001 35.3897 65.2956C35.0646 64.9418 34.8033 64.5805 35.183 64.1668C35.6359 63.6745 36.0833 63.9478 36.4705 64.3166C36.6509 64.4869 36.8332 64.6666 36.9648 64.8744C38.2936 66.9748 39.6112 69.0827 40.9306 71.1906C40.9964 71.2954 41.0396 71.4133 41.0941 71.5257C41.2727 71.8851 41.3065 72.2483 41.0434 72.574C40.7445 72.9484 40.4043 72.7368 40.0341 72.6564C38.9778 72.428 38.8687 72.574 39.1713 73.6167C39.5886 75.0525 40.1412 76.4303 40.8329 77.7576C41.1486 78.3622 41.4249 78.9893 41.6993 79.6127C41.876 80.0133 41.7407 80.3447 41.3704 80.5599C40.9287 80.8164 40.6393 80.5281 40.4645 80.2005C39.9401 79.214 39.4176 78.2237 38.974 77.1997C38.1602 75.324 37.5211 73.3808 36.5926 71.5444C35.8859 70.1479 36.2092 69.6948 37.9403 69.1332H37.9421ZM39.145 72.3681C39.1018 72.2894 39.0567 72.2089 39.0116 72.1266C38.9702 72.1678 38.8875 72.2183 38.8951 72.2501C38.9139 72.3381 38.9702 72.4186 39.0116 72.501C39.0529 72.4598 39.0943 72.4186 39.145 72.3681Z",fill:"currentColor"}),t.jsx("path",{d:"M11.5177 56.4705C12.7018 58.0242 12.6812 58.4379
111.1475 59.0501C8.83938 59.9711 6.47116 60.7424 4.12174 61.5586C3.74208 61.6896 3.33798 61.6016 3.17822 61.1879C3.00154 60.7274 3.11807 60.3492 3.65562 60.1658C5.1273 59.6678 6.59709 59.1605 8.05937 58.6364C8.73788 58.393 9.48594 58.2975 10.078 57.8295C9.78479 57.1069 9.03109 57.0601 8.65518 56.5566C8.16087 55.8939 8.2586 55.3398 9.06116 55.1563C9.90696 54.9654 10.7922 54.9616 11.6549 54.8418C13.198 54.6284 14.7374 54.3851 16.2805 54.1642C16.6507 54.1117 17.0248 54.0762 17.3988 54.0762C17.7315 54.0762 18.0096 54.2241 18.0905 54.5779C18.1976 55.044 17.9194 55.2948 17.5172 55.3679C16.1677 55.6093 14.8144 55.8284 13.4593 56.0343C12.8559 56.126 12.2319 56.1148 11.5121 56.4686L11.5177 56.4705Z",fill:"currentColor"}),t.jsx("path",{d:"M43.5171 61.0575C42.083 60.7374 40.8181 60.4397 39.5456 60.1776C39.0419 60.0728 38.7055 59.8426 38.8145 59.3072C38.9197 58.7905 39.3614 58.5827 39.82 58.7418C41.1884 59.2136 42.6337 59.2941 44.0227 59.6535C46.1654 60.2095 46.2706 60.4659 45.0358 62.3492C47.4284 63.5828 49.9865 64.3859 52.4938 65.3125C52.9016 65.4642 53.3226 65.5915 53.7117 65.7843C53.9993 65.9266 54.2098 66.2017 54.1102 66.5462C53.9861 66.9786 53.6252 67.0891 53.2211 67.0142C52.9167 66.958 52.6141 66.8644 52.3227 66.754C49.6425 65.7375 46.9529 64.7453 44.2933 63.6802C42.6581 63.025 42.6168 62.7947 43.5171 61.0594V61.0575Z",fill:"currentColor"}),t.jsx("path",{d:"M19.4287 43.2194C19.7219 38.6068 20.9906 34.5127 23.4453 30.7781C25.1613 28.1685 26.9205 25.6038 29.0407 23.2938C29.6327 22.6479 30.2548 22.3353 31.1533 22.3709C33.6023 22.4682 35.9931 22.7341 38.2993 23.6719C40.7239 24.6585 43.1785 25.5945 45.6764 26.3826C49.5614 27.6088 52.8525 29.8346 56.1022 32.1689C56.6943 32.5939 56.8484 33.0263 56.6886 33.7452C55.8541 37.491 54.5441 41.0291 52.2962 44.176C51.0275 45.9525 49.7381 47.7141 48.4657 49.4887C47.9958 50.1439 47.5428 50.2787 46.7609 49.8257C44.5506 48.5434 42.3497 47.2404 40.0002 46.2033C33.4613 43.3186 26.7025 41.9951 19.4306 43.2175L19.4287 43.2194ZM41.9512 32.71C42.0207 31.7178 42.1016 30.7256 42.1542 29.7335C42.1861 29.1213 42.329 28.3987 41.6429 28.0693C40.9306 27.7286 40.5021 28.3126 40.0886 28.7806C38.5643 30.5104 36.9234 32.1259 35.2488 33.7115C34.0647 34.8347 33.108 36.147 32.5197 37.6801C31.781 39.6008 32.1757 40.9861 33.7639 42.3171C34.497 42.933 35.354 43.2662 36.2656 43.5226C37.5437 43.8839 38.5774 43.532 39.489 42.6035C40.6299 41.4428 41.1392 40.0033 41.4625 38.4607C41.861 36.5625 41.8835 34.6344 41.9531 32.7081L41.9512 32.71Z",fill:"hsl(var(--ink-paper))"}),t.jsx("path",{d:"M33.6777 21.1537C33.4972 20.7774 33.5442 20.5397 33.6438 20.3057C36.4894 13.6151 40.7898 8.06838 46.7517 3.84702C47.6107 3.23862 48.5598 2.73879 49.5071 2.27079C51.725 1.1738 53.83 1.52386 55.8505 2.84175C57.3166 3.79835 58.324 5.12934 58.9875 6.70369C60.0475 9.21779 60.4704 11.8629 60.1077 14.5661C59.5344 18.8418 58.2676 22.9508 56.7039 26.955C55.5329 29.9483 55.1739 29.9633 52.6328 28.0651C52.0144 27.6027 52.099 27.2545 52.379 26.7004C53.7361 24.0272 54.7924 21.236 55.5291 18.3326C56.2772 15.3823 56.3599 12.4096 55.3863 9.49672C54.6439 7.2784 52.9636 6.44349 50.6856 6.94144C49.68 7.16233 48.8399 7.67339 48.0129 8.23873C43.6054 11.2545 40.7804 15.5676 38.213 20.0904C38.0288 20.4142 37.8615 20.7531 37.7337 21.1013C37.5457 21.6142 37.198 21.749 36.7037 21.6217C35.685 21.3596 34.6513 21.1855 33.6777 21.1537Z",fill:"hsl(var(--ink-paper))"}),t.jsx("path",{d:"M39.468 52.5863C39.9773 52.97 40.3269 53.2228 40.6633 53.4923C41.0355 53.79 41.3813 53.6945 41.6463 53.38C41.9433 53.0299 41.7892 52.6818 41.4978 52.3935C40.825 51.7289 40.0281 51.2403 39.1973 50.7985C36.2953 49.256 33.1226 48.5502 29.9537 47.8426C28.6136 47.5431 27.2604 47.3035 25.909 47.0695C25.4823 46.9946 25.035 46.9984 24.5989 47.0133C24.1911 47.0283 23.8847 47.2286 23.8321 47.6741C23.787 48.0485 24.0106 48.2657 24.3358 48.3462C24.8094 48.4641 25.1872 48.5858 24.8677 49.1961C24.5895 49.7277 24.3057 50.1246 23.5746 49.8794C21.8492 49.2972 20.4771 48.4885 20.0298 46.4854C19.6144 44.6247 19.4828 44.6789 21.4188 44.3963C26.5029 43.6531 31.3709 44.6284 36.16 46.2084C39.8025 47.4102 43.0842 49.3458 46.394 51.2272C47.268 51.7233 47.6063 52.3729 47.5368 53.3538C47.2474 57.3318 47.9503 56.5343 44.3472 56.3602C42.7365 56.2835 41.1088 56.0645 39.5751 55.4635C38.4098 55.0086 38.406 55.0124 38.8609 53.9322C39.0281 53.5373 39.2123 53.1479 39.4661 52.5882L39.468 52.5863Z",fill:"hsl(var(--ink-paper))"}),t.jsx("path",{d:"M27.2021 53.0135C26.845 52.6073 26.5781 52.276 26.2811 51.9727C26.0292 51.7162 25.5067 51.9222 25.3545 51.4729C26.6702 48.6087 26.6664 48.6256 29.6041 49.2358C31.6773 49.6664 33.7259 50.1849 35.7389 50.8364C36.3817 51.0442 37.0527 51.2333 37.5865 51.7237C36.5434 53.723 35.0698 55.4134 33.6733 57.16C33.4459 57.4446 33.1846 57.8377 32.8031 57.4315C32.4309 57.0365 31.5081 57.3322 31.5964 56.3345C31.7111 55.039 31.6585 53.7324 31.8032 52.4313C31.9535 51.0872 31.4066 50.6773 30.1736 51.2501C29.1662 51.7181 28.2527 52.3827 27.204 53.0173L27.2021 53.0135Z",fill:"hsl(var(--ink-paper))"}),t.jsx("path",{d:"M48.8906 55.0536C48.8906 53.9061 48.9056 52.7585 48.8831 51.611C48.8737 51.1917 49.1049 50.9315 49.3304 50.6319C50.2627 49.3927 51.1649 48.1291 52.1009 46.8917C54.1665 44.1642 55.9877 41.3056 57.1474 38.0596C55.4558 44.1848 53.1064 49.9955 49.3173 55.136C49.1744 55.1079 49.0335 55.0798 48.8906 55.0517V55.0536Z",fill:"hsl(var(--ink-paper))"}),t.jsx("path",{d:"M21.786 57.0156C21.9514 57.712 22.0679 58.3167 22.2389 58.9045C22.8441 60.988 23.7971 61.2875 25.4435 59.9322C26.0036 59.4717 26.4453 58.839 27.3325 58.5469C27.6745 60.0988 28.9977 61.1546 28.8079 62.8844C28.7139 63.7324 29.009 63.811 30.5784 64.1217C30.5953 66.0106 29.6217 67.6654 29.2909 69.4513C29.1707 69.4644 29.1086 69.4794 29.0466 69.4757C28.494 69.4364 27.855 68.6482 27.4133 69.5C26.9678 70.3593 27.8926 70.4772 28.3474 70.7992C29.3943 71.5405 30.1969 72.484 30.71 73.6427C32.43
117 77.5234 32.3903 81.3385 30.304 85.1106C28.3324 88.6787 25.5244 91.3144 21.754 92.8701C17.307 94.7046 12.7849 94.6578 8.50704 92.5593C3.79692 90.2474 1.44186 86.2507 1.346 80.9772C1.23511 74.8895 3.98299 70.3724 9.00699 67.1113C10.1667 66.3588 11.4335 65.8346 12.8149 65.6287C13.1213 65.5838 13.5743 65.3928 13.7115 65.5257C14.8448 66.6246 15.7207 65.1102 16.7789 65.2449C17.1811 65.2955 17.3935 64.4718 16.9612 64.2416C16.1022 63.7848 16.4462 63.3243 16.7394 62.7795C17.0627 62.1767 17.3634 61.5608 17.6754 60.9524C17.7882 60.7353 17.8953 60.3384 18.0231 60.3309C20.0831 60.2111 20.2992 58.0602 21.7841 57.0175L21.786 57.0156ZM18.8858 68.7344C14.125 68.7081 8.94685 71.548 6.41699 75.5653C4.97727 77.851 4.80811 80.3651 5.08816 82.9503C5.14079 83.4389 5.36069 84.0211 5.96966 83.9856C6.66885 83.9462 6.58427 83.3416 6.53728 82.8399C6.50345 82.4674 6.44143 82.0967 6.42827 81.7242C6.36625 79.8971 6.56172 78.1299 7.5184 76.5032C10.0201 72.25 15.8353 69.4644 20.6676 70.2956C21.9495 70.5165 23.2783 70.8254 24.1692 71.8849C25.4059 73.3545 26.0713 75.058 26.1164 77.0123C26.201 80.689 24.7594 83.7834 22.5641 86.6101C22.1055 87.1998 21.6055 87.7614 21.1845 88.3773C20.7597 88.9988 20.3368 89.712 20.8575 90.4421C21.4401 91.262 22.3216 91.0187 23.0922 90.7847C24.6259 90.3185 25.9115 89.478 26.7912 88.0909C27.7967 86.5071 28.65 84.8467 29.2158 83.0589C31.1893 76.827 27.0524 68.6539 18.8858 68.7325V68.7344ZM12.8074 91.2527C14.8937 91.3332 17.4254 89.1878 17.6735 87.1174C17.7675 86.3387 17.5138 85.6647 17.0401 85.0432C15.1813 82.6096 12.6383 82.4299 10.3095 84.6277C9.16112 85.7115 8.53147 87.0332 9.03519 88.6431C9.46372 90.0153 11.2117 91.1871 12.8074 91.2489V91.2527Z",fill:"hsl(var(--ink-paper))"}),t.jsx("path",{d:"M41.9513 32.7095C41.8818 34.6339 41.8592 36.564 41.4608 38.4622C41.1375 40.0047 40.6281 41.4443 39.4872 42.6049C38.5757 43.5316 37.5438 43.8854 36.2638 43.5241C35.3542 43.2676 34.4971 42.9344 33.7622 42.3185C32.1759 40.9875 31.7812 39.6022 32.5179 37.6815C33.1081 36.1484 34.0629 34.8361 35.247 33.7129C36.9198 32.1254 38.5625 30.5118 40.0868 28.7821C40.5003 28.3141 40.9289 27.73 41.6412 28.0707C42.3272 28.4002 42.1844 29.1228 42.1524 29.7349C42.0998 30.7271 42.019 31.7192 41.9494 32.7114L41.9513 32.7095Z",fill:"currentColor"}),t.jsx("path",{d:"M18.8853 68.734C27.0519 68.6553 31.1887 76.8285 29.2152 83.0604C28.6495 84.8482 27.7962 86.5067 26.7906 88.0923C25.911 89.4795 24.6273 90.32 23.0917 90.7861C22.3211 91.0201 21.4396 91.2635 20.8569 90.4436C20.3363 89.7116 20.7573 89.0002 21.184 88.3787C21.605 87.7629 22.1049 87.2013 22.5635 86.6116C24.7607 83.7849 26.2004 80.6904 26.1159 77.0138C26.0707 75.0595 25.4054 73.3559 24.1687 71.8864C23.2778 70.8269 21.9508 70.5161 20.6671 70.2971C15.8348 69.4659 10.0195 72.2514 7.51785 76.5046C6.56116 78.1314 6.36569 79.8986 6.42772 81.7257C6.44087 82.0982 6.5029 82.4688 6.53673 82.8414C6.58184 83.3431 6.66642 83.9477 5.96911 83.987C5.36014 84.0207 5.14211 83.4385 5.08761 82.9518C4.80756 80.3666 4.97671 77.8525 6.41644 75.5668C8.94629 71.5495 14.1244 68.7096 18.8853 68.7358V68.734ZM22.0504 89.4439C24.054 88.9516 24.7457 88.5772 25.537 87.3754C26.7004 85.6082 27.6796 83.7455 28.0837 81.6302C28.3863 80.0427 28.3694 78.4946 27.6195 76.6806C27.5894 81.7874 25.4167 85.6774 22.0504 89.442V89.4439Z",fill:"currentColor"}),t.jsx("path",{d:"M12.8069 91.2529C11.2131 91.1911 9.46321 90.0192 9.03468 88.647C8.53284 87.0353 9.16248 85.7155 10.309 84.6316C12.6377 82.432 15.1808 82.6136 17.0396 85.0472C17.5133 85.6668 17.7651 86.3426 17.673 87.1214C17.4249 89.1918 14.8932 91.3371 12.8069 91.2566V91.2529ZM13.0832 89.8376C14.2786 89.8
1077 16.1036 88.1697 16.2408 87.0128C16.2953 86.5467 16.1318 86.1704 15.8536 85.8091C14.5831 84.1655 12.7787 84.1224 11.2225 85.708C10.3729 86.5747 10.2113 87.2449 10.6285 88.1753C11.0627 89.1412 12.1265 89.862 13.0832 89.8358V89.8376Z",fill:"currentColor"}),t.jsx("path",{d:"M22.0508 89.4441C25.417 85.6776 27.5879 81.7876 27.6198 76.6826C28.3698 78.4966 28.3867 80.0429 28.0841 81.6322C27.68 83.7476 26.7008 85.6102 25.5373 87.3774C24.746 88.5792 24.0544 88.9536 22.0508 89.4459V89.4441Z",fill:"hsl(var(--ink-paper))"})]}),e[0]=c):c=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_venue_lock_with_key",children:t.jsx("rect",{width:"65",height:"96",fill:"white"})})}),e[1]=o):o=e[1];let r;return e[2]!==s||e[3]!==a||e[4]!==l?(r=t.jsxs("svg",{height:a,viewBox:"0 0 65 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,style:l,children:[c,o]}),e[2]=s,e[3]=a,e[4]=l,e[5]=r):r=e[5],r}function Zl(i){const e=F.c(8),{onCTAPress:s}=i;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("div",{className:"flex justify-center",children:t.jsx(bl,{size:96,className:"text-ink-black"})}),e[0]=l):l=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"flex flex-col items-center",children:t.jsx("div",{className:"text-2xl text-center max-w-3/4 leading-tighter font-medium tracking-wide uppercase",children:"Artist chargeback protection"})}),e[1]=n):n=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("div",{className:"text-base",children:"Say goodbye to chargebacks"}),t.jsx("div",{className:"text-sm leading-snug font-light text-ink-black-600",children:"If your client files a chargeback on eligible deposits or payments, we cover the costâas long as your account is in good standing."})]}),e[2]=a):a=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("div",{className:"text-base",children:"What's eligible?"}),t.jsx("div",{className:"text-sm leading-snug font-light text-ink-black-600",children:"Any deposit or payment processed on Venue using Apple Pay, Google Pay, card or BNPL like Affirm, Klarna, Afterpay, or Clearpay."})]}),e[3]=c):c=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs("div",{className:"flex flex-col gap-4 text-left",children:[a,c,t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("div",{className:"text-base text-ink-black",children:"How much does this cost?"}),t.jsx("div",{className:"text-sm leading-snug font-light text-ink-black-600",children:"Nothing! No extra fees or set up required. Keep taking deposits and payments with us and you'll automatically get peace of mind."})]})]}),e[4]=o):o=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(qt,{className:"px-6 pt-10 pb-6",children:t.jsxs("div",{className:"flex flex-col gap-6",children:[l,n,o,t.jsxs("div",{className:"flex items-center gap-2 text-sm leading-snug font-medium tracking-wider uppercase mb-2",children:[t.jsx(pl,{size:24,className:"text-ink-black"}),t.jsx("div",{children:"Look for the lock to know you're protected."})]})]})}),e[5]=r):r=e[5];let d;return e[6]!==s?(d=t.jsxs(Gt,{side:"bottom",showClose:!1,className:"bg-ink-paper border-0 shadow-none",children:[r,t.jsx("div",{className:"px-6 pb-safe-or-6",children:t.jsx(W,{variant:"primary",size:"lg",onClick:s,fullWidth:!0,className:"uppercase tracking-widest font-medium",children:"Got it!"})})]}),e[6]=s,e[7]=d):d=e[7],d}export{Rl as A,zs as B,qs as C,ne as D,Wl as E,Ll as F,bl as G,$l as H,E1 as I,Bl as J,Hl as K,Pl as M,Kt as Q,r1 as R,El as S,Ml as T,pl as V,de as a,ye as b,kt as c,ke as d,St as e,Bt as f,at as g,wt as h,Fl as i,Tl as j,Dl as k,zl as l,js as m,gs as n,A1 as o,wl as p,vs as q,Ts as r,Ol as s,ys as t,_l as u,Sl as v,I1 as w,Il as x,Al as y,Zl as z}; 2 3//# chunkId=01a0f45b-c7fb-71f0-bcb0-7e86cf625180
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.