PageSourceSearch

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

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

1import{_ as d}from"./BsqTxom4.js";import{u as m,q as _,j as p,n as e,c as w,b as i,o as f}from"#entry";const x={__name:"dashboard",setup(b){return m({title:"Dashboard - Autopiezas360",meta:[{name:"robots",content:"noindex, nofollow"}]}),_(async()=>{const{$firebaseAuth:c,$firestore:a}=p(),t=c?.currentUser;if(t)try{const{doc:r,getDoc:u}=await d(async()=>{const{doc:o,getDoc:s}=await import("#entry").then(n=>n.aC);return{doc:o,getDoc:s}},[],import.meta.url),l=await u(r(a,"users",t.uid));if(l.exists())switch(l.data().role||"cliente"){case"admin":await e("/admin");break;case"vendedor":await e("/vendedor");break;default:await e("/cliente")}else{const{setDoc:o}=await d(async()=>{const{setDoc:s}=await import("#entry").then(n=>n.aC);return{setDoc:s}},[],import.meta.url);await o(r(a,"users",t.uid),{email:t.email,displayName:t.displayName,role:"cliente",createdAt:new Date,lastLogin:new Date}),await e("/cliente")}}catch(r){console.error("Error verificando rol de usuario:",r),await e("/cliente")}else await e("/login")}),(c,a)=>(f(),w("div",null,[...a[0]||(a[0]=[i("div",{class:"min-h-screen flex items-center justify-center bg-gray-50"},[i("div",{class:"text-center"},[i("div",{class:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"}),i("p",{class:"text-gray-600"},"Verificando acceso...")])],-1)])]))}};export{x 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.