1import{_ as B,p as C,g as I,y as h,m as z}from"./C2pXk5GC.js";import{x as a,e as l,g as t,j as p,a4 as N,A as u,C as m,F as g,E as r,t as d,D as A,a as L,f as o}from"./8EhAlHkq.js";const M={class:"min-h-screen bg-gradient-to-br from-emerald-50 via-white to-sky-50",style:{"font-family":"Futura, sans-serif"}},O={class:"max-w-4xl mx-auto px-6 py-16"},T={class:"flex items-center justify-between mb-6"},V={key:0,class:"px-3 py-1 text-xs font-semibold rounded-full bg-amber-100 text-amber-700"},R={key:0,class:"bg-white rounded-2xl shadow-lg border border-slate-200 p-8"},F={class:"mt-6 flex flex-wrap gap-3"},q={key:0,class:"bg-white rounded-2xl shadow-lg border border-emerald-100 p-8"},E={class:"flex items-center gap-4"},G={class:"text-sm text-slate-500"},H={class:"font-semibold"},U={class:"mt-6 flex flex-wrap gap-3"},K=["href"],P={key:1,class:"bg-white rounded-2xl shadow-lg border border-amber-100 p-8"},Q={class:"flex items-center gap-4"},W={class:"text-sm text-slate-500"},$={class:"mt-6 flex flex-wrap gap-3"},J={key:2,class:"mt-4 rounded-xl border border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-700"},X={class:"mt-6 grid grid-cols-1 md:grid-cols-2 gap-4"},Y={class:"bg-white rounded-xl shadow-sm border border-slate-200 p-5"},Z={class:"space-y-2 text-sm text-slate-600"},ee={class:"text-slate-500"},te={class:"font-medium text-slate-800 text-right"},se={class:"bg-white rounded-xl shadow-sm border border-slate-200 p-5"},ae={class:"space-y-2 text-sm text-slate-600"},le={class:"flex items-start justify-between gap-4"},oe={class:"font-medium text-slate-800"},re={class:"flex items-start justify-between gap-4"},de={class:"font-medium text-slate-800"},ne={key:0,class:"flex items-start justify-between gap-4"},ie={class:"font-medium text-slate-800"},xe={__name:"success",setup(ue){const v=L(),s=a(()=>C(v.query||{})),y=a(()=>{const n=s.value.success===!0,e=s.value.paymentApproved!==!1;return n&&e}),w=a(()=>s.value.environment==="test"),k=a(()=>s.value.hashVerified===!1),_=a(()=>I(s.value)),D=a(()=>h(s.value.threeDSecure)||"Bilinmiyor"),j=a(()=>h(s.value.hashVerified)||"Bilinmiyor"),b=a(()=>z(s.value.mdStatus)),c=a(()=>{var n;return String(((n=v.query)==null?void 0:n.receiptToken)||"")}),f=a(()=>c.value?`/api/payment/receipt/pdf?token=${encodeURIComponent(c.value)}`:""),S=a(()=>[{label:"Ãdeme No",value:s.value.orderId},{label:"Rezervasyon No",value:s.value.reservationId},{label:"Islem Sonucu",value:s.value.response},{label:"Banka Islem Kodu",value:s.value.authCode=="Approved"?"Onaylandi":s.value.authCode=="Declined"?"Reddedildi":s.value.authCode||"Bilinmiyor"}].filter(e=>e.value));return(n,e)=>{const i=B;return o(),l("div",M,[t("div",O,[t("div",T,[e[0]||(e[0]=t("div",null,[t("h1",{class:"text-2xl font-bold text-slate-800"},"Odeme Sonucu"),t("p",{class:"text-sm text-slate-500"},"Islem bilgilerinizi asagida bulabilirsiniz.")],-1)),w.value?(o(),l("span",V,"Bu bir test islemidir")):p("",!0)]),s.value.orderId?(o(),l(g,{key:1},[y.value?(o(),l("div",q,[t("div",E,[e[6]||(e[6]=t("div",{class:"h-12 w-12 rounded-full bg-emerald-100 text-emerald-700 flex items-center justify-center"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[t("path",{d:"M20 6L9 17l-5-5","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),t("div",null,[e[5]||(e[5]=t("h2",{class:"text-2xl font-bold text-emerald-700"},"Odeminiz basariyla alindi",-1)),t("p",G,[e[4]||(e[4]=r("Ãdeme iÅlem numaranız: ")),t("span",H,d(s.value.orderId),1)])])]),e[9]||(e[9]=t("p",{class:"mt-5 text-sm text-slate-600"},"Odeme onayi alindi. TeÅekkürler.",-1)),t("div",U,[u(i,{to:"/",class:"px-4 py-2 rounded-md bg-emerald-600 text-white hover:bg-emerald-700"},{default:m(()=>
1e[7]||(e[7]=[r("Anasayfaya Don")])),_:1}),u(i,{to:"/user",class:"px-4 py-2 rounded-md bg-white border border-slate-200 text-slate-700 hover:bg-slate-50"},{default:m(()=>e[8]||(e[8]=[r("Hesabim")])),_:1}),f.value?(o(),l("a",{key:0,href:f.value,download:"",class:"px-4 py-2 rounded-md bg-slate-900 text-white hover:bg-slate-800"}," Makbuz İndir ",8,K)):p("",!0)])])):(o(),l("div",P,[t("div",Q,[e[11]||(e[11]=t("div",{class:"h-12 w-12 rounded-full bg-amber-100 text-amber-700 flex items-center justify-center"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[t("path",{d:"M12 9v4m0 4h.01","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),t("path",{d:"M10.29 3.86l-7.4 12.8A2 2 0 004.6 20h14.8a2 2 0 001.71-3.34l-7.4-12.8a2 2 0 00-3.42 0z","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),t("div",null,[e[10]||(e[10]=t("h2",{class:"text-2xl font-bold text-amber-700"},"Odeme tamamlanamadi",-1)),t("p",W,d(_.value),1)])]),t("div",$,[u(i,{to:"/user/payment",class:"px-4 py-2 rounded-md bg-amber-600 text-white hover:bg-amber-700"},{default:m(()=>e[12]||(e[12]=[r("Tekrar Dene")])),_:1}),u(i,{to:"/",class:"px-4 py-2 rounded-md bg-white border border-slate-200 text-slate-700 hover:bg-slate-50"},{default:m(()=>e[13]||(e[13]=[r("Anasayfaya Don")])),_:1})])])),k.value?(o(),l("div",J," Guvenlik dogrulamasi basarisiz gorunuyor. Lutfen destek ekibiyle iletisime gecin. ")):p("",!0),t("div",X,[t("div",Y,[e[14]||(e[14]=t("h3",{class:"text-sm font-semibold text-slate-700 mb-3"},"Islem Detaylari",-1)),t("div",Z,[(o(!0),l(g,null,A(S.value,x=>(o(),l("div",{key:x.label,class:"flex items-start justify-between gap-4"},[t("span",ee,d(x.label),1),t("span",te,d(x.value),1)]))),128))])]),t("div",se,[e[18]||(e[18]=t("h3",{class:"text-sm font-semibold text-slate-700 mb-3"},"Guvenlik ve 3D",-1)),t("div",ae,[t("div",le,[e[15]||(e[15]=t("span",{class:"text-slate-500"},"3D Secure",-1)),t("span",oe,d(D.value),1)]),t("div",re,[e[16]||(e[16]=t("span",{class:"text-slate-500"},"Hash Dogrulama",-1)),t("span",de,d(j.value),1)]),b.value?(o(),l("div",ne,[e[17]||(e[17]=t("span",{class:"text-slate-500"},"MD Status",-1)),t("span",ie,d(b.value),1)])):p("",!0)])])])],64)):(o(),l("div",R,[e[3]||(e[3]=N('<div class="flex items-center gap-3"><div class="h-11 w-11 rounded-full bg-slate-100 text-slate-600 flex items-center justify-center"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path d="M12 9v4m0 4h.01" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10.29 3.86l-7.4 12.8A2 2 0 004.6 20h14.8a2 2 0 001.71-3.34l-7.4-12.8a2 2 0 00-3.42 0z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg></div><div><h2 class="text-lg font-semibold text-slate-800">Odeme sonucu bulunamadi</h2><p class="text-sm text-slate-500">Siparis numarasi alinmadi. Lutfen odeme sayfasina donun.</p></div></div>',1)),t("div",F,[u(i,{to:"/user/payment",class:"px-4 py-2 rounded-md bg-slate-900 text-white hover:bg-slate-800"},{default:m(()=>e[1]||(e[1]=[r("Odeme Sayfasina Don")])),_:1}),u(i,{to:"/",class:"px-4 py-2 rounded-md bg-white border border-slate-200 text-slate-700 hover:bg-slate-50"},{default:m(()=>e[2]||(e[2]=[r("Anasayfaya Don")])),_:1})])]))])])}}};export{xe 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.