PageSourceSearch

https://www.energytcm.cz/6224.7fca42dc68286e7b.js

js energytcm.cz collected 2026-10-07 20:06:36 UTC 13,365 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkenergy_tcm=self.webpackChunkenergy_tcm||[]).push([[6224,7058],{7603:(v,S,c)=>{c.d(S,{Oj:()=>l,_R:()=>r,ey:()=>f,tu:()=>i});const r="[Stuff] GET brands",l="[Stuff] GET brands success";class i{constructor(a={page:1,filter:{q:null}}){this.payload=a,this.type=r}}class f{constructor(a){this.payload=a,this.type=l}}},81546:(v,S,c)=>{c.d(S,{AA:()=>f,le:()=>l,rc:()=>i,zf:()=>r});const r="[Stuff] GET price levels",l="[Stuff] GET price levels success";class i{constructor(a){this.payload=a,this.type=r}}class f{constructor(a){this.payload=a,this.type=l}}},52103:(v,S,c)=>{c.d(S,{Ce:()=>r,Zk:()=>f,iL:()=>i,qU:()=>l});const r="[Stuff] GET store states",l="[Stuff] GET store states success";class i{constructor(a={page:1,filter:{q:null}}){this.payload=a,this.type=r}}class f{constructor(a){this.payload=a,this.type=l}}},51226:(v,S,c)=>{c.d(S,{DW:()=>r,Jj:()=>l,Jo:()=>i,yG:()=>f});const r="[Stuff] GET transport types",l="[Stuff] GET transport types success";class i{constructor(a={page:1,filter:{q:null}}){this.payload=a,this.type=r}}class f{constructor(a){this.payload=a,this.type=l}}},25786:(v,S,c)=>{c.d(S,{Bi:()=>r,pv:()=>f,sN:()=>i,tc:()=>l});const r="[Stuff] GET types",l="[Stuff] GET types success";class i{constructor(a={page:1,filter:{q:null}}){this.payload=a,this.type=r}}class f{constructor(a){this.payload=a,this.type=l}}},67524:(v,S,c)=>{c.d(S,{N:()=>J});var r=c(60177),l=c(76965),i=c(41635),f=c(7603),p=c(52103),a=c(51226),k=c(25786);const T="[Stuff] GET brand success";class n{constructor(d){this.payload=d,this.type=T}}const O="[Stuff] GET transport type success";class P{constructor(d){this.payload=d,this.type=O}}var B=c(81546);const F={brands:null,brand:null,storeStates:null,storeState:null,transportTypes:null,types:null,categories:null,categoryTree:null,priceLevels:null};function H(t=F,d){switch(d.type){case f.Oj:return{...t,brands:d.payload};case p.qU:return{...t,storeStates:d.payload};case a.Jj:return{...t,transportTypes:d.payload};case k.tc:return{...t,types:d.payload};case T:return{...t,brand:d.payload.item};case"[Stuff] GET store state success":case O:return{...t,storeState:d.payload.item};case B.le:return{priceLevels:d.payload};default:return t}}var I=c(12906),u=c(54438);let w=(()=>{class t extends I.d{constructor(){super(...arguments),this.CATEGORY_TREE_URL="categories/tree",this.PRICE_LEVELS_URL="price_levels"}getBrands(s,e,o){const g={page:s};e&&e.q&&(g.q=e.q),o&&(g.add_brands=o);const E=this.buildUrl("brands",g,!0);return this.get(E)}getStoreStates(s,e,o){const g={page:s};e&&e.q&&(g.q=e.q),o&&(g.add_store_states=o);const E=this.buildUrl("store-states",g,!0);return this.get(E)}getTransportTypes(s,e,o){const g={page:s};e&&e.q&&(g.q=e.q),o&&(g.add_transport_types=o);const E=this.buildUrl("transport_types",g,!0);return this.get(E)}getTypes(s,e,o){const g={page:s};e&&e.q&&(g.q=e.q),o&&(g.add_types=o);const E=this.buildUrl("types",g,!0);return this.get(E)}getBrand(s){const e=this.buildUrl(["brands",s]);return this.get(e)}getStoreState(s){const e=this.buildUrl(["store_states",s]);return this.get(e)}getTransportType(s){const e=this.buildUrl(["transport_types",s]);return this.get(e)}getCategories(s){const e=this.buildUrl(["categories",s,"nav"]);return this.get(e)}getCategoryTree(s,e){const o={page:s};e&&(o.q=e);const g=this.buildUrl(this.CATEGORY_TREE_URL,o,!0);return this.get(g)}getPriceLevels(s){const o=this.buildUrl(this.PRICE_LEVELS_URL,{page:s},!0);return this.get(o)}static#t=this.\u0275fac=(()=>{let s;return function(o){return(s||(s=u.xGo(t)))(o||t)}})();static#e=this.\u0275prov=u.jDH({token:t,factory:t.\u0275fac})}return t})();var m=c(14421),_=c(15539),b=c(49090),G=c(95006),x=c(83921),U=c(29262);let R=(()=>{class t{constructor(s,e,o,g,E){this.store=s,this.stuffService=e,this.actions=o,this.toastService=g,this.loaderService=E}static#t=this.\u0275fac=function(e){return new(e||t)(u.KVO(l.il),u.KVO(w),u.KVO(i.En),u.KVO(U.FS),u.KVO(U.wA))};static#e=this.\u0275prov=u.jDH({token:t,factory:t.\u0275fac})}return t})();var A=c(76613);let V=(()=>{class t extends R{constructor(){super(...arguments),this.getBrands=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f._R),(0,_.M)(()=>this.loaderService.show()),(0,b.n)(s=>this.stuffService.getBrands(s.payload.page,s.payload.filter,s.payload.add_brands).pipe((0,G.T)(e=>
1new f.ey(e)),(0,x.W)(e=>(0,m.of)(new A.Rn(e))))))),this.getBrandsSuccess=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.Oj),(0,_.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let s;return function(o){return(s||(s=u.xGo(t)))(o||t)}})();static#e=this.\u0275prov=u.jDH({token:t,factory:t.\u0275fac})}return t})(),j=(()=>{class t extends R{constructor(){super(...arguments),this.getBrand=(0,i.EH)(()=>this.actions.pipe((0,i.gp)("[Stuff] GET brand"),(0,_.M)(()=>this.loaderService.show()),(0,b.n)(s=>this.stuffService.getBrand(s.payload.id).pipe((0,G.T)(e=>new n(e)),(0,x.W)(e=>(0,m.of)(new A.Rn(e))))))),this.getBrandSuccess=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(T),(0,_.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let s;return function(o){return(s||(s=u.xGo(t)))(o||t)}})();static#e=this.\u0275prov=u.jDH({token:t,factory:t.\u0275fac})}return t})(),W=(()=>{class t extends R{constructor(){super(...arguments),this.getPriceLevels=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(B.zf),(0,_.M)(()=>this.loaderService.show()),(0,b.n)(s=>this.stuffService.getPriceLevels(s.payload.page).pipe((0,G.T)(e=>
1new B.AA(e)),(0,x.W)(e=>(0,m.of)(new A.Rn(e))))))),this.getPriceLevelsSuccess=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(B.le),(0,_.M)(()=>{this.loaderService.hide()})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let s;return function(o){return(s||(s=u.xGo(t)))(o||t)}})();static#e=this.\u0275prov=u.jDH({token:t,factory:t.\u0275fac})}return t})(),N=(()=>{class t extends R{constructor(){super(...arguments),this.getTypes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(k.Bi),(0,_.M)(()=>this.loaderService.show()),(0,b.n)(s=>this.stuffService.getTypes(s.payload.page,s.payload.filter,s.payload.add_types).pipe((0,G.T)(e=>new k.pv(e)),(0,x.W)(e=>(0,m.of)(new A.Rn(e))))))),this.getTypesSuccess=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(k.tc),(0,_.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let s;return function(o){return(s||(s=u.xGo(t)))(o||t)}})();static#e=this.\u0275prov=u.jDH({token:t,factory:t.\u0275fac})}return t})(),K=(()=>{class t extends R{constructor(){super(...arguments),this.getStoreStates=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(p.Ce),(0,_.M)(()=>this.loaderService.show()),(0,b.n)(s=>this.stuffService.getStoreStates(s.payload.page,s.payload.filter,s.payload.add_store_states).pipe((0,G.T)(e=>
1new p.Zk(e)),(0,x.W)(e=>(0,m.of)(new A.Rn(e))))))),this.getStoreStatesSuccess=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(p.qU),(0,_.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let s;return function(o){return(s||(s=u.xGo(t)))(o||t)}})();static#e=this.\u0275prov=u.jDH({token:t,factory:t.\u0275fac})}return t})(),Y=(()=>{class t extends R{constructor(){super(...arguments),this.getTransportTypes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(a.DW),(0,_.M)(()=>this.loaderService.show()),(0,b.n)(s=>this.stuffService.getTransportTypes(s.payload.page,s.payload.filter,s.payload.add_transport_types).pipe((0,G.T)(e=>new a.yG(e)),(0,x.W)(e=>(0,m.of)(new A.Rn(e))))))),this.getTransportTypesSuccess=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(a.Jj),(0,_.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let s;return function(o){return(s||(s=u.xGo(t)))(o||t)}})();static#e=this.\u0275prov=u.jDH({token:t,factory:t.\u0275fac})}return t})(),z=(()=>{class t extends R{constructor(){super(...arguments),this.getTransportType=(0,i.EH)(()=>this.actions.pipe((0,i.gp)("[Stuff] GET transport type"),(0,_.M)(()=>this.loaderService.show()),(0,b.n)(s=>this.stuffService.getTransportType(s.payload.id).pipe((0,G.T)(e=>
1new P(e)),(0,x.W)(e=>(0,m.of)(new A.Rn(e))))))),this.getTransportTypeSuccess=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(O),(0,_.M)(()=>{this.loaderService.hide()})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let s;return function(o){return(s||(s=u.xGo(t)))(o||t)}})();static#e=this.\u0275prov=u.jDH({token:t,factory:t.\u0275fac})}return t})(),J=(()=>{class t{static#t=this.\u0275fac=function(e){return new(e||t)};static#e=this.\u0275mod=u.$C({type:t});static#s=this.\u0275inj=u.G2t({providers:[w],imports:[r.MD,U.ni,l.md.forFeature("sharedStuff",H),i.Vm.forFeature([V,j,K,N,W,Y,z])]})}return t})()},20832:(v,S,c)=>{function r(l,i){const f=l.filter(p=>p.id!==i.id);return f.length<l.length?f:l.concat(i)}c.d(S,{g:()=>r})},99138:(v,S,c)=>{c.d(S,{Z:()=>l});var r=c(54438);let l=(()=>{class i{transform(p){return p?"ano":"ne"}static#t=this.\u0275fac=function(a){return new(a||i)};static#e=this.\u0275pipe=r.EJ8({name:"booleanToString",type:i,pure:!0})}return i})()},11815:(v,S,c)=>{c.d(S,{h:()=>C,u:()=>k});var r=c(54438),l=c(45286),i=c(7605);const f=["type","checkbox"],p=["*"];let a=0,k=(()=>{class T{get id(){return this._id}set disabled(n){this._disabled="string"==typeof n&&(0===n.length||"true"===n.toLowerCase())||!0===n,this.toggleDisabledAttribute()}set value(n){this._value=n}get value(){return this._value}set checked(n){this._checked=n,this._changeDetectorRef.markForCheck()}get checked(){return this._checked}set control(n){this._control=n,this.toggleDisabledAttribute()}get control(){return this._control}constructor(n,h,y){this._changeDetectorRef=n,this.elRef=h,this._checkboxGroup=y,this._id="mcrai-input--checkbox-"+ ++a,this._disabled=!1,this.sizeLikeOtherInputs=!1}ngOnInit(){this.updateChecked()}onClick(){this.isDisabled()||(this.checked=!this.checked,this._control&&(this._control.markAsDirty(),this._control.markAsTouched(),this._control.setValue(this.checked)),this._checkboxGroup&&(this._checkboxGroup.markAsDirty(),this._checkboxGroup.markAsTouched(),this._checkboxGroup.value=this._value))}isDisabled(){return this._disabled}updateChecked(){this._checkboxGroup?this.checked=Array.isArray(this._checkboxGroup.value)?-1!==this._checkboxGroup.value.indexOf(this._value):this._checkboxGroup.value===this._value:this._control&&(this.checked=this._control.value===this._value)}toggleDisabledAttribute(){this._control&&this.elRef.nativeElement.toggleAttribute("disabled",this._disabled)}static#t=this.\u0275fac=function(h){return new(h||T)(r.rXU(r.gRc),r.rXU(r.aKT),r.rXU((0,r.Rfq)(()=>C),8))};static#e=this.\u0275cmp=r.VBU({type:T,selectors:[["mcrai-input","type","checkbox"]],hostVars:4,hostBindings:function(h,y){2&h&&r.AVh("mcrai-input",!0)("mcrai-input--checkbox",!0)},inputs:{disabled:"disabled",value:"value",checked:"checked",control:"control",sizeLikeOtherInputs:"sizeLikeOtherInputs"},attrs:f,ngContentSelectors:p,decls:5,vars:8,consts:[[1,"mcrai-input__label"],["type","checkbox",1,"mcrai-input__checkbox-input",3,"click","id","checked","disabled"],[1,"mcrai-input__checkmark"],[1,"mcrai-input__text"]],template:function(h,y){1&h&&(r.NAR(),r.j41(0,"label",0)(1,"input",1),r.bIt("click",function(){return y.onClick()}),r.k0s(),r.nrm(2,"span",2),r.j41(3,"span",3),r.SdG(4),r.k0s()()),2&h&&(r.AVh("height-like-other-inputs",y.sizeLikeOtherInputs),r.BMQ("for",y.id),r.R7$(),r.Y8G("id",y.id)("checked",y.checked)("disabled",y.isDisabled()),r.R7$(),r.AVh("mcrai-input__checkmark--checked",y.checked))},styles:['.mcrai-input--checkbox{margin-bottom:2px}.mcrai-input__label{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.mcrai-input__label.height-like-other-inputs{display:flex;align-items:center;min-height:38px}[disabled]>.mcrai-input__label{opacity:.4;cursor:default}.mcrai-input__checkbox-input{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.mcrai-input__checkmark{position:relative;top:0;left:0;min-height:20px;min-width:20px;border:1px solid;margin-right:10px}.mcrai-input__checkmark:after{content:"";position:absolute;display:none}.mcrai-input__checkmark--checked:after{display:block}.mcrai-input__checkmark:after{left:11px;top:-2px;width:7px;height:15px;border-style:solid;border-width:0 2px 2px 0;transform:rotate(45deg)}\n'],encapsulation:2,changeDetection:0})}return T})(),C=(()=>{class T{set control(n){this._control=n,this._control.valueChanges.pipe((0,i.Q)(this._destroy)).subscribe(()=>
1this._checkboxes.forEach(h=>h.updateChecked()))}set value(n){if(!Array.isArray(this._control.value)||0===this._control.value.length)return void this._control.setValue([n]);const h=this._control.value.filter(y=>y!==n);this._control.setValue(this._control.value.length===h.length?this._control.value.concat(n):h)}get value(){return this._control.value}constructor(){this._destroy=new l.B7}ngOnInit(){}ngAfterViewInit(){}ngOnDestroy(){this._destroy.next(),this._destroy.complete()}markAsDirty(){this._control.markAsDirty()}markAsTouched(){this._control.markAsTouched()}static#t=this.\u0275fac=function(h){return new(h||T)};static#e=this.\u0275cmp=r.VBU({type:T,selectors:[["mcrai-checkbox-group"]],contentQueries:function(h,y,D){if(1&h&&r.wni(D,k,5),2&h){let M;r.mGM(M=r.lsd())&&(y._checkboxes=M)}},hostVars:2,hostBindings:function(h,y){2&h&&r.AVh("mcrai-checkbox-group",!0)},inputs:{control:"control"},ngContentSelectors:p,decls:1,vars:0,template:function(h,y){1&h&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return T})()}}]);

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.