1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="af3986fc-9735-4494-8613-41f40866fba6",e._sentryDebugIdIdentifier="sentry-dbid-af3986fc-9735-4494-8613-41f40866fba6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2741],{15263:function(e,t,n){n.d(t,{XE:function(){return getSearchPerformers},$G:function(){return getTransientFacilities}});var r=n(88986),a=n.n(r),i=n(43678),l=n(30379),s=n(89618),o=n(18870);i.ZP.extend(a());var c=n(86709),u=n(36474),d=n(53617),v=n(92783);async function getTransientFacilities(e){let{params:t,formatOptions:n,craigUrl:r=u.craigUrl}=e,a=(0,c.I)("".concat(r,"/search/transient"),{oversize:!1,...t}),v=await fetch(a.href),f=await (0,d.L)(v).json();return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.map(e=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{userRequestedStarts:n,userRequestedEnds:r,eventId:a,timezone:c,rebookId:u}=t,d=l.default.camelizeKeys(e),{availability:v,distance:f,facility:{common:h,transient:y},rates:g}=d,{id:_,slug:m,hoursOfOperation:E}=h,b=g.map(e=>{let{quote:t,transient:l}=e;return function(e){let{quote:{order:t,advertisedPrice:n},additionalRateDetails:r,userRequestedStarts:a,userRequestedEnds:l,timezone:c}=e,u=t[0],{starts:d,ends:v}=u,f=(0,o.o0)(d,c),h=(0,o.o0)(v,c),y=u.items.some(e=>"oversize_vehicle_fee_flat"===e.type),{isExtended:g}=(0,s.XM)({actualStartDateTimeObj:(0,i.ZP)(f),actualEndDateTimeObj:(0,i.ZP)(h),requestedStartDateTimeObj:(0,i.ZP)(a),requestedEndDateTimeObj:(0,i.ZP)(l),isMonthly:!1}),_={...r,...u,hasOversizedFee:y,isAutoExtended:g};return{..._,advertisedPrice:n}}({spotId:_,facilitySlug:m,quote:t,additionalRateDetails:l,userRequestedStarts:n,userRequestedEnds:r,eventId:a,timezone:c,rebookId:u})});return{isV2:!0,...h,...y,images:h.images.map(o.G0),spotId:_,availability:v,distance:(0,o.Bb)(f),rates:b,selectedRate:b[0],allAmenities:(0,o.DA)(b),hoursOfOperation:(0,o.en)(E)}})(e,{...t,isFacilitySummary:!0}));return n}(f.results,n)}async function getSearchPerformers(e){let{params:t,craigUrl:n=u.craigUrl}=e;try{let e=(0,c.I)("".concat(n,"/performers/search"),{...t}),r=await fetch(e.href),a=await (0,d.L)(r).json();return(null==a?void 0:a.results)||[]}catch(e){return v.Tb(e),console.error("Failed to fetch search performers",e),[]}}},54550:function(e,t,n){n.d(t,{v:function(){return LocationProvider},T:function(){return useLocation}});var r=n(97458),a=n(52983),i=n(82378),l=n(90041),s=n(86709),o=n(36474),c=n(53617),u=n(92783);let getNearbyEvents=async function(){let{spotheroV1ApiUrl:e=o.spotheroV1ApiUrl,latitude:t,longitude:n,country:r,limit:a=4}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i={limit:a,include:"destination",include_resolved_location:"true"};void 0!==t&&void 0!==n&&(i.latitude=t,i.longitude=n,r&&(i.country=r));let l=(0,s.I)("".concat(e,"/events/nearby/"),i);try{var d,v,f;let e=await fetch(l.href),t=await (0,c.L)(e).json(),n=(null==t?void 0:null===(d=t.data)||void 0===d?void 0:d.results)||[],r=null!==(f=null==t?void 0:null===(v=t.data)||void 0===v?void 0:v.resolved_location)&&void 0!==f?f:void 0;return{results:n,resolvedLocation:r}}catch(e){return(null==e?void 0:e.status)!==400&&(null==e?void 0:e.status)!==404&&u.Tb(e),{results:[],resolvedLocation:void 0}}};var d=n(42958),v=n(24543);let useNearbyEvents=function(){let{enabled:e=!0,latitude:t,longitude:n,country:r,limit:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{spotheroV1ApiUrl:i}=(0,d.Z)();return(0,l.a)({queryKey:["nearby-events",t,n,r,a],queryFn:async()=>{let{results:e,resolvedLocation:l}=await getNearbyEvents({spotheroV1ApiUrl:i,latitude:t,longitude:n,country:r,limit:a});return{results:e,resolvedLocation:l}},enabled:e,staleTime:v.G})},f=(0,a.createContext)(null),formatNearbyEvents=e=>e.map(e=>{let{id:t,title:n,starts:r,destination:a}=e;return{id:t,label:n,date:(0,i.Z)(r).format("MMM D"),venue:(null==a?void 0:a.title)||"",city:null==a?void 0:a.city,location:{id:null==a?void 0:a.id,title:null==a?void 0:a.title},isSearchEvent:!1}}),LocationProvider=e=>{let{children:t,enabled:n=!0,latitude:i,longitude:l,country:s,limit:o}=e,{data:c,isLoading:u}=useNearbyEvents({enabled:n,latitude:i,longitude:l,country:s,limit:o}),d=(0,a.useMemo)(()=>{let e=(null==c?void 0:c.results)||[];return{resolvedLocation:(null==c?void 0:c.resolvedLocation)||null,nearbyEvents:formatNearbyEvents(e),isLoading:u}},[null==c?void 0:c.resolvedLocation,null==c?void 0:c.results,u]);return(0,r.jsx)(f.Provider,{value:d,children:t})},useLocation=()=>{let e=(0,a.useContext)(f);return null===e?{resolvedLocation:null,nearbyEvents:[],isLoading:!1}:e}},24543:function(e,t,n){n.d(t,{G:function(){return r}});let r=3e5},15593:function(e,t,n){var r=n(91581),a=n(91699);t.Z=function(e){let{source:t,index:n,eventId:i,eventName:l}=e;try{r.Z.track({event:"Event List Item Selected",properties:{source:t,index:n,event_id:i,event_name:l},additionalOptions:{context:{protocols:{event_version:1}}}})}catch(e){a.Z.sendSentryMessage({error:e,customErrorMessage:"Segment Event Failed - trackEventListItemSelected"})}}},6918:function(e,t,n){n.d(t,{Z:function(){return trackFindParkingNearMeClicked}});var r=n(91581),a=n(91699);function trackFindParkingNearMeClicked(){try{r.Z.track({event:"Find Parking Near Me Clicked",properties:{},additionalOptions:{context:{protocols:{event_version:1}}}})}catch(e){a.Z.sendSentryMessage({error:e,customErrorMessage:"Segment Event Failed - trackFindParkingNearMeClicked"})}}},25388:function(e,t,n){n.d(t,{Z:function(){return trackSwitchedVerticalTabs}});var r=n(91581),a=n(91699);function trackSwitchedVerticalTabs(e){let{pageType:t="",previousTab:n="",selectedTab:i=""}=e;try{r.Z.track({event:"Switched Vertical Tabs",properties:{page_type:t,previous_tab:n,selected_tab:i},additionalOptions:{context:{protocols:{event_version:1}}}})}catch(e){a.Z.sendSentryMessage({error:e,customErrorMessage:"Segment Event Failed - trackSwitchedVerticalTabs"})}}},68867:function(e,t,n){n.d(t,{C_:function(){return getSearchEvents},vw:function(){return getEvents}});var r=n(43678),a=n(86709),i=n(36474),l=n(53617),s=n(92783);let getEvents=async e=>{let{destinationId:t,spotheroV1ApiUrl:n=i.spotheroV1ApiUrl,starts:s=(0,r.ZP)().format(),numberOfEvents:o}=e,c=(0,a.I)("".concat(n,"/events/"),{destination_id:t,page_size:o||0,starts:s,include:"search_url"});try{let e=await fetch(c.href),t=await (0,l.L)(e).json(),n=Array.isArray(t.data.results)?t.data.results:[];return n}catch(e){return[]}},getSearchEvents=async e=>{let{searchTerm:t,craigUrl:n,limit:r,cityId:i=null}=e,o=(0,a.I)("".concat(n,"/events/search"),{search_query:t,limit:r,...i&&{city_id:i}});try{let e=await fetch(o.href),t=await (0,l.L)(e).json();return(null==t?void 0:t.results)||[]}catch(e){return(null==e?void 0:e.status)!==400&&(null==e?void 0:e.status)!==404&&s.Tb(e),[]}}},78900:function(e,t,n){n.d(t,{ZP:function(){return use_search_events}});var r=n(52983),a=n(82378),i=n(68867),l=n(42958),s=n(77837),o=n.n(s),c=n(91581),u=n(91699),event_search_results_returned=function(e){let{userRawText:t,searchEvents:n,url:r}=e;if(!t.trim())return;let a=[],i=[];
1null==n||n.forEach(e=>{a.push(null==e?void 0:e.id),i.push("".concat(null==e?void 0:e.label," at ").concat(null==e?void 0:e.venue))});let l={user_raw_text:t,...(null==n?void 0:n.length)&&{array_of_event_shown_event_id:a,array_of_events_shown_description:i},url:r};try{c.Z.track({event:"Event Search Results Returned",properties:l,additionalOptions:{context:{protocols:{event_version:1}}}})}catch(e){u.Z.sendSentryMessage({error:e,customErrorMessage:"Segment Event Failed - trackEventSearchResultsReturned"})}};let formatSearchEvents=e=>e.map(e=>{let{event_id:t,title:n,starts:r,destination_title:i,destination_id:l,destination:s}=e;return{id:t,label:n,date:(0,a.Z)(r).format("MMM D"),venue:i,city:null==s?void 0:s.city,location:{id:l,title:i},isSearchEvent:!0}});var use_search_events=e=>{let{latitude:t=null,longitude:n=null,country:a=null,limit:s=3,showSearchEventsResults:c=!1,cityId:u=null,url:d=""}=e,{craigUrl:v}=(0,l.Z)(),[f,h]=(0,r.useState)([]),[y,g]=(0,r.useState)(!1),resetEvents=()=>{h([])},_=(0,r.useCallback)(e=>{let{userRawText:t,searchEvents:n}=e;event_search_results_returned({userRawText:t,searchEvents:n,url:d})},[d]),m=(0,r.useCallback)(async e=>{try{let t=await (0,i.C_)({searchTerm:e,limit:s,craigUrl:v,...u&&{cityId:u}}),n=formatSearchEvents(t);(null==n?void 0:n.length)&&_({userRawText:e,searchEvents:n}),h(n)}catch(e){console.error(e),resetEvents()}finally{g(!1)}},[s,v,u,_]),E=(0,r.useRef)(o()(m,500));return{searchEvents:f,loadingSearchEvents:y,handleOnChangeForEvents:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if((null==e?void 0:e.length)>2&&(null==e?void 0:e.length)<=100){c?E.current(e):resetEvents();return}resetEvents(),E.current.cancel()}}}},18553:function(e,t,n){var r=n(52983),a=n(15263),i=n(42958),l=n(77837),s=n.n(l);t.Z=()=>{let{craigUrl:e}=(0,i.Z)(),[t,n]=(0,r.useState)([]),l=(0,r.useCallback)(async t=>{try{let r=await (0,a.XE)({params:{search_query:t,limit:3},craigUrl:e});n(r)}catch(e){console.error(e)}},[e]),o=(0,r.useRef)(s()(l,500));return{searchPerformers:t,handleOnChangeForPerformers:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";(null==e?void 0:e.length)>2&&(null==e?void 0:e.length)<=100?o.current(e):(o.current.cancel(),n([]))}}}}}]);
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.