1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[7064],{23765:(zi,G,h)=>{h.d(G,{P:()=>T});var Y=h(97582),l=h(76096),w=h(68067),N=h(71997),L=h(30144),t=h(94650),D=h(22971),P=h(82981),j=h(28736),S=h(44569),q=h(6204),M=h(37340),$=h(17445),m=h(5963),X=h(78321),u=h(92961),d=h(44224),tt=h(52835),R=h(41342),A=h(35635),et=h(38704),nt=h(56859),I=h(36895),it=h(49651),st=h(25156),k=h(32925),ot=h(41836),at=h(90735),rt=h(50211),ct=h(47959),lt=h(8269),ht=h(87689),_t=h(81664),pt=h(61479),dt=h(39889),Ct=h(87341),mt=h(55089),gt=h(32046),ft=h(97185),Tt=h(93196),ut=h(75141),Ot=h(75489),Mt=h(47216),v=h(24006),It=h(59166),Et=h(67151),vt=h(87918),xt=h(2293),Nt=h(74383),Lt=h(70048),Pt=h(66616),St=h(47044),At=h(21811),zt=h(4788),Z=h(73325),z=h(29562),yt=h(47423),U=h(66152),bt=h(6497),wt=h(46581),Dt=h(69258),y=h(20545),Rt=h(37570),kt=h(19864),Zt=h(9865),Ut=h(14954),Vt=h(70087),Ft=h(81801),Wt=h(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 Bt=["searchInputElement"],Jt=["scrollBottom"],Ht=["chatInput"],Qt=["videoCall"],Kt=["newConversationModal"],Gt=["ratingButtonElement"],Yt=["ratingListElement"],jt=["chatListElement"];function qt(o,i){1&o&&(t.TgZ(0,"div",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"LANDING.DEMOS.CONVERSATIONS.DEMO_INFO"),"\n"))}function $t(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",34),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2);return t.KtG(s.openChatHelpModal())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONVERSATIONS.HELP_MODAL.LINK")," "))}function Xt(o,i){if(1&o&&t._UZ(0,"app-feedback",35),2&o){const e=t.oxw(2);t.Q6J("feature",e.FeedbackFeature.Chat)("unit",e.FeedbackUnit.Conversations)("title","COMMON.FEEDBACK.TITLES.CHAT")}}const te=function(o,i,e){return{"text-left":o,"text-right":i,secureMessage:e}};function ee(o,i){if(1&o&&(t.TgZ(0,"div",29)(1,"a",30),t.ALo(2,"localizeRoute"),t._UZ(3,"span",31),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.YNc(6,$t,3,3,"button",32),t.YNc(7,Xt,1,3,"app-feedback",33),t.qZA()),2&o){const e=t.oxw();t.Q6J("ngClass",t.kEZ(9,te,e.isPhoneView,!e.isPhoneView,e.chatMode===e.ChatMode.DEMO_FEATURES)),t.xp6(1),t.Q6J("href",t.lcZ(2,5,"/privacy-policy#tab-0"),t.LSH),t.xp6(3),t.hij(" ",t.lcZ(5,7,"CLIENT.CONVERSATIONS.SECURE_CONVERSATION"),""),t.xp6(2),t.Q6J("ngIf",e.userType===e.UserType.Lawyer),t.xp6(1),t.Q6J("ngIf",e.chatMode===e.ChatMode.REAL)}}function ne(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"i",36),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.clearSearch())}),t.qZA()}}function ie(o,i){1&o&&(t.TgZ(0,"nz-list-item",39)(1,"div",40),t._UZ(2,"nz-skeleton-element",41),t.qZA(),t.TgZ(3,"div",42),t._UZ(4,"nz-skeleton-element",43)(5,"nz-skeleton-element",44),t.qZA()()),2&o&&(t.xp6(2),t.Q6J("nzActive",!0),t.xp6(2),t.Q6J("nzActive",!0),t.xp6(1),t.Q6J("nzActive",!0))}function se(o,i){1&o&&(t.TgZ(0,"nz-list",37),t.YNc(1,ie,6,3,"nz-list-item",38),t.ALo(2,"numberArray"),t.qZA()),2&o&&(t.Q6J("nzItemLayout","horizontal")("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,3,3)))}function oe(o,i){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"translate"),t.ALo(5,"translate"),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.isEmbedded&&e.embeddedEmptyText&&e.embeddedEmptyText.key?0!==e.chatFilterString.length&&e.embeddedFilteredEmptyText&&e.embeddedFilteredEmptyText.key?t.xi3(3,4,e.embeddedFilteredEmptyText.key,e.embeddedFilteredEmptyText.params):t.xi3(2,1,e.embeddedEmptyText.key,e.embeddedEmptyText.params):0===e.chatFilterString.length?t.lcZ(4,7,"CLIENT.CONVERSATIONS.NOT_FOUND"):t.lcZ(5,9,"CLIENT.CONVERSATIONS.NOT_FOUND_FILTER")," ")}}function ae(o,i){if(1&o&&(t.TgZ(0,"nz-list",45),t._UZ(1,"nz-empty",46),t.YNc(2,oe,6,11,"ng-template",null,47,t.W1O),t.TgZ(4,"nz-list-item",48)(5,"p"),t._uU(6,"teszt"),t.qZA()()()),2&o){const e=t.MAs(3);t.Q6J("nzItemLayout","horizontal")("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",e)}}const E=function(o){return{name:o}};function re(o,i){if(1&o&&(t._UZ(0,"nz-avatar",66),t.ALo(1,"translate")),2&o){const e=t.oxw().$implicit,n=t.oxw().$implicit,s=t.oxw(2);t.Q6J("ngClass",n.state.type===s.ClassList.Closed?"gray-scale shadow":"shadow")("nzSrc",s.chatMode===s.ChatMode.REAL?s.userInfosService.userImgs.get(e.userID):n.avatar)("nzAlt",t.xi3(1,3,"CLIENT.CONVERSATIONS.AVATAR",t.VKq(6,E,e.name)))}}function ce(o,i){if(1&o&&(t.ynx(0),t.YNc(1,re,2,8,"nz-avatar",65),t.BQk()),2&o){const e=i.$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.userID!==n.userService.sessionUserID)}}function le(o,i){1&o&&(t.TgZ(0,"label",68),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER.KIND.LAWYER")," "))}function he(o,i){if(1&o&&(t.ynx(0),t.YNc(1,le,3,3,"label",61),t.TgZ(2,"span"),t._uU(3),t.qZA(),t._UZ(4,"nz-badge",67),t.BQk()),2&o){const e=t.oxw().$implicit,n=t.oxw().$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.kind===s.UserType.Lawyer),t.xp6(2),t.Oqu(n.name),t.xp6(1),t.Q6J("nzDot",n.msg.length>0&&s.lastSeenTimestamp&&(s.lastSeenTimestamp.get(n.ID)<n.msg[n.msg.length-1].timestamp||s.lastSeenTimestamp.get(n.ID)<n.state.timestamp)&&n.msg[n.msg.length-1].fromUserID!==s.userService.sessionUserID)}}function _e(o,i){if(1&o&&(t.ynx(0),t.YNc(1,he,5,3,"ng-container",62),t.BQk()),2&o){const e=i.$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.userID!==n.userService.sessionUserID)}}function pe(o,i){if(1&o&&(t.TgZ(0,"p",69),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o){const e=t.oxw(3);t.Q6J("ngClass",e.isEmbedded?"hide-on-small":"show-on-big"),t.xp6(1),t.hij(" ",t.lcZ(2,2,"CLIENT.CONVERSATIONS.CLOSED_IN_CHAT_LIST")," ")}}function de(o,i){1&o&&(t.TgZ(0,"label",68),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"CLIENT.LOBBY.NEW")))}const b=function(o){return{responsibleName:o}};function Ce(o,i){if(1&o&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.BQk()),2&o){const e=t.oxw().$implicit,n=t.oxw(2);t.xp6(1),t.hij(" ",e.state.type===n.ClassList.Closed?t.xi3(2,1,e.msg[e.msg.length-1].text,t.VKq(6,b,e.state.responsibleID===n.userService.sessionUserID?t.lcZ(3,4,"COMMON.YOU"):e.participants.length>0&&e.participants[0].userID===e.state.responsibleID?e.participants[0].name:e.participants.length>1&&e.participants[1].userID===e.state.responsibleID?e.participants[1].name:"")):e.msg[e.msg.length-1].text," ")}}const me=function(o,i){return[o,i,1,29,!0]};function ge(o,i){if(1&o&&(t.TgZ(0,"span",70),t._uU(1),t.ALo(2,"dateAgo"),t.qZA()),2&o){const e=t.oxw().$implicit,n=t.oxw(2);t.xp6(1),t.hij(" ",t.G7q(2,1,t.WLB(7,me,e.msg[e.msg.length-1].timestamp,n.trigger))," ")}}const fe=function(o){return{"ant-menu-item-selected":o}},Te=function(o){return{active:o}},ue=function(o){return{brandPrimaryColor:o}};function Oe(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",51,52),t.ALo(2,"translate"),t.TgZ(3,"div",53),t.NdJ("click",function(){const a=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.selectChat(a.ID))}),t.TgZ(4,"nz-list-item",54)(5,"div",55)(6,"div"),t.YNc(7,ce,2,1,"ng-container",56),t.qZA(),t.TgZ(8,"div",57)(9,"h2",58),t.YNc(10,_e,2,1,"ng-container",56),t.qZA(),t.YNc(11,pe,3,4,"p",59),t.TgZ(12,"p",60),t.YNc(13,de,3,3,"label",61),t.YNc(14,Ce,4,8,"ng-container",62),t.qZA()(),t.TgZ(15,"div",63),t.YNc(16,ge,3,10,"span",64),t.qZA()()()()()}if(2&o){const e=i.$implicit,n=i.index,s=t.oxw(2);t.Q6J("nzTooltipTitle",s.chatMode===s.ChatMode.DEMO_FEATURES&&0===n?t.lcZ(2,14,"LANDING.DEMOS.CONVERSATIONS.CLICK_TOOLTIP"):null)("nzTooltipTrigger",null)("nzTooltipVisible",s.demoClickTooltipVisible)("ngClass",t.VKq(16,fe,s.filteredChatList[n].ID==s.chatId)),t.xp6(4),t.Q6J("ngClass",t.VKq(18,Te,n==s.chatId)),t.xp6(3),t.Q6J("ngForOf",e.participants)("ngForTrackBy",s.trackByParticipant),t.xp6(2),t.Q6J("ngClass",t.VKq(20,ue,s.filteredChatList[n].ID==s.chatId)),t.xp6(1),t.Q6J("ngForOf",e.participants)("ngForTrackBy",s.trackByParticipant),t.xp6(1),t.Q6J("ngIf",e.state.type===s.ClassList.Closed),t.xp6(2),t.Q6J("ngIf",e.msg.length>0&&s.lastSeenTimestamp&&(s.lastSeenTimestamp.get(e.ID)<e.msg[e.msg.length-1].timestamp||s.lastSeenTimestamp.get(e.ID)<e.state.t
27imestamp)&&e.msg[e.msg.length-1].fromUserID!==s.userService.sessionUserID),t.xp6(1),t.Q6J("ngIf",e.msg.length>0),t.xp6(2),t.Q6J("ngIf",e.msg[e.msg.length-1])}}function Me(o,i){if(1&o&&(t.TgZ(0,"nz-list",49),t.YNc(1,Oe,17,22,"ng-template",null,50,t.W1O),t.qZA()),2&o){const e=t.MAs(2),n=t.oxw();t.Q6J("@skeletonPosAbsLeave",void 0)("nzDataSource",n.filteredChatList)("nzRenderItem",e)("nzItemLayout","horizontal")}}function Ie(o,i){1&o&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONVERSATIONS.FUNCTIONS.CREATE"),""))}function Ee(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",71),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.newConversation())}),t.ALo(1,"translate"),t._UZ(2,"span",72),t.YNc(3,Ie,3,3,"span",62),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("nzShape",e.windowWidth<=575||e.windowWidth>=768?"circle":"round")("nzTooltipTitle",t.lcZ(1,3,"CLIENT.CONVERSATIONS.FUNCTIONS.CREATE")),t.xp6(3),t.Q6J("ngIf",e.windowWidth>575&&e.windowWidth<768)}}function ve(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"nz-avatar",85),t.NdJ("click",function(){t.CHM(e);const s=t.oxw().$implicit,a=t.oxw(5);return t.KtG(a.chatMode===a.ChatMode.REAL?a.openUserProfile(s.userID):null)}),t.ALo(1,"translate"),t.qZA()}if(2&o){const e=t.oxw().$implicit,n=t.oxw(3).$implicit,s=t.oxw(2);t.Q6J("ngClass",n.state.type===s.ClassList.Closed?"gray-scale shadow":"shadow")("nzSrc",s.chatMode===s.ChatMode.REAL?s.userInfosService.userImgs.get(e.userID):n.avatar)("nzAlt",t.xi3(1,3,"CLIENT.CONVERSATIONS.AVATAR",t.VKq(6,E,e.name)))}}function xe(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"span",83),t.NdJ("nzOnConfirm",function(){t.CHM(e);const s=t.oxw(5);return t.KtG(s.chatMode===s.ChatMode.REAL?null:s.routerService.routeToRegisterHref())})("nzOnCancel",function(){t.CHM(e);const s=t.oxw(5);return t.KtG(s.chatSettingVisible=!1)}),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"translate"),t.YNc(5,ve,2,8,"nz-avatar",84),t.qZA(),t.BQk()}if(2&o){const e=i.$implicit,n=t.oxw(5);t.xp6(1),t.Q6J("nzPopconfirmTitle",t.lcZ(2,5,"LANDING.DEMOS.CONVERSATIONS.PROFILE_POPCONFIRM.TITLE"))("nzCancelText",t.lcZ(3,7,"LANDING.DEMOS.CONVERSATIONS.PROFILE_POPCONFIRM.CANCEL_TEXT"))("nzOkText",t.lcZ(4,9,"LANDING.DEMOS.CONVERSATIONS.PROFILE_POPCONFIRM.OK_TEXT"))("nzCondition",n.chatMode===n.ChatMode.REAL),t.xp6(4),t.Q6J("ngIf",e.userID!==n.userService.sessionUserID)}}function Ne(o,i){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,xe,6,11,"ng-container",56),t.qZA()),2&o){const e=t.oxw(2).$implicit,n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.participants)("ngForTrackBy",n.trackByParticipant)}}function Le(o,i){1&o&&(t.TgZ(0,"span"),t._UZ(1,"nz-badge",86),t.TgZ(2,"span"),t._uU(3),t.ALo(4,"translate"),t.qZA()()),2&o&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"CLIENT.CONVERSATIONS.ONLINE")))}function Pe(o,i){1&o&&(t.TgZ(0,"span"),t._UZ(1,"nz-badge",87),t.TgZ(2,"span"),t._uU(3),t.ALo(4,"translate"),t.qZA()()),2&o&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"CLIENT.CONVERSATIONS.IDLE")))}function Se(o,i){1&o&&(t.TgZ(0,"span"),t._UZ(1,"nz-badge",88),t.TgZ(2,"span"),t._uU(3),t.ALo(4,"translate"),t.qZA()()),2&o&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"CLIENT.CONVERSATIONS.OFFLINE")))}function Ae(o,i){1&o&&(t.TgZ(0,"span")(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&o&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"CLIENT.CONVERSATIONS.CLOSED")))}function ze(o,i){if(1&o&&(t.TgZ(0,"span"),t._UZ(1,"app-contact-widget",93),t.qZA()),2&o){const e=i.$implicit;t.xp6(1),t.Q6J("contactDetails",e)}}function ye(o,i){if(1&o&&(t.TgZ(0,"span",89)(1,"button",90),t._uU(2),t.ALo(3,"translate"),t._UZ(4,"i",91),t.qZA(),t.TgZ(5,"nz-dropdown-menu",null,92),t.YNc(7,ze,2,1,"span",56),t.qZA()()),2&o){const e=t.MAs(6),n=t.oxw(4);t.xp6(1),t.Q6J("nzDropdownMenu",e)("nzTrigger","click"),t.xp6(1),t.hij(" ",t.lcZ(3,5,"CLIENT.CONVERSATIONS.CONTACT"),""),t.xp6(5),t.Q6J("ngForOf",n.actContactDetailsArray)("ngForTrackBy",n.trackByContact)}}const V=function(o,i){return{"d-block":o,"d-none":i}},be=function(){return{all:30}};function we(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",76)(1,"button",77),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.closeChatContent())}),t.ALo(2,"translate"),t._UZ(3,"i",78),t.qZA(),t.YNc(4,Ne,2,2,"div",62),t.TgZ(5,"div",79)(6,"h6",80),t._uU(7),t.ALo(8,"limitTo"),t.qZA(),t.TgZ(9,"p",81),t.YNc(10,Le,5,3,"span",62),t.YNc(11,Pe,5,3,"span",62),t.YNc(12,Se,5,3,"span",62),t.YNc(13,Ae,4,3,"span",62),t.YNc(14,ye,8,7,"span",82),t.qZA()()()}if(2&o){const e=t.oxw().$implicit,n=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",t.lcZ(2,10,"LANDING.DEMOS.CONVERSATIONS.MENU_BACK"))("ngClass",t.WLB(16,V,n.isPhoneView,!n.isPhoneView)),t.xp6(3),t.Q6J("ngIf",n.headerWidth>=375),t.xp6(1),t.Q6J("className",n.headerWidth>=375?"p-l-15":""),t.xp6(2),t.hij(" ",t.Dn7(8,12,e.name,t.DdM(19,be),null)," "),t.xp6(3),t.Q6J("ngIf",e.state.type!==n.ClassList.Closed&&n.activityMap.get(e.ID)&&n.activityMap.get(e.ID).activities[0]&&n.activityMap.get(e.ID).activities[0].timestamp>n.currentDate-3e5),t.xp6(1),t.Q6J("ngIf",e.state.type!==n.ClassList.Closed&&n.activityMap.get(e.ID)&&n.activityMap.get(e.ID).activities[0]&&n.activityMap.get(e.ID).activities[0].timestamp<=n.currentDate-3e5&&n.activityMap.get(e.ID).activities[0].timestamp>n.currentDate-6e5),t.xp6(1),t.Q6J("ngIf",e.state.type!==n.ClassList.Closed&&n.activityMap.get(e.ID)&&n.activityMap.get(e.ID).activities[0]&&n.activityMap.get(e.ID).activities[0].timestamp<=n.currentDate-6e5),t.xp6(1),t.Q6J("ngIf",e.state.type===n.ClassList.Closed),t.xp6(1),t.Q6J("ngIf",n.actContactDetailsArray&&n.actContactDetailsArray.length>0)}}function De(o,i){if(1&o&&(t.ynx(0),t.YNc(1,we,15,20,"div",75),t.BQk()),2&o){const e=i.$implicit,n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",n.chatId==e.ID)}}function Re(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",117),t.NdJ("nzOnConfirm",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.chatMode===s.ChatMode.REAL?s.showVideoChatHere?s.closeVideoChat():s.openVideochatDropdown():s.routerService.routeToRegisterHref())})("nzOnCancel",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.chatSettingVisible=!1)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"translate"),t._UZ(5,"span",118),t.TgZ(6,"span"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA()()}if(2&o){t.oxw();const e=t.MAs(3),n=t.oxw(2);t.Q6J("nzDropdownMenu",e)("nzVisible",n.videoChatDropdownVisible)("nzPopconfirmTitle",t.lcZ(1,10,"LANDING.DEMOS.CONVERSATIONS.VIDEOCHAT_POPCONFIRM.TITLE"))("nzCancelText",t.lcZ(2,12,"LANDING.DEMOS.CONVERSATIONS.VIDEOCHAT_POPCONFIRM.CANCEL_TEXT"))("nzOkText",t.lcZ(3,14,"LANDING.DEMOS.CONVERSATIONS.VIDEOCHAT_POPCONFIRM.OK_TEXT"))("nzCondition",n.chatMode===n.ChatMode.REAL)("ngClass",n.headerWidth>520||n.showVideoChatHere?"d-inline-block":"d-none")("nzTooltipTitle",n.isPhoneView?t.lcZ(4,16,"LANDING.DEMOS.CONVERSATIONS.VIDEOCHAT_POPCONFIRM.DESCRIPTION"):null)("nzDanger",n.showVideoChatHere),t.xp6(7),t.Oqu(n.showVideoChatHere?t.lcZ(8,18,"CLIENT.CONVERSATIONS.VIDEOCHAT.TEXT_ENDER"):t.lcZ(9,20,"CLIENT.CONVERSATIONS.VIDEOCHAT.TEXT"))}}function ke(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"li",119),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.openVideochat(!0))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONVERSATIONS.VIDEOCHAT.INPLACE")," "))}function Ze(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",120),t.NdJ("nzOnConfirm",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.chatMode===s.ChatMode.REAL?s.openVideochat(!1):s.routerService.routeToRegisterHref())})("nzOnCancel",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.chatSettingVisible=!1)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"translate"),t._UZ(5,"i",121),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("nzPopconfirmTitle",t.lcZ(1,6,"LANDING.DEMOS.CONVERSATIONS.VIDEOCHAT_POPCONFIRM.TITLE"))("nzCancelText",t.lcZ(2,8,"LANDING.DEMOS.CONVERSATIONS.VIDEOCHAT_POPCONFIRM.CANCEL_TEXT"))("nzOkText",t.lcZ(3,10,"LANDING.DEMOS.CONVERSATIONS.VIDEOCHAT_POPCONFIRM.OK_TEXT"))("nzCondition",e.chatMode===e.ChatMode.REAL)("ngClass",e.headerWidth<520?e.showVideoChatHere?"d-none":"d-inline-block":"d-none")("nzTooltipTitle",t.lcZ(4,12,"LANDING.DEMOS.CONVERSATIONS.VIDEOCHAT_POPCONFIRM.DESCRIPTION"))}}const x=function(o){return{count:o}};function Ue(o,i){if(1&o&&(t.TgZ(0,"button",123),t._uU(1),t.ALo(2,"translate"),t._UZ(3,"i",124),t.qZA()),2&o){t.oxw(2);const e=t.MAs(13),n=t.oxw(2);t.Q6J("nzDropdownMenu",e)("ngClass",n.headerWidth>n.showHideLimits[1+(n.selectedChat.state.type!==n.ClassList.Closed?1:0)+(n.sharesWithParticipant&&n.sharesWithParticipant.length>0&&!n.filterByIds?1:0)]?"d-inline-block":"d-none"),t.xp6(1),t.hij(" ",t.xi3(2,3,"CLIENT.PUBLIC.CONTRACTS_SHARED_WITH_YOU",t.VKq(6,x,n.sharesWithMe.length))," ")}}function Ve(o,i){if(1&o&&(t.ynx(0),t.YNc(1,Ue,4,8,"button",122),t.BQk()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.sharesWithMe&&e.sharesWithMe.length>0)}}const F=function(){return{height:"40px"}};function Fe(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",125),t.NdJ("click",function(){const a=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.routerService.routeToContract(a.shared.ID,!1))}),t._UZ(2,"app-contract-progress-logo",126),t.TgZ(3,"li"),t._uU(4),t.TgZ(5,"p",127),t.ALo(6,"date"),t.ALo(7,"date"),t._uU(8),t.ALo(9,"translate"),t.ALo(10,"translate"),t.ALo(11,"dateAgo"),t.ALo(12,"dateAgo"),t.qZA()()(),t.BQk()}if(2&o){const e=i.$implicit,n=t.oxw(3);t.xp6(2),t.Akn(t.DdM(27,F)),t.Q6J("isComplete",e.shared.complete),t.xp6(2),t.hij(" ",e.shared.metadata.name?e.shared.metadata.name:e.displayElements.name," "),t.xp6(1),t.Q6J("nzTooltipTitle",e.shared.metadata.update?t.xi3(6,7,e.shared.metadata.update.timestamp,"yyyy-MM-dd HH:mm:ss"):t.xi3(7,10,e.shared.metadata.creation.timestamp,"yyyy-MM-dd HH:mm:ss")),t.xp6(3),t.AsE(" ",e.shared.metadata.update?t.lcZ(9,13,"COMMON.CONTRACT.INFO.MODIFIED"):t.lcZ(10,15,"COMMON.CONTRACT.INFO.CREATED")," ",e.shared.metadata.update?t.gM2(11,17,e.shared.metadata.update.timestamp,n.trigger,1,59):t.gM2(12,22,e.shared.metadata.creation.timestamp,n.trigger,1,59)," ")}}function We(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",128),t.NdJ("nzOnConfirm",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.chatMode===s.ChatMode.REAL?s.shareContractModal():s.routerService.routeToRegisterHref())})("nzOnCancel",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.chatSettingVisible=!1)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t._uU(4),t.ALo(5,"translate"),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("disabled",e.selectedChat.state.type===e.ClassList.Closed)("nzPopconfirmTitle",t.lcZ(1,7,"LANDING.DEMOS.CONVERSATIONS.SHARE_POPCONFIRM.TITLE"))("nzCancelText",t.lcZ(2,9,"LANDING.DEMOS.CONVERSATIONS.SHARE_POPCONFIRM.CANCEL_TEXT"))("nzOkText",t.lcZ(3,11,"LANDING.DEMOS.CONVERSATIONS.SHARE_POPCONFIRM.OK_TEXT"))("nzCondition",e.chatMode===e.ChatMode.REAL)("ngClass",e.headerWidth>e.showHideLimits[1+(e.selectedChat.state.type!==e.ClassList.Closed?1:0)+(e.sharesWithParticipant&&e.sharesWithParticipant.length>0&&!e.filterByIds?1:0)+(e.sharesWithMe&&e.sharesWithMe.length>0?1:0)]?"d-inline-block":"d-none"),t.xp6(4),t.hij(" ",t.lcZ(5,13,"CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.SHARE_CONTRACT_BUTTON")," ")}}function Be(o,i){if(1&o&&(t.TgZ(0,"button",130),t._uU(1),t.ALo(2,"translate"),t._UZ(3,"i",124),t.qZA()),2&o){t.oxw(2);const e=t.MAs(3),n=t.oxw(2);t.Q6J("nzDropdownMenu",e)("ngClass",n.headerWidth>n.showHideLimits[1+(n.selectedChat.state.type!==n.ClassList.Closed?1:0)]?"d-inline-block":"d-none"),t.xp6(1),t.hij(" ",t.xi3(2,3,"CLIENT.PUBLIC.CONTRACTS_SHARED",t.VKq(6,x,n.sharesWithParticipant.length))," ")}}function Je(o,i){if(1&o&&(t.ynx(0),t.YNc(1,Be,4,8,"button",129),t.BQk()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.sharesWithParticipant&&e.sharesWithParticipant.length>0)}}function He(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",125),t.NdJ("click",function(){const a=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.routerService.routeToContractRollback(a.progress.ID,"manage"))}),t._UZ(2,"app-contract-progress-logo",126),t.TgZ(3,"li"),t._uU(4),t.TgZ(5,"p",127),t.ALo(6,"date"),t.ALo(7,"date"),t._uU(8),t.ALo(9,"translate"),t.ALo(10,"translate"),t.ALo(11,"dateAgo"),t.ALo(12,"dateAgo"),t.qZA()()(),t.BQk()}if(2&o){const e=i.$implicit,n=t.oxw(3);t.xp6(2),t.Akn(t.DdM(27,F)),t.Q6J("isComplete",e.progress.complete),t.xp6(2),t.hij(" ",e.progress.metadata.name?e.progress.metadata.name:e.displayElements.name," "),t.xp6(1),t.Q6J("nzTooltipTitle",e.progress.metadata.update?t.xi3(6,7,e.progress.metadata.update.timestamp,"yyyy-MM-dd HH:mm:ss"):t.xi3(7,10,e.progress.metadata.creation.timestamp,"yyyy-MM-dd HH:mm:ss")),t.xp6(3),t.AsE(" ",e.progress.metadata.update?t.lcZ(9,13,"COMMON.CONTRACT.INFO.MODIFIED"):t.lcZ(10,15,"COMMON.CONTRACT.INFO.CREATED")," ",e.progress.metadata.update?t.gM2(11,17,e.progress.metadata.update.timestamp,n.trigger,1,59):t.gM2(12,22,e.progress.metadata.creation.timestamp,n.trigger,1,59)," ")}}function Qe(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",131,132),t.NdJ("nzPopoverVisibleChange",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.setReviewValues())})("nzPopoverVisibleChange",function(s){t.CHM(e);const a=t.oxw(3);return t.KtG(a.reviewVisibleFromButton=s)}),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&o){t.oxw();const e=t.MAs(38),n=t.MAs(40),s=t.oxw(2);t.Q6J("nzPopoverTitle",e)("nzPopoverContent",n)("nzPopoverOrigin",s.ratingButtonElementRef)("nzPopoverTrigger","click")("nzPopoverVisible",s.reviewVisibleFromButton)("ngClass",s.headerWidth>s.showHideLimits[1+(s.selectedChat.state.type!==s.ClassList.Closed?1:0)+(s.sharesWithParticipant&&s.sharesWithParticipant.length>0&&!s.filterByIds?1:0)+(s.sharesWithMe&&s.sharesWithMe.length>0?1:0)+(s.selectedChat.state.type===s.ClassList.Closed||s.userType!==s.UserType.Client&&s.chatMode===s.ChatMode.REAL?0:1)]?"d-inline-block":"d-none"),t.xp6(2),t.hij(" ",t.lcZ(3,7,"CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.RATE")," ")}}function Ke(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",133),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.sendOffer())}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("nzGhost",e.selectedChat.state.type===e.ClassList.Closed||e.actActiveOffer&&e.actActiveOffer.userID===e.userService.sessionUserID)("ngClass",e.headerWidth>e.showHideLimits[1+(e.selectedChat.state.type!==e.ClassList.Closed?1:0)+(e.sharesWithMe&&e.sharesWithMe.length>0?1:0)]?"d-inline-block":"d-none")("nzTooltipTitle",e.actActiveOffer&&e.actActiveOffer.userID===e.userService.sessionUserID?t.lcZ(1,4,"CLIENT.CONVERSATIONS.OFFER_LIMIT"):null),t.xp6(2),t.hij(" ",t.lcZ(3,6,"CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.SEND_OFFER")," ")}}function Ge(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",134),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.shareContact())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("disabled",e.selectedChat.state.type===e.ClassList.Closed)("ngClass",e.headerWidth>e.showHideLimits[1+(e.selectedChat.state.type!==e.ClassList.Closed?2:0)+(e.sharesWithMe&&e.sharesWithMe.length>0?1:0)]?"d-inline-block":"d-none"),t.xp6(1),t.hij(" ",t.lcZ(2,3,"CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.SHARE_CONTACT_BUTTON")," ")}}function Ye(o,i){1&o&&(t._UZ(0,"i",135),t.TgZ(1,"div",136),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"p",137),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&o&&(t.xp6(2),t.hij(" ",t.lcZ(3,2,"CLIENT.CONVERSATIONS.CLOSE_POPCONFIRM.TITLE")," "),t.xp6(3),t.Oqu(t.lcZ(6,4,"CLIENT.CONVERSATIONS.CLOSE_POPCONFIRM.DESC")))}function je(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"app-multi-state-button",138),t.NdJ("nzOnConfirm",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.chatMode===s.ChatMode.REAL?s.closeConversation(s.chatId):s.routerService.routeToRegisterHref())})("nzOnCancel",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.chatSettingVisible=!1)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"translate"),t.ALo(5,"translate"),t.qZA()}if(2&o){t.oxw();const e=t.MAs(29),n=t.oxw(2);t.Q6J("disabled",n.selectedChat.state.type===n.ClassList.Closed)("runFunction",n.closeConversationMap&&n.closeConversationMap.has(n.selectedChat.ID)?n.closeConversationMap.get(n.selectedChat.ID).closePromise:null)("nzTextKeys",n.closeConversationText)("stickResult",!1)("nzCondition",n.selectedChat.state.type===n.ClassList.Closed)("nzPopconfirmTitle",n.c
27hatMode===n.ChatMode.REAL?e:t.lcZ(1,10,"LANDING.DEMOS.CONVERSATIONS.CLOSE_POPCONFIRM.TITLE"))("nzCancelText",n.chatMode===n.ChatMode.REAL?t.lcZ(2,12,"CLIENT.CONVERSATIONS.CLOSE_POPCONFIRM.CANCEL"):t.lcZ(3,14,"LANDING.DEMOS.CONVERSATIONS.CLOSE_POPCONFIRM.CANCEL_TEXT"))("nzOkText",n.chatMode===n.ChatMode.REAL?t.lcZ(4,16,"CLIENT.CONVERSATIONS.CLOSE_POPCONFIRM.OK"):t.lcZ(5,18,"LANDING.DEMOS.CONVERSATIONS.CLOSE_POPCONFIRM.OK_TEXT"))("nzPopconfirmOverlayClassName",n.chatMode===n.ChatMode.REAL?"":"demoPopconfirm")("ngClass",n.headerWidth>n.showHideLimits[1+(n.userType===n.UserType.Client?(n.selectedChat.state.type!==n.ClassList.Closed?1:0)+(n.sharesWithParticipant&&n.sharesWithParticipant.length>0&&!n.filterByIds?1:0)+(n.sharesWithMe&&n.sharesWithMe.length>0?1:0)+(n.userType===n.UserType.Client||n.chatMode!==n.ChatMode.REAL?1:0)+(n.userType===n.UserType.Client&&n.selectedUser.kind===n.UserType.Lawyer?1:0):(n.selectedChat.state.type!==n.ClassList.Closed?2:0)+(n.sharesWithMe&&n.sharesWithMe.length>0?1:0)+(n.selectedChat.state.type!==n.ClassList.Closed&&n.userType===n.UserType.Lawyer&&!n.isMyContactShared&&n.shareContactEnabled?1:0))]?"d-inline-block":"d-none")}}function qe(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"li",148,149),t.NdJ("nzPopoverVisibleChange",function(s){t.CHM(e);const a=t.oxw(4);return t.KtG(a.reviewVisibleFromList=s)})("nzPopoverVisibleChange",function(){t.CHM(e);const s=t.oxw(4);return t.KtG(s.setReviewValues())}),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&o){t.oxw(2);const e=t.MAs(38),n=t.MAs(40),s=t.oxw(2);t.Q6J("nzPopoverTitle",e)("nzPopoverContent",n)("nzPopoverOrigin",s.ratingListElementRef)("nzPopoverTrigger","click")("nzPopoverVisible",s.reviewVisibleFromList)("ngClass",s.headerWidth>s.showHideLimits[1+(s.selectedChat.state.type!==s.ClassList.Closed?1:0)+(s.sharesWithParticipant&&s.sharesWithParticipant.length>0&&!s.filterByIds?1:0)+(s.sharesWithMe&&s.sharesWithMe.length>0?1:0)+(s.selectedChat.state.type===s.ClassList.Closed||s.userType!==s.UserType.Client&&s.chatMode===s.ChatMode.REAL?0:1)]?"d-none":"d-list-item"),t.xp6(2),t.hij(" ",t.lcZ(3,7,"CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.RATE")," ")}}function $e(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"li",150)(1,"app-multi-state-button",151),t.NdJ("nzOnConfirm",function(){t.CHM(e);const s=t.oxw(4);return t.KtG(s.chatMode===s.ChatMode.REAL?s.closeConversation(s.chatId):s.routerService.routeToRegisterHref())})("nzOnCancel",function(){t.CHM(e);const s=t.oxw(4);return t.KtG(s.chatSettingVisible=!1)}),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"translate"),t.ALo(5,"translate"),t.ALo(6,"translate"),t.qZA()()}if(2&o){t.oxw(2);const e=t.MAs(29),n=t.oxw(2);t.Q6J("ngClass",n.headerWidth>n.showHideLimits[1+(n.userType===n.UserType.Client?(n.selectedChat.state.type!==n.ClassList.Closed?1:0)+(n.sharesWithParticipant&&n.sharesWithParticipant.length>0&&!n.filterByIds?1:0)+(n.sharesWithMe&&n.sharesWithMe.length>0?1:0)+(n.selectedChat.state.type!==n.ClassList.Closed&&n.userType===n.UserType.Client||n.chatMode!==n.ChatMode.REAL?1:0)+(n.userType===n.UserType.Client&&n.selectedUser.kind===n.UserType.Lawyer?1:0):(n.selectedChat.state.type!==n.ClassList.Closed?2:0)+(n.sharesWithMe&&n.sharesWithMe.length>0?1:0)+(n.selectedChat.state.type!==n.ClassList.Closed&&n.userType===n.UserType.Lawyer&&!n.isMyContactShared&&n.shareContactEnabled?1:0))]?"d-none":"d-list-item"),t.xp6(1),t.Q6J("showAsLink",!0)("disabled",n.selectedChat.state.type===n.ClassList.Closed)("runFunction",n.closeConversationMap&&n.closeConversationMap.has(n.selectedChat.ID)?n.closeConversationMap.get(n.selectedChat.ID).closePromise:null)("nzTextKeys",n.closeConversationText)("stickResult",!1)("nzCondition",n.selectedChat.state.type===n.ClassList.Closed)("nzPopconfirmTitle",n.chatMode===n.ChatMode.REAL?e:t.lcZ(2,11,"LANDING.DEMOS.CONVERSATIONS.CLOSE_POPCONFIRM.TITLE"))("nzCancelText",n.chatMode===n.ChatMode.REAL?t.lcZ(3,13,"CLIENT.CONVERSATIONS.CLOSE_POPCONFIRM.CANCEL"):t.lcZ(4,15,"LANDING.DEMOS.CONVERSATIONS.CLOSE_POPCONFIRM.CANCEL_TEXT"))("nzOkText",n.chatMode===n.ChatMode.REAL?t.lcZ(5,17,"CLIENT.CONVERSATIONS.CLOSE_POPCONFIRM.OK"):t.lcZ(6,19,"LANDING.DEMOS.CONVERSATIONS.CLOSE_POPCONFIRM.OK_TEXT"))("nzPopconfirmOverlayClassName",n.chatMode===n.ChatMode.REAL?"":"demoPopconfirm")}}function Xe(o,i){1&o&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const W=function(){return{all:20}};function tn(o,i){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"limitTo"),t.YNc(3,Xe,2,0,"span",62),t.qZA()),2&o){const e=t.oxw(),n=e.$implicit,s=e.index,a=t.oxw(5);t.xp6(1),t.hij(" ",t.Dn7(2,2,n.name,t.DdM(6,W),null),""),t.xp6(2),t.Q6J("ngIf",s!==a.selectedChat.participants.length-1&&a.selectedChat.participants.length>2)}}function en(o,i){if(1&o&&(t.TgZ(0,"span"),t.YNc(1,tn,4,7,"span",62),t.qZA()),2&o){const e=i.index,n=t.oxw(5);t.xp6(1),t.Q6J("ngIf",n.selectedChat.participants[e].userID!==n.userService.sessionUserID)}}function nn(o,i){if(1&o){const e=t.EpF();
27t.TgZ(0,"li",152),t.NdJ("nzOnConfirm",function(){t.CHM(e);const s=t.oxw(4);return t.KtG(s.chatMode===s.ChatMode.REAL?s.shareContractModal():s.routerService.routeToRegisterHref())})("nzOnCancel",function(){t.CHM(e);const s=t.oxw(4);return t.KtG(s.chatSettingVisible=!1)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t._uU(4),t.ALo(5,"translate"),t.YNc(6,en,2,1,"span",56),t.qZA()}if(2&o){const e=t.oxw(4);t.Q6J("nzDisabled",e.selectedChat.state.type===e.ClassList.Closed)("nzPopconfirmTitle",t.lcZ(1,9,"LANDING.DEMOS.CONVERSATIONS.SHARE_POPCONFIRM.TITLE"))("nzCancelText",t.lcZ(2,11,"LANDING.DEMOS.CONVERSATIONS.SHARE_POPCONFIRM.CANCEL_TEXT"))("nzOkText",t.lcZ(3,13,"LANDING.DEMOS.CONVERSATIONS.SHARE_POPCONFIRM.OK_TEXT"))("nzCondition",e.chatMode===e.ChatMode.REAL)("ngClass",e.headerWidth>e.showHideLimits[1+(e.selectedChat.state.type!==e.ClassList.Closed?1:0)+(e.sharesWithParticipant&&e.sharesWithParticipant.length>0&&!e.filterByIds?1:0)+(e.sharesWithMe&&e.sharesWithMe.length>0?1:0)]?"d-none":"d-list-item"),t.xp6(4),t.hij(" ",t.lcZ(5,15,"CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.SHARE_CONTRACT")," "),t.xp6(2),t.Q6J("ngForOf",e.selectedChat.participants)("ngForTrackBy",e.trackByParticipant)}}function sn(o,i){1&o&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}function on(o,i){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"limitTo"),t.YNc(3,sn,2,0,"span",62),t.qZA()),2&o){const e=t.oxw(),n=e.$implicit,s=e.index,a=t.oxw(5);t.xp6(1),t.hij(" ",t.Dn7(2,2,n.name,t.DdM(6,W),null),""),t.xp6(2),t.Q6J("ngIf",s!==a.selectedChat.participants.length-1&&a.selectedChat.participants.length>2)}}function an(o,i){if(1&o&&(t.TgZ(0,"span",154),t.YNc(1,on,4,7,"span",62),t.qZA()),2&o){const e=i.index,n=t.oxw(5);t.Q6J("ngClass",n.headerWidth>n.showHideLimits[1+(n.selectedChat.state.type!==n.ClassList.Closed?2:0)+(n.sharesWithMe&&n.sharesWithMe.length>0?1:0)]?"d-none":"d-list-item"),t.xp6(1),t.Q6J("ngIf",n.selectedChat.participants[e].userID!==n.userService.sessionUserID)}}function rn(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"li",153),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(4);return t.KtG(s.shareContact())}),t._uU(1),t.ALo(2,"translate"),t.YNc(3,an,2,2,"span",26),t.qZA()}if(2&o){const e=t.oxw(4);t.Q6J("nzDisabled",e.selectedChat.state.type!==e.ClassList.Closed&&e.selectedChat.state.type===e.ClassList.Closed)("ngClass",e.headerWidth>e.showHideLimits[1+(e.selectedChat.state.type!==e.ClassList.Closed?2:0)+(e.sharesWithMe&&e.sharesWithMe.length>0?1:0)]?"d-none":"d-list-item"),t.xp6(1),t.hij(" ",t.lcZ(2,5,"CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.SHARE_CONTACT")," "),t.xp6(2),t.Q6J("ngForOf",e.selectedChat.participants)("ngForTrackBy",e.trackByParticipant)}}function cn(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"li",155),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(4);return t.KtG(s.sendOffer())}),t.ALo(1,"translate"),t.ALo(2,"translate"),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&o){const e=t.oxw(4);t.Q6J("nzDisabled",e.selectedChat.state.type===e.ClassList.Closed||e.actActiveOffer&&e.actActiveOffer.userID===e.userService.sessionUserID)("ngClass",e.headerWidth>e.showHideLimits[1+(e.selectedChat.state.type!==e.ClassList.Closed?1:0)+(e.sharesWithMe&&e.sharesWithMe.length>0?1:0)]?"d-none":"d-list-item")("nzTooltipTitle",e.selectedChat.state.type===e.ClassList.Closed?t.lcZ(1,4,"CLIENT.CONVERSATIONS.OFFER_LIMIT_CLOSED"):e.actActiveOffer&&e.actActiveOffer.userID===e.userService.sessionUserID?t.lcZ(2,6,"CLIENT.CONVERSATIONS.OFFER_LIMIT"):null),t.xp6(3),t.hij(" ",t.lcZ(4,8,"CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.SEND_OFFER")," ")}}function ln(o,i){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"app-contact-widget",93),t.qZA()),2&o){const e=i.$implicit;t.xp6(1),t.Q6J("contactDetails",e)}}function hn(o,i){if(1&o&&(t.TgZ(0,"li",156)(1,"button",157),t._uU(2),t.ALo(3,"translate"),t._UZ(4,"i",124),t.qZA(),t.TgZ(5,"nz-dropdown-menu",null,92),t.YNc(7,ln,2,1,"div",56),t.qZA()()),2&o){const e=t.MAs(6),n=t.oxw(4);t.xp6(1),t.Q6J("nzDropdownMenu",e)("nzTrigger","click"),t.xp6(1),t.hij(" ",t.lcZ(3,5,"CLIENT.CONVERSATIONS.CONTACT"),""),t.xp6(5),t.Q6J("ngForOf",n.actContactDetailsArray)("ngForTrackBy",n.trackByContact)}}function _n(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"li",158)(1,"button",159),t.NdJ("nzOnConfirm",function(){t.CHM(e);const s=t.oxw(4);return t.KtG(s.chatMode===s.ChatMode.REAL?s.openVideochat(!1):s.routerService.routeToRegisterHref())})("nzOnCancel",function(){t.CHM(e);const s=t.oxw(4);return t.KtG(s.chatSettingVisible=!1)}),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"translate"),t._UZ(5,"span",118),t.TgZ(6,"span"),t._uU(7),t.ALo(8,"translate"),t.qZA()()()}if(2&o){const e=t.oxw(4);t.Q6J("ngClass",e.headerWidth>e.showHideLimits[1]?"d-none":"d-list-item"),t.xp6(1),t.Q6J("nzPopconfirmTitle",t.lcZ(2,6,"LANDING.DEMOS.CONVERSATIONS.VIDEOCHAT_POPCONFIRM.TITLE"))("nzCancelText",t.lcZ(3,8,"LANDING.DEMOS.CONVERSATIONS.VIDEOCHAT_POPCONFIRM.CANCEL_TEXT"))("nzOkText",t.lcZ(4,10,"LANDING.DEMOS.CONVERSATIONS.VIDEOCHAT_POPCONFIRM.OK_TEXT"))("nzCondition",e.chatMode===e.ChatMode.REAL),t.xp6(6),t.hij(" ",t.lcZ(8,12,"CLIENT.CONVERSATIONS.VIDEOCHAT.TEXT"),"")}}function pn(o,i){if(1&o&&(t.TgZ(0,"li",160)(1,"span",161),t._uU(2),t.ALo(3,"translate"),t._UZ(4,"i",124),t.qZA()()),2&o){t.oxw(2);const e=t.MAs(3),n=t.oxw(2);t.Q6J("ngClass",n.headerWidth>n.showHideLimits[1+(n.selectedChat.state.type!==n.ClassList.Closed?1:0)]?"d-none":"d-list-item")("nzDropdownMenu",e),t.xp6(2),t.hij(" ",t.xi3(3,3,"CLIENT.PUBLIC.CONTRACTS_SHARED",t.VKq(6,x,n.sharesWithParticipant.length))," ")}}function dn(o,i){if(1&o&&(t.TgZ(0,"li",160)(1,"span",161),t._uU(2),t.ALo(3,"translate"),t._UZ(4,"i",124),t.qZA()()),2&o){t.oxw(2);const e=t.MAs(13),n=t.oxw(2);t.Q6J("ngClass",n.headerWidth>n.showHideLimits[1+(n.selectedChat.state.type!==n.ClassList.Closed?1:0)+(n.sharesWithParticipant&&n.sharesWithParticipant.length>0&&!n.filterByIds?1:0)]?"d-none":"d-list-item")("nzDropdownMenu",e),t.xp6(2),t.hij(" ",t.xi3(3,3,"CLIENT.PUBLIC.CONTRACTS_SHARED_WITH_YOU",t.VKq(6,x,n.sharesWithMe.length))," ")}}function Cn(o,i){if(1&o&&(t.TgZ(0,"ul",139),t.YNc(1,qe,4,9,"li",140),t.YNc(2,$e,7,21,"li",141),t.YNc(3,nn,7,17,"li",142),t.YNc(4,rn,4,7,"li",143),t.YNc(5,cn,5,10,"li",144),t.YNc(6,hn,8,7,"li",145),t.YNc(7,_n,9,14,"li",146),t.YNc(8,pn,5,8,"li",147),t.YNc(9,dn,5,8,"li",147),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.userType===e.UserType.Client&&e.selectedUser.kind===e.UserType.Lawyer),t.xp6(1),t.Q6J("ngIf",e.selectedChat.state.type!==e.ClassList.Closed),t.xp6(1),t.Q6J("ngIf",e.selectedChat.state.type!==e.ClassList.Closed&&(e.userType===e.UserType.Client||e.chatMode!==e.ChatMode.REAL)),t.xp6(1),t.Q6J("ngIf",e.userType===e.UserType.Lawyer&&!e.isMyContactShared&&e.shareContactEnabled),t.xp6(1),t.Q6J("ngIf",e.userType===e.UserType.Lawyer),t.xp6(1),t.Q6J("ngIf",e.actContactDetailsArray&&e.actContactDetailsArray.length>0),t.xp6(1),t.Q6J("ngIf",e.selectedChat.state.type!==e.ClassList.Closed),t.xp6(1),t.Q6J("ngIf",e.sharesWithParticipant&&e.sharesWithParticipant.length>0&&!e.filterByIds),t.xp6(1),t.Q6J("ngIf",e.sharesWithMe&&e.sharesWithMe.length>0&&!e.filterByIds)}}function mn(o,i){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.Oqu(e.rateToolTips[e.lawyerRating-1])}}const B=function(o){return{lawyer:o}};function gn(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"div",162)(2,"h6"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"p",163),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"div",164)(9,"nz-rate",165),t.NdJ("ngModelChange",function(s){t.CHM(e);const a=t.oxw(3);return t.KtG(a.saveToLawyer(s))}),t.qZA()(),t.TgZ(10,"div",164),t.YNc(11,mn,2,1,"span",62),t.qZA()()()}if(2&o){const e=t.oxw(3);t.xp6(3),t.Oqu(t.xi3(4,5,"CLIENT.CONVERSATIONS.RATE.RATE",t.VKq(11,B,e.selectedUser.name))),t.xp6(3),t.hij(" ",t.xi3(7,8,"CLIENT.CONVERSATIONS.RATE.SECRET",t.VKq(13,B,e.selectedUser.name))," "),t.xp6(3),t.Q6J("ngModel",e.lawyerRating)("nzTooltips",e.rateToolTips),t.xp6(2),t.Q6J("ngIf",e.lawyerRating>0)}}const J=function(){return[]};function fn(o,i){if(1&o&&t._UZ(0,"app-multi-state-button",171),2&o){const e=t.oxw(4);t.Q6J("nzType","primary")("defaultFunction",e.deleteReviewFunction)("defaultFunctionParameters",t.DdM(6,J))("stickResult",!1)("nzSize","small")("nzTextKeys",e.deleteReviewText)}}function Tn(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",166)(1,"div",167)(2,"button",168),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(3);return s.reviewVisibleFromList=!1,t.KtG(s.reviewVisibleFromButton=!1)}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,fn,1,7,"app-multi-state-button",169),t._UZ(6,"app-multi-state-button",170),t.ALo(7,"translate"),t.ALo(8,"translate"),t.qZA()()}if(2&o){const e=t.oxw(3);t.xp6(3),t.hij(" ",t.lcZ(4,10,"CLIENT.CONVERSATIONS.RATE.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",e.canDeleteRating),t.xp6(1),t.Q6J("nzType","primary")("defaultFunction",0!==e.lawyerRating&&e.lawyerSetRating!==e.lawyerRating?e.sendReviewFunction:null)("defaultFunctionParameters",t.DdM(16,J))("stickResult",!1)("nzSize","small")("nzTextKeys",e.canDeleteRating?e.modifyReviewText:e.sendReviewText)("nzGhost",0===e.lawyerRating||e.lawyerSetRating===e.lawyerRating)("nzTooltipTitle",0===e.lawyerRating?t.lcZ(7,12,"CLIENT.CONVERSATIONS.RATE.RATE_TOOLTIP.NOT_SET"):e.lawyerSetRating===e.lawyerRating?t.lcZ(8,14,"CLIENT.CONVERSATIONS.RATE.RATE_TOOLTIP.NOT_MODIFIED"):null)}}function un(o,i){if(1&o){const e=t.EpF();
27t.TgZ(0,"div",94),t.YNc(1,Re,10,22,"button",95),t.TgZ(2,"nz-dropdown-menu",null,96)(4,"ul",97),t.YNc(5,ke,3,3,"li",98),t.TgZ(6,"a",99)(7,"li",100),t._uU(8),t.ALo(9,"translate"),t.qZA()()()(),t.YNc(10,Ze,6,14,"button",101),t.YNc(11,Ve,2,1,"ng-container",62),t.TgZ(12,"nz-dropdown-menu",null,102)(14,"ul",103),t.YNc(15,Fe,13,28,"ng-container",56),t.qZA()(),t.YNc(16,We,6,15,"button",104),t.YNc(17,Je,2,1,"ng-container",62),t.TgZ(18,"nz-dropdown-menu",null,96)(20,"ul",103),t.YNc(21,He,13,28,"ng-container",56),t.TgZ(22,"li",105),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2);return t.KtG(s.shareContractModal())}),t._uU(23),t.ALo(24,"translate"),t.qZA()()(),t.YNc(25,Qe,4,9,"button",106),t.YNc(26,Ke,4,8,"button",107),t.YNc(27,Ge,3,5,"button",108),t.YNc(28,Ye,7,6,"ng-template",null,109,t.W1O),t.YNc(30,je,6,20,"app-multi-state-button",110),t.TgZ(31,"button",111),t.NdJ("nzVisibleChange",function(s){t.CHM(e);const a=t.oxw(2);return t.KtG(a.chatSettingVisible=s)}),t.ALo(32,"translate"),t._UZ(33,"i",112),t.qZA(),t.TgZ(34,"nz-dropdown-menu",null,113),t.YNc(36,Cn,10,9,"ul",114),t.qZA(),t.YNc(37,gn,12,15,"ng-template",null,115,t.W1O),t.YNc(39,Tn,9,17,"ng-template",null,116,t.W1O),t.qZA()}if(2&o){const e=t.MAs(35),n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",n.selectedChat.state.type!==n.ClassList.Closed),t.xp6(4),t.Q6J("ngIf",n.windowWidth>768),t.xp6(1),t.Q6J("href",n.openVideochat(!1),t.LSH),t.xp6(2),t.hij(" ",t.lcZ(9,23,"CLIENT.CONVERSATIONS.VIDEOCHAT.NEW_WINDOW")," "),t.xp6(2),t.Q6J("ngIf",n.selectedChat.state.type!==n.ClassList.Closed),t.xp6(1),t.Q6J("ngIf",!n.filterByIds),t.xp6(4),t.Q6J("ngForOf",n.sharesWithMe)("ngForTrackBy",n.trackBySharedContract),t.xp6(1),t.Q6J("ngIf",n.selectedChat.state.type!==n.ClassList.Closed&&n.userType===n.UserType.Client||n.chatMode!==n.ChatMode.REAL),t.xp6(1),t.Q6J("ngIf",!n.filterByIds),t.xp6(4),t.Q6J("ngForOf",n.sharesWithParticipant)("ngForTrackBy",n.trackByContract),t.xp6(2),t.hij(" ",t.xi3(24,25,n.hasRelatedOpenChat[n.selectedChat.ID]?"CLIENT.PUBLIC.SHARE_MORE":"CLIENT.PUBLIC.SHARE_CLOSED",t.VKq(30,E,n.selectedUser.name))," "),t.xp6(2),t.Q6J("ngIf",n.userType===n.UserType.Client&&n.selectedUser.kind===n.UserType.Lawyer),t.xp6(1),t.Q6J("ngIf",n.selectedChat.state.type!==n.ClassList.Closed&&n.userType===n.UserType.Lawyer),t.xp6(1),t.Q6J("ngIf",n.selectedChat.state.type!==n.ClassList.Closed&&n.userType===n.UserType.Lawyer&&!n.isMyContactShared&&n.shareContactEnabled),t.xp6(3),t.Q6J("ngIf",n.selectedChat.state.type!==n.ClassList.Closed),t.xp6(1),t.Q6J("nzDropdownMenu",e)("nzTrigger","click")("nzVisible",n.chatSettingVisible)("nzTooltipTitle",t.lcZ(32,28,"LANDING.DEMOS.CONVERSATIONS.SETTINGS"))("ngClass",n.headerWidth>n.showHideLimits[n.userType===n.UserType.Client?(n.selectedChat.state.type!==n.ClassList.Closed?1:0)+(n.sharesWithParticipant&&n.sharesWithParticipant.length>0&&!n.filterByIds?1:0)+(n.sharesWithMe&&n.sharesWithMe.length>0?1:0)+(n.selectedChat.state.type===n.ClassList.Closed||n.userType!==n.UserType.Client&&n.chatMode===n.ChatMode.REAL?0:1)+(n.userType===n.UserType.Client&&n.selectedUser.kind===n.UserType.Lawyer?1:0)+(n.selectedChat.state.type!==n.ClassList.Closed?1:0):(n.selectedChat.state.type!==n.ClassList.Closed?2:0)+(n.sharesWithMe&&n.sharesWithMe.length>0?1:0)+(n.selectedChat.state.type!==n.ClassList.Closed&&n.userType===n.UserType.Lawyer&&!n.isMyContactShared&&n.shareContactEnabled?1:0)]?"d-none":"d-inline-block"),t.xp6(5),t.Q6J("ngIf",n.selectedChat)}}function On(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",73),t.NdJ("resized",function(s){t.CHM(e);const a=t.oxw();return t.KtG(a.onHeaderResized(s))}),t.YNc(1,De,2,1,"ng-container",56),t.YNc(2,un,41,32,"div",74),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("ngClass",e.isContentOpen?"conversation-header justify-content-between":"conversation-header closed justify-content-between"),t.xp6(1),t.Q6J("ngForOf",e.chatList)("ngForTrackBy",e.trackByChat),t.xp6(1),t.Q6J("ngIf",e.selectedChat)}}function Mn(o,i){1&o&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONVERSATIONS.PINNED_OFFER.OFFER_WAITING_CLIENT")," "))}function In(o,i){1&o&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONVERSATIONS.PINNED_OFFER.OFFER_WAITING_LAWYER")," "))}const En=function(o){return{lawyerName:o}};function vn(o,i){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,"CLIENT.CONVERSATIONS.PINNED_OFFER.OFFER_DESCRITPION_CLIENT",t.VKq(4,En,e.selectedUser.name)))}}function xn(o,i){1&o&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"CLIENT.CONVERSATIONS.PINNED_OFFER.OFFER_DESCRIPTION_LAWYER")))}function Nn(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",172)(1,"div",173)(2,"div",174)(3,"h6",175),t.YNc(4,Mn,3,3,"div",62),t.YNc(5,In,3,3,"div",62),t.qZA(),t.TgZ(6,"p",81),t.YNc(7,vn,3,6,"span",62),t.YNc(8,xn,3,3,"span",62),t.qZA()()(),t.TgZ(9,"button",176),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openOfferWidgetModal(s.actActiveOffer,!0))}),t.TgZ(10,"span",177),t._uU(11),t.ALo(12,"translate"),t.qZA()()()}if(2&o){const e=t.oxw();
27t.xp6(4),t.Q6J("ngIf",e.chatMode===e.ChatMode.DEMO_LAWYER_MEDIATION||e.userType===e.UserType.Client),t.xp6(1),t.Q6J("ngIf",e.userType===e.UserType.Lawyer),t.xp6(2),t.Q6J("ngIf",e.chatMode===e.ChatMode.DEMO_LAWYER_MEDIATION||e.userType===e.UserType.Client),t.xp6(1),t.Q6J("ngIf",e.userType===e.UserType.Lawyer),t.xp6(3),t.hij(" ",t.lcZ(12,5,"CLIENT.CONVERSATIONS.PINNED_OFFER.OPEN")," ")}}function Ln(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",183),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.newConversation())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONVERSATIONS.FUNCTIONS.CREATE")," "))}function Pn(o,i){if(1&o&&(t.TgZ(0,"nz-empty",181),t.ALo(1,"translate"),t.YNc(2,Ln,3,3,"ng-template",null,182,t.W1O),t.qZA()),2&o){const e=t.MAs(3);t.Q6J("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",t.lcZ(1,3,"CLIENT.CONVERSATIONS.NOT_FOUND_CONTENT"))("nzNotFoundFooter",e)}}function Sn(o,i){1&o&&(t._UZ(0,"nz-empty",184),t.ALo(1,"translate")),2&o&&t.Q6J("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",t.lcZ(1,2,"CLIENT.CONVERSATIONS.NOT_FOUND_CONTENT_LAWYER"))}function An(o,i){if(1&o&&(t.TgZ(0,"div",178),t.YNc(1,Pn,4,5,"nz-empty",179),t.YNc(2,Sn,2,4,"nz-empty",180),t.qZA()),2&o){const e=t.oxw();
27t.xp6(1),t.Q6J("ngIf",e.userType===e.UserType.Client),t.xp6(1),t.Q6J("ngIf",e.userType===e.UserType.Lawyer)}}function zn(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",189),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).$implicit,a=t.oxw();return t.KtG(a.downloadAgencyContract(s.matched))}),t.ALo(1,"translate"),t._UZ(2,"i",190),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&o&&(t.Q6J("nzTooltipTitle",t.lcZ(1,2,"CLIENT.CONVERSATIONS.AGENCY_CONTRACT.TOOLTIP")),t.xp6(3),t.hij(" ",t.lcZ(4,4,"CLIENT.CONVERSATIONS.AGENCY_CONTRACT.LINK")," "))}function yn(o,i){if(1&o&&(t.TgZ(0,"div",187)(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,zn,5,6,"div",188),t.qZA()),2&o){const e=t.oxw().$implicit,n=t.oxw();t.xp6(2),t.hij(" ",t.xi3(3,2,"CLIENT.CONVERSATIONS.AGENCY_CONTRACT.TITLE",t.VKq(5,E,e.participants.length>0&&e.participants[0].userID!==n.userService.sessionUserID?e.participants[0].name:e.participants.length>1&&e.participants[1].userID!==n.userService.sessionUserID?e.participants[1].name:""))," "),t.xp6(2),t.Q6J("ngIf",e.matched.serviceID)}}function bn(o,i){1&o&&t._UZ(0,"i",204)}const H=function(o){return{"w-100":o}};function wn(o,i){if(1&o&&(t.TgZ(0,"div",202),t.ALo(1,"date"),t.YNc(2,bn,1,0,"i",203),t._uU(3),t.ALo(4,"translate"),t.ALo(5,"dateAgo"),t.qZA()),2&o){const e=t.oxw().$implicit,n=t.oxw(3);t.Q6J("ngClass",t.VKq(14,H,n.headerWidth<430))("nzTooltipTitle",t.xi3(1,4,e.timestamp,"yyyy-MM-dd HH:mm:ss")),t.xp6(2),t.Q6J("ngIf","CLIENT.CONVERSATIONS.SENDING"===e.time),t.xp6(1),t.hij(" ","CLIENT.CONVERSATIONS.SENDING"===e.time&&n.chatMode===n.ChatMode.REAL?t.lcZ(4,7,e.time):t.gM2(5,9,e.timestamp,n.trigger,1,59)," ")}}function Dn(o,i){if(1&o&&(t.TgZ(0,"div",205),t._UZ(1,"nz-avatar",206),t.ALo(2,"translate"),t.qZA()),2&o){const e=t.oxw().$implicit,n=t.oxw(2).$implicit,s=t.oxw();t.xp6(1),t.Q6J("nzSrc",s.chatMode===s.ChatMode.REAL?s.userInfosService.userImgs.get(e.fromUserID):e.avatar)("nzAlt",t.xi3(2,2,"CLIENT.CONVERSATIONS.AVATAR",t.VKq(5,E,n.participants.length>0&&n.participants[0].userID===e.fromUserID?n.participants[0].name:n.participants.length>1&&n.participants[1].userID===e.fromUserID?n.participants[1].name:"")))}}function Rn(o,i){1&o&&t._UZ(0,"i",204)}function kn(o,i){if(1&o&&(t.TgZ(0,"div",207),t.ALo(1,"date"),t.YNc(2,Rn,1,0,"i",203),t._uU(3),t.ALo(4,"translate"),t.ALo(5,"dateAgo"),t.qZA()),2&o){const e=t.oxw().$implicit,n=t.oxw(3);t.Q6J("ngClass",t.VKq(14,H,n.headerWidth<430))("nzTooltipTitle",t.xi3(1,4,e.timestamp,"yyyy-MM-dd HH:mm:ss")),t.xp6(2),t.Q6J("ngIf","CLIENT.CONVERSATIONS.SENDING"===e.time&&n.chatMode===n.ChatMode.REAL),t.xp6(1),t.hij(" ","CLIENT.CONVERSATIONS.SENDING"===e.time&&n.chatMode===n.ChatMode.REAL?t.lcZ(4,7,e.time):t.gM2(5,9,e.timestamp,n.trigger,1,59)," ")}}function Zn(o,i){if(1&o&&t._UZ(0,"span",213),2&o){const e=t.oxw(2).$implicit;t.Q6J("innerHTML",e.text,t.oJD)}}function Un(o,i){if(1&o&&t._UZ(0,"img",214),2&o){const e=t.oxw(2).$implicit;t.Q6J("src",e.text,t.LSH)("alt",e.text)}}function Vn(o,i){if(1&o&&(t.TgZ(0,"div",215),t._UZ(1,"i",216),t.TgZ(2,"span",217)(3,"u"),t._uU(4),t.qZA()()()),2&o){const e=t.oxw(2).$implicit;t.xp6(4),t.Oqu(e.text)}}const Fn=function(o,i){return{"m-l-50":o,shrinkedMessage:i}},Wn=function(o){return{"p-5":o}};function Bn(o,i){if(1&o&&(t.TgZ(0,"div",208)(1,"div",209),t.YNc(2,Zn,1,1,"span",210),t.YNc(3,Un,1,2,"img",211),t.YNc(4,Vn,5,1,"div",212),t.qZA()()),2&o){const e=t.oxw().$implicit,n=t.oxw(3);t.Q6J("ngClass",t.WLB(5,Fn,0===e.avatar.length&&"opposite"===e.from,n.headerWidth<430&&0!==e.avatar.length&&"opposite"===e.from)),t.xp6(1),t.Q6J("ngClass",t.VKq(8,Wn,"image"==e.msgType)),t.xp6(1),t.Q6J("ngIf","text"==e.msgType),t.xp6(1),t.Q6J("ngIf","image"==e.msgType),t.xp6(1),t.Q6J("ngIf","file"==e.msgType)}}const Jn=function(o,i){return{"ant-card ant-card-bordered":o,shrinkedMessage:i}};function Hn(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"app-offer-widget",218),t.NdJ("modifyEmitter",function(s){t.CHM(e);const a=t.oxw(4);return t.KtG(a.handleModifyOffer(s))}),t.qZA()}if(2&o){const e=t.oxw().$implicit,n=t.oxw(2).$implicit,s=t.oxw();t.Q6J("chatWidth",s.headerWidth)("offer",e.offer)("isActive",e.isActiveOffer)("participants",n.participants)("chatOriginOffers",s.originOffers.get(n.ID))("chatResultOffers",s.resultOffers.get(n.ID))("pendingOfferModification",s.offerModifications.get(e.offer.originID))("ngClass",t.WLB(9,Jn,e.offer.state.type===s.OfferStateType.Opened,s.headerWidth<430&&"opposite"===e.from))("isDemo",s.chatMode!==s.ChatMode.REAL)}}const Qn=function(o){return{shrinkedMessage:o}};function Kn(o,i){if(1&o&&t._UZ(0,"app-contact-widget",219),2&o){const e=t.oxw().$implicit,n=t.oxw(3);t.Q6J("contactDetails",e.contactDetails)("chatWidth",n.headerWidth)("ngClass",t.VKq(3,Qn,n.headerWidth<430&&"opposite"===e.from))}}function Gn(o,i){if(1&o&&(t._UZ(0,"span",223),t.ALo(1,"translate"),t.ALo(2,"translate")),2&o){const e=t.oxw(2).$implicit,n=t.oxw(2).$implicit,s=t.oxw();t.Q6J("innerHTML",t.xi3(1,1,e.text,t.VKq(6,b,n.state.responsibleID===s.userService.sessionUserID?t.lcZ(2,4,"COMMON.YOU"):n.participants.length>0&&n.participants[0].userID===n.state.responsibleID?n.participants[0].name:n.participants.length>1&&n.participants[1].userID===n.state.responsibleID?n.participants[1].name:""))+"",t.oJD)}}function Yn(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"app-multi-state-button",224),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(5);return t.KtG(s.openIntercomHelp())}),t.qZA()}if(2&o){const e=t.oxw(5);t.Q6J("stickResult",!1)("showAsLink",!0)("runFunction",e.openIntercomHelpFunction)("nzTextKeys",e.openIntercomHelpText)}}const jn=function(o){return{"w-100 text-right":o}};function qn(o,i){if(1&o&&(t.TgZ(0,"div",220),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"date"),t.YNc(4,Gn,3,8,"span",221),t.YNc(5,Yn,1,4,"app-multi-state-button",222),t.qZA()),2&o){const e=t.oxw().$implicit,n=t.oxw(2).$implicit,s=t.oxw();t.Q6J("ngClass",t.VKq(12,jn,s.headerWidth<430&&"date"!==e.msgType&&"unread"!==e.msgType&&"closed"!==e.msgType))("nzTooltipTitle","closed"===e.msgType?t.xi3(1,4,e.time,t.VKq(14,b,n.state.responsibleID===s.userService.sessionUserID?t.lcZ(2,7,"COMMON.YOU"):n.participants.length>0&&n.participants[0].userID===n.state.responsibleID?n.participants[0].name:n.participants.length>1&&n.participants[1].userID===n.state.responsibleID?n.participants[1].name:"")):0!==e.timestamp?t.xi3(3,9,e.timestamp,"yyyy-MM-dd HH:mm:ss"):null),t.xp6(4),t.Q6J("ngIf","unread"===e.msgType||"closed"===e.msgType),t.xp6(1),t.Q6J("ngIf","closed"===e.msgType)}}function $n(o,i){if(1&o&&(t._UZ(0,"nz-empty",184),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate")),2&o){const e=t.oxw(4);t.Q6J("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",e.userType===e.UserType.Lawyer?t.lcZ(1,2,"CLIENT.CONVERSATIONS.EMPTY_CLIENT"):e.selectedUser&&e.selectedUser.kind===e.UserType.Lawyer?t.lcZ(2,4,"CLIENT.CONVERSATIONS.EMPTY_LAWYER"):t.lcZ(3,6,"CLIENT.CONVERSATIONS.EMPTY_PARTNER"))}}const Q=function(o,i,e,n,s){return{"msg-recipient":o,"msg-sent":i,"justify-content-center":e,"flex-wrap-reverse":n,"flex-wrap":s}};function Xn(o,i){if(1&o&&(t.TgZ(0,"div",193),t.YNc(1,wn,6,16,"div",194),t.TgZ(2,"div",195),t.YNc(3,Dn,3,7,"div",196),t.YNc(4,kn,6,16,"div",197),t.YNc(5,Bn,5,10,"div",198),t.YNc(6,Hn,1,12,"app-offer-widget",199),t.YNc(7,Kn,
271,5,"app-contact-widget",200),t.YNc(8,qn,6,16,"div",201),t.qZA(),t.YNc(9,$n,4,8,"nz-empty",180),t.qZA()),2&o){const e=i.$implicit,n=i.index,s=t.oxw(2).$implicit,a=t.oxw();t.Q6J("ngClass",t.qbA(11,Q,"opposite"==e.from,"me"==e.from,"date"==e.msgType||"unread"==e.msgType,a.headerWidth<430&&"me"==e.from,a.headerWidth<430&&"opposite"==e.from))("@inOutMessage",void 0),t.xp6(1),t.Q6J("ngIf",n===s.msg.length-1&&a.chatMode===a.ChatMode.REAL&&"closed"!==e.msgType),t.xp6(1),t.Q6J("ngClass",t.qbA(17,Q,"opposite"==e.from,"me"==e.from,"date"==e.msgType||"unread"==e.msgType,a.headerWidth<430&&"me"==e.from,a.headerWidth<430&&"opposite"==e.from)),t.xp6(1),t.Q6J("ngIf",e.avatar.length>1),t.xp6(1),t.Q6J("ngIf","me"===e.from),t.xp6(1),t.Q6J("ngIf",e.text),t.xp6(1),t.Q6J("ngIf","offer"===e.msgType),t.xp6(1),t.Q6J("ngIf","contact"===e.msgType),t.xp6(1),t.Q6J("ngIf","me"!==e.from),t.xp6(1),t.Q6J("ngIf",0===s.msg.length)}}const ti=function(o,i,e){return{"d-flex flex-column flex-grow-1":o,"justify-content-center":i,"justify-content-flex-end":e}};function ei(o,i){if(1&o&&(t.TgZ(0,"div",191),t.YNc(1,Xn,10,23,"div",192),t.qZA()),2&o){const e=t.oxw().$implicit,n=t.oxw();t.Q6J("id",e.ID)("ngClass",t.kEZ(4,ti,n.chatId===e.ID,n.chatId===e.ID&&0===e.msg.length,n.chatId===e.ID&&e.msg.length>0)),t.xp6(1),t.Q6J("ngForOf",e.msg)("ngForTrackBy",n.trackByMessage)}}const ni=function(o){return{"h-100 d-flex flex-column":o}};function ii(o,i){if(1&o&&(t.TgZ(0,"div",154),t.YNc(1,yn,5,7,"div",185),t.YNc(2,ei,2,8,"div",186),t.qZA()),2&o){const e=i.$implicit,n=t.oxw();t.Q6J("ngClass",t.VKq(3,ni,n.chatId===e.ID)),t.xp6(1),t.Q6J("ngIf",e.matched&&n.chatId===e.ID),t.xp6(1),t.Q6J("ngIf",n.chatId===e.ID)}}const si=function(o){return{redBorder:o}};function oi(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"textarea",235,236),t.NdJ("ngModelChange",function(s){t.CHM(e);const a=t.oxw(2);return t.KtG(a.msg=s)})("keydown",function(){t.CHM(e);const s=t.oxw(2);return t.KtG(s.startedTyping())})("keydown.enter",function(s){t.CHM(e);const a=t.oxw(2);return a.sendMsg(a.msg),t.KtG(s.preventDefault())})("ngModelChange",function(){t.CHM(e);const s=t.oxw(2);return t.KtG(s.emojiOnChange(s.msg))})("nzTooltipVisibleChange",function(s){t.CHM(e);const a=t.oxw(2);return t.KtG(a.textareaTooltip=s)}),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"translate"),t.ALo(5,"translate"),t.ALo(6,"translate"),t.qZA()}if(2&o){const e=t.oxw(2);t.Q6J("nzAutosize",e.textareaRows)("readOnly",e.selectedChat.state.type===e.ClassList.Closed||e.messageLimitMap.has(e.chatId)&&e.messageLimitMap.get(e.chatId).length===e.messageLimit&&e.Date.now()-e.messageLimitMap.get(e.chatId)[0]<e.messageWindow)("ngModel",e.msg)("placeholder",e.chatMode===e.ChatMode.REAL?t.lcZ(2,8,"CLIENT.CONVERSATIONS.INPUT_PLACEHOLDER"):t.lcZ(3,10,"LANDING.DEMOS.CONVERSATIONS.INPUT_PLACEHOLDER"))("maxlength",e.textCharacterLimit)("nzTooltipTitle",e.selectedChat&&e.selectedChat.state.type!==e.ClassList.Closed?e.messageLimitMap.has(e.chatId)&&e.messageLimitMap.get(e.chatId).length===e.messageLimit&&e.Date.now()-e.messageLimitMap.get(e.chatId)[0]<e.messageWindow?t.lcZ(5,14,"CLIENT.CONVERSATIONS.MESSAGE_LIMIT_REACHED"):e.msgTooShort?t.lcZ(6,16,"CLIENT.CONVERSATIONS.MESSAGE_TOO_SHORT"):null:t.lcZ(4,12,"CLIENT.CONVERSATIONS.CLOSED"))("nzTooltipVisible",e.textareaTooltip)("ngClass",t.VKq(18,si,e.msgTooShort))}}function ai(o,i){1&o&&(t.TgZ(0,"button",241),t.ALo(1,"translate"),t._UZ(2,"i",242),t.qZA()),2&o&&t.Q6J("nzTooltipTitle",t.lcZ(1,1,"CLIENT.CONVERSATIONS.EMOJI"))}function ri(o,i){1&o&&(t.TgZ(0,"span",243),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"CLIENT.CONVERSATIONS.EMOJIS")))}function ci(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"span",245),t.NdJ("click",function(){const a=t.CHM(e).$implicit,r=t.oxw(4);return t.KtG(r.addEmoji(a))}),t._uU(1),t.qZA()}if(2&o){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}function li(o,i){if(1&o&&t.YNc(0,ci,2,1,"span",244),2&o){const e=t.oxw(3);t.Q6J("ngForOf",e.emojiSelector)("ngForTrackBy",e.trackByString)}}const hi=function(){return{width:"200px","margin-bottom":"15px"}};function _i(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"li",237),t.NdJ("nzPopoverVisibleChange",function(s){t.CHM(e);const a=t.oxw(2);return t.KtG(a.emojisMenuVisible=s)})("click",function(s){return s.stopPropagation()}),t.YNc(1,ai,3,3,"button",238),t.YNc(2,ri,3,3,"ng-template",null,239,t.W1O),t.YNc(4,li,1,2,"ng-template",null,240,t.W1O),t.qZA()}if(2&o){const e=t.MAs(3),n=t.MAs(5),s=t.oxw(2);t.Q6J("nzPopoverTitle",e)("nzPopoverVisible",s.emojisMenuVisible)("nzPopoverOverlayStyle",t.DdM(5,hi))("nzPopoverContent",n),t.xp6(1),t.Q6J("ngIf",s.selectedChat.state.type!==s.ClassList.Closed)}}const pi=function(o,i){return{"d-none":o,"d-inline-block":i}};function di(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",225)(1,"div",226),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.chatInput?s.chatInput.nativeElement.focus():null)}),t.YNc(2,oi,7,20,"textarea",227),t.TgZ(3,"ul",228),t.YNc(4,_i,6,6,"li",229),t.TgZ(5,"li",230),t.NdJ("click",function(s){return s.stopPropagation()}),t.TgZ(6,"div",231),t.ALo(7,"translate"),t.ALo(8,"translate"),t.TgZ(9,"button",232),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.sendMsg(s.msg))}),t.ALo(10,"translate"),t.ALo(11,"translate"),t.ALo(12,"translate"),t.TgZ(13,"span"),t._UZ(14,"i",233),t.qZA()()(),t.TgZ(15,"button",234),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.sendMsg(s.msg))}),t.ALo(16,"translate"),t.ALo(17,"translate"),t._UZ(18,"span",233),t.qZA()()()()()}if(2&o){const e=t.oxw();
27t.xp6(2),t.Q6J("ngIf",e.selectedChat),t.xp6(2),t.Q6J("ngIf",e.selectedChat),t.xp6(2),t.Q6J("nzTooltipTitle",e.selectedChat&&e.selectedChat.state.type!==e.ClassList.Closed?e.messageLimitMap.has(e.chatId)&&e.messageLimitMap.get(e.chatId).length===e.messageLimit&&e.Date.now()-e.messageLimitMap.get(e.chatId)[0]<e.messageWindow?t.lcZ(8,11,"CLIENT.CONVERSATIONS.MESSAGE_LIMIT_REACHED"):null:t.lcZ(7,9,"CLIENT.CONVERSATIONS.CLOSED")),t.xp6(3),t.Q6J("ngClass",t.WLB(23,V,e.headerWidth>520,e.headerWidth<=520))("disabled",!e.selectedChat||e.selectedChat.state.type===e.ClassList.Closed||e.messageLimitMap.has(e.chatId)&&e.messageLimitMap.get(e.chatId).length===e.messageLimit&&e.Date.now()-e.messageLimitMap.get(e.chatId)[0]<e.messageWindow)("nzTooltipTitle",e.msgTooShort?t.lcZ(10,13,"CLIENT.CONVERSATIONS.EMPTY_INPUT"):e.chatMode===e.ChatMode.REAL?t.lcZ(11,15,"CLIENT.CONVERSATIONS.SEND"):t.lcZ(12,17,"LANDING.DEMOS.CONVERSATIONS.SEND")),t.xp6(6),t.Q6J("nzType","primary")("ngClass",t.WLB(26,pi,e.headerWidth>520,e.headerWidth<=520))("nzTooltipTitle",e.chatMode===e.ChatMode.REAL?t.lcZ(16,19,"CLIENT.CONVERSATIONS.SEND"):t.lcZ(17,21,"LANDING.DEMOS.CONVERSATIONS.SEND"))}}const Ci=function(o,i,e){return{"m-t-26":o,"max-chat-height":i,"main-chat-height":e}},mi=function(o,i,e){return{chatPhone:o,chatTablet:i,row:e}},gi=function(o,i,e){return{chatOpen:o,"d-none":i,"d-flex":e}},fi=function(o){return{searchExtraMargin:o}},Ti=function(o){return{"chat-user-list-lawyer":o}},K=function(){return{autoHide:!1}},ui=function(o,i){return{open:o,"fake-visibility":i}},Oi=function(o,i,e,n,s){return{"conversation-body-with-offer":o,"conversation-body-closed":i,"d-flex flex-column h-auto":e,"overflow-x-hidden":n,"p-h-15":s}};let T=class{constructor(i,e,n,s,a,r,c,_,p,C,g,f,O,Mi,Ii,Ei,vi,xi,Ni,Li,Pi,Si,Ai){this.location=i,this.nzMessageService=e,this.nzModal=n,this.route=s,this.router=a,this.translate=r,this.asyncMessenger=c,this.chatService=_,this.clientService=p,this.contractService=C,this.dateTrigger=g,this.formService=f,this.modalService=O,this.resizeService=Mi,this.routerService=Ii,this.themeService=Ei,this.userService=vi,this.userInfosService=xi,this.toastr=Ni,this.notificationService=Li,this.intercom=Pi,this.eventService=Si,this.changeDetectorRef=Ai,this.ClientRoutes=j.i,this.ColorSettings=X.y,this.Date=Date,this.OfferStateType=l.Ff,this.chatMode=l.jE.REAL,this.modalOpenChange=new t.vpe,this.chatFeaturesHeight=!1,this.isContentOpen=!1,this.isContentSwitched=!1,this.chatChannels=new Map,this.dateMessageThreshold=3e5,this.unreadMessageString="CLIENT.CONVERSATIONS.UNREAD_MESSAGES",this.ClassList=l.LJ,this.UserType=D.FW,this.chatFilterString="",this.sharesWithParticipant=[],this.sharesWithMe=[],this.actContactDetailsArray=[],this.chatSettingVisible=!1,this.isMyContactShared=!1,this.newMessageArrived=!1,this.contractToShare="",this.emojisMenuVisible=!1,this.trigger=0,this.lawyerRating=0,this.lawyerSetRating=0,this.canDeleteRating=!1,this.allEmojis={":-)":":smiley:",":)":":smile:",":D":":grinning:","8D":":grin:","8-D":":grinning:",xD:":laughing:",XD:":laughing:",":P":":stuck_out_tongue:",";P":":stuck_out_tongue_winking_eye:",":*":":kissing:",":-*":":kissing_heart:",";*":":kissing_smiling_eyes:",":(":":pensive:",":|":":neutral_face:",":\u2011|":":expressionless:",":-(":":confounded:","|;\u2011)":":sunglasses:",":X":":heart_eyes:",":E":":grimacing:",":/":":thinking_face:",":#":":no_mouth:",":\u2011J":":smirk:",":'(":":disappointed_relieved:",":-@":":hugging_face:","8:(":":face_with_rolling_eyes:"},this.emojiSelector=[],this.activityMap=new Map,this.summarizedOfferPrice=0,this.lastLimitMap=new Map,this.lastInDebounce=new Map,this.lastLimit=2,this.lastWindow=6e4,this.lastBeforeLimitMap=new Map,this.lastBeforeInDebounce=new Map,this.lastBeforeLimit=2,this.lastBeforeWindow=5e3,this.lastSeenLimitMap=new Map,this.lastSeenInDebounce=new Map,this.lastSeenLimit=1,this.lastSeenWindow=2e3,this.messageLimitMap=new Map,this.messageLimit=50,this.messageWindow=6e4,this.textCharacterLimit=1024,this.retryTimeoutInit=500,this.retryTimeoutMax=16e3,this.rateToolTips=[],this.originOffers=new Map,this.resultOffers=new Map,this.msgTooShort=!1,this.offerCreations=new Map,this.offerModifications=new Map,this.lastSeenTimestamp=new Map,this.subscriptions=[],this.isSidebarFolded=!1,this.preventSidebarFolding=!1,this.textareaRows={minRows:1,maxRows:8},this.isPhoneView=!1,this.isTabletView=!1,this.agencyContractUrlMap=new Map,this.shareContactPromises=new Map,this.shareContactEnabled=!1,this.reviewVisibleFromList=!1,this.reviewVisibleFromButton=!1,this.sendReviewText=new u.PR("CLIENT.CONVERSATIONS.RATE.SEND.CHANGE","CLIENT.CONVERSATIONS.RATE.SEND.CHANGING","CLIENT.CONVERSATIONS.RATE.SEND.CHANGED","CLIENT.CONVERSATIONS.RATE.SEND.FAILED"),this.modifyReviewText=new u.PR("CLIENT.CONVERSATIONS.RATE.MODIFY.CHANGE","CLIENT.CONVERSATIONS.RATE.MODIFY.CHANGING","CLIENT.CONVERSATIONS.RATE.MODIFY.CHANGED","CLIENT.CONVERSATIONS.RATE.MODIFY.FAILED"),this.deleteReviewText=new u.PR("CLIENT.CONVERSATIONS.RATE.DELETE.CHANGE","CLIENT.CONVERSATIONS.RATE.DELETE.CHANGING","CLIENT.CONVERSATIONS.RATE.DELETE.CHANGED","CLIENT.CONVERSATIONS.RATE.DELETE.FAILED"),this.closeConversationText=new u.PR("CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.CLOSE_CONVERSATION_BUTTON_STATES.DEFAULT","CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.CLOSE_CONVERSATION_BUTTON_STATES.WORKING","CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.CLOSE_CONVERSATION_BUTTON_STATES.SUCCESS","CLIENT.CONVERSATIONS.SETTINGS_DROPDOWN.CLOSE_CONVERSATION_BUTTON_STATES.FAILED"),this.openIntercomHelpText=new u.PR("CLIENT.CONVERSATIONS.CLOSED_HELP_BUTTON_STATES.DEFAULT","CLIENT.CONVERSATIONS.CLOSED_HELP_BUTTON_STATES.WORKING","CLIENT.CONVERSATIONS.CLOSED_HELP_BUTTON_STATES.SUCCESS","CLIENT.CONVERSATIONS.CLOSED_HELP_BUTTON_STATES.FAILED"),this.closeConversationMap=new Map,this.headerWidth=1200,this.showHideLimits=[0,635,860,980,1220,1375,1530],this.textareaTooltip=!1,this.demoClickTooltipVisible=!1,this.demoClickTooltipEnabled=!0,this.intercomHelpLoading=!1,this.hasRelatedOpenChat={},this.currentDate=Date.now(),this.FeedbackFeature=N.lrp,this.FeedbackUnit=N._0Z,this.ChatMode=l.jE,this.profileInfo=null,this.GetOwnUsernamePipe=new et.O(this.translate,this.userService),this.showVideoChatHere=!1,this.videoChatDropdownVisible=!1}ngOnInit(){this.deleteReviewFunction=()=>this.deleteRating(),this.sendReviewFunction=()=>
27this.saveRating(),Object.values(this.allEmojis).forEach(e=>{this.emojiSelector.push((0,P.emojify)(e))}),this.usersContracts=[],this.sharableContracts=[],this.chatMode===l.jE.DEMO_LAWYER_MEDIATION?(this.filteredChatList=R.M,this.chatList=R.M,this.scrollToUnreadOrBottom(),this.chatList.length>0&&this.selectChat(this.chatList[0].ID)):this.chatMode===l.jE.DEMO_FEATURES?(this.filteredChatList=w.$,this.chatList=w.$,this.scrollToUnreadOrBottom()):(this.contractService.getContracts(),this.contractService.contracts.pipe((0,d.t)(this)).subscribe(e=>{this.usersContracts=e,this.sharableContracts=this.usersContracts}),this.userType=this.clientService.userService.sessionType,this.getConversations().then(()=>{this.scrollToUnreadOrBottom()}),this.conversationForm=this.formService.shareContractGroup(),this.updateActivityInterval=(0,$.F)(3e4).pipe((0,d.t)(this)).subscribe(()=>{this.chatChannels.forEach((e,n)=>this.sendOtherMessage(n,e,new l.b))}),this.loadProfileImage(this.userService.sessionUserID)),this.dateTrigger.trigger.pipe((0,d.t)(this)).subscribe(e=>{this.trigger=e}),this.translate.onLangChange.pipe((0,d.t)(this)).subscribe(e=>{if(this.lang=e.lang,0!==this.rateToolTips.length)for(let n=0;n<5;n++){const s=this.translate.instant(`CLIENT.CONVERSATIONS.RATE.RATINGS.${n}`);this.rateToolTips[n]=s}else for(let n=0;n<5;n++){const s=this.translate.instant(`CLIENT.CONVERSATIONS.RATE.RATINGS.${n}`);this.rateToolTips.push(s)}});const i=this.router.events.pipe((0,d.t)(this)).subscribe(e=>{if(e instanceof L.OD){console.log(this.route);const n=this.route.params.pipe((0,d.t)(this)).subscribe(s=>{s.id&&!s.open&&this.selectChat(s.id)});this.subscriptions.push(n)}});this.subscriptions.push(i),this.themeService.isMenuFoldedChanges.pipe((0,d.t)(this)).subscribe(e=>{this.isSidebarFolded=e,e||(this.preventSidebarFolding=!0,this.preventSidebarFoldingTimeout&&(this.preventSidebarFoldingTimeout.unsubscribe(),this.preventSidebarFoldingTimeout=null),this.preventSidebarFoldingTimeout=(0,m.H)(1e3).pipe((0,d.t)(this)).subscribe(n=>{this.preventSidebarFolding=!1}))}),this.resizeTextarea(window.innerHeight),this.resizeService.height.pipe((0,d.t)(this)).subscribe(e=>{this.resizeTextarea(e)}),this.resizeService.width.pipe((0,d.t)(this)).subscribe(e=>{this.windowWidth=e,this.checkBreadcrumb()}),(0,m.H)(1e4).pipe((0,d.t)(this)).subscribe(()=>this.currentDate=Date.now()),this.clientService.getClientProfile().pipe((0,d.t)(this)).subscribe(e=>{this.profileInfo=e})}onResized(i){this.isPhoneView=i.newRect.width<900&&(i.newRect.width<880||!this.isTabletView),this.isTabletView=i.newRect.width<1025&&!this.isPhoneView&&(i.newRect.width<1005||this.isTabletView)&&!this.showVideoChatHere}onHeaderResized(i){this.headerWidth=i.newRect.width}ngOnChanges(i){this.filterChatList()}ngAfterViewInit(){this.scrollContainer&&this.scrollContainer.SimpleBar&&this.scrollContainer.SimpleBar.getScrollElement().addEventListener("scroll",i=>this.onChatScroll(i)),this.chatMode===l.jE.DEMO_FEATURES&&(window.outerWidth>=768?this.checkClickTooltip(null):this.demoClickTooltipVisible=!1,window.addEventListener("scroll",i=>this.checkClickTooltip(i)),window.addEventListener("click",i=>this.demoClickTooltipVisibleChange(i))),this.autosizableTextareas&&(this.autosizableTextareas.forEach(i=>{i.resizeToFitContent(!0)}),this.autosizableTextareas.changes.subscribe(i=>{this.autosizableTextareas.forEach(e=>{e.resizeToFitContent=n=>{this.chatInput&&(this.chatInput.nativeElement.style.height="",this.chatInput.nativeElement.style.height=this.chatInput.nativeElement.scrollHeight+"px")},e.resizeToFitContent(!0)})}))}checkClickTooltip(i){if(this.chatListElementList.length>0){const e=this.chatListElementList.get(0);if(e){const n=e.nativeElement.getBoundingClientRect();this.demoClickTooltipVisible=this.demoClickTooltipEnabled&&window.scrollX<n.top&&n.top<window.innerHeight,this.changeDetectorRef.detectChanges()}}}demoClickTooltipVisibleChange(i){i.target.textContent.trim()!==this.translate.instant("CLIENT.NOTIFICATIONS.DISMISS_ALL")&&this.demoClickTooltipVisible&&(this.demoClickTooltipVisible=!1,this.demoClickTooltipEnabled=!1)}ngAfterViewChecked(){this.scrollToUnreadOrBottom(this.chatMode===l.jE.REAL&&this.isContentSwitched,this.newMessageArrived)}ngOnDestroy(){this.closeChatChannels(),this.subscriptions.forEach(i=>
27i.unsubscribe()),this.scrollContainer&&this.scrollContainer.SimpleBar&&this.scrollContainer.SimpleBar.getScrollElement().removeEventListener("scroll",i=>this.onChatScroll(i)),window.removeEventListener("scroll",i=>this.checkClickTooltip(i)),window.removeEventListener("click",i=>this.demoClickTooltipVisibleChange(i))}selectChat(i){if(0===this.rateToolTips.length)for(let s=0;s<5;s++){const a=this.translate.instant(`CLIENT.CONVERSATIONS.RATE.RATINGS.${s}`);this.rateToolTips.push(a)}if(this.lawyerRating=0,this.lawyerSetRating=0,this.chatId=i,this.chatIndex=this.chatList.findIndex(s=>s.ID===i),this.isContentOpen=!0,this.checkBreadcrumb(),this.isContentSwitched=!0,this.selectedChat=this.chatList.find(s=>s.ID===this.chatId),this.msg="",this.chatFilterString="",this.selectedChat){const s=this.selectedChat.participants.filter(a=>a.userID!==this.userService.sessionUserID);this.selectedUser=s[0],this.chatMode===l.jE.REAL&&(this.userInfosService.batchGetUserNamesByIds([this.selectedUser.userID]),this.clientService.getContractShares(this.selectedUser.userID).pipe((0,d.t)(this)).subscribe(a=>{this.sharesWithParticipant=a},a=>{}),this.clientService.getContractsSharedWithMe().pipe((0,d.t)(this)).subscribe(a=>{this.sharesWithMe=a.filter(r=>r.shared.clientID===this.selectedUser.userID)},a=>{}))}!this.chatChannels.has(this.chatId)&&this.chatMode===l.jE.REAL&&this.connectToChatChannel(this.chatId,1e3,!0),this.filterChatList(),this.updateContactDetails(),this.updateActiveOffer();const n=this.selectedChat.participants.filter(s=>s.userID!==this.userService.sessionUserID);if(this.chatMode===l.jE.REAL&&1===n.length&&n[0].kind===D.FW.Lawyer&&this.clientService.getLawyerRating(this.chatId).pipe((0,d.t)(this)).subscribe(s=>{s.score&&s.score.value&&(this.lawyerSetRating=s.score.value,this.setCanDeleteRating())}),!this.isEmbedded&&this.chatMode===l.jE.REAL){const s=localStorage.getItem("language");this.lang=s,this.location.replaceState("en"===s?`/en/${S.d.baseFromUserType()}/chat/${this.chatId}`:`/${S.d.baseFromUserType()}/chat/${this.chatId}`)}this.chatMode===l.jE.REAL&&(0,m.H)(0).pipe((0,d.t)(this)).subscribe(s=>{this.scrollToUnreadOrBottom(!0,!1)}),setTimeout(()=>{this.scrollContainer&&this.scrollContainer.SimpleBar&&this.scrollContainer.SimpleBar.recalculate()},600),(0,m.H)(500).pipe((0,d.t)(this)).subscribe(s=>{if(this.scrollContainer&&this.scrollContainer.SimpleBar&&this.chatId===i){const a=this.scrollContainer.SimpleBar.getScrollElement();a&&a.clientHeight>=a.scrollHeight&&this.updateLastSeen()}}),this.changeDetectorRef.detectChanges()}returnLanguage(){if(this.translate.currentLang&&("en"===this.translate.currentLang||"hu"===this.translate.currentLang))return this.translate.currentLang}returnName(){if(this.profileInfo)return this.GetOwnUsernamePipe.transform(this.profileInfo,this.lang)}returnChatID(){if(this.profileInfo)return this.chatId}closeVideoChat(){this.showVideoChatHere=!1,this.videoCallContainer.clear(),this.videoChatDropdownVisible=!1}openVideochatDropdown(){this.videoChatDropdownVisible=!0}openVideochat(i){const e=new q.V8;if(!i)return this.routerService.getRouteToVideoChat(this.selectedChat.ID);{this.showVideoChatHere=!0,this.videoCallContainer.clear();const n=this.videoCallContainer.createComponent(nt._);n.setInput("queryData",{id:e.appendStr(this.selectedChat.ID).end(),name:this.returnName(),lang:this.returnLanguage(),chatID:this.returnChatID()}),n.setInput("isCompact",!0),n.instance.callEnded.pipe((0,d.t)(n.instance)).subscribe(s=>{this.closeVideoChat()})}}closeChatContent(){this.isContentOpen=!1,this.checkBreadcrumb(),this.selectedChat=void 0,this.chatId=void 0,!this.isEmbedded&&this.chatMode===l.jE.REAL&&this.location.replaceState(`/${S.d.baseFromUserType()}/chat`)}sendMsg(i){const e=new Date;for(let n=0;n<this.chatList.length;n++)if(this.chatId===this.chatList[n].ID)if(i=i.trim(),this.msg&&this.msg.trim().length>1){const s={avatar:"",text:i=this.linkify(i),from:"me",fromUserID:this.userService.sessionUserID,time:"CLIENT.CONVERSATIONS.SENDING",timestamp:e.valueOf(),publicID:this.makeid(32),msgType:"text"};this.chatList[n].msg.length>0&&this.chatList[n].msg[this.chatList[n].msg.length-1].timestamp-s.timestamp>this.dateMessageThreshold&&this.chatList[n].msg.push(this.createDateMessage(s.timestamp));const a=this.chatChannels.get(this.chatId.toString()),r=new l.yT(s.text,s.publicI
27D);this.sendTextMessage(this.chatId,a,r,this.chatList[n].msg,s),this.newMessageArrived=!0,this.msgTooShort=!1,this.msg="",setTimeout(()=>{this.scrollContainer&&this.scrollContainer.SimpleBar&&this.scrollContainer.SimpleBar.recalculate()},700)}else this.msgTooShort=!0,this.textareaTooltip=!0}sendTextMessage(i,e,n,s,a){let r;this.messageLimitMap.has(i)?r=this.messageLimitMap.get(i):(r=[],this.messageLimitMap.set(i,r)),(r.length<this.messageLimit||Date.now()-r[0]>this.messageWindow)&&(s.push(a),e&&this.sendOtherMessage(i,e,n),r.length===this.messageLimit&&r.shift(),r.push(Date.now()))}emojiOnChange(i){Object.entries(this.allEmojis).forEach(e=>{-1!==i.indexOf(e[0])&&(i=i.replace(e[0],e[1]))}),this.msg=(0,P.emojify)(i)}addEmoji(i){this.msg+=i,this.emojisMenuVisible=!1,this.chatInput.nativeElement.focus()}linkify(i){return i.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,function(n){return'<a target="blank" href="'+n+'">'+n+"</a>"})}makeid(i){let e="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",s=n.length;for(let a=0;a<i;a++)e+=n.charAt(Math.floor(Math.random()*s));return e}scrollToUnreadOrBottom(i=!1,e=!1){try{if(i){const s=this.chatList.find(c=>c.ID===this.chatId).msg.findIndex(c=>c.text===this.unreadMessageString&&"unread"===c.msgType),a=this.scrollContainer.SimpleBar.getScrollElement(),r=document.getElementById(this.chatId);s>-1?a.scrollTo({top:r.children[s].offsetTop-a.offsetTop}):this.scrollToBottom(!1)}else e&&(this.newMessageArrived=!1,this.scrollToBottom(!0))}catch{}}scrollToBottom(i){if(this.scrollContainer&&this.scrollContainer.SimpleBar.getScrollElement()){const e=this.scrollContainer.SimpleBar.getScrollElement();e.scrollTo({top:e.scrollHeight,behavior:i?"smooth":"auto"})}}getConversations(){return new Promise((e,n)=>{if(this.chatService.chatSnippetList&&0!==this.chatService.chatSnippetList.length)e(this.chatService.chatSnippetList);else{const s=this.chatService.messages.pipe((0,d.t)(this)).subscribe(a=>{s.unsubscribe(),e(a)},a=>{n(a)});this.chatService.checkForUpdates()}}).then(e=>{this.chatList=[],e.map(n=>this.addToChat(n,!0)),this.chatList.slice(0,10).forEach(n=>this.connectToChatChannel(n.ID,1e3,!0)),this.filteredChatList=this.chatList.filter(n=>n.participants.some(s=>s.name.toLowerCase().includes(this.chatFilterString.toLowerCase())&&s.userID!==this.userService.sessionUserID)),this.filteredChatList.sort((n,s)=>n.state.type===l.LJ.Closed?1:-1),this.chatList.forEach(n=>{n.participants.some(s=>{s.userID!==this.userService.sessionUserID?this.loadProfileImage(s.userID):this.insertLastSeen(s.lastSeen,n.ID)})}),this.chatService.newChatOrMessage.pipe((0,d.t)(this)).subscribe(n=>{const s=this.chatList.find(a=>a.ID===n.chatID);if(!s&&n.messages){const a=n.participants.find(r=>r.userID===this.userService.sessionUserID);this.addToChat(n),a&&this.insertLastSeen(a.lastSeen,n.chatID),this.filterChatList()}else if(s&&n.messages)n.messages.forEach(a=>{const r=this.convertMessage(a);this.insertMessage(r,s.ID)});else if(s&&!n.messages){const a=this.convertMessage(n);this.insertMessage(a,s.ID)}this.chatList.forEach(a=>{a.participants.some(r=>{r.userID!==this.userService.sessionUserID&&this.loadProfileImage(r.userID)})}),this.route.params.pipe((0,d.t)(this)).subscribe(a=>{a.id&&!a.open&&a.id===n.chatID&&!this.selectedChat&&this.selectChat(a.id)})}),this.chatService.chatStateChanged.pipe((0,d.t)(this)).subscribe(n=>{n.newState.type===l.LJ.Closed&&this.handleClose(new l.at(n.newState.responsibleID),n.chatID,n.newState.timestamp)}),this.sortChatList(),this.filterByIds&&this.filterByIds.length>0&&this.filterChatList(),this.route.params.pipe((0,d.t)(this)).subscribe(n=>{n.id&&!n.open&&this.selectChat(n.id)}),this.isEmbedded&&this.filteredChatList.length>0&&this.selectChat(this.filteredChatList[0].ID)},e=>{this.filterByIds&&this.filterByIds.length>0&&this.filterChatList(),this.route.params.pipe((0,d.t)(this)).subscribe(n=>{n.id&&!n.open&&this.selectChat(n.id)})})}loadProfileImage(i){this.userInfosService.userImgs.has(i)||this.userInfosService.batchGetUserImgsByIds([i])}addToChat(i,e=!1){let n="";2===i.participants.length?n=i.participants.find(r=>r.userID!==this.userService.sessionUserID).name:i.participants.length>2&&(n=i.participants.find(r=>r.userID!==this.userService.sessionUserID).name+" and "+(i.participants.length-2)+" "+this.translate.instant("CLIENT.CONVERSATIONS.OTHER"));const s={ID:i.chatID,name:n,avatar:"assets/images/avatars/thumb-1.webp",msg:[],time:"",state:i.state,participants:i.participants,limitedWidgets:i.limitedWidgets,matched:i.matched};
27this.chatList.push(s),i.messages.forEach(r=>{const c=this.convertMessage(r);this.insertMessage(c,i.chatID,e)});const a=s.msg;a.length>0&&(s.time=new Date(a[a.length-1].timestamp).toLocaleString()),i.state.type===l.LJ.Closed&&s.msg.push(this.createChatClosedMessage(i.state,i.participants)),this.sortChatList(),this.updateHasRelatedOpenChat(s)}updateHasRelatedOpenChat(i){this.hasRelatedOpenChat[i.ID]=i.state.type===l.LJ.Created;const e=i.participants.find(n=>n.userID!==this.getMyUserIDValue());if(e){const n=i.state.type===l.LJ.Created||this.chatList.find(s=>s.state.type===l.LJ.Created&&s.participants.find(a=>a.userID===e.userID));this.chatList.forEach(s=>{s.participants.find(a=>a.userID===e.userID)&&(this.hasRelatedOpenChat[s.ID]=n)})}}connectToChatChannel(i,e=1e3,n=!1){if(this.chatService.ticket&&this.chatService.ticketDate+Math.max(.8*this.chatService.ticketExpiration,this.chatService.ticketExpiration-5e3)>=Date.now()){const s=this.chatService.ticket,a={socket:null,observer:null,keepOpen:!0};a.socket=this.chatService.connectToChatChannel(i),a.socket.onmessage=r=>{try{this.handleWsMessages(JSON.parse(r.data),i)}catch{}},a.observer={next:r=>{a.socket.send(JSON.stringify(r))}},this.chatChannels.set(i,a),a.socket.onopen=r=>{this.sendOtherMessage(i,a,new l.MS),this.getMoreUnreadMessages(i)},a.socket.onerror=r=>{console.log("Websocket error"),console.log(r)},a.socket.onclose=r=>{console.log("Websocket is closing"),console.log(r),Array.from(this.offerCreations.values()).forEach(c=>{c.chatID===i&&(c.createOfferReject(),this.offerCreations.delete(c.chatID))}),Array.from(this.offerModifications.values()).forEach(c=>{c.chatID===i&&!(c.modifyOffer.mutation instanceof l.Ir)&&(c.modifyOfferReject(),this.offerModifications.delete(c.modifyOffer.offerID))}),Array.from(this.shareContactPromises.values()).forEach(c=>{c.chatID===i&&(c.shareContactReject(),this.shareContactPromises.delete(c.chatID))}),Array.from(this.closeConversationMap.values()).forEach(c=>{c.chatID===i&&(c.closeReject(),this.closeConversationMap.delete(c.chatID))}),a.keepOpen&&(0,m.H)(e).pipe((0,d.t)(this)).subscribe(c=>{s===this.chatService.ticket?this.chatService.refreshTicket().then(_=>{this.connectToChatChannel(i,2*e)},_=>{this.connectToChatChannel(i,2*e),console.log(_)}):this.connectToChatChannel(i,2*e)})}}else(0,m.H)(n?0:e).pipe((0,d.t)(this)).subscribe(s=>{this.chatService.refreshTicket().then(a=>{this.connectToChatChannel(i,n?e:2*e)},a=>{this.connectToChatChannel(i,n?e:2*e),console.log(a)})})}handleWsMessages(i,e){i.type===l.lw.Payload?this.insertPayload(i,e):i.type===l.lw.Participants?this.insertLastSeen(i.participants.find(n=>n.userID===this.userService.sessionUserID).lastSeen,e):i.type===l.lw.BatchPayload?this.insertBatchPayLoad(i,e):i.type===l.lw.Activity?this.updateActivity(i,e):i.type===l.lw.Error?this.handleWsError(i,e):i.type===l.lw.Closed&&this.handleClose(i,e)}updateActivity(i,e){this.activityMap.set(e,i)}insertPayload(i,e){const n=this.convertMessage(i.message);this.insertMessage(n,e)}insertBatchPayLoad(i,e){const s=this.chatList.find(r=>r.ID===e).msg,a=i.messages.filter(r=>!s.find(c=>c.identifier===r.ID));a.length>0&&(a.forEach(r=>{const c=this.convertMessage(r);this.insertMessage(c,e,!0)}),i.batchName.includes("last-before")&&this.getMoreUnreadMessages(e))}insertMessage(i,e,n=!1){const s=this.chatList.find(c=>c.ID===e),a=s.msg;let r=!1;if(i.publicID){const c=a.findIndex(_=>_.publicID===i.publicID);-1!==c&&i.identifier!==a[c].identifier?(r=!0,a.splice(c,1)):-1===c&&(r=!0)}if(i.isActiveOffer){const c=a.findIndex(_=>_.offer&&(_.offer.ID?_.offer.ID:_.offer.identifier)===(i.offer.ID?i.offer.ID:i.offer.identifier));if(-1!==c&&i.identifier!==a[c].identifier?(r=!0,a.splice(c,1)):-1===c&&(r=!0),i.offer.state.type===l.Ff.Opened&&(this.offerCreations&&this.offerCreations.has(e)&&(this.offerCreations.get(e).createOfferResolve(),this.offerCreations.delete(e)),i.offer.state.attempts.length>0&&this.offerModifications&&this.offerModifications.has(i.offer.originID))){const _=this.offerModifications.get(i.offer.originID);_.modifyOffer.mutation instanceof l.Ir||_.modifyOfferReject(),this.offerModifications.delete(i.offer.originID)}}if(i.contactDetails&&(r=!0,this.shareContactPromises.has(e)&&(this.shareContactPromises.get(e).shareContactResolve(),this.shareContactPromises.delete(e))),r){const c=a.findIndex(_=>_.timestamp>i.timestamp);if(i.isActiveOffer){let _,C,g,p=a.length-1;for(;!_&&p>0;)null!=a[p].isActiveOffer&&!1!==a[p].isActiveOffer&&(_=a[p]),p--;if(p++,_&&(p<c||-1===c?_.isActiveOffer=!1:i.isActiveOffer=!1),C=this.originOffers.has(e)?this.originOffers.get(e):[],g=this.resultOffers.has(e)?this.resultOffers.get(e):[],i.offer.state.type===l.Ff.Opened)C.push(i.offer);else if(g.push(i.offer),this.offerModifications&&this.offerModifications.has(i.offer.originID)){const f=this.offerModifications.get(i.offer.originID);f.modifyOffer.mutation instanceof l.Ir||f.modifyOfferResolve(),this.offerModifications.delete(i.offer.originID)}if(this.originOffers.set(e,C),this.resultOffers.set(e,g),i.isActiveOffer){const f=s.limitedWidgets.findIndex(O=>"Offer"===O.widgetType);if(i.offer.state.type===l.Ff.Opened){const O=s.limitedWidgets[f];O?O.widgetID=i.identifier:s.limitedWidgets.push(new l.qK("Offer",i.identifier))}else-1!==f&&s.limitedWidgets.splice(f,1)}0!==i.offer.state.attempts.length&&-1===c&&!n&&this.nzMessageService.error(this.createAttemptErrorMessage(i.offer.state.attempts[i.offer.state.attempts.length-1].attemptCode.code))}if(i.contactDetails){const _=s.limitedWidgets.find(p=>"ContactDetails"===p.widgetType);_?_.widgetID=i.identifier:s.limitedWidgets.push(new l.qK("ContactDetails",i.identifier))}if(-1!==c||0!==a.length&&a[a.length-1].text===i.text&&a[a.length-1].timestamp===i.timestamp&&a[a.length-1].from===i.from&&a[a.length-1].msgType===i.msgType){if(0===c){const _=a.findIndex(p=>"date"===p.msgType);if(0===_||1===_&&"unread"===a[0].msgType){a[_].timestamp-i.timestamp<this.dateMessageThreshold&&a.splice(_,1);const p=a.find(C=>"text"===C.msgType);p&&i.from===p.from&&(p.avatar="")}a.unshift(this.createDateMessage(i.timestamp),i)}else if(c>0&&a[c-1].text!==i.text||a[c-1].timestamp!==i.timestamp||a[c-1].from!==i.from||a[c-1].msgType!==i.msgType){let _=[i];const p=a.findIndex((g,f)=>f>=c&&"unread"!==g.msgType),C="date"===a[p].msgType?a.find((g,f)=>f>=c&&"text"===g.msgType):a[p];"date"===a[p].msgType&&a[p].timestamp-i.timestamp<this.dateMessageThreshold&&a.splice(p,1),i.from===C.from&&(a[c].avatar=""),i.from===a[c-1].from&&(i.avatar=""),i.timestamp-a[c-1].timestamp>this.dateMessageThreshold&&(_=[this.createDateMessage(i.timestamp),..._]),a.splice(c,0,..._)}}else 0!==a.length&&i.from===a[a.length-1].from&&(i.avatar=""),(0===a.length||i.timestamp-a[a.length-1].timestamp>this.dateMessageThreshold)&&a.push(this.createDateMessage(i.timestamp)),a.push(i),s.time=new Date(i.timestamp).toLocaleStr
27ing(),this.chatId===s.ID&&(this.newMessageArrived=!0,setTimeout(()=>this.scrollToUnreadOrBottom(!1,!0),0));if(s.state.type===l.LJ.Closed){const _=s.limitedWidgets.findIndex(p=>"Offer"===p.widgetType);if(-1!==_){const p=s.limitedWidgets[_].widgetID,C=s.msg.find(g=>g.identifier===p);C&&(C.isActiveOffer=!1),s.limitedWidgets.splice(_,1)}}this.updateActiveOffer(),this.updateContactDetails(),this.lastSeenTimestamp.has(e)&&this.insertLastSeen(this.lastSeenTimestamp.get(e),e),this.sortChatList()}}insertLastSeen(i,e){this.lastSeenTimestamp.set(e,i);const n=this.createUnreadMessageLine(i),s=this.chatList.find(c=>c.ID===e).msg,a=s.findIndex(c=>c.text===this.unreadMessageString&&"unread"===c.msgType),r=s.findIndex((c,_,p)=>c.timestamp>n.timestamp&&("me"!==c.from&&"date"!==c.msgType||"date"===c.msgType&&p.length>_+1&&"me"!==p[_+1].from));if(a+1!==r||-1===a||-1===r){a>-1&&s.splice(a,1);const c=s.findIndex((_,p,C)=>_.timestamp>n.timestamp&&("me"!==_.from&&"date"!==_.msgType||"date"===_.msgType&&C.length>p+1&&"me"!==C[p+1].from));0===c?s.unshift(n):c>0&&s.splice(c,0,n)}}handleWsError(i,e){switch(console.log(i),i.errorCode){case l.EM.room_outdated:this.asyncMessenger.errorMessage("CLIENT.CONVERSATIONS.WS_ERROR.ROOM_OUTDATED");break;case l.EM.room_closed:if(this.asyncMessenger.errorMessage("CLIENT.CONVERSATIONS.WS_ERROR.ROOM_CLOSED"),this.closeConversationMap.has(e)){const n=this.closeConversationMap.get(e);n.closeResolve(),this.closeConversationMap.delete(n.chatID),this.handleClose(new l.at(this.userService.sessionUserID),e)}break;case l.EM.not_chat_participant:this.asyncMessenger.errorMessage("CLIENT.CONVERSATIONS.WS_ERROR.NOT_CHAT_PARTICIPANT");break;case l.EM.operation_limited:this.asyncMessenger.errorMessage("CLIENT.CONVERSATIONS.WS_ERROR.OPERATION_LIMITED");break;case l.EM.rate_limit_reached:this.asyncMessenger.errorMessage("CLIENT.CONVERSATIONS.WS_ERROR.RATE_LIMIT_REACHED");break;case l.EM.unknown:if(this.offerCreations.has(e)){const n=this.offerCreations.get(e);n.createOfferReject(),this.offerCreations.delete(n.chatID)}this.asyncMessenger.errorMessage("CLIENT.CONVERSATIONS.WS_ERROR.UNKNOWN");break;default:this.asyncMessenger.errorMessage("CLIENT.CONVERSATIONS.WS_ERROR.DEFAULT",null,{message:i.message})}}handleClose(i,e,n){const s=this.chatList.find(r=>r.ID===e);
27s.state.responsibleID=i.byUserID,s.state.timestamp=n||Date.now(),s.state.type=l.LJ.Closed,s.msg.find(r=>"closed"===r.msgType)||s.msg.push(this.createChatClosedMessage(s.state,s.participants));const a=s.limitedWidgets.findIndex(r=>"Offer"===r.widgetType);if(-1!==a){const r=s.limitedWidgets[a].widgetID,c=s.msg.find(_=>_.identifier===r);c&&(c.isActiveOffer=!1),s.limitedWidgets.splice(a,1)}this.closeConversationMap.has(e)&&(this.closeConversationMap.get(e).closeResolve(),this.closeConversationMap.delete(e)),this.updateActiveOffer(),this.sortChatList(),console.log("conversation closed"),this.updateHasRelatedOpenChat(s)}closeChatChannels(){for(const i of this.chatChannels.values())i.keepOpen=!1,i.socket.close()}onChatScroll(i){if(this.preventSidebarFolding||this.themeService.toggleFold(!0),this.scrollContainer.SimpleBar&&this.chatId){const e=this.scrollContainer.SimpleBar.getScrollElement();if(i.target.scrollTop<100){const n=this.chatChannels.get(this.chatId.toString()),a=this.chatList.find(r=>r.ID===this.chatId).msg.find(r=>"unread"!==r.msgType);a&&n&&this.sendLastBefore(this.chatId,n,a)}i.target.scrollTop+e.clientHeight>e.scrollHeight-100&&this.updateLastSeen()}this.isContentSwitched=!1}updateLastSeen(){const i=this.chatChannels.get(this.chatId.toString()),e=Date.now();(this.selectedChat.state.type!==l.LJ.Closed||this.selectedChat.state.timestamp>this.lastSeenTimestamp.get(this.chatId))&&i&&this.sendLastSeen(i,new l.NN(e)),this.insertLastSeen(e,this.chatId);const n=this.toastr.toasts.find(s=>s.toastRef.componentInstance.relatedID&&s.toastRef.componentInstance.relatedID===this.chatId);n&&(this.notificationService.setToSeen({ID:n.toastId}),this.toastr.clear(n.toastId))}getMoreUnreadMessages(i){const e=this.chatList.find(s=>s.ID===i),n=this.chatChannels.get(i);if(e&&n){const s=e.participants.find(c=>c.userID===this.getMyUserIDValue()),r=e.msg.find(c=>"unread"!==c.msgType);r&&s.lastSeen<r.timestamp&&this.sendLastBefore(this.chatId,n,r)}}sendLast(i,e=this.retryTimeoutInit){let n,s;this.messageLimitMap.has(this.chatId)?n=this.messageLimitMap.get(this.chatId):(n=[],this.messageLimitMap.set(this.chatId,n)),this.lastLimitMap.has(this.chatId)?s=this.lastLimitMap.get(this.chatId):(s=[],this.lastLimitMap.set(this.chatId,s)),this.lastInDebounce.has(this.chatId)&&this.lastInDebounce.get(this.chatId).unsubscribe();const a=s.length<this.lastLimit||Date.now()-s[0]>this.lastWindow,r=n.length<this.messageLimit||Date.now()-n[0]>this.messageWindow;if(a&&r&&i.socket.readyState===WebSocket.OPEN){i.observer.next(new l.t5);const c=Date.now();s.length===this.lastLimit&&s.shift(),n.length===this.messageLimit&&n.shift(),s.push(c),n.push(c)}else{const c=i.socket.readyState===WebSocket.OPEN?Math.max(!a&&s.length>0?this.lastWindow-(Date.now()-s[0]):0,!r&&n.length>0?this.messageWindow-(Date.now()-n[0]):0):e;this.lastInDebounce.set(this.chatId,(0,m.H)(c).pipe((0,d.t)(this)).subscribe(_=>{this.sendLast(i,i.socket.readyState===WebSocket.OPEN?e:Math.min(this.retryTimeoutMax,2*e))}))}}sendLastBefore(i,e,n,s=this.retryTimeoutInit){let a,r;this.messageLimitMap.has(i)?a=this.messageLimitMap.get(i):(a=[],this.messageLimitMap.set(i,a)),this.lastBeforeLimitMap.has(i)?r=this.lastBeforeLimitMap.get(i):(r=[],this.lastBeforeLimitMap.set(i,r)),this.lastBeforeInDebounce.has(i)&&this.lastBeforeInDebounce.get(i).unsubscribe();const c=r.length<this.lastBeforeLimit||Date.now()-r[0]>this.lastBeforeWindow,_=a.length<this.messageLimit||Date.now()-a[0]>this.messageWindow;if(c&&_&&e.socket.readyState===WebSocket.OPEN){e.observer.next(new l.q9(n.timestamp));const p=Date.now();r.length===this.lastBeforeLimit&&r.shift(),a.length===this.messageLimit&&a.shift(),r.push(p),a.push(p)}else{const p=e.socket.readyState===WebSocket.OPEN?Math.max(!c&&r.length>0?this.lastBeforeWindow-(Date.now()-r[0]):0,!_&&a.length>0?this.messageWindow-(Date.now()-a[0]):0):s;this.lastBeforeInDebounce.set(i,(0,m.H)(p).pipe((0,d.t)(this)).subscribe(C=>{this.sendLastBefore(i,e,n,e.socket.readyState===WebSocket.OPEN?s:Math.min(this.retryTimeoutMax,2*s))}))}}sendLastSeen(i,e,n=this.retryTimeoutInit){let s,a;this.messageLimitMap.has(this.chatId)?s=this.messageLimitMap.get(this.chatId):(s=[],this.messageLimitMap.set(this.chatId,s)),this.lastSeenLimitMap.has(this.chatId)?a=this.lastSeenLimitMap.get(this.chatId):(a=[],this.lastSeenLimitMap.set(this.chatId,a)),this.lastSeenInDebounce.has(this.chatId)&&this.lastSeenInDebounce.get(this.chatId).unsubscribe();const r=a.length<this.lastSeenLimit||Date.now()-a[0]>this.lastSeenWindow,c=s.length<this.messageLimit||Date.now()-s[0]>this.messageWindow;if(r&&c&&i.socket.readyState===WebSocket.OPEN){i.observer.next(e);const _=Date.now();a.length===this.lastSeenLimit&&a.shift(),s.length===this.messageLimit&&s.shift(),a.push(_),s.push(_),this.chatService.updateLastSeen(this.chatId,e.until)}else{const _=i.socket.readyState===WebSocket.OPEN?Math.max(!r&&a.length>0?this.lastSeenWindow-(Date.now()-a[0]):0,!c&&s.length>0?this.messageWindow-(Date.now()-s[0]):0):n;this.lastSeenInDebounce.set(this.chatId,(0,m.H)(_).pipe((0,d.t)(this)).subscribe(p=>{this.sendLastSeen(i,e,i.socket.readyState===WebSocket.OPEN?n:Math.min(this.retryTimeoutMax,2*n))}))}}sendOtherMessage(i,e,n,s=this.retryTimeoutInit){let a;if(this.messageLimitMap.has(this.chatId)?a=this.messageLimitMap.get(this.chatId):(a=[],this.messageLimitMap.set(this.chatId,a)),(a.length<this.messageLimit||Date.now()-a[0]>this.messageWindow)&&e.socket.readyState===WebSocket.OPEN)e.observer.next(n),a.length===this.messageLimit&&a.shift(),a.push(Date.now());else if(!(n instanceof l.b)){const r=e.socket.readyState===WebSocket.OPEN?this.messageWindow-(Date.now()-a[0]):s;(0,m.H)(r).pipe((0,d.t)(this)).subscribe(c=>{this.sendOtherMessage(i,e,n,e.socket.readyState===WebSocket.OPEN?s:Math.min(this.retryTimeoutMax,2*s))})}}convertMessage(i){let e=i.type;i.type===l.Cb.Text?e="text":i.type===l.Cb.Widget?e="widget":i.type===l.Cb.Offer?e="offer":i.type===l.Cb.Contact&&(e="contact");const n=i.userID;let s;s=n===this.userService.sessionUserID?"me":"opposite";let a="";return"me"!==s&&(a="assets/images/avatars/thumb-1.webp"),{identifier:i.identifier?i.identifier:i.ID,avatar:a,text:"text"===e?i.text:null,from:s,fromUserID:n,time:new Date(i.timestamp).toLocaleTimeString(),timestamp:i.timestamp,offer:"offer"===e?i:null,publicID:"text"===e?i.publicI
27D:null,isActiveOffer:"offer"===e||null,contactDetails:"contact"===e?i.state.contactDetails:null,msgType:e}}createDateMessage(i){return{avatar:"",text:"",from:"",fromUserID:"",time:new Date(i).toLocaleString(),timestamp:i,publicID:"",msgType:"date"}}createUnreadMessageLine(i){return{avatar:"",text:this.unreadMessageString,from:"",fromUserID:"",time:new Date(i).toLocaleString(),timestamp:i,publicID:"",msgType:"unread"}}createChatClosedMessage(i,e){let n="CLIENT.CONVERSATIONS.CLOSED_LONG",s="CLIENT.CONVERSATIONS.CLOSED";return i.responsibleID&&e&&(n="CLIENT.CONVERSATIONS.CLOSED_BY",s="CLIENT.CONVERSATIONS.CLOSED_TOOLTIP"),{avatar:"",text:n,from:"",fromUserID:"",time:s,timestamp:i.timestamp,publicID:"",msgType:"closed"}}filterChatList(){if(this.filteredChatList=this.chatList,this.filterByIds&&this.filterByIds.length>0&&this.chatList&&(this.filteredChatList=this.chatList.filter(i=>i.participants.some(e=>e.userID!==this.userService.sessionUserID&&this.filterByIds.includes(e.userID)))),this.filteredChatList){const i=this.chatFilterString.toLowerCase();this.filteredChatList=this.filteredChatList.filter(e=>e.participants.some(n=>n.name.toLowerCase().includes(i)&&n.userID!==this.userService.sessionUserID)||e.msg.some(n=>n.text&&n.text.toLowerCase().includes(i)||n.offer&&(n.offer.state.brief&&n.offer.state.brief.toLowerCase().includes(i)||n.offer.state.breakdown&&n.offer.state.breakdown.items.some(s=>s.name.toLowerCase().includes(i))||n.offer.state.cause&&n.offer.state.cause.toLowerCase().includes(i))||n.contactDetails&&(n.contactDetails.mail.toLowerCase().includes(i)||n.contactDetails.name&&n.contactDetails.name.toLowerCase().includes(i)||n.contactDetails.phoneNumber&&n.contactDetails.phoneNumber.toLowerCase().includes(i)||n.contactDetails.address&&Object.keys(n.contactDetails.address).some(s=>n.contactDetails.address[s]&&n.contactDetails.address[s].toLowerCase().includes(i))))),this.filteredChatList.sort((e,n)=>e.state.type===n.state.type?this.getLatestTimestamp(n)-this.getLatestTimestamp(e):e.state.type===l.LJ.Closed?1:-1)}}clearSearch(){this.chatFilterString="",this.filterChatList()}closeConversation(i){if(this.selectedChat.state.type!==l.LJ.Closed){const e=this.chatChannels.get(i);let n,s;const a=new Promise((r,c)=>{n=r,s=c});this.closeConversationMap.set(i,new l.dS(i,a,n,s)),(0,m.H)(1e4).pipe((0,d.t)(this)).subscribe(r=>{this.closeConversationMap.has(i)&&this.closeConversationMap.get(i).closePromise===a&&(s(),this.closeConversationMap.delete(i))}),e&&this.retryCloseMessage(i,e,new l.x8,a)}this.chatSettingVisible=!1}retryCloseMessage(i,e,n,s,a=this.retryTimeoutInit){if(this.closeConversationMap.has(i)&&this.closeConversationMap.get(i).closePromise===s){let r;if(this.messageLimitMap.has(this.chatId)?r=this.messageLimitMap.get(this.chatId):(r=[],this.messageLimitMap.set(this.chatId,r)),(r.length<this.messageLimit||Date.now()-r[0]>this.messageWindow)&&e.socket.readyState===WebSocket.OPEN)e.observer.next(n),r.length===this.messageLimit&&r.shift(),r.push(Date.now());else{const c=e.socket.readyState===WebSocket.OPEN?this.messageWindow-(Date.now()-r[0]):a;(0,m.H)(c).pipe((0,d.t)(this)).subscribe(_=>{this.retryCloseMessage(i,e,n,s,e.socket.readyState===WebSocket.OPEN?a:Math.min(this.retryTimeoutMax,2*a))})}}}shareContact(){if(this.selectedChat.state.type!==l.LJ.Closed&&!this.isMyContactShared){const i=this.chatChannels.get(this.chatId.toString());if(i&&i.socket.readyState===WebSocket.OPEN){let e,n;const s=new Promise((a,r)=>{e=a,n=r});this.shareContactPromises.set(this.chatId,new l.NT(this.chatId,s,e,n)),s.then(a=>{const r=this.chatList.find(c=>c.ID===this.chatId.toString());if(r){const c=r.participants.find(_=>_.userID!==this.userService.sessionUserID);c&&this.nzMessageService.success(this.translate.instant("CLIENT.CONVERSATIONS.CONTACT_WIDGET.SUCCESSFULLY_SHARED",{name:c.name}))}}),this.sendOtherMessage(this.chatId,i,new l.DX)}}this.chatSettingVisible=!1}getMyUserIDValue(){return this.userService.sessionUserID}sendOffer(){if(this.selectedChat.state.type!==l.LJ.Closed&&(!this.actActiveOffer||this.actActiveOffer.userID!==this.userService.sessionUserID)){const i=new l.Ci(new l.UY(null,null,new l.tq([new l.aI("",0,0)]),N.Fa6.HUF));this.modalService.offerCreationModal(i,this.chatId,()=>{const n=this.chatChannels.get(this.chatId.toString());let s,a;const r=new Promise((_,p)=>{s=_,a=p});this.offerCreations.set(this.chatId,new l.cY(i,this.chatId,r,s,a)),n&&this.sendOtherMessage(this.chatId,n,i);const c=this.chatId;return(0,m.H)(1e4).pipe((0,d.t)(this)).subscribe(_=>{this.offerCreations.has(c)&&this.offerCreations.get(c).createOfferReject===a&&(a(),this.offerCreations.delete(c))}),r}),this.chatSettingVisible=!1}}handleModifyOffer(i){const e=this.chatChannels.get(this.chatId.toString());i.modifyOffer.mutation instanceof l.Ir?this.offerModifications.set(i.modifyOffer.offerID,i):e&&e.socket.readyState===WebSocket.OPEN?(this.sendOtherMessage(this.chatId,e,i.modifyOffer),this.offerModifications.set(i.modifyOffer.offerID,i)):i.modifyOfferReject(),i.modifyOfferPromise.then(n=>{const s=this.chatList.find(a=>a.ID===i.chatID);if(s){const a=s.participants.find(r=>r.userID!==this.userService.sessionUserID);a&&(i.modifyOffer.mutation instanceof l.Ir?this.nzMessageService.success(this.translate.instant("CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.SUCCESS_MESSAGES.ACCEPTED",{name:a.name})):i.modifyOffer.mutation instanceof l.w5?this.nzMessageService.info(this.translate.instant("CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.SUCCESS_MESSAGES.DECLINED",{name:a.name})):i.modifyOffer.mutation instanceof l.j&&this.nzMessageService.info(this.translate.instant("CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.SUCCESS_MESSAGES.REVOKED",{name:a.name})))}},n=>{})}newConversation(){this.modalService.newConversationWithMailModal()}updateActiveOffer(){if(this.selectedChat){const i=this.selectedChat.limitedWidgets.find(n=>"Offer"===n.widgetType),e=i?this.selectedChat.msg.find(n=>n.offer&&i.widgetID===n.identifier):null;this.actActiveOffer=e?e.offer:null,this.actActiveOffer&&this.actActiveOffer.state.type===l.Ff.Opened&&(this.summarizedOfferPrice=this.actActiveOffer.state.breakdown.items.reduce((n,s)=>n+s.price,0))}}
27updateContactDetails(){if(this.selectedChat){const i=this.selectedChat.limitedWidgets.filter(e=>"ContactDetails"===e.widgetType);this.isMyContactShared=!1,this.actContactDetailsArray=i.length>0?this.selectedChat.msg.flatMap(e=>e.contactDetails&&i.some(n=>n.widgetID===e.identifier)?e.fromUserID===this.userService.sessionUserID?(this.isMyContactShared=!0,[]):[e.contactDetails]:[]):[]}}sortChatList(){this.chatList.sort((i,e)=>this.getLatestTimestamp(e)-this.getLatestTimestamp(i)),this.filterChatList()}getLatestTimestamp(i){return i.msg&&i.msg.length>0?i.msg[i.msg.length-1].timestamp:i.state&&i.state.timestamp?i.state.timestamp:0}createAttemptErrorMessage(i){switch(i){case l.kR.NO_TRANSITION_ACCESS:return this.translate.instant("CLIENT.CONVERSATIONS.OFFER.ATTEMPT_ERROR.NO_TRANSITION_ACCESS");case l.kR.INVALID_TRANSITION:return this.translate.instant("CLIENT.CONVERSATIONS.OFFER.ATTEMPT_ERROR.INVALID_TRANSITION");case l.kR.MISSING_PROFILE:return this.translate.instant("CLIENT.CONVERSATIONS.OFFER.ATTEMPT_ERROR.MISSING_PROFILE");case l.kR.MISSING_BILLING_INFORMATION:return this.translate.instant("CLIENT.CONVERSATIONS.OFFER.ATTEMPT_ERROR.MISSING_BILLING_INFORMATION");case l.kR.MISSING_BILLING_ADDRESS:return this.translate.instant("CLIENT.CONVERSATIONS.OFFER.ATTEMPT_ERROR.MISSING_BILLING_ADDRESS");case l.kR.MISSING_DEFAULT_PAYMENT_METHOD:return this.translate.instant("CLIENT.CONVERSATIONS.OFFER.ATTEMPT_ERROR.MISSING_DEFAULT_PAYMENT_METHOD");case l.kR.MISSING_PAYMENT_METHOD:return this.translate.instant("CLIENT.CONVERSATIONS.OFFER.ATTEMPT_ERROR.MISSING_PAYMENT_METHOD");case l.kR.NON_SUPPORTED_CURRENCY:return this.translate.instant("CLIENT.CONVERSATIONS.OFFER.ATTEMPT_ERROR.NON_SUPPORTED_CURRENCY");case l.kR.UNKNOWN:return this.translate.instant("CLIENT.CONVERSATIONS.OFFER.ATTEMPT_ERROR.UNKNOWN")}}shareContractModal(){this.modalService.shareContractModal(this.selectedUser,i=>this.updateShares(i),i=>this.updateShares(i),!this.hasRelatedOpenChat[this.selectedChat.ID]),this.chatSettingVisible=!1}openUserProfile(i){this.userInfosService.batchGetUserNamesByIds([i]),this.modalService.publicProfileModal(i,e=>this.updateShares(e),e=>this.updateShares(e))}updateShares(i){this.sharesWithParticipant=i}openOfferWidgetModal(i,e){const n=this.chatList.find(a=>a.ID===i.chatID),s=this.modalService.offerWidgetModal(i,e,n.participants,a=>this.handleModifyOffer(a),this.chatMode!==l.jE.REAL);this.modalOpenChange.emit(!0),s.afterClose.subscribe(a=>{this.modalOpenChange.emit(!1)})}startedTyping(){(!this.msg||0===this.msg.length)&&(this.msgTooShort=!1,this.themeService.toggleFold(!0),this.scrollToBottom(!0))}saveRating(){return this.clientService.rateLawyer(this.lawyerRating,this.selectedChat.ID).pipe((0,d.t)(this)).toPromise().then(i=>((0,m.H)(750).pipe((0,d.t)(this)).subscribe(e=>{this.lawyerSetRating=this.lawyerRating,this.reviewVisibleFromList=!1,this.reviewVisibleFromButton=!1,this.setCanDeleteRating()}),Promise.resolve())).catch(i=>Promise.reject())}deleteRating(){return this.clientService.deleteLawyerRating(this.selectedChat.ID).pipe((0,d.t)(this)).toPromise().then(i=>((0,m.H)(750).pipe((0,d.t)(this)).subscribe(e=>{this.lawyerRating=0,this.lawyerSetRating=0,this.setCanDeleteRating(),this.reviewVisibleFromList=!1,this.reviewVisibleFromButton=!1}),Promise.resolve())).catch(i=>(this.setCanDeleteRating(),Promise.reject()))}setReviewValues(){this.lawyerRating=this.lawyerSetRating,this.setCanDeleteRating()}setCanDeleteRating(){this.canDeleteRating=0!==this.lawyerSetRating}saveToLawyer(i){this.lawyerRating=i}resizeTextarea(i){this.textareaRows=i>690?{minRows:1,maxRows:8}:i<420?{minRows:1,maxRows:2}:{minRows:1,maxRows:Math.floor((i-420)/45)+2}}downloadAgencyContract(i){if(i&&i.serviceID){if(this.agencyContractUrlMap.has(i.serviceID))return this.routerService.windowOpenAlternative(this.agencyContractUrlMap.get(i.serviceID)),Promise.resolve();{const e=this.chatService.downloadAgencyContract(i.serviceID);return e.then(n=>{n&&this.agencyContractUrlMap.set(i.serviceID,n)}),e}}}trackByMessage(i,e){return e.publicID}trackByParticipant(i,e){return e.userID}trackByChat(i,e){return e.ID}trackByContact(i,e){return e.mail}trackByContract(i,e){return e.progress.ID}trackBySharedContract(i,e){return e.shared.ID}trackByString(i,e){return e}focusSearch(){this.searchInputElement&&this.searchInputElement.nativeElement.focus()}checkBreadcrumb(){this.eventService.breadcrumbIsHidden.emit(this.windowWidth<375&&!0===this.isContentOpen)}openChatHelpModal(){this.modalService.chatHelpModal()}openIntercomHelp(){this.openIntercomHelpFunction=this.intercom.isOpened||this.intercomHelpLoading?null:new Promise((i,e)=>{this.intercomHelpLoading=!0,this.eventService.intercomOpened.pipe((0,d.t)(this)).subscribe(n=>{this.intercomHelpLoading=!1,n?i(null):e()}),this.intercom.startAndShow("right")})}};T.\u0275fac=function(i){return new(i||T)(t.Y36(I.Ye),t.Y36(it.dD),t.Y36(st.Sf),t.Y36(L.gz),t.Y36(L.F0),t.Y36(k.sK),t.Y36(ot.m),t.Y36(at.a),t.Y36(rt.y),t.Y36(ct.W),t.Y36(lt.J),t.Y36(ht.o),t.Y36(_t.Z),t.Y36(pt._),t.Y36(dt.c),t.Y36(Ct.w),t.Y36(mt.K),t.Y36(gt.h),t.Y36(ft._W),t.Y36(Tt.g),t.Y36(ut.f),t.Y36(Ot.P),t.Y36(t.sBO))},T.\u0275cmp=t.Xpm({type:T,selectors:[["app-chat-component"]],viewQuery:function(i,e){if(1&i&&(t.Gf(Bt,5),t.Gf(Jt,7),t.Gf(Ht,5),t.Gf(Qt,5,t.s_b),t.Gf(Kt,5),t.Gf(Gt,5),t.Gf(Yt,5),t.Gf(jt,5),t.Gf(A.rh,5)),2&i){let n;t.iGM(n=t.CRH())&&(e.searchInputElement=n.first),t.iGM(n=t.CRH())&&(e.scrollC
27ontainer=n.first),t.iGM(n=t.CRH())&&(e.chatInput=n.first),t.iGM(n=t.CRH())&&(e.videoCallContainer=n.first),t.iGM(n=t.CRH())&&(e.newConversationModal=n.first),t.iGM(n=t.CRH())&&(e.ratingButtonElementRef=n.first),t.iGM(n=t.CRH())&&(e.ratingListElementRef=n.first),t.iGM(n=t.CRH())&&(e.chatListElementList=n),t.iGM(n=t.CRH())&&(e.autosizableTextareas=n)}},inputs:{filterByIds:["filterTo","filterByIds"],embeddedEmptyText:"embeddedEmptyText",embeddedFilteredEmptyText:"embeddedFilteredEmptyText",chatMode:"chatMode",isEmbedded:"isEmbedded",chatFeaturesHeight:"chatFeaturesHeight"},outputs:{modalOpenChange:"modalOpenChange"},features:[t.TTD],decls:30,vars:53,consts:[["class","color-gray-light mr-2 text-right font-size-12 lh-1-5 demoConversation",4,"ngIf"],[1,"container-fluid","p-h-0",3,"ngClass","resized"],["class","font-size-11 text-gray m-l-10",3,"ngClass",4,"ngIf"],[1,"chat","chat-app","h-100",3,"ngClass"],["videoCall",""],[1,"chat-list","flex-column",3,"ngClass"],[1,"chat-user-tool","d-flex","align-items-center",3,"click"],["nz-icon","","nzType","search","theme","outline",1,"search-icon","p-r-10","font-size-20"],[1,"override-sofbox","w-100","searchInput",3,"placeholder","ngModel","ngClass","ngModelChange"],["searchInputElement",""],["nz-icon","","nzType","close-circle","theme","outline","class","p-l-10 search-remove-text-icon",3,"click",4,"ngIf"],[1,"chat-user-list","flex-grow-1",3,"ngClass"],[1,"h-100",3,"options"],["class","w-100",3,"nzItemLayout",4,"ngIf"],[3,"nzItemLayout",4,"ngIf"],["class","ant-menu ant-menu-inline","style","box-shadow: none",3,"nzDataSource","nzRenderItem","nzItemLayout",4,"ngIf"],["nz-button","","nzType","primary","nz-tooltip","","class","m-2 create-conversation-button",3,"nzShape","nzTooltipTitle","click",4,"ngIf"],[1,"chat-content",3,"ngClass"],[1,"conversation"],[1,"conversation-wrapper","d-flex","flex-column"],["class","flex-shrink-0",3,"ngClass","resized",4,"ngIf"],[1,"conversation-body","d-flex","flex-column","flex-grow-1","flex-shrink-1","p-t-0","p-l-0","p-r-0"],["class","activeOfferDiv d-none d-sm-flex justify-content-between h-auto p-v-10",4,"ngIf"],[1,"overflow-y-hidden","conversation-body","flex-grow-1","flex-shrink-1",3,"ngClass","options"],["scrollBottom",""],["class","h-100 d-flex flex-column justify-content-center",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["class","conversation-footer",4,"ngIf"],[1,"color-gray-light","mr-2","text-right","font-size-12","lh-1-5","demoConversation"],[1,"font-size-11","text-gray","m-l-10",3,"ngClass"],["target","_blank","rel","noopener noreferrer",1,"font-size-11","text-gray","mr-2",3,"href"],["nz-icon","","nzType","lock","nzTheme","outline"],["nz-button","","nzType","link","class","font-size-11 text-gray mr-2 link-like-button",3,"click",4,"ngIf"],[3,"feature","unit","title",4,"ngIf"],["nz-button","","nzType","link",1,"font-size-11","text-gray","mr-2","link-like-button",3,"click"],[3,"feature","unit","title"],["nz-icon","","nzType","close-circle","theme","outline",1,"p-l-10","search-remove-text-icon",3,"click"],[1,"w-100",3,"nzItemLayout"],["class","p-h-25",4,"ngFor","ngForOf"],[1,"p-h-25"],[1,"ant-skeleton-header","ng-star-inserted"],["nzType","avatar","nzSize","large",3,"nzActive"],[1,"ant-skeleton-content","ng-star-inserted"],["nzType","input","nzSize","small",1,"p-b-10","w-80",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-10","w-100",3,"nzActive"],[3,"nzItemLayout"],[2,"margin-top","3rem",3,"nzNotFoundImage","nzNotFoundContent"],["noNotifications",""],[2,"display","none"],[1,"ant-menu","ant-menu-inline",2,"box-shadow","none",3,"nzDataSource","nzRenderItem","nzItemLayout"],["item",""],["nz-tooltip","",1,"ant-menu-item","menuItem","p-r-0",2,"padding-left","0px",3,"nzTooltipTitle","nzTooltipTrigger","nzTooltipVisible","ngClass"],["chatListElement",""],[3,"click"],[1,"p-h-25",3,"ngClass"],[1,"media","align-items-center","w-100"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-l-15","chat-brief"],[1,"m-b-0","h6",3,"ngClass"],["class","msg-overflow m-b-0 text-muted font-size-13",3,"ngClass",4,"ngIf"],[1,"msg-overflow","m-b-0","text-muted","font-size-13"],["class","api-type-label service d-inline-block m-v-0 m-l-0 m-r-5 line-height-14",4,"ngIf"],[4,"ngIf"],[1,"m-l-15","row-1","external-chat-time-ago-container"],["class","external-chat-time-ago",4,"ngIf"],["nzIcon","user",3,"ngClass","nzSrc","nzAlt",4,"ngIf"],["nzIcon","user",3,"ngClass","nzSrc","nzAlt"],[3,"nzDot"],[1,"api-type-label","service","d-inline-block","m-v-0","m-l-0","m-r-5","line-height-14"],[1,"msg-overflow","m-b-0","text-muted","font-size-13",3,"ngClass"],[1,"external-chat-time-ago"],["nz-button","","nzType","primary","nz-tooltip","",1,"m-2","create-conversation-button",3,"nzShape","nzTooltipTitle","click"],["nz-icon","","nzType","plus","nzTheme","outline",1,"align-self-center"],[1,"flex-shrink-0",3,"ngClass","resized"],["style","min-width: fit-content",4,"ngIf"],["class","media align-items-center",4,"ngIf"],[1,"media","align-items-center"],["nz-button","","nzType","primary","nz-tooltip","",1,"m-r-20","m-t-5","menu-fold-button",3,"nzTooltipTitle","ngClass","click"],["nz-icon","","nzType","menu-fold",1,"font-size-16"],[3,"className"],[1,"m-b-0","chatUserName"],[1,"m-b-0","text-muted","font-size-13"],["class","m-l-5 float-right d-none d-sm-inline-block",4,"ngIf"],["nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm",3,"nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","nzOnConfirm","nzOnCancel"],["nzIcon","user","class","cursor-pointer",3,"ngClass","nzSrc","nzAlt","click",4,"ngIf"],["nzIcon","user",1,"curs
27or-pointer",3,"ngClass","nzSrc","nzAlt","click"],["nzStatus","success"],["nzStatus","warning"],["nzStatus","default"],[1,"m-l-5","float-right","d-none","d-sm-inline-block"],["nzType","link","nz-dropdown","","nzPlacement","bottomCenter",1,"background-color-unset","border-0","color-primary","text-decoration-underline-hover","p-h-0","line-height-normal",3,"nzDropdownMenu","nzTrigger"],["nz-icon","","nzType","down",1,"p-l-5"],["contactDataMenu","nzDropdownMenu"],[3,"contactDetails"],[2,"min-width","fit-content"],["nz-dropdown","","nzTrigger","click","nz-button","","nzType","primary","nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm","class","m-5","nz-tooltip","",3,"nzDropdownMenu","nzVisible","nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","ngClass","nzTooltipTitle","nzDanger","nzOnConfirm","nzOnCancel",4,"ngIf"],["menu","nzDropdownMenu"],["nz-menu","","nzSelectable",""],["nz-menu-item","",3,"click",4,"ngIf"],["target","_blank",1,"text-decoration-none",3,"href"],["nz-menu-item",""],["nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm","class","m-5 video-camera-icon black-brand-primary-hover","nz-tooltip","",3,"nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","ngClass","nzTooltipTitle","nzOnConfirm","nzOnCancel",4,"ngIf"],["sharesWithMeMenu","nzDropdownMenu"],["nz-menu",""],["nz-button","","nzType","default","nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm","class","m-5",3,"disabled","nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","ngClass","nzOnConfirm","nzOnCancel",4,"ngIf"],["nz-menu-item","",1,"background-primary","color-white","white-space-breakspaces","text-center","share-button-sizing",3,"click"],["nz-button","","nzType","default","nz-popover","","class","m-5",3,"nzPopoverTitle","nzPopoverContent","nzPopoverOrigin","nzPopoverTrigger","nzPopoverVisible","ngClass","nzPopoverVisibleChange",4,"ngIf"],["nz-button","","nzType","primary","class","m-5","nz-tooltip","","nzTooltipTrigger","click",3,"nzGhost","ngClass","nzTooltipTitle","click",4,"ngIf"],["nz-button","","nzType","primary","class","m-5",3,"disabled","ngClass","click",4,"ngIf"],["closeChatTemplate",""],["nzType","default","nz-popconfirm","","nzPopconfirmPlacement","bottom","class","m-5",3,"disabled","runFunction","nzTextKeys","stickResult","nzCondition","nzPopconfirmTitle","nzCancelText","nzOkText","nzPopconfirmOverlayClassName","ngClass","nzOnConfirm","nzOnCancel",4,"ngIf"],["nz-dropdown","","nzPlacement","bottomRight","nzClickHide","false","nz-tooltip","",1,"text-dark","font-size-18","border-0","p-0","background-color-unset","purple-color-hover",2,"margin-left","10px",3,"nzDropdownMenu","nzTrigger","nzVisible","nzTooltipTitle","ngClass","nzVisibleChange"],["nz-icon","","nzType","setting","theme","outline"],["chatSetting","nzDropdownMenu"],["nz-menu","","class","chatMenu",4,"ngIf"],["reviewTpl",""],["reviewContent",""],["nz-dropdown","","nzTrigger","click","nz-button","","nzType","primary","nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm","nz-tooltip","",1,"m-5",3,"nzDropdownMenu","nzVisible","nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","ngClass","nzTooltipTitle","nzDanger","nzOnConfirm","nzOnCancel"],["nz-icon","","nzType","video-camera"],["nz-menu-item","",3,"click"],["nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm","nz-tooltip","",1,"m-5","video-camera-icon","black-brand-primary-hover",3,"nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","ngClass","nzTooltipTitle","nzOnConfirm","nzOnCancel"],["nz-icon","","nzType","video-camera","theme","outline"],["nz-button","","nzType","link","nz-dropdown","","nzTrigger","click","style","font-size: 14px","class","m-5 link-like-button",3,"nzDropdownMenu","ngClass",4,"ngIf"],["nz-button","","nzType","link","nz-dropdown","","nzTrigger","click",1,"m-5","link-like-button",2,"font-size","14px",3,"nzDropdownMenu","ngClass"],["nz-icon","","nzType","down"],["nz-menu-item","",1,"row",3,"click"],[1,"contract-logo-alignment","mr-2",3,"isComplete"],["nz-tooltip","",1,"opacity-06","mb-0",3,"nzTooltipTitle"],["nz-button","","nzType","default","nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm",1,"m-5",3,"disabled","nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","ngClass","nzOnConfirm","nzOnCancel"],["nz-button","","nzType","link","nz-dropdown","","nzTrigger","click","class","font-size-14 m-5 link-like-button",3,"nzDropdownMenu","ngClass",4,"ngIf"],["nz-button","","nzType","link","nz-dropdown","","nzTrigger","click",1,"font-size-14","m-5","link-like-button",3,"nzDropdownMenu","ngClass"],["nz-button","","nzType","default","nz-popover","",1,"m-5",3,"nzPopoverTitle","nzPopoverContent","nzPopoverOrigin","nzPopoverTrigger","nzPopoverVisible","ngClass","nzPopoverVisibleChange"],["ratingButtonElement",""],["nz-button","","nzType","primary","nz-tooltip","","nzTooltipTrigger","click",1,"m-5",3,"nzGhost","ngClass","nzTooltipTitle","click"],["nz-button","","nzType","primary",1,"m-5",3,"disabled","ngClass","click"],["nz-icon","","nzType","exclamation-circle","nzTheme","outline"],[1,"ant-popover-message-title","max-width-500"],[1,"font-size-smaller","mb-0"],["nzType","default","nz-popconfirm","","nzPopconfirmPlacement","bottom",1,"m-5",3,"disabled","runFunction","nzTextKeys","stickResult","nzCondition","nzPopconfirmTitle","nzCancelText","nzOkText","nzPopconfirmOverlayClassName","ngClass","nzOnConfirm","nzOnCancel"],["nz-menu","",1,"chatMenu"],["nz-menu-item","","nz-popover","","class","overflow-hidden text-overflow-ellipsis",3,"nzPopoverTitle","nzPopoverContent","nzPopoverOrigin","nzPopoverTrigger","nzPopoverVisible","ngClass","nzPopoverVisibleChange",4,"ngIf"],["nz-menu-item","","class","overflow-hidden text-overflow-ellipsis",3,"ngClass",4,"ngIf"],["nz-menu-item","","nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm","class","overflow-hidden text-overflow-ellipsis flex-wrap",3,"nzDisabled","nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","ngClass","nzOnConfirm","nzOnCancel",4,"ngIf"],["nz-menu-item","","class","overflow-hidden text-overflow-ellipsis flex-wrap",3,"nzDisabled","ngClass","click",4,"ngIf"],["nz-menu-item","","class","overflow-hidden text-overflow-ellipsis","nz-tooltip","","nzTooltipTrigger","click",3,"nzDisabled","ngClass","nzTooltipTitle","click",4,"ngIf"],["class","dropdownButton overflow-hidden text-overflow-ellipsis d-list-item d-sm-none",4,"ngIf"],["class","dropdownButton overflow-hidden text-overflow-ellipsis",3,"ngClass",4,"ngIf"],["nz-menu-item","","class","overflow-hidden text-overflow-ellipsis","nz-dropdown","","nzTrigger","click",3,"ngClass","nzDropdownMenu",4,"ngIf"],["nz-menu-item","","nz-popover","",1,"overflow-hidden","text-overflow-ellipsis",3,"nzPopoverTitle","nzPopoverContent","nzPopoverOrigin","nzPopoverTrigger","nzPopoverVisible","ngClass","nzPopoverVisibleChange"],["ratingListElement",""],["nz-menu-item","",1,"overflow-hidden","text-overflow-ellipsis",3,"ngClass"],["nzType","default","nz-popconfirm","","nzPopconfirmPlacement","bottom",1,"closeChatLink",3,"showAsLink","disabled","runFunction","nzTextKeys","stickResult","nzCondition","nzPopconfirmTitle","nzCancelText","nzOkText","nzPopconfirmOverlayClassName","nzOnConfirm","nzOnCancel"],["nz-menu-item","","nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm",1,"overflow-hidden","text-overflow-ellipsis","flex-wrap",3,"nzDisabled","nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","ngClass","nzOnConfirm","nzOnCancel"],["nz-menu-item","",1,"overflow-hidden","text-overflow-ellipsis","flex-wrap",3,"nzDisabled","ngClass","click"],[3,"ngClass"],["nz-menu-item","","nz-tooltip","","nzTooltipTrigger","click",1,"overflow-hidden","text-overflow-ellipsis",3,"nzDisabled","ngClass","nzTooltipTitle","click"],[1,"dropdownButton","overflow-hidden","text-overflow-ellipsis","d-list-item","d-sm-none"],["nz-button","","nzType","link","nz-dropdown","","nzPlacement","bottomCenter",1,"link-like-button",3,"nzDropdownMenu","nzTrigger"],[1,"dropdownButton","overflow-hidden","text-overflow-ellipsis",3,"ngClass"],["nz-button","","nzType","primary","nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm",3,"nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","nzOnConfirm","nzOnCancel"],["nz-menu-item","","nz-dropdown","","nzTrigger","click",1,"overflow-hidden","text-overflow-ellipsis",3,"ngClass","nzDropdownMenu"],[2,"font-size","14px"],[1,"m-t-10",2,"text-align","center"],[2,"max-width","80%","margin","0 auto"],[1,"row","justify-content-center"],[3,"ngModel","nzTooltips","ngModelChange"],[1,"row","justify-content-sm-end","justify-content-center"],[1,"col-12","text-sm-right","text-center"],["nz-button","","type","primary","nzSize","small",1,"mr-2","mb-2",3,"click"],["class","multiLineButton mr-2",3,"nzType","defaultFunction","defaultFunctionParameters","stickResult","nzSize","nzTextKeys",4,"ngIf"],["nz-tooltip","",1,"multiLineButton","mt-2",3,"nzType","defaultFunction","defaultFunctionParameters","stickResult","nzSize","nzTextKeys","nzGhost","nzTooltipTitle"],[1,"multiLineButton","mr-2",3,"nzType","defaultFunction","defaultFunctionParameters","stickResult","nzSize","nzTextKeys"],[1,"activeOfferDiv","d-none","d-sm-flex","justify-content-between","h-auto","p-v-10"],[1,"media","align-items-center","m-r-10"],[1,"p-l-15"],[1,"m-b-0"],["nz-button","","nzType","primary",1,"w-auto","d-none","d-sm-block",3,"click"],[1,"open-link-white-button-16"],[1,"h-100","d-flex","flex-column","justify-content-center"],[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter",4,"ngIf"],[3,"nzNotFoundImage","nzNotFoundContent",4,"ngIf"],[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["emptyChatFooter",""],["nz-button","","nzType","primary",3,"click"],[3,"nzNotFoundImage","nzNotFoundContent"],["class","display-flex flex-column align-items-center m-b-15 font-size-14",4,"ngIf"],[3,"id","ngClass",4,"ngIf"],[1,"display-flex","flex-column","align-items-center","m-b-15","font-size-14"],["nz-tooltip","","class","color-primary open-link-brand-16 link-like-button",3,"nzTooltipTitle","click",4,"ngIf"],["nz-tooltip","",1,"color-primary","open-link-brand-16","link-like-button",3,"nzTooltipTitle","click"],["nz-icon","","nzType","book","theme","outline"],[3,"id","ngClass"],["class","display-flex flex-column",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[1,"display-flex","flex-column",3,"ngClass"],["class","font-weight-semibold font-size-12 align-self-center m-b-10 p-b-10","nz-tooltip","",3,"ngClass","nzTooltipTitle",4,"ngIf"],[1,"display-flex","flex-row","msg",3,"ngClass"],["class","m-r-10",4,"ngIf"],["class","font-weight-semibold font-size-12 msg-time-bottom m-b-10 p-b-10 m-r-10","nz-tooltip","",3,"ngClass","nzTooltipTitle",4,"ngIf"],["class","bubble",3,"ngClass",4,"ngIf"],[3,"chatWidth","offer","isActive","participants","chatOriginOffers","chatResultOffers","pendingOfferModification","ngClass","isDemo","modifyEmitter",4,"ngIf"],["class","contact-message",3,"contactDetails","chatWidth","ngClass",4,"ngIf"],["class","font-weight-semibold font-size-12 msg-time-bottom m-b-10 p-b-10 m-l-10","nz-tooltip","",3,"ngClass","nzTooltipTitle",4,"ngIf"],["nz-tooltip","",1,"font-weight-semibold","font-size-12","align-self-center","m-b-10","p-b-10",3,"ngClass","nzTooltipTitle"],["nz-icon","","nzType","loading","class","m-r-5",4,"ngIf"],["nz-icon","","nzType","loading",1,"m-r-5"],[1,"m-r-10"],["nzIcon","user",1,"shadow",3,"nzSrc","nzAlt"],["nz-tooltip","",1,"font-weight-semibold","font-size-12","msg-time-bottom","m-b-10","p-b-10","m-r-10",3,"ngClass","nzTooltipTitle"],[1,"bubble",3,"ngClass"],[1,"bubble-wrapper",3,"ngClass"],["class","white-space-pre-wrap w
27ord-break-break-word",3,"innerHTML",4,"ngIf"],[3,"src","alt",4,"ngIf"],["class","d-flex align-items-center msg-file",4,"ngIf"],[1,"white-space-pre-wrap","word-break-break-word",3,"innerHTML"],[3,"src","alt"],[1,"d-flex","align-items-center","msg-file"],["nz-icon","","nzType","file","theme","outline",1,"font-size-25"],[1,"m-l-10","font-weight-semibold","text-link","pointer"],[3,"chatWidth","offer","isActive","participants","chatOriginOffers","chatResultOffers","pendingOfferModification","ngClass","isDemo","modifyEmitter"],[1,"contact-message",3,"contactDetails","chatWidth","ngClass"],["nz-tooltip","",1,"font-weight-semibold","font-size-12","msg-time-bottom","m-b-10","p-b-10","m-l-10",3,"ngClass","nzTooltipTitle"],[3,"innerHTML",4,"ngIf"],[3,"stickResult","showAsLink","runFunction","nzTextKeys","click",4,"ngIf"],[3,"innerHTML"],[3,"stickResult","showAsLink","runFunction","nzTextKeys","click"],[1,"conversation-footer"],[1,"d-flex","inputDiv",3,"click"],["nz-input","","class","chat-input lh-2 box-shadow-none roundedScrollbar my-auto font-size-14 p-t-0 p-b-0 pl-3 pr-3","type","text","nz-tooltip","","trim","blur",3,"nzAutosize","readOnly","ngModel","placeholder","maxlength","nzTooltipTitle","nzTooltipVisible","ngClass","ngModelChange","keydown","keydown.enter","nzTooltipVisibleChange",4,"ngIf"],[1,"list-inline","d-flex","align-items-center","m-b-0"],["class","list-inline-item m-l-15","nz-popover","","nzPopoverTrigger","click",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverOverlayStyle","nzPopoverContent","nzPopoverVisibleChange","click",4,"ngIf"],[1,"list-inline-item","m-r-15",3,"click"],["nz-tooltip","",3,"nzTooltipTitle"],["nz-button","","nzType","primary","nzShape","circle","nz-tooltip","","nzTooltipPlacement","topRight",3,"ngClass","disabled","nzTooltipTitle","click"],["nz-icon","","nzType","send","nzTheme","outline"],["nz-button","","nzShape","circle","nz-tooltip","",1,"send-button",3,"nzType","ngClass","nzTooltipTitle","click"],["nz-input","","type","text","nz-tooltip","","trim","blur",1,"chat-input","lh-2","box-shadow-none","roundedScrollbar","my-auto","font-size-14","p-t-0","p-b-0","pl-3","pr-3",3,"nzAutosize","readOnly","ngModel","placeholder","maxlength","nzTooltipTitle","nzTooltipVisible","ngClass","ngModelChange","keydown","keydown.enter","nzTooltipVisibleChange"],["chatInput",""],["nz-popover","","nzPopoverTrigger","click",1,"list-inline-item","m-l-15",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverOverlayStyle","nzPopoverContent","nzPopoverVisibleChange","click"],["nz-button","","nzType","link","class","text-gray link-like-button align-middle","nz-tooltip","",3,"nzTooltipTitle",4,"ngIf"],["emojiTitle",""],["contentTemplate",""],["nz-button","","nzType","link","nz-tooltip","",1,"text-gray","link-like-button","align-middle",3,"nzTooltipTitle"],["nz-icon","","nzType","smile","theme","outline",1,"black-background-hover","font-size-20"],[1,"main-content"],["class","cursor-pointer font-size-20",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"cursor-pointer","font-size-20",3,"click"]],template:function(i,e){1&i&&(t.YNc(0,qt,3,3,"div",0),t.TgZ(1,"div",1),t.NdJ("resized",function(s){return e.onResized(s)}),t.YNc(2,ee,8,13,"div",2),t.TgZ(3,"div",3),t.GkF(4,null,4),t.TgZ(6,"div",5)(7,"div",6),t.NdJ("click",function(){return e.focusSearch()}),t._UZ(8,"i",7),t.TgZ(9,"input",8,9),t.NdJ("ngModelChange",function(s){return e.chatFilterString=s})("ngModelChange",function(){return e.filterChatList()}),t.ALo(11,"translate"),t.qZA(),t.YNc(12,ne,1,0,"i",10),t.qZA(),t.TgZ(13,"div",11)(14,"ngx-simplebar",12),t.YNc(15,se,3,5,"nz-list",13),t.YNc(16,ae,7,4,"nz-list",14),t.YNc(17,Me,3,4,"nz-list",15),t.qZA()(),t.YNc(18,Ee,4,5,"button",16),t.qZA(),t.TgZ(19,"div",17)(20,"div",18)(21,"div",19),t.YNc(22,On,3,4,"div",20),t.TgZ(23,"div",21),t.YNc(24,Nn,13,7,"div",22),t.TgZ(25,"ngx-simplebar",23,24),t.YNc(27,An,3,2,"div",25),t.YNc(28,ii,3,5,"div",26),t.qZA()(),t.YNc(29,di,19,29,"div",27),t.qZA()()()()()),2&i&&(t.Q6J("ngIf",e.chatMode!==e.ChatMode.REAL),t.xp6(1),t.Q6J("ngClass",t.kEZ(26,Ci,!e.selectedChat&&e.chatMode!==e.ChatMode.DEMO_FEATURES,e.chatFeaturesHeight,!e.chatFeaturesHeight)),t.xp6(1),t.Q6J("ngIf",e.selectedChat&&e.selectedChat.state.type!==e.ClassList.Closed),t.xp6(1),t.Q6J("ngClass",t.kEZ(30,mi,e.isPhoneView,e.isTabletView,!e.showVideoChatHere||!e.isPhoneView)),t.xp6(3),t.Q6J("ngClass",t.kEZ(34,gi,e.isContentOpen,e.showVideoChatHere,!e.showVideoChatHere)),t.xp6(3),t.Q6J("placeholder",t.lcZ(11,24,"CLIENT.CONVERSATIONS.SEARCH"))("ngModel",e.chatFilterString)("ngClass",t.VKq(38,fi,e.chatMode===e.ChatMode.DEMO_FEATURES||e.chatMode===e.ChatMode.DEMO_LAWYER_MEDIATION)),t.xp6(3),t.Q6J("ngIf",""!==e.chatFilterString),t.xp6(1),t.Q6J("ngClass",t.VKq(40,Ti,e.userType===e.UserType.Lawyer)),t.xp6(1),t.Q6J("options",t.DdM(42,K)),t.xp6(1),t.Q6J("ngIf",!e.filteredChatList),t.xp6(1),t.Q6J("ngIf",e.filteredChatList&&0===e.filteredChatList.length),t.xp6(1),t.Q6J("ngIf",e.filteredChatList&&0!==e.filteredChatList.length),t.xp6(1),t.Q6J("ngIf",e.userType===e.UserType.Client),t.xp6(1),t.Q6J("ngClass",t.WLB(43,ui,e.isContentOpen,!e.isContentOpen)),t.xp6(3),t.Q6J("ngIf",e.chatId||e.selectedChat),t.xp6(2),t.Q6J("ngIf",e.actActiveOffer),t.xp6(1),t.Q6J("ngClass",t.qbA(46,Oi,e.actActiveOffer&&e.selectedChat&&e.selectedChat.state.type!==e.ClassList.Closed,e.selectedChat&&e.selectedChat.state.type===e.ClassList.Closed,e.isContentOpen,e.headerWidth>593,e.headerWidth<400))("options",t.DdM(52,K)),t.xp6(2),t.Q6J("ngIf",!e.chatId),t.xp6(1),t.Q6J("ngForOf",e.chatList)("ngForTrackBy",e.trackByChat),t.xp6(1),t.Q6J("ngIf",e.isContentOpen&&e.selectedChat&&e.selectedChat.state.type!==e.ClassList.Closed))},dependencies:[I.mk,I.sg,I.O5,Mt.X,v.Fj,v.JJ,v.nD,v.On,It.P,Et.a5,vt.M,xt.k,u.P4,Nt.Dz,Lt.x7,Pt.ix,St.w,At.dQ,zt.p9,Z.wO,Z.r9,z.cm,z.RR,z.wA,yt.Ls,A.Zp,A.rh,U.n_,U.AA,bt.JW,wt.lU,Dt.sn,y.Xw,y.yx,y.yg,Rt.SY,kt.c,Zt.D,I.uU,k.X$,Ut.R,Vt.L,Ft.A,Wt.d],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}#chat[_ngcontent-%COMP%]{height:100%}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%]{position:relative;height:100%}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-header[_ngcontent-%COMP%]{position:relative;height:75px;display:flex;align-items:center;padding:0 8px;border-bottom:1px solid #edf2f9}@media only screen and (min-width: 375px){.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-header[_ngcontent-%COMP%]{padding:0 25px}}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-header[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{position:absolute;line-height:75px;left:15px;top:2px;font-size:18px;color:#4b5766}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-header[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]:hover, .chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-header[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]:focus{text-decoration:none;color:#2a2a2a}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-header[_ngcontent-%COMP%] .recipient[_ng
27content-%COMP%]{display:inline-block;font-size:16px}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-header[_ngcontent-%COMP%] .tools[_ngcontent-%COMP%]{float:right;padding-left:0;list-style:none;font-size:20px}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-header[_ngcontent-%COMP%] .tools[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-header.closed[_ngcontent-%COMP%]{border-bottom:0px!important}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-body[_ngcontent-%COMP%]{padding:15px 25px;position:relative;width:100%}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-body[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%]{display:flex;margin-bottom:15px}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-body[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{max-width:75%;position:relative}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-body[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .bubble-wrapper[_ngcontent-%COMP%]{padding:10px 15px;overflow:hidden;border-radius:10px;margin-bottom:10px}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-body[_ngcontent-%COMP%] .msg.datetime[_ngcontent-%COMP%]{padding:15px 0;margin-bottom:0;font-size:11px;font-weight:500;justify-content:center}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-body[_ngcontent-%COMP%] .msg.msg-recipient[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .bubble-wrapper[_ngcontent-%COMP%]{background-color:#9579d11a;color:#9579d1}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-body[_ngcontent-%COMP%] .msg.msg-recipient[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .bubble-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:250px;cursor:pointer}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-body[_ngcontent-%COMP%] .msg.msg-sent[_ngcontent-%COMP%]{justify-content:flex-end}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-body[_ngcontent-%COMP%] .msg.msg-sent[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .bubble-wrapper[_ngcontent-%COMP%]{background:#ededed;color:#53535f}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%]{position:relative;background-color:#fff;border-top:1px solid #edf2f9;height:100%}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .upload-btn[_ngcontent-%COMP%], .chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .sent-btn[_ngcontent-%COMP%]{border:0px;background-color:transparent;color:#7a8a9d;outline:none;font-size:18px;position:absolute;top:12px;left:10px;transition:all .2s ease-out;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-o-transition:all .2s ease-out;-ms-transition:all .2s ease-out}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .upload-btn[_ngcontent-%COMP%]:hover, .chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .upload-btn[_ngcontent-%COMP%]:focus, .chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .sent-btn[_ngcontent-%COMP%]:hover, .chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .sent-btn[_ngcontent-%COMP%]:focus{color:#2a2a2a}.chat[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .sent-btn[_ngcontent-%COMP%]{left:auto;right:20px;font-size:18px;top:13px}.chat.chat-app[_ngcontent-%COMP%]{border:1px solid #edf2f9;padding:0;margin:0}@media only screen and (max-width: 767.98px){.chat.chat-app[_ngcontent-%COMP%]{border:0px}}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%]{width:380px;border-right:1px solid #edf2f9;float:left;background-color:#fff}@media only screen and (max-width: 767.98px){.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%]{width:100%;border-right:0px;border:1px solid #edf2f9}}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-list[_ngcontent-%COMP%]{overflow:hidden;position:relative;height:calc(95vh - 262px)}@media only screen and (max-width: 767.98px){.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-list[_ngcontent-%COMP%]{height:calc(95vh - 260px)}}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-list[_ngcontent-%COMP%] .ant-list-item[_ngcontent-%COMP%]{transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-list[_ngcontent-%COMP%] .ant-list-item[_ngcontent-%COMP%]:hover, .chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-list[_ngcontent-%COMP%] .ant-list-item.active[_ngcontent-%COMP%]{background-color:#fafbfe}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-list[_ngcontent-%COMP%] .msg-overflow[_ngcontent-%COMP%]{width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media only screen and (max-width: 767.98px){.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-list[_ngcontent-%COMP%] .msg-overflow[_ngcontent-%COMP%]{width:200
27px}}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-tool[_ngcontent-%COMP%]{padding:0 25px;height:75px;border-bottom:1px solid #edf2f9}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-tool[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{border:0px;color:#2a2a2a;line-height:75px;background-color:transparent;font-size:18px;width:70%}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-tool[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus{outline:transparent}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-tool[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#72849a66}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-tool[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:-moz-placeholder{color:#72849a66}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-tool[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]::-moz-placeholder{color:#72849a66}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-tool[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#72849a66}.chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-tool[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .chat.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-tool[_ngcontent-%COMP%] .search-remove-text-icon[_ngcontent-%COMP%]{color:#72849a66}.chat.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%]{float:left;width:calc(100% - 380px);position:relative;padding:0;background-color:#fff;transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out}@media only screen and (max-width: 767.98px){.chat.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%]{width:calc(100% - 30px);position:fixed;left:-100%;border:1px solid #edf2f9}.chat.chat-app[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%]{left:15px}}.chat.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%]{height:100%}.chat.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%] .conversation-body[_ngcontent-%COMP%]{height:calc(100vh - 335px);overflow-y:auto}.chat.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%]{position:absolute;height:75px;padding:0 0 0 25px;display:flex;justify-content:space-between;width:100%;bottom:0}@media only screen and (max-width: 767.98px){.chat.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%]{bottom:-75px}}.chat.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .chat-input[_ngcontent-%COMP%]{border:0;line-height:75px;outline:0;width:100%}.chat.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .chat-input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#72849a66}.chat.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .chat-input[_ngcontent-%COMP%]:-moz-placeholder{color:#72849a66}.chat.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .chat-input[_ngcontent-%COMP%]::-moz-placeholder{color:#72849a66}.chat.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%] .chat-input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#72849a66}.chat[_ngcontent-%COMP%] .override-sofbox[_ngcontent-%COMP%]{float:none;float:initial;padding:0;padding:initial;height:auto;height:initial;border-radius:0;border-radius:initial;transition:none 0s ease 0s;transition:initial;-moz-transition:unset;-ms-transition:unset;-o-transition:unset;-webkit-transition:unset}@media (max-width: 575.98px){.main-chat-height[_ngcontent-%COMP%]{height:calc(100vh - 165px)}}@media (min-width: 576px){.main-chat-height[_ngcontent-%COMP%]{height:calc(100vh - 169px)}}
27[_nghost-%COMP%] .msg-position{display:flex;height:100%}[_nghost-%COMP%] .msg-time-bottom{display:inline-block;align-self:flex-end}.contact-message[_ngcontent-%COMP%]{max-width:80%}input[type=text][_ngcontent-%COMP%]:disabled{background-color:#e3e3e3}.disabled-footer[_ngcontent-%COMP%]{background-color:#e3e3e3!important}.activeOfferDiv[_ngcontent-%COMP%]{background-color:#9579d11a;color:#9579d1;height:50px;align-items:center;padding:0 25px}.brief[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}[_nghost-%COMP%] .conversation-footer{display:block!important;height:auto!important;position:relative!important;bottom:0!important}[_nghost-%COMP%] perfect-scrollbar .ps__rail-y, [_nghost-%COMP%] perfect-scrollbar .ps__rail-x{display:block}[_nghost-%COMP%] perfect-scrollbar .ps{overflow:hidden!important}.brandPrimaryColor[_ngcontent-%COMP%]{color:#9579d1}.menuItem[_ngcontent-%COMP%]{height:auto;white-space:normal}.chat-brief[_ngcontent-%COMP%]{max-width:225px;width:225px;min-width:225px;overflow:hidden}.chat-brief[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:225px}.external-chat-time-ago-container[_ngcontent-%COMP%]{width:100%}.external-chat-time-ago-container[_ngcontent-%COMP%] .external-chat-time-ago[_ngcontent-%COMP%]{color:#4b5766;font-size:13px;line-height:15px;display:flex;justify-content:center;text-align:center}@media only screen and (max-width: 1139.98px){.hide-on-small[_ngcontent-%COMP%]{display:none!important}.show-on-small[_ngcontent-%COMP%]{display:block!important}}@media only screen and (min-width: 1140px){.show-on-big[_ngcontent-%COMP%]{display:block!important}.hide-on-big[_ngcontent-%COMP%]{display:none!important}}@media only screen and (max-width: 991.98px){.hide-on-1[_ngcontent-%COMP%]{display:none!important}.show-on-1[_ngcontent-%COMP%]{display:list-item!important}}@media only screen and (max-width: 1169.98px){.hide-on-2[_ngcontent-%COMP%]{display:none!important}.show-on-2[_ngcontent-%COMP%]{display:list-item!important}}@media only screen and (max-width: 1329.98px){.hide-on-3[_ngcontent-%COMP%]{display:none!important}.show-on-3[_ngcontent-%COMP%]{display:list-item!important}}@media only screen and (min-width: 992px){.show-on-1[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width: 1170px){.show-on-2[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width: 1330px){.show-on-3[_ngcontent-%COMP%]{display:none!important}}.dropdownButton[_ngcontent-%COMP%]{padding:.5rem 1.25rem}.m-t-26[_ngcontent-%COMP%]{margin-top:26px}.ant-menu-item-selected[_ngcontent-%COMP%]{border-left:3px solid #9579d1}.ant-menu-item-selected[_ngcontent-%COMP%]:after{border-right:none}.chat-input[_ngcontent-%COMP%]::-moz-placeholder{color:#4b5766!important;opacity:.6!important}.chat-input[_ngcontent-%COMP%]::placeholder{color:#4b5766!important;opacity:.6!important}.chat-input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#4b5766!important;opacity:.6!important}.chat-input[_ngcontent-%COMP%]::-ms-input-placeholder{color:#4b5766!important;opacity:.6!important}.conversation-body[_ngcontent-%COMP%]{min-height:50%;height:100px!important}.conversation-body[_ngcontent-%COMP%] .simplebar-horizontal{visibility:hidden!important}.conversation-body[_ngcontent-%COMP%] .open-link-brand-16[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.conversation-footer[_ngcontent-%COMP%]{max-height:50%}.chat-input[_ngcontent-%COMP%]{resize:none}.chat-input[_ngcontent-%COMP%]:focus{box-shadow:none}.inputDiv[_ngcontent-%COMP%]{min-height:75px;max-height:100%}.send-button[_ngcontent-%COMP%]{height:40px!important}.create-conversation-button[_ngcontent-%COMP%]{align-self:end;display:flex;justify-content:center;margin:17.5px 15px!important}.create-conversation-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{align-self:center}[_nghost-%COMP%] .simplebar-content-wrapper{overflow:auto!important}[_nghost-%COMP%] .ant-empty-image{margin-bottom:16px}[_nghost-%COMP%] .simplebar-content{height:100%}[_nghost-%COMP%] .simplebar-track{display:none}.chat-app[_ngcontent-%COMP%]{flex-wrap:nowrap!important}.chat-content[_ngcontent-%COMP%]{z-index:5;flex-grow:1;flex-shrink:1;margin-left:auto}@media only screen and (max-width: 767px){.chat-content[_ngcontent-%COMP%]{position:absolute!important}.chat-content.open[_ngcontent-%COMP%]{width:100%;left:0!important}}.chat-user-list-lawyer[_ngcontent-%COMP%]{height:calc(95vh - 222px)!important}.chatTablet.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%]{width:280px}.chatTablet.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-list[_ngcontent-%COMP%] .msg-overflow[_ngcontent-%COMP%]{width:110px}.chatTablet.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .searchInput[_ngcontent-%COMP%]{font-size:14px!important}.chatPhone.chat-app[_ngcontent-%COMP%]{border:0;position:relative}.chatPhone.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%]{width:100%;border-right:0px;border:1px solid #edf2f9}.chatPhone.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-list[_ngcontent-%COMP%]{height:calc(95vh - 285px)!important}.chatPhone.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-list[_ngcontent-%COMP%] .msg-overflow[_ngcontent-%COMP%]{width:100%;padding-right:25px}.chatPhone.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .chat-user-list-lawyer[_ngcontent-%COMP%]{height:calc(95vh - 265px)!important}.chatPhone.chat-app[_ngcontent-%COMP%] .chat-list[_ngcontent-%COMP%] .searchInput[_ngcontent-%COMP%]{font-size:14px!important}.chatPhone.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%]{position:absolute;right:100%;opacity:0;border:1px solid #edf2f9;height:100%}.chatPhone.chat-app[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%]{width:100%;right:0!important;opacity:1}.chatPhone.chat-app[_ngcontent-%COMP%] .chat-content.fake-visibility[_ngcontent-%COMP%]{position:relative!important;right:0!important;height:auto!important;opacity:1!important;border:none}.chatPhone.chat-app[_ngcontent-%COMP%] .chat-content.fake-visibility[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:none}.chatPhone.chat-app[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%] .conversation-footer[_ngcontent-%COMP%]{bottom:-75p
27x}.contract-logo-alignment[_ngcontent-%COMP%]{margin-top:.125rem!important}.share-button-sizing[_ngcontent-%COMP%]{min-width:100%;max-width:350px;margin-bottom:-4px}.closeChatLink[_ngcontent-%COMP%] .smartLink{color:#53535f!important;text-decoration:none;text-decoration:initial}.chatMenu[_ngcontent-%COMP%]{max-width:280px}.redBorder[_ngcontent-%COMP%]{border:1px solid red!important}.searchExtraMargin[_ngcontent-%COMP%]{margin:30px 0}.shrinkedMessage[_ngcontent-%COMP%]{max-width:calc(100% - 50px)!important}.max-width-500[_ngcontent-%COMP%]{max-width:500px}@media (max-width: 767.98px){.max-chat-height[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%], .max-chat-height[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%] .conversation[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}.max-chat-height[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%] .conversation-wrapper[_ngcontent-%COMP%]{flex-shrink:0!important;height:-moz-fit-content;height:fit-content}.max-chat-height[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%] .conversation-body[_ngcontent-%COMP%]{flex-shrink:0!important;height:-moz-fit-content!important;height:fit-content!important}.max-chat-height[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%] .simplebar-wrapper{flex-shrink:0!important;height:-moz-fit-content;height:fit-content}.max-chat-height[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%] .simplebar-height-auto-observer-wrapper{height:-moz-fit-content;height:fit-content}.max-chat-height[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%] .simplebar-offset{display:block;height:-moz-fit-content;height:fit-content}.max-chat-height[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%] .simplebar-content-wrapper{overflow:hidden;height:auto}.max-chat-height[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%] .simplebar-content{height:-moz-fit-content;height:fit-content}.max-chat-height[_ngcontent-%COMP%] .chatOpen[_ngcontent-%COMP%]{display:none!important}.max-chat-height[_ngcontent-%COMP%] .chat-content[_ngcontent-%COMP%]{position:absolute!important}.max-chat-height[_ngcontent-%COMP%] .chat-content.open[_ngcontent-%COMP%]{position:relative!important}.fake-visibility[_ngcontent-%COMP%]{display:none}}\\200b[_ngcontent-%COMP%] .max-chat-height[_ngcontent-%COMP%]{flex-grow:1}\\200b[_ngcontent-%COMP%] .max-chat-height[_ngcontent-%COMP%] .secureMessage[_ngcontent-%COMP%]{margin-top:-22px}.demoConversation[_ngcontent-%COMP%]{margin-bottom:18px}.chatUserName[_ngcontent-%COMP%]{font-size:12px}@media only screen and (min-width: 320px){.chatUserName[_ngcontent-%COMP%]{font-size:14px}}app-offer-widget[_ngcontent-%COMP%]{width:90%}'],data:{animation:[tt.Ln,(0,M.X$)("inOutMessage",[(0,M.eR)(":enter",[(0,M.oB)({opacity:0,transform:"translateX(10%)",overflow:"hidden"}),(0,M.jt)("0.6s ease-out",(0,M.oB)({opacity:1,transform:"translateX(0)",overflow:"hidden"}))])])]}}),T=(0,Y.gn)([(0,d.c)()],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.