PageSourceSearch

https://gvp.cz/557.3b2e95881cc2d5f9.js

js gvp.cz collected 2026-09-25 00:07:07 UTC 64,686 bytes, 1 lines download raw bytes

1(self.webpackChunkgvp=self.webpackChunkgvp||[]).push([[557],{9899:W=>{var Z="complete",l="canceled";function e(f,s,d){f.self===f?f.scrollTo(s,d):(f.scrollLeft=s,f.scrollTop=d)}function L(f){var s=f._scrollSettings;if(s){var d=s.maxSynchronousAlignments,M=function p(f,s){var y,k,w,_,T,I,U,d=f.align,r=f.target.getBoundingClientRect(),V=d&&null!=d.leftOffset?d.leftOffset:0,A=d&&null!=d.topOffset?d.topOffset:0,g=d&&null!=d.left?d.left:.5,F=d&&null!=d.top?d.top:.5;return f.isWindow(s)?(I=Math.min(r.width,s.innerWidth),U=Math.min(r.height,s.innerHeight),k=r.left+s.pageXOffset-s.innerWidth*g+I*g,w=r.top+s.pageYOffset-s.innerHeight*F+U*F,_=(k-=V)-s.pageXOffset,T=(w-=A)-s.pageYOffset):(I=r.width,U=r.height,y=s.getBoundingClientRect(),k=r.left-(y.left-s.scrollLeft)+I*g-s.clientWidth*g,w=r.top-(y.top-s.scrollTop)+U*F-s.clientHeight*F,k-=V,w-=A,k=Math.max(Math.min(k,s.scrollWidth-s.clientWidth),0),w=Math.max(Math.min(w,s.scrollHeight-s.clientHeight),0),_=k-s.scrollLeft,T=w-s.scrollTop),{x:k,y:w,differenceX:_,differenceY:T}}(s,f),r=Date.now()-s.startTime,y=Math.min(1/s.time*r,1);if(s.endIterations>=d)return e(f,M.x,M.y),f._scrollSettings=null,s.end(Z);var k=1-s.ease(y);if(e(f,M.x-M.differenceX*k,M.y-M.differenceY*k),r>=s.time)return s.endIterations++,L(f);!function a(f){if("requestAnimationFrame"in window)return window.requestAnimationFrame(f);setTimeout(f,16)}(L.bind(null,f))}}function b(f){return f.self===f}function v(f,s,d,M){var w,r=!s._scrollSettings,y=s._scrollSettings,k=Date.now(),_={passive:!0};function T(U){s._scrollSettings=null,s.parentElement&&s.parentElement._scrollSettings&&s.parentElement._scrollSettings.end(U),d.debug&&console.log("Scrolling ended with type",U,"for",s),M(U),w&&(s.removeEventListener("touchstart",w,_),s.removeEventListener("wheel",w,_))}y&&y.end(l);var I=d.maxSynchronousAlignments;null==I&&(I=3),s._scrollSettings={startTime:y?y.startTime:Date.now(),endIterations:0,target:f,time:d.time+(y?k-y.startTime:0),ease:d.ease,align:d.align,isWindow:d.isWindow||b,maxSynchronousAlignments:I,end:T},(!("cancellable"in d)||d.cancellable)&&(w=T.bind(null,l),s.addEventListener("touchstart",w,_),s.addEventListener("wheel",w,_)),r&&L(s)}function u(f){return"pageXOffset"in f||(f.scrollHeight!==f.clientHeight||f.scrollWidth!==f.clientWidth)&&"hidden"!==getComputedStyle(f).overflow}function C(){return!0}function z(f){if(f.assignedSlot)return z(f.assignedSlot);if(f.parentElement)return"BODY"===f.parentElement.tagName?f.parentElement.ownerDocument.defaultView||f.parentElement.ownerDocument.ownerWindow:f.parentElement;if(f.getRootNode){var s=f.getRootNode();if(11===s.nodeType)return s.host}}W.exports=function(f,s,d){if(f){"function"==typeof s&&(d=s,s=null),s||(s={}),s.time=isNaN(s.time)?1e3:s.time,s.ease=s.ease||function(_){return 1-Math.pow(1-_,_/2)};var M=z(f),r=1,k=s.validTarget||C,w=s.isScrollable;for(s.debug&&(console.log("About to scroll to",f),M||console.error("Target did not have a parent, is it mounted in the DOM?"));M;)if(s.debug&&console.log("Scrolling parent node",M),k(M,r)&&(w?w(M,u):u(M))&&(r++,v(f,M,s,y)),!(M=z(M))){y(Z);break}}function y(_){--r||d&&d(_)}}},138:(W,Z,l)=>{"use strict";l.d(Z,{M:()=>u});var a=l(4304),e=l(4173),p=l(3253),L=l(7477),b=l(3714),v=l(3431);let u=(()=>{var C;class z extends a.C{constructor(s){super(),this.gEventS=s,this.showOverflowMenu=!1,this.own=!1}ngOnInit(){(0,L.T)(this.gEventS.documentClicked.pipe((0,e.h)(s=>this.showOverflowMenu&&!s.target.closest("[icon=ellipsis-v], nav.overflow"))),this.gEventS.escapePressed.pipe((0,e.h)(()=>!!this.showOverflowMenu))).pipe((0,p.R)(this.onDestroy$)).subscribe(s=>this.showOverflowMenu=!1)}}
1return(C=z).\u0275fac=function(s){return new(s||C)(b.Y36(v.M))},C.\u0275cmp=b.Xpm({type:C,selectors:[["ng-component"]],hostVars:2,hostBindings:function(s,d){2&s&&b.ekj("own",d.own)},inputs:{own:"own"},features:[b.qOj],decls:0,vars:0,template:function(s,d){},encapsulation:2}),z})()},4557:(W,Z,l)=>{"use strict";l.r(Z),l.d(Z,{LifeModule:()=>r3});var a=l(3223),e=l(3714),p=l(7955),L=l(7477),b=l(457),v=l(3739),u=l(2117),C=l(3490),z=l(3253),f=l(4173),s=l(7006),d=l(6206),M=l(962),r=l(8736),y=l(4304),k=l(5139),w=l(8702),_=l(3826),T=l(6244),I=l(6353),U=l(4528),P=l(5227),E=l(2169);const V=function(){return["/zivot","pridat-clanek"]};function A(n,m){1&n&&(e.TgZ(0,"gvp-button",6),e._UZ(1,"fa-icon",7),e._uU(2,"Napsat \u010dl\xe1nek "),e.qZA()),2&n&&e.Q6J("@fade",void 0)("link",e.DdM(2,V))}function g(n,m){if(1&n){const o=e.EpF();e.TgZ(0,"gvp-article",8),e.NdJ("remove",function(){const i=e.CHM(o).$implicit,h=e.oxw();return e.KtG(h.onRemoveArticle(i.id))})("edit",function(){const i=e.CHM(o).$implicit,h=e.oxw();return e.KtG(h.onEditArticle(i.id))}
1)("pin",function(c){const h=e.CHM(o).$implicit,O=e.oxw();return e.KtG(O.onPin(c,h.id))}),e.ALo(1,"async"),e.ALo(2,"async"),e.qZA()}if(2&n){const o=m.$implicit,t=e.oxw();e.Q6J("data",o)("@fade",void 0)("own",e.lcZ(1,4,t.user$)===o.author.username)("isAdmin",e.lcZ(2,6,t.isAdmin$))}}function F(n,m){1&n&&e._UZ(0,"gvp-placeholder")}const B=function(){return["far","newspaper"]};let x=(()=>{var n;class m extends y.C{constructor(t,c,i,h,O){super(),this.toastS=t,this.store=c,this.route=i,this.router=h,this.id=O,this.articlePlaceholders=Array(3),this.page=1,this.isLoggedIn$=this.store.select(H=>H.auth.user).pipe((0,v.U)(H=>!!H)),this.user$=this.store.select(H=>H.auth.user&&H.auth.user.username),this.isAdmin$=this.store.select(H=>H.auth.user&&H.auth.user.role===k.G7.admin),this.apiError$=this.store.select(H=>H.life.news.error),this.articles$=this.store.select(H=>H.life.news.articles),this.maxPage$=this.store.select(H=>H.life.news.articlesPagesCount)}ngOnInit(){(0,a.NF)(this.id)&&this.route.paramMap.pipe((0,u.w)(t=>this.store.select(c=>c.life.news.articlesCurrentPage).pipe((0,C.q)(1),(0,v.U)(c=>[c,+t.get("page")||1]))),(0,z.R)(this.onDestroy$)).subscribe(([t,c])=>{this.page=c,c!==t?(this.store.dispatch((0,r.LZ)()),this.articlePlaceholders=Array(3)):this.articlePlaceholders=[],this.store.dispatch((0,r.nw)(this.page)),(0,L.T)(this.apiError$.pipe((0,f.h)(i=>!!i),(0,u.w)(i=>(0,b._)(i))),this.articles$.pipe((0,s.T)(1))).pipe((0,C.q)(1)).subscribe(()=>this.articlePlaceholders=[],i=>{console.log(i),this.toastS.add({level:"danger",message:"Nepoda\u0159ilo se na\u010d\xedst \u010dl\xe1nky!"}),this.store.dispatch((0,r.uk)())})})}onRemoveArticle(t){window.confirm("Opravdu chcete odstranit tento \u010dl\xe1nek?")&&(this.store.dispatch((0,r.RJ)(t)),(0,L.T)(this.apiError$.pipe((0,f.h)(c=>!!c),(0,u.w)(c=>(0,b._)(c))),this.articles$.pipe((0,s.T)(1))).pipe((0,C.q)(1)).subscribe(()=>{this.toastS.add({level:"normal",message:"\u010cl\xe1nek odstran\u011bn"})},c=>{console.log(c),this.toastS.add({level:"danger",message:"Chyba p\u0159i odstra\u0148ov\xe1n\xed \u010dl\xe1nku!"}),this.store.dispatch((0,r.uk)())}))}onEditArticle(t){this.router.navigate(["/zivot/upravit-clanek",t])}onPin(t,c){this.store.dispatch((t?r.sc:r.hW)(c)),(0,L.T)(this.apiError$.pipe((0,f.h)(i=>!!i),(0,u.w)(i=>(0,b._)(i))),this.articles$.pipe((0,s.T)(1))).pipe((0,C.q)(1)).subscribe(()=>{this.toastS.add({level:"normal",message:"\u010cl\xe1nek "+(t?"p\u0159ipnut":"odepnut")})},i=>{console.log(i),this.toastS.add({level:"danger",message:"Chyba p\u0159i p\u0159ip\xedn\xe1n\xed \u010dl\xe1nku!"}),this.store.dispatch((0,r.uk)())})}}return(n=m).\u0275fac=function(t){return new(t||n)(e.Y36(w.k),e.Y36(_.yh),e.Y36(p.gz),e.Y36(p.F0),e.Y36(e.Lbi))},n.\u0275cmp=e.Xpm({type:n,selectors:[["gvp-news-page"]],features:[e.qOj],decls:12,vars:14,consts:[[1,"articles"],[3,"icon","fixedWidth"],[3,"link",4,"ngIf"],[3,"data","own","isAdmin","remove","edit","pin",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["baseUrl","/zivot/clanky",3,"current","max"],[3,"link"],["icon","pencil-alt"],[3,"data","own","isAdmin","remove","edit","pin"]],template:function(t,c){1&t&&(e.TgZ(0,"section",0)(1,"h1")(2,"span"),e._UZ(3,"fa-icon",1),e._uU(4,"\u010cl\xe1nky "),e.qZA(),e.YNc(5,A,3,3,"gvp-button",2),e.ALo(6,"async"),e.qZA(),e.YNc(7,g,3,8,"gvp-article",3),e.ALo(8,"async"),e.YNc(9,F,1,0,"gvp-placeholder",4),e.qZA(),e._UZ(10,"gvp-pagination",5),e.ALo(11,"async")),2&t&&(e.xp6(3),e.Q6J("icon",e.DdM(13,B))("fixedWidth",!0),e.xp6(2),e.Q6J("ngIf",e.lcZ(6,7,c.isLoggedIn$)),e.xp6(2),e.Q6J("ngForOf",e.lcZ(8,9,c.articles$)),e.xp6(2),e.Q6J("ngForOf",c.articlePlaceholders),e.xp6(1),e.Q6J("current",c.page)("max",e.lcZ(11,11,c.maxPage$)))},dependencies:[a.sg,a.O5,T.BN,I.r,U.Q,P.t,E.W,a.Ov],styles:["[_nghost-%COMP%]{max-width:1400px;margin:auto;display:block}h1[_ngcontent-%COMP%]{margin:20px auto;display:flex;flex-wrap:wrap;line-height:2em;max-width:800px;font-size:1.5em}h1[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex:1 0 auto}h1[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-right:9px}h1[_ngcontent-%COMP%]   gvp-button[_ngcontent-%COMP%]{font-size:.7em;margin:auto 0 auto auto}.articles[_ngcontent-%COMP%]{padding:0 10px 50px}.articles[_ngcontent-%COMP%]   gvp-article[_ngcontent-%COMP%], .articles[_ngcontent-%COMP%]   gvp-placeholder[_ngcontent-%COMP%]{margin:20px auto;max-width:700px}"],data:{animation:[(0,d.X$)("fade",[(0,d.eR)(":enter",(0,d._7)(M.U1,{params:{start:"0",end:"1",time:"0.1s"}}
1)),(0,d.eR)(":leave",(0,d._7)(M.U1,{params:{start:"1",end:"0",time:"0.1s"}}))])]}}),m})();var d1=l(8466),j=l(6760),X=l(7792),p1=l(660),v1=l(8439),g1=l(5257),S=l(3384),e1=l(7017),u1=l(9899),C1=l(2438),Q=l(6083),_1=l(1019),K=l(3250),z1=l(6088),M1=l(7213),t1=l(1945),n1=l(5365),G=l(5813),x1=l(3577),P1=l(5081);function O1(n,m){if(1&n&&e._UZ(0,"fa-icon",5),2&n){const o=e.oxw();e.Q6J("icon",o.icon)}}function H1(n,m){1&n&&(e.ynx(0),e._UZ(1,"fa-icon",6)(2,"fa-icon",7),e.BQk())}function w1(n,m){if(1&n&&(e.TgZ(0,"option",8),e._uU(1),e.qZA()),2&n){const o=e.oxw();e.xp6(1),e.Oqu(o.placeholder)}}function A1(n,m){if(1&n&&(e.TgZ(0,"option",9),e._uU(1),e.qZA()),2&n){const o=m.$implicit;e.Q6J("value",o.value),e.xp6(1),e.hij(" ",o.label," ")}}let b1=(()=>{var n;class m extends y.C{get value(){return this.control.value}set value(t){this.control.setValue(t)}constructor(){super(),this.placeholder="",this.label="",this.disabled=!1,this.control=new S.p4({value:"",disabled:this.disabled})}ngOnInit(){}writeValue(t){this.value=t}registerOnChange(t){this.onChangeCb=t}registerOnTouched(t){this.onTouchedCb=t}setDisabledState(t){this.disabled=t,this.control[t?"disable":"enable"]()}onChange(t){this.onChangeCb&&this.onChangeCb(t)}onTouched(){this.onTouchedCb&&this.onTouchedCb()}}return(n=m).\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["gvp-select"]],inputs:{placeholder:"placeholder",label:"label",icon:"icon",disabled:"disabled",width:"width",items:"items",value:"value"},features:[e._Bn([{provide:S.JU,useExisting:(0,e.Gpc)(()=>n),multi:!0}]),e.qOj],decls:7,vars:9,consts:[[3,"icon",4,"ngIf"],[4,"ngIf"],[3,"formControl","click","change"],["value","","selected","","disabled","","hidden","",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"icon"],["icon","sort-alpha-down",1,"crop"],["icon","sort-alpha-up",1,"crop"],["value","","selected","","disabled","","hidden",""],[3,"value"]],template:function(t,c){1&t&&(e.TgZ(0,"label"),e._uU(1),e.YNc(2,O1,1,1,"fa-icon",0),e.YNc(3,H1,3,0,"ng-container",1),e.TgZ(4,"select",2),e.NdJ("click",function(){return c.onTouched()})("change",function(){return c.onChange(c.value)}),e.YNc(5,w1,2,1,"option",3),e.YNc(6,A1,2,2,"option",4),e.qZA()()),2&t&&(e.xp6(1),e.hij(" ",c.label," "),e.xp6(1),e.Q6J("ngIf",c.icon&&"sort-alt"!==c.icon),e.xp6(1),e.Q6J("ngIf","sort-alt"===c.icon),e.xp6(1),e.Udp("width",c.width,"px"),e.Q6J("formControl",c.control),e.uIk("aria-label",c.label?null:c.placeholder),e.xp6(1),e.Q6J("ngIf",c.placeholder),e.xp6(1),e.Q6J("ngForOf",c.items))},dependencies:[a.sg,a.O5,S.YN,S.Kr,S.EJ,S.JJ,S.oH,T.BN],styles:["[_nghost-%COMP%]{display:inline-block;font-size:1em;color:rgb(var(--on-background))}.ng-invalid[_nghost-%COMP%]:not(.ng-untouched)   input[_ngcontent-%COMP%]:not(:focus, .focus)[_ngcontent-%COMP%], .invalid[_nghost-%COMP%]:not(.ng-untouched)   input[_ngcontent-%COMP%]:not(:focus, .focus)[_ngcontent-%COMP%]{border-color:#b60000}select[_ngcontent-%COMP%]{display:inline-block;font-size:1em;margin-left:8px;border:0;border-bottom:1px solid currentColor;border-radius:0;width:100%;height:100%;background-color:transparent;color:inherit;cursor:pointer;transition:.1s}select[_ngcontent-%COMP%]:disabled{border-bottom:1px dashed #a9a9a9}label[_ngcontent-%COMP%]{display:flex}label[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]{font-size:1.1em}label[_ngcontent-%COMP%] > fa-icon.crop[_ngcontent-%COMP%]{overflow:hidden;text-align:left;display:inline-block;width:.5em}option[_ngcontent-%COMP%]{font-size:.95em;background-color:rgb(var(--background-light))}.focus[_nghost-%COMP%]   select[_ngcontent-%COMP%], select[_ngcontent-%COMP%]:focus{outline:0;border-bottom-color:rgb(var(--secondary-light))}"]}),m})();var y1=l(6226),c1=l(7863),k1=l(138),S1=l(3431);const L1=function(){return["/zivot"]};function V1(n,m){if(1&n&&(e.TgZ(0,"a",8),e._uU(1),e.qZA()),2&n){const o=e.oxw();e.Q6J("routerLink",e.DdM(2,L1)),e.xp6(1),e.Oqu(o.data.author.name)}}function N1(n,m){if(1&n&&(e._UZ(0,"fa-icon",9),e._uU(1)),2&n){const o=e.oxw();e.xp6(1),e.hij("",o.data.author.name," ")}}function T1(n,m){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"fa-icon",14),e.NdJ("click",function(){e.CHM(o);const c=e.oxw(2);return e.KtG(c.onEdit())}),e.qZA(),e.TgZ(2,"fa-icon",15),e.NdJ("click",function(){e.CHM(o);const c=e.oxw(2);return e.KtG(c.onRemove())}),e.qZA(),e.BQk()}}function E1(n,m){if(1&n){const o=e.EpF();e.TgZ(0,"nav",10)(1,"fa-icon",11),e.NdJ("click",function(){e.CHM(o);const c=e.oxw();return e.KtG(c.onLink())}),e.qZA(),e.TgZ(2,"fa-icon",12),e.NdJ("click",function(){e.CHM(o);const c=e.oxw();return e.KtG(c.onReply())}),e.qZA(),e.YNc(3,T1,3,0,"ng-container",13),e.qZA()}if(2&n){const o=e.oxw();e.Q6J("@dropdown",void 0),e.xp6(3),e.Q6J("ngIf",o.own)}}function I1(n,m){1&n&&(e.TgZ(0,"span",16),e._uU(1,"Upraveno"),e.qZA())}let U1=(()=>{var n;class m extends k1.M{set data(t){this._data=t;const c=this._data.text.replace(/((https?|ftps?):\/\/[^\/]+\.[^\/]+\S+)/gi,i=>`<a href="${i=this.sanitizer.sanitize(e.q3G.URL,i)}">${i}</a>`).replace(/(^|\s)@([1-9][0-9]{1,6})(\W|$)/gi,`$1<a class="reply" href="${this.windowS.window.location&&this.windowS.window.location.pathname}#$2">@$2</a>$3`);this._HTMLContent=this.sanitizer.sanitize(e.q3G.HTML,c)}get data(){return this._data}constructor(t,c,i){super(i),this.sanitizer=t,this.windowS=c,this.now=new Date,this.reply=new e.vpe,this.edit=new e.vpe,this.remove=ne
1w e.vpe,this.link=new e.vpe}ngOnInit(){super.ngOnInit()}onReply(){this.reply.next(),this.showOverflowMenu=!1}onEdit(){this.edit.next(),this.showOverflowMenu=!1}onRemove(){this.remove.next(),this.showOverflowMenu=!1}onLink(){this.link.next(),this.showOverflowMenu=!1}getDateFormat(){if(!this.data||!this.data.date)return;const t=new Date(this.data.date);return t.getFullYear()<this.now.getFullYear()?"MMM yy":t.getMonth()<this.now.getMonth()?"EE M.d.":t.getDay()+1===this.now.getDay()?"'V\u010dera' HH:mm":t.getDay()===this.now.getDay()?"HH:mm:ss":void 0}}return(n=m).\u0275fac=function(t){return new(t||n)(e.Y36(G.H7),e.Y36(n1.u),e.Y36(S1.M))},n.\u0275cmp=e.Xpm({type:n,selectors:[["gvp-comment"]],inputs:{data:"data"},outputs:{reply:"reply",edit:"edit",remove:"remove",link:"link"},features:[e.qOj],decls:13,vars:18,consts:[[3,"id"],[3,"routerLink",4,"ngIf","ngIfElse"],["anon",""],[3,"title"],["icon","ellipsis-v","tabindex","0","aria-haspopup","true","gvpKeyboardClick","",3,"click"],["class","overflow",4,"ngIf"],[3,"innerHtml"],["class","edited",4,"ngIf"],[3,"routerLink"],["icon","user-secret","title","Anonymn\xed u\u017eivatel"],[1,"overflow"],["icon","link","tabindex","0","gvpKeyboardClick","","title","Odkaz na koment\xe1\u0159",3,"click"],["icon","reply","tabindex","0","gvpKeyboardClick","","title","Odpov\u011bd\u011bt",3,"click"],[4,"ngIf"],["icon","edit","tabindex","0","gvpKeyboardClick","","title","Upravit",3,"click"],["icon","trash-alt","tabindex","0","gvpKeyboardClick","","title","Smazat",3,"click"],[1,"edited"]],template:function(t,c){if(1&t&&(e.TgZ(0,"aside")(1,"h6",0),e.YNc(2,V1,2,3,"a",1),e.YNc(3,N1,2,1,"ng-template",null,2,e.W1O),e.qZA(),e.TgZ(5,"span",3),e.ALo(6,"date"),e._uU(7),e.ALo(8,"date"),e.qZA()(),e.TgZ(9,"fa-icon",4),e.NdJ("click",function(){return c.showOverflowMenu=!c.showOverflowMenu}),e.qZA(),e.YNc(10,E1,4,2,"nav",5),e._UZ(11,"p",6),e.YNc(12,I1,2,0,"span",7)),2&t){const i=e.MAs(4);e.xp6(1),e.Q6J("id","c"+c.data.id),e.xp6(1),e.Q6J("ngIf",c.data.author.username)("ngIfElse",i),e.xp6(3),e.Q6J("title",e.gM2(6,8,c.data.date,"medium",void 0,"cs")),e.xp6(2),e.Oqu(e.gM2(8,13,c.data.date,c.getDateFormat(),void 0,"cs")),e.xp6(3),e.Q6J("ngIf",c.showOverflowMenu),e.xp6(1),e.Q6J("innerHtml",c._HTMLContent,e.oJD),e.xp6(1),e.Q6J("ngIf",c.data.edited)}},dependencies:[a.O5,p.rH,T.BN,c1.w,a.uU],styles:["[_nghost-%COMP%]{display:flex;background-color:rgb(var(--background-light));color:rgb(var(--on-background));border-radius:3px;box-shadow:0 0 3px rgba(var(--shadow-color));padding:10px;margin:5px 0;position:relative;transition:outline 1s;outline:0px solid transparent}.own[_nghost-%COMP%]{border-left:7px solid rgb(var(--primary))}@media screen and (max-width: 520px){[_nghost-%COMP%]{flex-wrap:wrap}}.focused[_nghost-%COMP%]{outline:15px solid rgb(var(--primary-light));transition:outline 0s}aside[_ngcontent-%COMP%]{min-width:85px;margin-right:10px}aside[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{margin:0;font-size:1.05em}aside[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:hover){text-decoration:none}aside[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-right:.4em;color:rgb(var(--secondary-light))}aside[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.9em;letter-spacing:1px;color:rgb(var(--on-background-alt))}p[_ngcontent-%COMP%]{flex-basis:100%;overflow-wrap:anywhere}[icon=ellipsis-v][_ngcontent-%COMP%]{position:absolute;top:4px;right:0;display:inline-block;width:20px;text-align:center;cursor:pointer}nav.overflow[_ngcontent-%COMP%]{z-index:1;position:absolute;display:flex;flex-wrap:wrap;right:10px;background-color:rgb(var(--background-light));color:rgb(var(--on-background));top:17px;width:120px;padding:0;box-shadow:0 0 4px rgba(var(--shadow-color));border-radius:3px;transition:.2s height,.2s width}nav.overflow[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]{position:relative;display:inline-block;width:44px;text-align:center;line-height:44px;height:44px;font-size:19px;cursor:pointer;border-radius:50%;margin:8px;overflow:hidden;transition:.2s}nav.overflow[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]:hover, nav.overflow[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]:focus{background-color:rgb(var(--secondary-superlight))}.edited[_ngcontent-%COMP%]{position:absolute;bottom:2px;right:15px;font-size:.9em;font-style:italic;color:rgb(var(--on-background-alt))}"],data:{animation:[(0,d.X$)("dropdown",[(0,d.eR)(":enter",[(0,d._7)(M.Ie)]),(0,d.eR)(":leave",[(0,d._7)(M.V7)])])]}}),m})();function F1(n,m){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"fa-icon",16),e.NdJ("click",function(){e.CHM(o);const c=e.oxw(2);return e.KtG(c.onEdit())}),e.qZA(),e.TgZ(2,"fa-icon",17),e.NdJ("click",function(){e.CHM(o);const c=e.oxw(2);return e.KtG(c.onRemove())}),e.qZA(),e.BQk()}}function Z1(n,m){if(1&n){const o=e.EpF();e.TgZ(0,"fa-icon",20),e.NdJ("click",function(){e.CHM(o);const c=e.oxw(3);return e.KtG(c.onPin(!0))}),e.qZA()}}function $1(n,m){if(1&n){const o=e.EpF();e.TgZ(0,"fa-layers",21),e.NdJ("click",function(){e.CHM(o);const c=e.oxw(3);return e.KtG(c.onPin(!1))}),e._UZ(1,"fa-icon",22)(2,"fa-icon",23),e.qZA()}2&n&&e.Q6J("fixedWidth",!0)}function D1(n,m){if(1&n&&(e.ynx(0),e.YNc(1,Z1,1,0,"fa-icon",18),e.YNc(2,$1,3,1,"fa-layers",19),e.BQk()),2&n){const o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!o.data.pinned),e.xp6(1),e.Q6J("ngIf",o.data.pinned)}}const R1=function(n){return["/zivot/autor",n]};function J1(n,m){if(1&n&&(e.TgZ(0,"a",24),e._uU(1),e.qZA()),2&n){const o=e.oxw(2);e.Q6J("routerLink",e.VKq(2,R1,null==o.data?null:o.data.author.username.toLowerCase())),e.xp6(1),e.hij(" ",null==o.data||null==o.data.author?null:o.data.author.name," ")}}function B1(n,m){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"h1"),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.YNc(4,F1,3,0,"ng-container",7),e.ALo(5,"async"),e.YNc(6,D1,3,2,"ng-container",7),e.ALo(7,"async"),e.TgZ(8,"h4"),e._UZ(9,"fa-icon",13),e.YNc(10,J1,2,4,"a",14),e.qZA(),e.TgZ(11,"h5"),e._uU(12),e.ALo(13,"date"),e.qZA()(),e.TgZ(14,"article",15),e.NdJ("click",function(c){e.CHM(o);const i=e.oxw();return e.KtG(i.linkClick(c))}),e.qZA(),e.BQk()}if(2&n){const o=e.oxw();e.xp6(2),e.Oqu(null==o.data?null:o.data.title),e.xp6(2),e.Q6J("ngIf",(null==o.data||null==o.data.author?null:o.data.author.username)&&e.lcZ(5,6,o.user$)===o.data.author.username),e.xp6(2),e.Q6J("ngIf",e.lcZ(7,8,o.isAdmin$)),e.xp6(4),e.Q6J("ngIf",null==o.data?null:o.data.author),e.xp6(2),e.Oqu(e.gM2(13,10,null==o.data?null:o.data.date,"longDate",void 0,"cs")),e.xp6(2),e.Q6J("innerHtml",o._preface,e.oJD)}}function K1(n,m){1&n&&e._UZ(0,"div",25)(1,"gvp-placeholder")}function W1(n,m){if(1&n){const o=e.EpF();e.TgZ(0,"main",15),e.NdJ("click",function(c){e.CHM(o);const i=e.oxw();return e.KtG(i.linkClick(c))}),e.qZA()}if(2&n){const o=e.oxw();e.Q6J("innerHtml",o._content,e.oJD)}}function G1(n,m){if(1&n&&e._UZ(0,"gvp-select",26),2&n){const o=e.oxw();e.Q6J("formControl",o.sort)("items",o._sortItems)}}function Q1(n,m){1&n&&e._UZ(0,"gvp-loader")}function Y1(n,m){1&n&&(e.TgZ(0,"span"),e._uU(1," Zat\xedm tu nic nen\xed "),e.qZA())}function q1(n,m){if(1&n){const o=e.EpF();e.TgZ(0,"gvp-comment",28),e.NdJ("reply",function(){const i=e.CHM(o).$implicit,h=e.oxw(2);return e.KtG(h.onReply(i.id))})("edit",function(){const i=e.CHM(o).$implicit,h=e.oxw(2);return e.KtG(h.onCommentEdit(i))})("remove",function(){const i=e.CHM(o).$implicit,h=e.oxw(2);return e.KtG(h.onCommentRemove(i.id))})("click",function(c){e.CHM(o);const i=e.oxw(2);return e.KtG(i.onCommentClick(c))})("link",function(){const i=e.CHM(o).$implicit,h=e.oxw(2);return e.KtG(h.onCommentLink(i.id))}),e.ALo(1,"async"),e.qZA()}if(2&n){const o=m.$implicit,t=e.oxw(2);e.Q6J("data",o)("own",(null==o?null:o.author.username)&&e.lcZ(1,2,t.user$)===(null==o?null:o.author.username))}}function j1(n,m){if(1&n&&(e.YNc(0,Y1,2,0,"span",7),e.YNc(1,q1,2,4,"gvp-comment",27)),2&n){const o=e.oxw();e.Q6J("ngIf",0===(null==o.data?null:o.data.comments.length)),e.xp6(1),e.Q6J("ngForOf",null==o.data?null:o.data.comments)}}function X1(n,m){1&n&&(e.TgZ(0,"fieldset")(1,"i"),e._uU(2,"Nejste p\u0159ihl\xe1\u0161eni - koment\xe1\u0159 bude p\u0159id\xe1n po schv\xe1len\xed adminem"),e.qZA(),e._UZ(3,"gvp-input",29)(4,"gvp-input",30),e.qZA())}function e2(n,m){if(1&n){const o=e.EpF();e.TgZ(0,"button",31),e.NdJ("click",function(c){e.CHM(o);const i=e.oxw();return e.KtG(i.onReset(c))}),e._uU(1,"Zru\u0161it"),e.qZA()}}let t2=(()=>{var n;class m extends y.C{set data(t){this._data=t,t?(this.store.dispatch((0,C1.r1)(t.title)),this._content=this._data.content&&this.sanitizer.bypassSecurityTrustHtml((0,t1.X)(this._data.content)),this._preface=this.sanitizer.bypassSecurityTrustHtml((0,t1.X)(this._data.preface))):(this._preface=null,this._content=null)}get data(){return this._data}constructor(t,c,i,h,O,H,l3,s3,m3,f3,h3){super(),this.store=t,this.actRoute=c,this.windowS=i,this.toastS=h,this.router=O,this.sanitizer=H,this.dialogS=l3,this.el=s3,this.transfer=m3,this.platform=f3,this.basehref=h3,this.commentsLoading=!0,this.articleId=new v1.X(""),this._sortItems=[{label:"od nejnov\u011bj\u0161\xedho",value:Q.Al.New},{label:"od nejstar\u0161\xedho",value:Q.Al.Old}],this.commentForm=new S.nJ({message:new S.p4("",S.kI.required),id:new S.p4(""),name:new S.p4(""),contact:new S.p4("")}),this.loading=!1,this.sort=new S.p4,this.currentArticle$=(0,g1.aj)([t.select($=>$.life.news.articles),this.articleId]).pipe((0,v.U)(([$,d3])=>$.find(p3=>p3.id===d3)),(0,d1.x)()),this.user$=t.select($=>$.auth.user?.username),this.isLoggedIn$=t.select($=>!!$.auth.user),this.isAdmin$=t.select($=>$.auth.user?.role===k.G7.admin),this.apiError$=t.select($=>$.life.news.error),this.commentSort$=this.store.select($=>
1$.settings.userSettings.commentSort).pipe((0,z.R)(this.onDestroy$))}ngOnInit(){this.currentArticle$.pipe((0,z.R)(this.onDestroy$)).subscribe(t=>{t?(this.data={...t},this.data.comments=[...t.comments]):this.data=null}),this.actRoute.paramMap.pipe((0,z.R)(this.onDestroy$)).subscribe(t=>{const i=t.get("name").split("-").pop();this.articleId.next(i);const h=(0,e.Cb6)("article"+i);let O=!1;this.transfer.hasKey(h)?(O=!0,this.transfer.remove(h)):(this.commentsLoading=!0,this.store.dispatch((0,r.wU)(i)),(0,a.PM)(this.platform)&&this.transfer.set(h,1)),(0,L.T)(this.apiError$.pipe((0,f.h)(H=>!!H),(0,u.w)(H=>(0,b._)(H))),this.currentArticle$.pipe(O?(0,C.q)(1):(0,s.T)(1))).pipe((0,C.q)(1)).subscribe(()=>{this.commentsLoading=!1;const H=this.windowS.window.location&&this.windowS.window.location.hash.substr(1);H&&setTimeout(()=>{this.scrollToComment(H)},10)},H=>{H instanceof K.UA&&404===H.status?this.router.navigate(["not-found"]):(console.log("error loading article by id",i,H),this.toastS.add({level:"danger",message:"Nepoda\u0159ilo se na\u010d\xedst koment\xe1\u0159e!"}),this.store.dispatch((0,r.uk)()))})}),this.isLoggedIn$.pipe((0,z.R)(this.onDestroy$)).subscribe(t=>{setTimeout(t?()=>{this.commentForm.get("name").clearValidators(),this.commentForm.get("contact").clearValidators(),this.commentForm.get("name").reset(),this.commentForm.get("contact").reset()}:()=>{this.commentForm.get("name").setValidators(S.kI.required),this.commentForm.get("contact").setValidators(S.kI.required),this.commentForm.get("name").updateValueAndValidity(),this.commentForm.get("contact").updateValueAndValidity()},0)}),(0,L.T)(this.sort.valueChanges.pipe((0,v.U)(t=>+t),(0,j.b)(t=>this.commentSort$.pipe((0,C.q)(1),(0,f.h)(c=>t!==c),(0,v.U)(()=>t))),(0,X.b)(t=>this.store.dispatch((0,_1.Dy)({commentSort:t})))),this.commentSort$.pipe((0,f.h)(t=>this.sort.value!==t),(0,X.b)(t=>this.sort.setValue(t))),this.currentArticle$.pipe((0,j.b)(t=>this.commentSort$.pipe((0,C.q)(1))))).pipe((0,z.R)(this.onDestroy$)).subscribe(t=>{!this.data||!this.data.comments||null===this.data.comments[0]||(this.data.comments=this.data.comments.sort((c,i)=>c.date<i.date?t===Q.Al.Old?-1:1:c.date>i.date?t===Q.Al.Old?1:-1:0))})}onSubmit(){this.isLoggedIn$.pipe((0,C.q)(1)).subscribe(t=>{if(this.loading=!0,t){const c=this.commentForm.get("id").value;this.store.dispatch(c?(0,r.DF)({articleId:this.data.id,commentId:c,comment:this.commentForm.get("message").value}):(0,r.Ir)({articleId:this.data.id,comment:this.commentForm.get("message").value}))}else this.store.dispatch((0,r.Ir)({articleId:this.data.id,comment:this.commentForm.get("message").value,anonId:{name:this.commentForm.get("name").value,contact:this.commentForm.get("contact").value}}))}),(0,L.T)(this.apiError$.pipe((0,f.h)(t=>!!t),(0,u.w)(t=>(0,b._)(t))),this.currentArticle$.pipe((0,s.T)(1))).pipe((0,C.q)(1),(0,p1.x)(()=>this.loading=!1)).subscribe(t=>{this.user$.pipe((0,C.q)(1)).subscribe(c=>{if(c){const i=this.commentForm.get("id").value;if(i)setTimeout(()=>{this.scrollToComment(i)},0);else{const h=t.comments.filter(O=>O.author.username===c).shift();setTimeout(()=>{this.scrollToComment(h.id)},0)}}else this.toastS.add({level:"normal",message:"Koment\xe1\u0159 odesl\xe1n"})}),this.onReset()},t=>{console.log(t),this.toastS.add({level:"danger",message:"Chyba p\u0159i odes\xedl\xe1n\xed koment\xe1\u0159e!"}),this.store.dispatch((0,r.uk)())})}onReply(t){const c=this.commentForm.get("message");c.setValue(c.value+"@"+t),this.textarea.focus()}onCommentEdit(t){this.commentForm.get("message").setValue(t.text),this.commentForm.get("id").setValue(t.id),this.textarea.focus()}onCommentRemove(t){window.confirm("Opravdu chcete odstranit tento koment\xe1\u0159?")&&(this.store.dispatch((0,r.PN)({articleId:this.data.id,commentId:t})),(0,L.T)(this.apiError$.pipe((0,f.h)(c=>!!c),(0,u.w)(c=>(0,b._)(c))),this.currentArticle$.pipe((0,s.T)(1))).pipe((0,C.q)(1)).subscribe(()=>{this.toastS.add({level:"normal",message:"Koment\xe1\u0159 odstran\u011bn"})},c=>{console.log(c),this.toastS.add({level:"danger",message:"Chyba p\u0159i odstra\u0148ov\xe1n\xed koment\xe1\u0159e!"}),this.store.dispatch((0,r.uk)())}))}onCommentLink(t){const c=this.dialogS.open(z1.c);c.link=this.windowS.window.location.href.replace(/#.*/,"")+"#"+t,c.label="Odkaz na koment\xe1\u0159",c.addEventListener("close",()=>{this.dialogS.close()}),c.addEventListener("value",i=>{this.toastS.add(i.detail?{level:"normal",message:"Text zkop\xedrov\xe1n do schr\xe1nky"}:{level:"danger",message:"Text se nepoda\u0159ilo zkop\xedrovat"}),this.dialogS.close()})}onReset(t){t&&t.preventDefault(),this.commentForm.get("message").reset(),this.commentForm.get("message").markAsUntouched(),this.commentForm.get("id").reset()}onRemove(){window.confirm("Opravdu chcete odstranit tento \u010dl\xe1nek?")&&(this.store.dispatch((0,r.RJ)(this.data.id)),(0,L.T)(this.apiError$.pipe((0,f.h)(t=>!!t),(0,u.w)(t=>(0,b._)(t))),this.currentArticle$.pipe((0,s.T)(1))).pipe((0,C.q)(1)).subscribe(()=>{this.toastS.add({level:"normal",message:"\u010cl\xe1nek odstran\u011bn"}),this.router.navigate(["/zivot/clanky"])},t=>{console.log(t),this.toastS.add({level:"danger",message:"Chyba p\u0159i odstra\u0148ov\xe1n\xed \u010dl\xe1nku!"}),this.store.dispatch((0,r.uk)())}))}onEdit(){this.router.navigate(["/zivot/upravit-clanek",this.data.id])}scrollToComment(t){const c=this.el.nativeElement.querySelector(`#c${t}`);if(c){const i=c.closest("gvp-comment");u1(i,{time:200}),i.classList.add("focused"),setTimeout(()=>i.classList.remove("focused"),10)}}onCommentClick(t){const c=t.target;c.matches("p a.reply")&&(t.preventDefault(),this.scrollToComment(c.href.split("#").pop()))}linkClick(t){const c=t.target.closest("a"),i=(0,M1.p)(this.basehref,c);null!==i&&(t.preventDefault(),this.router.navigateByUrl(i))}onPin(t){this.store.dispatch((t?r.sc:r.hW)(this.data.id)),(0,L.T)(this.apiError$.pipe((0,f.h)(c=>!!c),(0,u.w)(c=>(0,b._)(c))),this.currentArticle$.pipe((0,s.T)(1))).pipe((0,C.q)(1)).subscribe(()=>{this.toastS.add({level:"normal",message:"\u010cl\xe1nek "+(t?"p\u0159ipnut":"odepnut")})},c=>{console.log(c),this.toastS.add({level:"danger",message:"Chyba p\u0159i p\u0159ip\xedn\xe1n\xed \u010dl\xe1nku!"}),this.store.dispatch((0,r.uk)())})}}return(n=m).\u0275fac=function(t){return new(t||n)(e.Y36(_.yh),e.Y36(p.gz),e.Y36(n1.u),e.Y36(w.k),e.Y36(p.F0),e.Y36(G.H7),e.Y36(x1.x),e.Y36(e.SBq),e.Y36(G.ki),e.Y36(e.Lbi),e.Y36(a.mr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["gvp-article-page"]],viewQuery:function(t,c){if(1&t&&e.Gf(e1.R,7),2&t){let i;e.iGM(i=e.CRH())&&(c.textarea=i.first)}},features:[e.qOj],decls:22,vars:13,consts:[[4,"ngIf","ngIfElse"],["noData",""],[3,"innerHtml","click",4,"ngIf"],["icon","comment"],["icon","sort-alt",3,"formControl","items",4,"ngIf"],["commentsLoaded",""],[3,"formGroup","ngSubmit"],[4,"ngIf"],["type","hidden","formControlName","id"],["idControl",""],["placeholder","Napsat koment\xe1\u0159","formControlName","message"],["type","reset",3,"click",4,"ngIf"],["type","submit",3,"disabled","loading"],["icon","user"],[3,"routerLink",4,"ngIf"],[3,"innerHtml","click"],["icon","edit","tabindex","0","gvpKeyboardClick","","title","Upravit",3,"click"],["icon","trash-alt","tabindex","0","gvpKeyboardClick","","title","Smazat",3,"click"],["icon","thumbtack","tabindex","0","gvpKeyboardClick","","title","P\u0159ipnout",3,"click",4,"ngIf"],["tabindex","0","gvpKeyboardClick","","title","Odepnout",3,"fixedWidth","click",4,"ngIf"],["icon","thumbtack","tabindex","0","gvpKeyboardClick","","title","P\u0159ipnout",3,"click"],["tabindex","0","gvpKeyboardClick","","title","Odepnout",3,"fixedWidth","click"],["icon","thumbtack"],["icon","slash"],[3,"routerLink"],[1,"placeholder"],["icon","sort-alt",3,"formControl","items"],[3,"data","own","reply","edit","remove","click","link",4,"ngFor","ngForOf"],[3,"data","own","reply","edit","remove","click","link"],["placeholder","Jm\xe9no","formControlName","name"],["placeholder","Kontakt","formControlName","contact","title","Nebude zve\u0159ejn\u011bno"],["type","reset",3,"click"]],template:function(t,c){if(1&t&&(e.YNc(0,B1,15,15,"ng-container",0),e.YNc(1,K1,2,0,"ng-template",null,1,e.W1O),e.YNc(3,W1,1,1,"main",2),e.TgZ(4,"h3"),e._UZ(5,"fa-icon",3),e._uU(6,"Koment\xe1\u0159e"),e.qZA(),e.TgZ(7,"section"),e.YNc(8,G1,1,2,"gvp-select",4),e.YNc(9,Q1,1,0,"gvp-loader",0),e.YNc(10,j1,2,2,"ng-template",null,5,e.W1O),e.TgZ(12,"form",6),e.NdJ("ngSubmit",function(){return c.onSubmit()}),e.YNc(13,X1,5,0,"fieldset",7),e.ALo(14,"async"),e.TgZ(15,"div"),e._UZ(16,"input",8,9)(18,"gvp-textarea",10),e.YNc(19,e2,2,0,"button",11),e.TgZ(20,"gvp-button",12),e._uU(21,"Odeslat"),e.qZA()()()()),2&t){const i=e.MAs(2),h=e.MAs(11),O=e.MAs(17);e.Q6J("ngIf",c.data)("ngIfElse",i),e.xp6(3),e.Q6J("ngIf",null==c.data?null:c.data.content),e.xp6(5),e.Q6J("ngIf",null==c.data||null==c.data.comments?null:c.data.comments.length),e.xp6(1),e.Q6J("ngIf",c.commentsLoading)("ngIfElse",h),e.xp6(3),e.Q6J("formGroup",c.commentForm),e.xp6(1),e.Q6J("ngIf",!e.lcZ(14,11,c.isLoggedIn$)),e.xp6(6),e.Q6J("ngIf",O.value),e.xp6(1),e.Q6J("disabled",!c.commentForm.valid)("loading",c.loading)}},dependencies:[a.sg,a.O5,p.rH,T.BN,T.BL,I.r,P1.a,b1,e1.R,y1.R,c1.w,S._Y,S.Fj,S.JJ,S.JL,S.oH,S.sg,S.u,U1,E.W,a.Ov,a.uU],styles:['[_nghost-%COMP%]{max-width:90%;margin:auto;display:block}h1[_ngcontent-%COMP%]{text-align:center;margin:32px auto}article[_ngcontent-%COMP%]{max-width:550px;margin:6% auto;font-size:1.3em;color:rgb(var(--on-background-alt));font-style:italic}main[_ngcontent-%COMP%]{max-width:660px;margin:auto;font-size:1.1em;padding:20px;background-color:rgb(var(--background-light));border-radius:3px;text-align:justify;box-shadow:0 0 3px 0 rgba(var(--shadow-color))}main[_ngcontent-%COMP%]:after{display:block;content:"";clear:both}div[_ngcontent-%COMP%]{max-width:660px;margin:auto}
1div[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], div[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-weight:400;margin:auto}div[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:1.15em}div[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:hover){text-decoration:none}div[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-right:.4em;color:rgb(var(--secondary-light))}div[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{letter-spacing:1px}div[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%], div[_ngcontent-%COMP%] > fa-layers[_ngcontent-%COMP%]{float:right;font-size:1.4em}div[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%], div[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%], div[_ngcontent-%COMP%] > fa-layers[_ngcontent-%COMP%], div[_ngcontent-%COMP%] > fa-layers[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{cursor:pointer;transition:background-color .1s;border-radius:50%;height:35px;width:35px;margin:3px 2px;text-align:center}div[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]:hover, div[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]:hover, div[_ngcontent-%COMP%] > fa-layers[_ngcontent-%COMP%]:hover, div[_ngcontent-%COMP%] > fa-layers[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]:hover{background-color:rgb(var(--secondary-superlight))}.placeholder[_ngcontent-%COMP%]{height:200px}gvp-placeholder[_ngcontent-%COMP%]{max-width:660px;margin:auto}h3[_ngcontent-%COMP%]{text-align:center;margin:30px auto}h3[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-right:.3em}h3[_ngcontent-%COMP%] + section[_ngcontent-%COMP%]{max-width:660px;margin:0 auto 50px;padding:0 20px;border-radius:3px}h3[_ngcontent-%COMP%] + section[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-bottom:20px;display:block;font-style:italic;text-indent:3em}form[_ngcontent-%COMP%]{background-color:rgb(var(--background-light));padding:10px 15px;border-radius:3px;box-shadow:0 0 3px rgba(var(--shadow-color))}form[_ngcontent-%COMP%]   fieldset[_ngcontent-%COMP%]{border:0;padding:0;margin-bottom:5px}form[_ngcontent-%COMP%]   fieldset[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]   fieldset[_ngcontent-%COMP%]   gvp-input[_ngcontent-%COMP%]{width:47%}form[_ngcontent-%COMP%]   fieldset[_ngcontent-%COMP%]   gvp-input[_ngcontent-%COMP%]:first-of-type{margin-right:6%}form[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:flex-end}@media screen and (max-width: 520px){form[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex-wrap:wrap}}form[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   gvp-textarea[_ngcontent-%COMP%]{flex-basis:100%;margin-right:10px;margin-top:8px;font-size:1.1em}form[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   gvp-button[_ngcontent-%COMP%]{margin-top:3px;width:100px;flex-shrink:0}form[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   [type=reset][_ngcontent-%COMP%]{margin-right:5px;background-color:transparent;border:0;font-size:.9em;cursor:pointer;padding:7px 6px;margin-top:3px;color:rgb(var(--on-background))}form[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   [type=reset][_ngcontent-%COMP%]:hover, form[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   [type=reset][_ngcontent-%COMP%]:focus{text-decoration:underline}article[_ngcontent-%COMP%]     blockquote, main[_ngcontent-%COMP%]     blockquote{border-left:8px solid rgb(var(--background-accent));margin:0;padding:20px 40px}article[_ngcontent-%COMP%]     blockquote p, main[_ngcontent-%COMP%]     blockquote p{margin:0}article[_ngcontent-%COMP%]     table, main[_ngcontent-%COMP%]     table{border-collapse:collapse;margin:auto}article[_ngcontent-%COMP%]     table th, article[_ngcontent-%COMP%]     table td, main[_ngcontent-%COMP%]     table th, main[_ngcontent-%COMP%]     table td{border:1px solid currentColor;padding:1px 5px}article[_ngcontent-%COMP%]     .media-container, main[_ngcontent-%COMP%]     .media-container{position:relative;padding-bottom:56.2493%}article[_ngcontent-%COMP%]     .media-container iframe, main[_ngcontent-%COMP%]     .media-container iframe{position:absolute;top:0;left:0;height:100%;width:100%}article[_ngcontent-%COMP%]     figure.image-style-side, main[_ngcontent-%COMP%]     figure.image-style-side{float:right;max-width:50%}article[_ngcontent-%COMP%]     figure>a, main[_ngcontent-%COMP%]     figure>a{text-align:center;display:block}article[_ngcontent-%COMP%]     img, main[_ngcontent-%COMP%]     img{max-width:100%;box-shadow:0 0 3px rgba(var(--shadow-color))}article[_ngcontent-%COMP%]     figcaption, main[_ngcontent-%COMP%]     figcaption{text-align:center;font-size:.95em}gvp-select[_ngcontent-%COMP%]{margin-bottom:10px}gvp-loader[_ngcontent-%COMP%]{margin:0 auto 40px;width:60px}']}),m})();var a1=l(4366),o1=l(9623),i1=l(8567),r1=l(3963);function n2(n,m){1&n&&e._UZ(0,"gvp-placeholder")}function c2(n,m){1&n&&e._UZ(0,"gvp-article",4),2&n&&e.Q6J("data",m.$implicit)}function a2(n,m){if(1&n&&(e._UZ(0,"gvp-pagination",5),e.ALo(1,"async"),e.ALo(2,"async")),2&n){const o=e.oxw();e.MGl("baseUrl","/zivot/autor/",e.lcZ(2,5,o.author$),""),e.Q6J("current",o.page)("max",e.lcZ(1,3,o.maxPage$))}}const o2=function(){return["far","newspaper"]};let l1=(()=>{var n;class m extends y.C{constructor(t,c,i,h){super(),this.toastS=t,this.store=c,this.route=i,this.router=h,this.articlePlaceholders=Array(3),this.page=1,this.isLoggedIn$=this.store.select(O=>O.auth.user).pipe((0,v.U)(O=>!!O)),this.user$=this.store.select(O=>O.auth.user&&O.auth.user.username),this.author$=this.store.select(O=>O.life.news.viewedAuthor&&O.life.news.viewedAuthor.name),this.apiError$=this.store.select(O=>O.life.news.error),this.articles$=this.store.select(O=>O.life.news.articles),this.maxPage$=this.store.select(O=>O.life.news.articlesPagesCount)}ngOnInit(){this.route.paramMap.pipe((0,u.w)(t=>this.store.select(c=>
1c.life.news.articlesCurrentPage).pipe((0,C.q)(1),(0,v.U)(c=>[c,+t.get("page")||1,t.get("author")]))),(0,z.R)(this.onDestroy$)).subscribe(([t,c,i])=>{this.page=c,c!==t&&this.store.dispatch((0,r.LZ)()),this.store.dispatch((0,r.Rc)({page:this.page,author:i})),(0,L.T)(this.apiError$.pipe((0,f.h)(h=>!!h),(0,u.w)(h=>(0,b._)(h))),this.articles$.pipe((0,s.T)(1))).pipe((0,C.q)(1)).subscribe(()=>this.articlePlaceholders=[],h=>{console.log(h),this.toastS.add({level:"danger",message:"Nepoda\u0159ilo se na\u010d\xedst \u010dl\xe1nky!"}),this.store.dispatch((0,r.uk)())})})}onRemoveArticle(t){window.confirm("Opravdu chcete odstranit tento \u010dl\xe1nek?")&&(this.store.dispatch((0,r.RJ)(t)),(0,L.T)(this.apiError$.pipe((0,f.h)(c=>!!c),(0,u.w)(c=>(0,b._)(c))),this.articles$.pipe((0,s.T)(1))).pipe((0,C.q)(1)).subscribe(()=>{this.toastS.add({level:"normal",message:"\u010cl\xe1nek odstran\u011bn"})},c=>{console.log(c),this.toastS.add({level:"danger",message:"Chyba p\u0159i odstra\u0148ov\xe1n\xed \u010dl\xe1nku!"}),this.store.dispatch((0,r.uk)())}))}onEditArticle(t){this.router.navigate(["/zivot/upravit-clanek",t])}ngOnDestroy(){super.ngOnDestroy(),this.store.dispatch((0,r.HV)())}}return(n=m).\u0275fac=function(t){return new(t||n)(e.Y36(w.k),e.Y36(_.yh),e.Y36(p.gz),e.Y36(p.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["gvp-user-page"]],features:[e.qOj],decls:9,vars:13,consts:[[3,"icon","fixedWidth"],[4,"ngFor","ngForOf"],[3,"data",4,"ngFor","ngForOf"],[3,"current","max","baseUrl",4,"ngIf"],[3,"data"],[3,"current","max","baseUrl"]],template:function(t,c){1&t&&(e.TgZ(0,"h1"),e._UZ(1,"fa-icon",0),e._uU(2),e.ALo(3,"async"),e.qZA(),e.YNc(4,n2,1,0,"gvp-placeholder",1),e.YNc(5,c2,1,1,"gvp-article",2),e.ALo(6,"async"),e.YNc(7,a2,3,7,"gvp-pagination",3),e.ALo(8,"async")),2&t&&(e.xp6(1),e.Q6J("icon",e.DdM(12,o2))("fixedWidth",!0),e.xp6(1),e.hij("\u010cl\xe1nky u\u017eivatele ",e.lcZ(3,6,c.author$),""),e.xp6(2),e.Q6J("ngForOf",c.articlePlaceholders),e.xp6(1),e.Q6J("ngForOf",e.lcZ(6,8,c.articles$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(8,10,c.maxPage$)>1))},dependencies:[a.sg,a.O5,T.BN,U.Q,P.t,E.W,a.Ov],styles:["[_nghost-%COMP%]{text-align:left;padding:10px;display:block}gvp-article[_ngcontent-%COMP%], gvp-placeholder[_ngcontent-%COMP%]{display:block;margin:25px auto;max-width:700px;text-align:left}gvp-pagination[_ngcontent-%COMP%]{margin:30px auto 20px}h1[_ngcontent-%COMP%]{margin:20px auto;line-height:2em;max-width:800px;font-size:1.5em}h1[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-right:9px}"],data:{animation:[(0,d.X$)("fade",[(0,d.eR)(":enter",(0,d._7)(M.U1,{params:{start:"0",end:"1",time:"0.1s"}})),(0,d.eR)(":leave",(0,d._7)(M.U1,{params:{start:"1",end:"0",time:"0.1s"}}))])]}}),m})();var Y=l(6131);const s1=[{control:"preface",placeholder:"\xdavod k \u010dl\xe1nku. Jeden odstavec, c\xedlem je namotivovat \u010dten\xe1\u0159e k zobrazen\xed cel\xe9ho obsahu",config:{toolbar:["bold","italic","underline","strikethrough","subscript","superscript","|","fontColor","fontBackgroun
1dColor","|","alignment","blockQuote","link","bulletedList","numberedList","|","imageUpload","|","undo","redo"],extraPlugins:[o1.w]},validators:[S.kI.required]},{control:"content",placeholder:"Samotn\xfd \u010dl\xe1nek. Obr\xe1zky v\u011bt\u0161\xed ne\u017e 2M nejde nahr\xe1t, mus\xedte je zmen\u0161it",config:{extraPlugins:[o1.w]},validators:[]}],m1=n=>n.life.news.error,f1=n=>n.life.news.articles,i2=[{path:"clanky",component:x,data:{title:"\u010cl\xe1nky"}},{path:"clanky/:page",component:x,data:{title:"\u010cl\xe1nky"}},{path:"autor/:author",component:l1,data:{title:"\u010cl\xe1nky | \u010cl\xe1nky u\u017eivatele"}},{path:"autor/:author/:page",component:l1,data:{title:"\u010cl\xe1nky | \u010cl\xe1nky u\u017eivatele"}},{path:"clanek/:name",component:t2},{path:"pridat-clanek",component:a1.W,data:{config:{editors:s1,defaultRoute:["/zivot/clanky"],idProvided:!1,pageTitle:"P\u0159idat \u010dl\xe1nek",withMessage:!0,retrieveFunction:f1,retrieveErrorFunction:m1,actionFactories:{errorSeen:r.uk,save:r.qM}},permission:k.G7.student,title:"P\u0159idat \u010dl\xe1nek"},canActivate:[n=>(0,e.f3M)(i1.d).canActivate(n)],canDeactivate:[(n,m,o)=>(0,e.f3M)(r1.I).canDeactivate(n,m,o)]},{path:"upravit-clanek/:id",component:a1.W,data:{config:{editors:s1,defaultRoute:["/zivot/clanky"],idProvided:!0,pageTitle:"Upravit \u010dl\xe1nek",withMessage:!1,retrieveFunction:f1,retrieveErrorFunction:m1,actionFactories:{errorSeen:r.uk,save:r.OD,load:r.wU}},permission:k.G7.student,title:"Upravit \u010dl\xe1nek"},canActivate:[n=>(0,e.f3M)(i1.d).canActivate(n)],canDeactivate:[(n,m,o)=>(0,e.f3M)(r1.I).canDeactivate(n,m,o)]},{path:"projekty",component:Y.g,data:{staticId:23}},{path:"zajezdy",component:Y.g,data:{staticId:24}},{path:"souteze",component:Y.g,data:{staticId:25}},{path:"erasmus",component:Y.g,data:{staticId:40}}];let r2=(()=>{var n;class m{}return(n=m).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[p.Bz.forChild(i2),p.Bz]}),m})();var D=l(9469),h1={prefix:"far",iconName:"newspaper",icon:[576,512,[],"f1ea","M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h496c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24zM48 392V144h16v248c0 4.411-3.589 8-8 8s-8-3.589-8-8zm480 8H111.422c.374-2.614.578-5.283.578-8V112h416v288zM172 280h136c6.627 0 12-5.373 12-12v-96c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v96c0 6.627 5.373 12 12 12zm28-80h80v40h-80v-40zm-40 140v-24c0-6.627 5.373-12 12-12h136c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H172c-6.627 0-12-5.373-12-12zm192 0v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0-144v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0 72v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12z"]},q0=l(8943),N=l(1492),R=l(3049),q=l(7522),J=l(1006),j0=l(4152);let X0=(()=>{var n;class m extends y.C{constructor(t){super(),this.http=t}getArticles(t=1){return this.http.get("articles",(new K.LE).append("page",t.toString())).pipe((0,v.U)(c=>(c.articles=c.articles.map(i=>(i.date=new Date(i.date),i)),c)),(0,z.R)(this.onDestroy$))}getArticlesByAuthor(t,c=1){return this.http.get("articles",(new K.LE).append("page",c.toString()).append("author",t).append("action","by_author")).pipe((0,v.U)(i=>(i.articles=i.articles.map(h=>(h.date=new Date(h.date),h)),i)),(0,z.R)(this.onDestroy$))}getArticleById(t){return this.http.get("articles",(new K.LE).append("action","by_id").append("id",t)).pipe((0,v.U)(c=>(c.date=new Date(c.date),c)),(0,z.R)(this.onDestroy$))}addArticle(t){return this.http.post("articles",{message:null,content:null,...t}).pipe((0,z.R)(this.onDestroy$))}editArticle(t){return this.http.put("articles",{content:null,...t}).pipe((0,z.R)(this.onDestroy$))}removeArticle(t){return this.http.delete("articles",(new K.LE).append("id",t)).pipe((0,z.R)(this.onDestroy$))}addComment(t,c,i){return this.http.post("comments",{articleId:t,content:c,anonId:i}).pipe((0,z.R)(this.onDestroy$))}editComment(t,c){return this.http.put("comments",{id:t,content:c}).pipe((0,z.R)(this.onDestroy$))}
1removeComment(t){return this.http.delete("comments",(new K.LE).append("id",t)).pipe((0,z.R)(this.onDestroy$))}refreshComments(t){return this.http.get("comments",(new K.LE).append("art_id",t)).pipe((0,z.R)(this.onDestroy$))}pinArticle(t,c){return this.http.post("articles",{pinned:c,id:t,action:"pin"})}}return(n=m).\u0275fac=function(t){return new(t||n)(e.LFG(j0.O))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),m})(),e3=(()=>{var n;class m{constructor(t,c){this.actions$=t,this.newsS=c,this.loadArticles$=(0,N.GW)(()=>this.actions$.pipe((0,N.l4)(r.nw),(0,u.w)(i=>this.newsS.getArticles(i.payload).pipe((0,v.U)(h=>(0,r.nl)({...h,currentPage:i.payload})),(0,R.K)(h=>(0,J.of)((0,r.qF)(h))))))),this.loadArticlesByAuthor$=(0,N.GW)(()=>this.actions$.pipe((0,N.l4)(r.Rc),(0,u.w)(i=>this.newsS.getArticlesByAuthor(i.payload.author,i.payload.page).pipe((0,v.U)(h=>(0,r.fo)({...h,currentPage:i.payload.page})),(0,R.K)(h=>(0,J.of)((0,r.qF)(h))))))),this.loadArticleById$=(0,N.GW)(()=>this.actions$.pipe((0,N.l4)(r.wU),(0,u.w)(i=>this.newsS.getArticleById(i.payload).pipe((0,v.U)(h=>(0,r.Qc)(h)),(0,R.K)(h=>(0,J.of)((0,r.qF)(h))))))),this.addComment$=(0,N.GW)(()=>this.actions$.pipe((0,N.l4)(r.Ir),(0,q.zg)(i=>this.newsS.addComment(i.payload.articleId,i.payload.comment,i.payload.anonId).pipe((0,v.U)(()=>(0,r.JH)({articleId:i.payload.articleId})),(0,R.K)(h=>(0,J.of)((0,r.qF)(h))))))),this.editComment$=(0,N.GW)(()=>this.actions$.pipe((0,N.l4)(r.DF),(0,q.zg)(i=>this.newsS.editComment(i.payload.commentId,i.payload.comment).pipe((0,v.U)(()=>(0,r.JH)({articleId:i.payload.articleId})),(0,R.K)(h=>(0,J.of)((0,r.qF)(h))))))),this.removeComment$=(0,N.GW)(()=>this.actions$.pipe((0,N.l4)(r.PN),(0,q.zg)(i=>this.newsS.removeComment(i.payload.commentId).pipe((0,v.U)(()=>(0,r.JH)({articleId:i.payload.articleId})),(0,R.K)(h=>(0,J.of)((0,r.qF)(h))))))),this.refreshComment$=(0,N.GW)(()=>this.actions$.pipe((0,N.l4)(r.JH),(0,u.w)(i=>this.newsS.refreshComments(i.payload.articleId).pipe((0,v.U)(h=>(0,r.GU)({articleId:i.payload.articleId,comments:h})),(0,R.K)(h=>(0,J.of)((0,r.qF)(h))))))),this.removeArticle$=(0,N.GW)(()=>this.actions$.pipe((0,N.l4)(r.RJ),(0,u.w)(i=>this.newsS.removeArticle(i.payload).pipe((0,v.U)(h=>(0,r.SW)(i.payload)),(0,R.K)(h=>(0,J.of)((0,r.qF)(h))))))),this.addArticle$=(0,N.GW)(()=>this.actions$.pipe((0,N.l4)(r.qM),(0,u.w)(i=>this.newsS.addArticle(i.payload).pipe((0,v.U)(()=>(0,r.tL)()),(0,R.K)(h=>(0,J.of)((0,r.qF)(h))))))),this.editArticle$=(0,N.GW)(()=>this.actions$.pipe((0,N.l4)(r.OD),(0,u.w)(i=>this.newsS.editArticle(i.payload).pipe((0,v.U)(()=>(0,r.tn)()),(0,R.K)(h=>(0,J.of)((0,r.qF)(h))))))),this.pinArticle$=(0,N.GW)(()=>this.actions$.pipe((0,N.l4)(r.sc,r.hW),(0,u.w)(i=>this.newsS.pinArticle(i.payload,i.type===r.sc.type).pipe((0,v.U)(()=>(i.type===r.sc.type?r.HH:r.hx)(i.payload)),(0,R.K)(h=>(0,J.of)((0,r.qF)(h)))))))}}return(n=m).\u0275fac=function(t){return new(t||n)(e.LFG(N.eX),e.LFG(X0))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),m})();l(108);const c3={news:(0,_.Lq)({articles:[],articlesPagesCount:0,articlesCurrentPage:0},(0,_.on)(r.qF,(n,{payload:m})=>({...n,error:m})),(0,_.on)(r.uk,n=>({...n,error:null})),(0,_.on)(r.nl,(n,{payload:m})=>({...n,articles:m.articles,articlesPagesCount:m.pagesCount,articlesCurrentPage:m.currentPage})),(0,_.on)(r.fo,(n,{payload:m})=>({...n,articles:m.articles,articlesPagesCount:m.pagesCount,articlesCurrentPage:m.currentPage,viewedAuthor:m.author})),(0,_.on)(r.HV,n=>({...n,viewedAuthor:null})),(0,_.on)(r.Qc,(n,{payload:m})=>{const o=n.articles.findIndex(c=>c.id===m.id),t=[...n.articles];return o>-1?t[o]=m:t.push(m),{...n,articles:[...t]}}),(0,_.on)(r.tL,r.tn,n=>({...n,articles:[...n.articles]})),(0,_.on)(r.SW,(n,{payload:m})=>({...n,articles:n.articles.filter(o=>o.id!==m)})),(0,_.on)(r.GU,(n,{payload:m})=>({...n,articles:n.articles.map(o=>o.id===m.articleId?{...o,comments:[...m.comments]}:o)})),(0,_.on)(r.LZ,n=>({...n,articles:[]})),(0,_.on)(r.HH,(n,{payload:m})=>({...n,articles:n.articles.map(o=>o.id===m?{...o,pinned:!0}:o)})),(0,_.on)(r.hx,(n,{payload:m})=>({...n,articles:n.articles.map(o=>o.id===m?{...o,pinned:!1}
1:o)})))},a3=new e.OlP("Life Reducer",{factory:()=>c3}),o3=new e.OlP("Life Initial State",{factory:()=>({initialState:(0,e.f3M)(G.ki).get((0,G.Cb)("ngrx"),{}).life})});var i3=l(107);let r3=(()=>{var n;class m{constructor(t){t.addIcons(D.ILF,h1,D.UJf,D.Mzg,D.I7k,D.Xcf,D.Lh7,D.BC0,D.nNP,D.RP7,D.gPx,D.u6k)}}return(n=m).\u0275fac=function(t){return new(t||n)(e.LFG(T.by))},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[a.ez,r2,T.uH,q0.B,N.sQ.forFeature([e3]),_.Aw.forFeature("life",a3,o3),i3.CmsModule,S.UX]}),m})()},5227:(W,Z,l)=>{"use strict";l.d(Z,{t:()=>U});var a=l(3714),e=l(138),p=l(6206),L=l(962),b=l(3223),v=l(7213),u=l(1945),C=l(5813),z=l(3431),f=l(7955),s=l(6244),d=l(7863);function M(P,E){1&P&&a._UZ(0,"fa-icon",8)}function r(P,E){if(1&P){const V=a.EpF();a.TgZ(0,"fa-icon",9),a.NdJ("click",function(){a.CHM(V);const g=a.oxw();return a.KtG(g.showOverflowMenu=!g.showOverflowMenu)}),a.qZA()}}function y(P,E){if(1&P){const V=a.EpF();a.TgZ(0,"fa-icon",14),a.NdJ("click",function(){a.CHM(V);const g=a.oxw(2);return a.KtG(g.onPin(!0))}),a.qZA()}}function k(P,E){if(1&P){const V=a.EpF();a.TgZ(0,"fa-layers",15),a.NdJ("click",function(){a.CHM(V);const g=a.oxw(2);return a.KtG(g.onPin(!1))}),a._UZ(1,"fa-icon",16)(2,"fa-icon",17),a.qZA()}2&P&&a.Q6J("fixedWidth",!0)}function w(P,E){if(1&P){const V=a.EpF();a.ynx(0),a.TgZ(1,"fa-icon",18),a.NdJ("click",function(){a.CHM(V);const g=a.oxw(2);return a.KtG(g.onEdit())}),a.qZA(),a.TgZ(2,"fa-icon",19),a.NdJ("click",function(){a.CHM(V);const g=a.oxw(2);return a.KtG(g.onRemove())}),a.qZA(),a.BQk()}}function _(P,E){if(1&P&&(a.TgZ(0,"nav",10),a.YNc(1,y,1,0,"fa-icon",11),a.YNc(2,k,3,1,"fa-layers",12),a.YNc(3,w,3,0,"ng-container",13),a.qZA()),2&P){const V=a.oxw();a.Q6J("@dropdown",void 0),a.xp6(1),a.Q6J("ngIf",V.isAdmin&&!V.data.pinned),a.xp6(1),a.Q6J("ngIf",V.isAdmin&&V.data.pinned),a.xp6(1),a.Q6J("ngIf",V.own)}}const T=function(P){return["/zivot","clanek",P]},I=function(P){return["/zivot/autor",P]};let U=(()=>{var P;class E extends e.M{set data(A){this._data=A,this._preface=this.sanitizer.bypassSecurityTrustHtml((0,u.X)(this._data.preface).replace(/(<\/p>)?$/i,A.content?`<a class="content-indicator continue" title="\u010cl\xe1nek d\xe1le pokra\u010duje" href="zivot/clanek/${A.link}">&#9658;</a>$1`:'<span class="content-indicator end" title="\u010cl\xe1nek nem\xe1 pokra\u010dov\xe1n\xed">&#9632;</span>$1'))}get data(){return this._data}constructor(A,g,F,B){super(g),this.sanitizer=A,this.router=F,this.basehref=B,this.edit=new a.vpe,this.remove=new a.vpe,this.pin=new a.vpe,this.isAdmin=!1}ngOnInit(){super.ngOnInit()}onEdit(){this.edit.next(),this.showOverflowMenu=!1}onRemove(){this.remove.next(),this.showOverflowMenu=!1}linkClick(A){const g=A.target.closest("a"),F=(0,v.p)(this.basehref,g);null!==F&&(A.preventDefault(),this.router.navigateByUrl(F))}onPin(A){this.pin.emit(A),this.showOverflowMenu=!1}}return(P=E).\u0275fac=function(A){return new(A||P)(a.Y36(C.H7),a.Y36(z.M),a.Y36(f.F0),a.Y36(b.mr))},P.\u0275cmp=a.Xpm({type:P,selectors:[["gvp-article"]],inputs:{data:"data",isAdmin:"isAdmin"},outputs:{edit:"edit",remove:"remove",pin:"pin"},features:[a.qOj],decls:20,vars:20,consts:[[3,"routerLink"],["icon","thumbtack","title","P\u0159ipnut\xfd \u010dl\xe1nek",4,"ngIf"],["icon","ellipsis-v","tabindex","0","aria-haspopup","true","gvpKeyboardClick","",3,"click",4,"ngIf"],["class","overflow",4,"ngIf"],[3,"innerHtml","click"],[1,"fill"],["icon","comment"],["icon","user"],["icon","thumbtack","title","P\u0159ipnut\xfd \u010dl\xe1nek"],["icon","ellipsis-v","tabindex","0","aria-haspopup","true","gvpKeyboardClick","",3,"click"],[1,"overflow"],["icon","thumbtack","tabindex","0","gvpKeyboardClick","","title","P\u0159ipnout",3,"click",4,"ngIf"],["tabindex","0","gvpKeyboardClick","","title","Odepnout",3,"fixedWidth","click",4,"ngIf"],[4,"ngIf"],["icon","thumbtack","tabindex","0","gvpKeyboardClick","","title","P\u0159ipnout",3,"click"],["tabindex","0","gvpKeyboardClick","","title","Odepnout",3,"fixedWidth","click"],["icon","thumbtack"],["icon","slash"],["icon","edit","tabindex","0","gvpKeyboardClick","","title","Upravit",3,"click"],["icon","trash-alt","tabindex","0","gvpKeyboardClick","","title","Smazat",3,"click"]],template:function(A,g){1&A&&(a.TgZ(0,"h3")(1,"a",0),a.YNc(2,M,1,0,"fa-icon",1),a._uU(3),a.qZA(),a.YNc(4,r,1,0,"fa-icon",2),a.qZA(),a.TgZ(5,"span"),a._uU(6),a.ALo(7,"date"),a.qZA(),a.YNc(8,_,4,4,"nav",3),a.TgZ(9,"article",4),a.NdJ("click",function(B){return g.linkCl
1ick(B)}),a.qZA(),a.TgZ(10,"footer"),a._UZ(11,"a",5),a.TgZ(12,"a",0),a._UZ(13,"fa-icon",6),a.TgZ(14,"span"),a._uU(15),a.qZA()(),a.TgZ(16,"a",0),a._UZ(17,"fa-icon",7),a.TgZ(18,"span"),a._uU(19),a.qZA()()()),2&A&&(a.xp6(1),a.Q6J("routerLink",a.VKq(14,T,g.data.link)),a.xp6(1),a.Q6J("ngIf",g.data.pinned),a.xp6(1),a.hij("",g.data.title," "),a.xp6(1),a.Q6J("ngIf",g.own||g.isAdmin),a.xp6(2),a.Oqu(a.xi3(7,11,g.data.date,"dd. MM. yyyy")),a.xp6(2),a.Q6J("ngIf",g.showOverflowMenu),a.xp6(1),a.Q6J("innerHtml",g._preface,a.oJD),a.xp6(3),a.Q6J("routerLink",a.VKq(16,T,g.data.link)),a.xp6(3),a.Oqu(g.data.comments.length),a.xp6(1),a.Q6J("routerLink",a.VKq(18,I,g.data.author.username.toLowerCase())),a.xp6(3),a.Oqu(g.data.author.name))},dependencies:[b.O5,f.rH,s.BN,s.BL,d.w,b.uU],styles:["[_nghost-%COMP%]{display:block;background-color:rgb(var(--background-light));color:rgb(var(--on-background));box-shadow:0 0 3px 0 rgba(var(--shadow-color));border-radius:3px;padding:0;overflow-y:auto;overflow-x:hidden;position:relative}h3[_ngcontent-%COMP%]{background-color:rgb(var(--primary-dark));color:rgb(var(--on-primary-dark));padding-left:15px;min-height:60px;margin:0 auto 5px;display:flex;align-items:center;justify-content:space-between}h3[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;padding:10px 0}h3[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-left:-10px}h3[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}h3[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{color:rgb(var(--on-primary-dark));padding:15px 10px;text-align:center}h3[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]{cursor:pointer}article[_ngcontent-%COMP%]{padding:10px}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{color:rgb(var(--on-background-alt));font-style:italic;display:block;text-align:right;margin-right:10px}footer[_ngcontent-%COMP%]{background-color:rgb(var(--background));padding:5px;display:flex}footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{flex-basis:33%;text-decoration:none}footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:nth-of-type(2){text-align:center}footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:nth-of-type(3){text-align:right}@media (max-width: 580px){footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{flex-basis:50%}footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:nth-of-type(3){text-align:center}footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:nth-of-type(1){display:none}}footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{text-decoration:underline}footer[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:.8em;color:rgb(var(--secondary-light))}nav.overflow[_ngcontent-%COMP%]{z-index:1;position:absolute;display:flex;flex-wrap:wrap;right:10px;background-color:rgb(var(--background-light));color:rgb(var(--on-background));top:17px;width:120px;padding:0;box-shadow:0 0 4px rgba(var(--shadow-color));border-radius:3px;transition:.2s height,.2s width}nav.overflow[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%], nav.overflow[_ngcontent-%COMP%]   fa-layers[_ngcontent-%COMP%]{position:relative;margin:8px}nav.overflow[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%], nav.overflow[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%], nav.overflow[_ngcontent-%COMP%]   fa-layers[_ngcontent-%COMP%], nav.overflow[_ngcontent-%COMP%]   fa-layers[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{display:inline-block;width:44px;text-align:center;line-height:44px;height:44px;font-size:19px;cursor:pointer;border-radius:50%;overflow:hidden;transition:.2s}nav.overflow[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]:hover, nav.overflow[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]:focus, nav.overflow[_ngcontent-%COMP%]   fa-layers[_ngcontent-%COMP%]:hover, nav.overflow[_ngcontent-%COMP%]   fa-layers[_ngcontent-%COMP%]:focus{background-color:rgb(var(--secondary-superlight))}article[_ngcontent-%COMP%]     p:first-child{margin-top:0}article[_ngcontent-%COMP%]     .content-indicator{color:rgb(var(--secondary-light));margin-left:4px;-webkit-user-select:none;user-select:none;text-decoration:none}article[_ngcontent-%COMP%]     .content-indicator.continue{cursor:pointer}
1article[_ngcontent-%COMP%]     blockquote{border-left:8px solid rgb(var(--background-accent));margin:0;padding:20px 40px}article[_ngcontent-%COMP%]     blockquote p{margin:0}article[_ngcontent-%COMP%]     table{border-collapse:collapse;margin:auto}article[_ngcontent-%COMP%]     table th, article[_ngcontent-%COMP%]     table td{border:1px solid currentColor;padding:1px 5px}article[_ngcontent-%COMP%]     .media-container{position:relative;padding-bottom:56.2493%}article[_ngcontent-%COMP%]     .media-container iframe{position:absolute;top:0;left:0;height:100%;width:100%}article[_ngcontent-%COMP%]     figure.image-style-side{float:right;max-width:50%}article[_ngcontent-%COMP%]     figure>a{text-align:center;display:block}article[_ngcontent-%COMP%]     img{max-width:100%;box-shadow:0 0 3px rgba(var(--shadow-color))}article[_ngcontent-%COMP%]     figcaption{text-align:center;font-size:.95em}"],data:{animation:[(0,p.X$)("dropdown",[(0,p.eR)(":enter",[(0,p._7)(L.Ie)]),(0,p.eR)(":leave",[(0,p._7)(L.V7)])])]}}),E})()},2169:(W,Z,l)=>{"use strict";l.d(Z,{W:()=>b});var a=l(3714),e=l(3223);function p(v,u){1&v&&a._UZ(0,"div"),2&v&&a.Udp("margin-right",u.$implicit,"%")}function L(v,u){1&v&&a._UZ(0,"div"),2&v&&a.Udp("margin-right",u.$implicit,"%")}let b=(()=>{var v;class u{constructor(){this.lines=Array(Math.floor(3*Math.random())+3).fill(0).map(()=>Math.floor(12*Math.random())+3),this.headerLines=[Math.floor(12*Math.random())+20,Math.floor(12*Math.random())+23]}ngOnInit(){}}return(v=u).\u0275fac=function(z){return new(z||v)},v.\u0275cmp=a.Xpm({type:v,selectors:[["gvp-placeholder"]],decls:4,vars:2,consts:[[3,"margin-right",4,"ngFor","ngForOf"]],template:function(z,f){1&z&&(a.TgZ(0,"header"),a.YNc(1,p,1,2,"div",0),a.qZA(),a.TgZ(2,"article"),a.YNc(3,L,1,2,"div",0),a.qZA()),2&z&&(a.xp6(1),a.Q6J("ngForOf",f.headerLines),a.xp6(2),a.Q6J("ngForOf",f.lines))},dependencies:[e.sg],styles:["[_nghost-%COMP%]{display:block;background-color:rgb(var(--background-light));box-shadow:0 0 3px 0 rgba(var(--shadow-color));border-radius:3px;padding:10px;overflow:hidden}header[_ngcontent-%COMP%]{height:55px;max-width:300px}div[_ngcontent-%COMP%]{height:8px;border-radius:4px;background-color:rgb(var(--background));margin:15px 10px;background-image:linear-gradient(to right,rgb(var(--background)) 8%,rgb(var(--background-accent)) 18%,rgb(var(--background)) 33%);background-size:800px 104px;background-repeat:no-repeat;animation:_ngcontent-%COMP%_loading 2s linear infinite forwards}@keyframes _ngcontent-%COMP%_loading{0%{background-position:-468px 0}to{background-position:468px 0}}"]}),u})()},8736:(W,Z,l)=>{"use strict";l.d(Z,{DF:()=>E,GU:()=>g,HH:()=>w,HV:()=>z,Ir:()=>P,JH:()=>A,LZ:()=>L,OD:()=>r,PN:()=>V,Qc:()=>s,RJ:()=>I,Rc:()=>u,SW:()=>U,fo:()=>C,hW:()=>_,hx:()=>T,nl:()=>v,nw:()=>b,qF:()=>F,qM:()=>d,sc:()=>k,tL:()=>M,tn:()=>y,uk:()=>B,wU:()=>f});var a=l(3826),e=l(4662),p=function(x){return x.ClearArticles="[News] Clear Articles",x.LoadArticles="[News] Load Articles",x.ArticlesLoaded="[News] Articles Loaded",x.LoadArticlesByAuthor="[News] Load Articles By Author",x.ArticlesLoadedByAuthor="[News] Articles Loaded By Author",x.ClearAuthor="[News] Clear Author",x.LoadArticleById="[News] Load Article By Id",x.ArticleLoadedById="[News] Article Loaded By Id",x.AddArticle="[News] Add Article",x.ArticleAdded="[News] Article Added",x.EditArticle="[News] Edit Article",x.ArticleEdited="[News] Article Edited",x.PinArticle="[News] Pin Article",x.ArticlePinned="[News] Article Pinned",x.UnpinArticle="[News] Unpin Article",x.ArticleUnpinned="[News] Article Unpinned",x.RemoveArticle="[News] Remove Article",x.ArticleRemoved="[News] Article Removed",x.AddComment="[News] Add Comment",x.EditComment="[News] Edit Comment",x.RemoveComment="[News] Remove Comment",x.RefreshComments="[News] Refresh Comments",x.CommentsRefreshed="[News] Comments Refreshed",x.ApiError="[News] Api Error",x.ErrorSeen="[News] Error Seen",x}(p||{});const L=(0,a.PH)(p.ClearArticles),b=(0,a.PH)(p.LoadArticles,(0,e.x)()),v=(0,a.PH)(p.ArticlesLoaded,(0,e.x)()),u=(0,a.PH)(p.LoadArticlesByAuthor,(0,e.x)()),C=(0,a.PH)(p.ArticlesLoadedByAuthor,(0,e.x)()),z=(0,a.PH)(p.ClearAuthor),f=(0,a.PH)(p.LoadArticleById,(0,e.x)()),s=(0,a.PH)(p.ArticleLoadedById,(0,e.x)()),d=(0,a.PH)(p.AddArticle,(0,e.x)()),M=(0,a.PH)(p.ArticleAdded),r=(0,a.PH)(p.EditArticle,(0,e.x)()),y=(0,a.PH)(p.ArticleEdited),k=(0,a.PH)(p.PinArticle,(0,e.x)()),w=(0,a.PH)(p.ArticlePinned,(0,e.x)()),_=(0,a.PH)(p.UnpinArticle,(0,e.x)()),T=(0,a.PH)(p.ArticleUnpinned,(0,e.x)()),I=(0,a.PH)(p.RemoveArticle,(0,e.x)()),U=(0,a.PH)(p.ArticleRemoved,(0,e.x)()),P=(0,a.PH)(p.AddComment,(0,e.x)()),E=(0,a.PH)(p.EditComment,(0,e.x)()),V=(0,a.PH)(p.RemoveComment,(0,e.x)()),A=(0,a.PH)(p.RefreshComments,(0,e.x)()),g=(0,a.PH)(p.CommentsRefreshed,(0,e.x)()),F=(0,a.PH)(p.ApiError,(0,e.x)()),B=(0,a.PH)(p.ErrorSeen)}}]);

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.