PageSourceSearch

https://motivy.ai/assets/Pricing-CFiQOmxs.js

js motivy.ai collected 2026-10-05 12:20:56 UTC 5,505 bytes, 1 lines download raw bytes

1import{r as w,u as k,j as e,g as S,C as F,A as P,D as T,E,a as A,X as L,B as c,L as M,s as U}from"./index-CA1a-X-x.js";import{F as B}from"./MotivyLogo-BFYIPXm1.js";import{b as R,u as $}from"./useSubscription-Bm-EOK9L.js";import{B as d}from"./badge-BGiOdCEV.js";import{S as q}from"./switch-55yehXYR.js";import{L as g}from"./label-CU7iC61M.js";import{M as z,F as D}from"./MarketingNavbar-WgPIcOfp.js";import{M as O}from"./MarketingCTA-B6N-mYtb.js";import{C as I}from"./check-BBkMP9Nv.js";import"./index-GSEnlRyG.js";import"./trophy-mUfTpjE9.js";import"./chevron-down-B51Wzz_w.js";import"./index-Dj3g75Rk.js";import"./collapsible-CTmt6und.js";import"./arrow-right-BKRpVlSg.js";import"./heart-Cktn26oi.js";import"./trending-up-BAjMktTZ.js";import"./graduation-cap-DZHqHm9N.js";const f={core_recognition:"Peer-to-peer recognition",individual_leaderboard:"Individual leaderboard",basic_badges:"Basic badges",basic_profile:"User profiles",team_leaderboard:"Team leaderboard",awards:"Award programs",rewards:"Rewards marketplace",analytics:"Analytics dashboard",personal_insights:"Personal insights",slack_integration:"Slack integration",custom_appreciation_types:"Custom appreciation types",branding:"Custom branding",custom_milestones:"Custom milestones",api_webhooks:"API & webhooks",tv_mode:"TV mode",org_chart:"Org chart",data_export:"Data export"},Y=Object.keys(f);function h(t){return t===0?"$0":`$${(t/100).toFixed(t%100===0?0:2)}`}function ce(){const[t,b]=w.useState(!1),{user:i,organization:j}=k(),{isTrialing:o,planName:m}=R(),{data:n,isLoading:y}=$({queryKey:["subscription-plans"],queryFn:async()=>{const{data:r,error:a}=await U.from("subscription_plans").select("*").eq("is_active",!0).order("sort_order");if(a)throw a;return r},staleTime:3e5}),N=r=>r.name==="free"?i&&m==="free"&&!o?{label:"Current Plan",to:"#",disabled:!0}:{label:"Get Started Free",to:"/auth?tab=signup"}:r.name==="pro"?o?{label:"Upgrade Now",to:"/admin?category=organization&tab=billing"}:i&&m==="pro"?{label:"Current Plan",to:"#",disabled:!0}:{label:i?"Upgrade to Pro":"Start Free Trial",to:i&&j?"/admin?category=organization&tab=billing":"/auth?tab=signup"}:{label:"Contact Sales",to:"mailto:[email protected]"},_=r=>r.monthly_price_cents===0?0:r.monthly_price_cents*12-r.yearly_price_cents;return e.jsx(B,{children:e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(z,{}),e.jsxs("section",{className:"container mx-auto px-4 py-16 md:py-24",children:[e.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-12",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold tracking-tight text-foreground mb-4",children:"Simple, transparent pricing"}),e.jsx("p",{className:"text-lg text-muted-foreground",children:"Start free and scale as your team grows. No hidden fees."})]}),e.jsxs("div",{className:"flex items-center justify-center gap-3 mb-12",children:[e.jsx(g,{htmlFor:"billing-toggle",className:t?"text-muted-foreground":"text-foreground font-medium",children:"Monthly"}),e.jsx(q,{id:"billing-toggle",checked:t,onCheckedChange:b}),e.jsx(g,{htmlFor:"billing-toggle",className:t?"text-foreground font-medium":"text-muted-foreground",children:"Yearly"}),t&&e.jsx(d,{variant:"secondary",className:"ml-1",children:"Save up to 20%"})]}),y?e.jsx("div",{className:"flex justify-center py-20",children:e.jsx(S,{className:"w-8 h-8 animate-spin text-primary"})}):e.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-5xl mx-auto",children:n==null?void 0:n.map(r=>{const a=r.name==="pro",v=r.name==="enterprise",x=t?r.yearly_price_cents:r.monthly_price_cents,s=N(r),u=_(r),C=r.features??{};return e.jsxs(F,{className:`relative flex flex-col ${a?"border-primary shadow-lg ring-1 ring-primary/20":""}`,children:[a&&e.jsxs("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 flex gap-1.5",children:[e.jsx(d,{className:"bg-primary text-primary-foreground",children:"Most Popular"}),o&&e.jsx(d,{variant:"secondary",children:"On Trial"})]}),e.jsxs(P,{className:"text-center pb-2",children:[e.jsx(T,{className:"text-xl",children:r.display_name}),e.jsx(E,{children:r.max_users?`Up to ${r.max_users} users`:"Unlimited users"}),e.jsx("div",{className:"pt-4",children:v?e.jsx("div",{className:"text-3xl font-bold text-foreground",children:"Custom"}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-4xl font-bold text-foreground",children:h(t?Math.round(x/12):x)}),e.jsx("span",{className:"text-muted-foreground text-sm",children:"/mo"}),t&&u>0&&e.jsxs("p",{className:"text-xs text-primary mt-1",children:["Save ",h(u),"/year"]})]})})]}),e.jsxs(A,{className:"flex-1 flex flex-col",children:[e.jsx("ul",{className:"space-y-2.5 mb-8 flex-1",children:Y.map(l=>{const p=C[l]===!0;return e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[p?e.jsx(I,{className:"w-4 h-4 text-primary shrink-0"}
1):e.jsx(L,{className:"w-4 h-4 text-muted-foreground/40 shrink-0"}),e.jsx("span",{className:p?"text-foreground":"text-muted-foreground/60",children:f[l]})]},l)})}),s.to.startsWith("mailto:")?e.jsx("a",{href:s.to,children:e.jsx(c,{variant:a?"default":"outline",className:"w-full",children:s.label})}):s.disabled?e.jsx(c,{variant:"outline",className:"w-full",disabled:!0,children:s.label}):e.jsx(M,{to:s.to,children:e.jsx(c,{variant:a?"default":"outline",size:a?"lg":"default",className:"w-full",children:s.label})}),a&&!i&&e.jsx("p",{className:"text-xs text-muted-foreground text-center mt-2",children:"No credit card required"})]})]},r.id)})})]}),e.jsx(O,{}),e.jsx(D,{})]})})}export{ce 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.