1import{j as e}from"./vendor-wHC2ntYA.js";import{u as i,H as d}from"./inertia-BxUlTYdw.js";import{B as c}from"./button-DgxPEQwo.js";import{C as o,a as x,b as p,d as h,c as j}from"./card-CDyZfyDW.js";import{U as u}from"./users-CnnyFaBd.js";import{C as f}from"./clock-d7jOAyUV.js";import{L as n}from"./loader-circle-DYhO8qbu.js";import{C as N}from"./circle-x-BoE5N87P.js";import{C as g}from"./circle-check-big-VuK4R0Sa.js";import{f as b}from"./formatDistanceToNow-B5Ye2jwV.js";import"./index-D1Fr3kbQ.js";import"./index-C3nnnCt4.js";import"./app-CJjB2_mY.js";/* empty css */import"./createLucideIcon-Dy18DS_c.js";import"./en-US-DIdCsyf3.js";function T({invitation:s}){const a=i({}),t=i({}),l=()=>{a.post(route("invitations.accept",s.token))},m=()=>{t.post(route("invitations.decline",s.token))},r=a.processing||t.processing;return e.jsxs(e.Fragment,{children:[e.jsx(d,{title:"Squad Invitation"}),e.jsx("div",{className:"min-h-screen flex items-center justify-center p-4 bg-zinc-50",children:e.jsxs(o,{className:"w-full max-w-md rounded-card",children:[e.jsxs(x,{className:"text-center",children:[e.jsx("div",{className:"mx-auto w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:e.jsx(u,{className:"w-6 h-6 text-blue-600"})}),e.jsx(p,{className:"text-xl",children:"You're Invited!"}),e.jsx(h,{children:"Join as a co-admin for this squad"})]}),e.jsxs(j,{className:"space-y-6",children:[e.jsxs("div",{className:"bg-zinc-50 rounded-button p-4 space-y-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-zinc-500",children:"Squad"}),e.jsx("p",{className:"font-semibold text-lg",children:s.squadName})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-zinc-500",children:"Invited by"}),e.jsx("p",{className:"font-medium",children:s.inviterName}),e.jsx("p",{className:"text-sm text-zinc-500",children:s.inviterEmail})]}),e.jsxs("div",{className:"flex items-center gap-1 text-sm text-zinc-500",children:[e.jsx(f,{className:"w-4 h-4"}),"Expires"," ",b(new Date(s.expiresAt),{addSuffix:!0})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-zinc-700 mb-2",children:"As a co-admin, you can:"}),e.jsxs("ul",{className:"text-sm text-zinc-600 space-y-1",children:[e.jsx("li",{children:"- Create attendance polls"}),e.jsx("li",{children:"- Generate balanced teams"}),e.jsx("li",{children:"- Manage the player roster"})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(c,{variant:"outline",className:"flex-1 min-h-[44px] rounded-button",onClick:m,disabled:r,children:t.processing?e.jsx(n,{className:"w-4 h-4 animate-spin"}):e.jsxs(e.Fragment,{children:[e.jsx(N,{className:"w-4 h-4 mr-2"}),"Decline"]})}),e.jsx(c,{className:"flex-1 min-h-[44px] rounded-button bg-green-600 hover:bg-green-700",onClick:l,disabled:r,children:a.processing?e.jsx(n,{className:"w-4 h-4 animate-spin"}):e.jsxs(e.Fragment,{children:[e.jsx(g,{className:"w-4 h-4 mr-2"}),"Accept"]})})]})]})]})})]})}export{T 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.