PageSourceSearch

https://greenguardpestcontrol.com/_next/static/chunks/3335.92fc3520151625cc.js

js greenguardpestcontrol.com collected 2026-10-08 08:14:12 UTC 4,442 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3335],{53335:(e,t,s)=>{s.r(t),s.d(t,{default:()=>u});var r=s(95155),n=s(12115),a=s(65497),l=s(7733);let i="exitIntentShown",o=()=>{try{sessionStorage.setItem(i,"true")}catch(e){}},c=()=>{try{return!!sessionStorage.getItem(i)}catch(e){return!1}};function u(){let{openModal:e,isOpen:t}=(0,a.WG)(),[s,i]=(0,n.useState)(!1),[u,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),m=(0,n.useRef)(null);(0,n.useEffect)(()=>{t&&o()},[t]),(0,n.useEffect)(()=>{let e=e=>{e.target.closest&&e.target.closest('a[href^="tel:"], [data-book], [data-hero-pest]')&&o()};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[]),(0,n.useEffect)(()=>{if(c())return;let e=window.matchMedia("(hover: none) and (pointer: coarse)").matches,t=/^\/lp\//.test(window.location.pathname);if(e&&t)return;let s=Date.now(),r=0,n=()=>{c()||document.body.classList.contains("modal-open")||sessionStorage.getItem("formStarted")||document.querySelector(".menu-panel.is-open")||(o(),m.current=document.activeElement,d(e),i(!0))},a=()=>{let e=document.documentElement.scrollHeight-window.innerHeight;return e>0?window.scrollY/e:1};if(!e){let e=e=>{!e.relatedTarget&&e.clientY<=0&&Date.now()-s>=5e3&&n()};return document.addEventListener("mouseout",e),()=>document.removeEventListener("mouseout",e)}let l=()=>Date.now()-s>=1e4&&r>=.5,u=!1,h=0,x=!1,f=window.scrollY,v=Date.now(),w=0,p=()=>{clearTimeout(w),x&&(w=setTimeout(()=>{a()>=.5&&l()&&n()},25e3))},j=()=>{u=!0,x=!0,p()},g=()=>{u=!1,h=Date.now()},b=()=>{let e=Date.now(),t=window.scrollY,s=(f-t)/Math.max(1,e-v);r=Math.max(r,a()),(u||e-h<800)&&t>200&&s>1.2&&l()&&n(),f=t,v=e,p()};return window.addEventListener("touchstart",j,{passive:!0}),window.addEventListener("touchend",g,{passive:!0}),window.addEventListener("scroll",b,{passive:!0}),()=>{clearTimeout(w),window.removeEventListener("touchstart",j),window.removeEventListener("touchend",g),window.removeEventListener("scroll",b)}},[]);let x=(0,n.useCallback)((e=!0)=>{i(!1),e&&m.current&&m.current.focus&&m.current.focus({preventScroll:!0})},[]);return((0,n.useEffect)(()=>{if(s&&(h.current&&h.current.focus({preventScroll:!0}),!u))return(0,l.qf)(),()=>(0,l.Oo)()},[s,u]),s)?(0,r.jsxs)("div",{className:"exit gg"+(u?" exit--sheet":""),role:"dialog","aria-modal":u?"false":"true","aria-labelledby":"exit-title",onKeyDown:e=>{if("Escape"===e.key){e.preventDefault(),x();return}if("Tab"!==e.key||u)return;let t=[...e.currentTarget.querySelectorAll("button, a[href]")],s=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===s?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),s.focus())},children:[(0,r.jsx)("div",{className:"exit__backdrop",onClick:()=>x()}),(0,r.jsxs)("div",{className:"exit__card",children:[(0,r.jsx)("button",{type:"button",className:"exit__close","aria-label":"Close",ref:h,onClick:()=>x(),children:(0,r.jsx)("svg",{className:"i-stroke",viewBox:"0 0 24 24",children:(0,r.jsx)("use",{href:"#i-x"})})}),(0,r.jsx)("div",{className:"exit__mark","aria-hidden":"true",children:(0,r.jsx)("svg",{className:"i-stroke",viewBox:"0 0 24 24",children:(0,r.jsx)("use",{href:"#i-shield"})})}),(0,r.jsxs)("h2",{className:"exit__title",id:"exit-title",children:[(0,r.jsx)("em",{children:"Wait!"})," Before You Go..."]}),(0,r.jsxs)("p",{className:"exit__lede",children:["Start protecting your home today.",(0,r.jsx)("br",{}),"Just ",(0,r.jsx)("strong",{children:"$49"})," to get started. Takes 60 seconds."]}),(0,r.jsxs)("ul",{className:"exit__props",children:[(0,r.jsxs)("li",{children:[(0,r.jsx)("svg",{className:"i",children:(0,r.jsx)("use",{href:"#i-clock"})}),"Same-day often available"]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("svg",{className:"i",children:(0,r.jsx)("use",{href:"#i-shield"})}),"Free re-service"]})]}),(0,r.jsxs)("div",{className:"exit__ctas",children:[(0,r.jsxs)("button",{type:"button",className:"btn btn--primary btn--lg",onClick:()=>{x(!1),e({source:"exit-intent-popup"})},children:["Get Started for only $49 ",(0,r.jsx)("svg",{className:"i",children:(0,r.jsx)("use",{href:"#i-arrow"})})]}),(0,r.jsxs)("a",{className:"btn btn--ghost",href:"tel:2082977947",onClick:()=>x(!1),children:[(0,r.jsx)("svg",{className:"i",children:(0,r.jsx)("use",{href:"#i-phone"})}),"Call (208) 297-7947"]}),(0,r.jsx)("p",{className:"exit__trust",children:"Trusted by 2,500+ Treasure Valley homes"})]})]})]}):null}}}]);

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.