PageSourceSearch

https://subtiltee.com/_nuxt/BD3g_K1u.js

js subtiltee.com collected 2026-10-02 00:34:00 UTC 11,456 bytes, 1 lines download raw bytes

1import{b as j,L as V,u as R,an as H,ao as D,f as F,x as l,Y as O,I as U,a3 as q,i as a,j as e,t as o,k as v,w as P,m as f,F as c,l as i,O as Y,N as J,n as K,o as n,aa as G,s as Q}from"./Ccw9mUhn.js";import{_ as W}from"./KGwDaeqH.js";import{u as X}from"./DAFaHp-e.js";import"./DuGk2X12.js";import"./D6KhxRPP.js";import"./B623BiJ6.js";import"./D_rq7M5t.js";import"./DsnWl7_Z.js";const Z={class:"min-h-screen bg-gray-50 flex flex-col justify-center py-12 sm:px-6 lg:px-8"},ee={key:0,class:"sm:mx-auto sm:w-full sm:max-w-md"},se={class:"bg-white py-8 px-4 shadow-xl shadow-gray-200/30 sm:rounded-xl sm:px-10"},te={class:"flex flex-col items-center"},oe={class:"mt-4 text-lg font-medium text-gray-900"},ae={key:1,class:"sm:mx-auto sm:w-full sm:max-w-2xl"},ne={class:"text-center mb-8"},ie={class:"bg-white py-8 px-4 shadow-xl shadow-gray-200/30 sm:rounded-xl sm:px-10"},le={class:"text-center"},ce={class:"mt-6 text-center text-3xl font-bold tracking-tight text-gray-900"},re={key:0,class:"mt-8 bg-green-50 border border-green-200 rounded-lg p-6"},ue={class:"flex items-center"},de={class:"ml-3"},me={class:"text-lg font-medium text-green-800"},ge={class:"mt-1 text-sm text-green-700"},he={key:1,class:"mt-8 space-y-6"},ve={class:"bg-green-50 border border-green-200 rounded-lg p-6"},pe={class:"flex items-center"},fe={class:"ml-3"},xe={class:"text-lg font-medium text-green-800"},be={class:"mt-1 text-sm text-green-700"},ye={class:"text-center"},_e={key:2,class:"mt-8 space-y-6"},ke={class:"bg-yellow-50 border border-yellow-200 rounded-lg p-6"},we={class:"flex items-center"},Pe={class:"ml-3"},$e={class:"text-lg font-medium text-yellow-800"},Ce={class:"mt-1 text-sm text-yellow-700"},Ae={class:"space-y-4"},Ee={class:"text-lg font-medium text-gray-900"},Ie={class:"space-y-3"},Se={class:"flex items-start space-x-3"},Ne={class:"text-sm font-medium text-gray-900"},Te={class:"text-sm text-gray-600"},Le={class:"flex items-start space-x-3"},Me={class:"text-sm font-medium text-gray-900"},ze={class:"text-sm text-gray-600"},Be={class:"flex items-start space-x-3"},je={class:"text-sm font-medium text-gray-900"},Ve={class:"text-sm text-gray-600"},Re={class:"text-center pt-4 border-t border-gray-200"},He={class:"text-sm text-gray-500 mb-3"},De=["disabled"],Fe={key:0,class:"animate-spin -ml-1 mr-3 h-4 w-4 text-gray-600",fill:"none",viewBox:"0 0 24 24"},Oe={class:"mt-8 pt-6 border-t border-gray-200"},Ue={class:"text-center"},qe={class:"text-sm text-gray-500 mb-3"},Ye={class:"space-x-4"},Je={href:"mailto:[email protected]",class:"text-sm text-green-600 hover:text-green-500 font-medium"},Ke=j({__name:"success",setup(Ge){const{t:$}=V(),x=R(),{$posthog:b}=H(),{authPath:L}=D();
1F({title:$("subtiltee.checkoutPages.success.metaTitle"),meta:[{name:"description",content:$("subtiltee.checkoutPages.success.metaDescription")},{name:"robots",content:"noindex"}]});const y=l(!0),C=l(!1),A=l(!1),m=l(!1),d=l(""),E=l(""),g=l(!1),r=l(0),h=l(!1),_=l(void 0),I=O();U(async()=>{y.value=!0;try{const t=q();if(await t.loadUserContext(),t.isAuthenticated){C.value=!0,I.query.source==="extension"&&(console.log("🔄 Opening ghost tab to forward subscription to extension..."),window.open("/session-refresh?mode=subscribe&app=ext_a","_blank"));const w=X();setTimeout(()=>{w("/dashboard")},3e3);return}const s=I.query.session_id;if(!s)throw new Error("No session ID provided");E.value=s;const u=await(await fetch(`/api/checkout/session-info?session_id=${s}`)).json();if(u.success&&u.data){const{email:k,displayCase:w,isNew:S,isEarlyAdopter:N,accessMonths:z,planName:B}=u.data;d.value=k,m.value=S,h.value=N||!1,_.value=z;const T=`ph_sub_fired_${s}`;if(!sessionStorage.getItem(T))try{b==null||b.capture("subscription_created",{app:"subtiltee",plan:N?"early_adopter":B||"monthly",is_new_user:S,email:k}),sessionStorage.setItem(T,"1")}catch{}switch(w){case"existing_verified":A.value=!0;break;case"new_user":case"needs_verification":break}}else console.warn("Could not determine user case, showing basic success message")}catch(t){console.error("Error checking checkout status:",t)}finally{y.value=!1}});const M=async()=>{if(r.value>0||g.value)return;g.value=!0,r.value=60;const t=J(()=>{r.value--,r.value<=0&&clearInterval(t)},1e3);try{const s=await fetch("/api/auth/resend-verification",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d.value,appId:"ext_a",sessionId:E.value||void 0})}),p=await s.json();s.ok?console.log("Email de vérification renvoyé"):console.error("Failed to resend email:",p.statusMessage||"Unknown error")}catch(s){console.error("Error resending email:",s)}finally{g.value=!1}};return(t,s)=>{const p=G,u=K;return n(),a("div",Z,[y.value?(n(),a("div",ee,[e("div",se,[e("div",te,[s[0]||(s[0]=e("div",{class:"animate-spin rounded-full h-12 w-12 border-b-2 border-green-600"},null,-1)),e("p",oe,o(t.$t("subtiltee.checkoutPages.success.processingPayment")),1)])])])):(n(),a("div",ae,[e("div",ne,[v(u,{to:f(x)("/"),class:"inline-block"},{default:P(()=>[v(p,{class:"h-12 w-auto",src:"/SubtilteeLogo.svg",alt:"Subtiltee",width:"48",height:"48",loading:"eager"})]),_:1},8,["to"])]),e("div",ie,[e("div",le,[s[1]||(s[1]=e("div",{class:"mx-auto flex items-center justify-center h-16 w-16 rounded-full bg-green-100"},[e("svg",{class:"h-8 w-8 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"})])],-1)),e("h2",ce,o(t.$t("subtiltee.checkoutPages.success.paymentConfirmed")),1),s[2]||(s[2]=e("p",{class:"mt-2 text-center text-lg text-gray-600"},null,-1))]),C.value?(n(),a("div",re,[e("div",ue,[s[3]||(s[3]=e("div",{class:"flex-shrink-0"},[e("svg",{class:"h-6 w-6 text-green-400",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])],-1)),e("div",de,[e("h3",me,o(t.$t("subtiltee.checkoutPages.success.accountReady")),1),e("p",ge,o(t.$t("subtiltee.checkoutPages.success.redirectingToDashboard")),1)])])])):A.value?(n(),a("div",he,[e("div",ve,[e("div",pe,[s[6]||(s[6]=e("div",{class:"flex-shrink-0"},[e("svg",{class:"h-6 w-6 text-green-400",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])],-1)),e("div",fe,[e("h3",xe,[h.value?(n(),a(c,{key:0},[i(" 🎉 Early Adopter Status Unlocked! ")],64)):(n(),a(c,{key:1},[i(o(m.value?t.$t("subtiltee.checkoutPages.success.premiumAccountReady"):t.$t("subtiltee.checkoutPages.success.subscriptionAdded")),1)],64))]),e("p",be,[h.value?(n(),a(c,{key:0},[s[4]||(s[4]=i(" You now have ")),e("strong",null,o(_.value)+" months",1),s[5]||(s[5]=i(" of full premium access as a founding member. Check your email to access your account. "))],64)):(n(),a(c,{key:1},[i(o(m.value?t.$t("subtiltee.checkoutPages.success.premiumAccountCreated",{email:d.value||"your email"}):t.$t("subtiltee.checkoutPages.success.subscriptionAddedToAccount",{email:d.value||"your account"})),1)],64))])])])]),e("div",ye,[v(u,{to:f(x)(f(L)),class:"inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-green-700 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 transition-colors duration-200"},{default:P(()=>[s[7]||(s[7]=e("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"})],-1)),i(" "+o(t.$t("subtiltee.checkoutPages.success.signInToAccount")),1)]),_:1,__:[7]},8,["to"])])])):(n(),a("div",_e,[e("div",ke,[e("div",we,[s[10]||(s[10]=e("div",{class:"flex-shrink-0"},[e("svg",{class:"h-6 w-6 text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])],-1)),e("div",Pe,[e("h3",$e,[h.value?(n(),a(c,{key:0},[i(" 🎉 Early Adopter Account Created! ")],64)):(n(),a(c,{key:1},[i(o(m.value?t.$t("subtiltee.checkoutPages.success.accountCreatedSuccess"):t.$t("subtiltee.checkoutPages.success.verificationRequired")),1)],64))]),e("p",Ce,[h.value?(n(),a(c,{key:0},[s[8]||(s[8]=i(" You now have ")),e("strong",null,o(_.value)+" months",1),s[9]||(s[9]=i(" of full premium access. Check your email to verify your account. "))],64)):(n(),a(c,{key:1},[i(o(m.value?t.$t("subtiltee.checkoutPages.success.welcomeEmailSent",{email:d.value||"your email"}):t.$t("subtiltee.checkoutPages.success.verificationEmailSent",{email:d.value||"your email"})),1)],64))])])])]),e("div",Ae,[e("h3",Ee,o(t.$t("subtiltee.checkoutPages.success.nextSteps")),1
1),e("div",Ie,[e("div",Se,[s[11]||(s[11]=e("div",{class:"flex-shrink-0 mt-1"},[e("div",{class:"w-2 h-2 bg-green-400 rounded-full"})],-1)),e("div",null,[e("p",Ne,o(t.$t("subtiltee.checkoutPages.success.checkInbox")),1),e("p",Te,o(t.$t("subtiltee.checkoutPages.success.lookForEmail")),1)])]),e("div",Le,[s[12]||(s[12]=e("div",{class:"flex-shrink-0 mt-1"},[e("div",{class:"w-2 h-2 bg-gray-300 rounded-full"})],-1)),e("div",null,[e("p",Me,o(t.$t("subtiltee.checkoutPages.success.clickActivationLink")),1),e("p",ze,o(t.$t("subtiltee.checkoutPages.success.activateAccount")),1)])]),e("div",Be,[s[13]||(s[13]=e("div",{class:"flex-shrink-0 mt-1"},[e("div",{class:"w-2 h-2 bg-gray-300 rounded-full"})],-1)),e("div",null,[e("p",je,o(t.$t("subtiltee.checkoutPages.success.installChromeExtension")),1),e("p",Ve,o(t.$t("subtiltee.checkoutPages.success.downloadExtensionAfterLogin")),1),v(W,{"extension-key":"subtiltee"})])])])]),e("div",Re,[e("p",He,o(t.$t("subtiltee.checkoutPages.success.didntReceiveEmail")),1),e("button",{onClick:M,disabled:g.value||r.value>0,class:"cursor-pointer inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 disabled:opacity-50 disabled:cursor-not-allowed transition-colors duration-200"},[g.value?(n(),a("svg",Fe,s[14]||(s[14]=[e("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4",class:"opacity-25"},null,-1),e("path",{fill:"currentColor",d:"m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",class:"opacity-75"},null,-1)]))):Y("",!0),i(" "+o(r.value>0?t.$t("subtiltee.checkoutPages.success.resendInSeconds",{count:r.value}):t.$t("subtiltee.checkoutPages.success.resendEmail")),1)],8,De)])])),e("div",Oe,[e("div",Ue,[e("p",qe,o(t.$t("subtiltee.checkoutPages.success.needHelp")),1),e("div",Ye,[v(u,{to:f(x)("/"),class:"text-sm text-green-600 hover:text-green-500 font-medium"},{default:P(()=>[i(o(t.$t("subtiltee.checkoutPages.success.backToHome")),1)]),_:1},8,["to"]),s[15]||(s[15]=e("span",{class:"text-gray-300"},"•",-1)),e("a",Je,o(t.$t("subtiltee.checkoutPages.success.contactSupport")),1)])])])])]))])}}}),ns=Q(Ke,[["__scopeId","data-v-56a2a861"]]);export{ns 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.