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-c79b-7de1-b36d-72bb4ce46d0a")}catch(e){}}();import{r as G,j as s}from"./1_rjLJJT.js";import{c as K,u as J,z as V,t as Q,an as ee,ao as te,a as Y,ap as se,C as ae}from"./Cnl0lOne.js";import{u as le}from"./IR4uT189.js";import{P as ne,u as re}from"./2l8uC-_8.js";import{M as W,D as oe,a as ie,b as ce}from"./CwcSxL4l.js";import{a as me}from"./B8iMfA4T.js";import{b as de}from"./B_3FkuSh.js";import"./B5dUIQ6s.js";import"./YLLfQEvQ.js";import"./BnWyCVyG.js";import"./D5sCs59G.js";import"./CKV_eVFE.js";function pe(){const e=K.c(44),{personId:t,handle:n}=J(),l=V(),d=le(),N=me();let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[0]=p):p=e[0],G.useLayoutEffect(xe,p);let r;e[1]!==t?(r={personId:t},e[1]=t,e[2]=r):r=e[2];const i=!!t;let o;e[3]!==i?(o={enabled:i},e[3]=i,e[4]=o):o=e[4];const{data:f,isLoading:X}=Q.membersOnly002.getMembersOnly002Status.useQuery(r,o),{isEnabled:j,isLoading:P}=ee("members-only-001",t??void 0);let c;e[5]!==t?(c={personId:t},e[5]=t,e[6]=c):c=e[6];const O=!!t&&!!j;let u;e[7]!==O?(u={enabled:O},e[7]=O,e[8]=u):u=e[8];const{data:m,isLoading:S}=Q.membersOnly001.getMembersOnly001Status.useQuery(c,u),B=X||P||!!j&&S;let _;e[9]===Symbol.for("react.memo_cache_sentinel")?(_=new Map(ne.flatMap(he)),e[9]=_):_=e[9];const Z=_;let k;e[10]===Symbol.for("react.memo_cache_sentinel")?(k=new Map(te.flatMap(ue)),e[10]=k):k=e[10];const H=k;let E;e[11]!==l||e[12]!==n||e[13]!==t?(E=l("membersOnly002",{handle:n,personId:t}),e[11]=l,e[12]=n,e[13]=t,e[14]=E):E=e[14];const h=E;let w;e[15]!==f?.orders?(w=f?.orders??[],e[15]=f?.orders,e[16]=w):w=e[16];const A=re(w);let L;e[17]!==A||e[18]!==m?(L=de(A,m?{orderedSkuIds:m.orderedSkuIds,orderStatus:m.orderStatus,orderTotalCents:m.orderTotalCents,orderPaymentMethod:m.orderPaymentMethod}:null),e[17]=A,e[18]=m,e[19]=L):L=e[19];const v=L;let C;e[20]===Symbol.for("react.memo_cache_sentinel")?(C=a=>a.skuIds.map(T=>a.drop==="002"?Z.get(T):H.get(T)).filter(fe),e[20]=C):C=e[20];const q=C;let R;e[21]!==l||e[22]!==n||e[23]!==t?(R=a=>a.drop==="002"?l("membersOnly002Order",{orderId:a.orderId,handle:n,personId:t}):l("membersOnly001Order",{handle:n,personId:t}),e[21]=l,e[22]=n,e[23]=t,e[24]=R):R=e[24];const U=R;let x;
1e[25]!==d||e[26]!==h?(x=()=>d(h),e[25]=d,e[26]=h,e[27]=x):x=e[27];let M;e[28]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(se,{className:"size-5"}),e[28]=M):M=e[28];let g;e[29]!==x?(g=s.jsxs("button",{type:"button",onClick:x,className:"inline-flex items-center gap-1 font-emphasis text-sm uppercase tracking-wide opacity-70 hover:opacity-100",children:[M,"Back to store"]}),e[29]=x,e[30]=g):g=e[30];let D;e[31]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(ie,{}),e[31]=D):D=e[31];let b;e[32]!==g?(b=s.jsxs("header",{className:"flex items-center justify-between gap-4",children:[g,D]}),e[32]=g,e[33]=b):b=e[33];let I;e[34]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(ce,{sizeRem:2,className:"text-drop-cream",children:"Orders"}),e[34]=I):I=e[34];let y;e[35]!==U||e[36]!==N||e[37]!==B||e[38]!==v||e[39]!==h?(y=B?s.jsx("p",{className:"text-base opacity-60",children:"Loadingâ¦"}):v.length===0?s.jsxs("div",{className:"flex flex-col items-center gap-4 pt-8 text-center",children:[s.jsx("p",{className:"text-base opacity-60",children:"No orders yet."}),s.jsx(W,{to:h,whileTap:{scale:.98},className:Y("font-emphasis text-sm uppercase tracking-wide text-drop-red",oe),children:"Browse the drop"})]}):s.jsx("ul",{className:"flex flex-col gap-4",children:v.map(a=>{const T=q(a);return s.jsx("li",{children:s.jsxs(W,{to:U(a),whileTap:{scale:.99}
1,className:"flex items-center gap-4 rounded-lg bg-drop-surface p-4",children:[s.jsx(be,{imagePaths:T}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[s.jsx("span",{className:"font-sans font-semibold text-xl leading-tight",children:a.title}),s.jsx("span",{className:"font-emphasis text-sm uppercase tracking-wide text-drop-red",children:a.dateMs!==null?`${new Date(a.dateMs).toLocaleDateString()} · ${a.statusLabel}`:a.statusLabel}),s.jsxs("span",{className:"text-sm opacity-60",children:[a.itemCount," ",a.itemCount===1?"item":"items"]})]}),a.totalCents!==null&&s.jsx("span",{className:"shrink-0 font-sans font-semibold text-xl leading-tight",children:N(a.totalCents)})]})},a.key)})}),e[35]=U,e[36]=N,e[37]=B,e[38]=v,e[39]=h,e[40]=y):y=e[40];let $;return e[41]!==b||e[42]!==y?($=s.jsx("div",{className:"drop-002 bg-drop-ink min-h-screen text-drop-cream",children:s.jsxs(ae,{className:"px-5 pt-3 pb-safe-or-16 flex flex-col gap-8",children:[b,I,y]})}),e[41]=b,e[42]=y,e[43]=$):$=e[43],$}function fe(e){return!!e}function ue(e){return e.skus.map(t=>[t.id,e.imagePath])}function he(e){return e.skus.map(t=>[t.id,e.imagePath])}function xe(){window.scrollTo(0,0)}const z=[72,56,40],[F]=z,ge={2:10,3:5};function be(e){const t=K.c(12),{imagePaths:n}=e,l=Math.min(n.length,z.length);if(l===0)return null;const d=ge[l]??0,p=`${F+(l-1)*d}px`;let r;t[0]!==p?(r={width:p,height:`${F}px`},t[0]=p,t[1]=r):r=t[1];let i;t[2]!==l?(i=Array.from({length:l}),t[2]=l,t[3]=i):i=t[3];let o;t[4]!==n[0]||t[5]!==l||t[6]!==d||t[7]!==i?(o=i.map((X,j)=>{const P=l-1-j,c=z[P],u=F+P*d-c,m=(F-c)/2,S=P===0;return s.jsx("div",{className:Y("absolute overflow-hidden",S?"bg-drop-surface":"bg-drop-ink ring-1 ring-drop-cream/15"),style:{width:`${c}px`,height:`${c}px`,left:`${u}px`,top:`${m}px`},children:S&&s.jsx("img",{src:n[0],alt:"",className:"h-full w-full object-cover"})},j)}),t[4]=n[0],t[5]=l,t[6]=d,t[7]=i,t[8]=o):o=t[8];let f;return t[9]!==r||t[10]!==o?(f=s.jsx("div",{className:"relative shrink-0",style:r,"aria-hidden":!0,children:o}),t[9]=r,t[10]=o,t[11]=f):f=t[11],f}function Ce(){const e=K.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(pe,{}),e[0]=t):t=e[0],t}export{Ce as default}; 2 3//# chunkId=01a0f45b-c79b-7de1-b36d-72bb4ce46d0a
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.