PageSourceSearch

https://www.glowday.com/_next/static/chunks/859-8f03d9caa31069c9.js

js glowday.com collected 2026-10-03 21:30:45 UTC 24,842 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[859],{86060:function(e,t,n){"use strict";var r=n(85893),ErrorLabel=function(e){var t=e.className,n=e.text,a=e.style,i=e.dataTestId,s=e.role;return(0,r.jsx)("span",{className:"error ".concat(t).trim(),style:a,"data-testid":i,role:s,children:n})};ErrorLabel.defaultProps={className:"",style:null,dataTestId:null,role:void 0},t.Z=ErrorLabel},70664:function(e,t,n){"use strict";var r=n(85893),a=n(41664),i=n.n(a),LinkAsButton=function(e){var t=e.link,n=e.className,a=e.text,s=e.shallow,l=e.testId;return(0,r.jsx)(i(),{href:t.href,as:t.as,shallow:s,className:"button text-center ".concat(n),"data-testid":l,children:a})};LinkAsButton.defaultProps={className:"",shallow:!1,testId:null},t.Z=LinkAsButton},51376:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return rating_CustomRating}});var r=n(11010),a=n(91309),i=n(97582),s=n(85893),l=n(67294),o=n(7989),c=n(53509),gettingRatingScore=function(e,t){var n=0;return e>0&&t>0&&(n=Number((e/t).toFixed(2))),n},u=n(35706),d=n(18834),m=n.n(d),rating_CustomRating=function(e){var t=e.practitionerId,n=e.initialRating,d=e.className,h=e.ratingType,f=(0,a._)((0,l.useState)(null),2),p=f[0],g=f[1];return(0,l.useEffect)(function(){var e,a,s=new AbortController,l=(e=(0,r._)(function(){var e,n;return(0,i.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,o.Ls)(t,s)];case 1:return e=r.sent(),(0,c.rP)(e),g(e.body?{reviewCount:e.body.reviewCount,averageRating:gettingRatingScore(e.body.totalScore,e.body.reviewCount)}:{reviewCount:0,averageRating:0}),[3,3];case 2:return n=r.sent(),(0,c.M8)(n,"GetPractitionerReviewScore",s),[3,3];case 3:return[2]}})}),function(){return e.apply(this,arguments)});return n?g({reviewCount:null!==(a=n.totalVoted)&&void 0!==a?a:0,averageRating:n.totalReviewScore}):l(),function(){s.abort()}},[t]),(0,s.jsx)(s.Fragment,{children:!!p&&(0,s.jsxs)("div",{className:"".concat(m()[void 0===d?"":d]," ").concat(m().ratingArea),children:[(0,s.jsx)(u.Z,{rating:p.averageRating,ratingType:void 0===h?"practitioner":h}),p.reviewCount>0&&(0,s.jsx)("small",{className:"rating",children:"".concat(p.reviewCount," reviews")})]})})}},35706:function(e,t,n){"use strict";n.d(t,{Z:function(){return rating_ReviewRating}});var r=n(4586),a=n(85893);n(67294);var i=n(18834),s=n.n(i),StarIcon=function(){return(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M12 2l2.9 6.26L21.6 9.2l-4.8 4.68 1.13 6.6L12 17.27 6.07 20.48l1.13-6.6L2.4 9.2l6.7-.94z"})})},StarRow=function(e){var t=e.className;return(0,a.jsx)("div",{className:t,"aria-hidden":"true",children:(0,r._)([,,,,,]).map(function(e,t){return(0,a.jsx)(StarIcon,{},t)})})},rating_ReviewRating=function(e){var t=e.rating,n=e.ratingType,r=e.className,i=t>0&&t<=5?"".concat(Number(100*t/5).toFixed(2),"%"):"0%",l=[s()[void 0===r?"":r],s().ratingArea].filter(Boolean).join(" "),ratingTooltipContent=function(){return"practitioner"===n?0===t?"This practitioner has no reviews yet":"This practitioner is rated at ".concat(t," out of 5"):"Rating is ".concat(t," out of 5")};return(0,a.jsx)("div",{className:l,children:(0,a.jsxs)("div",{className:s().stars,style:{"--rating":i},role:"img","aria-label":ratingTooltipContent(),title:ratingTooltipContent(),children:[(0,a.jsx)(StarRow,{className:s().starsBase}),(0,a.jsx)("div",{className:s().starsFill,children:(0,a.jsx)(StarRow,{className:s().starsFillRow})})]})})}},6110:function(e,t,n){"use strict";var r=n(72253),a=n(14932),i=n(85893);n(77090);var s=n(9008),l=n.n(s),o=n(67294),c=n(46066),CarouselWrapper=function(e){var t=e.slides,n=e.children,s=e.settings,u=e.initialSlideIndex,d=(0,o.useRef)(null),m=t?t.length:o.Children.count(n);return(0,o.useEffect)(function(){d.current&&void 0!==u&&d.current.slickGoTo(u)},[d,u,m]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l(),{children:[(0,i.jsx)("link",{rel:"preconnect",href:"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css",crossOrigin:"anonymous"}),(0,i.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css"},"carousel-styles"),(0,i.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css"},"carousel-theme")]}),(0,i.jsxs)(c.Z,(0,a._)((0,r._)({},s),{ref:d,children:[t&&t.map(function(e){return(0,i.jsx)("div",{children:(0,i.jsx)("img",{"data-src":e,alt:"Gallery",className:"lazyload"})},e)}),!t&&n]}))]})};CarouselWrapper.defaultProps={settings:{dots:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,lazyLoad:!0,arrows:!1}
1},t.Z=CarouselWrapper},89559:function(e,t,n){"use strict";n.d(t,{Z:function(){return results_SearchResultsView}});var r,a,i,s=n(11010),l=n(91309),o=n(4586),c=n(97582),u=n(85893);n(85525);var d=n(67294),m=n(58533),h=n(32304),f=n(27878),p=n(66849),g=n(13360),v=n(39538),x=n(95591),w=n(96224),j=n(53509),_=n(19565),y=n(21389),N=(r=(0,s._)(function(e,t,n){var r,a,i,s,l,o,u;return(0,c.Jh)(this,function(c){switch(c.label){case 0:t(!0),c.label=1;case 1:return c.trys.push([1,3,4,5]),[4,(0,x.iv)(e,n)];case 2:if(r=c.sent(),(a=(0,j.nD)(r)).practitioners.length>0)return i=a.totalPractitioners>25,s=a.practitioners.map(function(e){try{return{id:e.id,practitionerId:e.practitionerId,locationId:e.locationId,clinicName:e.clinicName,clinicSlug:e.clinicSlug,name:e.name,slug:e.slug,profileImage:(0,y.Fv)(e.profileImage).size(94,94).auto("format").url(),photos:e.photos?e.photos.map(function(e){return(0,y.Fv)(e).width(720).auto("format").url()}):[],treatmentCategories:e.treatmentCategories,isLevel7:e.isLevel7||!1,reviewCount:e.reviewCount,reviewScore:e.reviewScore,treatmentMinPrice:Math.min.apply(Math,e.treatmentCategoryItems.filter(function(t){return t.categoryId!==_.D||1===e.treatmentCategoryItems.length&&t.categoryId===_.D}).map(function(e){return e.price})),treatments:e.treatmentCategoryItems.map(function(e){return{categoryId:e.categoryId,name:e.name,price:e.price,treatmentId:e.treatmentId}}),distance:e.distance,locationName:e.locationName}}catch(t){return f.A.criticalException(t,{info:"failed to map practitioner ".concat(e.id)}),null}}).filter(function(e){return null!==e}),l=a.practitionerMapPoints.map(function(e){return{lat:Number(e.lat),lon:Number(e.lon),open:!1,practitioners:e.practitioners.map(function(e){return{id:e.id,name:e.name,clinicName:e.clinicName,profileImage:(0,y.Fv)(e.profileImage).size(94,94).auto("format").url(),slug:"clinic/".concat(e.clinicSlug,"/").concat(e.slug),treatmentMinPrice:Math.min.apply(Math,e.treatmentCategoryItems.filter(function(t){return t.categoryId!==_.D||1===e.treatmentCategoryItems.length&&t.categoryId===_.D}).map(function(e){return e.price})),treatments:e.treatmentCategoryItems.map(function(e){return{categoryId:e.categoryId,name:e.name,price:e.price,treatmentId:e.treatmentId}})}})}}),o=s.filter(function(e){return!0===e.isLevel7}).length>0,[2,{loadMore:i,mapPoints:l,practitioners:s,showLevel7Filter:o,totalPractitioners:a.totalPractitioners}];return[2,null];case 3:return(u=c.sent())instanceof w.u8?f.A.exception(u,{type:"search result view"}):(0,j.M8)(u,"search result view",n),[2,null];case 4:return t(!1),[7];case 5:return[2]}})}),function(e,t,n){return r.apply(this,arguments)}),b=n(69947),S=n(73857),molecules_Filter=function(e){var t=e.level7Callback,n=e.level7FilterActive,r=e.hasLevel7Practitioners;return(0,u.jsxs)("div",{className:"search__sort border-top",children:[(0,u.jsx)("div",{className:"search__sort-navigation",children:(0,u.jsx)("span",{className:"uppercase",children:"Filter By:"})}),(0,u.jsx)("div",{className:"search__sort-filters",children:(0,u.jsx)("div",{className:"".concat(n?"current":null),children:(0,u.jsx)(S.Z,{text:"Level 7 Practitioners",className:r?"button--pill button--small":"button--pill button--small button--disabled",onClick:function(){if(r)return t(!n)}})})})]})},R=n(86060);(a=i||(i={})).Distance="DISTANCE",a.Recommendation="MOST_RECOMMENDED",a.Rating="BEST_RATED";var molecules_InformationBar=function(e){var t=e.totalResults,n=e.locationName,r=e.showNoResultMessage,a=e.error,s=e.orderByRecommendedReviewsCallback,o=e.orderByRecommendedReviews,c=e.highestRatedOrder,m=e.highestRatedOrderCallback,h=(0,l._)((0,d.useState)(),2),f=h[0],p=h[1];(0,d.useEffect)(function(){o&&p(i.Recommendation),c&&p(i.Rating),o||c||p(i.Distance)},[]);var SetOrderBy=function(e){switch(e){case i.Recommendation:s(!0),m(!1);break;case i.Rating:m(!0),s(!1);break;case i.Distance:m(!1),s(!1);break;default:s(!0),m(!1)}p(e)};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"search__sort border-top",children:[(0,u.jsx)("div",{className:"search__sort-navigation",children:(0,u.jsx)("span",{className:"uppercase",children:"".concat(t," results")})}),(0,u.jsx)("div",{className:"search__sort-filters field",children:(0,u.jsx)("div",{className:"field__select column-t-6",children:(0,u.jsxs)("select",{name:"sort-by",id:"sort
1-by",title:"sort-by",value:f,onChange:function(e){return SetOrderBy(e.target.value)},children:[(0,u.jsx)("option",{value:i.Distance,children:"Distance"}),(0,u.jsx)("option",{value:i.Recommendation,children:"Recommended"}),(0,u.jsx)("option",{value:i.Rating,children:"Highest Rated"})]})})})]}),r&&n&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{className:"border-top padding-top-2",children:"Hey there Glowgetter, we're not in your area yet, but we will be. Check back again soon."}),(0,u.jsxs)("p",{children:["Do you know a clinic that should be on Glowday? Let us know at"," ",(0,u.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})]}),a&&(0,u.jsx)(R.Z,{text:a,className:"margin-top-1"})]})};n(77090);var C=n(41664),I=n.n(C),k=n(85998),T=n.n(k),M=n(70664),P=n(51376),L=n(6110),E=(0,d.forwardRef)(function(e,t){var n=e.practitioner,r=e.selectedMapPointId,a=e.handleResultCardClick,i=(0,l._)((0,d.useState)([]),2),s=i[0],c=i[1],m=(0,l._)((0,d.useState)(!1),2),h=m[0],f=m[1];(0,d.useEffect)(function(){var e=(0,o._)(n.photos);e&&c(e.slice(0,4))},[]),(0,d.useEffect)(function(){r===n.id?f(!0):f(!1)},[r]);var p=n.treatmentCategories.length>1?{categoryName:"Various",categoryId:null}:n.treatmentCategories[0],g=p.categoryId,v={href:"/practitioner?clinicName=".concat(n.clinicSlug,"&name=").concat(n.slug),as:"clinic/".concat(n.clinicSlug,"/").concat(n.slug)};return n.locationId&&(v.href+="&locationId=".concat(n.locationId)),g&&(v.href+="&treatmentCategory=".concat(p.categoryId,"&fromSearch=true")),(0,u.jsxs)("article",{onMouseOver:function(e){return a(e,n.id)},onFocus:function(e){return a(e,n.id)},ref:t,id:n.id,className:"practitioner-result ".concat(h?"practitioner-selected":""),"data-testid":"search-result",children:[(0,u.jsx)("div",{className:"practitioner-result__images clickable",role:"button",tabIndex:0,children:s&&(0,u.jsx)(L.Z,{children:s.map(function(e){return(0,u.jsx)("div",{children:(0,u.jsx)(I(),{href:v.href,as:v.as,children:(0,u.jsx)("img",{"data-src":e,alt:"Gallery",className:"lazyload",width:"720",height:"450"})})},e)})})}),(0,u.jsxs)("div",{className:"practitioner-result__info",children:[(0,u.jsxs)("div",{className:"practitioner-result__details",children:[(0,u.jsxs)("div",{className:"margin-right__t-1",children:[(0,u.jsxs)("div",{className:"practitioner-result__details--clinic",role:"button",children:[(0,u.jsx)(I(),{href:v.href,as:v.as,className:"link link--unstyled",children:(0,u.jsx)("h2",{className:"clickable",children:n.name})}),(0,u.jsx)(I(),{href:"/clinic?name=".concat(n.clinicSlug),as:"clinic/".concat(n.clinicSlug),className:"link link--unstyled",children:(0,u.jsx)("span",{className:"golden golden--new clickable",children:n.clinicName})})]}),(0,u.jsx)("div",{className:"practitioner-result__details--standout",children:(0,u.jsx)(I(),{href:v.href,as:v.as,className:"link link--unstyled",children:(0,u.jsx)(P.default,{className:"columnStack",initialRating:{totalVoted:n.reviewCount,totalReviewScore:n.reviewScore},practitionerId:n.practitionerId})})})]}),(0,u.jsxs)("div",{className:"practitioner-result__avatar",children:[(0,u.jsx)(I(),{href:v.href,as:v.as,children:(0,u.jsx)("img",{"data-src":n.profileImage,className:"practitioner-result__logo lazyload",alt:n.name,width:"106",height:"106"})}),n.isLevel7&&(0,u.jsx)("div",{className:"practitioner-result__avatar--level round-image",children:(0,u.jsx)(I(),{href:v.href,as:v.as,children:(0,u.jsx)("img",{src:"/static/img/icons/l7.svg",alt:"Level 7 badge",width:"29",height:"29"})})})]})]}),n.distance&&(0,u.jsxs)("div",{className:"practitioner-result__distance row row--no-margin row--middle row--justified",children:[n.locationName&&(0,u.jsx)("small",{className:"column-m-7 ellipses",children:n.locationName}),(0,u.jsx)("div",{className:"column-m-5 row row--no-margin row--end",children:(0,u.jsx)("span",{className:"label label--small",children:n.distance})})]}),(0,u.jsxs)("div",{className:"practitioner-result__description",children:[(0,u.jsx)("div",{className:"row row--no-margin row--direction-column",children:(0,u.jsx)(I(),{href:v.href,as:v.as,className:"link link--unstyled",children:(0,u.jsxs)("span",{className:"practitioner-result__price",children:["From"," ",(0,u.jsx)(T(),{quantity:n.treatmentMinPrice,currency:"GBP"})]})})}),(0,u.jsx)("div",{children:(0,u.jsx)(M.Z,{text:"View Profile",className:"button--fullwidth button--small button--flat button--gold",testId:"profile",link:{href:v.href,as:v.as}})})]})]})]})}),ResultCards=function(e){var t=e.practitioners,n=e.handleResultCardClick,r=e.practitionerRefs,a=e.selectedMapPointId;return(0,u.jsx)(u.Fragment,{children:t.map(function(e){return(0,u.jsx)(E,{handleResultCardClick:n,ref:function(t){if(r.current&&t){var n=e.id;r.current[n]=t}},selectedMapPointId:a,practitioner:e},e.id)})})},F=n(11752),B=n.n(F),A=n(97378),z=B()().publicRuntimeConfig.mapBoxKey,SearchMap=function(e){var t=e.searchResults,n=e.lat,r=e.lon,a=e.zoomLevel,i=e.setSelectedMapPointId,s=e.setSearchResults,c=e.selectedPractitionerId,m=e.height,h=(0,l._)((0,d.useState)({latitude:n,longitude:r,zoom:null!=a?a:0,bearing:0,pitch:0,padding:{}}),2),f=h[0],g=h[1];(0,d.useEffect)(function(){if(c&&t.length){var e=null,n=t.filter(function(e){return e.open});n.length>
10&&n.forEach(function(e){var n=t.indexOf(e),r=t[n];r.open=!1,t[n]=r});var r=t.find(function(e){return e.practitioners.find(function(e){return e.id===c})});if(r){e={latitude:r.lat,longitude:r.lon,zoom:f.zoom,bearing:0,pitch:0,padding:{}};var a=t.indexOf(r),i=t[a];i.open=!0,t[a]=i}s((0,o._)(t)),e&&g(e)}},[c]);var HandleMarkerClick=function(e,t){e.preventDefault(),i(null),s(function(e){if(e){var n=e.filter(function(e){return e.open});n.length>0&&n.forEach(function(t){var n=e.indexOf(t),r=e[n];r.open=!1,e[n]=r});var r=e[t];return r.open=!0,1===r.practitioners.length&&i(r.practitioners[0].id),e[t]=r,(0,o._)(e)}return[]})},HandlePopUpClose=function(e,t){i(null),s(function(e){if(e){var n=e[t];return n.open=!1,e[t]=n,(0,o._)(e)}return e})},HandlePractitionerClick=function(e,t){e.preventDefault(),i(t)};return(0,u.jsxs)(u.Fragment,{children:[f.latitude&&f.longitude&&(0,u.jsxs)(A.ZP,{mapStyle:"mapbox://styles/mapbox/streets-v11",mapboxAccessToken:z,latitude:f.latitude,longitude:f.longitude,zoom:f.zoom,scrollZoom:!1,style:{width:"100%",height:m,borderRadius:"13px"},onMove:function(e){return g(e.viewState)},children:[(0,u.jsx)(A.Pv,{showCompass:!0,showZoom:!0,position:"top-right"}),t.map(function(e,t){return(0,u.jsx)(A.Jx,{longitude:e.lon,latitude:e.lat,children:e.open?(0,u.jsx)(A.GI,{className:"popup",longitude:e.lon,latitude:e.lat,closeButton:!0,closeOnClick:!1,onClose:function(e){return HandlePopUpClose(e,t)},children:(0,u.jsx)("div",{style:{maxHeight:"8rem",overflowX:"hidden",overflowY:"auto"},children:e.practitioners.map(function(e){return(0,u.jsx)("div",{children:(0,u.jsx)("button",{type:"button",onClick:function(t){return HandlePractitionerClick(t,e.id)},className:"popup__content",children:(0,u.jsxs)("div",{className:"row row--no-margin row--middle row--justified",children:[(0,u.jsx)("div",{className:"column-m-4",children:(0,u.jsx)("img",{src:e.profileImage,alt:e.name,className:"round-image"})}),(0,u.jsx)("div",{className:"column-m-8",children:(0,u.jsxs)("ul",{className:"unstyled",children:[(0,u.jsx)("li",{children:(0,u.jsx)("span",{className:"capitalise bold",children:e.name})}),(0,u.jsx)("li",{children:(0,u.jsx)("span",{className:"golden",children:e.clinicName})}),(0,u.jsx)("li",{children:(0,u.jsxs)("span",{className:"bold popup__price",children:["\xa3",e.treatmentMinPrice]})})]})})]})})},e.id)})})}):(0,u.jsx)("button",{onClick:function(e){return HandleMarkerClick(e,t)},className:"marker-style",type:"button",children:(0,u.jsx)("img",{src:"/static/img/icons/pin.svg",alt:"Glowday Pin"})})},"".concat(t,"-").concat(e.open))})]}),!f.latitude&&!f.longitude&&(0,u.jsx)(p.Z,{})]})};SearchMap.defaultProps={zoomLevel:10};var results_SearchResultsView=function(e){var t,n,r=e.mapHeight,a=e.type,i=e.missing,x=(0,d.useContext)(v.Z),w=x.searchType,j=x.treatment,_=x.location,y=x.showNoResultMessage,S=x.noResultsMessageCallback,R=(0,l._)((0,d.useState)(!1),2),C=R[0],I=R[1],k=(0,l._)((0,d.useState)(null),2),T=k[0],M=k[1],P=(0,l._)((0,d.useState)(null),2),L=P[0],E=P[1],F=(0,l._)((0,d.useState)(null),2),B=F[0],A=F[1],z=(0,l._)((0,d.useState)(null),2),Z=z[0],D=z[1],H=(0,l._)((0,d.useState)(0),2),O=H[0],G=H[1],V=(0,l._)((0,d.useState)(0),2),W=V[0],U=V[1],J=(0,d.useRef)({}),Y=(0,d.useRef)(null),Q=(0,l._)((0,d.useState)(!1),2),q=Q[0],X=Q[1],K=(0,l._)((0,d.useState)(!1),2),$=K[0],ee=K[1],et=(0,l._)((0,d.useState)(!1),2),en=et[0],er=et[1],ea=(0,l._)((0,d.useState)(!0),2),ei=ea[0],es=ea[1],el=(0,l._)((0,d.useState)(null),2),eo=el[0],ec=el[1],eu=(0,l._)((0,d.useState)(!1),2),ed=eu[0],em=eu[1],eh=(0,l._)((0,d.useState)(!1),2),ef=eh[0],ep=eh[1],HandleScreenSize=function(){if(window.matchMedia("(max-width: 768px)").matches)switch(a){case"page":default:ep(!1);break;case"section":ep(!0)}else ep(!0)};return(0,d.useEffect)(function(){return(HandleScreenSize(),window.matchMedia("(max-width: 768px)").addEventListener)?(window.matchMedia("(max-width: 768px)").addEventListener("change",function(){HandleScreenSize()}),function(){window.matchMedia("(max-width: 768px)").removeEventListener("change",function(){HandleScreenSize()})}):(window.matchMedia("(min-width: 768px)").addListener(function(){HandleScreenSize()}),function(){window.matchMedia("(min-width: 768px)").removeListener(function(){HandleScreenSize()})})},[]),(0,d.useEffect)(function(){var e,t=new AbortController,setN
1oResults=function(){M([]),G(0),E([]),S(!0),X(!1),U(0),A(null),D(null)};return(e=(0,s._)(function(){var e;return(0,c.Jh)(this,function(n){switch(n.label){case 0:if(!((null==_?void 0:_.lon)&&(null==_?void 0:_.lat)))return[3,2];return E(null),[4,N({lat:_.lat,lon:_.lon,distance:15,from:0,treatmentCategoryItems:(null==j?void 0:j.categoryItemId)?[{id:j.categoryItemId}]:void 0,treatmentCategory:(null==j?void 0:j.categoryId)?[{id:j.categoryId}]:void 0,filterLevel7:$,orderByTotalReviews:ei,orderByAverageReviews:en||ei},I,t)];case 1:if(null===(e=n.sent()))return setNoResults(),[2];return X(e.loadMore),S(!1),G(e.totalPractitioners),M(e.practitioners),E(e.mapPoints),em(e.showLevel7Filter),U(0),A(null),D(null),[3,3];case 2:setNoResults(),n.label=3;case 3:return[2]}})}),function(){return e.apply(this,arguments)})(),function(){t.abort()}},[_,j,$,en,ei]),(0,d.useEffect)(function(){B&&J.current[B].scrollIntoView({behavior:"smooth",block:"center"})},[B]),(0,d.useEffect)(function(){var e,t=new AbortController,n=(e=(0,s._)(function(){var e,n,r;return(0,c.Jh)(this,function(a){switch(a.label){case 0:e={lat:_.lat,lon:_.lon,distance:15,from:W,treatmentCategoryItems:(null==j?void 0:j.categoryItemId)?[{id:j.categoryItemId}]:void 0,treatmentCategory:(null==j?void 0:j.categoryId)?[{id:j.categoryId}]:void 0,filterLevel7:$,orderByTotalReviews:ei,orderByAverageReviews:en},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,N(e,function(){},t)];case 2:return(n=a.sent())&&n.practitioners.length>0&&(M(function(e){return e?(0,o._)(e).concat((0,o._)(n.practitioners)):(0,o._)(n.practitioners)}),E(function(e){return e?(0,o._)(e).concat((0,o._)(n.mapPoints)):(0,o._)(n.mapPoints)})),X(W+25<O),[3,4];case 3:return r=a.sent(),ec("Failed to load more"),f.A.exception(r,{type:"search result view - resultsFrom, loading more results"}),X(!1),[3,4];case 4:return[2]}})}),function(){return e.apply(this,arguments)});return W>0&&O>0&&n(),function(){t.abort()}},[W]),(0,u.jsx)(g.Z,{boundaryName:"SearchResults",logCritical:!1,children:w.name===b.Z.treatments&&(0,u.jsx)("div",{className:"container",children:(0,u.jsxs)("div",{className:"row",children:[i&&(0,u.jsx)("div",{className:"column",children:(0,u.jsxs)("p",{children:["Unfortunately '",i,"' is no longer on glowday, here are our recommended alternatives:"]})}),(0,u.jsx)("div",{className:"column-m-12 column-d-8 column-lg-7 column",children:(0,u.jsxs)(u.Fragment,{children:[C&&(0,u.jsx)("div",{className:"column text-center",children:(0,u.jsx)(p.Z,{})}),!C&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(molecules_Filter,{hasLevel7Practitioners:ed,level7Callback:ee,level7FilterActive:$}),(0,u.jsx)(molecules_InformationBar,{totalResults:O,locationName:_?_.name:null,showNoResultMessage:y,error:eo,highestRatedOrderCallback:er,highestRatedOrder:en,orderByRecommendedReviews:ei,orderByRecommendedReviewsCallback:es}),(0,u.jsx)("div",{ref:Y,id:"search-results-container",children:(0,u.jsx)(m.Z,{dataLength:T?T.length:0,next:function(){U(function(e){return e+25})},hasMore:q,loader:(0,u.jsx)("div",{className:"padding-left-1",style:{width:"4rem",height:"4rem"},children:(0,u.jsx)(p.Z,{})}),scrollableTarget:ef?"search-results-container":"",children:(0,u.jsx)("div",{id:"search-results-container  ".concat(y&&"search-results-container__empty"),className:"padding-right__l-1 padding-right__d-2","data-testid":"search-results",children:T&&(0,u.jsx)(ResultCards,{handleResultCardClick:function(e,t){e.preventDefault(),D(t)},practitionerRefs:J,selectedMapPointId:B,practitioners:T})})})})]})]})}),(0,u.jsx)(h.pU,{greaterThanOrEqual:"bigmd",className:"column-d-4 column-lg-5 column",children:L&&(0,u.jsx)(SearchMap,{searchResults:L,setSearchResults:E,lat:null!==(t=null==_?void 0:_.lat)&&void 0!==t?t:0,lon:null!==(n=null==_?void 0:_.lon)&&void 0!==n?n:0,setSelectedMapPointId:A,selectedPractitionerId:Z,height:r})})]})})})}},19565:function(e,t,n){"use strict";n.d(t,{D:function(){return r},f:function(){return a}});var r="4a0ebaa3-2731-42dd-bb3e-725264415169",a="6a49cb51-9d7a-4fc9-a46b-c70c82ba83eb"},18834:function(e){e.exports={stars:"Star_stars__5W739",starsBase:"Star_starsBase__0FlX7",starsFillRow:"Star_starsFillRow__nz8A_",starsFill:"Star_starsFill__Wo9ga",ratingArea:"Star_ratingArea__LM6E7",columnStack:"Star_columnStack__YMzHY",rowFlex:"Star_rowFlex__QYAEF",fullWidth:"Star_fullWidth__bufwY",icon:"Star_icon__x1IDs"}},34155:function(e){var t,n,r,a=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{n="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){n=defaultClearTimeout}}();var i=[],s=!1,l=-1;
1function cleanUpNextTick(){s&&r&&(s=!1,r.length?i=r.concat(i):l=-1,i.length&&drainQueue())}function drainQueue(){if(!s){var e=runTimeout(cleanUpNextTick);s=!0;for(var t=i.length;t;){for(r=i,i=[];++l<t;)r&&r[l].run();l=-1,t=i.length}r=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===defaultClearTimeout||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];i.push(new Item(e,t)),1!==i.length||s||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=noop,a.addListener=noop,a.once=noop,a.off=noop,a.removeListener=noop,a.removeAllListeners=noop,a.emit=noop,a.prependListener=noop,a.prependOnceListener=noop,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}}}]);
2//# sourceMappingURL=859-8f03d9caa31069c9.js.map

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.