PageSourceSearch

https://www.farpost.ru/resources/assets/879.a6306c402cdae66bb6b4.js

js farpost.ru collected 2026-09-24 09:02:55 UTC 4,786 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[879],{879(t,o,n){n.r(o);var e=n(78126),s=n(27500);let i,a,c;const r="POSITION_VIEWDIR_ZOOM",p="POSITION_VIEWBULL_ZOOM",l="POSITION_VIEWBULL_GEO",u="POSITION_VIEWDIR_GEO",d={preciseZoom:!0,checkZoomRange:!0},m=new class{add(t,o){const n=baza.isMobileSite(),e=400;if(n&&!this.isListening&&(this.isListening=!0,$(window).on("resize",()=>this.recalculatePositions())),t===r){const t=t=>{baza.isMobileSite()||o.options.set("position",{top:250,right:10}),t>e?o.options.set("position",{bottom:220,right:10}):o.options.set("position",{top:100,right:10})};t($(window).height()),n&&this.cb.push(t)}if(t===p){const t=t=>{baza.isMobileSite()||o.options.set("position",{top:150,right:10}),t>e?o.options.set("position",{bottom:220,right:10}):o.options.set("position",{top:100,right:10})};t($(window).height()),n&&this.cb.push(t)}if(t===u){const t=t=>{baza.isMobileSite()||o.options.set("position",{top:363,right:10}),t>e?o.options.set("position",{bottom:165,right:10}):o.options.set("position",{top:215,right:10})};t($(window).height()),n&&this.cb.push(t)}if(t===l){const t=t=>{baza.isMobileSite()||o.options.set("position",{top:263,right:10}),t>e?o.options.set("position",{bottom:165,right:10}):o.options.set("position",{top:215,right:10})};t($(window).height()),n&&this.cb.push(t)}}recalculatePositions(){const t=$(window).height();this.cb.map(o=>o(t))}constructor(){this.cb=[],this.isListening=!1}};function h(t,o){const n=s.qH(t,o);return[[n.southWest.lat,n.southWest.lon],[n.northEast.lat,n.northEast.lon]]}function g(t){return{getControl:()=>t,hide(){t.state.set("isHidden",!0)},show(){t.state.set("isHidden",!1)}}}const b={DEFAULT_ZOOM_OPTIONS:d,POSITION_VIEWBULL_ZOOM:p,POSITION_VIEWBULL_GEO:l,appendCross:function({ymaps:t,yaMap:o,onClick:n}){const e=t.templateLayoutFactory.createClass('<div class="map-button map-button_icon_cross"></div>'),s=new t.control.Button({options:{layout:e,position:{top:10,right:10}}});return s.events.add("click",()=>{baza.dummy.send("viewdir_map_off"),n()}),o.controls.add(s),g(s)},createUserGeoLocationButton:function(t,o,n){const s=ymaps.templateLayoutFactory.createClass('<div class="map-button map-button_icon_geo-fill" {% if (state.isHidden) %} style="display:none" {% endif %}></div>'),r=new ymaps.control.Button({data:{title:"Ваше местоположение"},options:{layout:s}});return m.add(n||u,r),r.events.add("click",function(){a&&a(),c=!1,a=e.default.watch(function(n){!function(t,o,n,e){const s=function(t,o,n){const e=[.5,
11,2,3,5,7,11];if(!n)return h(t);let s;const i=ymaps.geoQuery(n.objects);for(let n=0,a=e.length;n<a;n++){s=h(t,e[n]);const a=new ymaps.Rectangle(s,{},{visible:!1});o.geoObjects.add(a);const c=i.searchInside(a).getLength();if(o.geoObjects.remove(a),c)return s}return s||i.getBounds()}(t,o,n);s&&(function(t,o){i&&o.geoObjects.remove(i),i=new ymaps.Placemark(t,{balloonContent:"Ваше местоположение"},{preset:"islands#circleDotIcon",iconColor:"#a5260a"}),o.geoObjects.add(i)}(t,o),e||(o.setCenter(t),o.setBounds(s,d)))}(n,t,o,c),c=!0},function(t){a(),baza.showFlash({message:e.default.decodeRejectionError(t),status:500})})}),g(r)},appendCustomZoom:function(t){const o=t.ymaps,n=t.yaMap,e=o.templateLayoutFactory.createClass('<div class="map-button-union"  {% if (state.isHidden) %} style="display:none" {% endif %}><div class="map-button map-button_icon_plus"></div><div class="map-button map-button_icon_minus"></div></div>'),s=new o.control.Button({options:{layout:e}});return m.add(t.position||r,s),s.events.add("click",function(t){const o=t.get("domEvent").get("target");o.className.indexOf("map-button_icon_plus")>=0?n.setZoom(n.getZoom()+1,{duration:180,checkZoomRange:!0,timingFunction:"ease-in-out"}):o.className.indexOf("map-button_icon_minus")>=0&&n.setZoom(n.getZoom()-1,{duration:180,checkZoomRange:!0,timingFunction:"ease-in-out"})}),n.controls.add(s),g(s)},appendFullscreen:function({yaMap:t,ymaps:o,className:n="map-button_icon_fullscreen"}){const e=o.templateLayoutFactory.createClass(`<div class="map-button ${n}"></div>`),s=new o.control.FullscreenControl({options:{layout:e}});return s.events.add("mousedown",function(t){t.get("domEvent").originalEvent.stopPropagation(),t.get("domEvent").originalEvent.preventDefault()}),t.controls.add(s),s.events.add("fullscreenenter",function(){baza.dummy.send("viewdir_open_map_fullscreen")}),g(s)},appendTypeSelector:function(t){const o=t.ymaps,n=t.yaMap,e=new o.control.TypeSelector({options:{float:"left"}});return n.controls.add(e),{getControl:()=>e,hide(){n.controls.remove(e)},show(){n.controls.add(e)}}},coordinatesToBounds:h,extendBounds:function(t,o){return s.Os(t,o)}};n.d(o,["default",0,b])}}]);
2//# sourceMappingURL=/resources/source-maps/879.a6306c402cdae66bb6b4.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.