PageSourceSearch

https://enpatiler.com/_nuxt/CyFNRBO4.js

js enpatiler.com collected 2026-10-02 00:49:21 UTC 11,282 bytes, 1 lines download raw bytes

1import{_ as I}from"./uNecWPRX.js";import{e as q,f as $,H as h,j as E,c as o,a as t,B as _,t as r,k,g as j,w as g,F as N,d as c,b as L,l as m,h as P,r as S,s as F,o as a}from"./CsyhkCrC.js";import{u as R}from"./CgFyd5Ic.js";const z={class:"max-w-4xl mx-auto py-8 px-4 sm:px-6 lg:px-8 min-h-screen"},H={key:0,class:"flex flex-col items-center justify-center py-20"},K={key:1,class:"flex flex-col items-center justify-center py-20"},Y={key:2,class:"space-y-6"},G={class:"bg-white rounded-xl shadow-sm border border-cardBorder p-8 text-center flex flex-col items-center relative overflow-hidden"},O={class:"inline-block mt-3 bg-secondary/20 text-textDark px-4 py-1.5 rounded-full font-medium text-sm"},U={class:"mt-6"},J={class:"text-2xl font-bold text-primary tracking-wide"},Q={key:0,class:"bg-primaryLight border border-primary/20 rounded-xl p-6"},W={class:"text-lg font-bold text-textDark mb-2"},X={key:1,class:"bg-white rounded-xl shadow-sm border border-cardBorder p-6"},Z={class:"text-sm text-textLight leading-relaxed bg-gray-50 p-4 rounded-lg"},ee={class:"grid md:grid-cols-2 gap-6"},te={class:"bg-white rounded-xl shadow-sm border border-cardBorder p-6"},se={key:0,class:"space-y-2 text-sm text-textLight"},re={class:"font-bold text-textDark text-base"},ie={key:0},ae={class:"font-medium text-primary mt-2"},ne={class:"bg-white rounded-xl shadow-sm border border-cardBorder p-6"},oe={class:"space-y-4 text-sm"},le={class:"flex justify-between items-center text-textLight"},de={class:"font-medium text-textDark"},ue={class:"flex justify-between items-center text-textLight"},ce={class:"font-medium text-textDark"},me={class:"flex justify-between items-center text-textLight"},pe={key:0,class:"font-medium text-textDark"},xe={key:1,class:"font-medium text-success"},he={key:0,class:"flex justify-between items-center text-textLight"},ge={class:"font-medium text-success"},fe={key:1,class:"flex justify-between items-center text-textLight"},ve={class:"font-medium text-textDark"},ye={class:"flex justify-between items-center text-textDark"},we={class:"font-black text-xl text-primary"},be={class:"flex justify-center mt-8 pb-12"},Le={__name:"success",setup(_e){const f=P(),v=S(!0),s=S(null),p=q(),{purchased:B}=R(),y=F(()=>Number(s.value?.loyalty_earn_preview)||0),D=i=>new Intl.NumberFormat("tr-TR",{style:"currency",currency:"TRY"}).format(i||0);function A(i){if(typeof window>"u")return;const e=i.order_number;if(!e)return;const l=`purchase_tracked_${e}`;try{if(sessionStorage.getItem(l))return;sessionStorage.setItem(l,"1")}catch{}const d=i.totals||{},u=Number(d.final)||0,C=d.currency||"TRY",M=(i.items||[]).map((n,b)=>{const x=n.product||{};return{item_id:String(x.id??(n.variant&&n.variant.sku)??b),item_name:x.name||"Ürün",item_brand:x.brand?x.brand.name:void 0,item_variant:n.variant?n.variant.name:void 0,price:Number(n.unit_price)||0,quantity:Number(n.quantity)||1,index:b}});window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"purchase",ecommerce:{transaction_id:String(e),value:u,currency:C,tax:Number(d.tax)||0,shipping:Number(d.shipping)||0,coupon:i.coupon_code||void 0,items:M}});const w=(i.items||[]).filter(n=>n.product?.id!=null).map(n=>({objectID:n.product.id,price:Number(n.unit_price)||0,quantity:Number(n.quantity)||1}));w.length&&B(w)}function V(i){if(typeof window>"u")return!1;try{return sessionStorage.getItem(`order_summary_viewed_${i}`)==="1"}catch{return!1}}function T(i){if(!(typeof window>"u"))try{sessionStorage.setItem(`order_summary_viewed_${i}`,"1")}catch{}}return $(async()=>{const i=f.query.orderNumber;if(f.query.source==="/3ds/callback"&&typeof window<"u"&&window!==window.top){try{window.parent.postMessage({success:!0,order_number:i||""},"*")}catch{}return}if(!i){await h("/uyelik/siparislerim");return}const l=p.isAuthenticated?"/uyelik/siparislerim":"/";if(V(i)){await h(l);return}setTimeout(async()=>{try{const d=p.isAuthenticated?`/ecommerce/orders/summary?order_number=${i}`:`/ecommerce/guest/orders/summary?order_number=${i}`,u=await E(d);if(u&&u.data?s.value=u.data:u&&u.order_number&&(s.value=u),s.value)T(i),A(s.value);else{await h(l);return}}catch{await h(l);return}finally{v.value=!1}},2e3)}),(i,e)=>{const l=I;return a(),o("div",z,[v.value?(a(),o("div",H,[...e[0]||(e[0]=[t("span",{class:"w-12 h-12 border-4 border-primary/30 border-t-primary rounded-full animate-spin mb
1-4"},null,-1),t("span",{class:"text-textLight text-lg"},"Sipariş bilgileri yükleniyor...",-1)])])):s.value?(a(),o("div",Y,[t("div",G,[e[5]||(e[5]=_('<div class="absolute -top-10 -right-10 w-40 h-40 bg-success/5 rounded-full blur-3xl"></div><div class="w-24 h-24 bg-success/10 rounded-full flex items-center justify-center mb-6"><div class="w-16 h-16 bg-success text-white rounded-full flex items-center justify-center shadow-lg shadow-success/30"><svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="3"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"></path></svg></div></div><h1 class="text-3xl font-bold text-textDark mb-2">Siparişin Alındı!</h1>',3)),t("div",O,r(s.value.status_text),1),t("div",U,[e[2]||(e[2]=t("p",{class:"text-textLight text-sm mb-1"},"Sipariş Numarası",-1)),t("p",J,r(s.value.order_number),1)]),k(p).isAuthenticated?(a(),j(l,{key:1,to:"/uyelik/siparislerim",class:"mt-6 flex items-center gap-2 text-primary hover:text-accent font-semibold transition-colors"},{default:g(()=>[...e[4]||(e[4]=[c(" Siparişlerim Sayfasına Git ",-1),t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),_:1})):(a(),j(l,{key:0,to:`/siparis-takibi?siparis=${s.value.order_number}`,class:"mt-6 flex items-center gap-2 text-primary hover:text-accent font-semibold transition-colors"},{default:g(()=>[...e[3]||(e[3]=[c(" Siparişimi Takip Et ",-1),t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),_:1},8,["to"]))]),k(p).isAuthenticated?m("",!0):(a(),o("div",Q,[t("h2",W,[y.value>0?(a(),o(N,{key:0},[c(r(D(y.value))+" Para Puan seni bekliyor ",1)],64)):(a(),o(N,{key:1},[c("Üyeliğini tamamla")],64))]),e[7]||(e[7]=t("p",{class:"text-textDark mb-4 text-sm"}," Aynı numarayla üye ol, bu sipariş hesabına tanımlansın. ",-1)),L(l,{to:"/auth/giris",class:"inline-block bg-primary text-white px-6 py-2.5 rounded-md font-medium hover:bg-accent transition-colors"},{default:g(()=>[...e[6]||(e[6]=[c(" Telefonumla Üye Ol ",-1)])]),_:1})])),e[20]||(e[20]=_('<div class="grid md:grid-cols-2 gap-4"><div class="bg-white rounded-xl shadow-sm border border-cardBorder p-5 flex items-start gap-4"><div class="w-12 h-12 bg-primary/10 text-primary rounded-full flex items-center justify-center flex-shrink-0"><svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"></path><path d="M5 12h14"></path></svg></div><p class="text-sm text-textLight leading-relaxed mt-1"> Ürünlerin 1-7 iş günü içerisinde kargoya verilecektir. Kargonu siparişlerim altından takip edebilirsin. </p></div><div class="bg-white rounded-xl shadow-sm border border-cardBorder p-5 flex items-start gap-4"><div class="w-12 h-12 bg-primary/10 text-primary rounded-full flex items-center justify-center flex-shrink-0"><svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path></svg></div><p class="text-sm text-textLight leading-relaxed mt-1"> Siparişin ve oluşturmuş olduğun taleplerinle ilgili 850&#39;li numaralı telefondan aranabilirsin. Numara geri aramaya kapalıdır. </p></div></div>',1)),s.value.notes?(a(),o("div",X,[e[8]||(e[8]=t("div",{class:"flex items-center gap-2 mb-3"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})]),t("h3",{class:"font-bold text-textDark"},"Sipariş Notu")],-1)),t("p",Z,r(s.value.notes),1)])):m("",!0),t("div",ee,[t("div",te,[e[9]||(e[9]=t("h3",{class:"font-bold text-textDark mb-4 text-lg"},"Teslimat Adresi",-1)),s.value?.addresses?.shipping?(a(),o("div",se,[t("p",re,r(s.value.addresses.shipping.first_name)+" "+r(s.value.addresses.shipping.last_name),1),t("p",null,r(s.value.addresses.shipping.address_line_1),1),s.value.addresses.shipping.address_line_2?(a(),o("p",ie,r(s.value.addresses.shipping.address_line_2),1)):m("",!0),t("p",null,r(s.value.addresses.shipping.district?s.value.addresses.shipping.district+", ":"")+r(s.value.addresses.shipping.city)+" "+r(s.value.addresses.shipping.postal_code),1),t("p",null,r(s.value.addresses.shipping.country),1),t("p",ae,r(s.value.addresses.shipping.phone),1)])):m("",!0)]),t("div",ne,[e[18]||(e[18]=t("h3",{class:"font-bold text-textDark mb-4 text-lg"},"Sipariş Bilgileri",-1)),t("div",oe,[t("div",le,[e[10]||(e[10]=t("span",null,"Ürün Adedi",-1)),t("span",de,r(s.value.items?.length||0),1)]),e[16]||(e[16]=t("div",{class:"w-full h-px bg-gray-100 my-2"},null,-1)),t("div",ue,[e[11]||(e[11]=t("span",null,"Ara Toplam",-1)),t("span",ce,r(s.value.totals?.items_subtotal)+" "+r(s.value.totals?.currency),1)]),t("div",me,[e[12]||(e[12]=t("span",null,"Kargo Ücreti",-1)),s.value.totals?.shipping>0?(a(),o("span",pe,r(s.value.totals.shipping)+" "+r(s.value.totals?.currency),1)):(a(),o("span",xe,"Ücretsiz"))]),s.value.totals?.discount>0?(a(),o("div",he,[e[13]||(e[13]=t("span",null,"İndirim",-1)),t("span",ge,"-"+r(s.value.totals.discount)+" "+r(s.value.totals?.currency),1)])):m("",!0),s.value.totals?.tax>0?(a(),o("div",fe,[e[14]||(e[14]=t("span",null,"Vergi",-1)),t("span",ve,r(s.value.totals.tax)+" "+r(s.value.totals?.currency),1)])):m("",!0),e[17]||(e[17]=t("div",{class:"w-full h-px bg-gray-100 my-2"},null,-1)),t("div",ye,[e[15]||(e[15]=t("span",{class:"font-bold text-base"},"Genel Toplam",-1)),t("span",we,r(s.value.totals?.final)+" "+r(s.value.totals?.currency),1)])])])]),t("div",be,[L(l,{to:"/",class:"bg-primary hover:bg-accent text-white px-10 py-4 rounded-xl font-bold transition-all shadow-lg shadow-primary/20 hover:-translate-y-1"},{default:g(()=>[...e[19]||(e[19]=[c(" Alışverişe Devam Et ",-1)])]),_:1})])])):(a(),o("div",K,[...e[1]||(e[1]=[t("span",{class:"w-12 h-12 border-4 border-primary/30 border-t-primary rounded-full animate-spin mb
1-4"},null,-1),t("span",{class:"text-textLight text-lg"},"Yönlendiriliyorsun...",-1)])]))])}}};export{Le 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.