1import{a as nt,b as B,c as m,e as A}from"/build/_shared/chunk-K3GBLYWG.js";import{e as D}from"/build/_shared/chunk-LA2KVNVZ.js";import{k as M,l as I,r as S}from"/build/_shared/chunk-HV52XSYD.js";import{i as w,l as j,m as tt,o as et}from"/build/_shared/chunk-VHFSV2GL.js";import{b as N,l as E}from"/build/_shared/chunk-MVJ7QLD2.js";import{b as Z,d as l,g as R,h as t,i as a,o as C}from"/build/_shared/chunk-OEKFIOJJ.js";var F=Z(i=>{"use strict";a();Object.defineProperty(i,"__esModule",{value:!0});i.ProductClickedEvent=void 0;var ot=nt(),_=class extends ot.AbstractProductEvent{constructor(r){super(r);this.name="Product Clicked"}};i.ProductClickedEvent=_});a();tt();var O=l(et()),U=l(F());var s=l(R()),st="E, MMMM d, h:mm a";function rt(u){let{id:r,type:p,capacity:f,distanceInMeters:g=null,imageUrl:b=N,name:d,position:v,price:e,registrantCount:$,startDate:L,spacingOn:T=!1,hostIds:q,city:x,state:y}=u,{productPositionCookieName:G,basePath:H,theme:{useSecondaryButtonColorsForCards:V},slug:z}=E(),P=g?D(g).toFixed(2):null,h=B({id:r,name:d,city:x,state:y,basePath:H}),[n,J]=(0,s.useState)(e),[k,K]=(0,s.useState)();(0,s.useEffect)(()=>{A(e,z,p).then(o=>{o.adjustedPrice!==e&&(J(o.adjustedPrice),K(o.reason))})},[]);let Q=()=>{let o={product_id:r,name:d,category:"event",brand:q.join(","),variant:"unknown",price:n?n/100:0,value:0,quantity:1,position:v,url:h,image_url:b||void 0,currency:"USD"};sessionStorage.setItem(G,v.toString());let Y=new U.ProductClickedEvent(o);O.Analytics.Instance().track(Y)},W="block w-full py-2 px-8 rounded text-center text-sm font-semibold uppercase text-mono-1",c=(f-$)/f*100,X=V?I:M;return t.createElement(C,{className:`relative block flex shrink-0 flex-col overflow-hidden rounded-md bg-mono-1 font-semibold drop-shadow-md ${T?"w-72":""}`,"data-event-type":p,"data-test-id":"event-card",rel:"canonical",onClick:Q,to:h,reloadDocument:!0},t.createElement("div",{className:"relative aspect-video bg-cover bg-center",style:{backgroundImage:`url(${b})`}},P?t.createElement("span",{className:"cardDistance absolute bottom-3 right-3 block rounded bg-earth px-2 py-1 font-semibold text-white"},P," mi."):null),t.createElement("div",{className:"flex grow flex-col px-6 pb-6 pt-5"},t.createElement("div",{className:"h-7 text-sm font-semibold text-mono-4"},w(j(L),st)),t.createElement("h3",{className:"cardHeading text-lg font-semibold leading-6 text-mono"},d),t.createElement("address",{className:"mt-1 text-sm font-extralight not-italic text-mono-4"},`${x}, ${y}`),t.createElement("div",{className:"flex grow flex-col justify-end"},t.createElement("div",{className:"mt-2 mb-4 block flex content-end justify-between"},t.createElement("span",{className:"cardPrice text-lg font-semibold uppercase text-earth"},n<e&&t.createElement("s",null,m(e))," ",n>0?`${m(n)}`:"Free",k&&t.createElement("span",{className:"text-sm"}," (",k,")")),c<=25&&c>0?t.createElement("span",{className:"bg-mars px-3 py-1 text-sm text-mono-1"},"Limited Seats!"):null),t.createElement(X,{type:"button",className:`${W} hover:brightness-95`},"Learn More"))),c<=0?t.createElement(S,{className:"absolute -left-[25%] top-36 flex h-24 w-[150%]
1-rotate-[32deg] items-center justify-center whitespace-nowrap text-3xl uppercase text-mono-1"},t.createElement("span",null,"Class Is Full")):null)}export{rt as a};
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.