PageSourceSearch

https://pogoda-v-gorode.ru/_next/static/chunks/app/forecast/%5Bcountry%5D/page-f6bb7467e3a27bef.js

js pogoda-v-gorode.ru collected 2026-10-05 00:12:24 UTC 7,360 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[733],{1072:(e,l,s)=>{"use strict";s.d(l,{CountryPage:()=>x});var t=s(5155);s(4437),s(6880);var r=s(4378),a=s(2619),n=s.n(a),i=s(3834);let c=e=>{let{Name:l,NameRU:s,weather_code:r,temperature:a,country:c}=e;return(0,t.jsx)(n(),{href:"/forecast/".concat(c,"/").concat(l),children:(0,t.jsxs)("div",{className:"break-inside-avoid flex flex-row items-center",children:[(0,t.jsx)("span",{className:"font-normal grow",children:s}),(0,t.jsx)("div",{className:"weather-row-status",children:(0,i.h)(r)}),(0,t.jsxs)("span",{className:"ml-[1rem] font-[700]",children:[function(e){return null==e?"":e>0?"+".concat(e):"".concat(e)}(a),"\xb0"]})]})})};var m=s(2115),o=s(5932),u=s(2459),d=s(5023),h=s(8425);let x=e=>{var l,s,a,n,i,x,v,j,N,f,b,p,y,w,g,_,C;let{country:E,data:k}=e,[L,U]=(0,m.useState)(""),R=(null==(l=u.f.find(e=>e.name.toLowerCase().replaceAll(" ","-")===decodeURIComponent(E)))?void 0:l.name_ru)||decodeURIComponent(E),S=Array.isArray(null==k?void 0:k.cities)?[...k.cities]:[],A=Array.isArray(null==k?void 0:k.capital)?k.capital[0]:null;S.length&&S.sort((e,l)=>{var s,t;return((null==e||null==(s=e.city)?void 0:s.NameRU)||"").localeCompare((null==l||null==(t=l.city)?void 0:t.NameRU)||"")});let P=(0,m.useMemo)(()=>{let e=L?S.filter(e=>{var l;return((null==e||null==(l=e.city)?void 0:l.NameRU)||"").toLowerCase().startsWith(L.toLowerCase())}):S;if(!e.length)return[];let l=[],s=null;for(let r of e){var t;let e=((null==r||null==(t=r.city)?void 0:t.NameRU)||"")[0];e&&e!==s&&(l.push(e),s=e),l.push(r)}return l},[S,L]);return k?(0,t.jsxs)("div",{className:"mt-[5rem] context-box",children:[(0,t.jsx)(h.r,{country_ru:R}),(0,t.jsx)("h1",{className:"font-[700] mb-[1rem] mt-[1rem] sm:mt-0",children:R}),(null==A?void 0:A.Lat)!=null&&(null==A?void 0:A.Lon)!=null?(0,t.jsx)(r.p,{lat:A.Lat,lon:A.Lon,zoom:5}):(0,t.jsxs)("div",{className:"mt-[1rem]",children:[(0,t.jsx)(o.E,{width:"100%",height:"20rem"}),(0,t.jsx)("div",{className:"mt-[0.5rem] text-sm opacity-70",children:"Нет координат столицы (capital[0])."})]}),(0,t.jsxs)("div",{className:"flex flex-row flex-wrap gap-[1rem] mt-[1rem] sm:mt-[3rem]",children:[(0,t.jsxs)("div",{className:"about-country",children:[(0,t.jsxs)("div",{className:"about-header",children:[(0,t.jsx)(d.OV,{}),"О стране"]}),null!=(f=null==k||null==(s=k.country)?void 0:s.about)?f:""]}),(0,t.jsxs)("div",{className:"about-country",children:[(0,t.jsxs)("div",{className:"about-header",children:[(0,t.jsx)(d.Ab,{}),"Виза и прямые рейсы"]}),null!=(b=null==k||null==(a=k.country)?void 0:a.visa)?b:""]}),(0,t.jsxs)("div",{className:"about-country",children:[(0,t.jsxs)("div",{className:"about-header",children:[(0,t.jsx)(d.gL,{}),"Сезон"]}),null!=(p=null==k||null==(n=k.country)?void 0:n.season)?p:""]}),(0,t.jsxs)("div",{className:"about-country",children:[(0,t.jsxs)("div",{className:"about-header",children:[(0,t.jsx)(d.hp,{}),"Климат"]}),null!=(y=null==k||null==(i=k.country)?void 0:i.climate)?y:""]})]}),(0,t.jsx)("div",{className:"city-input-wrapper mt-[4rem]",children:(0,t.jsx)("input",{id:"search-input",placeholder:"Введите город",value:L,onChange:e=>{U(e.target.value)}})}),(0,t.jsxs)("div",{className:"columns-auto mt-[2rem]",children:[0===P.length&&(0,t.jsx)("div",{className:"opacity-70",children:0===S.length?"Нет списка городов по этой стране.":"Ничего не найдено."}),P.map((e,l)=>{var s,r,a,n;if("string"==typeof e)return(0,t.jsx)("div",{className:"font-[700]",children:e},l);let i=(null==e||null==(s=e.city)?void 0:s.Name)||"",m=(null==e||null==(r=e.city)?void 0:r.NameRU)||"",o=(null==e||null==(a=e.weather)?void 0:a.weather_code)||"",u=null==e||null==(n=e.weather)?void 0:n.temperature;return(0,t.jsx)(c,{Name:i.toLowerCase().replaceAll(" ","-"),NameRU:m,weather_code:o?o[0].toUpperCase()+o.slice(1):"",temperature:Number.isFinite(u)?Math.round(u):"",country:E},l)}),(0,t.jsx)("div",{className:"h-[2rem] w-[100%]"}),(0,t.jsx)("div",{className:"h-[2rem] w-[100%]"}),(0,t.jsx)("div",{className:"h-[2rem] w-[100%]"})]}),(0,t.jsxs)("div",{className:"mt-[5rem] max-w-[60rem] mx-auto",children:[(0,t.jsx)("div",{className:"font-[700]",children:"О стране"}),(0,t.jsx)("div",{className:"mt-[1rem]",children:null!=(w=null==k||null==(x=k.country)?void 0:x.about_full)?w:""}),(0,t.jsx)("div",{className:"body-1 mt-[2rem] font-[700]",children:"Виза и прямые рейсы"}),(0,t.jsx)("div",{className:"mt-[1rem]",children:null!=(g=null==k||null==(v=k.country)?void 0:v.visa_full)?g:""}),(0,t.jsx)("div",{className:"mt-[2rem] font-[700]",children:"Сезон"}),(0,t.jsx)("div",{className:"mt-[1rem]",children:null!=(_=null==k||null==(j=k.country)?void 0:j.season_full)?_:""}),(0,t.jsx)("div",{className:"mt-[2rem] font-[700]",children:"Климат"}),(0,t.jsx)("div",{className:"mt-[1rem]",children:null!=(C=null==k||null==(N=k.country)?void 0:N.climate_full)?C:""})]})]}):(0,t.jsxs)("div",{className:"mt-[5rem] context-box",children:[(0,t.jsx)(h.r,{country_ru:R}),(0,t.jsx)("h1",{className:"font-[700] mb-[1rem] mt-[1rem] sm:mt-0",children:R}),(0,t.jsx)(o.E,{width:"100%",height:"20rem"}),(0,t.jsxs)("div",{className:"flex flex-row gap-[1rem] mt-[1rem] mb-[1rem]",children:[(0,t.jsx)(o.E,{width:"100%",height:"10rem"}),(0,t.jsx)(o.E,{width:"100%",height:"10rem"}),(0,t.jsx)(o.E,{width:"100%",height:"10rem"})]}),(0,t.jsx)(o.E,{width:"100%",height:"30rem"})]})}},3006:(e,l,s)=>{"use strict";s.d(l,{Scroll:()=>a});var t=s(2115),r=s(63);let a=()=>{let e=(0,r.usePathname)();return(0,t.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}},5959:(e,l,s)=>{"use strict";s.d(l,{v:()=>n});var t=s(2115);let r=e=>{let l,s=new Set,t=(e,t)=>{let r="function"==typeof e?e(l):e;if(!Object.is(r,l)){let e=l;l=(null!=t?t:"object"!=typeof r||null===r)?r:Object.assign({}
1,l,r),s.forEach(s=>s(l,e))}},r=()=>l,a={setState:t,getState:r,getInitialState:()=>n,subscribe:e=>(s.add(e),()=>s.delete(e))},n=l=e(t,r,a);return a},a=e=>{let l=(e=>e?r(e):r)(e),s=e=>(function(e,l=e=>e){let s=t.useSyncExternalStore(e.subscribe,t.useCallback(()=>l(e.getState()),[e,l]),t.useCallback(()=>l(e.getInitialState()),[e,l]));return t.useDebugValue(s),s})(l,e);return Object.assign(s,l),s},n=e=>e?a(e):a},6050:(e,l,s)=>{Promise.resolve().then(s.t.bind(s,2619,23)),Promise.resolve().then(s.bind(s,1072)),Promise.resolve().then(s.t.bind(s,2899,23)),Promise.resolve().then(s.bind(s,4886)),Promise.resolve().then(s.bind(s,3006))},6880:()=>{},8425:(e,l,s)=>{"use strict";s.d(l,{r:()=>n});var t=s(5155);s(4437);var r=s(2619),a=s.n(r);let n=e=>{let{search:l=!1,country:s="",country_ru:r="",city:n="",date:i=""}=e;return(0,t.jsxs)("span",{className:"text-[#00000070] hidden sm:block",children:[(0,t.jsx)(a(),{href:"/",children:"Погода в мире"}),n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a(),{href:"/forecast/".concat(s),children:[" - ",r," "]})," - ",n,(0,t.jsxs)("span",{className:"font-[500] text-black",children:[" - Сегодня, ",i," "]})]}),r&&!n&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("span",{className:"font-[500] text-black",children:[" - ",r," "]})}),l&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{className:"text-black",children:" - Поиск - Погода в мире "})})]})}}},e=>{e.O(0,[473,439,27,660,176,224,85,441,255,358],()=>e(e.s=6050)),_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.