1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c74e0faf-4392-4056-942b-b1bb8e1faf2a",e._sentryDebugIdIdentifier="sentry-dbid-c74e0faf-4392-4056-942b-b1bb8e1faf2a")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"[email protected]"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9045],{33944:function(e,t,a){"use strict";a.d(t,{B:function(){return d}});var s=a(93967),r=a.n(s),i=a(67294),o=a(35980),n=a(24500),l=a.n(n),c=a(85893);let d=e=>{let{ariaLive:t,children:a,className:s,id:n,shouldScrollIntoViewport:d=!1}=e,u=(0,i.useRef)(null);return(0,o.gE)({target:u,when:d}),(0,c.jsx)("p",{"aria-live":t,className:r()(l().root,{"visually-hidden":void 0===a},s),id:n,ref:u,role:"alert",children:a})}},2006:function(e,t,a){"use strict";a.d(t,{h:function(){return p}});var s=a(8307),r=a(93967),i=a.n(r),o=a(67294),n=a(13353),l=a(3833),c=a.n(l),d=a(85893);function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach(function(t){(0,s.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let p=(0,o.forwardRef)((e,t)=>{let{className:a}=e;return(0,d.jsx)(n.z,h(h({},e),{},{className:i()(c().root,a),ref:t}))});p.displayName="IconButton"},22695:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}}),a(67294);var s=a(31703),r=a(85893);let i=e=>{let{ariaHidden:t,ariaLabel:a,className:i,size:o,variant:n}=e;return(0,r.jsx)(s.Z,{ariaHidden:t,ariaLabel:a,className:i,size:o,variant:n,viewBox:"0 0 24 24",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M8.02167 2.00001C8.00684 1.99967 7.99199 1.99967 7.97711 2.00001L7.75864 2C6.95367 1.99999 6.28931 1.99998 5.74811 2.0442C5.18601 2.09012 4.66931 2.18869 4.18398 2.43598C3.43133 2.81947 2.81941 3.4314 2.43591 4.18404C2.18862 4.66938 2.09006 5.18608 2.04413 5.74818C1.99991 6.28937 1.99992 6.95374 1.99994 7.75871V16.2413C1.99993 16.4897 1.99993 16.7246 2.00123 16.9467C1.99902 16.9874 1.99929 17.0282 2.00209 17.0691C2.00584 17.5158 2.01609 17.9086 2.04413 18.2518C2.09006 18.8139 2.18862 19.3306 2.43591 19.816C2.81941 20.5686 3.43133 21.1805 4.18398 21.564C4.66931 21.8113 5.18601 21.9099 5.74811 21.9558C6.2893 22 6.95365 22 7.75861 22H15.9782C15.993 22.0003 16.0079 22.0003 16.0227 22H16.2413C17.0462 22 17.7106 22 18.2518 21.9558C18.8139 21.9099 19.3306 21.8113 19.8159 21.564C20.5685 21.1805 21.1805 20.5686 21.564 19.816C21.8113 19.3306 21.9098 18.8139 21.9557 18.2518C22 17.7106 22 17.0463 21.9999 16.2413V7.75868C22 6.95372 22 6.28937 21.9557 5.74818C21.9098 5.18608 21.8113 4.66938 21.564 4.18404C21.1805 3.43139 20.5685 2.81947 19.8159 2.43598C19.3306 2.18869 18.8139 2.09012 18.2518 2.0442C17.7106 1.99998 17.0462 1.99999 16.2412 2L8.02167 2.00001ZM16.6497 19.9997C17.2682 19.9985 17.7224 19.9924 18.0889 19.9625C18.5273 19.9266 18.7515 19.8617 18.9079 19.782C19.2842 19.5903 19.5902 19.2843 19.782 18.908C19.8616 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 19.9999 17.0566 19.9999 16.2V7.80001C19.9999 6.94343 19.9992 6.36113 19.9624 5.91104C19.9266 5.47263 19.8616 5.24842 19.782 5.09202C19.5902 4.7157 19.2842 4.40974 18.9079 4.21799C18.7515 4.1383 18.5273 4.07338 18.0889 4.03756C17.6388 4.00078 17.0565 4.00001 16.1999 4.00001H9.5387L12.9097 11.5847C12.9128 11.5915 12.9158 11.5983 12.9187 11.6051L16.6497 19.9997ZM14.4612 20L11.5301 13.405L4.01119 17.5822C4.01675 17.7698 4.02507 17.9369 4.03749 18.089C4.07331 18.5274 4.13824 18.7516 4.21793 18.908C4.40967 19.2843 4.71563 19.5903 5.09196 19.782C5.24836 19.8617 5.47256 19.9266 5.91098 19.9625C6.36106 19.9992 6.94336 20 7.79994 20H14.4612ZM3.99994 15.3005V7.8C3.99994 6.94343 4.00072 6.36113 4.03749 5.91104C4.07331 5.47263 4.13824 5.24842 4.21793 5.09202C4.40967 4.7157 4.71563 4.40974 5.09196 4.21799C5.24836 4.1383 5.47256 4.07338 5.91098 4.03756C6.27748 4.00761 6.73165 4.00154 7.3502 4.00031L10.7146 11.5701L3.99994 15.3005Z",fill:"currentColor",fillRule:"evenodd"})})}},88813:function(e,t,a){"use strict";a.d(t,{I:function(){return p}});var s=a(93967),r=a.n(s),i=a(67294),o=a(65978),n=a.n(o),l=a(72295),c=a(97961),d=a(48089),u=a(47119),h=a(85893);let p=(0,i.memo)(e=>{let{contentClassName:t,isClosest:a=!1,onClick:s,onHover:o,shouldHideBadges:p=!1,shouldHideWalkingTime:m=!1,shouldUseCardName:v=!0,stashpoint:S}=e,f=(0,i.useMemo)(()=>m?void 0:(0,d.U)(S.distanceKm),[m,S.distanceKm]),g=(0,i.useCallback)(()=>{s&&s(S)},[s,S]),_=(0,i.useCallback)(()=>{o&&o(S)},[o,S]),b=(0,i.useCallback)(()=>{o&&o(void 0)},[o]),C=S.features.featuredStashpoint,x=!p&&(a||C);return(0,h.jsxs)("article",{className:r()(n().root,{[n().withHeader]:x}),onClick:g,onMouseEnter:(0,u.z)()?void 0:_,onMouseLeave:(0,u.z)()?void 0:b,children:[x?(0,h.jsx)(c.x,{isClose
1st:a,isFeatured:C}):null,(0,h.jsx)(l.p,{className:t,shouldUseCardName:v,stashpoint:S,walkingTime:f})]})});p.displayName="StashpointCard"},97961:function(e,t,a){"use strict";a.d(t,{x:function(){return c}}),a(67294);var s=a(86896),r=a(65978),i=a.n(r),o=a(24400),n=a(51241),l=a(85893);let c=e=>{let{isClosest:t,isFeatured:a}=e,r=(0,s.Z)();return(0,l.jsxs)("div",{className:i().header,children:[t?(0,l.jsx)(n.C,{body:r.formatMessage({id:"stashpointCard.header.closestV2"}),color:"whiteNavy",isRounded:!0}):null,a?(0,l.jsx)(n.C,{body:r.formatMessage({id:"stashpointCard.header.featured"}),color:"yellow",isRounded:!0,trailingIcon:o.e}):null]})}},52664:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return rR}});var s=a(67294),r=a(10629),i=a(86896),o=a(8307),n=a(11163),l=a(2664),c=a(51043),d=a(6270),u=a(17603),h=a(39044),p=a(35989),m=a(94850),v=a(29809),S=a(23852);let f=e=>{let{bounds:t,dateRange:a,isMapLoading:r,mapService:i,onAutoReSearch:o,originalSearchCenter:n}=e,c=(0,p.I)(),f=(0,m.B)(),g=(0,s.useRef)({activeViewportCenter:void 0,debouncedAttemptSearch:void 0,hasEmittedReSearchMap:!1,lastOriginalSearchCenter:void 0});(0,s.useEffect)(()=>{if(void 0===i||r)return;let e=async()=>{let e=i.getCenter();if(void 0===e)return;o?.();let t={lat:e.lat(),lng:e.lng()};g.current.hasEmittedReSearchMap||(g.current.hasEmittedReSearchMap=!0,S.j[u.e.RE_SEARCH_MAP]({latitude:t.lat,longitude:t.lng})),g.current.activeViewportCenter=t;let s={bagAmount:(0,v.HA)(),coordinates:t,dateRange:a,page:1};await c(h.Nw.clearAllSearchResults()),(0,l.dC)(()=>{c(h.Nw.getSearchResults(s)),c(h.Nw.getBendysquareLockers(s)),c(h.Nw.getLockpointLockers(s)),c(h.Nw.getQuadralinkLockers(s)),c(h.Nw.getOxpointLockers(s))})};g.current.debouncedAttemptSearch?.cancel(),g.current.debouncedAttemptSearch=(0,d.Z)(e,300),(()=>{if(void 0===n)return;let e=g.current.lastOriginalSearchCenter;(void 0===e||e.lat!==n.lat||e.lng!==n.lng)&&(g.current.lastOriginalSearchCenter=n,g.current.activeViewportCenter=n,g.current.hasEmittedReSearchMap=!1)})();let t=g.current.activeViewportCenter;if(void 0===t)return;let s=g.current.debouncedAttemptSearch;if(void 0===s)return;let p=i.getCenter();if(void 0===p)return;let m=f?.geometry?.spherical?.computeDistanceBetween;if(void 0!==m){if(4e3>=m(p,t)){s.cancel();return}return s(),()=>{s?.cancel()}}},[t,a,c,r,f,i,o,n])};var g=a(95936),_=a(213),b=a.n(_),C=a(96283);let x="https://dzwi4va4czwms.cloudfront.net/static/search-markers/v2/",j=`${x}current-location.svg`,y=`${x}center.svg`,k=`${x}active.svg`,w=`${x}active-selected.svg`,I=`${x}active-visited.svg`,N=`${x}unavailable.svg`,M=`${x}unavailable-selected.svg`,R=`${x}featured.svg`,E=`${x}featured-selected.svg`,O=`${x}featured-visited.svg`,L=`${x}featured-unavailable.svg`,A=`${x}featured-unavailable-selected.svg`,T=e=>"unavailable"===e.availability||!1===e.available,D=(e,t)=>{let a=T(e);return e.features.featuredStashpoint?a?2:t?6:5:a?1:t?4:3},P=()=>{let e=document.createElement("img");return e.src=y,e.classList.add(b().searchMarker),e},H=e=>{let{count:t,isUnavailable:a}=e,s=document.createElement("div");return s.innerHTML=t.toString(),s.classList.add(b().clusterMarker),a&&s.classList.add(b().unavailable),s},F=()=>{let e=document.createElement("img");return e.src=j,e.classList.add(b().currentLocationMarker),e},Z=e=>{let t;let{isFeatured:a,isSelected:s,isUnavailable:r,isVisited:i}=e;t=a?r&&s?A:r?L:s?E:i?O:R:r&&s?M:r?N:s?w:i?I:k;let o=document.createElement("img");return o.src=t,o.classList.add(b().resultMarker),s&&o.classList.add(b().selected),r&&o.classList.add(b().unavailable),o};
1class B extends C.U4{constructor(e){let{containerElement:t,featureFlags:a,googleMapsApi:s,zoom:r}=e;super({api:s,containerElement:t,zoom:r}),(0,o.Z)(this,"_markersByStashpointId",new Map),(0,o.Z)(this,"_stashpointMarkersEventListeners",new Map),(0,o.Z)(this,"_stashpointMarkersClusterMarkers",new Map),(0,o.Z)(this,"_visitedStashpointIds",new Set),(0,o.Z)(this,"_clusterMarkersEventListeners",new Map),(0,o.Z)(this,"_activeStashpointId",void 0),(0,o.Z)(this,"_currentLocationMarker",void 0),(0,o.Z)(this,"_searchMarker",void 0),(0,o.Z)(this,"_featureFlags",void 0),(0,o.Z)(this,"_hoveredStashpointId",void 0),(0,o.Z)(this,"_markerClusterer",null),(0,o.Z)(this,"_isAutomaticUpdate",!1),(0,o.Z)(this,"clearCurrentLocationMarker",()=>{this._currentLocationMarker&&(this._currentLocationMarker.map=void 0)}),(0,o.Z)(this,"clearSearchMarker",()=>{this._searchMarker&&(this._searchMarker.map=void 0)}),(0,o.Z)(this,"unsetActiveStashpointMarker",()=>{if(void 0!==this._activeStashpointId){let e=this._markersByStashpointId.get(this._activeStashpointId),t=e?.data.searchResult;null!=e&&null!=t&&(e.instance.content=Z({isFeatured:t.features.featuredStashpoint,isSelected:!1,isUnavailable:T(t),isVisited:this._visitedStashpointIds.has(t.id)}),e.instance.zIndex=D(t,this._visitedStashpointIds.has(t.id))),this._activeStashpointId=void 0}}),(0,o.Z)(this,"setActiveStashpointMarker",e=>{this.unsetActiveStashpointMarker(),this.addVisitedStashpointId(e);let t=this._markersByStashpointId.get(e),a=t?.data.searchResult;null!=t&&null!=a&&(t.instance.content=Z({isFeatured:a.features.featuredStashpoint,isSelected:!0,isUnavailable:T(a),isVisited:this._visitedStashpointIds.has(a.id)}),t.instance.zIndex=8,null!==this._markerClusterer&&(this._markerClusterer.removeMarker(t.instance),this._stashpointMarkersClusterMarkers.delete(t.instance)),t.instance.map=this._map),this._activeStashpointId=e}),(0,o.Z)(this,"unsetHoveredStashpointMarker",()=>{if(void 0!==this._hoveredStashpointId){let e=this._markersByStashpointId.get(this._hoveredStashpointId);if(e){e.instance.content.classList.remove(b().bounceMarker);let t=this._stashpointMarkersClusterMarkers.get(e.instance);t&&t.content.classList.remove(b().bounceMarker),e.instance.zIndex=this._hoveredStashpointId===this._activeStashpointId?8:D(e.data.searchResult,this._visitedStashpointIds.has(e.data.searchResult.id))}this._hoveredStashpointId=void 0}}),(0,o.Z)(this,"setHoveredStashpointMarker",e=>{this.unsetHoveredStashpointMarker();let t=this._markersByStashpointId.get(e);if(t){t.instance.content.classList.add(b().bounceMarker);let e=this._stashpointMarkersClusterMarkers.get(t.instance);e&&e.content.classList.add(b().bounceMarker),t.instance.zIndex=9}this._hoveredStashpointId=e}),(0,o.Z)(this,"_clearStashpointMarkersEventListeners",()=>{this._stashpointMarkersEventListeners.forEach(e=>{e.forEach(this._api.event.removeListener)}),this._stashpointMarkersEventListeners.clear()}),(0,o.Z)(this,"_clearClusterMarkersEventListeners",()=>{this._clusterMarkersEventListeners.forEach(this._api.event.removeListener),this._clusterMarkersEventListeners.clear()}),(0,o.Z)(this,"_clearStashpointMarkers",()=>{this.unsetActiveStashpointMarker(),this.unsetHoveredStashpointMarker(),this._clearStashpointMarkersEventListeners(),this._clearClusterMarkersEventListeners();let e=this._markerClusterer;null!==e&&(e.clearMarkers(),e.setMap(null),this._markerClusterer=null),this._markersByStashpointId.forEach(e=>e.instance.map=void 0),this._markersByStashpointId.clear()}),(0,o.Z)(this,"createStashpointMarkers",(e,t)=>{if(!this._api.marker)return;let a=t?.onClusterClick,s=t?.onMarkerClick;this._clearStashpointMarkers(),this._stashpointMarkersClusterMarkers.clear(),e.forEach(e=>{let{id:t,latitude:a,longitude:s}=e,r=t===this._activeStashpointId,i=this._visitedStashpointIds.has(t),o=T(e),n=Z({isFeatured:e.features.featuredStashpoint,isSelected:r,isUnavailable:o,isVisited:i}),l=new this._api.marker.AdvancedMarkerElement({anchorLeft:"-50%",anchorTop:"-100%",content:n,map:this._map,position:new this._api.LatLng({lat:a,lng:s}),zIndex:r?8:D(e,i)});l.customData={isUnavailable:o},this._markersByStashpointId.set(t,{data:{searchResult:e},instance:l})});let r=[],i=[];
1this._markersByStashpointId.forEach((e,t)=>{if(s){let t=new Map;t.set("click",e.instance.addListener("gmp-click",()=>{s(e.data.searchResult)})),this._stashpointMarkersEventListeners.set(e.instance,t)}this._visitedStashpointIds.has(t)?i.push(e.instance):r.push(e.instance)}),this._markerClusterer=new g.XL({algorithm:new g.dO({radius:88}),map:this._map,markers:r,renderer:{render:e=>{if(!this._api.marker)return;let t=H({count:e.count,isUnavailable:!e.markers.some(e=>!e.customData?.isUnavailable)}),s=new this._api.marker.AdvancedMarkerElement({anchorLeft:"-50%",anchorTop:"-50%",content:t,map:this._map,position:e.position,zIndex:7});if(a){let t=s.addListener("gmp-click",()=>{a({availableStashpoints:e.markers.filter(e=>!e.customData?.isUnavailable).length,clusterSize:e.markers.length})});this._clusterMarkersEventListeners.set(s,t)}return e.markers.length>1&&e.markers.forEach(e=>{this._stashpointMarkersClusterMarkers.set(e,s)}),s}}}),i.forEach(e=>{e.map=this._map})}),(0,o.Z)(this,"renderCurrentLocationMarker",(e,t)=>{let{shouldPan:a}=e;if(!this._api.marker)return;let s=new this._api.LatLng(t);this.clearSearchMarker(),this.clearCurrentLocationMarker();let r=F();this._currentLocationMarker=new this._api.marker.AdvancedMarkerElement({anchorLeft:"-50%",anchorTop:"-50%",content:r,map:this._map,position:s,zIndex:1}),a&&this._map.panTo(s)}),(0,o.Z)(this,"renderSearchMarker",(e,t)=>{let{shouldPan:a}=e;if(!this._api.marker)return;this.clearSearchMarker(),this.clearCurrentLocationMarker();let s=new this._api.LatLng(t),r=P();this._searchMarker=new this._api.marker.AdvancedMarkerElement({anchorLeft:"-50%",anchorTop:"-50%",content:r,map:this._map,position:s,zIndex:10}),a&&this._map.panTo(s)}),(0,o.Z)(this,"addVisitedStashpointId",e=>{this._visitedStashpointIds.add(e)}),(0,o.Z)(this,"setSearchMarkerHierarchy",e=>{void 0!==this._searchMarker&&(this._searchMarker.zIndex="aboveMarkers"===e?10:0)}),(0,o.Z)(this,"setIsAutomaticUpdate",e=>{this._isAutomaticUpdate=e}),(0,o.Z)(this,"getIsAutomaticUpdate",()=>this._isAutomaticUpdate),(0,o.Z)(this,"reset",()=>{this.unsetHoveredStashpointMarker(),this.unsetActiveStashpointMarker(),this.clearCurrentLocationMarker(),this.clearSearchMarker(),this._clearStashpointMarkers(),super.reset()}),this._featureFlags=a}}let z=e=>{let{containerElement:t}=e,a=(0,p.v)(e=>e.featureFlags.values),r=(0,m.B)(),i=(0,s.useRef)(void 0),o=(0,s.useRef)(void 0),{1:n}=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e;if(void 0===t?void 0===o.current?(e=document.createElement("div"),o.current=e):e=o.current:e=t,void 0!==i.current){i.current.render(e);return}void 0!==r&&(i.current=new B({containerElement:e,featureFlags:a,googleMapsApi:r}),n(e=>!e))},[t,a,r]),i.current},V=e=>{let{coordinates:t,mapService:a,onMapUserInteraction:r,shouldTrackMapUserInteraction:i=!1}=e,{0:o,1:n}=(0,s.useState)(void 0);(0,s.useEffect)(()=>{if(void 0===a)return;let e=()=>{n(a.getBounds())};a.addEventListeners({onBoundsChanged:e,onDragStart:()=>{r?.(!a.getIsAutomaticUpdate())},onIdle:()=>{n(a.getBounds()),r?.(!1)},onZoomChanged:()=>{r?.(!a.getIsAutomaticUpdate())}}),e()},[a,r,i]);let l=(0,s.useMemo)(()=>void 0===t||void 0===o||o.contains(t),[o,t]);return{bounds:o,isSearchCenterInViewport:l}};var U=a(87599),G=a(31973),q=a(24273),K=a(8873);let W=e=>{let{urlQuery:t}=e,a=t.stashpointId?.trim();return""===a?void 0:a},$=e=>{let{mergedSearchResultsIO:t,stashpointId:a}=e;return"succeeded"===t.status&&void 0!==a?t.data.items.find(({id:e})=>e===a):void 0},Q=e=>{let{searchFilters:t,urlQuery:a}=e,s=a.coordinates?.split(","),r=s?.[0],i=s?.[1],o=Number.parseFloat(r??""),n=Number.parseFloat(i??""),l=Number.isFinite(o)&&Number.isFinite(n)?(0,q.bp)({lat:o,lng:n}):void 0;return void 0!==l?{coordinates:l,pattern:a.search}:void 0!==t.coordinates?{coordinates:t.coordinates,pattern:t.pattern}:{coordinates:void 0,pattern:void 0}},J=e=>{let{searchFilters:t,urlQuery:a}=e,{dropOff:s,pickUp:r}=a,i=U.Qf,o=void 0===s?void 0:U.Jx(s),n=void 0===r?void 0:U.Jx(r);return void 0===o||void 0===n||U.Ze(o)!==i?(0,v.YI)({timeZone:i},t.dateRange):(0,v.qT)({allowPast:!0},{dropOff:o,pickUp:n})},Y=e=>{let{searchFilters:t,urlQuery:a}=e;return void 0===a.storageSpaces?t.storageSpaces??{}:(0,v.g)(JSON.parse(a.storageSpaces))},X=e=>{let{didInitializeSearchParams:t}=e,a=(0,n.useRouter)(),r=(0,p.v)(e=>e.search.searchFilters),i=(0,p.v)(e=>e.search.mergedSearchResultsIO),o=(0,s.useRef)(void 0);return(0,s.useMemo)(()=>
1{if(t&&void 0!==o.current)return o.current;let e=(0,K.m)(a.asPath),s=W({urlQuery:e}),n=$({mergedSearchResultsIO:i,stashpointId:s}),{coordinates:l,pattern:c}=Q({searchFilters:r,urlQuery:e}),d={coordinates:l,dateRange:J({searchFilters:r,urlQuery:e}),pattern:c,stashpoint:n,stashpointId:s,storageSpaces:Y({searchFilters:r,urlQuery:e})};return o.current=d,d},[t,i,a.asPath,r])},ee=()=>{let e=U.Qf,t=(0,p.v)(e=>e.search.searchFilters),a=(0,s.useMemo)(()=>(0,v.YI)({timeZone:e},t.dateRange),[t.dateRange,e]),r=(0,p.v)(e=>e.search.activeStashpointId),i=(0,p.v)(e=>e.search.mergedSearchResultsIO),o=(0,s.useRef)(!1),n=(0,s.useRef)(!1),{coordinates:l,dateRange:c,pattern:d,stashpoint:u,stashpointId:m,storageSpaces:S}=X({didInitializeSearchParams:o.current}),f=(0,p.I)();return(0,s.useEffect)(()=>{o.current||"succeeded"!==i.status||(f(h.Nw.updateSearchFilters({coordinates:l,dateRange:c,pattern:d,storageSpaces:S})),o.current=!0)},[f,l,c,d,S,i]),(0,s.useEffect)(()=>{n.current||"succeeded"!==i.status||(m&&f(h.Nw.setActiveStashpointId(G.aT.toStashpointId(m))),n.current=!0)},[f,i,m]),o.current?{coordinates:t.coordinates,dateRange:a,pattern:t.pattern,stashpointId:"succeeded"===i.status&&void 0===u?void 0:r,storageSpaces:t.storageSpaces}:{coordinates:l,dateRange:c,pattern:d,stashpointId:m,storageSpaces:S}};var et=a(72814),ea=a(1458),es=a.n(ea),er=a(7104),ei=a(93967),eo=a.n(ei),en=a(87652),el=a.n(en);let ec=(e,t)=>{let{0:a,1:r}=(0,s.useState)(null);return(0,s.useEffect)(()=>{if(!a||"undefined"==typeof IntersectionObserver)return;let t=new IntersectionObserver(([a])=>{a.isIntersecting&&(t.disconnect(),S.j[u.e.VIEW_SECTION_SP_DETAILS]({spDetailsSection:e}))});return t.observe(a),()=>{t.disconnect()}},[e,t,a]),r},ed=(e,t)=>{let{0:a,1:r}=(0,s.useState)(null);return(0,s.useEffect)(()=>{if(!a)return;let t=()=>{let{clientHeight:s,scrollHeight:r,scrollTop:i}=a;i+s<r-1||(a.removeEventListener("scroll",t),S.j[u.e.VIEW_SECTION_SP_DETAILS]({spDetailsSection:e}))};return a.addEventListener("scroll",t,{passive:!0}),()=>{a.removeEventListener("scroll",t)}},[e,t,a]),r};var eu=a(3085),eh=a(31491),ep=a.n(eh),em=a(2558),ev=a.n(em),eS=a(77603),ef=a(85893);let eg=e=>{let{steps:t}=e;return(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(eu.x,{size:125,translationId:"stasher.howV2.title",weight:"bold"}),(0,ef.jsx)("ul",{className:ev().content,children:t.map((e,t)=>(0,ef.jsxs)("li",{children:[(0,ef.jsx)(eS.Ee,{alt:"",height:24,src:`https://dzwi4va4czwms.cloudfront.net/static/how-it-works/${t+1}.svg`,width:24}),(0,ef.jsx)(eu.x,{className:ev().title,translationId:e.title,weight:"semibold"}),(0,ef.jsx)(eu.x,{className:ev().body,translationId:e.description})]},e.title))})]})};var e_=a(53325),eb=a(68104);let eC=[{description:"stasher.howV3.locker.step1.description",title:"stasher.howV3.locker.step1.title"},{description:"stasher.howV3.locker.step2.description",title:"stasher.howV3.locker.step2.title"},{description:"stasher.howV3.locker.step3.description",title:"stasher.howV3.locker.step3.title"}],ex={[e_.V.spdetails_hiw_staffed.values.service]:[{description:"stasher.how.service.step1.description",title:"stasher.how.service.step1.title"},{description:"stasher.how.service.step2.description",title:"stasher.how.service.step2.title"},{description:"stasher.how.service.step3.description",title:"stasher.how.service.step3.title"}],[e_.V.spdetails_hiw_staffed.values.trust]:[{description:"stasher.how.trust.step1.description",title:"stasher.how.trust.step1.title"},{description:"stasher.how.trust.step2.description",title:"stasher.how.trust.step2.title"},{description:"stasher.how.trust.step3.description",title:"stasher.how.trust.step3.title"}]},ej=e=>{let{stashpoint:t}=e,a=G.D5.isLocker(t.type),s=(0,eb.ye)(e_.V.spdetails_locker_hiw,!a),r=(0,eb.ye)(e_.V.spdetails_hiw_staffed,a),i=s.variant===s.variants.locker_hiw,o=ex[r.variant];return i&&a?(0,ef.jsx)(eg,{steps:eC}):a||void 0===o?(0,ef.jsxs)("div",{children:[(0,ef.jsx)(eu.x,{className:ep().title,size:125,translationId:"stasher.howV2.title",weight:"bold"}),(0,ef.jsxs)("ul",{className:ep().content,children:[(0,ef.jsxs)("li",{children:[(0,ef.jsx)(eu.x,{translationId:"stasher.howV2.step1.title",weight:"bold"}),(0,ef.jsx)(eu.x,{size:75,translationId:"stasher.howV2.step1.description",values:{note:(0,ef.jsx)(eu.x,{size:75,tag:"span",translationId:"stasher.howV2.step1.description.pleaseNote",weight:"semibold"})}})]}),(0,ef.jsxs)("li",{children:[(0,ef.jsx)(eu.x,{translationId:"stasher.howV2.step2.title",weight:"bold"}),(0,ef.jsx)(eu.x,{size:75,translationId:"stasher.howV2.step2.description"})]}),(0,ef.jsxs)("li",{children:[(0,ef.jsx)(eu.x,{translationId:"stasher.howV2.step3.title",weight:"bold"}),(0,ef.jsx)(eu.x,{size:75,translationId:"stasher.howV2.step3.description"})]}),(0,ef.jsxs)("li",{children:[(0,ef.jsx)(eu.x,{translationId:"stasher.howV2.step4.title",weight:"bold"}),(0,ef.jsx)(eu.x,{size:75,translationId:"stasher.howV2.step4.description"})]})]})]}):(0,ef.jsx)(eg,{steps:o})};var ey=a(44012),ek=a(82647),ew=a(24400),eI=a(82541),eN=a(8610),eM=a(93133),eR=a(38724),eE=a(23648),eO=a(87454),eL=a(37682),eA=a(72295),eT=a(66441),eD=a(83304),eP=a(48089),eH=a(5611);let eF=e=>
1{let{onStashpointDetailsBack:t,stashpoint:a}=e,r=(0,i.Z)(),o=(0,s.useMemo)(()=>a?.userDistanceKm?(0,eP.U)(a.userDistanceKm):void 0,[a]),n=(0,s.useMemo)(()=>(0,eA.Q)({intl:r,type:a.type}),[r,a.type]),l=(0,eT.J)({stashpointId:a.id}),c=(0,s.useCallback)(()=>{t()},[t]);return(0,ef.jsxs)("div",{className:el().card,children:[(0,ef.jsx)("div",{className:el().backBtnContainer,children:(0,ef.jsx)(eR.z,{className:el().backBtn,hierarchy:"ghost",onClick:c,size:"sm",startIcon:ek.X,children:(0,ef.jsx)(ey.Z,{id:"common.backToResults"})})}),(0,ef.jsxs)("div",{className:el().cardContent,children:[a.features.featuredStashpoint?(0,ef.jsxs)("div",{className:el().featuredHeader,children:[(0,ef.jsx)(ew.e,{ariaHidden:!0,size:"xSmall"}),(0,ef.jsx)(eu.x,{size:50,translationId:"stashpointCard.header.featured"})]}):null,(0,ef.jsxs)("div",{className:eo()(el().detailsImageContainer,{[el().centerAlign]:void 0!==l}),children:[(0,ef.jsx)(eD.F,{type:a.type}),void 0===l?(0,ef.jsxs)(eu.x,{className:el().titleContainer,size:150,weight:"bold",children:[(0,ef.jsx)(eu.x,{className:el().stashpointNameTitle,size:50,translationId:"stashpointCard.content.title"}),n,(0,ef.jsx)(eu.x,{className:el().stashpointNameLocationName,size:75,weight:"medium",children:a.locationName})]}):(0,ef.jsxs)(eu.x,{className:el().titleContainer,size:100,weight:"bold",children:[(0,ef.jsx)(eu.x,{className:el().stashpointNameV2,size:100,tag:"span",weight:"bold",children:l}),(0,ef.jsx)(eu.x,{className:el().stashpointTypeV2,size:75,weight:"medium",children:n})]})]}),(0,ef.jsxs)("div",{className:el().ratingPriceContainer,children:[a.rating&&a.bookingCountGroup>0?(0,ef.jsxs)("div",{className:el().rating,children:[(0,ef.jsx)(eI.b,{ariaHidden:!0,size:"xSmall"}),(0,ef.jsxs)(eu.x,{size:75,weight:"bold",children:[`${eH.$1({locale:r.locale,maximumFractionDigits:2,minimumFractionDigits:2},a.rating)} `,(0,ef.jsx)(eu.x,{className:el().ratingCount,size:75,tag:"span",children:`(${a.bookingCountGroup}+)`})]})]}):null,o?(0,ef.jsxs)("div",{className:el().walkingDistance,children:[(0,ef.jsx)(eN.z,{ariaHidden:!0}),(0,ef.jsx)(eu.x,{size:75,translationId:"stashpointCard.header.walkingTime",values:{time:o},weight:"semibold"})]}):void 0]}),(0,ef.jsx)(eO.z,{isAvailable:"available"===a.availability,spaceAvailable:a.spaceAvailable??a.capacity}),(0,ef.jsx)(eL.j,{oftenFullyBooked:a.features.oftenFullyBooked,openLate:a.openLate,openTwentyFourSeven:a.openTwentyFourSeven,premiumStashpoint:a.features.premiumStashpoint}),(0,ef.jsxs)("div",{className:el().addressWarning,children:[(0,ef.jsx)(eM.u,{ariaHidden:!0,size:"xSmall"}),(0,ef.jsx)(eu.x,{size:75,translationId:"search.result.finalAddress"})]}),(0,ef.jsx)(eE.T,{stashpoint:a})]})]})};var eZ=a(38002),eB=a.n(eZ),ez=a(98831),eV=a(47762),eU=a(35520),eG=a(87865);let eq=e=>{let t=(0,i.Z)();return(0,ef.jsx)(eG.b,{title:t.formatMessage({id:"stashpointDetails.reviews.empty.title"}),children:(0,ef.jsx)(eu.x,{size:75,translationId:"stashpointDetails.reviews.empty.description"})})};var eK=a(91998),eW=a(86572),e$=a(78786);function eQ(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}let eJ=e=>{let{stashpoint:t}=e,a=(0,i.Z)(),r=(0,n.useRouter)(),l=(0,s.useMemo)(()=>"true"===r.query.reviews,[r.query.reviews]),d=(0,s.useCallback)(e=>{let t=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?eQ(Object(a),!0).forEach(function(t){(0,o.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):eQ(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({},r.query);e?(t.reviews="true",(0,c.Z)({as:r.asPath,query:t,to:r.pathname},r)):r.back()},[r]),h=(0,p.v)(e=>e.reviews.reviewsIO),m=(0,p.I)(),v=(0,s.useMemo)(()=>(0,ef.jsxs)(eu.x,{className:eB().header,size:125,weight:"bold",children:[a.formatMessage({id:"global.reviews"}),t.bookingCountGroup>0?(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)("span",{className:eB().separator,children:"-"}),(0,ef.jsx)(eI.b,{ariaHidden:!0,size:"medium"}),(0,ef.jsx)("span",{children:t.rating}),(0,ef.jsx)("span",{children:` (${t.bookingCountGroup}+)`})]}):null]}),[a,t.bookingCountGroup,t.rating]),f=(0,s.useCallback)(e=>{m(e$.Nw.getPaginatedReviews({page:e,perPage:8,stashpointId:t.id}))},[m,t.id]),g=(0,s.useCallback)(e=>{if(!e)return null;let a=(0,eW.X)(e.items);if(0===a.length)return(0,ef.jsx)(eq,{});let s=a.slice(0,3);return(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(eK.f,{className:eB().list,reviews:s,timeZone:t.timezone}),(0,ef.jsx)(eR.z,{className:eB().readAllBtn,hierarchy:"secondarySubtle",onClick:()=>{S.j[u.e.CLICK_SP_DETAILS_CTA]({type:"allReviews"}),d(!0)},size:"sm",children:(0,ef.jsx)(ey.Z,{id:"stashpointDetails.reviews.readAll"})})]})},[d,t.timezone]),_=(0,s.useCallback)(e=>{if(!e)return null;let a=(0,eW.X)(e.items);return(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(eK.f,{className:eB().list,reviews:a,timeZone:t.timezone}),(0,ef.jsx)(eR.z,{className:eB().loadMoreBtn,hierarchy:"secondarySubtle",isDisabled:!h.data?.hasNext,onClick:()=>{S.j[u.e.CLICK_SP_DETAILS_CTA]({type:"moreReviews"}),f((h.data?.page??0)+1)},size:"sm",children:(0,ef.jsx)(ey.Z,{id:"stashpointDetails.reviews.loadMore"})})]})},[f,h.data?.hasNext,h.data?.page,t.timezone]);return(0,s.useEffect)(()=>
1{"idle"===h.status&&f(1)},[f,h.status]),(0,s.useEffect)(()=>()=>{m(e$.Nw.clearReviews())},[m]),(0,ef.jsxs)(ef.Fragment,{children:[v,(0,ef.jsx)(eV.N,{io:h,pendingIndicator:{disable:!0},render:{failed:ez.Bx(null),idle:ez.Bx(null),pending:e=>g(e),succeeded:e=>g(e)}}),(0,ef.jsx)(eU.u,{className:eB().modal,closeHandler:()=>d(!1),isDismissible:!0,isOpen:l,title:v,children:(0,ef.jsx)(eV.N,{io:h,pendingIndicator:{ariaValuetext:a.formatMessage({id:"reviews.processing.reviews"})},render:{failed:ez.Bx(null),idle:ez.Bx(null),pending:e=>_(e),succeeded:e=>_(e)}})})]})};var eY=a(63597),eX=a(25504),e0=a.n(eX),e1=a(2143),e2=a(72165);let e9=(e,t,a)=>{let s=U.E4(1,e),r=eH.yL({locale:t.locale},a.from),i=U.Xy(U.b7(a.from),a.from),o=U.Xy(a.to,s);if(i&&o)return t.formatMessage({id:"stashpointDetails.openingHours.24HoursOpen"});let n=o?`(${eH.I9({locale:t.locale,style:"long"},s)})`:eH.yL({locale:t.locale},a.to);return`${r} ${e2.AI} ${n}`},e5=e=>{let{stashpoint:t}=e,{timezone:a}=t,r=(0,i.Z)(),o=(0,s.useMemo)(()=>U.i_(r.locale,U.TE({timeZone:a})),[r.locale,a]),n=(0,s.useMemo)(()=>(0,e1.Y)({date:o,openingHours:t.openingHours,openingHoursExceptions:t.openingHoursExceptions}),[o,t.openingHours,t.openingHoursExceptions]),l=(0,s.useMemo)(()=>Object.keys(n).sort((e,t)=>{let a=U.Jx(e),s=U.Jx(t);return a&&s?U.YV(a)-U.YV(s):0}),[n]);return(0,ef.jsx)("dl",{className:e0().root,children:l.map(e=>{let t=U.Jx(e);if(!t)return;let a=U.ss(t,o),s=n[e];return(0,ef.jsxs)("div",{className:e0().day,children:[(0,ef.jsx)(eu.x,{tag:"dt",weight:a?"semibold":"regular",children:eH.I9({locale:r.locale,style:"long"},t)}),(0,ef.jsx)(eu.x,{className:e0().ranges,tag:"dd",weight:a?"semibold":"regular",children:0===s.length?r.formatMessage({id:"stashpoint.schedule.unavailable"}):s.map(e=>(0,ef.jsx)("span",{children:e9(t,r,e)},U.cv(e.from)))})]},e)})})};var e8=a(59045),e4=a(5033),e7=a.n(e4),e6=a(6776),e3=a.n(e6);let te=e=>{let{isLoading:t,quote:a}=e,r=(0,i.Z)(),o=(0,s.useMemo)(()=>eH.T4({currencyCode:a.ccyCode,locale:r.locale},a.postDiscountPrice/a.ccyMinorInMajor),[r.locale,a.ccyCode,a.ccyMinorInMajor,a.postDiscountPrice]),n=(0,s.useMemo)(()=>{let e=a.preDiscountTotalBookingFee+a.preDiscountTotalGuaranteeFee;return eH.T4({currencyCode:a.ccyCode,locale:r.locale},e/a.ccyMinorInMajor)},[r.locale,a.ccyCode,a.ccyMinorInMajor,a.preDiscountTotalBookingFee,a.preDiscountTotalGuaranteeFee]),l=eo()(e3().text,{[e3().inactive]:t});return(0,ef.jsxs)("div",{className:e3().root,children:[(0,ef.jsxs)("div",{className:e3().row,children:[(0,ef.jsx)(eu.x,{className:l,size:150,weight:"bold",children:r.formatMessage({id:"checkout.cost.total.label"})}),(0,ef.jsx)(eu.x,{className:l,size:150,weight:"bold",children:o})]}),(0,ef.jsx)(eu.x,{className:e3().subtitle,size:50,children:r.formatMessage({id:"bagSelector.feeBreakdown.includesBookingFee"},{fee:n})})]})},tt=e=>{let{className:t,ctaClickHandler:a,ctaDisabled:r=!1,ctaLabel:i,withTotal:o=!1}=e,n=(0,p.v)(e=>e.search.stashpointIO),l=(0,p.v)(e=>e.search.quoteIO),{0:c,1:d}=(0,s.useState)(),u=n.data,h=u?.availability==="unavailable";return(0,s.useEffect)(()=>{"pending"!==l.status&&d(l.data)},[l.data,l.status]),(0,ef.jsxs)("div",{className:e7().root,children:[o&&c?(0,ef.jsx)(te,{isLoading:"pending"===l.status,quote:c}):null,(0,ef.jsx)("div",{className:eo()(e7().footer,t),children:(0,ef.jsx)("div",{className:e7().right,children:(0,ef.jsx)(eR.z,{className:e7().fullWidth,hierarchy:"primaryBold",isDisabled:h||r,isRounded:!0,onClick:a,size:"lg",children:(0,ef.jsx)(eu.x,{size:100,weight:"semibold",children:i})})})})]})};tt.displayName="StashpointDetailsFooter";let ta=e=>{let{onStashpointDetailsBack:t,setActiveLayer:a}=e,r=(0,i.Z)(),o=(0,s.useCallback)(()=>{void 0!==t?t():a("SEARCH_RESULTS",void 0)},[t,a]),n=(0,p.v)(e=>e.search.stashpointIO),l=n.data,{fireExposedEvent:c,variant:d,variants:h}=(0,eb.ye)(e_.V.spdetails_opening_hours,!0),m=d===h.new_opening_hours;(0,s.useEffect)(()=>{void 0!==l&&c()},[c,l]);let v=(0,s.useCallback)(()=>{S.j[u.e.SELECT_BAGS_LOCKERS]({stashpoint_id:l?.id,storage_type:G.D5.isLocker(l?.type)?"lockers":"bags"}),a("ITEMS_COUNT_SELECTOR",l?.id)},[a,l?.id,l?.type]),f=ed("reviewsBottom",l?.id),g=ec("openingHours",l?.id),_=ec("reviewsTop",l?.id);return void 0===l?null:(0,ef.jsxs)("div",{className:el().root,children:[(0,ef.jsxs)("div",{className:el().sectionsContainer,ref:f,children:[(0,ef.jsx)(eF,{onStashpointDetailsB
1ack:o,stashpoint:l}),(0,ef.jsx)("div",{className:eo()(el().section,el().guarantee),children:(0,ef.jsx)(eY.s,{currencyCode:l.pricingStructure.ccy})}),(0,ef.jsx)("div",{className:el().section,children:(0,ef.jsx)(ej,{stashpoint:l})}),(0,ef.jsxs)("div",{className:el().section,ref:g,children:[(0,ef.jsx)(eu.x,{size:125,translationId:"stashpointDetails.openingHours.header",weight:"bold"}),m?(0,ef.jsx)(e8.l,{stashpoint:l}):(0,ef.jsx)(e5,{stashpoint:l})]}),(0,ef.jsx)("div",{className:eo()(el().section,el().reviews),ref:_,children:(0,ef.jsx)(eJ,{stashpoint:l})})]}),(0,ef.jsx)("div",{className:el().footerContainer,children:(0,ef.jsx)(tt,{className:el().footer,ctaClickHandler:v,ctaLabel:r.formatMessage({id:G.D5.isLocker(n.data?.type)?"search.action.itemsSelector.selectLocker":"search.action.itemsSelector.selectBagsCount"})})})]})};var ts=a(85),tr=a.n(ts),ti=a(92603);function to(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function tn(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?to(Object(a),!0).forEach(function(t){(0,o.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):to(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let tl=e=>"succeeded"===e.status&&e.data.hasNext?e.data.page+1:void 0,tc=()=>{let{bendysquareLockersIO:e,lockpointLockersIO:t,mergedSearchResultsIO:a,oxpointLockersIO:r,quadralinkLockersIO:i,searchResultsIO:o}=(0,p.v)(e=>e.search),n=(0,p.v)(e=>e.search.searchFilters.coordinates),l=(0,m.B)(),{0:c,1:d}=(0,s.useState)(),u=(0,s.useMemo)(()=>{let e;if(!a.data?.items)return;let t=a.data.items,s=l?.geometry?.spherical?.computeDistanceBetween,r=void 0===n||void 0===s?t:t.map(t=>{let a=s(n,{lat:t.latitude,lng:t.longitude})/1e3,r=tn(tn({},t),{},{distanceKm:a});return(!e||a<e.distanceKm)&&(e=r),r});d(e);let i=[...r],o=i.findIndex(e=>!!(e.available&&e.features.featuredStashpoint&&e.distanceKm<=.5));if(o>=1){let[e]=i.splice(o,1);i.splice(0,0,e)}let c=i.findIndex(e=>!!(!1===e.available&&5>=(0,eP.U)(e.distanceKm)));if(c>=2){let[e]=i.splice(c,1);i.splice(1,0,e)}return i},[n,l,a]),v=(0,s.useMemo)(()=>!!u&&u.some(e=>e.features.featuredStashpoint),[u]),S=void 0===u||0===u.length,f="pending"===o.status||"pending"===e.status||"pending"===i.status||"pending"===t.status||"pending"===r.status,g="failed"===o.status&&"failed"===e.status&&"failed"===i.status&&"failed"===t.status&&"failed"===r.status,_="pending"===a.status,b="failed"===a.status,C="succeeded"===a.status,x=tl(o),j=tl(e),y=tl(i),k=tl(t),w=tl(r),I=!b&&(!!x||!!j||!!y||!!k||!!w),N=(0,p.I)();return{closestSearchResult:c,getNextPageSearchResults:(0,s.useCallback)(e=>{void 0!==x&&N(h.Nw.getSearchResults(tn(tn({},e),{},{page:x}))),void 0!==j&&N(h.Nw.getBendysquareLockers(tn(tn({},e),{},{page:j}))),void 0!==k&&N(h.Nw.getLockpointLockers(tn(tn({},e),{},{page:k}))),void 0!==y&&N(h.Nw.getQuadralinkLockers(tn(tn({},e),{},{page:y}))),void 0!==w&&N(h.Nw.getOxpointLockers(tn(tn({},e),{},{page:w})))},[N,j,k,w,y,x]),hasFeatured:v,hasNext:I,hasNoResults:S,isFailed:g,isLoading:f,isMinimalFailed:b,isMinimalLoading:_,isMinimalSucceeded:C,searchResults:u}};var td=a(35980);let tu=e=>{let t=(0,p.I)(),a=(0,i.Z)(),{0:r,1:o}=(0,s.useState)(!1),{isFailed:n}=tc(),{draftMergedSearchResults:l,searchFilters:{coordinates:c,dateRange:d}}=(0,p.v)(e=>e.search),{isDesktop:u}=(0,td.ac)(),m=(0,s.useCallback)(()=>{t(h.Nw.syncMergedSearchResults())},[t]),S=(0,s.useCallback)(()=>{(async()=>{if(o(!1),void 0!==c){let e={bagAmount:(0,v.HA)(),coordinates:c,dateRange:d,page:1};await t(h.Nw.clearAllSearchResults()),t(h.Nw.getSearchResults(e)),t(h.Nw.getBendysquareLockers(e)),t(h.Nw.getLockpointLockers(e)),t(h.Nw.getQuadralinkLockers(e)),t(h.Nw.getOxpointLockers(e))}})()},[c,d,t]),f=(0,s.useCallback)(()=>{o(!1)},[]);return((0,s.useEffect)(()=>{l&&l.items.length>0?o(!0):o(!1)},[l]),r)?n?(0,ef.jsx)(eG.b,{className:tr().draftElementsAlert,icon:eM.u,onClose:f,title:a.formatMessage({id:"search.alert.storageSpots.loading.failed"}),variant:"scary",children:(0,ef.jsx)(ti.Z,{className:eo()(tr().button,tr().failed),onClick:S,variant:"plain",children:(0,ef.jsx)(ey.Z,{id:"search.alert.storageSpots.loading.failed.link.label"})})}):(0,ef.jsxs)(eG.b,{className:tr().draftElementsAlert,icon:eM.u,isFloating:!u,onClose:()=>o(!1),title:a.formatMessage({id:"lockers.draftStorageSpotsAlert.title"}),variant:"warning",children:[(0,ef.jsx)(ey.Z,{id:"lockers.draftStashpointsAlert.content"}),(0,ef.jsx)(ti.Z,{className:tr().button,onClick:m,variant:"plain",children:(0,ef.jsx)(ey.Z,{id:"lockers.draftStashpointsAlert.button"})})]}):null};var th=a(11282),tp=a.n(th),tm=a(62510),tv=a(55738),tS=a(21354);let tf=(0,s.memo)(e=>{let{className:t,dateRange:a,dateTimeLabel:r,isSearchCenterInViewport:o=!0,onClick:n}=e,l=(0,i.Z)(),c=(0,p.I)(),d=(0,p.v)(e=>e.search.userGeolocation.userLocation),u=(0,s.useRef)(d),m=(0,p.v)(e=>h.SB.selectIsUsingCurrentLocation(e.search)),v=m&&o,S=(0,p.v)(e=>e.search.searchFilters.pattern),f=void 0!==a?(0,tS.n)({dateRange:a,intl:l}):void 0,g=(0,s.useCallback)(e=>{n?.(e)},[n]);return(0,s.useEffect)(()=>{o&&!m&&void 0!==u.current?c(h.Nw.setUserGeolocationSuccess(u.current)):!o&&m&&(u.current=d,c(h.Nw.setUserGeolocationNotUsing()))},[o,v,m,c,d]),(0,ef.jsxs)("div",{className:eo()(tp().root,t),children:[(0,ef.jsxs)(eR.z,{className:tp().mainButton,hierarchy:"plain",onClick:g,children:[(0,ef.jsxs)(eu.x,{className:tp().location,size:100,weight:"semibold",children:[o?S||l.formatMessage({id:"search.map.island.where"}):l.formatMessage({id:"search.map.island.storageInThisArea"})," "]}),(0,ef.jsx)(eu.x,{className:tp().dateTime,size:75,children:void 0!==r?r:void 0!==f?(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)("span",{children:`${f.left} `}),(0,ef.jsx)(tm.L,{size:"xSmall"}),(0,ef.jsx)("span",{children:` ${f.right}`})]}):l.formatMessage({id:"search.map.island.when"})})]}),(0,ef.jsx)(tv.E,{className:eo()(tp().currentLocationButton,{[tp().active]:v&&o}),eventSource:"islandButton",isDisabled:v&&o,size:"mobile",state:v&&o?"active":"default",type:"onMap"})]})});tf.displayName="Island";var tg=a(41007),t_=a(78306),tb=a.n(t_);let tC=e=>{let{className:t,content:a,movable:r=!0,variant:i="info"}=e,{0:o,1:n}
1=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>{n(!0)},0);return()=>clearTimeout(e)},[r]),(0,s.useEffect)(()=>{if(r&&o){let e=setTimeout(()=>{n(!1)},5e3);return()=>clearTimeout(e)}},[o,r]),(0,ef.jsx)("div",{className:eo()(tb().root,tb()[i],t,{[tb().hidden]:o&&r,[tb().movable]:r}),children:(0,ef.jsx)("div",{className:tb().content,children:a})})};var tx=a(50769),tj=a.n(tx);let ty=()=>{let e=(0,i.Z)();return(0,ef.jsx)(tC,{content:(0,ef.jsx)("div",{className:tj().snackbar,children:(0,ef.jsx)(eu.x,{size:100,weight:"semibold",children:e.formatMessage({id:"search.action.showCurrentLocation.snackbar"})})}),variant:"info"})};var tk=a(56494),tw=a.n(tk),tI=a(31703);let tN=e=>{let{ariaHidden:t,ariaLabel:a,className:s,size:r,variant:i}=e;return(0,ef.jsxs)(tI.Z,{ariaHidden:t,ariaLabel:a,className:s,size:r,variant:i,viewBox:"0 0 20 20",children:[(0,ef.jsx)("path",{d:"M17.3727 6.54256L16.1247 16.938H3.92179L2.67379 6.54256L6.56468 8.77017L10.0232 2.82989L14.0215 8.63913L17.3727 6.54256Z",fill:"#FAC515"}),(0,ef.jsx)("path",{d:"M2.87976 7.26539L3.9564 16.3402H16.0437L17.1203 7.26539L13.7645 9.4839L10.0001 4.25775L6.23559 9.4839L2.87976 7.26539ZM2.3012 4.8881L5.81556 7.21139L9.31902 2.34759C9.58766 1.97463 10.1104 1.88825 10.4865 2.15464C10.5616 2.20787 10.6273 2.27307 10.6811 2.34759L14.1846 7.21139L17.6989 4.8881C18.0835 4.63386 18.603 4.73691 18.8595 5.11827C18.9697 5.28227 19.0175 5.47983 18.9943 5.67557L17.6191 17.267C17.5695 17.685 17.2123 18 16.7879 18H3.21219C2.78781 18 2.43061 17.685 2.38102 17.267L1.00581 5.67557C0.951808 5.22038 1.28016 4.80795 1.73919 4.7544C1.9366 4.73137 2.13582 4.77877 2.3012 4.8881Z",fill:"#A15C07"})]})};var tM=a(54551),tR=a(2099);let tE=e=>{let{isOpen:t}=e,a=(0,i.Z)(),{0:r,1:o}=(0,s.useState)(!1);(0,s.useEffect)(()=>{t&&o(!1)},[t]);let n=(0,s.useCallback)(()=>{o(!0)},[]),l=(0,tR.R)({autoHideAfter:5e3,isOpen:t&&!r});return(0,ef.jsx)("div",{className:eo()(tw().root,{[tw().hidden]:l.isHidden}),style:{"--local-transition-duration":"300ms"},children:(0,ef.jsx)(tM.b,{icon:tN,onClose:n,title:a.formatMessage({id:"search.featuredStashpointPopup.title"}),variant:"featured",children:(0,ef.jsx)(ey.Z,{id:"search.featuredStashpointPopup.body"})})})};var tO=a(3412),tL=a.n(tO),tA=a(82653),tT=a(53971),tD=a(2006),tP=a(41164),tH=a.n(tP);let tF=(0,tA.animated)(e=>{let{children:t,style:a}=e;return(0,ef.jsx)("div",{className:tH().root,style:a,children:t})}),tZ=(0,s.memo)(e=>{let{message:t,onClose:a,shouldCloseAutomatically:r}=e,o=(0,i.Z)(),n=(0,td.pf)((e,t)=>t!==e,t),l=(0,td.Me)(),c=(0,tA.useTransition)(void 0!==t,{config:{duration:100,easing:tA.easings.easeInOutQuad},enter:{opacity:1,y:0},from:{opacity:0,y:-10},leave:{opacity:0,y:-10}});return(0,s.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>{a()},5e3);return()=>{clearTimeout(e)}},[a,r]),c((e,s)=>{let r=t??n;return s&&void 0!==r?(0,ef.jsx)(tF,{style:{opacity:e.opacity,transform:e.y.to(e=>`translate3d(-50%, ${e}px, 0)`)},children:(0,ef.jsxs)("div",{"aria-labelledby":l,"aria-live":"INFO"===r.type?"polite":void 0,role:"alert",children:[(0,ef.jsx)(tD.h,{ariaLabel:o.formatMessage({id:"checkout.action.closeDialog"}),className:tH().closeButton,onClick:a,size:"small",variant:"plain",children:(0,ef.jsx)(tT.FU5,{"aria-hidden":!0})}),(0,ef.jsxs)("div",{className:eo()(tH().content,{[tH().error]:"ERROR"===r.type,[tH().warning]:"WARNING"===r.type}),children:[(0,ef.jsx)("span",{className:tH().title,id:l,children:r.title}),void 0===r.description?void 0:(0,ef.jsx)("p",{children:r.description})]})]})}):void 0})});tZ.displayName="MapMessage";var tB=a(53707),tz=a.n(tB);let tV=e=>{let{className:t}=e,a=(0,i.Z)().formatMessage({id:"search.results.noCoverage.title"});return(0,ef.jsx)(tM.b,{className:eo()(tz().root,t),title:a,variant:"neutral",children:(0,ef.jsx)(ey.Z,{id:"search.results.noCoverage.description"})})},tU=e=>{let{coordinates:t,isMapLoading:a,mapService:r}=e;(0,s.useEffect)(()=>{void 0===t||a||void 0===r||r.renderCurrentLocationMarker({shouldPan:!1},t)},[t,a,r])},tG=e=>{let{coordinates:t,mapService:a,showSearchMarker:r}=e,i=(0,td.dG)(()=>void 0!==a,t);(0,s.useEffect)(()=>{void 0!==a&&r&&void 0!==t&&t!==i&&a.renderSearchMarker({shouldPan:!1},t)},[t,a,i,r])},tq=e=>{let{activeStashpointId:t,hoveredStashpointId:a,mapService:r,onClusterClick:i,onMarkerClick:o,searchResults:n}=e,l=(0,td.D9)(n),c=(0,s.useRef)(!1),d=(0,s.useRef)(!1),h=(0,s.useCallback)(e=>{S.j[u.e.STASHPOINT_PIN_CLICKED]({isFlagshipStashpoint:e.features.featuredStashpoint,latitude:e.latitude,longitude:e.longitude,stashpointId:e.id}
1),void 0!==e.id&&r?.setActiveStashpointMarker(e.id),o?.(e)},[r,o]),p=(0,s.useCallback)(e=>{S.j[u.e.CLICK_SP_CLUSTER]({availableStashpoints:e.availableStashpoints,clusterSize:e.clusterSize}),i?.(e)},[i]);(0,s.useEffect)(()=>{void 0===r||n===l&&c.current||(r.createStashpointMarkers(n,{onClusterClick:p,onMarkerClick:h}),c.current=!0)},[r,h,l,n,p]),(0,s.useEffect)(()=>{void 0===r||d.current||(void 0===t?r.unsetActiveStashpointMarker():(d.current=!0,r.setActiveStashpointMarker(t)))},[t,r]),(0,s.useEffect)(()=>{void 0!==r&&(void 0===a?r.unsetHoveredStashpointMarker():r.setHoveredStashpointMarker(a))},[a,r])};var tK=a(53260);let tW=[],t$=(0,s.memo)(e=>{let{className:t,hoveredStashpointId:a,isMapLoading:r,mapContainerElementCallbackRef:i,mapService:o,message:n,onClusterClick:l,onMarkerClick:c,searchResults:d,showFeaturedPopup:u=!1,showNoCoverageAlert:m,showToast:v=!1}=e,S=(0,p.v)(e=>e.search.searchFilters.coordinates),f=(0,p.v)(e=>e.search.activeStashpointId),g=(0,p.v)(e=>h.SB.selectIsUsingCurrentLocation(e.search)),{0:_,1:b}=(0,s.useState)(n);tU({coordinates:g?S:void 0,isMapLoading:r,mapService:o}),tG({coordinates:g?void 0:S,mapService:o,showSearchMarker:!g}),tq({activeStashpointId:f,hoveredStashpointId:a,mapService:o,onClusterClick:l,onMarkerClick:c,searchResults:d??tW});let C=(0,s.useCallback)(()=>{b(void 0)},[]);return(0,s.useEffect)(()=>{b(n)},[n]),(0,ef.jsxs)("div",{className:eo()(tL().root,t),children:[(0,ef.jsx)(tE,{isOpen:u&&!r}),v?(0,ef.jsx)(ty,{}):null,r?(0,ef.jsx)(tK.Z,{className:tL().loader}):null,(0,ef.jsx)(tZ,{message:_,onClose:C,shouldCloseAutomatically:_?.shouldCloseAutomatically??!1}),(0,ef.jsx)("div",{className:eo()(tL().map),ref:i}),m&&(0,ef.jsx)(tV,{className:tL().noCoverageAlert})]})});t$.displayName="Map";var tQ=a(39862),tJ=a.n(tQ);let tY=(0,s.memo)(e=>{let{isTabletSmallLandscape:t,message:a}=e,s=(0,td.Me)();return(0,ef.jsxs)("div",{"aria-labelledby":s,"aria-live":"INFO"===a.type?"polite":void 0,className:eo()(tJ().root,{[tJ().error]:"ERROR"===a.type,[tJ().warning]:"WARNING"===a.type}),role:"alert",children:[(0,ef.jsx)("span",{className:eo()(tJ().title,{[tJ().tabletSmallLandscape]:t}),id:s,children:a.title}),void 0===a.description?null:(0,ef.jsx)("p",{children:a.description})]})});tY.displayName="Message";var tX=a(4730),t0=a(70212),t1=a(26246),t2=a(33944),t9=a(80201),t5=a.n(t9),t8=a(88813);let t4=a.g.requestIdleCallback||(e=>{let t=Date.now();return setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-Date.now()-t)})},1)}),t7=a.g.cancelIdleCallback||(e=>{clearTimeout(e)}),t6=["className","context"],t3=["className","context"],ae=["className","context"],at=["children","className","context","data-index"],aa=["children","className","context"];function as(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function ar(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?as(Object(a),!0).forEach(function(t){(0,o.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):as(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let ai=e=>void 0===e?void 0:`stashpoint-${e}`,ao=(0,s.memo)((0,s.forwardRef)((e,t)=>{let{className:a,context:s}=e,r=(0,tX.Z)(e,t6);return(0,ef.jsx)("div",ar(ar({},r),{},{className:eo()(a,t5().resultContainer),ref:t,children:(0,ef.jsx)("div",{className:eo()(t5().result,t5().footer,t5().empty)})}))}));ao.displayName="ListEmptyFooter";let an=(0,s.memo)((0,s.forwardRef)((e,t)=>{let{className:a,context:s}=e,r=(0,tX.Z)(e,t3);return(0,ef.jsx)("div",ar(ar({},r),{},{className:eo()(a,t5().resultContainer),ref:t,children:(0,ef.jsx)("div",{className:eo()(t5().result,t5().footer),children:(0,ef.jsx)("p",{"aria-live":"polite",className:t5().footerContent,children:(0,ef.jsx)(ey.Z,{id:"search.processing.stashpoints"})})})}))}));an.displayName="ListLoadingFooter";let al=(0,s.memo)((0,s.forwardRef)((e,t)=>{let{className:a,context:s}=e,r=(0,tX.Z)(e,ae);return(0,ef.jsx)("div",ar(ar({},r),{},{className:eo()(a,t5().resultContainer),ref:t,children:(0,ef.jsx)("div",{className:eo()(t5().result,t5().footer),children:(0,ef.jsx)(t2.B,{className:t5().footerContent,children:(0,ef.jsx)(ey.Z,{id:"search.error.stashpointsRequestFailed.details"})})})}))}));al.displayName="ListErrorFooter";let ac=(0,s.forwardRef)((e,t)=>{let{children:a,className:s,context:r,"data-index":i}=e,o=(0,tX.Z)(e,at),{activeStashpointIndex:n,focusedListItemIndex:l,searchResults:c}=r,d=ai(c[i]?.id),u=i===c.length-1;return(0,ef.jsx)("div",ar(ar({},o),{},{"aria-posinset":i+1,"aria-selected":n===i,"aria-setsize":c.length,className:eo()(s,t5().listItem,{[t5().focused]:l===i,[t5().first]:0===i,[t5().last]:u}),"data-index":i,id:d,ref:t,role:"option",children:a}))});ac.displayName="ListItem";let ad=(0,s.forwardRef)((e,t)=>{let{children:a,className:r,context:o}=e,n=(0,tX.Z)(e,aa),l=(0,i.Z)(),{focusedListItemIndex:c,searchResults:d}=o,u=void 0===c?void 0:ai(d[c]?.id),h=(0,td.pf)((e,t)=>t!==e,u),p=(0,s.useMemo)(()=>d.map(({id:e})=>ai(e)).join(" "),[d]);return(0,ef.jsx)("div",ar(ar({},n),{},{"aria-activedescendant":u??h,"aria-label":l.formatMessage({id:"search.results.ariaLabel"},{totalStashpoints:d.length}),"aria-owns":p,className:eo()(r,t5().list),ref:t,role:"listbox",children:a}))});ad.displayName="List";let au=(0,s.memo)(e=>
1{let{isClosest:t,onClick:a,onHover:s,searchResult:r}=e;return(0,ef.jsx)(t8.I,{isClosest:t,onClick:a,onHover:s,stashpoint:r})});au.displayName="Result";let ah=(e,t)=>t.id,ap=(0,s.memo)(e=>{let{activeStashpointId:t,closestSearchResult:a,hasError:r,hasMoreStashpoints:o,isLoading:n,onEndReached:l,onSearchResultClick:c,onSearchResultHover:d,scrollStateRef:u,searchResults:h}=e,p=(0,i.Z)(),m=(0,s.useRef)(null),v=(0,s.useRef)(0),S=(0,s.useRef)(),f=(0,s.useRef)(null),{0:g,1:_}=(0,s.useState)(-1),{0:b,1:C}=(0,s.useState)(!1),{0:x,1:j}=(0,s.useState)(!1),y=(0,s.useMemo)(()=>{let e=h.findIndex(({id:e})=>e===t);return -1===e?void 0:e},[t,h]),k=(0,s.useMemo)(()=>({activeStashpointIndex:y,focusedListItemIndex:g,searchResults:h}),[y,g,h]),w=(0,s.useCallback)((e,t)=>{if(null===f.current||void 0===t||void 0===h[t])return;let{shouldFocusListItem:a}=e;f.current.scrollIntoView({behavior:"auto",done:a?()=>{_(t)}:void 0,index:t})},[h]),I=(0,s.useCallback)(e=>{if(null===f.current||g>-1)return;let t=document.querySelector(`.${t5().resultList}:focus-visible`)??void 0;void 0!==t&&t===e.target&&w({shouldFocusListItem:!0},y??0)},[y,g,w]),N=(0,s.useCallback)(e=>{if(null!==f.current){switch(e.code){case"ArrowDown":w({shouldFocusListItem:!0},Math.min(h.length-1,g+1));break;case"ArrowUp":w({shouldFocusListItem:!0},Math.max(0,g-1));break;case"End":w({shouldFocusListItem:!0},h.length-1);break;case"Home":w({shouldFocusListItem:!0},0);break;case"Space":{if(-1===g)break;let e=h[g];if(void 0===e)break;c(e);break}default:return}e.preventDefault()}},[g,c,w,h]),M=(0,s.useCallback)(()=>{void 0!==u&&f.current?.getState(e=>{u.current=e})},[u]),R=(0,s.useCallback)(e=>{C(e),e||M()},[M]),E=(0,s.useCallback)(e=>{M(),c(e)},[M,c]),O=(0,s.useCallback)(e=>{v.current=m.current?.scrollTop||0,S.current=e},[]),L=(0,s.useCallback)(e=>{e.stopPropagation()},[]),A=(0,s.useCallback)(e=>{m.current?.scrollTop!==v.current&&e.stopPropagation()},[]);return(0,s.useEffect)(()=>{if(null===f.current||void 0===y)return;let e=t4(()=>{w({shouldFocusListItem:!1},y)});return()=>{t7(e)}},[y,w]),(0,ef.jsx)("div",{className:t5().results,children:0===h.length?void 0:(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(t1.OO,{className:eo()(t5().resultList,{[t5().scrolling]:b}),components:{Footer:r?al:o?an:ao,Item:ac,List:ad},computeItemKey:ah,context:k,data:h,endReached:l,isScrolling:R,itemContent:(e,t)=>
1(0,ef.jsx)(au,{isClosest:t.id===a?.id,onClick:E,onHover:d,searchResult:t},t.id),onFocus:I,onKeyDown:N,onTouchEnd:A,onTouchMove:L,onTouchStart:O,rangeChanged:e=>{e.startIndex>0&&!x?j(!0):0===e.startIndex&&x&&j(!1)},ref:f,restoreStateFrom:u?.current,scrollerRef:e=>{m.current=e}}),(0,ef.jsx)(tD.h,{ariaLabel:p.formatMessage({id:"search.results.action.backToStart"}),className:eo()(t5().backToStart,{[t5().hidden]:!x||n}),onClick:()=>{w({shouldFocusListItem:!0},0),m.current?.focus(),j(!1)},size:"small",variant:"secondary",children:(0,ef.jsx)(t0.QnF,{"aria-hidden":!0})})]})})});ap.displayName="Results";let am=[],av=(0,s.memo)(e=>{let{onEndReached:t,onSearchResultClick:a,onSearchResultHover:s,scrollStateRef:r,searchResults:i}=e,{closestSearchResult:o,hasNext:n,isMinimalFailed:l,isMinimalLoading:c}=tc(),{activeStashpointId:d}=(0,p.v)(e=>e.search);return(0,ef.jsx)("div",{className:t5().root,children:(0,ef.jsx)(ap,{activeStashpointId:d,closestSearchResult:o,hasError:l,hasMoreStashpoints:n,isLoading:c,onEndReached:t,onSearchResultClick:a,onSearchResultHover:s,scrollStateRef:r,searchResults:i??am})})});av.displayName="SearchResults";var aS=a(16198),af=a.n(aS);let ag=e=>{let{count:t}=e;return(0,ef.jsx)(eu.x,{className:af().root,size:100,translationId:"search.results.stashpoints.count",values:{count:t},weight:"medium"})};var a_=a(7353),ab=a.n(a_),aC=a(43905);let ax=()=>{let{shouldApplyDefaultSelection:e,shouldHidePrices:t}=(0,aC.y)(),a=(0,p.v)(e=>e.search.stashpointIO),s=(0,p.v)(e=>e.search.quoteIO),r=(0,p.v)(e=>e.search.searchFilters.storageSpaces),i=0===(0,v.yz)(r);return{isCtaDisabled:e&&i?"succeeded"!==a.status:"succeeded"!==s.status||void 0===s.data,shouldShowTotal:!t}};var aj=a(21098),ay=a(85498),ak=a(34032),aw=a(48687),aI=a.n(aw),aN=a(68881),aM=a(12513),aR=a(80184),aE=a(51653),aO=a(51241),aL=a(32614);function aA(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function aT(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?aA(Object(a),!0).forEach(function(t){(0,o.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):aA(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let aD=e=>{let{stashpoint:t}=e,a=(0,i.Z)(),{shouldHidePrices:r}=(0,aC.y)(),o=(0,p.v)(e=>e.search.searchFilters.dateRange),n=(0,p.v)(e=>e.search.searchFilters.storageSpaces),l=(0,s.useMemo)(()=>(0,v.CL)(),[]),c=t.features.newStashpoint,d=(0,p.I)(),u=(0,s.useCallback)((e,a)=>{let s=n[a.id]??0,r="add"===e?s+1:s-1,i=aT(aT({},n),{},{[a.id]:r});0===r&&delete i[a.id],(0,aN.E)({nextStorageSpaces:i,operation:e,page:"map",stashpoint:t,storageSpace:a,storageSpaces:n}),d(h.Nw.updateSearchFilters({storageSpaces:i}))},[d,t,n]);return(0,s.useEffect)(()=>{let e=aM.XP(n),a=t.storageSpaces.reduce((e,t)=>Object.assign({},e,{[t.id]:t}),{}),s=aM.XP(a);if(0===(0,v.yz)(n)&&d(h.Nw.clearQuote()),!1===(0,v.Mv)(n)||e.some(e=>!s.includes(e)||n[e]>a[e].quantity)){d(h.Nw.updateSearchFilters({storageSpaces:l}));return}0!==(0,v.yz)(n)&&d(h.Nw.getQuote({dateRange:o,newHostDiscount:c,stashpointId:t.id,storageSpaces:n,tier:"premium"}))},[o,l,d,c,t.id,t.storageSpaces,t.storageType,n]),(0,ef.jsx)(ef.Fragment,{children:t.storageSpaces.map(e=>{let{dimensions:s}=e.sizeDisplay,{isAddDisabled:i,isSubtractDisabled:o}=(0,aL.D)({stashpointCapacity:t.capacity,stashpointSpaceAvailable:t.spaceAvailable,storageSpaceCapacity:e.quantity,storageSpaceId:e.id,storageSpaces:n,storageSpaceSpaceAvailable:e.spaceAvailable});return(0,ef.jsxs)("div",{className:aI().root,children:[(0,ef.jsx)(eS.Ee,{alt:e.sizeDisplay.displayName,className:aI().image,height:107,src:e.sizeDisplay.imageUrl,width:107}),(0,ef.jsxs)("div",{className:aI().contentContainer,children:[(0,ef.jsxs)("div",{children:[(0,ef.jsxs)("div",{className:aI().content,children:[(0,ef.jsx)(eu.x,{weight:"semibold",children:e.sizeDisplay.displayName}),r?void 0:(0,ef.jsx)(ak.U,{storageSpace:e})]}),s&&"quadralink"!==t.storageType?(0,ef.jsx)(eu.x,{className:aI().dimensions,size:75,translationId:"common.locker.sizeDimensions",values:{depth:s.depthCm,height:s.heightCm,width:s.widthCm}}):void 0,"staffed"===t.storageType&&t.storageSpaces.length>1?(0,ef.jsx)(eu.x,{className:aI().dimensions,size:75,children:e.sizeDisplay.displayDescription}):void 0]}),0===e.spaceAvailable?(0,ef.jsx)(aO.C,{body:a.formatMessage({id:"stashpoint.status.fullyBooked"}).toLowerCase(),className:aI().fullyBookedBadge,color:"red",isRounded:!0}):(0,ef.jsxs)("div",{className:aI().quantitySelector,children:[(0,ef.jsx)(aj.Z,{ariaDisabled:o,ariaLabel:a.formatMessage({id:"checkout.action.subtract"}),className:`${aI().button} ${o?aI().disabled:""}`,disabled:o,icon:aR.V,iconClassName:o?aI().disabledIcon:"",iconSize:"medium",onClick:()=>u("subtract",e),variant:"quantity"}),(0,ef.jsx)(eu.x,{className:aI().value,size:150,weight:"bold",children:n[e.id]??0}),(0,ef.jsx)(aj.Z,{ariaDisabled:i,ariaLabel:a.formatMessage({id:"checkout.action.add"}),className:`${aI().button} ${i?aI().disabled:""}`,disabled:i,icon:aE.p,iconClassName:i?aI().disabledIcon:"",iconSize:"medium",onClick:()=>u("add",e),variant:"quantity"})]})]})]},e.id)})})};var aP=a(75524);let aH=()=>null,aF=(0,s.memo)(e=>{let{onBook:t}=e,a=(0,i.Z)(),r=(0,n.useRouter)(),o=(0,p.v)(e=>e.search.stashpointIO),l=(0,p.v)(e=>e.search.quoteIO),{isCtaDisabled:c,shouldShowTotal:d}=ax(),u=(0,s.useCallback)(()=>{r.back()},[r]);return(0,ef.jsxs)("div",{className:ab().root,children:[(0,ef.jsx)(aj.Z,{ariaLabel:a.formatMessage({id:"carousel.action.showPrevious.ariaLabel"}),className:ab().backBtn,icon:ek.X,iconClassName:ab().icon,iconSize:"medium",onClick:u}),(0,ef.jsxs)("div",{className:ab().contentContainer,children:[(0,ef.jsx)(eV.N,{className:ab().content,io:o,pendingIndicator:{disable:!0},render:{failed:aH,idle:aH,pending:aH,succeeded:e=>(0,ef.jsx)(ef.Fragment,{children:(0,ef.jsxs)(er.y5,{children:[(0,ef.jsx)(ay.I,{size:200,translationId:G.D5.isLocker(e.type)?"common.itemsCountSelector.title.lockers":"common.itemsCountSelector.title.bags",weight:"semibold"}),(0,ef.jsx)(aD,{stashpoint:e})]})})}}),"failed"===l.status&&l.error instanceof aP.R0.fv?(0,ef.jsx)(eG.b,{className:ab().error,
1icon:eM.u,title:a.formatMessage({id:`errors.${l.error.id}`}),variant:"scary"}):void 0]}),(0,ef.jsx)("div",{className:ab().footerContainer,children:(0,ef.jsx)(tt,{className:ab().footer,ctaClickHandler:t,ctaDisabled:c,ctaLabel:a.formatMessage({id:"stashpoint.book"}),withTotal:d})})]})});aF.displayName="StashpointItemsCountSelector";let aZ=(0,s.memo)(e=>{let{activeLayer:t,hasFeatured:a,hoveredStashpointId:r,isInitialLoaded:i,isManualSearch:o,isMapLoading:n,isSearchCenterInViewport:l,mapContainerElementCallbackRef:c,mapService:d,onBook:m,onResultsEndReached:v,onSearchResultClick:f,onSearchResultHover:g,resultsScrollStateRef:_,searchResults:b,setActiveLayer:C,showToast:x,stashpointMessage:j,stashpointsMessage:y}=e,k=(0,p.v)(e=>h.SB.selectIsUsingCurrentLocation(e.search)),w=(0,p.v)(e=>e.search.searchFilters.dateRange),{0:I,1:N}=(0,s.useState)(!1),M=(0,s.useCallback)(()=>{S.j[u.e.OPEN_FILTERS]({type:"islandComponent"}),N(!0)},[]),{isMinimalLoading:R}=tc(),E=(0,p.I)(),O=(0,s.useCallback)(e=>{E(h.Nw.setActiveStashpointId(e.id)),S.j[u.e.LOAD_SP_DETAILS]({isFlagshipStashpoint:e.features.featuredStashpoint,latitude:e.latitude,longitude:e.longitude,method:"map",stashpointId:e.id}),C("STASHPOINT",e.id)},[C,E]),L=(0,s.useCallback)(()=>{C("SEARCH_RESULTS",void 0),d?.unsetActiveStashpointMarker()},[C,d]),A=(0,s.useCallback)(e=>{void 0!==e&&(d?.setActiveStashpointMarker(e.id),f(e))},[d,f]);return(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(et.A,{className:es().layout,classNameContainer:es().layoutContainer,height:"viewport",isAppBarFullWidth:!0,shouldHideAppBar:"STASHPOINT"===t||"ITEMS_COUNT_SELECTOR"===t,children:(0,ef.jsx)(er.y5,{children:(0,ef.jsxs)("div",{className:es().contentContainer,children:[(0,ef.jsx)("div",{className:es().sidebar,children:(()=>{switch(t){case"MAP":case"SEARCH_RESULTS":return(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(tf,{className:es().islandContainer,dateRange:w,isSearchCenterInViewport:l,onClick:M}),(0,ef.jsx)(ag,{count:b?.length??0}),void 0===y?(0,ef.jsxs)(ef.Fragment,{children:[R?null:(0,ef.jsx)(tu,{}),!R&&b&&0===b.length&&(0,ef.jsx)(tV,{}),i?(0,ef.jsx)(av,{onEndReached:v,onSearchResultClick:A,onSearchResultHover:g,scrollStateRef:_,searchResults:b}):null]}):(0,ef.jsx)(tY,{isTabletSmallLandscape:!0,message:y})]});case"STASHPOINT":if(void 0!==j)return(0,ef.jsx)(tY,{isTabletSmallLandscape:!0,message:j});return(0,ef.jsx)(ta,{onStashpointDetailsBack:L,setActiveLayer:C});case"ITEMS_COUNT_SELECTOR":return(0,ef.jsx)(aF,{onBook:m});default:throw Error(`Unexpected active layer: ${t}`)}})()}),(0,ef.jsx)(t$,{className:es().map,hoveredStashpointId:r,isMapLoading:n,mapContainerElementCallbackRef:c,mapService:d,onMarkerClick:O,searchResults:b,showFeaturedPopup:a&&o,showNoCoverageAlert:!1,showToast:!n&&k&&x})]})})}),I&&(0,ef.jsx)(tg.C,{onClose:()=>N(!1),page:"map"})]})});aZ.displayName="ViewDesktop";var aB=a(9239),az=a.n(aB),aV=a(55627);let aU=e=>{let{isClosest:t,onClick:a,onClose:r,onHover:i,searchResult:o}=e,{0:n,1:l}=(0,s.useState)("hidden");(0,s.useEffect)(()=>{o&&l("visible")},[o]);let c=(0,s.useCallback)(()=>{S.j[u.e.DISMISS_SP_CARD]({closestStorageSpot:t,stashpointId:o?.id}),l("dismissed"),setTimeout(()=>{r()},150)},[o?.id,t,r]);return(0,ef.jsxs)("div",{className:eo()(az().mapStashpointCard,{[az().fadeout]:"dismissed"===n,[az().enterAndFadeIn]:"visible"===n}),style:{"--local-transition-duration":"150ms"},children:[(0,ef.jsx)(eR.z,{className:az().closeButton,hierarchy:"plain",onClick:c,size:"sm",children:(0,ef.jsx)("div",{className:az().closeIconContainer,children:(0,ef.jsx)(aV.T,{ariaHidden:!0,className:az().closeIcon,size:"small"})})}),(0,ef.jsx)(t8.I,{contentClassName:az().card,isClosest:t,onClick:a,onHover:i,stashpoint:o},o.id)]})};var aG=a(26512),aq=a.n(aG);let aK=e=>{let{className:t,hasGlobalSearchResults:a=!1,isActive:r,isInitialLoaded:i,onEndReached:o,onSearchResultClick:n,onSearchResultHover:l,scrollStateRef:c,searchResults:d,stashpointsMessage:u}=e,h=(0,p.v)(e=>e.search.searchFilters.pattern),{isMinimalLoading:m}=tc(),v=(0,s.useMemo)(()=>!m&&(!d||0===d.length)&&!a,[m,d,a]);return(0,ef.jsxs)("div",{className:eo()({[aq().active]:r},aq().root,t),children:[!m&&void 0!==h&&(0,ef.jsx)(ag,{count:d?d.length:0}),v&&(0,ef.jsx)(tV,{}),void 0===u&&i&&(0,ef.jsx)(av,{onEndReached:o,onSearchResultClick:n,onSearchResultHover:l,scrollStateRef:c,searchResults:d}),void 0!==u&&(0,ef.jsx)(tY,{isTabletSmallLandscape:!1,message:u})]})};var aW=a(62482),a$=a.n(aW),aQ=a(16985);let aJ=e=>{let{ariaHidden:t,ariaLabel:a,className:s,size:r,variant:i}=e;return(0,ef.jsx)(tI.Z,{ariaHidden:t,ariaLabel:a,className:s,size:r,variant:i,viewBox:"0 0 24 24",children:(0,ef.jsx)("path",{clipRule:"evenodd",d:"M2 6C2 4.89543 2.89543 4 4 4C5.10457 4 6 4.89543 6 6C6 7.10457 5.10457 8 4 8C2.89543 8 2 7.10457 2 6ZM8 6C8 5.44772 8.44772 5 9 5H21C21.5523 5 22 5.44772 22 6C22 6.55229 21.5523 7 21 7L9 7C8.44772 7 8 6.55228 8 6ZM2 12C2 10.8954 2.89543 10 4 10C5.10457 10 6 10.8954 6 12C6 13.1046 5.10457 14 4 14C2.89543 14 2 13.1046 2 12ZM8 12C8 11.4477 8.44772 11 9 11L21 11C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13L9 13C8.44772 13 8 12.5523 8 12ZM2 18C2 16.8954 2.89543 16 4 16C5.10457 16 6 16.8954 6 18C6 19.1046 5.10457 20 4 20C2.89543 20 2 19.1046 2 18ZM8 18C8 17.4477 8.44772 17 9 17L21 17C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19L9 19C8.44772 19 8 18.5523 8 18Z",fill:"currentColor",fillRule:"evenodd"})})};var aY=a(22695),aX=a(88980),a0=a.n(aX),a1=a(92927);let a2=()=>null,a9=e=>{let{onBook:t}=e,a=(0,i.Z)(),r=(0,n.useRouter)(),o=(0,p.v)(e=>e.search.stashpointIO),l=(0,p.v)(e=>e.search.quoteIO),{isCtaDisabled:c,shouldShowTotal:d}=ax(),u=(0,s.useCallback)(()=>{r.back()},[r]);return(0,ef.jsxs)(a1.G,{bodyClassName:a0().popupBody,isFullScreen:!0,isOpen:!0,onClose:u,shouldHideHeader:!0,children:[(0,ef.jsx)(eV.N,{className:a0().contentContainer,io:o,pendingIndicator:{disable:!0},render:{failed:a2,idle:a2,pending:a2,succeeded:e=>(0,ef.jsx)("div",{className:a0().content,children:(0,ef.jsxs)(er.y5,{children:[(0,ef.jsxs)("div",{className:a0().headerContainer,children:[(0,ef.jsx)(aj.Z,{ariaLabel:a.formatMessage({id:"carousel.action.showPrevious.ariaLabel"}),className:a0().backBtn,icon:ek.X,iconClassName:a0().icon,iconSize:"medium",onClick:u,variant:"plain"}),(0,ef.jsx)(ay.I,{size:150,translationId:G.D5.isLocker(e.type)?"common.itemsCountSelector.title.lockers":"common.itemsCountSelector.title.bags",weight:"semibold"})]}),(0,ef.jsx)(aD,{stashpoint:e})]})})}}),"failed"===l.status&&l.error instanceof aP.R0.fv?(0,ef.jsx)(eG.b,{className:a0().error,
1icon:eM.u,title:a.formatMessage({id:`errors.${l.error.id}`}),variant:"scary"}):void 0,(0,ef.jsx)("div",{className:a0().footerContainer,children:(0,ef.jsx)(tt,{className:a0().footer,ctaClickHandler:t,ctaDisabled:c,ctaLabel:a.formatMessage({id:"stashpoint.book"}),withTotal:d})})]})},a5=(0,s.memo)(e=>{let{activeLayer:t,hasFeatured:a,hasMapUserInteraction:r,hoveredStashpointId:i,initialStashpointId:o,isInitialLoaded:n,isManualSearch:l,isMapLoading:c,isSearchCenterInViewport:d,mapContainerElementCallbackRef:m,mapService:v,mapViewportBounds:f,onBook:g,onResultsEndReached:_,onSearchResultClick:b,onSearchResultHover:C,openStashpointDetails:x,resultsScrollStateRef:j,searchResults:y,setActiveLayer:k,showToast:w,stashpointMessage:I,stashpointsMessage:N}=e,M=(0,p.I)(),{closestSearchResult:R,isMinimalLoading:E}=tc(),{activeStashpointId:O}=(0,p.v)(e=>e.search),L=(0,s.useRef)("SEARCH_RESULTS");(0,s.useEffect)(()=>{("SEARCH_RESULTS"===t||"MAP"===t)&&(L.current=t)},[t]);let A=(0,s.useCallback)(()=>{let e=L.current;"MAP"===e&&M(h.Nw.clearActiveStashpointId()),k(e)},[M,k]),T=(0,p.v)(e=>e.search.searchFilters.locationTypes),D=h.P6.isLargeRegionLevel(T),P=(0,p.v)(e=>h.SB.selectIsUsingCurrentLocation(e.search)),H=(0,p.v)(e=>e.search.searchFilters.dateRange),{0:F,1:Z}=(0,s.useState)(!1),B=(0,s.useMemo)(()=>y&&f?y.filter(e=>f.contains({lat:e.latitude,lng:e.longitude})):y,[y,f]),z=(0,s.useCallback)(()=>{S.j[u.e.OPEN_FILTERS]({type:"islandComponent"}),Z(!0)},[]),V=y?.[0],U=B?B.length:0,{0:G,1:q}=(0,s.useState)(D||void 0!==o?void 0:V);(0,s.useEffect)(()=>{if(void 0!==o){if(!n)return;let e=y?.find(({id:e})=>e===o);if(void 0!==e){q(e),v?.setActiveStashpointMarker(e.id);return}}!D&&l&&(V?(q(V),v?.setActiveStashpointMarker(V.id)):(q(void 0),v?.unsetActiveStashpointMarker()))},[n,o,D,l,V,v,y]),(0,s.useEffect)(()=>{void 0!==G&&v?.setActiveStashpointMarker(G.id)},[v,G,y]);let K="SEARCH_RESULTS"===t||"SEARCH_RESULTS"===L.current&&"MAP"!==t,W=U>0?K?"search.results.listMapToggle.tapToShowOnMap":"search.results.listMapToggle.tapToShowOnList":K?"search.results.listMapToggle.tapToShowMap":"search.results.listMapToggle.tapToShowList",$=(0,s.useCallback)(e=>{q(e)},[q]),Q=(0,s.useCallback)(()=>{q(void 0),v?.unsetActiveStashpointMarker()},[q,v]);(0,s.useEffect)(()=>{(D||!l)&&Q()},[D,l,Q]),(0,s.useEffect)(()=>{},[r,Q]);let J=a&&l;return(0,ef.jsx)(et.A,{className:a$().layout,classNameContainer:a$().layoutContainer,height:"viewport",isAppBarFullWidth:!0,shouldHideAppBar:!0,children:(0,ef.jsx)(er.y5,{children:(0,ef.jsxs)("div",{className:a$().contentContainer,children:[("SEARCH_RESULTS"===t||"MAP"===t)&&E&&(0,ef.jsx)(tu,{}),(0,ef.jsx)("div",{className:eo()(a$().islandContainer,{[a$().listOpened]:K}),children:(0,ef.jsx)(tf,{dateRange:H,isSearchCenterInViewport:d,onClick:z})}),(0,ef.jsx)(t$,{hoveredStashpointId:i,isMapLoading:c,mapContainerElementCallbackRef:m,mapService:v,message:N,onClusterClick:Q,onMarkerClick:$,searchResults:y,showFeaturedPopup:J,showNoCoverageAlert:!!(!c&&(!y||0===y.length)),showToast:!c&&P&&w}),G&&(0,ef.jsx)(aU,{isClosest:R?.id===G?.id,onClick:()=>x(G,"mapCard"),onClose:()=>Q(),onHover:C,searchResult:G}),(0,ef.jsx)(aK,{hasGlobalSearchResults:!!(y&&y.length>0),isActive:K,isInitialLoaded:n,onEndReached:_,onSearchResultClick:b,onSearchResultHover:C,scrollStateRef:j,searchResults:B,stashpointsMessage:I}),(0,ef.jsxs)(eR.z,{className:eo()(a$().listMapToggle),hierarchy:"plain",onClick:()=>{let e="SEARCH_RESULTS"===t?"MAP":"SEARCH_RESULTS";S.j[u.e.SWITCH_LIST_TOGGLE]({switchType:"SEARCH_RESULTS"===e?"showList":"showMap"}),k(e)},children:[K?(0,ef.jsx)(aY.Z,{size:"medium"}):(0,ef.jsx)(aJ,{size:"medium"}),(0,ef.jsx)(eu.x,{size:100,translationId:W,values:{num:U},weight:"semibold"}),(0,ef.jsx)(aQ.v,{className:K?void 0:a$().rotateUp,size:"medium"})]}),"STASHPOINT"===t&&(0,ef.jsx)(ta,{onStashpointDetailsBack:A,setActiveLayer:k}),void 0!==O&&"ITEMS_COUNT_SELECTOR"===t?(0,ef.jsx)(a9,{onBook:g}):null,F&&(0,ef.jsx)(tg.C,{onClose:()=>Z(!1),page:"map"})]})})})});a5.displayName="ViewMobile";var a8=a(7861),a4=a(34208),a7=a(42218),a6=a(82832);function a3(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function se(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?a3(Object(a),!0).forEach(function(t){(0,o.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):a3(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let st=e=>{switch(e){case"STASHPOINT":case"ITEMS_COUNT_SELECTOR":case"SEARCH_RESULTS":case"MAP":return e;default:return"MAP"}},sa=(e,t,a)=>{S.j[u.e.LOAD_SP_DETAILS](se({isFlagshipStashpoint:e.features.featuredStashpoint,latitude:e.latitude,longitude:e.longitude,method:t,stashpointId:e.id},a))},ss=()=>{let e=(0,i.Z)(),t=(0,n.useRouter)(),a=(0,a8.bp)(),r=(0,K.m)(t.asPath),o=(0,s.useMemo)(()=>({title:e.formatMessage({id:"search.heading.search"})}),[e]),{isDesktop:d}=(0,td.ac)(),{coordinates:g,dateRange:_,pattern:b,storageSpaces:C}=ee(),{shouldApplyDefaultSelection:x}=(0,aC.y)(!0),{getNextPageSearchResults:j,hasFeatured:y,hasNoResults:k,isLoading:w,isMinimalFailed:I,isMinimalLoading:N,isMinimalSucceeded:M,searchResults:R}=tc(),{activeStashpointId:E,searchFilters:{coordinates:O,locationTypes:L,pattern:A},stashpointIO:T,userGeolocation:D}=(0,p.v)(e=>e.search),P=(0,p.v)(e=>h.SB.selectIsUsingCurrentLocation(e.search)),H=(0,td.D9)(P),F=D.isLoading,Z=(0,td.D9)(g),B=(0,td.D9)(_),U=(0,td.D9)(E),{0:$,1:Q}=(0,s.useState)(!1),J=(0,s.useRef)(void 0),{0:Y,1:X}
1=(0,s.useState)(void 0),{0:et,1:ea}=(0,s.useState)(void 0),{0:es,1:er}=(0,s.useState)(!1),{0:ei,1:eo}=(0,s.useState)(!0),{0:en,1:el}=(0,s.useState)(!1),ec=(0,s.useCallback)(()=>{eo(!1)},[]),ed=z({containerElement:Y}),eu=(0,s.useCallback)(e=>{el(e),e&&ed?.setSearchMarkerHierarchy("behindMarkers")},[el,ed]),{bounds:eh,isSearchCenterInViewport:ep}=V({coordinates:g,mapService:ed,onMapUserInteraction:eu,shouldTrackMapUserInteraction:$}),em=(0,s.useMemo)(()=>st(r.view),[r.view]),ev=N||F;f({bounds:eh,dateRange:_,isMapLoading:ev,mapService:ed,onAutoReSearch:ec,originalSearchCenter:g});let eS=(0,s.useMemo)(()=>{if(I&&k)return{description:void 0,title:e.formatMessage({id:"search.error.stashpointsRequestFailed.details"}),type:"ERROR"}},[I,k,e]),eg=(0,s.useMemo)(()=>"failed"===T.status?{description:void 0,title:e.formatMessage({id:"search.error.stashpointRequestFailed.details"}),type:"ERROR"}:"pending"===T.status?{description:void 0,shouldCloseAutomatically:!1,title:e.formatMessage({id:"search.processing.stashpoint"}),type:"INFO"}:void 0,[e,T]),e_="SEARCH_RESULTS"===em||"MAP"===em,eb=(0,p.I)(),eC=(0,s.useCallback)(e=>{X(e??void 0)},[]),ex=(0,s.useCallback)(()=>{eo(!0),ed?.setSearchMarkerHierarchy("aboveMarkers");let a=se({coordinates:(0,q.w)(O??{lat:0,lng:0}),search:A??"",view:em},(0,v.sZ)(_));(0,c.Z)({locale:e.locale,query:a,to:a7.Z[e.locale].SEARCH.urlPath},t),ed&&void 0!==A&&er(d)},[_,O,A,em,e.locale,d,ed,t,eo]);(0,s.useEffect)(()=>{P&&!H&&ex()},[P,ex,H]);let ej=(0,s.useCallback)((a,s)=>{if("SEARCH_RESULTS"!==a&&"MAP"!==a&&!s||void 0===g)return;"SEARCH_RESULTS"===a&&(eb(h.Nw.clearActiveStashpointId()),eb(h.Nw.updateSearchFilters({storageSpaces:{}}))),es&&er(!1);let r=se(se({coordinates:(0,q.w)(g),search:b,view:a},(0,v.sZ)(_)),s?{stashpointId:s}:{});(0,c.Z)({locale:e.locale,query:r,to:a7.Z[e.locale].SEARCH.urlPath},t)},[g,_,eb,e.locale,b,t,es]),ey=(0,s.useCallback)(()=>{if("succeeded"!==T.status)return;let a=T.data,s=a.canonicalUrl,r=(0,a6.x)({stashpointCanonicalUrl:a.canonicalUrl??void 0,stashpointId:a.id});if(void 0===s||void 0===r)return;let i=(0,v.Ps)({timeZone:a.timezone},_),o=x&&0===(0,v.yz)(C),n=o?G.D5.getDefaultStorageSpaces(a.storageSpaces):C;o&&S.j[u.e.SKIP_BAG_LOCKER_SELECTION](),(0,l.dC)(()=>{eb(aP.Nw.updateDraftCart({coupon:void 0,dateRange:i,newHostDiscount:a.features.newStashpoint,stashpointCanonicalUrl:s,stashpointId:a.id,storageSpaces:n,tier:"premium",treeCount:(0,v.vI)()}))}),(0,c.Z)({locale:e.locale,params:r,query:se({lat:g?.lat,lng:g?.lng,storageSpaces:JSON.stringify(n)},(0,v.sZ)(i)),to:aM.RI("locationSlug",r)?a7.Z[e.locale].LOCATION_STASHPOINT:a7.Z[e.locale].CITY_STASHPOINT},t)},[g,_,eb,e,t,x,T,C]),ek=(0,s.useCallback)(e=>{ea(e?e.id:void 0)},[]),ew=(0,s.useCallback)(()=>{w||void 0===g||j({bagAmount:(0,v.HA)(),coordinates:g,dateRange:_})},[g,_,w,j]),eI=(0,s.useCallback)((e,t)=>{e?.id!==void 0&&(eb(h.Nw.setActiveStashpointId(e.id)),ea(void 0),ej("STASHPOINT",e.id),sa(e,t,d?void 0:{startingPrice:e.price/a.currencies[e.currency].minorInMajor,startingPriceCurrency:e.currency}))},[eb,ej,d,a]),eN=(0,s.useCallback)(e=>{void 0!==e&&(eI(e,"list"),S.j[u.e.SELECT_STASHPOINT_LIST]({isFlagshipStashpoint:e.features.featuredStashpoint,latitude:e.latitude,longitude:e.longitude,stashpointId:e.id}))},[eI]);(0,s.useEffect)(()=>{void 0===g&&(0,c.Z)({locale:e.locale,replace:!0,to:a7.Z[e.locale].HOME.urlPath},t)},[g,e.locale,t]),(0,s.useEffect)(()=>{r.view!==st(r.view)&&(0,c.Z)({locale:e.locale,query:se(se({},r),{},{view:st(r.view)}),replace:!0,to:a7.Z[e.locale].SEARCH.urlPath},t)},[e.locale,t,r]),(0,s.useEffect)(()=>{if(g&&ed){let{lat:e,lng:t}=g,a=h.P6.getSearchZoomLevel({device:d?"desktop":"mobile",locationTypes:L});ed.setIsAutomaticUpdate(!0),ed.setCenter({lat:e,lng:t}),ed.panTo({lat:e,lng:t}),ed.setZoom(a),ed.setIsAutomaticUpdate(!1)}},[g,ed,d,L]),(0,s.useEffect)(()=>{void 0!==g&&void 0!==E&&(U!==E||_!==B)&&eb(h.Nw.getStashpoint({bagAmount:(0,v.HA)(),coordinates:g,dateRange:_,stashpointId:E}))},[E,g,_,eb,b,U,B]),(0,s.useEffect)(()=>{(async()=>{if(void 0!==g&&(void 0===Z||(0,q.w)(Z)!==(0,q.w)(g)||void 0===B||!(0,v.KF)(B,_))){eo(!0),ed?.setSearchMarkerHierarchy("aboveMarkers");
1let e={bagAmount:(0,v.HA)(),coordinates:g,dateRange:_,page:1};await eb(h.Nw.clearAllSearchResults()),(0,l.dC)(()=>{eb(h.Nw.getSearchResults(e)),eb(h.Nw.getBendysquareLockers(e)),eb(h.Nw.getLockpointLockers(e)),eb(h.Nw.getQuadralinkLockers(e)),eb(h.Nw.getOxpointLockers(e))})}})()},[g,_,eb,Z,B,ed]),(0,s.useEffect)(()=>{M&&R&&void 0!==E&&!e_&&!k&&void 0===R.find(e=>e.id===E)&&ej("SEARCH_RESULTS")},[E,k,M,e_,R,ej]),(0,s.useEffect)(()=>{M&&!1===$&&Q(!0)},[$,M]);let eM={activeLayer:em,hasFeatured:y,hoveredStashpointId:et,isInitialLoaded:$,isManualSearch:ei,isMapLoading:ev,isSearchCenterInViewport:ep,mapContainerElementCallbackRef:eC,mapService:ed,onBook:ey,onResultsEndReached:ew,onSearchResultClick:eN,onSearchResultHover:ek,resultsScrollStateRef:J,searchResults:R,setActiveLayer:ej,showToast:es,stashpointMessage:eg,stashpointsMessage:eS};return(0,ef.jsxs)(m.V,{locale:e.locale,children:[(0,ef.jsx)(a4.p,{metaData:o,shouldFollow:!1,shouldIndex:!1}),d?(0,ef.jsx)(aZ,se({},eM)):(0,ef.jsx)(a5,se(se({},eM),{},{hasMapUserInteraction:en,initialStashpointId:W({urlQuery:r}),mapViewportBounds:eh,openStashpointDetails:eI}))]})};var sr=a(27699),si=a(81877),so=a(63681),sn=a(53994),sl=a(20342),sc=a(6278),sd=a(31985),su=a(88058),sh=a(5486),sp=a(55267),sm=a(34468),sv=a(60852),sS=a(45384);let sf={decoder:sn.Ry({booking_count_group:sc.AG(sd.Rx),canonical_url:sc.AG(su.Z_),currency:sm.g.decoder,distance_km:sd.Rx,features:sn.Ry({alert:sc.AG(su.Z_),featured_stashpoint:sh.O7,new_stashpoint:sh.O7,often_fully_booked:sh.O7,open_late:sh.O7,open_twentyfour_seven:sh.O7,premium_stashpoint:sh.O7,short_stay:sh.O7,step_free_access:sh.O7,tiered_guarantee:sh.O7}),latitude:sd.Rx,location_name:su.Z_,longitude:sd.Rx,name:su.Z_,open_status:sp.kw(["open","closed"]),photo:sc.AG(su.Z_),price:sd.Rx,rating:sc.AG(sd.Rx),space_available:sc.AG(sd.Rx),stashpoint_id:su.Z_.transform(sS.toStashpointId),type:sp.kw(sv.X_)}).transform(e=>({bookingCountGroup:e.booking_count_group??void 0,canonicalUrl:e.canonical_url??void 0,currency:e.currency,distanceKm:e.distance_km,features:{alert:e.features.alert??void 0,featuredStashpoint:e.features.featured_stashpoint??!1,newStashpoint:e.features.new_stashpoint??!1,oftenFullyBooked:e.features.often_fully_booked??!1,openLate:e.features.open_late??!1,openTwentyFourSeven:e.features.open_twentyfour_seven??!1,premiumStashpoint:e.features.premium_stashpoint??!1,shortStay:e.features.short_stay??!1,stepFreeAccess:e.features.step_free_access??!1,tieredGuarantee:e.features.tiered_guarantee??!1},id:e.stashpoint_id,latitude:e.latitude,locationName:e.location_name,longitude:e.longitude,name:e.name,openStatus:e.open_status,photo:e.photo??void 0,price:e.price,rating:e.rating??void 0,spaceAvailable:e.space_available??void 0,type:e.type})),encoder:{encode:e=>({booking_count_group:e.bookingCountGroup??null,canonical_url:e.canonicalUrl??null,currency:e.currency,distance_km:e.distanceKm,features:{alert:e.features.alert??null,featured_stashpoint:e.features.featuredStashpoint,new_stashpoint:e.features.newStashpoint,often_fully_booked:e.features.oftenFullyBooked,open_late:e.features.openLate,open_twentyfour_seven:e.features.openTwentyFourSeven,premium_stashpoint:e.features.premiumStashpoint,short_stay:e.features.shortStay,step_free_access:e.features.stepFreeAccess,tiered_guarantee:e.features.tieredGuarantee},latitude:e.latitude,location_name:e.locationName,longitude:e.longitude,name:e.name,open_status:e.openStatus,photo:e.photo??null,price:e.price,rating:e.rating??null,space_available:e.spaceAvailable??null,stashpoint_id:e.id,type:e.type})}},sg=e=>({decoder:sn.Ry({data:sn.Ry({items:sn.IX(sc.nK).transform(t=>t.map(t=>so.g_(e=>e[0],ez.yR,sn.Jx(e,t))))}),meta:sn.Ry({has_next:sh.O7,has_prev:sh.O7,page:sn.Rd,pages:sn.Rd,per_page:sn.Rd,total:sn.Rd})}).transform(e=>({hasNext:e.meta.has_next,hasPrev:e.meta.has_prev,items:e.data.items,page:e.meta.page,pages:e.meta.pages,total:e.meta.total})),encoder:{encode:t=>({data:{items:t.items.map(t=>t instanceof Error?{message:t.message}:e.encoder.encode(t))},meta:{has_next:t.hasNext,has_prev:t.hasPrev,page:t.page,pages:t.pages,per_page:t.items.length,total:t.total}})}}),s_={decoder:sn.Ry({data:sn.Ry({availability:sn.dz(sn.Ry({space_available:sc.AG(sd.Rx)}))}),meta:sn.Ry({complete:sh.O7})}).transform(e=>({isComplete:e.meta.complete,stashpointAvailability:aM.Q8(e=>({spaceAvailable:e.space_available}),e.data.availability)})),encoder:{encode:e=>({data:{availability:aM.Q8(e=>({space_available:e.spaceAvailable}),e.stashpointAvailability)},meta:{complete:e.isComplete}})}};var sb=a(67758);let sC=["page"];function sx(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function sj(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?sx(Object(a),!0).forEach(function(t){(0,o.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):sx(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let sy=e=>{let{coordinates:t,dateRange:a,userCoordinates:s}=e,r=U.Qf,i=(0,v.YI)({timeZone:r},a);return sj({dropoff:U.WU({dateFormat:U.wd},i.dropOff),pickup:U.WU({dateFormat:U.wd},i.pickUp),search_lat:t.lat,search_lng:t.lng},void 0===s?{}:{user_lat:s.lat,user_lng:s.lng})},sk=async e=>{let{page:t}=e,a=(0,tX.Z)(e,sC),s=await si.U2({query:sj(sj({},sy(a)),{},{page:t,per_page:sl.W}),url:sb.RO});if(void 0!==s.error)throw new sr.mk(s);return so.Gg(e=>e[0],so.QB(e=>({data:e,status:s.status}),sn.Jx(sg(sf),s.data)))},sw=async e=>{let t=await si.U2({query:sy(e),url:sb.Rc});if(void 0!==t.error)throw new sr.mk(t);return so.Gg(e=>e[0],so.QB(e=>({data:e,status:t.status}),sn.Jx(s_,t.data)))};var sI=a(96692);function sN(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function sM(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?sN(Object(a),!0).forEach(function(t){(0,o.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):sN(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let sR=e=>new Promise(t=>{setTimeout(t,e)}),sE=()=>({type:"SEARCH_V2/CLEAR_SEARCH_RESULTS"}),sO=()=>({type:"SEARCH_V2/AVAILABILITY_RESOLUTION_CANCELLED"}),sL=e=>{let{coordinates:t,dateRange:a,page:s,userCoordinates:r}=e;return async(e,i)=>{let o=Date.now();e({payload:{timestamp:o},type:"SEARCH_V2/GET_SEARCH_RESULTS_PENDING"});try{let{data:n}=await sk({coordinates:t,dateRange:a,page:s,userCoordinates:r});if(o<i().searchV2.searchResultsIOTimestamp)return;let l=n.items.filter(e=>!(e instanceof Error)),c=sM(sM({},n),{},{items:l});e({payload:{paginatedSearchResults:c,timestamp:o},type:"SEARCH_V2/GET_SEARCH_RESULTS_SUCCEEDED"}),S.j[u.e.RETURN_COUNT_STASHPOINTS]({apiName:"stashpoints_v4",latitude:t.lat,longitude:t.lng,stashpointsReturned:l.length})}catch(t){if(o<i().searchV2.searchResultsIOTimestamp)return;e({payload:{error:(0,sr.I9)((0,sr.bM)(t)),timestamp:o},type:"SEARCH_V2/GET_SEARCH_RESULTS_FAILED"})}}},sA=e=>{let{page:t}=e;return async(e,a)=>{let{searchStashpointsQuery:s}=a().searchV2;void 0!==s&&await e(sL(sM(sM({},s),{},{page:t})))}},sT=e=>{let{bagAmount:t,coordinates:a,dateRange:s,userCoordinates:r}=e;return async(e,i)=>{let o=Date.now(),n=()=>{let{availabilityIO:e,availabilityIOTimestamp:t}=i().searchV2;return o<t||"pending"!==e.status};e({payload:{bagAmount:t,timestamp:o},type:"SEARCH_V2/AVAILABILITY_RESOLUTION_STARTED"});let l=async()=>{try{let{data:e}=await sw({coordinates:a,dateRange:s,userCoordinates:r});return e}catch(e){(0,sr.I9)((0,sr.bM)(e));return}},c=!1,d=!1,u=0;for(;!d&&u<sI.Vy;){if(u+=1,n())return;let t=await l();if(n())return;void 0!==t&&(c=!0,d=t.isComplete,e({payload:{stashpointAvailability:t.stashpointAvailability,timestamp:o},type:"SEARCH_V2/AVAILABILITY_RESOLUTION_UPDATED"}));let a=u===sI.Vy;d||a||await sR(sI.Qj)}if(!n()){if(c){e({payload:{timestamp:o},type:"SEARCH_V2/AVAILABILITY_RESOLUTION_SUCCEEDED"});return}e({payload:{error:(0,sr.I9)((0,sr.bM)(Error("searchV2: availability resolution settled without a successful poll"))),timestamp:o},type:"SEARCH_V2/AVAILABILITY_RESOLUTION_FAILED"})}}},sD=e=>{let{bagAmount:t,coordinates:a,dateRange:s,userCoordinates:r}=e;return async e=>{let i={coordinates:a,dateRange:s,userCoordinates:r};e(sE()),e({payload:{searchStashpointsQuery:i},type:"SEARCH_V2/SET_SEARCH_STASHPOINTS_QUERY"}),await Promise.all([e(sL(sM(sM({},i),{},{page:1}))),e(sT(sM(sM({},i),{},{bagAmount:t})))])}};var sP=a(60994);let sH=e=>{let{bounds:t,dateRange:a,isMapLoading:r,mapService:i,onAutoReSearch:o,originalSearchCenter:n,userCoordinates:l}=e,c=(0,p.I)(),h=(0,m.B)(),f=(0,s.useRef)({activeViewportCenter:void 0,debouncedAttemptSearch:void 0,hasEmittedReSearchMap:!1,lastOriginalSearchCenter:void 0});(0,s.useEffect)(()=>
1{if(void 0===i||r)return;let e=async()=>{let e=i.getCenter();if(void 0===e)return;o?.();let t={lat:e.lat(),lng:e.lng()};f.current.hasEmittedReSearchMap||(f.current.hasEmittedReSearchMap=!0,S.j[u.e.RE_SEARCH_MAP]({latitude:t.lat,longitude:t.lng})),f.current.activeViewportCenter=t,await c(sD({bagAmount:(0,v.HA)(),coordinates:t,dateRange:a,userCoordinates:l}))};f.current.debouncedAttemptSearch?.cancel(),f.current.debouncedAttemptSearch=(0,d.Z)(e,300),(()=>{if(void 0===n)return;let e=f.current.lastOriginalSearchCenter;(void 0===e||e.lat!==n.lat||e.lng!==n.lng)&&(f.current.lastOriginalSearchCenter=n,f.current.activeViewportCenter=n,f.current.hasEmittedReSearchMap=!1)})();let t=f.current.activeViewportCenter;if(void 0===t)return;let s=f.current.debouncedAttemptSearch;if(void 0===s)return;let p=i.getCenter();if(void 0===p)return;let m=h?.geometry?.spherical?.computeDistanceBetween;if(void 0!==m){if(4e3>=m(p,t)){s.cancel();return}return s(),()=>{s?.cancel()}}},[t,a,c,r,h,i,o,n,l])},sF=e=>{let{urlQuery:t}=e,a=t.stashpointId?.trim();return""===a?void 0:a},sZ=e=>{let{searchResultsIO:t,stashpointId:a}=e;return"succeeded"===t.status&&void 0!==a?t.data.items.find(({id:e})=>e===a):void 0},sB=e=>{let{searchFilters:t,urlQuery:a}=e,s=a.coordinates?.split(","),r=s?.[0],i=s?.[1],o=Number.parseFloat(r??""),n=Number.parseFloat(i??""),l=Number.isFinite(o)&&Number.isFinite(n)?(0,q.bp)({lat:o,lng:n}):void 0;return void 0!==l?{coordinates:l,pattern:a.search}:void 0!==t.coordinates?{coordinates:t.coordinates,pattern:t.pattern}:{coordinates:void 0,pattern:void 0}},sz=e=>{let{searchFilters:t,urlQuery:a}=e,{dropOff:s,pickUp:r}=a,i=U.Qf,o=void 0===s?void 0:U.Jx(s),n=void 0===r?void 0:U.Jx(r);return void 0===o||void 0===n||U.Ze(o)!==i?(0,v.YI)({timeZone:i},t.dateRange):(0,v.qT)({allowPast:!0},{dropOff:o,pickUp:n})},sV=e=>{let{searchFilters:t,urlQuery:a}=e;return void 0===a.storageSpaces?t.storageSpaces??{}:(0,v.g)(JSON.parse(a.storageSpaces))},sU=e=>{let{didInitializeSearchParams:t}=e,a=(0,n.useRouter)(),r=(0,p.v)(e=>e.search.searchFilters),i=(0,p.v)(e=>e.searchV2.searchResultsIO),o=(0,s.useRef)(void 0);return(0,s.useMemo)(()=>{if(t&&void 0!==o.current)return o.current;let e=(0,K.m)(a.asPath),s=sF({urlQuery:e}),n=sZ({searchResultsIO:i,stashpointId:s}),{coordinates:l,pattern:c}=sB({searchFilters:r,urlQuery:e}),d={coordinates:l,dateRange:sz({searchFilters:r,urlQuery:e}),pattern:c,stashpoint:n,stashpointId:s,storageSpaces:sV({searchFilters:r,urlQuery:e})};return o.current=d,d},[t,i,a.asPath,r])},sG=()=>{let e=U.Qf,t=(0,p.v)(e=>e.search.searchFilters),a=(0,s.useMemo)(()=>(0,v.YI)({timeZone:e},t.dateRange),[t.dateRange,e]),r=(0,p.v)(e=>e.search.activeStashpointId),i=(0,p.v)(e=>e.searchV2.searchResultsIO),o=(0,s.useRef)(!1),n=(0,s.useRef)(!1),{coordinates:l,dateRange:c,pattern:d,stashpoint:u,stashpointId:m,storageSpaces:S}=sU({didInitializeSearchParams:o.current}),f=(0,p.I)();return(0,s.useEffect)(()=>{o.current||"succeeded"!==i.status||(f(h.Nw.updateSearchFilters({coordinates:l,dateRange:c,pattern:d,storageSpaces:S})),o.current=!0)},[f,l,c,d,S,i]),(0,s.useEffect)(()=>{n.current||"succeeded"!==i.status||(m&&f(h.Nw.setActiveStashpointId(G.aT.toStashpointId(m))),n.current=!0)},[f,i,m]),o.current?{coordinates:t.coordinates,dateRange:a,pattern:t.pattern,stashpointId:"succeeded"===i.status&&void 0===u?void 0:r,storageSpaces:t.storageSpaces}:{coordinates:l,dateRange:c,pattern:d,stashpointId:m,storageSpaces:S}};function sq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function sK(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?sq(Object(a),!0).forEach(function(t){(0,o.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):sq(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let sW={},s$=e=>"succeeded"===e.status&&e.data.hasNext?e.data.page+1:void 0,sQ=()=>{let e=(0,p.I)(),{availabilityIO:t,searchResultsIO:a}=(0,p.v)(e=>e.searchV2),r=sP.isResolutionSettled(t),i=t.data?.stashpointAvailability??sW,o=(0,s.useMemo)(()=>{let e=a.data?.items;if(void 0!==e)return e.map(e=>{let t=sP.getEffectiveSpaceAvailable({searchResult:e,stashpointAvailability:i});return t===e.spaceAvailable?e:sK(sK({},e),{},{spaceAvailable:t})})},[i,a]),n=(0,s.useMemo)(()=>{let e=(0,v.HA)();return new Map((o??[]).map(t=>
1[t.id,sP.getSearchResultAvailabilityState({bagAmount:e,isResolutionSettled:r,openStatus:t.openStatus,spaceAvailable:t.spaceAvailable})]))},[r,o]),l=(0,s.useMemo)(()=>o?.reduce((e,t)=>void 0===e||t.distanceKm<e.distanceKm?t:e,void 0),[o]),c=(0,s.useMemo)(()=>!!o&&o.some(e=>e.features.featuredStashpoint),[o]),d=void 0===o||0===o.length,u="pending"===a.status,h="failed"===a.status,m="succeeded"===a.status,S=s$(a),f=void 0!==S;return{availabilityStateById:n,closestSearchResult:l,getNextPageSearchResults:(0,s.useCallback)(()=>{void 0!==S&&e(sA({page:S}))},[e,S]),hasFeatured:c,hasNext:f,hasNoResults:d,isFailed:h,isLoading:u,isResolvingAvailability:"pending"===t.status,isSucceeded:m,searchResults:o}};var sJ=a(65978),sY=a.n(sJ),sX=a(92290),s0=a.n(sX);let s1=e=>{let{className:t,spaceAvailable:a,status:s}=e;return(0,ef.jsxs)(eu.x,{className:t,size:75,children:["open"===s?(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)("span",{className:s0().green,children:(0,ef.jsx)(ey.Z,{id:"stashpoint.status.open"})}),sP.hasLowSpace(a)?(0,ef.jsxs)("span",{className:s0().red,children:[` ${e2.IV} `,(0,ef.jsx)(ey.Z,{id:"stashpoint.spacesAvailableValue",values:{spacesAvailable:a}})]}):null]}):null,"checking"===s?(0,ef.jsx)("span",{className:s0().grey,children:(0,ef.jsx)(ey.Z,{id:"stashpoint.status.checkingAvailability"})}):null,"fullyBooked"===s?(0,ef.jsx)("span",{className:s0().red,children:(0,ef.jsx)(ey.Z,{id:"stashpoint.status.fullyBooked"})}):null,"closed"===s?(0,ef.jsx)("span",{className:s0().red,children:(0,ef.jsx)(ey.Z,{id:"stashpoint.status.closed"})}):null]})};s1.displayName="StashpointAvailabilityStatusV2";let s2=e=>{let{availabilityState:t,className:a,shouldUseCardName:r=!0,spaceAvailable:o,stashpoint:n,walkingTime:l}=e,c=(0,i.Z)(),d=(0,eT.J)({isEnabled:r,stashpointId:n.id}),u=(0,a8.bp)(),h=(0,s.useMemo)(()=>(0,eA.Q)({intl:c,type:n.type}),[c,n.type]),{bookingCountGroup:p}=n;return(0,ef.jsxs)("div",{className:eo()(sY().content,a),children:[(0,ef.jsxs)("div",{className:eo()(sY().detailsImageContainer,{[sY().centerAlign]:void 0!==d}),children:[(0,ef.jsx)(eD.F,{type:n.type}),(0,ef.jsx)("div",{className:sY().details,children:(0,ef.jsx)(eu.x,{tag:"header",weight:"bold",children:void 0===d?(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(eu.x,{className:sY().stashpointNameTitle,size:25,translationId:"stashpointCard.content.title"}),(0,ef.jsx)("span",{className:sY().stashpointName,children:h}),(0,ef.jsx)(eu.x,{className:sY().stashpointNameLocationName,size:75,weight:"medium",children:n.locationName})]}):(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(eu.x,{className:sY().stashpointNameV2,size:100,tag:"span",weight:"bold",children:d}),(0,ef.jsx)(eu.x,{className:sY().stashpointTypeV2,size:75,weight:"medium",children:h})]})})})]}),(0,ef.jsxs)("div",{className:sY().ratingPriceContainer,children:[n.rating&&p&&p>0?(0,ef.jsxs)("div",{className:sY().rating,children:[(0,ef.jsx)(eI.b,{ariaHidden:!0,size:"xSmall"}),(0,ef.jsxs)(eu.x,{size:75,weight:"bold",children:[`${eH.$1({locale:c.locale,maximumFractionDigits:2,minimumFractionDigits:2},n.rating)} `,(0,ef.jsx)(eu.x,{className:sY().ratingCount,size:75,tag:"span",children:`(${p}+)`})]})]}):null,(0,ef.jsxs)("div",{className:sY().priceContainer,children:[(0,ef.jsx)(eu.x,{className:sY().fromLabel,size:50,tag:"span",translationId:"search.result.price.from",weight:"regular"}),(0,ef.jsx)(eu.x,{size:75,tag:"span",translationId:G.D5.isLocker(n.type)?"search.result.price.locker":"search.result.price.bag",values:{price:eH.T4({currencyCode:n.currency,locale:c.locale},n.price/u.currencies[n.currency].minorInMajor)},weight:"bold"})]}),l?(0,ef.jsxs)("div",{className:sY().walkingDistance,children:[(0,ef.jsx)(eN.z,{ariaHidden:!0}),(0,ef.jsx)(eu.x,{size:75,translationId:"stashpointCard.header.walkingTime",values:{time:l},weight:"semibold"})]}):void 0]}),(0,ef.jsx)(s1,{spaceAvailable:o,status:t}),(0,ef.jsx)(eL.j,{oftenFullyBooked:n.features.oftenFullyBooked,openLate:n.features.openLate,openTwentyFourSeven:n.features.openTwentyFourSeven,premiumStashpoint:n.features.premiumStashpoint})]})};var s9=a(97961),s5=a(47119);let s8=(0,s.memo)(e=>
1{let{availabilityState:t,contentClassName:a,isClosest:r=!1,onClick:i,onHover:o,shouldHideBadges:n=!1,shouldHideWalkingTime:l=!1,shouldUseCardName:c=!0,spaceAvailable:d,stashpoint:u}=e,h=(0,s.useMemo)(()=>l?void 0:(0,eP.U)(u.distanceKm),[l,u.distanceKm]),p=(0,s.useCallback)(()=>{i&&i(u)},[i,u]),m=(0,s.useCallback)(()=>{o&&o(u)},[o,u]),v=(0,s.useCallback)(()=>{o&&o(void 0)},[o]),S=u.features.featuredStashpoint,f=!n&&(r||S);return(0,ef.jsxs)("article",{className:eo()(sY().root,{[sY().withHeader]:f}),onClick:p,onMouseEnter:(0,s5.z)()?void 0:m,onMouseLeave:(0,s5.z)()?void 0:v,children:[f?(0,ef.jsx)(s9.x,{isClosest:r,isFeatured:S}):null,(0,ef.jsx)(s2,{availabilityState:t,className:a,shouldUseCardName:c,spaceAvailable:d,stashpoint:u,walkingTime:h})]})});s8.displayName="StashpointCardV2";let s4=["className","context"],s7=["className","context"],s6=["className","context"],s3=["children","className","context","data-index"],re=["children","className","context"];function rt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function ra(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(a),!0).forEach(function(t){(0,o.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):rt(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let rs=e=>void 0===e?void 0:`stashpoint-${e}`,rr=(0,s.memo)((0,s.forwardRef)((e,t)=>{let{className:a,context:s}=e,r=(0,tX.Z)(e,s4);return(0,ef.jsx)("div",ra(ra({},r),{},{className:eo()(a,t5().resultContainer),ref:t,children:(0,ef.jsx)("div",{className:eo()(t5().result,t5().footer,t5().empty)})}))}));rr.displayName="ListEmptyFooter";let ri=(0,s.memo)((0,s.forwardRef)((e,t)=>{let{className:a,context:s}=e,r=(0,tX.Z)(e,s7);return(0,ef.jsx)("div",ra(ra({},r),{},{className:eo()(a,t5().resultContainer),ref:t,children:(0,ef.jsx)("div",{className:eo()(t5().result,t5().footer),children:(0,ef.jsx)("p",{"aria-live":"polite",className:t5().footerContent,children:(0,ef.jsx)(ey.Z,{id:"search.processing.stashpoints"})})})}))}));ri.displayName="ListLoadingFooter";let ro=(0,s.memo)((0,s.forwardRef)((e,t)=>{let{className:a,context:s}=e,r=(0,tX.Z)(e,s6);return(0,ef.jsx)("div",ra(ra({},r),{},{className:eo()(a,t5().resultContainer),ref:t,children:(0,ef.jsx)("div",{className:eo()(t5().result,t5().footer),children:(0,ef.jsx)(t2.B,{className:t5().footerContent,children:(0,ef.jsx)(ey.Z,{id:"search.error.stashpointsRequestFailed.details"})})})}))}));ro.displayName="ListErrorFooter";let rn=(0,s.forwardRef)((e,t)=>{let{children:a,className:s,context:r,"data-index":i}=e,o=(0,tX.Z)(e,s3),{activeStashpointIndex:n,focusedListItemIndex:l,searchResults:c}=r,d=c[i],u=rs(d?.id),h=i===c.length-1;return(0,ef.jsx)("div",ra(ra({},o),{},{"aria-posinset":i+1,"aria-selected":n===i,"aria-setsize":c.length,className:eo()(s,t5().listItem,{[t5().focused]:l===i,[t5().first]:0===i,[t5().last]:h}),"data-index":i,id:u,ref:t,role:"option",children:a}))});rn.displayName="ListItem";let rl=(0,s.forwardRef)((e,t)=>{let{children:a,className:r,context:o}=e,n=(0,tX.Z)(e,re),l=(0,i.Z)(),{focusedListItemIndex:c,searchResults:d}=o,u=void 0===c?void 0:rs(d[c]?.id),h=(0,td.pf)((e,t)=>t!==e,u),p=(0,s.useMemo)(()=>d.map(({id:e})=>rs(e)).join(" "),[d]);return(0,ef.jsx)("div",ra(ra({},n),{},{"aria-activedescendant":u??h,"aria-label":l.formatMessage({id:"search.results.ariaLabel"},{totalStashpoints:d.length}),"aria-owns":p,className:eo()(r,t5().list),ref:t,role:"listbox",children:a}))});rl.displayName="List";let rc=(0,s.memo)(e=>{let{availabilityState:t,isClosest:a,onClick:s,onHover:r,searchResult:i}=e;return(0,ef.jsx)(s8,{availabilityState:t,isClosest:a,onClick:s,onHover:r,spaceAvailable:i.spaceAvailable,stashpoint:i})});rc.displayName="Result";let rd=(e,t)=>t.id,ru=(0,s.memo)(e=>{let{activeStashpointId:t,availabilityStateById:a,closestSearchResult:r,hasError:o,hasMoreStashpoints:n,isLoading:l,onEndReached:c,onSearchResultClick:d,onSearchResultHover:u,scrollStateRef:h,searchResults:p}=e,m=(0,i.Z)(),v=(0,s.useRef)(null),S=(0,s.useRef)(0),f=(0,s.useRef)(),g=(0,s.useRef)(null),{0:_,1:b}
1=(0,s.useState)(-1),{0:C,1:x}=(0,s.useState)(!1),{0:j,1:y}=(0,s.useState)(!1),k=(0,s.useMemo)(()=>{let e=p.findIndex(({id:e})=>e===t);return -1===e?void 0:e},[t,p]),w=(0,s.useMemo)(()=>({activeStashpointIndex:k,availabilityStateById:a,focusedListItemIndex:_,searchResults:p}),[k,a,_,p]),I=(0,s.useCallback)((e,t)=>{if(null===g.current||void 0===t||void 0===p[t])return;let{shouldFocusListItem:a}=e;g.current.scrollIntoView({behavior:"auto",done:a?()=>{b(t)}:void 0,index:t})},[p]),N=(0,s.useCallback)(e=>{if(null===g.current||_>-1)return;let t=document.querySelector(`.${t5().resultList}:focus-visible`)??void 0;void 0!==t&&t===e.target&&I({shouldFocusListItem:!0},k??0)},[k,_,I]),M=(0,s.useCallback)(e=>{if(null!==g.current){switch(e.code){case"ArrowDown":I({shouldFocusListItem:!0},Math.min(p.length-1,_+1));break;case"ArrowUp":I({shouldFocusListItem:!0},Math.max(0,_-1));break;case"End":I({shouldFocusListItem:!0},p.length-1);break;case"Home":I({shouldFocusListItem:!0},0);break;case"Space":{if(-1===_)break;let e=p[_];if(void 0===e)break;d(e);break}default:return}e.preventDefault()}},[_,d,I,p]),R=(0,s.useCallback)(()=>{void 0!==h&&g.current?.getState(e=>{h.current=e})},[h]),E=(0,s.useCallback)(e=>{x(e),e||R()},[R]),O=(0,s.useCallback)(e=>{R(),d(e)},[R,d]),L=(0,s.useCallback)(e=>{S.current=v.current?.scrollTop||0,f.current=e},[]),A=(0,s.useCallback)(e=>{e.stopPropagation()},[]),T=(0,s.useCallback)(e=>{v.current?.scrollTop!==S.current&&e.stopPropagation()},[]);return(0,s.useEffect)(()=>{if(null===g.current||void 0===k)return;let e=t4(()=>{I({shouldFocusListItem:!1},k)});return()=>{t7(e)}},[k,I]),(0,ef.jsx)("div",{className:t5().results,children:0===p.length?void 0:(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(t1.OO,{className:eo()(t5().resultList,{[t5().scrolling]:C}),components:{Footer:o?ro:n?ri:rr,Item:rn,List:rl},computeItemKey:rd,context:w,data:p,endReached:c,isScrolling:E,itemContent:(e,t)=>(0,ef.jsx)(rc,{availabilityState:a.get(t.id)??"checking",isClosest:t.id===r?.id,onClick:O,onHover:u,searchResult:t},t.id),onFocus:N,onKeyDown:M,onTouchEnd:T,onTouchMove:A,onTouchStart:L,rangeChanged:e=>{e.startIndex>0&&!j?y(!0):0===e.startIndex&&j&&y(!1)},ref:g,restoreStateFrom:h?.current,scrollerRef:e=>{v.current=e}}),(0,ef.jsx)(tD.h,{ariaLabel:m.formatMessage({id:"search.results.action.backToStart"}),className:eo()(t5().backToStart,{[t5().hidden]:!j||l}),onClick:()=>{I({shouldFocusListItem:!0},0),v.current?.focus(),y(!1)},size:"small",variant:"secondary",children:(0,ef.jsx)(t0.QnF,{"aria-hidden":!0})})]})})});ru.displayName="Results";let rh=[],rp=(0,s.memo)(e=>{let{onEndReached:t,onSearchResultClick:a,onSearchResultHover:s,scrollStateRef:r,searchResults:i}=e,{availabilityStateById:o,closestSearchResult:n,hasNext:l,isFailed:c,isLoading:d}=sQ(),{activeStashpointId:u}=(0,p.v)(e=>e.search);return(0,ef.jsx)("div",{className:t5().root,children:(0,ef.jsx)(ru,{activeStashpointId:u,availabilityStateById:o,closestSearchResult:n,hasError:c,hasMoreStashpoints:l,isLoading:d,onEndReached:t,onSearchResultClick:a,onSearchResultHover:s,scrollStateRef:r,searchResults:i??rh})})});function rm(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function rv(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?rm(Object(a),!0).forEach(function(t){(0,o.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):rm(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}rp.displayName="SearchResultsV2";let rS=e=>{let{availabilityState:t,searchResult:a}=e;return rv(rv({},a),{},{available:"open"===t,features:{alert:a.features.alert,featuredStashpoint:a.features.featuredStashpoint,newStashpoint:a.features.newStashpoint,oftenFullyBooked:a.features.oftenFullyBooked,openLate:a.features.openLate,openTwentyFourSeven:a.features.openTwentyFourSeven,premiumStashpoint:a.features.premiumStashpoint},spaceAvailable:a.spaceAvailable??0})},rf=(e,t)=>e.id===t.id&&e.available===t.available&&e.latitude===t.latitude&&e.longitude===t.longitude&&e.features.featuredStashpoint===t.features.featuredStashpoint,rg=[],r_=e=>{let{activeStashpointId:t,availabilityStateById:a,mapService:r,searchResults:i}=e,o=(0,s.useRef)(rg),n=(0,s.useMemo)(()=>{let e=(i??[]).map(e=>rS({availabilityState:a.get(e.id),searchResult:e})),t=o.current;return t.length===e.length&&t.every((t,a)=>rf(t,e[a]))?t:(o.current=e,e)},[a,i]);return(0,s.useEffect)(()=>{void 0!==r&&void 0!==t&&r.setActiveStashpointMarker(t)},[t,r,n]),n},rb=(0,s.memo)(e=>{let{activeLayer:t,availabilityStateById:a,hasFeatured:r,hoveredStashpointId:i,isInitialLoaded:o,isManualSearch:n,isMapLoading:l,isSearchCenterInViewport:c,mapContainerElementCallbackRef:d,mapService:m,onBook:v,onResultsEndReached:f,onSearchResultClick:g,onSearchResultHover:_,resultsScrollStateRef:b,searchResults:C,setActiveLayer:x,showToast:j,stashpointMessage:y,stashpointsMessage:k}=e,w=(0,p.v)(e=>h.SB.selectIsUsingCurrentLocation(e.search)),I=(0,p.v)(e=>e.search.searchFilters.dateRange),N=r_({activeStashpointId:(0,p.v)(e=>e.search.activeStashpointId),availabilityStateById:a,mapService:m,searchResults:C}),{0:M,1:R}
1=(0,s.useState)(!1),E=(0,s.useCallback)(()=>{S.j[u.e.OPEN_FILTERS]({type:"islandComponent"}),R(!0)},[]),{isLoading:O}=sQ(),L=(0,p.I)(),A=(0,s.useCallback)(e=>{L(h.Nw.setActiveStashpointId(e.id)),S.j[u.e.LOAD_SP_DETAILS]({isFlagshipStashpoint:e.features.featuredStashpoint,latitude:e.latitude,longitude:e.longitude,method:"map",stashpointId:e.id}),x("STASHPOINT",e.id)},[L,x]),T=(0,s.useCallback)(()=>{x("SEARCH_RESULTS",void 0),m?.unsetActiveStashpointMarker()},[x,m]),D=(0,s.useCallback)(e=>{void 0!==e&&(m?.setActiveStashpointMarker(e.id),g(e))},[m,g]);return(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(et.A,{className:es().layout,classNameContainer:es().layoutContainer,height:"viewport",isAppBarFullWidth:!0,shouldHideAppBar:"STASHPOINT"===t||"ITEMS_COUNT_SELECTOR"===t,children:(0,ef.jsx)(er.y5,{children:(0,ef.jsxs)("div",{className:es().contentContainer,children:[(0,ef.jsx)("div",{className:es().sidebar,children:(()=>{switch(t){case"MAP":case"SEARCH_RESULTS":return(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(tf,{className:es().islandContainer,dateRange:I,isSearchCenterInViewport:c,onClick:E}),(0,ef.jsx)(ag,{count:C?.length??0}),void 0===k?(0,ef.jsxs)(ef.Fragment,{children:[!O&&C&&0===C.length&&(0,ef.jsx)(tV,{}),o?(0,ef.jsx)(rp,{onEndReached:f,onSearchResultClick:D,onSearchResultHover:_,scrollStateRef:b,searchResults:C}):null]}):(0,ef.jsx)(tY,{isTabletSmallLandscape:!0,message:k})]});case"STASHPOINT":if(void 0!==y)return(0,ef.jsx)(tY,{isTabletSmallLandscape:!0,message:y});return(0,ef.jsx)(ta,{onStashpointDetailsBack:T,setActiveLayer:x});case"ITEMS_COUNT_SELECTOR":return(0,ef.jsx)(aF,{onBook:v});default:throw Error(`Unexpected active layer: ${t}`)}})()}),(0,ef.jsx)(t$,{className:es().map,hoveredStashpointId:i,isMapLoading:l,mapContainerElementCallbackRef:d,mapService:m,onMarkerClick:A,searchResults:N,showFeaturedPopup:r&&n,showNoCoverageAlert:!1,showToast:!l&&w&&j})]})})}),M&&(0,ef.jsx)(tg.C,{onClose:()=>R(!1),page:"map"})]})});rb.displayName="ViewDesktopV2";let rC=e=>{let{availabilityState:t,isClosest:a,onClick:r,onClose:i,onHover:o,searchResult:n}=e,{0:l,1:c}
1=(0,s.useState)("hidden");(0,s.useEffect)(()=>{n&&c("visible")},[n]);let d=(0,s.useCallback)(()=>{S.j[u.e.DISMISS_SP_CARD]({closestStorageSpot:a,stashpointId:n?.id}),c("dismissed"),setTimeout(()=>{i()},150)},[n?.id,a,i]);return(0,ef.jsxs)("div",{className:eo()(az().mapStashpointCard,{[az().fadeout]:"dismissed"===l,[az().enterAndFadeIn]:"visible"===l}),style:{"--local-transition-duration":"150ms"},children:[(0,ef.jsx)(eR.z,{className:az().closeButton,hierarchy:"plain",onClick:d,size:"sm",children:(0,ef.jsx)("div",{className:az().closeIconContainer,children:(0,ef.jsx)(aV.T,{ariaHidden:!0,className:az().closeIcon,size:"small"})})}),(0,ef.jsx)(s8,{availabilityState:t,contentClassName:az().card,isClosest:a,onClick:r,onHover:o,spaceAvailable:n.spaceAvailable,stashpoint:n},n.id)]})},rx=e=>{let{className:t,hasGlobalSearchResults:a=!1,isActive:r,isInitialLoaded:i,onEndReached:o,onSearchResultClick:n,onSearchResultHover:l,scrollStateRef:c,searchResults:d,stashpointsMessage:u}=e,h=(0,p.v)(e=>e.search.searchFilters.pattern),{isLoading:m,isResolvingAvailability:v}=sQ(),S=(0,s.useMemo)(()=>!m&&(!d||0===d.length)&&!a,[m,d,a]);return(0,ef.jsxs)("div",{className:eo()({[aq().active]:r},aq().root,t),children:[!m&&void 0!==h&&(0,ef.jsx)(ag,{count:d?d.length:0}),void 0!==d?(0,ef.jsx)(eu.x,{ariaLive:"polite",className:"visually-hidden",size:75,translationId:v?"search.results.availability.checking":"search.results.availability.checked"}):null,S&&(0,ef.jsx)(tV,{}),void 0===u&&i&&(0,ef.jsx)(rp,{onEndReached:o,onSearchResultClick:n,onSearchResultHover:l,scrollStateRef:c,searchResults:d}),void 0!==u&&(0,ef.jsx)(tY,{isTabletSmallLandscape:!1,message:u})]})},rj=(0,s.memo)(e=>{let{activeLayer:t,availabilityStateById:a,hasFeatured:r,hasMapUserInteraction:i,hoveredStashpointId:o,initialStashpointId:n,isInitialLoaded:l,isManualSearch:c,isMapLoading:d,isSearchCenterInViewport:m,mapContainerElementCallbackRef:v,mapService:f,mapViewportBounds:g,onBook:_,onResultsEndReached:b,onSearchResultClick:C,onSearchResultHover:x,openStashpointDetails:j,resultsScrollStateRef:y,searchResults:k,setActiveLayer:w,showToast:I,stashpointMessage:N,stashpointsMessage:M}=e,R=(0,p.I)(),{closestSearchResult:E}=sQ(),{activeStashpointId:O}=(0,p.v)(e=>e.search),L=r_({activeStashpointId:O,availabilityStateById:a,mapService:f,searchResults:k}),A=(0,s.useRef)("SEARCH_RESULTS");(0,s.useEffect)(()=>{("SEARCH_RESULTS"===t||"MAP"===t)&&(A.current=t)},[t]);let T=(0,s.useCallback)(()=>{let e=A.current;"MAP"===e&&R(h.Nw.clearActiveStashpointId()),w(e)},[R,w]),D=(0,p.v)(e=>e.search.searchFilters.locationTypes),P=h.P6.isLargeRegionLevel(D),H=(0,p.v)(e=>h.SB.selectIsUsingCurrentLocation(e.search)),F=(0,p.v)(e=>e.search.searchFilters.dateRange),{0:Z,1:B}=(0,s.useState)(!1),z=(0,s.useMemo)(()=>k&&g?k.filter(e=>g.contains({lat:e.latitude,lng:e.longitude})):k,[k,g]),V=(0,s.useCallback)(()=>{S.j[u.e.OPEN_FILTERS]({type:"islandComponent"}),B(!0)},[]),U=k?.[0],G=z?z.length:0,{0:q,1:K}=(0,s.useState)(P||void 0!==n?void 0:U);(0,s.useEffect)(()=>{if(void 0!==n){if(!l)return;let e=k?.find(({id:e})=>e===n);if(void 0!==e){K(e),f?.setActiveStashpointMarker(e.id);return}}!P&&c&&(U?(K(U),f?.setActiveStashpointMarker(U.id)):(K(void 0),f?.unsetActiveStashpointMarker()))},[l,n,P,c,U,f,k]),(0,s.useEffect)(()=>{void 0!==q&&f?.setActiveStashpointMarker(q.id)},[f,q,k]);let W="SEARCH_RESULTS"===t||"SEARCH_RESULTS"===A.current&&"MAP"!==t,$=G>0?W?"search.results.listMapToggle.tapToShowOnMap":"search.results.listMapToggle.tapToShowOnList":W?"search.results.listMapToggle.tapToShowMap":"search.results.listMapToggle.tapToShowList",Q=(0,s.useCallback)(e=>{K(k?.find(t=>t.id===e.id))},[k,K]),J=(0,s.useCallback)(()=>{K(void 0),f?.unsetActiveStashpointMarker()},[K,f]);(0,s.useEffect)(()=>{(P||!c)&&J()},[P,c,J]),(0,s.useEffect)(()=>{},[i,J]);let Y=r&&c;return(0,ef.jsx)(et.A,{className:a$().layout,classNameContainer:a$().layoutContainer,height:"viewport",isAppBarFullWidth:!0,shouldHideAppBar:!0,children:(0,ef.jsx)(er.y5,{children:(0,ef.jsxs)("div",{className:a$().contentContainer,children:[(0,ef.jsx)("div",{className:eo()(a$().islandContainer,{[a$().listOpened]:W}),children:(0,ef.jsx)(tf,{dateRange:F,isSearchCenterInViewport:m,onClick:V})}),(0,ef.jsx)(t$,{hoveredStashpointId:o,isMapLoading:d,mapContainerElementCallbackRef:v,mapService:f,message:M,onClusterClick:J,onMarkerClick:Q,searchResults:L,showFeaturedPopup:Y,showNoCoverageAlert:!!(!d&&(!k||0===k.length)),showToast:!d&&H&&I}),q&&(0,ef.jsx)(rC,{availabilityState:a.get(q.id)??"checking",isClosest:E?.id===q?.id,onClick:()=>j(q,"mapCard"),onClose:()=>J(),onHover:x,searchResult:q}),(0,ef.jsx)(rx,{hasGlobalSearchResults:!!(k&&k.length>0),isActive:W,isInitialLoaded:l,onEndReached:b,onSearchResultClick:C,onSearchResultHover:x,scrollStateRef:y,searchResults:z,stashpointsMessage:N}),(0,ef.jsxs)(eR.z,{className:eo()(a$().listMapToggle),hierarchy:"plain",onClick:()=>{let e="SEARCH_RESULTS"===t?"MAP":"SEARCH_RESULTS";S.j[u.e.SWITCH_LIST_TOGGLE]({switchType:"SEARCH_RESULTS"===e?"showList":"showMap"}),w(e)},children:[W?(0,ef.jsx)(aY.Z,{size:"medium"}):(0,ef.jsx)(aJ,{size:"medium"}),(0,ef.jsx)(eu.x,{size:100,translationId:$,values:{num:G},weight:"semibold"}),(0,ef.jsx)(aQ.v,{className:W?void 0:a$().rotateUp,size:"medium"})]}
1),"STASHPOINT"===t&&(0,ef.jsx)(ta,{onStashpointDetailsBack:T,setActiveLayer:w}),void 0!==O&&"ITEMS_COUNT_SELECTOR"===t?(0,ef.jsx)(a9,{onBook:_}):null,Z&&(0,ef.jsx)(tg.C,{onClose:()=>B(!1),page:"map"})]})})})});function ry(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function rk(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ry(Object(a),!0).forEach(function(t){(0,o.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ry(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}rj.displayName="ViewMobileV2";let rw=e=>{switch(e){case"STASHPOINT":case"ITEMS_COUNT_SELECTOR":case"SEARCH_RESULTS":case"MAP":return e;default:return"MAP"}},rI=(e,t,a)=>{S.j[u.e.LOAD_SP_DETAILS](rk({isFlagshipStashpoint:e.features.featuredStashpoint,latitude:e.latitude,longitude:e.longitude,method:t,stashpointId:e.id},a))},rN=e=>{let t=(0,i.Z)(),a=(0,n.useRouter)(),r=(0,a8.bp)(),o=(0,K.m)(a.asPath),d=(0,s.useMemo)(()=>({title:t.formatMessage({id:"search.heading.search"})}),[t]),{isDesktop:f}=(0,td.ac)(),{coordinates:g,dateRange:_,pattern:b,stashpointId:C,storageSpaces:x}=sG(),{shouldApplyDefaultSelection:j}=(0,aC.y)(!0),{availabilityStateById:y,getNextPageSearchResults:k,hasFeatured:w,hasNoResults:I,isFailed:N,isLoading:M,isSucceeded:R,searchResults:E}=sQ(),{activeStashpointId:O,searchFilters:{coordinates:L,locationTypes:A,pattern:T},stashpointIO:D,userGeolocation:P}=(0,p.v)(e=>e.search),H=P.userLocation?.coordinates,F=(0,p.v)(e=>h.SB.selectIsUsingCurrentLocation(e.search)),Z=(0,td.D9)(F),B=P.isLoading,U=(0,td.D9)(g),W=(0,td.D9)(_),$=(0,td.D9)(O),{0:Q,1:J}=(0,s.useState)(!1),Y=(0,s.useRef)(void 0),{0:X,1:ee}=(0,s.useState)(void 0),{0:et,1:ea}=(0,s.useState)(void 0),{0:es,1:er}=(0,s.useState)(!1),{0:ei,1:eo}=(0,s.useState)(!0),{0:en,1:el}=(0,s.useState)(!1),ec=(0,s.useCallback)(()=>{eo(!1)},[]),ed=z({containerElement:X}),eu=(0,s.useCallback)(e=>{el(e),e&&ed?.setSearchMarkerHierarchy("behindMarkers")},[el,ed]),{bounds:eh,isSearchCenterInViewport:ep}=V({coordinates:g,mapService:ed,onMapUserInteraction:eu,shouldTrackMapUserInteraction:Q}),em=(0,s.useMemo)(()=>rw(o.view),[o.view]),ev=M||B;sH({bounds:eh,dateRange:_,isMapLoading:ev,mapService:ed,onAutoReSearch:ec,originalSearchCenter:g,userCoordinates:H});let eS=(0,s.useMemo)(()=>{if(N&&I)return{description:void 0,title:t.formatMessage({id:"search.error.stashpointsRequestFailed.details"}),type:"ERROR"}},[N,I,t]),eg=(0,s.useMemo)(()=>"failed"===D.status?{description:void 0,title:t.formatMessage({id:"search.error.stashpointRequestFailed.details"}),type:"ERROR"}:"pending"===D.status?{description:void 0,shouldCloseAutomatically:!1,title:t.formatMessage({id:"search.processing.stashpoint"}),type:"INFO"}:void 0,[t,D]),e_="SEARCH_RESULTS"===em||"MAP"===em,eb=(0,p.I)(),eC=(0,s.useCallback)(e=>{ee(e??void 0)},[]),ex=(0,s.useCallback)(()=>{eo(!0),ed?.setSearchMarkerHierarchy("aboveMarkers");let e=rk({coordinates:(0,q.w)(L??{lat:0,lng:0}),search:T??"",view:em},(0,v.sZ)(_));(0,c.Z)({locale:t.locale,query:e,to:a7.Z[t.locale].SEARCH.urlPath},a),ed&&void 0!==T&&er(f)},[_,L,T,em,t.locale,f,ed,a,eo]);(0,s.useEffect)(()=>{F&&!Z&&ex()},[F,ex,Z]);let ej=(0,s.useCallback)((e,s)=>{if("SEARCH_RESULTS"!==e&&"MAP"!==e&&!s||void 0===g)return;"SEARCH_RESULTS"===e&&(eb(h.Nw.clearActiveStashpointId()),eb(h.Nw.updateSearchFilters({storageSpaces:{}}))),es&&er(!1);let r=rk(rk({coordinates:(0,q.w)(g),search:b,view:e},(0,v.sZ)(_)),s?{stashpointId:s}:{});(0,c.Z)({locale:t.locale,query:r,to:a7.Z[t.locale].SEARCH.urlPath},a)},[g,_,eb,t.locale,b,a,es]),ey=(0,s.useCallback)(()=>{if("succeeded"!==D.status)return;let e=D.data,s=e.canonicalUrl,r=(0,a6.x)({stashpointCanonicalUrl:e.canonicalUrl??void 0,stashpointId:e.id});if(void 0===s||void 0===r)return;let i=(0,v.Ps)({timeZone:e.timezone},_),o=j&&0===(0,v.yz)(x),n=o?G.D5.getDefaultStorageSpaces(e.storageSpaces):x;o&&S.j[u.e.SKIP_BAG_LOCKER_SELECTION](),(0,l.dC)(()=>{eb(aP.Nw.updateDraftCart({coupon:void 0,dateRange:i,newHostDiscount:e.features.newStashpoint,stashpoint
1CanonicalUrl:s,stashpointId:e.id,storageSpaces:n,tier:"premium",treeCount:(0,v.vI)()}))}),(0,c.Z)({locale:t.locale,params:r,query:rk({lat:g?.lat,lng:g?.lng,storageSpaces:JSON.stringify(n)},(0,v.sZ)(i)),to:aM.RI("locationSlug",r)?a7.Z[t.locale].LOCATION_STASHPOINT:a7.Z[t.locale].CITY_STASHPOINT},a)},[g,_,eb,t,a,j,D,x]),ek=(0,s.useCallback)(e=>{ea(e?e.id:void 0)},[]),ew=(0,s.useCallback)(()=>{M||k()},[M,k]),eI=(0,s.useCallback)((e,t)=>{e?.id!==void 0&&(eb(h.Nw.setActiveStashpointId(e.id)),ea(void 0),ej("STASHPOINT",e.id),rI(e,t,f?void 0:{startingPrice:e.price/r.currencies[e.currency].minorInMajor,startingPriceCurrency:e.currency}))},[eb,ej,f,r]),eN=(0,s.useCallback)(e=>{void 0!==e&&(eI(e,"list"),S.j[u.e.SELECT_STASHPOINT_LIST]({isFlagshipStashpoint:e.features.featuredStashpoint,latitude:e.latitude,longitude:e.longitude,stashpointId:e.id}))},[eI]);(0,s.useEffect)(()=>{void 0===g&&(0,c.Z)({locale:t.locale,replace:!0,to:a7.Z[t.locale].HOME.urlPath},a)},[g,t.locale,a]),(0,s.useEffect)(()=>{o.view!==rw(o.view)&&(0,c.Z)({locale:t.locale,query:rk(rk({},o),{},{view:rw(o.view)}),replace:!0,to:a7.Z[t.locale].SEARCH.urlPath},a)},[t.locale,a,o]),(0,s.useEffect)(()=>{if(g&&ed){let{lat:e,lng:t}=g,a=h.P6.getSearchZoomLevel({device:f?"desktop":"mobile",locationTypes:A});ed.setIsAutomaticUpdate(!0),ed.setCenter({lat:e,lng:t}),ed.panTo({lat:e,lng:t}),ed.setZoom(a),ed.setIsAutomaticUpdate(!1)}},[g,ed,f,A]),(0,s.useEffect)(()=>{void 0!==g&&void 0!==O&&($!==O||_!==W)&&eb(h.Nw.getStashpoint({bagAmount:(0,v.HA)(),coordinates:g,dateRange:_,stashpointId:O}))},[O,g,_,eb,b,$,W]),(0,s.useEffect)(()=>{(async()=>{void 0===g||void 0!==U&&(0,q.w)(U)===(0,q.w)(g)&&void 0!==W&&(0,v.KF)(W,_)||(eo(!0),ed?.setSearchMarkerHierarchy("aboveMarkers"),await eb(sD({bagAmount:(0,v.HA)(),coordinates:g,dateRange:_,userCoordinates:H})))})()},[g,_,eb,U,W,ed,H]),(0,s.useEffect)(()=>()=>{eb(sO())},[eb]),(0,s.useEffect)(()=>{R&&E&&void 0!==O&&!e_&&!I&&void 0===E.find(e=>e.id===O)&&ej("SEARCH_RESULTS")},[O,I,R,e_,E,ej]),(0,s.useEffect)(()=>{R&&!1===Q&&J(!0)},[Q,R]);let eM={activeLayer:em,availabilityStateById:y,hasFeatured:w,hoveredStashpointId:et,isInitialLoaded:Q,isManualSearch:ei,isMapLoading:ev,isSearchCenterInViewport:ep,mapContainerElementCallbackRef:eC,mapService:ed,onBook:ey,onResultsEndReached:ew,onSearchResultClick:eN,onSearchResultHover:ek,resultsScrollStateRef:Y,searchResults:E,setActiveLayer:ej,showToast:es,stashpointMessage:eg,stashpointsMessage:eS};return(0,ef.jsxs)(m.V,{locale:t.locale,children:[(0,ef.jsx)(a4.p,{metaData:d,shouldFollow:!1,shouldIndex:!1}),f?(0,ef.jsx)(rb,rk({},eM)):(0,ef.jsx)(rj,rk(rk({},eM),{},{hasMapUserInteraction:en,initialStashpointId:C,mapViewportBounds:eh,openStashpointDetails:eI}))]})},rM=e=>{let t=(0,i.Z)(),{fireExposedEvent:a,variant:r,variants:o}=(0,eb.ye)(e_.V.search_api_v4,!0),n=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{n.current||(n.current=!0,a())},[a]),(0,ef.jsx)(m.V,{locale:t.locale,children:r===o.search_api_v4_enabled?(0,ef.jsx)(rN,{}):(0,ef.jsx)(ss,{})})};var rR=e=>(0,ef.jsx)(r.q,{isPageLevel:!0,children:()=>(0,ef.jsx)(rM,{})})},48089:function(e,t,a){"use strict";a.d(t,{U:function(){return s}});let s=e=>{let t=1e3*e/50;return Math.max(Math.round(t*(1-.8*Math.exp(-t/26))),1)}},47119:function(e,t,a){"use strict";a.d(t,{z:function(){return s}});let s=()=>"ontouchstart"in window},8266:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return a(52664)}])},24500:function(e){e.exports={root:"ErrorMessage_root_u3cigT"}},3833:function(e){e.exports={root:"IconButton_root_ixHxdL"}},50769:function(e){e.exports={snackbar:"CurrentLocationSnackbar_snackbar_vVF3HF"}},85:function(e){e.exports={draftElementsAlert:"DraftStashpointsAlert_draftElementsAlert_B4BB38",button:"DraftStashpointsAlert_button_NL6adX",failed:"DraftStashpointsAlert_failed_QvlIVB"}},56494:function(e){e.exports={values:'"../../style/theme-values.css"',"--global-breakpoint-desktop":"min-width: 64rem",root:"FeaturedStashpointAlert_root_DbWi8g",hidden:"FeaturedStashpointAlert_hidden_oZZxH7"}},11282:function(e){e.exports={values:'"../../../style/theme-values.css"',"--global-breakpoint-tablet":"min-width: 48rem",root:"Island_root_A2Bz4a",currentLocationButton:"Island_currentLocationButton_6j2KaB",active:"Island_active_Ah14UZ",mainButton:"Island_mainButton_84QC5O",location:"Island_location_ASGZV4",dateTime:"Island_dateTime_-Y9fv7"}},88980:function(e){e.exports={popupBody:"ItemsCountSelectorPopup_popupBody_R2ruHT",contentContainer:"ItemsCountSelectorPopup_contentContainer_2w1Kon",content:"ItemsCountSelectorPopup_content_b0e0rL",headerContainer:"ItemsCountSelectorPopup_headerContainer_0JVkZJ",backBtn:"ItemsCountSelectorPopup_backBtn_sF2epi",icon:"ItemsCountSelectorPopup_icon_ACxM0D",error:"ItemsCountSelectorPopup_error_s8-iub",footerContainer:"ItemsCountSelectorPopup_footerContainer_DOk3kP",footer:"ItemsCountSelectorPopup_footer_tUADd6"}},3412:function(e){e.exports={values:'"../../style/theme-values.css"',"--global-breakpoint-tablet":"min-width: 48rem",root:"Map_root_oaZMK0",loader:"Map_loader_DLL7R6",map:"Map_map_KBbWMT",container:"Map_container_MgQd8f",controls:"Map_controls_xNmWe2",geolocationButton:"Map_geolocationButton_Gd-jmP",featuredPopup:"Map_featuredPopup_zjFBaw",noCoverageAlert:"Map_noCoverageAlert_x5rUN4"}},41164:function(e){e.exports={values:'"../../style/theme-values.css"',"--global-breakpoint-tablet":"min-width: 48rem",root:"MapMessage_root_A4i39s",content:"MapMessage_content_raoaBH",warning:"Map
1Message_warning_CujR6W",error:"MapMessage_error_o1IGM2",title:"MapMessage_title_fMuLHc",closeButton:"MapMessage_closeButton_AbZNhP"}},213:function(e){e.exports={searchMarker:"MapService_searchMarker_iq-Xxm",resultMarker:"MapService_resultMarker_othFff",selected:"MapService_selected_KBsBPq",unavailable:"MapService_unavailable_-394eg",clusterMarker:"MapService_clusterMarker_zeJs8-",currentLocationMarker:"MapService_currentLocationMarker_MvYApR",bounceMarker:"MapService_bounceMarker_tjR9y6",bounce:"MapService_bounce_92M2hA"}},9239:function(e){e.exports={mapStashpointCard:"MapStashpointCard_mapStashpointCard_Y7xpL1",closeButton:"MapStashpointCard_closeButton_AkekYv",closeIconContainer:"MapStashpointCard_closeIconContainer_k5nvZT",closeIcon:"MapStashpointCard_closeIcon_CJhCMD",card:"MapStashpointCard_card_hDunyB",fadeout:"MapStashpointCard_fadeout_VEuQhf",enterAndFadeIn:"MapStashpointCard_enterAndFadeIn_HyM8A5"}},39862:function(e){e.exports={root:"Message_root_FmMWeY",warning:"Message_warning_8iSQOy",error:"Message_error_Aad--A",title:"Message_title_5hAAX-",tabletSmallLandscape:"Message_tabletSmallLandscape_jih-0k"}},53707:function(e){e.exports={root:"NoCoverageAlert_root_nPKwcT"}},26512:function(e){e.exports={root:"SearchList_root_f5Z2pV",active:"SearchList_active_Xr-7KA"}},80201:function(e){e.exports={root:"SearchResults_root_7PxCgg",results:"SearchResults_results_XwHaup",backToStart:"SearchResults_backToStart_jaP5h2",hidden:"SearchResults_hidden_W8K3Xm",result:"SearchResults_result_UBHWqn",card:"SearchResults_card_z3O08Y",active:"SearchResults_active_7h7HI9",resultList:"SearchResults_resultList_GJAsVR",list:"SearchResults_list_5-4lcN",listItem:"SearchResults_listItem_1U7IX9",last:"SearchResults_last_9RM1v5",focused:"SearchResults_focused_WmOUws",scrolling:"SearchResults_scrolling_rWObCd",resultContainer:"SearchResults_resultContainer_2rbhvw",footer:"SearchResults_footer_ibSzTX",empty:"SearchResults_empty_YCKKkE",footerContent:"SearchResults_footerContent_lwqWDd"}},16198:function(e){e.exports={root:"StashpointCounter_root_jtvdqu"}},5033:function(e){e.exports={values:'"../../style/theme-values.css"',"--global-breakpoint-desktop":"min-width: 64rem",root:"StashpointDetailsFooter_root_Ri9-xg",footer:"StashpointDetailsFooter_footer_F2fT-3",badgeContainer:"StashpointDetailsFooter_badgeContainer_yh5F1f",badge:"StashpointDetailsFooter_badge_hoW2ZU",left:"StashpointDetailsFooter_left_EpLzhB",right:"StashpointDetailsFooter_right_Ymqw1Y",fullWidth:"StashpointDetailsFooter_fullWidth_RhMnch"}},6776:function(e){e.exports={root:"StashpointDetailsFooterTotalPrice_root_AXg44Z",row:"StashpointDetailsFooterTotalPrice_row_6TaLoJ",text:"StashpointDetailsFooterTotalPrice_text_Wit-Oa",subtitle:"StashpointDetailsFooterTotalPrice_subtitle_G2PLHJ",inactive:"StashpointDetailsFooterTotalPrice_inactive_iURIWD"}},7353:function(e){e.exports={root:"StashpointItemsCountSelector_root_6SeJV6",contentContainer:"StashpointItemsCountSelector_contentContainer_Gc37yv",footerContainer:"StashpointItemsCountSelector_footerContainer_W1pt5-",footer:"StashpointItemsCountSelector_footer_dyBsCG",sizeRestriction:"StashpointItemsCountSelector_sizeRestriction_j7RHek",noMargin:"StashpointItemsCountSelector_noMargin_BtcRHQ",content:"StashpointItemsCountSelector_content_Cbsl6S",error:"StashpointItemsCountSelector_error_IUpjfj",backBtn:"StashpointItemsCountSelector_backBtn_yN7x2z",icon:"StashpointItemsCountSelector_icon_MkKDck"}},1458:function(e){e.exports={layoutContainer:"ViewDesktop_layoutContainer_960GGD",layout:"ViewDesktop_layout_1gvRHp",contentContainer:"ViewDesktop_contentContainer_VtMC-Z",sidebar:"ViewDesktop_sidebar_HtzobB",islandContainer:"ViewDesktop_islandContainer_zBDWd7",map:"ViewDesktop_map_0y-WsV"}},62482:function(e){e.exports={layoutContainer:"ViewMobileV2_layoutContainer_ZbgY4W",layout:"ViewMobileV2_layout_7LqKRm",contentContainer:"ViewMobileV2_contentContainer_wHzK8Z",islandContainer:"ViewMobileV2_islandContainer_tMUk3g",listOpened:"ViewMobileV2_listOpened_2o2g-W",listMapToggle:"ViewMobileV2_listMapToggle_IHJqDU",rotateUp:"ViewMobileV2_rotateUp_eTHisf",hidden:"ViewMobileV2_hidden_Fgpcqg"}},78306:function(e){e.exports={root:"Snackbar_root_337Pup",movable:"Snackbar_movable_IpiR4f",info:"Snackbar_info_ObkfPV",scary:"Snackbar_scary_5zxhAT",success:"Snackbar_success_CUVEO9",hidden:"Snackbar_hidden_gjc4Ab"}},48687:function(e){e.exports={root:"ItemsCountSelector_root_R-b9p7",
1image:"ItemsCountSelector_image_FdNTKl",contentContainer:"ItemsCountSelector_contentContainer_GHfvIC",content:"ItemsCountSelector_content_CnKeDV",dimensions:"ItemsCountSelector_dimensions_05tBYG",price:"ItemsCountSelector_price_TLt5do",quantitySelector:"ItemsCountSelector_quantitySelector_Tg--TW",button:"ItemsCountSelector_button_9Hq0kW",disabled:"ItemsCountSelector_disabled_Lq9j1R",disabledIcon:"ItemsCountSelector_disabledIcon_A3R8GP",value:"ItemsCountSelector_value_MLfpzs",fullyBookedBadge:"ItemsCountSelector_fullyBookedBadge_H0GjNj"}},31491:function(e){e.exports={title:"SearchHowWorks_title_NGug-K",button:"SearchHowWorks_button_F6UF3a",content:"SearchHowWorks_content_Iwfbuo"}},2558:function(e){e.exports={content:"SearchHowWorksV2_content_-8znHE",title:"SearchHowWorksV2_title_VncQ-G",body:"SearchHowWorksV2_body_-YK6Rg"}},87652:function(e){e.exports={values:'"../../../style/theme-values.css"',"--global-breakpoint-desktop":"min-width: 64rem",root:"SearchStashpointDetails_root_dUKnSR",footerContainer:"SearchStashpointDetails_footerContainer_tQnW-d",footer:"SearchStashpointDetails_footer_Ttm9B0",sectionsContainer:"SearchStashpointDetails_sectionsContainer_-QaVM0",section:"SearchStashpointDetails_section_8xxvyF",reviews:"SearchStashpointDetails_reviews_qvi0Xp",card:"SearchStashpointDetails_card_SVrJ2O",backBtnContainer:"SearchStashpointDetails_backBtnContainer_344LMv",backBtn:"SearchStashpointDetails_backBtn_RpgExd",cardContent:"SearchStashpointDetails_cardContent_nazjd-",featuredHeader:"SearchStashpointDetails_featuredHeader_is1tu0",detailsImageContainer:"SearchStashpointDetails_detailsImageContainer_pJmMJN",centerAlign:"SearchStashpointDetails_centerAlign_5dyhRR",image:"SearchStashpointDetails_image_D2q8Va",titleContainer:"SearchStashpointDetails_titleContainer_us7l1Q",stashpointNameTitle:"SearchStashpointDetails_stashpointNameTitle_hUgN6O",stashpointNameLocationName:"SearchStashpointDetails_stashpointNameLocationName_9Ziz54",stashpointNameV2:"SearchStashpointDetails_stashpointNameV2_BQ7I2g",stashpointTypeV2:"SearchStashpointDetails_stashpointTypeV2_Uwh7Qn",ratingPriceContainer:"SearchStashpointDetails_ratingPriceContainer_jOEzLM",priceContainer:"SearchStashpointDetails_priceContainer_63moeF",fromLabel:"SearchStashpointDetails_fromLabel_lpz6HZ",rating:"SearchStashpointDetails_rating_oJ6Kbt",ratingCount:"SearchStashpointDetails_ratingCount_2IWVRz",walkingDistance:"SearchStashpointDetails_walkingDistance_gzw8R4",green:"SearchStashpointDetails_green_ES-LuJ",red:"SearchStashpointDetails_red_KB712V",addressWarning:"SearchStashpointDetails_addressWarning_duWidT"}},92290:function(e){e.exports={green:"StashpointAvailabilityStatusV2_green_gS-Ml9",grey:"StashpointAvailabilityStatusV2_grey_yaRG0a","checking-pulse":"StashpointAvailabilityStatusV2_checking-pulse_FAgXWS",red:"StashpointAvailabilityStatusV2_red_sJwU7t"}},38002:function(e){e.exports={values:'"../../../style/theme-values.css"',"--global-breakpoint-tablet":"min-width: 48rem",header:"StashpointDetailsReviews_header_AeYIwc",separator:"StashpointDetailsReviews_separator_hDVveG",modalHeader:"StashpointDetailsReviews_modalHeader_h1QDDD",list:"StashpointDetailsReviews_list_gUCBBq",readAllBtn:"StashpointDetailsReviews_readAllBtn_xda6Ox",modal:"StashpointDetailsReviews_modal_rIpKbH",loadMoreBtn:"StashpointDetailsReviews_loadMoreBtn_0qZlja"}},25504:function(e){e.exports={root:"StashpointOpeningHours_root_XPkh7t",day:"StashpointOpeningHours_day_fazG9q",ranges:"StashpointOpeningHours_ranges_4n3TnR"}}},function(e){e.O(0,[1228,5937,6152,2013,3458,2594,9826,2653,9363,9160,3737,9701,9014,4395,41,4744,2888,9774,179],function(){return e(e.s=8266)}),_N_E=e.O()}]);
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.