(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[684],{5684:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return M},default:function(){return H}});var i=l(4246);function r(e,t){return!e||new Date(e)<=new Date(t)?null:e}var a=l(5484),s=l(8038),n=l.n(s),o=l(6677),d=l(7378),u=l(2361),c=l(8558),h=l(2802),m=l(7829),f=l(1293),p=l(8374),x=l(5218),v=l.n(x),g=l(2786),j=l(9200),y=l(3988),b=l(9399),_=l(2601),w=l(7188),C=l(8292),I=l(2435),k=l(3679),P=e=>{let{twitterPostId:t,authorTwitterHandle:l}=e,[r,a]=(0,d.useState)(null);return(0,d.useEffect)(()=>{a(window.location.href)},[]),(0,i.jsxs)(I.zV,{as:"div",justify:"start",dense:!0,children:[(0,i.jsx)(k.xv,{children:(0,i.jsx)(k.x4,{children:(0,i.jsx)(k.cK,{children:"Sd\xedlet:"})})}),(0,i.jsx)(C.Vq,{size:"30",href:(0,C.Rh)(r)}),(0,i.jsx)(C.Zm,{size:"30",href:t?(0,C.X4)(t,l):(0,C.P7)(r)})]})},N=l(697),T=l(9894),Z=l.n(T),A=l(7645),O=l(6260);function E(e){let{tag:t}=e,{title:l,description:r}=t;return(0,i.jsx)(Z(),{href:O.y.tag.detail(t),passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(A.Z,{as:"a",small:!0,title:r,children:l})})}var D=l(3262);function S(e){let{tags:t}=e;return!t||t.length<=0?null:(0,i.jsxs)(I.zV,{wrap:!0,as:"div",justify:"start",className:D.tags,children:[(0,i.jsx)(k.xv,{children:(0,i.jsx)(k.x4,{children:(0,i.jsx)(k.cK,{children:"Souvisej\xedc\xed t\xe9mata:"})})}),(0,i.jsx)(I.zV,{justify:"start",children:t.map(e=>(0,i.jsx)(E,{tag:e},e.title))})]})}var V=l(4355);let R=v()(()=>Promise.all([l.e(770),l.e(949)]).then(l.bind(l,7949)),{loadableGenerated:{webpack:()=>[7949]},suspense:!0});var z=e=>{let{domain:t,article:l,showAuthorProfile:r,authorArticles:a=[],newestArticles:s=[],children:n,aside:o,channel:u,showDiscussions:c,setShowDiscussions:h,twitterPostId:x,reportArticleEvent:v,isPreview:C}=e,{title:T="",topic:Z="",tags:E=[],perex:D="",authors:z=[],publishedAtTimestamp:F="",updateDate:L="",pageviews:M}=l,H=z[0],G=null==u?void 0:u.type,{user:U}=(0,f.R4)();return(0,i.jsx)(g.Z,{children:(0,i.jsx)(V.FH,{header:(0,i.jsxs)(g.Z.Header,{className:"lg:pt-12",children:[(0,i.jsxs)(g.Z.Heading,{children:[(0,i.jsx)(k.H1,{children:T}),(0,i.jsx)(k.Zf,{children:Z})]}),D&&(0,i.jsx)(k.rR,{className:"m-auto lg:w-5/6",children:D}),(0,i.jsxs)("div",{className:"flex flex-col gap-y-4 lg:space-y-0 lg:items-center lg:justify-between lg:flex-row print:flex-row print:justify-between",children:[(0,i.jsx)("div",{className:"flex flex-col items-center mb-4 md:mb-8 lg:mb-0 gap-y-8 lg:flex-row lg:gap-x-6",children:z.map(e=>(0,i.jsxs)("div",{className:"flex flex-col items-center lg:items-start",children:[(0,i.jsx)(y.Cc,{rel:"author",as:"address",href:O.y.author.detail(e),author:e,className:"text-left"}),(0,i.jsx)(y.mr,{className:"mt-6",domain:t,authorShortId:e.shortId,warnAboutNotifications:!0})]},e.shortId))}),(0,i.jsxs)("div",{className:"flex flex-col gap-1 text-justify",children:[(0,i.jsx)(k.dk,{className:"italic text-center lg:text-right",children:(0,i.jsx)("time",{dateTime:F,children:(0,m._)(F,!0)})}),L&&(0,i.jsxs)(k.Zf,{className:"text-center lg:text-right",children:["Aktualizov\xe1no"," ",(0,i.jsx)("time",{dateTime:L,children:(0,m._)(L,!0)})]}),(0,i.jsx)(w.Z,{pageviews:M,children:e=>{let{formattedPageviews:t}=e;return(0,i.jsx)(k.dk,{className:"text-center lg:text-right text-secondary",children:(0,i.jsx)(k.x4,{children:t})})}}),C?null:(0,i.jsx)(b.Z,{count:null==l?void 0:l.commentCount,onClick:()=>{h(!0)}})]})]})]}),aside:o&&(0,i.jsxs)(I.f4,{as:"div",children:[r&&(0,i.jsxs)(I.f4,{dense:!0,id:"about-author",children:[(0,i.jsx)(y.Cc,{href:O.y.author.detail(H),rel:"author",as:"address",author:H,hideAvatar:!(null==H?void 0:H.avatarCdnId),justify:"between",className:!!(null==H?void 0:H.avatarCdnId)&&"flex-row-reverse"},H.shortId),(0,i.jsx)(N.Z,{author:H})]}),a.length>1&&(0,i.jsx)(I.f4,{children:(0,i.jsx)(I.ZP,{title:"Dalš\xed čl\xe1nky ".concat(z.length>1?"autorů":"autora"),verticalListClassName:"grid grid-cols-1",children:a.map((e,t)=>{var l,r,a,s,n,o,d,u;return 1===t?(0,i.jsxs)(I.f4,{as:"div",children:[(0,i.jsx)(j.O,{img:null!==(n=null==e?void 0:e.coverCdnId)&&void 0!==n?n:null===(a=e.authors[0])||void 0===a?void 0:a.avatarCdnId,href:O.y.article.detail(e),title:e.title,topic:e.topic,commentCount:e.commentCount,className:"lg:!hidden"},e.shortId),(0,i.jsx)(j.O,{img:null!==(o=null==e?void 0:e.coverCdnId)&&void 0!==o?o:null===(s=e.authors[0])||void 0===s?void 0:s.avatarCdnId,href:O.y.article.detail(e),title:e.title,topic:e.topic,commentCount:e.commentCount,layoutVertical:!0,className:"!hidden lg:!flex"},e.shortId+"desktop")]},e.shortId):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.O,{img:null!==(d=null==e?void 0:e.coverCdnId)&&void 0!==d?d:null===(l=e.authors[0])||void 0===l?void 0:l.avatarCdnId,href:O.y.article.detail(e),title:e.title,topic:e.topic,commentCount:e.commentCount,className:"lg:!hidden"},e.shortId),(0,i.jsx)(j.O,{img:null!==(u=null==e?void 0:e.coverCdnId)&&void 0!==u?u:null===(r=e.authors[0])||void 0===r?void 0:r.avatarCdnId,href:O.y.article.detail(e),title:e.title,topic:e.topic,commentCount:e.commentCount,layoutVertical:!0,className:"!hidden lg:!flex"},e.shortId+"desktop")]})})})}),"blog"!==G&&!!s.length&&(0,i.jsx)(I.f4,{children:(0,i.jsx)(I.ZP,{title:"Nejnovějš\xed čl\xe1nky",verticalListClassName:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-1",children:s.map(e=>{var t,l;return(0,i.jsx)(j.O,{img:null!==(l=null==e?void 0:e.coverCdnId)&&void 0!==l?l:null===(t=e.authors[0])||void 0===t?void 0:t.avatarCdnId,href:O.y.article.detail(e),title:e.title,topic:null==e?void 0:e.topic,publishedDate:e.publishedAtTimestamp,layoutVertical:!0,authors:e.authors,commentCount:e.commentCount},e.shortId)})})})]}),footer:(0,i.jsxs)(i.Fragment,{children:[("blogosvet.cz"===t||"localhost"===t)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(I.zV,{justify:"between",children:[c||C?(0,i.jsx)(S,{tags:E}):(0,i.jsxs)(A.Z,{onClick:()=>{h(!0),v("discussion",{action:"show",pageType:"article",pagePosition:"footer"})},children:[(0,i.jsx)(p.JO,{icon:"bi:chat-text",className:"text-xl"}),"Vstoupit do diskuse"]}),(0,i.jsx)(P,{twitterPostId:x})]}),c&&!C?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k.iz,{}),(0,i.jsx)(d.Suspense,{fallback:(0,i.jsx)(_.Z,{}),children:(0,i.jsx)(R,{domain:"localhost"===t?"localhost:3003":t,pageId:O.y.article.detail({shortId:l.shortId}),reportDiscussionEvent:e=>v("discussion",{...e,pageType:"article",pagePosition:"footer"}),commenterToken:null==U?void 0:U.commenterToken})})]}):null]}),(0,i.jsx)(k.iz,{}),!c&&(0,i.jsx)(S,{tags:E})]}),children:n})})},F=l(2502),L=l(3808),M=!0;function H(e){var t,l,s;let{article:m,authorArticles:f,newestArticles:p,domain:x,channel:v,isArticleBanned:g,isArticleFlagged:j,isPreview:y}=e,{reportArticleEvent:b}=function(e){let{isReady:t,asPath:l}=(0,o.useRouter)(),[i,r]=(0,d.useState)(null),{reportCustomEvent:s}=(0,u.z$)();(0,d.useEffect)(()=>{if(!t||l===i||!e||!s)return;let n=setTimeout(()=>{r(l);let t=null==e?void 0:e.shortId;e.authors.map(e=>{s("author",{id:e.shortId,fullName:(0,a.P)(e)},"article",t)}),e.tags.map(e=>{s("tag",{title:e.title,id:e.wikiId},"article",t)})},500);return()=>clearTimeout(n)},[e,s,t,l,i]);let n=null==e?void 0:e.shortId;return{reportArticleEvent:(0,d.useCallback)((e,t)=>{n&&s(e,t,"article",n)},[s,n])}}(y?null:m),[_,w]=(0,d.useState)(!1);if(function(e){let t=(0,o.useRouter)();(0,d.useEffect)(()=>{t.isReady&&"#article-footer"===window.location.hash&&e(!0)},[t,e])}(w),!m)return(0,i.jsx)("h2",{children:"Nač\xedt\xe1m..."});let C=null==m?void 0:m.publishLastModified,I=null==m?void 0:m.publishedAtTimestamp,k=null!==(s=null!==(l=null==m?void 0:m.coverCdnId)&&void 0!==l?l:null===(t=m.authors[0])||void 0===t?void 0:t.avatarCdnId)&&void 0!==s&&s,P=null==m?void 0:m.twitterPostId,N=null==m?void 0:m.tags.map(e=>e.title);return(0,i.jsxs)(h.Z.Provider,{value:x,children:[(0,i.jsx)(n(),{children:(0,i.jsx)("link",{rel:"canonical",href:O.y.article.detailFullUrl(x,m)})}),(0,i.jsx)(L.Z,{title:m.title,description:m.perex,og:{type:"article",title:m.title,description:(null==m?void 0:m.perex)||(null==m?void 0:m.topic)||"",url:O.y.article.detailFullUrl(x,m),publishedTime:m.publishedAtTimestamp,tags:N,modifiedTime:r(C,I),...k&&{image:(0,F.Z)(k,{width:1200})}},twitter:{title:m.title,description:(null==m?void 0:m.perex)||(null==m?void 0:m.topic)||"",card:"summary_large_image",...k&&{image:(0,F.Z)(k,{width:1200})}},schema:{"@type":"Article",mainEntityOfPage:{"@type":"WebPage","@id":O.y.url(x)},headline:m.title,abstract:(null==m?void 0:m.perex)||(null==m?void 0:m.topic)||"",datePublished:m.publishedAtTimestamp,dateModified:r(C,I),...k&&{image:(0,F.Z)(k,{width:1200})},author:m.authors.map(e=>({"@type":"Person",name:(0,a.P)(e),url:O.y.author.detailFullUrl(x,e),...(null==e?void 0:e.avatarCdnId)&&{image:(0,F.Z)(e.avatarCdnId,{width:400,height:400})}})),keywords:N}}),(0,i.jsx)(z,{domain:x,article:m,authorArticles:f,newestArticles:p,showAuthorProfile:1===m.authors.length,aside:!0,channel:v,showDiscussions:_,isPreview:y,setShowDiscussions:w,twitterPostId:P,reportArticleEvent:b,children:(0,i.jsx)(c.Z,{isArticleBanned:g,isArticleFlagged:j,content:m.content,styling:"article"})})]})}},5845:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{default:function(){return n},noSSR:function(){return s}});let i=l(1538);l(4246),l(7378);let r=i._(l(6138));function a(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function n(e,t){let l=r.default,i={loading:e=>{let{error:t,isLoading:l,pastDelay:i}=e;return null}};e instanceof Promise?i.loader=()=>e:"function"==typeof e?i.loader=e:"object"==typeof e&&(i={...i,...e});let n=(i={...i,...t}).loader;return(i.loadableGenerated&&(i={...i,...i.loadableGenerated},delete i.loadableGenerated),"boolean"!=typeof i.ssr||i.ssr)?l({...i,loader:()=>null!=n?n().then(a):Promise.resolve(a(()=>null))}):(delete i.webpack,delete i.modules,s(l,i))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4339:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return i}});let i=l(1538)._(l(7378)).default.createContext(null)},6138:function(e,t,l){"use strict";/**
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
 MIT License
 Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
 The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let i=l(1538)._(l(7378)),r=l(4339),a=[],s=[],n=!1;function o(e){let t=e(),l={loading:!0,loaded:null,error:null};return l.promise=t.then(e=>(l.loading=!1,l.loaded=e,e)).catch(e=>{throw l.loading=!1,l.error=e,e}),l}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let l=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function o(){if(!a){let t=new d(e,l);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!n){let e=l.webpack?l.webpack():l.modules;e&&s.push(t=>{for(let l of e)if(t.includes(l))return o()})}function u(e,t){!function(){o();let e=i.default.useContext(r.LoadableContext);e&&Array.isArray(l.modules)&&l.modules.forEach(t=>{e(t)})}();let s=i.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),i.default.useMemo(()=>{var t;return s.loading||s.error?i.default.createElement(l.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:a.retry}):s.loaded?i.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return u.preload=()=>o(),u.displayName="LoadableComponent",i.default.forwardRef(u)}(o,e)}function c(e,t){let l=[];for(;e.length;){let i=e.pop();l.push(i(t))}return Promise.all(l).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(a).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let l=()=>(n=!0,t());c(s,e).then(l,l)})),window.__NEXT_PRELOADREADY=u.preloadReady;let h=u},3262:function(e){e.exports={tags:"tags_tags__eZUp3"}},5218:function(e,t,l){e.exports=l(5845)}}]);