(function(a){a.fn.yamapInput=function(b){return this.each(function(){var g=a(this);var f=g.find(".yamap-dialog");var d=f.find(".yamap-area");var e=g.find(".yamap-search");var c=g.find('input[type="text"]:first');var i=c.val();f.dialog(b.dialog);c.on("click",function(){f.dialog("open")});var h=function(){var j=c.val();if(j){i=j.split(",")}else{i=b.map.center}return i};ymaps.ready(function(){var l=h();var k=new ymaps.Map(b.mapId,{center:l,zoom:b.map.zoom});var j=new ymaps.Placemark(l);k.geoObjects.add(j);k.events.add("click",function(n){var m=n.get("coords");j.geometry.setCoordinates(m);c.val(m.join(","))});e.on("keyup",function(m){if(m.keyCode==13){ymaps.geocode(e.val(),{results:1}).then(function(n){var p=n.geoObjects.get(0);var o=p.geometry.getCoordinates();j.geometry.setCoordinates(o);c.val(o.join(","));k.panTo(o)})}})})})}})(jQuery);
!function(e){e.fn.yamapInput=function(a){return this.each(function(){var t=e(this),n=t.find(".yamap-dialog"),o=(n.find(".yamap-area"),t.find(".yamap-search")),i=t.find('input[type="text"]:first'),c=i.val();n.dialog(a.dialog),i.on("click",function(){n.dialog("open")});var r=function(){var e=i.val();return c=e?e.split(","):a.map.center};ymaps.load(function(){var e=new ymaps.SuggestView(o.attr("id"),{offset:[10,10]});e.state.events.add("change",function(){var a=e.state.get("activeIndex");"number"==typeof a&&(activeItem=e.state.get("items")[a],activeItem&&activeItem.value!=o.value&&(o.value=activeItem.value))})}),ymaps.ready(function(){var e=r(),t=new ymaps.Map(a.mapId,{center:e,zoom:a.map.zoom}),n=new ymaps.Placemark(e);t.geoObjects.add(n),t.events.add("click",function(e){var a=e.get("coords");n.geometry.setCoordinates(a),i.val(a.join(","))}),o.on("keyup",function(e){13==e.keyCode&&ymaps.geocode(o.val(),{results:1}).then(function(e){var a=e.geoObjects.get(0),o=a.geometry.getCoordinates();n.geometry.setCoordinates(o),i.val(o.join(",")),t.panTo(o)})})})})}}(jQuery);

Update yamap-input.min.js