PageSourceSearch

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

js enpatiler.com collected 2026-09-24 14:13:23 UTC 11,195 bytes, 1 lines download raw bytes

1import{_ as S}from"./D34e-F7J.js";import{a as C,b as L,c as M,d as B}from"./DEDF2X20.js";import{_ as z}from"./CcTgWRDx.js";import{a5 as D,b as F,p as c,z as m,o as i,c as e,j as x,a as o,d as l,t as r,n as A,f as d,F as K,g as N}from"./j9eeThX6.js";import"./BcJ5BBtZ.js";const $={class:"mb-6"},V={key:0,class:"space-y-6 animate-pulse"},E={key:1,class:"text-center py-20 bg-red-50 rounded-2xl border-2 border-dashed border-red-200"},G={class:"text-red-500 text-sm mb-6"},H={key:2,class:"space-y-6"},I={class:"bg-white border border-gray-100 rounded-xl shadow-sm overflow-hidden"},O={class:"p-6 border-b border-gray-50 flex flex-wrap items-center justify-between gap-4"},P={class:"text-sm font-bold text-gray-900 mb-1"},R={class:"text-xs text-gray-400"},q={class:"grid grid-cols-1 md:grid-cols-3 divide-y md:divide-y-0 md:divide-x divide-gray-100"},Y={class:"p-6"},J={key:0,class:"text-xs leading-relaxed text-gray-500"},Q={class:"p-6"},U={key:0,class:"text-xs leading-relaxed text-gray-500"},W={class:"p-6"},X={key:0,class:"flex flex-col h-full"},Z={class:"text-sm font-bold text-gray-900 mb-2 flex items-center justify-between"},ee=["href"],te={class:"text-sm font-medium mr-1"},se={key:1,class:"text-gray-900 text-sm font-medium"},re={class:"mt-auto pt-4 flex items-center gap-3"},ae=["src","alt"],ie={class:"text-sm font-bold text-gray-900"},le={key:1,class:"flex items-center justify-center h-full text-gray-400 text-xs italic"},oe={class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},ne={class:"lg:col-span-2 space-y-6"},de={class:"bg-white border border-gray-100 rounded-xl shadow-sm p-6"},ue={class:"space-y-6"},ce={class:"w-16 text-center text-sm font-medium text-gray-600 self-center"},ge={class:"flex-1 flex gap-4 pr-4 pl-4 border-l border-gray-50"},me={class:"w-20 h-20 bg-gray-50 rounded-lg flex-shrink-0 overflow-hidden border border-gray-100"},xe=["src","alt"],pe={key:1,class:"w-full h-full flex items-center justify-center text-gray-300"},be={class:"flex-1"},ve={class:"text-sm font-bold text-gray-900 mb-1 leading-tight"},_e={key:0,class:"text-xs text-gray-500 mb-2"},fe={class:"text-base font-black text-gray-900"},ye={key:0,class:"mt-6 pt-6 border-t border-gray-50"},he={class:"space-y-6"},ke={class:"bg-white border border-gray-100 rounded-xl shadow-sm p-6"},we={class:"flex items-center justify-between mb-6"},je={class:"text-xs text-gray-400 font-medium"},Te={class:"space-y-3 mb-6"},Se={class:"flex justify-between items-center"},Ce={class:"text-sm font-bold text-gray-900"},Le={class:"flex justify-between items-center"},Me={class:"text-sm font-bold text-gray-900"},Be={class:"pt-4 border-t border-gray-50 flex items-center justify-between"},ze={class:"text-lg font-black text-gray-900"},De={class:"bg-white border border-gray-100 rounded-xl shadow-sm p-6"},Fe={class:"text-sm font-medium text-gray-600"},Ge={__name:"[id]",setup(Ae){const f=L(),y=M(),p=C(),b=m(!0),s=m(null),u=m(null),v=f.params.id,h=async()=>{if(!(!p.token||!v))try{const a=await B(`/ecommerce/orders/${v}`);
1a?.success&&a?.data?s.value=a.data:u.value=a?.message||"Sipariş detayları alınamadı."}catch(a){console.error("Fetch order detail error:",a),u.value="Sipariş yüklenirken bir sorun oluştu."}finally{b.value=!1}},_=a=>{if(!a)return null;const t=a.toLowerCase();return t.includes("hepsijet")?"https://static.hepsijet.com/img/footer/hepsijet-logo.png":t.includes("yurtici")?"https://www.yurticikargo.com/Content/Images/logo.png":t.includes("aras")?"https://www.araskargo.com.tr/ArasKargo/Media/Logos/ArasKargoLogo.svg":null},k=a=>{if(!a)return"-";const t=new Date(a);return`${t.getDate().toString().padStart(2,"0")}.${(t.getMonth()+1).toString().padStart(2,"0")}.${t.getFullYear()}`},w=a=>{switch(a){case"confirmed":return{text:"text-green-600",bg:"bg-green-100"};case"pending":return{text:"text-orange-600",bg:"bg-orange-100"};case"shipped":return{text:"text-blue-600",bg:"bg-blue-100"};case"delivered":return{text:"text-[#4CAF50]",bg:"bg-green-50"};case"cancelled":return{text:"text-red-600",bg:"bg-red-100"};default:return{text:"text-gray-600",bg:"bg-gray-100"}}},j=a=>{switch(a){case"credit_card":return"Kredi Kartı ile Ödeme";case"bank_transfer":return"Banka Havalesi / EFT";case"cash_on_delivery":return"Kapıda Ödeme";case"garanti_pay":return"GarantiPay ile Ödeme";default:return a||"Belirtilmedi"}};return D(()=>
1{if(!p.isAuthenticated){y.push("/auth/giris");return}h()}),(a,t)=>{const g=S;return i(),F(z,null,{default:c(()=>[e("div",$,[x(g,{to:"/uyelik/siparislerim",class:"inline-flex items-center text-sm text-gray-500 hover:text-primary transition-colors font-medium mb-4 group"},{default:c(()=>[...t[0]||(t[0]=[e("svg",{class:"w-4 h-4 mr-1 group-hover:-translate-x-1 transition-transform",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})],-1),o(" Siparişlerime Dön ",-1)])]),_:1})]),b.value?(i(),l("div",V,[...t[1]||(t[1]=[e("div",{class:"h-40 bg-gray-50 rounded-2xl border border-gray-100"},null,-1),e("div",{class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},[e("div",{class:"lg:col-span-2 space-y-6"},[e("div",{class:"h-96 bg-gray-50 rounded-2xl border border-gray-100"})]),e("div",{class:"space-y-6"},[e("div",{class:"h-48 bg-gray-50 rounded-2xl border border-gray-100"}),e("div",{class:"h-48 bg-gray-50 rounded-2xl border border-gray-100"})])],-1)])])):u.value?(i(),l("div",E,[t[3]||(t[3]=e("div",{class:"w-16 h-16 bg-white text-red-500 rounded-full flex items-center justify-center mx-auto mb-4 shadow-sm"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-8 w-8",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),t[4]||(t[4]=e("h3",{class:"text-lg font-bold text-red-700 mb-1"},"Sipariş bulunamadı",-1)),e("p",G,r(u.value),1),x(g,{to:"/uyelik/siparislerim",class:"inline-block bg-white text-red-600 px-6 py-2 rounded-lg font-bold border border-red-200 hover:bg-red-50 transition-all shadow-sm"},{default:c(()=>[...t[2]||(t[2]=[o("Geri Dön",-1)])]),_:1})])):s.value?(i(),l("div",H,[e("div",I,[e("div",O,[e("div",null,[e("div",P,"Sipariş No: "+r(s.value.order_number),1),e("div",R,r(k(s.value.created_at)),1)]),e("div",{class:A(["text-sm font-bold",w(s.value.status).text])},r(s.value.status_text||s.value.status),3)]),e("div",q,[e("div",Y,[t[7]||(t[7]=e("h4",{class:"text-sm font-bold text-gray-900 mb-3"},"Teslimat Adresi:",-1)),s.value.addresses?.shipping?(i(),l("p",J,[o(r(s.value.addresses.shipping.first_name)+" "+r(s.value.addresses.shipping.last_name),1),t[5]||(t[5]=e("br",null,null,-1)),o(" "+r(s.value.addresses.shipping.address_line_1)+" "+r(s.value.addresses.shipping.address_line_2?s.value.addresses.shipping.address_line_2:""),1),t[6]||(t[6]=e("br",null,null,-1)),o(" "+r(s.value.addresses.shipping.district)+"/"+r(s.value.addresses.shipping.city),1)])):d("",!0)]),e("div",Q,[t[10]||(t[10]=e("h4",{class:"text-sm font-bold text-gray-900 mb-3"},"Fatura Adresi:",-1)),s.value.addresses?.billing?(i(),l("p",U,[o(r(s.value.addresses.billing.first_name)+" "+r(s.value.addresses.billing.last_name),1),t[8]||(t[8]=e("br",null,null,-1)),o(" "+r(s.value.addresses.billing.address_line_1)+" "+r(s.value.addresses.billing.address_line_2?s.value.addresses.billing.address_line_2:""),1),t[9]||(t[9]=e("br",null,null,-1)),o(" "+r(s.value.addresses.billing.district)+"/"+r(s.value.addresses.billing.city),1)])):d("",!0)]),e("div",W,[s.value.tracking_number?(i(),l("div",X,[e("h4",Z,[t[12]||(t[12]=o(" Kargo Takip Numarası: ",-1)),s.value.tracking_url?(i(),l("a",{key:0,href:s.value.tracking_url,target:"_blank",class:"text-blue-500 hover:text-blue-600 transition-colors"},[e("span",te,r(s.value.tracking_number),1),t[11]||(t[11]=e("svg",{class:"inline w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1))],8,ee)):(i(),l("span",se,r(s.value.tracking_number),1))]),e("div",re,[_(s.value.carrier_name)?(i(),l("img",{key:0,src:_(s.value.carrier_name),alt:s.value.carrier_name,class:"h-6 object-contain"},null,8,ae)):d("",!0),e("span",ie,r(s.value.carrier_name||s.value.shipping_method_name),1)])])):(i(),l("div",le," Kargo bilgisi henüz girilmedi. "))])])]),e("div",oe,[e("div",ne,[e("div",de,[t[17]||(t[17]=e("div",{class:"flex items-center justify-between mb-6 pb-4 border-b border-gray-50"},[e("div",{class:"text-xs font-bold text-gray-900 uppercase tracking-wider"},"Miktar"),e("div",{class:"text-xs font-bold text-gray-900 uppercase tracking-wider text-right flex-1"},"Ürünler")],-1)),e("div",ue,[(i(!0),l(K,null,N(s.value.items,(n,T)=>(i(),l("div",{key:T,class:"flex items-start"},[e("div",ce,r(n.quantity)+" adet ",1),e("div",ge,[e("div",me,[n.product?.image?.small?(i(),l("img",{key:0,src:n.product.image.small,alt:n.product.name,class:"w-full h-full object-cover"},null,8,xe)):(i(),l("div",pe,[...t[13]||(t[13]=[e("svg",{class:"h-8 w-8",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1)])]))]),e("div",be,[e("div",ve,r(n.product_name),1),n.variant_name?(i(),l("div",_e,r(n.variant_name),1)):d("",!0),e("div",fe,[o(r(n.unit_price)+" ",1),t[14]||(t[14]=e("span",{class:"text-xs font-medium"},"TL",-1))])])])]))),128))]),s.value.status==="delivered"?(i(),l("div",ye,[x(g,{to:`/uyelik/siparislerim/iade/${s.value.id}`,class:"w-full inline-flex items-center justify-center gap-2 bg-primary text-white px-5 py-3 rounded-xl font-bold hover:bg-accent transition-all shadow-sm"},{default:c(()=>[...t[15]||(t[15]=[e("svg",{class:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 10h10a4 4 0 014 4v1m-14-5l4-4m-4 4l4 4"})],-1),o(" İade Talebi Oluştur ",-1)])]),_:1},8,["to"]),t[16]||(t[16]=e("p",{class:"text-xs text-gray-400 text-center mt-2"},"Teslimat tarihinden itibaren 14 gün içinde iade talebi oluşturabilirsiniz.",-1))])):d("",!0)])]),e("div",he,[e("div",ke,[e("div",we,[t[18]||(t[18]=e("h3",{class:"text-sm font-bold text-gray-900"},"Sipariş Özeti",-1)),e("span",je,r(s.value.items?.length||0)+" ürün",1)]),e("div",Te,[e("div",Se,[t[19]||(t[19]=e("span",{class:"text-sm text-gray-500 font-medium"},"Sipariş Tutarı",-1)),e("span",Ce,r(s.value.totals?.items_subtotal)+" TL",1)]),e("div",Le,[t[20]||(t[20]=e("span",{class:"text-sm text-gray-500 font-medium"},"Teslimat Ücreti",-1)),e("span",Me,r(s.value.totals?.shipping)+" TL",1)])]),e("div",Be,[t[21]||(t[21]=e("span",{class:"text-sm font-bold text-gray-900 uppercase"},"Toplam Tutar:",-1)),e("span",ze,r(s.value.totals?.final)+" TL",1)])]),e("div",De,[t[22]||(t[22]=e("h3",{class:"text-sm font-bold text-gray-900 mb-4"},"Ödeme Şekli",-1)),e("p",Fe,r(s.value.payment_method_text||j(s.value.payment_method)),1)])])])])):d("",!0)]),_:1})}}};export{Ge 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.