1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[803,1151,1778,1938,2040,2486],{11778:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>l});var s=a(54009),t=a(18015),i=a(24882);a(39749);let n=e=>e.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=e=>{let{city:r,seoService:a}=e,{locale:l,query:c}=(0,i.useRouter)(),{t:o}=(0,t.A)("visitor_directory"),d="en"===l?"directory":"repertoire",{city:m,province:h}=c;return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"txt-display-xs neutral-900 mar-t-6",children:o("unfounded-service",{service_name:(null==a?void 0:a.headerTitle)?null==a?void 0:a.headerTitle:null==a?void 0:a.displayName,city_province_name:null==r?void 0:r.displayName})}),(0,s.jsxs)("div",{className:"mar-t-4 txt-md",children:[o("try-another-service"),(0,s.jsx)("a",{href:`/${l}/${d}/${h}/${m}/${n(o("bathroom"))}`,className:"primary-700",children:o("bathroom")}),","," ",(0,s.jsx)("a",{href:`/${l}/${d}/${h}/${m}/${n(o("flooring"))}`,className:"primary-700",children:o("flooring")})," ",o("or")," ",(0,s.jsx)("a",{href:`/${l}/${d}/${h}/${m}/${n(o("basement"))}`,className:"primary-700",children:o("basement")})]})]})}},31938:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>u});var s=a(54009),t=a(24882),i=a(39749),n=a(54997),l=a(78231),c=a(30776),o=a(60432),d=a(80803),m=a(11778);let h="contractor-list",p=(0,c.hY)(),u=e=>{let{city:r,seoService:a,list:c=[],total:u=0}=e,{locale:g}=(0,t.useRouter)(),[v,x]=(0,i.useState)(!1),[j,_]=(0,i.useState)(c),[f,w]=(0,i.useState)(u),[N,b]=(0,i.useState)(1),$=async()=>{var e;let s=await (0,l.O)(g,N,a.serviceId,null==(e=r.territory)?void 0:e.id,r.id);s&&(w(s.total),_(s.result))},y=async e=>{try{await p.post("/visitor/register-directory-contractors-view",{uids_contractor:e})}catch(e){}};return((0,i.useEffect)(()=>{v&&($(),(()=>{let e=document.getElementById(h).getBoundingClientRect().top+window.scrollY-90;window.scrollTo({top:e,behavior:"smooth"})})()),x(!0)},[N]),(0,i.useEffect)(()=>{(0,n.w)()||y(null==j?void 0:j.map(e=>e.id))},[j]),0==j.length)?(0,s.jsx)(m.default,{city:r,seoService:a}):(0,s.jsxs)("div",{id:h,children:[j.map(e=>(0,s.jsx)(d.default,{contractor:e,serviceId:a.serviceId},e.id)),(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"text-center mar-t-6",children:(0,s.jsx)(o.A,{currentPagination:N-1,items:j,itemsPerPage:l.E,setPagination:e=>b(e+1),totalItems:f})})})]})}},60432:(e,r,a)=>{"use strict";a.d(r,{A:()=>p});var s=a(54009),t=a(78019),i=a(24882);a(39749);var n=a(61388),l=a(67903),c=a(18523),o=a(75824),d=a.n(o),m=a(81760),h=a.n(m);function p(e){let{totalItems:r,setPagination:a,currentPagination:o,items:m,itemsPerPage:p}=e,u=p||5,g=(0,i.useRouter)();return(0,s.jsx)(s.Fragment,{children:r<u?null:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"pagination-container "+d().paginationContainer,children:(0,s.jsxs)(c.A,{className:"pagination pagination-success neutral-900 "+d().paginationSuccess,listClassName:"pagination-success "+d().paginationSuccess,children:[(0,s.jsx)(n.A,{className:d().pageItem,children:(0,s.jsx)(l.A,{className:`mar-0 h-100 neutral-900 ${d().pageLink}`,"aria-label":"Previous",onClick:()=>{a(0)},children:(0,s.jsx)("span",{className:"d-flex","aria-hidden":!0,children:(0,s.jsx)(h(),{src:"/img/svg/chevron-left-double.svg",width:"16",height:"16",alt:"chevron-left-double"})})})}),(0,s.jsx)(n.A,{className:d().pageItem,children:(0,s.jsxs)(l.A,{className:`mar-0 d-flex align-items-center h-100 neutral-900 ${d().pageLink}`,"aria-label":"Previous",onClick:()=>{o-1>=0&&a(o-1)},children:[(0,s.jsx)("span",{className:d().leftArrow,"aria-hidden":!0,children:(0,s.jsx)(t.IN,{width:"16px"})}),(0,s.jsx)("span",{className:d().hiddenMobile,children:"en"===g.locale?"Previous":"Pr\xe9c\xe9dent"})]})}),((e,r,a,t)=>{if((null==t?void 0:t.length)>0){let t=Math.ceil((e+u)/u-1),i=[];return t>3?a+1===1?i=Array.from({length:3},(e,r)=>r+1):a+1===t?(i.push(a+1-2),i.push(a+1-1),i.push(a+1)):(i.push(a),i.push(a+1),i.push(a+2)):i=Array.from({length:t},(e,r)=>r+1),i.map(e=>(0,s.jsx)(n.A,{className:`${(e=>{if(e-1===a)return d().active})(e)} ${d().pageItem}`,children:(0,s.jsx)(l.A,{className:d().pageLink,onClick:()=>{r(e-1)},children:(0,s.jsx)("span",{className:"neutral-700",children:e})})},`pageNumber${e}`))}return null})(r,a,o,m),(0,s.jsx)(n.A,{className:d().pageItem,children:(0,s.jsxs)(l.A,{className:`mar-0 d-flex align-items-center h-100 neutral-900 ${d().pageLink}`,"aria-label":"Previous",onClick:()=>{o+1>Math.ceil((r+u)/u-2)||a(o+1)},children:[(0,s.jsx)("span",{className:d().hiddenMobile,children:"en"===g.locale?"Next":"Suivant"}
1),(0,s.jsx)("span",{className:d().rightArrow,"aria-hidden":!0,children:(0,s.jsx)(t.tj,{width:"14px"})})]})}),(0,s.jsx)(n.A,{className:d().pageItem,children:(0,s.jsx)(l.A,{className:`mar-0 h-100 neutral-900 ${d().pageLink}`,"aria-label":"Next",onClick:()=>{a(Math.ceil((r+u)/u-2))},children:(0,s.jsx)("span",{className:"d-flex","aria-hidden":!0,children:(0,s.jsx)(h(),{src:"/img/svg/chevron-right-double.svg",width:"16",height:"16",alt:"chevron-right-double"})})})})]})})})})}},62040:e=>{e.exports={readMore:"contractor-card_readMore__E3BRj",descriptionBox:"contractor-card_descriptionBox__mgYR5",descriptionContainer:"contractor-card_descriptionContainer__2i12q",description:"contractor-card_description__DM8Ea",ratings:"contractor-card_ratings__ke05T",header:"contractor-card_header__ZA9s2",showMoreServices:"contractor-card_showMoreServices__Vwpt3",button:"contractor-card_button__YMmpl",address:"contractor-card_address__DUrkq",member:"contractor-card_member__zxooI"}},75824:e=>{e.exports={pageLink:"visitor-pagination_pageLink__laG8P",active:"visitor-pagination_active__s8kVq",pageItem:"visitor-pagination_pageItem__vq1c2",disabled:"visitor-pagination_disabled__Hs7JH",paginationSuccess:"visitor-pagination_paginationSuccess__8EqD_",paginationContainer:"visitor-pagination_paginationContainer__4dRqt",rightArrow:"visitor-pagination_rightArrow___hmQu",leftArrow:"visitor-pagination_leftArrow__oFabf",hiddenMobile:"visitor-pagination_hiddenMobile___pRq_"}},78231:(e,r,a)=>{"use strict";a.d(r,{E:()=>t,O:()=>i});let s=(0,a(30776).yS)(),t=15,i=async function(e,r,a,i,n){let l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];try{let{data:c}=await s.get("/contractor/website/directory",{cityId:n,locale:e,serviceId:a,skip:(r-1)*t,take:t,territoryId:i},{"x-use-cache":l?"true":""});return c}catch(e){return{results:[],total:0}}}},80803:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>j});var s=a(54009),t=a(13494),i=a(18015),n=a(81760),l=a.n(n),c=a(19135),o=a.n(c),d=a(24882),m=a(39749),h=a(50501),p=a(87433),u=a(62040),g=a.n(u),v=a(92486),x=a(81151);function j(e){let{contractor:r,serviceId:a}=e,n=(0,t.al)(),{t:c}=(0,i.A)("visitor_directory"),{locale:u}=(0,d.useRouter)(),j=(e=>{let{city:{name:r}={},streetNumber:a,street:s}=(null==e?void 0:e.address)??{},t=(e=>{let{zip:r}=(null==e?void 0:e.address)??{};return r?6===r.length?`${r.substring(0,3).toUpperCase()} ${r.substring(3,6).toUpperCase()}`:7===r.length?`${r.substring(0,3).toUpperCase()} ${r.substring(4,7).toUpperCase()}`:r:r})(e);return(a||"")+(s?(a?" ":"")+s:"")+(r?(a||s?", ":"")+r:"")+(t?((a||s||r)&&t?", ":"")+t:"")})(r),_=(e=>{let{logo:r}=e;return r&&r.startsWith("http")?r:"/img/contractor/logo-soumission-renovation-contractor.jpg"})(r),f=`/${u}/${"en"===u?"contractor":"entrepreneur"}/${r.slug}?referent=directory`,w=new Date(r.creationDate??new Date).getFullYear(),N=r.reviewCount||0,b=r.reviewAverage?(0,h.k)(r.reviewAverage,1,u):0;(0,m.useEffect)(()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");let e=sessionStorage.getItem("scrollPosition");e&&(window.scrollTo(0,parseInt(e,10)),sessionStorage.removeItem("scrollPosition"))},[]);let $=()=>{sessionStorage.setItem("scrollPosition",window.scrollY)};return(0,s.jsx)("div",{className:"mar-t-6 pad-t-6 pad-b-6 pad-l-1 pad-r-1 border-neutral-top-200 w-100".concat(r.isPremium?" border-left-primary-500 ":""),children:(0,s.jsxs)(t.fI,{columnSpacing:0,children:[(0,s.jsxs)(t.fv,{mobile:12,desktop:9.5,className:"pad-l-0 pad-r-0",children:[(0,s.jsxs)("div",{className:"d-flex",children:[(0,s.jsx)("div",{className:"mar-r-1",children:(0,s.jsx)(o(),{href:f,onClick:$,passHref:!0,children:(0,s.jsx)(l(),{alt:r.name,className:"circle",width:n?64:100,height:n?64:100,src:_})})}),(0,s.jsxs)("div",{className:n?"mar-l-3":"mar-l-4",children:[(0,s.jsxs)("div",{className:"d-flex",children:[(0,s.jsx)(o(),{className:"primary-700 font-weight-500 txt-md",href:f,onClick:$,passHref:!0,children:(0,s.jsx)(t.Y9,{as:"h3",className:`neutral-900 font-weight-500 ${g().header} ${n?"txt-lg":"txt-display-xs"}`,children:r.name})}),r.isPremium&&(0,s.jsx)("div",{className:"mar-l-2",children:(0,s.jsx)(l(),{alt:"premium",src:"/img/svg/verified.svg",width:22,height:22})})]}),(0,s.jsx)("div",{className:`${g().address}`,children:j}),N>0&&(0,s.jsx)("div",{className:`d-flex align-items-center ${g().ratings}`,children:(0,s.jsx)(t.k$,{ratingLabel:b,reviewLabel:`${N} ${c("reviews")}`})}),(0,s.jsxs)("div",{className:"d-none d-md-block",children:[(0,s.jsx)(x.default,{contractor:r,mainServiceId:a}),(0,s.jsx)(v.default,{description:r.description}),(0,s.jsxs)("div",{className:`font-weight-400 mar-t-4 ${g().member}`,children:[c("member-since")," ",w]})]})]})]}),(0,s.jsxs)("div",{className:"d-black d-md-none",children:[(0,s.jsx)(x.default,{contractor:r,mainServiceId:a}),(0,s.jsx)(v.default,{description:r.description}),(0,s.jsxs)("div",{className:`font-weight-400 visible-mobile mar-t-4 ${g().member}`,children:[c("member-since")," ",w]})]})]}),(0,s.jsx)(t.fv,{mobile:12,desktop:2.5,className:"pad-l-0 pad-r-0 px-md-3",children:(0,s.jsx)(p.A,{label:c("get-quote"),serviceId:a,className:`text-weight-500 txt-md d-block mar-r-0 w-100 text-center ${g().button} ${n?" mar-t-4":""}`,useDefaultPageUrl:!0})})]})})}},81151:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>d});var s=a(54009),t=a(13494),i=a(18015),n=a(39749),l=a(78019),c=a(62040),o=a.n(c);let d=e=>{let{contractor:r,mainServiceId:a}=e,c=(0,t.al)(),{t:d}
1=(0,i.A)("visitor_directory"),[m,h]=(0,n.useState)(!1),[p,...u]=((e,r)=>{let{services:a}=e;return Array.isArray(a)?a.sort(e=>e.id===r?-1:0):[]})(r,a),g=`pill-borders d-inline-block pad-t-1 pad-b-1 mar-r-3 ${c?"pad-r-2 pad-l-2 mar-b-2":"pad-r-4 pad-l-4 mar-b-3"}`,v=m?d("view-less-services"):d("view-more-services",{amount:u.length+1});return(0,s.jsxs)("div",{className:"mar-t-4 txt-sm",children:[(0,s.jsx)("div",{className:`${g} bgc-neutral-100`,children:(0,s.jsx)("span",{className:"neutral-700 font-weight-500",children:p.name})}),u.map((e,a)=>(0,s.jsx)("div",{className:`${g} bgc-neutral-100`,style:{display:m||a+1<4?"inline-block":"none"},children:(0,s.jsx)("span",{className:"neutral-700 font-weight-500",children:e.name})},`pill-${r.id}-${e.id}`)),u.length>=4&&(0,s.jsxs)("button",{className:`d-inline-block pad-t-1 pad-b-1 ${c?"pad-r-2 pad-l-2":"pad-r-4 pad-l-4"} ${o().showMoreServices}`,onClick:()=>h(!m),children:[(0,s.jsx)("span",{className:"neutral-700 font-weight-600",children:v}),(0,s.jsx)("span",{className:"mar-l-2",children:m?(0,s.jsx)(l.pn,{}):(0,s.jsx)(l.eJ,{})})]})]})}},92486:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>d});var s=a(54009),t=a(18015),i=a(39749),n=a(77819),l=a.n(n),c=a(62040),o=a.n(c);let d=e=>{let{description:r}=e,a=(0,i.useRef)(null),{t:n}=(0,t.A)("visitor_directory"),[c,d]=(0,i.useState)(!1),[m,h]=(0,i.useState)(!1),p=l()(r),u=()=>{if(a.current){let{scrollHeight:e,clientHeight:r}=a.current;h(e>r)}};return(0,i.useEffect)(()=>(u(),window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)),[]),(0,s.jsxs)("div",{className:o().descriptionContainer,children:[(0,s.jsx)("p",{ref:a,className:`font-weight-400 txt-sm ${o().description} ${c?"":o().descriptionBox}`,dangerouslySetInnerHTML:{__html:p}}),m&&(0,s.jsx)("button",{onClick:()=>{d(!c)},className:`neutral-700 font-weight-600 d-inline ${o().readMore}`,children:n(c?"read-less":"read-more")})]})}}}]);
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.