PageSourceSearch

https://www.energytcm.cz/2369.920e5a8fdc7be243.js

js energytcm.cz collected 2026-10-07 20:05:42 UTC 15,737 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkenergy_tcm=self.webpackChunkenergy_tcm||[]).push([[2369],{6560:($,y,e)=>{e.d(y,{j:()=>t});var n=e(60177),l=e(41635),O=e(76965),v=e(18456),S=e(95006),h=e(83921),p=e(15539),d=e(14421),b=e(59722),C=e(39902),c=e(52059),_=e(42031),a=e(54438);let u=(()=>{class g extends b.G{constructor(){super(...arguments),this.getCategory=(0,l.EH)(()=>this.actions.pipe((0,l.gp)(C.Cg),(0,v.ZZ)(x=>this.dataService.getCategory(x.payload.id).pipe((0,S.T)(M=>new C.sq({id:x.payload.id,category:M.item})),(0,h.W)(M=>(0,d.of)(new C.nc(M))))))),this.getCategorySuccess=(0,l.EH)(()=>this.actions.pipe((0,l.gp)(C.ug)),{dispatch:!1}),this.getCategoryError=(0,l.EH)(()=>this.actions.pipe((0,l.gp)(C.Vs),(0,p.M)(x=>{404===x.payload.status&&this.router.navigate([_.Ay.computedLang,c.Cv])})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let x;return function(P){return(x||(x=a.xGo(g)))(P||g)}})();static#o=this.\u0275prov=a.jDH({token:g,factory:g.\u0275fac})}return g})();var R=e(41333),I=e(31113);let t=(()=>{class g{static#t=this.\u0275fac=function(M){return new(M||g)};static#o=this.\u0275mod=a.$C({type:g});static#e=this.\u0275inj=a.G2t({imports:[n.MD,R.A,O.md.forFeature(I.qx,I.Ff),l.Vm.forFeature([u])]})}return g})()},31113:($,y,e)=>{e.d(y,{Ff:()=>S,N2:()=>h,qx:()=>v});var n=e(20039),l=e(39902);const O={category:(0,n.T5)()},v="shopCategory";function S(p=O,d){return d.type===l.ug?{...p,category:p.category.set(d.payload.id,d.payload.category)}:p}const h=p=>p[v].category},52369:($,y,e)=>{e.r(y),e.d(y,{ConfiguratorModule:()=>st});var n=e(60177),l=e(41635),O=e(70842),v=e(50289),S=e(68339),h=e(94831),p=e(63040),d=e(76965),b=e(45286),C=e(95006),c=e(58728),_=e(7605),a=e(31113),u=e(68515),R=e(26410),I=e(39902),t=e(54438),g=e(345),w=e(22474),x=e(82318),M=e(22193),P=e(33579),G=e(33555),F=e(48033),A=e(87173),D=e(63649),j=e(7165),L=e(19727),U=e(48235);const Y=["*"];function X(i,f){if(1&i&&t.nrm(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),2&i){const o=t.XpG();t.Y8G("ngStyle",o.getTopSideStyle()),t.R7$(),t.Y8G("ngStyle",o.getBottomSideStyle()),t.R7$(),t.Y8G("ngStyle",o.getRightSideStyle()),t.R7$(),t.Y8G("ngStyle",o.getLeftSideStyle())}}function k(i,f){if(1&i&&t.nrm(0,"img",7),2&i){const o=t.XpG();t.Y8G("src",null==o.room||null==o.room.background||null==o.room.background.original?null:o.room.background.original.path,t.B4B)}}let Z=(()=>{class i{constructor(o){this.elRef=o}ngOnInit(){}getBoundingClientRect(){return this.elRef.nativeElement.getBoundingClientRect()}getSideStyle(){return{width:`${this.width}px`,height:`${this.height}px`}}getLeftSideStyle(){return Object.assign(this.getSideStyle(),{transform:`rotateY(-90deg) translateZ(${this.width/2}px)`})}getRightSideStyle(){return Object.assign(this.getSideStyle(),{transform:`rotateY(90deg) translateZ(${this.width/2}px)`})}getBackSideStyle(){return Object.assign(this.getSideStyle(),{transform:`rotateX(180deg) translateZ(${this.width/2}px)`})}getTopSideStyle(){return{transform:`rotateX(90deg) translateZ(${this.width/2}px)`,width:`${this.width}px`,height:`${this.width}px`}}getBottomSideStyle(){return{transform:"rotateX(-90deg) translateZ(-20px)",width:`${this.width}px`,height:`${this.width}px`}}static#t=this.\u0275fac=function(s){return new(s||i)(t.rXU(t.aKT))};static#o=this.\u0275cmp=t.VBU({type:i,selectors:[["shop-configurator-room"]],hostVars:2,hostBindings:function(s,r){2&s&&t.xc7("perspective",r.perspective,"px")},inputs:{perspective:"perspective",room:"room",width:"width",height:"height"},ngContentSelectors:Y,decls:6,vars:2,consts:[[1,"room"],[1,"room__wall","room__wall--back",3,"ngStyle"],[1,"room__wall--backflip"],[1,"room__wall","room__wall--top",3,"ngStyle"],[1,"room__wall","room__wall--bottom",3,"ngStyle"],[1,"room__wall","room__wall--right",3,"ngStyle"],[1,"room__wall","room__wall--left",3,"ngStyle"],["alt","SKI BIKE",1,"room__background",3,"src"]],template:function(s,r){1&s&&(t.NAR(),t.j41(0,"div",0)(1,"div",1),t.nrm(2,"div",2),t.k0s(),t.DNE(3,X,4,4)(4,k,1,1),t.SdG(5),t.k0s()),2&s&&(t.R7$(),t.Y8G("ngStyle",r.getBackSideStyle()),t.R7$(2),t.vxM(3,null!=r.room&&r.room.background?4:3))},dependencies:[n.B3],styles:["[_nghost-%COMP%]{display:block;position:relative;overflow:hidden}.room[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;transform-style:preserve-3d;display:flex;flex-flow:row wrap}
1.room__wall[_ngcontent-%COMP%]{position:absolute}.room__wall--back[_ngcontent-%COMP%]{width:100%;height:100%}.room__wall--back[_ngcontent-%COMP%], .room__wall--left[_ngcontent-%COMP%], .room__wall--right[_ngcontent-%COMP%]{background:#fff;border:1px solid #c0c0c0}.room__wall--top[_ngcontent-%COMP%]{background:#fff}.room__wall--bottom[_ngcontent-%COMP%]{background:silver}.room__wall--backflip[_ngcontent-%COMP%]{width:100%;height:100%;transform:rotateX(-180deg)}.room__name[_ngcontent-%COMP%]{padding:10px 20px;text-transform:uppercase;font-size:40px}.room__background[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}"]})}return i})();function N(i,f){if(1&i){const o=t.RV6();t.j41(0,"mcrai-li",2)(1,"button",7),t.bIt("click",function(){const r=t.eBV(o).$index,m=t.XpG();return t.Njj(m.setActiveRoom(r))}),t.EFF(2),t.k0s()()}if(2&i){const o=f.$implicit,s=f.$index,r=t.XpG();t.R7$(),t.Y8G("mcrai-button",s===r.activeIndex?"positive":""),t.R7$(),t.SpI(" ",o.name," ")}}function z(i,f){if(1&i&&(t.j41(0,"a",9),t.nrm(1,"img",11),t.k0s()),2&i){const o=f.$implicit,s=t.XpG(2);t.Y8G("ngStyle",s.getItemStyle(o.order))("mcraiLink",s.linkService.getCategoryLink(o)),t.R7$(),t.Y8G("src",null==o.icon||null==o.icon.original?null:o.icon.original.path,t.B4B)}}function V(i,f){if(1&i){const o=t.RV6();t.j41(0,"shop-configurator-room",8,0),t.Z7z(2,z,2,3,"a",9,t.fX1),t.j41(4,"div",10),t.bIt("click",function(r){t.eBV(o);const m=t.sdS(1),E=t.XpG();return t.Njj(E.zoomToggle(r,m))}),t.k0s()()}if(2&i){const o=f.$implicit,s=f.$index,r=t.XpG();t.AVh("room--active",s===r.activeIndex),t.Y8G("ngStyle",r.getRoomStyle(s))("perspective",r.getRadius())("room",o)("width",r.width)("height",r.height),t.R7$(2),t.Dyx(o.items)}}let K=(()=>{class i{constructor(o){this.linkService=o,this.rooms=[],this.activeIndex=0}ngOnInit(){}ngOnChanges(o){o.hasOwnProperty("rooms")&&Array.isArray(this.rooms)&&(this.rooms=this.rooms.length<=5?this.rooms.concat(this.rooms):this.rooms)}padLeft(o,s){const r=o.toString(),m=s-r.length;return m<=0?r:Array(m).fill("0").join("")+r}getAngle(o){return 360/this.rooms.length*o}getRadius(){return Math.round(this.width/2/Math.tan(Math.PI/this.rooms.length))}getRoomStyle(o){return{transform:`rotateY(-${this.getAngle(o)}deg) translateZ(-${this.getRadius()}px)`}}getConfiguratorStyle(){return{perspective:`${this.getRadius()}px`,height:1.15*this.height+"px"}}getRoomsStyle(){let o;return o=this.isZoomed?`translate3d(${this.zoomOffset[0]}px, ${this.zoomOffset[1]}px, ${1.5*this.getRadius()}px)`:`translateZ(${this.getRadius()}px)`,{transform:`${o} rotateY(${this.getAngle(this.activeIndex)}deg)`,width:`${this.width}px`,height:`${this.height}px`}}setActiveRoom(o){this.isZoomed=!1,this.activeIndex=o}prevRoom(){this.activeIndex--}nextRoom(){this.activeIndex++}zoomToggle(o,s){if(this.isZoomed=!this.isZoomed,this.isZoomed){const r=s.getBoundingClientRect().left+this.width/2,m=s.getBoundingClientRect().top+this.height/2,E=o.target.getBoundingClientRect();this.zoomOffset=[r-(E.left+E.width/2),m-(E.top+E.height/2)]}}getItemStyle(o){const s=this.padLeft(o,4),r=parseInt(s.substr(0,2),10);return{top:parseInt(s.substr(2,4),10)*this.height/100+"px",left:r*this.width/100+"px"}}isFirst(){return this.activeIndex<=0}isLast(){return this.activeIndex>=this.rooms.length-1}static#t=this.\u0275fac=function(s){return new(s||i)(t.rXU(A._))};static#o=this.\u0275cmp=t.VBU({type:i,selectors:[["shop-configurator-rooms"]],inputs:{rooms:"rooms",width:"width",height:"height"},features:[t.OA$],decls:13,vars:4,consts:[["roomRef",""],[1,"navigation"],[1,"navigation__item"],["mcrai-button","neutral",1,"navigation__button",3,"click","disabled"],[1,"configurator",3,"ngStyle"],[1,"rooms",3,"ngStyle"],[1,"room",3,"room--active","ngStyle","perspective","room","width","height"],[1,"navigation__button",3,"click","mcrai-button"],[1,"room",3,"ngStyle","perspective","room","width","height"],[1,"room__item",3,"ngStyle","mcraiLink"],[1,"room__item","room__item--logo",3,"click"],["alt","",1,"room__item-image",3,"src"]],template:function(s,r){1&s&&(t.j41(0,"mcrai-ul",1)(1,"mcrai-li",2)(2,"button",3),t.bIt("click",function(){return r.prevRoom()}),t.EFF(3," prev "),t.k0s()(),t.Z7z(4,N,3,2,"mcrai-li",2,t.fX1),t.j41(6,"mcrai-li",2)(7,"button",3),t.bIt("click",function(){return r.nextRoom()}),t.EFF(8," next "),t.k0s()()(),t.j41(9,"div",4)(10,"div",5),t.Z7z(11,V,5,7,"shop-configurator-room",6,t.fX1),t.k0s()()),2&s&&(t.R7$(2),t.Y8G("disabled",r.isFirst()),t.R7$(2),t.Dyx(r.rooms),t.R7$(3),t.Y8G("disabled",r.isLast()),t.R7$(2),t.Y8G("ngStyle",r.getConfiguratorStyle()),t.R7$(),t.Y8G("ngStyle",r.getRoomsStyle()),t.R7$(),t.Dyx(r.rooms))},dependencies:[n.B3,D.Q,j.g,L.E,U.R,Z],styles:["[_nghost-%COMP%]{width:100%}
1.configurator[_ngcontent-%COMP%]{width:100%;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}.rooms[_ngcontent-%COMP%]{position:absolute;transform-style:preserve-3d;transition:transform 1s cubic-bezier(.25,.8,.25,1)}.room[_ngcontent-%COMP%]{margin:0;width:100%;height:100%;position:absolute;backface-visibility:hidden;border:1px solid #c0c0c0;border-left-width:0}.navigation[_ngcontent-%COMP%]{flex-direction:row;justify-content:center}.navigation__button[_ngcontent-%COMP%]{margin:0}.room__item[_ngcontent-%COMP%]{position:absolute;width:1%;height:1%}.room__item-image[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0}.room__item--logo[_ngcontent-%COMP%]{top:0;right:0;margin:auto;width:204px;height:100px}.room__item--logo[_ngcontent-%COMP%]   .room__item-image[_ngcontent-%COMP%]{height:100%;object-fit:contain}"]})}return i})();function W(i,f){1&i&&t.nrm(0,"shop-header")}function H(i,f){1&i&&t.nrm(0,"mcrai-breadcrumbs",0)}function Q(i,f){1&i&&t.nrm(0,"shop-footer")}let B=(()=>{class i{constructor(o,s,r,m){this.store=o,this.titleService=s,this.metaService=r,this.mobileApp=m,this.CONFIGURATOR_CATEGORY_ID="konfigurator",this.destroy=new b.B7}ngOnInit(){this.rooms=this.store.pipe((0,d.Lt)(u.ws),(0,C.T)(o=>this.parseRooms(o))),this.store.pipe((0,d.Lt)(a.N2),(0,C.T)(o=>o.get(this.CONFIGURATOR_CATEGORY_ID)),(0,c.p)(o=>!!o),(0,_.Q)(this.destroy)).subscribe(o=>this.updateSEO(o.info[0])),this.fetchCategory(),this.fetchRooms()}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}parseRooms(o){const s=o[this.CONFIGURATOR_CATEGORY_ID];return s?s.items.map(r=>{const m=o[r.info[0].url];return{name:r.info[0].name,items:m?m.items:[],background:r.background_image}}):[]}fetchRooms(){this.store.dispatch(new R.B3({id:this.CONFIGURATOR_CATEGORY_ID,page:1}))}fetchCategory(){this.store.dispatch(new I.zS({id:this.CONFIGURATOR_CATEGORY_ID}))}updateSEO(o){o&&(o.seo_title&&this.titleService.setTitle(o.seo_title),o.seo_description&&this.metaService.updateTag({name:"description",content:o.seo_description}))}static#t=this.\u0275fac=function(s){return new(s||i)(t.rXU(d.il),t.rXU(g.hE),t.rXU(g.W8),t.rXU("MOBILE_APP"))};static#o=this.\u0275cmp=t.VBU({type:i,selectors:[["shop-configurator"]],decls:9,vars:8,consts:[["current","Konfigur\xe1tor"],["horizontal-center",""],[3,"rooms","width","height"]],template:function(s,r){1&s&&(t.DNE(0,W,1,0,"shop-header"),t.j41(1,"shop-content"),t.DNE(2,H,1,0,"mcrai-breadcrumbs",0),t.nrm(3,"br"),t.j41(4,"mcrai-row")(5,"mcrai-col",1),t.nrm(6,"shop-configurator-rooms",2),t.nI1(7,"async"),t.k0s()()(),t.DNE(8,Q,1,0,"shop-footer")),2&s&&(t.vxM(0,r.mobileAp
1p?-1:0),t.R7$(2),t.vxM(2,r.mobileApp?-1:2),t.R7$(4),t.Y8G("rooms",t.bMT(7,6,r.rooms))("width",1300)("height",630),t.R7$(2),t.vxM(8,r.mobileApp?-1:8))},dependencies:[w.I,x.I,M.B,P.o,G.g,F.m,K,n.Jj]})}return i})();const J=[{path:"",component:B},{path:":id",component:B}];let q=(()=>{class i{static#t=this.\u0275fac=function(s){return new(s||i)};static#o=this.\u0275mod=t.$C({type:i});static#e=this.\u0275inj=t.G2t({imports:[p.iI.forChild(J),p.iI]})}return i})();var T=e(29262),tt=e(51415),ot=e(18456);let nt=(()=>{class i{constructor(o,s){this.store=o,this.actions=s,this.getCategoryCategoriesSuccess=(0,l.EH)(()=>this.actions.pipe((0,l.gp)(R.H3),(0,ot.ZZ)(r=>"konfigurator"===r.payload.parent.info[0].url?r.payload.items.map(m=>new R.B3({id:m.id,page:1})):[])))}static#t=this.\u0275fac=function(s){return new(s||i)(t.KVO(d.il),t.KVO(l.En))};static#o=this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac})}return i})();var it=e(86464),rt=e(6560);let st=(()=>{class i{static#t=this.\u0275fac=function(s){return new(s||i)};static#o=this.\u0275mod=t.$C({type:i});static#e=this.\u0275inj=t.G2t({imports:[n.MD,q,v.G,O.G,S.k,h.f,T.LU,it.X,T.xT,T.Tm,T.F8,tt.r,l.Vm.forFeature([nt]),rt.j]})}return i})()},86464:($,y,e)=>{e.d(y,{X:()=>S});var n=e(60177),l=e(50289),O=e(29262),v=e(54438);let S=(()=>{class h{static#t=this.\u0275fac=function(b){return new(b||h)};static#o=this.\u0275mod=v.$C({type:h});static#e=this.\u0275inj=v.G2t({imports:[n.MD,l.G,O.o6]})}return h})()},48033:($,y,e)=>{e.d(y,{m:()=>C});var n=e(54438),l=e(87173),O=e(7165),v=e(63040);function S(c,_){1&c&&n.EFF(0," Homepage ")}function h(c,_){if(1&c&&n.EFF(0),2&c){const a=n.XpG().$implicit;n.SpI(" ",null==a.info[0]?null:a.info[0].name," ")}}function p(c,_){if(1&c&&(n.j41(0,"li",2)(1,"a",4),n.DNE(2,S,1,0)(3,h,1,1),n.k0s(),n.nrm(4,"img",5),n.k0s()),2&c){const a=_.$implicit,u=_.$index;n.R7$(),n.Y8G("mcraiLink",a),n.R7$(),n.vxM(2,0===u?2:3)}}function d(c,_){1&c&&n.nrm(0,"img",5)}function b(c,_){if(1&c&&(n.j41(0,"li",2)(1,"a",6),n.EFF(2," Homepage "),n.k0s(),n.DNE(3,d,1,0,"img",5),n.k0s()),2&c){const a=n.XpG();n.R7$(),n.Y8G("routerLink",a.linkService.getHomepageLink()),n.R7$(2),n.vxM(3,a.current?3:-1)}}let C=(()=>{class c{set path(a){Array.isArray(a)&&(this._path=a)}get path(){return this._path}constructor(a){this.linkService=a,this._path=[]}ngOnInit(){}static#t=this.\u0275fac=function(u){return new(u||c)(n.rXU(l._))};static#o=this.\u0275cmp=n.VBU({type:c,selectors:[["mcrai-breadcrumbs"]],hostVars:2,hostBindings:function(u,R){2&u&&n.AVh("mcrai-breadcrumbs",!0)},inputs:{path:"path",current:"current"},decls:7,vars:2,consts:[["centering-container",""],[1,"mcrai-breadcrumbs__list"],[1,"mcrai-breadcrumbs__item"],[1,"mcrai-breadcrumbs__item","mcrai-breadcrumbs__item--current"],[1,"mcrai-breadcrumbs__link",3,"mcraiLink"],["src","/assets/images/energy-tcm-only/decorative-symbol.svg","alt","decorative",1,"separator"],[1,"mcrai-breadcrumbs__link",3,"routerLink"]],template:function(u,R){1&u&&(n.j41(0,"div",0)(1,"ul",1),n.Z7z(2,p,5,2,"li",2,n.fX1),n.DNE(4,b,4,2,"li",2),n.j41(5,"li",3),n.EFF(6),n.k0s()()()),2&u&&(n.R7$(2),n.Dyx(R.path),n.R7$(2),n.vxM(4,R.path.length?-1:4),n.R7$(2),n.SpI(" ",R.current," "))},dependencies:[O.g,v.Wk],styles:["[_nghost-%COMP%]{display:block;background-color:#f6f6f6}.mcrai-breadcrumbs__list[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;gap:16px;margin:0;padding:10px 0 11px;word-break:break-word;overflow-wrap:break-word;text-transform:lowercase}.mcrai-breadcrumbs__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.mcrai-breadcrumbs__item--current[_ngcontent-%COMP%]{font-weight:700}.mcrai-breadcrumbs__link[_ngcontent-%COMP%]{transition:.2s color;text-transform:none;text-decoration:none;font-weight:400;color:inherit}.mcrai-breadcrumbs__link[_ngcontent-%COMP%]:hover{color:#a1135e}.mcrai-icon.mcrai-breadcrumbs__icon[_ngcontent-%COMP%]{font-size:18px}@media (max-width: 479px){.mcrai-breadcrumbs__item[_ngcontent-%COMP%]{max-width:100%}}"],changeDetection:0})}return c})()}}]);

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.