PageSourceSearch

https://reportermagazin.cz/_next/static/chunks/pages/offline/vydani/%5B%5B...slug%5D%5D-ec16abd14daeb185.js

js reportermagazin.cz collected 2026-10-02 07:04:49 UTC 4,680 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[514],{163:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/offline/vydani/[[...slug]]",function(){return n(1510)}])},4941:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(5893);n(7294);var l=n(1058),i=n(1326),s=n(1163),a=n(7466),r=n(4931),u=n(5675),d=n.n(u),c=n(447),v=n(8114);function m(){let e=(0,s.useRouter)(),t=(0,r.s)(),n=(0,c.yR)(async()=>{try{return await a.db.posts.count()}catch(e){return 0}},[]),u=async()=>{try{if(t&&await (0,v.X)()&&await e.push("/"))return}catch(e){}window.location.reload()};return(0,o.jsx)("div",{className:"flex min-h-screen",children:(0,o.jsxs)("div",{className:"m-auto max-w-[400px] px-8 text-center",children:[(0,o.jsx)(d(),{src:"/assets/images/icons/offline.svg",className:"mx-auto",width:64,height:64,alt:"Offline"}),(0,o.jsx)("h3",{className:"mt-6 font-mercury text-xl font-semibold",children:"Jste offline"}),(0,o.jsx)("p",{className:"mt-2 text-base",children:"Pros\xedm zkontrolujte svoje internetov\xe9 připojen\xed"}),(0,o.jsx)("div",{className:"mx-auto mt-[20px] flex w-full max-w-[280px] flex-col gap-[16px]",children:n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"overflow-hidden rounded-full",children:(0,o.jsx)(l.Y,{href:"/ulozene/#downloads",title:"Zobrazit stažen\xfd obsah",type:i.L.Primary,fullWidth:!0})}),(0,o.jsx)("div",{className:"overflow-hidden rounded-full",children:(0,o.jsx)(l.Y,{onClick:u,title:"Zkusit znovu",type:i.L.Transparent,fullWidth:!0})})]}):(0,o.jsx)("div",{className:"overflow-hidden rounded-full",children:(0,o.jsx)(l.Y,{onClick:u,title:"Zkusit znovu",type:i.L.Primary,fullWidth:!0})})})]})})}},1510:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var o=n(5893),l=n(3666),i=n(1163),s=n(9105),a=n(9008),r=n.n(a),u=n(7294),d=n(8016),c=n(4941),v=n(903);let m=e=>{let t=e.split("?")[0].match(/^\/offline\/vydani\/([^/]+)/);if(null==t?void 0:t[1])try{return decodeURIComponent(t[1])}catch(e){return}};function f(){var e,t,n,a,f,p,h,x,y,j,g,w,b,_,N,J,R,k;let H=(0,i.useRouter)(),z=H.query.slug,L=null!==(j=null!==(y=Array.isArray(z)?z[0]:z)&&void 0!==y?y:m(H.asPath))&&void 0!==j?j:m(window.location.pathname),{getDownloadedIssueBySlug:Z}=(0,d.t)(),{loadOfflineImage:C}=(0,v.Z)(),[E,O]=(0,u.useState)(),[P,U]=(0,u.useState)(!1);return((0,u.useEffect)(()=>{let e;if(!H.isReady)return;if(!L){O(void 0),U(!0);return}let t=!0;return U(!1),Z(L).then(async t=>{if(!t)return;let n=await C(t.thumbnail.full.url);return e=(null==n?void 0:n.startsWith("blob:"))?n:void 0,{...t,thumbnail:{...t.thumbnail,full:{...t.thumbnail.full,url:null!=n?n:""}}}}).then(n=>{t?O(n):e&&URL.revokeObjectURL(e)}).catch(()=>{t&&O(void 0)}).finally(()=>{t&&U(!0)}),()=>{t=!1,e&&URL.revokeObjectURL(e)}},[Z,C,H.isReady,L]),P&&!E)?(0,o.jsx)(c.Z,{}):E?(0,o.jsxs)(l.Z,{title:"Report\xe9r magaz\xedn ⦁ ".concat(E.title," ⦁ Č\xedslo ").concat(E.issueNumber),children:[(0,o.jsxs)(r(),{children:[(0,o.jsx)("title",{children:null!==(g=null===(e=E.yoastHeadJson)||void 0===e?void 0:e.title)&&void 0!==g?g:"Report\xe9r magaz\xedn ⦁ ".concat(E.title," ⦁ Č\xedslo ").concat(E.issueNumber)}),(0,o.jsx)("meta",{property:"og:title",content:null!==(w=null===(t=E.yoastHeadJson)||void 0===t?void 0:t.og_title)&&void 0!==w?w:"Report\xe9r magaz\xedn ⦁ ".concat(E.title," ⦁ Č\xedslo ").concat(E.issueNumber)},"og:title"),(0,o.jsx)("meta",{name:"description",content:null!==(b=null===(n=E.yoastHeadJson)||void 0===n?void 0:n.description)&&void 0!==b?b:"Jdeme po tom, co v\xe1s bav\xed č\xedst"},"description"),(0,o.jsx)("meta",{property:"og:description",content:null!==(_=null===(a=E.yoastHeadJson)||void 0===a?void 0:a.og_description)&&void 0!==_?_:"Jdeme po tom, co v\xe1s bav\xed č\xedst"},"og:description"),(0,o.jsx)("meta",{property:"og:locale",content:null!==(N=null===(f=E.yoastHeadJson)||void 0===f?void 0:f.og_locale)&&void 0!==N?N:"cs_CZ"},"og:locale"),(0,o.jsx)("meta",{property:"og:type",content:null!==(J=null===(p=E.yoastHeadJson)||void 0===p?void 0:p.og_type)&&void 0!==J?J:"website"},"og:type"),(0,o.jsx)("meta",{property:"og:url",content:null!==(k=null!==(R=null===(h=E.yoastHeadJson)||void 0===h?void 0:h.og_url)&&void 0!==R?R:E.link)&&void 0!==k?k:void 0},"og:url"),(null===(x=E.yoastHeadJson)||void 0===x?void 0:x.schema)&&(0,o.jsx)("script",{id:"meta-schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(E.yoastHeadJson.schema)}},"head-json-ld")]}),(0,o.jsx)(s.D,{issue:E,offline:!0})]}):null}}},function(e){e.O(0,[850,446,809,666,712,606,995,255,888,774,179],function(){return e(e.s=163)}),_N_E=e.O()}]);
2//# sourceMappingURL=[[...slug]]-ec16abd14daeb185.js.map

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.