1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1178],{27263:(e,t,n)=>{n.d(t,{PreviewProvider:()=>i,g:()=>o});var s=n(95155),r=n(12115),a=n(95704);let l=(0,r.createContext)(void 0),i=e=>{let{children:t,domain:n}=e,[i,o]=(0,r.useState)("");return(0,r.useEffect)(()=>{("www.seo.stage.wisercms.com"===window.location.host||"true"===a.env.NEXT_PUBLIC_IS_PREVIEW)&&o("/preview/".concat(n))},[]),(0,s.jsx)(l.Provider,{value:{baseUrl:i},children:t})},o=()=>{let e=(0,r.useContext)(l);if(void 0===e)throw Error("usePreview must be used within a PreviewProvider");return e}},41062:(e,t,n)=>{n.d(t,{j:()=>h,d:()=>m});var s=n(95155),r=n(12115);let a="quoteModalOpen",l=()=>{var e;return(null==(e=window.history.state)?void 0:e[a])===!0};var i=n(70622),o=n(75889);let c={top:"items-start",center:"items-center",bottom:"items-end"};function d(e){let{open:t,children:n,className:a,valign:l="center",buttonClose:d=!0,onClose:u}=e,[f,h]=(0,r.useState)(t),[m,p]=(0,r.useState)(!1),v=(0,r.useCallback)(()=>{p(!0)},[p]),w=(0,r.useCallback)(()=>{p(!1),h(!1),null==u||u()},[u]),x=(0,r.useCallback)(()=>{p(!1)},[]);(0,r.useEffect)(()=>{h(t),t||p(!1)},[t]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&v()};return f&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow="unset"}},[f,u,v]);let b="flex fixed inset-0 z-101 items-center justify-center w-full h-full border-0 bg-transparent mx-auto max-w-229 w-full overflow-y-auto",j=(0,o.QP)(b,f?"flex":"hidden",c[l],a),g=(0,o.QP)(b,m?"flex":"hidden","absolute max-w-97");return(0,s.jsxs)("dialog",{open:f,"aria-modal":f,className:j,children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-black/40","aria-hidden":"true",onClick:v}),(0,s.jsxs)("div",{className:"relative bg-white z-1 shadow-lg h-full md:h-auto w-full",children:[d&&(0,s.jsx)("button",{type:"button",className:"absolute top-1 right-1 p-3 z-1 md:hidden",onClick:v,children:(0,s.jsx)(i.A,{id:"icon-close",sprite:"/modal.svg",size:24})}),n,m&&(0,s.jsxs)("dialog",{open:m,"aria-modal":m,className:g,children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-black/40","aria-hidden":"true",onClick:v}),(0,s.jsxs)("div",{className:"relative bg-white z-1 shadow-lg w-full",children:[(0,s.jsx)("button",{type:"button",className:"absolute top-1 right-1 p-3 z-1 cursor-pointer",onClick:x,children:(0,s.jsx)(i.A,{id:"icon-close",sprite:"/modal.svg",size:24})}),(0,s.jsxs)("div",{className:"p-8 text-center",children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-[var(--color-1)]/10 text-[var(--color-2)] mx-auto mb-4",children:(0,s.jsx)(i.A,{id:"icon-alarm",sprite:"/modal.svg",size:32})}),(0,s.jsx)("h4",{className:"mb-2",children:"Almost there!"}),(0,s.jsxs)("p",{className:"text-lg mb-5",children:["The best price is just a few ",(0,s.jsx)("br",{}),"clicks away"]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:x,className:"inline-flex items-center justify-center uppercase gap-1 rounded-lg transition-colors border border-transparent cursor-pointer font-bold focus:outline-none px-[25px] py-2.5 bg-[#5bb75b] text-white w-full",children:"Complete quote"}),(0,s.jsx)("button",{type:"button",onClick:w,className:"inline-flex items-center justify-center uppercase gap-1 rounded-lg transition-colors cursor-pointer font-bold focus:outline-none px-[25px] py-2.5 border border-gray-800 hover:bg-gray-100 w-full",children:"Come back later"})]})]})]})]})]})]})}let u=e=>{let{isOpen:t,closeModal:n,iframeUrl:i}=e,[o,c]=(0,r.useState)(!0);return((0,r.useEffect)(()=>{c(!0)},[i]),(0,r.useEffect)(()=>{window.addEventListener("message",e=>{var t;if((null==(t=e.data)?void 0:t.source)==="funnel:iframe"){let t=e.data.data;t.redirectUrl&&(l()&&window.history.replaceState({...window.history.state,[a]:!1},"",window.location.href),window.location.href=t.redirectUrl)}})},[]),i)?(0,s.jsx)(d,{open:t,onClose:n,valign:"top",children:(0,s.jsxs)("div",{className:"relative h-full md:h-178",children:[(0,s.jsx)("div",{className:"absolute bg-white flex justify-center items-center h-full w-full ".concat(!o&&"hidden"),children:"Loading..."}),i&&(0,s.jsx)("iframe",{src:i,title:"Get free estimate",onLoad:()=>c(!1),className:"relative w-full h-full"})]})}):null},f=(0,r.createContext)(void 0);function h(e){let{children:t,params:n}=e,[i,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(""),{baseUrl:h,...m}=n||{},p=(0,r.useCallback)(()=>{d(""),o(!1)},[]),{pushEntry:v,requestClose:w}=function(e){let{isOpen:t,onPop:n}=e,s=(0,r.useRef)(n);s.current=n;let i=(0,r.useCallback)(()=>{l()||window.history.pushState({...window.history.state,[a]:!0},"",window.location.href)},[]),o=(0,r.useCallback)(()=>!!l()&&(window.history.back(),!0),[]);return(0,r.useEffect)(()=>
1{if(!t)return;let e=()=>s.current(),n=e=>{e.persisted&&!l()&&s.current()};return window.addEventListener("popstate",e),window.addEventListener("pageshow",n),()=>{window.removeEventListener("popstate",e),window.removeEventListener("pageshow",n)}},[t]),{pushEntry:i,requestClose:o}}({isOpen:i,onPop:p}),x=(0,r.useCallback)(e=>{let t=new URL(h||""),n=(null==t?void 0:t.search)?"&":"?";if(e)if("string"==typeof e)d(e);else{let t=new URLSearchParams({...m,...e}).toString();d("".concat(h).concat(t?"".concat(n).concat(t):""))}else{let e=new URLSearchParams(m).toString();d("".concat(h).concat(e?"".concat(n).concat(e):""))}v(),o(!0)},[h,m,v]),b=(0,r.useCallback)(()=>{w()||p()},[w,p]),j=(0,r.useMemo)(()=>({openModal:x,closeModal:b,isOpen:i,iframeUrl:c}),[x,b,i,c]);return(0,s.jsxs)(f.Provider,{value:j,children:[t,(0,s.jsx)(u,{isOpen:i,closeModal:b,iframeUrl:c})]})}function m(){let e=(0,r.useContext)(f);if(void 0===e)throw Error("useQuoteModal must be used within a QuoteModalProvider");return e}},55836:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var s=n(95155),r=n(27263),a=n(52619),l=n.n(a),i=n(20063);function o(e){let{as:t,href:n,children:a,className:o,activeClassName:c,defaultClassName:d,...u}=e,{baseUrl:f}=(0,r.g)(),h=(0,i.usePathname)(),m="".concat(f).concat(n?"".concat(n):""),p=t||l(),v="".concat(o||""," ").concat(h===m?c||"":d||"");return(0,s.jsx)(p,{href:m||"/",...u,className:v,children:a})}},70622:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(95155);function r(e){let{size:t=24,path:n="",sprite:r,...a}=e,l="20261006",i="".concat(null!=r?r:"".concat(n,"/sprite.svg")).concat(l?"?v=".concat(l):"","#").concat(a.id);return(0,s.jsx)("svg",{height:t,width:t,...a,children:(0,s.jsx)("use",{href:i})})}},86604:(e,t,n)=>{n.d(t,{default:()=>l});var s=n(95155),r=n(12115),a=n(41062);function l(e){var t;let{site:n}=e,[l,i]=(0,r.useState)(""),{openModal:o}=(0,a.d)(),c=null==(t=n.models_data)?void 0:t.find(e=>e.name.startsWith("lp_funnel_form")),d=e=>{i(e.currentTarget.value)};if(!c)return null;let{first_question_category:u,questions:f,site_phone_number:h,site_color_class:m,form_funnel:p}=c.data;return(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),o({attributes:decodeURIComponent(l)})},children:[(0,s.jsx)("input",{type:"hidden",name:"funnel",value:p}),(0,s.jsx)("input",{type:"hidden",name:"step1_title",value:u}),(0,s.jsx)("input",{type:"hidden",name:"phone",value:h}),(0,s.jsx)("input",{type:"hidden",name:"buttons",value:m}),(0,s.jsx)("p",{children:u}),(0,s.jsx)("div",{children:f.map(e=>(0,s.jsxs)("label",{className:"block text-left",children:[(0,s.jsx)("input",{type:"radio",name:"service-attributes",value:JSON.stringify(e.value),onChange:d,required:!0}),e.display]},e.display))}),(0,s.jsx)("button",{type:"submit",children:"NEXT STEP"})]})}},87338:(e,t,n)=>{n.d(t,{default:()=>a});var s=n(95155),r=n(41062);function a(e){let{href:t,title:n}=e,{openModal:a}=(0,r.d)();return(0,s.jsx)("a",{href:t,onClick:e=>{e.preventDefault(),a()},children:n})}}}]);
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.