1import{o as b,t as A}from"./rolldown-runtime-YEGeZWSl.js";import{p as D,u as R}from"./vendor-v2_4x8_I.js";import{O as F,b as m,x as E,y as j}from"./tiptap-DtyGFwt0.js";import{t as P}from"./proxy-CdPSE95G.js";import{t as T}from"./circle-check-big-HIb-aAgA.js";import{t as q}from"./DataLayer-CNyJ2jjD.js";var k=A(((r,c)=>{var h={linear:function(t,e,s,i){return(s-e)*t/i+e},easeInQuad:function(t,e,s,i){return(s-e)*(t/=i)*t+e},easeOutQuad:function(t,e,s,i){return-(s-e)*(t/=i)*(t-2)+e},easeInOutQuad:function(t,e,s,i){var n=s-e;return(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,s,i){return(s-e)*(t/=i)*t*t+e},easeOutCubic:function(t,e,s,i){return(s-e)*((t=t/i-1)*t*t+1)+e},easeInOutCubic:function(t,e,s,i){var n=s-e;return(t/=i/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,s,i){return(s-e)*(t/=i)*t*t*t+e},easeOutQuart:function(t,e,s,i){return-(s-e)*((t=t/i-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,s,i){var n=s-e;return(t/=i/2)<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,s,i){return(s-e)*(t/=i)*t*t*t*t+e},easeOutQuint:function(t,e,s,i){return(s-e)*((t=t/i-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,s,i){var n=s-e;return(t/=i/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,s,i){var n=s-e;return-n*Math.cos(t/i*(Math.PI/2))+n+e},easeOutSine:function(t,e,s,i){return(s-e)*Math.sin(t/i*(Math.PI/2))+e},easeInOutSine:function(t,e,s,i){return-(s-e)/2*(Math.cos(Math.PI*t/i)-1)+e},easeInExpo:function(t,e,s,i){var n=s-e;return t==0?e:n*Math.pow(2,10*(t/i-1))+e},easeOutExpo:function(t,e,s,i){var n=s-e;return t==i?e+n:n*(-Math.pow(2,-10*t/i)+1)+e},easeInOutExpo:function(t,e,s,i){var n=s-e;return t===0?e:t===i?e+n:(t/=i/2)<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(-Math.pow(2,-10*--t)+2)+e},easeInCirc:function(t,e,s,i){return-(s-e)*(Math.sqrt(1-(t/=i)*t)-1)+e},easeOutCirc:function(t,e,s,i){return(s-e)*Math.sqrt(1-(t=t/i-1)*t)+e},easeInOutCirc:function(t,e,s,i){var n=s-e;return(t/=i/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,s,i){var n=s-e,a,o,l=1.70158;return o=0,a=n,t===0?e:(t/=i)===1?e+n:(o||(o=i*.3),a<Math.abs(n)?(a=n,l=o/4):l=o/(2*Math.PI)*Math.asin(n/a),-(a*Math.pow(2,10*(t-=1))*Math.sin((t*i-l)*(2*Math.PI)/o))+e)},easeOutElastic:function(t,e,s,i){var n=s-e,a,o,l=1.70158;return o=0,a=n,t===0?e:(t/=i)===1?e+n:(o||(o=i*.3),a<Math.abs(n)?(a=n,l=o/4):l=o/(2*Math.PI)*Math.asin(n/a),a*Math.pow(2,-10*t)*Math.sin((t*i-l)*(2*Math.PI)/o)+n+e)},easeInOutElastic:function(t,e,s,i){var n=s-e,a,o,l=1.70158;return o=0,a=n,t===0?e:(t/=i/2)===2?e+n:(o||(o=i*.44999999999999996),a<Math.abs(n)?(a=n,l=o/4):l=o/(2*Math.PI)*Math.asin(n/a),t<1?-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*i-l)*(2*Math.PI)/o))+e:a*Math.pow(2,-10*(t-=1))*Math.sin((t*i-l)*(2*Math.PI)/o)*.5+n+e)},easeInBack:function(t,e,s,i,n){var a=s-e;return n===void 0&&(n=1.70158),a*(t/=i)*t*((n+1)*t-n)+e},easeOutBack:function(t,e,s,i,n){var a=s-e;return n===void 0&&(n=1.70158),a*((t=t/i-1)*t*((n+1)*t+n)+1)+e},easeInOutBack:function(t,e,s,i,n){var a=s-e;return n===void 0&&(n=1.70158),(t/=i/2)<1?a/2*(t*t*(((n*=1.525)+1)*t-n))+e:a/2*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)+e},easeInBounce:function(t,e,s,i){var n=s-e;return n-h.easeOutBounce(i-t,0,n,i)+e},easeOutBounce:function(t,e,s,i){var n=s-e;return(t/=i)<.36363636363636365?n*(7.5625*t*t)+e:t<.7272727272727273?n*(7.5625*(t-=.5454545454545454)*t+.75)+e:t<.9090909090909091?n*(7.5625*(t-=.8181818181818182)*t+.9375)+e:n*(7.5625*(t-=.9545454545454546)*t+.984375)+e},easeInOutBounce:function(t,e,s,i){var n=s-e,a;return t<i/2?(a=h.easeInBounce(t*2,0,n,i),a*.5+e):(a=h.easeOutBounce(t*2-i,0,n,i),a*.5+n*.5+e)}};c.exports=h})),f=j(),y=b(F(),1),G=b(k(),1);E();function Y(r){return r*Math.PI/180}function u(r,c){return r+Math.random()*(c-r)}function Q(r,c){return Math.floor(r+Math.random()*(c-r+1))}var x;(function(r){r[r.Circle=0]="Circle",r[r.Square=1]="Square",r[r.Strip=2]="Strip"})(x||(x={}));var d;(function(r){r[r.Positive=1]="Positive",r[r.Negative=-1]="Negative"})(d||(d={}));var W=1e3/60,L=class{constructor(r,c,h,t){this.getOptions=c;const{colors:e,initialVelocityX:s,initialVelocityY:i}=this.getOptions();this.context=r,this.x=h,this.y=t,this.w=u(5,20),this.h=u(5,20),this.radius=u(5,10),this.vx=typeof s=="number"?u(-s,s):u(s.min,s.max),this.vy=typeof i=="number"?u(-i,0):u(i.min,i.max),this.shape=Q(0,2),this.angle=Y(u(0,360)),this.angularSpin=u(-.2,.2),this.color=e[Math.floor(Math.random()*e.length)],this.rotateY=u(0,1),this.rotationDirection=u(0,1)?d.Positive:d.Negative}update(r){const{gravity:c,wind:h,friction:t,opacity:e,drawShape:s}=this.getOptions(),i=r/W;this.x+=this.vx*i,this.y+=this.vy*i,this.vy+=c*i,this.vx+=h*i,this.vx*=Math.pow(t,i),this.vy*=Math.pow(t,i),this.rotateY>=1&&this.rotationDirection===d.Positive?this.rotationDirection=d.Negative:this.rotateY<=-1&&this.rotationDirection===d.Negative&&(this.rotationDirection=d.Positive);const n=.1*this.rotationDirection*i;if(this.rotateY+=n,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=e,this.context.lineCap="round",this.context.lineWidth=2,s&&typeof s=="function")s.call(this,this.context);else switch(this.shape){case x.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case x.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case x.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}
1this.context.closePath(),this.context.restore()}},V=class{constructor(r,c){this.x=0,this.y=0,this.w=0,this.h=0,this.lastNumberOfPieces=0,this.tweenProgress=0,this.tweenFrom=0,this.particles=[],this.particlesGenerated=0,this.removeParticleAt=t=>{this.particles.splice(t,1)},this.getParticle=()=>{const t=u(this.x,this.w+this.x),e=u(this.y,this.h+this.y);return new L(this.context,this.getOptions,t,e)},this.animate=t=>{const{canvas:e,context:s,particlesGenerated:i,lastNumberOfPieces:n}=this,{run:a,recycle:o,numberOfPieces:l,debug:B,tweenFunction:N,tweenDuration:S}=this.getOptions();if(!a)return!1;const w=this.particles.length,g=o?w:i;if(g<l){n!==l&&(this.tweenProgress=0,this.tweenFrom=g,this.lastNumberOfPieces=l),this.tweenProgress=Math.min(S,Math.max(0,this.tweenProgress+t));const v=N(this.tweenProgress,this.tweenFrom,l,S),p=Math.round(v-g);for(let _=0;_<p;_++)this.particles.push(this.getParticle());this.particlesGenerated+=p}B&&(s.font="12px sans-serif",s.fillStyle="#333",s.textAlign="right",s.fillText(`Particles: ${w}`,e.width-10,e.height-20));for(let v=this.particles.length-1;v>=0;v--){const p=this.particles[v];p.update(t),(p.y>e.height||p.y<-100||p.x>e.width+100||p.x<-100)&&(o&&g<=l?this.particles[v]=this.getParticle():this.removeParticleAt(v))}return w>0||g<l},this.canvas=r;const h=this.canvas.getContext("2d");if(!h)throw new Error("Could not get canvas context");this.context=h,this.getOptions=c}},O={width:typeof window!="undefined"?window.innerWidth:300,height:typeof window!="undefined"?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:G.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},H=class{constructor(r,c){this.lastFrameTime=0,this.setOptionsWithDefaults=t=>{const e={confettiSource:{x:0,y:0,w:this.canvas.width,h:0}};this._options=m(m(m({},e),O),t),Object.assign(this,t.confettiSource)},this.update=(t=0)=>{const{options:{run:e,onConfettiComplete:s,frameRate:i},canvas:n,context:a}=this,o=Math.min(t-this.lastFrameTime,50);if(i&&o<1e3/i){this.rafId=requestAnimationFrame(this.update);return}this.lastFrameTime=t-(i?o%i:0),e&&(a.fillStyle="white",a.clearRect(0,0,n.width,n.height)),this.generator.animate(o)?this.rafId=requestAnimationFrame(this.update):(s&&typeof s=="function"&&this.generator.particlesGenerated>0&&s.call(this,this),this._options.run=!1)},this.reset=()=>{this.generator&&this.generator.particlesGenerated>0&&(this.generator.particlesGenerated=0,this.generator.particles=[],this.generator.lastNumberOfPieces=0)},this.stop=()=>{this.options={run:!1},this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0)},this.canvas=r;const h=this.canvas.getContext("2d");if(!h)throw new Error("Could not get canvas context");this.context=h,this.generator=new V(this.canvas,()=>this.options),this.options=c,this.update()}get options(){return this._options}set options(r){var c,h;const t=(c=this._options)===null||c===void 0?void 0:c.run,e=(h=this._options)===null||h===void 0?void 0:h.recycle;this.setOptionsWithDefaults(r),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof r.recycle=="boolean"&&r.recycle&&e===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof r.run=="boolean"&&r.run&&t===!1&&this.update()}},U=y.createRef(),C=class extends y.Component{constructor(r){super(r),this.canvas=y.createRef(),this.canvas=r.canvasRef||U}componentDidMount(){if(this.canvas.current){const r=I(this.props)[0];this.confetti=new H(this.canvas.current,r)}}componentDidUpdate(){const r=I(this.props)[0];this.confetti&&(this.confetti.options=r)}componentWillUnmount(){this.confetti&&this.confetti.stop(),this.confetti=void 0}render(){const[r,c]=I(this.props),h=m({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},c.style);return(0,f.jsx)("canvas",m(m({width:r.width,height:r.height,ref:this.canvas},c),{},{style:h}))}};C.defaultProps=m({},O);C.displayName="ReactConfetti";function I(r){const c={},h={},t={},e=[...Object.keys(O),"confettiSource","drawShape","onConfettiComplete","frameRate"],s=["canvasRef"];for(const i in r){const n=r[i];e.includes(i)?c[i]=n:s.includes(i)?s[i]=n:t[i]=n}return[c,t,h]}var z=y.forwardRef((r,c)=>(0,f.jsx)(C,m({canvasRef:c},r))),M={basic:{name:"Basic Plan",productName:"GenWrite Basic Plan",priceMonthly:20,priceAnnual:199,stripePriceIdMonthly:"price_1RmBPtSBIDC2bddyqV8gysgE",stripePriceIdMonthlyOneOff:"price_1SEY43SBIDC2bddykN1KaTzT",stripePriceIdAnnual:"price_1RtsSfSBIDC2bddy3AyX2QUt",stripePriceIdAnnualOneOff:"price_1SEY8sSBIDC2bddyx
1MssgTPC",credits:1e3,annualCredits:12e3,description:"Perfect for individuals getting started with AI content creation.",features:["Blog generation: single, quick, multiple","Keyword research","Performance monitoring","Humanize pasted content","No data export","No blog rewrite","No regenerate & retry","No proofreading","Email support","Standard templates","Automatic Blog Posting"],type:"subscription",tier:"basic"},pro:{name:"GenWrite Pro",productName:"GenWrite Pro Plan",priceMonthly:50,priceAnnual:499,stripePriceIdMonthly:"price_1RmBV4SBIDC2bddyLTJNdMwH",stripePriceIdMonthlyOneOff:"price_1SEYOkSBIDC2bddySz4d7TxO",stripePriceIdAnnual:"price_1RmBfaSBIDC2bddyDNB9iAvG",stripePriceIdAnnualOneOff:"price_1SEYRbSBIDC2bddyaH5aUt2x",credits:4500,annualCredits:54e3,description:"Advanced AI features with priority support for growing teams.",features:["Everything in Basic, plus:","Competitor analysis","Retry blog","Regenerate content","Rewrite blog","Proofreading","Jobs scheduling","Priority support","Advanced export options"],type:"subscription"},credits:{name:"Credit Pack",priceMonthly:null,priceAnnual:null,credits:null,annualCredits:null,description:"Flexible one-time credit purchase for occasional users.",features:["Custom credit amount","No subscription required","Credits never expire"],cta:"Buy Credits",type:"credit_purchase"}},et=()=>{const r=R(),[c,h]=D(),t=Object.fromEntries(c.entries());return(0,y.useEffect)(()=>{if((t==null?void 0:t.isTrialOpted)==="true"){const{userId:e,plan:s,billingPeriod:i}=t,n=s?M==null?void 0:M[s]:void 0,a={event:"trialOpted",user_id:e,plan_name:s,currency:"USD",billing_period:i,value:i?i==="monthly"?n==null?void 0:n.priceMonthly:n==null?void 0:n.priceAnnual:void 0};q(a)}},[t==null?void 0:t.isTrialOpted,t]),(0,f.jsxs)("div",{className:"min-h-screen flex items-center justify-center px-4 sm:px-6 lg:px-8 bg-gradient-to-br from-green-50 via-blue-50 to-white relative overflow-hidden",children:[(0,f.jsx)(z,{width:window.innerWidth,height:window.innerHeight,numberOfPieces:200,recycle:!1,colors:["#22c55e","#3b82f6","#f59e0b","#ef4444"]}),(0,f.jsx)("svg",{"aria-hidden":"true",className:"absolute bottom-0 left-0 w-full h-1/3 opacity-20",viewBox:"0 0 1440 320",preserveAspectRatio:"none",children:(0,f.jsx)("path",{fill:"#22c55e",fillOpacity:"0.3",d:"M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,181.3C672,192,768,160,864,138.7C960,117,1056,107,1152,122.7C1248,139,1344,181,1392,202.7L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"})}),(0,f.jsxs)(P.div,{className:"text-center z-10",variants:{hidden:{opacity:0,y:50},visible:{opacity:1,y:0,transition:{duration:.6,ease:"easeOut"}}},initial:"hidden",animate:"visible",children:[(0,f.jsx)(P.div,{className:"mb-6 sm:mb-8",variants:{hidden:{scale:0,opacity:0},visible:{scale:1,opacity:1,transition:{type:"spring",stiffness:200,damping:15,delay:.2}},pulse:{scale:[1,1.1,1],transition:{duration:1.5,repeat:1/0,repeatType:"loop",ease:"easeInOut"}}},initial:"hidden",animate:["visible","pulse"],children:(0,f.jsx)(T,{className:"w-20 h-20 sm:w-24 sm:h-24 lg:w-32 lg:h-32 text-green-500 mx-auto"})}),(0,f.jsx)("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-800 mb-4 sm:mb-6",children:"Payment Completed Successfully"}),(0,f.jsx)("p",{className:"text-base sm:text-lg lg:text-xl text-gray-600 mb-8 sm:mb-10 leading-relaxed max-w-md sm:max-w-lg lg:max-w-xl mx-auto",children:"Youâre ready to create powerful content with GenWrite AI!"}),(0,f.jsx)(P.button,{onClick:()=>r("/dashboard"),className:"px-8 py-3 sm:px-10 sm:py-4 bg-blue-600 text-white rounded-lg font-semibold text-base sm:text-lg transition-all",variants:{hover:{scale:1.05,boxShadow:"0 4px 20px rgba(59, 130, 246, 0.3)"},tap:{scale:.95}},whileHover:"hover",whileTap:"tap",children:"Go to Dashboard"})]})]})};export{et 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.