PageSourceSearch

https://omkomunity.ai/assets/AuthContext-BlaF8Pkc.js

js omkomunity.ai collected 2026-10-05 13:35:52 UTC 910 bytes, 1 lines download raw bytes

1import{r as s,j as l}from"./react-vendor-B_RSOvDL.js";import{o as c,h as d}from"./firebase-DDYFp6_0.js";import{g as f,b as m,i as h}from"./firebase-th7IyFL8.js";import{M as A,n as b,O as I}from"./index-Bk01S-TJ.js";import"./react-router-CxCp-j-p.js";const g=["[email protected]"];function p(t){return t?g.includes(t.trim().toLowerCase()):!1}const n={user:null,loading:!0,isAuthorized:!1},o=s.createContext(n);function v({children:t}){const[r,i]=s.useState(n);return s.useEffect(()=>{if(!h()){i({user:null,loading:!1,isAuthorized:!1});return}return c(f(),e=>{if(i({user:e,loading:!1,isAuthorized:p(e?.email)}),A(e?.uid??null),e&&b()?.analytics===!0){const a=I();d(m(),"linkVisitorIdentity")({visitorId:a}).catch(u=>{console.error("linkVisitorIdentity a échoué (non bloquant) :",u)})}})},[]),l.jsx(o.Provider,{value:r,children:t})}function z(){return s.useContext(o)}export{v as AuthProvider,z as useAuth};

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.