PageSourceSearch

https://repuestos-d6c3d.firebaseapp.com/_nuxt/0fIRCc5h.js

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

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RAQLQywF.js","./ZFkPT2K8.js","./BsqTxom4.js","./entry.yz0eg_zj.css"])))=>i.map(i=>d[i]);
2import{_ as n}from"./BsqTxom4.js";import{a6 as w,a7 as a,j as D,n as s}from"#entry";const E=w(async(c,l)=>{let e,t;const _=([e,t]=a(()=>n(()=>import("./RAQLQywF.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),e=await e,t(),e);[e,t]=a(()=>_.default(c,l)),await e,t();const{$firebaseAuth:m,$firestore:u}=D(),i=m?.currentUser;if(i)try{const{doc:o,getDoc:p}=([e,t]=a(()=>n(()=>import("#entry").then(r=>r.aC),[],import.meta.url)),e=await e,t(),e),d=([e,t]=a(()=>p(o(u,"users",i.uid))),e=await e,t(),e);if(d.exists()){const r=d.data();if(r.role!=="admin"&&r.role!=="superadmin")switch(r.role){case"vendedor":return s("/vendedor");default:return s("/cliente")}}else{const{setDoc:r}=([e,t]=a(()=>n(()=>import("#entry").then(f=>f.aC),[],import.meta.url)),e=await e,t(),e);return[e,t]=a(()=>r(o(u,"users",i.uid),{email:i.email,displayName:i.displayName,role:"cliente",createdAt:new Date,lastLogin:new Date})),await e,t(),s("/cliente")}}catch(o){return console.error("Error verificando rol de usuario:",o),s("/cliente")}});export{E 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.