PageSourceSearch

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

js venue.ink collected 2026-10-01 12:12:38 UTC 15,768 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f45b-c73e-7b72-90e5-84afe08a52ef")}catch(e){}}();import{j as s,r as M}from"./1_rjLJJT.js";import{c as E,am as ae,T as t,aI as m,aJ as U,B as $,a as Y,ao as G,bo as te,u as le,z as ne,t as H,by as ie,U as re,bS as ce,bT as oe,bz as de,bU as me,aK as xe,aN as he,aL as pe,aO as V,bV as fe}from"./Cnl0lOne.js";import{u as L,C as ue}from"./CCG8K7S4.js";import{t as be,a as je,d as ge,h as ve,D as Ne}from"./1wdvSDDz.js";import{a as J,S as q,h as ye,e as Q,d as X,g as Z}from"./B35B_vHQ.js";import{p as ke,N as Ce,O as we,e as W}from"./YLLfQEvQ.js";import{u as Se,O as ze}from"./IR4uT189.js";import"./B5dUIQ6s.js";import"./BnWyCVyG.js";const Oe=new Map(G.flatMap(e=>e.skus.map(a=>[a.id,{product:e,sku:a}])));function Pe(){const e=E.c(44),{skuIds:a,remove:r,isSheetOpen:n,setSheetOpen:i,setReviewOpen:l,lastAddedSkuId:o}=L();let d,h,S,v,N,y,k,f,z,x,b,j,O,P;if(e[0]!==n||e[1]!==o||e[2]!==r||e[3]!==l||e[4]!==i||e[5]!==a){const C=a.map($e).filter(Re),F=C.reduce(_e,0);let _;e[20]!==l||e[21]!==i?(_=()=>{i(!1),l(!0)},e[20]=l,e[21]=i,e[22]=_):_=e[22];const I=_;S=J,P=n,y=i,h=q,k="bottom",f=!1,z="max-h-[80dvh] flex flex-col gap-0",x="backdrop-blur-none",e[23]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"absolute z-10 left-4 top-5 w-8 h-8",children:s.jsxs(ye,{className:"flex items-center justify-center rounded-lg opacity-70 transition-opacity hover:opacity-100 disabled:pointer-events-none",children:[s.jsx(be,{size:32,className:"text-ink-black-500 dark:text-ink-black-300"}),s.jsx("span",{className:"sr-only",children:"Close"})]})}),e[23]=b):b=e[23],e[24]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Q,{className:"pt-5!",children:s.jsx(X,{children:"Your bag"})}),e[24]=j):j=e[24],O=C.length===0?s.jsx("div",{className:"flex-1 flex items-center justify-center px-5 py-10",children:s.jsx(ae,{centered:!1,icon:ke,title:"Your bag is empty",description:"Add an item from this drop to checkout"})}):s.jsx("div",{className:"min-h-0 overflow-y-auto px-5 py-5 flex flex-col gap-4",children:C.map(T=>{const{product:g,sku:w}=T;return s.jsxs("div",{className:Y("flex items-stretch gap-5",w.id===o&&"animate-in slide-in-from-right-8 fade-in duration-500"),children:[s.jsx("div",{className:"size-20 shrink-0 rounded-2xl overflow-hidden bg-ink-paper ring-1 ring-ink-black-100",children:g.imagePath?s.jsx("img",{src:g.imagePath,alt:`${g.brand} ${g.name}`,className:"w-full h-full object-cover"}):null}),s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-between py-1",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsxs(t,{variant:"heading",size:"base",className:"min-w-0 line-clamp-2",children:[g.name," — ",w.type]}),s.jsxs("div",{className:"shrink-0 flex flex-col items-end gap-1",children:[s.jsx(t,{variant:"label",size:"base",className:"whitespace-nowrap font-medium",children:m(U(w.msrpCents,g.discountPercent))}),s.jsx(t,{variant:"label",size:"sm",className:"line-through text-ink-black-400 whitespace-nowrap",children:m(w.msrpCents)})]})]}),s.jsx($,{variant:"link",size:"sm",onClick:()=>r(w.id),className:"self-start p-0 text-ink-black-600",children:"Remove"})]})]},w.id)})}),d=Z,v="grid-cols-1 gap-6",N=C.length===0?s.jsx($,{fullWidth:!0,size:"lg",onClick:()=>i(!1),children:"Shop now"}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center justify-between px-2 mt-2",children:[s.jsx(t,{variant:"label",size:"base",className:"text-ink-black-700",children:"Subtotal"}),s.jsx(t,{variant:"heading",size:"lg",children:m(F)})]}),s.jsx($,{fullWidth:!0,size:"lg",onClick:I,children:"Continue to checkout"})]}),e[0]=n,e[1]=o,e[2]=r,e[3]=l,e[4]=i,e[5]=a,e[6]=d,e[7]=h,e[8]=S,e[9]=v,e[10]=N,e[11]=y,e[12]=k,e[13]=f,e[14]=z,e[15]=x,e[16]=b,e[17]=j,e[18]=O,e[19]=P}else d=e[6],h=e[7],S=e[8],v=e[9],N=e[10],y=e[11],k=e[12],f=e[13],z=e[14],x=e[15],b=e[16],j=e[17],O=e[18],P=e[19];let p;e[25]!==d||e[26]!==v||e[27]!==N?(p=s.jsx(d,{className:v,children:N}),e[25]=d,e[26]=v,e[27]=N,e[28]=p):p=e[28];let u;e[29]!==h||e[30]!==p||e[31]!==k||e[32]!==f||e[33]!==z||e[34]!==x||e[35]!==b||e[36]!==j||e[37]!==O?(u=s.jsxs(h,{side:k,showClose:f,className:z,overlayClassName:x,children:[b,j,O,p]}),e[29]=h,e[30]=p,e[31]=k,e[32]=f,e[33]=z,e[34]=x,e[35]=b,e[36]=j,e[37]=O,e[38]=u):u=e[38];let D;return e[39]!==S||e[40]!==y||e[41]!==u||e[42]!==P?(D=s.jsx(S,{open:P,onOpenChange:y,children:u}),e[39]=S,e[40]=y,e[41]=u,e[42]=P,e[43]=D):D=e[43],D}function _e(e,a){const{product:r,sku:n}=a;return e+U(n.msrpCents,r.discountPercent)}function Re(e){return!!e}function $e(e){return Oe.get(e)}function Te(e){const a=E.c(2),{className:r}=e;let n;return a[0]!==r?(n=s.jsx(te,{className:r,inverted:!0}),a[0]=r,a[1]=n):n=a[1],n}const Ee=[{icon:Ce,text:"Curated drops featuring your favorite tattoo brands and exclusive Venue merch"},{icon:Te,text:"Deep, time limited discounts for select artists on Venue"},{icon:we,text:"Pay with your balance for the best price. One order per drop."}];function Fe(){const e=E.c(8),{isExplainerOpen:a,setExplainerOpen:r}=L();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"h-70 w-full overflow-hidden",children:s.jsx("img",{src:"/assets/features/members-only-001/members-only-v2.avif",alt:"",className:"h-full w-full object-cover"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("span",{className:"inline-flex h-[18px] w-fit items-center rounded-full bg-ink-
1peach px-2",children:s.jsx(t,{variant:"label",size:"xs",element:"span",className:"text-[10px] uppercase text-ink-black",children:"Members Only"})}),e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("div",{className:"flex flex-col gap-4",children:[i,s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(t,{variant:"heading",size:"2xl",children:"An exclusive store, just for you"}),s.jsx(t,{className:"tracking-wide",children:"Deep discounts on the gear, supplies, and Venue merch you actually want."})]})]}),e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs("div",{className:"flex flex-col gap-5",children:[l,s.jsx("div",{className:"flex flex-col gap-4.5",children:Ee.map(De)})]}),e[3]=o):o=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsxs(je,{showClose:!1,className:"rounded-t-[32px] border-t-0",children:[n,s.jsxs("div",{className:"flex flex-col gap-8 px-5 pb-2 pt-5",children:[o,s.jsx(ge,{className:"px-0",children:s.jsx(ve,{asChild:!0,children:s.jsx($,{children:"Got it"})})})]})]}),e[4]=d):d=e[4];let h;return e[5]!==a||e[6]!==r?(h=s.jsx(Ne,{open:a,onOpenChange:r,children:d}),e[5]=a,e[6]=r,e[7]=h):h=e[7],h}function De(e){return s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"flex shrink-0 items-center pt-0.5",children:s.jsx(e.icon,{className:"size-6"})}),s.jsx(t,{className:"tracking-wide",children:e.text})]},e.text)}const Ie=new Map(G.flatMap(e=>e.skus.map(a=>[a.id,{product:e,sku:a}]))),Me=[50,75,100],Ae=50;function Be(){const{skuIds:e,clear:a,isReviewOpen:r,setReviewOpen:n,setSheetOpen:i}=L(),{personId:l,handle:o}=le(),d=ne(),h=Se(),S=H.useUtils(),[v,N]=M.useState(!1),[y,k]=M.useState(null),[f,z]=M.useState(Ae),[x,b]=M.useState("balance"),[j,O]=M.use
1State(!1),{mutateAsync:P}=H.membersOnly001.placeMembersOnly001Orders.useMutation(),p=e.map(c=>Ie.get(c)).filter(c=>!!c),u=p.reduce((c,{product:R,sku:se})=>c+U(se.msrpCents,R.discountPercent),0),C=p.reduce((c,{sku:R})=>c+R.msrpCents,0)-u,F=pe(u),_=F===0,I=x==="card"?xe(u):0,T=u+F+I,g=p.length,w=g===1?"item":"items",{formatted:K}=ie({personId:l,totalCents:T,paybackRate:f,enabled:r}),ee=async()=>{if(l){N(!0),k(null);try{await P({personId:l,skuIds:e,paymentMethod:x,balanceDeductionRatePercent:x==="balance"?f:void 0}),he(l,Date.now()),await S.membersOnly001.getMembersOnly001Status.invalidate({personId:l}),a(),n(!1),h(d("membersOnly001Order",{personId:l,handle:o}))}catch(c){console.error("Checkout failed:",c),k(c instanceof Error?c.message:"Something went wrong. Please try again.")}finally{N(!1)}}};return s.jsx(J,{open:r,onOpenChange:n,children:s.jsxs(q,{side:"bottom",showClose:!1,className:"max-h-[90dvh] flex flex-col gap-0",overlayClassName:"backdrop-blur-none",children:[s.jsx("div",{className:"absolute z-10 left-4 top-5 w-8 h-8",children:s.jsxs("button",{type:"button",onClick:()=>{n(!1),i(!0)},"aria-label":"Back to bag",className:"flex items-center justify-center rounded-lg opacity-70 transition-opacity hover:opacity-100 disabled:pointer-events-none",children:[s.jsx(re,{size:32,className:"text-ink-black-500 dark:text-ink-black-300"}),s.jsx("span",{className:"sr-only",children:"Back to bag"})]})}),s.jsx(Q,{className:"pt-5!",children:s.jsx(X,{children:"Checkout"})}),s.jsxs("div",{className:"min-h-0 overflow-y-auto px-5 py-5 flex flex-col gap-5 [&>*+*]:pt-5 [&>*+*]:border-t [&>*+*]:border-ink-black-100",children:[s.jsx(A,{title:"Ship to",children:s.jsx(t,{variant:"heading",size:"base",className:"leading-[125%]",children:"We'll contact you before shipment"})}),s.jsxs(A,{title:"Shipping method",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(t,{variant:"heading",size:"base",children:"Standard"}),s.jsx("div",{className:"flex items-center gap-2",children:_?s.jsxs(s.Fragment,{children:[s.jsx(t,{element:"span",size:"sm",className:"line-through text-ink-black-400",children:m(V)}),s.jsx(t,{element:"span",variant:"heading",size:"base",children:"Free"})]}):s.jsx(t,{element:"span",variant:"heading",size:"base",children:m(F)})})]}),!_&&s.jsxs(t,{size:"sm",className:"text-ink-black-700",children:["Free shipping on orders of"," ",m(fe)," or more."]})]}),s.jsx(A,{title:"Payment method",children:s.jsx("div",{className:"flex flex-col gap-2",children:s.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[s.jsx($,{variant:x==="balance"?"primary":"tertiary",size:"sm",onClick:()=>b("balance"),className:"inline-flex h-7 min-h-7 px-3 rounded-full gap-1 border-0",children:"From balance"}),s.jsx($,{variant:x==="card"?"primary":"tertiary",size:"sm",onClick:()=>b("card"),className:"inline-flex h-7 min-h-7 px-3 rounded-full gap-1 border-0",children:"Credit card"})]})})}),x==="balance"&&s.jsx(A,{title:"Deduction rate",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("div",{className:"flex flex-wrap gap-1.5",children:Me.map(c=>s.jsxs($,{variant:f===c?"primary":"tertiary",size:"sm",onClick:()=>z(c),className:"inline-flex h-7 min-h-7 px-3 rounded-full gap-1 border-0",children:[c,"%"]},c))}),s.jsxs(t,{size:"sm",className:"text-ink-black-700",children:["We'll deduct ",f,"% of your future balance until order is paid in full.",K?` Based on your past 90 days, you'll pay for this order in ${K}.`:""]})]})}),s.jsx("div",{className:"flex flex-col gap-3",children:s.jsxs(ce,{open:j,onOpenChange:O,className:"group flex flex-col",children:[s.jsx(oe,{className:"text-left w-full",children:j?s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(t,{variant:"heading",size:"lg",children:"Order summary"}),s.jsx(W,{className:"size-5 shrink-0 rotate-180"})]}):s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(de,{items:p}),s.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[s.jsxs("div",{className:"flex-1 flex flex-col gap-1",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx(t,{variant:"heading",size:"lg",children:"Total"}),s.jsx(t,{variant:"heading",size:"lg",children:m(T)})]}),s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsxs(t,{size:"sm",className:"text-ink-black-700",children:[g," ",w]}),C>0&&s.jsxs(t,{size:"sm",className:"text-ink-black-700",children:["you save ",m(C)]})]})]}),s.jsx(W,{className:"size-5 shrink-0"})]})]})}),s.jsxs(me,{className:"flex flex-col gap-4 pt-4",children:[p.map(({product:c,sku:R})=>s.jsxs("div",{className:"flex items-stretch gap-5",children:[s.jsx("div",{className:"size-20 shrink-0 rounded-2xl overflow-hidden bg-ink-paper ring-1 ring-ink-black-100",children:c.imagePath?s.jsx("img",{src:c.imagePath,alt:`${c.brand} ${c.name}`,className:"w-full h-full object-cover"}):null}),s.jsxs("div",{className:"flex-1 min-w-0 flex items-center justify-between gap-2",children:[s.jsxs(t,{variant:"heading",size:"base",className:"min-w-0 line-clamp-2",children:[c.name," — ",R.type]}),s.jsxs("div",{className:"shrink-0 flex flex-col items-end gap-1",children:[s.jsx(t,{variant:"label",size:"base",className:"whitespace-nowrap font-medium",children:m(U(R.msrpCents,c.discountPercent))}),s.jsx(t,{variant:"label",size:"sm",className:"line-through text-ink-black-400 whitespace-nowrap",children:m(R.msrpCents)})]})]})]},R.id)),s.jsxs("div",{className:"font-emphasis flex flex-col gap-3 pt-4",children:[s.jsx(B,{label:`Subtotal · ${g} ${w}`,value:m(u)}),C>0&&s.jsx(B,{label:"Savings",value:`−${m(C)}`}),I>0&&s.jsx(B,{label:"Card processing",value:m(I)}),s.jsx(B,{label:"Shipping",value:_?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(t,{element:"span",size:"sm",className:"line-through text-ink-black-400",children:m(V)}),s.jsx(t,{element:"span",size:"sm",children:"Free"})]}):m(F)}),s.jsx(Ue,{}),s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx(t,{variant:"label",size:"base",className:"text-ink-black-500",children:"Total"}),s.jsxs("div",{className:"flex items-baseline gap-1.5 lining-nums tabular-nums slashed-zero",children:[s.jsx(t,{element:"span",size:"sm",className:"text-ink-black-600",children:"USD"}),s.jsx(t,{variant:"heading",size:"2xl",children:m(T)})]})]})]})]})]})}),y&&s.jsx(t,{size:"sm",className:"text-ink-destructive",children:y})]}),s.jsxs(Z,{className:"grid-cols-1 gap-3",children:[s.jsx(t,{variant:"body",
1size:"sm",className:"text-ink-black-700",children:x==="balance"?`By confirming, you agree to have Venue deduct ${f}% of your future earnings until ${m(T)} is paid in full. Order ships once fully paid. One order per drop.`:`Once confirmed, you agree to be invoiced ${m(T)} including card processing. One order per drop.`}),s.jsx($,{fullWidth:!0,size:"lg",disabled:v||p.length===0||!l,onClick:ee,children:v?"Confirming…":"Confirm Order"})]})]})})}function A(e){const a=E.c(8),{title:r,children:n,className:i}=e;let l;a[0]!==i?(l=Y("flex flex-col gap-3",i),a[0]=i,a[1]=l):l=a[1];let o;a[2]!==r?(o=s.jsx(t,{variant:"label",size:"sm",children:r}),a[2]=r,a[3]=o):o=a[3];let d;return a[4]!==n||a[5]!==l||a[6]!==o?(d=s.jsxs("div",{className:l,children:[o,n]}),a[4]=n,a[5]=l,a[6]=o,a[7]=d):d=a[7],d}function B(e){const a=E.c(7),{label:r,value:n}=e;let i;a[0]!==r?(i=s.jsx(t,{variant:"label",size:"sm",className:"text-ink-black-500",children:r}),a[0]=r,a[1]=i):i=a[1];let l;a[2]!==n?(l=typeof n=="string"?s.jsx(t,{size:"sm",children:n}):n,a[2]=n,a[3]=l):l=a[3];let o;return a[4]!==i||a[5]!==l?(o=s.jsxs("div",{className:"flex items-center justify-between",children:[i,l]}),a[4]=i,a[5]=l,a[6]=o):o=a[6],o}function Ue(){const e=E.c(1);let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"h-0.5 w-full",style:{backgroundImage:"linear-gradient(to right, hsl(var(--ink-black-200) / 1) 20%, rgba(255,255,255,0) 0%)",backgroundRepeat:"repeat-x",backgroundPosition:"center",backgroundSize:"10px 2px"}}),e[0]=a):a=e[0],a}function Qe(){const e=E.c(1);let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs(ue,{children:[s.jsx(ze,{}),s.jsx(Pe,{}),s.jsx(Fe,{}),s.jsx(Be,{})]}),e[0]=a):a=e[0],a}export{Qe as default};
2
3//# chunkId=01a0f45b-c73e-7b72-90e5-84afe08a52ef

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.