PageSourceSearch

https://ideamine.ai/assets/pricing-CwBFHWsc.js

js ideamine.ai collected 2026-10-05 14:21:48 UTC 2,429 bytes, 1 lines download raw bytes

1import{q as y,r as a,n as c,w as P}from"./chunk-LFPYN7LY-Car07AU-.js";import{u as S,a as p,r as E}from"./AuthContext-C31EqbjV.js";import{P as I}from"./PricingPlansSection-D4VYbWPM.js";import"./utils-96ptXDTT.js";const s="pricing:pending_checkout",l={free:0,builder:1,pro:2};function k(){const{isAuthenticated:n,tier:o,login:d}=S(),g=y(),[m,r]=a.useState(null),[u,i]=a.useState("");a.useEffect(()=>{const e=t=>{t.persisted&&window.location.reload()};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[]),a.useEffect(()=>{if(!n||!o)return;let e;try{const t=window.sessionStorage.getItem(s);if(window.sessionStorage.removeItem(s),!t)return;e=JSON.parse(t)}catch{return}(l[e.tier]||0)>(l[o]||0)?(r(e.tier),p(e.tier,e.interval).catch(t=>{i(t.message),r(null)})):g("/")},[n,o,g]);const w=async(e,t)=>{if(!n){try{window.sessionStorage.setItem(s,JSON.stringify({tier:e,interval:t}))}catch{}d();return}r(e),i("");try{await p(e,t)}catch(f){console.error("[Pricing] Checkout error:",f),i("Something went wrong starting checkout. Please try again."),r(null)}},h=async e=>{r(`manage-${e}`),i("");try{await E()}catch(t){console.error("[Pricing] Billing portal error:",t),i("Something went wrong opening billing. Please try again."),r(null)}};return c.jsx("div",{className:"animate-fade-in",children:c.jsx(I,{isAuthenticated:n,currentTier:o,loading:m,error:u,onUpgrade:w,onManage:h,showHero:!0,showBackLink:!0})})}function _(){const n="Free tier with 3 categories. Builder at $20/mo for all 25 categories and full AI analyses. Pro at $40/mo for unlimited analyses and 530+ AI-generated app ideas.";return[{title:"Pricing - IdeaMine"},{name:"description",content:n},{tagName:"link",rel:"canonical",href:"https://ideamine.ai/pricing"},{property:"og:type",content:"website"},{property:"og:site_name",content:"IdeaMine"},{property:"og:url",content:"https://ideamine.ai/pricing"},{property:"og:title",content:"Pricing - IdeaMine"},{property:"og:description",content:n},{property:"og:image",content:"https://ideamine.ai/og/pricing.png"},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"Pricing - IdeaMine"},{name:"twitter:description",content:n},{name:"twitter:image",content:"https://ideamine.ai/og/pricing.png"}]}const C=P(function(){return c.jsx(k,{})});export{C as default,_ as meta};

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.