PageSourceSearch

https://www.energytcm.cz/1948.7d47a344ad0408ae.js

js energytcm.cz collected 2026-10-07 20:05:38 UTC 16,651 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkenergy_tcm=self.webpackChunkenergy_tcm||[]).push([[1948],{21948:(E,C,r)=>{r.r(C),r.d(C,{SellerModule:()=>dt});var o=r(60177),p=r(41635),u=r(29262),_=r(63040),t=r(54438),h=r(76965),x=r(7605),M=r(58728);const y="[Seller] GET sellers",b="[Seller] GET sellers success",a="[Seller] GET sellers error";class f{constructor(){this.type=y}}class c{constructor(m){this.payload=m,this.type=b}}class d{constructor(m){this.payload=m,this.type=a}}var v=r(45286),F=r(22474),T=r(82318),k=r(22193),I=r(69624),j=r(48033),O=r(63649),P=r(47987),B=r(76939),z=r(26588),R=r(73955);const G=["input"],$=["result"];function D(n,m){if(1&n&&(t.j41(0,"div",9)(1,"mcrai-icon",10),t.EFF(2,"website"),t.k0s(),t.EFF(3),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(3),t.SpI(" ",null==e||null==e.address?null:e.address.website," ")}}function w(n,m){if(1&n&&(t.j41(0,"div",9)(1,"mcrai-icon",10),t.EFF(2,"phone-3"),t.k0s(),t.EFF(3),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(3),t.SpI(" ",null==e||null==e.address?null:e.address.phone," ")}}function X(n,m){if(1&n&&(t.j41(0,"div",9)(1,"mcrai-icon",10),t.EFF(2,"mail-3"),t.k0s(),t.EFF(3),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(3),t.SpI(" ",null==e||null==e.address?null:e.address.email," ")}}function U(n,m){if(1&n){const e=t.RV6();t.j41(0,"div",7),t.bIt("click",function(){const s=t.eBV(e).$implicit,l=t.XpG(2);return t.Njj(l.sellerClicked.emit(s))}),t.j41(1,"h3",8),t.EFF(2),t.k0s(),t.j41(3,"div"),t.EFF(4),t.k0s(),t.j41(5,"div"),t.EFF(6),t.k0s(),t.DNE(7,D,4,1,"div",9)(8,w,4,1,"div",9)(9,X,4,1,"div",9),t.k0s()}if(2&n){const e=m.$implicit;t.R7$(2),t.JRh(null==e?null:e.title),t.R7$(2),t.JRh(null==e||null==e.address?null:e.address.street),t.R7$(2),t.Lme(" ",null==e||null==e.address?null:e.address.postal_code," ",null==e||null==e.address?null:e.address.city," "),t.R7$(),t.vxM(7,null!=e&&null!=e.address&&e.address.website?7:-1),t.R7$(),t.vxM(8,null!=e&&null!=e.address&&e.address.phone?8:-1),t.R7$(),t.vxM(9,null!=e&&null!=e.address&&e.address.email?9:-1)}}function V(n,m){if(1&n&&(t.j41(0,"div",5),t.Z7z(1,U,10,7,"div",6,t.fX1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Dyx(e.filteredSellers)}}let L=(()=>{class n{constructor(e,i,s){this.overlay=e,this.viewContainerRef=i,this._elRef=s,this.destroy=new v.B7,this.MINIMUM_QUERY_LENGTH=3,this.sellerClicked=new t.bkB,this.filteredSellers=[]}ngOnInit(){}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}filterSellers(){const e=this.inputRef.nativeElement.value.trim();if(!e.length||e.length<this.MINIMUM_QUERY_LENGTH)return this.filteredSellers=[],void this.detachMenu();this.filteredSellers=this.sellers.filter(i=>this.searchValueInSeller(i,e)),this.filteredSellers.length?this.attachMenu():this.detachMenu()}searchValueInSeller(e,i){const s=new RegExp(i,"i");return s.test(e.title)||s.test(e.address.city)||s.test(e.address.country)||s.test(e.address.street)||s.test(e.address.postal_code)}getPosition(){return this.overlay.position().flexibleConnectedTo(this._elRef).withPush(!1).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",weight:1,offsetY:20},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",weight:2,offsetY:20},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",weight:3,offsetY:-20},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",weight:4,offsetY:-20}])}getScrollStrategy(){return this.overlay.scrollStrategies.reposition()}getConfig(){return new P.rR({positionStrategy:this.getPosition(),scrollStrategy:this.getScrollStrategy(),width:this._elRef.nativeElement.offsetWidth,maxHeight:500,panelClass:"seller-search-overlay"})}getPortal(e){return new B.VA(e,this.viewContainerRef)}createOverlay(){const e=this.getConfig();return this.overlayRef=this.overlay.create(e),this.overlayRef}attachMenu(){if(this.filteredSellers.length&&(!this.overlayRef||!this.overlayRef.hasAttached())){const e=this.getPortal(this.resultRef);this.createOverlay().attach(e)}}detachMenu(){this.overlayRef&&this.overlayRef.dispose()}clickOutSearchInput(e){!this.overlayRef||!this.overlayRef.hasAttached()||this._elRef.nativeElement.contains(e.target)||this.overlayRef.overlayElement.contains(e.target)||this.detachMenu()}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(P.hJ),t.rXU(t.c1b),t.rXU(t.aKT))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["shop-seller-search"]],viewQuery:function(i,s){if(1&i&&(t.GBs(G,7),t.GBs($,7)),2&i){let l;t.mGM(l=t.lsd())&&(s.inputRef=l.first),t.mGM(l=t.lsd())&&(s.resultRef=l.first)}},hostBindings:function(i,s){1&i&&t.bIt("click",function(g){return s.clickOutSearchInput(g)},!1,t.EBC)},inputs:{sellers:"sellers"},outputs:{sellerClicked:"sellerClicked"},decls:9,vars:3,consts:[["input",""],["result",""],[1,"search__form"],[1,"search__input",3,"click","input","placeholder"],["mcrai-button","positive",1,"search__button",3,"click"],[1,"search-result"],[1,"search-result__item"],[1,"search-result__item",3,"click"],[1,"seller__title"],["flex","","center-y",""],[1,"mr8"]],template:function(i,s){if(1&i){const l=t.RV6();t.j41(0,"div",2)(1,"input",3,0),t.nI1(3,"translate"),t.bIt("click",function(){return t.eBV(l),t.Njj(s.filterSellers())})("input",function(){return t.eBV(l),t.Njj(s.filterSellers())}),t.k0s(),t.j41(4,"button",4),t.bIt("click",function(){return t.eBV(l),t.Njj(s.filterSellers())}),t.j41(5,"mcrai-icon"),t.EFF(6,"search-3"),t.k0s()()(),t.DNE(7,V,3,0,"ng-template",null,1,t.C5r)}2&i&&(t.R7$(),t.Y8G("placeholder",t.bMT(3,1,"sellers.search")))},dependencies:[O.Q,z.R,R.D9],styles:[".search__form[_ngcontent-%COMP%]{display:flex;border:1px solid rgb(35,31,32)}.search__button[_ngcontent-%COMP%]{flex:0 0 auto;margin:0;padding:0 20px;height:48px;border-radius:0!important;border:0!important;transition:height .15s linear}.search__button[_ngcontent-%COMP%]   .mcrai-icon[_ngcontent-%COMP%]{font-size:20px}.search__input[_ngcontent-%COMP%]{flex:1 1 auto;height:48px;padding:4px 20px 0;font-size:16px;border:0;border-radius:0;outline:none;overflow:hidden;transition:height .15s linear}.search-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:100%;overflow:auto;background-color:#fff;border:1px solid rgb(35,31,32)}.search-result[_ngcontent-%COMP%]   .search-result__item[_ngcontent-%COMP%]{padding:10px 20px}.search-result[_ngcontent-%COMP%]   .search-result__item[_ngcontent-%COMP%]:hover{background-color:#f6f6f6;cursor:pointer}.search-result[_ngcontent-%COMP%]   .search-result__item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgb(35,31,32)}.search-result[_ngcontent-%COMP%]   .search-result__item[_ngcontent-%COMP%]   .mcrai-icon[_ngcontent-%COMP%]{min-width:16px;font-size:16px}"]})}return n})();const A=["map"];function Y(n,m){1&n&&t.nrm(0,"shop-header")}function N(n,m){1&n&&(t.nrm(0,"mcrai-breadcrumbs",1),t.nI1(1,"translate")),2&n&&t.Y8G("current",t.bMT(1,1,"sellers.sellers"))}function H(n,m){if(1&n){const e=t.RV6();t.j41(0,"button",9),t.bIt("click",function(){const s=t.eBV(e).$implicit,l=t.XpG();return t.Njj(l.selectRegion(s.gps,s.zoom))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&n){const e=m.$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,e.name)," ")}}function K(n,m){1&n&&t.nrm(0,"shop-footer")}const W=[{path:"",component:(()=>
1{class n{constructor(e,i,s){this.store=e,this.mobileApp=s,this.destroy=new v.B7,this.sellers=[],this.regions=[{id:0,name:"geography.countries.czechia",gps:{lat:49.8037633,lng:15.4749126},zoom:8},{id:1,name:"geography.regions.prague.long",gps:{lat:50.0598054,lng:14.3251984},zoom:11},{id:2,name:"geography.regions.south_bohemian.short",gps:{lat:49.0860679,lng:14.0084478},zoom:9},{id:3,name:"geography.regions.south_moravian.short",gps:{lat:49.1244323,lng:16.0323448},zoom:9},{id:4,name:"geography.regions.karlovy_vary.short",gps:{lat:50.1758192,lng:12.4150483},zoom:10},{id:5,name:"geography.regions.hradec_kralove.short",gps:{lat:50.4097223,lng:15.5643887},zoom:10},{id:6,name:"geography.regions.liberec.short",gps:{lat:50.747611,lng:14.7074193},zoom:10},{id:7,name:"geography.regions.moravian-silesian.short",gps:{lat:49.8598111,lng:17.4409836},zoom:9},{id:8,name:"geography.regions.olomouc.short",gps:{lat:49.8577335,lng:16.7526338},zoom:9},{id:9,name:"geography.regions.pardubice.short",gps:{lat:49.8899289,lng:15.8339472},zoom:10},{id:10,name:"geography.regions.plzen.short",gps:{lat:49.5218302,lng:12.5560282},zoom:9},{id:11,name:"geography.regions.central_bohemian.short",gps:{lat:50.0597442,lng:13.9041563},zoom:9},{id:12,name:"geography.regions.usti_nad_labem.short",gps:{lat:50.5661251,lng:13.234779},zoom:9},{id:13,name:"geography.regions.vysocina.short",gps:{lat:49.3988651,lng:15.0918271},zoom:9},{id:14,name:"geography.regions.zlin.short",gps:{lat:49.1972126,lng:17.4823311},zoom:10}],this.mapYPosition=0,this.gps={lat:0,lng:0},this.zoom=8}ngOnInit(){this.gps=this.regions[0].gps,this.zoom=this.regions[0].zoom,this.store.pipe((0,x.Q)(this.destroy),(0,h.Lt)(e=>e.shopSeller.sellers),(0,M.p)(e=>Array.isArray(e))).subscribe(e=>{this.sellers=e}),this.fetchSellers()}ngAfterViewInit(){this.mapYPosition=this.map.nativeElement.offsetTop}fetchSellers(){this.store.dispatch(new f)}selectRegion(e,i){this.gps=e,this.zoom=i,this.scrollToMap()}selectSeller(e){this.gps={lat:e.lat,lng:e.lng},this.zoom=17}scrollToMap(){window.scrollTo({top:this.mapYPosition-110,behavior:"smooth"})}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(h.il),t.rXU(t.aKT),t.rXU("MOBILE_APP"))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["shop-seller-root"]],viewQuery:function(i,s){if(1&i&&t.GBs(A,7,t.aKT),2&i){let l;t.mGM(l=t.lsd())&&(s.map=l.first)}},decls:17,vars:13,consts:[["map",""],[3,"current"],["centering-container",""],[1,"title"],[1,"buttons"],["mcrai-button","neutral",1,"button"],[1,"map"],["hidden-l","",3,"sellerClicked","sellers"],[3,"zoomChanged","centerChanged","markers","center","zoom"],["mcrai-button","neutral",1,"button",3,"click"]],template:function(i,s){if(1&i){const l=t.RV6();t.DNE(0,Y,1,0,"shop-header"),t.j41(1,"shop-content"),t.DNE(2,N,2,3,"mcrai-breadcrumbs",1),t.j41(3,"div",2)(4,"h1",3),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"div",2)(8,"div",4),t.Z7z(9,H,3,3,"button",5,t.fX1),t.nI1(11,"slice"),t.k0s()(),t.j41(12,"div",6,0)(14,"shop-seller-search",7),t.bIt("sellerClicked",function(S){return t.eBV(l),t.Njj(s.selectSeller(S))}),t.k0s(),t.j41(15,"shop-google-map",8),t.bIt("zoomChanged",function(S){return t.eBV(l),t.Njj(s.zoom=S)})("centerChanged",function(S){return t.eBV(l),t.Njj(s.gps=S)}),t.k0s()()(),t.DNE(16,K,1,0,"shop-footer")}2&i&&(t.vxM(0,s.mobileApp?-1:0),t.R7$(2),t.vxM(2,s.mobileApp?-1:2),t.R7$(3),t.SpI(" ",t.bMT(6,8,"sellers.title")," "),t.R7$(4),t.Dyx(t.i5U(11,10,s.regions,1)),t.R7$(5),t.Y8G("sellers",s.sellers),t.R7$(),t.Y8G("markers",s.sellers)("center",s.gps)("zoom",s.zoom),t.R7$(),t.vxM(16,s.mobileApp?-1:16))},dependencies:[F.I,T.I,k.B,I.i,j.m,O.Q,L,o.P9,R.D9],styles:['.title[_ngcontent-%COMP%]{position:relative;margin:32px 0;padding-bottom:5px;letter-spacing:.8px;font-size:38px}.title[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;bottom:0;width:53px;height:2px;background:#ffe0f0}.buttons[_ngcontent-%COMP%]{margin-bottom:16px;margin-left:-2px;margin-right:-2px}.buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:4px 2px}.button[_ngcontent-%COMP%]{padding:16px 24px 15px;width:calc(100% - 4px);background:#f6f6f6!important}@media (min-width: 480px){.button[_ngcontent-%COMP%]{width:calc(50% - 4px)}}@media (min-width: 768px){.button[_ngcontent-%COMP%]{width:calc(33.33333% - 4px)}}@media (min-width: 960px){.button[_ngcontent-%COMP%]{width:calc(25% - 4px)}}@media (min-width: 1280px){.button[_ngcontent-%COMP%]{width:calc(20% - 4px)}}.map[_ngcontent-%COMP%]{position:relative}.map[_ngcontent-%COMP%]   shop-seller-search[_ngcontent-%COMP%]{position:absolute;top:80px;left:20px;z-index:5}  .cdk-overlay-container:has(.seller-search-overlay){z-index:5}']})}return n})()}];let Q=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[_.iI.forChild(W),_.iI]})}return n})();var Z=r(70842),J=r(68339),q=r(94831),tt=r(25532),et=r(86464),nt=r(14421),ot=r(18456),rt=r(95006),st=r(83921),it=r(15539),lt=r(12906);let at=(()=>{class n extends lt.d{getSellers(){const e=this.buildUrl(["shop","sellers"]);return this.get(e)}static#t=this.\u0275fac=(()=>{let e;return function(s){return(e||(e=t.xGo(n)))(s||n)}})();static#e=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ct=(()=>{class n{constructor(e,i,s,l,g){this.store=e,this.actions=i,this.sitemapService=s,this.loaderService=l,this.toasterService=g}static#t=this.\u0275fac=function(i){return new(i||n)(t.KVO(h.il),t.KVO
1(p.En),t.KVO(at),t.KVO(u.wA),t.KVO(u.FS))};static#e=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac})}return n})(),mt=(()=>{class n extends ct{constructor(){super(...arguments),this.getSellers=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(y),(0,ot.ZZ)(e=>this.sitemapService.getSellers().pipe((0,rt.T)(i=>new c(i)),(0,st.W)(i=>(0,nt.of)(new d(i))))))),this.getSellersSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(b)),{dispatch:!1}),this.getSellersError=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(a),(0,it.M)(e=>{})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let e;return function(s){return(e||(e=t.xGo(n)))(s||n)}})();static#e=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac})}return n})();const pt={sellers:null};function ht(n=pt,m){return m.type===b?{...n,sellers:m.payload.items}:n}let dt=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[o.MD,Q,Z.G,J.k,q.f,tt.r,et.X,u.LU,u.xT,h.md.forFeature("shopSeller",ht),p.Vm.forFeature([mt]),u.o6,R.h]})}return n})()},86464:(E,C,r)=>{r.d(C,{X:()=>t});var o=r(60177),p=r(50289),u=r(29262),_=r(54438);let t=(()=>{class h{static#t=this.\u0275fac=function(y){return new(y||h)};static#e=this.\u0275mod=_.$C({type:h});static#n=this.\u0275inj=_.G2t({imports:[o.MD,p.G,u.o6]})}return h})()},48033:(E,C,r)=>{r.d(C,{m:()=>b});var o=r(54438),p=r(87173),u=r(7165),_=r(63040);function t(a,f){1&a&&o.EFF(0," Homepage ")}function h(a,f){if(1&a&&o.EFF(0),2&a){const c=o.XpG().$implicit;o.SpI(" ",null==c.info[0]?null:c.info[0].name," ")}}function x(a,f){if(1&a&&(o.j41(0,"li",2)(1,"a",4),o.DNE(2,t,1,0)(3,h,1,1),o.k0s(),o.nrm(4,"img",5),o.k0s()),2&a){const c=f.$implicit,d=f.$index;o.R7$(),o.Y8G("mcraiLink",c),o.R7$(),o.vxM(2,0===d?2:3)}}function M(a,f){1&a&&o.nrm(0,"img",5)}function y(a,f){if(1&a&&(o.j41(0,"li",2)(1,"a",6),o.EFF(2," Homepage "),o.k0s(),o.DNE(3,M,1,0,"img",5),o.k0s()),2&a){const c=o.XpG();o.R7$(),o.Y8G("routerLink",c.linkService.getHomepageLink()),o.R7$(2),o.vxM(3,c.current?3:-1)}}let b=(()=>{class a{set path(c){Array.isArray(c)&&(this._path=c)}get path(){return this._path}constructor(c){this.linkService=c,this._path=[]}ngOnInit(){}static#t=this.\u0275fac=function(d){return new(d||a)(o.rXU(p._))};static#e=this.\u0275cmp=o.VBU({type:a,selectors:[["mcrai-breadcrumbs"]],hostVars:2,hostBindings:function(d,v){2&d&&o.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(d,v){1&d&&(o.j41(0,"div",0)(1,"ul",1),o.Z7z(2,x,5,2,"li",2,o.fX1),o.DNE(4,y,4,2,"li",2),o.j41(5,"li",3),o.EFF(6),o.k0s()()()),2&d&&(o.R7$(2),o.Dyx(v.path),o.R7$(2),o.vxM(4,v.path.length?-1:4),o.R7$(2),o.SpI(" ",v.current," "))},dependencies:[u.g,_.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 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.