1"use strict";(self.webpackChunkenergy_tcm=self.webpackChunkenergy_tcm||[]).push([[3328],{94961:(T,p,e)=>{e.d(p,{Dn:()=>a,Ur:()=>r,YA:()=>t,wi:()=>u});const t="[Header] GET navigation",u="[Header] GET navigation success";class a{constructor(){this.type=t}}class r{constructor(m){this.payload=m,this.type=u}}},70014:(T,p,e)=>{e.d(p,{I:()=>S});var t=e(54438),u=e(76965),a=e(52699),r=e(63040);const l=()=>["/aegisx/dashboard"];let m=(()=>{class i{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(s){return new(s||i)};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["aegisx-logo"]],decls:5,vars:2,consts:[[1,"logo__link",3,"routerLink"],[1,"logo__name"],[1,"logo__motto"]],template:function(s,c){1&s&&(t.j41(0,"a",0)(1,"span",1),t.EFF(2,"Rubicon 3000"),t.k0s(),t.j41(3,"span",2),t.EFF(4,"E-shop system"),t.k0s()()),2&s&&t.Y8G("routerLink",t.lJ4(1,l))},dependencies:[r.Wk],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:stretch}.logo__link[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;flex:1 1 100%;text-decoration:none}.logo__name[_ngcontent-%COMP%]{color:#fff;font-weight:400;text-transform:uppercase}.logo__motto[_ngcontent-%COMP%]{color:#00c882;font-weight:400;font-size:12px}"]})}return i})();var h=e(94961),f=e(63649),v=e(8802),O=e(27763),o=e(12750);function d(i,E){if(1&i&&(t.j41(0,"a",4),t.EFF(1),t.k0s()),2&i){const n=E.$implicit;t.Y8G("routerLink",n.url),t.R7$(),t.JRh(n.name)}}function D(i,E){if(1&i&&(t.j41(0,"button",3),t.EFF(1),t.k0s(),t.j41(2,"mcrai-menu",null,0),t.Z7z(4,d,2,2,"a",4,t.fX1),t.k0s()),2&i){const n=t.sdS(3),s=t.XpG().$implicit;t.Y8G("mcraiMenuTriggerFor",n),t.R7$(),t.SpI(" + ",s.name," "),t.R7$(3),t.Dyx(s.subpages)}}function F(i,E){if(1&i&&(t.j41(0,"a",5),t.EFF(1),t.k0s()),2&i){const n=t.XpG().$implicit;t.Y8G("routerLink",n.url),t.R7$(),t.JRh(n.name)}}function P(i,E){if(1&i&&(t.j41(0,"li",2),t.DNE(1,D,6,2)(2,F,2,2),t.k0s()),2&i){const n=E.$implicit;t.R7$(),t.vxM(1,n.subpages.length>0?1:2)}}let y=(()=>{class i{constructor(n){this.store=n,this.pages=[]}ngOnInit(){this.getNavigation(),this.store.select(n=>n.aegisxNavigation.pages).subscribe(n=>this.pages=n)}getNavigation(){this.store.dispatch(new h.Dn)}static#t=this.\u0275fac=function(s){return new(s||i)(t.rXU(u.il))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["aegisx-main-navigation"]],decls:3,vars:0,consts:[["iSaidWhatWhatInTheButt",""],[1,"main-nav__list"],[1,"main-nav__item"],["mcrai-button","",1,"main-nav__link",3,"mcraiMenuTriggerFor"],["mcrai-menu-item","",3,"routerLink"],["mcrai-button","",1,"main-nav__link",3,"routerLink"]],template:function(s,c){1&s&&(t.j41(0,"ul",1),t.Z7z(1,P,3,1,"li",2,t.fX1),t.k0s()),2&s&&(t.R7$(),t.Dyx(c.pages))},dependencies:[r.Wk,f.Q,v.Z,O.h,o.S],styles:["[_nghost-%COMP%]{display:inline-block}.main-nav__list[_ngcontent-%COMP%]{list-style:none;display:flex;height:100%}.main-nav__item[_ngcontent-%COMP%]{display:flex;align-items:center}.main-nav__link[_ngcontent-%COMP%]{font-family:Rubik,sans-serif;font-weight:400;color:#8792a1!important}.main-nav__link[_ngcontent-%COMP%]:hover{color:#00c882!important;background-color:#001435!important}"]})}return i})();var A=e(46150);let x=(()=>{class i{constructor(){this.nickname=""}ngOnInit(){}getFirstLetter(n){return n.substring(0,1)}static#t=this.\u0275fac=function(s){return new(s||i)};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["aegisx-avatar"]],inputs:{nickname:"nickname"},decls:1,vars:1,template:function(s,c){1&s&&t.EFF(0),2&s&&t.SpI("",c.getFirstLetter(c.nickname),"\n")},styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;width:40px;height:40px;background-color:#00c882;color:#fff;text-transform:uppercase;cursor:pointer}"]})}return i})();const g=i=>["/aegisx/users",i];let C=(()=>{class i{constructor(n){this.store=n}ngOnInit(){this.store.select(n=>n.sharedUser.authenticated).subscribe(n=>this.user=n)}logout(){this.store.dispatch(new A.fQ)}static#t=this.\u0275fac=function(s){return new(s||i)(t.rXU(u.il))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["aegisx-utility-navigation"]],decls:9,vars:5,consts:[["avatar_menu",""],[1,"list"],[1,"item"],[1,"dropdown__avatar",3,"nickname","mcraiMenuTriggerFor"],["mcrai-menu-item","",3,"routerLink"],["mcrai-menu-item","",3,"click"]],template:function(s,c){if(1&s){const M=t.RV6();t.j41(0,"ul",1)(1,"li",2),t.nrm(2,"aegisx-avatar",3),t.j41(3,"mcrai-menu",null,0)(5,"a",4),t.EFF(6,"Detail"),t.k0s(),t.j41(7,"button",5),t.bIt("click",function(){return t.eBV(M),t.Njj(c.logout())}),t.EFF(8,"Odhl\xe1sit se"),t.k0s()()()()}if(2&s){const M=t.sdS(4);t.R7$(2),t.Y8G("nickname",c.user.nickname)("mcraiMenuTriggerFor",M),t.R7$(3),t.Y8G("routerLink",t.eq3(3,g,c.user.id))}},dependencies:[r.Wk,v.Z,O.h,o.S,x],styles:["[_nghost-%COMP%]{display:inline-flex;align-items:stretch;justify-content:flex-end;padding:0 20px}.list[_ngcontent-%COMP%]{list-style:none;display:flex;align-items:center}.item[_ngcontent-%COMP%]{margin-left:15px}.dropdown__item[_ngcontent-%COMP%]{padding:10px 20px}"]})}return i})(),S=(()=>{class i{constructor(n){this.store=n}ngOnInit(){this.store.select(n=>n.sharedUser.authenticated).subscribe(n=>this.user=n)}static#t=this.\u0275fac=function(s){return new(s||i)(t.rXU(u.il))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["aegisx-header"]],decls:4,vars:0,template:function(s,c){1&s&&(t.j41(0,"mcrai-container"),t.nrm(1,"aegisx-logo")(2,"aegisx-main-navigation")(3,"aegisx-utility-navigation"),t.k0s())},dependencies:[a.H,m,y,C],styles:["[_nghost-%COMP%]{display:block;position:fixed;top:0;left:0;right:0;z-index:2;height:80px;background-color:#001435}.mcrai-container[_ngcontent-%COMP%]{display:flex;align-items:stretch;justify-content:space-between;
1height:100%}"]})}return i})()},291:(T,p,e)=>{e.d(p,{G:()=>E});var t=e(60177),u=e(63040),a=e(41635),r=e(76965),l=e(94961);const m={pages:[]};function f(n=m,s){return s.type===l.wi?{...n,pages:s.payload.items}:n}var v=e(91316),O=e(12906),o=e(54438);let d=(()=>{class n extends O.d{getNavigation(){const c=this.buildUrl(["navigation","aegisx"]);return this.get(c)}static#t=this.\u0275fac=(()=>{let c;return function(I){return(c||(c=o.xGo(n)))(I||n)}})();static#n=this.\u0275prov=o.jDH({token:n,factory:n.\u0275fac})}return n})();var D=e(14421),F=e(15539),P=e(49090),y=e(95006),A=e(83921),x=e(29262);let g=(()=>{class n{constructor(c,M,I,R,V){this.actions=c,this.navigationService=M,this.store=I,this.toastService=R,this.loaderService=V}static#t=this.\u0275fac=function(M){return new(M||n)(o.KVO(a.En),o.KVO(d),o.KVO(r.il),o.KVO(x.FS),o.KVO(x.wA))};static#n=this.\u0275prov=o.jDH({token:n,factory:n.\u0275fac})}return n})();var C=e(76613);let S=(()=>{class n extends g{constructor(){super(...arguments),this.getNavigation=(0,a.EH)(()=>this.actions.pipe((0,a.gp)(l.YA),(0,F.M)(()=>this.loaderService.show()),(0,P.n)(()=>this.navigationService.getNavigation().pipe((0,y.T)(c=>new l.Ur(c)),(0,A.W)(c=>(0,D.of)(new C.Rn(c))))))),this.getNavigationSuccess=(0,a.EH)(()=>this.actions.pipe((0,a.gp)(l.wi),(0,F.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let c;return function(I){return(c||(c=o.xGo(n)))(I||n)}})();static#n=this.\u0275prov=o.jDH({token:n,factory:n.\u0275fac})}return n})();var i=e(93578);let E=(()=>{class n{static#t=this.\u0275fac=function(M){return new(M||n)};static#n=this.\u0275mod=o.$C({type:n});static#e=this.\u0275inj=o.G2t({providers:[d],imports:[t.MD,u.iI,v.U,r.md.forFeature("aegisxNavigation",f),a.Vm.forFeature([S]),i.m,x.xT,x.aM,x.LU]})}return n})()},44029:(T,p,e)=>{e.d(p,{P7:()=>f,R6:()=>v,R7:()=>a,Ty:()=>l,WF:()=>m,mS:()=>r,mr:()=>O,wX:()=>h,z3:()=>t});const t="[Toolbar] EDIT activeMode",a="[Toolbar] DISPATCH activeMode",r="[Toolbar] SET modes",l="[Toolbar] SET actions";class m{constructor(d){this.payload=d,this.type=t}}class h{constructor(d){this.payload=d,this.type=a}}class f{constructor(d){this.payload=d,this.type="[Toolbar] DISPATCH action"}}class v{constructor(d){this.payload=d,this.type=r}}class O{constructor(d){this.payload=d,this.type=l}}},1173:(T,p,e)=>{e.d(p,{H:()=>t,z:()=>u});var t=function(a){return a[a.View=0]="View",a[a.Edit=1]="Edit",a[a.Delete=2]="Delete",a}(t||{});const u="active_toolbar_mode";var a;(a=t||(t={})).keys=function r(){return Object.keys(a).map(m=>{const h=parseInt(m,10);if(h>=0)return{key:h,value:a[h]}}).filter(m=>!!m)},a.toKey=function l(){}},65382:(T,p,e)=>{e.d(p,{h:()=>f});var t=e(76965),u=e(45286),a=e(7605),r=e(1173),l=e(44029),m=e(54438),h=e(71829);let f=(()=>{class v{constructor(o,d){this.store=o,this.permissionService=d,this.destroy=new u.B7,this.TOOLBAR_MODES=r.H,this.ngOnInit()}ngOnInit(){this.store.pipe((0,t.Lt)(o=>o.aegisxToolbar.activeMode),(0,a.Q)(this.destroy)).subscribe(o=>{this.activeMode=o}),this.setToolbarActions([])}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}isModeActive(o){return this.activeMode===o}isViewMode(){return this.activeMode===r.H.View}isEditMode(){return this.activeMode===r.H.Edit}isDeleteMode(){return this.activeMode===r.H.Delete}isSelectable(){return this.isEditMode()||this.isDeleteMode()}setToolbarModes(o){this.permissionService.canWrite()||(o=[r.H.View]),this.store.dispatch(new l.R6({modes:o}))}setToolbarActions(o){this.store.dispatch(new l.mr({actions:o}))}modeToString(o){return o?this.TOOLBAR_MODES[o]:this.TOOLBAR_MODES[this.activeMode]}static#t=this.\u0275fac=function(d){return new(d||v)(m.KVO(t.il),m.KVO(h.n))};static#n=this.\u0275prov=m.jDH({token:v,factory:v.\u0275fac})}return v})()},93578:(T,p,e)=>{e.d(p,{m:()=>x});var t=e(60177),u=e(76965),a=e(41635),r=e(1173),l=e(44029);const m={actions:[],modes:[],activeMode:localStorage.getItem(r.z)?parseInt(localStorage.getItem(r.z)):r.H.View};function f(g=m,C){switch(C.type){case l.z3:return{...g,activeMode:C.payload.mode};case l.mS:return{...g,modes:C.payload.modes};case l.Ty:return{...g,actions:C.payload.actions};default:return g}}var v=e(54015),O=e(65382),o=e(29262),d=e(57421),D=e(49090),F=e(8826),P=e(73727),y=e(54438);let A=(()=>{class g{constructor(S,i,E,n){this.actions=S,this.toolbarService=i,this.store=E,this.toastService=n,this.setMode=(0,a.EH)(()=>this.actions.pipe((0,a.gp)(l.mS),(0,d.E)(this.store.select(s=>s.aegisxToolbar.activeMode)),(0,D.n)(([s,c])=>s.payload.modes.length>0&&-1===s.payload.modes.indexOf(c)?[new l.wX({mode:s.payload.modes[0]}),new F.rW({text:"Aktu\xe1ln\u011b aktivn\xed m\xf3d nen\xed na t\xe9to str\xe1nce podporov\xe1n. M\xf3d byl p\u0159epnut do prvn\xedho dostupn\xe9ho.",type:P.Z.Info,duration:4e3})]:[]))),this.dispatchMode=(0,a.EH)(()=>this.actions.pipe((0,a.gp)(l.R7),(0,D.n)(s=>(localStorage.setItem(r.z,s.payload.mode.toString()),[new l.WF({mode:s.payload.mode})]))))}static#t=this.\u0275fac=function(i){return new(i||g)(y.KVO(a.En),y.KVO(O.h),y.KVO(u.il),y.KVO(o.FS))};static#n=this.\u0275prov=y.jDH({token:g,factory:g.\u0275fac})}return g})(),x=(()=>{class g{static#t=this.\u0275fac=function(i){return new(i||g)};static#n=this.\u0275mod=y.$C({type:g});static#e=this.\u0275inj=y.G2t({providers:[O.h],imports:[t.MD,o.xT,o.o6,v.u,u.md.forFeature
1("aegisxToolbar",f),a.Vm.forFeature([A])]})}return g})()},52699:(T,p,e)=>{e.d(p,{H:()=>a});var t=e(54438);const u=["*"];let a=(()=>{class r{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(h){return new(h||r)};static#n=this.\u0275cmp=t.VBU({type:r,selectors:[["mcrai-container"]],hostVars:2,hostBindings:function(h,f){2&h&&t.AVh("mcrai-container",!0)},ngContentSelectors:u,decls:1,vars:0,template:function(h,f){1&h&&(t.NAR(),t.SdG(0))},styles:[".mcrai-container{display:block;margin:0 20px}@media (max-width: 479px){.mcrai-container{margin-left:6px;margin-right:6px}}\n"],encapsulation:2,changeDetection:0})}return r})()}}]);
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.