PageSourceSearch

https://szerzi.hu/1624.eb217d70f3aab940.js

js szerzi.hu collected 2026-10-04 13:26:16 UTC 57,780 bytes, 54 lines download raw bytes

1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[1624],{47002:(Ne,Q,l)=>{l.r(Q),l.d(Q,{AdministratorModule:()=>At});var $=l(45935),v=l(24006),m=l(95126),D=l(18561),G=l(30144),K=l(5037),A=l(44569),y=l(97582),n=l(26906),h=l(44224),q=l(6947),Y=l(93710),e=l(94650),ee=l(87341),V=l(29562),te=l(39889),F=l(50211),R=l(49651),C=l(36895),w=l(59166),ne=l(26079),B=l(66616),b=l(47044),W=l(21811),ie=l(4788),U=l(73325),S=l(47423),z=l(35635),H=l(27830),j=l(37570),oe=l(80433),N=l(32925);function J(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"i",42),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.navToggler())}),e.qZA()}}function ae(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"i",43),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.navToggler())}),e.qZA()}}function le(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"i",44),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.clearSearch())}),e.qZA()}}function se(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"button",45),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.changeView())}),e.ALo(1,"translate"),e._UZ(2,"i",46),e.qZA()}2&o&&e.Q6J("nzTooltipTitle",e.lcZ(1,1,"ADMIN.GENERATOR.VIEW.LIST"))}function re(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"button",45),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.changeView())}),e.ALo(1,"translate"),e._UZ(2,"i",47),e.qZA()}2&o&&e.Q6J("nzTooltipTitle",e.lcZ(1,1,"ADMIN.GENERATOR.VIEW.COLUMN"))}function ce(o,i){if(1&o&&e._UZ(0,"nz-empty",48),2&o){e.oxw();const t=e.MAs(61);e.Q6J("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",t)}}function pe(o,i){1&o&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ADMIN.GENERATOR.NO_FILES")," "))}function ge(o,i){if(1&o&&e._UZ(0,"i",61),2&o){const t=e.oxw(3);e.Q6J("twoToneColor",t.colorRed)}}function M(o,i){if(1&o&&e._UZ(0,"i",62),2&o){const t=e.oxw(3);e.Q6J("twoToneColor",t.colorBlue)}}function g(o,i){if(1&o&&e._UZ(0,"i",63),2&o){const t=e.oxw(3);e.Q6J("twoToneColor",t.colorCyan)}}function _(o,i){if(1&o&&e._UZ(0,"i",64),2&o){const t=e.oxw(3);e.Q6J("twoToneColor",t.colorVolcano)}}function p(o,i){if(1&o&&e._UZ(0,"i",65),2&o){const t=e.oxw(3);e.Q6J("twoToneColor",t.colorPurple)}}function T(o,i){if(1&o&&e._UZ(0,"img",66),2&o){const t=e.oxw(2).$implicit;e.Q6J("src",t.url,e.LSH)}}const L=function(o){return{active:o}};function _e(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",50),e.NdJ("click",function(){e.CHM(t);const s=e.oxw().$implicit,r=e.oxw();return e.KtG(r.selectFile(s.ID))})("dblclick",function(){e.CHM(t);const s=e.oxw().$implicit,r=e.oxw();return e.KtG(r.openFile(s.ID))})("contextmenu",function(s){e.CHM(t);const r=e.oxw().$implicit,d=e.oxw(),f=e.MAs(43);return e.KtG(d.contextMenu(s,f,r.ID))}),e.TgZ(1,"div",51),e.YNc(2,ge,1,1,"i",52),e.YNc(3,M,1,1,"i",53),e.YNc(4,g,1,1,"i",54),e.YNc(5,_,1,1,"i",55),e.YNc(6,p,1,1,"i",56),e.YNc(7,T,1,1,"img",57),e.qZA(),e.TgZ(8,"div",58)(9,"h6",59),e._uU(10),e.qZA(),e.TgZ(11,"span",60),e._uU(12),e.qZA()()()}if(2&o){const t=e.oxw().$implicit,a=e.oxw();e.Q6J("ngClass",e.VKq(9,L,a.selectedFile==t.ID)),e.xp6(2),e.Q6J("ngIf","pdf"==t.type),e.xp6(1),e.Q6J("ngIf","doc"==t.type),e.xp6(1),e.Q6J("ngIf","xls"==t.type),e.xp6(1),e.Q6J("ngIf","ppt"==t.type),e.xp6(1),e.Q6J("ngIf","txt"==t.type),e.xp6(1),e.Q6J("ngIf","image"==t.type),e.xp6(3),e.Oqu(t.name),e.xp6(2),e.Oqu(t.size)}}function de(o,i){if(1&o&&(e.ynx(0),e.YNc(1,_e,13,11,"div",49),e.BQk()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","folder"!==t.type)}}function me(o,i){if(1&o&&e._UZ(0,"i",86),2&o){const t=e.oxw(4);e.Q6J("twoToneColor",t.colorGold)}}function ue(o,i){if(1&o&&e._UZ(0,"i",61),2&o){const t=e.oxw(4);e.Q6J("twoToneColor",t.colorRed)}}function he(o,i){if(1&o&&e._UZ(0,"i",62),2&o){const t=e.oxw(4);e.Q6J("twoToneColor",t.colorBlue)}}function Ee(o,i){if(1&o&&e._UZ(0,"i",63),2&o){const t=e.oxw(4);e.Q6J("twoToneColor",t.colorCyan)}}function xe(o,i){if(1&o&&e._UZ(0,"i",64),2&o){const t=e.oxw(4);e.Q6J("twoToneColor",t.colorVolcano)}}function Oe(o,i){if(1&o&&e._UZ(0,"i",65),2&o){const t=e.oxw(4);e.Q6J("twoToneColor",t.colorPurple)}}function De(o,i){if(1&o&&(e.TgZ(0,"div",84),e.YNc(1,me,1,1,"i",85),e.YNc(2,ue,1,1,"i",52),e.YNc(3,he,1,1,"i",53),e.YNc(4,Ee,1,1,"i",54),e.YNc(5,xe,1,1,"i",55),e.YNc(6,Oe,1,1,"i",56),e.qZA()),2&o){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngIf","folder"==t.type),e.xp6(1),e.Q6J("ngIf","pdf"==t.type),e.xp6(1),e.Q6J("ngIf","doc"==t.type),e.xp6(1),e.Q6J("ngIf","xls"==t.type),e.xp6(1),e.Q6J("ngIf","ppt"==t.type),e.xp6(1),e.Q6J("ngIf","txt"==t.type)}}function Se(o,i){if(1&o&&e._UZ(0,"img",87),2&o){const t=e.oxw(2).$implicit;e.Q6J("src",t.url,e.LSH)}}function Le(o,i){if(1&o&&e._UZ(0,"app-tabset-tutorial",88),2&o){const t=e.oxw(3);e.Q6J("tabsetTutorialDirective",t.tabsetTutorialDirective)("safekeepingStorageKey","understandTabsetTooltip")}}function Ze(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"div",68)(2,"h5",69),e._uU(3),e.qZA(),e.TgZ(4,"button",70),e.NdJ("click",function(){e.CHM(t);const s=e.oxw().$implicit,r=e.oxw();return e.KtG(r.openFile(s.ID))}),e._UZ(5,"i",33),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",71)(10,"button",72),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.closeContentDetails())}),e._UZ(11,"i",73),e.qZA()()(),e.TgZ(12,"div",74),e.YNc(13,De,7,6,"div",75),e.YNc(14,Se,1,1,"img",76),e.qZA(),e.YNc(15,Le,1,2,"ng-template",null,77,e.W1O),e.TgZ(17,"nz-tabset",78)(18,"nz-tab",79),e.ALo(19,"translate"),e.TgZ(20,"div",80)(21,"dl",81)(22,"dt",82),e._uU(23),e.ALo(24,"translate"),e.qZA(),e.TgZ(25,"dd",83),e._uU(26),e.qZA()(),e.TgZ(27,"dl",81)(28,"dt",82),e._uU(29),e.ALo(30,"translate"),e.qZA(),e.TgZ(31,"dd",83),e._uU(32),e.qZA()(),e.TgZ(33,"dl",81)(34,"dt",82),e._uU(35),e.ALo(36,"translate"),e.qZA(),e.TgZ(37,"dd",83),e._uU(38),e.qZA()(),e.TgZ(39,"dl",81)(40,"dt",82),e._uU(41),e.ALo(42,"translate"),e.qZA(),e.TgZ(43,"dd",83),e._uU(44),e.qZA()()()()()()}if(2&o){const t=e.MAs(16),a=e.oxw().$implicit;e.xp6(3),e.Oqu(a.name),e.xp6(4),e.hij(" ",e.lcZ(8,17,"ADMIN.GENERATOR.CONTRACT.OPEN")," "),e.xp6(6),e.Q6J("ngIf","image"!==a.type),e.xp6(1),e.Q6J("ngIf","image"==a.type),e.xp6(3),e.Q6J("nzTooltipTitle",t)("nzTooltipTrigger",null)("nzTooltipPlacement","bottomRight")("safekeepingStorageKey","understandTabsetTooltip"),e.xp6(1),e.Q6J("nzTitle",e.lcZ(19,19,"ADMIN.GENERATOR.CONTRACT.DETAILS")),e.xp6(
15),e.hij("",e.lcZ(24,21,"ADMIN.GENERATOR.CONTRACT.CREATED"),":"),e.xp6(3),e.Oqu(a.date),e.xp6(3),e.hij("",e.lcZ(30,23,"ADMIN.GENERATOR.CONTRACT.VERSION"),":"),e.xp6(3),e.Oqu(a.version),e.xp6(3),e.hij("",e.lcZ(36,25,"ADMIN.GENERATOR.CONTRACT.REVISION"),":"),e.xp6(3),e.Oqu(a.revision),e.xp6(3),e.hij("",e.lcZ(42,27,"ADMIN.GENERATOR.CONTRACT.LEGIST"),":"),e.xp6(3),e.Oqu(a.legist.version)}}function Pe(o,i){if(1&o&&(e.ynx(0),e.YNc(1,Ze,45,29,"div",67),e.BQk()),2&o){const t=i.$implicit,a=e.oxw();e.xp6(1),e.Q6J("ngIf",a.selectedFile==t.ID)}}function ye(o,i){1&o&&(e.TgZ(0,"div",89)(1,"div",90),e._UZ(2,"img",91),e.TgZ(3,"p",92),e._uU(4),e.ALo(5,"translate"),e.qZA()()()),2&o&&(e.xp6(4),e.hij(" ",e.lcZ(5,1,"ADMIN.GENERATOR.SELECT_TO_SEE_DETAILS")," "))}const Fe=function(o){return{"nav-open":o}},Ce=function(o){return{"list-view":o}},Re=function(o){return{"details-open":o}};let E=class{constructor(i,t,a,s,r){this.colorConfig=i,this.nzContextMenuService=t,this.routerService=a,this.clientService=s,this.messageService=r,this.themeColors=this.colorConfig.get().colors,this.selectedFile="",this.listView=!1,this.isDetailsOpen=!1,this.isNavOpen=!1,this.fileFilterString="",this.filteredFileList=[],this.stateString="",this.colorRed=this.themeColors.red,this.colorBlue=this.themeColors.blue,this.colorCyan=this.themeColors.cyan,this.colorGold=this.themeColors.gold,this.colorVolcano=this.themeColors.volcano,this.colorPurple=this.themeColors.purple,this.StorageKeys=q.B,this.importContractFromFile=d=>{const f=new FileReader;
1return f.readAsDataURL(d),f.onload=()=>{const I=f.result.split(",");try{const X=decodeURIComponent(escape(atob(I[I.length-1])));d.name.endsWith(".yaml")?this.importYamlString(X):this.importJsonString(X)}catch(X){this.messageService.error(X)}},!0}}ngOnInit(){this.getContractList()}changeView(){this.listView=!this.listView}contextMenu(i,t,a){this.nzContextMenuService.create(i,t),this.selectedFile=a,this.isDetailsOpen=!0}selectFile(i){this.selectedFile=i,this.isDetailsOpen=!0}unselectFile(){this.selectedFile=""}close(){this.nzContextMenuService.close()}closeContentDetails(){this.isDetailsOpen=!1}navToggler(){this.isNavOpen=!this.isNavOpen}createContract(){this.routerService.routeToTemplater()}getContractList(){this.clientService.getContractTemplateList().pipe((0,h.t)(this)).subscribe(i=>{const t=i.map(a=>({name:a.name,type:"pdf",date:new Date(a.created).toLocaleString(),ID:a.ID,revision:a.revision,version:a.version,legist:a.legist})).sort((a,s)=>{let r=a.name.localeCompare(s.name,void 0,{numeric:!0,sensitivity:"base"});if(0===r){const d=a.version.split("."),f=s.version.split(".");let I=0;for(;I<2&&d[I]===f[I];)I++;r=d[I]===f[I]?0:d[I]>f[I]?-1:1}return r});this.files=t,this.filteredFileList=this.files},i=>{})}removeContract(){this.clientService.deleteContractTemplate(this.selectedFile).pipe((0,h.t)(this)).subscribe(i=>{this.getContractList()},i=>{console.log(i),this.getContractList()})}openFile(i){null==i&&(i=this.selectedFile),this.routerService.routeToTemplaterOpenContract(i)}filterFileList(){this.files&&(this.filteredFileList=this.files.filter(i=>i.name.toLowerCase().includes(this.fileFilterString.toLowerCase())))}clearSearch(){this.fileFilterString="",this.filterFileList()}importContractFromTextArea(){try{this.importYamlString(this.stateString)}catch(i){this.messageService.error(i)}}importJsonString(i){const t=JSON.parse(i);this.clientService.postGenerateContract(t.name,t.version,t.content,t.variables,t.legist).pipe((0,h.t)(this)).subscribe(a=>{this.routerService.routeToTemplaterOpenContract(a.generatorID)},a=>{409===a.status&&a.msg.isDuplicate?this.updateExisintContract(a.msg.generatorID,t.content,t.variables,t.name,t.version):this.routerService.routeToTemplaterWithState({state:t})})}importYamlString(i){const t=(0,n.zD)(i);this.clientService.postGenerateContract(t.name,t.version,t.content,t.variables,t.legist).pipe((0,h.t)(this)).subscribe(a=>{this.routerService.routeToTemplaterOpenContract(a.generatorID)},a=>{409===a.status&&a.msg.isDuplicate?this.updateExisintContract(a.msg.generatorID,t.content,t.variables,t.name,t.version):this.routerService.routeToTemplaterWithState({state:t})})}updateExisintContract(i,t,a,s,r){this.clientService.patchSaveContract(i,t,a,s,r).pipe((0,h.t)(this)).subscribe(d=>{this.routerService.routeToTemplaterOpenContract(i)},d=>{console.log("error while saving"),console.log(d)})}};E.\u0275fac=function(i){return new(i||E)(e.Y36(ee.w),e.Y36(V.Iw),e.Y36(te.c),e.Y36(F.y),e.Y36(R.dD))},E.\u0275cmp=e.Xpm({type:E,selectors:[["ng-component"]],viewQuery:function(i,t){if(1&i&&e.Gf(Y.v,5),2&i){let a;e.iGM(a=e.CRH())&&(t.tabsetTutorialDirective=a.first)}},decls:67,vars:48,consts:[[1,"file-manager-wrapper"],[1,"file-manager-nav",3,"ngClass"],[1,"d-flex","flex-column","justify-content-between","h-100"],[1,"m-b-30","m-h-25"],[1,"m-t-15"],["nz-button","","nzType","default","nzBlock","",3,"click"],["nz-icon","","nzType","upload","theme","outline"],[1,"m-l-5"],["nz-button","","nzType","default","nzBlock","",1,"importButton"],[3,"nzBeforeUpload"],["nz-icon","","nzType","upload","theme","outline",1,"importButtonText"],[1,"m-l-5","importButtonText"],["nz-input","","rows","10","trim","blur",3,"placeholder","ngModel","ngModelChange"],["nz-button","","nzType","default","nzBlock","",1,"importButton",3,"click"],[1,"file-manager-content"],[1,"file-manager-content-header"],[1,"file-manager-search"],["nz-icon","","nzType","menu-fold","theme","outline","class","toggle-icon",3,"click",4,"ngIf"],["nz-icon","","nzType","menu-unfold","theme","outline","class","toggle-icon",3,"click",4,"ngIf"],["nz-icon","","nzType","search","theme","outline",1,"search-icon"],[3,"placeholder","ngModel","ngModelChange"],["nz-icon","","nzType","close-circle","class","clear-icon search-remove-text-icon",3,"click",4,"ngIf"],[1,"file-manager-tools"],[1,"list-inline","m-b-0"],[1,"list-inline-item"],["nz-button","","nzType","link","class","text-dark link-like-button","nz-tooltip","","nzTooltipPlacement","bottom",3,"nzTooltipTitle","click",4,"ngIf"],[1,"file-manager-content-body"],[1,"file-manager-content-files"],[1,"unselect-bg",3,"click"],[1,"file-wrapper","m-t-20",3,"ngClass"],["contextDropdownTpl","nzDropdownMenu"],["nz-menu","","nzInDropDown","",3,"nzClick"],["nz-menu-item","",3,"click"],["nz-icon","","nzType","folder-open","theme","outline"],["nz-menu-divider",""],["nz-icon","","nzType","delete","theme","outline"],[1,"relative"],["style","margin-top: 3rem",3,"nzNotFoundImage","nzNotFoundContent",4,"ngIf"],["noNotifications",""],[4,"ngFor","ngForOf"],[1,"file-manager-content-details",3,"ngClass"],["class","content-details-no-data",4,"ngIf"],["nz-icon","","nzType","menu-fold","theme","outline",1,"toggle-icon",3,"click"],["nz-icon","","nzType","menu-unfold","theme","outline",1,"toggle-icon",3,"click"],["nz-icon","","nzType","close-circle",1,"clear-icon","search-remove-text-icon",3,"click"],["nz-button","","nzType","link","nz-tooltip","","nzTooltipPlacement","bottom",1,"text-dark","link-like-button",3,"nzTooltipTitle","click"],["nz-icon","","nzType","bars","theme","outline",2,"font-size","18px"],["nz-icon","","nzType","appstore","theme","outline",2,"font-size","18px"],[2,"margin-top","3rem",3,"nzNotFoundImage","nzNotFoundContent"],["class","file vertical",3,"ngClass","click","dblclick","contextmenu",4,"ngIf"],[1,"file","vertical",3,"ngClass","click","dblclick","contextmenu"],[1,"font-size-40"],["nz-icon","","nzType","file-pdf","theme","twotone",3,"twoToneColor",4,"ngIf"],["nz-icon","","nzType","file-word","theme","twotone",3,"twoToneColor",4,"ngIf"],["nz-icon","","nzType","file-excel","theme","twotone",3,"twoToneColor",4,"ngIf"],["nz-icon","","nzType","file-ppt","theme","twotone",3,"twoToneColor",4,"ngIf"],["nz-icon","","nzType","file-text","theme","twotone",3,"twoToneColor",4,"ngIf"],["alt","File icon",3,"src",4,"ngIf"],[1,"m-t-10"],[1,"mb-0"],[1,"font-size-13","text-muted"],["nz-icon","","nzType","file-pdf","theme","twotone",3,"twoToneColor"],["nz-icon","","nzType","file-word","theme","twotone",3,"twoToneColor"],["nz-icon","","nzType","file-excel","theme","twotone",3,"twoToneColor"],["nz-icon","","nzType","file-ppt","theme","twotone",3,"twoToneColor"],["nz-icon","","nzType","file-text","theme","twotone",3,"twoToneColor"],["alt","File icon",3,"src"],[4,"ngIf"],[1,"p-h-25","p-v-15","d-flex","justify-content-between","align-items-center","border-bottom"],[1,"m-b-0"],["nz-button","","nzType","default",3,"click"],[1,"content-details-close"],[1,"text-dark",3,"click"],["nz-icon","","nzType","right-circle","theme","outline"],[1,"m-b-10"],["class","d-flex justify-content-around display-3 align-items-center content-details-file",4,"ngIf"],["class","img-fluid","alt","File icon",3,"src",4,"ngIf"],["tutorialTitle",""],["nz-tooltip","","tabsetTutorial","",3,"nzTooltipTitle","nzTooltipTrigger","nzTooltipPlacement","safekeepingStorageKey"],[3,"nzTitle"],[1,"p-h-25","p-v-15"],[1,"row","m-b-10"],[1,"col-5","text-dark"],[1,"col-7"],[1,"d-flex","justify-content-around","display-3","align-items-center","content-details-file"],["nz-icon","","nzType","folder-open","theme","twotone",3,"twoToneColor",4,"ngIf"],["nz-icon","","nzType","folder-open","theme","twotone",3,"twoToneColor"],["alt","File icon",1,"img-fluid",3,"src"],[3,"tabsetTutorialDirective","safekeepingStorageKey"],[1,"content-details-no-data"],[1,"text-center"],["src","assets/images/others/file-manager.webp","alt","File manager icon",1,"img-fluid","opacity-04"],[1,"text-muted","m-t-20","m-l-5","m-r-5"]],template:function(i,t){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"button",5),e.NdJ("click",function(){return t.createContract()}),e._UZ(6,"i",6),e.TgZ(7,"span",7),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"button",8)(11,"nz-upload",9),e._UZ(12,"i",10),e.TgZ(13,"span",11),e._uU(14),e.ALo(15,"translate"),e.qZA()()(),e.TgZ(16,"textarea",12),e.NdJ("ngModelChange",function(s){return t.stateString=s}),e.ALo(17,"translate"),e.qZA(),e.TgZ(18,"button",13),e.NdJ("click",function(){return t.importContractFromTextArea()}),e.TgZ(19,"div"),e._UZ(20,"i",6),e.TgZ(21,"span",7),e._uU(22),e.ALo(23,"translate"),e.qZA()()()()()()(),e.TgZ(24,"div",14)(25,"div",15)(26,"div",16),e.YNc(27,J,1,0,"i",17),e.YNc(28,ae,1,0,"i",18),e._UZ(29,"i",19),e.TgZ(30,"input",20),e.NdJ("ngModelChange",function(s){return t.fileFilterString=s})("ngModelChange",function(){return t.filterFileList()}),e.ALo(31,"translate"),e.qZA(),e.YNc(32,le,1,0,"i",21),e.qZA(),e.TgZ(33,"div",22)(34,"ul",23)(35,"li",24),e.YNc(36,se,3,3,"button",25),e.YNc(37,re,3,3,"button",25),e.qZA()()()(),e.TgZ(38,"div",26)(39,"div",27)(40,"div",28),e.NdJ("click",function(){return t.unselectFile()}),e.qZA(),e.TgZ(41,"div",29)(42,"nz-dropdown-menu",null,30)(44,"ul",31),e.NdJ("nzClick",function(){return t.close()}),e.TgZ(45,"li",32),e.NdJ("click",function(){return t.openFile()}),e._UZ(46,"i",33),e.TgZ(47,"span",7),e._uU(48),e.ALo(49,"translate"),e.qZA()(),e._UZ(50,"li",34),e.TgZ(51,"li",32),e.NdJ("click",function(){return t.removeContract()}),e._UZ(52,"i",35),e.TgZ(53,"span",7),e._uU(54),e.ALo(55,"translate"),e.qZA()()()()(),e.TgZ(56,"h5",36),e._uU(57),e.ALo(58,"translate"),e.qZA(),e.YNc(59,ce,1,2,"nz-empty",37),e.YNc(60,pe,3,3,"ng-template",null,38,e.W1O),e.TgZ(62,"div",29),e.YNc(63,de,2,1,"ng-container",39),e.qZA()(),e.TgZ(64,"div",40),e.YNc(65,Pe,2,1,"ng-container",39),e.YNc(66,ye,6,3,"div",41),e.qZA()()()()),2&i&&(e.xp6(1),e.Q6J("ngClass",e.VKq(40,Fe,t.isNavOpen)),e.xp6(7),e.hij(" ",e.lcZ(9,24,"ADMIN.GENERATOR.CREATE_CONTRACT")," "),e.xp6(3),e.Q6J("nzBeforeUpload",t.importContractFromFile),e.xp6(3),e.hij(" ",e.lcZ(15,26,"ADMIN.GENERATOR.IMPORT_CONTRACT_FILE")," "),e.xp6(2),e.Q6J("placeholder",e.lcZ(17,28,"ADMIN.GENERATOR.STATE_IN_YAML"))("ngModel",t.stateString),e.xp6(6),e.hij(" ",e.lcZ(23,30,"ADMIN.GENERATOR.IMPORT_CONTRACT_TEXT")," "),e.xp6(5),e.Q6J("ngIf",t.isNavOpen),e.xp6(1),e.Q6J("ngIf",!t.isNavOpen),e.xp6(2),e.Q6J("placeholder",e.lcZ(31,32,"COMMON.SEARCH")+"...")("ngModel",t.fileFilterString),e.xp6(2),e.Q6J("ngIf",""!==t.fileFilterString),e.xp6(4),e.Q6J("ngIf",!t.listView),e.xp6(1),e.Q6J("ngIf",t.listView),e.xp6(4),e.Q6J("ngClass",e.VKq(42,Ce,t.listView)),e.xp6(7),e.Oqu(e.l
1cZ(49,34,"ADMIN.GENERATOR.CONTRACT.OPEN")),e.xp6(6),e.Oqu(e.lcZ(55,36,"ADMIN.GENERATOR.CONTRACT.REMOVE")),e.xp6(3),e.Oqu(e.lcZ(58,38,"ADMIN.GENERATOR.FILES")),e.xp6(2),e.Q6J("ngIf",0===t.filteredFileList.length),e.xp6(3),e.Q6J("ngClass",e.VKq(44,Ce,t.listView)),e.xp6(1),e.Q6J("ngForOf",t.filteredFileList),e.xp6(1),e.Q6J("ngClass",e.VKq(46,Re,t.isDetailsOpen)),e.xp6(1),e.Q6J("ngForOf",t.filteredFileList),e.xp6(1),e.Q6J("ngIf",""==t.selectedFile))},dependencies:[v.Fj,v.JJ,v.On,C.mk,C.sg,C.O5,w.P,ne.p,Y.v,B.ix,b.w,W.dQ,ie.p9,U.wO,U.r9,U.YV,V.RR,S.Ls,z.Zp,H.xH,H.xw,j.SY,oe.FY,N.X$],styles:['@charset "UTF-8";.brand-success[_ngcontent-%COMP%]{color:#92ddea!important}.brand-failure[_ngcontent-%COMP%]{color:#9579d1!important}.brand-red[_ngcontent-%COMP%]{color:#de4436!important}.brand-success-bg-border[_ngcontent-%COMP%]{background-color:#92ddea!important;border-color:#92ddea!important;color:#fff!important}.brand-failure-bg-border[_ngcontent-%COMP%]{background-color:#ffa5d8!important;border-color:#ffa5d8!important;color:#fff!important}.file[_ngcontent-%COMP%]{position:relative}.importButton[_ngcontent-%COMP%]{height:auto}.importButtonText[_ngcontent-%COMP%]{color:#9579d1}.importButtonText[_ngcontent-%COMP%]:hover{color:#fff}']}),E=(0,y.gn)([(0,h.c)()],E);var we=l(15681),ve=l(45218),Ae=l(29971),be=l(63693),Ue=l(64906),c=l(71997),u=l(36057),Ie=l(43559),Je=l(32076),ke=l(24351),k=l(92961),Qe=l(52835),Ge=l(94712),Te=l(834),fe=l(48521),Z=l(40269);function Ke(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"nz-year-picker",14),e.NdJ("ngModelChange",function(s){e.CHM(t);const r=e.oxw();return e.KtG(r.onChange(r.datePicker,s))})("ngModelChange",function(s){e.CHM(t);const r=e.oxw();return e.KtG(r.defaultDatePickerValue=s)}),e.ALo(1,"translate"),e.qZA()}if(2&o){const t=e.oxw();e.Q6J("nzAllowClear",!1)("nzPlaceHolder",e.lcZ(1,3,"ADMIN.INVOICES.SELECT.YEAR"))("ngModel",t.defaultDatePickerValue)}}function Ye(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"nz-month-picker",14),e.NdJ("ngModelChange",function(s){e.CHM(t);const r=e.oxw();return e.KtG(r.onChange(r.datePicker,s))})("ngModelChange",function(s){e.CHM(t);const r=e.oxw();return e.KtG(r.defaultDatePickerValue=s)}),e.ALo(1,"translate"),e.qZA()}if(2&o){const t=e.oxw();e.Q6J("nzAllowClear",!1)("nzPlaceHolder",e.lcZ(1,3,"ADMIN.INVOICES.SELECT.MONTH"))("ngModel",t.defaultDatePickerValue)}}function Ve(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"nz-date-picker",14),e.NdJ("ngModelChange",function(s){e.CHM(t);const r=e.oxw();return e.KtG(r.onChange(r.datePicker,s))})("ngModelChange",function(s){e.CHM(t);const r=e.oxw();return e.KtG(r.defaultDatePickerValue=s)}),e.ALo(1,"translate"),e.qZA()}if(2&o){const t=e.oxw();e.Q6J("nzAllowClear",!1)("nzPlaceHolder",e.lcZ(1,3,"ADMIN.INVOICES.SELECT.DAY"))("ngModel",t.defaultDatePickerValue)}}function Be(o,i){1&o&&(e.TgZ(0,"p",17),e._UZ(1,"i",18),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&o&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"CLIENT.PROFILE.INVOICES.INVOICE.IN_PROGRESS")," "))}function We(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"app-multi-state-button",19),e.NdJ("click",function(){e.CHM(t);const s=e.oxw().$implicit,r=e.oxw();return e.KtG(r.runDownload(s.ID))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&o){const t=e.oxw().$implicit,a=e.oxw();e.Q6J("defaultIcon","download")("runFunction",a.runFunctionMap.has(t.ID)?a.runFunctionMap.get(t.ID):null)("stickResult",!0)("nzTextKeys",a.downloadText)("showAsLink",!0),e.xp6(1),e.hij(" ",e.lcZ(2,6,"COMMON.DOWNLOAD")," ")}}function He(o,i){if(1&o&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.ALo(5,"date"),e.qZA(),e.TgZ(6,"td"),e.YNc(7,Be,4,3,"p",15),e.YNc(8,We,3,8,"app-multi-state-button",16),e.qZA()()),2&o){const t=i.$implicit;e.xp6(2),e.Oqu(t.ID),e.xp6(2),e.Oqu(e.xi3(5,4,t.date,"yyyy-MM-dd")),e.xp6(3),e.Q6J("ngIf",!t.ready),e.xp6(1),e.Q6J("ngIf",t.ready)}}let x=class{constructor(i,t,a,s){this.clientService=i,this.nzMessageService=t,this.translate=a,this.reloadService=s,this.reloadInvoicesObject=new Ie.m,this.invoiceId=null,this.isLoading=!0,this.isOpen=!1,this.datePicker=null,this.datePickerType=c.Nxg,this.currentDatePickerType=null,this.defaultDatePickerValue=new Date,this.pageIndex=1,this.pagingInvoiceId=null,this.dropDownValues=[10,20,50,100],this.previousStepperState=c.NzX.FIRST,this.previousInvoiceId=null,this.downloadText=new k.PR("ADMIN.INVOICES.DOWNLOAD.BUTTON_STATES.DOWNLOAD","ADMIN.INVOICES.DOWNLOAD.BUTTON_STATES.DOWNLOADING","ADMIN.INVOICES.DOWNLOAD.BUTTON_STATES.DOWNLOADED","ADMIN.INVOICES.DOWNLOAD.BUTTON_STATES.FAILED"),this.downloadAllText=new k.PR("ADMIN.INVOICES.DOWNLOAD.BUTTON_STATES.DOWNLOAD_ALL","ADMIN.INVOICES.DOWNLOAD.BUTTON_STATES.DOWNLOADING_ALL","ADMIN.INVOICES.DOWNLOAD.BUTTON_STATES.DOWNLOADED_ALL","ADMIN.INVOICES.DOWNLOAD.BUTTON_STATES.FAILED_ALL"),this.runFunctionMap=new Map}ngOnInit(){this.limit=this.dropDownValues[0],this.createInvoiceRequest
1(c.NzX.FIRST,!1,null,null),this.getInvoiceList(u.Ml.DATEPICKER)}getCurrentInvoiceList(){const i=this.getCurrentDatePickerType(this.currentDatePickerType),t=c.$RW.toDayDate(this.defaultDatePickerValue);this.previousStepperState===c.NzX.FIRST?(this.createInvoiceRequest(c.NzX.FIRST,!1,i,t,!0),this.getInvoiceList(u.Ml.DATEPICKER,!1)):this.previousStepperState===c.NzX.PREVIOUS?(this.createInvoiceRequest(c.NzX.PREVIOUS,!0,i,t,!0),this.getInvoiceList(u.Ml.DATEPICKER,!1)):this.previousStepperState===c.NzX.NEXT?(this.createInvoiceRequest(c.NzX.NEXT,!0,i,t,!0),this.getInvoiceList(u.Ml.DATEPICKER,!1)):this.previousStepperState===c.NzX.LAST&&(this.createInvoiceRequest(c.NzX.LAST,!1,i,t,!0),this.getInvoiceList(u.Ml.DATEPICKER,!1))}onPageChange(i){i===c.GV4.First&&this.pagingInvoiceId?(this.previousStepperState=c.NzX.FIRST,this.createInvoiceRequest(c.NzX.FIRST,!0,this.getCurrentDatePickerType(this.currentDatePickerType),c.$RW.toDayDate(this.defaultDatePickerValue)),this.getInvoiceList(u.Ml.PAGINATION)):i===c.GV4.Previous?(this.pagingInvoiceId=this.invoices.length>0?this.invoices[0].ID:null,this.previousInvoiceId=this.pagingInvoiceId,this.previousStepperState=c.NzX.PREVIOUS,this.pagingInvoiceId&&(this.createInvoiceRequest(c.NzX.PREVIOUS,!0,this.getCurrentDatePickerType(this.currentDatePickerType),c.$RW.toDayDate(this.defaultDatePickerValue)),this.getInvoiceList(u.Ml.PAGINATION))):i===c.GV4.Next&&this.pagingInvoiceId?(this.pagingInvoiceId=this.invoices[this.invoices.length-1].ID,this.previousInvoiceId=this.pagingInvoiceId,this.previousStepperState=c.NzX.NEXT,this.createInvoiceRequest(c.NzX.NEXT,!0,this.getCurrentDatePickerType(this.currentDatePickerType),c.$RW.toDayDate(this.defaultDatePickerValue)),this.getInvoiceList(u.Ml.PAGINATION)):i===c.GV4.Last&&this.pagingInvoiceId&&(this.previousStepperState=c.NzX.LAST,this.createInvoiceRequest(c.NzX.LAST,!0,this.getCurrentDatePickerType(this.currentDatePickerType),c.$RW.toDayDate(this.defaultDatePickerValue)),this.getInvoiceList(u.Ml.PAGINATION))}startReload(){this.invoices.find(t=>!t.ready)?(this.reloadService.stopReload(this.reloadInvoicesObject),this.reloadService.startReload(()=>this.getCurrentInvoiceList(),this.reloadInvoicesObject)):this.reloadService.stopReload(this.reloadInvoicesObject)}getCurrentDatePickerType(i){return i===c.Nxg.Year?c.LjH.YEAR:i===c.Nxg.Month?c.LjH.MONTH:i===c.Nxg.Day?c.LjH.DAY:void 0}onSizeChanged(i){this.limit=i,this.createInvoiceRequest(c.NzX.FIRST,!1,null,null),this.getInvoiceList(u.Ml.PAGINATION)}onChange(i,t){if(this.currentDatePickerType===i&&!t)return this.currentDatePickerType=null,this.datePicker=null,this.createInvoiceRequest(c.NzX.FIRST,!1,null,null),this.getInvoiceList(u.Ml.DATEPICKER),void(this.isOpen=!1);{this.currentDatePickerType=i,this.isOpen=!0,t&&(this.defaultDatePickerValue=t);const a=c.$RW.toDayDate(this.defaultDatePickerValue);i===c.Nxg.Day?(this.createInvoiceRequest(c.NzX.FIRST,!1,c.LjH.DAY,a),this.getInvoiceList(u.Ml.DATEPICKER)):i===c.Nxg.Month?(a.day=null,this.createInvoiceRequest(c.NzX.FIRST,!1,c.LjH.MONTH,a),this.getInvoiceList(u.Ml.DATEPICKER)):i===c.Nxg.Year&&(a.month=null,a.day=null,this.createInvoiceRequest(c.NzX.FIRST,!1,c.LjH.YEAR,a),this.getInvoiceList(u.Ml.DATEPICKER))}}createInvoiceRequest(i,t,a,s,r){this.invoiceRequest=new c.pxT(new c.BPA(i,t&&r?this.previousInvoiceId:this.pagingInvoiceId?this.pagingInvoiceId:null),this.limit,a?new c.fUo(a,s?.year,s?.month,s?.day):null)}getInvoiceList(i,t=!0){this.isLoading=!0,this.clientService.getAdminInvoices(this.invoiceRequest).pipe((0,h.t)(this)).subscribe(a=>{(a.length>0||i===u.Ml.DATEPICKER)&&(this.invoices=a.map(s=>({ID:s.ID,date:c.$RW.toDate(s.issued),ready:s.ready})),this.pagingInvoiceId=this.invoices.length>0?this.invoices[this.invoices.length-1].ID:null,this.generateRunFunctionMap()),this.isLoading=!1,t&&this.startReload()},a=>{console.log(a)})}handleError(i){this.nzMessageService.error(this.translate.instant(400===i.status?i.msg.cause===c.Rcy.MISSING_INVOICE?"ADMIN.INVOICES.DOWNLOAD.ERROR.MISSING_INVOICE":i.msg.cause===c.Rcy.NON_RENDERED_INVOICE?"ADMIN.INVOICES.DOWNLOAD.ERROR.NON_RENDERED_INVOICE":i.msg.cause===c.Rcy.NON_APPLICATION_INVOICE?"ADMIN.INVOICES.DOWNLOAD.ERROR.NON_APPLICATION_INVOICE":"ADMIN.INVOICES.DOWNLOAD.ERROR.UNKNOWN":"ADMIN.INVOICES.DOWNLOAD.ERROR.BASIC",{id:this.invoiceId}))}download(i){return this.invoiceId=i,this.clientService.downloadAdminInvoiceFromBackend(i).pipe((0,h.t)(this)).toPromise().then(t=>{const a=new Blob([t],{type:"application/pdf"}),s=window.URL.createObjectURL(a),r=document.createElement("a");r.href=s,r.download=`invoice - ${i}
1.pdf`,r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(s),r.remove()},100)},t=>(this.handleError(t),Promise.reject())).finally(()=>{this.runFunctionMap.set(i,null)})}downloadAll(){this.allDownloaded=(0,Je.D)(this.invoices.flatMap(i=>i.ready?[i.ID]:[])).pipe((0,ke.b)(i=>{const t=this.download(i);return this.runFunctionMap.set(i,()=>t),t})).toPromise()}generateRunFunctionMap(){this.invoices.forEach(i=>{this.runFunctionMap.set(i.ID,null)})}runDownload(i){this.runFunctionMap.has(i)&&this.runFunctionMap.set(i,()=>this.download(i))}};x.\u0275fac=function(i){return new(i||x)(e.Y36(F.y),e.Y36(R.dD),e.Y36(N.sK),e.Y36(Ie.f))},x.\u0275cmp=e.Xpm({type:x,selectors:[["ng-component"]],decls:33,vars:32,consts:[[1,"date-picker-wrapper"],[1,"d-flex","align-items-center","p-2"],[1,"d-flex","col-md-6"],["nzButtonStyle","solid",1,"d-inline-flex","justify-content-between",3,"ngModel","ngModelChange"],["nz-radio-button","",1,"mr-1",3,"nzValue","click"],[3,"ngSwitch"],[3,"nzAllowClear","nzPlaceHolder","ngModel","ngModelChange",4,"ngSwitchCase"],[1,"ml-auto",3,"options","pageChange","sizeChanged"],[1,"d-flex","justify-content-end"],[1,"m-2",3,"defaultIcon","runFunction","nzTextKeys","stickResult","disabled","click"],["nzShowSizeChanger","",3,"nzData","nzLoading","nzPageSize","nzShowPagination","nzPageSizeChange"],["basicTable",""],["nz-th","",3,"nzWidth"],[4,"ngFor","ngForOf"],[3,"nzAllowClear","nzPlaceHolder","ngModel","ngModelChange"],["nz-tooltip","","class","loading-icon mb-0",4,"ngIf"],[3,"defaultIcon","runFunction","stickResult","nzTextKeys","showAsLink","click",4,"ngIf"],["nz-tooltip","",1,"loading-icon","mb-0"],["nz-icon","","nzType","loading","nzTheme","outline",1,"mr-2"],[3,"defaultIcon","runFunction","stickResult","nzTextKeys","showAsLink","click"]],template:function(i,t){if(1&i&&(e.TgZ(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"nz-radio-group",3),e.NdJ("ngModelChange",function(s){return t.datePicker=s}),e.TgZ(5,"label",4),e.NdJ("click",function(){return t.onChange(t.datePicker)}),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"label",4),e.NdJ("click",function(){return t.onChange(t.datePicker)}),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"label",4),e.NdJ("click",function(){return t.onChange(t.datePicker)}),e._uU(12),e.ALo(13,"translate"),e.qZA()(),e.TgZ(14,"div",5),e.YNc(15,Ke,2,5,"nz-year-picker",6),e.YNc(16,Ye,2,5,"nz-month-picker",6),e.YNc(17,Ve,2,5,"nz-date-picker",6),e.qZA()(),e.TgZ(18,"app-szerzi-pagination",7),e.NdJ("pageChange",function(s){return t.onPageChange(s)})("sizeChanged",function(s){return t.onSizeChanged(s)}),e.qZA()(),e.TgZ(19,"div",8)(20,"app-multi-state-button",9),e.NdJ("click",function(){return t.downloadAll()}),e.qZA()()(),e.TgZ(21,"nz-table",10,11),e.NdJ("nzPageSizeChange",function(s){return t.limit=s}),e.TgZ(23,"thead")(24,"tr")(25,"th"),e._uU(26,"ID"),e.qZA(),e.TgZ(27,"th"),e._uU(28),e.ALo(29,"translate"),e.qZA(),e._UZ(30,"th",12),e.qZA()(),e.TgZ(31,"tbody"),e.YNc(32,He,9,7,"tr",13),e.qZA()()()),2&i){const a=e.MAs(22);e.xp6(4),e.Q6J("ngModel",t.datePicker),e.xp6(1),e.s9C("nzValue",t.datePickerType.Year),e.xp6(1),e.hij(" ",e.lcZ(7,24,"COMMON.YEAR")," "),e.xp6(2),e.s9C("nzValue",t.datePickerType.Month),e.xp6(1),e.hij(" ",e.lcZ(10,26,"COMMON.MONTH")," "),e.xp6(2),e.s9C("nzValue",t.datePickerType.Day),e.xp6(1),e.hij(" ",e.lcZ(13,28,"COMMON.DAY")," "),e.xp6(2),e.Q6J("ngSwitch",t.datePicker),e.xp6(1),e.Q6J("ngSwitchCase",t.datePickerType.Year),e.xp6(1),e.Q6J("ngSwitchCase",t.datePickerType.Month),e.xp6(1),e.Q6J("ngSwitchCase",t.datePickerType.Day),e.xp6(1),e.Q6J("options",t.dropDownValues),e.xp6(2),e.Q6J("defaultIcon","download")("runFunction",t.allDownloaded)("nzTextKeys",t.downloadAllText)("stickResult",!1)("disabled",0===(null==t.invoices?null:t.invoices.length)||t.isLoading),e.xp6(1),e.Q6J("nzData",t.invoices)("nzLoading",t.isLoading)("nzPageSize",t.limit)("nzShowPagination",!1),e.xp6(7),e.Oqu(e.l
1cZ(29,30,"COMMON.DATE")),e.xp6(2),e.Q6J("nzWidth","250px"),e.xp6(2),e.Q6J("ngForOf",a.data)}},dependencies:[v.JJ,v.On,C.sg,C.O5,C.RF,C.n9,k.P4,Ge.Q,b.w,Te.uw,Te.Xv,Te.Mq,S.Ls,fe.Of,fe.Bq,fe.Dg,Z.N8,Z.Uo,Z._C,Z.Om,Z.p0,Z.$Z,j.SY,C.uU,N.X$],styles:['@charset "UTF-8";.brand-success[_ngcontent-%COMP%]{color:#92ddea!important}.brand-failure[_ngcontent-%COMP%]{color:#9579d1!important}.brand-red[_ngcontent-%COMP%]{color:#de4436!important}.brand-success-bg-border[_ngcontent-%COMP%]{background-color:#92ddea!important;border-color:#92ddea!important;color:#fff!important}.brand-failure-bg-border[_ngcontent-%COMP%]{background-color:#ffa5d8!important;border-color:#ffa5d8!important;color:#fff!important}.date-picker-wrapper[_ngcontent-%COMP%]{border:1px solid #edf2f9;background-color:#fff}nz-radio-group[_ngcontent-%COMP%]{width:250px;align-items:center}nz-radio-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{width:33.33%;text-align:center}.loading-icon[_ngcontent-%COMP%]   .anticon[_ngcontent-%COMP%]{font-size:12px;padding-bottom:.3rem}'],data:{animation:[Qe.Ln]}}),x=(0,y.gn)([(0,h.c)()],x);var je=l(22971),Me=l(92367),Xe=l(81664),$e=l(32046),qe=l(38151),et=l(74383),tt=l(51971),P=l(66152),nt=l(21634),ze=l(76161);
2/*
3     * @license
4     * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL
5     * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved.
6     *
7     * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt)
8     * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt)
9     * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by
10     * trade secret or copyright law.
11     *
12     * Dissemination of this information or reproduction of this material is strictly forbidden
13     * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code
14     * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees,
15     * managers or contractors who have executed Confidentiality and Non-disclosure agreements
16     * explicitly covering such access.
17     *
18     * The copyright notice above does not evidence any actual or intended publication or disclosure
19     * of this source code, which includes information that is confidential and/or proprietary,
20     * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION,
21     * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE
22     * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF
23     * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE
24     * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR
25     * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE,
26     * IN WHOLE OR IN PART.
27     */const it=["searchInputElement"];function ot(o,i){1&o&&e._UZ(0,"i",13)}function at(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"i",15),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(3);return e.KtG(s.clearSearch())}),e.qZA()}}function lt(o,i){if(1&o&&e.YNc(0,at,1,0,"i",14),2&o){const t=e.oxw(2);e.Q6J("ngIf",""!==t.searchInput)}}function st(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",6)(1,"span",7),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"nz-input-group",8),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.focusSearch())}),e.TgZ(5,"input",9,10),e.NdJ("ngModelChange",function(s){e.CHM(t);const r=e.oxw();return e.KtG(r.searchInput=s)})("ngModelChange",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.search())}),e.ALo(7,"translate"),e.qZA()(),e.YNc(8,ot,1,0,"ng-template",null,11,e.W1O),e.YNc(10,lt,1,1,"ng-template",null,12,e.W1O),e.qZA()}if(2&o){const t=e.MAs(9),a=e.MAs(11),s=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,5,"ADMIN.CLIENT_MANAGEMENT.TITLE")),e.xp6(2),e.Q6J("nzPrefix",t)("nzSuffix",a),e.xp6(1),e.Q6J("placeholder",e.lcZ(7,7,"ADMIN.CLIENT_MANAGEMENT.SEARCH"))("ngModel",s.searchInput)}}function rt(o,i){if(1&o&&e._UZ(0,"nz-avatar",26),2&o){const t=e.oxw().$implicit,a=e.oxw();e.Q6J("nzSrc",a.clientsIsSeen[t.clientID]?a.imagesToShow.get(t.clientID):null)}}function ct(o,i){if(1&o&&(e.TgZ(0,"a",29),e._uU(1),e.qZA()),2&o){const t=e.oxw(2).$implicit;e.MGl("href","mailto:",t.mail,"",e.LSH),e.xp6(1),e.Oqu(t.mail)}}function pt(o,i){1&o&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ADMIN.CLIENT_MANAGEMENT.CLIENT_DESCRIPTION")," "))}function gt(o,i){if(1&o&&(e.YNc(0,ct,2,2,"a",27),e.YNc(1,pt,3,3,"ng-container",28)),2&o){const t=e.oxw().$implicit;e.Q6J("ngIf",t.mail),e.xp6(1),e.Q6J("ngIf",!t.mail)}}const _t=function(){return{}},dt=function(o){return[o]};function mt(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"nz-list-item",16),e.NdJ("inViewportAction",function(s){const d=e.CHM(t).$implicit,f=e.oxw();return e.KtG(f.onClientSeen(d.clientID,s))}),e.YNc(1,rt,1,1,"ng-template",null,17,e.W1O),e.YNc(3,gt,2,2,"ng-template",null,18,e.W1O),e.TgZ(5,"nz-list-item-meta",19)(6,"nz-list-item-meta-title")(7,"div",20)(8,"p",21),e._uU(9),e.ALo(10,"getUserName"),e.qZA()()()(),e.TgZ(11,"ul",22)(12,"nz-list-item-action")(13,"button",23),e.NdJ("click",function(){const r=e.CHM(t).$implicit,d=e.oxw();return e.KtG(d.gifting(r))}),e._UZ(14,"i",24),e._uU(15),e.ALo(16,"translate"),e.qZA()(),e.TgZ(17,"nz-list-item-action"),e._UZ(18,"app-multi-state-button",25),e.qZA()()()}if(2&o){const t=i.$implicit,a=e.MAs(2),s=e.MAs(4),r=e.oxw();
27e.Q6J("inViewportOptions",e.DdM(17,_t)),e.xp6(5),e.Q6J("nzAvatar",a)("nzDescription",s),e.xp6(4),e.Oqu(e.xi3(10,12,t,r.currLang)),e.xp6(6),e.hij(" ",e.lcZ(16,15,"ADMIN.CLIENT_MANAGEMENT.GIFTING.TITLE")," "),e.xp6(3),e.Q6J("defaultFunction",r.impersonateFunction)("defaultFunctionParameters",e.VKq(18,dt,t.clientID))("defaultIcon","user")("nzTextKeys",r.impersonateText)("stickResult",!0)("backToDefaultStateTime",1e3)("showAsLink",!0)}}function ut(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",30)(1,"nz-pagination",31),e.NdJ("nzPageIndexChange",function(s){e.CHM(t);const r=e.oxw();return e.KtG(r.pageChanged(s))})("nzPageSizeChange",function(s){e.CHM(t);const r=e.oxw();return e.KtG(r.sizeChanged(s))}),e.qZA()()}if(2&o){const t=e.oxw();e.xp6(1),e.Q6J("nzPageIndex",1)("nzTotal",t.clientCount)("nzPageSize",10)}}let O=class{constructor(i,t,a,s,r,d,f){this.translate=i,this.clientService=t,this.getUserName=a,this.modalService=s,this.userInfosService=r,this.loginRegisterHandler=d,this.nzMessage=f,this.allPageCount=1,this.currentPage=1,this.imagesToShow=new Map,this.clientCount=0,this.clients=[],this.clientsToShow=[],this.clientsIsSeen=[],this.clientsPerPage=10,this.searchInput="",this.impersonateText=new k.PR("ADMIN.IMPERSONATE.CHANGE","ADMIN.IMPERSONATE.CHANGING","ADMIN.IMPERSONATE.CHANGED","ADMIN.IMPERSONATE.FAILED"),this.currLang="hu"}ngOnInit(){this.translate.currentLang&&(this.currLang=this.translate.currentLang),this.translate.onLangChange.subscribe(i=>{this.currLang=i.lang}),this.impersonateFunction=i=>this.impersonate(i),this.clientService.getClientCount().pipe((0,h.t)(this)).subscribe(i=>{this.clientCount=i.count,this.allPageCount=Math.floor(this.clientCount/this.clientsPerPage)+1,this.clientService.getClientList(0,this.clientCount).pipe((0,h.t)(this)).subscribe(t=>{this.clients=t,this.clients.sort((a,s)=>{const r=this.getUserName.transform(a,null,!0),d=this.getUserName.transform(s,null,!0);return r&&d?r.toUpperCase()<d.toUpperCase()?-1:r.toUpperCase()>d.toUpperCase()?1:0:r?d?void 0:-1:1}),this.sliceClients()})})}sliceClients(){const i=[...this.clients];this.clientsToShow=i.slice((this.currentPage-1)*this.clientsPerPage,this.currentPage*this.clientsPerPage)}pageChanged(i){this.currentPage=i,this.sliceClients()}sizeChanged(i){this.clientsPerPage=i,this.allPageCount=Math.floor(this.clientCount/this.clientsPerPage)+1,this.sliceClients()}impersonate(i){return this.clientService.impersonateClient(i).pipe((0,h.t)(this)).toPromise().then(t=>{this.loginRegisterHandler.handleLoginRegister(new je.z_(t.email,t.kind,t.token,t.userID),u.rp.IMPERSONATED),this.nzMessage.success(this.translate.instant("ADMIN.IMPERSONATE.IMPERSONATED",{id:i}))})}gifting(i){const t=this.getUserName.transform(i);this.modalService.giftingPackToClient(t,i.clientID)}search(){const i=Object.assign(this.clients);this.clientsToShow=i.filter(t=>t.mail?this.getUserName.transform(t).toLowerCase().includes(this.searchInput.toLowerCase())||t.mail.toLowerCase().includes(this.searchInput.toLowerCase()):this.getUserName.transform(t).toLowerCase().includes(this.searchInput.toLowerCase()))}focusSearch(){this.searchInputElement&&this.searchInputElement.nativeElement.focus()}clearSearch(){this.searchInput="",this.search()}onClientSeen(i,t){t.visible&&!this.clientsIsSeen[i]&&(this.clientsIsSeen[i]=!0,this.userInfosService.batchGetUserImgsByIds([i]),this.imagesToShow=this.userInfosService.userImgs)}};O.\u0275fac=function(i){return new(i||O)(e.Y36(N.sK),e.Y36(F.y),e.Y36(Me.D),e.Y36(Xe.Z),e.Y36($e.h),e.Y36(qe.d),e.Y36(R.dD))},O.\u0275cmp=e.Xpm({type:O,selectors:[["app-client-management"]],viewQuery:function(i,t){if(1&i&&e.Gf(it,5),2&i){let a;e.iGM(a=e.CRH())&&(t.searchInputElement=a.first)}},decls:9,vars:3,consts:[[1,"client-wrapper"],[1,"client-content"],[3,"nzTitle"],["titleTemplate",""],["inViewport","","class","justify-content-center justify-content-md-between flex-wrap",3,"inViewportOptions","inViewportAction",4,"ngFor","ngForOf"],["class","m-t-20 text-center text-md-right",4,"ngIf"],[1,"d-flex","flex-wrap","align-items-baseline"],[1,"mr-2"],[1,"searchInputElement","search-bar","mt-2",3,"nzPrefix","nzSuffix","click"],["type","text","nz-input","","trim","blur",3,"placeholder","ngModel","ngModelChange"],["searchInputElement",""],["searchPrefix",""],["suffixTemplate",""],["nz-icon","","nzType","search",1,"font-size-14","opacity-04"],["nz-icon","","nzType","close-circle","class","font-size-14 opacity-04 search-remove-text-icon",3,"click",4,"ngIf"],["nz-icon","","nzType","close-circle",1,"font-size-14","opacity-04","search-remove-text-icon",3,"click"],["inViewport","",1,"justify-content-center","justify-content-md-between","flex-wrap",3,"inViewportOptions","inViewportAction"],["clientImageTemplate",""],["clientDescription",""],[3,"nzAvatar","nzDescription"],[1,"d-flex","justify-content-center","justify-content-md-between","flex-wrap"],[1,"client-name","mb-0","mb-xl-3"],["nz-list-item-actions","",1,"mb-0"],["nz-button","",3,"click"],["nz-icon","","nzType","gift","nzTheme","outline"],[3,"defaultFunction","defaultFunctionParameters","defaultIcon","nzTextKeys","stickResult","backToDefaultStateTime","showAsLink"],["nzIcon","user",3,"nzSrc"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],[1,"m-t-20","text-center","text-md-right"],["nzShowSizeChanger","",3,"nzPageIndex","
27nzTotal","nzPageSize","nzPageIndexChange","nzPageSizeChange"]],template:function(i,t){if(1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"nz-card",2),e.YNc(4,st,12,9,"ng-template",null,3,e.W1O),e.TgZ(6,"nz-list"),e.YNc(7,mt,19,20,"nz-list-item",4),e.qZA()()(),e.YNc(8,ut,2,3,"div",5),e.qZA()()),2&i){const a=e.MAs(5);e.xp6(3),e.Q6J("nzTitle",a),e.xp6(4),e.Q6J("ngForOf",t.clientsToShow),e.xp6(1),e.Q6J("ngIf",""===t.searchInput)}},dependencies:[v.Fj,v.JJ,v.On,C.sg,C.O5,w.P,k.P4,et.Dz,B.ix,b.w,W.dQ,tt.bd,S.Ls,z.Zp,z.gB,z.ke,P.n_,P.AA,P.yi,P.IO,P.nk,P.KC,nt.dE,ze.wt,N.X$,Me.D],styles:['@charset "UTF-8";[_nghost-%COMP%]     .ant-list-item-action{margin-bottom:0}.client-avatar[_ngcontent-%COMP%]{width:40px;height:auto}.search-bar[_ngcontent-%COMP%]{flex:0 1 450px}@media (max-width: 767.98px){.ant-list-item-meta[_ngcontent-%COMP%]{flex:1 0 100%;text-align:center}}@media (max-width: 1199.98px){.client-name[_ngcontent-%COMP%]{flex:1 0 100%}}']}),O=(0,y.gn)([(0,h.c)()],O);
28/*
29     * @license
30     * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL
31     * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved.
32     *
33     * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt)
34     * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt)
35     * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by
36     * trade secret or copyright law.
37     *
38     * Dissemination of this information or reproduction of this material is strictly forbidden
39     * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code
40     * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees,
41     * managers or contractors who have executed Confidentiality and Non-disclosure agreements
42     * explicitly covering such access.
43     *
44     * The copyright notice above does not evidence any actual or intended publication or disclosure
45     * of this source code, which includes information that is confidential and/or proprietary,
46     * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION,
47     * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE
48     * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF
49     * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE
50     * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR
51     * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE,
52     * IN WHOLE OR IN PART.
53     */
54const ht=[{path:"",component:we.V,children:[{path:"",redirectTo:ve.L.config.environment===Ae.$.development||ve.L.config.environment===Ae.$.local?A.d.baseFileManager:A.d.baseLawyerManager,pathMatch:"full"},{path:A.d.baseFileManager,data:{titleKey:"ADMIN.PAGES.GENERATOR_MANAGEMENT"},component:E},{path:A.d.baseLawyerManager,component:D.O,data:{titleKey:"ADMIN.PAGES.LAWYER_MANAGEMENT"}},{path:A.d.baseClientManager,component:O,data:{titleKey:"ADMIN.PAGES.CLIENT_MANAGEMENT"}},{path:A.d.baseTemplater,data:{titleKey:"ADMIN.PAGES.TEMPLATER"},children:[{path:"",component:K.r},{path:":contractID",component:K.r}]},{path:A.d.baseInvoices,data:{titleKey:"CLIENT.PAGES.INVOICES"},component:x},{path:A.d.baseSettings,data:{titleKey:"CLIENT.PAGES.SETTINGS"},component:be.d,canDeactivate:[Ue.$],children:[{path:A.d.settingsAccountTab,data:{titleKey:"CLIENT.PROFILE.TITLES.ACCOUNT"},children:[]}]}]}];let Tt=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
54,o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[G.Bz.forChild(ht),G.Bz]}),o})();var ft=l(87918),Ct=(l(64166),l(50521),l(67850),l(72865),l(96444),l(13754)),vt=l(8829);let At=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({providers:[vt.p],imports:[Tt,m.k,v.u5,$.m,ft.t,Ct.UserModule,ze.Yn]}),o})()},14789:(Ne,Q,l)=>{l.d(Q,{W:()=>M});var $=l(97582),v=l(17445),m=l(37340),D=l(44224),G=l(36057),K=l(45218),A=l(29971),y=l(44569),n=l(94650),h=l(87341),q=l(50211),Y=l(81664),e=l(39889),ee=l(98895),V=l(55089),te=l(30607),F=l(8829),R=l(13217),C=l(30144),w=l(36895),ne=l(42895),B=l(74383),b=l(70048),W=l(66616),ie=l(47044),U=l(21811),S=l(73325),z=l(29562),H=l(47423),j=l(37570),oe=l(32925);function N(g,_){1&g&&(n.TgZ(0,"button",32)(1,"div"),n._UZ(2,"i",33),n.TgZ(3,"span",20),n._uU(4),n.ALo(5,"translate"),n.qZA()()()),2&g&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"ADMIN.PAGES.GENERATOR_MANAGEMENT")," "))}const J=function(g){return{"white-space-normal":g}};function ae(g,_){if(1&g&&(n.TgZ(0,"div",34),n.ALo(1,"translate"),n._UZ(2,"i",35),n.TgZ(3,"div"),n._UZ(4,"i",33),n.TgZ(5,"span",36),n.ALo(6,"translate"),n._uU(7),n.ALo(8,"translate"),n.qZA()()()),2&g){const p=n.oxw(2);n.Q6J("ngClass",n.VKq(10,J,p.isFolded))("nzTooltipTitle",n.lcZ(1,4,"CLIENT.PAGES.2FA.2FA_NOT_ENABLED_TOOLTIP")),n.xp6(5),n.Q6J("nzTooltipTitle",n.lcZ(6,6,"CLIENT.PAGES.2FA.2FA_NOT_ENABLED_TOOLTIP")),n.xp6(2),n.hij(" ",n.lcZ(8,8,"ADMIN.PAGES.GENERATOR_MANAGEMENT")," ")}}function le(g,_){if(1&g){const p=n.EpF();n.TgZ(0,"li",23),n.NdJ("click",function(){n.CHM(p);const L=n.oxw();return n.KtG(L.isAdmin2FA?L.routerService.routeToAdminLobby():null)}),n.YNc(1,N,6,3,"button",24),n.YNc(2,ae,9,12,"div",25),n.qZA()}if(2&g){const p=n.oxw();n.Q6J("ngClass",p.isAdmin2FA?"":"disabledLink"),n.xp6(1),n.Q6J("ngIf",p.isAdmin2FA),n.xp6(1),n.Q6J("ngIf",!p.isAdmin2FA)}}function se(g,_){1&g&&(n.TgZ(0,"button",32)(1,"div"),n._UZ(2,"i",37),n.TgZ(3,"span",20),n._uU(4),n.ALo(5,"translate"),n.qZA()()()),2&g&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"ADMIN.PAGES.LAWYER_MANAGEMENT")," "))}function re(g,_){if(1&g&&(n.TgZ(0,"div",34),n.ALo(1,"translate"),n._UZ(2,"i",35),n.TgZ(3,"div"),n._UZ(4,"i",33),n.TgZ(5,"span",36),n.ALo(6,"translate"),n._uU(7),n.ALo(8,"translate"),n.qZA()()()),2&g){const p=n.oxw();n.Q6J("ngClass",n.VKq(10,J,p.isFolded))("nzTooltipTitle",n.lcZ(1,4,"CLIENT.PAGES.2FA.2FA_NOT_ENABLED_TOOLTIP")),n.xp6(5),n.Q6J("nzTooltipTitle",n.lcZ(6,6,"CLIENT.PAGES.2FA.2FA_NOT_ENABLED_TOOLTIP")),n.xp6(2),n.hij(" ",n.lcZ(8,8,"ADMIN.PAGES.LAWYER_MANAGEMENT")," ")}}function ce(g,_){1&g&&(n.TgZ(0,"button",32)(1,"div"),n._UZ(2,"i",37),n.TgZ(3,"span",20),n._uU(4),n.ALo(5,"translate"),n.qZA()()()),2&g&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"ADMIN.PAGES.CLIENT_MANAGEMENT")," "))}function pe(g,_){if(1&g&&(n.TgZ(0,"div",34),n.ALo(1,"translate"),n._UZ(2,"i",35),n.TgZ(3,"div"),n._UZ(4,"i",33),n.TgZ(5,"span",36),n.ALo(6,"translate"),n._uU(7),n.ALo(8,"translate"),n.qZA()()()),2&g){const p=n.oxw();n.Q6J("ngClass",n.VKq(10,J,p.isFolded))("nzTooltipTitle",n.lcZ(1,4,"CLIENT.PAGES.2FA.2FA_NOT_ENABLED_TOOLTIP")),n.xp6(5),n.Q6J("nzTooltipTitle",n.lcZ(6,6,"CLIENT.PAGES.2FA.2FA_NOT_ENABLED_TOOLTIP")),n.xp6(2),n.hij(" ",n.lcZ(8,8,"ADMIN.PAGES.CLIENT_MANAGEMENT")," ")}}const ge=function(){return{"margin-top":"10px","margin-bottom":"10px"}};let M=class{constructor(_,p,T,L,_e,de,me,ue,he){this.themeService=_,this.clientService=p,this.modalService=T,this.routerService=L,this.stateService=_e,this.userService=de,this.imgService=me,this.administrator2FAService=ue,this.onTheFlyService=he,this.isDev=!1,this.isAdmin2FA=!1,this.EnvironmentService=K.L,this.EnvironmentMode=A.$,this.LogoStyle=G.q8,this.PageRoutes=y.d}ngOnInit(){this.pingServer=(0,v.F)(2e3).pipe((0,D.t)(this)).subscribe(()=>{this.clientService.getServerStatus().pipe((0,D.t)(this)).subscribe(_=>{this.status="success"},_=>{this.status="warning"})}),this.themeService.isMenuFoldedChanges.subscribe(_=>{this.isFolded=_}),this.administrator2FAService.changed.subscribe(_=>this.isAdmin2FA=_)}toggleFold(){this.isFolded=!this.isFolded,this.themeService.toggleFold(this.isFolded)}toggleExpand(){this.isFolded=!1,this.isExpand=!this.isExpand,this.themeService.toggleExpand(this.isExpand),this.themeService.toggleFold(this.isFolded)}checkStateAndLogout(){this.stateService.changeInProgress?this.modalService.confirmModal(this.stateService.changeText).afterClose.asObservable().subscribe(p=>{p&&this.logout(()=>this.stateService.setBypassNextNavigationCheck(!0))}):this.logout()}logout(_){this.clientService.logout().pipe((0,D.t)(this)).subscribe(()=>{_&&_(),this.userService.removeSession(),this.routerService.routeToMainPage(),this.imgService.deleteCurrImg(),this.onTheFlyService.authService.then(p=>p.signOut())},()=>{this.userService.removeSession(),this.routerService.routeToMainPage(),this.imgService.deleteCurrImg(),this.onTheFlyService.authService.then(p=>p.signOut())})}};M.\u0275fac=function(_){return new(_||M)(n.Y36(h.w),n.Y36(q.y),n.Y36(Y.Z),n.Y36(e.c),n.Y36(ee.b),n.Y36(V.K),n.Y36(te.i),n.Y36(F.p),n.Y36(R.k))},M.\u0275cmp=n.Xpm({type:M,selectors:[["app-admin-header"]],decls:50,vars:30,consts:[[1,"header","m-b-10"],[1,"logo","logo-dark","d-flex","justify-content-center",3,"click"],[3,"imgStyle"],[1,"vertical-center-with-margin",3,"type","imgClass"],[1,"nav-wrap"],[1,"nav-left"],[1,"desktop-toggle"],["nz-button","",1,"toggle-button",2,"position","relative","top","1px",3,"click"],["nz-icon","","theme","outline",3,"nzType"],[1,"mobile-toggle"],["nz-button","","nzGhost","",1,"toggle-button",2,"position","relative","top","1px",3,"click"],[1,"nav-right"],[1,"status-badge",3,"nzStatus"],["nz-dropdown","",1,"p-h-10","pointer",3,"nzDropdownMenu","nzTrigger","nzPlacement"],[3,"nzIcon"],["profile","nzDropdownMenu"],["nz-menu","",1,"p-b-15","p-t-20"],[1,"p-h-20","p-b-15","m-b-10","border-bottom"],[1,"d-flex","m-r-50"],["nzSize","large","nzIcon","user"],[1,"m-l-10"],[1,"m-b-0","opacity-07"],["nz-menu-item","",3,"ngClass","click",4,"ngIf"],["nz-menu-item","",3,"ngClass","click"],["nz-button","","nzType","link","class","p-v-5 d-flex align-items-center justify-content-between link-like-button color-gray",4,"ngIf"],["class","disabledLink","nz-tooltip","",3,"ngClass","nzTooltipTitle",4,"ngIf"],["nz-menu-item",""],[1,"p-v-5","d-flex","align-items-center","justify-content-between",3,"routerLink"],["nz-icon","","nzType","setting","theme","outline",1,"opacity-04","font-size-16"],["nz-menu-item","",3,"click"],["nz-button","","nzType","link",1,"p-v-5","d-flex","align-items-center","justify-content-between","link-like-button","color-gray",3,"click"],["nz-icon","","nzType","logout","theme","outline",1,"opacity-04","font-size-16"],["nz-button","","nzType","link",1,"p-v-5","d-flex","align-items-center","justify-content-between","link-like-button","color-gray"],["nz-icon","","nzType","profile","theme","outline",1,"opacity-04","font-size-16"],["nz-tooltip","",1,"disabledLink",3,"ngClass","nzTooltipTitle"],[1,"anticon","d-none"],["nz-tooltip","","nzTooltipTrigger","click",1,"m-l-10",3,"nzTooltipTitle"],["nz-icon","","nzType","user","theme","outline",1,"opacity-04","font-size-16"]],template:function(_,p){if(1&_&&(n.TgZ(0,"div",0)(1,"div",1),n.NdJ("
54click",function(){return p.routerService.routeToHomeByUserType(p.clientService.userService.sessionType)}),n._UZ(2,"app-szerzi-logo",2)(3,"app-szerzi-logo",3),n.qZA(),n.TgZ(4,"div",4)(5,"ul",5)(6,"li",6)(7,"button",7),n.NdJ("click",function(){return p.toggleFold()}),n.TgZ(8,"div"),n._UZ(9,"i",8),n.qZA()()(),n.TgZ(10,"li",9)(11,"button",10),n.NdJ("click",function(){return p.toggleExpand()}),n.TgZ(12,"div"),n._UZ(13,"i",8),n.qZA()()()(),n.TgZ(14,"ul",11),n._UZ(15,"nz-badge",12),n.TgZ(16,"li")(17,"span",13),n._UZ(18,"nz-avatar",14),n.qZA(),n.TgZ(19,"nz-dropdown-menu",null,15)(21,"ul",16)(22,"li",17)(23,"div",18),n._UZ(24,"nz-avatar",19),n.TgZ(25,"div",20)(26,"p",21),n._uU(27),n.ALo(28,"translate"),n.qZA()()()(),n.YNc(29,le,3,3,"li",22),n.TgZ(30,"li",23),n.NdJ("click",function(){return p.isAdmin2FA?p.routerService.routeToAdminLawyerManagement():null}),n.YNc(31,se,6,3,"button",24),n.YNc(32,re,9,12,"div",25),n.qZA(),n.TgZ(33,"li",23),n.NdJ("click",function(){return p.isAdmin2FA?p.routerService.routeToAdminClientManagement():null}),n.YNc(34,ce,6,3,"button",24),n.YNc(35,pe,9,12,"div",25),n.qZA(),n.TgZ(36,"li",26)(37,"a",27)(38,"div"),n._UZ(39,"i",28),n.TgZ(40,"span",20),n._uU(41),n.ALo(42,"translate"),n.qZA()()()(),n.TgZ(43,"li",29),n.NdJ("click",function(){return p.checkStateAndLogout()}),n.TgZ(44,"button",30),n.NdJ("click",function(){return p.checkStateAndLogout()}),n.TgZ(45,"div"),n._UZ(46,"i",31),n.TgZ(47,"span",20),n._uU(48),n.ALo(49,"translate"),n.qZA()()()()()()()()()()),2&_){const T=n.MAs(20);n.xp6(2),n.Q6J("imgStyle",n.DdM(29,ge))("@isFullIcon",!!p.isFolded),n.xp6(1),n.Q6J("type",p.LogoStyle.FOLD)("imgClass","logo-fold")("@isFullIcon",!p.isFolded),n.xp6(6),n.Q6J("nzType",p.isFolded?"menu-unfold":"menu-fold"),n.xp6(4),n.Q6J("nzType",p.isExpand?"menu-fold":"menu-unfold"),n.xp6(2),n.Q6J("nzStatus",p.status),n.xp6(2),n.Q6J("nzDropdownMenu",T)("nzTrigger","click")("nzPlacement","bottomRight"),n.xp6(1),n.Q6J("nzIcon","user"),n.xp6(9),n.hij(" ",n.lcZ(28,23,"USER.KIND.ADMIN")," "),n.xp6(2),n.Q6J("ngIf",p.EnvironmentService.config.environment===p.EnvironmentMode.development||p.EnvironmentService.config.environment===p.EnvironmentMode.local),n.xp6(1),n.Q6J("ngClass",p.isAdmin2FA?"":"disabledLink"),n.xp6(1),n.Q6J("ngIf",p.isAdmin2FA),n.xp6(1),n.Q6J("ngIf",!p.isAdmin2FA),n.xp6(1),n.Q6J("ngClass",p.isAdmin2FA?"":"disabledLink"),n.xp6(1),n.Q6J("ngIf",p.isAdmin2FA),n.xp6(1),n.Q6J("ngIf",!p.isAdmin2FA),n.xp6(2),n.Q6J("routerLink","/"+p.PageRoutes.baseFromUserType()+"/"+p.PageRoutes.baseSettings+"/"+p.PageRoutes.settingsAccountTab),n.xp6(4),n.hij(" ",n.lcZ(42,25,"CLIENT.PAGES.SETTINGS")," "),n.xp6(7),n.hij(" ",n.lcZ(49,27,"COMMON.HEADER.LOG_OUT")," ")}},dependencies:[C.yS,w.mk,w.O5,ne.i,B.Dz,b.x7,W.ix,ie.w,U.dQ,S.wO,S.r9,z.cm,z.RR,H.Ls,j.SY,oe.X$],styles:['@charset "UTF-8";.brand-success[_ngcontent-%COMP%]{color:#92ddea!important}.brand-failure[_ngcontent-%COMP%]{color:#9579d1!important}.brand-red[_ngcontent-%COMP%]{color:#de4436!important}.brand-success-bg-border[_ngcontent-%COMP%]{background-color:#92ddea!important;border-color:#92ddea!important;color:#fff!important}.brand-failure-bg-border[_ngcontent-%COMP%]{background-color:#ffa5d8!important;border-color:#ffa5d8!important;color:#fff!important}.status-badge[_ngcontent-%COMP%]{position:absolute;top:7px;right:7px}.disabledLink[_ngcontent-%COMP%], .disabledLink[_ngcontent-%COMP%]:hover, .disabledLink[_ngcontent-%COMP%]:focus{color:#ededed!important}'],data:{animation:[(0,m.X$)("slideUpDown",[(0,m.SB)("*",(0,m.oB)({"max-height":"30vh",height:"30vh"})),(0,m.SB)("out",(0,m.oB)({"max-height":"60vh",height:"60vh"})),(0,m.eR)("* => out",(0,m.jt)("400ms ease-in-out")),(0,m.eR)("out => in",(0,m.jt)("400ms ease-in-out"))]),(0,m.X$)("isFullIcon",[(0,m.SB)("1",(0,m.oB)({opacity:0})),(0,m.SB)("0",(0,m.oB)({opacity:1})),(0,m.eR)("1 <=> 0",(0,m.jt)(1e3))])]}}),M=(0,$.gn)([(0,D.c)({checkProperties:!0})],M)}}]);

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.