PageSourceSearch

https://her-map-kno2.onrender.com/assets/index.esm-D8l4mUYw.js

js her-map-kno2.onrender.com collected 2026-10-03 11:40:49 UTC 2,338 bytes, 6 lines download raw bytes

1import{o as e,t}from"./react-DC5jstkq.js";var n=e(t()),r=(({KEYS_TO_EXCLUDE:e=[]}={})=>{let t=(n,r)=>typeof n==typeof r?n===null||r===null?n===r:typeof n==`object`?Object.keys(n).length!==Object.keys(r).length||Object.keys(n).some(e=>!(e in r))?!1:Object.entries(n).filter(([t])=>!e.includes(t)).every(([e,n])=>t(n,r[e])):n===r:!1;return t})(),i=(e,t)=>e===t?t:Object.keys(e).reduce((n,i)=>(i in t&&r(e[i],t[i])&&(n[i]=e[i]),n),Object.assign({},t)),a=e=>{let t=(0,n.useRef)(!0),[r,i]=(0,n.useState)(e);return(0,n.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),[r,(0,n.useCallback)(e=>{t.current&&i(e)},[])]},o=(e,t=`StytchProvider`)=>`${e} can only be used inside <${t}>.`,s=`You cannot render a <StytchProvider> inside another <StytchProvider>.`,c=`The @stytch/react library is not meant for use with serverside environments like NextJS.
2Use the @stytch/nextjs library instead - 
3npm remove @stytch/react && npm install @stytch/nextjs
4`,l=`Tried to create a Stytch Login UI element using the Stytch Headless SDK.
5You must use the UI SDK to use UI elements.
6Please make sure you are importing from @stytch/vanilla-js and not from the @stytch/vanilla-js/headless.`;function u(e,t){if(!e)throw Error(t)}var d={user:null,fromCache:!1},f={session:null,fromCache:!1},p=(0,n.createContext)({isMounted:!1}),m=(0,n.createContext)(d),h=(0,n.createContext)(f),g=()=>(0,n.useContext)(p).isMounted,_=e=>e.mountLogin!==void 0,v=()=>{let e=(0,n.useContext)(p);return u(e.isMounted,o(`useStytch`)),e.client},y=({stytch:e,children:t})=>{u(!g(),s),u(typeof window<`u`,c);let r=(0,n.useMemo)(()=>({client:e,isMounted:!0}),[e]),[{user:o,session:l},d]=a({session:e.session.getInfo(),user:e.user.getInfo()});return(0,n.useEffect)(()=>e.onStateChange(()=>{d(t=>i(t,{session:e.session.getInfo(),user:e.user.getInfo()}))}),[d,e]),n.createElement(p.Provider,{value:r},n.createElement(m.Provider,{value:o},n.createElement(h.Provider,{value:l},t)))},b=({config:e,styles:t,callbacks:r})=>{u(g(),o(`<StytchLogin />`));let i=v(),a=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{if(!_(i))throw Error(l);if(a.current){if(!a.current.id){let e=Math.floor(Math.random()*1e6);a.current.id=`stytch-magic-link-${e}`}i.mountLogin({config:e,callbacks:r,elementId:`#${a.current.id}`,styles:t})}},[i,e,t,r]),n.createElement(`div`,{ref:a})};export{y as n,v as r,b as t};

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.