1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5856],{22868:function(){},14777:function(){},99830:function(){},70209:function(){},76677:function(e,t,a){"use strict";a.d(t,{BusinessImagesProvider:function(){return s},d:function(){return r}});var n=a(57437),i=a(2265);let o=(0,i.createContext)(void 0),r=()=>{let e=(0,i.useContext)(o);if(!e)throw Error("useBusinessImages must be used within a BusinessImagesProvider");return e},s=e=>{let{children:t,initialIsBusinessImagesLinkHidden:a}=e,[r,s]=(0,i.useState)(a),l=(0,i.useMemo)(()=>({isBusinessImagesLinkHidden:r,setIsBusinessImagesLinkHidden:s}),[r]);return(0,n.jsx)(o.Provider,{value:l,children:t})}},14469:function(e,t,a){"use strict";a.d(t,{C:function(){return s},ClientEnvProvider:function(){return r},Z:function(){return o}});var n=a(57437),i=a(2265);let o=(0,i.createContext)(void 0),r=e=>{let{children:t,initialClientEnv:a}=e,[r,s]=(0,i.useState)(a),l=(0,i.useMemo)(()=>({clientEnv:r,setClientEnv:s}),[r,s]);return(0,n.jsx)(o.Provider,{value:l,children:t})},s=()=>{let e=(0,i.useContext)(o);if(!e)throw Error("useClientEnv must be used within a ClientEnvProvider");return e}},99140:function(e,t,a){"use strict";a.d(t,{P:function(){return o},default:function(){return r}});var n=a(57437);a(2265);var i=a(48667);function o(e){if(void 0===window.clarity||"function"!=typeof window.clarity)return;let t=Object.keys(e);for(let a=0;a<t.length;a+=1)window.clarity("set",t[a],e[t[a]])}function r(e){let{clarityProjectId:t,tags:a}=e;return(0,n.jsx)(i.default,{id:"ms-clarity-".concat(t),dangerouslySetInnerHTML:{__html:'\n (function(c,l,a,r,i,t,y){\n c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\n t=l.createElement(r);t.defer=1;t.src="https://www.clarity.ms/tag/"+i;\n y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\n })(window, document, "clarity", "script", "'.concat(t,'");\n ').concat(null!=a?Object.keys(a).map(e=>'clarity("set","'.concat(e,'","').concat(a[e],'");')).join(" "):"")}})}},49318:function(e,t,a){"use strict";a.d(t,{D:function(){return s},ReviewsProvider:function(){return r}});var n=a(57437),i=a(2265);let o=(0,i.createContext)(void 0),r=e=>{let{children:t,initialIsReviewLinkHidden:a}=e,[r,s]=(0,i.useState)(a),l=(0,i.useMemo)(()=>({isReviewLinkHidden:r,setIsReviewLinkHidden:s}),[r]);return(0,n.jsx)(o.Provider,{value:l,children:t})},s=()=>{let e=(0,i.useContext)(o);if(!e)throw Error("useReviews must be used within a ReviewsProvider");return e}},34045:function(e,t,a){"use strict";a.d(t,{default:function(){return r}});var n=a(2265),i=a(2129),o=a(73977);function r(e){return(0,n.useEffect)(()=>{(async()=>{e.contextParams.experienceType===o.g.MerchandisingV2&&e.contextParams.activityLocation&&e.contextParams.atTestOffer&&(0,i.OD)(e.contextParams.activityLocation,e.contextParams.atTestOffer)})()},[]),null}},91923:function(e,t,a){"use strict";a.d(t,{default:function(){return m}});var n=a(2129),i=a(2265),o=a(53172),r=a(66445),s=a(14797),l=a(13364),c=a(29676),d=a(40443),u=a(80160);function m(e){let[t,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{(async()=>{window.analytics&&window.analytics.ready(()=>{let e="true"===(0,o.getCookie)("HA-loggedIn");(0,s.registerPlugins)(()=>e),a(!0)})})()},[]),(0,i.useEffect)(()=>{(async()=>{var t,a,i,o;let s=null,l=null,m=null,p=null,v=Array.isArray(null===(t=e.properties)||void 0===t?void 0:t.epid)?null===(a=e.properties)||void 0===a?void 0:a.epid[0]:(null===(i=e.properties)||void 0===i?void 0:i.epid)||null,g=(0,r.ld)();if(v&&(0,d.hf)(e.contextParams.domain))m=v;else if((0,d.hf)(e.contextParams.domain)){let t=e.contextParams.referrer||"",a=(0,u.I)(t);s=a.id,l=a.code,m=(0,u.q)(window.location.pathname,l)}if((0,d.hf)(e.contextParams.domain)){let t=(0,c.ZS)(window.location.pathname,null===(o=e.properties)||void 0===o?void 0:o.legacyPageTag);e.properties&&(e.properties.name=t,e.properties.activityLocation=t),e.eventName=t,p=navigator.userAgent}else l=e.contextParams.affiliateCode;let h=window.location.pathname,f="".concat(window.location.origin).concat(window.location.pathname);(0,n.yV)(e.eventName,{...e.properties,path:h,url:f,epid:v,userId:g,homeAdvisorAffiliateId:s,homeAdvisorAffiliate
1Code:l,homeAdvisorEntryPointId:m,userAgent:p})})()},[]),(0,i.useEffect)(()=>{let a=(0,r.ld)(),i=e.eventName;{var s,c;let r=null!==(c=(0,o.getCookie)("ajs_anonymous_id"))&&void 0!==c?c:void 0,d=null===(s=e.properties)||void 0===s?void 0:s.epid,{title:u}=document;r&&t&&(0,n.tR)((0,l.c)({...e.properties,name:i,epid:d,userId:a,anonymousId:r,title:u},e.contextParams),e.clientEnvironment)}},[t]),null}},4314:function(e,t,a){"use strict";a.d(t,{default:function(){return s}});var n=a(2265),i=a(80399),o=a(2129),r=a(92746);function s(e){return(0,n.useEffect)(()=>{(async()=>{var t,a;if(void 0===e.contextParams.searchParams.splitUserOverride){if(e.contextParams.activityLocation&&e.contextParams.atTestOffer&&e.contextParams.splitExperimentVariant){let a=e.contextParams.atTestOffer.split(":");(0,i.F)(a[0],r.P6.SEGMENT_ANONYMOUS_ID,(null!==(t=await (0,o.yQ)())&&void 0!==t?t:"").toString(),a[1])}if(e.contextParams.activityLocation&&e.contextParams.searchParams.experimentevaluation){let t=e.contextParams.searchParams.experimentevaluation.split(":");(0,o.OD)(e.contextParams.activityLocation,e.contextParams.searchParams.experimentevaluation),(0,i.F)(t[0],r.P6.SEGMENT_ANONYMOUS_ID,(null!==(a=await (0,o.yQ)())&&void 0!==a?a:"").toString(),t[1])}}})()},[]),null}},41234:function(e,t,a){"use strict";a.d(t,{default:function(){return o}});var n=a(62551),i=a(95698);function o(e){let{pageName:t,pageViewContexts:a,additionalGlobalContexts:o}=e;return null!=o&&(0,i.addGlobalContexts)(o),(0,n.useEnhancedPageView)({pageName:t,pageViewContexts:a}),null}},18124:function(e,t,a){"use strict";a.d(t,{default:function(){return m}});var n=a(57437),i=a(15012),o=a(66445),r=a(2129),s=a(29676),l=a(2726),c=a(42879),d=a(40443),u=a(2265);function m(e){var t,a,m,p,v;let{brandInfo:g,contextParams:h,components:f,stickyCtaData:C}=e,y=(0,d.Wk)(h.domain),[x,T]=(0,u.useState)(!y),I=(0,u.useRef)(null),P=null!==(p=null===(t=h.componentSplitVariants)||void 0===t?void 0:t[i.tF.CHATBOT_VARIANT_ARTICLES])&&void 0!==p?p:"control",b=null!==(v=null===(a=h.componentSplitVariants)||void 0===a?void 0:a[i.tF.CHATBOT_VARIANT_GEOCAT])&&void 0!==v?v:"control";(0,u.useEffect)(()=>{if(y){let e=()=>{window.scrollY>100?T(!0):T(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}return()=>{}},[y]),(0,u.useEffect)(()=>{if(!y)return;let e=I.current;if(e&&x){let t=e.offsetHeight;document.body.style.paddingBottom="".concat(t,"px")}else document.body.style.paddingBottom="0px";return()=>{document.body.style.paddingBottom="0px"}},[x,y]);let S=null!=C?C:f?(0,c.PT)(f):void 0;return S?!("control"!==P&&"llm_v2_off"!==P||"control"!==b&&"llm_v2_off"!==b)&&(0,n.jsx)("div",{ref:I,className:"bg-white fixed bottom-0 left-0 right-0 z-[20] transition-transform ".concat((null==C?void 0:null===(m=C.componentConfiguration)||void 0===m?void 0:m.deviceType)==="Mobile"?"md:hidden":""),style:{transform:x?"translateY(0px)":"translateY(100%)"},children:(0,n.jsx)("div",{className:y?"showOnScrollWrapper":"",children:(0,n.jsx)(l.S,{url:{method:"GET",action:function(e){let t="https://".concat(g.srPathDomain);return(null==C?void 0:C.ctaLinkOverride)?"".concat(t,"/").concat(C.ctaLinkOverride):(0,s.sI)(t,e,h)}(S.haCategoryId)},title:S.buttonText,handleCTAClick:()=>{var e;(0,r.R7)("Item Clicked",{userType:i.sU,userId:(0,o.ld)(),appView:i.PI,activityLocation:h.activityLocation,description:"Sticky CTA button",visitorPageCategory:null===(e=h.businessTaxonomyValue)||void 0===e?void 0:e.toLocaleUpperCase(),visitorPageGeo:(0,r.Vp)(h)})},description:S.description,queryParams:(0,s.qD)((0,s.pV)(h))})})}):null}},71556:function(e,t,a){"use strict";a.d(t,{default:function(){return f}});var n=a(57437),i=a(2265),o=a(26056),r=a(2726),s=a(2129),l=a(49318),c=a(76677),d=a(15012),u=a(66445),m=a(40468),p=a(29676),v=a(42879),g=a(73977);let h="showOnStickyNav";function f(e){var t,a,f,C;let{landingComponents:y,contextParams:x,components:T,experienceType:I}=e,[P,b]=(0,i.useState)(!0),{isReviewLinkHidden:S}=(0,l.D)(),{isBusinessImagesLinkHidden:E}=(0,c.d)(),[L,R]=(0,i.useState)([]),[w,_]=(0,i.useState)("hiddenMobileStickyNavWithoutInline"),A=null!==(f=null===(t=x.componentSplitVariants)||void 0===t?void 0:t[d.tF.CHATBOT_VARIANT_ARTICLES])&&void 0!==f?f:"control",N=null!==(C=null===(a=x.componentSplitVariants)||void 0===a?void 0:a[d.tF.CHATBOT_VARIANT_GEOCAT])&&void 0!==C?C:"control",k=()=>{let e=!1,t=[];
1y.forEach(a=>{if(a.data&&Object.prototype.hasOwnProperty.call(a.data,h)&&!0===a.data[h]&&a.data.stickyNavLinkName){let n={displayText:a.data.stickyNavLinkName,linkId:(0,m.rs)(a.data.stickyNavLinkName),selected:!1};"recent-reviews"===n.linkId&&S||"photos"===n.linkId&&E||(e||(n.selected=!0,e=!0),t.find(e=>e.linkId===n.linkId)||t.push(n))}}),R(t)};(0,i.useEffect)(()=>{let e=()=>{let e=I===g.g.ProProfile?document.getElementById(d.Or):document.getElementById(d.Jj);if(e){let t=e.getBoundingClientRect().height;Math.abs(e.getBoundingClientRect().y)>=t?(b(!1),_("mobileStickyNavWithoutInline")):(b(!0),_("hiddenMobileStickyNavWithoutInline"))}};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[L]),(0,i.useEffect)(()=>{let e=()=>{let e=0;for(let a=0;a<L.length;a+=1){var t;let n=document.getElementById(null===(t=L[a])||void 0===t?void 0:t.linkId);n&&n.getBoundingClientRect().top<=90&&(e=a)}R(t=>t.map((t,a)=>({...t,selected:a===e})))};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[L]),(0,i.useEffect)(()=>{k()},[y,S,E]);let O=(0,v.P_)(T),j=()=>{var e;(0,s.R7)("Item Clicked",{userType:d.sU,userId:(0,u.ld)(),appView:d.PI,activityLocation:x.activityLocation,description:"Sticky SR entry button",alCategoryId:O.alCategoryId,haCategoryId:O.haCategoryId,visitorPageCategory:null===(e=x.businessTaxonomyValue)||void 0===e?void 0:e.toLocaleUpperCase(),visitorPageGeo:(0,s.Vp)(x)})},D=()=>{let e=O.requestUrl;return(0,p.sI)(e,O.haCategoryId,x)};return(0,n.jsxs)("nav",{"aria-hidden":P,children:[(0,n.jsx)("div",{className:"".concat(I===g.g.ProProfile?w:"fixed top-0 left-0 right-0 transition-transform z-[1000]"),style:{transform:P&&I!==g.g.ProProfile?"translateY(-120%)":"translateY(0px)"},children:(0,n.jsx)(o.w,{ctaUrl:D(),ctaText:O.ctaText,links:L,selectedLinkChanged:e=>{var t;(0,s.R7)("Item Clicked",{userType:d.sU,userId:(0,u.ld)(),appView:d.PI,activityLocation:x.activityLocation,description:"".concat(e.displayText," clicked in sticky nav bar"),visitorPageCategory:null===(t=x.businessTaxonomyValue)||void 0===t?void 0:t.toLocaleUpperCase(),visitorPageGeo:(0,s.Vp)(x),srCtaDisplayed:O.showCta,alCategoryId:O.alCategoryId,haCategoryId:O.haCategoryId})},hideCta:!O.showCta,srCtaClicked:j,proProfileVariant:I===g.g.ProProfile})}),I!==g.g.ProProfile&&!("control"!==A&&"llm_v2_off"!==A||"control"!==N&&"llm_v2_off"!==N)&&(0,n.jsx)("div",{className:"bg-white fixed bottom-0 left-0 right-0 z-[1000] py-4 transition-transform md:hidden",style:{transform:P?"translateY(358%)":"translateY(0px)"},children:(0,n.jsx)(r.S,{url:{method:"GET",action:D()},title:"Get matched with pros",handleCTAClick:j,description:"Share project details to get started.",queryParams:(0,p.qD)((0,p.pV)(x))})})]})}},2750:function(e,t,a){"use strict";var n=a(57437),i=a(48667);let o=e=>"window._vwo_code || (function() {\n var account_id=".concat(e,",\n version=2.0,\n settings_tolerance=2000,\n hide_element='body',\n hide_element_style = 'opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important',\n /* DO NOT EDIT BELOW THIS LINE */\n f=false,w=window,d=document,v=d.querySelector('#vwoCode'),cK='_vwo_'+account_id+'_settings',cc={};try{var c=JSON.parse(localStorage.getItem('_vwo_'+account_id+'_config'));cc=c&&typeof c==='object'?c:{}}catch(e){}var stT=cc.stT==='session'?w.sessionStorage:w.localStorage;code={use_existing_jquery:function(){return typeof use_existing_jquery!=='undefined'?use_existing_jquery:undefined},library_tolerance:function(){return typeof library_tolerance!=='undefined'?library_tolerance:undefined},settings_tolerance:function(){return cc.sT||settings_tolerance},hide_element_style:function(){return'{'+(cc.hES||hide_element_style)+'}'},hide_element:function(){return typeof cc.hE==='string'?cc.hE:hide_element},getVersion:function(){return version},finish:function(){if(!f){f=true;var e=d.getElementById('_vis_opt_path_hides');if(e)e.parentNode.removeChild(e)}},finished:function(){return f},load:function(e){var t=this.getSettings(),n=d.createElement('script'),i=this;if(t){n.textContent=t;d.getElementsByTagName('head')[0].appendChild(n);if(!w.VWO||VWO.caE){stT.removeItem(cK);i.load(e)}}else{n.fetchPriority='high';n.src=e;n.type='text/javascript';n.onerror=function(){window._vwo_code.finish()};d.getElementsByTagName('head')[0].appendChild(n)}},getSettings:function(){try{var e=stT.getItem(cK);if(!e){return}e=JSON.parse(e);if(Date.now()>e.e){stT.removeItem(cK);return}return e.s}catch(e){return}},init:function(){if(d.URL.indexOf('__vwo_disable__')>-1)return;var e=this.settings_tolerance();w._vwo_settings_timer=setTimeout(function(){window._vwo_code.finish();stT.removeItem(cK)},e);var t=d.currentScript,n=d.createElement('style'),i=this.hide_element
1(),r=t&&!t.async&&i?i+this.hide_element_style():'',c=d.getElementsByTagName('head')[0];n.setAttribute('id','_vis_opt_path_hides');v&&n.setAttribute('nonce',v.nonce);n.setAttribute('type','text/css');if(n.styleSheet)n.styleSheet.cssText=r;else n.appendChild(d.createTextNode(r));c.appendChild(n);this.load('https://dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(d.URL)+'&vn='+version)}};w._vwo_code=code;code.init();})();\n ");t.default=e=>{let{vwoAccountId:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("link",{rel:"preconnect",href:"https://dev.visualwebsiteoptimizer.com"}),(0,n.jsx)(i.default,{id:"vwo-spiralyze",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:o(t)}})]})}},64116:function(e,t,a){"use strict";a.d(t,{default:function(){return s}});var n=a(29676),i=a(2265),o=a(15012),r=a(99140);function s(e){let{contextParams:t}=e,a=t.domain.includes(o.Su);return(0,i.useEffect)(()=>{if("function"==typeof window.clarity){let e=a?(0,n.ZS)(window.location.pathname):(0,n.i6)(t.activityLocation);(0,r.P)({brand:a?"homeadvisor":"angi"}),(0,r.P)({pageType:e})}},[]),null}},73460:function(e,t,a){"use strict";a.d(t,{default:function(){return p}});var n=a(57437),i=a(42879),o=a(15012),r=a(73977),s=a(2287),l=a(2265),c=a(85726);let d=l.forwardRef((e,t)=>{var a;let{components:i,rightRailComponents:o,contextParams:s}=e,l=function(e,t){var a,n,i,o,r,s,l;let c={};c.reviews=[];let d=null===(a=e.find(e=>"head-metadata"===e.name))||void 0===a?void 0:a.data,u=null===(n=e.find(e=>"business-profile"===e.name))||void 0===n?void 0:n.data,m=null===(i=e.find(e=>"pro-profiles-reviews-list"===e.name))||void 0===i?void 0:i.data,p=null===(o=e.find(e=>"ratings"===e.name))||void 0===o?void 0:o.data,v=null===(r=t.find(e=>"pro-profiles-default-component"===e.name&&e.data&&"Service Hours"===e.data.header))||void 0===r?void 0:r.data;if(d&&(c.id=d.ogUrl),u&&(c.name=u.name,c.image=u.logoUrl),m){let e=null==m?void 0:m.serviceProviderAddress;c.address={addressCountry:null==e?void 0:e.country,streetAddress:null==e?void 0:e.street1,addressLocality:null==e?void 0:e.city,addressRegion:null==e?void 0:e.state,postalCode:null==e?void 0:e.postalCode};let t=null!==(s=m.reviews)&&void 0!==s?s:[];c.reviews=t.map(e=>({reviewBody:e.text,datePublished:"".concat(e.reportDate),reviewRating:e.rating,author:{name:e.userName||"Homeowner"}}))}
1if(p&&(c.aggregateRating={bestRating:5,ratingValue:p.overallRating,reviewCount:p.reviewCount,worstRating:0}),v){c.openingHours=[];let e=/(\d+):(\d+)\s(AM|PM)\s-\s(\d+):(\d+)\s(AM|PM)/;null===(l=v.serviceHours)||void 0===l||l.forEach(t=>{Object.entries(t).forEach(t=>{if(e.test(t[1])){var a;let[,n,i,o,r,s,l]=e.exec(t[1])||[],d="PM"===o?Number(n)+12:Number(n),u="PM"===l?Number(r)+12:Number(r);null===(a=c.openingHours)||void 0===a||a.push({opens:"".concat(d,":").concat(i,":00"),dayOfWeek:"".concat(t[0]),closes:"".concat(u,":").concat(s,":00")})}})})}return c}(i,o),{address:d}=l,{aggregateRating:u}=l;if(s.experienceType!==r.g.ProProfile)return null;let m=e=>"number"==typeof e.reviewRating&&e.reviewRating<=5&&e.reviewRating>=0&&!!e.author.name&&!!e.reviewBody;return(0,n.jsx)("div",{ref:t,children:(0,n.jsx)(c.hg,{item:{"@context":"https://schema.org","@type":"LocalBusiness","@id":l.id,name:l.name,image:l.image,address:{"@type":"PostalAddress",addressCountry:null==d?void 0:d.addressCountry,addressLocality:null==d?void 0:d.addressLocality,addressRegion:null==d?void 0:d.addressRegion,postalCode:null==d?void 0:d.postalCode},url:l.id,...l.reviews&&l.reviews.length>0&&u&&void 0!==u.reviewCount?{review:l.reviews.filter(e=>m(e)).map(e=>({"@type":"Review",reviewBody:e.reviewBody,reviewRating:{"@type":"Rating",ratingValue:e.reviewRating,bestRating:5,worstRating:0},datePublished:e.datePublished,author:{"@type":"Person",name:e.author.name||"Homeowner"},itemReviewed:{"@type":"LocalBusiness",name:l.name}}))}:{},...u&&void 0!==u.ratingValue&&void 0!==u.reviewCount?{aggregateRating:{"@type":"AggregateRating",bestRating:5,ratingV
1alue:u.ratingValue,reviewCount:u.reviewCount,worstRating:0}}:{},openingHoursSpecification:null===(a=l.openingHours)||void 0===a?void 0:a.map(e=>({"@type":"OpeningHoursSpecification",opens:e.opens,closes:e.closes,dayOfWeek:e.dayOfWeek}))}})})});d.displayName="LocalBusinessSchema";var u=a(29080);function m(e){let{brandInfo:t,components:a,taxonomy:o,contextParams:r,clientEnvironment:l,deviceType:c,userGeo:d,anonymousId:m,avId:p,isEmailEligible:v,profileCTACards:g}=e,h=r.mainComponentsWidth===u.P_.NARROW?"narrow-grid":"col-span-full";return a.filter(e=>e.name!==s.h.HEAD_METADATA&&e.name!==s.h.STICKY_NAV&&e.name!==s.h.STICKY_CTA_BUTTON).map(e=>{var a,f;let C="",y="",x=!!(null===(a=e.data.componentConfiguration)||void 0===a?void 0:a.fullWidthMobile),T=!!(null===(f=e.data.componentConfiguration)||void 0===f?void 0:f.fullWidthDesktop);x&&T?(y="w-screen",C="w-screen"):x?C=e.name===s.h.WHATS_NEXT_APP_DOWNLOAD||e.name===s.h.WHATS_NEXT_HERO?"w-screen md:w-full":"w-screen lg:w-full":T&&(y="lg:w-screen");let I=r.mainComponentsWidth===u.P_.NARROW?h:"search-width";return e.name===s.h.SEARCH_BAR||e.name===s.h.SEARCH_RESULTS?(0,n.jsx)("section",{className:"".concat(I," w-full ").concat(C," ").concat(e.name===s.h.SEARCH_BAR),children:(0,i.J9)(t,e,r,o,l,c,d,void 0,m,p,v,g)},"landing-pages-response-".concat(e.name,"-").concat(e.data.id||e.data.uuid||Math.random())):e.name===s.h.ARTICLE_CONTENT?(0,i.J9)(t,e,r,o,l,c,d,void 0,m,p,v,g):e.name===s.h.PROFILE_CTA_CARDS?(0,n.jsx)("section",{className:"col-span-full w-full ".concat(y," ").concat(C),children:(0,i.J9)(t,e,r,o,l,c,d,void 0,m,p,v,g)},"landing-pages-response-".concat(e.name,"-").concat(e.data.id||e.data.uuid||Math.random())):(0,n.jsx)("section",{className:"".concat(h," w-full ").concat(y," ").concat(C),children:(0,i.J9)(t,e,r,o,l,c,d,void 0,m,p,v,g)},"landing-pages-response-".concat(e.name,"-").concat(e.data.id||e.data.uuid||Math.random()))})}function p(e){let{brandInfo:t,components:a,rightRailComponents:l,taxonomy:c,contextParams:u,clientEnvironment:p,deviceType:v,userGeo:g,anonymousId:h,avId:f,isEmailEligible:C,profileCTACards:y}=e,x=u.experienceType===r.g.ProProfile,T=function(e,t){let a=e.filter(e=>e.data&&(!e.data.deviceType||e.data.deviceType.toLowerCase()===o.Yi.ALL||(null==t?void 0:t.toLowerCase())===e.data.deviceType.toLowerCase())),n=a.map(e=>e.data.rightRailAligned).indexOf(!0),i=a.map(e=>e.data.rightRailAligned).lastIndexOf(!0),r=-1!==n&&-1!==i;return{componentsBeforeRail:r?a.slice(0,n):[],componentsAlignedToRail:r?a.slice(n,i+1):[],componentsAfterRail:r?a.slice(i+1,a.length):[],componentsNoRail:r?void 0:a}}(a,v),I="".concat((null==v?void 0:v.toLocaleLowerCase())===o.Yi.DESKTOP||x?"flex flex-col col-span-full w-full \n ml:col-start-9 ml:col-span-4\n place-self-start":"hidden"," ").concat(x?"ml:border ml:rounded-sm ml:border-gray-200 ml:p-6 ml:sticky ml:top-6 bg-white":"ml:h-full"),P=e=>u.experienceType===r.g.ProProfile&&e.name===s.h.STICKY_NAV;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d,{components:a,rightRailComponents:l,contextParams:u}),(0,n.jsx)(m,{brandInfo:t,components:T.componentsNoRail?T.componentsNoRail:T.componentsBeforeRail,taxonomy:c,contextParams:u,clientEnvironment:p,deviceType:v,userGeo:g,anonymousId:h,avId:f,isEmailEligible:C,profileCTACards:y}),T.componentsAlignedToRail.length>0&&(0,n.jsx)("section",{className:"flex flex-col w-full col-span-full ml:col-span-7",children:T.componentsAlignedToRail.map(e=>(0,n.jsx)("section",{className:P(e)?"proProfileStickyNav":"",children:P(e)?(0,i.J9)(t,e,u,c,p,v,g,T.componentsAlignedToRail,h,f,C):(0,i.J9)(t,e,u,c,p,v,g,void 0,h,f,C)},"landing-pages-response-".concat(e.name)))}),l.length>0&&(0,n.jsx)("aside",{className:I,children:(0,n.jsx)("div",{className:"sticky top-0 flex flex-col ml:max-h-[100vh] overflow-y-auto",children:l.map(e=>(0,n.jsx)("div",{children:(0,i.J9)(t,e,u,c,p,v,g,void 0,h,f,C,y)},"landing-pages-response-".concat(e.name)))})}),(0,n.jsx)(m,{brandInfo:t,components:T.componentsAfterRail,taxonomy:c,contextParams:u,clientEnvironment:p,deviceType:v,userGeo:g,anonymousId:h,avId:f,isEmailEligible:C,profileCTACards:y})]})}},80566:function(e,t,a){"use strict";a.d(t,{default:function(){return r}});var n=a(57437),i=a(42879),o=a(15012);function r(e){let{brandInfo:t,stickyType:a,stickyComponents:r,taxonomy:s,contextParams:l,clientEnv
1ironment:c,deviceType:d,userGeo:u}=e,m=r&&r.length,p="fixed z-[1000] transition-transform right-0 left-0 ".concat(a===o.rF.STICKY_BOTTOM?"bg-white bottom-0":"top-0");return m?(0,n.jsx)("div",{className:p,children:r.map(e=>(0,i.J9)(t,e,l,s,c,d,u))}):null}},48189:function(e,t,a){"use strict";a.d(t,{ChatbotExperimentEvaluation:function(){return r}});var n=a(2265),i=a(2129),o=a(15012);function r(e){let{contextParams:t}=e;return(0,n.useEffect)(()=>{var e,a;let n=null!==(e=t.componentSplitVariants)&&void 0!==e?e:{},r=null;if(n[o.tF.CHATBOT_VARIANT_GEOCAT]?r=o.tF.CHATBOT_VARIANT_GEOCAT:n[o.tF.CHATBOT_VARIANT_ARTICLES]&&(r=o.tF.CHATBOT_VARIANT_ARTICLES),!r)return;let s=n[r];if(!s)return;let l="".concat(r,":").concat(s);(0,i.OD)(null!==(a=t.activityLocation)&&void 0!==a?a:"",l)},[t.componentSplitVariants,t.activityLocation]),null}},2287:function(e,t,a){"use strict";var n,i,o,r;a.d(t,{h:function(){return n}}),(o=n||(n={})).HEAD_METADATA="head-metadata",o.BREADCRUMBS="breadcrumbs",o.GUIDEDPATHHERO="guided-path-hero",o.MATCHINGPROCESS="matching-process",o.HERO="hero",o.HOMEOWNER_STORY="homeowner-story",o.CONTENT_HERO="content-hero",o.PROMOTIONAL_HERO="promotional-hero",o.BYLINE="byline",o.ARTICLE_CONTENT="article-content",o.CONTENT_HUB="content-hub",o.CONTENT_CARDS="content-cards",o.SR_CTA="sr-cta",o.PRO_LIST="pro-list",o.SEO_LINKS="seo-links",o.SEO_LINKS_NAVIGATION="seo-links-navigation",o.REVIEWS="reviews",o.FAQ="faq",o.STICKY_NAV="sticky-nav",o.LARGE_CATEGORY_HERO="large-category-hero",o.CALLOUT_BLOCK="callout-block",o.STICKY_CTA_BUTTON="cta-button",o.EMAIL_SUBSCRIPTION="email-capture",o.FEATURED_PRO_CAROUSEL="featured-pro-carousel",o.LEGACY_HOMEPAGE_HERO="legacy-homepage-hero",o.TOC="toc",o.RELATED_ARTICLES="related-articles",o.PRO_AVAILABILITY="pro-availability",o.START_PRO_SEARCH="start-pro-search",o.SUGGESTED_PROJECTS="suggested-projects",o.IMAGE_CAROUSEL_HERO="image-carousel-hero",o.DIRECTORY_HERO="directory-hero",o.TRUST_BUILDER="trust-builder",o.TRUST_BUILDER_DYNAMIC="trust-builder-dynamic",o.DETERMINE_NEEDS="determine-needs",o.INFO_CARD_CAROUSEL="info-card-carousel",o.PARAGRAPH_LIST="paragraph-list",o.IMAGE="image",o.VIDEO="video",o.MEDIA="media",o.TABLE="table",o.PROJECT_COSTS="project-costs",o.NUMBERED_LIST="numbered-list",o.ICON_BANNER="icon-banner",o.PROFILE_CTA_CARDS="profile-cta-cards",o.JOB_REVIEW_STATUS="job-review-status",o.DUAL_LIST="dual-list",o.QUICK_FACTS="quick-facts",o.MINI_CTA="mini-cta",o.SEARCH_BAR="search-bar",o.SEARCH_RESULTS="search-results",o.INTERACTIVE_DATA_VIZ="interactive-data-viz",o.WHATS_NEXT_CARD="whats-next-card",o.WHATS_NEXT_HERO="whats-next-hero",o.WHATS_NEXT_APP_DOWNLOAD="whats-next-app-download",o.PROMOTIONAL_CARD_CONTAINER="promotional-card-container",o.PRO_PROFILES_DEFAULT_COMPONENT="pro-profiles-default-component",o.BUSINESS_PROFILE="business-profile",o.PRO_PROFILES_RAQ_CTA="pro-profile-raq-cta",o.ONLINE_ENROLL_ADMISSIONS_SUBMIT="online-enroll-admissions-submit",o.ONLINE_ENROLL_BACKGROUND_CHECK="online-enroll-background-check",o.ONLINE_ENROLL_HEADER="online-enroll-header",o.ONLINE_ENROLL_PROFILE_DESCRIPTION="online-enroll-profile-description",o.ONLINE_ENROLL_RADIUS_UI="online-enroll-radius-ui",o.ONLINE_ENROLL_TASK_SELECTION="online-enroll-task-selection",o.ONLINE_ENROLL_MULTI_STEP_NAV="online-enroll-multi-step-nav",o.INSIGHT_BOX="insight-box",o.TEXT_AREA="text-area",o.PRO_PROFILES_REVIEWS_LIST="pro-profiles-reviews-list",o.SR_FLOW_ADDRESS="service-request-path-address-card",o.SR_FLOW_CONTACT="service-request-path-contact-card",o.SR_FLOW_HEADER="flow-header",o.RATINGS="ratings",o.SR_FLOW_PHONE_CURED_CARD="service-request-path-phone-cure-card",o.MY_PROJECTS="my-projects",o.BUSINESS_IMAGES="business-images",o.QA="qa",o.SR_FLOW_BLOCKED="service-request-path-blocked-card",o.SR_FLOW_VERIFICATION="service-request-path-verification-card",o.CHATBOT="chatbot",o.COLLAPSIBLE_SECTION="collapsible-section",o.PAGE_SPECIFIC_SCRIPT="page-specific-script",o.REVIEWS_CONTAINER="reviews-container",o.PROJECT_GALLERY="project-gallery",o.ZIP_CODE_CAPTURE_HERO="zip-code-capture-hero",o.ASK_A_PRO="ask-a-pro",(r=i||(i={})).RESPONSIVE="responsive",r.DEFAULT="default",r.NARROW="narrow"},42879:function(e,t,a){"use strict";a.d(t,{V7:function(){return nr},J9:function(){return nn},PT:function(){return no},P_:function(){return ni}});var n,i,o,r,s,l,c=a(57437),d=a(15012),u=a(66445),m=a(2129),p=a(70586),v=a(29676),g=a(40468),h=a(62551),f=a(40443),C=a(51766),y=a(2265),x=a(29080),T=a(2287),I=e=>{var t;let{children:a,className:n="",componentConfiguration:i,contextParams:o,...r}=e;return(0,c.jsx)("div",{className:"".concat(a?(t=null==i?void 0:i.componentSpacing,null==o||!o.domain||(0,f.uq)(o.domain)||(0,f.hf)(o.domain)||(0,f.Wk)(o.domain)?(null==t?void 0:t.removeBottomSpacing)?"mb
1-none":function(e){switch(e){case x.D9.CONDENSED:return"mb-condensed";case x.D9.REGULAR:return"mb-regular";default:return"mb-default"}}(null==o?void 0:o.componentGap):"mb-regular"):""," ").concat(n),...r,children:a})};function P(e){let{children:t,contextParams:a,componentConfiguration:n}=e,i=(0,y.useRef)(null),o=n.sprigConfiguration,r=(null==o?void 0:o.name)||"",s=(null==o?void 0:o.delay)||2,l=(null==o?void 0:o.threshold)||.5,d="",u=(null==o?void 0:o.sprigSplitMapping)&&o.sprigSplitMapping.length>0;if(o&&a.splitExperimentVariant&&u){let e=o.sprigSplitMapping.find(e=>e.splitTestVariant===a.splitExperimentVariant);e&&(d=e.sprigEventId)}return!function(e){let{sprigEventId:t,metadata:a={},delay:n=2,threshold:i=.5,targetRef:o,maxTriggers:r=1}=e;!function(e){let{delay:t,threshold:a,targetRef:n,callback:i,maxTriggers:o=1}=e,r=(0,y.useRef)(null),s=(0,y.useRef)(0);(0,y.useEffect)(()=>{if(!n.current)return;let e=new IntersectionObserver(n=>{let[l]=n;l.isIntersecting&&l.intersectionRatio>=a?!r.current&&s.current<o&&(r.current=setTimeout(()=>{i(),s.current+=1,s.current>=o&&e.disconnect(),r.current=null},t)):r.current&&(clearTimeout(r.current),r.current=null)},{threshold:a});return e.observe(n.current),function(){e.disconnect(),r.current&&clearTimeout(r.current)}},[t,a,n,i,o])}({delay:n,threshold:i,targetRef:o,maxTriggers:r,callback:()=>{try{var e;null===(e=window.Sprig)||void 0===e||e.track(t,a)}catch(e){}}})}({sprigEventId:d,metadata:{activityLocation:a.activityLocation,description:r,splitExperimentVariant:a.splitExperimentVariant},targetRef:i,delay:s,threshold:l}),(0,c.jsx)("div",{ref:i,"data-testid":"sprig-wrapper",children:t})}var b=e=>{let{children:t,className:a="",componentConfiguration:n,contextParams:i,...o}=e,r=!!(null==n?void 0:n.sprigConfiguration),s=!!i;return(0,c.jsx)(I,{className:a,componentConfiguration:n,contextParams:i,...o,children:r&&s&&n&&i?(0,c.jsx)(P,{componentConfiguration:n,contextParams:i,children:t}):t})};function S(e){let{brandInfo:t,srCtaData:a,contextParams:n,deviceType:i}=e,o=(0,h.useGetSnowplowDomainInfo)();function r(){var e;(0,m.R7)("Item Clicked",{userType:d.sU,userId:(0,u.ld)(),appView:d.PI,activityLocation:n.activityLocation,description:"Service Request Flow entry button vis",visitorPageCategory:null===(e=n.businessTaxonomyValue)||void 0===e?void 0:e.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(n)})}let s=async()=>{r()};function l(e){return function(e,a){let r="https://".concat(t.srPathDomain);return a&&(n.searchParams.postalCode=a),o&&(0,f.H_)(t.domain)&&(n.searchParams._sp=(0,h.getQueryStringValue)(o,t.domain,C.XT,i)),(0,v.sI)(r,e,n)}(null==a?void 0:a.haCategoryId,e||n.postalCode)}let y=async(e,t)=>{t.preventDefault(),r(),setTimeout(()=>{window.location.href=l(e)},300)};return(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,contextParams:n,children:(0,c.jsx)(p.O,{id:(0,g.rs)(a.stickyNavLinkName,"sr-cta"),"data-testid":"serviceRequestCta",handleCta:s,title:null==a?void 0:a.title,description:null==a?void 0:a.description,ctaUrl:l(),ctaText:null==a?void 0:a.ctaText,size:"responsive",zipCodeEnabled:null==a?void 0:a.zipEnabled,handleZipSubmit:y,activityLocation:n.activityLocation,postalCode:n.postalCode,ctaOverrideLink:a.ctaOverrideLink,noticeTitle:a.noticeTitle,noticeText:a.noticeText})})}var E=a(62694),L=a(73977);function R(e){var t;let{contentHubResponse:a,contextParams:n,taxonomy:i}=e,{teasers:o,title:r,subtitle:s,buttonText:l,buttonUrl:d,backgroundColor:u}=a||{},m=n.experienceType===L.g.Merchandising?"":l;return o?(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,id:(0,g.rs)(a.stickyNavLinkName,"content-hub"),contextParams:n,children:(0,c.jsx)(E.Z,{contentTitle:r,subtitle:s,buttonText:m,articles:o,buttonUrl:d,hubActivityLocation:n.activityLocation||"",backgroundColor:u||"gray",isBot:n.isBot,srPathQueryString:(0,v.pV)(n),taxonomyInfo:{homeAdvisorTaskId:null==i?void 0:i.haOid,angiCategoryId:null==i?void 0:i.alCatId,taxonomyUuid:null==i?void 0:i.uuid},parentTaxonomyInfo:null==i?void 0:null===(t=i.parents)||void 0===t?void 0:t.map(e=>({homeAdvisorTaskId:e.haOid,angiCategoryId:e.alCatId,taxonomyUuid:e.uuid})),isFallback:a.isFallback})}):null}var w=a(62973);function _(e){var t,a,n;let{seoLinkData:i,taxonomy:o,contextParams:r}=e;if(!i||!i.seoLinks||!i.seoLinks.length)return null;let{heading:s,expandedDefault:l,seoLinks:u,subHeaderText:m}=i,p=null!==(n=null==o?void 0:null===(t=o.name)||void 0===t?void 0:t.toLocaleUpperCase())&&void 0!==n?n:"N/A",h={userType:d.sU,appView:d.PI,activityLocation:r.activityLocation,description:"".concat(s," link"),visitorPageCategory:p};return(0,c.jsx)(b,{componentConfiguration:i.componentConfiguration,id:(0,g.rs)(null===(a=i.componentConfiguration)||void 0===a?void 0:a.stickyNavLinkName),contextParams:r,children:(0,c.jsx)(w.d,{heading:s,expandedDefault:l||r.isBot,seoLinks:u,subHeaderText:m||"",enableTracking:!0,segmentProps:h,srPathQueryString:(0,v.pV)(r)})})}var A=a(45956),N=a(92366);function k(){return(0,u.ej)(r.USER_PREFERRED_POSTAL_CODE)}function O(e){let{brandInfo:t,heroComponentData:a,contextParams:n,clientEnv
1ironment:i,userGeo:o}=e,[s,l]=(0,y.useState)(!1),[p,g]=(0,y.useState)(n.postalCode);(0,y.useEffect)(()=>{if(!n.country&&!n.region&&!n.city){let e=k();p||e?!p&&e&&g(e):(async()=>{try{(null==o?void 0:o.postalCode)&&o.postalCode!==p&&g(o.postalCode)}catch(e){console.error(e)}})()}},[n,i,p]);let h=a.breadcrumbs?a.breadcrumbs.map(e=>({title:e.name,href:e.link})):[{title:t.name,href:n.baseUrl},{title:"Local Reviews",href:(0,f.hf)(t.domain)?"".concat(n.baseUrl,"c.html"):"".concat(n.baseUrl,"/companylist")}];return(0,c.jsxs)(b,{componentConfiguration:a.componentConfiguration,contextParams:n,id:d.Jj,children:[s&&(0,c.jsx)(N.Z,{fullPage:!0,"data-testid":"loadingSpinner"}),(0,c.jsx)(A.Z,{onBreadcrumbClickCallback:()=>{var e;(0,m.R7)("Item Clicked",{userId:u.ld,pageSection:"Hero",activityLocation:n.activityLocation,description:"Breadcrumbs link clicked",visitorPageCategory:null===(e=n.businessTaxonomyValue)||void 0===e?void 0:e.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(n)})},onSubmitCallback:e=>{var t;l(!0),(0,m.R7)("Item Clicked",{userId:u.ld,pageSection:"Hero",activityLocation:n.activityLocation,description:"User updated location",visitorPageCategory:null===(t=n.businessTaxonomyValue)||void 0===t?void 0:t.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(n)}),function(e){let t=new Date;t.setFullYear(t.getFullYear()+1),(0,u.wn)(r.USER_PREFERRED_POSTAL_CODE,e,".".concat((0,v.tC)(window.location.host)),t)}(e);let a=new URL(window.location.href);a.searchParams.has("postalCode")?a.searchParams.set("postalCode",e):a.searchParams.append("postalCode",e),n.splitExperimentVariant&&!a.searchParams.has("splitUserOverride")&&"NONE"!==n.splitExperimentVariant&&a.searchParams.append("splitUserOverride",n.splitExperimentVariant),window.location.href=a.toString()},updateLinkClicked:e=>{var t,i;e?(0,m.R7)("Item Clicked",{userId:u.ld,pageSection:"Hero",activityLocation:n.activityLocation,description:"User opened location update modal",visitorPageCategory:null===(t=a.category)||void 0===t?void 0:t.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(n)}):(0,m.R7)("Item Clicked",{userId:u.ld,pageSection:"Hero",activityLocation:n.activityLocation,description:"User exited location update modal",visitorPageCategory:null===(i=a.category)||void 0===i?void 0:i.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(n)})},title:a.title,primaryCatId:a.primaryCatId,categoryName:a.category,cityName:a.cityName,locationText:p?"Not in ".concat(p,"?"):"",breadCrumbData:h,backgroundUrl:a.backgroundUrl,enableSEO:!0,displayBreadcrumbs:a.hasBreadcrumbs})]})}(n=r||(r={})).USER_PREFERRED_POSTAL_CODE="user_preferred_postal_code",n.USER_ID="userSessionId",n.KEY_CODE="keyCode";var j=a(13084),D=a(38801);class U extends Error{}class B extends Error{}
1class H extends Error{}class M extends Error{}function V(e){let t=[];for(let a in e)e[a]&&t.push("".concat(encodeURIComponent(a),"=").concat(encodeURIComponent(e[a]).replace(/[!'()*]/g,e=>"%".concat(e.charCodeAt(0).toString(16))).replace(/%21/g,"%2521").replace(/%28/g,"%2528").replace(/%29/g,"%2529").replace(/%27/g,"%2527")));return t.length>0?"?".concat(t.join("&")):""}async function F(e,t){let a=await fetch("".concat(e,"/landing/api/v4/pro-profiles"),{cache:"no-store",method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),n=await a.json();if(200===a.status)return n;let i=n.message||"No additional info";if(400===a.status)throw new B("Bad request: ".concat(i));if(404===a.status)throw new U("Page Not Found: ".concat(i));throw new M("Internal Server Error: ".concat(i))}async function G(e,t){let a=t.brand===L.H2.Angi?"v2":"v3",n="".concat(e,"/landing/api/").concat(a,"/reviews").concat(V(t)),i=await fetch(n,{cache:"no-store"});if(200===i.status)return i.json();if(404===i.status)throw new U("Page Not Found");if(i.status<500)throw new H("Access Forbidden");throw new M("Internal Server Error")}async function q(e,t){let a="".concat(e,"/landing/api/v5/reviews").concat(V(t)),n=await fetch(a,{cache:"no-store"});if(200===n.status)return n.json();if(404===n.status)throw new U("Page Not Found");if(n.status<500)throw new H("Access Forbidden");throw new M("Internal Server Error")}var Z=a(49318);let W={leafSlug:"",reportDate:"",reviewId:"0",serviceProviderId:0,serviceProviderLogoUrl:"",serviceProviderName:"",text:"",userName:""},K=()=>{let e=[];for(let t=0;t<10;t+=1)e.push(W);return e},Y=["60629","79936","90011","11385","90650","77494","91331","90201","10467","11226","11211","11236","11220","92335","08701","11208","11234","90250","11373","91342"];function X(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Y.slice(0,e)}!function(e){for(let t=e.length-1;t>0;t-=1){let a=Math.floor(Math.random()*(t+1));[e[t],e[a]]=[e[a],e[t]]}}(Y);let z=e=>("string"==typeof e||e instanceof String?new Date(e):e).toLocaleDateString("en-us",{year:"numeric",month:"long",day:"2-digit"});function J(e){var t,a;let{reviewCarouselData:n,contextParams:i,clientEnvironment:o,deviceType:r,taxonomy:s}=e,l=i.domain.includes(d.hb),{setIsReviewLinkHidden:u}=(0,Z.D)(),[m,p]=(0,y.useState)(n),[h,C]=(0,y.useState)(""),[x,T]=(0,y.useState)(n.enableClientSideRendering),[I,P]=(0,y.useState)(n.enableClientSideRendering||(null==m?void 0:null===(t=m.reviews)||void 0===t?void 0:t.length)||!1);async function S(){try{var e,t,a,r,l,c,v,g,h;let C;if(n.zipcodesForReviewSearch){let e={zipCodes:n.zipcodesForReviewSearch,keywords:null!==(a=n.keywords)&&void 0!==a?a:[],baseTask:null==s?void 0:s.name,parentTasks:null!==(r=null==s?void 0:null===(t=s.parents)||void 0===t?void 0:t.map(e=>e.name))&&void 0!==r?r:[]};C=await q(o.lpbeApiDomain,e)}else{let e=null===(l=n.alCategoryIds)||void 0===l?void 0:l.join(","),t=s?[s.uuid,...(s.parents||[]).map(e=>e.uuid)].join(","):"",a=i.postalCode||k();!a&&i.isBot&&(a=X(1)[0]);let r={alCategoryIds:e,postalCodeOverride:a,numReviews:n.numReviews||0,postalCodeCollectionIds:null===(c=n.postalCodeCollectionIds)||void 0===c?void 0:c.join(","),keywords:null===(v=m.keywords)||void 0===v?void 0:v.join(","),taskUuids:t,brand:(0,f.uD)(i.domain,(0,f.f6)(i.domain))};C=await G(o.lpbeApiDomain,r)}p({...m,reviews:C.reviews,stateAbbrev:null!==(g=C.stateAbbrev)&&void 0!==g?g:m.stateAbbrev,city:null!==(h=C.city)&&void 0!==h?h:m.city}),u(C.reviews&&C.reviews.length<d.Ri||!1),T(!1),P((null==C?void 0:null===(e=C.reviews)||void 0===e?void 0:e.length)||!1)}catch(e){console.error("Error fetching reviews:",e),P(!1),T(!1)}}return(0,y.useEffect)(()=>{x&&S()},[]),(0,y.useEffect)(()=>{if(m.reviews){let e=new Date(0);m.reviews.forEach(t=>{let a=new Date(t.reportDate);a>e&&(e=a)}),C(z(e)),u(m.reviews.length<d.Ri)}},[m]),I&&(0,c.jsx)(b,{componentConfiguration:n.componentConfiguration,contextParams:i,children:(0,c.jsx)(D.ZP,{"data-snowplow-component-type":"Review Carousel",id:(0,g.rs)(n.stickyNavLinkName),children:(0,c.jsx)("div",{className:"w-screen col-span-full",children:(0,c.jsx)(j.Z,{activityLocation:i.activityLocation||"",conjugation:m.categoryConjunctionName,lastUpdatedDate:h||z(new Date),location:"".concat(m.city,", ").concat(m.stateAbbrev),isLoading:x,reviews:m.reviews||K(),taxonomyInfo:{homeAdvisorTaskId:null==s?void 0:s.haOid,angiCategoryId:null==s?void 0:s.alCatId,taxonomyUuid:null==s?void 0:s.uuid},parentTaxonomyInfo:null==s?void 0:null===(a=s.parents)||void 0===a?void 0:a.map(e=>({homeAdvisorTaskId:e.haOid,angiCategoryId:e.alCatId,taxonomyUuid:e.uuid})),raqButtonUrl:(0,v.sI)(l?"https://request.angi.com":"https://request.homeadvisor.com",m.haCategoryId||0,i),proLinkBase:l?"https://www.angi.com":"https://www.homeadvisor.com",enableSeo:!0,sessionId:"",deviceType:r||"desktop",isBot:i.isBot})})})})}var Q=a(89180);
1function $(e){let{contextParams:t,BusinessProfileData:a}=e,{logoUrl:n,name:i,reviewCount:o,overallRating:r,isPaidPro:s,spid:l,phoneNumber:d,isSuperServiceAwardWinner:u,componentConfiguration:m,categoryProperties:p}=a,v={...m,rightRailAligned:!0};return(0,c.jsx)(b,{componentConfiguration:v,contextParams:t,className:"businessProfileHero",children:(0,c.jsx)(Q.qt,{name:i,logoUrl:n,reviewCount:o,overallRating:r,isPaidPro:s,spid:l,phoneNumber:d,categoryProperties:p,isSuperServiceAwardWinner:u,onClickHandle:()=>{null!=d&&(window.location.href="tel:".concat(d))}})})}(i=s||(s={})).CENTER="center",i.LEFT="left",i.RIGHT="right";let ee=e=>{if(!e)return"center";switch(e.toLowerCase().replace(/ed$/,"")){case"center":return"center";case"right":return"right";default:return"left"}};function et(e){return(0,f.Wk)(e)}var ea=a(41269),en=a(80399),ei=a(92746),eo=a(27782);function er(e){var t,a,n,i,o,r,l,p,C;let{brandInfo:x,proListData:T,contextParams:I,apiBaseUrl:P,wsEntityServer:S,clientEnvironment:E,taxonomy:L}=e,[R,w]=(0,y.useState)([]),[_,A]=(0,y.useState)((null===(t=T.initialProData)||void 0===t?void 0:t.resultCount)||0),[N,O]=(0,y.useState)(T.zipCodes),[j,U]=(0,y.useState)(T.enableClientSideRendering),[H,M]=(0,y.useState)(!1),[V,G]=(0,y.useState)(!1),[q,Z]=(0,y.useState)(!1),[W,K]=(0,y.useState)(void 0),[Y,z]=(0,y.useState)("ssr"),J=(0,h.useIsSnowplowReady)(),Q=(0,y.useMemo)(()=>{let e=Math.max(1,Number(T.prosPerPage)||1);return Math.max(1,Math.ceil(Math.max(0,Number(_)||0)/e))},[T.prosPerPage,_]),$=(0,y.useMemo)(()=>Math.min(Math.max(1,Number(I.page)||1),Q),[I.page,Q]),er=(0,y.useMemo)(()=>q&&W?W:$,[q,W,$]),es=null!==(o=T.alCategoryIds)&&void 0!==o?o:[],el=null!==(r=T.haCategoryIds)&&void 0!==r?r:[],ec=null!==(l=T.haTaskIds)&&void 0!==l?l:[],ed=null!==(p=T.taskUuids)&&void 0!==p?p:[],eu=(0,y.useMemo)(()=>{let e=et(x.domain),t=((null==L?void 0:L.relatedServices)||[]).map(e=>({filterId:"service-".concat(e.slug),displayName:e.name,filterType:"subquery:".concat(e.slug)})),a=T.filterItems||[];return e&&0!==t.length?[...t,...a]:a},[x.domain,T.filterItems,null==L?void 0:L.relatedServices]);async function em(){try{let e=!!I.city,t=I.postalCode||k();!t&&I.isBot&&(t=X(1)[0]);let a=(0,eo.q)(x.domain),n={traffic:"SEO"===I.traffic?"SEO":"SEM",page:I.page||1,limit:T.prosPerPage,alCategoryIds:es,haCategoryIds:el,haTaskIds:ec,taskUuids:ed,postalCodeOverrides:t&&!e?[t]:T.zipCodes,brand:(0,f.uD)(x.domain,(0,f.f6)(x.domain)),featureFlag:I.splitExperimentVariant,enableProSearch:T.enableProSearch,...a&&{localitySlug:I.city,instaproCustomTradeSlug:I.businessTaxonomyValue,attributes:[]}};U(!0);let i=await F(E.lpbeApiDomain,n);
1A(i.proData.resultCount),w(i.proData.results),O(i.zipCodes),Z(!0);let o=Number(i.proData.page);Number.isFinite(o)&&o>0&&K(Math.floor(o)),z("client-init-".concat(Date.now())),U(!1)}catch(e){!function(e){var t;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,m.R7)(e,{userId:u.ld,activityLocation:I.activityLocation,visitorPageCategory:null===(t=I.businessTaxonomyValue)||void 0===t?void 0:t.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(I),...a})}("Error Event",{errorInfo:e instanceof Error?e.message:"Unknown error",errorContext:"Pro List Component"}),e instanceof B||G(!0),U(!1),M(!1)}}(0,y.useEffect)(()=>{T.enableClientSideRendering&&em()},[T.enableClientSideRendering]),(0,y.useEffect)(()=>{!function(){var e,t;let a=(null==T?void 0:T.splitVariants)?null==T?void 0:null===(e=T.splitVariants)||void 0===e?void 0:e[d.tF.PRO_LIST_PRO_SEARCH]:void 0;J&&a&&(0,en.F)(d.tF.PRO_LIST_PRO_SEARCH,ei.P6.SEGMENT_ANONYMOUS_ID,null!==(t=(0,u.Db)())&&void 0!==t?t:"undefined",a)}()},[J,T.splitVariants]),(0,y.useEffect)(()=>{_>=1?M(!0):M(!1)},[_,M]);let ep=d.hb;ep=(0,f.hf)(x.domain)?d.Su:(0,f.g5)(x.domain)?d.hR:x.domain;let ev=ee(null!==(C=T.titleAlignment)&&void 0!==C?C:null===(a=T.componentConfiguration)||void 0===a?void 0:a.titleAlignment);return(0,c.jsx)(b,{componentConfiguration:T.componentConfiguration,contextParams:I,children:(0,c.jsxs)(D.ZP,{id:(0,g.rs)(T.stickyNavLinkName),className:"proListGrid","data-snowplow-component-type":"Pro List",children:[T.proListHeader&&(0,c.jsx)("h2",{className:"proListHeader ".concat(et(x.domain)?"justify-self-start":(e=>{switch(e){case s.CENTER:return"justify-self-center";case s.RIGHT:return"justify-self-end";case s.LEFT:return"justify-self-start";default:return"justify-self-center"}})(ev)),children:T.proListHeader}),(0,c.jsx)(ea.ZP,{proListHeader:T.proListHeader,alCatIds:es.map(e=>e.toString()),apiAccessKey:"accessKey",apiBaseUrl:P,apiUsername:"username",enableBusinessDescription:T.enableBusinessDescription,enableBusinessAddress:T.enableBusinessAddress,enableReviewSnippet:T.enableReviewSnippet,enableZipSearchInput:T.enableZipSearchInput,...T.enableZipSearchIcon&&{enableZipSearchButtonIcon:!0},zipApiBaseUrl:T.enableZipSearchInput&&T.enableLandingPagesBackendZipService?E.lpbeApiDomain:void 0,domain:x.domain,proLocationDisplayType:T.proLocationDisplayType,enableProfessionOnProCard:!!T.enableProfessionOnProCard,enableLandingPagesBackendZipService:T.enableLandingPagesBackendZipService,enableProSearch:T.enableProSearch,initialProDataLoading:j,initialProData:T.enableClientSideRendering||q?R:null===(n=T.initialProData)||void 0===n?void 0:n.results,profileBaseUrl:"https://".concat(ep),queryString:(0,v.pV)(I),serviceDirectCardExperiment:T.serviceDirectCardExperiment,serviceDirectCardPosition:T.serviceDirectCardPosition,serviceRequestDomain:T.requestUrl,sessionId:"",totalAvailablePros:_,categoryIds:el.map(e=>e.toString()),taskoids:ec.map(e=>e.toString()),prosPerPage:T.prosPerPage,wsEntityServer:S,pageName:I.activityLocation||"",context:"SEO"===I.traffic?"SEO":"SEM",defaultZip:I.postalCode,defaultPostalCodeId:Number(I.postalCodeId),zipCodes:N,...et(x.domain)&&eu.length>0&&{filterItems:eu},currentPage:er,enableOfferServiceDirect:!1,enablePaginationSummary:H,marketPlaceApiBaseUrl:"",enableSeo:!0,layout:T.layout,fallbackOnSubmitCallback:e=>{let t=new URL(window.location.href);if(-1!==t.toString().indexOf(d.S1)){let e=t.pathname.split("/").pop();t.pathname="/companylist/".concat(e)}t.searchParams.set("postalCode",e),window.location.href=t.toString()},handleZip:e=>{if(!e.postalCodeId)return;let t=new URL(window.location.href);t.searchParams.set("postalCodeId",e.postalCodeId.toString()),window.location.href=t.toString()},categoryName:T.categoryTitle,plcErrorOut:V,enableLandingPagesApi:!0,taskUUIDs:ed,brand:x.name,apiFeatureFlag:I.splitExperimentVariant,alwaysShowBusinessAttributes:!0,invertedSrHaOidOverride:T.invertedSrHaOidOverride,isBot:I.isBot,title:T.proListHeader,taxonomyInfo:{homeAdvisorTaskId:null==L?void 0:L.haOid,angiCategoryId:null==L?void 0:L.alCatId,taxonomyUuid:null==L?void 0:L.uuid},parentTaxonomyInfo:null==L?void 0:null===(i=L.parents)||void 0===i?void 0:i.map(e=>({homeAdvisorTaskId:e.haOid,angiCategoryId:e.alCatId,taxonomyUuid:e.uuid})),contextRegion:I.region,contextCity:I.city,noProsText:T.noProsText,businessProfileResponseTimeAbout:T.businessProfileResponseTimeAbout,businessProfileResponseTimeWithin:T.businessProfileResponseTimeWithin,companyInformationNewOnText:T.companyInformationNewOnText,localitySlug:I.city,instaproCustomTradeSlug:I.businessTaxonomyValue,ctaLabel:T.ctaLabel,enableCtaForAllPros:T.enableCtaForAllPros},Y)]})})}var es=a(34474);
1function el(e){let{contextParams:t,faqData:a,taxonomy:n}=e;if((null==a?void 0:a.questionsCollection.length)>0){var i;let{title:e,questionsCollection:o}=a;return(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,id:(0,g.rs)(a.stickyNavLinkName,"faq"),contextParams:t,children:(0,c.jsx)(es.Z,{title:e,activityLocation:t.activityLocation,questions:o,stickyNavLinkId:d.iF,isBot:t.isBot,isProProfile:t.experienceType===L.g.ProProfile,taxonomyInfo:{homeAdvisorTaskId:null==n?void 0:n.haOid,angiCategoryId:null==n?void 0:n.alCatId,taxonomyUuid:null==n?void 0:n.uuid},parentTaxonomyInfo:null==n?void 0:null===(i=n.parents)||void 0===i?void 0:i.map(e=>({homeAdvisorTaskId:e.haOid,angiCategoryId:e.alCatId,taxonomyUuid:e.uuid}))})})}return null}var ec=a(34602),ed=a(55247);function eu(e){let{brandInfo:t,contentHeroResponse:a,contextParams:n}=e,{header:i,dek:o,imageUrl:r,imageAlt:s,credit:l,backgroundColor:p,breadcrumbs:h,srCta:f,normalRange:C,costMethodology:x,zipCode:T,range:I,haTaskId:P,numCostProfiles:S,buttonText:E}=a||{},[L,R]=(0,y.useState)(""),w=()=>{var e;(0,m.R7)("Item Clicked",{userType:d.sU,userId:(0,u.ld)(),appView:d.PI,activityLocation:n.activityLocation,description:"Service Request Flow in content hero",visitorPageCategory:null===(e=n.businessTaxonomyValue)||void 0===e?void 0:e.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(n)})},_=()=>{var e;(0,m.R7)("Item Clicked",{userType:d.sU,userId:(0,u.ld)(),appView:d.PI,activityLocation:n.activityLocation,description:"Zip field in content hero",visitorPageCategory:null===(e=n.businessTaxonomyValue)||void 0===e?void 0:e.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(n)})},A=async e=>{e.preventDefault(),w(),setTimeout(()=>{let e="https://".concat(t.srPathDomain);L&&(n.searchParams.postalCode=L);let a=(0,v.sI)(e,P,n);window.location.href=a},300)};return(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,id:(0,g.rs)(a.stickyNavLinkName,"content-hero"),contextParams:n,children:(0,c.jsx)(ec.Z,{header:i,dek:o,imageUrl:r,imageAlt:s,credit:l,backgroundColor:p,breadcrumbs:h,activityLocation:n.activityLocation||"",projectQuote:f,normalRange:C,costData:x,range:I,hasMainMedia:""!==r,handleCTAClick:A,handleZipInputClick:()=>{_(),(0,ed.trackSelfDescribingEvent)({event:{schema:"iglu:com.angi.events/field_focus/jsonschema/1-0-0",data:{}},context:[{schema:"iglu:com.angi.entities/component_attributes/jsonschema/1-0-0",data:{component_type:"Content Hero",label:"Zip Code"}}]})},handleInputChange:e=>{/^[0-9]*$/.test(e.currentTarget.value)&&R(e.currentTarget.value)},numCostProfiles:S,srPathQueryString:(0,v.pV)(n),enableZipCodeInput:T,buttonText:E,postalCode:L})})}var em=a(94750);function ep(e){let{contextParams:t,bylineResponse:a}=e,{author:n,reviewer:i,title:o,isBioBlock:r,displayDate:s,stickyNavLinkName:l}=a||{};return(null==n?void 0:n.displayName)&&(n.name=n.displayName),(null==i?void 0:i.displayName)&&(i.name=i.displayName),(0,c.jsx)(b,{id:(0,g.rs)(l,"byline"),contextParams:t,children:(0,c.jsx)(em.Z,{author:n,reviewer:i,title:o,isBioBlock:r,activityLocation:t.activityLocation,displayDate:s})})}var ev=a(64685);function eg(e){let{contentCardsResponse:t,contextParams:a,clientEnvironment:n}=e,{title:i,subtitle:o,teasers:r,showMoreButton:s,filter:l,subFilter:d}=t||{},u=t.limit||12,[m,p]=(0,y.useState)(r||void 0),[v,h]=(0,y.useState)(t.offset||12),[f,C]=(0,y.useState)(!0),x=async()=>{if(h(e=>e+u),0===t.categoryIds.length)return;let e={categoryIds:t.categoryIds,sort:t.sort||"DisplayDate",excludedSlugs:t.excludedSlugs,limit:u,offset:v,pageTypesToInclude:t.pageTypesToInclude,filter:l,subFilter:d};try{let t=await fetch("".concat(n.lpbeApiDomain,"/landing/api/v1/articles/teasers").concat(V(e)),{cache:"no-store"});if(!t.ok)throw Error("Failed to fetch teasers!");let a=await t.json(),i=a.teasers.map(e=>({...e,date:z(e.date)}));void 0!==m&&m.length+i.length===a.totalCount&&C(!1),p(e=>[...e||[],...i])}catch(e){console.error("Failed to fetch more content:",e)}},T=a.experienceType===L.g.Merchandising?"pb-[60px]":"";return m?(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,id:(0,g.rs)(t.stickyNavLinkName,"content-cards"),className:T,contextParams:a,children:(0,c.jsx)(ev.g,{title:i||"",subtitle:o,content:m,activityLocation:a.activityLocation||"",loadMore:x,hasMoreContent:f,showMoreButton:s,limit:u})}):null}var eh=a(16404);function ef(e){var t;let{guidedPathHeroData:a,contextParams:n,userGeo:i}=e,[o,r]=(0,y.useState)((0,f.hf)(n.domain)),s=(0,f.H_)(n.domain),[l,p]=(0,y.useState)(n.postalCode||""),[g,h]=(0,y.useState)(""),C=(e,t)=>{n.country||n.region||n.city||p(e),h(e),(0,m.R7)("Zip Detection",{userId:u.ld,activityLocation:o?(0,v.ZS)(window.location.pathname):n.activityLocation,detectedZip:e,pageSection:"Hero",detectionMethod:t})};if((0,y.useEffect)(()=>{r((0,f.hf)(n.domain))},[n.domain]),(0,y.useEffect)(()=>{let e=k();l?C(l,d.lI.QUERY_PARAM):e?C(e,d.lI.USER_COOKIE):(async()=>{try{(null==i?void 0:i.postalCode)&&i.postalCode!==l?C(i.postalCode,d.lI.CLOUDFLARE):C("",d.lI.UNDETECTED)}catch(e){console.error(e)}})()},[]),void 0===a)return null;let x=()=>{let e=a.requestUrl;return a.alCategoryId&&(n.searchParams.categoryID=a.alCategoryId.toString()),l&&(n.searchParams.postalCode=l),(0,v.sI)(e,a.haCategoryId,n)};return(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,contextParams:n,id:d.Jj,className:s?"affiliate-hero":"",children:(0,c.jsx)(eh.C,{heroImageAltText:a.backgroundImageAltText,backgroundUrl:o?"https://media.angi.com/s3fs-public/HA-Default-Hero-Image.jpg":a.backgroundImageUrl,title:a.mainHeader,subTitle:a.subHeader,postalCode:l,ctaText:o?"Start matching":"Start Matching",handleInputChange:e=>{/^[0-9]*$/.test(e.currentTarget.value)&&p(e.currentTarget.value)},handleCtaClick:()=>{var e,t;a.haCategoryId&&((0,m.R7)("Item Clicked",{userType:d.sU,userId:(0,u.ld)(),appView:d.PI,activityLocation:n.activityLocation,categoryId:a.alCategoryId,homeadvisorCategoryId:a.haCategoryId,description:"Service Request Flow entry button",userSelectedZipCode:l,detectedPostalCode:g,visitorPageCategory:null===(e=n.businessTaxonomyValue)||void 0===e?void 0:e.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(n),visitorPageGeoCategory:"".concat((0,m.Vp)(n)," - ").concat(null===(t=n.businessTaxonomyValue)||void 0===t?void 0:t.toLocaleUpperCase())}),setTimeout(()=>{window.location.href=x()},300))},activityLocation:null!==(t=n.activityLocation)&&void 0!==t?t:""})})}var eC=a(94157);function ey(e){let{matchingProcessData:t,contextParams:a}=e;return(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,contextParams:a,children:(0,c.jsx)(eC.Z,{title:t.header,items:t.items})})}var ex=a(78640);function eT(e){let{breadCrumbResponse:t,contextParams:a}=e,n=e=>{var t;e.preventDefault();let n=e.target;(0,m.R7)("Item Clicked",{activityLocation:a.activityLocation,applicationId:"landing-pages-frontend",pageSection:"Breadcrumbs",description:"User clicked breadcrumb item",visitorPageCategory:null===(t=a.businessTaxonomyValue)||void 0===t?void 0:t.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(a)}),window.location.href=n.href};if(t.breadcrumbs.length<1)return null;let i=0,o=["homepage","state","city"],r=t.breadcrumbs.map(e=>{let t=!0===e.active,r=i;return i+=1,(0,c.jsx)(ex.g,{linkProps:{href:e.link,title:e.name,"data-snowplow-component-type":"Breadcrumb",id:a.experienceType===L.g.ProProfile?o[r]:void 0},onLinkClick:n,active:t,children:e.name},e.name)});return(0,c.jsx)(ex.a,{enableSEO:!0,children:r})}var eI=a(8736);
1function eP(e){let{largeCategoryHeroData:t,contextParams:a,serviceRequestDomain:n}=e,[i,o]=(0,y.useState)(a.postalCode||"");return(0,c.jsx)(b,{id:d.Jj,componentConfiguration:t.componentConfiguration,contextParams:a,children:(0,c.jsx)(eI.N,{heroTitle:t.title,subTitle:t.subtitle.toLowerCase(),checkList:function(){let e=[];for(let a of t.checkList)e.push({imageUrl:t.checkListImageUrl,value:a});return e}(),zipPlaceholderText:t.zipCodeInputPlaceholder,ctaText:t.ctaButtonText,celpPage:!0,heroImageUrl:t.heroImageUrl,geoIconUrl:"https://media.angi.com/s3fs-public/geo_icon.svg",handleCta:()=>{window.location.href=(t.alCategoryId&&(a.searchParams.categoryID=t.alCategoryId.toString()),i&&(a.searchParams.postalCode=i),(0,v.sI)(n,t.haCategoryId,a))},handleSetZipCode:o,parentZipCode:i})})}var eb=a(50552);function eS(e){let{contextParams:t,data:a}=e,{calloutType:n,icon:i,stickyNavLinkName:o,title:r,calloutText:s,existingAuthor:l,externalAuthorImage:d,externalAuthorLocation:u,externalAuthorName:m,externalAuthorTitle:p}=a;return(0,c.jsx)(b,{id:(0,g.rs)(o,"callout-block"),componentConfiguration:a.componentConfiguration,contextParams:t,children:(0,c.jsx)(eb.Z,{calloutType:n,icon:i,title:r,calloutText:s||"",author:l,externalAuthorImage:d,externalAuthorLocation:u,externalAuthorName:m,externalAuthorTitle:p,activityLocation:t.activityLocation})})}var eE=a(18124),eL=a(13025),eR=a(37131);function ew(e){let{emailCaptureData:t,contextParams:a,clientEnvironment:n,userGeo:i,anonymousId:o,isEmailEligible:r}=e,s=a.domain.includes(d.Su);return t.title?(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,contextParams:a,className:r?"":"hidden",children:(0,c.jsx)(eL.Z,{applicationName:"landing-pages-frontend",brand:s?L.H2.HomeAdvisor:L.H2.Angi,eventGatewayBaseUrl:n.eventGatewayApiUrl,pageName:a.activityLocation||"",subscriptionServiceBaseUrl:n.subscriptionServiceBaseUrl,subtext:t.subtitle,task:t.haCategoryId,text:t.title,buttonText:t.ctaText,style:{backgroundPosition:"center"},cfPostalCode:null==i?void 0:i.postalCode,handleEmailSubscription:s?e=>{let{emailAddress:i,zipCode:r}=e;return(0,eR.zw)(i,r,n.haBaseUrl,n.eventGatewayApiUrl,"landing-pages-frontend",o||void 0,t.haCategoryId,void 0,a.activityLocation||"")}:void 0,isEmailEligible:r})}):null}var e_=a(42611);function eA(e){var t,a,n,i,o,r,s,l,d,u,m;let{proListData:p,contextParams:h,clientEnvironment:f,taxonomy:C,userGeo:x,brandInfo:T}=e,I=T.srPathDomain?"https://".concat(T.srPathDomain):f.serviceRequestDomain,P=p.stickyNavLinkName?(0,g.rs)(p.stickyNavLinkName):"featured-pro-carousel",S=h.activityLocation||"",[E,L]=(0,y.useState)(h.postalCode?[h.postalCode]:[]),[R,w]=(0,y.useState)(!0);(0,y.useEffect)(()=>{let e=async()=>{let e=k();!E.length&&(e?L([e]):(null==x?void 0:x.postalCode)&&x.postalCode!==E[0]&&L([x.postalCode])),w(!1)};p.enableClientSideRendering?e():w(!1)},[f.lpbeApiDomain,E,p.enableClientSideRendering]);let _=null!==(l=p.taskUuids)&&void 0!==l?l:[];return(0,c.jsx)(c.Fragment,{children:(p.proData||p.enableClientSideRendering)&&!R?(0,c.jsx)(b,{id:P,className:"featuredProCarouselGrid",contextParams:h,children:(0,c.jsx)(e_.Z,{taskoid:null!==(d=null===(a=p.haTaskIds)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.toString())&&void 0!==d?d:"",categoryId:null!==(u=null===(i=p.haCategoryIds)||void 0===i?void 0:null===(n=i[0])||void 0===n?void 0:n.toString())&&void 0!==u?u:"",alCatId:null!==(m=null===(r=p.alCategoryIds)||void 0===r?void 0:null===(o=r[0])||void 0===o?void 0:o.toString())&&void 0!==m?m:"",pageName:S,sessionId:"",context:"SEO"===h.traffic?"SEO":"SEM",headlineTitle:p.title,proData:null===(s=p.proData)||void 0===s?void 0:s.results,openProfilesInNewTab:p.openProfilesInNewTab,ctaCallback:e=>{!function(e){if(!(null==C?void 0:C.haOid))return;let t=C.haOid>0?"task":"category",a=new URLSearchParams((0,v.pV)(h));a.set("zipCode",h.postalCode||""),a.set("spIds",e.legacyId||""),e.businessType&&a.set("businessTypes",e.businessType);let n="".concat(I,"/service-request-pro-direct/").concat(t,"/").concat(Math.abs(C.haOid),"?").concat(a);setTimeout(()=>{window.location.href=n},300)}(e)},serviceRequestDomain:I,zipCodes:E,taskUUID:_[0],apiBaseUrl:f.proListApiBaseUrl,apiAccessKey:"accessKey",apiUsername:"username",wsEntityServer:f.wsEntityServer,enableClientSideRendering:p.enableClientSideRendering,landingPagesApi:!0})}):null})}var eN=e=>{let t=e?"?entry_point_id=".concat(e):"";return[{linkUrl:"https://match.angieslist.com/ext-cat/75".concat(t),iconUrl:"https://media.angi.com/s3fs-public/HandyPerson.svg",displayText:"Handyperson"},{linkUrl:"https://match.angieslist.com/ext-cat/85".concat(t),iconUrl:"https://media.angi.com/s3fs-public/LandScaping.svg",displayText:"Landscaping"},{linkUrl:"https://match.angieslist.com/ext-cat/107".concat(t),iconUrl:"https://media.angi.com/s3fs-public/Plumbing.svg",displayText:"Plumbing"},{linkUrl:"https://match.angieslist.com/ext-cat/54".concat(t),iconUrl:"https://media.angi.com/s3fs-public/Electrical.svg",displayText:"Electrical"},{linkUrl:"https://match.angieslist.com/ext-cat/111".concat(t),iconUrl:"https://media.angi.com/s3fs-public/Remodeling.svg",displayText:"Remodeling"},{linkUrl:"https://match.angieslist.com/ext-cat/112".concat(t),iconUrl:"https://media.angi.com/s3fs-public/R
1oofing.svg",displayText:"Roofing"}]},ek=a(27426),eO=a(6681),ej=a.n(eO),eD=a(25566);function eU(e){var t;let{brandInfo:a,legacyHomepageHeroResponse:n,contextParams:i}=e,o=eD.env.ALGOLIA_APP_ID||"CY6DJ1RISQ",r=eD.env.ALGOLIA_API_KEY||"6a393a30e8e240f7e2c6e3905cc6ee09",s=ej()(o,r),[l,m]=(0,y.useState)(null);async function p(e){let t="https://".concat(a.srPathDomain);return(0,v.sI)(t,e?Number.parseInt(e):0,i)}return(0,y.useEffect)(()=>{m(window.location.search)},[]),(0,c.jsx)(b,{id:d.Jj,className:"legacy-homepage-hero-wrapper-container",componentConfiguration:n.componentConfiguration,contextParams:i,children:(0,c.jsx)(ek.T,{activityLocation:i.activityLocation||"",searchClient:s,serviceRequestAngi:i.domain.includes(d.Su)?"https://homeadvisor.com":"https://match.angi.com",icons:eN(),variant:"ctrl",zipCodeInitial:i.postalCode,title:n.title,backgroundHexColor:n.backgroundHexColor,validZipRequired:!1,angiTraceId:null!==(t=(0,u.IQ)())&&void 0!==t?t:"",searchParams:new URLSearchParams(l||""),getItemUrlOverride:p})})}var eB=a(72402);function eH(e){var t,a,n,i;let{brandInfo:o,tocResponse:r,contextParams:s,deviceType:l}=e,{displayToc:u,tocData:m,haOid:p}=r||{},[h,f]=(0,y.useState)(-1),[C,x]=(0,y.useState)(!0),T=u&&m&&m.length,I=(0,y.useMemo)(()=>T?m.map(e=>({...e,url:e.url||"#".concat((0,g.rs)(e.originalLinkText))})):m,[T,m]);function P(e){if(!e)return"";let t="https://".concat(o.srPathDomain);return(0,v.sI)(t,e,s)}return(0,y.useEffect)(()=>{let e=()=>{for(let e=0;e<I.length;e+=1){let t=document.getElementById((0,g.rs)(I[e].originalLinkText));t&&t.getBoundingClientRect().top<=90&&f(e)}};return T&&window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[T,I]),(0,y.useEffect)(()=>{let e=()=>{let e=document.getElementById(d.PM);if(e){let t=e.getBoundingClientRect().height;Math.abs(e.getBoundingClientRect().y)>=t?x(!1):x(!0)}};return(null==l?void 0:l.toLowerCase())===d.Yi.MOBILE&&T&&window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[l,T]),T?(0,c.jsx)(b,{id:"table-of-contents",componentConfiguration:r.componentConfiguration,contextParams:s,children:r.displayToc?(null===(a=r.componentConfiguration)||void 0===a?void 0:null===(t=a.deviceType)||void 0===t?void 0:t.toLowerCase())===d.Yi.DESKTOP&&(null==l?void 0:l.toLowerCase())===d.Yi.DESKTOP?
1(0,c.jsx)("div",{className:"sm:hidden ml:flex","data-testid":"toc-element",children:(0,c.jsx)(eB.Z,{displayToc:u,tocData:I,buttonText:"Find Local Pros",buttonUrl:P(p),activityLocation:s.activityLocation||"",mobileHeader:"In this Article",title:r.title,srCta:r.srCta,backgroundColor:r.backgroundColor,truncatedOnLoad:r.truncatedOnLoad,currIndex:h})}):(null===(i=r.componentConfiguration)||void 0===i?void 0:null===(n=i.deviceType)||void 0===n?void 0:n.toLowerCase())===d.Yi.MOBILE&&(null==l?void 0:l.toLowerCase())===d.Yi.MOBILE?!C&&(0,c.jsx)("div",{"data-testid":"toc-element",className:"sm:bg-white ml:hidden",style:{transform:"translateY(0px)"},children:(0,c.jsx)(eB.Z,{displayToc:u,tocData:I,buttonText:"Find Local Pros",buttonUrl:P(p),activityLocation:s.activityLocation||"",mobileHeader:"In this Article",title:r.title,srCta:r.srCta,backgroundColor:r.backgroundColor,truncatedOnLoad:r.truncatedOnLoad,currIndex:h})}):null:null}):null}var eM=a(63001);function eV(e){let{relatedArticlesResponse:t,contextParams:a}=e,{title:n,teasers:i}=t||{};return i&&i.length>0?(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,id:(0,g.rs)(t.stickyNavLinkName,"related-articles"),contextParams:a,children:(0,c.jsx)(eM.P,{title:n,content:i,activityLocation:a.activityLocation||"",stickyNavLinkName:"related-articles-component"})}):null}var eF=a(12683);function eG(e){let{response:t,contextParams:a,serviceRequestDomain:n}=e,i={sectionImage:{altText:t.imageAltText||"",url:t.imageUrl||""},stat:{statName:t.imageTitle||"",statValue:t.imageDataPoint||"",statDescription:t.imageSubtitle||""}},o={title:t.listTitle||"",bulletPoints:t.bulletPoints||[],type:"celpNavigationSectionList",icon:{altText:t.iconAltText||"",url:t.iconUrl||""}};return(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,contextParams:a,children:(0,c.jsx)(eF.ZP,{id:(0,g.rs)(t.stickyNavLinkName),title:t.title,description:t.subtitle,hasCta:!0,ctaText:t.ctaText,isHideSequence:!t.sectionNumber,navigationSequence:t.sectionNumber||0,sectionImage:i,sectionContent:o,handleCtaClick:()=>{var e,i;(0,m.R7)("Item Clicked",{userType:d.sU,userId:(0,u.ld)(),appView:d.PI,activityLocation:a.activityLocation,description:"Start Pro Search Cta",visitorPageCategory:null===(e=a.businessTaxonomyValue)||void 0===e?void 0:e.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(a),visitorPageGeoCategory:"".concat((0,m.Vp)(a)," - ").concat(null===(i=a.businessTaxonomyValue)||void 0===i?void 0:i.toLocaleUpperCase())}),window.location.href=(t.alCategoryId&&(a.searchParams.categoryID=t.alCategoryId.toString()),(0,v.sI)(n,t.haCategoryId,a))}})})}var eq=a(47593),eZ=a(99140);function eW(e){var t,a;let{proAvailabilityData:n,contextParams:i,serviceRequestDomain:o}=e;(0,y.useEffect)(()=>{(0,eZ.P)({experience:"pro-availability-micro-content"})},[]);let r=null!==(a=i.postalCode)&&void 0!==a?a:"",s={userType:d.sU,userId:(0,u.ld)(),appView:d.PI,activityLocation:i.activityLocation,description:"CTA on Pro Availability Module",visitorPageCategory:null===(t=i.businessTaxonomyValue)||void 0===t?void 0:t.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(i)};return(0,c.jsx)(b,{componentConfiguration:n.componentConfiguration,id:d.XZ,className:"flex justify-center",contextParams:i,children:(0,c.jsx)(eq.a,{title:n.title,titleTextToHighlight:n.titleTextToHighlight,subtitle:n.subtitle,subtitleTextToHighlight:n.subtitleTextToHighlight,ctaText:n.ctaText,navigateToUrl:(n.alCategoryId&&(i.searchParams.categoryID=n.alCategoryId.toString()),r&&(i.searchParams.postalCode=r),(0,v.sI)(o,n.haCategoryId,i)),trackingData:s})})}var eK=a(53230),eY=a(30166);a(98898);var eX=e=>({schema:"iglu:com.angi.entities/list_suggested_projects_attributes/jsonschema/2-1-0",data:{...e}}),ez=a(55091);let eJ=(0,eY.default)(()=>a.e(6270).then(a.bind(a,36270)),{loadableGenerated:{webpack:()=>[36270]},ssr:!1});function eQ(e){let{value:t,index:a,styleClassName:n}=e;return(0,c.jsx)(eJ,{value:t,format:"(,ddd)",duration:1e3+(null!=a?a:0)*200,className:n})}function e$(e){var t,a;let{suggestedProjectsData:n,contextParams:i,deviceType:o}=e;function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map(e=>({...e,isDynamic:e.isDynamic||!1,projectCount:e.projectCount,link:"".concat(e.link).concat(t||"")}))}let[l,p]=(0,y.useState)(()=>r(n.projectCards)),g=(0,h.useGetSnowplowDomainInfo)(),x=()=>{g&&(0,f.H_)(i.domain)&&(i.searchParams._sp=(0,h.getQueryStringValue)(g,i.domain,C.XT,o));let e=(0,v.pV)(i);return e&&(e="?".concat(e)),r(n.projectCards,e)},T=(0,h.useIsSnowplowReady)(),P=(0,f.H_)(i.domain)&&T;(0,y.useEffect)(()=>{p(x())},[P]),(0,y.useEffect)(()=>
1{if(T&&"small"===n.projectCardType){let t=i.componentSplitVariants&&i.componentSplitVariants[d.tF.TOP_PROJECTS];if(t){var e;(0,en.F)(d.tF.TOP_PROJECTS,ei.P6.SEGMENT_ANONYMOUS_ID,null!==(e=(0,u.Db)())&&void 0!==e?e:"undefined",t)}}},[T,n.projectCardType,i.componentSplitVariants]),(0,y.useEffect)(()=>{if("small"===n.projectCardType){var e,t,a,o,r;(0,m.R7)("Split - Get Treatment Called",{anonymousId:(0,u.Db)(),userId:u.ld,activityLocation:i.activityLocation,description:n.title,projectCardType:n.projectCardType,experimentResults:"".concat((null===(e=n.experiment)||void 0===e?void 0:e.name)||"",":").concat((null===(t=n.experiment)||void 0===t?void 0:t.treatment)||""),experimentUserType:"".concat(null===(a=n.experiment)||void 0===a?void 0:a.userType),experimentUserId:"".concat((null===(o=n.experiment)||void 0===o?void 0:o.userId)||""),visitorPageCategory:null===(r=i.businessTaxonomyValue)||void 0===r?void 0:r.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(i)})}},[n.projectCardType]);let{bridge:b,isWrapped:S}=(0,ez.a)(),E=e=>{var t,a,o,r,s;(0,m.R7)("Item Clicked",{anonymousId:(0,u.Db)(),userId:u.ld,activityLocation:i.activityLocation,description:n.title,projectCardType:n.projectCardType,experimentResults:"".concat((null===(t=n.experiment)||void 0===t?void 0:t.name)||"",":").concat((null===(a=n.experiment)||void 0===a?void 0:a.treatment)||""),experimentUserType:"".concat(null===(o=n.experiment)||void 0===o?void 0:o.userType),experimentUserId:"".concat((null===(r=n.experiment)||void 0===r?void 0:r.userId)||""),categorySelected:e,visitorPageCategory:null===(s=i.businessTaxonomyValue)||void 0===s?void 0:s.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(i)})},L="small"===n.projectCardType?n.projectCards.map((e,t)=>{let a=function(e){try{let t=new URL(e).pathname.split("/").filter(e=>e.length>0);if(t.length>=3&&"service-request"===t[0]){let e=t[1],a=t[2];return{type:e,id:a}}}catch(t){console.error('Error parsing URL "'.concat(e,'":'),t)}return{type:null,id:null}}(e.link);return eX({rank:t+1,title:e.title,homeowners_interested:e.projectCount,is_dynamic:e.isDynamic,task_id:"task"===a.type?Number(a.id):void 0,category_id:"category"===a.type?Number(a.id):void 0})}):[],{topDivRef:R}=(0,h.useComponentDisplay)(!0,"Suggested Projects",[...L]);return(0,c.jsx)(I,{componentConfiguration:n.componentConfiguration,contextParams:i,children:(0,c.jsx)(eK.Z,{title:n.title||"",subtitle:n.subtitle||"",disclaimer:n.disclaimer||"",isDynamic:n.isDynamic||!1,projectCards:l,projectCardType:n.projectCardType,showButton:n.showButton,buttonText:n.buttonText,buttonUrl:n.buttonUrl,handleLinkClicked:e=>E(e),handleCardClickOverride:S?(e,t)=>{null!=t&&("task"===t.toLowerCase()?null==b||b.navigateToSrPathForTask(Math.abs(e)):null==b||b.navigateToSrPathForCategory(Math.abs(e)))}:void 0,renderCount:(e,t,a)=>(0,c.jsx)(eQ,{value:e,index:t,styleClassName:a}),titleAlignment:null!==(a=null===(t=n.componentConfiguration)||void 0===t?void 0:t.titleAlignment)&&void 0!==a?a:s.LEFT,pageName:i.activityLocation,zipcode:n.zipCode||"",ref:R})})}var e0=a(1721);function e1(e){let{trustBuilderData:t,contextParams:a}=e;return(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,contextParams:a,children:(0,c.jsx)(e0.U,{title:t.title||"",ratingLabel:t.ratingLabel,ratingStat:t.ratingStat,helpedHomeownerLabel:t.helpedHomeownerLabel,helpedHomeownerStat:t.helpedHomeownerStat})})}var e2=a(91384);function e7(e){var t,a;let{response:n,contextParams:i}=e;return(0,c.jsx)(b,{componentConfiguration:n.componentConfiguration,contextParams:i,children:(0,c.jsx)(e2.Z,{id:(0,g.rs)(n.stickyNavLinkName),collapsibleNavigationItems:null!==(a=null===(t=n.collapsibleItems)||void 0===t?void 0:t.map(e=>({title:null==e?void 0:e.title,subTitle:e.subtitle,icon:{title:e.iconAltText,url:e.iconUrl},bulletPoints:e.bulletPoints,link:{text:"Learn More",path:e.learnMoreLink},image:{title:e.imageAltText,url:e.imageUrl}})))&&void 0!==a?a:[],description:n.subtitle,navigationSequence:n.sectionNumber||0,title:n.title,handleLinkClicked:(e,t,a)=>{var n;(0,m.R7)("Item Clicked",{userId:u.ld,pageSection:e,activityLocation:i.activityLocation,description:"".concat(a,"-").concat(t),visitorPageCategory:null===(n=i.businessTaxonomyValue)||void 0===n?void 0:n.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(i)})},isHideSequence:0===n.sectionNumber})})}var e6=a(54035);function e4(e){var t,a;let{response:n,contextParams:i}=e,[o,r]=(0,y.useState)(0),[s,l]=(0,y.useState)(!0);(0,y.useEffect)(()=>{s&&l(!1)},[o]);let d=(0,y.useCallback)((e,t)=>{var a;t.stopPropagation(),(0,m.R7)("Item Clicked",{userId:u.ld,activityLocation:i.activityLocation,description:"Link - ".concat(e),pageSection:n.title,visitorPageCategory:null===(a=i.businessTaxonomyValue)||void 0===a?void 0:a.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(i)})},[]);return(0,c.jsx)(b,{componentConfiguration:n.componentConfiguration,contextParams:i,children:(0,c.jsx)(e6.Z,{id:(0,g.rs)(n.stickyNavLinkName),isHideSequence:!n.sectionNumber,title:n.title,de
1scription:n.subtitle,navigationSequence:n.sectionNumber||0,items:null!==(a=null===(t=n.carouselItems)||void 0===t?void 0:t.map(e=>{var t;return{title:null==e?void 0:e.title,ctaText:null==e?void 0:e.ctaText,ctaUrl:null==e?void 0:e.ctaLink,imageUrl:null==e?void 0:e.imageUrl,imageAltText:null==e?void 0:e.imageAltText,smallImageUrl:null==e?void 0:e.smallImageUrl,smallImageAltText:null==e?void 0:e.smallImageAltText,handleLinkClicked:d,descriptionList:null==e?void 0:null===(t=e.bulletPoints)||void 0===t?void 0:t.map(e=>({text:e}))}}))&&void 0!==a?a:[],handleNavigationClicked:e=>{var t;!s&&n.carouselItems&&(0,m.R7)("Item Clicked",{userId:u.ld,activityLocation:i.activityLocation,description:"".concat(e+1,"-").concat(n.carouselItems[e].title),pageSection:n.title,visitorPageCategory:null===(t=i.businessTaxonomyValue)||void 0===t?void 0:t.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(i)})},handleClick:e=>{if((!e.screenX||!(null==e?void 0:e.target).href)&&n.carouselItems)for(let t=0;t<n.carouselItems.length;t+=1){let a=document.getElementById("carosuel-item-".concat(t));if(a&&e.screenX){let n=Number(a.style.transform.replace(/[^-?\d.]/g,""));if(n<=e.clientX&&n+a.clientWidth+20>=e.clientX){r(t);break}}}}})})}var e5=a(40731);let e9=new Set(["h2","h3","h4","h5","h6"]),e3=(e,t)=>{let a="",n=!1;for(let i=t;i<e.length&&("<"===e[i]?n=!0:">"===e[i]?n=!1:n||(a+=e[i]),"<"!==e[i]||"/"!==e[i+1]);i++);return a.replaceAll(" ","").trim()},e8=e=>{let t=e;for(let e=0;e<t.length;e++){if("<"!==t[e])continue;let a=e+1,n="";for(;a<e+3;)n+=t[a],a++;if(e9.has(n)){let i=e3(t,a+1);t="".concat(t.slice(0,a-2)+n," id=").concat((0,g.rs)(i)).concat(t.slice(a)),e=a+i.length+3}}return t},te=e=>{let t=new DOMParser().parseFromString(e,"text/html");return t.querySelectorAll("a").forEach(e=>{e.hasAttribute("target")||e.setAttribute("target","_blank")}),t.body.innerHTML},tt="onlineEnrollExitIntent";var ta=e=>{let{intentPage:t,eventName:a,metaData:n={},enabled:i=!0}=e,o=(0,y.useRef)(!0),r=e=>(Array.isArray(t)?t:[t]).some(t=>new RegExp(t).test(e));return(0,y.useEffect)(()=>{if(!i||!t)return;o.current=!0;let e=()=>{if(r(window.location.href)){var e;null===(e=window.Sprig)||void 0===e||e.track(a,n)}},s=(e,t)=>{window.addEventListener(e,t,!1)},l=(e,t)=>{window.removeEventListener(e,t,!1)},c=t=>{let a=t||window.event,n=a.relatedTarget||a.toElement;(!n||"HTML"===n.nodeName)&&o.current&&(o.current=!1,e())},d=()=>{document.hidden&&o.current&&(o.current=!1,e())};return s("mouseout",c),s("visibilitychange",d),()=>{l("mouseout",c),l("visibilitychange",d)}},[t,a,i,n]),{triggerExitIntent:()=>{if(o.current&&(o.current=!1,r(window.location.href))){var e;null===(e=window.Sprig)||void 0===e||e.track(a,n)}}}};function tn(e){let{contextParams:t,paragraphListResponse:a}=e;ta({intentPage:["about-background-check","tell-us-about-your-business","how-it-works"],eventName:tt});let{content:n}=a,i=e8(n);return(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,className:"contentSpacing",contextParams:t,children:(0,c.jsx)(e5.Z,{activityLocation:t.activityLocation||"",rawHtml:i})})}var ti=a(71127);function to(e){let{contextParams:t,imageResponse:a}=e,{url:n,altText:i,imageType:o,stickyNavLinkName:r,photoCredit:s}=a;return(0,c.jsx)(ti.Z,{activityLocation:t.activityLocation||"",url:"".concat(n,"?impolicy=").concat("Infographic"===o?"infographic":"leadImage"),altText:i,credit:s,stickyNavLinkName:(0,g.rs)(r,"image-".concat((0,y.useId)()))})}function tr(e){let{contextParams:t,videoResponse:a}=e,{title:n,url:i,stickyNavLinkName:o,historicalCreationDate:r,caption:s,thumbnail:l}=a,d=(0,y.useId)();return(0,c.jsx)(ti.Z,{id:d,name:d,activityLocation:t.activityLocation||"",url:i,title:n,stickyNavLinkName:(0,g.rs)(o,"video-".concat((0,y.useId)())),historicalCreationDate:r,subtext:s,thumbnailUrl:l.url,controls:!0})}var ts=a(16180);function tl(e){let{contextParams:t,mediaResponse:a}=e,{url:n,altText:i,caption:o,credit:r,title:s,historicalCreationDate:l,rawCloudinaryTransformation:d,mediaType:u,stickyNavLinkName:m,subtext:p}=a,v=(0,y.useId)();return(0,c.jsx)("div",{className:"infographic"===u?"max-w-[560px] mx-auto":"",children:(0,c.jsx)(ts.p,{id:v,name:v,url:n,caption:o,altText:i,credit:r,title:s,subtext:p,historicalCreationDate:l,transformations:"infographic"===u?{0:"medium-flex",601:"large-flex",1024:"medium-flex",1280:"medium-flex",1600:"large-flex"}:{0:"medium-16_9",601:"large-16_9",1024:"medium-16_9",1280:"medium-16_9",1600:"large-16_9"},rawCloudinaryTransforms:d,activityLocation:t.activityLocation||"",stickyNavLinkName:(0,g.rs)(m,"media-".concat((0,y.useId)())),controls:!0})})}var tc=a(59725);
1function td(e){let{contextParams:t,tableResponse:a}=e,{tableMap:n,stickyNavLinkName:i}=a,o=JSON.parse(n);return(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,contextParams:t,children:(0,c.jsx)(tc.Z,{activityLocation:t.activityLocation||"",stickyNavLinkName:(0,g.rs)(i,"table"),columns:o.columns,rows:o.rows})})}var tu=a(93667);function tm(e){let t,{response:a,contextParams:n,serviceRequestDomain:i,costGuideApiUrl:o,costGuideTaksApiUrl:r,userGeo:s}=e,[l,d]=(0,y.useState)(n.postalCode||"");return t=null!=a.haCostGuideTaskId?r:o,(0,y.useEffect)(()=>{(async()=>{let e=k();!l.length&&(e?d(e):(null==s?void 0:s.postalCode)&&s.postalCode!==l&&d(s.postalCode))})()},[]),(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,contextParams:n,children:(0,c.jsx)(tu.Z,{id:(0,g.rs)(a.stickyNavLinkName,"project-costs"),costComponentType:a.costComponentType,ctaText:a.ctaText,costCalculatorTitle:a.costCalculatorTitle,title:a.title,ctaUrl:function(){var e;if(a.ctaLinkOverride&&""!==a.ctaLinkOverride.trim()){let e=(0,v.pV)(n);return e&&(e="?".concat(e)),"".concat(a.ctaLinkOverride).concat(e)}return(0,v.sI)(i,null!==(e=a.haTaskId)&&void 0!==e?e:0,n)}(),richData:{expandedTitle:a.expandedTitle,expandedSubtitle:a.expandedSubtitle,expandedCta:a.expandedCta,expandedCtaLink:a.expandedCtaLink,sectionNumber:a.sectionNumber},costData:{minCost:a.minCost,maxCost:a.maxCost,avgRangeMinCost:a.avgRangeMinCost,avgRangeMaxCost:a.avgRangeMaxCost,avgCost:a.avgCost,numCostProfiles:a.numCostProfiles},haTaskId:a.haTaskId,haCostGuideTaskId:a.haCostGuideTaskId,hasStaticCostData:a.hasStaticCostData,activityLocation:n.activityLocation||"",costGuideUrl:t,zipCode:l,location:a.location,mappedCostData:a.mappedCostData})})}var tp=a(31168);function tv(e){let{brandInfo:t,imageCarouselHeroData:a,contextParams:n,clientEnvironment:i,userGeo:o}=e,[r,s]=(0,y.useState)(!1),[l,d]=(0,y.useState)(null),[p,g]=(0,y.useState)(null),[f,C]=(0,y.useState)(n.postalCode||""),{bridge:x,isWrapped:T}=(0,ez.a)(),I=(0,h.useGetSnowplowDomainInfo)();return(0,y.useEffect)(()=>{s(/^((?!chrome|android).)*safari/i.test(navigator.userAgent))},[]),(0,y.useEffect)(()=>{(0,m.yQ)().then(e=>{e&&d(e)})},[]),(0,y.useEffect)(()=>{g("".concat(i.lpbeApiDomain,"/landing/api/v1/search/autocomplete?domain=").concat(t.domain))},[l]),(0,y.useEffect)(()=>{let e=k();f?C(f):e?C(e):(async()=>{try{(null==o?void 0:o.postalCode)&&o.postalCode!==f&&C(o.postalCode)}catch(e){console.error(e)}})()},[]),(0,c.jsx)(b,{className:"image-carousel-hero",componentConfiguration:a.componentConfiguration,contextParams:n,children:(0,c.jsx)(tp.Z,{className:r?"legacy-homepage-hero-wrapper-container safari":"legacy-homepage-hero-wrapper-container",serviceRequestDomain:"https://".concat(t.srPathDomain),searchResultsDomain:"https://".concat(t.domain),searchAutocompleteDomain:p,handleItemClickOverride:T?(e,t)=>{T&&("task"===t.toLowerCase()?x.navigateToSrPathForTask(Math.abs(e)):x.navigateToSrPathForCategory(Math.abs(e)))}:void 0,heroImages:a.heroImages,title:a.title,anonymousId:l,initialSearchResults:a.initialResults,activityLocation:n.activityLocation||"",angiTraceId:(0,u.IQ)()||"",zipCodeInitial:f,validZipRequired:!1,searchParams:(0,v.pV)(n),onZipCodeChange:e=>C(e||""),splitTreatmentRequestDomain:i.splitApiUrl,snowplowData:I})})}var tg=a(25055);function th(e){let{iconBannerData:t,contextParams:a}=e,[n,i]=(0,y.useState)(t.icons),o=()=>{let e=(0,v.pV)(a);return e&&(e="?".concat(e)),t.icons.map(t=>({...t,linkUrl:"".concat(t.linkUrl).concat(e)}))};(0,y.useEffect)(()=>{i(o())},[]);let{bridge:r,isWrapped:s}=(0,ez.a)();return(0,c.jsx)(b,{className:"icon-banner-wrapper-container",componentConfiguration:t.componentConfiguration,contextParams:a,children:(0,c.jsx)(tg.Z,{activityLocation:a.activityLocation||"",angiTraceId:(0,u.IQ)()||"",icons:n,variant:"variantB",handleIconClickOverride:s?(e,t)=>{null!=t&&("task"===t.toLowerCase()?null==r||r.navigateToSrPathForTask(Math.abs(e)):null==r||r.navigateToSrPathForCategory(Math.abs(e)))}:void 0})})}var tf=a(99376),tC=a(5623);function ty(e){var t,a;let{profileCTACardsResponse:n,contextParams:i,deviceType:o,clientEnv
1ironment:r,anonymousId:s,avId:l,profileCTACards:u}=e,m=(0,tf.useRouter)(),p=r.serviceRequestDomain,v=!!u&&Object.entries(u).some(e=>{let[t]=e;return"migrationV2FeatureFlag"!==t}),g="true"===r.profileCTACardsEnabled&&!v&&(null===(t=n.suggestedProjects)||void 0===t?void 0:t.data)!=null,h=function(){if("true"===r.profileCTACardsEnabled){if(v)return"";if(g)return"mb-none"}return"hidden"}();return[(0,c.jsx)(b,{className:h,componentConfiguration:n.componentConfiguration,contextParams:i,children:(0,c.jsx)(tC.Ru,{activityLocation:i.activityLocation||"",showRecentPages:n.showRecentPages||!1,anonymousId:s,avId:l,profileCtaCards:u,carouselTitle:n.title,incompleteProjectCardProps:{onContinueSrClick:e=>{f("".concat(p,"/service-request/continue-interview/").concat(e))},incompleteProjectCtaText:d.IL,incompleteProjectHeaderText:d.LS,incompleteProjectTagText:d.XT},lpvProps:{onLpvClick:e=>{if(e.location)f(e.location);else{var t,a;f((t=e.taskId?"task":"category",a=e.taskId?e.taskId:e.categoryId,"".concat(p,"/service-request/").concat(t.toLowerCase(),"/").concat(Math.abs(a))))}},ctaLabel:d.vj,imgUrls:d.Km,tagText:d.H9},pageViewProps:{onPageViewClick:e=>{f(e.location)},tagText:d.$w}})},"profile-cta-cards"),g&&(0,c.jsx)(e$,{suggestedProjectsData:null===(a=n.suggestedProjects)||void 0===a?void 0:a.data,contextParams:i,deviceType:o},"suggested-projects")];function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;setTimeout(()=>{m.push(e)},t)}}(o=l||(l={})).INCOMPLETE_PROJECT="Continue SR",o.PICKED_FOR_YOU="Generic",o.LAST_VIEWED_PRODUCT="Last Viewed Product",o.CONTINUE_SEARCH="Continue Search";var tx=a(17531);
1function tT(e){let{contextParams:t,dualListResponse:a}=e,{title:n,list1Heading:i,list1Items:o,list2Heading:r,list2Items:s}=a;return o.length>0||s.length>0?(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,id:(0,g.rs)(a.stickyNavLinkName,"dual-list"),contextParams:t,children:(0,c.jsx)(tx.Z,{title:n,list1Heading:i,list1Items:o,list2Heading:r,list2Items:s,activityLocation:t.activityLocation})}):null}var tI=a(7557);function tP(e){let{quickFactsResponse:t,contextParams:a}=e;return(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,id:(0,g.rs)(t.stickyNavLinkName,"quick-facts"),contextParams:a,children:(0,c.jsx)(tI.Z,{item1Heading:t.item1Heading,item1Body:t.item1Body,item2Heading:t.item2Heading,item2Body:t.item2Body,item3Heading:t.item3Heading,item3Body:t.item3Body,note:t.note,costMethodologyToolTip:t.costMethodologyToolTip})})}function tb(e){let{numberedListResponse:t,contextParams:a}=e,{steps:n}=t,i=e=>{switch(e.contentType){case"image":return(0,c.jsx)(to,{imageResponse:e,contextParams:a});case"video":return(0,c.jsx)(tr,{videoResponse:{url:e.videoUrl,title:e.title||"",thumbnail:e.thumbnail,caption:e.caption,historicalCreationDate:e.historicalCreationDate,contentType:e.contentType},contextParams:a});case"table":return(0,c.jsx)(td,{tableResponse:{tableMap:JSON.stringify(e.tableMap)},contextParams:a});default:return""}};return(0,c.jsx)("div",{children:(0,c.jsx)("ol",{className:"[counter-reset:numberedList]",id:(0,g.rs)(t.stickyNavLinkName,"numbered-list"),children:n.map(e=>{let{media:t,subheading:n,body:o}=e,r=(0,g.rs)(n);return(0,c.jsxs)("li",{className:"first:mt-0 last:mb-0 my-14",children:[(0,c.jsx)("h2",{className:" text-3xl mt-12 mb-10 [counter-increment:numberedList] before:content-[counter(numberedList)'._']",id:r,children:n}),t&&(0,c.jsx)("div",{className:"mb-11",children:i(t)}),(0,c.jsx)(tn,{contextParams:a,paragraphListResponse:{content:o}})]})})})})}var tS=a(39769);function tE(e){let{response:t,contextParams:a,serviceRequestDomain:n}=e,i=t.urlOverride&&""!==t.urlOverride.trim(),o=!!t.haOid;return i||o?(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,contextParams:a,children:(0,c.jsx)(tS.Z,{id:(0,g.rs)(t.stickyNavLinkName,"mini-cta"),title:t.title,imageDisplayed:t.imageDisplayed,chevronDisplayed:t.chevronDisplayed,url:(()=>{if(i){let e=(0,v.pV)(a);return e&&(e="?".concat(e)),"".concat(t.urlOverride).concat(e)}return(0,v.sI)(n,t.haOid,a)})(),activityLocation:a.activityLocation||""})}):null}var tL=a(49032);function tR(e){let{brandInfo:t,searchBarData:a,contextParams:n,clientEnvironment:i,deviceType:o}=e,[r,s]=(0,y.useState)(null),[l,d]=(0,y.useState)(null),[p,g]=(0,y.useState)(n.postalCode||""),f=(0,u.IQ)()||"",C=(0,h.useGetSnowplowDomainInfo)();return(0,y.useEffect)(()=>{(0,m.yQ)().then(e=>{e&&s(e)})},[]),(0,y.useEffect)(()=>{d("".concat(i.lpbeApiDomain,"/landing/api/v1/search/autocomplete?domain=").concat(t.domain))},[r]),(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,contextParams:n,children:(0,c.jsx)(tL.Z,{serviceRequestDomain:"https://".concat(t.srPathDomain),searchApiHost:l,placeholder:"How can we help?",searchResultsDomain:"https://".concat(t.domain),disableZipValidation:!0,activityLocation:n.activityLocation||"",anonymousId:r,angiTraceId:f,isMobile:"mobile"===o,queryParameters:new URLSearchParams((0,v.pV)(n)),zipPlaceholder:"Zip code",initialSearchResults:a.initialResults,zipCodeInitial:p,onZipInputChange:e=>{g(e||"")},title:a.title,splitTreatmentRequestDomain:i.splitApiUrl,snowplowData:C})})}var tw=a(52599);function t_(e){let{brandInfo:t,searchResultsData:a,contextParams:n,clientEnvironment:i}=e,[o,r]=(0,y.useState)(null),[s,l]=(0,y.useState)(null),d=(0,u.IQ)()||"",p=(0,h.useGetSnowplowDomainInfo)();return(0,y.useEffect)(()=>{(0,m.yQ)().then(e=>{e&&l(e)})},[]),(0,y.useEffect)(()=>{r("".concat(i.lpbeApiDomain,"/landing/api/v2/search"))},[s]),(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,contextParams:n,children:(0,c.jsx)(tw.Z,{searchApiUrl:o,serviceRequestDomain:"https://".concat(t.srPathDomain),activityLocation:n.activityLocation||"",queryParameters:new URLSearchParams((0,v.pV)(n)),searchTerm:n.searchParams.query||"",resultsPerPage:a.resultsPerPage,title:a.title,totalResults:a.maxResults,initialSearchResults:a.results||[],anonymousId:s,angiTraceId:d,searchId:a.searchId,snowplowData:p})})}var tA=a(48667);
1function tN(e){let{contextParams:t,interactiveDataVizResponse:a}=e,{datawrapperId:n}=a,[i,o]=(0,y.useState)(null),[r,s]=(0,y.useState)(!1),[l,p]=(0,y.useState)(!1),v=()=>{r||((0,m.R7)("Item Clicked",{userType:d.sU,userId:(0,u.ld)(),appView:d.PI,activityLocation:t.activityLocation,description:"Interactive visual clicked"}),s(!0))};return(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,id:(0,g.rs)(a.stickyNavLinkName,"interactive-data-viz"),contextParams:t,children:(0,c.jsxs)("div",{id:"datawrapper-vis-".concat(n),onClick:v,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&v()},onMouseEnter:()=>{l||o(setTimeout(()=>{(0,m.R7)("Item Hovered",{userType:d.sU,userId:(0,u.ld)(),appView:d.PI,activityLocation:t.activityLocation,description:"Interactive visual hovered"}),p(!0)},5e3))},onMouseLeave:()=>{i&&(clearTimeout(i),o(null))},role:"button",tabIndex:0,children:[(0,c.jsx)(tA.default,{id:"datawrapper-script-".concat(n),src:"https://datawrapper.dwcdn.net/".concat(n,"/embed.js"),"data-target":"#datawrapper-vis-".concat(n),defer:!0,strategy:"afterInteractive"}),(0,c.jsx)("noscript",{children:(0,c.jsx)("img",{src:"https://datawrapper.dwcdn.net/".concat(n,"/full.png"),alt:"Data visualization"})})]})})}var tk=a(23844);function tO(e){let{clientEnvironment:t,contextParams:a,whatsNextCardResponse:n}=e,{searchParams:i}=a;return(0,c.jsx)(b,{componentConfiguration:n.componentConfiguration,contextParams:a,children:(0,c.jsx)(tk.Z,{myProjectsBaseUrl:t.myProjectsAngiBaseUrl,title:n.title,srOid:i.srOid})})}var tj=a(43447);function tD(e){let{clientEnvironment:t,whatsNextHeroResponse:a,contextParams:n}=e,{title:i,subtitle:o,componentConfiguration:r}=a,{searchParams:s,domain:l}=n,u=l.includes(d.Su)?t.myProjectsHaBaseUrl:t.myProjectsAngiBaseUrl,{bridge:m,isWrapped:p}=(0,ez.a)();return(0,y.useEffect)(()=>{p&&m.srFinished()},[m,p]),(0,c.jsx)(b,{componentConfiguration:r,contextParams:n,children:(0,c.jsx)(tj.Z,{linkToProjectDetails:!0,title:i,subtitle:o,myProjectsBaseUrl:u,srOid:s.srOid,onProjectDetailsLinkClick:e=>{if(p){var t;e.preventDefault();let a=parseInt(null!==(t=s.srOid)&&void 0!==t?t:"",10);m.navigateToProjectDetailsOrList(a)}}})})}var tU=a(66094),tB=a(45081);function tH(e){let{clientEnvironment:t,contextParams:a,whatsNextAppDownloadResponse:n}=e,{searchParams:i,domain:o}=a,r=o.includes(d.Su)?t.haAppDownloadDesktopRedirectBaseUrl:t.angiAppDownloadDesktopRedirectBaseUrl;return(0,c.jsx)(tB.Z,{children:(0,c.jsx)(b,{componentConfiguration:n.componentConfiguration,contextParams:a,children:(0,c.jsx)(tU.Z,{mobileAppDownloadUrl:t.mobileAppDownloadUrl,desktopRedirectBaseUrl:r,srOid:i.srOid})})})}var tM=a(49221);function tV(e){let{brandInfo:t,promotionalHeroResponse:a,contextParams:n}=e,{textAlignment:i,promotionalText:o,ctaButton:r,buttonLabel:s,buttonUrlOverride:l,taskId:p,image:h,video:f,mediaPositioning:C,inset:x,backgroundWash:T}=a,I=()=>{var e;(0,m.R7)("Item Clicked",{userType:d.sU,userId:(0,u.ld)(),appView:d.PI,activityLocation:n.activityLocation,description:"CTA Button in promotional hero",visitorPageCategory:null===(e=n.businessTaxonomyValue)||void 0===e?void 0:e.toLocaleUpperCase(),visitorPageGeo:(0,m.Vp)(n)})},[P,S]=(0,y.useState)(r);return(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,id:(0,g.rs)(a.stickyNavLinkName,"promotional-hero"),contextParams:n,children:(0,c.jsx)(tM.Z,{textAlignment:i,promotionalText:o,ctaButton:P,buttonLabel:s,image:h,video:f,mediaPositioning:C,inset:x,backgroundWash:T,activityLocation:n.activityLocation||"",handleCTAClick:e=>{e.preventDefault(),I(),setTimeout(()=>{if(p){let e="https://".concat(t.srPathDomain),a=(0,v.sI)(e,p,n);window.location.href=a}else l?window.location.href=l:S("Off")},300)}})})}var tF=a(58705);function tG(e){let{trustBuilderDynamicData:t,contextParams:a}=e;return(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,contextParams:a,children:(0,c.jsx)(tF.ip,{title:t.title||"",schemaName:t.
1schemaName,enableSEO:!0,stats:t.stats,sections:t.sections,variant:t.variant})})}var tq=a(9019),tZ=e=>{let{contentfulResponse:t,contextParams:a}=e,n=(0,tf.useRouter)(),{navigationHeaderText:i,backUrl:o,closeUrl:r,currentProgressStep:s,totalProgressSteps:l}=t;return(0,c.jsx)(tq.d,{className:"theme-pro",headerText:i,percentage:s/l*100,backButtonUrl:o,closeButtonUrl:r,onNavigate:e=>n.push(e),exitModalTitle:"Are you sure?",exitModalMessage:"You will not be able to purchase leads until you finish signing up.",exitModalPrimaryCtaText:"Go back",exitModalSecondaryCtaText:"Exit sign up",shouldPersistQueryParams:!0})};let tW=async(e,t,a)=>{let n;return null!=a&&(n="string"==typeof a?a:JSON.stringify(a)),fetch("/api/lpfe/proxy/landing/api/".concat(e),{body:n,method:t,headers:{"Content-Type":"application/json"}})},tK=async(e,t)=>{let a=await tW("v1/flow-state/".concat(e),"PATCH",t);if(!a.ok)throw Error("Error updating flow state with PATCH. status: ".concat(a.status))};var tY=a(33603),tX=a(14469),tz=e=>{let{contentfulResponse:t,contextParams:a}=e;ta({intentPage:"background-check",eventName:tt});let{multiStepNav:n,backgroundCheckForm:i,headingText:o,subheadingText:r,certifyText:s,isCertifiedText:l,isNotCertifiedText:d,whatsIncludedText:u,whatsIncludedModalHeader:m,whatsIncludedModalSubHeader:p,whatsIncludedModalButtonText:v,checkboxText:g,flowState:h,flowStatePii:f}=t,{firstNameHelperText:C,firstNamePlaceholder:y,middleNamePlaceholder:x,lastNameHelperText:T,lastNamePlaceholder:I,dobPlaceholder:P,dobHelperText:b,homeAddressHelperText:S,homeAddressPlaceholder:E,cityHelperText:L,cityPlaceholder:R,stateHelperText:w,statePlaceholder:_,zipPlaceholder:A,zipHelperText:N,businessTypeHelperText:k,businessTypePlaceholder:O,dropdownSelectPlaceholder:j,dropdownNotFound:D}=i,U=async e=>tK("online-enroll:".concat(a.spUUID),e),B=(0,tf.useRouter)(),{clientEnv:H}=(0,tX.C)();if(!(null==H?void 0:H.haBaseUrl)||!H.haApiUsername||!H.haApiAccesskey)return null;let{haBaseUrl:M,haApiUsername:V,haApiAccesskey:F}=H;return(0,c.jsx)(tY.c,{apiConfig:{baseUrl:M,userName:V,accessKey:F},heading:o,subheading:te(r),multiStepNav:n,onNavigate:e=>B.push(e),firstNameLabel:y,firstNameHelperText:C,middleNameLabel:x,lastNameLabel:I,lastNameHelperText:T,dateOfBirthLabel:P,dateOfBirthHelperText:b,addressLabel:E,addressHelperText:S,cityLabel:R,cityHelperText:L,stateLabel:_,stateHelperText:w,postalCodeLabel:A,postalCodeHelperText:N,businessTypeLabel:O,businessTypeHelperText:k,dropdownPlaceHolderText:j,dropdownNotFoundText:D,certifyText:s,isCertifiedText:l,isNotCertifiedText:d,whatsIncludedText:u,whatsIncludedModalHeader:m,whatsIncludedModalSubHeader:te(p),whatsIncludedModalButtonText:v,checkboxText:te(g),checkboxHelperText:"Please consent to a background check.",errorToastHeaderText:"",errorToastBodyText:"Something went wrong. Please try again.",flowState:h,flowStatePii:f,updateFlowState:U})},tJ=a(71256),tQ=e=>{let{contentfulResponse:t,contextParams:a}=e;ta({intentPage:"location",eventName:tt});let{headerText:n,subHeaderText:i,zipInputPlaceHolderText:o,rangeSliderMin:r,rangeSliderMax:s,rangeSliderDefault:l,rangeSliderStep:d,multiStepNav:u,flowState:m}=t,p=(0,tf.useRouter)(),{clientEnv:v}=(0,tX.C)();if(!(null==v?void 0:v.mapBoxUrl)||!v.onlineEnrollMapBoxKey||!v.haBaseUrl||!v.haApiUsername||!v.haApiAccesskey)return null;let{mapBoxUrl:g,onlineEnrollMapBoxKey:h,haBaseUrl:f,haApiUsername:C,haApiAccesskey:y}=v,x=async e=>tK("online-enroll:".concat(a.spUUID),e);return(0,c.jsx)(tJ.l,{apiConfig:{baseUrl:f,userName:C,accessKey:y},headerText:n,subHeaderText:i,zipInputPlaceHolderText:o,rangeSliderMin:r,rangeSliderMax:s,rangeSliderDefault:l,rangeSliderStep:d,mapBoxApiUrl:g,mapBoxApiKey:h,multiStepNav:u,errorToastHeaderText:"",errorToastBodyText:"Something went wrong. Please try again.",onNavigate:e=>{p.push(e)},flowState:m,updateFlowState:x})},t$=a(14155),t0=e=>{let{contentfulResponse:t,contextParams:a}=e;ta({intentPage:"tasks-and-services",eventName:tt});let{multiStepNav:n,flowState:i}=t,o=(0,tf.useRouter)(),{clientEnv:r}=(0,tX.C)();if(!(null==r?void 0:r.haBaseUrl)||!r.haApiUsername||!r.haApiAccesskey)return null;let s=async e=>
1tK("online-enroll:".concat(a.spUUID),e),{haBaseUrl:l,haApiUsername:d,haApiAccesskey:u}=r;return(0,c.jsx)(t$.k,{apiConfig:{baseUrl:l,username:d,accesskey:u},heading:"Edit tasks and add services.",subheading:"Tell us what you do so we can send you the most relevant leads. Edit tasks at any time.",placeholderText:"Add another service",resultsHeaderText:"RESULTS",servicesHeaderText:"SERVICES",viewAllServicesText:"View all services",toggleLabel:"Include commercial jobs",selectAllText:"Select all",tasksSelectedText:"{numTasks, plural, =0 {No tasks selected} one {# task selected} other {# tasks selected} }",removeServiceText:"Remove Service",warningText:"Select at least 1 task to add this service.",backButtonText:n.backButtonText,backButtonUrl:n.backButtonUrl,nextButtonText:n.nextButtonText,nextButtonUrl:n.nextButtonUrl,onNavigate:e=>{o.push(e)},continueModalPrimaryCtaText:"Ok",continueModalTitleText:"Select at least 1 task to continue.",errorToastHeaderText:"",errorToastBodyText:"Something went wrong. Please try again.",flowState:i,serviceRemovedToastHeaderText:"",serviceRemovedToastBodyText:"Service has been removed.",updateFlowState:s})},t1=a(26945);function t2(e){let{promotionalCardsResponse:t,contextParams:a}=e,n=()=>t.cards.map(e=>({...e,buttonUrl:e.buttonUrlOverride||""})),[i]=(0,y.useState)(()=>n());return(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,id:(0,g.rs)(t.stickyNavLinkName,"promotional-cards"),contextParams:a,children:(0,c.jsx)(t1.Z,{textAlignment:t.textAlignment,ctaButton:t.ctaButton,buttonLabel:t.buttonLabel,buttonUrl:t.buttonUrlOverride,backgroundWash:t.backgroundWash,promotionalCards:i,containerType:t.containerType,activityLocation:a.activityLocation||"",headline:t.headline,body:t.body})})}var t7=a(73259),t6=a(95804);function t4(e){let{contextParams:t,ProProfilesDefaultData:a}=e,{componentConfiguration:n,licensing:i,acceptedPayments:o,amenities:r,services:s,serviceHours:l,subHeaderDescriptions:d,highlights:u,header:m}=a,p={...n||{},stickyNavLinkName:(null==n?void 0:n.stickyNavLinkName)||""},v="Services we offer",g="Services we don't offer",h=!!(null==s?void 0:s.some(e=>e.servicesWeOffer)),f=!!(null==s?void 0:s.some(e=>e.servicesWeDontOffer)),C=Array.isArray(r)&&r.length>0,y=Array.isArray(o)&&o.length>0,x=e=>(null==s?void 0:s.reduce((t,a)=>(e===v&&a.servicesWeOffer&&t.push({description:a.servicesWeOffer}),e===g&&a.servicesWeDontOffer&&t.push({description:a.servicesWeDontOffer}),t),[]))||[],T=()=>({"About us":((null==d?void 0:d.length)||0)>0,"Contact Information":((null==d?void 0:d.length)||0)>0,"Service Hours":Array.isArray(l)&&l.length>0})[m]||!1,I=!0!==a.rightRailAligned,P=e=>(0,c.jsx)(t7.j,{header:e,subHeaderDescriptions:x(e),highlights:u,listItems:o,rowData:l,componentConfiguration:p}),S=e=>(0,c.jsx)(t7.j,{header:e,subHeaderDescriptions:r,listItems:o,componentConfiguration:p});return(0,c.jsxs)(c.Fragment,{children:["Services"===m&&(h||f)?(0,c.jsx)(b,{componentConfiguration:p,contextParams:t,children:(0,c.jsx)("div",{className:"sideBySideSectionContainer",children:(0,c.jsxs)("div",{className:"sideBySideWrapper",children:[h&&(0,c.jsx)("div",{className:"".concat(f?"sideBySideSection":""),children:P(v)}),f&&(0,c.jsxs)(c.Fragment,{children:[h&&(0,c.jsx)("div",{className:"divider"}),(0,c.jsx)("div",{className:"sideBySideSection",children:P(g)})]})]})})}):null,"Amenities & Accepted Payment Methods"===m&&(y||C)&&(0,c.jsx)(b,{componentConfiguration:p,contextParams:t,children:(0,c.jsx)("div",{className:"sideBySideSectionContainer",children:(0,c.jsxs)("div",{className:"sideBySideWrapper",children:[C&&(0,c.jsx)("div",{className:"".concat(y?"sideBySideSection":""),children:S("Amenities")}),y&&(0,c.jsxs)(c.Fragment,{children:[C&&(0,c.jsx)("div",{className:"divider"}),(0,c.jsx)("div",{className:"sideBySideSection",children:S("Accepted Payment Methods")})]})]})})}),"Licensing"===m&&void 0!==i&&(0,c.jsx)(b,{componentConfiguration:p,contextParams:t,children:(0,c.jsx)(t6.A,{licenses:i.licenses,bonded:i.bonded,insured:i.insured,stateLicenseRequirements:i.stateLicenseRequirements})}),T()&&(0,c.jsx)(b,{componentConfiguration:p,contextParams:t,className:"".concat(I?"ml:!mb-0":""),children:(0,c.jsxs)("div",{id:p.stickyNavLinkName.toLowerCase(),className:"".concat(I?"proProfileRightRailItem ".concat("Service Hours"===m?"ml:mt-6":""):""," business-info"),children:[(0,c.jsx)(t7.j,{header:m,subHeaderDescriptions:d,highlights:u,listItems:o,rowData:l,componentConfiguration:p}),"About us"===m&&T()&&(0,c.jsx)("div",{className:"divider"})]})})]})}var t5=a(4575);
1function t9(e){let{contextParams:t,raqCtaResponseData:a,brandInfo:n}=e,{ctaMessage:i,businessName:o,businessType:r,legacyId:s,filteredCategories:l}=a,d=(0,tf.useRouter)(),u=null==l?void 0:l.map(e=>({name:"serviceCategories",title:e.name,value:e.haId.toString()})),m=e=>{let t=parseInt(e.value,10);d.push("https://".concat(n.srPathDomain,"/service-request-pro-direct/").concat(t<0?"category":"task","/").concat(Math.abs(t),"?spIds=").concat(s,"&businessTypes=").concat(r,"&redirectSource=angi_pro_profile"))},p=e=>(0,c.jsx)(b,{contextParams:t,className:e,children:(0,c.jsx)(t5.M,{ctaButtonText:i,fullWidthCTA:"all",selectionTitle:"Request a quote from ".concat(o),selectionSubtitle:"Help this pro create your quote by answering a few questions.",cardSettingsItems:u||[],actionHandler:m})});return(0,c.jsxs)(c.Fragment,{children:[p("fixed bottom-0 left-0 right-0 z-[9999] px-6 py-4 bg-color-bg-default border-y border-gray-200 ml:hidden proProfileRaqCtaSticky"),p("proProfileRaqCtaDesktop")]})}var t3=a(41726),t8=a.n(t3);function ae(e){var t,a;let{ProProfilesReviewsListData:n,contextParams:i,apiBaseUrl:o}=e,{reviews:r,reviewCount:s,serviceProviderUuid:l,serviceProviderAddress:d,categories:u}=n;return(0,c.jsxs)(b,{contextParams:i,children:[(0,c.jsx)(t8(),{reviews:(null!=r?r:[]).map(e=>({...e})),reviewCount:s,serviceProviderUuid:l,serviceProviderAddress:d,serviceProviderName:null!==(a=null===(t=(null!=r?r:[])[0])||void 0===t?void 0:t.serviceProviderName)&&void 0!==a?a:"",categories:u,apiBaseUrl:o,defaultReviewsLimit:25,currentPage:i.page}),(0,c.jsx)("div",{className:"divider"})]})}var at=a(71556),aa=a(35157);function an(e){let{srFlowAddressResponse:t,clientEnvironment:a}=e,n=t.srPathState.postalCode,i="".concat(a.serviceRequestDomain,"/api");return(0,c.jsx)(aa.Z,{header:t.title,apiBaseUrl:i,mapBoxKey:a.mapBoxKey,nextButtonCta:t.nextButtonCTA,backButtonCta:t.previousButtonCTA,initialPostalCode:n})}var ai=a(96459);function ao(e){let{srFlowContactResponse:t,clientEnvironment:a,contextParams:n}=e,i=a.brandInfo.domain.includes(d.Su);return(0,c.jsx)(ai.Z,{header:t.title,subHeader:t.subTitle,nextButtonCta:t.submitCTA,smsInputVisible:t.smsInputDisplayed,smsInputLabel:t.smsInputLabel,isSocureEnabled:n.isSocureEnabled||!1,socureSdkKey:a.socureSdkKey,apiBaseUrl:a.serviceRequestDomain,srPathState:t.srPathState,srSubmitRedirectDomainHomeadvisor:a.srSubmitRedirectDomainHomeadvisor,srSubmitRedirectDomainAngi:a.srSubmitRedirectDomainAngi,useSlidingForm:!0,brandKey:i?"HOME_ADVISOR":"ANGI"})}var ar=a(25566);let as={environment:ar.env.ENVIRONMENT||"development",version:ar.env.VERSION||"0.0.0",otelServiceName:ar.env.OTEL_SERVICE_NAME||"landing-pages-frontend",otelNamespace:ar.env.OTEL_NAMESPACE||"slab-platform",lpbeApiDomain:ar.env.LPBE_API_DOMAIN||"https://api.angi.com",serviceRequestDomain:ar.env.SERVICE_REQUEST_DOMAIN||"https://request.angi.com",proListApiBaseUrl:ar.env.LPBE_API_DOMAIN||"https://api.angi.com",haBaseUrl:ar.env.HA_BASE_URL||"https://www.homeadvisor.com",haAuthBaseUrl:ar.env.HA_AUTH_BASE_URL||"https://www.homeadvisor.com",angiBaseUrl:ar.env.ANGI_BASE_URL||"https://www.angi.com",wsEntityServer:ar.env.NEXT_API_AUTH_TOKEN_URL||"https://api.angi.com/api/landing-pages/token",splitClientSideApiKey:ar.env.SPLIT_CLIENT_SIDE_API_KEY||"",eventGatewayApiUrl:ar.env.NEXT_EVENT_GATEWAY_URL||"https://api.angi.com/event-gateway",subscriptionServiceBaseUrl:ar.env.NEXT_SUBSCRIPTION_SERVICE_URL||"https://www.angi.com",snowplowAngiCollectorUrl:ar.env.NEXT_PUBLIC_SNOWPLOW_ANGI_COLLECTOR_URL||"",snowplowHomeAdvisorCollectorUrl:ar.env.NEXT_PUBLIC_SNOWPLOW_HOME_ADVISOR_COLLECTOR_URL||"",customerAttributesTraitsServiceBaseUrl:ar.env.CUSTOMER_ATTRIBUTES_TRAITS_SERVICE_BASE_URL||"https://customer-attributes-traits-service.proda.angi.cloud",snowplowPostPath:ar.env.NEXT_PUBLIC_SNOWPLOW_POST_PATH,profileCTACardsEnabled:ar.env.PROFILE_CTA_CARDS_ENABLED||"false",costGuideApiUrl:ar.env.NEXT_API_COST_GUIDE_URL||"https://api.angi.com/api/cost-guide",costGuideTaksApiUrl:ar.env.NEXT_API_COST_GUIDE_TASK_URL||"https://api.angi.com/api/cost-guide/task",brandInfo:d.Rg,chatbotApiUrl:ar.env.LPBE_API_DOMAIN||"https://landing-pages-backend.dev.angi.cloud",angiSearchDisambigUrl:ar.env.LPFE_DOMAIN||"",splitApiUrl:ar.env.NEXT_PUBLIC_SPLIT_URL||"https://api.angi.com/api/split",angiAppDownloadDesktopRedirectBaseUrl:ar.env.NEXT_PUBLIC_ANGI_APP_DOWNLOAD_DESKTOP_REDIRECT_BASE_URL||"",haAppDownloadDesktopRedirectBaseUrl:ar.env.NEXT_PUBLIC_HA_APP_DOWNLOAD_DESKTOP_REDIRECT_BASE_URL||"",mobileAp
1pDownloadUrl:ar.env.NEXT_PUBLIC_MOBILE_APP_DOWNLOAD_URL||"",myProjectsAngiBaseUrl:ar.env.NEXT_PUBLIC_MY_PROJECTS_ANGI_BASE_URL||"",myProjectsHaBaseUrl:ar.env.NEXT_PUBLIC_MY_PROJECTS_HA_BASE_URL||"",globalNavLoginRedirectCtrlDomain:ar.env.GLOBAL_NAV_LOGIN_CTRL_DOMAIN||"",globalNavLoginRedirectTestDomain:ar.env.LPFE_DOMAIN||"",srSubmitRedirectDomainAngi:ar.env.SR_SUBMIT_REDIRECT_DOMAIN_ANGI||"",srSubmitRedirectDomainHomeadvisor:ar.env.SR_SUBMIT_REDIRECT_DOMAIN_HOMEADVISOR||"",mapBoxKey:ar.env.NEXT_PUBLIC_MAPBOX_KEY||"",socureSdkKey:ar.env.NEXT_PUBLIC_SOCURE_SDK_KEY||"",mapBoxUrl:ar.env.NEXT_PUBLIC_MAPBOX_URL||"",onlineEnrollMapBoxKey:ar.env.NEXT_PUBLIC_ONLINE_ENROLL_MAPBOX_KEY||"",haApiUsername:ar.env.HA_API_USERNAME||"",haApiAccesskey:ar.env.HA_API_ACCESSKEY||"",verifyUrl:ar.env.NEXT_PUBLIC_VERIFY_URL||"",postalCodeBaseUrl:ar.env.POSTALCODE_BASE_URL||"/api/postalcode",officeAppBaseUrl:ar.env.OFFICE_APP_BASE_URL||"",unifiedProUpgradeBaseUrl:ar.env.UNIFIED_PRO_UPGRADE_URL||"",vwoAccountId:ar.env.VWO_ACCOUNT_ID||"",mixpanelProjectToken:ar.env.NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN||""};var al=a(95938),ac=a(42103),ad=a.n(ac);function au(e){let{contextParams:t}=e,a=t.domain.includes(d.Su),n=a?as.haBaseUrl:as.angiBaseUrl,{isWrapped:i}=(0,ez.a)();return(0,c.jsx)(al.Z,{brand:a?"HomeAdvisor":"Angi",homeUrl:n,activeStep:1,angiIconClassName:ad().angiIconOverride,isHomeLogoLinkDisabled:i})}var am=a(9417);function ap(e){let{RatingsData:t,contextParams:a}=e,{overallRating:n,gradeCounts:i,reviewCount:o,writeReviewUrl:r,writeReviewButtonText:s,stickyNavLinkName:l}=t,d={1:0,2:0,3:0,4:0,5:0};i.forEach(e=>{d[e.starRating]=e.count});let{isWrapped:u,bridge:m}=(0,ez.a)(),p=u&&void 0!==r;return(0,c.jsx)(b,{contextParams:a,children:(0,c.jsx)(am.n,{overallRating:n,reviewCount:o,ratingDistribution:d,writeAReviewURL:p?void 0:r,writeAReviewButtonText:s,writeAReviewButtonClick:p?e=>{if(p){e.preventDefault();let t=r.split("?")[0].split("/"),a=t.findIndex(e=>"review"===e),n=t[a+1]||null;null==m||m.navigateToWriteReview(0,Number(n),0)}}:void 0,id:null==l?void 0:l.toLowerCase(),reviewButtonId:"open-review-form",parentComponentType:"Reviews List"})})}var av=a(51536);function ag(e){let{srFlowPhoneCureResponse:t,clientEnvironment:a,contextParams:n}=e,i=a.brandInfo.domain.includes(d.Su),o=i?a.srSubmitRedirectDomainHomeadvisor:a.srSubmitRedirectDomainAngi,r="".concat(a.serviceRequestDomain),s=parseInt(n.searchParams.srOid||"0",10),l=n.keyCode;return(0,c.jsx)(av.Z,{title:t.title,subtitle:t.subtitle,inputLabel:t.inputLabel,inputPlaceholderCopy:t.inputPlaceholderCopy,ctaCopy:t.ctaCopy,brand:i?"HOME_ADVISOR":"ANGI",srPathState:t.srPathState,srOid:s,keyCodeFromCookie:l||"",apiBaseUrl:r,redirectDomain:o})}var ah=a(83102),af=a(76677);function aC(e){let{BusinessImagesData:t,contextParams:a,apiBaseUrl:n}=e,{galleries:i,stickyNavLinkName:o,retrieveImages:r,spId:s}=t,{setIsBusinessImagesLinkHidden:l}=(0,af.d)(),[d]=(0,y.useState)(r?[]:i);return(0,y.useEffect)(()=>{r||l(!i||0===i.length)},[r,i,l]),(0,c.jsx)(b,{contextParams:a,children:(0,c.jsx)(ah.ProjectImagesCard,{galleries:d,spId:s,retrieveImages:r,apiBaseUrl:n,stickyNavLinkName:null==o?void 0:o.toLowerCase(),onEmptyGallery:()=>l(!0)})})}var ay=a(75877);function ax(e){let{myProjectsResponse:t,contextParams:a,clientEnvironment:n}=e,{bridge:i,isWrapped:o}=(0,ez.a)();return t.projectData.length>0?(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,contextParams:a,children:(0,c.jsx)(ay.QM,{title:t.title,primaryCTAText:t.primaryCtaText,secondaryCTAText:t.secondaryCtaText,projects:t.projectData,activityLocation:a.activityLocation||"",myProjectsBaseUrl:n.myProjectsAngiBaseUrl,handlePrimaryCTAClickOverride:o?()=>{null==i||i.navigateToProjectDetailsOrList()}:void 0,handleMyProjectsCardCtaClickOverride:o?e=>{null==i||i.navigateToProjectDetailsOrList(e)}:void 0})}):null}var aT=a(25423),aI=a(47487);function aP(e){var t,a,n,i;let{contextParams:o,qaData:r,taxonomy:s}=e;if((null==r?void 0:null===(t=r.qaList)||void 0===t?void 0:t.questions)&&r.qaList.questions.length>0){let{title:e,typeformId:t,qaList:l}=r;return(0,c.jsxs)(b,{componentConfiguration:r.componentConfiguration,id:(0,g.rs)(r.stickyNavLinkName,"faq"),contextParams:o,children:[(0,c.jsx)(aT.Z,{title:e,qaList:l,activityLocation:null!==(i=o.activityLocation)&&void 0!==i?i:"",enableSeo:!0,stickyNavLinkName:d.iF,isBot:o.isBot,taxonomyInfo:{homeAdvisorTaskId:null==s?void 0:s.haOid,angiCategoryId:null==s?void 0:s.alCatId,taxonomyUuid:null==s?void 0:s.uuid},parentTaxonomyInfo:null==s?void 0:null===(a=s.parents)||void 0===a?void 0:a.map(e=>({homeAdvisorTaskId:e.haOid,angiCategoryId:e.alCatId,taxonomyUuid:e.uuid}))}),(null===(n=r.typeformId)||void 0===n?void 0:n.trim())&&(0,c.jsxs)("div",{className:"flex flex-col items-end mt-4",children:[(0,c.jsx)("div",{className:"w-full ml:w-[50%]",children:(0,c.jsx)(aI.Widget,{id:null!=t?t:"",style:{margin:"0"}
1,className:"typeform-widget",autoResize:!0,inlineOnMobile:!0})}),(0,c.jsx)("div",{className:"body-sm w-[97%] ml:w-[48%]",children:"By submitting this question, I acknowledge and agree that Angi may publicly display my name, city, state, and question on the website for professionals and others to see."})]})]})}return null}var ab=a(18498);function aS(e){let{srFlowBlockedResponse:t}=e;return(0,c.jsx)(ab.Z,{title:t.title,subtitle:t.subtitle,supportNumber:t.supportNumber})}var aE=a(68657);function aL(e){let{clientEnvironment:t,contextParams:a,response:n}=e,i="".concat(t.chatbotApiUrl,"/landing/api"),o=(0,h.useGetSnowplowDomainInfo)(),[r,s]=(0,y.useState)(""),{initialText:l}=a.searchParams;return(0,y.useEffect)(()=>{(null==o?void 0:o.domainUserId)&&s(o.domainUserId)},[o]),(0,c.jsx)(aE.Z,{apiUrl:i,showChatLauncher:n.showChatLauncher,placeholderText:n.placeholderText,anonymousId:r,searchQuery:a.businessTaxonomyValue||"",taskName:n.taskName||"",taskId:n.taskId,affiliateCode:a.affiliateCode,entryPointId:a.entryPointId,activityLocation:a.activityLocation,variant:n.variant,isFullScreen:n.fullScreenTakeover,initialText:l})}var aR=a(47170);function aw(e){var t;let a,{srFlowVerificationResponse:n,clientEnvironment:i,anonymousId:o,contextParams:r}=e;(t=a||(a={})).SMS="sms",t.EMAIL="email";let s=i.brandInfo.domain.includes(d.Su),l=s?i.srSubmitRedirectDomainHomeadvisor:i.srSubmitRedirectDomainAngi,u="".concat(i.serviceRequestDomain),m=parseInt(r.searchParams.srOid||"0",10),p=r.keyCode;return(0,c.jsx)(aR.Z,{srOid:m,redirectDomain:l,apiBaseUrl:u,keyCodeFromCookie:p||"",verificationBrand:s?"Homeadvisor":"Angi",verificationChannel:"sms",verifyUrl:i.verifyUrl,isSocureEnabled:r.isSocureEnabled||!1,socureSdkKey:i.socureSdkKey,verificationMetaData:{activityLocation:"Next SR Path SLAB - Verification",consentTimestamp:new Date,userIdentifierType:"anonymous",userIdentifier:o},srPathState:n.srPathState})}var a_=a(14371);function aA(e){let{brandInfo:t,homeownerStoryResponse:a,contextParams:n}=e,{title:i,story:o,contributorName:r,proBusinessName:s,proBusinessUrl:l,proLocation:d,reviewStarRating:u,miniCta:m}=a,p=(null==m?void 0:m.urlOverride)||((null==m?void 0:m.haOid)?(0,v.sI)("https://".concat(t.srPathDomain),m.haOid,n):""),h=m?{title:m.title,url:p,imageDisplayed:m.imageDisplayed,chevronDisplayed:m.chevronDisplayed,activityLocation:n.activityLocation||""}:void 0;return(0,c.jsx)(b,{componentConfiguration:a.componentConfiguration,id:(0,g.rs)(a.stickyNavLinkName,"homeowner-story"),contextParams:n,children:(0,c.jsx)(a_.Z,{title:i,story:o,contributorName:r,proBusinessName:s,proBusinessUrl:l,proLocation:d,reviewStarRating:u,miniCta:p?h:void 0,activityLocation:n.activityLocation||""})})}var aN=a(76042),ak=e=>{let{contentfulResponse:t,contextParams:a}=e;ta({intentPage:"profile",eventName:tt});let{headingText:n,subheadingText:i,textArea:o,insightBox:r,modalTitle:s,modalItems:l,modalCtaText:d,textAreaMinLength:u,multiStepNav:m,flowState:p}=t,{placeholderText:v,errorMessage:g,...h}=o,f={...h,placeHolder:v,errorText:g},C={...r,content:te(r.content)},y=l.map(e=>({title:e.title,description:e.description,iconUrl:e.image.url,iconAlt:e.image.altText})),x=async e=>tK("online-enroll:".concat(a.spUUID),e),T=(0,tf.useRouter)();return(0,c.jsx)(aN.E,{heading:n,subheading:te(i),textArea:f,insightBox:C,modalTitle:s,modalItems:y,modalCtaText:d,minLength:u,multiStepNav:m,errorToastHeaderText:"",errorToastBodyText:"Something went wrong. Please try again.",onNavigate:e=>T.push(e),flowState:p,updateFlowState:x})},aO=a(58287),aj=e=>{let{contentfulResponse:t,contextParams:a}=e,{variant:n,showIcon:i,showLink:o,linkHref:r,linkText:s,content:l}=t;return(0,c.jsx)(aO.h,{variant:n,showIcon:i,showLink:o,linkHref:r,linkText:s,content:te(l)}
1)},aD=a(52831),aU=e=>{let{contentfulResponse:t,contextParams:a}=e,{placeholderText:n,maxLength:i,rows:o,errorMessage:r,characterCountDisabled:s}=t;return(0,c.jsx)(aD.K,{placeholder:n,errorText:r,maxLength:i,rows:o,characterCountDisabled:s})},aB=a(32640),aH=e=>{let{contentfulResponse:t,contextParams:a}=e,{backButtonUrl:n,backButtonText:i,nextButtonUrl:o,nextButtonText:r}=t,s=(0,tf.useRouter)();return(0,c.jsx)(aB.o,{backButtonUrl:n,backButtonText:i,nextButtonUrl:o,nextButtonText:r,isFormProgressionButtonDisabled:!1,onNavigate:e=>s.push(e),shouldPersistQueryParams:!0})},aM=a(53318);function aV(e){let{jobReviewStatusResponse:t,contextParams:a,clientEnvironment:n,avId:i}=e,o=function(){let[e,t]=(0,y.useState)(null);return(0,y.useEffect)(()=>{(0,m.yQ)().then(e=>{e&&t(e)})},[]),e}(),r=(0,h.useIsSnowplowReady)();if(!o)return null;let s={pageIdentifier:a.activityLocation||""};return(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,contextParams:a,children:(0,c.jsx)(aM.B,{anonymousId:o,activityLocation:a.activityLocation||"",apiBaseUrl:n.lpbeApiDomain,splitAttributes:s,angiTraceId:(0,u.IQ)()||"",snowplowTracker:r?window.snowplow.core:void 0,avId:i})})}var aF=a(2750),aG=a(2540);function aq(){let[e,t]=(0,y.useState)(!1);(0,y.useEffect)(()=>{let e=setInterval(()=>{var a;(null===(a=window.OneTrust)||void 0===a?void 0:a.ToggleInfoDisplay)&&(t(!0),clearInterval(e))},200);return()=>clearInterval(e)},[]);let a=(0,y.useCallback)(()=>{var e,t;null===(t=window.OneTrust)||void 0===t||null===(e=t.ToggleInfoDisplay)||void 0===e||e.call(t)},[]);return(0,c.jsx)(aG.z,{onClick:a,disabled:!e,children:"Cookie Settings"})}function aZ(e){let{pageSpecificScriptResponse:t,contextParams:a,vwoAccountId:n}=e;switch(t.type){case"OneTrust":return(0,c.jsx)(aq,{});case"VWO":return(0,c.jsx)(c.Fragment,{children:a.splitExperimentVariant===d.tF.SPIRALYZE&&(0,c.jsx)(aF.default,{vwoAccountId:n})});default:return null}}var aW=a(73460),aK=a(20113);function aY(e){let{collapsibleSectionData:t,brandInfo:a,taxonomy:n,contextParams:i,clientEnvironment:o,deviceType:r}=e;return(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,id:(0,g.rs)(t.stickyNavLinkName),contextParams:i,children:(0,c.jsx)(aK.Z,{heading:t.title,expandedDefault:t.defaultState,children:nr(a,t.expandableComponents,i,o,n,r)})})}var aX=a(11180);function az(e){var t,a;let{reviewContainerData:n,contextParams:i,clientEnvironment:o,taxonomy:r}=e,s=i.domain.includes(d.hb),l=d._R.includes(i.domain),{setIsReviewLinkHidden:u}=(0,Z.D)(),[m,p]=(0,y.useState)(n),[h,C]=(0,y.useState)(""),[x,T]=(0,y.useState)(n.enableClientSideRendering),[I,P]=(0,y.useState)(n.enableClientSideRendering||(null==m?void 0:null===(t=m.reviews)||void 0===t?void 0:t.length)||!1),[S,E]=(0,y.useState)();(0,y.useEffect)(()=>{E(k())},[]);let R=n.postalCode||i.postalCode||S;R=!R&&i.isBot?X(1)[0]:R;let w=o.lpbeApiDomain,_=(0,y.useCallback)(async()=>{try{var e,t,a,s,l,c;let v=null===(e=n.alCategoryIds)||void 0===e?void 0:e.join(","),g=r?[r.uuid,...(r.parents||[]).map(e=>e.uuid)].join(","):"",h={alCategoryIds:v,postalCodeOverride:R,numReviews:n.reviewCardCount||0,postalCodeCollectionIds:null===(t=n.postalCodeCollectionIds)||void 0===t?void 0:t.join(","),keywords:null===(a=m.keywords)||void 0===a?void 0:a.join(","),taskUuids:g,brand:i.domain.includes(d.Su)?L.H2.HomeAdvisor:L.H2.Angi},f=await G(o.lpbeApiDomain,h);p({...m,reviews:f.reviews,stateAbbrev:null!==(l=f.stateAbbrev)&&void 0!==l?l:m.stateAbbrev,city:null!==(c=f.city)&&void 0!==c?c:m.city}),u(f.reviews&&f.reviews.length<d.Ri||!1),T(!1),P((null==f?void 0:null===(s=f.reviews)||void 0===s?void 0:s.length)||!1)}catch(e){console.error("Error fetching reviews:",e),P(!1),T(!1)}},[n.alCategoryIds,n.reviewCardCount,n.postalCodeCollectionIds,r,R,m,i.domain,o.lpbeApiDomain,u]);return(0,y.useEffect)(()=>{n.enableClientSideRendering&&x&&_()},[_,n.enableClientSideRendering,x]),(0,y.useEffect)(()=>{if(m.reviews){let e=new Date(0);m.reviews.forEach(t=>{let a=new Date(t.reportDate);a>e&&(e=a)}),C(z(e)),u(m.reviews.length<d.Ri)}},[m]),I&&(0,c.jsx)(b,{componentConfiguration:n.componentConfiguration,contextParams:i,"data-snowplow-component-type":"Reviews Container",id:(0,g.rs)(n.stickyNavLinkName,"reviews-container"),children:(0,c.jsx)("div",{children:(0,c.jsx)(aX.Z,{title:n.title,subtitle:n.subtitle,callToAction:n.ctaText,activityLocation:i.activityLocation||"",conjugation:m.categoryConjunctionName,lastUpdatedDate:h||z(new Date),location:"".concat(m.city,", ").concat(m.stateAbbrev),isLoading:x,reviews:m.reviews||K(),taxonomyInfo:{homeAdvisorTaskId:null==r?void 0:r.haOid,angiCategoryId:null==r?void 0:r.alCatId,taxonomyUuid:null==r?void 0:r.uuid},parentTaxonomyInfo:null==r?void 0:null===(a=r.parents)||void 0===a?void 0:a.map(e=>({homeAdvisorTaskId:e.haOid,angiCategoryId:e.alCatId,taxonomyUuid:e.uuid})),raqButtonUrl:l?"https://".concat(i.domain,"/send-request-to/"):(0,v.sI)(s?"https://request.angi.com":"https://request.homeadvisor.com",m.haCategoryId||0,i),proLinkBase:n.proLinkBase,enableSeo:!0,sessionId:"",isBot:i.isBot,enableSearch:n.enableSearch,baseUrl:w,endpoint:(()=>{var e;let t=(0,f.uD)(i.domain,(0,f.f6)(i.domain));return"/landing/api/v4/reviews?brand=".concat(t,"&numReviews=").concat(n.reviewCardCount||0,"&postalCodeOverride=").concat(R,"&query=").concat(n.categoryName,"&city=").concat(n.city,"&stateAbbreviation=").concat(n.stateAbbrev,"&postalCodeCollectionIds=").concat(null===(e=n.postalCodeCollectionIds)||void 0===e?void 0:e.join(","))})(),showTrustBuilder:n.showTrustBuilder,averageRating:n.averageRating,totalReviewCount:n.totalReviewCount})})})}var aJ=a(54950);function aQ(e){var t;let{projectGalleryResponse:a,contextParams:n,brandInfo:i}=e,o=a.miniCta.urlOverride||(a.miniCta.haOid?(0,v.sI)("https://".concat(i.srPathDomain),a.miniCta.haOid,n):""),r={title:a.miniCta.title,url:o,imageDisplayed:a.miniCta.imageDisplayed,chevronDisplayed:a.miniCta.chevronDisplayed,activityLocation:null!==(t=n.activityLocation)&&void 0!==t?t:""};return(0,c.jsx)(aJ.Z,{title:a.title,galleryImages:a.projectGalleryImages,miniCta:r,activityLocation:n.activityLocation||"",enableSeo:!0})}var a$=a(96540);function a0(e){let{zipCodeCaptureHeroData:t,contextParams:a,clientEnv
1ironment:n,userGeo:i}=e,o="".concat(n.postalCodeBaseUrl),[r,s]=(0,y.useState)(null==i?void 0:i.postalCode),l=e=>{let i=n.serviceRequestDomain;r&&(a.searchParams.postalCode=r);let o=new URL((0,v.sI)(i,t.haCategoryId,a));return o.searchParams.has("postalCode")?o.searchParams.set("postalCode",e):o.searchParams.append("postalCode",e),"".concat(o.toString(),"&zipConfirmed=true")};return(0,c.jsx)(b,{className:"zip-code-capture-hero",componentConfiguration:t.componentConfiguration,contextParams:a,children:(0,c.jsx)(a$.Z,{title:t.title,buttonText:t.primaryCtaText,apiBaseUrl:o,activityLocation:a.activityLocation||"",mapboxApiKey:n.onlineEnrollMapBoxKey,initialPostCode:null==i?void 0:i.postalCode,onSubmit:()=>{t.haCategoryId&&r&&(window.location.href=l(r))},onZipCodeChange:s})})}var a1=a(2960);let a2=async(e,t,a)=>{let n;return null!=a&&(n="string"==typeof a?a:JSON.stringify(a)),fetch("/api/unified-pro-upgrade-bff/proxy/".concat(e),{body:n,method:t,headers:{"Content-Type":"application/json"}})},a7=async e=>{let t=await a2("background-check","POST",e);if(!t.ok){let e=await t.text();throw Error("Background check submission failed: ".concat(t.status," ").concat(t.statusText,". ").concat(e))}},a6=async()=>((0,h.trackSelfDescribingEvent)({event:{schema:"iglu:com.angi.events/admissions_submission/jsonschema/1-0-0",data:{}}}),(0,ed.flushBuffer)(),new Promise(e=>{setTimeout(e,300)})),a4=async e=>{let t=await a2("v1/pro/".concat(e,"/enrollment"),"POST",{});if(t.ok)await a6();else{let e=await t.text();throw Error("Enrollment submission failed: ".concat(t.status," ").concat(t.statusText,". ").concat(e))}},a5=e=>{let t=new Date("".concat(e,"T00:00:00Z"));try{return new Intl.DateTimeFormat("en-US",{month:"2-digit",day:"2-digit",year:"numeric",timeZone:"UTC"}).format(t)}catch(t){return console.error("Failed to parse date for the Background Check Request. Date value: [".concat(e,"]"),t),new Intl.DateTimeFormat("en-US",{month:"2-digit",day:"2-digit",year:"numeric",timeZone:"UTC"}).format(new Date("1900/01/01"))}};var a9=e=>{let{contentfulResponse:t,contextParams:a}=e,n=(0,tf.useRouter)(),{clientEnv:i}=(0,tX.C)(),o=Number(a.spUUID);if(!(null==i?void 0:i.officeAppBaseUrl))return null;let{officeAppBaseUrl:r}=i,{flowState:s,flowStatePii:l}=t,{firstName:d="",middleName:u,lastName:m="",dateOfBirth:p="",email:v="",phone:g="",address:{addressLine1:h="",city:f="",state:C="",postalCode:y=""}={}}=null!=l?l:{},{businessType:x="",businessName:T=""}=null!=s?s:{},I=()=>{let e="".concat(r,"/app/h/").concat(a.spUUID,"/home");n.push("".concat(e,"?source=ONLINE_ENROLL"))};return(0,c.jsx)(a1.c,{loadingText:"Finishing your account setup...",backgroundCheckRequest:{spId:o,firstName:d,middleName:u,lastName:m,phone:g,dob:a5(p),email:v,streetAddress:h,city:f,state:C,zip:y,businessType:x,businessName:T},submitBackgroundCheck:a7,submitEnrollment:a4,onRequestError:I,onRequestSuccess:I})},a3=a(79566);function a8(e){let{brandInfo:t,directoryHeroData:a,contextParams:n,clientEnvironment:i,taxonomy:o,userGeo:r,deviceType:s}=e,[l,d]=(0,y.useState)(null),[p,g]=(0,y.useState)(null),[f,C]=(0,y.useState)(n.postalCode||""),x=(0,h.useGetSnowplowDomainInfo)();(0,y.useEffect)(()=>{(0,m.yQ)().then(e=>{e&&d(e)})},[]),(0,y.useEffect)(()=>{g("".concat(i.lpbeApiDomain,"/landing/api/v1/search/autocomplete?domain=").concat(t.domain))},[l]),(0,y.useEffect)(()=>{let e=k();f?C(f):e?C(e):(async()=>{try{(null==r?void 0:r.postalCode)&&r.postalCode!==f&&C(r.postalCode)}catch(e){console.error(e)}})()},[]);let T=()=>{let e=i.serviceRequestDomain;if((null==o?void 0:o.alCatId)&&(n.searchParams.categoryID=o.alCatId.toString()),f&&(n.searchParams.postalCode=f),null==o?void 0:o.haOid)return(0,v.sI)(e,o.haOid,n)};return(0,c.jsx)(b,{className:"directory-hero",componentConfiguration:a.componentConfiguration,contextParams:n,children:(0,c.jsx)(a3.Z,{title:a.title,subtitle:a.subtitle,includeImage:a.includeImage,heroImageUrl:a.heroImageUrl,heroImageAltText:a.heroImageAltText,ctaType:a.ctaType,ctaText:a.ctaText,searchPlaceholder:a.searchPlaceholder,initialSearchResults:a.searchOptions,activityLocation:n.activityLocation,anonymousId:l,angiTraceId:(0,u.IQ)()||"",serviceRequestDomain:"https://".concat(t.srPathDomain),searchApi
1Host:p,searchResultsDomain:"https://".concat(t.domain),searchParams:(0,v.pV)(n),splitTreatmentRequestDomain:i.splitApiUrl,postalCodePlaceholder:a.postalCodePlaceholder,postalCode:f,handlePostalCodeChange:e=>{/^[0-9]*$/.test(e.currentTarget.value)&&C(e.currentTarget.value)},handlePostalCodeCtaClick:()=>{(null==o?void 0:o.haOid)&&setTimeout(()=>{let e=T();e&&(window.location.href=e)},300)},includeTrustPilotWidget:a.includeTrustPilotWidget,domain:t.domain,snowplowData:x,children:a.suggestedProjects&&(0,c.jsx)(e$,{suggestedProjectsData:a.suggestedProjects,contextParams:n,deviceType:s})})})}function ne(e){var t,a;let{seoLinkBanks:n,taxonomy:i,contextParams:o}=e;return n?(0,c.jsxs)(c.Fragment,{children:[(null===(t=n.relatedTasksBank)||void 0===t?void 0:t.data)&&(0,c.jsx)(_,{seoLinkData:n.relatedTasksBank.data,taxonomy:i,contextParams:o}),(null===(a=n.priorityMetricsBank)||void 0===a?void 0:a.data)&&(0,c.jsx)(_,{seoLinkData:n.priorityMetricsBank.data,taxonomy:i,contextParams:o})]}):null}var nt=a(99145);function na(e){let{askAProData:t,contextParams:a,brandInfo:n}=e,{questions:i,title:o,subtitle:r,subtitleInlineCta:s,subtitleInlineCtaUrlOverride:l,footnote:d,primaryCtaUrl:u,primaryCtaText:m,filterName:p,filterId:v}=t,{domain:g}=a,h=(null==l?void 0:l.trim())?l:void 0,f=(null==u?void 0:u.trim())?u:void 0;return(0,c.jsx)(b,{componentConfiguration:t.componentConfiguration,contextParams:a,children:(0,c.jsx)(nt.T,{title:o,subtitle:r,domain:"https://www.".concat(g),subtitleInlineCta:s,subtitleInlineCtaUrlOverride:h,footnote:d,primaryCtaUrl:f,primaryCta:m,filterName:p,filterId:v,brand:n.name,questions:i.questions})})}function nn(e,t,a,n,i,o,r,s,l,d,u,m){let p=(0,c.jsx)("div",{});switch(t.name){case T.h.SR_FLOW_PHONE_CURED_CARD:p=(0,c.jsx)(ag,{srFlowPhoneCureResponse:t.data,contextParams:a,clientEnvironment:i});break;case T.h.SR_FLOW_HEADER:p=(0,c.jsx)(au,{contextParams:a});break;case T.h.SR_FLOW_ADDRESS:p=(0,c.jsx)(an,{srFlowAddressResponse:t.data,clientEnvironment:i});break;case T.h.SR_FLOW_CONTACT:p=(0,c.jsx)(ao,{srFlowContactResponse:t.data,contextParams:a,clientEnvironment:i});break;case T.h.BREADCRUMBS:p=(0,c.jsx)(eT,{breadCrumbResponse:t.data,contextParams:a});break;case T.h.GUIDEDPATHHERO:p=(0,c.jsx)(ef,{guidedPathHeroData:t.data,contextParams:a,userGeo:r});break;case T.h.HERO:p=(0,c.jsx)(O,{brandInfo:e,heroComponentData:t.data,contextParams:a,clientEnvironment:i,userGeo:r});break;case T.h.MATCHINGPROCESS:p=(0,c.jsx)(ey,{matchingProcessData:t.data,contextParams:a});break;case T.h.CONTENT_HERO:p=(0,c.jsx)(eu,{brandInfo:e,contentHeroResponse:t.data,contextParams:a});break;case T.h.PROMOTIONAL_HERO:p=(0,c.jsx)(tV,{brandInfo:e,promotionalHeroResponse:t.data,contextParams:a});break;case T.h.HOMEOWNER_STORY:p=(0,c.jsx)(aA,{brandInfo:e,homeownerStoryResponse:t.data,contextParams:a});break;case T.h.SR_CTA:p=(0,c.jsx)(S,{brandInfo:e,srCtaData:t.data,contextParams:a,deviceType:o});break;case T.h.BYLINE:p=(0,c.jsx)(ep,{bylineResponse:t.data,contextParams:a});break;case T.h.PRO_LIST:p=(0,c.jsx)(er,{brandInfo:e,proListData:t.data,contextParams:a,apiBaseUrl:i.proListApiBaseUrl,wsEntityServer:i.wsEntityServer,clientEnvironment:i,taxonomy:n});break;case T.h.ASK_A_PRO:p=(0,c.jsx)(na,{brandInfo:e,askAProData:t.data,contextParams:a});break;case T.h.FEATURED_PRO_CAROUSEL:p=(0,c.jsx)(eA,{proListData:t.data,contextParams:a,clientEnvironment:i,taxonomy:n,userGeo:r,brandInfo:e});break;case T.h.CONTENT_HUB:p=t.data&&t.data.teasers?(0,c.jsx)(R,{contentHubResponse:t.data,contextParams:a,taxonomy:n}):(0,c.jsx)("div",{});break;case T.h.CONTENT_CARDS:p=(0,c.jsx)(eg,{contentCardsResponse:t.data,contextParams:a,clientEnvironment:i});break;case T.h.SEO_LINKS:p=(0,c.jsx)(_,{seoLinkData:t.data,taxonomy:n,contextParams:a});break;case T.h.SEO_LINKS_NAVIGATION:p=(0,c.jsx)(ne,{seoLinkBanks:t.data,taxonomy:n,contextParams:a});break;case T.h.REVIEWS:p=(0,c.jsx)(J,{reviewCarouselData:t.data,contextParams:a,clientEnvironment:i,deviceType:o,taxonomy:n});break;case T.h.FAQ:p=(0,c.jsx)(el,{faqData:t.data,contextParams:a,taxonomy:n});break;
1case T.h.LARGE_CATEGORY_HERO:p=(0,c.jsx)(eP,{largeCategoryHeroData:t.data,contextParams:a,serviceRequestDomain:i.serviceRequestDomain});break;case T.h.CALLOUT_BLOCK:p=(0,c.jsx)(eS,{data:t.data,contextParams:a});break;case T.h.STICKY_CTA_BUTTON:p=(0,c.jsx)(eE.default,{brandInfo:e,stickyCtaData:t.data,contextParams:a});break;case T.h.EMAIL_SUBSCRIPTION:p=(0,c.jsx)(ew,{emailCaptureData:t.data,contextParams:a,clientEnvironment:i,userGeo:r,anonymousId:l,isEmailEligible:u});break;case T.h.LEGACY_HOMEPAGE_HERO:p=(0,c.jsx)(eU,{brandInfo:e,legacyHomepageHeroResponse:t.data,contextParams:a});break;case T.h.TOC:p=(0,c.jsx)(eH,{brandInfo:e,tocResponse:t.data,contextParams:a,deviceType:o});break;case T.h.PRO_AVAILABILITY:p=(0,c.jsx)(eW,{proAvailabilityData:t.data,contextParams:a,serviceRequestDomain:i.serviceRequestDomain});break;case T.h.START_PRO_SEARCH:p=(0,c.jsx)(eG,{response:t.data,contextParams:a,serviceRequestDomain:i.serviceRequestDomain});break;case T.h.RELATED_ARTICLES:p=(0,c.jsx)(eV,{relatedArticlesResponse:t.data,contextParams:a});break;case T.h.SUGGESTED_PROJECTS:p=(0,c.jsx)(e$,{suggestedProjectsData:t.data,contextParams:a,deviceType:o});break;case T.h.DETERMINE_NEEDS:p=(0,c.jsx)(e7,{response:t.data,contextParams:a});break;case T.h.TRUST_BUILDER:p=(0,c.jsx)(e1,{trustBuilderData:t.data,contextParams:a});break;case T.h.TRUST_BUILDER_DYNAMIC:p=(0,c.jsx)(tG,{trustBuilderDynamicData:t.data,contextParams:a});break;case T.h.INFO_CARD_CAROUSEL:p=(0,c.jsx)(e4,{response:t.data,contextParams:a});break;case T.h.PROJECT_COSTS:p=(0,c.jsx)(tm,{response:t.data,contextParams:a,serviceRequestDomain:i.serviceRequestDomain,costGuideApiUrl:i.costGuideApiUrl,costGuideTaksApiUrl:i.costGuideTaksApiUrl,userGeo:r});break;case T.h.PARAGRAPH_LIST:p=(0,c.jsx)(tn,{contextParams:a,paragraphListResponse:t.data});break;case T.h.IMAGE:p=(0,c.jsx)(to,{contextParams:a,imageResponse:t.data});break;case T.h.VIDEO:p=(0,c.jsx)(tr,{contextParams:a,videoResponse:t.data});break;case T.h.MEDIA:p=(0,c.jsx)(tl,{contextParams:a,mediaResponse:t.data});break;case T.h.TABLE:p=(0,c.jsx)(td,{contextParams:a,tableResponse:t.data});break;case T.h.IMAGE_CAROUSEL_HERO:p=(0,c.jsx)(tv,{brandInfo:e,imageCarouselHeroData:t.data,contextParams:a,clientEnvironment:i,userGeo:r});break;case T.h.DIRECTORY_HERO:p=(0,c.jsx)(a8,{brandInfo:e,directoryHeroData:t.data,contextParams:a,clientEnvironment:i,userGeo:r,taxonomy:n});break;case T.h.ICON_BANNER:p=(0,c.jsx)(th,{contextParams:a,iconBannerData:t.data});break;case T.h.PROFILE_CTA_CARDS:p=(0,c.jsx)(ty,{profileCTACardsResponse:t.data,contextParams:a,deviceType:o||"",clientEnvironment:i,anonymousId:null!=l?l:"",avId:null!=d?d:"",profileCTACards:null!=m?m:null});break;case T.h.JOB_REVIEW_STATUS:p=(0,c.jsx)(aV,{jobReviewStatusResponse:t.data,contextParams:a,clientEnvironment:i,avId:d});break;case T.h.DUAL_LIST:p=(0,c.jsx)(tT,{contextParams:a,dualListResponse:t.data});break;case T.h.QUICK_FACTS:p=(0,c.jsx)(tP,{contextParams:a,quickFactsResponse:t.data});break;case T.h.NUMBERED_LIST:p=(0,c.jsx)(tb,{numberedListResponse:t.data,contextParams:a});break;case T.h.MINI_CTA:p=(0,c.jsx)(tE,{response:t.data,contextParams:a,serviceRequestDomain:i.serviceRequestDomain});break;case T.h.SEARCH_BAR:p=(0,c.jsx)(tR,{brandInfo:e,searchBarData:t.data,contextParams:a,clientEnvironment:i,deviceType:o||""});break;case T.h.SEARCH_RESULTS:p=(0,c.jsx)(t_,{brandInfo:e,searchResultsData:t.data,contextParams:a,clientEnvironment:i});break;case T.h.INTERACTIVE_DATA_VIZ:p=(0,c.jsx)(tN,{interactiveDataVizResponse:t.data,contextParams:a});break;case T.h.WHATS_NEXT_CARD:p=(0,c.jsx)(tO,{clientEnvironment:i,contextParams:a,whatsNextCardResponse:t.data});break;case T.h.WHATS_NEXT_HERO:p=(0,c.jsx)(tD,{clientEnvironment:i,contextParams:a,whatsNextHeroResponse:t.data});break;case T.h.WHATS_NEXT_APP_DOWNLOAD:p=(0,c.jsx)(tH,{contextParams:a,clientEnvironment:i,whatsNextAppDownloadResponse:t.data});break;case T.h.PROMOTIONAL_CARD_CONTAINER:p=(0,c.jsx)(t2,{promotionalCardsResponse:t.data,contextParams:a});break;case T.h.PRO_PROFILES_DEFAULT_COMPONENT:p=t.data&&t.data.header?(0,c.jsx)(t4,{ProProfilesDefaultData:t.data,contextParams:a}):(0,c.jsx)("div",{});break;case T.h.BUSINESS_PROFILE:p=(0,c.jsx)($,{BusinessProfileData:t.data,contextParams:a});break;case T.h.PRO_PROFILES_RAQ_CTA:p=t.data.filteredCategories?(0,c.jsx)(t9,{raqCtaResponseData:t.data,contextParams:a,brandInfo:e}):(0,c.jsx)("div",{});break;case T.h.ONLINE_ENROLL_HEADER:p=(0,c.jsx)(tZ,{contentfulResponse:t.data,contextParams:a});break;case T.h.ONLINE_ENROLL_BACKGROUND_CHECK:p=(0,c.jsx)(tz,{contentfulResponse:t.data,contextParams:a});break;case T.h.ONLINE_ENROLL_RADIUS_UI:p=(0,c.jsx)(tQ,{contentfulResponse:t.data,contextParams:a});break;
1case T.h.ONLINE_ENROLL_TASK_SELECTION:p=(0,c.jsx)(t0,{contentfulResponse:t.data,contextParams:a});break;case T.h.ONLINE_ENROLL_PROFILE_DESCRIPTION:p=(0,c.jsx)(ak,{contentfulResponse:t.data,contextParams:a});break;case T.h.ONLINE_ENROLL_ADMISSIONS_SUBMIT:p=(0,c.jsx)(a9,{contentfulResponse:t.data,contextParams:a});break;case T.h.INSIGHT_BOX:p=(0,c.jsx)(aj,{contentfulResponse:t.data,contextParams:a});break;case T.h.TEXT_AREA:p=(0,c.jsx)(aU,{contentfulResponse:t.data,contextParams:a});break;case T.h.ONLINE_ENROLL_MULTI_STEP_NAV:p=(0,c.jsx)(aH,{contentfulResponse:t.data,contextParams:a});break;case T.h.STICKY_NAV:(null==s?void 0:s.length)&&(p=(0,c.jsx)(at.default,{landingComponents:s,contextParams:a,components:s,experienceType:a.experienceType}));break;case T.h.PRO_PROFILES_REVIEWS_LIST:p=t.data&&t.data.reviews?(0,c.jsx)(ae,{ProProfilesReviewsListData:t.data,contextParams:a,apiBaseUrl:i.lpbeApiDomain}):(0,c.jsx)("div",{});break;case T.h.RATINGS:p=(0,c.jsx)(ap,{RatingsData:t.data,contextParams:a});break;case T.h.MY_PROJECTS:p=(0,c.jsx)(ax,{myProjectsResponse:t.data,contextParams:a,clientEnvironment:i});break;case T.h.BUSINESS_IMAGES:p=(0,c.jsx)(aC,{BusinessImagesData:t.data,contextParams:a,apiBaseUrl:i.proListApiBaseUrl});break;case T.h.QA:p=(0,c.jsx)(aP,{qaData:t.data,contextParams:a,taxonomy:n});break;case T.h.CHATBOT:p=(0,c.jsx)(aL,{response:t.data,contextParams:a,clientEnvironment:i});break;case T.h.SR_FLOW_BLOCKED:p=(0,c.jsx)(aS,{srFlowBlockedResponse:t.data});break;case T.h.SR_FLOW_VERIFICATION:p=(0,c.jsx)(aw,{srFlowVerificationResponse:t.data,clientEnvironment:i,anonymousId:null!=l?l:"",contextParams:a});break;case T.h.COLLAPSIBLE_SECTION:p=(0,c.jsx)(aY,{collapsibleSectionData:t.data,brandInfo:e,taxonomy:n,contextParams:a,clientEnvironment:i,deviceType:o});break;case T.h.REVIEWS_CONTAINER:p=(0,c.jsx)(az,{reviewContainerData:t.data,contextParams:a,clientEnvironment:i,taxonomy:n});break;case T.h.PROJECT_GALLERY:p=(0,c.jsx)(aQ,{projectGalleryResponse:t.data,contextParams:a,brandInfo:e});break;case T.h.ZIP_CODE_CAPTURE_HERO:p=(0,c.jsx)(a0,{zipCodeCaptureHeroData:t.data,contextParams:a,clientEnvironment:i,userGeo:r});break;case T.h.PAGE_SPECIFIC_SCRIPT:p=(0,c.jsx)(aZ,{pageSpecificScriptResponse:t.data,contextParams:a,vwoAccountId:i.vwoAccountId});break;default:p=(0,c.jsx)("div",{})}return p}function ni(e){return e.filter(e=>e.name.includes(T.h.STICKY_NAV))[0].data}function no(e){return e.filter(e=>e.name.includes(T.h.STICKY_CTA_BUTTON))[0].data}function nr(e,t,a,n,i,o){return(0,c.jsx)(D.ZP,{className:"pt-12 ".concat(function(e){switch(e){case x.D9.CONDENSED:return"pb-condensed";case x.D9.REGULAR:return"pb-regular";default:return"pb-default"}}(a.componentGap)),children:(0,c.jsx)(aW.default,{brandInfo:e,components:t,taxonomy:i,contextParams:a,clientEnvironment:n,deviceType:o,rightRailComponents:[]})})}},80399:function(e,t,a){"use strict";a.d(t,{F:function(){return o}});var n=a(28747),i=a(12875);let o=(e,t,a,o)=>{let r;let s=(0,n.buildSnowplowSplitEvent)({featureFlag:e,splitKey:a||"",splitKeyType:t,treatment:o});void 0!==(r=window.snowplow.core)?r.track((0,i.buildSelfDescribingEvent)({event:s.event}),s.context):console.error("No Snowplow tracker initialized")}},40468:function(e,t,a){"use strict";function n(e,t){return e?e.trim().replace(/\s+/g,"-").toLowerCase():t||""}a.d(t,{rs:function(){return n}})},12630:function(e){e.exports={srPathGridWrapper:"LayoutGridWrapper_srPathGridWrapper__gayOE"}},42103:function(e){e.exports={angiIconOverride:"SrFlowHeaderWrapper_angiIconOverride__8HWnJ"}}}]);
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.