1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[482],{73323:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/favoritesShared",function(){return r(51905)}])},51905:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return X}});var n=r(47568),i=r(26042),o=r(34051),s=r.n(o),a=r(85893),p=r(17335),u=r(14416),l=r(53551),c=r(51438),d=r(52951),h=r(88029),m=r(69396),f=r(5950),v=r(67294),k=r(66089),g=r.n(k),y=r(14890),M=r(11163),x=r.n(M),b=r(71572),F=r(40613),I=r.n(F),T=r(96486),w=r.n(T),D=r(3320),P=r(53610),S=r(89630),Z=r(37360),L=r(21829),O=r(56265),B=r(11946),C=r(14751),E=r(14433),_=r(16797),K=r(50438),N=r(55014),j=r(79415),R=function(e){(0,h.Z)(r,e);var t=(0,f.Z)(r);function r(e){var n;return(0,c.Z)(this,r),(n=t.call(this,e)).state={selectedFolderIndex:0},n}return(0,d.Z)(r,[{key:"componentDidMount",value:function(){this.props.setDynamicPopupType(b.Nd),this.props.initializeTypeLayers(),this.setupMapMarkers(this.state.selectedFolderIndex),this.props.setBackToFavoritesShortId(this.props.params.shortId),I().trackMapMoved((function(){I().showVisibleMarkersKML()}))}},{key:"componentWillUnmount",value:function(){I().cleanupMapMovedTrackers(),I().clearAllKMLOverlays()}},{key:"setupMapMarkers",value:function(e,t){var r=this.props.sharedFavorites;if((r=t||r)&&r.length>0&&r[e].properties.length>0){var n=this;this.props.clearMarkers(),this.props.addMarkers(r[e].properties.map((function(e){return{lat:e.Lat,lng:e.Lng,type:e.CommunityType?"community":e.customIcon?"custom":e.IsBuilding?"building":"site",sst:n.props.sst,customIcon:e.customIcon,properties:e}})))}}},{key:"showMarkerOnResultHover",value:function(e){var t=this;this.markerDebounce=w().debounce((function(){var r=I().findMarkerByPropertyValue("ID",e),n=I().getLatLngFromMarker(r),i=n.lat,o=n.lng;r.properties.CommunityType?(t.props.setDynamicPopupType(b.v4),t.props.setDynamicPopup({lat:i,lng:o,properties:r.properties,pixelOffsetY:-100})):(t.props.setDynamicPopupType(b.Nd),t.props.setDynamicPopup({lat:i,lng:o,properties:r.properties}))}),200),this.markerDebounce()}},{key:"hideMarkerOnResultMouseOut",value:function(){null!=this.markerDebounce&&this.markerDebounce.cancel(),this.props.removeDynamicPopup()}},{key:"onBackClick",value:function(){x().back()}},{key:"handleFolderSelect",value:function(e){this.setState({selectedFolderIndex:e}),this.setupMapMarkers(e)}},{key:"render",value:function(){var e=this,t=this.state.selectedFolderIndex,r=this.props,n=r.intl,o=r.sharedFavorites,s=r.favoritesTab,p=r.params,u=n.formatMessage,l=o||[],c=l.length>0&&l[t]&&l[t].properties||[],d=c.length>0&&c.filter((function(e){return e.IsBuilding})).filter((function(e){return null!==e.KML})).map((function(e){return{name:e.title,url:e.KML}}))||[],h=c.length>0&&c.filter((function(e){return!e.IsBuilding})).filter((function(e){return null!==e.KML})).map((function(e){return{name:e.name,url:e.KML}}))||[],f="ALL"===s&&d.concat(h)||"BUILDINGS"===s&&d||"SITES"===s&&h,k=l&&l[t],y=(0,a.jsx)(Z.Z,{title:u({id:"favorites.sharedTitle"}),hideBack:!0,hideFolderManager:!0,downloadProps:k?{printExportProps:{titleOverride:k.folderName,shortId:p.shortId,isFavorites:!0,summaryExportDisclaimer:u({id:"exportOptions.pdf.summary.disclaimer.limit"}),detailedExportDisclaimer:u({id:"exportOptions.pdf.detailed.disclaimer.limit"})},onKmlClick:f.length>0?function(){return e.props.kmlToZip(c.filter((function(e){return null!==e.KML})).map((function(e){return{name:e.name,url:e.KML}})))}:null}:void 0}),M=(0,a.jsx)(P.Z,{children:(0,a.jsx)(L.Z,{showPointsOfInterestToggle:!0})}),x={title:"".concat(u({id:"favorites.sharedTitle"})),meta:[{name:"description",content:"".concat(u({id:"seo.favorites.shared.description"}))}]};return(0,a.jsxs)(O.Z,{nav:y,map:M,navHeight:60,resultNavHeight:130,resultNavHeightExpanded:200,compactDesktopMapExpand:!0,onContentScroll:function(t){e.props.favoriteWindowSettings.top&&e.props.setFavoriteWindow()},sst:p.sst,children:[(0,a.jsx)(C.Z,(0,i.Z)({},x)),(0,a.jsx)(S.Z,{resultRenderer:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,v.createElement)(B.Z,(0,m.Z)((0,i.Z)({},n),{isCommunity:t.CommunityType,result:t,isFavorites:!0,key:"favItem-".concat(r),handleResultHover:e.showMarkerOnResultHover.bind(e),handleResultMouseOut:e.hideMarkerOnResultMouseOut.bind(e)}))},onBackClick:this.onBackClick,onFolderSelect:this.handleFolderSelect.bind(this),favoritesOverride:l,hideProposalButton:!0,selectedFolderIndex:t}),(0,a.jsx)(g(),{id:"410b8e241dbe458a",children:".newFolder{text-align:center;padding:10px 0}.favoriteDropdownItem{font-weight:bold;padding:10px 20px;border-bottom:1px solid#ccc;cursor:pointer;height:40px}.favoriteDropdownItem:hover{background-color:#fbfbfb}.favoriteDropdownItem span{float:right}@media(max-width:766px){.resultBanner.listView{z-index:4}}"})]})}}]),r}(v.Component),W=(0,u.$j)((function(e){return{favoriteWindowSettings:(0,j.getFavoriteWindow)(e),sharedFavorites:(0,j.getSharedFavorites)(e),favoritesTab:(0,j.getFavoritesTab)(e),translang:(0,N.getTranslang)(e),sst:(0,N.getSubsetToken)(e)}}),(function(e){return(0,y.DE)({setDynamicPopupType:E.IQ,setDynamicPopup:E.F_,removeDynamicPopup:E.KY,initializeTypeLayers:E.zM,addMarkers:E.xK,setupFavorites:_.setupFavorites,setFavoriteWindow:_.setFavoriteWindow,clearMarkers:E.X_,setBackToFavoritesShortId:K.setBackToFavoritesShortId,kmlToZip:K.kmlToZip},e)}))((0,D.X)(R)),H=(0,r(11752).default)().publicRuntimeConfig,z=function(e){return(0,a.jsx)(W,{params:e.params})};z.getInitialProps=p.Y.getInitialPageProps((function(e){return function(){var t=(0,n.Z)(s().mark((function t(r){var n,o,a,p,u,c,d,h,m;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.req,o=r.res,a=r.query,t.next=3,(0,l.UM)(n,e,a);case 3:return p=t.sent,u=p.sst,c=p.isCustomDomain,H&&(0,K.setEnvironmentSettings)(H)(e.dispatch),a.tab&&(0,_.setFavoritesTab)(a.tab)(e.dispatch),t.next=10,(0,l.df)(n,o,e,a,u,c);case 10:return d=t.sent,h=d.locale,m=d.messages,t.next=15,(0,_.getSharedFavorites)(a.shortId)(e.dispatch,e.getState);case 15:return t.abrupt("return",{props:{params:a,messages:(0,i.Z)({},m),locale:h}});case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}));var X=(0,u.$j)()(z)}},function(e){e.O(0,[2488,9927,7647,2479,967,806,2769,7935,2502,1850,7534,6265,7485,9513,2373,977,1946,4514,2374,9774,2888,179],(function(){return t=73323,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.