1import{c as r,j as e,aS as m}from"./vendor-1kUQ7zn2.js";import{g as u,K as x,B as p,ak as g,s as h,$ as f,ar as j,as as y}from"./index--kdl1ae9.js";import{d as b}from"./vendor-supabase-Dh2gyaRa.js";import{PlanPicker as v}from"./PlanPicker-C8gzQIYq.js";import{u as N,m as w}from"./vendor-motion-BX-jsy7E.js";import"./vendor-date-en1IyhsK.js";import"./checkout-DROMBe3d.js";import"./checkoutState-C2DchyvW.js";const z=({kind:i="trial"})=>{const s=y(i),[n,a]=r.useState(!1),[c,o]=r.useState(!1),{session:l}=b.useSessionContext(),t=u(),d=N();return e.jsxs("div",{className:t?"mx-gate bg-background":"min-h-screen bg-background flex items-center justify-center p-4",children:[e.jsx(w.div,{className:t?"mx-gate-inner space-y-6":"max-w-md w-full space-y-6",initial:d?!1:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:e.jsx("div",{className:"bg-card rounded-xl shadow-sm border overflow-hidden","data-testid":"upgrade-gate",children:e.jsxs("div",{className:t?"p-5 space-y-5":"p-6 space-y-6",children:[e.jsxs("div",{className:"text-center space-y-2",children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight text-foreground",children:s.title}),e.jsx("p",{className:"text-muted-foreground",children:s.body}),e.jsx("p",{className:"text-xs text-muted-foreground",children:x.socialProof})]}),e.jsx(v,{size:t?"large":"default",onEnterLicense:()=>a(!0)}),e.jsxs("div",{className:"space-y-2 border-t pt-4",children:[e.jsx(p,{variant:"ghost",className:t?"w-full min-h-11":"w-full",onClick:()=>{g().then(()=>h.auth.signOut())},children:"Log out"}),e.jsxs("button",{type:"button",onClick:()=>o(!0),className:t?"mx-auto flex min-h-11 items-center gap-1.5 px-3 text-[13px] text-muted-foreground transition-colors hover:text-destructive":"mx-auto flex items-center gap-1.5 text-xs text-muted-foreground/70 transition-colors hover:text-destructive",children:[e.jsx(m,{className:"h-3 w-3"}),"Delete my account and data"]})]})]})})}),e.jsx(f,{isOpen:n,onClose:()=>a(!1)}),e.jsx(j,{open:c,onOpenChange:o,email:l?.user?.email??null})]})};export{z as UpgradePrompt};
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.