1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2197],{58671:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return a(47753)}])},41948:function(e,s,a){"use strict";a.d(s,{Z:function(){return v}});var c=a(85893),t=a(11163),l=a(67294),r=a(60174),i=a(92352),n=a(18861),o=a(14416),u=a(67634),d=e=>{let{email:s,formValid:a,errorText:t}=e.form,{subscribersCount:l}=e,r=a||0===s.length?"":"is-subscribe-form-error";return(0,c.jsxs)("form",{className:"subscribe-form ".concat(r," ").concat(a?"is-subscribe-form-success":""),children:[(0,c.jsxs)("div",{className:"subscribe-field",children:[(0,c.jsx)("input",{type:"email",name:"email",className:"subscribe-input",placeholder:"ÐдÑÐµÑ Ñл. поÑÑÑ",value:s,onBlur:e.onBlur,onChange:e.handleChange}),(0,c.jsx)("button",{className:"subscribe-submit",onClick:e.sendForm,children:(0,c.jsx)("svg",{className:"icon icon-arrow-next",children:(0,c.jsx)("use",{xlinkHref:"#icon-arrow-next"})})}),(0,c.jsx)("div",{className:"subscribe-error",children:t})]}),(0,c.jsx)("div",{className:"subscribe-counter",children:l||"Уже подпиÑалиÑÑ 484 208 Ñеловек"})]})},h=e=>(0,c.jsxs)("div",{className:"subscribe-message",children:[(0,c.jsx)("div",{className:"subscribe-message__title",children:"ÐодпиÑка оÑоÑмлена"}),(0,c.jsx)("div",{className:"subscribe-message__desc",children:"ÐÐ»Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð¿Ð¾Ð´Ð¿Ð¸Ñки пеÑейдиÑе по\xa0ÑÑÑлке из\xa0пиÑÑма"}),(0,c.jsx)("div",{className:"subscribe-message__link",onClick:e.clearForm,children:"ÐоÑово"})]}),m=(0,o.$j)(e=>{let{subscribe:s}=e;return{...s}},null)(e=>{let{subscribersCount:s}=e,[a,t]=(0,l.useState)(""),[r,i]=(0,l.useState)(!0),[n,o]=(0,l.useState)(!1),[m,_]=(0,l.useState)("ÐепÑавилÑно набÑан адÑеÑ"),b=["gmail.com","google.com","yahoo.com","yahoo.co.uk","yahoo.co.jp","hotmail.com","hotmail.co.uk","outlook.com","outlook.co.uk","live.com","live.co.uk","msn.com"],p=(0,l.useCallback)(e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/.test(e),[]),j=(0,l.useCallback)(e=>{var s;if(!e)return!1;let a=null===(s=e.split("@")[1])||void 0===s?void 0:s.toLowerCase();return b.includes(a)},[]),x=(0,l.useCallback)(()=>{let e=p(a),s=j(a);e?s?(i(!1),_("ÐожалÑйÑÑа, ÑкажиÑе поÑÑÑ Ð´ÑÑгого пÑовайдеÑа")):(i(!0),_("")):(i(!1),_("ÐепÑавилÑно набÑан адÑеÑ"))},[a,p,j]),v=(0,l.useCallback)(e=>{e.preventDefault();let s=j(a);r&&0!==a.length&&!s?fetch("".concat(u.T5,"v1/subscription/subscribe"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({email:a})}).then(e=>e.json()).then(e=>{e.error&&_(e.error),e.status&&"success"===e.status&&o(!0)}).catch(e=>{console.log(e)}):s&&(i(!1),_("ÐожалÑйÑÑа, ÑкажиÑе поÑÑÑ Ð´ÑÑгого пÑовайдеÑа"))},[a,r,j]),N=(0,l.useCallback)(()=>{t(""),i(!1),o(!1)},[]),f=(0,c.jsx)(h,{clearForm:N}),g=(0,c.jsx)(d,{subscribersCount:s,form:{email:a,formValid:r,isFormSent:n,errorText:m},handleChange:e=>{let{name:s,value:a}=e.currentTarget;"email"===s&&t(a)},onBlur:x,sendForm:v});return(0,c.jsxs)("div",{className:"subscribe",children:[(0,c.jsx)("div",{className:"subscribe-title",children:"РаÑÑÑлка Ñ Ð½Ð¾Ð²Ð¾ÑÑÑми ÑайÑа"}),n?f:g]})}),_=a(93967),b=a.n(_),p=a(49971),j=a.n(p);let x=()=>(0,c.jsx)("div",{className:j().subscribe,children:(0,c.jsx)(m,{})});var v=()=>{let e=(0,t.useRouter)(),{pathname:s}=e,a=[{path:"/appeal",name:"ÐбÑаÑение"},{path:"/blog",name:"ÐиÑнÑй блог"},{path:"/districts",name:"ÐÑогÑамма \xabÐой Ñайон\xbb"},{path:"/strategy",name:"СÑÑаÑÐµÐ³Ð¸Ñ 2030"},{path:"/achievements/bestcity",oldpath:"/achievements",name:"ÐÑÑÑий гоÑод земли"},{path:"/projects",name:"ÐÑоекÑÑ",subpaths:["/video/9-may","/metro","/cards","/new-year-moscow-2022","/team"]},{path:"/biography",name:"ÐиогÑаÑиÑ"}],o=e=>{if(e.hasOwnProperty("subpaths")){let a=!1;
1return e.subpaths.forEach(e=>{s.includes(e)&&(a=!0)}),s===e.path||s.includes("".concat(e.path,"/"))||s.includes("".concat(e.oldpath,"/"))||a}return s===e.path||s.includes("".concat(e.path,"/"))||s.includes("".concat(e.oldpath,"/"))},u=(0,l.useMemo)(()=>a.map(e=>(0,c.jsx)("li",{className:j().elem,children:(0,c.jsx)(i.Z,{to:e.path,className:b()(j().link,{[j().active]:o(e),[j().activeSublink]:o(e)&&e.path!==s}),children:e.name})},e.path)),[]),d=()=>{"/"!==s?e.push("/"):(0,r.FK)(".home")};return(0,c.jsx)("footer",{className:j().footer,children:(0,c.jsx)("div",{className:"container",children:(0,c.jsxs)("div",{className:j().container,children:[(0,c.jsxs)("div",{className:j().left,children:[(0,c.jsx)("div",{className:j().slogan,children:(0,c.jsx)("a",{onClick:()=>d(),children:(0,c.jsxs)("div",{className:j().control,children:["СеÑгей СобÑнин ",(0,c.jsx)("span",{children:"лиÑнÑй блог"})]})})}),(0,c.jsx)("nav",{className:j().nav,children:(0,c.jsx)("ul",{className:j().list,children:u})})]}),(0,c.jsxs)("div",{className:j().center,children:[(0,c.jsxs)("div",{className:j().social,children:[(0,c.jsx)("div",{className:j().title,children:"ÐÑиÑиалÑнÑе ÑоÑÑеÑи"}),(0,c.jsx)("div",{className:j().list,children:(0,c.jsx)(n.Z,{type:"official"})})]}),(0,c.jsxs)("div",{className:j().social,children:[(0,c.jsx)("div",{className:j().title,children:"ÐиÑнÑй блог"}),(0,c.jsx)("div",{className:j().list,children:(0,c.jsx)(n.Z,{})})]})]}),(0,c.jsx)("div",{className:j().right,children:(0,c.jsx)(x,{})})]})})})}},47753:function(e,s,a){"use strict";a.r(s);var c=a(85893),t=a(67294),l=a(41948),r=a(41664),i=a.n(r),n=a(11163),o=a(14416),u=a(20354);s.default=()=>{let[e,s]=(0,t.useState)(""),a=(0,n.useRouter)(),r=(0,o.I0)();(0,t.useEffect)(()=>{d(),r((0,u.c)(!0))},[r]);let d=()=>{document.querySelectorAll(".header-nav__link").forEach(e=>e.classList.remove("active"))},h=c=>{c.preventDefault(),a.push("/search?q=".concat(e)),s(""),document.body.classList.add("is-preload-page")};return(0,c.jsxs)("div",{className:"page-block",children:[(0,c.jsx)("div",{className:"page-404",children:(0,c.jsxs)("div",{className:"page-404__block",children:[(0,c.jsxs)("h1",{children:["ÐÑибка 404 ",(0,c.jsx)("br",{}),"ÑÑÑаниÑа не найдена"]}),(0,c.jsxs)("p",{children:["ÐеÑейдиÑе на ",(0,c.jsx)(i(),{href:"/",children:"главнÑÑ ÑÑÑаниÑÑ"}),(0,c.jsx)("br",{}),"или воÑполÑзÑйÑеÑÑ Ð¿Ð¾Ð¸Ñком"]}),(0,c.jsx)("form",{onSubmit:h,className:"page-404__form",children:(0,c.jsxs)("div",{className:"page-404__field",children:[(0,c.jsx)("input",{type:"text",className:"page-404__input",name:"q",placeholder:"Я иÑÑ",value:e,onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),h(e))}}),(0,c.jsx)("button",{className:"page-404__submit",children:(0,c.jsx)("svg",{className:"icon icon-search",children:(0,c.jsx)("use",{xlinkHref:"#icon-search"})})})]})})]})}),(0,c.jsx)(l.Z,{})]})}},49971:function(e){e.exports={subscribe:"Footer_subscribe__TejEo","subscribe-counter"
1:"Footer_subscribe-counter__aSG9_","subscribe-message__desc":"Footer_subscribe-message__desc__RhnaE",footer:"Footer_footer__OQpsI",container:"Footer_container__pP_Gj",left:"Footer_left__WK5he",right:"Footer_right__RJNu2",slogan:"Footer_slogan__8EzD3",control:"Footer_control__rcz4U",nav:"Footer_nav__ok3sF",list:"Footer_list___LUas",elem:"Footer_elem__Bhe_g",link:"Footer_link__dXOUc",active:"Footer_active__MazNb",activeSublink:"Footer_activeSublink__dB1U7",center:"Footer_center__idz_h",social:"Footer_social__8eyG7",title:"Footer_title__LlqE2"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=58671)}),_N_E=e.O()}]);
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.