1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["v20260902-1702/assets/firebase-config-Cm0Dp8zq.js","v20260902-1702/assets/index.esm-BbmTDasi.js","v20260902-1702/assets/stripe-1kP8eoUs.js"])))=>i.map(i=>d[i]); 2import{c as s,_ as v,r as _,j as t,P as E}from"./index-BxfVeFUb.js";import{M,D as w,u as U}from"./index-BZ4RtAbZ.js";import{S as c,B as j}from"./sparkles-Ditw1Hqs.js";import{F as C}from"./file-text-BPWqIgyR.js";import{m as b}from"./proxy-Cycf4ovc.js";import{B as R}from"./chunk-OOSFIX57-DBfcBa9f.js";/** 3 * @license lucide-react v0.542.0 - ISC 4 * 5 * This source code is licensed under the ISC license. 6 * See the LICENSE file in the root directory of this source tree. 7 */const $=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],F=s("cloud",$);/** 8 * @license lucide-react v0.542.0 - ISC 9 * 10 * This source code is licensed under the ISC license. 11 * See the LICENSE file in the root directory of this source tree. 12 */const H=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],O=s("file-code",H);/** 13 * @license lucide-react v0.542.0 - ISC 14 * 15 * This source code is licensed under the ISC license. 16 * See the LICENSE file in the root directory of this source tree. 17 */const z=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],N=s("grid-3x3",z);/** 18 * @license lucide-react v0.542.0 - ISC 19 * 20 * This source code is licensed under the ISC license. 21 * See the LICENSE file in the root directory of this source tree. 22 */const X=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],B=s("image",X);/** 23 * @license lucide-react v0.542.0 - ISC 24 * 25 * This source code is licensed under the ISC license. 26 * See the LICENSE file in the root directory of this source tree. 27 */const q=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],L=s("layers",q);/** 28 * @license lucide-react v0.542.0 - ISC 29 * 30 * This source code is licensed under the ISC license. 31 * See the LICENSE file in the root directory of this source tree. 32 */const G=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],V=s("lightbulb",G);/** 33 * @license lucide-react v0.542.0 - ISC 34 * 35 * This source code is licensed under the ISC license. 36 * See the LICENSE file in the root directory of this source tree. 37 */const W=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],S=s("quote",W);/** 38 * @license lucide-react v0.542.0 - ISC 39 * 40 * This source code is licensed under the ISC license. 41 * See the LICENSE file in the root directory of this source tree. 42 */const Z=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],D=s("wand-sparkles",Z);/** 43 * @license lucide-react v0.542.0 - ISC 44 * 45 * This source code is licensed under the ISC license. 46 * See the LICENSE file in the root directory of this source tree. 47 */const J=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],i=s("zap",J),Q={hidden:{opacity:0,y:30},visible:{opacity:1,y:0}},K={hidden:{opacity:0}
47,visible:{opacity:1,transition:{staggerChildren:.1}}},Y={hidden:{opacity:0,scale:.8},visible:{opacity:1,scale:1}},ee=[{name:"Free",description:"Ideal for exploring DocuGuru's research workflow and creating early drafts.",placeholder:"$0/month",perks:["**Journal-formatted PDF export (watermarked)**","**18,000+ journal templates**","AI-powered writing assistance","Smart autocomplete for drafting and refinement","AI chat for drafting and rewriting","Talk to PDF","PDF & Library upload (up to 10 files)","Citation suggestions","Citation management","AI diagram generation","Literature review generation","AI draft paper creation","Smart headings and document structuring","2,600+ citation styles","Cloud document storage"]},{name:"Starter",description:"For students and researchers ready to submit their work.",placeholder:"$10/month",placeholderINR:"â¹899/month",perks:["**Clean journal PDF â no watermark**","**Word (.docx) export**","**LaTeX source package**","**Unlimited PDF & Library uploads**","**250x monthly AI credits**","Advanced AI models (OpenAI GPT 5.2, Gemini 2.5 Pro)","Thinking Mode","Everything in Free","Email support"],stripePriceId:"price_1SeBtSSH6uXxHAUIZMCfVmAj",stripePriceIdINR:"price_1T4jzOSH6uXxHAUIlHUzJBuC"},{name:"Pro",description:"For serious researchers and academics who write daily.",placeholder:"$20/month",placeholderINR:"â¹1,799/month",perks:["**Clean journal PDF â no watermark**","**Word (.docx) export**","**LaTeX source package**","**Unlimited PDF & Library uploads**","**500x monthly AI credits**","Advanced AI models (OpenAI GPT 5.2, Gemini 2.5 Pro)","Thinking Mode","Everything in Free","Priority support"],highlighted:!0,stripePriceId:"price_1ST7ahSH6uXxHAUI7FcTQHGT",stripePriceIdINR:"price_1T4k8VSH6uXxHAUIcOgv2kwT"},{name:"Pro Max",description:"For power users and research teams who need unlimited access.",placeholder:"$50/month",placeholderINR:"â¹4,499/month",perks:["**Clean journal PDF â no watermark**","**Word (.docx) export**","**LaTeX source package**","**Unlimited PDF & Library uploads**","**1500x monthly AI credits**","Advanced AI models (OpenAI GPT 5.2, Gemini 2.5 Pro)","Thinking Mode","Everything in Free","Priority support"],stripePriceId:"price_1SeBslSH6uXxHAUIpNAmKrgQ",stripePriceIdINR:"price_1T4kAYSH6uXxHAUIPagpcYOi"}],te={"Journal-formatted PDF export (watermarked)":C,"18,000+ journal templates":N,"Clean journal PDF â no watermark":C,"Word (.docx) export":w,"LaTeX source package":O,"Unlimited PDF & Library uploads":F,"250x monthly AI credits":i,"500x monthly AI credits":i,"1500x monthly AI credits":i,"Everything in Free":c,"AI-powered writing assistance":D,"Smart autocomplete for drafting and refinement":i,"AI chat for drafting and rewriting":M,"Citation suggestions":S,"Citation management":j,"Basic citation management":j,"AI diagram generation":B,"Literature review generation":V,"AI draft paper creation":C,"Smart headings and document structuring":L,"Partial DOCX export":w,"One-click journal export to thousands of formats":w,"2,600+ citation styles":N,"Cloud document storage":F,"Limited Monthly Credits":i,"Basic AI features":c,"Everything in Free, plus:":c,"3x Monthly Credits":i,"Unlimited documents":N,"Full AI access":c,"Full DOCX export":w,"Priority support":c,"500x Monthly Credits":i,"250x Monthly Credits":i,"1500x Monthly Credits":i,"Everything in Pro, plus:":c,"Unlimited Monthly Credits":i,"Team collaboration":M,"Custom integrations":L,"Dedicated account manager":S,"Volume licensing":i,"Advanced AI writing assistance":D,"Email support":c},re={"Journal-formatted PDF export (watermarked)":"from-indigo-500 to-blue-500","18,000+ journal templates":"from-violet-500 to-purple-500","Clean journal PDF â no watermark":"from-indigo-500 to-purple-500","Word (.docx) export":"from-blue-500 to-cyan-500","LaTeX source package":"from-emerald-500 to-teal-500","Unlimited PDF & Library uploads":"from-sky-500 to-blue-500","250x monthly AI credits":"from-yellow-500 to-orange-500","500x monthly AI credits":"from-yellow-500 to-orange-500","1500x monthly AI credits":"from-yellow-500 to-orange-500","Everything in Free":"from-indigo-500 to-purple-500","AI-powered writing assistance":"from-blue-500 to-cyan-500","Smart autocomplete for drafting and refinement":"from-yellow-500 to-orange-500","AI chat for drafting and rewriting":"from-green-500 to-emerald-500","Citation suggestions":"from-pink-500 to-rose-500","Citation management":"from-purple-500 to-violet-500","Basic citation management":"from-purple-500 to-violet-500","AI diagram generation":"from-indigo-500 to-blue-500","Literature review generation":"from-
47amber-500 to-yellow-500","AI draft paper creation":"from-slate-500 to-gray-600","Smart headings and document structuring":"from-teal-500 to-cyan-500","Partial DOCX export":"from-red-500 to-orange-500","One-click journal export to thousands of formats":"from-blue-600 to-indigo-700","2,600+ citation styles":"from-violet-500 to-purple-500","Cloud document storage":"from-sky-500 to-blue-500","Limited Monthly Credits":"from-yellow-500 to-orange-500","Basic AI features":"from-indigo-500 to-purple-500","Everything in Free, plus:":"from-indigo-500 to-purple-500","3x Monthly Credits":"from-yellow-500 to-orange-500","Unlimited documents":"from-violet-500 to-purple-500","Full AI access":"from-indigo-500 to-purple-500","Full DOCX export":"from-red-500 to-orange-500","Priority support":"from-green-500 to-emerald-500","500x Monthly Credits":"from-yellow-500 to-orange-500","250x Monthly Credits":"from-yellow-500 to-orange-500","1500x Monthly Credits":"from-yellow-500 to-orange-500","Everything in Pro, plus:":"from-indigo-500 to-purple-500","Unlimited Monthly Credits":"from-yellow-500 to-orange-500"},oe=(a,r=c)=>te[a]||r,ae=(a,r="from-indigo-500 to-purple-600")=>re[a]||r,ie=["Asia/Kolkata","Asia/Calcutta"];let p=null,x;function T(){if(p!==null)return p;try{const a=Intl.DateTimeFormat().resolvedOptions().timeZone;if(ie.includes(a))return p=!0,!0;const r=navigator.languages||[navigator.language],u=["hi","hi-IN","en-IN","bn-IN","ta-IN","te-IN","mr-IN","gu-IN","kn-IN","ml-IN","pa-IN"];return r.some(g=>u.includes(g))?(p=!0,!0):(p=!1,!1)}catch{return p=!1,!1}}async function ne(){if(x!==void 0)return x;const[{auth:a,fireDB:r},{collection:u,query:m,where:g,getDocs:y}]=await Promise.all([v(()=>import("./firebase-config-Cm0Dp8zq.js"),__vite__mapDeps([0,1])),v(()=>import("./index.esm-BbmTDasi.js").then(d=>d.y),[])]),l=a.currentUser;if(!l)return x=null,null;try{const d=u(r,"customers",l.uid,"subscriptions"),P=m(d,g("status","in",["active","trialing"])),f=await y(P);if(!f.empty){const k=f.docs[0].data(),e=k.items?.[0]?.plan?.currency||k.items?.[0]?.price?.currency||null;return console.log("ð° Existing subscription currency:",e),x=e,e}}catch(d){console.warn("â ï¸ Could not check subscription currency:",d)}return x=null,null}async function se(a,r){return!r||!T()?a:await ne()==="usd"?(console.log("ð± Customer has existing USD subscription, keeping USD price"),a):(console.log("ð®ð³ Indian user with no USD subscription, using INR price:",r),r)}function le(a,r){return T()&&r?r:a}function he({}){const[a,r]=U({triggerOnce:!0,threshold:.1}),[u,m]=_.useState(!1),[g,y]=_.useState("Processing..."),l=ee,d=l.length>=4?"lg:grid-cols-4 md:grid-cols-2":l.length===3?"lg:grid-cols-3 md:grid-cols-2":l.length===2?"md:grid-cols-2":"md:grid-cols-1",P=l.length<=2?"max-w-5xl":"max-w-7xl xl:max-w-[1600px]",f=async e=>{const n="https://app.docuguru.ai";if(e.name==="Enterprise"){window.location.href="mailto:[email protected]?subject=Enterprise Plan Inquiry";return}if(e.name==="Free"){window.location.href=`${n}/documents`;return}const{auth:h}=await v(async()=>{const{auth:o}=await import("./firebase-config-Cm0Dp8zq.js");return{auth:o}},__vite__mapDeps([0,1]));if(await h.authStateReady(),!h.currentUser){if(e.stripePriceId){const o=new URL(`${n}/login`);o.searchParams.set("subscribe",e.stripePriceId),e.stripePriceIdINR&&o.searchParams.set("subscribeINR",e.stripePriceIdINR),o.searchParams.set("plan",e.name),window.location.href=o.toString()}return}if(e.stripePriceId)try{m(!0),y("Creating checkout session...");const[{createCheckoutSession:o},I]=await Promise.all([v(()=>import("./stripe-1kP8eoUs.js"),__vite__mapDeps([2,0,1])),se(e.stripePriceId,e.stripePriceIdINR)]);console.log("Creating checkout session for price:",I),await o(I,`${n}/documents?subscribed=true`,`${window.location.origin}/`,A=>y(A))}catch(o){console.error("Error starting checkout:",o),m(!1),alert(o.message||"Failed to start checkout. Please try again.")}},k=e=>e.name==="Free"?"Get Started":e.name==="Enterprise"?"Contact Sales":"Subscribe Now";return t.jsxs(t.Fragment,{children:[u&&t.jsx(E,{text:g}),t.jsx("section",{id:"pricing",className:"relative py-8",children:t.jsxs("div",{ref:a,className:`${P} mx-auto px-6 lg:px-8 space-y-6`,children:[t.jsx(b.div,{initial:"hidden",animate:r?"visible":"hidden",variants:Q,className:"text-center space-y-2 max-w-3xl mx-auto",children:t.jsx("p",{className:"text-sm sm:text-base md:text-lg font-bold uppercase tracking-[0.3em] sm:tracking-[0.4em] text-indigo-600 dark:text-indigo-400",children:"Pricing roadmap"})}),t.jsx(b.div,{initial:"hidden",animate:r?"visible":"hidden",variants:K,className:`grid gap-4 sm:gap-6 ${d} grid-cols-1`,children:l.map(e=>t.jsxs(b.div,{variants:Y,whileHover:{y:-10,scale:1.02},className:`rounded-[32px] border-2 ${e.highlighted?"border-indigo-500 dark:border-indigo-500 bg-gradient-to-br from-indigo-50 to-purple-50 dark:from-indigo-950/20 dark:to-purple-950/20":"border-slate-200/80 dark:border-slate-800 bg-gradient-to-br from-white to-slate-50/50 dark:from-white/[0.03] dark:to-white/[0.01]"} p-5 sm:p-7 md:p-10 flex flex-col shadow-2xl backdrop-blur-sm relative overflow-hidden group`,children:[e.highlighted&&t.jsx("div",{className:"absolute top-3 right-3 sm:top-6 sm:right-6",children:t.jsx("div",{className:"px-4 py-1.5 rounded-full bg-gradient-to-r from-indigo-600 to-purple-600 text-white text-xs font-bold uppercase tracking-wider shadow-lg",children:"Popular"})}),t.jsxs("div",{className:"space-y-3 flex-1",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-[10px] font-bold text-indigo-600 dark:text-indigo-400 uppercase tracking-[0.3em] mb-2",children:e.name}),t.jsx("p",{className:"text-xl font-black text-slate-900 dark:text-white mb-2",children:le(e.placeholder,e.placeholderINR)}
47),t.jsx("p",{className:"text-xs text-slate-600 dark:text-slate-300",children:e.description})]}),t.jsx("ul",{className:"space-y-2",children:e.perks.map(n=>{const h=n.startsWith("**")&&n.endsWith("**"),o=h?n.slice(2,-2):n,I=oe(o),A=ae(o);return t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx("div",{className:`h-4 w-4 rounded-full bg-gradient-to-br ${A} flex items-center justify-center flex-shrink-0 mt-0.5`,children:t.jsx(I,{className:"h-2 w-2 text-white"})}),t.jsx("span",{className:`text-xs ${h?"font-bold":""} text-slate-700 dark:text-slate-300`,children:o})]},n)})})]}),t.jsx(R,{asChild:!0,variant:e.highlighted?"default":"outline",size:"lg",className:"mt-6 w-full",children:t.jsx(b.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>f(e),children:k(e)})})]},e.name))})]})})]})}export{he as PricingSection};
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.