1"use strict";(self.webpackChunkenergy_tcm=self.webpackChunkenergy_tcm||[]).push([[502],{52070:(v,p,t)=>{t.d(p,{$:()=>n});var i=t(54438),l=t(87173),g=t(97519),d=t(33579);function h(e,D){if(1&e&&(i.j41(0,"div",0),i.EFF(1),i.k0s()),2&e){const a=i.XpG();i.R7$(),i.JRh(a.baseUrl)}}let n=(()=>{class e{get control(){return this._control}set control(a){this._control=a}get baseUrl(){switch(!0){default:case this.isProduct():return this.linkService.getProductsAbsoluteUrl();case this.isCategory():return this.linkService.getCategoriesAbsoluteUrl();case this.isArticle():return this.linkService.getArticlesAbsoluteUrl()}}get isRequired(){let a;return this.control.validator&&(a=this.control.validator({}))&&a.required}constructor(a){this.linkService=a,this.type="product",this.errors={}}ngOnInit(){}isCategory(){return"category"===this.type}isProduct(){return"product"===this.type}isArticle(){return"article"===this.type}isAbsolute(){return this.isCategory()&&/^https?:\/\//.test(this.control.value)}static#t=this.\u0275fac=function(u){return new(u||e)(i.rXU(l._))};static#e=this.\u0275cmp=i.VBU({type:e,selectors:[["aegisx-url-input"]],inputs:{type:"type",control:"control",errors:"errors"},decls:3,vars:4,consts:[[1,"url__label"],["type","text",1,"url__input",3,"control","errors","placeholder"]],template:function(u,s){1&u&&(i.j41(0,"mcrai-row"),i.DNE(1,h,2,1,"div",0),i.nrm(2,"mcrai-input",1),i.k0s()),2&u&&(i.R7$(),i.vxM(1,s.isAbsolute()?-1:1),i.R7$(),i.Y8G("control",s.control)("errors",s.errors)("placeholder",s.isRequired?"URL *":"URL"))},dependencies:[g.N,d.o],styles:[".url__label[_ngcontent-%COMP%]{align-self:flex-end;background-color:#001435;color:#fff;padding:4px 10px;border-radius:4px;margin-right:10px;font-size:13px}.url__input[_ngcontent-%COMP%]{flex-grow:1}"]})}return e})()},96161:(v,p,t)=>{t.d(p,{_:()=>n});var i=t(60177),l=t(89417),g=t(52759),d=t(29262),h=t(54438);let n=(()=>{class e{static#t=this.\u0275fac=function(u){return new(u||e)};static#e=this.\u0275mod=h.$C({type:e});static#n=this.\u0275inj=h.G2t({imports:[i.MD,g.V,l.X1,d.B4,d.LU]})}return e})()},711:(v,p,t)=>{t.d(p,{Bd:()=>l,c8:()=>g,dj:()=>i,nT:()=>d});const i="[Languages] GET languages",l="[Languages] GET languages success";class g{constructor(){this.type=i}}class d{constructor(n){this.payload=n,this.type=l}}},44152:(v,p,t)=>{t.d(p,{E:()=>y});var i=t(60177),l=t(41635),g=t(76965),d=t(15661),h=t(14421),n=t(15539),e=t(49090),D=t(95006),a=t(83921),u=t(711),s=t(54438),_=t(12906);let f=(()=>{class c extends _.d{getLanguages(){const C=this.buildUrl(["languages"]);return this.get(C)}static#t=this.\u0275fac=(()=>{let C;return function(P){return(C||(C=s.xGo(c)))(P||c)}})();static#e=this.\u0275prov=s.jDH({token:c,factory:c.\u0275fac})}return c})();var o=t(29262);let m=(()=>{class c{constructor(C,O,P,I,A){this.dataService=C,this.actions=O,this.store=P,this.toastService=I,this.loaderService=A}static#t=this.\u0275fac=function(O){return new(O||c)(s.KVO(f),s.KVO(l.En),s.KVO(g.il),s.KVO(o.FS),s.KVO(o.wA))};static#e=this.\u0275prov=s.jDH({token:c,factory:c.\u0275fac})}return c})();var r=t(76613);let E=(()=>{class c extends m{constructor(){super(...arguments),this.getLanguages=(0,l.EH)(()=>this.actions.pipe((0,l.gp)(u.dj),(0,n.M)(()=>this.loaderService.show()),(0,e.n)(()=>this.dataService.getLanguages().pipe((0,D.T)(C=>new u.nT(C)),(0,a.W)(C=>(0,h.of)(new r.Rn(C))))))),this.getLanguagesSuccess=(0,l.EH)(()=>this.actions.pipe((0,l.gp)(u.Bd),(0,n.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let C;return function(P){return(C||(C=s.xGo(c)))(P||c)}})();static#e=this.\u0275prov=s.jDH({token:c,factory:c.\u0275fac})}return c})();var M=t(634);let B=(()=>{class c{static#t=this.\u0275fac=function(O){return new(O||c)};static#e=this.\u0275mod=s.$C({type:c});static#n=this.\u0275inj=s.G2t({providers:[f],imports:[i.MD,M.r]})}return c})(),y=(()=>{class c{static#t=this.\u0275fac=function(O){return new(O||c)};static#e=this.\u0275mod=s.$C({type:c});static#n=this.\u0275inj=s.G2t({imports:[i.MD,B,g.md.forFeature(d.qx,d.Ff),l.Vm.forFeature([E])]})}return c})()},15661:(v,p,t)=>{t.d(p,{Ff:()=>d,kr:()=>h,qx:()=>g});var i=t(711);const l={languages:null},g="languages";function d(n=l,e){return e.type===i.Bd?{...n,languages:e.payload}:n}const h=n=>n[g].languages},75483:(v,p,t)=>{t.d(p,{Q:()=>f});var i=t(76965),l=t(45286),g=t(7605),d=t(58728),h=t(711),n=t(15661),e=t(54438),D=t(59788),a=t(83891);function u(o,m){1&o&&e.nrm(0,"mcrai-option",2),2&o&&e.Y8G("value",null)}function s(o,m){if(1&o&&(e.j41(0,"mcrai-option",2),e.EFF(1),e.k0s()),2&o){const r=m.$implicit;e.Y8G("value",r.code),e.R7$(),e.Lme(" ",r.code," - ",r.name," ")}}function _(o,m){if(1&o){const r=e.RV6();e.j41(0,"mcrai-select",1),e.bIt("pageChange",function(M){e.eBV(r);const B=e.XpG();return e.Njj(B.onPageChange(M))}),e.DNE(1,u,1,1,"mcrai-option",2),e.Z7z(2,s,2,3,"mcrai-option",2,e.fX1),e.k0s()}if(2&o){const r=e.XpG();e.Mz_("placeholder","Jazyk",r.required?" *":"",""),e.Y8G("control",r.control)("paginator",r.paginator),e.R7$(),e.vxM(1,r.nullable?1:-1),e.R7$(),e.Dyx(r.languages)}}let f=(()=>{class o{get control(){return this._control}set control(r){this._control=r}get languages(){return this.languagesContainer?this.languagesContainer.items:[]}constructor(r){this.store=r,this.destroy=new l.B7,this.required=!1,this.nullable=!0}ngOnInit(){this.getLanguages(),this.selectLanguages()}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}getLanguages(){this.store.dispatch(new h.c8)}selectLanguages(){this.store.pipe((0,i.Lt)(n.kr),(0,g.Q)(this.destroy),(0,d.p)(r=>!!r)).subscribe(r=>this.languagesContainer=r)}static#t=this.\u0275fac=function(E){return new(E||o)(e.rXU(i.il))};static#e=this.\u0275cmp=e.VBU({type:o,selectors:[["aegisx-select-language"]],inputs:{control:"control",required:"required",nullable:"nullable"},decls:1,vars:1,consts:[[3,"placeholder","control","paginator"],[3,"pageChange","placeholder","control","paginator"],[3,"value"]],template:function(E,M){1&E&&e.DNE(0,_,4,5,"mcrai-select",0),2&E&&e.vxM(0,M.languages.length?0:-1)},dependencies:[D.w,a.P]})}return o}
1)()},55951:(v,p,t)=>{t.d(p,{R:()=>n});var i=t(60177),l=t(89417),g=t(44152),d=t(29262),h=t(54438);let n=(()=>{class e{static#t=this.\u0275fac=function(u){return new(u||e)};static#e=this.\u0275mod=h.$C({type:e});static#n=this.\u0275inj=h.G2t({imports:[i.MD,l.X1,d.ni,g.E]})}return e})()},37282:(v,p,t)=>{t.d(p,{N:()=>n});var i=t(52059),l=t(54438),g=t(89417),d=t(93630);function h(e,D){if(1&e&&l.nrm(0,"editor",0),2&e){const a=l.XpG();l.Y8G("formControl",a.control)("inline",!1)("init",a.editorOptions)}}let n=(()=>{class e{get control(){return this._control}set control(a){this._control=a}get editorOptions(){return Object.assign({plugins:"fullscreen lists link image media table charmap help code emoticons preview quickbars searchreplace visualblocks",toolbar:["fullscreen bold italic underline strikethrough subscript superscript | fontfamily fontsize forecolor | blocks align numlist bullist outdent indent | link image media table | charmap emoticons hr selectall removeformat | help code preview visualblocks | undo redo"],color_cols:7,color_map:["rgb(0, 0, 0)","rgb(0, 0, 0)","rgb(26, 26, 26)","rgb(26, 26, 26)","rgb(154, 154, 154)","rgb(154, 154, 154)","rgb(255, 255, 255)","rgb(255, 255, 255)","rgb(201, 25, 1)","rgb(201, 25, 1)","#61BD6D","#61BD6D","#1ABC9C","#1ABC9C","#54ACD2","#54ACD2","#2C82C9","#2C82C9","#9365B8","#9365B8","#475577","#475577","#CCCCCC","#CCCCCC","#41A85F","#41A85F","#00A885","#00A885","#3D8EB9","#3D8EB9","#2969B0","#2969B0","#553982","#553982","#28324E","#28324E","#F7DA64","#F7DA64","#FBA026","#FBA026","#EB6B56","#EB6B56","#E25041","#E25041","#A38F84","#A38F84","#EFEFEF","#EFEFEF","#FAC51C","#FAC51C","#F37934","#F37934","#D14841","#D14841","#B8312F","#B8312F","#7C706B","#7C706B","#D1D5D8","#D1D5D8","#7d9c41","#7d9c41"],images_upload_url:`${this.apiUrl}/smdimages?token=${this.token.id}`,images_upload_base_path:"/api/files/img/",min_height:537,language:"cs",image_advtab:!0,image_class_list:[{title:"Nic",value:""},{title:"Okraj prav\xfd a doln\xed 12px",value:"margin-rd-12"},{title:"Okraj lev\xfd a doln\xed 12px",value:"margin-ld-12"},{title:"Otev\u0159\xedt v nov\xe9m okn\u011b",value:"open-new-tab"},{title:"Otev\u0159\xedt v nov\xe9m okn\u011b, Okraj prav\xfd a doln\xed 12px",value:"open-new-tab margin-rd-12"},{title:"Otev\u0159\xedt v nov\xe9m okn\u011b, Okraj lev\xfd a doln\xed 12px",value:"open-new-tab margin-ld-12"}],quickbars_selection_toolbar:"bold italic underline strikethrough subscript superscript removeformat | forecolor align",quickbars_insert_toolbar:!1},this.options)}constructor(a,u){this.apiUrl=a,this.token=u,this.item=null,this.options={},this.canInit=!1}ngOnInit(){}ngAfterViewInit(){this.canInit=!0}isAdd(){return!this.item}static#t=this.\u0275fac=function(u){return new(u||e)(l.rXU("API_URL"),l.rXU(i.CV))};static#e=this.\u0275cmp=l.VBU({type:e,selectors:[["aegisx-smd-editor"]],inputs:{item:"item",endpoint:"endpoint",control:"control",options:"options"},decls:1,vars:1,consts:[["apiKey","mqlljtdcekpmpvx4prybguqx11tj5zrqnqvigcic7bsole36","title","text",3,"formControl","inline","init"]],template:function(u,s){1&u&&l.DNE(0,h,1,3,"editor",0),2&u&&l.vxM(0,s.canInit?0:-1)},dependencies:[g.BC,g.l_,d.xn],styles:["[_nghost-%COMP%] .fr-view h1, [_nghost-%COMP%] .fr-element h1{font-size:34px;font-weight:300;text-transform:uppercase;margin:10px 0}[_nghost-%COMP%] .fr-view h2, [_nghost-%COMP%] .fr-element h2{font-size:24px;font-weight:300;color:#a1135e;margin:10px 0}[_nghost-%COMP%] .fr-view h3, [_nghost-%COMP%] .fr-element h3{font-size:20px;font-weight:300;margin:10px 0}[_nghost-%COMP%] .fr-view p, [_nghost-%COMP%] .fr-element p{font-weight:400;color:#000!important}[_nghost-%COMP%] .fr-view ul, [_nghost-%COMP%] .fr-view ol, [_nghost-%COMP%] .fr-element ul, [_nghost-%COMP%] .fr-element ol{padding-left:20px;color:#000!important}[_nghost-%COMP%] .fr-view b, [_nghost-%COMP%] .fr-view strong, [_nghost-%COMP%] .fr-element b, [_nghost-%COMP%] .fr-element strong{font-weight:700}[_nghost-%COMP%] .fr-view table, [_nghost-%COMP%] .fr-element table{border-collapse:collapse}[_nghost-%COMP%] .fr-view td, [_nghost-%COMP%] .fr-view th, [_nghost-%COMP%] .fr-element td, [_nghost-%COMP%] .fr-element th{padding:2px 5px;border:1px solid #D2D0E7}[_nghost-%COMP%] .fr-view img, [_nghost-%COMP%] .fr-element img{margin:0;max-width:100%!important;height:auto}[_nghost-%COMP%] .fr-view img.margin-rd-12, [_nghost-%COMP%] .fr-element img.margin-rd-12{margin:0 12px 12px 0}[_nghost-%COMP%] .fr-view img.margin-ld-12, [_nghost-%COMP%] .fr-element img.margin-ld-12{margin:0 0 12px 12px}"]})}return e})()},40040:(v,p,t)=>{t.d(p,{h:()=>s});var i=t(76965),l=t(45286),g=t(7605),d=t(58728),h=t(7603),n=t(54438),e=t(59788),D=t(83891);function a(_,f){1&_&&n.nrm(0,"mcrai-option",1),2&_&&n.Y8G("value",null)("dataValue",null)}function u(_,f){if(1&_){const o=n.RV6();n.j41(0,"mcrai-option",2),n.bIt("selection",function(r){n.eBV(o);const E=n.XpG();return n.Njj(E.onSelectBrand(r))}),n.EFF(1),n.k0s()}if(2&_){const o=f.$implicit;n.Y8G("value",o.name)("dataValue",o.id),n.R7$(),n.JRh(o.name)}}let s=(()=>{class _{get control(){return this._control}set control(o){this._control=o}get brands(){return this.brandsContainer?this.brandsContainer.items:[]}get paginator(){return this.brandsContainer?this.brandsContainer.paginator:null}constructor(o){this.store=o,this.destroy=new l.B7,this.placeholder="Zna\u010dka",this.nullable=!0}ngOnInit(){this.getBrands(),this.selectBrands()}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}selectBrands(){this.store.pipe((0,i.Lt)(o=>o.sharedStuff.brands),(0,g.Q)(this.destroy),(0,d.p)(o=>!!o)).subscribe(o=>this.brandsContainer=o)}getBrands(o=1){this.store.dispatch(new h.tu({page:o,filter:{q:this.q},add_brands:this.selected?[this.selected]:null}))}onQueryChange(o){this.q=o,this.getBrands(1)}onPageChange(o){this.getBrands(o)}onSelectBrand(o){this.selected=o.dataValue}static#t=this.\u0275fac=function(m){return new(m||_)(n.rXU(i.il))};static#e=this.\u0275cmp=n.VBU({type:_,selectors:[["shared-select-brand"]],inputs:{multiple:"multiple",control:"control",selected:"selected",placeholder:"placeholder",nullable:"nullable"},decls:4,vars:5,consts:[[3,"pageChange","queryChange","placeholder","control","paginator","multiple"],[3,"value","dataValue"],[3,"selection","value","dataValue"]],template:function(m,r){1&m&&(n.j41(0,"mcrai-select",0),n.bIt("pageChange",function(M){return r.onPageChange(M)})("queryChange",function(M){return r.onQueryChange(M)}),n.DNE(1,a,1,2,"mcrai-option",1),n.Z7z(2,u,2,3,"mcrai-option",1,n.fX1),n.k0s()),2&m&&(n.Y8G("placeholder",r.placeholder)("control",r.control)("paginator",r.paginator)("multiple",r.multiple),n.R7$(),n.vxM(1,r.nullable?1:-1),n.R7$(),n.Dyx(r.brands))},dependencies:[e.w,D.P],styles:["[_nghost-%COMP%]{display:block;width:100%}"]})}return _})()},71845:(v,p,t)=>{t.d(p,{U:()=>D});
1var i=t(47987),l=t(76939),g=t(7605),d=t(45286),h=t(7887),n=t(54438),e=t(63040);let D=(()=>{class a{set mcraiImageDetail(s){this._images=Array.isArray(s)?s:[s]}set defaultIndex(s){this._defaultIndex=s}constructor(s,_,f){this._overlay=s,this.router=_,this._hostImage=f,this._dispose=new d.B7,this._isDragging=!1,this._startX=0,this._startY=0,this._dragThreshold=5,_.events.subscribe(()=>{this.close()})}onMouseDown(s){this._startX=s.clientX,this._startY=s.clientY,this._isDragging=!1}onMouseMove(s){(Math.abs(s.clientX-this._startX)>this._dragThreshold||Math.abs(s.clientY-this._startY)>this._dragThreshold)&&(this._isDragging=!0)}onMouseUp(s){const f=s.target.closest("[disable-opening-fullscreen-image]");!this._isDragging&&!f&&this.open(),this._isDragging=!1}_onKeyUp(s){if(this._instance)switch(s.code){case"Escape":return void this.close();case"ArrowLeft":return void(this._instance.isFirst||this._instance.prev(s));case"ArrowRight":return void(this._instance.isLast||this._instance.next(s))}}_getPosition(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getConfig(){return new i.rR({positionStrategy:this._getPosition(),hasBackdrop:!0,width:"92%",height:"92%",panelClass:"image-overlay-panel"})}open(){const s=new l.A8(h.h),_=this._getConfig();this._overlayRef=this._overlay.create(_),this._instance=this._overlayRef.attach(s).instance,this._instance.data=this._images,this._instance.width="100%",this._instance.height="100%",this._instance.activeIndex=this._defaultIndex?this._defaultIndex:this._hostImage?.activeIndex??0,this._instance.showCloseButton=!0,this._instance.controlColor="alternative",this._overlayRef.backdropClick().pipe((0,g.Q)(this._dispose)).subscribe(()=>this.close()),this._instance.closeEvent.pipe((0,g.Q)(this._dispose)).subscribe(()=>this.close())}close(){this._overlayRef&&(this._overlayRef.dispose(),this._dispose.next())}static#t=this.\u0275fac=function(_){return new(_||a)(n.rXU(i.hJ),n.rXU(e.Ix),n.rXU(h.h))};static#e=this.\u0275dir=n.FsC({type:a,selectors:[["","mcraiImageDetail",""]],hostVars:2,hostBindings:function(_,f){1&_&&n.bIt("mousedown",function(m){return f.onMouseDown(m)})("mousemove",function(m){return f.onMouseMove(m)})("mouseup",function(m){return f.onMouseUp(m)})("keyup",function(m){return f._onKeyUp(m)},!1,n.tSv),2&_&&n.xc7("cursor","pointer")},inputs:{mcraiImageDetail:"mcraiImageDetail",defaultIndex:"defaultIndex"}})}return a})()}}]);
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.