1"use strict";(self.webpackChunkenergy_tcm=self.webpackChunkenergy_tcm||[]).push([[6256],{711:(O,C,i)=>{i.d(C,{Bd:()=>u,c8:()=>l,dj:()=>f,nT:()=>p});const f="[Languages] GET languages",u="[Languages] GET languages success";class l{constructor(){this.type=f}}class p{constructor(a){this.payload=a,this.type=u}}},44152:(O,C,i)=>{i.d(C,{E:()=>N});var f=i(60177),u=i(41635),l=i(76965),p=i(15661),d=i(14421),a=i(15539),r=i(49090),T=i(95006),S=i(83921),_=i(711),F=i(54438),b=i(12906);let j=(()=>{class m extends b.d{getLanguages(){const R=this.buildUrl(["languages"]);return this.get(R)}static#t=this.\u0275fac=(()=>{let R;return function(A){return(R||(R=F.xGo(m)))(A||m)}})();static#e=this.\u0275prov=F.jDH({token:m,factory:m.\u0275fac})}return m})();var E=i(29262);let M=(()=>{class m{constructor(R,x,A,h,L){this.dataService=R,this.actions=x,this.store=A,this.toastService=h,this.loaderService=L}static#t=this.\u0275fac=function(x){return new(x||m)(F.KVO(j),F.KVO(u.En),F.KVO(l.il),F.KVO(E.FS),F.KVO(E.wA))};static#e=this.\u0275prov=F.jDH({token:m,factory:m.\u0275fac})}return m})();var y=i(76613);let G=(()=>{class m extends M{constructor(){super(...arguments),this.getLanguages=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(_.dj),(0,a.M)(()=>this.loaderService.show()),(0,r.n)(()=>this.dataService.getLanguages().pipe((0,T.T)(R=>new _.nT(R)),(0,S.W)(R=>(0,d.of)(new y.Rn(R))))))),this.getLanguagesSuccess=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(_.Bd),(0,a.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let R;return function(A){return(R||(R=F.xGo(m)))(A||m)}})();static#e=this.\u0275prov=F.jDH({token:m,factory:m.\u0275fac})}return m})();var D=i(634);let B=(()=>{class m{static#t=this.\u0275fac=function(x){return new(x||m)};static#e=this.\u0275mod=F.$C({type:m});static#s=this.\u0275inj=F.G2t({providers:[j],imports:[f.MD,D.r]})}return m})(),N=(()=>{class m{static#t=this.\u0275fac=function(x){return new(x||m)};static#e=this.\u0275mod=F.$C({type:m});static#s=this.\u0275inj=F.G2t({imports:[f.MD,B,l.md.forFeature(p.qx,p.Ff),u.Vm.forFeature([G])]})}return m})()},15661:(O,C,i)=>{i.d(C,{Ff:()=>p,kr:()=>d,qx:()=>l});var f=i(711);const u={languages:null},l="languages";function p(a=u,r){return r.type===f.Bd?{...a,languages:r.payload}:a}const d=a=>a[l].languages},75483:(O,C,i)=>{i.d(C,{Q:()=>j});var f=i(76965),u=i(45286),l=i(7605),p=i(58728),d=i(711),a=i(15661),r=i(54438),T=i(59788),S=i(83891);function _(E,M){1&E&&r.nrm(0,"mcrai-option",2),2&E&&r.Y8G("value",null)}function F(E,M){if(1&E&&(r.j41(0,"mcrai-option",2),r.EFF(1),r.k0s()),2&E){const y=M.$implicit;r.Y8G("value",y.code),r.R7$(),r.Lme(" ",y.code," - ",y.name," ")}}function b(E,M){if(1&E){const y=r.RV6();r.j41(0,"mcrai-select",1),r.bIt("pageChange",function(D){r.eBV(y);const B=r.XpG();return r.Njj(B.onPageChange(D))}),r.DNE(1,_,1,1,"mcrai-option",2),r.Z7z(2,F,2,3,"mcrai-option",2,r.fX1),r.k0s()}if(2&E){const y=r.XpG();r.Mz_("placeholder","Jazyk",y.required?" *":"",""),r.Y8G("control",y.control)("paginator",y.paginator),r.R7$(),r.vxM(1,y.nullable?1:-1),r.R7$(),r.Dyx(y.languages)}}let j=(()=>{class E{get control(){return this._control}set control(y){this._control=y}get languages(){return this.languagesContainer?this.languagesContainer.items:[]}constructor(y){this.store=y,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 d.c8)}selectLanguages(){this.store.pipe((0,f.Lt)(a.kr),(0,l.Q)(this.destroy),(0,p.p)(y=>!!y)).subscribe(y=>this.languagesContainer=y)}static#t=this.\u0275fac=function(G){return new(G||E)(r.rXU(f.il))};static#e=this.\u0275cmp=r.VBU({type:E,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(G,D){1&G&&r.DNE(0,b,4,5,"mcrai-select",0),2&G&&r.vxM(0,D.languages.length?0:-1)},dependencies:[T.w,S.P]})}return E})()},55951:(O,C,i)=>{i.d(C,{R:()=>a});var f=i(60177),u=i(89417),l=i(44152),p=i(29262),d=i(54438);let a=(()=>{class r{static#t=this.\u0275fac=function(_){return new(_||r)};static#e=this.\u0275mod=d.$C({type:r});static#s=this.\u0275inj=d.G2t({imports:[f.MD,u.X1,p.ni,l.E]})}return r})()},62166:(O,C,i)=>{i.d(C,{DG:()=>u,N3:()=>p,au:()=>l,zO:()=>f});const f="[LCD] get all currencies",u="[LCD] get all currencies suckness";class l{constructor(){this.type=f}}class p{constructor(a){this.payload=a,this.type=u}}},62399:(O,C,i)=>{i.d(C,{Bd:()=>u,c8:()=>l,dj:()=>f,nT:()=>p});const f="[LCD] get all languages",u="[LCD] get all languages suckness";class l{constructor(){this.type=f}}class p{constructor(a){this.payload=a,this.type=u}}},4903:(O,C,i)=>{i.d(C,{g:()=>A});var f=i(60177),u=i(41635),l=i(76965),p=i(62399),d=i(62166);const r="[LCD] GET all domains suckness";class S{constructor(L){this.payload=L,this.type=r}}const _={languages:[],currencies:[],domains:[],languagesContainer:null,currenciesContainer:null,domainsContainer:null};function F(h=_,L){switch(L.type){case p.Bd:return{...h,languages:L.payload.items,languagesContainer:L.payload};case d.DG:return{...h,currencies:L.payload.items,currenciesContainer:L.payload};case r:return{...h,domains:L.payload.items,domainsContainer:L.payload};default:return h}}var b=i(90757),j=i(14421),E=i(15539),M=i(49090),y=i(95006),G=i(83921),D=i(54438),B=i(29262);let N=(()=>{class h{constructor(v,I,V,tt,et){this.actions=v,this.store=I,this.lcdService=V,this.toastService=tt,this.loaderService=et}static#t=this.\u0275fac=function(I){return new(I||h)(D.KVO(u.En),D.KVO(l.il),D.KVO(b.j),D.KVO(B.FS),D.KVO(B.wA))};static#e=this.\u0275prov=D.jDH({token:h,factory:h.\u0275fac})}return h})();var m=i(76613);let at=(()=>{class h extends N{constructor(){super(...arguments),this.getCurrencies=(0,u.EH)(()=>
1this.actions.pipe((0,u.gp)(d.zO),(0,E.M)(()=>this.loaderService.show()),(0,M.n)(()=>this.lcdService.getAllCurrencies().pipe((0,y.T)(v=>new d.N3(v)),(0,G.W)(v=>(0,j.of)(new m.Rn(v))))))),this.getCurrenciesSuccess=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(d.DG),(0,E.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let v;return function(V){return(v||(v=D.xGo(h)))(V||h)}})();static#e=this.\u0275prov=D.jDH({token:h,factory:h.\u0275fac})}return h})(),R=(()=>{class h extends N{constructor(){super(...arguments),this.getLanguages=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(p.dj),(0,E.M)(()=>this.loaderService.show()),(0,M.n)(()=>this.lcdService.getAllLanguages().pipe((0,y.T)(v=>new p.nT(v)),(0,G.W)(v=>(0,j.of)(new m.Rn(v))))))),this.getLanguagesSuccess=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(p.Bd),(0,E.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let v;return function(V){return(v||(v=D.xGo(h)))(V||h)}})();static#e=this.\u0275prov=D.jDH({token:h,factory:h.\u0275fac})}return h})(),x=(()=>{class h extends N{constructor(){super(...arguments),this.getDomains=(0,u.EH)(()=>this.actions.pipe((0,u.gp)("[LCD] GET all domains"),(0,E.M)(()=>this.loaderService.show()),(0,M.n)(()=>this.lcdService.getAllDomains().pipe((0,y.T)(v=>new S(v)),(0,G.W)(v=>(0,j.of)(new m.Rn(v))))))),this.getDomainsSuccess=(0,u.EH)(()=>this.actions.pipe((0,u.gp)(r),(0,E.M)(()=>this.loaderService.hide())),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let v;return function(V){return(v||(v=D.xGo(h)))(V||h)}})();static#e=this.\u0275prov=D.jDH({token:h,factory:h.\u0275fac})}return h})(),A=(()=>{class h{static#t=this.\u0275fac=function(I){return new(I||h)};static#e=this.\u0275mod=D.$C({type:h});static#s=this.\u0275inj=D.G2t({providers:[b.j],imports:[f.MD,l.md.forFeature("sharedLCD",F),u.Vm.forFeature([at,R,x])]})}return h})()},90757:(O,C,i)=>{i.d(C,{j:()=>l});var f=i(12906),u=i(54438);let l=(()=>{class p extends f.d{constructor(){super(...arguments),this.LANGUAGES_URL="languages",this.CURRENCIES_URL="currencies",this.DOMAINS_URL="domains"}getAllLanguages(){const a=this.buildUrl(this.LANGUAGES_URL,{});return this.get(a)}createLanguage(a){const r=this.buildUrl(this.LANGUAGES_URL,{});return this.post(r,a)}deleteLanguages(a){const r=a.reduce((S,_)=>S.concat(_.id),[]),T=this.buildUrl(this.LANGUAGES_URL,{language_ids:r});return this.del(T)}getLanguage(a){const r=this.buildUrl(this.LANGUAGES_URL+"/"+a,{});return this.get(r)}patchLanguage(a,r){const T=this.buildUrl(this.LANGUAGES_URL+"/"+a,{});return this.patch(T,r)}getAllCurrencies(){const a=this.buildUrl(this.CURRENCIES_URL,{});return this.get(a)}createCurrency(a){const r=this.buildUrl(this.CURRENCIES_URL,{});return this.post(r,a)}deleteCurrencies(a){const r=a.reduce((S,_)=>S.concat(_.id),[]),T=this.buildUrl(this.CURRENCIES_URL,{currency_ids:r});return this.del(T)}getCurrency(a){const r=this.buildUrl(this.CURRENCIES_URL+"/"+a,{});return this.get(r)}patchCurrency(a,r){const T=this.buildUrl(this.CURRENCIES_URL+"/"+a,{});return this.patch(T,r)}getAllDomains(){const a=this.buildUrl(this.DOMAINS_URL,{});return this.get(a)}createDomain(a){const r=this.buildUrl(this.DOMAINS_URL,{});return this.post(r,a)}deleteDomains(a){const r=a.reduce((S,_)=>S.concat(_.id),[]),T=this.buildUrl(this.DOMAINS_URL,{domain_ids:r});return this.del(T)}getDomain(a){const r=this.buildUrl(this.DOMAINS_URL+"/"+a,{});return this.get(r)}patchDomain(a,r){const T=this.buildUrl(this.DOMAINS_URL+"/"+a,{});return this.patch(T,r)}createDomainInfo(a,r){const T=this.buildUrl([this.DOMAINS_URL,a,"info"]),S=new FormData;return S.append("language",r.language),S.append("cart_description",r.cart_description),S.append("terms_and_conditions_file",r.terms_and_conditions_file),this.post(T,S)}patchDomainInfo(a,r,T){const S=this.buildUrl([this.DOMAINS_URL,a,"info",r]),_=new FormData;return _.append("language",T.language),_.append("cart_description",T.cart_description),_.append("terms_and_conditions_file",T.terms_and_conditions_file),this.post(S,_)}deleteDomainInfo(a,r){const T=this.buildUrl([this.DOMAINS_URL,a,"info",r]);return this.del(T)}static#t=this.\u0275fac=(()=>{let a;
1return function(T){return(a||(a=u.xGo(p)))(T||p)}})();static#e=this.\u0275prov=u.jDH({token:p,factory:p.\u0275fac})}return p})()},36256:(O,C,i)=>{i.r(C),i.d(C,{TypesModule:()=>ss});var f=i(60177),u=i(63040),l=i(89417),p=i(41635),d=i(76965),a=i(29262);const r="[Types] GET one type",T="[Types] GET one type success";class S{constructor(c){this.payload=c,this.type=r}}class _{constructor(c){this.payload=c,this.type=T}}const F="[Types] PATCH type",b="[Types] PATCH type success";class j{constructor(c){this.payload=c,this.type=F}}class E{constructor(c){this.payload=c,this.type=b}}const M="[Types] POST type info",y="[Types] POST type info success";class G{constructor(c){this.payload=c,this.type=M}}class D{constructor(c){this.payload=c,this.type=y}}const B="[Types] get types",N="[Types] get types success";class m{constructor(c){this.payload=c,this.type=B}}class at{constructor(c){this.payload=c,this.type=N}}const R="[Types] TOGGLE type";class x{constructor(c){this.payload=c,this.type=R}}const A="[Types] unselect all";class h{constructor(){this.type=A}}const L="[Types] DELETE types",v="[Types] DELETE types success";class I{constructor(c){this.payload=c,this.type=L}}class V{constructor(c){this.payload=c,this.type=v}}const tt="[Types] SET filter",et="[Types] RESET filter";class bt{constructor(c){this.payload=c,this.type=tt}}class jt{constructor(){this.type=et}}const ut={types:null,type:null,filter:null,selectedTypes:[]};function At(s,c,e){if(!e)return c;const n=s.items.concat(c.items),g=n.length,P=c.paginator.count;return{items:n,paginator:{page:c.paginator.page,ipp:g,page_count:P/g,count:P}}}function It(s,c){const e=s.filter(n=>n.id!==c.id);return e.length<s.length?e:s.concat(c)}const q="aegisxTypes";function Pt(s=ut,c){switch(c.type){case T:case b:case y:return{...s,type:c.payload.item};case N:return{...s,types:At(s.types,c.payload.types,c.payload.append),type:null};case A:case v:return{...s,selectedTypes:[]};case R:return{...s,selectedTypes:It(s.selectedTypes,c.payload.item)};case tt:return{...s,filter:c.payload.filter};case et:return{...s,filter:ut.filter};default:return s}}const dt=s=>s[q].types,ht=s=>s[q].selectedTypes,Bt=s=>s[q].filter;var mt=i(97309),st=i(45286),H=i(7605);const gt="[Types] CREATE type",yt="[Types] CREATE type success";class Nt{constructor(c){this.payload=c,this.type=gt}}class Vt{constructor(c){this.payload=c,this.type=yt}}var t=i(54438),X=i(63649),z=i(23509),Q=i(90113),J=i(36001),rt=i(33579),ct=i(33555),nt=i(97519),ft=i(31992),Tt=i(46346),vt=i(94300),Et=i(54444),Ct=i(75483);let $t=(()=>{class s{constructor(e,n){this.store=e,this.modalService=n,this.ERRORS={name:{required:"Typ mus\xed m\xedt n\xe1zev."}},this.form=new l.J3({language:new l.hs("CZ",l.k0.required),name:new l.hs(null,l.k0.required)})}ngOnInit(){}createType(){this.form.valid?(this.store.dispatch(new Nt({item:this.form.value})),this.close()):console.error("add type not valid",this.form)}close(){this.modalService.close()}isAddButtonDisabled(){return!this.form||!this.form.valid}static#t=this.\u0275fac=function(n){return new(n||s)(t.rXU(d.il),t.rXU(a.mO))};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["aegisx-type-add-modal"]],decls:19,vars:6,consts:[[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(n,o){1&n&&(t.j41(0,"mcrai-modal")(1,"mcrai-modal-header")(2,"h1"),t.EFF(3,"Nov\xfd typ 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,"Prvn\xed jazykov\xe1 mutace"),t.k0s()(),t.j41(11,"mcrai-panel-content"),t.nrm(12,"aegisx-select-language",0)(13,"mcrai-input",1),t.k0s()()()()(),t.j41(14,"mcrai-modal-actions")(15,"button",2),t.bIt("click",function(){return o.close()}),t.EFF(16,"Zav\u0159\xedt "),t.k0s(),t.j41(17,"button",3),t.bIt("click",function(){return o.createType()}),t.EFF(18,"Vytvo\u0159it "),t.k0s()()()),2&n&&(t.R7$(12),t.Y8G("control",o.form.controls.language)("required",!0)("nullable",!1),t.R7$(),t.Y8G("control",o.form.controls.name)("errors",o.ERRORS.name),t.R7$(4),t.Y8G("disabled",o.isAddButtonDisabled()))},dependencies:[X.Q,z.g,Q.l,J.B,rt.o,ct.g,nt.N,ft.h,Tt.l,vt.J,Et.f,Ct.Q]})}return s})();var Z=i(1173),lt=i(71829),it=i(65382),St=i(70014),_t=i(77617),ot=i(92721),Dt=i(52699),Ht=i(48390),Xt=i(64204),Yt=i(95466),kt=i(7306),wt=i(7622),Kt=i(57382),Wt=i(65208),zt=i(21336),Qt=i(30127),Jt=i(49451),Zt=i(68417);const qt=s=>["/aegisx/types",s];function te(s,c){1&s&&(t.j41(0,"mcrai-th"),t.EFF(1,"N\xe1zev"),t.k0s())}function ee(s,c){if(1&s&&(t.j41(0,"mcrai-td"),t.EFF(1),t.k0s()),2&s){const e=c.$implicit;t.R7$(),t.JRh(null==e.info[0]?null:e.info[0].name)}}function se(s,c){1&s&&(t.j41(0,"mcrai-th"),t.EFF(1,"Popis"),t.k0s())}function ne(s,c){if(1&s&&(t.j41(0,"mcrai-td"),t.EFF(1),t.nI1(2,"characterLimit"),t.k0s()),2&s){const e=c.$implicit;t.R7$(),t.JRh(t.i5U(2,1,null==e.info[0]?null:e.info[0].description,100))}}function ie(s,c){1&s&&t.nrm(0,"mcrai-th")}function oe(s,c){if(1&s){const e=t.RV6();t.j41(0,"mcrai-td",9)(1,"button",10),t.bIt("click",function(){const o=t.eBV(e).$implicit,g=t.XpG(2);return t.Njj(g.toggleType(o))}),t.EFF(2,"Vybrat "),t.k0s(),t.j41(3,"a",11),t.EFF(4,"Detail"),t.k0s()()}if(2&s){const e=c.$implicit;t.R7$(3),t.Y8G("routerLink",t.eq3(1,qt,e.id))}}function ae(s,c){1&s&&t.nrm(0,"mcrai-tr")}function re(s,c){if(1&s&&t.nrm(0,"mcrai-tr"),2&s){const e=c.$implicit,n=t.XpG(2);t.AVh("mcrai-tr--highlight",n.isSelected(e))}}function ce(s,c){if(1&s&&(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,se,2,0,"mcrai-th",2)(6,ne,3,4,"mcrai-td",3),t.bVm(),t.qex(7,5),t.DNE(8,ie,1,0,"mcrai-th",2)(9,oe,5,3,"mcrai-td",6),t.bVm(),t.DNE(10,ae,1,0,"mcrai-tr",7)(11,re,1,2,"mcrai-tr",8),t.k0s()),2&s){const e=t.XpG();t.Y8G("container",e.types),t.R7$(10),t.Y8G("mcraiHeaderRowDef",e.columns),t.R7$(),t.Y8G("mcraiRowDefColumns",e.columns)}}let le=(()=>{class s{get columns(){return["name","description","actions"]}constructor(e,n,o){this.store=e,this.toolbarService=n,this.permissionService=o,this.destroy=new st.B7}ngOnInit(){this.selectTypes(),this.selectSelectedTypes()}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}selectTypes(){this.store.pipe((0,d.Lt)(dt),(0,H.Q)(this.destroy)).subscribe(e=>this.types=e)}selectSelectedTypes(){this.store.pipe((0,d.Lt)(ht),(0,H.Q)(this.destroy)).subscribe(e=>this.selectedTypes=e)}toggleType(e){this.store.dispatch(new x({item:e}))}isSelected(e){return!!this.selectedTypes.find(n=>n.id===e.id)}static#t=this.\u0275fac=function(n){return new(n||s)(t.rXU(d.il),t.rXU(it.h),t.rXU(lt.n))};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["aegisx-type-list"]],decls:1,vars:1,consts:[[3,"container"],["mcraiColumnDef","name"],[4,"mcraiHeaderCellDef"],[4,"mcraiCellDef"],["mcraiColumnDef","description"],["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(n,o){1&n&&t.DNE(0,ce,12,3,"mcrai-table",0),2&n&&t.vxM(0,o.types?0:-1)},dependencies:[u.Wk,X.Q,Xt.n,Yt.q,kt.B,wt.K,Kt.D,Wt.Q,zt.V,Qt.e,Jt.O,Zt.$]})}return s})();
1function pe(s,c){if(1&s){const e=t.RV6();t.j41(0,"button",5),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.resetFilter())}),t.EFF(1,"Reset "),t.k0s()}}let ue=(()=>{class s{get controls(){return this.form.controls}constructor(e){this.store=e}ngOnInit(){this.form=new l.J3({q:new l.hs("")})}filterTypes(){this.store.dispatch(new bt({filter:this.form.value})),this.store.dispatch(new m({page:1,append:!1}))}resetFilter(){this.form.reset(),this.filterTypes()}isFiltered(){return!!this.form.value.q}static#t=this.\u0275fac=function(n){return new(n||s)(t.rXU(d.il))};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["aegisx-type-filter"]],decls:15,vars:4,consts:[["color","secondary","collapsable","",3,"collapsed"],["id","type_filter",3,"formGroup"],["type","text","placeholder","Fulltext","error","",3,"control"],["mcrai-button","negative"],["mcrai-button","positive","form","type_filter",3,"click"],["mcrai-button","negative",3,"click"]],template:function(n,o){1&n&&(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,pe,2,0,"button",3),t.j41(13,"button",4),t.bIt("click",function(){return o.filterTypes()}),t.EFF(14,"Filtrovat "),t.k0s()()()),2&n&&(t.Y8G("collapsed",!0),t.R7$(5),t.Y8G("formGroup",o.form),t.R7$(3),t.Y8G("control",o.controls.q),t.R7$(4),t.vxM(12,o.isFiltered()?12:-1))},dependencies:[X.Q,l.qT,l.cb,l.j4,z.g,Q.l,ot.h,J.B,rt.o,ct.g,nt.N]})}return s})();function de(s,c){if(1&s){const e=t.RV6();t.j41(0,"button",7),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.deleteTypes())}),t.EFF(1,"Smazat vybran\xe9 "),t.k0s()}if(2&s){const e=t.XpG(2);t.Y8G("disabled",e.isDeleteButtonDisabled())}}function he(s,c){if(1&s){const e=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.showAddTypeModal())}),t.EFF(1,"P\u0159idat typ "),t.k0s()}}function me(s,c){if(1&s){const e=t.RV6();t.j41(0,"mcrai-paginator",3),t.bIt("page",function(o){t.eBV(e);const g=t.XpG();return t.Njj(g.onPageChange(o))}),t.k0s(),t.j41(1,"button",4),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.unselectAll())}),t.EFF(2,"Zru\u0161it v\xfdb\u011br "),t.k0s(),t.DNE(3,de,2,1,"button",5)(4,he,2,0,"button",6)}if(2&s){const e=t.XpG();t.Y8G("paginator",null==e.types?null:e.types.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 ge(s,c){1&s&&t.eu8(0)}function ye(s,c){1&s&&t.eu8(0)}let fe=(()=>{class s{constructor(e,n,o,g){this.store=e,this.modalService=n,this.permissionService=o,this.toolbarService=g,this.destroy=new st.B7}ngOnInit(){this.setToolbarModes(),this.getTypes(),this.selectTypes(),this.selectSelectedTypes(),this.selectTypesFilter(),this.resetFilter()}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}setToolbarModes(){this.toolbarService.setToolbarModes([Z.H.View,Z.H.Edit,Z.H.Delete])}selectTypes(){this.store.pipe((0,d.Lt)(dt),(0,H.Q)(this.destroy)).subscribe(e=>this.types=e)}selectTypesFilter(){this.store.pipe((0,d.Lt)(Bt),(0,H.Q)(this.destroy)).subscribe(e=>this.filter=e)}getTypes(e=1,n=!1){this.store.dispatch(new m({page:e,append:n}))}selectSelectedTypes(){this.store.pipe((0,d.Lt)(ht),(0,H.Q)(this.destroy)).subscribe(e=>this.selectedTypes=e)}resetFilter(){this.store.dispatch(new jt)}showAddTypeModal(){const e=new a.m_("800px","600px");this.modalService.open($t,e)}unselectAll(){this.store.dispatch(new h)}isDeleteButtonDisabled(){return!this.selectedTypes||!this.selectedTypes.length}onPageChange(e){this.getTypes(e)}deleteTypes(){this.selectedTypes.length?this.store.dispatch(new I({items:this.selectedTypes})):console.error("delete types fail",this.selectedTypes)}static#t=this.\u0275fac=function(n){return new(n||s)(t.rXU(d.il),t.rXU(a.mO),t.rXU(lt.n),t.rXU(it.h))};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["aegisx-types-overview"]],decls:16,vars:2,consts:[["typesActions",""],["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(n,o){if(1&n&&(t.nrm(0,"aegisx-header"),t.j41(1,"mcrai-container")(2,"mcrai-panel")(3,"mcrai-panel-header")(4,"h1"),t.EFF(5,"Typy produkt\u016f"),t.k0s()(),t.j41(6,"mcrai-panel-content"),t.nrm(7,"aegisx-type-filter")(8,"aegisx-type-list"),t.k0s(),t.DNE(9,me,5,4,"ng-template",null,0,t.C5r),t.j41(11,"mcrai-panel-actions",1),t.DNE(12,ge,1,0,"ng-container",2),t.k0s(),t.j41(13,"mcrai-panel-actions"),t.DNE(14,ye,1,0,"ng-container",2),t.k0s()()(),t.nrm(15,"aegisx-toolbar")),2&n){const g=t.sdS(10);t.R7$(12),t.Y8G("ngTemplateOutlet",g),t.R7$(2),t.Y8G("ngTemplateOutlet",g)}},dependencies:[f.T3,St.I,_t.I,X.Q,z.g,Q.l,ot.h,J.B,Dt.H,Ht.h,le,ue]})}return s})();var Te=i(62399),ve=i(58728);const Ft="[Types] PATCH type info",Rt="[Types] PATCH type info success";class Ee{constructor(c){this.payload=c,this.type=Ft}}class Ce{constructor(c){this.payload=c,this.type=Rt}}let Se=(()=>{class s{get controls(){return this.form.controls}constructor(e,n,o){this.builder=e,this.store=n,this.modalService=o,this.buildForm()}ngOnInit(){}buildForm(){this.form=this.builder.group({language:["CZ"],name:[null]})}
1isAddButtonDisabled(){return this.form.invalid}createTypeInfo(){this.isAddButtonDisabled()||(this.store.dispatch(new G({info:this.form.value})),this.close())}close(){this.modalService.close()}static#t=this.\u0275fac=function(n){return new(n||s)(t.rXU(l.ze),t.rXU(d.il),t.rXU(a.mO))};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["aegisx-add-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(n,o){1&n&&(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 o.close}),t.EFF(10,"Zav\u0159\xedt"),t.k0s(),t.j41(11,"button",4),t.bIt("click",function(){return o.createTypeInfo()}),t.EFF(12,"Vytvo\u0159it"),t.k0s()()()),2&n&&(t.R7$(5),t.Y8G("formGroup",o.form),t.R7$(),t.Y8G("control",o.controls.language)("required",!0)("nullable",!1),t.R7$(),t.Y8G("control",o.controls.name),t.R7$(4),t.Y8G("disabled",o.isAddButtonDisabled()))},dependencies:[X.Q,l.qT,l.cb,l.j4,nt.N,ft.h,Tt.l,vt.J,Et.f,Ct.Q]})}return s})();var Lt=i(41819),Ut=i(62523),Gt=i(39103),_e=i(57864),xt=i(44010),De=i(52570);const Fe=s=>[s,"name"];function Re(s,c){if(1&s&&(t.j41(0,"h3"),t.EFF(1),t.k0s()),2&s){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.language)}}function Le(s,c){if(1&s&&(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&s){const e=t.XpG().$implicit;t.R7$(4),t.JRh(t.bMT(5,1,e.name))}}function Ue(s,c){if(1&s&&t.nrm(0,"mcrai-input",3),2&s){const e=t.XpG().$implicit,n=t.XpG(2);t.Y8G("control",n.form.get(t.eq3(2,Fe,e.language)))("errors",n.ERRORS.name)}}function Ge(s,c){if(1&s&&(t.j41(0,"mcrai-tab"),t.DNE(1,Re,2,1,"ng-template",2)(2,Le,6,3,"mcrai-dl")(3,Ue,1,4,"mcrai-input",3),t.k0s()),2&s){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 xe(s,c){if(1&s&&(t.j41(0,"mcrai-horizontal-tabs"),t.Z7z(1,Ge,4,2,"mcrai-tab",null,t.fX1),t.k0s()),2&s){const e=t.XpG();t.R7$(),t.Dyx(e.info)}}function Me(s,c){if(1&s){const e=t.RV6();t.j41(0,"button",6),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.patch())}),t.EFF(1,"Ulo\u017eit zm\u011bny "),t.k0s()}if(2&s){const e=t.XpG(2);t.Y8G("disabled",e.form.invalid)}}function Oe(s,c){if(1&s){const e=t.RV6();t.j41(0,"button",7),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.add())}),t.EFF(1,"P\u0159idat jazykovou mutaci "),t.k0s()}}function be(s,c){if(1&s&&(t.j41(0,"mcrai-panel-actions"),t.DNE(1,Me,2,1,"button",4)(2,Oe,2,0,"button",5),t.k0s()),2&s){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 je=(()=>{class s{get controls(){return this.form.controls}constructor(e,n,o,g){this.store=e,this.modalService=n,this.permissionService=o,this.toolbarService=g,this.ERRORS={name:{required:"Typ mus\xed m\xedt n\xe1zev"}},this.destroy=new st.B7,this.info=[],this.form=new l.J3({}),this.languages=[]}ngOnInit(){this.store.select(e=>e.aegisxTypes.type).pipe((0,H.Q)(this.destroy),(0,ve.p)(e=>!!e.info)).subscribe(e=>this.onTypeChange(e)),this.store.select(e=>e.sharedLCD.languages).pipe((0,H.Q)(this.destroy)).subscribe(e=>this.languages=e)}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}getInfoDiff(e,n){return n.filter(o=>-1===e.indexOf(o.language))}onTypeChange(e){this.info=e.info,this.type=e,this.updateForm(e.info),this.hydrateForm(e.info)}updateForm(e=[]){const n=Object.keys(this.form.value);this.getInfoDiff(n,e).forEach(g=>{const P=this.buildForm(g);this.form.addControl(g.language,P)})}buildForm(e){const n=new l.J3({});return Object.keys(e).forEach(o=>{["name"].indexOf(o)>=0?n.addControl(o,new l.hs(null,l.k0.required)):n.addControl(o,new l.hs)}),n}hydrateForm(e){e.forEach(n=>{const o=this.form.controls[n.language];o&&o.patchValue(n)})}showAddButton(){return this.info.length<this.languages.length}showActions(){return this.showAddButton()&&this.toolbarService.isViewMode()||!this.toolbarService.isViewMode()}add(){const e=new a.m_("600px","500px");this.modalService.open(Se,e)}patch(){const e=this.form.controls;Object.keys(e).forEach(n=>{e[n].dirty&&this.store.dispatch(new Ee({id:this.type.id,language:n,info:e[n].value}))})}static#t=this.\u0275fac=function(n){return new(n||s)(t.rXU(d.il),t.rXU(a.mO),t.rXU(lt.n),t.rXU(it.h))};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["aegisx-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(n,o){1&n&&(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,xe,3,0,"mcrai-horizontal-tabs"),t.k0s()(),t.DNE(7,be,3,2,"m
1crai-panel-actions"),t.k0s()),2&n&&(t.R7$(5),t.Y8G("formGroup",o.form),t.R7$(),t.vxM(6,o.info.length?6:-1),t.R7$(),t.vxM(7,o.permissionService.canWrite()&&o.showActions()?7:-1))},dependencies:[X.Q,l.qT,l.cb,l.j4,z.g,Q.l,ot.h,J.B,nt.N,Lt.p,Ut.L,Gt.Z,_e.y,xt.qv,xt.p$,De.s],styles:[".mcrai-tabs[_ngcontent-%COMP%]{background-color:#fff!important}"]})}return s})(),Ae=(()=>{class s{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||s)};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["aegisx-type-view"]],inputs:{type:"type"},decls:10,vars:1,consts:[["color","secondary"]],template:function(n,o){1&n&&(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")(5,"mcrai-dl")(6,"mcrai-dt"),t.EFF(7,"N\xe1zev"),t.k0s(),t.j41(8,"mcrai-dd"),t.EFF(9),t.k0s()()()()),2&n&&(t.R7$(9),t.JRh(null==o.type||null==o.type.info[0]?null:o.type.info[0].name))},dependencies:[z.g,Q.l,J.B,Lt.p,Ut.L,Gt.Z]})}return s})();function Ie(s,c){if(1&s){const e=t.RV6();t.j41(0,"mcrai-panel-actions")(1,"button",3),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.patchType())}),t.EFF(2,"Ulo\u017eit zm\u011bny "),t.k0s()()}}function Pe(s,c){if(1&s&&(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-type-view",1),t.k0s(),t.j41(10,"mcrai-col",2),t.nrm(11,"aegisx-type-languages"),t.k0s()()(),t.DNE(12,Ie,3,0,"mcrai-panel-actions"),t.k0s()()()),2&s){const e=t.XpG();t.R7$(5),t.JRh(null==e.type||null==e.type.info[0]?null:e.type.info[0].name),t.R7$(4),t.Y8G("type",e.type),t.R7$(3),t.vxM(12,e.toolbarService.isEditMode()?12:-1)}}const Ne=[{path:"",component:fe,canActivate:[mt.J]},{path:":type_id",component:(()=>{class s{constructor(e,n,o,g){this.store=e,this.activatedRoute=n,this.toolbarService=o,this.location=g,this.destroy=new st.B7,n.params.subscribe(P=>{this.store.dispatch(new S({id:P.type_id}))})}ngOnInit(){this.getLanguages(),this.selectType(),this.setToolbarModes()}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}setToolbarModes(){this.toolbarService.setToolbarModes([Z.H.View,Z.H.Edit,Z.H.Delete])}selectType(){this.store.select(e=>e.aegisxTypes.type).pipe((0,H.Q)(this.destroy)).subscribe(e=>this.type=e)}pickupPatchedType(e){this.patchedType=e}patchType(){this.patchedType.valid?this.store.dispatch(new j({type_id:this.type.id,body:this.patchedType.value})):console.error("patch type not valid",this.patchedType)}getLanguages(){this.store.dispatch(new Te.c8)}static#t=this.\u0275fac=function(n){return new(n||s)(t.rXU(d.il),t.rXU(u.nX),t.rXU(it.h),t.rXU(f.aZ))};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["aegisx-type-detail"]],decls:8,vars:1,consts:[["mcrai-button","neutral",3,"click"],[3,"type"],["flex-2",""],["mcrai-button","positive",3,"click"]],template:function(n,o){1&n&&(t.nrm(0,"aegisx-header"),t.j41(1,"mcrai-container")(2,"mcrai-row")(3,"mcrai-col")(4,"button",0),t.bIt("click",function(){return o.location.back()}),t.EFF(5,"Zp\xe1tky"),t.k0s()()(),t.DNE(6,Pe,13,3,"mcrai-row"),t.k0s(),t.nrm(7,"aegisx-toolbar")),2&n&&(t.R7$(6),t.vxM(6,o.type?6:-1))},dependencies:[St.I,_t.I,X.Q,z.g,Q.l,ot.h,J.B,rt.o,ct.g,Dt.H,je,Ae]})}return s})(),canActivate:[mt.J]}];let Ve=(()=>{class s{static#t=this.\u0275fac=function(n){return new(n||s)};static#e=this.\u0275mod=t.$C({type:s});static#s=this.\u0275inj=t.G2t({imports:[u.iI.forChild(Ne),u.iI]})}return s})();var $e=i(12906);let Mt=(()=>{class s extends $e.d{constructor(){super(...arguments),this.TYPES_URL="types"}getType(e){const n=this.buildUrl(`${this.TYPES_URL}/${e}`);return this.get(n)}getTypes(e,n=null){const o={page:e,...n},g=this.buildUrl(this.TYPES_URL,o,!0);return this.get(g)}createType(e){const n=this.buildUrl(this.TYPES_URL);return this.post(n,e)}patchType(e,n){const o=this.buildUrl(`${this.TYPES_URL}/${e}`);return this.patch(o,n)}postTypeInfo(e,n){const o=this.buildUrl([this.TYPES_URL,e,"info"]);return this.post(o,n)}patchTypeInfo(e,n,o){const g=this.buildUrl([this.TYPES_URL,e,"info",
1n]);return this.patch(g,o)}deleteTypes(e){const n={type_ids:e.reduce((g,P)=>(g.push(P.id),g),[])},o=this.buildUrl(this.TYPES_URL,n);return this.del(o)}static#t=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(s)))(o||s)}})();static#e=this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}return s})();var Y=i(14421),U=i(15539),Ot=i(57421),$=i(49090),k=i(95006),w=i(83921);let K=(()=>{class s{constructor(e,n,o,g,P,pt){this.actions=e,this.typeService=n,this.store=o,this.toastService=g,this.loaderService=P,this.modalService=pt}static#t=this.\u0275fac=function(n){return new(n||s)(t.KVO(p.En),t.KVO(Mt),t.KVO(d.il),t.KVO(a.FS),t.KVO(a.wA),t.KVO(a.mO))};static#e=this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}return s})();var W=i(76613);let He=(()=>{class s extends K{constructor(){super(...arguments),this.getTypes=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(B),(0,U.M)(()=>this.loaderService.show()),(0,Ot.E)(this.store),(0,$.n)(([e,n])=>this.typeService.getTypes(e.payload.page,n.aegisxTypes.filter).pipe((0,k.T)(o=>new at({types:o,append:e.payload.append})),(0,w.W)(o=>(0,Y.of)(new W.Rn(o))))))),this.getTypesSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(N),(0,U.M)(()=>{this.loaderService.hide()})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(s)))(o||s)}})();static#e=this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}return s})(),Xe=(()=>{class s extends K{constructor(){super(...arguments),this.createType=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(gt),(0,U.M)(()=>this.loaderService.show()),(0,$.n)(e=>this.typeService.createType(e.payload.item).pipe((0,k.T)(n=>new Vt(n)),(0,w.W)(n=>(0,Y.of)(new W.Rn(n))))))),this.createTypeSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(yt),(0,U.M)(e=>{this.toastService.makeToast(e.payload.message,a.Ck.Success)}),(0,$.n)(()=>[new m({page:1,append:!1})])))}static#t=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(s)))(o||s)}})();static#e=this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}return s})(),Ye=(()=>{class s extends K{constructor(){super(...arguments),this.deleteTypes=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(L),(0,U.M)(()=>this.loaderService.show()),(0,$.n)(e=>this.typeService.deleteTypes(e.payload.items).pipe((0,k.T)(n=>new V(n)),(0,w.W)(n=>(0,Y.of)(new W.Rn(n))))))),this.deleteTypesSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(v),(0,U.M)(e=>this.toastService.makeToast(e.payload.message,a.Ck.Success)),(0,$.n)(()=>[new m({page:1,append:!1})])))}static#t=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(s)))(o||s)}})();static#e=this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}return s})(),ke=(()=>{class s extends K{constructor(){super(...arguments),this.getType=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(r),(0,U.M)(()=>this.loaderService.show()),(0,$.n)(e=>this.typeService.getType(e.payload.id).pipe((0,k.T)(n=>new _(n)),(0,w.W)(n=>(0,Y.of)(new W.Rn(n))))))),this.getTypeSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(T),(0,U.M)(()=>{this.loaderService.hide()})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(s)))(o||s)}})();static#e=this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}return s})(),we=(()=>{class s extends K{constructor(){super(...arguments),this.patchType=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(F),(0,U.M)(()=>this.loaderService.show()),(0,$.n)(e=>this.typeService.patchType(e.payload.type_id,e.payload.body).pipe((0,k.T)(n=>new E(n)),(0,w.W)(n=>(0,Y.of)(new W.Rn(n))))))),this.patchTypeSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(b),(0,U.M)(e=>{this.loaderService.hide(),this.toastService.makeToast(e.payload.message,a.Ck.Success)})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(s)))(o||s)}})();static#e=this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}return s})();var Ke=i(291),We=i(73821),ze=i(50289),Qe=i(93578),Je=i(4903),Ze=i(18456);let qe=(()=>{class s extends K{constructor(){super(...arguments),this.patchTypeInfo=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(Ft),(0,U.M)(()=>this.loaderService.show()),(0,Ze.ZZ)(e=>this.typeService.patchTypeInfo(e.payload.id,e.payload.language,e.payload.info).pipe((0,k.T)(n=>new Ce(n)),(0,w.W)(n=>(0,Y.of)(new W.Rn(n))))))),this.patchTypeInfoSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(Rt),(0,U.M)(e=>{this.loaderService.hide(),this.toastService.makeToast(e.payload.message,a.Ck.Success)}
1),(0,$.n)(e=>[new S({id:e.payload.item.id})])))}static#t=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(s)))(o||s)}})();static#e=this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}return s})();var ts=i(55951);let es=(()=>{class s extends K{constructor(){super(...arguments),this.postTypeInfo=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(M),(0,U.M)(()=>this.loaderService.show()),(0,Ot.E)(this.store.select(e=>e.aegisxTypes.type)),(0,$.n)(([e,n])=>this.typeService.postTypeInfo(n.id,e.payload.info).pipe((0,k.T)(o=>new D(o)),(0,w.W)(o=>(0,Y.of)(new W.Rn(o))))))),this.postTypeInfoSuccess=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(y),(0,U.M)(e=>{this.loaderService.hide(),this.toastService.makeToast(e.payload.message,a.Ck.Success)})),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(s)))(o||s)}})();static#e=this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}return s})(),ss=(()=>{class s{static#t=this.\u0275fac=function(n){return new(n||s)};static#e=this.\u0275mod=t.$C({type:s});static#s=this.\u0275inj=t.G2t({providers:[Mt],imports:[f.MD,Ve,Ke.G,Qe.m,ze.G,We.c,l.X1,u.iI,Je.g,d.md.forFeature(q,Pt),p.Vm.forFeature([Xe,ke,He,we,qe,es,Ye]),a.pj,a.LU,a.B4,a.SD,a.Zg,a.xT,a.oP,a.Tm,a.F8,a.hv,ts.R]})}return s})()},68417:(O,C,i)=>{i.d(C,{$:()=>u});var f=i(54438);let u=(()=>{class l{transform(d,a){return d&&d.length>a?d.slice(0,a-3).concat("..."):d}static#t=this.\u0275fac=function(a){return new(a||l)};static#e=this.\u0275pipe=f.EJ8({name:"characterLimit",type:l,pure:!0})}return l})()},52570:(O,C,i)=>{i.d(C,{s:()=>u});var f=i(54438);let u=(()=>{class l{static#t=this.LET={ZERO:1,EMPTY_STR:2,FALSE:4,NAN:8};transform(d,a=0){return a&l.LET.ZERO&&0===d||a&l.LET.EMPTY_STR&&""===d||a&l.LET.FALSE&&!1===d||a&l.LET.NAN&&isNaN(d)?d:d||"-"}static#e=this.\u0275fac=function(a){return new(a||l)};static#s=this.\u0275pipe=f.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.