PageSourceSearch

https://repuestos-d6c3d.firebaseapp.com/_nuxt/BHIYQ2gg.js

js repuestos-d6c3d.firebaseapp.com collected 2026-10-03 08:14:17 UTC 8,533 bytes, 1 lines download raw bytes

1import{_ as z}from"./BsqTxom4.js";import{_ as I}from"./WWy_r-EY.js";import{a9 as V,u as E,s as N,k as B,r as l,q as M,j as S,c,b as t,d as h,e as u,a as m,i as o,t as f,h as b,N as j,m as T,_ as $,o as i}from"#entry";import{u as D}from"./D-GNixRz.js";const L={class:"min-h-screen bg-gray-50 flex items-center justify-center px-4 py-12"},W={class:"max-w-2xl w-full"},H={class:"bg-white rounded-lg shadow-xl p-8 text-center"},R={class:"bg-green-50 border border-green-200 rounded-lg p-6 mb-8"},q={class:"flex items-start space-x-3"},F={class:"text-left"},O={class:"text-sm text-green-700 space-y-2"},Q={class:"flex items-start gap-2"},U={class:"flex items-start gap-2"},G={class:"flex items-start gap-2"},J={class:"flex items-start gap-2"},K={key:0,class:"bg-blue-50 border border-blue-200 rounded-lg p-4 mb-8"},X={key:1,class:"bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-8"},Y={class:"flex items-start space-x-3"},Z={class:"text-sm text-yellow-700 mt-1"},ee={key:2,class:"bg-green-50 border border-green-200 rounded-lg p-4 mb-8"},te={class:"flex items-start space-x-3"},se={class:"flex-1"},oe={class:"text-xs text-green-600 mt-2"},ae={key:3,class:"bg-gray-50 rounded-lg p-3 mb-8"},re={class:"text-xs text-gray-600"},ne={key:4,class:"mb-8"},le={class:"space-y-3"},pe=V({__name:"success",setup(ie){E({title:"Pago Exitoso - AutoPiezas360",meta:[{name:"description",content:"Tu pago ha sido procesado exitosamente"},{name:"robots",content:"noindex, nofollow"}]});const w=N(),{limpiarCarrito:_}=D(),y=B(),a=l(""),x=l(""),p=l(""),g=l(!1),v=l(!1),d=l(""),k=l("");M(async()=>{if(a.value=String(y.query.payment_id||""),x.value=String(y.query.preference_id||""),a.value&&x.value)try{g.value=!0,d.value="";const{$firebaseFunctions:r}=S(),{httpsCallable:e}=await z(async()=>{const{httpsCallable:A}=await import("#entry").then(P=>P.aE);return{httpsCallable:A}},[],import.meta.url),s=await e(r,"verifyPayment")({paymentId:a.value,preferenceId:x.value});s.data.success&&s.data.order?.id?(p.value=s.data.order.id,k.value=s.data.order.estado,s.data.order.estado==="approved"&&s.data.order.isPaid?v.value=!0:d.value="El pago aún no ha sido confirmado. Por favor espera unos minutos."):d.value="No se pudo verificar el estado del pago."}catch(r){console.error("Error verificando pago:",r),d.value=r.message||"Error al verificar el pago. Intenta nuevamente más tarde."}finally{g.value=!1}_()});const C=()=>{const r=`Hola! Acabo de completar una compra exitosamente. ID de pago: ${a.value||"N/A"}. ¿Podrían ayudarme con el seguimiento?`,n=`https://wa.me/${"+56944622816".replace("+","")}?text=${encodeURIComponent(r)}`;window.open(n,"_blank")};return(r,e)=>{const n=I,s=$;return i(),c("div",L,[t("div",W,[t("div",H,[e[19]||(e[19]=h('<div class="mx-auto w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mb-6"><svg class="w-12 h-12 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg></div><h1 class="text-3xl font-bold text-gray-800 mb-4"> ¡Pago Exitoso! </h1><p class="text-lg text-gray-600 mb-6"> Tu compra ha sido procesada correctamente </p>',3)),t("div",R,[t("div",q,[e[5]||(e[5]=t("svg",{class:"w-6 h-6 text-green-600 flex-shrink-0 mt-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),t("div",F,[e[4]||(e[4]=t("h3",{class:"font-semibold text-green-800 mb-2"},"¿Qué sigue?",-1)),t("ul",O,[t("li",Q,[m(n,{name:"check-circle",size:"sm",class:"shrink-0 mt-0.5"}),e[0]||(e[0]=o(" Recibirás un comprobante de compra en tu email ",-1))]),t("li",U,[m(n,{name:"check-circle",size:"sm",class:"shrink-0 mt-0.5"}),e[1]||(e[1]=o(" Nos contactaremos contigo en las próximas 24 horas ",-1))]),t("li",G,[m(n,{name:"check-circle",size:"sm",class:"shrink-0 mt-0.5"}),e[2]||(e[2]=o(" Coordinaremos el envío de tus productos ",-1))]),t("li",J,[m(n,{name:"check-circle",size:"sm",class:"shrink-0 mt-0.5"}),e[3]||(e[3]=o(" Tiempo estimado de entrega: 7-10 días hábiles ",-1))])])])])]),g.value?(i(),c("div",K,[...e[6]||(e[6]=[h('<div class="flex items-center space-x-3"><svg class="animate-spin h-5 w-5 text-blue-600" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" 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"></path></svg><p class="text-sm text-blue-700">Verificando el estado del pago...</p></div>',1)])])):u("",!0),!g.value&&d.value?(i(),c("div",X,[t("div",Y,[e[8]||(e[8]=t("svg",{class:"w-5 h-5 text-yellow-600 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20"},[t("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)),t("div",null,[e[7]||(e[7]=t("p",{class:"text-sm font-medium text-yellow-800"},"Atención",-1)),t("p",Z,f(d.value),1)])])])):u("",!0),v.value&&p.value?(i(),c("div",ee,[t("div",te,[e[12]||(e[12]=t("svg",{class:"w-5 h-5 text-green-600 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20"},[t("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)),t("div",se,[e[10]||(e[10]=t("p",{class:"text-sm font-medium text-green-800"},"Pago Confirmado",-1)),e[11]||(e[11]=t("p",{class:"text-sm text-green-700 mt-1"},"Tu pago ha sido verificado exitosamente.",-1)),t("p",oe,[e[9]||(e[9]=t("strong",null,"ID de Pedido:",-1)),o(" "+f(p.value),1)])])])])):u("",!0),a.value&&!g.value?(i(),c("div",ae,[e[14]||(e[14]=t("p",{class:"text-xs text-gray-500 mb-1"},"Información del pago",-1)),t("p",re,[e[13]||(e[13]=t("strong",null,"ID de Pago:",-1)),o(" "+f(a.value),1)])])):u("",!0),v.value&&p.value?(i(),c("div",ne,[m(s,{to:`/compra/${p.value}?payment_id=${a.value}`,class:"block w-full bg-green-600 hover:bg-green-700 text-white py-3 px-6 rounded-lg font-medium transition-colors text-center"},{default:b(()=>
1[...e[15]||(e[15]=[o(" Ver Estado de mi Compra ",-1)])]),_:1},8,["to"])])):u("",!0),t("div",le,[m(s,{to:"/repuestos",class:"block w-full bg-blue-600 hover:bg-blue-700 text-white py-3 px-6 rounded-lg font-medium transition-colors"},{default:b(()=>[...e[16]||(e[16]=[o(" Seguir Comprando ",-1)])]),_:1}),T(w).isAuthenticated?(i(),j(s,{key:0,to:"/cliente/pedidos",class:"block w-full bg-gray-100 hover:bg-gray-200 text-gray-700 py-3 px-6 rounded-lg font-medium transition-colors"},{default:b(()=>[...e[17]||(e[17]=[o(" Ver mis Pedidos ",-1)])]),_:1})):u("",!0),t("button",{onClick:C,class:"w-full bg-green-500 hover:bg-green-600 text-white py-3 px-6 rounded-lg font-medium transition-colors flex items-center justify-center space-x-2"},[...e[18]||(e[18]=[t("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24"},[t("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.885 3.488"})],-1),t("span",null,"Consultar por WhatsApp",-1)])])]),e[20]||(e[20]=t("p",{class:"text-sm text-gray-500 mt-6"}," Si tienes alguna pregunta, no dudes en contactarnos ",-1))])])])}}});export{pe 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.