PageSourceSearch

https://www.fresha.com/assets/_next/static/chunks/3n809r1tgl26w.js

js fresha.com collected 2026-09-24 08:45:01 UTC 24,129 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="cce59aba-0c53-f05f-1411-bd0899d71535")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,465030,e=>{"use strict";var t=e.i(749654),a=e.i(192842);e.s(["addMilliseconds",0,function(e,s,l){return(0,t.constructFrom)(l?.in||e,+(0,a.toDate)(e)+s)}])},117093,e=>{"use strict";var t,a=e.i(318008);e.i(111211);var s=e.i(596091),l=e.i(949316),r=e.i(350648),i=e.i(858377),n=e.i(804702),o=e.i(85088),c=e.i(15009);e.i(550834);var u=e.i(271894),d=e.i(197098),m=e.i(687652),h=e.i(40271),p=e.i(543273),f=e.i(806924),x=e.i(725712),b=e.i(414784),S=e.i(668178),y=e.i(577511),g=e.i(269730),v=e.i(567609);let j=(0,h.default)(()=>e.A(416497).then(e=>e.AutocompleteResults),{loadableGenerated:{modules:[169274]},ssr:!1,loading:f.LazyResultsFallback}),_=(0,h.default)(()=>e.A(416497).then(e=>e.AddressAutocompleteResults),{loadableGenerated:{modules:[169274]},ssr:!1,loading:f.LazyResultsFallback}),A=(0,h.default)(()=>e.A(416497).then(e=>e.DateAndTimeOptions),{loadableGenerated:{modules:[169274]},ssr:!1,loading:f.LazyResultsFallback}),I=()=>{e.A(997935)};var T=((t=T||{}).ADDRESS="address",t.DATE_AND_TIME="date-and-time",t.TREATMENTS_AND_VENUES="treatments-and-venues",t);let F=(0,u.css)({inlineSize:"100%",paddingBlock:"0",paddingInline:"250",overflow:"hidden"}),k=(0,u.css)({marginBlockEnd:"250"}),C=u.css.raw({borderWidth:"100",borderStyle:"solid",borderColor:"border.neutral",borderRadius:"l",marginBlockEnd:"150",minBlockSize:"[48px]"}),D=u.css.raw({"& > div":{paddingInline:"0"}}),M=(0,u.css)({display:"flex",gap:"150",flexGrow:"1",paddingBlock:"0",paddingInline:"200",justifyContent:"space-between"}),R=u.css.raw({backdropFilter:"[saturate(4.5) blur(10px)]",boxShadow:"[inset 0 0 0 6px rgb(156 156 156 / 8%)]",borderRadius:"[token(spacing.250)]",padding:"75",margin:"[-6px]"}),z={WebkitBackdropFilter:"saturate(1.5) blur(10px)"},w=u.css.raw({backgroundColor:"background.page",borderRadius:"xl",overflow:"hidden",padding:"200"}),E={marginBlock:"50",marginInline:"0",marginBlockEnd:"0"},O=(0,u.css)({textStyle:"header.l.semibold",marginBlockEnd:"400"});function L(e){let{children:t,modalKey:s,title:l,footer:i}=e,{isOpen:n,openModal:o,closeModal:u,setOpen:d}=(0,r.useSearchParamsModal)({key:s});return n?(0,a.jsxs)(c.ModalFullScreen,{disableAnimations:!0,isOpen:n,onClose:u,onOpen:o,setOpen:d,children:[(0,a.jsx)(c.ModalFullScreen.Header,{onBack:u,title:l}),(0,a.jsx)(c.ModalFullScreen.Container,{children:(0,a.jsxs)("div",{className:F,children:[(0,a.jsx)("p",{className:O,children:l}),t]})}),i]}):null}function P(e){let{onDateAndTimeDone:t}=e,{isOpen:s,closeModal:i}=(0,r.useSearchParamsModal)({key:"date-and-time"}),o=(0,y.useSearchForm)(e=>e.setDate),u=(0,y.useSearchForm)(e=>e.setTime),d=(0,y.useSearchForm)(e=>e.dateAndTimePickerAppliesOnDone),h=(0,y.useSearchForm)(e=>e.setDateAndTimePickerAppliesOnDone),p=(0,m.useRef)(!1);return(0,m.useEffect)(()=>{p.current&&!s&&h(!1),p.current=s},[s,h]),(0,a.jsx)(L,{footer:(0,a.jsx)(c.ModalFullScreen.Footer,{css:D,children:(0,a.jsxs)("div",{className:M,children:[(0,a.jsx)(n.Button,{onAction:()=>{o(null),u(null)},isFull:!0,size:"l",variant:"secondary",children:(0,l.__)("Clear")}),(0,a.jsx)(n.Button,{onAction:()=>{t&&d?(h(!1),t()):i()},isFull:!0,size:"l",children:(0,l.__)("Done")})]})}),modalKey:"date-and-time",title:(0,l.__)("Date and time"),children:(0,a.jsx)("div",{className:k,children:(0,a.jsx)(A,{})})})}function B(e){let{onDateAndTimeDone:t}=e,{closeModal:s}=(0,r.useSearchParamsModal)({key:"treatments-and-venues"}),{closeModal:i}=(0,r.useSearchParamsModal)({key:"address"});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(L,{modalKey:"treatments-and-venues",title:(0,l.__)("Search"),children:[(0,a.jsx)(S.TreatmentsAndVenuesInput,{autoFocus:!0,css:C,placeholder:(0,l.__)("All treatments")}),(0,a.jsx)(j,{onResultSelected:s})]}),(0,a.jsxs)(L,{modalKey:"address",title:(0,l.__)("Location"),children:[(0,a.jsx)(p.AddressInput,{autoFocus:!0,searching:!0,css:C}),(0,a.jsx)(_,{onResultSelected:i})]}),(0,a.jsx)(P,{onDateAndTimeDone:t})]})}let G=(0,m.forwardRef)(function(e,t){let{children:s,className:n,contentClassName:c,css:h,contentCss:f,style:g,onTreatmentAndVenuesInputFocus:j,onDateAndTimeDone:_}=e,{navigateTo:A}=(0,o.useNavigation)();(0,x.useAutocompleteInitialPrefetch)(),(0,v.useSyncSearchReference)(),(0,m.useEffect)(I,[]);let[T]=(0,i.useSearchCriteria)(),F=(0,y.useSearchForm)(e=>e.submit),k=(0,y.useSearchForm)(e=>e.setDateAndTimePickerAppliesOnDone),D=(0,m.useCallback)(e=>{e.preventDefault(),F({navigateTo:A,searchCriteria:T,isFullTextEnabled:!0})},[A,T,!0,F]),{openModal:M}=(0,r.useSearchParamsModal)({key:"treatments-and-venues"}),{openModal:R}=(0,r.useSearchParamsModal)({key:"address"}),{openModal:z}=(0,r.useSearchParamsModal)({key:"date-and-time"}),w=(0,y.useSearchForm)(e=>e.dateAndTimePickerOpenRequestId),E=(0,m.useRef)(0);return(0,m.useEffect)(()=>{w&&E.current!==w&&(E.current=w,z())},[w,z]),(0,a.jsxs)("form",{className:(0,d.cx)((0,u.css)(h),n),id:"search",onSubmit:D,ref:t,style:g,children:[(0,a.jsxs)("div",{className:(0,d.cx)((0,u.css)(f),c),children:[(0,a.jsx)(S.TreatmentsAndVenuesInput,{css:C,onClick:M,onFocus:j,placeholder:(0,l.__)("All treatments"),readOnly:!0}),(0,a.jsx)(p.AddressInput,{css:C,onClick:R,readOnly:!0}),(0,a.jsx)(b.DateAndTimeInput,{css:C,onClick:()=>{k(!1),z()},readOnly:!0}),s]}),(0,a.jsx)(B,{onDateAndTimeDone:_})]})});e.s(["SearchFormMobile",0,G,"SearchFormMobileDateAndTimeModal",0,P,"SearchFormMobileHome",0,function(){let e=(0,g.useSearchSubmitPending)();return(0,a.jsx)(G,{css:R,contentCss:w,style:z,onTreatmentAndVenuesInputFocus:()=>s.ampli.searchInitiated({page_url:window.location.href}),children:(0,a.jsx)(n.Button,{isFull:!0,isPending:e,size:"l",type:"submit",css:E,id:"search-button-mobile-variant-home",children:(0,l.__)("Search Fresha")})})}])},543273,806924,725712,414784,668178,567609,e=>{"use strict";var t=e.i(318008),a=e.i(949316),s=e.i(858377);e.i(255297);var l=e.i(828048),r=e.i(282524),i=e.i(169985),n=e.i(687652),o=e.i(577511),c=e.i(132978),u=e.i(560402),d=e.i(804702);e.i(550834);var m=e.i(271894),h=e.i(197098);let p=m.css.raw({display:"flex",alignItems:"center",gap:"[14px]",paddingBlock:"0",paddingInline:"200"}),f=(0,m.css)({textStyle:"body.xs.semibold"}),x=(0,m.css)({flex:"1"}),b=(0,m.css)({appearance:"none",backgroundColor:"transparent",border:"none",textStyle:"body.m.medium",inlineSize:"100%",outline:"[n
2one]",overflow:"clip",textOverflow:"ellipsis","@media (hover: hover) and (pointer: fine)":{textStyle:"body.s.medium"},_placeholder:{color:"foreground.neutral"}}),S={laptop:{opacity:"0",pointerEvents:"none"},_groupHover:{laptop:{opacity:"1",pointerEvents:"auto"}},_groupFocusWithin:{laptop:{opacity:"1",pointerEvents:"auto"}}},y=(0,n.memo)((0,n.forwardRef)((e,s)=>{let{className:l,css:r,hideClear:i,hidePrefix:n,label:o,onClear:c,prefix:y,value:g,...v}=e;return(0,t.jsxs)("label",{className:(0,h.cx)((0,m.css)(p,r),"group",l),children:[!n&&y,(0,t.jsxs)("div",{className:x,children:[o&&(0,t.jsx)("p",{className:f,children:o}),(0,t.jsx)("input",{...v,className:b,ref:s,value:g})]}),!i&&!!g&&(0,t.jsx)(d.Button,{icon:u.ClearIcon,isLabelHidden:!0,onAction:c,variant:"tertiary",css:S,children:(0,a.__)("Clear")})]})})),g=(0,n.memo)(e=>{let{inputRef:u,onBlur:d,onCloseOverlay:m,onFocus:h,searching:p,...f}=e,[{center:x}]=(0,s.useSearchCriteria)(),b=(0,o.useSearchForm)(e=>e.addressInputValue),S=(0,o.useSearchForm)(e=>e.addressInputIsLoading),g=(0,o.useSearchForm)(e=>e.selectedAddress),v=(0,o.useSearchForm)(e=>e.setAddressInputValue),j=(0,o.useSearchForm)(e=>e.setSelectedAddress),_=(0,o.useSearchForm)(e=>e.recordGooglePlacesTypingSessionActivity),A=(0,o.useSearchForm)(e=>e.clearGooglePlacesSessionToken),I=(0,c.useIsGooglePlacesSessionTokenEnabled)(),T=(0,n.useCallback)(e=>{v(e.target.value),I&&e.target.value.trim().length>=2&&_()},[I,_,v]),F=(0,n.useCallback)(()=>{A(),j(null)},[A,j]),k=p?i.SearchIcon:r.LocationIcon;return(0,t.jsx)(y,{...f,"data-qa":"location-search-input",onBlur:e=>{d?.(e)},onChange:T,onClear:F,onFocus:e=>{h?.(e)},placeholder:x&&null!==g?(0,a.__)("Map area"):(0,a.__)("Current location"),prefix:S?(0,t.jsx)(l.Loader,{size:"m"}):(0,t.jsx)(k,{color:"neutralFaded"}),ref:u,value:f.value??b})});e.s(["AddressInput",0,g],543273);var v=e.i(880317),j=e.i(252818);e.s(["LazyResultsFallback",0,function(e){let{error:s,retry:l}=e;return s?(0,t.jsxs)(v.Flex,{alignItems:"flex-start",direction:"column",gap:"200",children:[(0,t.jsx)(j.Text,{font:"body-m-regular",children:(0,a.__)("Something went wrong. Please try again.")}),(0,t.jsx)(d.Button,{onAction:()=>l?.(),size:"m",variant:"secondary",children:(0,a.__p)("Retry loading the search suggestions that failed to load","Try again")})]}):(0,t.jsxs)(v.Flex,{direction:"column",gap:"200",children:[(0,t.jsx)(j.Text.Skeleton,{font:"body-m-medium",width:"60%"}),(0,t.jsx)(j.Text.Skeleton,{font:"body-m-medium",width:"80%"}),(0,t.jsx)(j.Text.Skeleton,{font:"body-m-medium",width:"70%"})]})}],806924);var _=e.i(887525),A=e.i(255996),I=e.i(143745),T=e.i(73602),F=e.i(588705),k=e.i(801791);e.s(["useAutocompleteInitialPrefetch",0,function(){let e=(0,I.useGeolocation)(),[{center:t}
2]=(0,s.useSearchCriteria)(),a=(0,o.useSearchForm)(e=>e.selectedAddress),l=(0,k.useAutocompleteCounts)(e=>e.setCounts),r=t?{geocode:t}:a&&"placeId"in a?{placeId:a.placeId}:a&&"center"in a?{geocode:a.center}:{geocode:e??void 0},i="placeId"in r?r.placeId:void 0,{finishSessionTokenResolution:n,isWaitingForSessionToken:u,sessionToken:d}=(0,c.useGooglePlacesDetailsSessionToken)(i,!t&&null!=a&&!!i);(0,A.useSWRGQL)(u?null:_.Search_AutocompleteInitial_Query,{...r,query:"",sessionToken:d},{onError:n,revalidateOnFocus:!1,revalidateIfStale:!1,onSuccess(e){n(),l(e?.result?.geolocation?.autocomplete?.countDescriptions)}}),(0,A.useSWRGQL)(F.Search_History_Query,void 0,{revalidateIfStale:!1}),(0,A.useSWRGQL)(T.Search_GeolocationHistory_Query,{first:12},{revalidateIfStale:!1})}],725712);var C=e.i(59970);let D=(0,n.memo)(function(e){let{inputRef:s,onCloseOverlay:l,...r}=e,i=(0,o.useSearchForm)(e=>e.date),c=(0,o.useSearchForm)(e=>e.time),u=(0,o.useSearchForm)(e=>e.formatDateAndTime),d=(0,o.useSearchForm)(e=>e.setDate),m=(0,o.useSearchForm)(e=>e.setTime),h=(0,n.useCallback)(()=>{d(null),m(null)},[d,m]);return(0,t.jsx)(y,{...r,onClear:h,placeholder:(0,a.__)("Any time"),prefix:(0,t.jsx)(C.CalendarIcon,{color:"neutralFaded"}),readOnly:!0,ref:s,value:r.value??u({date:i,time:c})})});e.s(["DateAndTimeInput",0,D],414784);let M=(0,n.memo)(function(e){let{inputRef:s,onCloseOverlay:r,onAfterClear:c,...u}=e,d=(0,o.useSearchForm)(e=>e.autocompleteValue),m=(0,o.useSearchForm)(e=>e.autocompleteIsLoading),h=(0,o.useSearchForm)(e=>e.selectedAutocompleteResult),p=(0,o.useSearchForm)(e=>e.setAutocompleteValue),f=(0,o.useSearchForm)(e=>e.setSelectedAutocompleteResult),x=(0,n.useCallback)(e=>{p(e.target.value),h&&e.target.value!==h.name&&o.useSearchForm.setState({selectedAutocompleteResult:null})},[p,!0,h]),b=(0,n.useCallback)(e=>{if(u.onKeyDown?.(e),"Enter"!==e.key)return;e.preventDefault();let t=e.currentTarget.closest("form")??document.getElementById("search");t instanceof HTMLFormElement&&t.requestSubmit(),r?.()},[!0,r,u.onKeyDown]),S=(0,n.useCallback)(()=>{p(""),f(null),c?.()},[f,p,c]);return(0,t.jsx)(y,{...u,"data-qa":"venue-treatment-search-input",onClear:S,onChange:x,onKeyDown:b,prefix:m?(0,t.jsx)(l.Loader,{size:"m"}):(0,t.jsx)(i.SearchIcon,{color:"neutralFaded"}),placeholder:u.placeholder??(0,a.__)("All treatments and venues"),ref:s,value:u.value??d})});e.s(["TreatmentsAndVenuesInput",0,M],668178),e.s(["useSyncSearchReference",0,function(){let e=(0,o.useSearchForm)(e=>
2e.selectedAddress),[t,a]=(0,s.useSearchCriteria)(),l=(0,n.useEffectEvent)(()=>{if(void 0===e)return;let s=e&&"placeId"in e?e.placeId:null,l=e&&"center"in e?e.center:null,r=t["search-place-id"]??null,i=t["search-center"]??null,n=l===i||null!==l&&null!==i&&l.latitude===i.latitude&&l.longitude===i.longitude;s===r&&n||a({"search-place-id":s,"search-center":l})});(0,n.useEffect)(()=>{l()},[e])}],567609)},956092,e=>{"use strict";var t=e.i(318008),a=e.i(930934),s=e.i(225344),l=e.i(950023),r=e.i(799114);e.i(550834);var i=e.i(271894),n=e.i(577511),o=e.i(132978),c=e.i(920028);function u(e){let{text:a,query:s}=e;if(!s)return a;let l=a.toLowerCase().indexOf(s.toLowerCase());if(-1===l)return a;let r=a.slice(0,l),i=a.slice(l,l+s.length),n=a.slice(l+s.length);return(0,t.jsxs)(t.Fragment,{children:[r,(0,t.jsx)(c.TextHighlight,{children:i}),n]})}let d=i.css.raw({textAlign:"start"});e.s(["AutocompleteAddress",0,function(e){let{data:i,iconColor:c,onGeolocationSelected:m,onResultSelected:h,variant:p}=e,f=(0,a.unmask)(i),x=(0,n.useSearchForm)(e=>e.setSelectedAddress),b=(0,n.useSearchForm)(e=>e.addressInputValue),S=(0,n.useSearchForm)(e=>e.commitGooglePlacesSessionToken),y=(0,o.useIsGooglePlacesSessionTokenEnabled)(),g=b.trim(),v=(0,t.jsx)(u,{text:f.placeTitle,query:g}),j=f.placeSubtitle&&(0,t.jsx)(u,{text:f.placeSubtitle,query:g});return(0,t.jsx)(l.Menu.Item,{description:j,label:v,onAction:()=>{y&&S(f.placeId),x({label:f.placeDescription,placeId:f.placeId}),m?.({autocompleteGeolocationId:f.placeId}),h?.()},prefix:(0,t.jsx)(r.IconThumbnail,{icon:s.LocationFilledIcon,iconColor:c??"accent",shape:"circle",size:"m",variant:p??"accentBackground"}),css:d},f.placeId)}],956092)},887525,e=>{"use strict";e.s(["Search_AutocompleteInitial_Query",0,{__meta__:{hash:"223d8c1a8befcf4719bc1ab00541c69037e91fed3aa260cb6dc8ba77a6e2c0d8"},name:"Search_AutocompleteInitial_Query",type:"query"}])},801791,e=>{"use strict";let t=(0,e.i(140173).create)(e=>({counts:null,setCounts(t){e({counts:t})}}));e.s(["useAutocompleteCounts",0,t])},73602,913507,e=>{"use strict";var t=e.i(318008),a=e.i(255996),s=e.i(949316),l=e.i(509121),r=e.i(691536),i=e.i(950023),n=e.i(224989),o=e.i(252818);e.i(550834);var c=e.i(271894),u=e.i(956092),d=e.i(930934),m=e.i(226849),h=e.i(792605),p=e.i(84685),f=e.i(698669),x=e.i(84582),b=e.i(858220),S=e.i(984552),y=e.i(321870);e.i(541765).thumbnailShapeOptions.filter(e=>"rectangleSoft"!==e&&"hexagon"!==e);let g=e=>{let{emoji:a,size:s="m",badge:l,...r}=e,{hasAction:i}=(0,x.getActionBehaviour)(r);return l?(0,t.jsxs)(b.ThumbnailStructure.Wrapper,{hasInteraction:i,children:[(0,t.jsx)(b.ThumbnailStructure,{...r,noBorder:!0,size:s,variant:"custom",children:(0,t.jsx)("span",{className:v({size:s}),children:a})}),(0,t.jsx)(b.ThumbnailStructure.Positioner,{size:s,thumbnailIsRound:"circle"===e.shape,children:l})]}):(0,t.jsx)(b.ThumbnailStructure,{...r,noBorder:!0,size:s,variant:"custom",children:(0,t.jsx)("span",{className:v({size:s}),children:a})})};
2g.displayName="Fresha.DesignSystem.EmojiThumbnail";let v=(0,y.cva)({variants:{size:{"2xs":{font:S.default.thumbnail.size.twoXs.state.default.emoji.typography.value},xs:{font:S.default.thumbnail.size.xs.state.default.emoji.typography.value},s:{font:S.default.thumbnail.size.s.state.default.emoji.typography.value},m:{font:S.default.thumbnail.size.m.state.default.emoji.typography.value},l:{font:S.default.thumbnail.size.l.state.default.emoji.typography.value},xl:{font:S.default.thumbnail.size.xl.state.default.emoji.typography.value},"2xl":{font:S.default.thumbnail.size.twoXl.state.default.emoji.typography.value},"3xl":{font:S.default.thumbnail.size.threeXl.state.default.emoji.typography.value},"4xl":{font:S.default.thumbnail.size.fourXl.state.default.emoji.typography.value},"5xl":{font:S.default.thumbnail.size.fiveXl.state.default.emoji.typography.value},"6xl":{font:S.default.thumbnail.size.sixXl.state.default.emoji.typography.value}}}});var j=e.i(799114),_=e.i(577511);let A={[m.UserAddressLabel.HOME]:p.HomeNativeFilledIcon,[m.UserAddressLabel.WORK]:h.BriefcaseFilledIcon,[m.UserAddressLabel.CUSTOM]:f.PinFilledIcon};function I(e){let{data:a,onGeolocationSelected:s,onResultSelected:l}=e,r=(0,d.unmask)(a),n=(0,_.useSearchForm)(e=>e.setSelectedAddress),o=(0,_.useSearchForm)(e=>e.clearGooglePlacesSessionToken);return(0,t.jsx)(i.Menu.Item,{description:r.description,label:r.labelCustom??r.label,onAction:()=>{"number"==typeof r.latitude&&"number"==typeof r.longitude&&(o(),n({label:r.labelCustom??r.label,center:{latitude:r.latitude,longitude:r.longitude},userAddressId:r.id}),s?.({userAddressId:r.id}),l?.())},prefix:r.emoji?(0,t.jsx)(g,{shape:"circle",size:"m",emoji:r.emoji}):(0,t.jsx)(j.IconThumbnail,{icon:A[r.label],iconColor:"accent",shape:"circle",size:"m",variant:"accentBackground"})},r.labelCustom??r.label)}e.s(["SavedAddress",0,I],913507);let T=c.css.raw({"& hr":{display:"none"}}),F={__meta__:{hash:"c5ac44ba1ff8b9ef25663d5cb746c7435cb390293f160b9cc809ad862398c319"},name:"Search_GeolocationHistory_Query",type:"query"},k={__meta__:{hash:"7a229e55a93477349cb1be8e7b8117b3489e3f402c1853ac01ff9d9c6913d89e"},name:"Search_GeolocationHistoryClear_Mutation",type:"mutation"};e.s(["GeolocationHistory",0,function(e){let{onResultSelected:c}=e,d=(0,l.useToasts)(),{data:m,errors:h,isLoading:p,mutate:f}=(0,a.useSWRGQL)(F,{first:12}),{trigger:x}=(0,a.useSWRMutationGQL)(k);if(p)return(0,t.jsx)(i.Menu.List,{hasDivider:!1,header:(0,t.jsx)(o.Text.Skeleton,{font:"header-xs-semibold",width:"100px"}),css:T,children:Array.from({length:3}).map((e,a)=>(0,t.jsx)(i.Menu.Item,{description:(0,t.jsx)(o.Text.Skeleton,{font:"body-xs-regular",width:"100%"}),hasDivider:!1,label:(0,t.jsx)(o.Text.Skeleton,{font:"body-m-medium",width:"120px"}),prefix:(0,t.jsx)(n.Skeleton,{shape:"rounded",css:{blockSize:"[40px]",inlineSize:"[40px]"}})},a))});let b=m?.geolocationHistory?.edges;return h?.length||!b?.length?null:(0,t.jsx)(i.Menu.List,{hasDivider:!1,header:(0,t.jsx)(o.Text,{as:"span",font:"header-xs-semibold",children:(0,s.__)("Recents")}),headerSlot:(0,t.jsx)(r.LinkButton,{onAction:()=>{f(async()=>{let{errors:e}=await x();if(e?.length)throw Error("Clear failed");return{result:{geolocationHistory:{edges:[]}},variables:{first:12}}},{optimisticData:{result:{geolocationHistory:{edges:[]}},variables:{first:12}},revalidate:!1,rollbackOnError:!0}).catch(()=>{d.addErrorToast((0,s.__)("Unable to clear your recent searches"))})},icon:"none",size:"s",children:s.__`Clear`}),css:T,children:b.map(e=>{let{node:a}=e;return a?"UserAddress"===a.__typename?(0,t.jsx)(I,{data:a,onResultSelected:c},a.id):"AutocompleteGeolocation"===a.__typename?(0,t.jsx)(u.AutocompleteAddress,{data:a,iconColor:"accent",onResultSelected:c,variant:"accentBackground"},a.placeId):null:null})})},"Search_GeolocationHistory_Query",0,F],73602)},44675,e=>{"use strict";var t=e.i(318008),a=e.i(930934),s=e.i(149824),l=e.i(943597),r=e.i(950023);e.i(550834);var i=e.i(271894);let n=(0,i.css)({display:"flex",alignItems:"center",justifyContent:"center",inlineSize:"500",blockSize:"500"}),o=(0,i.css)({textStyle:"body.m.medium"});e.s(["ProfessionalItem",0,function(e){let{data:i}=e,c=(0,a.unmask)(i);if(!c.node)return null;let{node:u}=c;return(0,t.jsx)(r.Menu.Item,{label:(0,t.jsx)("span",{className:o,children:u.displayName}),linkTo:(0,s.professionalPath)(u.slug),prefix:(0,t.jsx)("span",{className:n,children:(0,t.jsx)(l.Avatar,{alt:u.displayName,size:"m",src:u.avatarUrl??void 0})})},u.slug)}])},588705,e=>{"use strict";var t=e.i(318008),a=e.i(255996),s=e.i(949316),l=e.i(509121),r=e.i(691536),i=e.i(950023),n=e.i(224989),o=e.i(252818),c=e.i(44675),u=e.i(930934),d=e.i(226849),m=e.i(169985),h=e.i(85088),p=e.i(799114),f=e.i(577511);let x={[d.UserAddressLabel.HOME]:()=>s.__`Home`,[d.UserAddressLabel.WORK]:()=>s.__`Work`,[d.UserAddressLabel.CUSTOM]:()=>s.__`Other`};function b(e){let{data:a}=e,{navigateTo:l}=(0,h.useNavigation)(),r=(0,u.unmask)(a),n=(0,f.useSearchForm)(e=>e.formatDateAndTime),c=(0,f.useSearchForm)(e=>e.setSelectedAddress),d=(0,f.useSearchForm)(e=>e.setSelectedAutocompleteResult),b=(0,f.useSearchForm)(e=>e.setAutocompleteValue),S=(0,f.useSearchForm)(e=>e.setDate),y=(0,f.useSearchForm)(e=>e.setTime),g=(0,f.useSearchForm)(e=>e.clearGooglePlacesSessionToken),v=(0,f.useSearchForm)(e=>e.submit),{node:j,geolocation:_}=r,A=n({date:r.availabilityDate?new Date(r.availabilityDate):null,time:r.availabilityStartTimeFrom&&r.availabilityStartTimeTo?{from:r.availabilityStartTimeFrom,to:r.availabilityStartTimeTo}:null})||(0,s.__)("Any time"),I=_?"AutocompleteGeolocation"===_.__typename?_.title:_.labelCustom??x[_.label]():null,T=r.query||(j?j.name:(0,s.__)("All treatments")),F=[j&&r.query?j.name:null,A,I
2].filter(Boolean).join(" · "),k=j?`${j.__typename}:${j.id}`:`location-only:${_?.__typename==="AutocompleteGeolocation"?_.placeId:_?.userAddressId}`;return(0,t.jsx)(i.Menu.Item,{description:(0,t.jsx)(o.Text,{as:"span",font:"body-s-regular",children:F}),hasDivider:!1,label:(0,t.jsx)(o.Text,{as:"span",font:"body-m-medium",children:T}),onAction:()=>{g(),d(j??null),b(r.query??j?.name??""),S(r.availabilityDate?new Date(r.availabilityDate):null),y(r.availabilityStartTimeFrom&&r.availabilityStartTimeTo?{from:r.availabilityStartTimeFrom,to:r.availabilityStartTimeTo}:null),_&&("AutocompleteGeolocation"===_.__typename?c({label:_.title,placeId:_.placeId}):"number"==typeof _.latitude&&"number"==typeof _.longitude&&c({label:_.labelCustom??x[_.label](),center:{latitude:_.latitude,longitude:_.longitude},userAddressId:_.userAddressId})),v({navigateTo:l,isFullTextEnabled:!0,recentSearchUsed:!0})},prefix:(0,t.jsx)(p.IconThumbnail,{shape:"circle",size:"m",variant:"accentBackground",icon:m.SearchIcon})},k)}var S=e.i(149824);e.i(410781);var y=e.i(854729),g=e.i(593376);e.i(550834);let v=(0,e.i(271894).css)({textStyle:"body.m.medium"});function j(e){let{data:a}=e,s=(0,u.unmask)(a),l=(0,f.useSearchForm)(e=>e.setSelectedAutocompleteResult);if(!s.node)return null;let{node:r}=s;return(0,t.jsx)(i.Menu.Item,{label:(0,t.jsx)("span",{className:v,children:r.name}),linkTo:(0,S.locationPath)(r.slug),onAction:()=>{l({id:r.id,name:r.name})},prefix:r.coverImage?(0,t.jsx)(g.ImageThumbnail,{css:{borderRadius:"m"},image:(0,t.jsx)(y.RemoteImage,{data:r.coverImage,height:40,loading:"lazy",sizes:"40px",width:40}),size:"m"}):(0,t.jsx)(p.IconThumbnail,{shape:"circle",size:"m",variant:"accentBackground",icon:m.SearchIcon})},r.id)}let _={__meta__:{hash:"ae46543f930ed20b9c837f835620070505b96eba57b784cab83a95cd7b2f7683"},name:"Search_History_Query",type:"query"},A={__meta__:{hash:"69fb1a85c26b467b81b4d258a3524384b70263d11686fba5dda77766b6d3ef96"},name:"Search_HistoryClear_Mutation",type:"mutation"};e.s(["SearchHistory",0,function(){let e=(0,l.useToasts)(),{data:u,errors:d,isLoading:m,mutate:h}=(0,a.useSWRGQL)(_),{trigger:p}=(0,a.useSWRMutationGQL)(A);if(m)return(0,t.jsx)(i.Menu.List,{header:(0,t.jsx)(o.Text.Skeleton,{font:"header-xs-semibold",width:"100px"}),children:Array.from({length:3}).map((e,a)=>(0,t.jsx)(i.Menu.Item,{description:(0,t.jsx)(o.Text.Skeleton,{font:"body-s-regular",width:"100%"}),hasDivider:!1,label:(0,t.jsx)(o.Text.Skeleton,{font:"body-m-medium",width:"120px"}),prefix:(0,t.jsx)(n.Skeleton,{shape:"rounded",css:{blockSize:"[32px]",inlineSize:"[32px]"}})},a))});let f=u?.searchHistoryV3?.edges?.slice(0,6);if(d?.length||!f?.length)return null;let x={result:{searchHistoryV3:{edges:[]}},variables:{}};return(0,t.jsx)(i.Menu.List,{hasDivider:!1,hasItemDivider:!1,header:(0,t.jsx)(o.Text,{as:"span",font:"header-xs-semibold",children:(0,s.__)("Recents")}),headerSlot:(0,t.jsx)(r.LinkButton,{onAction:()=>{h(async()=>(await p(),x),{optimisticData:x,revalidate:!1,rollbackOnError:!0}).catch(()=>{e.addErrorToast((0,s.__)("Unable to clear your recent searches"))})},icon:"none",size:"s",children:s.__`Clear`}),children:f.map((e,a)=>{switch(e.__typename){case"SearchHistoryV3SearchEdge":return(0,t.jsx)(b,{data:e},a);case"SearchHistoryV3VenueEdge":return(0,t.jsx)(j,{data:e},a);case"SearchHistoryV3ProfessionalEdge":return(0,t.jsx)(c.ProfessionalItem,{data:e},a);default:return null}})})},"Search_History_Query",0,_],588705)},226849,e=>{"use strict";e.s(["UserAddressLabel",0,{CUSTOM:"CUSTOM",HOME:"HOME",WORK:"WORK"}])}]);
3
4//# debugId=cce59aba-0c53-f05f-1411-bd0899d71535
5//# sourceMappingURL=2b11m4o_rxq3u.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.