1"use strict";(self.webpackChunkchrome_extension_builder=self.webpackChunkchrome_extension_builder||[]).push([[759],{917:(e,t,s)=>{s.d(t,{A:()=>l});const l=(0,s(3797).A)("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["polyline",{points:"22 4 12 14.01 9 11.01",key:"6xbx8j"}]])},2938:(e,t,s)=>{s.d(t,{A:()=>l});const l=(0,s(3797).A)("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]])},4759:(e,t,s)=>{s.r(t),s.d(t,{default:()=>p});var l=s(5043),a=s(5475),n=s(3216),r=s(6514),i=s(2938),o=s(917),c=s(5489),d=s(4421),x=s(9339),m=s(7897),u=s(3622),h=s(2929),b=s(579);const p=function(e){let{session:t,onShowLoginModal:s}=e;const[p]=(0,a.ok)(),g=(0,n.Zp)(),[y,f]=(0,l.useState)(""),[j,w]=(0,l.useState)(!0),[N,v]=(0,l.useState)(""),{refresh:k,currentBalanceCents:S,planName:A,planDisplayName:C,isUnlimited:D}=(0,m.W8)();return(0,l.useEffect)(()=>{const e=p.get("session_id");e?(f(e),(0,h.M)("purchase_completed",{checkout_session_id:e,guest:!t}),k()):v("No session ID found"),w(!1)},[p]),(0,l.useEffect)(()=>{y&&A&&"free"!==A&&(0,h.M)("purchase_plan_confirmed",{plan:A,plan_display_name:C})},[y,A]),j?(0,b.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-purple-900 via-blue-900 to-indigo-900 flex items-center justify-center",children:(0,b.jsx)("div",{className:"text-white text-xl",children:"Loading..."})}):N?(0,b.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-purple-900 via-blue-900 to-indigo-900",children:(0,b.jsxs)("div",{className:"relative z-10 container mx-auto px-4 py-8",children:[(0,b.jsx)(x.A,{onShowLoginModal:s}),(0,b.jsx)("div",{className:"flex items-center justify-center min-h-[60vh]",children:(0,b.jsxs)("div",{className:"text-center",children:[(0,b.jsx)("div",{className:"text-red-400 text-xl mb-4",children:"Payment Error"}),(0,b.jsx)("p",{className:"text-gray-300 mb-6",children:N}),(0,b.jsx)("button",{onClick:()=>g("/"),className:"bg-purple-600 hover:bg-purple-700 text-white px-6 py-3 rounded-lg font-semibold",children:"Go Home"})]})})]})}):t?(0,b.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-purple-900 via-blue-900 to-indigo-900",children:[(0,b.jsxs)("div",{className:"absolute inset-0 overflow-hidden",children:[(0,b.jsx)("div",{className:"absolute -top-4 -left-4 w-72 h-72 bg-purple-500 rounded-full mix-blend-multiply filter blur-xl opacity-70 animate-pulse"}),(0,b.jsx)("div",{className:"absolute -bottom-8 -right-4 w-72 h-72 bg-blue-500 rounded-full mix-blend-multiply filter blur-xl opacity-70 animate-pulse",style:{animationDelay:"2s"}}),(0,b.jsx)("div",{className:"absolute top-1/2 left-1/2 w-72 h-72 bg-indigo-500 rounded-full mix-blend-multiply filter blur-xl opacity-70 animate-pulse",style:{animationDelay:"4s"}})]}),(0,b.jsxs)("div",{className:"relative z-10 container mx-auto px-4 py-8",children:[(0,b.jsx)(x.A,{onShowLoginModal:s}),(0,b.jsx)("div",{className:"flex items-center justify-center min-h-[60vh]",children:(0,b.jsxs)("div",{className:"bg-white/10 backdrop-blur-lg rounded-2xl p-12 border border-white/20 shadow-2xl text-center max-w-2xl",children:[(0,b.jsxs)("div",{className:"mb-8",children:[(0,b.jsx)("div",{className:"mx-auto w-24 h-24 bg-green-500 rounded-full flex items-center justify-center mb-6",children:(0,b.jsx)(o.A,{className:"w-12 h-12 text-white"})}),(0,b.jsx)("h1",{className:"text-4xl font-bold text-white mb-4",children:"Payment Successful! \ud83c\udf89"}),(0,b.jsx)("p",{className:"text-xl text-gray-300 mb-6",children:"Welcome to your upgraded plan! Your account has been updated with your new features and balance."})]}),(0,b.jsxs)("div",{className:"bg-gradient-to-r from-green-500/20 to-blue-500/20 rounded-xl p-6 mb-8 border border-green-500/30",children:[(0,b.jsxs)("div",{className:"flex items-center justify-center mb-4",children:[(0,b.jsx)(d.A,{className:"w-8 h-8 text-yellow-400 mr-3"}),(0,b.jsx)("h2",{className:"text-2xl font-bold text-white",children:"Your New Balance"})]}),(0,b.jsxs)("div",{className:"text-center mb-4",children:[(0,b.jsx)("p",{className:"text-4xl font-bold text-green-400 mb-2",children:D?"Unlimited":(0,u.BD)(S/100)}),(0,b.jsxs)("p",{className:"text-lg text-gray-300",children:[C," Plan"]})]}),!D&&(0,b.jsxs)("div",{className:"flex items-center justify-center text-gray-300",children:[(0,b.jsx)(i.A,{className:"w-5 h-5 mr-2"}),(0,b.jsxs)("span",{className:"text-base",children:["Balance resets on ",(()=>{if("free"===A){const e=new Date;
1return new Date(e.getFullYear(),e.getMonth()+1,1).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}{const e=new Date;return new Date(e.getFullYear(),e.getMonth()+1,e.getDate()).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}})()]})]})]}),(0,b.jsxs)("div",{className:"bg-white/10 rounded-xl p-6 mb-8",children:[(0,b.jsxs)("h2",{className:"text-xl font-semibold text-white mb-4 flex items-center justify-center",children:[(0,b.jsx)(c.A,{className:"w-5 h-5 mr-2 text-yellow-400"}),"What's Next?"]}),(0,b.jsxs)("div",{className:"text-gray-300 space-y-2",children:[(0,b.jsx)("p",{children:"\u2705 Your account has been upgraded"}),(0,b.jsx)("p",{children:"\u2705 Balance has been added to your account"}),(0,b.jsx)("p",{children:"\u2705 Premium features are now available"}),(0,b.jsx)("p",{children:"\u2705 You can start creating unlimited extensions"})]})]}),y&&(0,b.jsxs)("div",{className:"text-xs text-gray-400 mb-6",children:["Session ID: ",y]}),(0,b.jsxs)("button",{onClick:()=>{g("/")},className:"bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-all duration-300 transform hover:scale-105 flex items-center justify-center mx-auto",children:[(0,b.jsx)("span",{children:"Start Creating Extensions"}),(0,b.jsx)(r.A,{className:"w-5 h-5 ml-2"})]})]})})]})]}):(0,b.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-purple-900 via-blue-900 to-indigo-900",children:(0,b.jsxs)("div",{className:"relative z-10 container mx-auto px-4 py-8",children:[(0,b.jsx)(x.A,{onShowLoginModal:s}),(0,b.jsx)("div",{className:"flex items-center justify-center min-h-[60vh]",children:(0,b.jsxs)("div",{className:"bg-white/10 backdrop-blur-lg rounded-2xl p-10 border border-white/20 shadow-2xl text-center max-w-xl",children:[(0,b.jsx)("div",{className:"mx-auto w-20 h-20 bg-green-500 rounded-full flex items-center justify-center mb-6",children:(0,b.jsx)(o.A,{className:"w-10 h-10 text-white"})}),(0,b.jsx)("h1",{className:"text-3xl font-bold text-white mb-4",children:"Payment successful! \ud83c\udf89"}),(0,b.jsx)("p",{className:"text-lg text-gray-300 mb-6",children:"Check your inbox. We've emailed the address you used at checkout a link to access your plan and set your password."}),(0,b.jsx)("p",{className:"text-sm text-gray-400 mb-8",children:'Can\'t find it? Check spam, or use "Forgot password?" on the sign-in screen with your checkout email. If you already had a Kromio account with that email, the plan was added to it.'}),(0,b.jsx)("button",{onClick:s,className:"bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700 text-white px-8 py-3 rounded-lg font-semibold",children:"Sign in"})]})})]})})}}}]); 2//# sourceMappingURL=759.9c995fb6.chunk.js.map
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.