/**/_jsload2&&_jsload2('geoctrl', 'z.extend(Zb.prototype,{initialize:function(a){var b=this;Ub.prototype.initialize.call(b,a);b.Ea();b.Hq={"default":D.oa+"images/geolocation-control/mobile/default-40x40.png",loading:D.oa+"images/geolocation-control/mobile/loading-40x40.gif",success:D.oa+"images/geolocation-control/mobile/success-40x40.png",fail:D.oa+"images/geolocation-control/mobile/fail-40x40.png"};b.Zi=b.P.children[0];b.FC=b.Zi.children[0];b.zo=b.FC.children[0];b.DC=b.Zi.children[1];b.gK=b.DC.children[0].children[0];var c;b.M.addEventListener("moveend", function(){if(c){var a=b.M.Bb();a.lng===c.lng&&a.lat===c.lat?b.cr(b.Hq.success):(b.cr(b.Hq["default"]),b.BP())}});z.V(b.zo,"click",function(){b.cr(b.Hq.loading);(new Geolocation({timeout:1E4})).getCurrentPosition(function(e){b.cr(b.Hq.success);if(e.address&&b.m.TZ){var f="";e.address.city?f+=e.address.city:e.address.province&&(f+=e.address.province);e.address.district&&(f+=e.address.district);e.address.street&&(f+=e.address.street);e.address.street_number&&(f+=e.address.street_number);b.YS(f)}var f= new J(e.longitude,e.latitude),g=new V(f,{icon:b.m.NL?b.m.NL:new qc(D.oa+"images/geolocation-control/point/position-icon-14x14.png",new P(14,14))});c=f;b.GC=f;a.Pa(g);a.Ed(f,15);e.address&&(b.ur={province:e.address.province||"",city:e.address.city||"",district:e.address.district||"",street:e.address.street||"",streetNumber:e.address.street_number||""},Ta(7001,{longitude:e.longitude,latitude:e.latitude,accuracy:e.accuracy}));e=new Q("locationSuccess");e.point=b.GC;e.addressComponent=b.ur;b.dispatchEvent(e)}, function(a){b.cr(b.Hq.fail);var c=new Q("locationError");c.code=a.errorCode;c.message=a.gk;b.dispatchEvent(c)})});return b.P},location:function(){var a=this;a.L_.push({});(new Geolocation({timeout:1E4})).getCurrentPosition(function(b){a.GC=new J(b.longitude,b.latitude);b.address&&(a.ur={province:b.address.province||"",city:b.address.city||"",district:b.address.district||"",street:b.address.street||"",streetNumber:b.address.street_number||""});b=new Q("locationSuccess");b.point=a.GC;b.addressComponent= a.ur;a.dispatchEvent(b)},function(b){var c=new Q("locationError");c.code=b.errorCode;c.message=b.gk;a.dispatchEvent(c)})},jW:function(){return this.ur?this.ur:s},ZO:function(){this.M?this.Fe(this.M):this.map&&this.Fe(this.map)},Ea:function(){Ub.prototype.Ea.call(this);this.P.style.cssText="height: 32px;";this.P.innerHTML=this.oq()},oq:function(){return[\'<div class="BMap_geolocationContainer" style="height: 32px; margin: 0px; box-sizing: border-box; border: 1px solid #d9d7d5; border-radius: 3px; -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.2); overflow: hidden;">\', \'<div class="BMap_geolocationIconBackground" style="float: left; width: 32px; height: 32px; background-image: url(\\\'\'+D.oa+"images/geolocation-control/mobile/gradient-bg-1x64.png\'); background-size: 1px 32px; background-repeat: repeat-x;\\">",\'<div class="BMap_geolocationIcon" style="width: 32px; height: 32px; cursor: pointer; background-image: url(\\\'\'+D.oa+"images/geolocation-control/mobile/default-40x40.png\'); background-size: 20px 20px; background-repeat: no-repeat; background-position: center center;\\"></div>", "</div>",\'<div class="BMap_geolocationAddress" style="display: none; float: left; min-width: 50px; padding-left: 10px; padding-right: 10px; border-left: 1px solid #d9d7d5; background-image: url(\'+D.oa+\'images/geolocation-control/mobile/gradient-bg-1x64.png); background-size: 1px 32px; background-repeat: repeat-x;">\',\'<div style="height: 32px; display: table-cell; vertical-align: middle;"><div class="BMap_geolocationAddressText" style="font-size: 12px; color: #666666; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; display: block; min-width: 50px; max-width: 200px;"></div></div></div></div>\'].join("")}, cr:function(a){this.zo.style.backgroundImage="url(\'"+a+"\')"},YS:function(a){this.DC.style.display="block";this.gK.textContent=a},BP:function(){this.gK.textContent="";this.DC.style.display="none"}});Zb.prototype.location=Zb.prototype.location;Zb.prototype.getAddressComponent=Zb.prototype.jW; ');
