(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[36],{GUEY:function(e,t,o){"use strict";o.r(t);var a,n,i,s=o("q1tI"),l=o.n(s),c=o("/MKj"),r=o("ZFw/"),d=o.n(r),p=o("GKBh"),u=o.n(p),g=o("yWgo"),h=(a=Object(c["c"])(e=>{var t=e.register;return{register:t}}),a((i=class extends s["Component"]{constructor(e){super(e),this.componentDidMount=(()=>{var e=this;"wechat"===Object(g["a"])()?u.a.getLocation({type:"wgs84",success:function(t){var o=t.latitude,a=t.longitude;console.log(o,a,"======================="),e.setState({flag:!0,latitude:o,longitude:a})},fail:function(t){console.log(t,"=================="),e.setState({flag:!0})}}):e.setState({flag:!0}),window.addEventListener("message",this.selectLocation,!1)}),this.componentWillUnmount=(()=>{window.removeEventListener("message",this.selectLocation,!1)}),this.selectLocation=(e=>{var t=e.data;t&&"locationPicker"===t.module&&(console.log("location",t),this.props.dispatch({type:"register/geocoder",payload:{location:t.latlng,poiname:t.poiname}}))}),this.state={flag:!1,latitude:null,longitude:null}}render(){var e=this.state,t=e.flag,o=e.latitude,a=e.longitude;return t?l.a.createElement(d.a,{title:"\u5730\u5740\u9009\u62e9"},l.a.createElement("iframe",{title:"\u5730\u5740\u9009\u62e9",style:{position:"absolute"},id:"mapPage",width:"100%",height:"100%",framebborder:0,src:"https://apis.map.qq.com/tools/locpicker?search=1&type=1&policy=1&key=457BZ-TES6V-JS7P2-UJQAQ-IJSSO-RIFBA&referer=CABApp".concat(o?"&coordtype=1&coord="+o+","+a:"")})):l.a.createElement(d.a,{title:"\u5730\u5740\u9009\u62e9"})}},n=i))||n);t["default"]=h}}]);