PageSourceSearch

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

js repuestos-d6c3d.firebaseapp.com collected 2026-10-03 08:14:15 UTC 6,470 bytes, 1 lines download raw bytes

1import{_ as C}from"./BsqTxom4.js";import{_ as A}from"./WWy_r-EY.js";import{a9 as I,u as N,k as P,r as x,q as j,j as V,c as a,b as t,d as D,e as m,F as v,x as y,a as c,i as o,t as g,h as b,_ as E,o as r}from"#entry";const F={class:"min-h-screen bg-gray-50 flex items-center justify-center px-4 py-12"},z={class:"max-w-2xl w-full"},B={class:"bg-white rounded-lg shadow-xl p-8 text-center"},M={class:"bg-red-50 border border-red-200 rounded-lg p-6 mb-8"},W={class:"flex items-start space-x-3"},$={class:"text-left"},L={class:"text-sm text-red-700 space-y-2"},S={class:"bg-blue-50 border border-blue-200 rounded-lg p-6 mb-8"},q={class:"font-semibold text-blue-800 mb-3 text-left flex items-center gap-2"},T={class:"text-sm text-blue-700 space-y-2 text-left"},H={key:0,class:"bg-gray-50 rounded-lg p-4 mb-8"},R={key:0,class:"text-sm text-gray-700"},O={key:1,class:"text-sm text-gray-700"},Q={key:2,class:"text-sm text-gray-700 mt-2"},U={key:1,class:"mb-4"},G={class:"space-y-3"},Z=I({__name:"failure",setup(J){N({title:"Pago No Completado - AutoPiezas360",meta:[{name:"description",content:"No se pudo completar tu pago"},{name:"robots",content:"noindex, nofollow"}]});const f=P(),_=["El pago fue rechazado por tu banco","Fondos insuficientes en tu tarjeta","Datos de la tarjeta incorrectos","Cancelaste la operación","Hubo un problema de conexión"],h=["Verifica los datos de tu tarjeta","Asegúrate de tener fondos suficientes","Intenta con otro medio de pago","Contacta a tu banco si el problema persiste","Comunícate con nosotros por WhatsApp"],s=x(""),l=x(""),p=x("");j(async()=>{if(s.value=String(f.query.payment_id||""),l.value=String(f.query.preference_id||""),s.value&&l.value)try{const{$firebaseFunctions:i}=V(),{httpsCallable:e}=await C(async()=>{const{httpsCallable:n}=await import("#entry").then(w=>w.aE);return{httpsCallable:n}},[],import.meta.url),u=await e(i,"verifyPayment")({paymentId:s.value,preferenceId:l.value});u.data.order?.id&&(p.value=u.data.order.id)}catch(i){console.error("Error verificando pago:",i)}});const k=()=>{const i=`Hola! Tuve un problema al procesar mi pago. ID de pago: ${s.value||"N/A"}. ¿Podrían ayudarme?`,d=`https://wa.me/${"+56944622816".replace("+","")}?text=${encodeURIComponent(i)}`;window.open(d,"_blank")};return(i,e)=>{const d=A,u=E;return r(),a("div",F,[t("div",z,[t("div",B,[e[11]||(e[11]=D('<div class="mx-auto w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mb-6"><svg class="w-12 h-12 text-red-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></div><h1 class="text-3xl font-bold text-gray-800 mb-4"> Pago No Completado </h1><p class="text-lg text-gray-600 mb-6"> No pudimos procesar tu pago </p>',3)),t("div",M,[t("div",W,[e[1]||(e[1]=t("svg",{class:"w-6 h-6 text-red-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",$,[e[0]||(e[0]=t("h3",{class:"font-semibold text-red-800 mb-2"},"¿Qué pudo haber pasado?",-1)),t("ul",L,[(r(),a(v,null,y(_,n=>t("li",{key:n,class:"flex items-start gap-2"},[c(d,{name:"x-circle",size:"sm",class:"shrink-0 mt-0.5"}),o(" "+g(n),1)])),64))])])])]),t("div",S,[t("h3",q,[c(d,{name:"light-bulb",size:"sm"}),e[2]||(e[2]=o(" ¿Qué puedes hacer? ",-1))]),t("ul",T,[(r(),a(v,null,y(h,n=>t("li",{key:n,class:"flex items-start gap-2"},[c(d,{name:"check-circle",size:"sm",class:"shrink-0 mt-0.5 text-blue-600"}),o(" "+g(n),1)])),64))])]),s.value||l.value?(r(),a("div",H,[e[6]||(e[6]=t("p",{class:"text-xs text-gray-500 mb-1"},"Información del intento de pago",-1)),s.value?(r(),a("p",R,[e[3]||(e[3]=t("strong",null,"ID de Pago:",-1)),o(" "+g(s.value),1)])):m("",!0),l.value?(r(),a("p",O,[e[4]||(e[4]=t("strong",null,"ID de Preferencia:",-1)),o(" "+g(l.value),1)])):m("",!0),p.value?(r(),a("p",Q,[e[5]||(e[5]=t("strong",null,"ID de Pedido:",-1)),o(" "+g(p.value),1)])):m("",!0)])):m("",!0),p.value?(r(),a("div",U,[c(u,{to:`/compra/${p.value}?payment_id=${s.value}`,class:"block w-full bg-gray-600 hover:bg-gray-700 text-white py-3 px-6 rounded-lg font-medium transition-colors text-center"},{default:b(()=>[...e[7]||(e[7]=[o(" Ver Estado de mi Pedido ",-1)])]),_:1},8,["to"])])):m("",!0),t("div",G,[c(u,{to:"/carrito",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[8]||(e[8]=[o(" Volver al Carrito e Intentar Nuevamente ",-1)])]),_:1}),t("button",{onClick:k,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[9]||(e[9]=[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-.
1198 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,"Obtener Ayuda por WhatsApp",-1)])]),c(u,{to:"/repuestos",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[10]||(e[10]=[o(" Seguir Comprando ",-1)])]),_:1})]),e[12]||(e[12]=t("p",{class:"text-sm text-gray-500 mt-6"}," Tu carrito se mantiene guardado. No te preocupes, puedes intentarlo nuevamente cuando quieras. ",-1))])])])}}});export{Z 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.