Built files from Bizgaze WebServer
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

meetingaddress.min.js 2.9KB

123456789101112131415161718
  1. 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`<div class="card">
  2. <div class="card-title">
  3. <a class="btn btn_Listsearch_angle">
  4. <i class="fa fa-angle-down hidden"></i>
  5. <span id="hf_widget_title_MeetingAddress">Meeting Address</span>
  6. </a>
  7. <div class="" style="padding-bottom:10px"></div>
  8. <div id="meetingAddressMap" class="text-center b-a" style="height: 250px;">
  9. </div>
  10. <div class="" style="padding-bottom:10px"></div>
  11. <div class="wrapper-sm">
  12. <label id="mapaddress" style="padding-left:10px"></label>
  13. </div>
  14. </div>
  15. </div>`}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("<li id='hours' class='list-group-item no-borders pa-5'><\/span>"),$("#hours").append("<li id='hours' class='alert alert-info ma-0'>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={}));