PageSourceSearch

https://powiempolsce.pl/_next/static/chunks/98.e66e7d8ad6ef77a1.js

js powiempolsce.pl collected 2026-10-02 19:02:53 UTC 3,301 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="2a575074-b4b3-4719-98ed-d56b04f10613",e._sentryDebugIdIdentifier="sentry-dbid-2a575074-b4b3-4719-98ed-d56b04f10613")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98],{60098:function(e,s,n){n.r(s),n.d(s,{default:function(){return o}});var a=n(85893),t=n(39826),i=n.n(t),c=n(67294),l=n(90638),d=n.n(l);let r=d()(()=>n.e(1022).then(n.bind(n,21022)),{ssr:!1});function o(e){let{country:s}=e,[n,t]=(0,c.useState)([]),[l,d]=(0,c.useState)({date:"23.01.2022 godz. 12:00",total_cases:4518218,new_cases:34123,total_deaths:103844,new_deaths:25,total_vaccinations:null,new_vaccinations:null}),[o,h]=(0,c.useState)();(0,c.useEffect)(()=>{s?h({value:s.id,label:s.name}):h({value:114,label:"Polska"})},[s]),(0,c.useEffect)(()=>{(async function(){let e;let s=await fetch("".concat("https://adm.powiempolsce.pl","/api/covid/countries/"));if(s.ok){e=await s.json();let n=e.map(e=>({value:e.id,label:e.name}));t(n)}})()},[]);let u=async e=>{let s=await fetch("".concat("https://adm.powiempolsce.pl","/api/covid/countries/").concat(e));s.ok&&d(await s.json())};return((0,c.useEffect)(()=>{o&&u(o.value)},[o]),(0,c.useEffect)(()=>{var e;let s=document.createElement("p");s.innerHTML="Zmień",null===(e=document.querySelector(".dropdown__indicator"))||void 0===e||e.insertBefore(s,document.querySelector(".dropdown__indicator").firstChild)},[]),l)?(0,a.jsxs)("div",{className:i().covidWidget,id:"covid",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{children:"KORONAWIRUS"}),(0,a.jsx)("div",{className:"d-flex align-items-center",children:(0,a.jsx)(r,{value:o,onChange:h,options:n,className:"dropdown",classNamePrefix:"dropdown",menuPortalTarget:document.body})})]}),(0,a.jsx)("p",{children:"Statystyki z dnia:"}),(0,a.jsx)("p",{children:l.date})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{children:"Zarażonych"}),l.new_cases&&l.total_cases?(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("h3",{children:(0,a.jsxs)("strong",{children:[" +",l.new_cases," "]})}),(0,a.jsxs)("p",{className:"ms-2",children:["/ ",l.total_cases]})]}):(0,a.jsx)("div",{className:"d-flex align-items-center",children:(0,a.jsx)("h3",{children:" - "})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{children:"Zaszczepionych"}),l.new_vaccinations&&l.total_vaccinations?(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("h3",{children:(0,a.jsxs)("strong",{children:[" +",l.new_vaccinations," "]})}),(0,a.jsxs)("p",{className:"ms-2",children:["/ ",l.total_vaccinations]})]}):(0,a.jsx)("div",{className:"d-flex align-items-center",children:(0,a.jsx)("h3",{children:" - "})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{children:"Zmarło "}),l.new_deaths&&l.total_deaths?(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("h3",{children:(0,a.jsxs)("strong",{children:[" +",l.new_deaths," "]})}),(0,a.jsxs)("p",{className:"ms-2",children:["/ ",l.total_deaths]})]}):(0,a.jsx)("div",{className:"d-flex align-items-center",children:(0,a.jsx)("h3",{children:" - "})})]})]}):null}}}]);

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.