PageSourceSearch

https://powiempolsce.pl/_next/static/chunks/9874.b9b8d6617e28205f.js

js powiempolsce.pl collected 2026-10-02 19:03:08 UTC 2,677 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="57d16e80-89b7-40a6-9197-667803ec1602",e._sentryDebugIdIdentifier="sentry-dbid-57d16e80-89b7-40a6-9197-667803ec1602")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9874],{89874:function(e,t,s){s.r(t),s.d(t,{default:function(){return l}});var a=s(85893),n=s(67294),i=s(39826),r=s.n(i);let c=e=>{let t=new Date,s=t.getTime(),a=6e4*t.getTimezoneOffset();return new Date(s+a+1e3*e).toLocaleTimeString()};function l(e){var t;let{place:s,organization:i}=e,[l,d]=(0,n.useState)(new Date),[o,u]=(0,n.useState)(),[h,m]=(0,n.useState)("Warszawa"),[p,g]=(0,n.useState)(!1),f=async e=>{if(!h)return;e&&e.preventDefault();let t=await fetch("https://api.openweathermap.org/data/2.5/weather?q=".concat(h,"&units=metric&appid=7ba667443ba1b59baf8f64c75245480b&lang=pl"));t.ok&&(u(await t.json()),g(!1))};return(0,n.useEffect)(()=>{s&&m(s.place),i&&m(i.address[0].city)},[]),(0,n.useEffect)(()=>{f()},[h]),(0,a.jsxs)("div",{className:r().weather,children:[(0,a.jsxs)("h3",{children:["Pogoda na dziś",(0,a.jsxs)("span",{className:"text-grey ms-2",onClick:()=>g(!p),children:["(",o&&o.name,")"]})]}),(0,a.jsxs)("p",{className:"mb-3 text-grey",children:[["Nd","Pn","Wt","Śr","Czw","Pt","Sb"][l.getDay()],". ",l.getDate()+"."+(l.getMonth()+1)+"."+l.getFullYear()+" ","godz. ",o?c(o.timezone).substr(0,5):""]}),p&&(0,a.jsx)("div",{className:"d-flex align-items-center justify-content-center",children:(0,a.jsxs)("form",{onSubmit:f,children:[(0,a.jsx)("input",{type:"text",name:"city",placeholder:"Miasto",onChange:e=>m(e.target.value)}),(0,a.jsx)("input",{type:"submit",value:"Sprawdź"})]})}),o&&(0,a.jsxs)("div",{className:r().weatherResults,children:[(t=o.weather[0].icon,(0,a.jsx)("div",{className:"".concat(r().imgDiv," d-flex justify-content-center align-items-center"),children:(0,a.jsx)("img",{src:"https://openweathermap.org/img/wn/".concat(t,"@2x.png"),alt:"Prognoza pogody"})})),(0,a.jsxs)("div",{className:"mx-4",children:[(0,a.jsxs)("h2",{children:[Math.round(o.main.temp),"\xb0C"]}),(0,a.jsx)("p",{className:"text-grey",style:{textTransform:"capitalize"},children:o.weather[0].description})]}),(0,a.jsxs)("div",{style:{minWidth:"130px"},children:[(0,a.jsxs)("p",{className:"text-grey",children:["Wilgotność: ",o.main.humidity,"%"]}),(0,a.jsxs)("p",{className:"text-grey",children:["Ciśnienie: ",o.main.pressure," hPa"]}),(0,a.jsxs)("p",{className:"text-grey",children:["Wiatr: ",Math.round(3.6*o.wind.speed)," km/h"]})]})]})]})}}}]);

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.