PageSourceSearch

https://codir.pro/assets/ThankYou-CrQe-igK.js

js codir.pro collected 2026-10-02 02:06:26 UTC 3,810 bytes, 6 lines download raw bytes

1import{c as u,r,j as e,m as d,L as p,v as f,D as g,b}from"./index-B0sM48fE.js";import{C as y}from"./circle-check-CxxoOG2b.js";/**
2 * @license lucide-react v0.475.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const w=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],j=u("ArrowRight",w),v={beacons:{name:"Beacons",url:"https://chromewebstore.google.com/detail/codir-bc/dhbageoimfkhbfihgpcfefacahhokgje"},paypal:{name:"PayPal",url:"https://chromewebstore.google.com/detail/codir-pp/lpdngnnibooaddgganflbhjjoedbkfdc"}};function I(){const[m,a]=r.useState("confirming"),[o,h]=r.useState(null);r.useEffect(()=>{async function x(){var i,c,l;const s=new URLSearchParams(window.location.search).get("session_id");if(!s){a("success");return}try{const t=await b.functions.invoke("confirmStripeCheckout",{sessionId:s});(i=t.data)!=null&&i.serviceKey&&h(t.data.serviceKey),!sessionStorage.getItem(`gads_conv_${s}`)&&typeof window.gtag=="function"&&(window.gtag("event","conversion",{send_to:"AW-11265606347/HFmwCObonsQcEMuk7vsp",value:((c=t.data)==null?void 0:c.amount)||0,currency:((l=t.data)==null?void 0:l.currency)||"EUR",transaction_id:s}),sessionStorage.setItem(`gads_conv_${s}`,"1")),a("success")}catch(t){console.error("confirmStripeCheckout error",t),a("success")}}x()},[]);const n=o?v[o]:null;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-cover bg-center bg-no-repeat pointer-events-none",style:{backgroundImage:"linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/af47b5357_f20-00-00-00.jpg')",zIndex:0}}),e.jsx("div",{className:"relative min-h-screen flex items-center justify-center px-4",style:{zIndex:1},children:e.jsx(d.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.6,ease:[.22,1,.36,1]},className:"w-full max-w-lg rounded-3xl border border-white/10 bg-white/5 backdrop-blur-xl p-8 sm:p-10 text-center",children:m==="confirming"?e.jsxs(e.Fragment,{children:[e.jsx(p,{className:"h-10 w-10 text-primary animate-spin mx-auto mb-4"}),e.jsx("h1",{className:"font-space font-bold text-white text-2xl mb-2",children:"Confirming your payment…"}),e.jsx("p",{className:"text-white/70",children:"It only takes a few seconds."})]}):e.jsxs(e.Fragment,{children:[e.jsx(d.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200,damping:15},className:"h-20 w-20 rounded-full bg-green-500/20 border border-green-500/40 flex items-center justify-center mx-auto mb-6",children:e.jsx(y,{className:"h-10 w-10 text-green-400"})}),e.jsx("h1",{className:"font-space font-black text-white text-3xl sm:text-4xl mb-3",children:"Thank you! 🎉"}),e.jsx("p",{className:"text-white/80 text-lg mb-8",children:"Your subscription is now active. Welcome to CODIR."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs(f,{to:"/app/subscription",className:"w-full flex items-center justify-center gap-2 py-3.5 bg-primary hover:bg-primary/90 text-primary-foreground font-bold rounded-xl text-base transition-all shadow-xl shadow-primary/30 hover:scale-[1.02]",children:["Go to my dashboard",e.jsx(j,{className:"h-4 w-4"})]}),n&&e.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",className:"w-full flex items-center justify-center gap-2 py-3 bg-white/5 hover:bg-white/10 border border-white/10 text-white font-semibold rounded-xl transition-all",children:[e.jsx(g,{className:"h-4 w-4"}),"Download the ",n.name," extension"]})]}),e.jsx("p",{className:"text-white/50 text-xs mt-8",children:"A confirmation email has been sent. You can manage your subscription anytime from your dashboard."})]})})})]})}export{I 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.