PageSourceSearch

https://www.energytcm.cz/5965.42c8b246a71b8b9e.js

js energytcm.cz collected 2026-10-07 20:06:31 UTC 44,284 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkenergy_tcm=self.webpackChunkenergy_tcm||[]).push([[5965],{76099:(F,v,r)=>{r.d(v,{E:()=>h});var y=r(60177),u=r(634),l=r(2725),p=r(54438);let h=(()=>{class n{static#t=this.\u0275fac=function(f){return new(f||n)};static#e=this.\u0275mod=p.$C({type:n});static#o=this.\u0275inj=p.G2t({providers:[l.q],imports:[y.MD,u.r]})}return n})()},8749:(F,v,r)=>{r.d(v,{c:()=>n});var y=r(54438),u=r(41635),l=r(2725),p=r(76965),h=r(29262);let n=(()=>{class a{constructor(f,E,C,M,G,w){this.actions=f,this.dataService=E,this.store=C,this.toastService=M,this.loaderService=G,this.modalService=w}static#t=this.\u0275fac=function(E){return new(E||a)(y.KVO(u.En),y.KVO(l.q),y.KVO(p.il),y.KVO(h.FS),y.KVO(h.wA),y.KVO(h.mO))};static#e=this.\u0275prov=y.jDH({token:a,factory:a.\u0275fac})}return a})()},2725:(F,v,r)=>{r.d(v,{q:()=>l});var y=r(12906),u=r(54438);let l=(()=>{class p extends y.d{constructor(){super(...arguments),this.BORROW_TYPES_URL="borrow_types"}getBorrowType(n){const a=this.buildUrl(`${this.BORROW_TYPES_URL}/${n}`);return this.get(a)}getBorrowTypes(n,a=null){const d={page:n,...a},f=this.buildUrl(this.BORROW_TYPES_URL,d,!0);return this.get(f)}createBorrowType(n){const a=this.buildUrl(this.BORROW_TYPES_URL),d={...n,...n.date_interval};return delete d.date_interval,this.post(a,d)}patchBorrowType(n,a){const d=this.buildUrl(`${this.BORROW_TYPES_URL}/${n}`),f={code:a.code,...a.date_interval};return this.patch(d,f)}postBorrowTypeInfo(n,a){const d=this.buildUrl([this.BORROW_TYPES_URL,n,"info"]);return this.post(d,a)}patchBorrowTypeInfo(n,a,d){const f=this.buildUrl([this.BORROW_TYPES_URL,n,"info",a]);return this.patch(f,d)}deleteBorrowTypes(n){const a={borrow_type_ids:n.reduce((f,E)=>(f.push(E.id),f),[])},d=this.buildUrl(this.BORROW_TYPES_URL,a);return this.del(d)}static#t=this.\u0275fac=(()=>{let n;
1return function(d){return(n||(n=u.xGo(p)))(d||p)}})();static#e=this.\u0275prov=u.jDH({token:p,factory:p.\u0275fac})}return p})()},711:(F,v,r)=>{r.d(v,{Bd:()=>u,c8:()=>l,dj:()=>y,nT:()=>p});const y="[Languages] GET languages",u="[Languages] GET languages success";class l{constructor(){this.type=y}}class p{constructor(n){this.payload=n,this.type=u}}},44152:(F,v,r)=>{r.d(v,{E:()=>P});var y=r(60177),u=r(41635),l=r(76965),p=r(15661),h=r(14421),n=r(15539),a=r(49090),d=r(95006),f=r(83921),E=r(711),C=r(54438),M=r(12906);let G=(()=>{class g extends M.d{getLanguages(){const D=this.buildUrl(["languages"]);return this.get(D)}static#t=this.\u0275fac=(()=>{let D;return function(x){return(D||(D=C.xGo(g)))(x||g)}})();static#e=this.\u0275prov=C.jDH({token:g,factory:g.\u0275fac})}return g})();var w=r(29262);let U=(()=>{class g{constructor(D,L,x,m,S){this.dataService=D,this.actions=L,this.store=x,this.toastService=m,this.loaderService=S}static#t=this.\u0275fac=function(L){return new(L||g)(C.KVO(G),C.KVO(u.En),C.KVO(l.il),C.KVO(w.FS),C.KVO(w.wA))};static#e=this.\u0275prov=C.jDH({token:g,factory:g.\u0275fac})}return g})();var T=r(76613);let O=(()=>{class g extends U{constructor(){super(...arguments),this.getLanguages=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(E.dj),(0,n.M)(()=>this.loaderService.show()),(0,a.n)(()=>this.dataService.getLanguages().pipe((0,d.T)(D=>new E.nT(D)),(0,f.W)(D=>(0,h.of)(new T.Rn(D))))))),this.getLanguagesSuccess=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(E.Bd),(0,n.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let D;return function(x){return(D||(D=C.xGo(g)))(x||g)}})();static#e=this.\u0275prov=C.jDH({token:g,factory:g.\u0275fac})}return g})();var R=r(634);let I=(()=>{class g{static#t=this.\u0275fac=function(L){return new(L||g)};static#e=this.\u0275mod=C.$C({type:g});static#o=this.\u0275inj=C.G2t({providers:[G],imports:[y.MD,R.r]})}return g})(),P=(()=>{class g{static#t=this.\u0275fac=function(L){return new(L||g)};static#e=this.\u0275mod=C.$C({type:g});static#o=this.\u0275inj=C.G2t({imports:[y.MD,I,l.md.forFeature(p.qx,p.Ff),u.Vm.forFeature([O])]})}return g})()},15661:(F,v,r)=>{r.d(v,{Ff:()=>p,kr:()=>h,qx:()=>l});var y=r(711);const u={languages:null},l="languages";function p(n=u,a){return a.type===y.Bd?{...n,languages:a.payload}:n}const h=n=>n[l].languages},75483:(F,v,r)=>{r.d(v,{Q:()=>G});
1var y=r(76965),u=r(45286),l=r(7605),p=r(58728),h=r(711),n=r(15661),a=r(54438),d=r(59788),f=r(83891);function E(w,U){1&w&&a.nrm(0,"mcrai-option",2),2&w&&a.Y8G("value",null)}function C(w,U){if(1&w&&(a.j41(0,"mcrai-option",2),a.EFF(1),a.k0s()),2&w){const T=U.$implicit;a.Y8G("value",T.code),a.R7$(),a.Lme(" ",T.code," - ",T.name," ")}}function M(w,U){if(1&w){const T=a.RV6();a.j41(0,"mcrai-select",1),a.bIt("pageChange",function(R){a.eBV(T);const I=a.XpG();return a.Njj(I.onPageChange(R))}),a.DNE(1,E,1,1,"mcrai-option",2),a.Z7z(2,C,2,3,"mcrai-option",2,a.fX1),a.k0s()}if(2&w){const T=a.XpG();a.Mz_("placeholder","Jazyk",T.required?" *":"",""),a.Y8G("control",T.control)("paginator",T.paginator),a.R7$(),a.vxM(1,T.nullable?1:-1),a.R7$(),a.Dyx(T.languages)}}let G=(()=>{class w{get control(){return this._control}set control(T){this._control=T}get languages(){return this.languagesContainer?this.languagesContainer.items:[]}constructor(T){this.store=T,this.destroy=new u.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,y.Lt)(n.kr),(0,l.Q)(this.destroy),(0,p.p)(T=>!!T)).subscribe(T=>this.languagesContainer=T)}static#t=this.\u0275fac=function(O){return new(O||w)(a.rXU(y.il))};static#e=this.\u0275cmp=a.VBU({type:w,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(O,R){1&O&&a.DNE(0,M,4,5,"mcrai-select",0),2&O&&a.vxM(0,R.languages.length?0:-1)},dependencies:[d.w,f.P]})}return w})()},55951:(F,v,r)=>{r.d(v,{R:()=>n});var y=r(60177),u=r(89417),l=r(44152),p=r(29262),h=r(54438);let n=(()=>{class a{static#t=this.\u0275fac=function(E){return new(E||a)};static#e=this.\u0275mod=h.$C({type:a});static#o=this.\u0275inj=h.G2t({imports:[y.MD,u.X1,p.ni,l.E]})}return a})()},62166:(F,v,r)=>{r.d(v,{DG:()=>u,N3:()=>p,au:()=>l,zO:()=>y});const y="[LCD] get all currencies",u="[LCD] get all currencies suckness";class l{constructor(){this.type=y}}class p{constructor(n){this.payload=n,this.type=u}}},62399:(F,v,r)=>{r.d(v,{Bd:()=>u,c8:()=>l,dj:()=>y,nT:()=>p});const y="[LCD] get all languages",u="[LCD] get all languages suckness";class l{constructor(){this.type=y}}class p{constructor(n){this.payload=n,this.type=u}}},4903:(F,v,r)=>{r.d(v,{g:()=>x});var y=r(60177),u=r(41635),l=r(76965),p=r(62399),h=r(62166);const a="[LCD] GET all domains suckness";class f{constructor(S){this.payload=S,this.type=a}}const E={languages:[],currencies:[],domains:[],languagesContainer:null,currenciesContainer:null,domainsContainer:null};function C(m=E,S){switch(S.type){case p.Bd:return{...m,languages:S.payload.items,languagesContainer:S.payload};case h.DG:return{...m,currencies:S.payload.items,currenciesContainer:S.payload};case a:return{...m,domains:S.payload.items,domainsContainer:S.payload};default:return m}}var M=r(90757),G=r(14421),w=r(15539),U=r(49090),T=r(95006),O=r(83921),R=r(54438),I=r(29262);let P=(()=>{class m{constructor(_,j,A,ot,rt){this.actions=_,this.store=j,this.lcdService=A,this.toastService=ot,this.loaderService=rt}static#t=this.\u0275fac=function(j){return new(j||m)(R.KVO(u.En),R.KVO(l.il),R.KVO(M.j),R.KVO(I.FS),R.KVO(I.wA))};static#e=this.\u0275prov=R.jDH({token:m,factory:m.\u0275fac})}return m})();var g=r(76613);let it=(()=>{class m extends P{constructor(){super(...arguments),this.getCurrencies=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(h.zO),(0,w.M)(()=>this.loaderService.show()),(0,U.n)(()=>this.lcdService.getAllCurrencies().pipe((0,T.T)(_=>new h.N3(_)),(0,O.W)(_=>(0,G.of)(new g.Rn(_))))))),this.getCurrenciesSuccess=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(h.DG),(0,w.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let _;return function(A){return(_||(_=R.xGo(m)))(A||m)}})();static#e=this.\u0275prov=R.jDH({token:m,factory:m.\u0275fac})}return m})(),D=(()=>{class m extends P{constructor(){super(...arguments),this.getLanguages=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(p.dj),(0,w.M)(()=>this.loaderService.show()),(0,U.n)(()=>this.lcdService.getAllLanguages().pipe((0,T.T)(_=>
1new p.nT(_)),(0,O.W)(_=>(0,G.of)(new g.Rn(_))))))),this.getLanguagesSuccess=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(p.Bd),(0,w.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let _;return function(A){return(_||(_=R.xGo(m)))(A||m)}})();static#e=this.\u0275prov=R.jDH({token:m,factory:m.\u0275fac})}return m})(),L=(()=>{class m extends P{constructor(){super(...arguments),this.getDomains=(0,u.EH)(()=>this.actions.pipe((0,u.gp)("[LCD] GET all domains"),(0,w.M)(()=>this.loaderService.show()),(0,U.n)(()=>this.lcdService.getAllDomains().pipe((0,T.T)(_=>new f(_)),(0,O.W)(_=>(0,G.of)(new g.Rn(_))))))),this.getDomainsSuccess=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(a),(0,w.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let _;return function(A){return(_||(_=R.xGo(m)))(A||m)}})();static#e=this.\u0275prov=R.jDH({token:m,factory:m.\u0275fac})}return m})(),x=(()=>{class m{static#t=this.\u0275fac=function(j){return new(j||m)};static#e=this.\u0275mod=R.$C({type:m});static#o=this.\u0275inj=R.G2t({providers:[M.j],imports:[y.MD,l.md.forFeature("sharedLCD",C),u.Vm.forFeature([it,D,L])]})}return m})()},90757:(F,v,r)=>{r.d(v,{j:()=>l});var y=r(12906),u=r(54438);let l=(()=>{class p extends y.d{constructor(){super(...arguments),this.LANGUAGES_URL="languages",this.CURRENCIES_URL="currencies",this.DOMAINS_URL="domains"}getAllLanguages(){const n=this.buildUrl(this.LANGUAGES_URL,{});return this.get(n)}createLanguage(n){const a=this.buildUrl(this.LANGUAGES_URL,{});return this.post(a,n)}deleteLanguages(n){const a=n.reduce((f,E)=>f.concat(E.id),[]),d=this.buildUrl(this.LANGUAGES_URL,{language_ids:a});return this.del(d)}getLanguage(n){const a=this.buildUrl(this.LANGUAGES_URL+"/"+n,{});return this.get(a)}patchLanguage(n,a){const d=this.buildUrl(this.LANGUAGES_URL+"/"+n,{});return this.patch(d,a)}getAllCurrencies(){const n=this.buildUrl(this.CURRENCIES_URL,{});return this.get(n)}createCurrency(n){const a=this.buildUrl(this.CURRENCIES_URL,{});return this.post(a,n)}deleteCurrencies(n){const a=n.reduce((f,E)=>f.concat(E.id),[]),d=this.buildUrl(this.CURRENCIES_URL,{currency_ids:a});return this.del(d)}getCurrency(n){const a=this.buildUrl(this.CURRENCIES_URL+"/"+n,{});return this.get(a)}patchCurrency(n,a){const d=this.buildUrl(this.CURRENCIES_URL+"/"+n,{});return this.patch(d,a)}getAllDomains(){const n=this.buildUrl(this.DOMAINS_URL,{});return this.get(n)}createDomain(n){const a=this.buildUrl(this.DOMAINS_URL,{});return this.post(a,n)}deleteDomains(n){const a=n.reduce((f,E)=>f.concat(E.id),[]),d=this.buildUrl(this.DOMAINS_URL,{domain_ids:a});return this.del(d)}getDomain(n){const a=this.buildUrl(this.DOMAINS_URL+"/"+n,{});return this.get(a)}patchDomain(n,a){const d=this.buildUrl(this.DOMAINS_URL+"/"+n,{});return this.patch(d,a)}createDomainInfo(n,a){const d=this.buildUrl([this.DOMAINS_URL,n,"info"]),f=new FormData;return f.append("language",a.language),f.append("cart_description",a.cart_description),f.append("terms_and_conditions_file",a.terms_and_conditions_file),this.post(d,f)}patchDomainInfo(n,a,d){const f=this.buildUrl([this.DOMAINS_URL,n,"info",a]),E=new FormData;return E.append("language",d.language),E.append("cart_description",d.cart_description),E.append("terms_and_conditions_file",d.terms_and_conditions_file),this.post(f,E)}deleteDomainInfo(n,a){const d=this.buildUrl([this.DOMAINS_URL,n,"info",a]);return this.del(d)}static#t=this.\u0275fac=(()=>{let n;
1return function(d){return(n||(n=u.xGo(p)))(d||p)}})();static#e=this.\u0275prov=u.jDH({token:p,factory:p.\u0275fac})}return p})()},95965:(F,v,r)=>{r.r(v),r.d(v,{BorrowTypesModule:()=>ao});var y=r(60177),u=r(63040),l=r(89417),p=r(41635),h=r(76965),n=r(29262);const a="[Borrow types] GET one borrow type",d="[Borrow types] GET one borrow type success";class f{constructor(c){this.payload=c,this.type=a}}class E{constructor(c){this.payload=c,this.type=d}}const C="[Borrow types] PATCH borrow type",M="[Borrow types] PATCH borrow type success";class G{constructor(c){this.payload=c,this.type=C}}class w{constructor(c){this.payload=c,this.type=M}}const U="[Borrow types] POST borrow type info",T="[Borrow types] POST borrow type info success";class O{constructor(c){this.payload=c,this.type=U}}class R{constructor(c){this.payload=c,this.type=T}}const I="[Borrow types] get borrow types",P="[Borrow types] get borrow types success";class g{constructor(c){this.payload=c,this.type=I}}class it{constructor(c){this.payload=c,this.type=P}}const D="[Borrow types] TOGGLE borrow type";class L{constructor(c){this.payload=c,this.type=D}}const x="[Borrow types] unselect all";class m{constructor(){this.type=x}}const S="[Borrow types] DELETE borrow types",_="[Borrow types] DELETE borrow types success";class j{constructor(c){this.payload=c,this.type=S}}class A{constructor(c){this.payload=c,this.type=_}}const ot="[Borrow types] SET filter",rt="[Borrow types] RESET filter";class Gt{constructor(c){this.payload=c,this.type=ot}}class Ut{constructor(){this.type=rt}}const dt={borrowTypes:null,borrowType:null,filter:null,selectedBorrowTypes:[]};function xt(o,c,e){if(!e)return c;const s=o.items.concat(c.items),B=s.length,q=c.paginator.count;return{items:s,paginator:{page:c.paginator.page,ipp:B,page_count:q/B,count:q}}}function jt(o,c){const e=o.filter(s=>s.id!==c.id);return e.length<o.length?e:o.concat(c)}const tt="aegisxBorrowTypes";function It(o=dt,c){switch(c.type){case d:case M:case T:return{...o,borrowType:c.payload.item};case P:return{...o,borrowTypes:xt(o.borrowTypes,c.payload.borrow_types,c.payload.append),borrowType:null};case x:case _:return{...o,selectedBorrowTypes:[]};case D:return{...o,selectedBorrowTypes:jt(o.selectedBorrowTypes,c.payload.item)};case ot:return{...o,filter:c.payload.filter};case rt:return{...o,filter:dt.filter};default:return o}}const Pt=o=>o[tt].borrowType,ht=o=>o[tt].borrowTypes,mt=o=>o[tt].selectedBorrowTypes,At=o=>o[tt].filter;var yt=r(97309),st=r(45286),$=r(7605);const gt="[Borrow types] CREATE borrow type",ft="[Borrow types] CREATE borrow type success";class Nt{constructor(c){this.payload=c,this.type=gt}}class $t{constructor(c){this.payload=c,this.type=ft}}var t=r(54438),W=r(63649),K=r(23509),z=r(90113),Q=r(36001),at=r(33579),ct=r(33555),Z=r(97519),Tt=r(31992),vt=r(46346),Et=r(94300),_t=r(54444),wt=r(75483),lt=r(41819),pt=r(62523);let Bt=(()=>{class o{get dateIntervalControl(){return this._dateIntervalControl}set dateIntervalControl(e){this._dateIntervalControl=e}constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(s){return new(s||o)};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["aegisx-borrow-type-date-interval-picker"]],inputs:{dateIntervalControl:"dateIntervalControl"},decls:8,vars:9,consts:[[3,"formGroup"],["type","number","placeholder","Hodiny",3,"control","min"],["type","number","placeholder","Dny",3,"control","min"],["type","number","placeholder","T\xfddny",3,"control","min"],["type","number","placeholder","M\u011bs\xedce",3,"control","min"]],template:function(s,i){1&s&&(t.j41(0,"mcrai-dl")(1,"mcrai-dt"),t.EFF(2,"\u010casov\xfd interval"),t.k0s()(),t.j41(3,"form",0),t.nrm(4,"mcrai-input",1)(5,"mcrai-input",2)(6,"mcrai-input",3)(7,"mcrai-input",4),t.k0s()),2&s&&(t.R7$(3),t.Y8G("formGroup",i.dateIntervalControl),t.R7$(),t.Y8G("control",i.dateIntervalControl.controls.hours)("min",0),t.R7$(),t.Y8G("control",i.dateIntervalControl.controls.days)("min",0),t.R7$(),t.Y8G("control",i.dateIntervalControl.controls.weeks)("min",0),t.R7$(),t.Y8G("control",i.dateIntervalControl.controls.months)("min",0))},dependencies:[l.qT,l.cb,l.j4,Z.N,lt.p,pt.L]})}return o}
1)(),Wt=(()=>{class o{constructor(e,s){this.store=e,this.modalService=s,this.ERRORS={name:{required:"Typ zap\u016fj\u010den\xed mus\xed m\xedt n\xe1zev."},code:{required:"Typ zap\u016fj\u010den\xed mus\xed m\xedt k\xf3d."}},this.form=new l.gE({language:new l.hs("CZ",l.k0.required),name:new l.hs(null,l.k0.required),code:new l.hs(null,l.k0.required),date_interval:new l.gE({hours:new l.hs(0),days:new l.hs(0),weeks:new l.hs(0),months:new l.hs(0)})})}ngOnInit(){}createBorrowType(){this.form.valid?(this.store.dispatch(new Nt({item:this.form.value})),this.close()):console.error("add borrow type not valid",this.form)}close(){this.modalService.close()}isAddButtonDisabled(){return!this.form||!this.form.valid}static#t=this.\u0275fac=function(s){return new(s||o)(t.rXU(h.il),t.rXU(n.mO))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["aegisx-borrow-type-add-modal"]],decls:29,vars:9,consts:[["type","text","placeholder","K\xf3d *",3,"control","errors"],[3,"dateIntervalControl"],[3,"control","required","nullable"],["type","text","placeholder","N\xe1zev *",3,"control","errors"],["mcrai-button","negative",3,"click"],["mcrai-button","positive",3,"click","disabled"]],template:function(s,i){1&s&&(t.j41(0,"mcrai-modal")(1,"mcrai-modal-header")(2,"h1"),t.EFF(3,"Nov\xe1 mo\u017enost zap\u016fj\u010den\xed produktu"),t.k0s()(),t.j41(4,"mcrai-modal-content")(5,"mcrai-row")(6,"mcrai-col")(7,"mcrai-panel")(8,"mcrai-panel-header")(9,"h2"),t.EFF(10,"Hlavn\xed informace"),t.k0s()(),t.j41(11,"mcrai-panel-content"),t.nrm(12,"mcrai-input",0)(13,"br")(14,"aegisx-borrow-type-date-interval-picker",1),t.k0s()()()(),t.j41(15,"mcrai-row")(16,"mcrai-col")(17,"mcrai-panel")(18,"mcrai-panel-header")(19,"h2"),t.EFF(20,"Prvn\xed jazykov\xe1 mutace"),t.k0s()(),t.j41(21,"mcrai-panel-content"),t.nrm(22,"aegisx-select-language",2)(23,"mcrai-input",3),t.k0s()()()()(),t.j41(24,"mcrai-modal-actions")(25,"button",4),t.bIt("click",function(){return i.close()}),t.EFF(26,"Zav\u0159\xedt "),t.k0s(),t.j41(27,"button",5),t.bIt("click",function(){return i.createBorrowType()}),t.EFF(28,"Vytvo\u0159it "),t.k0s()()()),2&s&&(t.R7$(12),t.Y8G("control",i.form.controls.code)("errors",i.ERRORS.code),t.R7$(2),t.Y8G("dateIntervalControl",i.form.controls.date_interval),t.R7$(8),t.Y8G("control",i.form.controls.language)("required",!0)("nullable",!1),t.R7$(),t.Y8G("control",i.form.controls.name)("errors",i.ERRORS.name),t.R7$(4),t.Y8G("disabled",i.isAddButtonDisabled()))},dependencies:[W.Q,K.g,z.l,Q.B,at.o,ct.g,Z.N,Tt.h,vt.l,Et.J,_t.f,wt.Q,Bt]})}return o})();var J=r(1173),ut=r(71829),et=r(65382),Ct=r(70014),Rt=r(77617),nt=r(92721),Dt=r(52699),Vt=r(48390),kt=r(64204),Yt=r(95466),Ht=r(7306),Xt=r(7622),Kt=r(57382),zt=r(65208),Qt=r(21336),Zt=r(30127),Jt=r(49451);let St=(()=>{class o{transform(e){let s="";return e.hours&&(s+=e.hours,s+=e.hours>1?" hodiny, ":" hodina, "),e.days&&(s+=e.days,s+=e.days>1?" dny, ":" den, "),e.weeks&&(s+=e.weeks,s+=e.weeks>1?" t\xfddny, ":" t\xfdden, "),e.months&&(s+=e.months,s+=e.months>1?" m\u011bs\xedce":" m\u011bs\xedc"),s.trim().replace(/\,$/,"")}static#t=this.\u0275fac=function(s){return new(s||o)};static#e=this.\u0275pipe=t.EJ8({name:"dateIntervalToString",type:o,pure:!0})}return o})();const qt=o=>["/aegisx/borrow-types",o];function te(o,c){1&o&&(t.j41(0,"mcrai-th"),t.EFF(1,"N\xe1zev"),t.k0s())}function ee(o,c){if(1&o&&(t.j41(0,"mcrai-td"),t.EFF(1),t.k0s()),2&o){const e=c.$implicit;t.R7$(),t.JRh(null==e.info[0]?null:e.info[0].name)}}function oe(o,c){1&o&&(t.j41(0,"mcrai-th"),t.EFF(1,"K\xf3d"),t.k0s())}function re(o,c){if(1&o&&(t.j41(0,"mcrai-td"),t.EFF(1),t.k0s()),2&o){const e=c.$implicit;t.R7$(),t.JRh(e.code)}}function se(o,c){1&o&&(t.j41(0,"mcrai-th"),t.EFF(1,"\u010casov\xfd interval"),t.k0s())}function ne(o,c){if(1&o&&(t.j41(0,"mcrai-td"),t.EFF(1),t.nI1(2,"dateIntervalToString"),t.k0s()),2&o){const e=c.$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,e.date_interval)," ")}}function ie(o,c){1&o&&t.nrm(0,"mcrai-th")}function ae(o,c){if(1&o){const e=t.RV6();t.j41(0,"mcrai-td",10)(1,"button",11),t.bIt("click",function(){const i=t.eBV(e).$implicit,B=t.XpG(2);return t.Njj(B.toggleBorrowType(i))}),t.EFF(2,"Vybrat "),t.k0s(),t.j41(3,"a",12),t.EFF(4,"Detail"),t.k0s()()}if(2&o){const e=c.$implicit;t.R7$(3),t.Y8G("routerLink",t.eq3(1,qt,e.id))}}function ce(o,c){1&o&&t.nrm(0,"mcrai-tr")}function le(o,c){if(1&o&&t.nrm(0,"mcrai-tr"),2&o){const e=c.$implicit,s=t.XpG(2);t.AVh("mcrai-tr--highlight",s.isSelected(e))}}function pe(o,c){if(1&o&&(t.j41(0,"mcrai-table",0),t.qex(1,1),t.DNE(2,te,2,0,"mcrai-th",2)(3,ee,2,1,"mcrai-td",3),t.bVm(),t.qex(4,4),t.DNE(5,oe,2,0,"mcrai-th",2)(6,re,2,1,"mcrai-td",3),t.bVm(),t.qex(7,5),t.DNE(8,se,2,0,"mcrai-th",2)(9,ne,3,3,"mcrai-td",3),t.bVm(),t.qex(10,6),t.DNE(11,ie,1,0,"mcrai-th",2)(12,ae,5,3,"mcrai-td",7),t.bVm(),t.DNE(13,ce,1,0,"mcrai-tr",8)(14,le,1,2,"mcrai-tr",9),t.k0s()),2&o){const e=t.XpG();t.Y8G("container",e.borrowTypes),t.R7$(13),t.Y8G("mcraiHeaderRowDef",e.columns),t.R7$(),t.Y8G("mcraiRowDefColumns",e.columns)}}let ue=(()=>{class o{get columns(){return["name","description","date_interval","actions"]}constructor(e,s,i){this.store=e,this.toolbarService=s,this.permissionService=i,this.destroy=new st.B7}ngOnInit(){this.selectBorrowTypes(),this.selectSelectedBorrowTypes()}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}selectBorrowTypes(){this.store.pipe((0,h.Lt)(ht),(0,$.Q)(this.destroy)).subscribe(e=>this.borrowTypes=e)}selectSelectedBorrowTypes(){this.store.pipe((0,h.Lt)(mt),(0,$.Q)(this.destroy)).subscribe(e=>this.selectedBorrowTypes=e)}toggleBorrowType(e){this.store.dispatch(new L({item:e}))}isSelected(e){return!!this.selectedBorrowTypes.find(s=>s.id===e.id)}static#t=this.\u0275fac=function(s){return new(s||o)(t.rXU(h.il),t.rXU(et.h),t.rXU(ut.n))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["aegisx-borrow-type-list"]],decls:1,vars:1,consts:[[3,"container"],["mcraiColumnDef","name"],[4,"mcraiHeaderCellDef"],[4,"mcraiCellDef"],["mcraiColumnDef","description"],["mcraiColumnDef","date_interval"],["mcraiColumnDef","actions"],["align-right","",4,"mcraiCellDef"],[4,"mcraiHeaderRowDef"],[3,"mcrai-tr--highlight",4,"mcraiRowDef","mcraiRowDefColumns"],["align-right",""],["mcrai-button","neutral",3,"click"],["mcrai-button","neutral",3,"routerLink"]],template:function(s,i){1&s&&t.DNE(0,pe,15,3,"mcrai-table",0),2&s&&t.vxM(0,i.borrowTypes?0:-1)},dependencies:[u.Wk,W.Q,kt.n,Yt.q,Ht.B,Xt.K,Kt.D,zt.Q,Qt.V,Zt.e,Jt.O,St]})}return o}
1)();function de(o,c){if(1&o){const e=t.RV6();t.j41(0,"button",5),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.resetFilter())}),t.EFF(1,"Reset "),t.k0s()}}let he=(()=>{class o{get controls(){return this.form.controls}constructor(e){this.store=e}ngOnInit(){this.form=new l.gE({q:new l.hs("")})}filterBorrowTypes(){this.store.dispatch(new Gt({filter:this.form.value})),this.store.dispatch(new g({page:1,append:!1}))}resetFilter(){this.form.reset(),this.filterBorrowTypes()}isFiltered(){return!!this.form.value.q}static#t=this.\u0275fac=function(s){return new(s||o)(t.rXU(h.il))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["aegisx-borrow-type-filter"]],decls:15,vars:4,consts:[["color","secondary","collapsable","",3,"collapsed"],["id","borrow_type_filter",3,"formGroup"],["type","text","placeholder","Fulltext","error","",3,"control"],["mcrai-button","negative"],["mcrai-button","positive","form","borrow_type_filter",3,"click"],["mcrai-button","negative",3,"click"]],template:function(s,i){1&s&&(t.j41(0,"mcrai-panel",0)(1,"mcrai-panel-header")(2,"h2"),t.EFF(3,"Filtr"),t.k0s()(),t.j41(4,"mcrai-panel-content")(5,"form",1)(6,"mcrai-row")(7,"mcrai-col"),t.nrm(8,"mcrai-input",2),t.k0s(),t.nrm(9,"mcrai-col")(10,"mcrai-col"),t.k0s()()(),t.j41(11,"mcrai-panel-actions"),t.DNE(12,de,2,0,"button",3),t.j41(13,"button",4),t.bIt("click",function(){return i.filterBorrowTypes()}),t.EFF(14,"Filtrovat "),t.k0s()()()),2&s&&(t.Y8G("collapsed",!0),t.R7$(5),t.Y8G("formGroup",i.form),t.R7$(3),t.Y8G("control",i.controls.q),t.R7$(4),t.vxM(12,i.isFiltered()?12:-1))},dependencies:[W.Q,l.qT,l.cb,l.j4,K.g,z.l,nt.h,Q.B,at.o,ct.g,Z.N]})}return o})();function me(o,c){if(1&o){const e=t.RV6();t.j41(0,"button",7),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.deleteBorrowTypes())}),t.EFF(1,"Smazat vybran\xe9 "),t.k0s()}if(2&o){const e=t.XpG(2);t.Y8G("disabled",e.isDeleteButtonDisabled())}}function ye(o,c){if(1&o){const e=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.showAddBorrowTypeModal())}),t.EFF(1,"P\u0159idat mo\u017enost zap\u016fj\u010den\xed "),t.k0s()}}function ge(o,c){if(1&o){const e=t.RV6();t.j41(0,"mcrai-paginator",3),t.bIt("page",function(i){t.eBV(e);const B=t.XpG();return t.Njj(B.onPageChange(i))}),t.k0s(),t.j41(1,"button",4),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.unselectAll())}),t.EFF(2,"Zru\u0161it v\xfdb\u011br "),t.k0s(),t.DNE(3,me,2,1,"button",5)(4,ye,2,0,"button",6)}if(2&o){const e=t.XpG();t.Y8G("paginator",null==e.borrowTypes?null:e.borrowTypes.paginator),t.R7$(),t.Y8G("disabled",e.isDeleteButtonDisabled()),t.R7$(2),t.vxM(3,e.toolbarService.isDeleteMode()?3:-1),t.R7$(),t.vxM(4,e.permissionService.canWrite()&&!e.toolbarService.isDeleteMode()?4:-1)}}function fe(o,c){1&o&&t.eu8(0)}function Te(o,c){1&o&&t.eu8(0)}let ve=(()=>{class o{constructor(e,s,i,B){this.store=e,this.modalService=s,this.permissionService=i,this.toolbarService=B,this.destroy=new st.B7}ngOnInit(){this.setToolbarModes(),this.getBorrowTypes(),this.selectBorrowTypes(),this.selectSelectedBorrowTypes(),this.selectBorrowTypesFilter(),this.resetFilter()}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}setToolbarModes(){this.toolbarService.setToolbarModes([J.H.View,J.H.Edit,J.H.Delete])}selectBorrowTypes(){this.store.pipe((0,h.Lt)(ht),(0,$.Q)(this.destroy)).subscribe(e=>this.borrowTypes=e)}selectBorrowTypesFilter(){this.store.pipe((0,h.Lt)(At),(0,$.Q)(this.destroy)).subscribe(e=>this.filter=e)}getBorrowTypes(e=1,s=!1){this.store.dispatch(new g({page:e,append:s}))}selectSelectedBorrowTypes(){this.store.pipe((0,h.Lt)(mt),(0,$.Q)(this.destroy)).subscribe(e=>this.selectedBorrowTypes=e)}resetFilter(){this.store.dispatch(new Ut)}showAddBorrowTypeModal(){const e=new n.m_("800px","600px");this.modalService.open(Wt,e)}unselectAll(){this.store.dispatch(new m)}isDeleteButtonDisabled(){return!this.selectedBorrowTypes||!this.selectedBorrowTypes.length}onPageChange(e){this.getBorrowTypes(e)}deleteBorrowTypes(){this.selectedBorrowTypes.length?this.store.dispatch(new j({items:this.selectedBorrowTypes})):console.error("delete borrow types fail",this.selectedBorrowTypes)}static#t=this.\u0275fac=function(s){return new(s||o)(t.rXU(h.il),t.rXU(n.mO),t.rXU(ut.n),t.rXU(et.h))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["aegisx-borrow-types-overview"]],decls:16,vars:2,consts:[["borrowTypesActions",""],["top",""],[4,"ngTemplateOutlet"],[1,"pull-left",3,"page","paginator"],["mcrai-button","neutral",3,"click","disabled"],["mcrai-button","negative",3,"disabled"],["mcrai-button","positive"],["mcrai-button","negative",3,"click","disabled"],["mcrai-button","positive",3,"click"]],template:function(s,i){if
1(1&s&&(t.nrm(0,"aegisx-header"),t.j41(1,"mcrai-container")(2,"mcrai-panel")(3,"mcrai-panel-header")(4,"h1"),t.EFF(5,"Mo\u017enosti zap\u016fj\u010den\xed produktu"),t.k0s()(),t.j41(6,"mcrai-panel-content"),t.nrm(7,"aegisx-borrow-type-filter")(8,"aegisx-borrow-type-list"),t.k0s(),t.DNE(9,ge,5,4,"ng-template",null,0,t.C5r),t.j41(11,"mcrai-panel-actions",1),t.DNE(12,fe,1,0,"ng-container",2),t.k0s(),t.j41(13,"mcrai-panel-actions"),t.DNE(14,Te,1,0,"ng-container",2),t.k0s()()(),t.nrm(15,"aegisx-toolbar")),2&s){const B=t.sdS(10);t.R7$(12),t.Y8G("ngTemplateOutlet",B),t.R7$(2),t.Y8G("ngTemplateOutlet",B)}},dependencies:[y.T3,Ct.I,Rt.I,W.Q,K.g,z.l,nt.h,Q.B,Dt.H,Vt.h,ue,he]})}return o})();var Ee=r(62399),bt=r(39103);function _e(o,c){if(1&o&&(t.j41(0,"mcrai-dl")(1,"mcrai-dt"),t.EFF(2,"K\xf3d"),t.k0s(),t.j41(3,"mcrai-dd"),t.EFF(4),t.k0s(),t.j41(5,"mcrai-dt"),t.EFF(6,"\u010casov\xfd internval"),t.k0s(),t.j41(7,"mcrai-dd"),t.EFF(8),t.nI1(9,"dateIntervalToString"),t.k0s()()),2&o){const e=t.XpG();t.R7$(4),t.JRh(null==e.borrowType?null:e.borrowType.code),t.R7$(4),t.JRh(t.bMT(9,2,null==e.borrowType?null:e.borrowType.date_interval))}}function we(o,c){if(1&o&&(t.j41(0,"form",1),t.nrm(1,"mcrai-input",2)(2,"br")(3,"aegisx-borrow-type-date-interval-picker",3),t.k0s()),2&o){const e=t.XpG();t.Y8G("formGroup",e.form),t.R7$(),t.Y8G("control",e.form.controls.code)("errors",e.ERRORS.code),t.R7$(2),t.Y8G("dateIntervalControl",e.form.controls.date_interval)}}function Be(o,c){if(1&o){const e=t.RV6();t.j41(0,"mcrai-panel-actions")(1,"button",4),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.patchBorrowType())}),t.EFF(2,"Ulo\u017eit zm\u011bny "),t.k0s()()}if(2&o){const e=t.XpG();t.R7$(),t.Y8G("disabled",e.isPatchButtonDisabled())}}let Ce=(()=>{class o{constructor(e,s){this.store=e,this.toolbarService=s,this.ERRORS={code:{required:"Mo\u017enost zap\u016fj\u010den\xed mus\xed m\xedt k\xf3d."}},this.form=new l.gE({code:new l.hs(null,l.k0.required),date_interval:new l.gE({hours:new l.hs(0),days:new l.hs(0),weeks:new l.hs(0),months:new l.hs(0)})})}ngOnInit(){}ngOnChanges(e){e.hasOwnProperty("borrowType")&&e.borrowType.currentValue&&this.form.patchValue(e.borrowType.currentValue)}isPatchButtonDisabled(){return this.form.invalid||this.form.pristine}patchBorrowType(){this.isPatchButtonDisabled()||this.store.dispatch(new G({borrow_type_id:this.borrowType.id,body:this.form.value}))}static#t=this.\u0275fac=function(s){return new(s||o)(t.rXU(h.il),t.rXU(et.h))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["aegisx-borrow-type-detail"]],inputs:{borrowType:"borrowType"},features:[t.OA$],decls:8,vars:3,consts:[["color","secondary"],[3,"formGroup"],["type","text","placeholder","K\xf3d",3,"control","errors"],[3,"dateIntervalControl"],["mcrai-button","positive",3,"click","disabled"]],template:function(s,i){1&s&&(t.j41(0,"mcrai-panel",0)(1,"mcrai-panel-header")(2,"h2"),t.EFF(3,"Z\xe1kladn\xed informace"),t.k0s()(),t.j41(4,"mcrai-panel-content"),t.DNE(5,_e,10,4,"mcrai-dl")(6,we,4,4,"form",1),t.k0s(),t.DNE(7,Be,3,1,"mcrai-panel-actions"),t.k0s()),2&s&&(t.R7$(5),t.vxM(5,i.toolbarService.isEditMode()?-1:5),t.R7$(),t.vxM(6,i.toolbarService.isEditMode()?6:-1),t.R7$(),t.vxM(7,i.toolbarService.isEditMode()?7:-1))},dependencies:[W.Q,l.qT,l.cb,l.j4,K.g,z.l,nt.h,Q.B,Z.N,lt.p,pt.L,bt.Z,Bt,St]})}return o})();var Re=r(58728);const Ft="[Borrow types] PATCH borrow type info",Ot="[Borrow types] PATCH borrow type info success";class De{constructor(c){this.payload=c,this.type=Ft}}class Se{constructor(c){this.payload=c,this.type=Ot}}let be=(()=>{class o{get controls(){return this.form.controls}constructor(e,s,i){this.builder=e,this.store=s,this.modalService=i,this.buildForm()}ngOnInit(){}buildForm(){this.form=this.builder.group({language:["CZ"],name:[null]})}isAddButtonDisabled(){return this.form.invalid}createBorrowTypeInfo(){this.isAddButtonDisabled()||(this.store.dispatch(new O({info:this.form.value})),this.close())}close(){this.modalService.close()}static#t=this.\u0275fac=function(s){return new(s||o)(t.rXU(l.ok),t.rXU(h.il),t.rXU(n.mO))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["aegisx-add-borrow-type-info-modal"]],decls:13,vars:6,consts:[[3,"formGroup"],[3,"control","required","nullable"],["placeholder","N\xe1zev ve v\xfdpisu","type","text",3,"control"],["mcrai-button","negative",3,"click"],["mcrai-button","positive",3,"click","disabled"]],template:function(s,i){1&s&&(t.j41(0,"mcrai-modal")(1,"mcrai-modal-header")(2,"h1"),t.EFF(3,"Nov\xe1 jazykov\xe1 mutace"),t.k0s()(),t.j41(4,"mcrai-modal-content")(5,"form",0),t.nrm(6,"aegisx-select-language",1)(7,"mcrai-input",2),t.k0s()(),t.j41(8,"mcrai-modal-actions")(9,"button",3),t.bIt("click",function(){return i.close}),t.EFF(10,"Zav\u0159\xedt"),t.k0s(),t.j41(11,"button",4),t.bIt("click",function(){return i.createBorrowTypeInfo()}),t.EFF(12,"Vytvo\u0159it"),t.k0s()()()),2&s&&(t.R7$(5),t.Y8G("formGroup",i.form),t.R7$(),t.Y8G("control",i.controls.language)("required",!0)("nullable",!1),t.R7$(),t.Y8G("control",i.controls.name),t.R7$(4),t.Y8G("disabled",i.isAddButtonDisabled()))},dependencies:[W.Q,l.qT,l.cb,l.j4,Z.N,Tt.h,vt.l,Et.J,_t.f,wt.Q]})}return o}
1)();var Fe=r(57864),Lt=r(44010),Oe=r(33804);const Le=o=>[o,"name"];function Me(o,c){if(1&o&&(t.j41(0,"h3"),t.EFF(1),t.k0s()),2&o){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.language)}}function Ge(o,c){if(1&o&&(t.j41(0,"mcrai-dl")(1,"mcrai-dt"),t.EFF(2,"N\xe1zev"),t.k0s(),t.j41(3,"mcrai-dd"),t.EFF(4),t.nI1(5,"notSet"),t.k0s()()),2&o){const e=t.XpG().$implicit;t.R7$(4),t.JRh(t.bMT(5,1,e.name))}}function Ue(o,c){if(1&o&&t.nrm(0,"mcrai-input",3),2&o){const e=t.XpG().$implicit,s=t.XpG(2);t.Y8G("control",s.form.get(t.eq3(2,Le,e.language)))("errors",s.ERRORS.name)}}function xe(o,c){if(1&o&&(t.j41(0,"mcrai-tab"),t.DNE(1,Me,2,1,"ng-template",2)(2,Ge,6,3,"mcrai-dl")(3,Ue,1,4,"mcrai-input",3),t.k0s()),2&o){const e=t.XpG(2);t.R7$(2),t.vxM(2,e.toolbarService.isEditMode()?-1:2),t.R7$(),t.vxM(3,e.toolbarService.isEditMode()?3:-1)}}function je(o,c){if(1&o&&(t.j41(0,"mcrai-horizontal-tabs"),t.Z7z(1,xe,4,2,"mcrai-tab",null,t.fX1),t.k0s()),2&o){const e=t.XpG();t.R7$(),t.Dyx(e.info)}}function Ie(o,c){if(1&o){const e=t.RV6();t.j41(0,"button",6),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.patch())}),t.EFF(1,"Ulo\u017eit zm\u011bny "),t.k0s()}if(2&o){const e=t.XpG(2);t.Y8G("disabled",e.form.invalid)}}function Pe(o,c){if(1&o){const e=t.RV6();t.j41(0,"button",7),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.add())}),t.EFF(1,"P\u0159idat jazykovou mutaci "),t.k0s()}}function Ae(o,c){if(1&o&&(t.j41(0,"mcrai-panel-actions"),t.DNE(1,Ie,2,1,"button",4)(2,Pe,2,0,"button",5),t.k0s()),2&o){const e=t.XpG();t.R7$(),t.vxM(1,e.toolbarService.isEditMode()?1:-1),t.R7$(),t.vxM(2,!e.toolbarService.isDeleteMode()&&e.showAddButton()?2:-1)}}let Ne=(()=>{class o{get controls(){return this.form.controls}constructor(e,s,i,B){this.store=e,this.modalService=s,this.permissionService=i,this.toolbarService=B,this.ERRORS={name:{required:"Typ mus\xed m\xedt n\xe1zev"}},this.destroy=new st.B7,this.info=[],this.form=new l.gE({}),this.languages=[]}ngOnInit(){this.store.select(Pt).pipe((0,$.Q)(this.destroy),(0,Re.p)(e=>!!e.info)).subscribe(e=>this.onBorrowTypeChange(e)),this.store.select(e=>e.sharedLCD.languages).pipe((0,$.Q)(this.destroy)).subscribe(e=>this.languages=e)}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}getInfoDiff(e,s){return s.filter(i=>-1===e.indexOf(i.language))}onBorrowTypeChange(e){this.info=e.info,this.borrowType=e,this.updateForm(e.info),this.hydrateForm(e.info)}updateForm(e=[]){const s=Object.keys(this.form.value);this.getInfoDiff(s,e).forEach(B=>{const q=this.buildForm(B);this.form.addControl(B.language,q)})}buildForm(e){const s=new l.gE({});return Object.keys(e).forEach(i=>{["name"].indexOf(i)>=0?s.addControl(i,new l.hs(null,l.k0.required)):s.addControl(i,new l.hs)}),s}hydrateForm(e){e.forEach(s=>{const i=this.form.controls[s.language];i&&i.patchValue(s)})}showAddButton(){return this.info.length<this.languages.length}showActions(){return this.showAddButton()&&this.toolbarService.isViewMode()||!this.toolbarService.isViewMode()}add(){const e=new n.m_("600px","500px");this.modalService.open(be,e)}patch(){const e=this.form.controls;Object.keys(e).forEach(s=>{e[s].dirty&&this.store.dispatch(new De({id:this.borrowType.id,language:s,info:e[s].value}))})}static#t=this.\u0275fac=function(s){return new(s||o)(t.rXU(h.il),t.rXU(n.mO),t.rXU(ut.n),t.rXU(et.h))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["aegisx-borrow-type-languages"]],decls:8,vars:3,consts:[["color","secondary"],["id","info",3,"formGroup"],["mcraiTabLabel",""],["type","text","placeholder","N\xe1zev ve v\xfdpisu",3,"control","errors"],["form","info","mcrai-button","positive",3,"disabled"],["mcrai-button","positive"],["form","info","mcrai-button","positive",3,"click","disabled"],["mcrai-button","positive",3,"click"]],template:function(s,i){1&s&&(t.j41(0,"mcrai-panel",0)(1,"mcrai-panel-header")(2,"h2"),t.EFF(3,"Jazykov\xe9 mutace"),t.k0s()(),t.j41(4,"mcrai-panel-content")(5,"form",1),t.DNE(6,je,3,0,"mcrai-horizontal-tabs"),t.k0s()(),t.DNE(7,Ae,3,2,"mcrai-panel-actions"),t.k0s()),2&s&&(t.R7$(5),t.Y8G("formGroup",i.form),t.R7$(),t.vxM(6,i.info.length?6:-1),t.R7$(),t.vxM(7,i.permissionService.canWrite()&&i.showActions()?7:-1))},dependencies:[W.Q,l.qT,l.cb,l.j4,K.g,z.l,nt.h,Q.B,Z.N,lt.p,pt.L,bt.Z,Fe.y,Lt.qv,Lt.p$,Oe.s],styles:[".mcrai-tabs[_ngcontent-%COMP%]{background-color:#fff!important}"]})}return o}
1)();function $e(o,c){if(1&o&&(t.j41(0,"mcrai-row")(1,"mcrai-col")(2,"mcrai-panel")(3,"mcrai-panel-header")(4,"h1"),t.EFF(5),t.k0s()(),t.j41(6,"mcrai-panel-content")(7,"mcrai-row")(8,"mcrai-col"),t.nrm(9,"aegisx-borrow-type-detail",1),t.k0s(),t.j41(10,"mcrai-col",2),t.nrm(11,"aegisx-borrow-type-languages"),t.k0s()()()()()()),2&o){const e=t.XpG();t.R7$(5),t.JRh(null==e.borrowType||null==e.borrowType.info[0]?null:e.borrowType.info[0].name),t.R7$(4),t.Y8G("borrowType",e.borrowType)}}const Ve=[{path:"",component:ve,canActivate:[yt.P]},{path:":borrow_type_id",component:(()=>{class o{constructor(e,s,i,B){this.store=e,this.activatedRoute=s,this.toolbarService=i,this.location=B,this.destroy=new st.B7,s.params.subscribe(q=>{this.store.dispatch(new f({id:q.borrow_type_id}))})}ngOnInit(){this.getLanguages(),this.selectBorrowType(),this.setToolbarModes()}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}setToolbarModes(){this.toolbarService.setToolbarModes([J.H.View,J.H.Edit,J.H.Delete])}selectBorrowType(){this.store.select(e=>e.aegisxBorrowTypes.borrowType).pipe((0,$.Q)(this.destroy)).subscribe(e=>this.borrowType=e)}pickupPatchedBorrowType(e){this.patchedBorrowType=e}getLanguages(){this.store.dispatch(new Ee.c8)}static#t=this.\u0275fac=function(s){return new(s||o)(t.rXU(h.il),t.rXU(u.nX),t.rXU(et.h),t.rXU(y.aZ))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["aegisx-borrow-type--detail"]],decls:8,vars:1,consts:[["mcrai-button","neutral",3,"click"],[3,"borrowType"],["flex-2",""]],template:function(s,i){1&s&&(t.nrm(0,"aegisx-header"),t.j41(1,"mcrai-container")(2,"mcrai-row")(3,"mcrai-col")(4,"button",0),t.bIt("click",function(){return i.location.back()}),t.EFF(5,"Zp\xe1tky"),t.k0s()()(),t.DNE(6,$e,12,2,"mcrai-row"),t.k0s(),t.nrm(7,"aegisx-toolbar")),2&s&&(t.R7$(6),t.vxM(6,i.borrowType?6:-1))},dependencies:[Ct.I,Rt.I,W.Q,K.g,z.l,Q.B,at.o,ct.g,Dt.H,Ce,Ne]})}return o})(),canActivate:[yt.P]}];let ke=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#e=this.\u0275mod=t.$C({type:o});static#o=this.\u0275inj=t.G2t({imports:[u.iI.forChild(Ve),u.iI]})}return o})();var V=r(14421),b=r(15539),Mt=r(57421),N=r(49090),k=r(95006),Y=r(83921),H=r(8749),X=r(76613);let Ye=(()=>{class o extends H.c{constructor(){super(...arguments),this.getBorrowTypes=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(I),(0,b.M)(()=>this.loaderService.show()),(0,Mt.E)(this.store),(0,N.n)(([e,s])=>this.dataService.getBorrowTypes(e.payload.page,s.aegisxBorrowTypes.filter).pipe((0,k.T)(i=>new it({borrow_types:i,append:e.payload.append})),(0,Y.W)(i=>(0,V.of)(new X.Rn(i))))))),this.getBorrowTypesSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(P),(0,b.M)(()=>{this.loaderService.hide()})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let e;return function(i){return(e||(e=t.xGo(o)))(i||o)}})();static#e=this.\u0275prov=t.jDH({token:o,factory:o.\u0275fac})}return o})(),He=(()=>{class o extends H.c{constructor(){super(...arguments),this.createBorrowType=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(gt),(0,b.M)(()=>this.loaderService.show()),(0,N.n)(e=>this.dataService.createBorrowType(e.payload.item).pipe((0,k.T)(s=>new $t(s)),(0,Y.W)(s=>(0,V.of)(new X.uD(s))))))),this.createBorrowTypeSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(ft),(0,b.M)(e=>{this.toastService.makeToast(e.payload.message,n.Ck.Success)}),(0,N.n)(()=>[new g({page:1,append:!1})])))}static#t=this.\u0275fac=(()=>{let e;return function(i){return(e||(e=t.xGo(o)))(i||o)}})();static#e=this.\u0275prov=t.jDH({token:o,factory:o.\u0275fac})}return o})(),Xe=(()=>{class o extends H.c{constructor(){super(...arguments),this.deleteBorrowTypes=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(S),(0,b.M)(()=>this.loaderService.show()),(0,N.n)(e=>this.dataService.deleteBorrowTypes(e.payload.items).pipe((0,k.T)(s=>new A(s)),(0,Y.W)(s=>(0,V.of)(new X.Rn(s))))))),this.deleteBorrowTypesSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(_),(0,b.M)(e=>this.toastService.makeToast(e.payload.message,n.Ck.Success)),(0,N.n)(()=>[new g({page:1,append:!1})])))}static#t=this.\u0275fac=(()=>{let e;return function(i){return(e||(e=t.xGo(o)))(i||o)}})();static#e=this.\u0275prov=t.jDH({token:o,factory:o.\u0275fac})}return o}
1)(),Ke=(()=>{class o extends H.c{constructor(){super(...arguments),this.getBorrowType=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(a),(0,b.M)(()=>this.loaderService.show()),(0,N.n)(e=>this.dataService.getBorrowType(e.payload.id).pipe((0,k.T)(s=>new E(s)),(0,Y.W)(s=>(0,V.of)(new X.Rn(s))))))),this.getBorrowTypeSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(d),(0,b.M)(()=>{this.loaderService.hide()})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let e;return function(i){return(e||(e=t.xGo(o)))(i||o)}})();static#e=this.\u0275prov=t.jDH({token:o,factory:o.\u0275fac})}return o})(),ze=(()=>{class o extends H.c{constructor(){super(...arguments),this.patchBorrowType=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(C),(0,b.M)(()=>this.loaderService.show()),(0,N.n)(e=>this.dataService.patchBorrowType(e.payload.borrow_type_id,e.payload.body).pipe((0,k.T)(s=>new w(s)),(0,Y.W)(s=>(0,V.of)(new X.uD(s))))))),this.patchBorrowTypeSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(M),(0,b.M)(e=>{this.loaderService.hide(),this.toastService.makeToast(e.payload.message,n.Ck.Success)})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let e;return function(i){return(e||(e=t.xGo(o)))(i||o)}})();static#e=this.\u0275prov=t.jDH({token:o,factory:o.\u0275fac})}return o})();var Qe=r(18456);let Ze=(()=>{class o extends H.c{constructor(){super(...arguments),this.patchBorrowTypeInfo=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(Ft),(0,b.M)(()=>this.loaderService.show()),(0,Qe.ZZ)(e=>this.dataService.patchBorrowTypeInfo(e.payload.id,e.payload.language,e.payload.info).pipe((0,k.T)(s=>new Se(s)),(0,Y.W)(s=>(0,V.of)(new X.Rn(s))))))),this.patchBorrowTypeInfoSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(Ot),(0,b.M)(e=>{this.loaderService.hide(),this.toastService.makeToast(e.payload.message,n.Ck.Success)}),(0,N.n)(e=>[new f({id:e.payload.item.id})])))}static#t=this.\u0275fac=(()=>{let e;return function(i){return(e||(e=t.xGo(o)))(i||o)}})();static#e=this.\u0275prov=t.jDH({token:o,factory:o.\u0275fac})}return o})(),Je=(()=>{class o extends H.c{constructor(){super(...arguments),this.postBorrowTypeInfo=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(U),(0,b.M)(()=>this.loaderService.show()),(0,Mt.E)(this.store.select(e=>e.aegisxBorrowTypes.borrowType)),(0,N.n)(([e,s])=>this.dataService.postBorrowTypeInfo(s.id,e.payload.info).pipe((0,k.T)(i=>new R(i)),(0,Y.W)(i=>(0,V.of)(new X.Rn(i))))))),this.postBorrowTypeInfoSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(T),(0,b.M)(e=>{this.loaderService.hide(),this.toastService.makeToast(e.payload.message,n.Ck.Success)})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let e;return function(i){return(e||(e=t.xGo(o)))(i||o)}})();static#e=this.\u0275prov=t.jDH({token:o,factory:o.\u0275fac})}return o})();var qe=r(291),to=r(93578),eo=r(73821),oo=r(55951),ro=r(4903),so=r(50289),no=r(12741),io=r(76099);let ao=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#e=this.\u0275mod=t.$C({type:o});static#o=this.\u0275inj=t.G2t({imports:[y.MD,ke,qe.G,to.m,so.G,eo.c,l.X1,u.iI,ro.g,io.E,h.md.forFeature(tt,It),p.Vm.forFeature([He,Ke,Ye,ze,Ze,Je,Xe]),n.pj,n.LU,n.B4,n.SD,n.Zg,n.xT,n.oP,n.Tm,n.F8,n.hv,oo.R,no.Y]})}return o})()},33804:(F,v,r)=>{r.d(v,{s:()=>u});var y=r(54438);let u=(()=>{class l{transform(h,n){return h||"-"}static#t=this.\u0275fac=function(n){return new(n||l)};static#e=this.\u0275pipe=y.EJ8({name:"notSet",type:l,pure:!0})}return l})()}}]);

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.