var Bizgaze;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{cssFiles(){return[]}jsFiles(){return["apps/communications/meetings/managers/meetingmanager.js"]}html(){return`
Meeting Address
`}load(n){n=Unibase.Themes.Providers.DetailHelper.recordId;let t=this;t.MeetingAddress(n)}init(t){var i=this;i.fileCacheHelper.loadJsFiles(["apps/communications/meetings/components/meetingaddress.js","apps/communications/meetings/managers/meetingmanager.js"],function(){i.navigationHelper.loadSection(0,t,n.Apps.Communications.Meetings.Components.MeetingAddress.Instance(),null,null)})}MeetingAddress(t){var i=this;n.Apps.Communications.Meetings.Managers.MeetingManager.Instance().getMeeting(t).then(function(n){var e,t;if(n.result.MeetingLatId=="")$("#meetingAddressMap").append("
  • <\/span>"),$("#hours").append("
  • There is no Data<\/span>");else if(n.result!=null){var r=n.result.MeetingLatId,u=n.result.MeetingLngId,f=new google.maps.LatLng(r,u),o={zoom:8,center:f},s=new google.maps.Map(document.getElementById("meetingAddressMap"),o),h=new google.maps.Marker({position:f,title:"Hello World!"});if(h.setMap(s),e="https://maps.googleapis.com/maps/api/geocode/json?latlng="+r+","+u+"&key="+_mapsettings.key()+"&sensor=false",t=i.createCORSRequest1("Get",e),!t){bootbox.alert("CORS not supported");return}t.onload=function(){var n=t.responseText,i=JSON.parse(n);$("#mapaddress").text(i.results[0].formatted_address)};t.onerror=function(){bootbox.alert("Woops, there was an error making the request.")};t.send()}})}createCORSRequest1(n,t){let r;var i=new XMLHttpRequest;return"withCredentials"in i?i.open(n,t,!0):typeof r!="undefined"?(i=new r,i.open(n,t)):i=null,i}static Instance(){return this.instance===undefined&&(this.instance=new i),this.instance}}t.MeetingAddress=i})(i=t.Components||(t.Components={}))})(i=t.Meetings||(t.Meetings={}))})(i=t.Communications||(t.Communications={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));