PageSourceSearch

https://drillerdb.com/_next/static/chunks/3d2javuepkfqy.js

js drillerdb.com collected 2026-10-02 05:31:01 UTC 28,962 bytes, 12 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,611015,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(618566),a=e.i(288214),o=e.i(541872);let i="--ddb-consent-inset";function l(e="u">typeof document?document:null){return!!(e&&e.querySelector('[role="dialog"][aria-modal="true"]'))}e.s(["CONSENT_INSET_VAR",0,i,"default",0,function(){let[e,s]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),[u,f]=(0,r.useState)(!1),m=(0,r.useRef)(null),h=(0,a.isImmersiveRoute)((0,n.usePathname)());(0,r.useEffect)(()=>{if("u"<typeof MutationObserver)return;let e=()=>f(l());e();let t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["role","aria-modal"]}),()=>t.disconnect()},[]);let b=e&&!u;function x(e){let t=(0,o.resolveConsent)(e);"function"==typeof window.gtag&&window.gtag("consent","update",{ad_storage:t,ad_user_data:t,ad_personalization:t,analytics_storage:t}),"function"==typeof window.oaiq&&window.oaiq("consent","granted"===t)}return((0,r.useLayoutEffect)(()=>{let e=document.documentElement;if(!b)return void e.style.removeProperty(i);let t=()=>{let t=m.current;if(!t)return;let r=Math.max(0,Math.round(window.innerHeight-t.getBoundingClientRect().top));e.style.setProperty(i,`${r}px`)};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),e.style.removeProperty(i)}},[b,c]),(0,r.useEffect)(()=>{let e="function"==typeof window.matchMedia?window.matchMedia("(max-width: 640px)"):null,t=()=>{e&&d(e.matches)};e&&(t(),e.addEventListener?.("change",t));let r=(0,o.getStoredConsent)();if(r)return x(r),()=>e?.removeEventListener?.("change",t);let n=setTimeout(()=>s(!0),h?25e3:1500);return()=>{clearTimeout(n),e?.removeEventListener?.("change",t)}},[h]),!e||u)?null:(0,t.jsxs)("div",{ref:m,"data-sitechrome":"cookie-consent",style:{position:"fixed",bottom:0,left:0,right:0,zIndex:9999,background:"rgba(26, 54, 93, 0.97)",backdropFilter:"blur(8px)",padding:c?"10px 12px":"16px 24px",display:"flex",alignItems:"center",justifyContent:c?"space-between":"center",gap:c?"10px":"16px",flexWrap:"wrap",fontSize:c?"12px":"14px",color:"#e2e8f0",boxShadow:"0 -2px 10px rgba(0,0,0,0.15)",borderRadius:0},children:[(0,t.jsxs)("span",{style:{maxWidth:c?"none":"600px",flex:c?"1 1 8rem":"initial",minWidth:0,lineHeight:c?1.35:1.5},children:["We use cookies for analytics and ad measurement."," ",(0,t.jsx)("a",{href:"/privacy",style:{color:"#d69e2e",textDecoration:"underline"},children:"Privacy Policy"})]}),(0,t.jsxs)("div",{style:{display:"flex",gap:"8px",width:"auto",flexShrink:0},children:[(0,t.jsx)("button",{onClick:function(){localStorage.setItem("ddb_cookie_consent","denied"),x("denied"),s(!1)},style:{background:"transparent",border:"1px solid #a0aec0",color:"#e2e8f0",padding:c?"7px 12px":"8px 16px",borderRadius:"6px",cursor:"pointer",fontSize:"13px",flex:"initial",whiteSpace:"nowrap"},children:"Decline"}),(0,t.jsx)("button",{onClick:function(){localStorage.setItem("ddb_cookie_consent","granted"),x("granted"),s(!1)},style:{background:"#d69e2e",border:"none",color:"#1a365d",padding:c?"7px 12px":"8px 20px",borderRadius:"6px",cursor:"pointer",fontWeight:600,fontSize:"13px",flex:"initial",whiteSpace:"nowrap"},children:"Accept"})]})]})},"hasOpenModalDialog",0,l])},66159,e=>{"use strict";var t=e.i(271645);let r="ddb_attribution",n=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid"];e.s(["default",0,function(){return(0,t.useEffect)(()=>{try{if(document.cookie.split("; ").some(e=>e.startsWith(`${r}=`))||window.localStorage?.getItem("ddb_cookie_consent")==="denied")return;let e=new URLSearchParams(window.location.search),t={};for(let r of n){let n=e.get(r);n&&(t[r]=n.slice(0,512))}document.referrer&&(t.referrer=document.referrer.slice(0,1024)),t.landing_page=(window.location.pathname+window.location.search).slice(0,1024),t.first_touch_at=new Date().toISOString();let a=encodeURIComponent(JSON.stringify(t)),o=window.location.hostname.endsWith("drillerdb.com")?"; Domain=.drillerdb.com":"",i="https:"===window.location.protocol?"; Secure":"";document.cookie=`${r}=${a}; Max-Age=7776000; Path=/${o}; SameSite=Lax${i}`}catch{}},[]),null}])},537874,e=>{"use strict";var t=e.i(843476),r=e.i(3303),n=e.i(618566),a=e.i(288214),o=e.i(420407);e.s(["default",0,function(){let e=(0,n.usePathname)();return(0,a.isImmersiveRoute)(e)||(0,o.isChromelessSignupRoute)(e)?null:(0,t.jsx)(r.default,{id:"livechat-widget",strategy:"afterInteractive",children:`
2        window.__lc = window.__lc || {};
3        window.__lc.license = 17918454;
4        window.__lc.integration_name = "manual_channels";
5        window.__lc.product_name = "livechat";
6        window.__lc.params = [
7          { name: "source", value: "marketing-website" },
8          { name: "page", value: window.location.pathname },
9        ];
10        window.__lc.group = 0;
11        ;(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n)}var e={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)])},once:function(){i(["once",c.call(arguments)])},off:function(){i(["off",c.call(arguments)])},get:function(){if(!e._h)throw new Error("[LiveChatWidget] You can't use getters before load.");return i(["get",c.call(arguments)])},call:function(){i(["call",c.call(arguments)])}};window.LiveChatWidget=e;var s=t.createElement("script");s.async=!0;s.type="text/javascript";s.src="https://cdn.livechatinc.com/tracking.js";t.head.appendChild(s)})(window,document,[].slice);
12      `})}])},465932,e=>{"use strict";var t=e.i(843476),r=e.i(846696);e.s(["default",0,function(){return(0,t.jsx)(r.Toaster,{position:"top-right",expand:!1,richColors:!0,closeButton:!0,duration:5e3,toastOptions:{style:{fontFamily:"var(--font-body), sans-serif",fontSize:"0.9375rem"},className:"toast-industrial"}})}])},545589,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(618566),a=e.i(288214),o=e.i(37727);let i="ddb-underground-launch-banner-dismissed";e.s(["default",0,function(){let[e,l]=(0,r.useState)(!1),s=(0,n.usePathname)(),c=(0,a.isImmersiveRoute)(s),d="/water-tests"===s||s?.startsWith("/water-tests/");return((0,r.useEffect)(()=>{try{"true"===localStorage.getItem(i)&&l(!0)}catch{}},[]),e||c||d)?null:(0,t.jsx)("div",{className:"relative z-50 w-full text-[var(--color-neutral-50)]",style:{background:"linear-gradient(90deg, var(--color-steel-950) 0%, var(--color-steel-800) 55%, var(--color-steel-900) 100%)",borderBottom:"2px s
12olid color-mix(in srgb, var(--color-brand-500) 35%, transparent)"},children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-7xl items-center gap-2 px-4 py-2 md:px-6",children:[(0,t.jsxs)("a",{href:"/underground",className:"group flex flex-1 flex-wrap items-center justify-center gap-x-2 gap-y-1 text-center text-[13px] leading-snug md:text-sm",children:[(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center rounded-[var(--radius-full)] bg-[var(--color-brand-500)] px-2 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-white",children:"New"}),(0,t.jsxs)("span",{className:"font-medium",children:[(0,t.jsx)("span",{className:"font-semibold",children:"See the ground in 3D"}),(0,t.jsxs)("span",{className:"hidden sm:inline",children:[" ","— cut into the earth anywhere in the country, built from real driller logs."]})]}),(0,t.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1 font-semibold text-[var(--color-brand-300)] underline-offset-2 group-hover:underline",children:["Look",(0,t.jsx)("span",{"aria-hidden":"true",className:"transition-transform group-hover:translate-x-0.5",children:"→"})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{l(!0);try{localStorage.setItem(i,"true")}catch{}},"aria-label":"Dismiss announcement",className:"-mr-1 flex h-8 w-8 shrink-0 items-center justify-center rounded-[var(--radius-sm)] text-[var(--color-neutral-300)] transition-colors hover:bg-white/10 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--color-brand-400)]",children:(0,t.jsx)(o.X,{size:16,"aria-hidden":"true"})})]})})}])},526112,e=>{"use strict";var t=e.i(843476),r=e.i(618566),n=e.i(288214);e.s(["default",0,function({children:e}){return(0,n.isImmersiveRoute)((0,r.usePathname)())?(0,t.jsx)("div",{className:"dark fixed inset-x-0 top-0 z-[2147483647] border-b border-stone-700/70 bg-stone-950/85 text-stone-100 backdrop-blur-md [&_a]:text-inherit [&_button]:text-inherit",children:e}):(0,t.jsx)(t.Fragment,{children:e})}])},111076,e=>{"use strict";var t=e.i(843476),r=e.i(522016),n=e.i(618566);let a=["/contractor","/find-drillers"],o="text-[color:var(--muted-foreground)] transition-colors hover:text-[color:var(--foreground)]";e.s(["default",0,function(){return!function(e){if("string"!=typeof e||""===e)return!1;let t=e.split(/[?#]/,1)[0];return a.some(e=>t===e||t.startsWith(`${e}/`))}((0,n.usePathname)())?(0,t.jsxs)("ul",{className:"mt-4 space-y-1.5 text-sm",children:[(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:"tel:+19207099975",className:o,children:"(920) 709-9975"})}),(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:"mailto:[email protected]",className:o,children:"[email protected]"})})]}):(0,t.jsxs)("p",{"data-testid":"footer-directory-note",className:"mt-4 max-w-xs text-sm text-[color:var(--muted-foreground)]",children:["DrillerDB is a software company and a directory, not this contractor. Use the phone number and contact form on the listing to reach them."," ",(0,t.jsx)(r.default,{href:"/contact-us",className:"underline underline-offset-4 hover:text-[color:var(--foreground)]",children:"Questions about DrillerDB?"})]})}],111076)},823343,e=>{"use strict";var t=e.i(843476),r=e.i(522016),n=e.i(618566),a=e.i(271645),o=e.i(912916),i=e.i(79454),l=e.i(876701),s=e.i(683623);let c=["/well-map","/find-drillers","/geology","/contractor","/resources/well-owner","/resources/well-locations","/water-table-depth","/well-data"];function d(e){return"/well-map/sign-up"===e}function u(e){return!!e&&c.some(t=>e===t||e.startsWith(`${t}/`))}function f(e){return!!e&&["/water-tests","/account/water-tests"].some(t=>e===t||e.startsWith(`${t}/`))}function m(e){let t=u(e),[r,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!t)return void n(!1);let e=new AbortController,r=()=>(0,i.resolveDepthMapAccess)(e.signal).then(e=>{n(e.state===i.DEPTH_MAP_ACCESS_STATES.ALLOWED)}).catch(()=>{n(!1)});r();let a=()=>{r()};return window.addEventListener(l.DEPTH_MAP_ACCESS_UNLOCKED_EVENT,a),()=>{e.abort(),window.removeEventListener(l.DEPTH_MAP_ACCESS_UNLOCKED_EVENT,a)}},[t,e]),r}e.s(["MobileDrawerCta",0,function(){let e=(0,n.usePathname)(),a=u(e),i=m(e);return f(e)?(0,t.jsx)(r.default,{href:"/account/water-tests",className:"inline-flex h-11 w-full items-center justify-center rounded-[var(--radius-md)] bg-[#17665b] px-5 text-base font-medium text-white hover:bg-[#124f47]",children:"My test orders"}):a&&i?(0,t.jsx)(r.default,{href:o.CONSOLE_BILLING_URL,title:"Your DepthMap subscription is active. Change the plan or cancel it here.",className:"inline-flex h-11 w-full items-center justify-center rounded-[var(--radius-md)] bg-emerald-600 px-5 text-base font-medium text-white shadow-xs hover:bg-emerald-700 active:bg-emerald-800",children:"Manage subscription"}):a&&d(e)?null:(0,t.jsx)(r.default,{href:a?"/well-map/sign-up?source=mobile-drawer-cta":"/sign-up",onClick:a?()=>(0,s.trackDepthMapCta)("mobile_drawer_cta"):void 0,className:"inline-flex h-11 w-full items-center justify-center rounded-[var(--radius-md)] bg-[var(--primary)] px-5 text-base font-medium text-[var(--primary-foreground)] shadow-xs hover:bg-brand-600 active:bg-brand-700",children:a?"Well Map Sign Up →":"Start Free Trial →"})},"TopBarCta",0,function(){let e=(0,n.usePathname)(),a=u(e),i=m(e);return f(e)?(0,t.jsx)(r.default,{href:"/account/water-tests",className:"hidden md:inline-flex h-9 items-center justify-center rounded-[var(--radius-md)] border border-[#cbd9d5] bg-white px-4 text-sm font-medium text-[#173b42] transition-colors hover:bg-[#f4f7f6]",children:"My test orders"}):a&&i?(0,t.jsx)(r.default,{href:o.CONSOLE_BILLING_URL,title:"Your DepthMap subscription is active. Change the plan or cancel it here.",className:"hidden md:inline-flex h-9 items-center justify-center rounded-[var(--radius-md)] bg-emerald-600 px-4 text-sm font-medium text-white shadow-xs transition-colors hover:bg-emerald-700 active:bg-emerald-800",children:"Manage subscription"}):a&&d(e)?null:(0,t.jsx)(r.default,{href:a?"/well-map/sign-up?source=header-cta":"/sign-up",onClick:a?()=>(0,s.trackDepthMapCta)("header_cta"):void 0,className:"hidden md:inline-flex h-9 items-center justify-center rounded-[var(--radius-md)] bg-[var(--primary)] px-4 text-sm font-medium text-[var(--primary-foreground)] shadow-xs transition-colors hover:bg-brand-600 active:bg-brand-700",children:a?"Well Map Sign Up":"Start Free Trial"})},"isWellMapAudience",0,u,"isWellMapSignUpPage",0,d])},415384,e=>{"use strict";var t=e.i(843476),r=e.i(522016),n=e.i(492161),a=e.i(271645),o=e.i(174080),i=e.i(37727),l=e.i(975157);let s=(0,a.createContext)(null);function c(e){let t=(0,a.useContext)(s);if(!t)throw Error(`<${e}> must be used inside <Sheet>`);return t}function d({open:e,onOpenChange:r,defaultOpen:n=!1,children:o}){let[i,l]=(0,a.useState)(n),[c,u]=(0,a.useState)(!1),[f,m]=(0,a.useState)(!1),h=void 0!==e,b=h?e:i,x=(0,a.useCallback)(e=>{h||l(e),r?.(e)},[h,r]),p=(0,a.useId)(),g=(0,a.useId)(),v=(0,a.useCallback)(()=>u(!0),[]),w=(0,a.useCallback)(()=>m(!0),[]);
12return(0,t.jsx)(s.Provider,{value:{open:b,setOpen:x,titleId:p,descriptionId:g,registerTitle:v,registerDescription:w,hasTitle:c,hasDescription:f},children:o})}function u({asChild:e,onClick:r,children:n,...a}){let{setOpen:o}=c("SheetTrigger");return e?(0,t.jsx)(n.type,{...n.props,onClick:e=>{n.props.onClick?.(e),e.defaultPrevented||o(!0)}}):(0,t.jsx)("button",{type:"button",onClick:e=>{r?.(e),e.defaultPrevented||o(!0)},...a,children:n})}let f={right:"right-0 top-0 bottom-0 h-full w-full max-w-sm border-l animate-slide-in-right",left:"left-0 top-0 bottom-0 h-full w-full max-w-sm border-r animate-slide-in-left",top:"top-0 left-0 right-0 w-full max-h-[90vh] border-b animate-slide-in-top",bottom:"bottom-0 left-0 right-0 w-full max-h-[90vh] border-t animate-slide-in-bottom"};function m({className:e,children:r,side:n="right",showCloseButton:s=!0,preventClose:d=!1,...u}){let{open:h,setOpen:x,titleId:p,descriptionId:g,hasTitle:v,hasDescription:w}=c("SheetContent"),y=(0,a.useRef)(null),j=(0,a.useRef)(null),[N,S]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{S(!0)},[]),(0,a.useEffect)(()=>{if(!h)return;j.current=document.activeElement;let e=y.current;if(e)return(e.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')[0]??e).focus(),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t),j.current?.focus?.()};function t(t){if("Escape"===t.key&&!d){t.preventDefault(),x(!1);return}if("Tab"===t.key&&e){let r=e.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');if(0===r.length)return;let n=r[0],a=r[r.length-1];t.shiftKey&&document.activeElement===n?(t.preventDefault(),a.focus()):t.shiftKey||document.activeElement!==a||(t.preventDefault(),n.focus())}}},[h,d,x]),(0,a.useEffect)(()=>{if(!h)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[h]),h&&N)?(0,o.createPortal)((0,t.jsxs)("div",{className:"fixed inset-0 z-50",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm animate-fade-in",onClick:()=>!d&&x(!1),"aria-hidden":"true"}),(0,t.jsxs)("div",{ref:y,role:"dialog","aria-modal":"true","aria-labelledby":v?p:void 0,"aria-describedby":w?g:void 0,tabIndex:-1,className:(0,l.cn)("absolute flex flex-col","bg-[var(--card)] text-[var(--card-foreground)]","border-[var(--border)] shadow-xl","focus:outline-none",f[n],e),...u,children:[r,s&&(0,t.jsx)(b,{"aria-label":"Close",className:"absolute right-3 top-3 rounded p-1 text-[var(--muted-foreground)] hover:bg-neutral-100 hover:text-[var(--foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-soft)]",children:(0,t.jsx)(i.X,{className:"h-4 w-4"})})]})]}),document.body):null}function h({className:e,...r}){let{titleId:n,registerTitle:o}=c("SheetTitle");return(0,a.useEffect)(()=>{o()},[o]),(0,t.jsx)("h2",{id:n,className:(0,l.cn)("text-base font-semibold text-[var(--foreground)]","font-[var(--font-display)]",e),...r})}function b({asChild:e,onClick:r,children:n,...a}){let{setOpen:o}=c("SheetClose");return e?(0,t.jsx)(n.type,{...n.props,onClick:e=>{n.props.onClick?.(e),e.defaultPrevented||o(!1)}}):(0,t.jsx)("button",{type:"button",onClick:e=>{r?.(e),e.defaultPrevented||o(!1)},...a,children:n})}var x=e.i(519455),p=e.i(823343),g=e.i(912916);let v=[{label:"For Drilling Companies",items:[{label:"Features",href:"/features"},{label:"Pricing",href:"/pricing"},{label:"Mobile Apps",href:"/apps"},{label:"Geology Estimator",href:"/geology/estimator"},{label:"Driller Resources",href:"/resources/driller"},{label:"State Drilling Guides",href:"/resources/driller/state-guides"}]},{label:"For Homeowners",items:[{label:"Well Map",href:"/well-map"},{label:"How Deep Is My Well",href:"/resources/well-owner/find-well-record"},{label:"Find a Contractor",href:"/find-drillers"},{label:"Water Test Kits",href:"/water-tests"},{label:"Well Owner Resources",href:"/resources/well-owner"},{label:"State Well Guides",href:"/resources/well-owner/state-guides"},{label:"Well Diagram Tool",href:"/well-diagram"}]},{label:"Company",items:[{label:"About",href:"/about-us"},{label:"Blog",href:"/blog"},{label:"News",href:"/news"},{label:"Contact",href:"/contact-us"}]}];e.s(["MobileDrawer",0,function(){return(0,t.jsxs)(d,{children:[(0,t.jsx)(u,{asChild:!0,children:(0,t.jsx)(x.Button,{variant:"ghost",size:"icon","aria-label":"Menu",className:"h-10 w-10",children:(0,t.jsx)(n.Menu,{className:"h-5 w-5","aria-hidden":"true"})})}),(0,t.jsxs)(m,{side:"left",className:"w-[min(360px,88vw)] p-0","aria-labelledby":"mobile-drawer-title",children:[(0,t.jsx)(h,{id:"mobile-drawer-title",className:"sr-only",children:"Site navigation"}),(0,t.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,t.jsx)("div",{className:"border-b border-[var(--border)] px-6 pt-6 pb-5",children:(0,t.jsx)(p.MobileDrawerCta,{})}),(0,t.jsx)("nav",{"aria-label":"Primary mobile",className:"flex-1 px-6 py-5",children:v.map(e=>(0,t.jsxs)("section",{className:"mb-7 last:mb-0",children:[(0,t.jsx)("h3",{className:"mb-2 font-[var(--font-mono)] text-xs uppercase tracking-wider text-[color:var(--muted-foreground)]",children:e.label}),(0,t.jsx)("ul",{className:"space-y-0.5",children:e.items.map(n=>(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:n.href,className:"block rounded-[var(--radius-sm)] px-2 py-2 text-base hover:bg-[color:var(--accent)]",children:n.label})},`${e.label}:${n.label}`))})]},e.label))}),(0,t.jsx)("div",{className:"border-t border-[var(--border)] px-6 py-4",children:(0,t.jsx)(r.default,{href:g.CONSOLE_LOGIN_URL,className:"text-sm text-[color:var(--muted-foreground)] hover:text-[color:var(--foreground)]",children:"Sign In"})})]})]})]})}],415384)},103228,e=>{"use strict";var t=e.i(618566),r=e.i(420407);e.s(["default",0,function({children:e}){return(0,r.isChromelessSignupRoute)((0,t.usePathname)())?null:e}])},381411,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(555436),a=e.i(519455),o=e.i(522016),i=e.i(618566),l=e.i(972520),s=e.i(174080),c=e.i(37727),d=e.i(975157);let u=(0,r.createContext)(null);function f(e){let t=(0,r.useContext)(u);if(!t)throw Error(`<${e}> must be used inside <Dialog>`);return t}function m({open:e,onOpenChange:n,defaultOpen:a=!1,children:o}){let[i,l]=(0,r.useState)(a),[s,c]=(0,r.useState)(!1),[d,f]=(0,r.useState)(!1),h=void 0!==e,b=h?e:i,x=(0,r.useCallback)(e=>{h||l(e),n?.(e)},[h,n]),p=(0,r.useId)(),g=(0,r.useId)(),v=(0,r.useCallback)(()=>c(!0),[]),w=(0,r.useCallback)(()=>f(!0),[]);
12return(0,t.jsx)(u.Provider,{value:{open:b,setOpen:x,titleId:p,descriptionId:g,registerTitle:v,registerDescription:w,hasTitle:s,hasDescription:d},children:o})}function h({className:e,children:n,showCloseButton:a=!0,preventClose:o=!1,...i}){let{open:l,setOpen:u,titleId:m,descriptionId:b,hasTitle:p,hasDescription:g}=f("DialogContent"),v=(0,r.useRef)(null),w=(0,r.useRef)(null),[y,j]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{j(!0)},[]),(0,r.useEffect)(()=>{if(!l)return;w.current=document.activeElement;let e=v.current;if(e)return(e.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')[0]??e).focus(),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t),w.current?.focus?.()};function t(t){if("Escape"===t.key&&!o){t.preventDefault(),u(!1);return}if("Tab"===t.key&&e){let r=e.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');if(0===r.length)return;let n=r[0],a=r[r.length-1];t.shiftKey&&document.activeElement===n?(t.preventDefault(),a.focus()):t.shiftKey||document.activeElement!==a||(t.preventDefault(),n.focus())}}},[l,o,u]),(0,r.useEffect)(()=>{if(!l)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[l]),l&&y)?(0,s.createPortal)((0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm animate-fade-in",onClick:()=>!o&&u(!1),"aria-hidden":"true"}),(0,t.jsxs)("div",{ref:v,role:"dialog","aria-modal":"true","aria-labelledby":p?m:void 0,"aria-describedby":g?b:void 0,tabIndex:-1,className:(0,d.cn)("relative z-10 w-full max-w-lg mx-4","rounded-xl bg-[var(--card)] text-[var(--card-foreground)]","border border-[var(--border)] shadow-xl","animate-scale-in","focus:outline-none",e),...i,children:[n,a&&(0,t.jsx)(x,{"aria-label":"Close dialog",className:"absolute right-3 top-3 rounded p-1 text-[var(--muted-foreground)] hover:bg-neutral-100 hover:text-[var(--foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-soft)]",children:(0,t.jsx)(c.X,{className:"h-4 w-4"})})]})]}),document.body):null}function b({className:e,...n}){let{titleId:a,registerTitle:o}=f("DialogTitle");return(0,r.useEffect)(()=>{o()},[o]),(0,t.jsx)("h2",{id:a,className:(0,d.cn)("text-base font-semibold text-[var(--foreground)]","font-[var(--font-display)]",e),...n})}function x({asChild:e,onClick:r,children:n,...a}){let{setOpen:o}=f("DialogClose");return e?(0,t.jsx)(n.type,{...n.props,onClick:e=>{n.props.onClick?.(e),e.defaultPrevented||o(!1)}}):(0,t.jsx)("button",{type:"button",onClick:e=>{r?.(e),e.defaultPrevented||o(!1)},...a,children:n})}let p=(0,r.forwardRef)(({className:e,type:r,error:n,...a},o)=>(0,t.jsx)("input",{type:r,ref:o,className:(0,d.cn)("flex h-10 w-full rounded-[var(--radius-sm)]","border bg-white px-3 py-0","text-sm text-[var(--foreground)]","placeholder:text-neutral-400","transition-[border-color,box-shadow] duration-150","focus-visible:outline-none","focus-visible:ring-[3px] focus-visible:ring-[var(--ring-soft)]",n?"border-danger-500 focus-visible:border-danger-500":"border-[var(--input)] focus-visible:border-brand-500","disabled:cursor-not-allowed disabled:opacity-50","file:border-0 file:bg-transparent file:text-sm file:font-medium",e),...a}));function g({open:e,onOpenChange:a}){let[s,c]=(0,r.useState)(""),[d,u]=(0,r.useState)(null),[f,x]=(0,r.useState)(!1),v=(0,i.useRouter)(),w=(0,r.useRef)(null);(0,r.useEffect)(()=>{e||(c(""),u(null),x(!1),w.current?.abort())},[e]);let y=(0,r.useRef)(!1),j=(0,r.useCallback)(async(e,t)=>{let r=e.trim();if(!r){u(null),x(!1);return}w.current?.abort();let n=new AbortController;w.current=n,x(!0);let a=e=>fetch("/api/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:n.signal}).then(e=>e.json());if(!t){try{let e=await a({query:r,mode:"instant"});n.signal.aborted||y.current||(u(e),x(!1))}catch{}return}a({query:r,mode:"instant"}).then(e=>{n.signal.aborted||y.current||(u(e),x(!1))}).catch(()=>{});try{let e=await a({query:r});y.current=!0,n.signal.aborted||u(e)}catch(e){e instanceof Error&&"AbortError"!==e.name&&console.error("[search] fetch failed",e)}finally{n.signal.aborted||x(!1)}},[]);function N(e){a(!1),v.push(e.url)}return(0,r.useEffect)(()=>{y.current=!1;let e=setTimeout(()=>j(s,!1),150),t=setTimeout(()=>j(s,!0),600);return()=>{clearTimeout(e),clearTimeout(t)}},[s,j]),(0,t.jsx)(m,{open:e,onOpenChange:a,children:(0,t.jsxs)(h,{className:"max-w-2xl p-0 mt-[10vh] mx-4 self-start",showCloseButton:!1,children:[(0,t.jsx)(b,{className:"sr-only",children:"Search DrillerDB"}),(0,t.jsxs)("div",{className:"flex items-center gap-3 border-b border-[var(--border)] px-4 py-3",children:[(0,t.jsx)(n.Search,{className:"h-4 w-4 text-[color:var(--muted-foreground)]","aria-hidden":"true"}),(0,t.jsx)(p,{autoFocus:!0,value:s,onChange:e=>c(e.target.value),onKeyDown:function(e){"Enter"===e.key&&d?.best_match&&(e.preventDefault(),N(d.best_match))},placeholder:"Find a driller, search well records, how deep is my well...","aria-label":"Search query",className:"border-0 shadow-none focus:outline-none focus-visible:ring-0"})]}),(0,t.jsxs)("div",{className:"max-h-[60vh] overflow-y-auto",children:[!s&&(0,t.jsx)("p",{className:"px-5 py-6 text-sm text-[color:var(--muted-foreground)]",children:'Try "how deep is my well", "well drilling near Madison", or a contractor name.'}),s&&f&&!d&&(0,t.jsx)("p",{className:"px-5 py-6 text-sm text-[color:var(--muted-foreground)]",children:"Searching..."}),d?.best_match&&(0,t.jsxs)("button",{type:"button",onClick:()=>N(d.best_match),className:"group flex w-full items-start gap-4 border-b border-[var(--border)] px-5 py-5 text-left transition-colors hover:bg-[color:var(--accent)] focu
12s-visible:bg-[color:var(--accent)] focus-visible:outline-none",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("p",{className:"font-[var(--font-mono)] text-xs uppercase tracking-wider text-[color:var(--muted-foreground)]",children:"Best match"}),(0,t.jsx)("p",{className:"mt-1 font-[var(--font-display)] text-lg font-semibold tracking-tight",children:d.best_match.label}),(0,t.jsx)("p",{className:"mt-1 text-sm text-[color:var(--muted-foreground)]",children:d.best_match.snippet})]}),(0,t.jsx)(l.ArrowRight,{className:"mt-1 h-4 w-4 shrink-0 text-[color:var(--muted-foreground)] transition-transform group-hover:translate-x-0.5","aria-hidden":"true"})]}),d?.suggestions&&d.suggestions.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"px-5 py-2 font-[var(--font-mono)] text-xs uppercase tracking-wider text-[color:var(--muted-foreground)]",children:"More results"}),(0,t.jsx)("ul",{children:d.suggestions.map((e,r)=>(0,t.jsx)("li",{children:(0,t.jsx)(o.default,{href:e.url,onClick:()=>a(!1),className:"flex items-start justify-between gap-4 px-5 py-3 text-sm transition-colors hover:bg-[color:var(--accent)]",children:(0,t.jsxs)("span",{className:"flex-1",children:[(0,t.jsx)("span",{className:"font-medium",children:e.label}),(0,t.jsx)("span",{className:"ml-2 text-[color:var(--muted-foreground)]",children:e.snippet})]})})},`${e.url}-${r}`))})]}),d&&!d.best_match&&!f&&s&&(0,t.jsx)("p",{className:"px-5 py-6 text-sm text-[color:var(--muted-foreground)]",children:"No match yet — try adding a city or ZIP."})]})]})})}p.displayName="Input",e.s(["TopBarSearchTrigger",0,function(){let[e,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){o(!0)}return window.addEventListener("drillerdb:open-search",e),()=>window.removeEventListener("drillerdb:open-search",e)},[]),(0,r.useEffect)(()=>{function t(t){if("/"===t.key&&!e){let e=t.target,r=e?.tagName?.toLowerCase();"input"===r||"textarea"===r||e?.isContentEditable||(t.preventDefault(),o(!0))}}return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Button,{variant:"ghost",size:"icon","aria-label":"Search",onClick:()=>o(!0),className:"h-10 w-10",children:(0,t.jsx)(n.Search,{className:"h-4 w-4","aria-hidden":"true"})}),(0,t.jsx)(g,{open:e,onOpenChange:o})]})}],381411)},288214,e=>{"use strict";let t=["/underground"];e.s(["isImmersiveRoute",0,function(e){return!!e&&t.some(t=>e===t||e.startsWith(`${t}/`))}])},420407,e=>{"use strict";let t="console";function r(e,t){return e===t||e===`${t}/`}e.s(["isChromelessSignupRoute",0,function(e,n=t){return!!e&&!!function(e=t){return"preview"===e||"console"===e}(n)&&(!!r(e,"/sign-up/v2")||function(e=t){return"console"===e}(n)&&r(e,"/sign-up"))}])}]);

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.