PageSourceSearch

https://backlinkajans.com/_nuxt/BfHzFHIj.js

js backlinkajans.com collected 2026-10-07 03:54:16 UTC 3,280 bytes, 1 lines download raw bytes

1import{d as y,u as h,x as k,p as w,c as a,a as t,h as s,F as g,i as S,g as u,t as v,j as B,b as m,e as c,l as n,o as i,f as N}from"./CeiIIN3h.js";import{_ as j}from"./6PyalRL4.js";import"./Brda5cYg.js";import"./BRLrPitK.js";const I={class:"p-6 flex items-center justify-center min-h-[60vh]"},C={class:"bg-white rounded-2xl border border-border/40 p-8 max-w-md w-full text-center"},D={key:0,class:"py-8"},T={class:"text-sm text-muted-foreground mb-6"},V={class:"text-foreground"},z={class:"text-emerald-600"},L={class:"text-sm text-muted-foreground mb-6"},F=y({__name:"basarili",setup(M){h({title:"Ödeme Başarılı - Backlink Ajans"});const b=k(),f=n(!0),l=n(!1),_=n(0),p=n(""),d=n("");return w(async()=>{const x=b.query.session_id;if(!x){d.value="Geçersiz oturum bilgisi.",f.value=!1;return}try{const e=await $fetch("/api/stripe/verify-session",{params:{session_id:x}});if(_.value=e.orderId,p.value=e.totalPrice,l.value=e.paymentStatus==="paid",l.value)try{const r=window.gtag,o="ga_satis_"+e.orderId;r&&!sessionStorage.getItem(o)&&(sessionStorage.setItem(o,"1"),r("event","purchase",{transaction_id:"BA-"+e.orderId,value:Number(e.totalPrice||0),currency:e.currency==="USD"?"USD":"TRY"}))}catch{}l.value||(d.value="Ödeme henüz tamamlanmadı. Lütfen tekrar deneyin.")}catch(e){d.value=e?.data?.statusMessage||"Ödeme doğrulanamadı."}finally{f.value=!1}}),(x,e)=>{const r=N,o=j;return i(),a("div",I,[t("div",C,[s(f)?(i(),a("div",D,[...e[0]||(e[0]=[t("div",{class:"w-10 h-10 border-3 border-primary/30 border-t-primary rounded-full animate-spin mx-auto mb-4"},null,-1),t("p",{class:"text-sm text-muted-foreground"},"Ödeme doğrulanıyor...",-1)])])):s(l)?(i(),a(g,{key:1},[e[4]||(e[4]=S('<div class="w-16 h-16 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-5"><svg class="w-8 h-8 text-emerald-600" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5"></path></svg></div><h1 class="text-xl font-bold text-foreground mb-2">Ödeme Başarılı!</h1><p class="text-sm text-muted-foreground mb-2"> Siparişiniz başarıyla oluşturuldu. </p>',3)),t("p",T,[e[2]||(e[2]=u(" Sipariş No: ",-1)),t("strong",V,"#"+v(s(_)),1),s(p)?(i(),a(g,{key:0},[e[1]||(e[1]=u(" • Toplam: ",-1)),t("strong",z,v(Number(s(p)).toLocaleString("tr-TR"))+" TL",1)],64)):B("",!0)]),m(o,{"as-child":"",class:"rounded-xl w-full"},{default:c(()=>[m(r,{to:"/panel/siparislerim"},{default:c(()=>[...e[3]||(e[3]=[u("Siparişlerimi Gör",-1)])]),_:1})]),_:1})],64)):(i(),a(g,{key:2},[e[6]||(e[6]=t("div",{class:"w-16 h-16 bg-orange-100 rounded-full flex items-center justify-center mx-auto mb-5"},[t("svg",{class:"w-8 h-8 text-orange-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])],-1)),e[7]||(e[7]=t("h1",{class:"text-xl font-bold text-foreground mb-2"},"Doğrulama Başarısız",-1)),t("p",L,v(s(d)),1),m(o,{"as-child":"",class:"rounded-xl w-full"},{default:c(()=>[m(r,{to:"/panel/siparislerim"},{default:c(()=>[...e[5]||(e[5]=[u("Siparişlerime Dön",-1)])]),_:1})]),_:1})],64))])])}}});export{F 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.