1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9386],{5695:function(e,t,i){"use strict";i.r(t);var o=i(2678),s=i(8564),l=i(2267),n=i(8007),r=i(3304),a=i(5893),p=i(7294),y=i(6725),LocationPin=function(e){e.text;var t=e.onChildClick;return(0,a.jsx)("div",{className:"pin",onClick:t,children:(0,a.jsx)("svg",{width:"29.25",height:"36.75",viewBox:"0 0 20 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M9.625 0C7.07322 0.00302774 4.62682 1.01806 2.82244 2.82244C1.01806 4.62682 0.00302774 7.07322 0 9.625C0 17.8606 8.75 24.0813 9.12256 24.3419C9.2699 24.4448 9.44528 24.5 9.625 24.5C9.80472 24.5 9.9801 24.4448 10.1274 24.3419C10.5 24.0813 19.25 17.8606 19.25 9.625C19.247 7.07322 18.2319 4.62682 16.4276 2.82244C14.6232 1.01806 12.1768 0.00302745 9.625 0V0ZM9.62564 6.12532C10.3179 6.12532 10.9946 6.33059 11.5701 6.71517C12.1457 7.09976 12.5943 7.64638 12.8592 8.28592C13.1241 8.92547 13.1934 9.6292 13.0584 10.3081C12.9233 10.9871 12.59 11.6107 12.1005 12.1002C11.611 12.5897 10.9874 12.923 10.3085 13.0581C9.62952 13.1931 8.92579 13.1238 8.28625 12.8589C7.64671 12.594 7.10008 12.1454 6.7155 11.5698C6.33091 10.9942
16.12564 10.3176 6.12564 9.62532C6.12563 9.16569 6.21615 8.71056 6.39204 8.28591C6.56792 7.86126 6.82573 7.47542 7.15074 7.15041C7.47575 6.82541 7.86159 6.5676 8.28623 6.39171C8.71088 6.21582 9.16601 6.1253 9.62564 6.12532V6.12532Z",fill:"#204666"})})})},m=[{featureType:"all",elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#333333"},{lightness:40}]},{featureType:"all",elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{featureType:"all",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]},{featureType:"administrative.country",elementType:"all",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.province",elementType:"all",stylers:[{visibility:"on"}]},{featureType:"administrative.locality",elementType:"all",stylers:[{visibility:"on"}]},{featureType:"landscape",elementType:"geometry",stylers:[{lightness:20},{color:"#ececec"}]},{featureType:"landscape.man_made",elementType:"all",stylers:[{visibility:"on"},{color:"#f0f0ef"}]},{featureType:"landscape.man_made",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#f0f0ef"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{visibility:"on"},{color:"#d4d4d4"}]},{featureType:"landscape.natural",elementType:"all",stylers:[{visibility:"on"},{color:"#ececec"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"on"}]},{featureType:"poi",elementType:"geometry",stylers:[{lightness:21},{visibility:"off"}]},{featureType:"poi",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#d4d4d4"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#303030"}]},{featureType:"poi",elementType:"labels.icon",stylers:[{saturation:"-100"}]},{featureType:"poi.attraction",elementType:"all",stylers:[{visibility:"on"},{lightness:"52"}]},{featureType:"poi.business",elementType:"all",stylers:[{visibility:"off"},{lightness:"52"}]},{featureType:"poi.government",elementType:"all",stylers:[{visibility:"off"},{lightness:"52"}]},{featureType:"poi.medical",elementType:"all",stylers:[{visibility:"on"},{lightness:"52"}]},{featureType:"poi.park",elementType:"all",stylers:[{visibility:"on"},{lightness:"52"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dedede"},{lightness:21}]},{featureType:"poi.place_of_worship",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.school",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.school",elementType:"geometry.stroke",stylers:[{lightness:"-61"},{gamma:"0.00"},{visibility:"off"}]},{featureType:"poi.sports_complex",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#ffffff"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:16}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#dadada"},{lightness:17}]}],c=function(e){(0,n._)(GoogleMap,e);var t=(0,r._)(GoogleMap);function GoogleMap(e){(0,s._)(this,GoogleMap);var i,l=(i=t.call(this,e)).getMarkerFromProps(e);return i.state={markers:l?[l]:[]},i.map=null,i.maps=null,i.resizeTimeout=null,i.handleGoogleApiLoaded=i.handleGoogleApiLoaded.bind((0,o._)(i)),i.handleWindowResize=i.handleWindowResize.bind((0,o._)(i)),i.syncMapView=i.syncMapView.bind((0,o._)(i)),i}return(0,l._)(GoogleMap,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleWindowResize)}},{key:"componentDidUpdate",value:function(e){var t,i,o,s;if(e.locationLat!==this.props.locationLat||e.locationLng!==this.props.locationLng||e.locationText!==this.props.locationText||e.locationAddress!==this.props.locationAddress){var l=this.getMarkerFromProps(this.props);this.setState({markers:l?[l]:[]},this.syncMapView);return}(e.locationCenter!==this.props.locationCenter||(null===(t=e.locationCenter)||void 0===t?void 0:t.lat)!==(null===(i=this.props.locationCenter)||void 0===i?void 0:i.lat)||(null===(o=e.locationCenter)||void 0===o?void 0:o.lng)!==(null===(s=this.props.locationCenter)||void 0===s?void 0:s.lng)||e.zoom!==this.props.zoom)&&this.syncMapView()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeTimeout&&window.clearTimeout(this.resizeTimeout)}},{key:"getNumber",value:function(e){var t=Number(e);return Number.isFinite(t)?t:null}},{key:"getMarkerFromProps",value:function(e){var t=this.getNumber(e.locationLat),i=this.getNumber(e.locationLng);return null===t||null===i?null:{text:e.locationText,address:e.locationAddress,lat:t,lng:i}}},{key:"getCenterFromProps",value:function(){var e,t,i=this.getNumber(null===(e=this.props.locationCenter)||void 0===e?void 0:e.lat),o=this.getNumber(null===(t=this.props.locationCenter)||void 0===t?void 0:t.lng);if(null!==i&&null!==o)return{lat:i,lng:o};var s=this.getMarkerFromProps(this.props);return s?{lat:s.lat,lng:s.lng}:{lat:52.520008,lng:13.404954}}},{key:"getZoomFromProps",value:function(){var e;return null!==(e=this.getNumber(this.props.zoom))&&void 0!==e?e:16}},{key:"handleGoogleApiLoaded",value:function(e){var t=e.map,i=e.maps;this.map=t,this.maps=i,this.syncMapView()}},{key:"handleWindowResize",value:function(){this.map&&this.maps&&(this.resizeTimeout&&window.clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.syncMapView,120))}},{key:"syncMapView",value:function(){var e;this.map&&this.maps&&((null===(e=this.maps.event)||void 0===e?void 0:e.trigger)&&this.maps.event.trigger(this.map,"resize"),this.map.setCenter(this.getCenterFromProps()),this.map.setZoom(this.getZoomFromProps()))}},{key:"getDirectionsUrl",value:function(e){if(this.props.directionsHref)return this.props.directionsHref;var t=encodeURIComponent(e.address||e.text||"");return"https://www.google.com/maps/dir/?api=1&travelmode=driving&dir_action=navigate&destination=".concat(t)}},{key:"markerClicked",value:function(e){window.open(this.getDirectionsUrl(e),"_blank","noopener,noreferrer")}},{key:"render",value:function(){var e=this,t=this.getCenterFromProps(),i=this.getZoomFromProps();return(0,a.jsx)("div",{className:"map",style:{position:"relative",width:"100%",height:"100%"},children:(0,a.jsx)("div",{className:"wedding-map",style:{width:"100%",height:"100%"},children:(0,a.jsx)(y.ZP,{bootstrapURLKeys:{key:"AIzaSyDJRf5EVqwT9ffsnv4Ytg17BH8pR5muwhE"},options:{styles:m},defaultCenter:t,center:t,defaultZoom:i,zoom:i,yesIWantToUseGoogleMapApiInternals:!0,onGoogleApiLoaded:this.handleGoogleApiLoaded,style:{height:"100%",width:"100%"},children:this.state.markers.map(function(t){return(0,a.jsx)(LocationPin,{lat:t.lat,lng:t.lng,text:t.text,onChildClick:e.markerClicked.bind(e,t)},"".concat(t.text,"-").concat(t.lat,"-").concat(t.lng))})})})})}}]),GoogleMap}(p.Component);t.default=c},2703:function(e,t,i){"use strict";var o=i(414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,i,s,l,n){if(n!==o){var r=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol
1:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},5697:function(e,t,i){e.exports=i(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
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.