PageSourceSearch

https://cakepop.io/_next/static/chunks/a651cdfd659688a6.js

js cakepop.io collected 2026-10-02 00:37:23 UTC 33,861 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="6a2409f9-72ae-bdc5-5d5e-4e0bd3924e7f")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,802839,e=>{"use strict";var t=e.i(843476),a=e.i(520659),r=e.i(549838);let n={sm:"h-[2px] w-16",md:"h-[3px] w-24",lg:"h-[3px] w-40"};function s({className:e,size:a="md",label:s}){return(0,t.jsxs)("div",{role:"status","aria-busy":"true",className:(0,r.cn)("flex flex-col items-center justify-center gap-3",e),children:[(0,t.jsx)("span",{"data-loading-rail":"","aria-hidden":"true",className:(0,r.cn)("block relative overflow-hidden rounded-full bg-border-default",n[a]),children:(0,t.jsx)("span",{"data-loading-sweep":"",className:"absolute inset-0 bg-[linear-gradient(90deg,transparent_0%,var(--accent-1,#FF4D00)_35%,var(--accent-2,#E0BB00)_70%,transparent_100%)] motion-safe:[transform:translateX(-100%)] motion-safe:[animation:ck-skeleton-sweep_1.4s_ease-in-out_infinite]"})}),s?(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.16em] text-text-muted",children:s}):(0,t.jsx)("span",{className:"sr-only",children:"Loading"})]})}function l(){return(0,t.jsxs)("div",{role:"status","aria-busy":"true",className:"min-h-[60vh] w-full space-y-4",children:[(0,t.jsx)("span",{className:"sr-only",children:"Loading"}),(0,t.jsx)(a.SkeletonCard,{lines:3}),(0,t.jsx)(a.SkeletonCard,{lines:2})]})}e.s(["Loading",()=>s,"PageLoading",()=>l])},69052,e=>{"use strict";var t=e.i(843476),a=e.i(549838);let r=(0,e.i(271645).forwardRef)(({className:e,label:r,error:n,hint:s,success:l,id:o,...i},c)=>{let d=o||r?.toLowerCase().replace(/\s+/g,"-"),u=d?`${d}-message`:void 0,m=n||!n&&!l&&s?u:void 0;return(0,t.jsxs)("div",{className:"space-y-1.5",children:[r&&(0,t.jsx)("label",{htmlFor:d,className:"block text-sm font-semibold tracking-[0.02em] text-text-primary",children:r}),(0,t.jsx)("input",{ref:c,id:d,"aria-invalid":!!n||void 0,"aria-describedby":[m,i["aria-describedby"]].filter(Boolean).join(" ")||void 0,className:(0,a.cn)("w-full rounded-xl border-[1.5px] bg-surface px-3.5 py-2.5 text-text-primary","placeholder:text-text-muted","transition-all duration-150","focus:outline-none focus:ring-4 focus:ring-orange/15 focus:border-orange",n?"border-error focus:ring-error/15 focus:border-error":l?"border-success focus:ring-success/15 focus:border-success":"border-border-default","disabled:bg-surface-raised disabled:text-text-muted disabled:cursor-not-allowed",e),...i}),n&&(0,t.jsx)("p",{id:u,role:"alert",className:"text-sm text-error font-medium",children:n}),!n&&l&&(0,t.jsx)("p",{className:"text-sm text-success font-medium",children:"Input is valid"}),!n&&!l&&s&&(0,t.jsx)("p",{id:u,className:"text-sm text-text-muted",children:s})]})});r.displayName="Input",e.s(["Input",()=>r])},993012,e=>{"use strict";var t=e.i(843476),a=e.i(549838),r=e.i(271645);let n={primary:"bg-orange-deeper text-white hover:brightness-90 active:brightness-[.85] shadow-sm",secondary:"bg-yellow text-text-primary hover:brightness-95 active:brightness-90 shadow-sm",outline:"border border-border-default text-text-primary bg-surface hover:bg-surface-raised active:opacity-80","outline-primary":"border-2 border-orange text-orange bg-transparent hover:bg-orange/10 active:bg-orange/15",ghost:"text-text-primary hover:bg-surface-raised active:opacity-80","ghost-primary":"text-orange hover:bg-orange/10 active:bg-orange/15",danger:"bg-error text-white hover:brightness-110 active:brightness-95 shadow-sm"},s={sm:"px-4 py-2 text-sm gap-1.5 rounded-full",md:"px-6 py-2.5 text-base gap-2 rounded-full",lg:"px-8 py-3.5 text-lg gap-2.5 rounded-full"},l=(0,r.forwardRef)(({className:e,variant:r="primary",size:l="md",loading:o,disabled:i,icon:c,children:d,...u},m)=>(0,t.jsxs)("button",{ref:m,className:(0,a.cn)("inline-flex items-center justify-center font-semibold tracking-[0.01em] transition-all duration-150","focus-visible:outline-2 focus-visible:outline-orange focus-visible:outline-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none",n[r],s[l],e),disabled:i||o,...u,children:[o?(0,t.jsxs)("svg",{className:"animate-spin h-4 w-4",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):c?(0,t.jsx)("span",{className:"shrink-0",children:c}):null,d]}));l.displayName="Button",e.s(["Button",()=>l])},206095,e=>{"use strict";var t=e.i(843476),a=e.i(549838);let r={none:"",sm:"p-3 sm:p-4",md:"p-4 sm:p-6",lg:"p-4 sm:p-6 md:p-8"};function n({className:e,hoverable:n,variant:s="default",padding:l="md",children:o,...i}){return(0,t.jsx)("div",{className:(0,a.cn)("rounded-3xl transition-all duration-200","
2none"===l&&"overflow-clip","default"===s&&"bg-surface border border-border-default shadow-(--elev-card)","featured"===s&&"bg-surface border-2 border-orange shadow-(--elev-card)","outline"===s&&"bg-transparent border border-border-default",n&&"hover:shadow-(--elev-card-hover) hover:translate-y-(--elev-lift) cursor-pointer",r[l],e),...i,children:o})}e.s(["Card",()=>n])},520659,e=>{"use strict";var t=e.i(843476),a=e.i(206095),r=e.i(549838);function n({className:e,...a}){return(0,t.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("skeleton block",e),...a})}function s({lines:e=3,className:a}){let s=Math.max(1,Math.floor(e));return(0,t.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("block space-y-[0.55em]",a),children:Array.from({length:s},(e,a)=>(0,t.jsx)(n,{className:(0,r.cn)("h-[0.72em]",a===s-1&&s>1?"w-[62%]":"w-full")},a))})}function l({lines:e=3,className:r,children:l}){return(0,t.jsx)(a.Card,{"aria-hidden":"true",className:r,children:l??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n,{className:"h-2 w-24"}),(0,t.jsx)(n,{className:"mt-2 h-6 w-1/2 max-w-[16rem]"}),(0,t.jsx)(s,{lines:e,className:"mt-4 text-sm"})]})})}let o={1:"",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-2 lg:grid-cols-4",5:"sm:grid-cols-2 lg:grid-cols-5",6:"sm:grid-cols-3 lg:grid-cols-6"};function i({count:e=4,className:s}){let l=Math.max(1,Math.floor(e));return(0,t.jsx)("div",{"aria-hidden":"true",className:(0,r.cn)("grid gap-4",o[l]??o[4],s),children:Array.from({length:l},(e,r)=>{let s=r%5+1;return(0,t.jsxs)(a.Card,{padding:"none",className:"overflow-hidden",children:[(0,t.jsx)("div",{"data-rail":s,className:"h-[3px] w-full",style:{background:`var(--accent-${s})`}}),(0,t.jsxs)("div",{className:"p-3 sm:p-4",children:[(0,t.jsx)(n,{className:"h-3 w-20"}),(0,t.jsx)(n,{className:"mt-1.5 h-8 w-3/5"})]})]},r)})})}let c=["w-4/5","w-3/5","w-2/5","w-1/2","w-3/5","w-2/5"];function d({rows:e=5,cols:s=4,className:l}){let o=Math.max(1,Math.floor(e)),i=Math.max(1,Math.floor(s));return(0,t.jsx)(a.Card,{padding:"none","aria-hidden":"true",className:l,children:(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-sm",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{className:"border-b border-border-default bg-surface-raised/50",children:Array.from({length:i},(e,a)=>(0,t.jsx)("th",{className:"px-2 py-2 md:px-6 md:py-3 text-left",children:(0,t.jsx)(n,{className:"h-2 w-16"})},a))})}),(0,t.jsx)("tbody",{children:Array.from({length:o},(e,a)=>(0,t.jsx)("tr",{className:"border-b border-border-default last:border-0",children:Array.from({length:i},(e,a)=>(0,t.jsx)("td",{className:"px-2 py-2 md:px-6 md:py-3",children:(0,t.jsx)(n,{className:(0,r.cn)("h-4",c[a%c.length])})},a))},a))})]})})})}e.s(["Skeleton",()=>n,"SkeletonCard",()=>l,"SkeletonStatRow",()=>i,"SkeletonTable",()=>d,"SkeletonText",()=>s])},522677,e=>{"use strict";var t=e.i(843476),a=e.i(549838);let r={success:{bg:"bg-green/10",border:"border-green/40",icon:"text-green"},error:{bg:"bg-orange/10",border:"border-orange/40",icon:"text-orange"},warning:{bg:"bg-yellow/15",border:"border-yellow/50",icon:"text-yellow"},info:{bg:"bg-cyan/10",border:"border-cyan/40",icon:"text-badge-info"}},n={success:"✓",error:"✕",warning:"!",info:"i"};function s({variant:e,children:s,className:l,dismissible:o,onDismiss:i}){let c=r[e];return(0,t.jsxs)("div",{className:(0,a.cn)("flex items-start gap-3 rounded-2xl border p-4",c.bg,c.border,l),role:"alert",children:[(0,t.jsx)("span",{className:(0,a.cn)("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs font-bold",c.icon,"bg-current/15"),children:n[e]}),(0,t.jsx)("div",{className:"flex-1 text-sm text-text-primary",children:s}),o&&i&&(0,t.jsx)("button",{onClick:i,className:"flex-shrink-0 text-text-muted hover:text-text-primary transition-colors","aria-label":"Dismiss",children:"✕"})]})}e.s(["Alert",()=>s])},214670,e=>{"use strict";var t=e.i(843476),a=e.i(549838);function r({title:e,description:r,action:n,className:s}){return(0,t.jsxs)("div",{className:(0,a.cn)("flex flex-col items-center justify-center py-16 text-center",s
2),children:[(0,t.jsx)("div",{className:"mb-4 rounded-full bg-surface-raised p-4",children:(0,t.jsx)("svg",{className:"h-8 w-8 text-text-muted",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"})})}),(0,t.jsx)("h2",{className:"text-lg font-semibold text-text-primary",children:e}),r&&(0,t.jsx)("p",{className:"mt-1 text-sm text-text-muted max-w-sm",children:r}),n&&(0,t.jsx)("div",{className:"mt-4",children:n})]})}e.s(["EmptyState",()=>r])},51925,e=>{"use strict";var t=e.i(843476),a=e.i(522016),r=e.i(800694),n=e.i(394591),s=e.i(620004),l=e.i(913635),o=e.i(922089);function i({event:e,ticketCount:i}){let{data:c}=(0,o.useEventCategories)(),{data:d}=(0,o.useFeeTiers)(),u=e.ticketTypes?.filter(e=>!0!==e.requiresCode),m=u?.length?u.map(t=>({allIn:(0,r.getAllInPriceCents)(t.priceCents,d,e.absorbPlatformFees),fee:e.absorbPlatformFees?0:(0,r.getFeeForPrice)(t.priceCents,d)})).reduce((e,t)=>t.allIn<e.allIn?t:e):null,x=m?m.allIn:null,h=m?m.fee:0,g=e.category&&"OTHER"!==e.category?(c?.find(t=>t.key===e.category)?.label??e.category).toUpperCase():"",p=function(e){if(!e.ticketTypes?.length)return null;let t=0,a=0,r=0,n=null,s=Date.now(),l=!0,o=null,i=!0;for(let c of e.ticketTypes){t+=c.capacity??0,a+=c.soldCount??0,r+=c.heldCount??0;let e=c.saleStartsAt?new Date(c.saleStartsAt).getTime():null,d=c.saleEndsAt?new Date(c.saleEndsAt).getTime():null;e&&(null===n||e<n)&&(n=e),null===e||e<=s?l=!1:(null===o||e<o)&&(o=e),(null===d||d>=s)&&(i=!1)}if(0===t)return null;let c=t-a-r,d=c/t,u=a/t;if(c<=0)return{kind:"sold-out",label:"SOLD OUT",urgent:!0};if(l&&null!==o){let e=new Date(o);return{kind:"not-on-sale",label:o-s<=6048e5?`on sale ${e.toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}`:`on sale ${e.toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,startsAt:e,urgent:!1}}if(i)return{kind:"sale-ended",label:"sale ended",urgent:!1};if(d<=.05||c<=10)return{kind:"almost-gone",label:"almost gone",urgent:!0};let m=new Date(e.startsAt).getTime(),x=n??(e.createdAt?new Date(e.createdAt).getTime():null);if(x&&m>x&&s>x&&s<m){let e=(s-x)/(m-x);if(e>.01&&u>.1&&u/e>=1.8)return{kind:"selling-fast",label:"selling fast",urgent:!1}}return d<=.15?{kind:"selling-fast",label:"selling fast",urgent:!1}:null}({...e,ticketTypes:u}),f=u?.some(e=>null!=e.sale)??!1;return(0,t.jsxs)(a.default,{href:(0,l.eventUrl)(e),className:"group block",children:[(0,t.jsxs)("div",{className:"relative aspect-[3/4] overflow-hidden rounded-xl",children:[e.imageUrl?(0,t.jsx)("img",{src:e.imageUrl,alt:e.name,className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"}):(0,t.jsx)("div",{className:"h-full w-full bg-gradient-to-br from-orange/10 to-cyan/10 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"h-12 w-12 text-foreground/20",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9l10.5-3m0 6.553v3.75a2.25 2.25 0 01-1.632 2.163l-1.32.377a1.803 1.803 0 11-.99-3.467l2.31-.66a2.25 2.25 0 001.632-2.163zm0 0V2.25L9 5.25v10.303m0 0v3.75a2.25 2.25 0 01-1.632 2.163l-1.32.377a1.803 1.803 0 01-.99-3.467l2.31-.66A2.25 2.25 0 009 15.553z"})})}),(0,t.jsxs)("div",{className:"absolute top-3 left-3 flex flex-col gap-1 items-start",children:[g&&(0,t.jsx)("span",{className:"inline-block bg-[#282726] text-white text-[10px] font-bold px-2.5 py-1 rounded-full uppercase tracking-wide",style:{fontFamily:"Inter, system-ui, sans-serif"},children:g}),e.isFeatured&&(0,t.jsx)("span",{className:"inline-block bg-orange-deeper text-white text-[10px] font-bold px-2.5 py-1 rounded-full lowercase",style:{fontFamily:"Inter, system-ui, sans-serif"},children:"featured"}),f&&(0,t.jsx)("span",{className:"inline-block bg-[#16a34a] text-white text-[10px] font-bold px-2.5 py-1 rounded-full uppercase tracking-wide",style:{fontFamily:"Inter, system-ui, sans-serif"},children:"Sale"}),p&&(0,t.jsx)("span",{className:`inline-block text-[10px] font-bold px-2.5 py-1 rounded-full lowercase ${"sold-out"===p.kind?"bg-[#dc2626] text-white uppercase":"almost-gone"===p.kind?"bg-[#dc2626] text-white":"not-on-sale"===p.kind?"bg-amber-500 text-white":"sale-ended"===p.kind?"bg-[#4a4a4a] text-white":"bg-[#d9dfdb] text-[#282726]"}`,style:{fontFamily:"Inter, system-ui, sans-serif"},children:p.label})]}),null!=i&&i>0&&(0,t.jsx)("div",{className:"absolute top-3 right-3",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] font-semibold px-2 py-0.5 rounded-full bg-green/90 text-white shadow-sm",children:[(0,t.jsx)("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 5v2m0 4v2m0 4v2M5 5a2 2 0 00-2 2v3a2 2 0 110 4v3a2 2 0 002 2h14a2 2 0 002-2v-3a2 2 0 110-4V7a2 2 0 00-2-2H5z"})}),i]})}),null!==x&&(0,t.jsxs)("div",{className:"absolute bottom-3 left-3 flex flex-col items-start gap-1",children:[(0,t.jsxs)("span",{className:"inline-block bg-orange-deeper text-white text-[11px] font-bold px-3 py-1 rounded-full lowercase tabular-nums",style:{fontFamily:"var(--font-jetbrains-mono), ui-monospace, monospace"},children:["from ",(0,n.formatPrice)(x)]}),h>0&&(0,t.jsxs)("span",{className:"inline-block text-[9px] font-semibold text-white px-2 py-0.5 rounded-full bg-black/40 backdrop-blur-sm lowercase tracking-wide",style:{fontFamily:"Inter, system-ui, sans-serif"},children:["incl. ",(0,n.formatPrice)(h)," fee"]})]})]}),(0,t.jsxs)("div",{className:"mt-3 space-y-0.5",children:[(0,t.jsx)("h2",{className:"text-base font-extrabold leading-tight text-foreground",children:e.name}),e.performers&&e.performers.length>
20&&(0,t.jsx)("p",{className:"text-[13px] text-foreground/80",children:e.performers.map(e=>e.performer?.name).filter(Boolean).join(", ")}),(0,t.jsx)("p",{className:"text-[13px] text-foreground/70",children:(0,s.formatDateInTz)(e.startsAt,e.timezone)}),e.venue?(0,t.jsxs)("p",{className:"text-xs text-foreground/60",children:[e.venue.slug?(0,t.jsx)("span",{role:"link",tabIndex:0,onClick:t=>{t.preventDefault(),t.stopPropagation(),window.location.href=`/venues/${e.venue.slug}`},onKeyDown:t=>{"Enter"===t.key&&(t.preventDefault(),t.stopPropagation(),window.location.href=`/venues/${e.venue.slug}`)},className:"hover:underline cursor-pointer",children:e.venue.name}):e.venue.name," ","·"," ",e.venue.city,e.venue.state?`, ${e.venue.state}`:""]}):e.location?(0,t.jsx)("p",{className:"text-xs text-foreground/60",children:e.location}):null]})]})}e.s(["EventCard",()=>i])},65410,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let r={Alabama:"AL",Alaska:"AK",Arizona:"AZ",Arkansas:"AR",California:"CA",Colorado:"CO",Connecticut:"CT",Delaware:"DE",Florida:"FL",Georgia:"GA",Hawaii:"HI",Idaho:"ID",Illinois:"IL",Indiana:"IN",Iowa:"IA",Kansas:"KS",Kentucky:"KY",Louisiana:"LA",Maine:"ME",Maryland:"MD",Massachusetts:"MA",Michigan:"MI",Minnesota:"MN",Mississippi:"MS",Missouri:"MO",Montana:"MT",Nebraska:"NE",Nevada:"NV","New Hampshire":"NH","New Jersey":"NJ","New Mexico":"NM","New York":"NY","North Carolina":"NC","North Dakota":"ND",Ohio:"OH",Oklahoma:"OK",Oregon:"OR",Pennsylvania:"PA","Rhode Island":"RI","South Carolina":"SC","South Dakota":"SD",Tennessee:"TN",Texas:"TX",Utah:"UT",Vermont:"VT",Virginia:"VA",Washington:"WA","West Virginia":"WV",Wisconsin:"WI",Wyoming:"WY","District of Columbia":"DC"},n=["New York, NY","Los Angeles, CA","Chicago, IL","Houston, TX","Phoenix, AZ","Philadelphia, PA","San Antonio, TX","San Diego, CA","Dallas, TX","San Jose, CA","Austin, TX","Jacksonville, FL","Fort Worth, TX","Columbus, OH","Charlotte, NC","Indianapolis, IN","San Francisco, CA","Seattle, WA","Denver, CO","Nashville, TN","Oklahoma City, OK","Washington, DC","El Paso, TX","Boston, MA","Portland, OR","Las Vegas, NV","Memphis, TN","Louisville, KY","Baltimore, MD","Milwaukee, WI","Albuquerque, NM","Tucson, AZ","Fresno, CA","Mesa, AZ","Sacramento, CA","Atlanta, GA","Kansas City, MO","Omaha, NE","Colorado Springs, CO","Raleigh, NC","Long Beach, CA","Virginia Beach, VA","Miami, FL","Oakland, CA","Minneapolis, MN","Tampa, FL","Tulsa, OK","Arlington, TX","New Orleans, LA","Wichita, KS","Cleveland, OH","Bakersfield, CA","Aurora, CO","Anaheim, CA","Honolulu, HI","Santa Ana, CA","Riverside, CA","Corpus Christi, TX","Lexington, KY","Stockton, CA","Pittsburgh, PA","St. Paul, MN","Cincinnati, OH","Anchorage, AK","Henderson, NV","Greensboro, NC","Plano, TX","Newark, NJ","Lincoln, NE","Orlando, FL","Irvine, CA","Toledo, OH","Jersey City, NJ","Chula Vista, CA","Durham, NC","Laredo, TX","Madison, WI","St. Petersburg, FL","Chandler, AZ","Buffalo, NY","Lubbock, TX","Scottsdale, AZ","Reno, NV","Glendale, AZ","Gilbert, AZ","Winston-Salem, NC","North Las Vegas, NV","Norfolk, VA","Chesapeake, VA","Garland, TX","Irving, TX","Hialeah, FL","Fremont, CA","Boise, ID","Richmond, VA","Baton Rouge, LA","Spokane, WA","Des Moines, IA","Tacoma, WA","San Bernardino, CA","Modesto, CA","Fontana, CA","Santa Clarita, CA","Moreno Valley, CA","Birmingham, AL","Oxnard, CA","Rochester, NY","Port St. Lucie, FL","Grand Rapids, MI","Huntsville, AL","Salt Lake City, UT","Frisco, TX","Yonkers, NY","Amarillo, TX","Glendale, CA","Huntington Beach, CA","McKinney, TX","Montgomery, AL","Augusta, GA","Aurora, IL","Akron, OH","Little Rock, AR","Tempe, AZ","Overland Park, KS","Grand Prairie, TX","Tallahassee, FL","Cape Coral, FL","Mobile, AL","Knoxville, TN","Shreveport, LA","Worcester, MA","Ontario, CA","Vancouver, WA","Sioux Falls, SD","Chattanooga, TN","Brownsville, TX","Fort Lauderdale, FL","Providence, RI","Newport News, VA","Rancho Cucamonga, CA","Santa Rosa, CA","Peoria, AZ","Oceanside, CA","Elk Grove, CA","Salem, OR","Pembroke Pines, FL","Eugene, OR","Garden Grove, CA","Cary, NC","Fort Collins, CO","Corona, CA","Springfield, MO","Jackson, MS","Alexandria, VA","Hayward, CA","Clarksville, TN","Lakewood, CO","Lancaster, CA","Salinas, CA","Palmdale, CA","Hollywood, FL","Springfield, MA","Macon, GA","Kansas City, KS","Sunnyvale, CA","Pomona, CA","Killeen, TX","Escondido, CA","Bellevue, WA","Pasadena, TX","Joliet, IL","Naperville, IL","Savannah, GA","Bridgeport, CT","Paterson, NJ","Murfreesboro, TN","Miramar, FL","Dayton, OH","Fullerton, CA","Olathe, KS","McAllen, TX","Round Rock, TX","West Valley City, UT","Columbia, SC","New Haven, CT","Sterling Heights, MI","Waco, TX","Thousand Oaks, CA","Cedar Rapids, IA","Charleston, SC","Visalia, CA","Topeka, KS","Elizabeth, NJ","Gainesville, FL","Simi Valley, CA","Stamford, 
2CT","Concord, CA","Hartford, CT","Roseville, CA","Coral Springs, FL","Carrollton, TX","Midland, TX","Surprise, AZ","Denton, TX","Victorville, CA","Thornton, CO"];function s({value:e,onChange:s,placeholder:l="City, State (ST)",className:o="",disabled:i=!1,id:c}){let[d,u]=(0,a.useState)(e),[m,x]=(0,a.useState)([]),[h,g]=(0,a.useState)(!1),p=(0,a.useId)(),[f,b]=(0,a.useState)(-1),[v,y]=(0,a.useState)(!1),N=(0,a.useRef)(null),C=(0,a.useRef)(null),w=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{u(e)},[e]),(0,a.useEffect)(()=>{function e(e){N.current&&!N.current.contains(e.target)&&g(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let A=(0,a.useCallback)(async e=>{if(e.length<2)return void x([]);let t=e.toLowerCase(),a=n.filter(e=>e.toLowerCase().includes(t)).slice(0,8);if(x(a),a.length>0&&g(!0),a.length<5){y(!0);try{let t=await fetch("https://nominatim.openstreetmap.org/search?"+new URLSearchParams({q:`${e}, United States`,format:"json",addressdetails:"1",limit:"8",countrycodes:"us",featuretype:"city"}),{headers:{"Accept-Language":"en-US"}});if(t.ok){let e=await t.json(),n=[];for(let t of e){let e=t.address;if(!e)continue;let s=e.city||e.town||e.village||e.hamlet||e.county,l=e.state;if(s&&l){let e=r[l]||l,t=`${s}, ${e}`;a.includes(t)||n.includes(t)||n.push(t)}}n.length>0&&x(e=>[...e,...n].slice(0,10))}}catch{}finally{y(!1)}}},[]),j=e=>{u(e),s(e),g(!1),b(-1)};return(0,t.jsxs)("div",{ref:N,className:`relative ${o}`,children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{ref:C,id:c,type:"text",value:d,onChange:e=>{let t=e.target.value;u(t),b(-1),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>A(t),200)},onKeyDown:e=>{if(!h||0===m.length){"Enter"===e.key&&s(d);return}switch(e.key){case"ArrowDown":e.preventDefault(),b(e=>e<m.length-1?e+1:0);break;case"ArrowUp":e.preventDefault(),b(e=>e>0?e-1:m.length-1);break;case"Enter":e.preventDefault(),f>=0?j(m[f]):(s(d),g(!1));break;case"Escape":g(!1),b(-1)}},onFocus:()=>{m.length>0&&g(!0)},onBlur:()=>{setTimeout(()=>{d&&d!==e&&s(d)},150)},placeholder:l,disabled:i,className:"w-full rounded-lg border border-border-default bg-surface px-3 py-2.5 text-sm text-text-primary placeholder:text-text-muted focus:border-orange focus:ring-1 focus:ring-orange/30 outline-none transition-colors disabled:opacity-50",autoComplete:"off",role:"combobox","aria-expanded":h,"aria-controls":p,"aria-autocomplete":"list"}),(0,t.jsxs)("svg",{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-muted pointer-events-none",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 11-6 0 3 3 0 016 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z"})]})]}),h&&m.length>0&&(0,t.jsxs)("ul",{id:p,className:"absolute z-50 mt-1 w-full overflow-auto rounded-lg border border-border-default bg-surface shadow-lg max-h-60",role:"listbox",children:[m.map((e,a)=>(0,t.jsx)("li",{role:"option","aria-selected":a===f,className:`cursor-pointer px-3 py-2.5 text-sm transition-colors ${a===f?"bg-orange-deeper text-white":"text-text-primary hover:bg-surface-raised"}`,onMouseDown:t=>{t.preventDefault(),j(e)},onMouseEnter:()=>b(a),children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsxs)("svg",{className:"h-3.5 w-3.5 text-text-muted shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 11-6 0 3 3 0 016 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z"})]}),e]})},e)),v&&(0,t.jsx)("li",{className:"px-3 py-2 text-xs text-text-muted text-center",children:"Searching more cities..."})]})]})}e.s(["CityStateAutocomplete",()=>s])},244845,e=>{"use strict";var t=e.i(843476),a=e.i(922089),r=e.i(506046),n=e.i(271645);let s={Alabama:"AL",Alaska:"AK",Arizona:"AZ",Arkansas:"AR",California:"
2CA",Colorado:"CO",Connecticut:"CT",Delaware:"DE",Florida:"FL",Georgia:"GA",Hawaii:"HI",Idaho:"ID",Illinois:"IL",Indiana:"IN",Iowa:"IA",Kansas:"KS",Kentucky:"KY",Louisiana:"LA",Maine:"ME",Maryland:"MD",Massachusetts:"MA",Michigan:"MI",Minnesota:"MN",Mississippi:"MS",Missouri:"MO",Montana:"MT",Nebraska:"NE",Nevada:"NV","New Hampshire":"NH","New Jersey":"NJ","New Mexico":"NM","New York":"NY","North Carolina":"NC","North Dakota":"ND",Ohio:"OH",Oklahoma:"OK",Oregon:"OR",Pennsylvania:"PA","Rhode Island":"RI","South Carolina":"SC","South Dakota":"SD",Tennessee:"TN",Texas:"TX",Utah:"UT",Vermont:"VT",Virginia:"VA",Washington:"WA","West Virginia":"WV",Wisconsin:"WI",Wyoming:"WY","District of Columbia":"DC"},l="cakepop_location";function o(e,t,a){"undefined"!=typeof document&&(document.cookie=`${e}=${encodeURIComponent(t)};path=/;max-age=${a};samesite=lax`)}function i(e){let t=`${e.city}, ${e.state}`;return null!=e.lat&&null!=e.lng?`${t}|${e.lat}|${e.lng}`:t}async function c(e,t){try{let a=t?`${e}, ${t}, United States`:`${e}, United States`,r=await fetch("https://nominatim.openstreetmap.org/search?"+new URLSearchParams({q:a,format:"json",limit:"1",countrycodes:"us"}),{headers:{"Accept-Language":"en-US"}});if(!r.ok)return null;let n=await r.json();if(n.length>0)return{lat:parseFloat(n[0].lat),lng:parseFloat(n[0].lon)};return null}catch{return null}}async function d(e,t){try{let a=await fetch("https://nominatim.openstreetmap.org/reverse?"+new URLSearchParams({lat:String(e),lon:String(t),format:"json",addressdetails:"1",zoom:"10"}),{headers:{"Accept-Language":"en-US"}});if(!a.ok)return null;let r=(await a.json()).address;if(!r)return null;let n=r.city||r.town||r.village||r.hamlet||r.county,l=r.state;if(n&&l){let e=s[l]||l;return{city:n,state:e}}return null}catch{return null}}var u=e.i(65410);function m({location:e,compact:a=!1,className:r=""}
2){let[s,l]=(0,n.useState)(!1),[o,i]=(0,n.useState)(""),c=(0,n.useRef)(null);return((0,n.useEffect)(()=>{function e(e){c.current&&!c.current.contains(e.target)&&l(!1)}if(s)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[s]),e.loading)?(0,t.jsxs)("div",{className:`inline-flex items-center gap-1.5 text-text-muted ${r}`,children:[(0,t.jsxs)("svg",{className:"h-3.5 w-3.5 animate-spin",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",strokeOpacity:.25}),(0,t.jsx)("path",{d:"M12 2a10 10 0 019.95 9",strokeLinecap:"round"})]}),(0,t.jsx)("span",{className:"text-xs",children:"Detecting location..."})]}):(0,t.jsxs)("div",{ref:c,className:`relative z-30 ${r}`,children:[(0,t.jsxs)("button",{onClick:()=>{i(e.label),l(!0)},className:`inline-flex items-center gap-1.5 transition-colors ${a?"text-xs text-text-muted hover:text-text-primary":"rounded-full bg-surface-raised/60 hover:bg-surface-raised px-3 py-1.5 text-sm text-text-secondary hover:text-text-primary border border-transparent hover:border-border-default"}`,title:"Change search area",children:[(0,t.jsxs)("svg",{className:a?"h-3 w-3":"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 11-6 0 3 3 0 016 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z"})]}),(0,t.jsx)("span",{children:e.label||"Set location"}),(0,t.jsx)("svg",{className:"h-3 w-3 opacity-50",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{d:"M3 5l3 3 3-3"})})]}),s&&(0,t.jsxs)("div",{className:"absolute left-0 top-full mt-2 z-50 w-72 rounded-lg border border-border-default bg-surface shadow-xl p-3",children:[(0,t.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Search area"}),(0,t.jsx)(u.CityStateAutocomplete,{value:o,onChange:t=>{i(t),e.setLocation(t),l(!1)},placeholder:"City, State (ST)"}),e.label&&(0,t.jsx)("button",{onClick:()=>{e.setLocation(""),l(!1)},className:"mt-2 text-xs text-text-muted hover:text-error transition-colors",children:"Clear location"})]})]})}var x=e.i(51925),h=e.i(802839),g=e.i(214670),p=e.i(69052),f=e.i(993012),b=e.i(522677),v=e.i(618566);function y(){return(0,t.jsx)(n.Suspense,{fallback:(0,t.jsx)(h.PageLoading,{}),children:(0,t.jsx)(N,{})})}function N(){let{user:e}=(0,r.useAuth)(),s=function(){let{user:e,isAuthenticated:t,loading:a}
2=(0,r.useAuth)(),[s,u]=(0,n.useState)(""),[m,x]=(0,n.useState)(""),[h,g]=(0,n.useState)(null),[p,f]=(0,n.useState)(null),[b,v]=(0,n.useState)("none"),[y,N]=(0,n.useState)(!0),[C,w]=(0,n.useState)(!1),A=(0,n.useCallback)((e,t)=>{u(e.city),x(e.state),g(e.lat),f(e.lng),v(t),o(l,i(e),7776e3)},[]),j=(0,n.useCallback)(e=>{if(!e){u(""),x(""),g(null),f(null),v("none"),o(l,"",0);return}let t=e.split(",").map(e=>e.trim()),a=t[0]||"",r=t[1]||"";u(a),x(r),v("manual"),c(a,r).then(e=>{let t={city:a,state:r,lat:e?.lat??null,lng:e?.lng??null};g(t.lat),f(t.lng),o(l,i(t),7776e3)})},[]);(0,n.useEffect)(()=>{!a&&(C&&"manual"===b||r());async function r(){if(N(!0),t&&e?.city){let t=await c(e.city,e.state||"");A({city:e.city,state:e.state||"",lat:t?.lat??null,lng:t?.lng??null},"profile"),N(!1),w(!0);return}let a=function(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp(`(?:^|; )${e}=([^;]*)`));return t?decodeURIComponent(t[1]):null}(l);if(a){let e=function(e){if(!e)return null;let[t,a,r]=e.split("|"),n=t.split(",").map(e=>e.trim());return n[0]?{city:n[0],state:n[1]||"",lat:a?parseFloat(a):null,lng:r?parseFloat(r):null}:null}(a);if(e&&e.city){if(null==e.lat||null==e.lng){let t=await c(e.city,e.state);e.lat=t?.lat??null,e.lng=t?.lng??null,o(l,i(e),7776e3)}A(e,"cookie"),N(!1),w(!0);return}}if("undefined"!=typeof navigator&&"geolocation"in navigator)try{let e=await new Promise((e,t)=>{navigator.geolocation.getCurrentPosition(e,t,{enableHighAccuracy:!1,timeout:8e3,maximumAge:36e5})}),t=e.coords.latitude,a=e.coords.longitude,r=await d(t,a);if(r){A({city:r.city,state:r.state,lat:t,lng:a},"geolocation"),N(!1),w(!0);return}}catch{}v("none"),N(!1),w(!0)}},[a,t,e?.city,e?.state,C,b,A]);let k=s?m?`${s}, ${m}`:s:"";return{city:s,state:m,lat:h,lng:p,label:k,source:b,loading:y,setLocation:j}}(),u=(0,v.useRouter)(),y=(0,v.usePathname)(),N=(0,v.useSearchParams)(),w=N.get("category")||null,A=parseInt(N.get("page")||"1",10),j=N.get("q")||"",[k,S]=(0,n.useState)(j);(0,n.useEffect)(()=>{S(j)},[j]);let L=(0,n.useCallback)(e=>{let t=new URLSearchParams(N.toString());for(let[a,r]of Object.entries(e))null===r||""===r?t.delete(a):t.set(a,r);let a=t.toString();u.push(a?`${y}?${a}`:y)},[N,u,y]);(0,n.useEffect)(()=>{let e=setTimeout(()=>{k!==j&&L({q:k||null,page:null})},300);return()=>clearTimeout(e)},[k,j,L]);let M=(0,n.useCallback)(e=>{L({category:e,page:null})},[L]),T=(0,n.useCallback)(e=>{L({page:e>1?String(e):null})},[L]),I=(0,n.useCallback)(()=>{S(""),u.push(y)},[u,y]),{data:D,isLoading:F,error:O}=(0,a.useEvents)({search:j||void 0,category:w??void 0,page:A,limit:12,userId:e?.id,userCity:s.city||void 0,userState:s.state||void 0,lat:s.lat??void 0,lng:s.lng??void 0}),P=D?.data??[],E=D?.meta,{data:R}=(0,a.useMyTickets)(),W=(0,n.useMemo)(()=>{let e={};if(R)for(let t of R)("ISSUED"===t.status||"REDEEMED"===t.status)&&(e[t.eventId]=(e[t.eventId]||0)+1);return e},[R]);return(0,t.jsxs)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 py-6 md:py-8",children:[(0,t.jsxs)("div",{className:"mb-6 md:mb-8",children:[(0,t.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-text-primary mb-1",children:"Discover Events"}),(0,t.jsxs)("div",{className:"flex items-center gap-3 mt-1",children:[(0,t.jsx)("p",{className:"text-sm md:text-base text-text-secondary",children:s.label?`Showing events near ${s.city}`:"Find your next live experience"}),(0,t.jsx)(m,{location:s,compact:!0})]})]}),(0,t.jsx)(C,{active:w,onSelect:M}),(0,t.jsx)("div",{className:"mb-6 md:mb-8 max-w-md",children:(0,t.jsx)(p.Input,{placeholder:"Search events...",value:k,onChange:e=>S(e.target.value)})}),F&&(0,t.jsx)(h.PageLoading,{}),O&&(0,t.jsx)(b.Alert,{variant:"error",children:"Failed to load events. Please try again."}),0===P.length&&!F&&(0,t.jsx)(g.EmptyState,{title:"No events found",description:j||w?"Try different filters":"Check back soon for upcoming events",action:j||w?(0,t.jsx)(f.Button,{variant:"outline",onClick:I,children:"Clear filters"}):void 0}),P.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid gap-4 sm:gap-6 sm:grid-cols-2 lg:grid-cols-3 mb-8",children:P.map(e=>(0,t.jsx)(x.EventCard,{event:e,ticketCount:W[e.id]},e.id))}),E&&E.totalPages>1&&(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(f.Button,{variant:"outline",onClick:()=>T(A-1),disabled:1===A,children:"Previous"}),(0,t.jsxs)("span",{className:"text-sm text-text-muted",children:["Page ",E.page," of ",E.totalPages]}),(0,t.jsx)(f.Button,{variant:"outline",onClick:()=>T(A+1),disabled:A===E.totalPages,children:"Next"})]})]})]})}function C({active:e,onSelect:r}){let{data:n}=(0,a.useEventCategories)(),s=[{value:null,label:"All"},...(n??[]).map(e=>({value:e.key,label:e.label}))];return(0,t.jsx)("div",{className:"mb-4 md:mb-6 overflow-x-auto pb-2 -mx-4 px-4 sm:mx-0 sm:px-0",children:(0,t.jsx)("div",{className:"flex gap-2 min-w-max",children:s.map(a=>(0,t.jsx)("button",{onClick:()=>
2r(a.value),className:`px-3.5 md:px-4 py-1.5 md:py-2 rounded-full text-sm font-medium transition-colors whitespace-nowrap ${e===a.value?"bg-orange-deeper text-white":"bg-surface-raised text-text-secondary hover:bg-surface-raised/80"}`,children:a.label},a.label))})})}e.s(["default",()=>y],244845)}]);
3
4//# debugId=6a2409f9-72ae-bdc5-5d5e-4e0bd3924e7f

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.