PageSourceSearch

https://eisenhowertodoist.com/assets/UpgradePrompt-BmN0BlVV.js

js eisenhowertodoist.com collected 2026-09-29 07:17:34 UTC 3,886 bytes, 1 lines download raw bytes

1import{c as a,aN as v,aO as w,j as e,aQ as u,dI as x,dF as b,dJ as D,bD as k}from"./vendor-6YOJWedF.js";import{B as i,s as L,a6 as S,a7 as O}from"./index-BOkPBq2d.js";import{d as C}from"./vendor-supabase-fmdNsD8-.js";import{m as P}from"./vendor-motion-BJNGyUUL.js";const U="https://ylandon.gumroad.com/l/ujjsu",E="https://ylandon.gumroad.com/l/uxeju",I=({onPayment:n})=>{const[p,o]=a.useState(!1),[h,l]=a.useState(!1),[t,r]=a.useState("lifetime");v();const{session:f}=C.useSessionContext(),g=()=>{n?n(t):window.location.href=t==="lifetime"?U:E},c=new URLSearchParams(window.location.search).get("trialEndDate"),s=c?w(new Date(c),new Date):null,d=s!==null&&s>=0,y=[{icon:u,text:"Unlimited tasks and projects"},{icon:x,text:"Premium support"},{icon:b,text:"One-time payment, lifetime access"}],j=[{icon:u,text:"Unlimited tasks and projects"},{icon:x,text:"Premium support"},{icon:D,text:"Lower upfront cost"}];return e.jsxs("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:[e.jsx(P.div,{className:"max-w-md w-full space-y-6",initial:{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",children:e.jsxs("div",{className:"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:d?`Trial Period - ${s} days left`:"Upgrade to Premium"}),e.jsx("p",{className:"text-muted-foreground",children:d?`You have ${s} days left in your trial. Upgrade now to continue using all features.`:"Unlock the full potential of your productivity"})]}),e.jsxs("div",{className:"flex gap-2 p-1 bg-muted rounded-lg",children:[e.jsx("button",{onClick:()=>r("lifetime"),className:`flex-1 py-2 px-3 rounded-md text-sm font-medium transition-colors ${t==="lifetime"?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted-foreground/10"}`,children:"Lifetime Access"}),e.jsx("button",{onClick:()=>r("monthly"),className:`flex-1 py-2 px-3 rounded-md text-sm font-medium transition-colors ${t==="monthly"?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted-foreground/10"}`,children:"Monthly Plan"})]}),e.jsx("div",{className:"space-y-4",children:(t==="lifetime"?y:j).map(({icon:N,text:m})=>e.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[e.jsx(N,{className:"w-5 h-5 text-primary"}),e.jsx("span",{children:m})]},m))}),e.jsxs("div",{className:"relative",children:[e.jsx(i,{onClick:g,className:"w-full py-6 text-lg font-medium rounded-xl",children:t==="lifetime"?"Get Lifetime Access - $19.90":"Monthly Subscription - $4.99/mo"}),t==="lifetime"&&e.jsx("div",{className:"absolute -top-2 -right-2",children:e.jsx("span",{className:"bg-red-500 text-white text-xs font-bold px-2 py-1 rounded-full",children:"Best Value"})})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-0 flex items-center",children:e.jsx("span",{className:"w-full border-t border-white/10"})}),e.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:e.jsx("span",{className:"bg-card px-2 text-muted-foreground",children:"Or"})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(i,{variant:"outline",className:"w-full",onClick:()=>o(!0),children:"Already purchased? Enter license key"}),e.jsx(i,{variant:"ghost",className:"w-full",onClick:()=>L.auth.signOut(),children:"Sign Out"}),e.jsxs("button",{type:"button",onClick:()=>l(!0),className:"mx-auto flex items-center gap-1.5 text-xs text-muted-foreground/70 transition-colors hover:text-destructive",children:[e.jsx(k,{className:"h-3 w-3"}),"Delete my account and data"]})]})]})})}),e.jsx(S,{isOpen:p,onClose:()=>o(!1),planType:t}),e.jsx(O,{open:h,onOpenChange:l,email:f?.user?.email??null})]})};export{I 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.