(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8944],{4956:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/landing/[...slug]",function(){return t(7649)}])},7649:function(e,n,t){"use strict";t.r(n);var l=t(85893),i=t(85561),a=t(67294),o=t(9008),r=t.n(o),s=t(10641),c=t(42823),u=t(11163),d=t(65399),g=t(72451),v=t(11016),_=t(72979),p=t(40612),h=t(97836);let m=e=>{let{baseDomain:n}=e,{query:t,asPath:o}=(0,u.useRouter)(),{slug:g}=t,h=(null==g?void 0:g.length)?g[2]:null,m=(null==g?void 0:g.length)?g[4]:null,f=(null==g?void 0:g.length)?g[5]:null,b=(null==g?void 0:g.length)?g[6]:null,y=(null==g?void 0:g.length)?g[7]:null,[E,x]=(0,a.useState)(void 0),w=(0,d.Z)(null),k="?landing=1&page=1&limit=21&sort=&price=&rate=&appointment_number=&distance=&amenities=&categories=&service_groups=&services=&service_variations=&book_date=&favorite=&text=&category_slug=".concat(h||"","&country_slug=").concat(m||"canada","&countries&province_slug=").concat(f||"ontario","&provinces&city_slug=").concat(b||"","&cities=&area_slug=").concat(y||"","&areas&gender"),{data:j,error:I}=(0,s.Z)(c.uB.getAll({query:k},w));if((0,a.useEffect)(()=>{j&&x(j)},[j]),(0,a.useEffect)(()=>{let e=document.getElementById("Bv-body"),n=0,t=t=>{e&&(n=t.changedTouches[0].clientY)},l=t=>{e&&!e.scrollTop&&t.changedTouches[0].clientY>n&&t.preventDefault()};return e&&(e.addEventListener("touchstart",t,{passive:!0}),e.addEventListener("touchmove",l,{passive:!1})),()=>{e&&(e.removeEventListener("touchstart",t),e.removeEventListener("touchmove",l))}},[]),!(null==j?void 0:j.data)||I||!E)return(0,l.jsx)(_.Z,{profile:null});let N={title:E.meta.title,description:E.meta.meta_description,canonical:E.meta.canonical,noIndex:E.meta.no_index};return(0,l.jsxs)(p.Z,{meta:N,children:[(0,l.jsx)(r(),{children:(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify((0,v.g)(o,E,n))}})}),(0,l.jsx)(i.Z,{data:E,landingQuery:k})]})};m.getInitialProps=async e=>{let{req:n}=e,{slug:t}=e.query,l=null==n?void 0:n.headers["x-ssr-disable"],i=(null==n?void 0:n.headers.host)||h.Bd,a="https://".concat(i);if(!l){let n=(null==t?void 0:t.length)?t[2]:null,l=(null==t?void 0:t.length)?t[4]:null,i=(null==t?void 0:t.length)?t[5]:null,o=(null==t?void 0:t.length)?t[6]:null,r=(null==t?void 0:t.length)?t[7]:null,s=(0,d.Z)(e),u="?landing=1&page=1&limit=21&sort=&price=&rate=&appointment_number=&distance=&amenities=&categories=&service_groups=&services=&service_variations=&book_date=&favorite=&text=&category_slug=".concat(n||"","&country_slug=").concat(l||"canada","&countries&province_slug=").concat(i||"ontario","&provinces&city_slug=").concat(o||"","&cities=&area_slug=").concat(r||"","&areas&gender");try{return{fallback:await (0,g.C)(c.uB.getAll({query:u},s)),disableHeaderInMobileView:!0,disableFooter:!1,baseDomain:a}}catch(e){}}return{disableHeaderInMobileView:!0,disableFooter:!1,baseDomain:a}},n.default=m}},function(e){e.O(0,[666,9509,2888,9774,179],function(){return e(e.s=4956)}),_N_E=e.O()}]);