PageSourceSearch

https://meetborderless.com/build/assets/registrations-DbDGLVwK.js

js meetborderless.com collected 2026-10-09 22:42:04 UTC 6,487 bytes, 1 lines download raw bytes

1import{j as e}from"./app-C1iegf7Q.js";import{H as n,L as d,f as i}from"./inertia-BpyZy4w-.js";import{a as x}from"./admin-layout-BhXWbUlP.js";import{a as c}from"./utils-BiuKVCuu.js";import{A as m}from"./arrow-left-DCX0fhKH.js";import{D as o}from"./download-CXbkSkxk.js";import{U as p}from"./user-zm6AyDtY.js";import{M as b}from"./mail-Dwbp3545.js";import{f as h,p as f}from"./parseISO-DRj4ty2H.js";/* empty css            */import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";import"./flash-toast-C6O0iVL1.js";import"./createLucideIcon-wqc1LSWg.js";import"./info-D2ZN_yLm.js";import"./triangle-alert-C7AVwNi-.js";import"./circle-x-Bp6Mbpgt.js";import"./circle-check-BMWvzPMx.js";import"./x-DQSeRCcH.js";import"./menu-BR3Nc3Gr.js";import"./users-BCcupCXV.js";import"./folder-open-I72SPUVk.js";import"./pound-sterling-D16GLaAZ.js";import"./book-open-DVFlG_9t.js";function u({status:t}){const l={confirmed:{label:"Confirmed",cls:"bg-green/10 text-green-ink"},waitlisted:{label:"Waitlisted",cls:"bg-amber/12 text-amber-ink"},pending_payment:{label:"Pending Payment",cls:"bg-bg-2 text-ink-3"},cancelled:{label:"Cancelled",cls:"bg-red/10 text-red"}}[t]||{label:t,cls:"bg-bg-2 text-ink-3"};return e.jsx("span",{className:c("rounded-tag px-2 py-0.5 text-2xs font-bold",l.cls),children:l.label})}function F({event:t,registrations:a,stats:l}){const r=s=>{try{return h(f(s),"MMM d, yyyy h:mm a")}catch{return s}};return e.jsxs(x,{children:[e.jsx(n,{title:`Registrations: ${t.title} · Admin`}),e.jsxs("div",{className:"px-4 py-5 sm:px-6 sm:py-7",children:[e.jsxs("div",{className:"mb-5 flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs(d,{href:"/admin/events",className:"mb-2 inline-flex items-center gap-1 text-xs font-medium text-ink-3 hover:text-ink",children:[e.jsx(m,{className:"h-3.5 w-3.5"})," Back to Events"]}),e.jsx("h1",{className:"text-xl font-semibold text-ink",children:"Event Registrations"}),e.jsx("p",{className:"mt-0.5 text-sm text-ink-2",children:t.title}),e.jsxs("p",{className:"mt-0.5 text-sm text-ink-3",children:[r(t.starts_at)," • ",t.event_type==="virtual"?"Virtual":"In-Person"]})]}),e.jsxs("a",{href:`/admin/events/${t.id}/registrations/export`,download:!0,className:"inline-flex items-center gap-1.5 rounded-lg border border-line bg-white px-4 py-2 text-sm font-medium text-ink-2 hover:bg-bg-2",children:[e.jsx(o,{className:"h-3.5 w-3.5"}),"Export CSV"]})]}),e.jsx("div",{className:"mb-5 grid grid-cols-2 gap-3 sm:grid-cols-4",children:[{label:"Total Registrations",value:l.total},{label:"Confirmed",value:l.confirmed},{label:"Waitlisted",value:l.waitlisted},{label:"Cancelled",value:l.cancelled}].map(s=>e.jsxs("div",{className:"rounded-card border border-line bg-white p-4",children:[e.jsx("p",{className:"text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:s.label}),e.jsx("p",{className:"mt-1.5 font-serif text-3xl leading-none text-ink",children:s.value})]},s.label))}),t.max_capacity&&e.jsxs("div",{className:"mb-5 rounded-card border border-line bg-white p-5",children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[e.jsx("span",{className:"text-sm font-semibold text-ink",children:"Capacity"}),e.jsxs("span",{className:"text-sm text-ink-3",children:[t.current_registrations," / ",t.max_capacity]})]}),e.jsx("div",{className:"h-2 w-full rounded-full bg-bg-2",children:e.jsx("div",{className:"h-2 rounded-full bg-ink transition-all",style:{width:`${Math.min(t.current_registrations/t.max_capacity*100,100)}%`}})})]}),e.jsxs("div",{className:"overflow-hidden rounded-card border border-line bg-white",children:[e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full border-collapse",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-line-2 bg-bg-2",children:[e.jsx("th",{className:"px-4 py-2.5 text-left text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Attendee"}),e.jsx("th",{className:"px-4 py-2.5 text-left text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Status"}),e.jsx("th",{className:"px-4 py-2.5 text-left text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Registered"}),e.jsx("th",{className:"px-4 py-2.5 text-left text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Payment"}),e.jsx("th",{className:"px-4 py-2.5 text-left text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"User"})]})}),e.jsx("tbody",{children:a.data.length===0?e.jsx("tr",{children:e.jsxs("td",{colSpan:5,className:"py-12 text-center",children:[e.jsx(p,{className:"mx-auto mb-3 h-8 w-8 text-ink-3 op
1acity-50"}),e.jsx("p",{className:"text-sm text-ink-3",children:"No registrations yet"})]})}):a.data.map(s=>e.jsxs("tr",{className:"border-b border-line-2 last:border-0 hover:bg-bg-2",children:[e.jsxs("td",{className:"px-4 py-3",children:[e.jsx("div",{className:"text-sm font-semibold text-ink",children:s.name}),e.jsxs("div",{className:"mt-0.5 flex items-center gap-1 text-xs text-ink-3",children:[e.jsx(b,{className:"h-3 w-3"}),s.email]})]}),e.jsx("td",{className:"px-4 py-3",children:e.jsx(u,{status:s.status})}),e.jsx("td",{className:"px-4 py-3 text-sm text-ink-2",children:r(s.registered_at)}),e.jsx("td",{className:"px-4 py-3",children:s.is_paid?e.jsx("span",{className:"rounded-tag bg-green/10 px-2 py-0.5 text-2xs font-bold text-green-ink",children:"Paid"}):e.jsx("span",{className:"rounded-tag bg-bg-2 px-2 py-0.5 text-2xs font-bold text-ink-3",children:"Free"})}),e.jsx("td",{className:"px-4 py-3",children:s.user_id?e.jsx("span",{className:"rounded-tag bg-bg-2 px-2 py-0.5 text-2xs font-bold text-ink-2",children:"Registered User"}):e.jsx("span",{className:"rounded-tag bg-bg-2 px-2 py-0.5 text-2xs font-bold text-ink-3",children:"Guest"})})]},s.id))})]})}),a.last_page>1&&e.jsxs("div",{className:"flex items-center justify-center gap-3 border-t border-line-2 px-4 py-3",children:[a.current_page>1&&e.jsx("button",{type:"button",onClick:()=>i.get(`/admin/events/${t.id}/registrations`,{page:a.current_page-1}),className:"text-xs font-medium text-ink-3 hover:text-ink",children:"Previous"}),e.jsxs("span",{className:"text-xs text-ink-3",children:["Page ",a.current_page," of ",a.last_page]}),a.current_page<a.last_page&&e.jsx("button",{type:"button",onClick:()=>i.get(`/admin/events/${t.id}/registrations`,{page:a.current_page+1}),className:"text-xs font-medium text-ink-3 hover:text-ink",children:"Next"})]})]})]})]})}export{F as default};

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.