PageSourceSearch

https://simplisafe.com/assets/useOnClickOutside-BWbrDdBo.js

js simplisafe.com collected 2026-10-02 02:56:40 UTC 888 bytes, 2 lines download raw bytes

1import{a as e}from"./chunk-Cyuzqnbw.js";import{c as t,n,t as r}from"./ApolloContext-DeugNXJo.js";import{_t as i,jt as a,mo as o}from"./chunk-EVOBXE3Y-Gx1JiEIH.js";var s=e(n(),1);function c(e){var n=s.useContext(r()),i=e||n.client;return t(!!i,78),i}var l=e(i(),1),u=e(a(),1),d=e(o(),1);function f(e,t,n=``){(0,d.useEffect)(()=>{let r=e=>e instanceof Element&&!!e.closest(`[aria-label="Chat with our AI assistant"]`);function i(n){r(n.target)||t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()}return(0,u.pipe)(globalThis.document,l.fromNullable,l.chain(e=>l.fromNullable(n?e.getElementById(n):e)),l.match(u.constUndefined,e=>(e.addEventListener(`mousedown`,i),e.addEventListener(`touchstart`,i),()=>{e.removeEventListener(`mousedown`,i),e.removeEventListener(`touchstart`,i)})))},[e,n,t])}export{c as n,f as t};
2//# sourceMappingURL=useOnClickOutside-BWbrDdBo.js.map

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.