PageSourceSearch

https://szerzi.hu/1349.32e9c2f2e185c710.js

js szerzi.hu collected 2026-10-04 13:26:14 UTC 44,439 bytes, 54 lines download raw bytes

1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[1349],{18561:(_e,Z,c)=>{c.d(Z,{O:()=>y});var e=c(97582),b=c(92961),h=c(44224),w=c(22971),A=c(5963),z=c(36057),n=c(94650),N=c(29562),T=c(49651),I=c(39889),v=c(32925),C=c(50211),V=c(92367),E=c(38151),S=c(81664),j=c(32046),L=c(24006),k=c(36895),K=c(59166),J=c(74383),U=c(47044),Q=c(51971),Y=c(47423),F=c(35635),O=c(66152),W=c(21634),G=c(6497),H=c(58800),M=c(76161);const $=["searchInputElement"];function q(d,s){1&d&&n._UZ(0,"i",13)}function X(d,s){if(1&d){const r=n.EpF();n.TgZ(0,"i",15),n.NdJ("click",function(){n.CHM(r);const m=n.oxw(3);return n.KtG(m.clearSearch())}),n.qZA()}}function D(d,s){if(1&d&&n.YNc(0,X,1,0,"i",14),2&d){const r=n.oxw(2);n.Q6J("ngIf",""!==r.searchInput)}}function P(d,s){if(1&d){const r=n.EpF();n.TgZ(0,"div",6)(1,"span",7),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"nz-input-group",8),n.NdJ("click",function(){n.CHM(r);const m=n.oxw();return n.KtG(m.focusSearch())}),n.TgZ(5,"input",9,10),n.NdJ("ngModelChange",function(m){n.CHM(r);const g=n.oxw();return n.KtG(g.searchInput=m)})("ngModelChange",function(){n.CHM(r);const m=n.oxw();return n.KtG(m.search())}),n.ALo(7,"translate"),n.qZA()(),n.YNc(8,q,1,0,"ng-template",null,11,n.W1O),n.YNc(10,D,1,1,"ng-template",null,12,n.W1O),n.qZA()}if(2&d){const r=n.MAs(9),u=n.MAs(11),m=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,5,"ADMIN.LAWYER_MANAGEMENT.TITLE")),n.xp6(2),n.Q6J("nzPrefix",r)("nzSuffix",u),n.xp6(1),n.Q6J("placeholder",n.lcZ(7,7,"ADMIN.LAWYER_MANAGEMENT.SEARCH"))("ngModel",m.searchInput)}}function ee(d,s){if(1&d){const r=n.EpF();n.TgZ(0,"nz-avatar",26),n.NdJ("click",function(){n.CHM(r);const m=n.oxw().$implicit,g=n.oxw();return n.KtG(g.modalService.publicProfileModal(m.lawyerID))}),n.qZA()}if(2&d){const r=n.oxw().$implicit,u=n.oxw();n.Q6J("nzSrc",u.lawyersIsSeen[r.lawyerID]?u.imagesToShow.get(r.lawyerID):null)}}function te(d,s){if(1&d&&(n.TgZ(0,"a",29),n._uU(1),n.qZA()),2&d){const r=n.oxw(2).$implicit;n.MGl("href","mailto:",r.mail,"",n.LSH),n.xp6(1),n.Oqu(r.mail)}}function ne(d,s){1&d&&(n.ynx(0),n._uU(1),n.ALo(2,"translate"),n.BQk()),2&d&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"ADMIN.LAWYER_MANAGEMENT.LAWYER_DESCRIPTION")," "))}function ie(d,s){if(1&d&&(n.YNc(0,te,2,2,"a",27),n.YNc(1,ne,3,3,"ng-container",28)),2&d){const r=n.oxw().$implicit;n.Q6J("ngIf",r.mail),n.xp6(1),n.Q6J("ngIf",!r.mail)}}const ae=function(){return{}},oe=function(d){return[d]};function re(d,s){if(1&d){const r=n.EpF();n.TgZ(0,"nz-list-item",16),n.NdJ("inViewportAction",function(m){const x=n.CHM(r).$implicit,B=n.oxw();return n.KtG(B.onLawyerSeen(x.lawyerID,m))}),n.YNc(1,ee,1,1,"ng-template",null,17,n.W1O),n.YNc(3,ie,2,2,"ng-template",null,18,n.W1O),n.TgZ(5,"nz-list-item-meta",19)(6,"nz-list-item-meta-title")(7,"div",20)(8,"p",21),n._uU(9),n.ALo(10,"getUserName"),n.qZA(),n.TgZ(11,"span",22),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"translate"),n.qZA()()()(),n.TgZ(15,"ul",23)(16,"nz-list-item-action")(17,"app-multi-state-button",24),n.NdJ("nzOnConfirm",function(){const g=n.CHM(r).$implicit,x=n.oxw();return n.KtG(x.runActivation(g.lawyerID,g.verified))}),n.ALo(18,"translate"),n.ALo(19,"translate"),n.ALo(20,"translate"),n.ALo(21,"translate"),n.ALo(22,"translate"),n.qZA()(),n.TgZ(23,"nz-list-item-action"),n._UZ(24,"app-multi-state-button",25),n.qZA()()()}if(2&d){const r=s.$implicit,u=n.MAs(2),m=n.MAs(4),g=n.oxw();n.Q6J("inViewportOptions",n.DdM(39,ae)),n.xp6(5),n.Q6J("nzAvatar",u)("nzDescription",m),n.xp6(4),n.Oqu(n.xi3(10,22,r,g.currLang)),n.xp6(3),n.hij(" ",r.verified?n.lcZ(13,25,"ADMIN.ACTIVE"):n.lcZ(14,27,"ADMIN.INACTIVE")," "),n.xp6(5),n.s9C("nzPopconfirmTitle",r.verified?n.lcZ(18,29,"ADMIN.DEACTIVATE_CONFIRM"):n.lcZ(19,31,"ADMIN.ACTIVATE_CONFIRM")),n.s9C("nzCancelText",n.lcZ(20,33,"ADMIN.CANCEL")),n.s9C("nzOkText",r.verified?n.lcZ(21,35,"ADMIN.DEACTIVATE"):n.lcZ(22,37,"ADMIN.ACTIVATE")),n.Q6J("runFunction",g.runFunctionMap.has(r.lawyerID)?g.runFunctionMap.get(r.lawyerID):null)("nzTextKeys",r.verified?g.deactivateText:g.activateText)("stickResult",!1)("showAsLink",!0)("backToDefaultStateTime",1e3)("defaultIcon",r.verified?"close"
1:"check")("nzOkType","primary"),n.xp6(7),n.Q6J("defaultFunction",g.impersonateFunction)("defaultFunctionParameters",n.VKq(40,oe,r.lawyerID))("defaultIcon","user")("nzTextKeys",g.impersonateText)("stickResult",!1)("backToDefaultStateTime",1e3)("showAsLink",!0)}}function le(d,s){if(1&d){const r=n.EpF();n.TgZ(0,"div",30)(1,"nz-pagination",31),n.NdJ("nzPageIndexChange",function(m){n.CHM(r);const g=n.oxw();return n.KtG(g.pageChanged(m))})("nzPageSizeChange",function(m){n.CHM(r);const g=n.oxw();return n.KtG(g.sizeChanged(m))}),n.qZA()()}if(2&d){const r=n.oxw();n.xp6(1),n.Q6J("nzPageIndex",1)("nzTotal",r.lawyerCount)("nzPageSize",10)}}let y=class{constructor(s,r,u,m,g,x,B,ce,se){this.nzContextMenuService=s,this.nzMessage=r,this.routerService=u,this.translate=m,this.clientService=g,this.getUserName=x,this.loginRegisterHandler=B,this.modalService=ce,this.userInfosService=se,this.allPageCount=1,this.currentPage=1,this.imagesToShow=new Map,this.lawyerCount=0,this.lawyers=[],this.lawyersToShow=[],this.lawyersIsSeen=[],this.lawyersPerPage=10,this.searchInput="",this.impersonateText=new b.PR("ADMIN.IMPERSONATE.CHANGE","ADMIN.IMPERSONATE.CHANGING","ADMIN.IMPERSONATE.CHANGED","ADMIN.IMPERSONATE.FAILED"),this.activateText=new b.PR("ADMIN.ACTIVATION.CHANGE","ADMIN.ACTIVATION.CHANGING","ADMIN.ACTIVATION.CHANGED","ADMIN.ACTIVATION.FAILED"),this.deactivateText=new b.PR("ADMIN.DEACTIVATION.CHANGE","ADMIN.DEACTIVATION.CHANGING","ADMIN.DEACTIVATION.CHANGED","ADMIN.DEACTIVATION.FAILED"),this.currLang="hu",this.runFunctionMap=new Map}ngOnInit(){this.translate.currentLang&&(this.currLang=this.translate.currentLang),this.translate.onLangChange.subscribe(s=>{this.currLang=s.lang}),this.impersonateFunction=s=>this.impersonate(s),this.clientService.getLawyerCount().pipe((0,h.t)(this)).subscribe(s=>{this.lawyerCount=s.count,this.allPageCount=Math.floor(this.lawyerCount/this.lawyersPerPage)+1,this.clientService.getLawyerList(0,this.lawyerCount).pipe((0,h.t)(this)).subscribe(r=>{this.lawyers=r,this.lawyers.sort((u,m)=>{const g=this.getUserName.transform(u,null,!0),x=this.getUserName.transform(m,null,!0);return g&&x?g.toUpperCase()<x.toUpperCase()?-1:g.toUpperCase()>x.toUpperCase()?1:0:g?x?void 0:-1:1}),this.sliceLawyers(),this.generateRunFunctionMap()})})}sliceLawyers(){let s=[...this.lawyers];this.lawyersToShow=s.slice((this.currentPage-1)*this.lawyersPerPage,this.currentPage*this.lawyersPerPage)}pageChanged(s){this.currentPage=s,this.sliceLawyers()}generateRunFunctionMap(){this.lawyers.forEach(s=>{this.runFunctionMap.set(s.lawyerID,null)})}runActivation(s,r){this.runFunctionMap.has(s)&&this.runFunctionMap.set(s,()=>this.activate(s,r))}impersonate(s){return this.clientService.impersonateLawyer(s).pipe((0,h.t)(this)).toPromise().then(r=>{this.loginRegisterHandler.handleLoginRegister(new w.z_(r.email,r.kind,r.token,r.userID),z.rp.IMPERSONATED),this.nzMessage.success(this.translate.instant("ADMIN.IMPERSONATE.IMPERSONATED",{id:s}))})}sizeChanged(s){this.lawyersPerPage=s,this.allPageCount=Math.floor(this.lawyerCount/this.lawyersPerPage)+1,this.sliceLawyers()}activate(s,r){const u=this.lawyersToShow.find(m=>m.lawyerID===s);return r?this.clientService.unverifyLawyer(s).pipe((0,h.t)(this)).toPromise().then(()=>{this.nzMessage.success(this.translate.instant("ADMIN.DEACTIVATED",{ID:null!=this.getUserName.transform(u,this.currLang,!0)?this.getUserName.transform(u,this.currLang,!0):u.mail})),this.lawyers.forEach(m=>{m.lawyerID===s&&(0,A.H)(1e3).pipe((0,h.t)(this)).subscribe(g=>{m.verified=!m.verified})})}).finally(()=>{this.runFunctionMap.set(s,null)}):this.clientService.verifyLawyer(s).pipe((0,h.t)(this)).toPromise().then(()=>{this.nzMessage.success(this.translate.instant("ADMIN.ACTIVATED",{ID:null!=this.getUserName.transform(u,this.currLang,!0)?this.getUserName.transform(u,this.currLang,!0):u.mail})),this.lawyers.forEach(m=>{m.lawyerID===s&&(0,A.H)(1e3).pipe((0,h.t)(this)).subscribe(g=>{m.verified=!m.verified})})}).finally(()=>{this.runFunctionMap.set(s,null)})}search(){const s=Object.assign(this.lawyers);this.lawyersToShow=s.filter(r=>r.mail?this.getUserName.transform(r).toLowerCase().includes(this.searchInput.toLowerCase())||r.mail.toLowerCase().includes(this.searchInput.toLowerCase()):this.getUserName.transform(r).toLowerCase().includes(this.searchInput.toLowerCase()))}focusSearch(){this.searchInputElement&&this.searchInputElement.nativeElement.focus()}clearSearch(){this.searchInput="",this.search()}onLawyerSeen(s,r){r.visible&&!this.lawyersIsSeen[s]&&(this.lawyersIsSeen[s]=!0,this.userInfosService.batchGetUserImgsByIds([s]),this.imagesToShow=this.userInfosService.userImgs)}};y.\u0275fac=function(s){return new(s||y)(n.Y36(N.Iw),n.Y36(T.dD),n.Y36(I.c),n.Y36(v.sK),n.Y36(C.y),n.Y36(V.D),n.Y36(E.d),n.Y36(S.Z),n.Y36(j.h))},y.\u0275cmp=n.Xpm({type:y,selectors:[["app-lawyer-management"]],viewQuery:function(s,r){if(1&s&&n.Gf($,5),2&s){let u;n.iGM(u=n.CRH())&&(r.searchInputElement=u.first)}},decls:9,vars:3,consts:[[1,"lawyer-wrapper"],[1,"lawyer-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"],["lawyerImageTemplate",""],["lawyerDescription",""],[3,"nzAvatar","nzDescription"],[1,"d-flex","justify-content-center","justify-content-md-between","flex-wrap"],[1,"lawyer-name","mb-0","mb-xl-3"],["nz-typography","",1,"ant-typography"],["nz-list-item-actions","",1,"mb-0"],["nz-popconfirm","","nzPopconfirmPlacement","bottom",3,"runFunction","nzTextKeys","stickResult","showAsLink","backToDefaultStateTime","nzPopconfirmTitle","nzCancelText","nzOkText","defaultIcon","nzOkType","nzOnConfirm"],[3,"defaultFunction","defaultFunctionParameters","defaultIcon","nzTextKeys","stickResult","backToDefaultStateTime","showAsLink"],["nzIcon","user",1,"curs
1or-pointer",3,"nzSrc","click"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],[1,"m-t-20","text-center","text-md-right"],["nzShowSizeChanger","",3,"nzPageIndex","nzTotal","nzPageSize","nzPageIndexChange","nzPageSizeChange"]],template:function(s,r){if(1&s&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"nz-card",2),n.YNc(4,P,12,9,"ng-template",null,3,n.W1O),n.TgZ(6,"nz-list"),n.YNc(7,re,25,42,"nz-list-item",4),n.qZA()()(),n.YNc(8,le,2,3,"div",5),n.qZA()()),2&s){const u=n.MAs(5);n.xp6(3),n.Q6J("nzTitle",u),n.xp6(4),n.Q6J("ngForOf",r.lawyersToShow),n.xp6(1),n.Q6J("ngIf",""===r.searchInput)}},dependencies:[L.Fj,L.JJ,L.On,k.sg,k.O5,K.P,b.P4,J.Dz,U.w,Q.bd,Y.Ls,F.Zp,F.gB,F.ke,O.n_,O.AA,O.yi,O.IO,O.nk,O.KC,W.dE,G.JW,H.ZU,M.wt,v.X$,V.D],styles:['@charset "UTF-8";[_nghost-%COMP%]     .ant-list-item-action{margin-bottom:0}.lawyer-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){.lawyer-name[_ngcontent-%COMP%]{flex:1 0 100%}}']}),y=(0,e.gn)([(0,h.c)()],y)},43166:(_e,Z,c)=>{c.d(Z,{Q:()=>Ae});var e=c(94650),b=c(41399),h=c(24006),w=c(87689),A=c(36895),z=c(59166),n=c(66616),N=c(47044),T=c(21811),I=c(2577),v=c(73679),C=c(36704),V=c(47423),E=c(35635),S=c(38231),j=c(97582),L=c(44224),k=c(5963),K=c(28213),J=c(32925),U=c(45144);
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     */function Q(a,l){1&a&&(e.TgZ(0,"p",9),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ADMIN.VARIABLES.OBJECT_FIELD_WARNING")," "))}function Y(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"nz-select",14),e.NdJ("ngModelChange",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.emitChange())})("focusout",function(o){e.CHM(t);const p=e.oxw(3);return e.KtG(p.addSearchValue(o))}),e.ALo(1,"translate"),e.ALo(2,"as"),e.qZA()}if(2&a){const t=e.oxw(3);e.Q6J("nzPlaceHolder",e.lcZ(1,2,"ADMIN.VARIABLES.VALUE"))("formControl",e.xi3(2,4,t.form.controls.value,t.FormControl))}}function F(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"input",15),e.NdJ("ngModelChange",function(o){e.CHM(t);const p=e.oxw(3);return e.KtG(p.changeComplexLength(o))})("blur",function(o){e.CHM(t);const p=e.oxw(3);return e.KtG(p.changeComplexLength(o))}),e.qZA()}if(2&a){const t=e.oxw(3);e.s9C("value",t.variable.value.length)}}function O(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"nz-form-item",3)(1,"nz-form-control",16)(2,"label",17),e.NdJ("ngModelChange",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.emitChange())}),e.ALo(3,"as"),e._uU(4),e.ALo(5,"translate"),e.qZA()()()}if(2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("nzValidateStatus",t.form.controls.forceArray),e.xp6(1),e.Q6J("formControl",e.xi3(3,3,t.form.controls.forceArray,t.FormControl)),e.xp6(2),e.hij(" ",e.lcZ(5,6,"ADMIN.VARIABLES.ARRAY_CHECKBOX"),"")}}function W(a,l){if(1&a&&(e.TgZ(0,"div",10)(1,"nz-form-item",3)(2,"nz-form-control",4),e.ALo(3,"translate"),e.YNc(4,Y,3,7,"nz-select",11),e.YNc(5,F,1,1,"input",12),e.qZA()(),e.YNc(6,O,6,8,"nz-form-item",13),e.qZA()),2&a){const t=e.oxw(2);e.xp6(2),e.Q6J("nzValidateStatus",t.form.controls.value)("nzErrorTip",e.lcZ(3,5,"ADMIN.VARIABLES.VALUE_ERROR")),e.xp6(2),e.Q6J("ngIf","simple"===t.variable.type),e.xp6(1),e.Q6J("ngIf","objects"===t.variable.type),e.xp6(1),e.Q6J("ngIf","simple"===t.variable.type&&t.form.controls.value&&t.form.controls.value.value&&1===t.form.controls.value.value.length)}}const G=function(a){return{nameWidthLimit:a}};function H(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"form",1),e.NdJ("keydown.enter",function(o){e.CHM(t);const p=e.oxw();return e.KtG(p.formService.triggerAutoSubmitWithEnter(o))}),e.TgZ(1,"div",2)(2,"nz-form-item",3)(3,"nz-form-control",4),e.ALo(4,"translate"),e.TgZ(5,"input",5),e.NdJ("blur",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.emitChange())}),e.ALo(6,"translate"),e.ALo(7,"as"),e.qZA()()(),e.YNc(8,Q,3,3,"p",6),e.qZA(),e.YNc(9,W,7,7,"div",7),e.TgZ(10,"i",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.removeVariable())}),e.qZA()()}if(2&a){const t=e.oxw();e.Q6J("formGroup",t.form),e.xp6(1),e.Q6J("ngClass",e.VKq(15,G,"object"!==t.variable.type)),e.xp6(2),e.Q6J("nzValidateStatus",t.form.controls.name)("nzErrorTip",e.lcZ(4,8,"ADMIN.VARIABLES.NAME_ERROR")),e.xp6(2),e.Q6J("placeholder",e.lcZ(6,10,"ADMIN.VARIABLES.NAME_PLACEHOLDER"))("formControl",e.xi3(7,12,t.form.controls.name,t.FormControl)),e.xp6(3),e.Q6J("ngIf",("object"===t.variable.type||"objects"===t.variable.type)&&0===t.variable.value.length),e.xp6(1),e.Q6J("ngIf","object"!==t.variable.type)}}let M=class{constructor(l){this.formService=l,this.onChange=new e.vpe,this.level=0,this.newLength=1,this.lastSearchValue="",this.FormControl=h.p4}ngOnInit(){this.form=this.formService.variableFormGroup(this.variable),this.form.markAllAsTouched(),this.validationTrigger.subscribe(()=>this.emitChange())}emitChange(){"simple"===this.variable.type?this.onChange.emit({variable:this.formService.groupToVariable(this.form),isValid:this.form.valid}):(this.form.patchValue({value:this.variable.value}),this.onChange.emit({variable:new b._(this.form.get("name").value,this.variable.value,this.variable.type,this.variable.forceArray,this.variable.ID),isValid:this.form.valid}))}removeVariable(){this.onChange.emit({variable:null,isValid:!0}),b._.removeUsedIDs(this.variable)}changeComplexLength(l){this.newLength=l.currentTarget.value;for(let t=this.variable.value.length;t<this.newLength;t++)this.variable.value.push([]);if(this.newLength<this.variable.value.length){const t=this.variable.value.splice(this.newLength,this.variable.value.length-this.newLength);b._.removeUsedIDs(t)}this.emitChange()}addSearchValue(l){const t=Array.from(l.currentTarget.children[0].children).find(o=>"nz-select-search"===o.tagName.toLowerCase()),i=Array.from(t.children).find(o=>"input"===o.tagName.toLowerCase());i&&(this.lastSearchValue=i.value),(0,k.H)(200).pipe((0,L.t)(this)).subscribe(o=>{document.activeElement!==i&&this.lastSearchValue.length>0&&(this.variable.value=this.variable.value.includes(this.lastSearchValue)?this.variable.value.filter(p=>p!==this.lastSearchValue):[...this.variable.value,this.lastSearchValue],this.form.patchValue({value:this.variable.value}),this.lastSearchValue="",this.emitChange())})}};
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     */
54function $(a,l){1&a&&e.GkF(0,21)}function q(a,l){if(1&a&&e._UZ(0,"nz-option",15),2&a){const t=e.oxw().$implicit,i=e.oxw().parentVariableName;e.Q6J("nzValue",t)("nzLabel",t.name+i)}}function X(a,l){1&a&&e.GkF(0,21)}M.\u0275fac=function(l){return new(l||M)(e.Y36(w.o))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-variable-form"]],inputs:{variable:"variable",level:"level",validationTrigger:"validationTrigger"},outputs:{onChange:"onChange"},decls:1,vars:1,consts:[["nz-form","","class","row m-0","nzNoColon","",3,"formGroup","keydown.enter",4,"ngIf"],["nz-form","","nzNoColon","",1,"row","m-0",3,"formGroup","keydown.enter"],[1,"from-group","mb-3","col","nameColumn",3,"ngClass"],[1,"m-b-0"],[3,"nzValidateStatus","nzErrorTip"],["id","name","type","text","aria-label","Variable name","nz-input","","trim","blur",1,"form-control",3,"placeholder","formControl","blur"],["class","errorMessage",4,"ngIf"],["class","from-group mb-3 col",4,"ngIf"],["nz-icon","","nzType","minus-circle-o",1,"dynamic-delete-button",3,"click"],[1,"errorMessage"],[1,"from-group","mb-3","col"],["id","value","class","form-control","nzMode","tags",3,"nzPlaceHolder","formControl","ngModelChange","focusout",4,"ngIf"],["class","complexLengthInput","id","length","type","number","min","1","nz-input","",3,"value","ngModelChange","blur",4,"ngIf"],["class","m-b-0",4,"ngIf"],["id","value","nzMode","tags",1,"form-control",3,"nzPlaceHolder","formControl","ngModelChange","focusout"],["id","length","type","number","min","1","nz-input","",1,"complexLengthInput",3,"value","ngModelChange","blur"],[3,"nzValidateStatus"],["nz-checkbox","","id","forceArray",1,"p-t-10",3,"formControl","ngModelChange"]],template:function(l,t){1&l&&e.YNc(0,H,11,17,"form",0),2&l&&e.Q6J("ngIf",t.form)},dependencies:[h._Y,h.Fj,h.JJ,h.JL,A.mk,A.O5,z.P,h.oH,h.sg,N.w,K.Ie,v.t3,v.SK,C.Lr,C.Nx,C.Fd,V.Ls,E.Zp,S.Vq,J.X$,U.j],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}.dynamic-delete-button[_ngcontent-%COMP%]{cursor:pointer;position:relative;font-size:24px;color:#999;transition:all .3s;margin-bottom:1rem}
54.dynamic-delete-button[_ngcontent-%COMP%]:hover{color:#777}  svg{height:100%}nz-select[_ngcontent-%COMP%]{width:100%;height:auto}[_nghost-%COMP%]     nz-select{padding:0}.nameColumn[_ngcontent-%COMP%]{width:calc(100% - 30px);flex-basis:initial;flex-grow:initial}.nameWidthLimit[_ngcontent-%COMP%]{width:35%}[_nghost-%COMP%]     .ant-select-selector{height:auto;min-height:2.5375rem}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}input[type=text][_ngcontent-%COMP%]{font-family:monospace}  .cdk-virtual-scroll-orientation-vertical::-webkit-scrollbar{display:none}  .cdk-virtual-scroll-orientation-vertical{-ms-overflow-style:none;scrollbar-width:none}.errorMessage[_ngcontent-%COMP%]{color:red}']}),M=(0,j.gn)([(0,L.c)()],M);const D=function(a){return{name:a}},P=function(a,l){return{variables:a,parentVariableName:l}};function ee(a,l){if(1&a&&(e.TgZ(0,"div"),e._UZ(1,"nz-option",15),e.YNc(2,X,1,0,"ng-container",11),e.ALo(3,"translate"),e.qZA()),2&a){const t=l.$implicit,i=l.index,o=e.oxw(2).$implicit,p=e.oxw().parentVariableName;e.oxw();const _=e.MAs(9);e.xp6(1),e.Q6J("nzValue",t)("nzLabel",o.name+" "+(i+1)+p),e.xp6(1),e.Q6J("ngTemplateOutlet",_)("ngTemplateOutletContext",e.WLB(9,P,t,e.xi3(3,4,"ADMIN.VARIABLES.IN",e.VKq(7,D,o.name+" "+(i+1)))+p))}}function te(a,l){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,ee,4,12,"div",22),e.qZA()),2&a){const t=e.oxw().$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.value)("ngForTrackBy",i.trackByVariable)}}function ne(a,l){1&a&&e.GkF(0,21)}function ie(a,l){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,ne,1,0,"ng-container",11),e.ALo(2,"translate"),e.qZA()),2&a){const t=e.oxw().$implicit,i=e.oxw().parentVariableName;e.oxw();const o=e.MAs(9);e.xp6(1),e.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",e.WLB(7,P,t.value,e.xi3(2,2,"ADMIN.VARIABLES.IN",e.VKq(5,D,t.name))+i))}}function ae(a,l){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,q,1,2,"nz-option",23),e.YNc(2,te,2,2,"div",24),e.YNc(3,ie,3,10,"div",24),e.qZA()),2&a){const t=l.$implicit;e.xp6(1),e.Q6J("ngIf","simple"!==t.type),e.xp6(1),e.Q6J("ngIf","objects"===t.type),e.xp6(1),e.Q6J("ngIf","object"===t.type)}}function oe(a,l){if(1&a&&e.YNc(0,ae,4,3,"div",22),2&a){const t=l.variables,i=e.oxw(2);e.Q6J("ngForOf",t)("ngForTrackBy",i.trackByVariable)}}function re(a,l){1&a&&e.GkF(0,21)}function le(a,l){if(1&a&&e._UZ(0,"nz-option",15),2&a){const t=e.oxw().$implicit,i=e.oxw().parentVariableName;e.Q6J("nzValue",t)("nzLabel",t.name+i)}}function y(a,l){1&a&&e.GkF(0,21)}function d(a,l){if(1&a&&(e.TgZ(0,"div"),e._UZ(1,"nz-option",15),e.YNc(2,y,1,0,"ng-container",11),e.ALo(3,"translate"),e.qZA()),2&a){const t=l.$implicit,i=l.index,o=e.oxw(2).$implicit,p=e.oxw().parentVariableName;e.oxw();const _=e.MAs(20);e.xp6(1),e.Q6J("nzValue",t)("nzLabel",o.name+" "+(i+1)+p),e.xp6(1),e.Q6J("ngTemplateOutlet",_)("ngTemplateOutletContext",e.WLB(9,P,t,e.xi3(3,4,"ADMIN.VARIABLES.IN",e.VKq(7,D,o.name+" "+(i+1)))+p))}}function s(a,l){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,d,4,12,"div",22),e.qZA()),2&a){const t=e.oxw().$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.value)("ngForTrackBy",i.trackByVariable)}}function r(a,l){1&a&&e.GkF(0,21)}function u(a,l){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,r,1,0,"ng-container",11),e.ALo(2,"translate"),e.qZA()),2&a){const t=e.oxw().$implicit,i=e.oxw().parentVariableName;e.oxw();const o=e.MAs(20);e.xp6(1),e.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",e.WLB(7,P,t.value,e.xi3(2,2,"ADMIN.VARIABLES.IN",e.VKq(5,D,t.name))+i))}}function m(a,l){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,le,1,2,"nz-option",23),e.YNc(2,s,2,2,"div",24),e.YNc(3,u,3,10,"div",24),e.qZA()),2&a){const t=l.$implicit;e.xp6(1),e.Q6J("ngIf","simple"!==t.type),e.xp6(1),e.Q6J("ngIf","objects"===t.type),e.xp6(1),e.Q6J("ngIf","object"===t.type)}}function g(a,l){if(1&a&&e.YNc(0,m,4,3,"div",22),2&a){const t=l.variables,i=e.oxw(2);e.Q6J("ngForOf",t)("ngForTrackBy",i.trackByVariable)}}const x=function(a){return{variables:a,parentVariableName:""}};function B(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"form",7),e.NdJ("keydown.enter",function(o){e.CHM(t);const p=e.oxw();return e.KtG(p.copyObjectWithEnter(o))}),e.TgZ(1,"nz-form-item",8)(2,"nz-form-label",9),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"nz-form-control")(6,"nz-select",10),e.YNc(7,$,1,0,"ng-container",11),e.YNc(8,oe,1,2,"ng-template",null,12,e.W1O),e.qZA()()(),e.TgZ(10,"nz-form-item",8)(11,"nz-form-label",13),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"nz-form-control")(15,"nz-select",14),e.NdJ("ngModelChange",function(o){e.CHM(t);const p=e.oxw();return e.KtG(p.handleCopyObjectToChange(o))}),e._UZ(16,"nz-option",15),e.ALo(17,"translate"),e.YNc(18,re,1,0,"ng-container",11),e.YNc(19,g,1,2,"ng-template",null,16,e.W1O),e.qZA()()(),e.TgZ(21,"nz-form-item",8)(22,"nz-form-control",17),e._UZ(23,"input",18),e.ALo(24,"translate"),e.ALo(25,"as"),e.qZA()(),e.TgZ(26,"button",19),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.copyObject())}),e._UZ(27,"i",20),e._uU(28),e.ALo(29,"translate"),e.qZA()()}if(2&a){const t=e.MAs(9),i=e.MAs(20),o=e.oxw();
54e.Q6J("formGroup",o.copyObjectForm),e.xp6(3),e.Oqu(e.lcZ(4,16,"ADMIN.VARIABLES.FROM")),e.xp6(3),e.Q6J("nzShowSearch",!0),e.xp6(1),e.Q6J("ngTemplateOutlet",t)("ngTemplateOutletContext",e.VKq(29,x,o.variables)),e.xp6(5),e.Oqu(e.lcZ(13,18,"ADMIN.VARIABLES.TO")),e.xp6(3),e.Q6J("nzShowSearch",!0),e.xp6(1),e.Q6J("nzValue",o.variables)("nzLabel",e.lcZ(17,20,"ADMIN.VARIABLES.ROOT")),e.xp6(2),e.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",e.VKq(31,x,o.variables)),e.xp6(5),e.Q6J("readOnly",o.copyObjectForm.controls.to.value&&o.copyObjectForm.controls.to.value.type&&"objects"===o.copyObjectForm.controls.to.value.type)("placeholder",e.lcZ(24,22,"ADMIN.VARIABLES.NAME_PLACEHOLDER"))("formControl",e.xi3(25,24,o.copyObjectForm.controls.name,o.FormControl)),e.xp6(3),e.Q6J("disabled",!o.copyObjectForm.valid),e.xp6(2),e.hij(" ",e.lcZ(29,27,"ADMIN.VARIABLES.COPY_OBJECT")," ")}}function ce(a,l){1&a&&e._UZ(0,"nz-divider")}function se(a,l){if(1&a&&(e._uU(0),e.ALo(1,"translate"),e.TgZ(2,"div",30),e._uU(3),e.qZA()),2&a){const t=e.oxw().index,i=e.oxw(2).$implicit,o=e.oxw();e.hij(" ",e.lcZ(1,2,"ADMIN.VARIABLES.VARIABLE_FOR")," "),e.xp6(3),e.hij(" ",i.name+" "+(t+1)+(o.parentVariableName?" in "+o.parentVariableName:"")," ")}}function pe(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"div"),e._UZ(1,"nz-divider",27),e.YNc(2,se,4,4,"ng-template",null,28,e.W1O),e.TgZ(4,"app-variable-definition",29),e.NdJ("variablesChange",function(o){e.CHM(t);const p=e.oxw(2).index,_=e.oxw();return e.KtG(_.emitAndSave(o,p,_.level+1))}),e.ALo(5,"as"),e.qZA()()}if(2&a){const t=l.$implicit,i=l.index,o=e.MAs(3),p=e.oxw(2).$implicit,_=e.oxw();e.xp6(1),e.Q6J("nzText",o),e.xp6(3),e.Q6J("variables",e.xi3(5,5,t,_.VariableArr))("parentVariableType",p.type)("parentVariableName",p.name+" "+(i+1)+(_.parentVariableName?" in "+_.parentVariableName:""))("level",_.level+1)}}function me(a,l){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,pe,6,8,"div",22),e.ALo(2,"as"),e._UZ(3,"nz-divider"),e.qZA()),2&a){const t=e.oxw().$implicit,i=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.xi3(2,2,t.value,i.VariableArrArr))("ngForTrackBy",i.trackByVariable)}}function de(a,l){if(1&a&&(e._uU(0),e.ALo(1,"translate"),e.TgZ(2,"div",30),e._uU(3),e.qZA()),2&a){const t=e.oxw(2).$implicit,i=e.oxw();e.hij(" ",e.lcZ(1,2,"ADMIN.VARIABLES.VARIABLE_FOR")," "),e.xp6(3),e.Oqu(t.name+(i.parentVariableName?" in "+i.parentVariableName:""))}}function ue(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"div"),e._UZ(1,"nz-divider",27),e.YNc(2,de,4,4,"ng-template",null,28,e.W1O),e.TgZ(4,"app-variable-definition",29),e.NdJ("variablesChange",function(o){e.CHM(t);const p=e.oxw().index,_=e.oxw();return e.KtG(_.emitAndSave(o,p,_.level+1))}),e.ALo(5,"as"),e.qZA(),e._UZ(6,"nz-divider"),e.qZA()}if(2&a){const t=e.MAs(3),i=e.oxw().$implicit,o=e.oxw();e.xp6(1),e.Q6J("nzText",t),e.xp6(3),e.Q6J("variables",e.xi3(5,5,i.value,o.VariableArr))("parentVariableType",i.type)("parentVariableName",i.name+(o.parentVariableName?" in "+o.parentVariableName:""))("level",o.level+1)}}const ge=function(a){return{coloredBackground:a}};function fe(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"div",25),e.YNc(1,ce,1,0,"nz-divider",24),e.TgZ(2,"app-variable-form",26),e.NdJ("onChange",function(o){const _=e.CHM(t).index,f=e.oxw();return e.KtG(f.emitAndSave(o,_,f.level))}),e.qZA(),e.YNc(3,me,4,5,"div",24),e.YNc(4,ue,7,8,"div",24),e.qZA()}if(2&a){const t=l.$implicit,i=e.oxw();e.Q6J("ngClass",e.VKq(7,ge,"simple"!==t.type)),e.xp6(1),e.Q6J("ngIf","objects"===t.type||"object"===t.type),e.xp6(1),e.Q6J("level",i.level)("variable",t)("validationTrigger",i.validationTrigger),e.xp6(1),e.Q6J("ngIf","objects"===t.type),e.xp6(1),e.Q6J("ngIf","object"===t.type)}}function he(a,l){if(1&a&&(e.TgZ(0,"div",31),e._uU(1," to "),e.TgZ(2,"div",30),e._uU(3),e.qZA()()),2&a){const t=e.oxw();e.xp6(3),e.hij(" ",t.parentVariableName," ")}}function ve(a,l){if(1&a&&(e.TgZ(0,"div",31),e._uU(1," to "),e.TgZ(2,"div",30),e._uU(3),e.qZA()()),2&a){const t=e.oxw(2);e.xp6(3),e.hij(" ",t.parentVariableName," ")}}function be(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"div",2)(1,"button",3),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.createNewObjectRow())}),e._UZ(2,"i",4),e._uU(3),e.ALo(4,"translate"),e.YNc(5,ve,4,1,"div",5),e.qZA()()}if(2&a){const t=e.oxw();e.xp6(3),e.hij(" ",e.lcZ(4,2,"ADMIN.VARIABLES.ADD_OBJECT")," "),e.xp6(2),e.Q6J("ngIf",t.parentVariableName&&t.parentVariableName.length>0)}}function Ce(a,l){if(1&a&&(e.TgZ(0,"div",31),e._uU(1," to "),e.TgZ(2,"div",30),e._uU(3),e.qZA()()),2&a){const t=e.oxw(2);e.xp6(3),e.hij(" ",t.parentVariableName," ")}}function xe(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"div",2)(1,"button",3),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.createNewComplexRow())}),e._UZ(2,"i",4),e._uU(3),e.ALo(4,"translate"),e.YNc(5,Ce,4,1,"div",5),e.qZA()()}if(2&a){const t=e.oxw();e.xp6(3),e.hij(" ",e.lcZ(4,2,"ADMIN.VARIABLES.ADD_OBJECT_LIST")," "),e.xp6(2),e.Q6J("ngIf",t.parentVariableName&&t.parentVariableName.length>0)}}let Ae=(()=>{class a{constructor(t){this.formService=t,this.variablesChange=new e.vpe,this.parentVariableName="",this.level=0,this.levelDepthLimit=4,this.invalidIndexes=new Map,this.Array=Array,this.validationTrigger=new e.vpe,this.FormControl=h.p4,this.VariableArr=null,this.VariableArrArr=null}ngOnInit(){0===this.level&&null==this.variables&&(this.variables=[]),0===this.level&&(this.copyObjectForm=this.formService.copyObjectFormGroup(null,null,""))}buildEditorVariables(t){const i={};return t.forEach(o=>{"simple"===o.type?i[o.name]=1!==o.value.length||o.forceArray?o.value:o.value[0]:"object"===o.type?i[o.name]=this.buildEditorVariables(o.value):"objects"===o.type&&(i[o.name]=o.value.map(p=>this.buildEditorVariables(p)))}),i}createNewRow(){const t=b._.empty();this.variables.push(t),this.emitAndSave({variable:t,isValid:!1},this.variables.length-1,this.level)}emitAndSave(t,i,o){if(t.isValid){if(this.invalidIndexes.has(i)){const p=this.invalidIndexes.get(i),_=p.findIndex(f=>f===o);_>-1&&(p.splice(_,1),0===p.length&&this.invalidIndexes.delete(i)),null===t.variable&&Array.from(this.invalidIndexes.keys()).forEac
54h(f=>{f>i&&(this.invalidIndexes.set(f-1,this.invalidIndexes.get(f)),this.invalidIndexes.delete(f))}),o!==this.level&&p.includes(this.level)&&this.validationTrigger.emit()}}else if(!t.isValid)if(this.invalidIndexes.has(i)){const p=this.invalidIndexes.get(i);-1===p.findIndex(f=>f===o)&&p.push(o)}else this.invalidIndexes.set(i,[o]);null==t.variable||Array.isArray(t.variable)?null===t.variable&&this.variables.splice(i,1):(this.variables[i].name=t.variable.name,this.variables[i].type=t.variable.type,this.variables[i].value=t.variable.value,this.variables[i].forceArray=t.variable.forceArray),this.variablesChange.emit(0===this.level?{variable:this.buildEditorVariables(this.variables),isValid:(0===this.level||this.variables.length>0)&&0===this.invalidIndexes.size}:{variable:void 0,isValid:(0===this.level||this.variables.length>0)&&0===this.invalidIndexes.size})}createNewComplexRow(){const t=b._.emptyComplex();this.variables.push(t),this.emitAndSave({variable:t,isValid:!1},this.variables.length-1,this.level)}createNewObjectRow(){const t=b._.emptyObject();this.variables.push(t),this.emitAndSave({variable:t,isValid:!1},this.variables.length-1,this.level)}handleCopyObjectToChange(t){t&&t instanceof b._&&"objects"===t.type&&this.copyObjectForm.patchValue({name:null})}copyObjectWithEnter(t){this.formService.triggerAutoSubmitWithEnter(t),this.copyObject()}copyObject(){if(this.copyObjectForm.valid){const{from:t,to:i,name:o}=this.formService.groupToCopyObject(this.copyObjectForm);this.copyVariable(t,i,o),this.variablesChange.emit({variable:this.buildEditorVariables(this.variables),isValid:(0===this.level||this.variables.length>0)&&0===this.invalidIndexes.size})}}copyVariable(t,i,o){const p=o||(t instanceof b._?t.name:void 0);if(Array.isArray(t))if(i instanceof b._&&"object"===i.type&&p){const _=new b._(p,[],"object");t.forEach(f=>{this.copyVariable(f,_)}),i.value.push(_)}else if(Array.isArray(i)&&p){const _=new b._(p,[],"object");t.forEach(f=>{this.copyVariable(f,_)}),i.push(_)}else if(i instanceof b._&&"objects"===i.type&&!p){const _=[];t.forEach(f=>{this.copyVariable(f,_)}),i.value.push(_)}else Array.isArray(i)&&!p&&t.forEach(_=>{this.copyVariable(_,i)});else if("simple"===t.type){const _=new b._(p,Object.assign([],t.value),t.type,t.forceArray);i instanceof b._?i.value.push(_):i.push(_)}else if("object"===t.type){if("objects"===i.type){const _=[];this.copyVariable(t.value,_),i.value.push(_)}else if("object"===i.type){const _=new b._(p,[],t.type);t.value.forEach(f=>this.copyVariable(f,_)),i.value.push(_)}else if(Array.isArray(i)){const _=new b._(p,[],t.type);t.value.forEach(f=>this.copyVariable(f,_)),i.push(_)}}else if("objects"===t.type)if("objects"===i.type)t.value.forEach(_=>{const f=[];this.copyVariable(_,f),i.value.push(f)});else if("object"===i.type){const _=new b._(p,[],t.type);t.value.forEach(f=>{const R=[];this.copyVariable(f,R),_.value.push(R)}),i.value.push(_)}else if(Array.isArray(i)){const _=new b._(p,[],t.type);t.value.forEach(f=>{const R=[];this.copyVariable(f,R),_.value.push(R)}),i.push(_)}}trackByVariable(t,i){return Array.isArray(i)?t:i.ID}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(w.o))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-variable-definition"]],inputs:{variables:"variables",parentVariableName:"parentVariableName",parentVariableType:"parentVariableType",level:"level"},outputs:{variablesChange:"variablesChange"},decls:10,vars:9,consts:[["nz-form","","class","row m-0","nzNoColon","",3,"formGroup","keydown.enter",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[1,"w-100","text-center"],["nz-button","","nzType","dashed",1,"add-button",3,"click"],["nz-icon","","nzType","plus"],["class","inlineDiv",4,"ngIf"],["class","w-100 text-center",4,"ngIf"],["nz-form","","nzNoColon","",1,"row","m-0",3,"formGroup","keydown.enter"],[1,"col-6"],["nzFor","from","nzRequired",""],["formControlName","from",3,"nzShowSearch"],["class","template",4,"ngTemplateOutlet","ngTemplateOutletContext"],["objectFromList",""],["nzFor","to","nzRequired",""],["formControlName","to",3,"nzShowSearch","ngModelChange"],[3,"nzValue","nzLabel"],["objectToList",""],["nzErrorTip","Variable name should not be empty!"],["id","name","type","text","aria-label","New variable name","nz-input","","trim","blur",1,"form-control",3,"readOnly","placeholder","formControl"],["nz-button","","nzType","dashed",1,"col-6",3,"disabled","click"],["nz-icon","","nzType","copy"],[1,"template"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzValue","nzLabel",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],[3,"level","variable","validationTrigger","onChange"],["nzOrientation","left",3,"nzText"],["templateRef",""],[3,"variables","parentVariableType","parentVariableName","level","variablesChange"],[1,"variableName"],[1,"inlineDiv"]],template:function(t,i){1&t&&(e.YNc(0,B,30,33,"form",0),e.YNc(1,fe,5,9,"div",1),e.TgZ(2,"div",2)(3,"button",3),e.NdJ("click",function(){return i.createNewRow()}),e._UZ(4,"i",4),e._uU(5),e.ALo(6,"translate"),e.YNc(7,he,4,1,"div",5),e.qZA()(),e.YNc(8,be,6,4,"div",6),e.YNc(9,xe,6,4,"div",6)),2&t&&(e.Q6J("ngIf",0===i.level&&i.copyObjectForm),e.xp6(1),e.Q6J("ngForOf",i.variables)("ngForTrackBy",i.trackByVariable),e.xp6(4),e.hij(" ",e.lcZ(6,7,"ADMIN.VARIABLES.ADD_FIELD")," "),e.xp6(2),e.Q6J("ngIf",i.parentVariableName&&i.parentVariableName.length>0),e.xp6(1),e.Q6J("ngIf",(!i.parentVariableType||"simple"!==i.parentVariableType)&&i.level<i.levelDepthLimit),e.xp6(1),e.Q6J("ngIf",(!i.parentVariableType||"simple"!==i.parentVariableType)&&i.level<i.levelDepthLimit))},dependencies:[h._Y,h.Fj,h.JJ,h.JL,A.mk,A.sg,A.O5,A.tP,z.P,h.oH,h.sg,h.u,n.ix,N.w,T.dQ,I.g,v.t3,v.SK,C.Lr,C.Nx,C.iK,C.Fd,V.Ls,E.Zp,S.Ip,S.Vq,a,M,J.X$,U.j],styles:['@charset "UTF-8";.add-button[_ngcontent-%COMP%]{width:60%;white-space:normal;height:auto}  .ant-select-item-option-content{white-space:normal;height:auto}nz-divider[_ngcontent-%COMP%]{width:calc(100% + 3rem + 18px);left:calc(-1.5rem - 9px)}.variableName[_ngcontent-%COMP%]{font-family:monospace;display:inline}.inlineDiv[_ngcontent-%COMP%]{display:inline}
54.coloredBackground[_ngcontent-%COMP%]:nth-child(0){background-color:#fde8fe}.coloredBackground[_ngcontent-%COMP%]:nth-child(1){background-color:#f7ede7}.coloredBackground[_ngcontent-%COMP%]:nth-child(2){background-color:#fce5f5}.coloredBackground[_ngcontent-%COMP%]:nth-child(3){background-color:#f3f6fe}.coloredBackground[_ngcontent-%COMP%]:nth-child(4){background-color:#e4fbef}.coloredBackground[_ngcontent-%COMP%]:nth-child(5){background-color:#e7e9f1}.coloredBackground[_ngcontent-%COMP%]:nth-child(6){background-color:#f2fbe5}.coloredBackground[_ngcontent-%COMP%]:nth-child(7){background-color:#e7e7e4}.coloredBackground[_ngcontent-%COMP%]:nth-child(8){background-color:#eff2e8}.coloredBackground[_ngcontent-%COMP%]:nth-child(9){background-color:#f6edea}.coloredBackground[_ngcontent-%COMP%]:nth-child(10){background-color:#fbf5ed}.coloredBackground[_ngcontent-%COMP%]:nth-child(11){background-color:#f4f8ec}.coloredBackground[_ngcontent-%COMP%]:nth-child(12){background-color:#eff4fb}.coloredBackground[_ngcontent-%COMP%]:nth-child(13){background-color:#f5e2e2}.coloredBackground[_ngcontent-%COMP%]:nth-child(14){background-color:#feeced}.coloredBackground[_ngcontent-%COMP%]:nth-child(15){background-color:#e4f4e7}.coloredBackground[_ngcontent-%COMP%]:nth-child(16){background-color:#fee9f7}.coloredBackground[_ngcontent-%COMP%]:nth-child(17){background-color:#fef0ea}.coloredBackground[_ngcontent-%COMP%]:nth-child(18){background-color:#eef6f6}.coloredBackground[_ngcontent-%COMP%]:nth-child(19){background-color:#f2f2f8}.coloredBackground[_ngcontent-%COMP%]:nth-child(20){background-color:#fdf6e3}.coloredBackground[_ngcontent-%COMP%]:nth-child(21){background-color:#f4f8f2}.coloredBackground[_ngcontent-%COMP%]:nth-child(22){background-color:#e5f0fc}.coloredBackground[_ngcontent-%COMP%]:nth-child(23){background-color:#f1ebef}.coloredBackground[_ngcontent-%COMP%]:nth-child(24){background-color:#fefdef}.coloredBackground[_ngcontent-%COMP%]:nth-child(25){background-color:#e2efed}.coloredBackground[_ngcontent-%COMP%]:nth-child(26){background-color:#f6ede3}.coloredBackground[_ngcontent-%COMP%]:nth-child(27){background-color:#eaf4f4}.coloredBackground[_ngcontent-%COMP%]:nth-child(28){background-color:#fff5f3}.coloredBackground[_ngcontent-%COMP%]:nth-child(29){background-color:#fae7ff}']}),a})()},15681:(_e,Z,c)=>{c.d(Z,{V:()=>N});var e=c(94650),b=c(87341),h=c(30144),w=c(36895),A=c(63545),z=c(14789);const n=function(T,I,v){return{"is-folded":T,"is-side-nav-dark":I,"is-expand":v}};let N=(()=>{class T{constructor(v){this.themeService=v}ngOnInit(){this.themeService.isMenuFoldedChanges.subscribe(v=>this.isFolded=v),this.themeService.isSideNavDarkChanges.subscribe(v=>this.isSideNavDark=v),this.themeService.selectedHeaderColor.subscribe(v=>this.selectedHeaderColor=v),this.themeService.isExpandChanges.subscribe(v=>this.isExpand=v)}handleSwipeLeft(v){this.themeService.toggleExpand(!1)}handleSwipeRight(v){this.themeService.toggleExpand(!0)}}return T.\u0275fac=function(v){return new(v||T)(e.Y36(b.w))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-full-layout"]],decls:6,vars:8,consts:[[3,"ngClass","panleft","panright"],[1,"page-container"],[1,"main-content"]],template:function(v,C){1&v&&(e.TgZ(0,"div",0),e.NdJ("panleft",function(E){return C.handleSwipeLeft(E)})("panright",function(E){return C.handleSwipeRight(E)}),e._UZ(1,"app-admin-header")(2,"app-sidenav"),e.TgZ(3,"div",1)(4,"div",2),e._UZ(5,"router-outlet"),e.qZA()()()),2&v&&(e.Gre("common-layout ","is-"+C.selectedHeaderColor,""),e.Q6J("ngClass",e.kEZ(4,n,C.isFolded,C.isSideNavDark,C.isExpand)))},dependencies:[h.lC,w.mk,A.I,z.W],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}[_nghost-%COMP%]   .container-fluid[_ngcontent-%COMP%]{padding-top:70px}']}),T})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.