PageSourceSearch

https://mycorner.ru/_next/static/chunks/7727.c006df47d69c58f7.js

js mycorner.ru collected 2026-10-04 01:25:38 UTC 16,633 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7727],{10738:function(e,t,n){n.d(t,{Cd:function(){return N},D5:function(){return P},LA:function(){return T},Yy:function(){return h},ah:function(){return A},j0:function(){return l},mg:function(){return I}});var o=n(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let r=(e,t)=>{let n={};for(let o in e)-1===t.indexOf(o)&&(n[o]=e[o]);return n},a=o.createContext(null),i=o.createContext(null),c=e=>t=>o.createElement(i.Consumer,null,n=>o.createElement(e,s({parent:n},t))),l=(e=[])=>{let[t,n]=(0,o.useState)(!1),s=(0,o.useRef)(e),r=(()=>{let e=(0,o.useContext)(a);if(null===e)throw Error("Couldn't find Yandex.Maps API in the context. Make sure that hook useYMaps is inside <YMaps /> provider");return e})(),i=r.getApi();return(0,o.useEffect)(()=>{r.load().then(()=>Promise.all(s.current.map(r.loadModule))).then(()=>n(!0))},[]),t&&i?i:null},u=()=>{},p=["onLoad","onError","modules","apiLoader"];function d(e,t=!1,n=[]){return a=>{let{width:i,height:c,modules:d=[],onLoad:m=u}=a,f=l(n.concat(d)),h=!t||!!f,y=r(a,p);return(0,o.useEffect)(()=>f?m(f):void 0,[f]),h?o.createElement(e,s({ymaps:f},y)):o.createElement("div",{style:{width:i,height:c}})}}let m="undefined"!=typeof window,f={lang:"ru_RU",load:"",ns:"",mode:"release"},h=e=>{let{version:t="2.1",enterprise:n=!1,query:s={lang:"ru_RU",load:"",ns:""},preload:r=!1,children:i}=e,c=(0,o.useRef)((e=>{let t;let{query:n=f}=e,o=Date.now().toString(32),s=n.ns||"",r="__yandex-maps-api-onload__$$"+o,a="__yandex-maps-api-onerror__$$"+o,i=m?window:{},c={},l=()=>s?i[s]:t,u=()=>{delete i[r],delete i[a]};return{load:()=>{if(l())return Promise.resolve(t);if(c[s])return c[s];let o={onload:r,onerror:a,...f,...n},p=Object.keys(o).map(e=>`${e}=${o[e]}`).join("&"),d=[`https://${e.enterprise?"enterprise.":""}api-maps.yandex.ru`,e.version,"?"+p].join("/");return c[s]=new Promise((e,n)=>{i[r]=n=>{u(),n.ready(()=>{t=n,e(n)})},i[a]=e=>{u(),n(e)},new Promise((e,t)=>{let n=document.createElement("script");n.type="text/javascript",n.onload=e,n.onerror=t,n.src=d,n.async=!0,document.head.appendChild(n)}).catch(i[a])}),c[s]},getApi:l,loadModule:e=>new Promise((n,o)=>{t.modules.require(e).done(o=>{o.forEach(n=>{((e,t,n,o=!1)=>{let s="string"==typeof t?t.split("."):t.slice(),r,a=e;for(;s.length>1;)a[r=s.shift()]||(a[r]={}),a=a[r];let i=s[0];a[i]=!0===o&&a[i]||n})(t,e,n,!0)}),n(t)},o)})}})({version:t,enterprise:n,query:s,preload:r}));return(0,o.useEffect)(()=>{r&&c.current.load()},[c.current]),o.createElement(a.Provider,{value:c.current},i)},y=/^on(?=[A-Z])/;function b(e){return Object.keys(e).reduce((t,n)=>{if(y.test(n)){let o=n.replace(y,"").toLowerCase();t._events[o]=e[n]}else t[n]=e[n];return t},{_events:{}})}function v(e,t,n){"function"==typeof n&&e.events.add(t,n)}function j(e,t,n){"function"==typeof n&&e.events.remove(t,n)}function O(e,t,n){Object.keys(Object.assign({},t,n)).forEach(o=>{t[o]!==n[o]&&(j(e,o,t[o]),v(e,o,n[o]))})}let g=e=>"default"+e.charAt(0).toUpperCase()+e.slice(1);function E(e,t){return void 0!==e[t]||void 0===e[g(t)]}function _(e,t,n){return(E(e,t)?e[t]:e[g(t)])||n}function C(e,t,n=null){e!==t&&(e&&("current"in e?e.current=null:"function"==typeof e&&e(null)),t&&("current"in t?t.current=n:"function"==typeof t&&t(n)))}function R(e){let{width:t,height:n,style:o,className:s}=e;return void 0!==o||void 0!==s?Object.assign({},o&&{style:o},s&&{className:s}):{style:{width:t,height:n}}}class w extends o.Component{constructor(e){super(e),this.state={error:null,errorInfo:null}}componentDidCatch(e,t){let{onError:n=()=>{}}=this.props;n(e),this.setState({error:e,errorInfo:t})}render(){return this.state.error?null:this.props.children}}let k=e=>({onError:t,...n})=>o.createElement(w,{onError:t},o.createElement(e,n));class x extends o.Component{constructor(){super(),this.instance=null,this.state={instance:null},this._parentElement=null,this._getRef=e=>{this._parentElement=e}}componentDidMount(){this.instance=x.mountObject(this._parentElement,this.props.ymaps.Map,this.props),this.setState({instance:this.instance})}componentDidUpdate(e){null!==this.instance&&x.updateObject(this.instance,e,this.props)}componentWillUnmount(){x.unmountObject(this.instance,this.props)}render(){let e=R(this.props),t=r(b(this.props),["_events","state","defaultState","options","defaultOptions","instanceRef","ymaps","children","width","height","style","className"]);return o.createElement(i.Provider,{value:this.state.instance},o.createElement("div",s({ref:this._getRef},e,t),this.props.children))}static mountObject(e,t,n){let{instanceRef:o,_events:s}=b(n),r=new t(e,_(n,"state"),_(n,"options"));
1return Object.keys(s).forEach(e=>v(r,e,s[e])),C(null,o,r),r}static updateObject(e,t,n){let{_events:o,instanceRef:s}=b(n),{_events:r,instanceRef:a}=b(t);if(E(n,"state")){let o=_(t,"state",{}),s=_(n,"state",{});o.type!==s.type&&e.setType(s.type),o.behaviors!==s.behaviors&&(o.behaviors&&e.behaviors.disable(o.behaviors),s.behaviors&&e.behaviors.enable(s.behaviors)),s.zoom&&o.zoom!==s.zoom&&e.setZoom(s.zoom),s.center&&o.center!==s.center&&e.setCenter(s.center),s.bounds&&o.bounds!==s.bounds&&e.setBounds(s.bounds)}if(E(n,"options")){let o=_(t,"options"),s=_(n,"options",{});o!==s&&e.options.set(s)}_(t,"width")===_(n,"width")&&_(t,"height")===_(n,"height")||e.container.fitToViewport(),O(e,r,o),C(a,s,e)}static unmountObject(e,t){let{instanceRef:n,_events:o}=b(t);null!==e&&(Object.keys(o).forEach(t=>j(e,t,o[t])),e.destroy(),C(n))}}let P=k(d(x,!0,["Map"]));P.defaultProps={width:320,height:240};class M extends o.Component{constructor(){super(),this.state={instance:null},this._parentElement=null,this._getRef=e=>{this._parentElement=e}}componentDidMount(){this._mounted=!0,this.props.ymaps.panorama.isSupported()&&M.mountObject(this._parentElement,this.props.ymaps.panorama,this.props).then(e=>this._mounted&&this.setState({instance:e}))}componentDidUpdate(e){null!==this.state.instance&&M.updateObject(this.state.instance,e,this.props)}componentWillUnmount(){this._mounted=!1,M.unmountObject(this.state.instance,this.props)}render(){let e=R(this.props);return o.createElement("div",s({ref:this._getRef},e))}static mountObject(e,t,n){let{instanceRef:o,_events:s}=b(n),r=_(n,"point"),a=_(n,"locateOptions"),i=_(n,"options");return new Promise((n,c)=>{t.locate(r,a).done(r=>{if(r.length>0){let a=new t.Player(e,r[0],i);C(null,o,a),Object.keys(s).forEach(e=>v(a,e,s[e])),n(a)}},c)})}static updateObject(e,t,n){let{_events:o,instanceRef:s}=b(n),{_events:r,instanceRef:a}=b(t);if(E(n,"options")){let o=_(t,"options"),s=_(n,"options");o!==s&&e.options.set(s)}if(E(n,"point")){let o=_(n,"point"),s=_(t,"point"),r=_(n,"locateOptions");o!==s&&e.moveTo(o,r)}O(e,r,o),C(a,s,e)}static unmountObject(e,t){let{instanceRef:n,_events:o}=b(t);null!==e&&(Object.keys(o).forEach(t=>j(e,t,o[t])),C(n))}}k(d(M,!0,["panorama.isSupported","panorama.locate","panorama.createPlayer","panorama.Player"])).defaultProps={width:320,height:240};class S extends o.Component{constructor(){super(),this.state={instance:null},this.instance=null}componentDidMount(){let e=S.mountControl(this.props.ymaps.control[this.props.name],this.props);this.instance=e,this.setState({instance:e})}componentDidUpdate(e){null!==this.instance&&S.updateControl(this.instance,e,this.props)}componentWillUnmount(){S.unmountControl(this.instance,this.props)}render(){return o.createElement(i.Provider,{value:this.state.instance},this.props.children)}static mountControl(e,t){let{instanceRef:n,parent:o,lazy:s,_events:r}=b(t),a=new e({data:_(t,"data"),options:_(t,"options"),state:_(t,"state"),mapTypes:_(t,"mapTypes"),lazy:s});if(Object.keys(r).forEach(e=>v(a,e,r[e])),o&&o.controls&&"function"==typeof o.controls.add)o.controls.add(a);else{if(!o||!o.add||"function"!=typeof o.add)throw Error(`No parent found to mount ${t.name}`);o.add(a)}return C(null,n,a),a}static updateControl(e,t,n){let{_events:o,instanceRef:s}=b(n),{_events:r,instanceRef:a}=b(t);if(E(n,"options")){let o=_(t,"options"),s=_(n,"options");o!==s&&e.options.set(s)}if(E(n,"data")){let o=_(t,"data"),s=_(n,"data");o!==s&&e.data.set(s)}if(E(n,"state")){let o=_(t,"state"),s=_(n,"state");o!==s&&e.state.set(s)}if(E(n,"mapTypes")){let o=_(t,"mapTypes"),s=_(n,"mapTypes");
1o!==s&&(e.removeAllMapTypes(),s.forEach(t=>e.addMapType(t)))}O(e,r,o),C(a,s,e)}static unmountControl(e,t){let{instanceRef:n,parent:o,_events:s}=b(t);null!==e&&(Object.keys(s).forEach(t=>j(e,t,s[t])),o.controls&&"function"==typeof o.controls.remove?o.controls.remove(e):o.remove&&"function"==typeof o.remove&&o.remove(e),C(n))}}k(c(d(e=>o.createElement(S,s({},e,{name:"Button"})),!0,["control.Button"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"FullscreenControl"})),!0,["control.FullscreenControl"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"GeolocationControl"})),!0,["control.GeolocationControl"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"ListBox"})),!0,["control.ListBox"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"ListBoxItem"})),!0,["control.ListBoxItem"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"RouteButton"})),!0,["control.RouteButton"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"RouteEditor"})),!0,["control.RouteEditor"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"RoutePanel"})),!0,["control.RoutePanel"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"RulerControl"})),!0,["control.RulerControl"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"SearchControl"})),!0,["control.SearchControl"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"TrafficControl"})),!0,["control.TrafficControl"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"TypeSelector"})),!0,["control.TypeSelector"]))),k(c(d(e=>o.createElement(S,s({},e,{name:"ZoomControl"})),!0,["control.ZoomControl"])));class D extends o.Component{constructor(){super(),this.state={instance:null},this.instance=null}componentDidMount(){let e=D.mountObject(this.props.ymaps.Clusterer,this.props);this.instance=e,this.setState({instance:e})}componentDidUpdate(e){null!==this.state.instance&&D.updateObject(this.instance,e,this.props)}componentWillUnmount(){D.unmountObject(this.instance,this.props)}render(){return o.createElement(i.Provider,{value:this.state.instance},this.props.children)}static mountObject(e,t){let{instanceRef:n,parent:o,_events:s}=b(t),r=new e(_(t,"options"));if(Object.keys(s).forEach(e=>v(r,e,s[e])),o.geoObjects&&"function"==typeof o.geoObjects.add)o.geoObjects.add(r);else{if(!o.add||"function"!=typeof o.add)throw Error("No parent found to mount Clusterer");o.add(r)}return C(null,n,r),r}static updateObject(e,t,n){let{_events:o,instanceRef:s}=b(n),{_events:r,instanceRef:a}=b(t);if(E(n,"options")){let o=_(t,"options"),s=_(n,"options");o!==s&&e.options.set(s)}O(e,r,o),C(a,s,e)}static unmountObject(e,t){let{instanceRef:n,parent:o,_events:s}=b(t);null!==e&&(Object.keys(s).forEach(t=>j(e,t,s[t])),o.geoObjects&&"function"==typeof o.geoObjects.remove?o.geoObjects.remove(e):o.remove&&"function"==typeof o.remove&&o.remove(e),C(n))}}var T=k(c(d(D,!0,["Clusterer"])));class U extends o.Component{constructor(){super(),this.state={instance:null}}componentDidMount(){let e=U.mountObject(this.props.ymaps.ObjectManager,this.props);this.instance=e,this.setState({instance:e})}componentDidUpdate(e){null!==this.instance&&U.updateObject(this.instance,e,this.props)}componentWillUnmount(){U.unmountObject(this.instance,this.props)}render(){return null}static mountObject(e,t){let{instanceRef:n,parent:o,_events:s}=b(t),r=_(t,"options",{}),a=_(t,"features",{}),i=_(t,"filter",null),c=_(t,"objects",{}),l=_(t,"clusters",{}),u=new e(r);if(u.add(a||[]),u.setFilter(i),u.objects.options.set(c),u.clusters.options.set(l),Object.keys(s).forEach(e=>v(u,e,s[e])),o.geoObjects&&"function"==typeof o.geoObjects.add)o.geoObjects.add(u);else{if(!o.add||"function"!=typeof o.add)throw Error("No parent found to mount ObjectManager");o.add(u)}return C(null,n,u),u}static updateObject(e,t,n){let{_events:o,instanceRef:s}=b(n),{_events:r,instanceRef:a}=b(t);if(E(n,"options")){let o=_(t,"options"),s=_(n,"options");o!==s&&e.options.set(s)}if(E(n,"objects")){let o=_(t,"objects"),s=_(n,"objects");o!==s&&e.objects.options.set(s)}if(E(n,"clusters")){let o=_(t,"clusters"),s=_(n,"clusters");o!==s&&e.clusters.options.set(s)}if(E(n,"filter")){let o=_(t,"filter"),s=_(n,"filter");o!==s&&e.setFilter(s)}if(E(n,"features")){let o=_(t,"features"),s=_(n,"features");o!==s&&(e.remove(o),e.add(s))}O(e,r,o),C(a,s,e)}static unmountObject(e,t){let{instanceRef:n,parent:o,_events:s}=b(t);
1null!==e&&(Object.keys(s).forEach(t=>j(e,t,s[t])),o.geoObjects&&"function"==typeof o.geoObjects.remove?o.geoObjects.remove(e):o.remove&&"function"==typeof o.remove&&o.remove(e),C(n))}}k(c(d(U,!0,["ObjectManager"])));class B extends o.Component{constructor(){super(),this.state={instance:null},this.instance=null}componentDidMount(){let{name:e,ymaps:t,dangerZone:n}=this.props,o=B.mountObject(n&&"function"==typeof n.modifyConstructor?n.modifyConstructor(t[e]):t[e],this.props);this.instance=o,this.setState({instance:o})}componentDidUpdate(e){null!==this.instance&&B.updateObject(this.instance,e,this.props)}componentWillUnmount(){B.unmountObject(this.instance,this.props)}render(){return null}static mountObject(e,t){let{instanceRef:n,parent:o,_events:s}=b(t),r=new e(_(t,"geometry"),_(t,"properties"),_(t,"options"));if(Object.keys(s).forEach(e=>v(r,e,s[e])),o&&o.geoObjects&&"function"==typeof o.geoObjects.add)o.geoObjects.add(r);else{if(!o||!o.add||"function"!=typeof o.add)throw Error(`No parent found to mount ${t.name}`);o.add(r)}return C(null,n,r),r}static updateObject(e,t,n){let{_events:o,instanceRef:s}=b(n),{_events:r,instanceRef:a}=b(t);if(E(n,"geometry")){let o=_(t,"geometry",{}),s=_(n,"geometry",{});Array.isArray(s)&&s!==o?Array.isArray(s[0])&&"number"==typeof s[1]?(e.geometry.setCoordinates(s[0]),e.geometry.setRadius(s[1])):e.geometry.setCoordinates(s):"object"==typeof s&&(s.coordinates!==o.coordinates&&e.geometry.setCoordinates(s.coordinates),s.radius!==o.radius&&e.geometry.setRadius(s.radius))}if(E(n,"properties")){let o=_(t,"properties"),s=_(n,"properties");o!==s&&e.properties.set(s)}if(E(n,"options")){let o=_(t,"options"),s=_(n,"options");o!==s&&e.options.set(s)}O(e,r,o),C(a,s,e)}static unmountObject(e,t){let{instanceRef:n,parent:o,_events:s}=b(t);null!==e&&(Object.keys(s).forEach(t=>j(e,t,s[t])),o.geoObjects&&"function"==typeof o.geoObjects.remove?o.geoObjects.remove(e):o.remove&&"function"==typeof o.remove&&o.remove(e),C(n))}}let L={modifyConstructor(e){function t(t,n,o){e.call(this,{geometry:t,properties:n},o)}return t.prototype=e.prototype,t}};k(c(d(e=>o.createElement(B,s({},e,{name:"GeoObject",dangerZone:L})),!0,["GeoObject"])));var N=k(c(d(e=>o.createElement(B,s({},e,{name:"Circle"})),!0,["Circle"]))),A=k(c(d(e=>o.createElement(B,s({},e,{name:"Placemark"})),!0,["Placemark"]))),I=k(c(d(e=>o.createElement(B,s({},e,{name:"Polygon"})),!0,["Polygon"])));k(c(d(e=>o.createElement(B,s({},e,{name:"Polyline"})),!0,["Polyline"]))),k(c(d(e=>o.createElement(B,s({},e,{name:"Rectangle"})),!0,["Rectangle"])))},87727:function(e,t,n){n.r(t),n.d(t,{SimpleMap:function(){return d}});var o=n(85893),s=n(15923),r=n(10738),a=n(38439),i=n(61120),c=n.n(i),l=n(67294);let u={coordorder:"latlong",load:"package.full",lang:"ru_RU"},p={checkZoomRange:!0},d=e=>{let t=(0,l.useRef)(),n=(0,l.useRef)(),i=(0,l.useRef)(null),d=(0,l.useRef)(0),m=(0,l.useCallback)(async()=>{if(!t.current)return;let e=t.current,o=e.geoObjects.getBounds()||[];if((0,s.Of)(o)){await e.setBounds(o,p);let t=e.getZoom();e.setZoom(t-3),clearInterval(n.current)}},[]);async function f(){if(null===i.current)return;let e=await c()(i.current,{allowTaint:!0});i.current.innerHTML="",i.current.appendChild(e)}return(0,l.useEffect)(()=>(n.current=setInterval(()=>{d.current>=100?clearInterval(n.current):(m(),d.current++)},100),()=>clearInterval(n.current)),[m]),(0,l.useEffect)(()=>(window.addEventListener("beforeprint",f,{once:!0}),()=>window.removeEventListener("beforeprint",f)),[]),(0,o.jsx)(a.E.div,{ref:i,initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.2},className:"w-full h-full relative print-map",children:(0,o.jsx)(r.Yy,{preload:!0,query:u,children:(0,o.jsx)(r.D5,{width:"100%",height:"100%",instanceRef:t,defaultState:{center:[55.7887,49.1221],controls:[],zoom:15},options:{suppressMapOpenBlock:!0},children:e.features.map((e,t)=>(0,o.jsx)(r.mg,{className:"outline-none",geometry:[e],options:{strokeColor:"#000000",strokeWidth:3,fill:!1,opacity:1,zIndex:1}},JSON.stringify(e)+t))})})})}}}]);

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.