var Unibase;(function(n){let t;(function(t){let i;(function(t){class i{init(n,t,r){function s(){var n=eval('new google.maps.places.Autocomplete((document.getElementById("Location_Map")), {types: ["geocode"]});');n.addListener("place_changed",function(){var n=new google.maps.Geocoder;setTimeout(function(){var t=document.getElementById("Location_latid");t.value;n.geocode({address:t},function(n,t){if(t==google.maps.GeocoderStatus.OK){var i=n[0].geometry.location.lat(),r=n[0].geometry.location.lng();$("#hfLattitude").val(i);$("#hfLongitude").val(r)}})},1e3)})}var f=$(".formValidate:visible").attr("id"),e=f.split("_"),o=$("#locationcontrol_"+n),u;o.geocomplete({details:"form.form_"+e[1]});s();u=i.Instance();u.loadControlSettings(t.ControlJsonText,t.FormPropertyId);u.loadPropertySettings(t.PropertySettings,t.FormPropertyId);r!=null&&r()}loadControl(t,i){var u=i.IsRequired!=!0?"hidden":"",f=i.IsRequired!=!0?"":"required",r;const{helpTooltipHtml:e}=n.Platform.Forms.Components.FormViewer.Instance().getControlHelpHtml(i);r='