PageSourceSearch

https://store.villacreek.com/assets/club-detail-v2-DrgdAsUG.js

js villacreek.com collected 2026-10-03 21:41:39 UTC 10,963 bytes, 4 lines download raw bytes

1
2!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._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dd3bbb24-49ac-561d-8dfe-a60a5c03ef12")}catch(e){}}();
3(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`10598714e174bf0a729243e945712fc0f279887d`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`165f3751-70b1-45ca-a3ca-7d1288d3d4a9`,e._sentryDebugIdIdentifier=`sentry-dbid-165f3751-70b1-45ca-a3ca-7d1288d3d4a9`)}catch{}})();import{t as e}from"./jsx-runtime-C5gMzgs6.js";import{t}from"./cn-DkYPm3c-.js";import{t as n}from"./arrow-left-CkvdOCDd.js";import{t as r}from"./calendar-days-PSI-9u8h.js";import{t as i}from"./fv2-controls-GAIL57HN.js";import{t as a}from"./circle-check-6idXG9eC.js";import{i as o,n as s,t as c}from"./storefront-shell-v2-D_S_FUn5.js";import{t as l}from"./package-BEUpuIs2.js";import{t as u}from"./percent-BnOpyMQz.js";import{t as d}from"./truck-Cd1ypc31.js";import{t as f}from"./fv2-button-BhugzEuE.js";import{t as p}from"./fv2-card-BecrpZw0.js";import{a as m,i as h,n as g,t as _}from"./copy-text-DAomag72.js";import{n as v}from"./storefront-v2-format-BHndfA35.js";var y=e();function b({icon:e,label:t,value:n}){return(0,y.jsxs)(`div`,{className:`pg:flex pg:gap-3 pg:border-b-[length:var(--border-width)] pg:border-solid pg:border-[var(--border)] pg:pb-4 pg:last:border-0 pg:last:pb-0`,children:[(0,y.jsx)(`span`,{className:`pg:mt-0.5 pg:text-[var(--accent)]`,children:e}),(0,y.jsxs)(`div`,{children:[(0,y.jsx)(`p`,{className:`pg:text-[11px] pg:font-semibold pg:tracking-[.7px] pg:text-[var(--text-muted)]`,children:t}),(0,y.jsx)(`div`,{className:`pg:mt-1 pg:text-sm pg:font-medium pg:text-[var(--text)]`,children:n})]})]})}function x(){return(0,y.jsxs)(`div`,{className:`pg:mx-auto pg:grid pg:max-w-[1280px] pg:gap-10 pg:px-[clamp(16px,5vw,56px)] pg:py-12 pg:lg:grid-cols-2`,children:[(0,y.jsx)(s,{children:(0,y.jsx)(`div`,{className:`pg:aspect-[4/3]`})}),(0,y.jsxs)(`div`,{className:`pg:space-y-5`,children:[(0,y.jsx)(s,{children:(0,y.jsx)(`div`,{className:`pg:h-5 pg:w-1/4`})}),(0,y.jsx)(s,{children:(0,y.jsx)(`div`,{className:`pg:h-16 pg:w-3/4`})}),(0,y.jsx)(s,{children:(0,y.jsx)(`div`,{className:`pg:h-24 pg:w-full`})})]})]})}function S({terms:e}){return(0,y.jsxs)(`section`,{className:p,children:[(0,y.jsx)(`h2`,{className:`pg:text-sm pg:font-semibold pg:text-[var(--text)]`,children:`Membership terms`}),e.format===`html`?(0,y.jsx)(`div`,{"data-copy-id":`wineClub.membershipTerms`,"data-copy-source":`tenant`,className:`pg:prose pg:prose-sm pg:mt-3 pg:max-w-none pg:text-[var(--text-secondary)]`,dangerouslySetInnerHTML:{__html:e.html}}):(0,y.jsx)(_,{copy:m(`wineClub.membershipTerms`,e.text),as:`p`,className:`pg:mt-3 pg:whitespace-pre-line pg:text-sm pg:leading-6 pg:text-[var(--text-secondary)]`})]})}function C({club:e}){return e.bottleCount||e.memberDiscountPercent||e.cadence||e.memberShipping?(0,y.jsxs)(`section`,{children:[(0,y.jsx)(`p`,{className:`pg:text-[11px] pg:font-bold pg:tracking-[1.7px] pg:text-[var(--accent)]`,children:`MEMBERSHIP DETAILS`}),(0,y.jsx)(`h2`,{className:`pg:mt-2 pg:[font-family:var(--font-display)] pg:text-4xl pg:font-normal pg:text-[var(--text)]`,children:`What is included`}),(0,y.jsxs)(`div`,{className:`pg:mt-7 pg:grid pg:gap-x-8 pg:gap-y-4 pg:sm:grid-cols-2`,children:[e.bottle
3Count?(0,y.jsx)(b,{icon:(0,y.jsx)(l,{size:18,"aria-hidden":`true`}),label:`BOTTLES PER RELEASE`,value:(0,y.jsx)(_,{copy:h(`clubBenefit.bottleCount`,`${e.bottleCount} bottles`)})}):null,e.memberDiscountPercent?(0,y.jsx)(b,{icon:(0,y.jsx)(u,{size:18,"aria-hidden":`true`}),label:`MEMBER PRICING`,value:(0,y.jsx)(_,{copy:h(`clubBenefit.memberDiscount`,`${e.memberDiscountPercent}% off`)})}):null,e.cadence?(0,y.jsx)(b,{icon:(0,y.jsx)(r,{size:18,"aria-hidden":`true`}),label:`RELEASE SCHEDULE`,value:(0,y.jsx)(_,{copy:h(`clubBenefit.releaseCadence`,e.cadence)})}):null,e.memberShipping?(0,y.jsx)(b,{icon:(0,y.jsx)(d,{size:18,"aria-hidden":`true`}),label:`MEMBER SHIPPING`,value:(0,y.jsx)(_,{copy:h(`clubBenefit.memberShipping`,e.memberShipping)})}):null]})]}):null}function w({movedTo:e,onOpenSuccessor:n}){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{children:`Moved to`}),` `,(0,y.jsx)(`button`,{type:`button`,onClick:()=>n?.(e.clubSlug),className:t(`pg:cursor-pointer pg:bg-transparent pg:p-0 pg:text-[var(--accent)] pg:underline pg:underline-offset-4`,i),children:(0,y.jsx)(_,{copy:m(`wineClub.name`,e.clubName)})})]})}function T(){return(0,y.jsx)(`p`,{className:`pg:text-[11px] pg:font-bold pg:tracking-[1.5px] pg:text-[var(--text-muted)]`,children:`YOUR PREVIOUS MEMBERSHIP`})}function E({club:e,enrollment:r,cartCount:s,onBack:l,onJoin:u,onManage:d,onOpenSuccessor:b}){return(0,y.jsxs)(o,{activeNav:`clubs`,cartCount:s,children:[(0,y.jsx)(`div`,{className:`pg:mx-auto pg:max-w-[1280px] pg:px-[clamp(16px,5vw,56px)] pg:pt-6 pg:lg:pt-8`,children:(0,y.jsxs)(`button`,{type:`button`,onClick:l,className:t(`pg:inline-flex pg:items-center pg:gap-2 pg:bg-transparent pg:p-0 pg:text-xs pg:font-semibold pg:text-[var(--text-secondary)] pg:cursor-pointer`,i),children:[(0,y.jsx)(n,{size:15,"aria-hidden":`true`}),` Back to wine clubs`]})}),(0,y.jsxs)(`section`,{className:`pg:mx-auto pg:grid pg:max-w-[1280px] pg:gap-10 pg:px-[clamp(16px,5vw,56px)] pg:py-8 pg:lg:grid-cols-[1.08fr_.92fr] pg:lg:gap-16 pg:lg:py-12`,children:[(0,y.jsx)(`div`,{className:`pg:overflow-hidden pg:rounded-[var(--radius)] pg:border-[length:var(--border-width)] pg:border-solid pg:border-[var(--border)] pg:bg-[var(--surface)]`,children:(0,y.jsx)(c,{name:e.name})}),(0,y.jsxs)(`div`,{className:`pg:flex pg:flex-col pg:justify-center`,children:[(0,y.jsx)(`p`,{className:`pg:text-[11px] pg:font-bold pg:tracking-[1.8px] pg:text-[var(--accent)]`,children:`WINE CLUB`}),(0,y.jsx)(_,{copy:m(`wineClub.name`,e.name),as:`h1`,className:`pg:mt-3 pg:[font-family:var(--font-display)] pg:text-[clamp(46px,7vw,78px)] pg:font-normal pg:leading-none pg:text-[var(--text)]`}),e.description?(0,y.jsx)(_,{copy:m(`wineClub.description`,e.description),as:`p`,className:`pg:mt-6 pg:max-w-xl pg:text-base pg:leading-7 pg:text-[var(--text-secondary)]`}):null]})]}),(0,y.jsx)(`section`,{className:`pg:border-t-[length:var(--border-width)] pg:border-solid pg:border-[var(--border)] pg:bg-[var(--surface)]`,children:(0,y.jsxs)(`div`,{className:`pg:mx-auto pg:grid pg:max-w-[1280px] pg:gap-8 pg:px-[clamp(16px,5vw,56px)] pg:py-12 pg:lg:grid-cols-[1fr_380px] pg:lg:items-start pg:lg:py-16`,children:[(0,y.jsxs)(`div`,{className:`pg:space-y-10`,children:[(0,y.jsx)(C,{club:e}),e.membershipTerms?(0,y.jsx)(S,{terms:e.membershipTerms}):null]}),(0,y.jsxs)(`aside`,{className:t(p,`pg:lg:sticky pg:lg:top-6`),children:[r.type===`accepting`?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`p`,{className:`pg:text-[11px] pg:font-bold pg:tracking-[1.5px] pg:text-[var(--accent)]`,children:`ENROLLMENT OPEN`}),e.estimatedReleasePriceCents?(0,y.jsx)(_,{copy:h(`clubBenefit.estimatedReleasePrice`,`About ${v(e.estimatedReleasePriceCents)} per release`),className:`pg:mt-3 pg:block pg:[font-family:var(--font-display)] pg:text-3xl pg:text-[var(--text)]`}):null,(0,y.jsx)(`p`,{className:`pg:mt-3 pg:text-sm pg:leading-6 pg:text-[var(--text-secondary)]`,children:`Review your contact, fulfillment, and payment details before joining.`}),(0,y.jsx)(f,{onClick:u,className:`pg:mt-6 pg:w-full`,children:`Join this club`})]}):null,r.type===`closed`?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`p`,{className:`pg:text-[11px] pg:font-bold pg:tracking-[1.5px] pg:text-[var(--text-muted)]`,children:`ENROLLMENT CLOSED`}),(0,y.jsx)(`h2`,{className:`pg:mt-3 pg:[font-family:var(--font-display)] pg:text-3xl pg:text-[var(--text)]`,children:`Not accepting new members`}),(0,y.jsx)(`p`,{className:`pg:mt-3 pg:text-sm pg:leading-6 pg:text-[var(--text-secondary)]`,children:`Check back when the next enrollment window opens.`})]}):null,r.type===`member`?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`p`,{className:`pg:flex pg:items-center pg:gap-2 pg:text-[11px] pg:font-bold pg:tracking-[1.5px] pg:text-[var(--accent)]`,children:[(0,y.jsx)(a,{size:16,"aria-hidden":`true`}),` YOUR MEMBERSHIP`]}),(0,y.jsx)(_,{copy:g(`customer.membershipStatusBadge`,r.status),className:`pg:mt-3 pg:block pg:[font-family:var(--font-display)] pg:text-3xl pg:text-[var(--text)]`}),r.since?(0,y.jsxs)(`p`,{className:`pg:mt-2 pg:text-sm pg:text-[var(--text-secondary)]`,children:[`Member since `,r.since]}):null,(0,y.jsx)(f,{variant:`secondary`,onClick:d,className:`pg:mt-6 pg:w-full`,children:`Manage membership`})]}):null,r.type===`ended`?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(T,{}),(0,y.jsx)(_,{copy:g(`customer.membershipStatusBadge`,`Ended`),className:`pg:mt-3 pg:block pg:[font-family:var(--font-display)] pg:text-3xl pg:text-[var(--text)]`}),r.canRejoin?(0,y.jsx)(f,{onClick:u,className:`pg:mt-6 pg:w-full`,children:`Rejoin this club`}):(0,y.jsx)(`p`,{className:`pg:mt-3 pg:text-sm pg:leading-6 pg:text-[var(--text-secondary)]`,children:`This club is not accepting new members right now.`})]}):null,r.type===`moved`?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(T,{}),(0,y.jsx)(`p`,{className:`pg:mt-3 pg:flex pg:flex-wrap pg:items-baseline pg:gap-2 pg:[font-family:var(--font-display)] pg:text-3xl pg:text-[var(--text)]`,"data-testid":`club-membership-moved-to`,children:r.movedTo===null?(0,y.jsx)(_,{copy:g(`customer.membershipStatusBadge`,`Moved`)}):(0,y.jsx)(w,{movedTo:r.movedTo,onOpenSuccessor:b})}),(0,y.jsx)(`p`,{className:`pg:mt-3 pg:text-sm pg:leading-6 pg:text-[var(--text-secondary)]`,children:`Your membership continues in your new club.`})]}):null]})]})})]})}function D(e){let{state:t,cartCount:n}=e;if(t.type===`loading`)return(0,y.jsx)(o,{activeNav:`clubs`,cartCount:n,children:(0,y.jsx)(x,{})});if(t.type===`not-found`||t.type===`error`){let r=t.type===`not-found`;return(0,y.jsx)(o,{activeNav:`clubs`,cartCount:n,children:(0,y.jsxs)(`div`,{className:`pg:mx-auto pg:flex pg:min-h-[560px] pg:max-w-3xl pg:flex-col pg:items-center pg:justify-center pg:px-6 pg:text-center`,children:[(0,y.jsx)(`h1`,{className:`pg:[font-family:var(--font-display)] pg:text-[clamp(42px,7vw,72px)] pg:leading-none pg:text-[var(--text)]`,children:r?`Membership not found`:`Membership could not be loaded`}),(0,y.jsx)(`p`,{className:`pg:mt-5 pg:max-w-md pg:text-sm pg:leading-6 pg:text-[var(--text-secondary)]`,children:r?`This membership may no longer be published. Return to the current options.`:t.message}),r?null:(0,y.jsx)(f,{onClick:e.onRetry,className:`pg:mt-7`,children:`Try again`})]})})}return(0,y.jsx)(E,{club:t.club,enrollment:t.enrollment,cartCount:n,onBack:e.onBack,onJoin:e.onJoin,onManage:e.onManage,onOpenSuccessor:e.onOpenSuccessor})}export{D as t};
4//# debugId=dd3bbb24-49ac-561d-8dfe-a60a5c03ef12

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.