PageSourceSearch

https://szerzi.hu/common-0ed918c3.28a97f45d4b50520.js

js szerzi.hu collected 2026-10-04 13:25:55 UTC 27,492 bytes, 27 lines download raw bytes

1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[8346],{55477:(rt,E,r)=>{r.d(E,{t:()=>_});var S=r(97582),e=r(94650),x=r(22971),p=r(44224),A=r(28736),O=r(44569),C=r(92961),N=r(14700),u=r(73775),M=r(50211),L=r(39889),z=r(90735),D=r(55089),I=r(47959),Z=r(8269),w=r(49651),T=r(32925),H=r(61479),f=r(39359),R=r(81664),y=r(54584),d=r(24006),P=r(30144),l=r(36895),U=r(87918),F=r(2293),k=r(74383),J=r(70048),Q=r(66616),W=r(47044),Y=r(21811),B=r(4788),v=r(73679),K=r(47423),h=r(35635),m=r(20545),b=r(37570),G=r(45144),j=r(14954),$=r(70087),V=r(81801),q=r(35232);
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 X=["buttonCreate"],ee=["searchInputElement"];function te(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"i",13),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.clearSearch())}),e.qZA()}}function ne(n,i){if(1&n&&e.YNc(0,te,1,0,"i",12),2&n){const t=e.oxw();e.Q6J("ngIf",""!==t.search)}}function ie(n,i){1&n&&e.GkF(0)}function oe(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,ie,1,0,"ng-container",19),e.qZA()),2&n){e.oxw(2);const t=e.MAs(27);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}const g=function(){return{phone:35,x:40}};function ae(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",21),e.NdJ("click",function(){const s=e.CHM(t).$implicit,c=e.oxw(3);return e.KtG(c.goToContract(s))}),e._UZ(1,"app-contract-progress-logo",22),e.ALo(2,"contractParser"),e.TgZ(3,"div",23),e._uU(4),e.ALo(5,"contractParser"),e.ALo(6,"limitTo"),e.ALo(7,"contractParser"),e.ALo(8,"limitTo"),e.TgZ(9,"p",24),e.ALo(10,"contractParser"),e.ALo(11,"date"),e.ALo(12,"contractParser"),e.ALo(13,"date"),e.ALo(14,"contractParser"),e._uU(15),e.ALo(16,"contractParser"),e.ALo(17,"translate"),e.ALo(18,"translate"),e.ALo(19,"contractParser"),e.ALo(20,"dateAgo"),e.ALo(21,"contractParser"),e.ALo(22,"dateAgo"),e.ALo(23,"contractParser"),e.qZA()()()}if(2&n){const t=i.$implicit,o=e.oxw(3);e.xp6(1),e.Q6J("isComplete",e.lcZ(2,5,t).complete),e.xp6(3),e.hij(" ",e.lcZ(5,7,t).metadata.name?e.Dn7(6,9,e.lcZ(7,13,t).metadata.name,e.DdM(49,g),o.windowWidth):e.Dn7(8,15,t.displayElements.name,e.DdM(50,g),o.windowWidth)," "),e.xp6(5),e.Q6J("nzTooltipTitle",e.lcZ(10,19,t).metadata.update?e.xi3(11,21,e.lcZ(12,24,t).metadata.update.timestamp,"yyyy-MM-dd HH:mm:ss"):e.xi3(13,26,e.lcZ(14,29,t).metadata.creation.timestamp,"yyyy-MM-dd HH:mm:ss")),e.xp6(6),e.AsE(" ",e.lcZ(16,31,t).metadata.update?e.lcZ(17,33,"COMMON.CONTRACT.INFO.MODIFIED"):e.lcZ(18,35,"COMMON.CONTRACT.INFO.CREATED")," ",e.lcZ(19,37,t).metadata.update?e.xi3(20,39,e.lcZ(21,42,t).metadata.update.timestamp,o.trigger):e.xi3(22,44,e.lcZ(23,47,t).metadata.creation.timestamp,o.trigger)," ")}}function re(n,i){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,ae,24,51,"div",20),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.contractsShownExamples)}}function se(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8)(1,"div")(2,"div",14)(3,"h5",15),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"button",16),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return a.routerService.routeToContractList(),e.KtG(a.clicked.emit(!0))}),e._uU(7),e.ALo(8,"translate"),e._UZ(9,"span",17),e.qZA()(),e.YNc(10,oe,2,1,"div",9),e.YNc(11,re,2,1,"div",7),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(4),e.hij(" ",e.lcZ(5,5,t.userType===t.UserType.Client?"COMMON.HEADER.SEARCH.RECENT_CONTRACTS":"COMMON.HEADER.SEARCH.RECENT_CONTRACTS_LAWYER")," "),e.xp6(3),e.hij(" ",e.lcZ(8,7,"COMMON.HEADER.SEARCH.SHOW_ALL")," "),e.xp6(2),e.Q6J("nzRotate",90),e.xp6(1),e.Q6J("ngIf",t.loadingContracts),e.xp6(1),e.Q6J("ngIf",!t.loadingContracts)}}function ce(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",30),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(3);return a.routerService.routeToContractCreate(),e.KtG(a.clicked.emit
27(!0))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.CONTRACT.FUNCTIONS.CREATE_NOW")," "))}function _e(n,i){if(1&n&&(e.TgZ(0,"nz-empty",28),e.ALo(1,"translate"),e.YNc(2,ce,3,3,"ng-template",null,29,e.W1O),e.qZA()),2&n){const t=e.MAs(3);e.Q6J("nzNotFoundContent",e.lcZ(1,3,"CLIENT.CONTRACTS.WARNING.NO"))("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundFooter",t)}}function le(n,i){1&n&&(e._UZ(0,"nz-empty",31),e.ALo(1,"translate")),2&n&&e.Q6J("nzNotFoundContent",e.lcZ(1,2,"CLIENT.CONTRACTS.WARNING.SHARED.NO_FILTERED"))("nzNotFoundImage","assets/images/empty-icon.svg")}function pe(n,i){1&n&&e._UZ(0,"hr")}function de(n,i){if(1&n&&(e.TgZ(0,"div")(1,"div",25),e.YNc(2,_e,4,5,"nz-empty",26),e.YNc(3,le,2,4,"nz-empty",27),e.YNc(4,pe,1,0,"hr",7),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.userService.isClient),e.xp6(1),e.Q6J("ngIf",t.userService.isLawyer),e.xp6(1),e.Q6J("ngIf",!t.loadingChat&&t.chatsShown&&0!==t.chatsShown.length)}}const he=function(n){return{searchText:n}};function me(n,i){if(1&n&&(e.TgZ(0,"div")(1,"div",25),e._UZ(2,"nz-empty",31),e.ALo(3,"translate"),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("nzNotFoundContent",e.xi3(3,2,"COMMON.HEADER.SEARCH.NOT_FOUND",e.VKq(5,he,t.search)))("nzNotFoundImage","assets/images/empty-icon.svg")}}function ge(n,i){1&n&&e.GkF(0)}function Ce(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,ge,1,0,"ng-container",19),e.qZA()),2&n){e.oxw(2);const t=e.MAs(27);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function ue(n,i){if(1&n&&e._UZ(0,"nz-avatar",36),2&n){const t=e.oxw().$implicit,o=e.oxw(4);e.Q6J("nzSrc",o.imagesToShow[t.userID])}}function Te(n,i){if(1&n&&(e.ynx(0),e.YNc(1,ue,1,1,"nz-avatar",35),e.BQk()),2&n){const t=i.$implicit,o=e.oxw(4);e.xp6(1),e.Q6J("ngIf",t.userID!==o.userService.sessionUserID)}}function fe(n,i){if(1&n&&e._UZ(0,"nz-badge",39),2&n){const t=e.oxw(2).$implicit,o=e.oxw(3);e.Q6J("nzDot",o.gotNewMessage.get(t.chatID))}}function ve(n,i){if(1&n&&(e.TgZ(0,"p",37),e._uU(1),e.ALo(2,"limitTo"),e.YNc(3,fe,1,1,"nz-badge",38),e.qZA()),2&n){const t=i.$implicit,o=e.oxw(4);e.xp6(1),e.hij(" ",t.userID!==o.userService.sessionUserID?e.Dn7(2,2,t.name,e.DdM(6,g),o.windowWidth):""," "),e.xp6(2),e.Q6J("ngIf",t.userID!==o.userService.sessionUserID)}}function Ee(n,i){1&n&&(e.TgZ(0,"label",40),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"CLIENT.LOBBY.NEW")))}function Se(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",21),e.NdJ("click",function(){const s=e.CHM(t).$implicit,c=e.oxw(3);return c.routerService.routeToChatByID(s.chatID),e.KtG(c.clicked.emit(!0))}),e.YNc(1,Te,2,1,"ng-container",32),e.TgZ(2,"div",23),e.YNc(3,ve,4,7,"p",33),e.TgZ(4,"p",24),e.ALo(5,"date"),e.YNc(6,Ee,3,3,"label",34),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"dateAgo"),e.qZA()()()}if(2&n){const t=i.$implicit,o=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.participants),e.xp6(2),e.Q6J("ngForOf",t.participants),e.xp6(1),e.Q6J("nzTooltipTitle",e.xi3(5,6,o.getLatestTimestamp(t),"yyyy-MM-dd HH:mm:ss")),e.xp6(2),e.Q6J("ngIf",o.gotNewMessage.get(t.chatID)),e.xp6(1),e.AsE(" ",e.lcZ(8,9,"COMMON.HEADER.SEARCH.LAST_MESSAGE")," ",e.xi3(9,11,o.getLatestTimestamp(t),o.trigger)," ")}}function xe(n,i){if(1&n&&(e.ynx(0),e.YNc(1,Se,10,14,"div",20),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.chatsShown)}}function Ae(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8)(1,"div")(2,"div",14)(3,"h5",15),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"button",16),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return a.routerService.routeToChat(),e.KtG(a.clicked.emit(!0))}),e._uU(7),e.ALo(8,"translate"),e._UZ(9,"span",17),e.qZA()(),e.YNc(10,Ce,2,1,"div",9),e.YNc(11,xe,2,1,"ng-container",7),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(4),e.hij(" ",e.lcZ(5,5,"COMMON.HEADER.SEARCH.RECENT_CONVERSATIONS")," "),e.xp6(3),e.hij(" ",e.lcZ(8,7,"COMMON.HEADER.SEARCH.SHOW_ALL")," "),e.xp6(2),e.Q6J("nzRotate",90),e.xp6(1),e.Q6J("ngIf",t.loadingChat),e.xp6(1),e.Q6J("ngIf",!t.loadingChat)}}function Oe(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",30),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return a.modalService.newConversationWithMailModal(),e.KtG(a.clicked.emit
27(!0))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONVERSATIONS.FUNCTIONS.CREATE")," "))}function Ne(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"div",25)(2,"nz-empty",41),e.ALo(3,"translate"),e.YNc(4,Oe,3,3,"ng-template",null,42,e.W1O),e.qZA()(),e.BQk()),2&n){const t=e.MAs(5);e.xp6(2),e.s9C("nzNotFoundContent",e.lcZ(3,3,"CLIENT.CONVERSATIONS.NOT_FOUND_CONTENT")),e.Q6J("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundFooter",t)}}function Me(n,i){1&n&&e.GkF(0)}function Le(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,Me,1,0,"ng-container",19),e.qZA()),2&n){e.oxw();const t=e.MAs(27);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}const ze=function(n){return{name:n}};function De(n,i){if(1&n&&(e._uU(0),e.ALo(1,"translate")),2&n){const t=e.oxw(2).$implicit;e.hij(" ",e.xi3(1,1,"COMMON.HEADER.SEARCH.CREATE_BUTTON.DEFAULT",e.VKq(4,ze,t.formDisplayElements.name)),"}")}}function Ie(n,i){1&n&&e.YNc(0,De,2,6,"ng-template")}const Ze=function(n){return[n]};function we(n,i){if(1&n&&(e.TgZ(0,"div",47),e._UZ(1,"img",48),e.YNc(2,Ie,1,0,null,49),e.TgZ(3,"div",23),e._uU(4),e.TgZ(5,"p",50),e._UZ(6,"app-multi-state-button",51),e.qZA()()()),2&n){const t=i.$implicit,o=e.oxw(3);e.xp6(1),e.Q6J("src",o.ClientRoutes.apiRouteContractIcon(t.formDisplayElements.iconDark),e.LSH),e.xp6(3),e.hij(" ",t.formDisplayElements.name," "),e.xp6(2),e.Q6J("nzType","primary")("nzSize","small")("defaultFunction",o.defaultFunction)("defaultFunctionParameters",e.VKq(8,Ze,t))("stickResult",!1)("nzTextKeys",o.createText)}}function He(n,i){if(1&n&&(e.ynx(0),e.YNc(1,we,7,10,"div",46),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.contractsToCreateShownExamples)}}function Re(n,i){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div")(2,"div",43)(3,"h5",44),e._uU(4),e.ALo(5,"translate"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"button",45),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return a.routerService.routeToContractCreate(),e.KtG(a.clicked.emit(!0))}),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.YNc(10,He,2,1,"ng-container",7),e.qZA(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(4),e.hij(" ",t.userType===t.UserType.Client?e.lcZ(5,3,"COMMON.HEADER.SEARCH.CREATE"):e.lcZ(6,5,"COMMON.HEADER.SEARCH.CREATE_TEST")," "),e.xp6(4),e.hij(" ",e.lcZ(9,7,"COMMON.HEADER.SEARCH.SHOW_ALL")," "),e.xp6(2),e.Q6J("ngIf",t.contractsToCreateShown&&0!==t.contractsToCreateShown.length)}}function ye(n,i){1&n&&e.GkF(0)}function Pe(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,ye,1,0,"ng-container",19),e.qZA()),2&n){e.oxw();const t=e.MAs(27);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function Ue(n,i){if(1&n&&(e._UZ(0,"i",56),e.ALo(1,"as")),2&n){const t=e.oxw().$implicit,o=e.oxw(3);e.Q6J("nzType",t.icon)("theme",e.xi3(1,2,t.iconTheme,o.NzIconThemeType))}}function Fe(n,i){1&n&&e._UZ(0,"img",59)}function ke(n,i){if(1&n&&(e.TgZ(0,"i",57),e.YNc(1,Fe,1,0,"img",58),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf","dollar"===t.icon)}}const Je=function(){return{}};function Qe(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",53),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(3);return e.KtG(a.selectedNavLink())}),e.ALo(1,"localizeRoute"),e.YNc(2,Ue,2,5,"i",54),e.YNc(3,ke,2,1,"i",55),e.TgZ(4,"div",23),e._uU(5),e.qZA()()}if(2&n){const t=i.$implicit;e.Q6J("routerLink",e.lcZ(1,5,t.path))("queryParams",t.queryParams?t.queryParams:e.DdM(7,Je)),e.xp6(2),e.Q6J("ngIf","nzIcon"==t.iconType&&"dollar"!==t.icon),e.xp6(1),e.Q6J("ngIf","dollar"===t.icon),e.xp6(2),e.hij(" ",t.title," ")}}function We(n,i){if(1&n&&(e.ynx(0),e.YNc(1,Qe,6,8,"div",52),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.sideNavLinksShown)}}function Ye(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"div")(2,"div",43)(3,"h5",44),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,We,2,1,"ng-container",7),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(4),e.hij(" ",e.lcZ(5,2,"COMMON.HEADER.SEARCH.MENU_ITEMS")," "),e.xp6(2),e.Q6J("ngIf",t.sideNavLinksShown&&0!==t.sideNavLinksShown.length)}}function Be(n,i){1&n&&e.GkF(0)}function Ke(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,Be,1,0,"ng-container",19),e.qZA()),2&n){e.oxw();const t=e.MAs(27);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function be(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",61),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(3);return e.KtG(a.selectedNavLink())}),e.ALo(1,"localizeRoute"),e.TgZ(2,"div",23),e._uU(3),e.qZA()()}if(2&n){const t=i.$implicit,o=e.oxw(3);e.Q6J("routerLink",e.lcZ(1,2,"/"+o.PageRoutes.baseSettings+"/"+t.link)),e.xp6(3),e.hij(" ",t.title," ")}}function Ge(n,i){if(1&n&&(e.ynx(0),e.YNc(1,be,4,4,"div",60),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.profileNavLinksShown)}}function je(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"div")(2,"div",43)(3,"h5",44),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,Ge,2,1,"ng-container",7),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(4),e.hij(" ",e.lcZ(5,2,"COMMON.HEADER.SEARCH.SETTINGS")," "),e.xp6(2),e.Q6J("ngIf",t.profileNavLinksShown&&0!==t.profileNavLinksShown.length)}}function $e(n,i){1&n&&e._UZ(0,"i",62)}function Ve(n,i){1&n&&(e.TgZ(0,"div",47),e._UZ(1,"nz-skeleton-element",63),e.TgZ(2,"div",64),e._UZ(3,"nz-skeleton-element",65)(4,"br")(5,"nz-skeleton-element",66),e.qZA()()),2&n&&(e.xp6(1),e.Q6J("nzActive",!0)("nzSize",40),e.xp6(2),e.Q6J("nzActive",!0),e.xp6(2),e.Q6J("nzActive",!0))}function qe(n,i){1&n&&(e.YNc(0,Ve,6,4,"div",46),e.ALo(1,"numberArray")),2&n&&e.Q6J("ngForOf",e.lcZ(1,1,3))}const Xe=function(){return{autoHide:!1}};let _=class{constructor(i,t,o,a,s,c,et,tt,nt,it,ot,at){this.clientService=i,this.routerService=t,this.chat=o,this.userService=a,this.contractService=s,this.dateTrigger=c,this.nzMessage=et,this.translate=tt,this.resizeService=nt,this.contractParser=it,this.modalService=ot,this.lawyerValidationService=at,this.search="",this.chats=[],this.chatsShown=[],this.imagesToShow={},this.trigger=0,this.clicked=new e.vpe,this.gotNewMessage=new Map,this.loadingChat=!0,this.loadingContracts=!0,this.userType=this.userService.sessionType,this.UserType=x.FW,this.windowWidth=window.innerWidth,this.contractsToCreate=[],this.contractsToCreateShownExamples=[],this.createText=new C.PR("COMMON.HEADER.SEARCH.CREATE_BUTTON.CREATE","COMMON.HEADER.SEARCH.CREATE_BUTTON.WORKING","COMMON.HEADER.SEARCH.CREATE_BUTTON.SUCCESS","COMMON.HEADER.SEARCH.CREATE_BUTTON.FAILED"),this.ClientRoutes=A.i,this.PageRoutes=O.d,this.NzIconThemeType=null}ngOnInit(){this.defaultFunction=i=>this.createContract(i),this.opened.subscribe(i=>
27{i&&(this.search="",this.searchAll())}),this.resizeService.width.subscribe(i=>{this.windowWidth=i}),this.contractService.getAvailableContracts().then(i=>{this.contractsToCreate=i.sort((t,o)=>{const a=t.formDisplayElements.name.toUpperCase(),s=o.formDisplayElements.name.toUpperCase();return a<s?-1:a>s?1:0}),this.contractsToCreateShown=this.contractsToCreate,this.contractsToCreateShownExamples=this.contractsToCreate?this.contractsToCreate.slice(0,3):[]}),this.contracts=[],this.contractsShown=[],this.dateTrigger.trigger.subscribe(i=>{this.trigger=i}),this.chat.chatSnippetList&&this.handleConversations(this.chat.chatSnippetList),this.chat.messages.subscribe(i=>{this.handleConversations(i)}),this.contractService.contracts.subscribe(i=>{this.loadingContracts=!0,this.contracts=i,this.contractsShown=this.contracts,this.contractsShownExamples=this.contracts?this.contractsShown.slice(0,3):[],this.loadingContracts=!1}),this.translate.onLangChange.pipe((0,p.t)(this)).subscribe(()=>{this.refreshSideNavLinks(),this.refreshProfileNavLinks()}),this.refreshSideNavLinks(),this.refreshProfileNavLinks(),this.sideNavLinksShown=[],this.profileNavLinksShown=[]}handleConversations(i){this.loadingChat=!0,this.chats=i.sort((t,o)=>this.getLatestTimestamp(t)<this.getLatestTimestamp(o)?1:-1),0===this.chats.length&&this.chat.gotMessages&&(this.loadingChat=!1),this.chats.forEach((t,o)=>
27{t.participants.forEach(a=>{a.userID!==this.userService.sessionUserID?this.clientService.getImageByID(a.userID).pipe((0,p.t)(this)).subscribe(s=>{const c=new FileReader;c.addEventListener("load",()=>{this.imagesToShow[a.userID]=c.result},!1),s&&c.readAsDataURL(s)},s=>{},()=>{}):this.gotNewMessage.set(t.chatID,t.messages.length>0&&a.lastSeen<t.messages[0].timestamp||a.lastSeen<t.state.timestamp)}),o===this.chats.length-1&&(this.chatsShown=this.chats,this.loadingChat=!1)}),0===this.chats.length&&(this.loadingChat=!1)}getLatestTimestamp(i){return i.messages&&i.messages.length>0?i.messages[0].timestamp:i.state&&i.state.timestamp?i.state.timestamp:0}searchAll(){const i=Object.assign(this.contracts);this.contractsShown=i.filter(a=>a.progress&&a.progress.metadata.name&&a.progress.metadata.name.toLowerCase().includes(this.search.toLowerCase())||a.displayElements.name.toLowerCase().includes(this.search.toLowerCase())||a.displayElements.brief.toLowerCase().includes(this.search.toLowerCase())||a.displayElements.description.toLowerCase().includes(this.search.toLowerCase())||a.displayElements.brief.toLowerCase().includes(this.search.toLowerCase())||a.displayElements.description.toLowerCase().includes(this.search.toLowerCase())),this.contractsShownExamples=this.contracts?this.contractsShown.slice(0,3):[];const t=Object.assign(this.chats);this.chatsShown=t.filter(a=>a.participants.some(s=>s.name.toLowerCase().includes(this.search.toLowerCase())&&s.userID!==this.userService.sessionUserID));const o=Object.assign(this.contractsToCreate);this.contractsToCreateShown=o.filter(a=>a.formDisplayElements.name.toLowerCase().includes(this.search.toLowerCase())),this.contractsToCreateShownExamples=this.contractsToCreateShown?this.contractsToCreateShown.slice(0,3):[],this.sideNavLinksShown=this.sideNavLinks.reduce((a,s)=>this.matchSideNavLink(s,a),[]),this.profileNavLinksShown=this.profileNavLinks.filter(a=>a.title.toLowerCase().includes(this.search.toLowerCase()))}matchSideNavLink(i,t){return i.title.toLowerCase().includes(this.search.toLowerCase())&&t.push(i),i.submenu&&i.submenu.length>0&&i.submenu.forEach(o=>this.matchSideNavLink(o,t)),t}createContract(i){return this.contractService.create(i,this.contracts).then(t=>{t.created?this.routerService.routeToContract(t.progressID,!0):this.routerService.routeToContractFromCreate(t.progressID),this.clicked.emit(!0)})}focusSearch(){this.searchInputElement&&this.searchInputElement.nativeElement.focus()}clearSearch(){this.search="",this.searchAll()}goToContract(i){this.routerService.routeToContract(this.contractParser.transform(i).ID,!i.shared),this.clicked.emit(!0)}refreshSideNavLinks(){this.sideNavLinks=this.userService.isAdministrator?(0,u.t)(this.translate):(0,u.b)(this.translate).filter(i=>!i.restriction||i.restriction===this.userService.sessionType)}refreshProfileNavLinks(){this.profileNavLinks=Array.from((0,N.Q)(this.translate)).map(i=>i[1]).filter(i=>i.userTypes.includes(this.userService.sessionType)&&(this.userService.isClient||!i.needsLawyerVerification||this.lawyerValidationService&&this.lawyerValidationService.isVerified))}selectedNavLink(){this.clicked.emit(!0)}};_.\u0275fac=function(i){return new(i||_)(e.Y36(M.y),e.Y36(L.c),e.Y36(z.a),e.Y36(D.K),e.Y36(I.W),e.Y36(Z.J),e.Y36(w.dD),e.Y36(T.sK),e.Y36(H._),e.Y36(f.s),e.Y36(R.Z),e.Y36(y.w))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-client-header-search"]],viewQuery:function(i,t){if(1&i&&(e.Gf(X,5),e.Gf(ee,5)),2&i){let o;e.iGM(o=e.CRH())&&(t.buttonCreate=o.first),e.iGM(o=e.CRH())&&(t.searchInputElement=o.first)}},inputs:{opened:"opened"},outputs:{clicked:"clicked"},decls:28,vars:19,consts:[[1,"m-t-10",2,"width","100%","display","flex"],[1,"searchInputElement",2,"width","90%","margin-left","24px","margin-right","auto",3,"nzPrefix","nzSuffix","click"],["type","text","nz-input","",3,"placeholder","ngModel","ngModelChange"],["searchInputElement",""],["suffixTemplate",""],[1,"my-3","h-100",3,"options"],["class","position-relative",4,"ngIf"],[4,"ngIf"],[1,"position-relative"],["class","w-100",4,"ngIf"],["prefixTemplate",""],["loading",""],["nz-icon","","nzType","close-circle","class","opacity-04 search-remove-text-icon",3,"click",4,"ngIf"],["nz-icon","","nzType","close-circle",1,"opacity-04","search-remove-text-icon",3,"click"],["nz-col",""],[1,"search-subtitle"],["nz-button","","nzType","link",1,"find-all-title","link-like-button",3,"click"],["nz-icon","","nzType","select","nzTheme","outline",1,"m-l-5",3,"nzRotate"],[1,"w-100"],[4,"ngTemplateOutlet"],["class","d-flex p-10 sidebar-element","style","padding-left: 24px !important",3,"click",4,"ngFor","ngForOf"],[1,"d-flex","p-10","
27sidebar-element",2,"padding-left","24px !important",3,"click"],[3,"isComplete"],[1,"m-l-15"],["nz-tooltip","",1,"m-b-0","text-muted","font-size-13",3,"nzTooltipTitle"],[1,"mb-3"],[3,"nzNotFoundContent","nzNotFoundImage","nzNotFoundFooter",4,"ngIf"],[3,"nzNotFoundContent","nzNotFoundImage",4,"ngIf"],[3,"nzNotFoundContent","nzNotFoundImage","nzNotFoundFooter"],["footerTpl",""],["nz-button","","nzType","primary",1,"button-text-wrap",3,"click"],[3,"nzNotFoundContent","nzNotFoundImage"],[4,"ngFor","ngForOf"],["class","m-b-0 text-dark font-weight-semibold",4,"ngFor","ngForOf"],["class","api-type-label service d-inline-block m-v-0 m-l-0 m-r-5 line-height-14",4,"ngIf"],["nzIcon","user",3,"nzSrc",4,"ngIf"],["nzIcon","user",3,"nzSrc"],[1,"m-b-0","text-dark","font-weight-semibold"],[3,"nzDot",4,"ngIf"],[3,"nzDot"],[1,"api-type-label","service","d-inline-block","m-v-0","m-l-0","m-r-5","line-height-14"],[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["emptyChatFooter",""],["nz-row","","nzJustify","space-between"],[1,"m-20"],["nz-button","","nzType","link",1,"m-20","link-like-button","color-primary",3,"click"],["class","d-flex p-10 sidebar-element","style","padding-left: 24px !important",4,"ngFor","ngForOf"],[1,"d-flex","p-10","sidebar-element",2,"padding-left","24px !important"],["alt","Create a contract",1,"contract-create-img",3,"src"],[4,"buttonCreate"],[1,"mb-0","mt-2"],[1,"button-text-wrap",3,"nzType","nzSize","defaultFunction","defaultFunctionParameters","stickResult","nzTextKeys"],["class","d-flex p-10 sidebar-element cursor-pointer","style","padding-left: 24px !important",3,"routerLink","queryParams","click",4,"ngFor","ngForOf"],[1,"d-flex","p-10","sidebar-element","cursor-pointer",2,"padding-left","24px !important",3,"routerLink","queryParams","click"],["nz-icon","","class","m-r-0 line-height-normal",3,"nzType","theme",4,"ngIf"],["nz-icon","","class","m-r-0 line-height-normal dollarIcon",4,"ngIf"],["nz-icon","",1,"m-r-0","line-height-normal",3,"nzType","theme"],["nz-icon","",1,"m-r-0","line-height-normal","dollarIcon"],["src","/assets/szerzi-icons/szerzi-circle.svg","class","opacity-07","alt","Szerzi-dollar icon",4,"ngIf"],["src","/assets/szerzi-icons/szerzi-circle.svg","alt","Szerzi-dollar icon",1,"opacity-07"],["class","d-flex p-10 sidebar-element cursor-pointer","style","padding-left: 24px !important",3,"routerLink","click",4,"ngFor","ngForOf"],[1,"d-flex","p-10","sidebar-element","cursor-pointer",2,"padding-left","24px !important",3,"routerLink","click"],["nz-icon","","nzType","search",1,"font-size-14","opacity-04"],["nzType","avatar",3,"nzActive","nzSize"],[1,"m-l-15","w-100"],["nzType","input","nzSize","small",1,"w-60","m-b-1",3,"nzActive"],["nzType","input","nzSize","small",1,"m-b-0","w-30","skeleton-h-20px",3,"nzActive"]],template:function(i,t){if(1&i&&(e.TgZ(0,"div",0)(1,"nz-input-group",1),e.NdJ("click",function(){return t.focusSearch()}),e.TgZ(2,"input",2,3),e.NdJ("ngModelChange",function(a){return t.search=a})("ngModelChange",function(){return t.searchAll()}),e.ALo(4,"translate"),e.qZA()(),e.YNc(5,ne,1,1,"ng-template",null,4,e.W1O),e.qZA(),e.TgZ(7,"ngx-simplebar",5)(8,"div"),e.YNc(9,se,12,9,"div",6),e.YNc(10,de,5,3,"div",7),e.YNc(11,me,4,7,"div",7),e.qZA(),e.TgZ(12,"div"),e.YNc(13,Ae,12,9,"div",6),e.YNc(14,Ne,6,5,"ng-container",7),e.TgZ(15,"div",8),e.YNc(16,Le,2,1,"div",9),e.YNc(17,Re,11,9,"ng-container",7),e.qZA(),e.TgZ(18,"div",8),e.YNc(19,Pe,2,1,"div",9),e.YNc(20,Ye,7,4,"ng-container",7),e.qZA(),e.TgZ(21,"div",8),e.YNc(22,Ke,2,1,"div",9),e.YNc(23,je,7,4,"ng-container",7),e.qZA()()(),e.YNc(24,$e,1,0,"ng-template",null,10,e.W1O),e.YNc(26,qe,2,3,"ng-template",null,11,e.W1O)),2&i){const o=e.MAs(6),a=e.MAs(25);e.xp6(1),e.Q6J("nzPrefix",a)("nzSuffix",o),e.xp6(1),e.Q6J("placeholder",e.lcZ(4,16,"COMMON.HEADER.SEARCH.PLACEHOLDER"))("ngModel",t.search),e.xp6(
275),e.Q6J("options",e.DdM(18,Xe)),e.xp6(2),e.Q6J("ngIf",""===t.search?t.loadingContracts||t.contractsShown:t.contractsShown.length>0),e.xp6(1),e.Q6J("ngIf",!t.loadingContracts&&t.contractsShown&&0===t.contractsShown.length&&""===t.search),e.xp6(1),e.Q6J("ngIf",""!==t.search&&(!!t.loadingContracts||t.contractsShown&&0===t.contractsShown.length)&&(!!t.loadingChat||t.chatsShown&&0===t.chatsShown.length)&&(!t.contractsToCreateShown||0===t.contractsToCreateShown.length)),e.xp6(2),e.Q6J("ngIf",""===t.search?t.loadingChat||t.chatsShown:t.chatsShown.length>0),e.xp6(1),e.Q6J("ngIf",!t.loadingChat&&t.chatsShown&&0===t.chatsShown.length&&""===t.search),e.xp6(2),e.Q6J("ngIf",!t.contractsToCreateShown),e.xp6(1),e.Q6J("ngIf",""!==t.search&&t.contractsToCreateShown&&t.contractsToCreateShown.length>0),e.xp6(2),e.Q6J("ngIf",!t.sideNavLinksShown),e.xp6(1),e.Q6J("ngIf",""!==t.search&&t.sideNavLinksShown&&t.sideNavLinksShown.length>0),e.xp6(2),e.Q6J("ngIf",!t.profileNavLinksShown),e.xp6(1),e.Q6J("ngIf",""!==t.search&&t.profileNavLinksShown&&t.profileNavLinksShown.length>0)}},dependencies:[d.Fj,d.JJ,d.On,P.rH,l.sg,l.O5,l.tP,U.M,F.k,C.P4,k.Dz,J.x7,Q.ix,W.w,Y.dQ,B.p9,v.t3,v.SK,K.Ls,h.Zp,h.gB,h.ke,m.Xw,m.yx,m.yg,b.SY,l.uU,T.X$,G.j,j.R,f.s,$.L,V.A,q.d],styles:['@charset "UTF-8";.contract-create-img[_ngcontent-%COMP%]{width:55px;height:auto}.dollarIcon[_ngcontent-%COMP%]{min-width:14px}.search-subtitle[_ngcontent-%COMP%]{margin:20px auto 0 24px}.find-all-title[_ngcontent-%COMP%]{margin:0 auto 20px 24px}']}),_=(0,S.gn)([(0,p.c)()],_)}}]);

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.