1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5928],{92863:function(t,e,r){"use strict";var n=r(22122),o=r(2949),i=r(67294),c=r(86010),a=r(52543),u=r(93871),s=i.forwardRef((function(t,e){var r=t.classes,a=t.className,s=t.color,l=void 0===s?"inherit":s,p=t.component,f=void 0===p?"span":p,y=t.fontSize,d=void 0===y?"medium":y,h=(0,o.Z)(t,["classes","className","color","component","fontSize"]);return i.createElement(f,(0,n.Z)({className:(0,c.Z)("material-icons",r.root,a,"inherit"!==l&&r["color".concat((0,u.Z)(l))],"default"!==d&&"medium"!==d&&r["fontSize".concat((0,u.Z)(d))]),"aria-hidden":!0,ref:e},h))}));s.muiName="Icon",e.Z=(0,a.Z)((function(t){return{root:{userSelect:"none",fontSize:t.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(36)}}}),{name:"MuiIcon"})(s)},72438:function(t,e,r){"use strict";var n=r(85893),o=r(26265),i=r(38347);r(67294);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){(0,o.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}e.C=function(t){var e=t.children,r=t.hidden,o=t.style,c=(0,i.Z)(t,["children","hidden","style"]),u=r?{display:"none"}:{};return(0,n.jsx)("div",a(a({style:a(a({},o),u)},c),{},{children:e}))}},72561:function(t,e,r){"use strict";var n=r(26265),o=r(38347),i=r(74047),c=r(52700),a=r(45243);function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var l=function(){function t(){(0,i.Z)(this,t),this.map=void 0}return(0,c.Z)(t,[{key:"zoomAndPan",value:function(t,e,r){this.map&&this.map.setView(new a.LatLng(t,e),r,{animation:!0})}},{key:"setCenter",value:function(t,e){this.map&&this.map.panTo(new a.LatLng(t,e))}},{key:"setZoom",value:function(t){this.map&&this.map.setZoom(t)}},{key:"createMarker",value:function(t){var e=t.lat,r=t.lng,n=t.onClick,i=(0,o.Z)(t,["lat","lng","onClick"]),c=(0,a.marker)([e,r],s({},i));return n&&c.on("click",n),c}},{key:"setMarker",value:function(t){var e=t.lat,r=t.lng,n=t.onClick,i=(0,o.Z)(t,["lat","lng","onClick"]);if(this.map){var c=this.createMarker(s({lat:e,lng:r,onClick:n},i));return c.addTo(this.map),c}return null}},{key:"onZoomEnd",value:function(t){this.map&&this.map.on("zoomend",t)}},{key:"addLayer",value:function(t){t.addTo(this.map)}},{key:"removeLayer",value:function(t){t&&t.removeFrom(this.map)}},{key:"onClick",value:function(t){this.map.on("click",t)}},{key:"offClick",value:function(){this.map.off("click")}},{key:"polyline",value:function(t,e){var r=(0,a.polyline)(t,e);return r.addTo(this.map),r}}]),t}();e.Z=new l},70350:function(t,e,r){"use strict";r.d(e,{Z:function(){return v}});var n=r(85893),o=r(26265),i=r(38347),c=r(74047),a=r(52700),u=r(8127),s=r(44102),l=r(20775),p=r(67294),f=r(45243),y=r(72561);function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?d(Object(r),!0).forEach((function(e){(0,o.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,l.Z)(t);if(e){var o=(0,l.Z)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,s.Z)(this,r)}}var v=function(t){(0,u.Z)(r,t);var e=m(r);function r(){return(0,c.Z)(this,r),e.apply(this,arguments)}return(0,a.Z)(r,[{key:"componentDidMount",value:function(){this.map=(0,f.map)("map-holder",15),this.map&&(this.map.setView([51,0],13),(0,f.tileLayer)("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png").addTo(this.map),y.Z.map=this.map,y.Z.setZoom(3))}},{key:"componentWillUnmount",value:function(){this.map.remove()}},{key:"render",value:function(){var t=this.props,e=t.style,r=(0,i.Z)(t,["style"]);return(0,n.jsx)("div",h(h({id:"map-holder",style:h({width:"100%",height:"100%",position:"relative"},e)},r),{},{children:(0,n.jsx)("div",{style:{position:"absolute",background:"white",bottom:0,right:50,height:15,zIndex:1001,fontSize:9,lineHeight:"15px",padding:"0 16px",color:"#666"},children:"Wikimedia maps | Map data \xa9 OpenStreetMap contributors"})}))}}]),r}(p.Component)},11978:function(t,e,r){"use strict";var n=r(85893),o=r(26265);r(67294);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var c=(0,r(30115).Z)((function(t){return{main:(0,o.Z)({background:"red",zIndex:t.layers.appLogo+1,position:"fixed",bottom:16,left:64,right:64,top:16},t.breakpoints.down("sm"),{left:8,right:8,bottom:8})}}),{name:"MapLayer"});e.Z=function(t){var e=c();return(0,n.jsx)("div",function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){(0,o.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({className:e.main},t))}},97323:function(t,e,r){"use strict";var n=r(22222),o=r(41209),i=function(t){return t.cities||o.E};e.Z=function(){return(0,n.P1)(i,(function(t){return t}))}},75928:function(t,e,r){"use strict";r.r(e),r.d(e,{CitiesMap:function(){return A},default:function(){return H},mapDispatchToProps:function(){return G}});var n=r(85893),o=r(26265),i=r(74047),c=r(52700),a=r(8127),u=r(44102),s=r(20775),l=r(67294),p=r(86706),f=r(22222),y=r(14890),d=r(11163),h=r(48070),m=r(31333),v=(r(72438),r(97323)),O=r(41209),b=r(57784),g=r(40549),j=r(11978),k=r(38347),Z=r(38920),P=r(17812),w=r(92863),D=r(70350),C=r(72561),S=r(45243),x=r(69818);function L(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach((function(e){(0,o.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function z(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,s.Z)(t);if(e){var o=(0,s.Z)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,u.Z)(this,r)}}var R=function(t){(0,a.Z)(r,t);var e=z(r);function r(){return(0,i.Z)(this,r),e.apply(this,arguments)}return(0,c.Z)(r,[{key:"handleCityClick",value:function(t){(0,this.props.onSelect)(t)}},{key:"handleCountryClick",value:function(t){var e=t.countryLocation,r=t.countryZoom,n=void 0===r?6:r;C.Z.zoomAndPan(e.lat,e.lng,n)}},{key:"createCityWidget",value:function(t){return"\n <div class='map__marker-icon--main'>\n <div class='city-map__marker-icon--marker'>\n <div class='city-map__marker-icon--point'/>\n <div class='marker-title'>".concat(t,"</div>\n </div>\n </div>\n ")}},{key:"createCountryWidget",value:function(t,e,r){return"\n <div class='map__marker-icon--main'>\n <div class='country-map__marker-icon--marker'>\n <div \n class='country-map__marker-icon--point'\n style='background-image: url(".concat(t,")'\n />\n <div \n class='country-map__marker-icon--city-count'\n >\n ").concat(r?r.split(",").length:0,"\n </div>\n <div class='marker-title'>").concat(e,"</div>\n </div>\n </div>\n ")}},{key:"createMarkerIcon",value:function(t,e,r){return(0,S.divIcon)({className:"map__div-icon",html:t,iconSize:e,iconAnchor:r})}},{key:"drawCities",value:function(t){var e=this;this.cityLayer=(0,S.layerGroup)();
1var r=(0,S.point)(200,50),n=(0,S.point)(0,0);t.forEach((function(t){var o=e.createCityWidget(t.name),i=e.createMarkerIcon(o,r,n),c=C.Z.createMarker(E(E({},t.location),{},{icon:i,onClick:function(){e.handleCityClick(t.slug)}}));e.cityLayer.addLayer(c)}))}},{key:"drawCountries",value:function(t){var e=this;this.countryLayer=(0,S.layerGroup)();var r=(0,x.Z)().turgoImages.href,n=(0,S.point)(200,50),o=(0,S.point)(0,0);t.forEach((function(t){var i=t.cityNames,c=void 0===i?[]:i,a="".concat(r,"/countries/").concat(t.id,".png"),u=e.createCountryWidget(a,t.name,c),s=e.createMarkerIcon(u,n,o),l=C.Z.createMarker(E(E({},t.location),{},{icon:s,onClick:function(){e.handleCountryClick(t)}}));e.countryLayer.addLayer(l)}))}},{key:"componentDidMount",value:function(){var t=this,e=this.props.destinations,r=void 0===e?{}:e,n=r.cities,o=void 0===n?[]:n,i=r.countries,c=void 0===i?[]:i;this.drawCities(o),this.drawCountries(c),C.Z.onZoomEnd((function(e){e.target.getZoom()<6?(C.Z.removeLayer(t.cityLayer),C.Z.addLayer(t.countryLayer)):(C.Z.removeLayer(t.countryLayer),C.Z.addLayer(t.cityLayer))})),C.Z.setZoom(4),C.Z.setCenter(51,22)}},{key:"render",value:function(){return(0,n.jsx)(D.Z,{})}}]),r}(l.PureComponent);function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function M(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach((function(e){(0,o.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var I=(0,Z.Z)({main:{position:"absolute",top:0,bottom:0,left:0,right:0},close:{position:"absolute",top:0,right:0,zIndex:1001}})((function(t){var e=t.classes,r=t.router,o=t.hidden,i=(0,k.Z)(t,["classes","router","hidden"]),c=(0,n.jsxs)("div",{className:e.main,children:[(0,n.jsx)(R,M({},i)),(0,n.jsx)(P.Z,{className:e.close,onClick:function(){r.back()},children:(0,n.jsx)(w.Z,{style:{fontSize:"48px"},children:"close"})})]});return o?null:c}));function T(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function N(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?T(Object(r),!0).forEach((function(e){(0,o.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function W(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,s.Z)(t);if(e){var o=(0,s.Z)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,u.Z)(this,r)}}var A=function(t){(0,a.Z)(r,t);var e=W(r);function r(t){var n;return(0,i.Z)(this,r),(n=e.call(this,t)).state={},n}return(0,c.Z)(r,[{key:"componentDidMount",value:function(){(0,this.props.load)()}},{key:"handleCity",value:function(t){this.props.router.push("/destination/".concat(t))}},{key:"render",value:function(){var t=this,e=this.props.cities,r=e.destinations,o=void 0===r?{}:r,i=(e.tab,this.props),c=(i.activateTab,i.router),a=this.state.countryId,u=o.cities;(void 0===u?[]:u).filter((function(t){return t.countryId===a||!a}));return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(j.Z,{children:(0,n.jsx)(I,N({destinations:o,onSelect:function(e){t.handleCity(e)}},{router:c}))})})}}]),r}(l.PureComponent),F=(0,f.zB)({cities:(0,v.Z)()}),G=function(t){return{load:function(){t((0,b.zT)())},activateTab:function(e){t((0,b.MR)(e))}}},V=(0,p.$j)(F,G),q=(0,m.Z)({key:"cities",reducer:O.Z}),B=(0,h.Z)({key:"cities",saga:g.Z}),H=(0,y.qC)(q,d.withRouter,B,V)(A)}}]);
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.