PageSourceSearch

https://szerzi.hu/common-4671d540.fa506d8eabe67188.js

js szerzi.hu collected 2026-10-04 13:25:22 UTC 56,462 bytes, 27 lines download raw bytes

1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[4410],{8505:(wt,R,l)=>{l.d(R,{_:()=>T});var V=l(15861),K=l(97582),e=l(94650),L=l(18683),u=l(17009),x=l(24006),O=l(83092),h=l(71997),E=l(36057),v=l(44224),y=l(5963),B=l(69751),Z=l(52835),b=l(92961),N=l(32925),W=l(87689),U=l(3674),J=l(55089),G=l(70844),Q=l(93706),H=l(3417),Y=l(81664),j=l(25156),$=l(75141),q=l(75489),X=l(36927),I=l(36895),ee=l(75382),te=l(75352),ie=l(66616),ne=l(47044),oe=l(21811),se=l(51971),re=l(28213),ae=l(2577),A=l(73325),D=l(29562),le=l(73679),M=l(36704),ce=l(47423),w=l(20545),_e=l(37570),me=l(95352),de=l(75272),ge=l(45931),pe=l(73169),fe=l(35007),ue=l(97457),he=l(10407),Ce=l(3930),Ee=l(59832),Te=l(58569),xe=l(68328),Oe=l(25161),ve=l(45144),Se=l(79991),Le=l(7463),ye=l(70087),Ie=l(5233),Ae=l(81801),be=l(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 
7is, 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 Ne=["stashList"],De=["modalFooter"];function Me(r,n){1&r&&e._UZ(0,"i",19)}function we(r,n){1&r&&e._UZ(0,"i",20)}function Fe(r,n){if(1&r&&(e.TgZ(0,"div",16),e.ALo(1,"translate"),e.ALo(2,"translate"),e.YNc(3,Me,1,0,"i",17),e.YNc(4,we,1,0,"i",18),e._uU(5),e.ALo(6,"definiteArticle"),e.qZA()),2&r){const t=e.oxw(2);e.Q6J("nzTooltipMouseEnterDelay",.5)("nzTooltipTitle",t.invalidIndexes&&0!==t.invalidIndexes.length?e.lcZ(2,7,"CLIENT.CONTRACTS.SEGMENT.TITLE_TOOLTIP.INCOMPLETE"):e.lcZ(1,5,"CLIENT.CONTRACTS.SEGMENT.TITLE_TOOLTIP.COMPLETE")),e.xp6(3),e.Q6J("ngIf",!t.invalidIndexes||0===t.invalidIndexes.length),e.xp6(1),e.Q6J("ngIf",t.invalidIndexes&&t.invalidIndexes.length>0),e.xp6(1),e.hij(" ",e.lcZ(6,9,t.segment.displayElements.title)," ")}}const Pe=function(r){return{stepTitle:r}};function ze(r,n){if(1&r&&(e.TgZ(0,"div")(1,"div"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div"),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"a",25),e.ALo(8,"localizeRoute"),e._uU(9),e.ALo(10,"translate"),e.qZA()()()),2&r){const t=e.oxw(3);e.xp6(2),e.Oqu(e.xi3(3,4,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.DESCRIPTION",e.VKq(13,Pe,t.stepTitle))),e.xp6(3),e.hij(" ",e.lcZ(6,7,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.WARNING")," "),e.xp6(2),e.Q6J("href",e.lcZ(8,9,"/general-terms-of-service#tab-0"),e.LSH),e.xp6(2),e.Oqu(e.lcZ(10,11,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.TOS_LINK"))}}function ke(r,n){if(1&r&&(e._UZ(0,"div",26),e.ALo(1,"safe"),e.ALo(2,"hyphen"),e.ALo(3,"definiteArticle")),2&r){const t=e.oxw(3);e.Q6J("innerHTML",e.xi3(1,1,e.xi3(2,4,e.lcZ(3,7,t.segmentDescription),t.progressLanguage),"html"),e.oJD)}}function Re(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"button",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.setSmallDefiniteFont(!1))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONTRACTS.SEGMENT.DEFINITE.INCREASE_BADGE")," "))}function Ve(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"button",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.setSmallDefiniteFont(!0))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONTRACTS.SEGMENT.DEFINITE.DECREASE_BADGE")," "))}const Ke=function(r,n){return{"font-size-10":r,"cursor-pointer":n}};function Be(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"div",27)(1,"div",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.setSmallDefiniteFont(!1))}),e.ALo(2,"safe"),e.ALo(3,"hyphen"),e.ALo(4,"definiteArticle"),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"div",29),e.YNc(7,Re,3,3,"button",30),e.YNc(8,Ve,3,3,"button",30),e.qZA()()}if(2&r){const t=e.oxw(3);e.xp6(1),e.Q6J("innerHTML",e.xi3(2,5,e.xi3(3,8,e.lcZ(4,11,t.segmentDefinite),t.progressLanguage),"html"),e.oJD)("nzTooltipTitle",t.smallDefiniteFont?e.lcZ(5,13,"CLIENT.CONTRACTS.SEGMENT.DEFINITE.INCREASE_BADGE"):null)("ngClass",e.WLB(15,Ke,t.smallDefiniteFont,t.smallDefiniteFont)),e.xp6(6),e.Q6J("ngIf",t.smallDefiniteFont),e.xp6(1),e.Q6J("ngIf",!t.smallDefiniteFont)}}function Ze(r,n){1&r&&(e.TgZ(0,"div",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONTRACTS.SEGMENT.EXPERT.WARNING")," "))}function We(r,n){if(1&r&&(e.YNc(0,ze,11,15,"div",21),e.YNc(1,ke,4,9,"div",22),e.YNc(2,Be,9,18,"div",23),e.YNc(3,Ze,3,3,"div",24)),2&r){const t=e.oxw(2);e.Q6J("ngIf",t.isCustomClause),e.xp6(1),e.Q6J("ngIf",t.segmentDescription),e.xp6(1),e.Q6J("ngIf",t.segmentDefinite),e.xp6(1),e.Q6J("ngIf",t.segment.expert)}}function Ue(r,n){1&r&&(e.TgZ(0,"span",33),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"button",34),e.ALo(4,"translate"),e._UZ(5,"i",35),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,3,"CLIENT.CONTRACTS.SEGMENT.STASH.PLACEHOLDER")," "),e.xp6(2),e.Q6J("nzTooltipTitle",e.lcZ(4,5,"CLIENT.CONTRACTS.SEGMENT.STASH.GENERAL_TOOLTIP"))("nzTooltipTrigger","click"))}function Je(r,n){1&r&&(e.TgZ(0,"div",49)(1,"span",50),e._UZ(2,"nz-skeleton-element",51)(3,"nz-divider",52),e.qZA(),e.TgZ(4,"span",53),e._UZ(5,"nz-skeleton-element",51),e.qZA()()),2&r&&(e.xp6(2),e.Q6J("nzActive",!0),e.xp6(3),e.Q6J("nzActive",!0))}function Ge(r,n){1&r&&e._UZ(0,"nz-skeleton-element",54),2&r&&e.Q6J("nzActive",!0)}const F=function(r,n){return[r,n]};function Qe(r,n){if(1&r&&(e.TgZ(0,"nz-card",45)(1,"div",46),e.YNc(2,Je,6,2,"div",47),e.ALo(3,"numberArray"),e.qZA(),e.YNc(4,Ge,1,1,"ng-template",null,48,e.W1O),e.qZA()),2&r){const t=e.MAs(5);e.Q6J("nzActions",e.WLB(4,F,t,t)),e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,10))}}function He(r,n){1&r&&(e.TgZ(0,"div",42,43),e.YNc(2,Qe,6,7,"nz-card",44),e.ALo(3,"numberArray"),e.qZA()),2&r&&(e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,3)))}const P=function(r){return{"font-weight-bold":r}};function Ye(r,n){if(1&r&&(e.TgZ(0,"span",65),e._uU(1),e.ALo(2,"hyphen"),e.qZA()),2&r){const t=e.oxw().$implicit,s=e.oxw(5);e.Q6J("ngClass",e.VKq(5,P,t[2])),e.xp6(1),e.hij(" ",e.xi3(2,2,t[1],s.progressLanguage)," ")}}const je=function(){return{all:50}};function $e(r,n){if(1&r&&(e.TgZ(0,"span",66),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"hyphen"),e.ALo(4,"limitTo"),e.qZA()),2&r){const t=e.oxw().$implicit,s=e.oxw(5);e.Q6J("nzTooltipTitle",e.lcZ(1,4,"CLIENT.CONTRACTS.SEGMENT.STASH.TOOLTIP"))("nzTooltipTrigger","click")("ngClass",e.VKq(13,P,t[2])),e.xp6(2),e.hij(" ",e.xi3(3,6,e.Dn7(4,9,t[1],e.DdM(15,je),null),s.progressLanguage)," ")}}function qe(r,n){if(1&r&&(e.TgZ(0,"div",49)(1,"span",50)(2,"span",62),e._uU(3),e.ALo(4,"hyphen"),e.qZA(),e._UZ(5,"nz-divider",52),e.qZA(),e.YNc(6,Ye,3,7,"span",63),e.YNc(7,$e,5,16,"span",64),e.qZA()),2&r){const t=n.$implicit,s=e.oxw(5);e.xp6(3),e.Oqu(e.xi3(4,3,t[0],s.progressLanguage)),e.xp6(3),e.Q6J("ngIf",t[1].length<=50),e.xp6(1),e.Q6J("ngIf",t[1].length>50)}}function Xe(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"button",67),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().index,i=e.oxw(4);return e.KtG(i.scrollStash(o))}),e._UZ(1,"i",68),e.TgZ(2,"span",69),e._uU(3),e.ALo(4,"translate"),e.qZA()()}if(2&r){const t=e.oxw().index,s=e.oxw(4);e.xp6(1),e.Q6J("nzType",s.reachedStashBottom[t]?"up":"down"),e.xp6(2),e.Oqu(e.l
27cZ(4,2,s.reachedStashBottom[t]?"CLIENT.CONTRACTS.SEGMENT.STASH.SCROLL_UP":"CLIENT.CONTRACTS.SEGMENT.STASH.SCROLL_DOWN"))}}const et=function(){return["click","keydown.enter"]};function tt(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"button",70),e.NdJ("throttledHandler",function(){e.CHM(t);const o=e.oxw().$implicit,i=e.oxw(4);return e.KtG(i.selectStash(o.stashOption))}),e._UZ(1,"i",71),e.TgZ(2,"span",69),e._uU(3),e.ALo(4,"translate"),e.qZA()()}2&r&&(e.Q6J("eventsToThrottle",e.DdM(4,et)),e.xp6(3),e.Oqu(e.lcZ(4,2,"CLIENT.CONTRACTS.SEGMENT.STASH.SELECT")))}function it(r,n){if(1&r&&(e.TgZ(0,"nz-card",57)(1,"div",58),e.YNc(2,qe,8,6,"div",59),e.qZA(),e.YNc(3,Xe,5,4,"ng-template",null,60,e.W1O),e.YNc(5,tt,5,5,"ng-template",null,61,e.W1O),e.qZA()),2&r){const t=n.index,s=e.MAs(4),o=e.MAs(6),i=e.oxw(4);e.Q6J("nzActions",e.WLB(4,F,s,o)),e.xp6(1),e.Q6J("id","stashLabel"+t),e.xp6(1),e.Q6J("ngForOf",i.stashLabels[t])("ngForTrackBy",i.trackByStashLabel)}}function nt(r,n){if(1&r&&(e.TgZ(0,"div",55,43),e.YNc(2,it,7,7,"nz-card",56),e.qZA()),2&r){const t=e.oxw(3);e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(2),e.Q6J("ngForOf",t.stashes)("ngForTrackBy",t.trackByStash)}}const ot=function(r){return{stashListOpened:r}};function st(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"div",36)(1,"ul",37),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.TgZ(5,"li",38),e.NdJ("nzOpenChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.stashOpenChange(o))}),e.TgZ(6,"ul",39),e.YNc(7,He,4,4,"div",40),e.YNc(8,nt,3,3,"div",41),e.qZA()()(),e.TgZ(9,"nz-form-label"),e._uU(10),e.ALo(11,"translate"),e.qZA()()}if(2&r){e.oxw();const t=e.MAs(8),s=e.oxw();e.xp6(1),e.Q6J("nzTooltipTitle",s.isContractEditable?null:s.isEditedByOther?e.lcZ(2,6,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER")+(s.isOwned?" "+e.lcZ(3,8,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER_HINT"):""):e.lcZ(4,10,"CLIENT.CONTRACTS.FIELD.PERMISSION.WARNING"))("ngClass",e.VKq(14,ot,!s.isStashOpened)),e.xp6(4),e.Q6J("nzTitle",t),e.xp6(2),e.Q6J("ngIf",s.isStashOpened&&s.isStashLoading),e.xp6(1),e.Q6J("ngIf",!s.isStashLoading),e.xp6(2),e.hij(" ",e.lcZ(11,12,"CLIENT.CONTRACTS.SEGMENT.STASH.ENTER_NEW_DATA")," ")}}const rt=function(){return{standalone:!0}};function at(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"label",74),e.NdJ("ngModelChange",function(o){e.CHM(t);const i=e.oxw(3);return e.KtG(i.customClauseEditable=o)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const t=e.oxw(3);e.Q6J("nzDisabled",!t.isContractEditable)("ngModel",t.customClauseEditable)("ngModelOptions",e.DdM(6,rt)),e.xp6(1),e.hij(" ",e.lcZ(2,4,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.CHECKBOX")," ")}}function lt(r,n){if(1&r&&(e.TgZ(0,"div",72),e.YNc(1,at,3,7,"label",73),e.qZA()),2&r){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.isCustomClause&&!t.isLawyer)}}function ct(r,n){if(1&r&&(e._UZ(0,"app-v1-field-checkbox",82),e.ALo(1,"as")),2&r){const t=e.oxw(),s=t.$implicit,o=t.index,i=e.oxw(2);e.Q6J("field",e.xi3(1,16,s,i.V1FieldWithFieldTypes.V1Checkbox))("parentForm",i.form)("fieldName",i.fieldNames[o])("isContractEditable",i.isContractEditable)("isEditedByOther",i.isEditedByOther)("isOwned",i.isOwned)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",!i.isCustomClause||i.customClauseEditable)("isLawyer",i.isLawyer)("expertSegment",i.segment.expert)("progressLanguage",i.progressLanguage)("progressID",i.progressID)("contractTitle",i.contractTitle)("isDemo",i.isDemo)("formWidth",i.formWidth)("matchmakingCategory",i.matchmakingCategory)}}function _t(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"app-v1-field-date",83),e.NdJ("focusEmitter",function(o){e.CHM(t);const i=e.oxw().index,a=e.oxw(2);return e.KtG(a.focusChange(o,i))}),e.ALo(1,"as"),e.qZA()}if(2&r){const t=e.oxw(),s=t.$implicit,o=t.index,i=e.oxw(2);e.Q6J("field",e.xi3(1,15,s,i.V1FieldWithFieldTypes.V1DateInput))("parentForm",i.form)("fieldName",i.fieldNames[o])("isContractEditable",i.isContractEditable)("isEditedByOther",i.isEditedByOther)("isOwned",i.isOwned)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",!i.isCustomClause||i.customClauseEditable)("isLawyer",i.isLawyer)("expertSegment",i.segment.expert)("progressLanguage",i.progressLanguage)("progressID",i.progressID)("contractTitle",i.contractTitle)("formWidth",i.formWidth)("matchmakingCategory",i.matchmakingCategory)}}function mt(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"app-v1-field-datetime",83),e.NdJ("focusEmitter",function(o){e.CHM(t);const i=e.oxw().index,a=e.oxw(2);return e.KtG(a.focusChange(o,i))}),e.ALo(1,"as"),e.qZA()}
27if(2&r){const t=e.oxw(),s=t.$implicit,o=t.index,i=e.oxw(2);e.Q6J("field",e.xi3(1,15,s,i.V1FieldWithFieldTypes.V1DateTimeInput))("parentForm",i.form)("fieldName",i.fieldNames[o])("isContractEditable",i.isContractEditable)("isEditedByOther",i.isEditedByOther)("isOwned",i.isOwned)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",!i.isCustomClause||i.customClauseEditable)("isLawyer",i.isLawyer)("expertSegment",i.segment.expert)("progressLanguage",i.progressLanguage)("progressID",i.progressID)("contractTitle",i.contractTitle)("formWidth",i.formWidth)("matchmakingCategory",i.matchmakingCategory)}}function dt(r,n){if(1&r&&(e._UZ(0,"app-v1-field-time",84),e.ALo(1,"as")),2&r){const t=e.oxw(),s=t.$implicit,o=t.index,i=e.oxw(2);e.Q6J("field",e.xi3(1,15,s,i.V1FieldWithFieldTypes.V1TimeInput))("parentForm",i.form)("fieldName",i.fieldNames[o])("isContractEditable",i.isContractEditable)("isEditedByOther",i.isEditedByOther)("isOwned",i.isOwned)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",!i.isCustomClause||i.customClauseEditable)("isLawyer",i.isLawyer)("expertSegment",i.segment.expert)("progressLanguage",i.progressLanguage)("progressID",i.progressID)("contractTitle",i.contractTitle)("formWidth",i.formWidth)("matchmakingCategory",i.matchmakingCategory)}}function gt(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"app-v1-field-notice",85),e.NdJ("focusEmitter",function(o){e.CHM(t);const i=e.oxw().index,a=e.oxw(2);return e.KtG(a.focusChange(o,i))}),e.ALo(1,"as"),e.qZA()}if(2&r){const t=e.oxw(),s=t.$implicit,o=t.index,i=e.oxw(2);e.Q6J("field",e.xi3(1,13,s,i.V1FieldWithFieldTypes.V1Notice))("parentForm",i.form)("fieldName",i.fieldNames[o])("isContractEditable",i.isContractEditable)("isOwned",i.isOwned)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",!i.isCustomClause||i.customClauseEditable)("isLawyer",i.isLawyer)("expertSegment",i.segment.expert)("progressLanguage",i.progressLanguage)("progressID",i.progressID)("contractTitle",i.contractTitle)("matchmakingCategory",i.matchmakingCategory)}}function pt(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"app-v1-field-number",83),e.NdJ("focusEmitter",function(o){e.CHM(t);const i=e.oxw().index,a=e.oxw(2);return e.KtG(a.focusChange(o,i))}),e.ALo(1,"as"),e.qZA()}if(2&r){const t=e.oxw(),s=t.$implicit,o=t.index,i=e.oxw(2);e.Q6J("field",e.xi3(1,15,s,i.V1FieldWithFieldTypes.V1NumberInput))("parentForm",i.form)("fieldName",i.fieldNames[o])("isContractEditable",i.isContractEditable)("isEditedByOther",i.isEditedByOther)("isOwned",i.isOwned)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",!i.isCustomClause||i.customClauseEditable)("isLawyer",i.isLawyer)("expertSegment",i.segment.expert)("progressLanguage",i.progressLanguage)("progressID",i.progressID)("contractTitle",i.contractTitle)("formWidth",i.formWidth)("matchmakingCategory",i.matchmakingCategory)}}function ft(r,n){if(1&r&&(e._UZ(0,"app-v1-field-select",84),e.ALo(1,"as")),2&r){const t=e.oxw(),s=t.$implicit,o=t.index,i=e.oxw(2);e.Q6J("field",e.xi3(1,15,s,i.V1FieldWithFieldTypes.V1Selection))("parentForm",i.form)("fieldName",i.fieldNames[o])("isContractEditable",i.isContractEditable)("isEditedByOther",i.isEditedByOther)("isOwned",i.isOwned)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",!i.isCustomClause||i.customClauseEditable)("isLawyer",i.isLawyer)("expertSegment",i.segment.expert)("progressLanguage",i.progressLanguage)("progressID",i.progressID)("contractTitle",i.contractTitle)("formWidth",i.formWidth)("matchmakingCategory",i.matchmakingCategory)}}function ut(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"app-v1-field-text",86),e.NdJ("focusEmitter",function(o){e.CHM(t);const i=e.oxw().index,a=e.oxw(2);return e.KtG(a.focusChange(o,i))}),e.ALo(1,"as"),e.qZA()}if(2&r){const t=e.oxw(),s=t.$implicit,o=t.index,i=e.oxw(2);e.Q6J("field",e.xi3(1,18,s,i.V1FieldWithFieldTypes.V1TextInput))("parentForm",i.form)("fieldName",i.fieldNames[o])("isContractEditable",i.isContractEditable)("isEditedByOther",i.isEditedByOther)("isOwned",i.isOwned)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",!i.isCustomClause||i.customClauseEditable)("isLawyer",i.isLawyer)("expertSegment",i.segment.expert)("progressLanguage",i.progressLanguage)("progressID",i.progressID)("contractTitle",i.contractTitle)("geocodeStatus",i.geocodeStatus)("filledDataType",i.filledDataType)("filledDataID",i.filledDataID)("formWidth",i.formWidth)("matchmakingCategory",i.matchmakingCategory)}}function ht(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"app-v1-field-textarea",83),e.NdJ("focusEmitter",function(o){e.CHM(t);const i=e.oxw().index,a=e.oxw(2);return e.KtG(a.focusChange(o,i))}),e.ALo(1,"as"),e.qZA()}
27if(2&r){const t=e.oxw(),s=t.$implicit,o=t.index,i=e.oxw(2);e.Q6J("field",e.xi3(1,15,s,i.V1FieldWithFieldTypes.V1TextAreaInput))("parentForm",i.form)("fieldName",i.fieldNames[o])("isContractEditable",i.isContractEditable)("isEditedByOther",i.isEditedByOther)("isOwned",i.isOwned)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",!i.isCustomClause||i.customClauseEditable)("isLawyer",i.isLawyer)("expertSegment",i.segment.expert)("progressLanguage",i.progressLanguage)("progressID",i.progressID)("contractTitle",i.contractTitle)("formWidth",i.formWidth)("matchmakingCategory",i.matchmakingCategory)}}function Ct(r,n){if(1&r&&(e._UZ(0,"app-v1-field-confirm",84),e.ALo(1,"as")),2&r){const t=e.oxw(),s=t.$implicit,o=t.index,i=e.oxw(2);e.Q6J("field",e.xi3(1,15,s,i.V1FieldWithFieldTypes.V1Confirm))("parentForm",i.form)("fieldName",i.fieldNames[o])("isContractEditable",i.isContractEditable)("isEditedByOther",i.isEditedByOther)("isOwned",i.isOwned)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",!i.isCustomClause||i.customClauseEditable)("isLawyer",i.isLawyer)("expertSegment",i.segment.expert)("progressLanguage",i.progressLanguage)("progressID",i.progressID)("contractTitle",i.contractTitle)("formWidth",i.formWidth)("matchmakingCategory",i.matchmakingCategory)}}function Et(r,n){if(1&r&&(e._UZ(0,"app-v1-field-blockade",87),e.ALo(1,"as")),2&r){const t=e.oxw(),s=t.$implicit,o=t.index,i=e.oxw(2);e.Q6J("field",e.xi3(1,14,s,i.V1FieldWithFieldTypes.V1Blockade))("parentForm",i.form)("fieldName",i.fieldNames[o])("isContractEditable",i.isContractEditable)("isOwned",i.isOwned)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",!i.isCustomClause||i.customClauseEditable)("isLawyer",i.isLawyer)("expertSegment",i.segment.expert)("progressLanguage",i.progressLanguage)("progressID",i.progressID)("contractTitle",i.contractTitle)("formWidth",i.formWidth)("matchmakingCategory",i.matchmakingCategory)}}function Tt(r,n){if(1&r&&(e.ynx(0),e.TgZ(1,"div",75),e.YNc(2,ct,2,19,"app-v1-field-checkbox",76),e.YNc(3,_t,2,18,"app-v1-field-date",77),e.YNc(4,mt,2,18,"app-v1-field-datetime",77),e.YNc(5,dt,2,18,"app-v1-field-time",78),e.YNc(6,gt,2,16,"app-v1-field-notice",79),e.YNc(7,pt,2,18,"app-v1-field-number",77),e.YNc(8,ft,2,18,"app-v1-field-select",78),e.YNc(9,ut,2,21,"app-v1-field-text",80),e.YNc(10,ht,2,18,"app-v1-field-textarea",77),e.YNc(11,Ct,2,18,"app-v1-field-confirm",78),e.YNc(12,Et,2,17,"app-v1-field-blockade",81),e.qZA(),e.BQk()),2&r){const t=n.$implicit,s=e.oxw(2);e.xp6(2),e.Q6J("ngIf",t.specification.kind===s.V1SpecificationKind.Checkbox),e.xp6(1),e.Q6J("ngIf",t.specification.kind===s.V1SpecificationKind.Date),e.xp6(1),e.Q6J("ngIf",t.specification.kind===s.V1SpecificationKind.Datetime),e.xp6(1),e.Q6J("ngIf",t.specification.kind===s.V1SpecificationKind.Time),e.xp6(1),e.Q6J("ngIf",t.specification.kind===s.V1SpecificationKind.Notice),e.xp6(1),e.Q6J("ngIf",t.specification.kind===s.V1SpecificationKind.Number),e.xp6(1),e.Q6J("ngIf",t.specification.kind===s.V1SpecificationKind.Selection),e.xp6(1),e.Q6J("ngIf",t.specification.kind===s.V1SpecificationKind.Text),e.xp6(1),e.Q6J("ngIf",t.specification.kind===s.V1SpecificationKind.Textarea),e.xp6(1),e.Q6J("ngIf",t.specification.kind===s.V1SpecificationKind.Confirm),e.xp6(1),e.Q6J("ngIf",t.specification.kind===s.V1SpecificationKind.Blockade)}}function xt(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"button",91),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.removeCustomClause())}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e._uU(4),e.ALo(5,"translate"),e.qZA()}if(2&r){const t=e.oxw(3);e.Q6J("disabled",!t.isContractEditable)("nzTooltipTitle",t.isContractEditable?null:t.isEditedByOther?e.lcZ(1,3,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER")+(t.isOwned?" "+e.lcZ(2,5,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER_HINT"):""):e.lcZ(3,7,"CLIENT.CONTRACTS.FIELD.PERMISSION.WARNING")),e.xp6(4),e.hij(" ",e.lcZ(5,9,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.REMOVE")," ")}}function Ot(r,n){if(1&r&&(e.TgZ(0,"div",72)(1,"div",88),e.YNc(2,xt,6,11,"button",89),e._UZ(3,"app-need-help-button",90),e.qZA()()),2&r){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",t.isCustomClause&&(!t.segment.expert||t.isLawyer||t.isEmpty)),e.xp6(1),e.Q6J("progressID",t.isOwned?t.progressID:null)("matchmakingCategoryKind",t.matchmakingCategory)}}function vt(r,n){if(1&r&&(e._UZ(0,"app-suggestion",92),e.ALo(1,"definiteArticle")),2&r){const t=e.oxw(2);e.Q6J("title",e.lcZ(1,2,t.segment.displayElements.title))("coordinate",t.suggestionCoordinate)}}function St(r,n){if(1&r&&(e.TgZ(0,"button",93),e._UZ(1,"i",94),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&r){e.oxw();const t=e.MAs(16);e.Q6J("nzDropdownMenu",t),e.xp6(2),e.hij(" ",e.lcZ(3,2,"COMMON.HEADER.HELP")," ")}}function Lt(r,n){if(1&r&&e._UZ(0,"app-need-help-button",98),2&r){const t=e.oxw(3);e.Q6J("progressID",t.isOwned?t.progressID:null)("matchmakingCategoryKind",t.matchmakingCategory)}}function yt(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"app-multi-state-button",99),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.openIntercomHelp())}),e.qZA()}if(2&r){const t=e.oxw(3);e.Q6J("stickResult",!1)("runFunction",t.openIntercomHelpFunction)("nzTextKeys",t.openIntercomHelpText)}}function It(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"button",95),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.modalRef.close())}),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,Lt,1,2,"app-need-help-button",96),e.YNc(4,yt,1,3,"app-multi-state-button",97)}if(2&r){const t=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,3,"ADMIN.CANCEL")," "),e.xp6(2),e.Q6J("ngIf","ERROR_FOUND"!==t.currentModal),e.xp6(1),e.Q6J("ngIf","ERROR_FOUND"===t.currentModal)}}
27const At=function(r){return{coloredBackground:r}},bt=function(r,n){return{removeTitleBackground:r,noDescription:n}};function Nt(r,n){if(1&r){const t=e.EpF();e.TgZ(0,"form",1),e.NdJ("keydown.enter",function(o){e.CHM(t);const i=e.oxw();return e.KtG(i.handleEnter(o))}),e.TgZ(1,"section",2),e.YNc(2,Fe,7,11,"ng-template",null,3,e.W1O),e.YNc(4,We,4,4,"ng-template",null,4,e.W1O),e.TgZ(6,"info-box",5),e.YNc(7,Ue,6,7,"ng-template",null,6,e.W1O),e.YNc(9,st,12,16,"div",7),e.YNc(10,lt,2,1,"div",8),e.YNc(11,Tt,13,11,"ng-container",9),e.YNc(12,Ot,4,3,"div",8),e.qZA()(),e.YNc(13,vt,2,4,"app-suggestion",10),e.YNc(14,St,4,4,"button",11),e.TgZ(15,"nz-dropdown-menu",null,12)(17,"ul",13)(18,"li",14),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openModal("LAWYER_HELP"))}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"li",14),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openModal("ERROR_FOUND"))}),e._uU(22),e.ALo(23,"translate"),e.qZA(),e.TgZ(24,"li",14),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openModal("SUGGESTION"))}),e._uU(25),e.ALo(26,"translate"),e.qZA()()(),e.YNc(27,It,5,5,"ng-template",null,15,e.W1O),e.qZA()}if(2&r){const t=e.MAs(3),s=e.MAs(5),o=e.oxw();e.Q6J("formGroup",o.form),e.xp6(1),e.Q6J("ngClass",e.VKq(21,At,o.coloredBackground)),e.xp6(5),e.Q6J("nzTitle",t)("nzDescription",o.isCustomClause||o.segmentDescription||o.segmentDefinite||o.segment.expert?s:null)("ngClass",e.WLB(23,bt,o.coloredBackground,!o.segmentDescription&&!o.segmentDefinite)),e.xp6(3),e.Q6J("ngIf",o.segment.stash&&o.segment.stash.length>0),e.xp6(1),e.Q6J("ngIf",o.isCustomClause&&!o.isLawyer&&!o.segment.expert),e.xp6(1),e.Q6J("ngForOf",o.segment.fields)("ngForTrackBy",o.trackByField),e.xp6(1),e.Q6J("ngIf",o.isCustomClause),e.xp6(1),e.Q6J("ngIf",o.showSendSuggestions&&o.isLawyer),e.xp6(1),e.Q6J("ngIf",o.showSendSuggestions&&!o.isLawyer),e.xp6(5),e.hij(" ",e.lcZ(20,15,"CLIENT.CONTRACTS.SEGMENT.FEEDBACK.TITLES.LAWYER_HELP")," "),e.xp6(3),e.hij(" ",e.lcZ(23,17,"CLIENT.CONTRACTS.SEGMENT.FEEDBACK.TITLES.ERROR_FOUND")," "),e.xp6(3),e.hij(" ",e.lcZ(26,19,"COMMON.FEEDBACK.FEEDBACK")," ")}}let T=class{constructor(n,t,s,o,i,a,c,_,d,m,g,p,f){this.v1ContractFormService=n,this.translate=t,this.contractFormService=s,this.formService=o,this.utilService=i,this.userService=a,this.v1ValidatorService=c,this.geocodeService=_,this.languageService=d,this.modalService=m,this.nzModal=g,this.intercom=p,this.eventService=f,this.show=!0,this.validityChange=new e.vpe,this.variablesChange=new e.vpe,this.removedCustomClause=new e.vpe,this.selectedStashEmitter=new e.vpe,this.focusEmitter=new e.vpe,this.inputCompleteEmitter=new e.vpe,this.rendered=new e.vpe,this.FeedbackFeature=h.lrp,this.FeedbackUnit=h._0Z,this.V1SpecificationKind=u.J3,this.stashes=[],this.stashLabels=[],this.similarFields=new Map,this.smallDefiniteFont=!0,this.isStashOpened=!1,this.isStashLoading=!0,this.customClauseEditable=!1,this.isLawyer=!1,this.ignoreValueChange=!1,this.isEmpty=!0,this.reachedStashBottom=[],this.geocodeEnabledList=[],this.currentLanguage="hu",this.geocodeStatus=E.tm.DEFAULT,this.GeocodeState=E.tm,this.filledDataType=null,this.GeocodeDataToFill=h.XE5,this.fieldNames=[],this.needsDefaultValueEmitting=!1,this.V1SelectionFlavor=L.k1,this.V1FieldWithFieldTypes=L.Wr,this.openIntercomHelpText=new b.PR("LANDING.HELP.INSTANT_CHAT_BUTTON_STATES.DEFAULT","LANDING.HELP.INSTANT_CHAT_BUTTON_STATES.WORKING","LANDING.HELP.INSTANT_CHAT_BUTTON_STATES.SUCCESS","LANDING.HELP.INSTANT_CHAT_BUTTON_STATES.FAILED"),this.intercomHelpLoading=!1}ngOnInit(){this.suggestionCoordinate=new h.VOP(this.canonical,this.userService.sessionType?this.userService.sessionType.toString().toLowerCase():null,this.stepTitle,this.segment.displayElements.title),this.form=this.v1ContractFormService.stepFormGroup(this.segment),this.updateIsEmpty();const n=Object.keys(this.form.controls);for(const t of n){const s=this.form.controls[t];null!=s.value&&(!Array.isArray(s.value)||s.value.some(o=>o&&null!=o.control))&&s.markAllAsTouched()}this.createFieldNames(),this.oldValue=JSON.parse(JSON.stringify(this.form.value)),this.checkGeocoding(),this.handleValidityChange(this.form.status),this.statusChangesSubscription=this.form.statusChanges.subscribe(t=>{this.handleValidityChange(t)}
27),this.valueChangesSubscription=this.form.valueChanges.subscribe(t=>{this.handleValueChange(t)}),this.segment.stash&&this.readStash(),this.segment.displayElements.description&&(this.segmentDescription=this.contractFormService.parseMarkdownText(this.segment.displayElements.description)),this.segment.displayElements.definite&&(this.segmentDefinite=this.contractFormService.parseMarkdownText(this.segment.displayElements.definite)),O.R.updateFieldValueEmitter.subscribe(t=>{this.segment===t.segment&&this.form.patchValue({[t.fieldName]:t.value})}),O.R.setDefaultFieldValueEmitter.subscribe(t=>{this.segment===t.segment&&(this.form.controls[t.fieldName]&&this.form.controls[t.fieldName].value!==t.value?this.form.patchValue({[t.fieldName]:t.value}):(this.needsDefaultValueEmitting=!0,this.form.updateValueAndValidity()))}),O.R.updateValidityEmitter.subscribe(t=>{if(this.segment===t){const s=Object.keys(this.form.controls);for(const o of s){const i=this.form.controls[o];i.markAllAsTouched(),this.ignoreValueChange=!0,i.updateValueAndValidity(),Array.isArray(i.controls)&&i.controls.forEach(a=>{const c=a;c.controls.control.markAllAsTouched(),this.ignoreValueChange=!0,c.controls.control.updateValueAndValidity()})}}}),this.isLawyer=this.userService.isLawyer,this.isLawyer&&(this.customClauseEditable=!0),this.currentLanguage=this.languageService.currentLanguage,this.translate.onLangChange.subscribe(t=>{this.currentLanguage=t.lang})}ngAfterViewInit(){this.rendered.emit(!0)}ngOnChanges(n){if(n.segment&&this.oldValue){const t=this.v1ContractFormService.stepFormGroup(this.segment);-1!==Object.keys(t.value).findIndex(o=>{const i=!this.utilService.isDeepEqual(t.value[o],this.oldValue[o]);let a=!i;if(i&&Array.isArray(t.value[o])&&Array.isArray(this.oldValue[o])&&t.value[o].length!==this.oldValue[o].length){const c=Math.min(t.value[o].length,this.oldValue[o].length),_=Math.max(t.value[o].length,this.oldValue[o].length),d=t.value[o].length===_?t.value[o]:this.oldValue[o];let m=0;for(a=!0;m<_&&a;)a=m<c&&this.utilService.isDeepEqual(t.value[o][m],this.oldValue[o][m])||c<=m&&null==d[m].control,m++}return i&&!a})&&(this.statusChangesSubscription&&this.statusChangesSubscription.unsubscribe(),this.valueChangesSubscription&&this.valueChangesSubscription.unsubscribe(),this.form=t,this.oldValue=JSON.parse(JSON.stringify(this.form.value)),this.handleValidityChange(this.form.status),this.statusChangesSubscription=this.form.statusChanges.subscribe(o=>{this.handleValidityChange(o)}),this.valueChangesSubscription=this.form.valueChanges.subscribe(o=>{this.handleValueChange(o)}))}}isSelectionPanel(n){return n.specification.kind===u.J3.Selection&&n.specification.field.flavor===L.k1.Panel}handleValueChange(n){if(!this.ignoreValueChange){let t;const s=JSON.parse(JSON.stringify(n));t=this.oldValue?Object.keys(s).findIndex(o=>!this.utilService.isDeepEqual(s[o],this.oldValue[o])):Object.keys(s).findIndex(o=>null!==s[o]),this.geocodeEnabledList&&this.geocodeEnabledList.length>0&&this.runGeocode(n,s),this.oldValue=s,this.updateIsEmpty(),(-1!==t||this.needsDefaultValueEmitting)&&(this.needsDefaultValueEmitting&&(this.needsDefaultValueEmitting=!1),setTimeout(()=>this.variablesChange.emit({formData:this.v1ContractFormService.formatFormDataForSegment(this.form,this.segment,n),changedIndex:t}),0))}this.ignoreValueChange=!1}handleValidityChange(n){const t=[];this.invalidEnsures=[];const s=Object.keys(this.form.controls).filter(o=>{const i=this.form.get(o);let a=!1;if(i.errors){const c=Object.keys(i.errors),_=this.segment.fields.find(m=>this.v1ContractFormService.variableNameToFieldName(m,this.segment)===o);let d=!1;if(_){const m=this.segment.integrity?this.segment.integrity.ensures.find(g=>g.kind===L.oo.Error&&g.fields.includes(_.variable)):null;m&&(d=this.v1ValidatorService.onlyOneIsRequiredError(o,this.form,m.kind),d&&!i.errors.requiredFields.some(g=>t.includes(g))&&(this.invalidEnsures.push({invalidEnsure:m,firstIndex:this.segment.fields.findIndex(g=>this.v1ContractFormService.variableNameToFieldName(g,this.segment)===o)}),t.push(o)))}a=a||"INVALID"===i.status&&(c.includes("required")||c.includes("error"))&&!d}if(i.controls){const c=i.controls,_=this.segment.fields.find(g=>this.v1ContractFormService.variableNameToFieldName(g,this.segment)===o),d=_&&_.specification.field.multipliable&&_.specification.field.multipliable.delimiter&&_.specification.field.multipliable.exactly,m=Array.isArray(c)&&c.some(g=>!g.controls.control.errors||!Object.keys(g.controls.control.errors).includes("required"));a=a||Array.isArray(c)&&c.some(g=>{if(g.controls.control.errors){const p=Object.keys(g.controls.control.errors);return d&&p.includes("required")||!m||p.includes("error")}return!1})}return a});this.invalidIndexes=this.segment.fields.map((o,i)=>{if(s.includes(this.v1ContractFormService.variableNameToFieldName(o,this.segment)))return i}).filter(o=>null!=o),this.validityChange.emit({validity:"VALID"===n,invalidIndexes:this.invalidIndexes,invalidEnsures:this.invalidEnsures})}updateIsEmpty(){const n=Object.keys(this.form.controls);this.isEmpty=n.every(t=>{const s=this.form.controls[t];return null==s.value||Array.isArray(s.value)&&s.value.every(o=>!o||null==o.control)})}
27removeCustomClause(){this.isContractEditable&&this.isCustomClause&&(!this.segment.expert||this.isLawyer||this.isEmpty)&&((!this.segment.expert||this.isLawyer)&&this.segment.fields.forEach(n=>{this.v1ContractFormService.deleteFieldValue(this.form,this.v1ContractFormService.variableNameToFieldName(n,this.segment))}),setTimeout(()=>{this.removedCustomClause.emit()},0))}readStash(){var n=this;return(0,V.Z)(function*(){n.sortStash(),n.stashForm=n.v1ContractFormService.selectStashFormGroup(null),n.createStashLabels()})()}sortStash(){this.segment.stash=this.segment.stash.sort((n,t)=>this.getSpecificStashValue(n,0,0)<this.getSpecificStashValue(t,0,0)?-1:1)}getSpecificStashValue(n,t,s){let o="";if(n.length>t){const i=n[t];if(i.names.length>s){const a=i.names[s];o=this.findVariableValue(i.variables,a.variable),o=this.convertVariableToDisplay(a,o)}}return o}convertVariableToDisplay(n,t){return n.options&&n.options[t]?t=n.options[t]:"true"===t?t=this.translate.instant("COMMON.BOOLEAN.YES"):"false"===t&&(t=this.translate.instant("COMMON.BOOLEAN.NO")),t}hasSameObjectKeys(n,t){const s=Object.keys(n),o=Object.keys(t);return s.length===o.length&&s.every(i=>o.some(a=>i===a))}findRelatedSegment(n,t){return t.findIndex(s=>{const o=Object.keys(n.variables);return this.hasSameObjectKeys(n.variables,s.variables)&&o.every(a=>this.hasSameObjectKeys(n.variables[a],s.variables[a]))&&n.names.length===s.names.length&&n.names.every(a=>s.names.some(c=>a.variable===c.variable))})}getSimilarFieldList(n,t){let s,o;const i=[],a=[];let c=0;const d=Math.abs(n.length-t.length);
27d<3&&(n.length<=t.length?(s=n,o=t):(s=t,o=n),s.forEach((p,f)=>{if(c<6){const C=this.findRelatedSegment(p,o);if(-1!==C){const z=o[C];p.names.forEach((S,k)=>{c<6&&(this.findVariableValue(p.variables,S.variable)===this.findVariableValue(z.variables,S.variable)?(i.push({segmentIndex:f,fieldIndex:k}),a.push({segmentIndex:C,fieldIndex:k})):c++)})}}}));const g=new Map;return d<3&&c<6&&(g.set(s,i),g.set(o,a)),g}addSimilarFields(n,t){if(this.similarFields.has(n)){const s=this.similarFields.get(n);t.forEach(o=>{-1===s.findIndex(a=>a.segmentIndex===o.segmentIndex&&a.fieldIndex===o.fieldIndex)&&s.push(o)})}else this.similarFields.set(n,t)}buildSimilarFields(){this.segment.stash.forEach(n=>{this.segment.stash.forEach(t=>{if(n!==t){const s=this.getSimilarFieldList(n,t);2===s.size&&(this.addSimilarFields(n,s.get(n)),this.addSimilarFields(t,s.get(t)))}})})}createStashLabels(){this.buildSimilarFields(),this.stashes=[];const n=[];this.stashLabels=this.segment.stash.map(t=>{let s=this.utilService.randomString(128);for(;n.includes(s);)s=this.utilService.randomString(128);n.push(s),this.stashes.push({ID:s,stashOption:t});let o="";const i=[],a=[];return t.forEach((c,_)=>{c.names.forEach((d,m)=>{Object.keys(c.variables).find(f=>f===d.variable||c.variables[f]instanceof Object&&Object.keys(c.variables[f]));let p=this.findVariableValue(c.variables,d.variable);if(p=this.convertVariableToDisplay(d,p),""!==p){let f=-1;const C=!this.similarFields.has(t);C||(f=this.similarFields.get(t).findIndex(S=>S.segmentIndex===_&&S.fieldIndex===m)),0!==_||0!==m||C||-1!==f?0===_&&0===m?o=[d.title,p,!1]:-1===f&&C?a.push([d.title,p,!1]):-1!==f||C?i.push([d.title,p,!1]):a.push([d.title,p,!0]):o=[d.title,p,!0]}})}),[o,...a,...i]})}findVariableValue(n,t,s=0){let o="";if("string"!=typeof n){const i=Object.keys(n);if(i.includes(t)&&null!=n[t]&&"string"==typeof n[t])o=n[t];else{let a=0;for(;a<i.length&&""===o;)n[i[a]]&&(o=this.findVariableValue(n[i[a]],t,s+1)),a++}}return o}optionToString(n){return"string"==typeof n?n:Array.isArray(n)?n.map(t=>this.optionToString(t)).filter(t=>t).join(", "):n instanceof Object?Object.keys(n).map(s=>this.optionToString(n[s])).filter(s=>s).join(", "):void 0}selectStash(n){const t=n.map(s=>s.variables);this.selectedStashEmitter.emit(t)}focusChange(n,t){this.focusEmitter.emit({change:n,fieldIndex:t})}stashOpenChange(n){this.isStashOpened=n,this.isStashLoading&&n&&(0,y.H)(300).pipe((0,v.t)(this)).subscribe(()=>{this.isStashLoading=!1})}handleEnter(n){if(this.formService.preventEnterFromSubmit(n),n.target instanceof HTMLInputElement||n.target instanceof HTMLButtonElement&&n.target.parentElement&&"nz-switch"===n.target.parentElement.tagName.toLowerCase()||n.target instanceof HTMLElement&&"nz-card"===n.target.tagName.toLowerCase()){const t=n.target;let s=t,o=s.id,i=this.segment.fields.findIndex(_=>this.v1ContractFormService.variableNameToFieldName(_,this.segment)===o);for(;"form"!==s.tagName.toLowerCase()&&-1===i;)s=s.parentElement,o=s.id,""!==o&&(i=this.segment.fields.findIndex(_=>this.v1ContractFormService.variableNameToFieldName(_,this.segment)===o));let c,a=this.form.controls[o];if(a instanceof x.vC&&(a=a.controls[t.id].controls.control),a){a.markAsTouched();const _=this.segment.fields[i];!a||a.value===t.value||(_.specification.kind!==u.J3.Text||_.specification.field.suggestions&&0!==_.specification.field.suggestions.length)&&_.specification.kind!==u.J3.Textarea?_.specification.kind===u.J3.Number&&(a.patchValue(this.utilService.formattedNumberToNumberWithinLimits(t.value)),this.form.updateValueAndValidity()):(a.patchValue(t.value),this.form.updateValueAndValidity())}a.errors&&(c=Object.keys(a.errors)),(!a||a.valid||c&&!c.includes("required")&&!c.includes("error"))&&this.inputCompleteEmitter.emit(i)}}scrollDownStash(n){const t=document.getElementById("stashLabel"+n);if(t){let s=t.parentElement;for(;s&&!s.classList.contains("ant-card-body");)s=s.parentElement;if(s){const o=2*s.clientHeight/3;s.scrollHeight<=s.scrollTop+s.clientHeight+o&&(this.reachedStashBottom[n]=!0),s.scrollBy({top:o,left:0,behavior:"smooth"})}}}scrollTopStash(n){const t=document.getElementById("stashLabel"+n);if(t){let s=t.parentElement;for(;s&&!s.classList.contains("ant-card-body");)s=s.parentElement;s&&(s.scrollTo({top:0,left:0,behavior:"smooth"}),this.reachedStashBottom[n]=!1)}}scrollStash(n){this.reachedStashBottom[n]?this.scrollTopStash(n):this.scrollDownStash(n)}setSmallDefiniteFont(n){this.smallDefiniteFont=n}checkGeocoding(){this.geocodeEnabledList=[],this.segment.fields.forEach(n=>{const t=["postal code","city","country"].find(s=>(n.specification.kind===u.J3.Selection||n.specification.kind===u.J3.Text)&&n.specification.field.features.includes(s));t&&this.geocodeEnabledList.push(new h.YSE(t,this.v1ContractFormService.variableNameToFieldName(n,this.segment),(n.specification.kind===u.J3.Selection||n.specification.kind===u.J3.Text)&&n.specification.field.features.includes("geocoding")))})}runGeocode(n,t){let s;
27s=this.oldValue?Object.keys(t).filter(c=>!this.utilService.isDeepEqual(t[c],this.oldValue[c])):Object.keys(t).filter(c=>null!==t[c]);const o=this.geocodeEnabledList.find(c=>"country"===c.type),i=this.geocodeEnabledList.find(c=>"postal code"===c.type),a=this.geocodeEnabledList.find(c=>"city"===c.type);o&&i&&a&&(s.includes(o.formKey)&&n[o.formKey]||s.includes(i.formKey)&&n[i.formKey]||s.includes(a.formKey)&&n[a.formKey])&&(s.includes(o.formKey)&&this.form.controls[o.formKey].value&&(this.form.controls[a.formKey].value&&!this.form.controls[i.formKey].value||!this.form.controls[a.formKey].value&&this.form.controls[i.formKey].value)||this.form.controls[o.formKey].value&&(s.includes(a.formKey)&&!this.form.controls[i.formKey].value||s.includes(i.formKey)&&!this.form.controls[a.formKey].value))&&(this.lastGeocode?s.includes(this.lastGeocode.key)&&n[this.lastGeocode.key]!==this.lastGeocode.value||!s.includes(this.lastGeocode.key)?this.completeWithGeocode(s,n,o,i,a):s.includes(this.lastGeocode.key)&&n[this.lastGeocode.key]===this.lastGeocode.value&&s.length>1&&(this.lastGeocode.key===i.formKey&&s.includes(a.formKey)||this.lastGeocode.key===a.formKey&&s.includes(i.formKey))&&(s.splice(s.indexOf(this.lastGeocode.key),1),this.completeWithGeocode(s,n,o,i,a)):this.completeWithGeocode(s,n,o,i,a))}completeWithGeocode(n,t,s,o,i){this.filledDataType=n.includes(s.formKey)?!t[i.formKey]&&t[o.formKey]?h.XE5.CITY:t[i.formKey]&&!t[o.formKey]?h.XE5.POSTAL_CODE:null:n.includes(o.formKey)&&t[o.formKey]?h.XE5.CITY:n.includes(i.formKey)&&t[i.formKey]?h.XE5.POSTAL_CODE:null,this.filledDataID=n.includes(s.formKey)?!t[i.formKey]&&t[o.formKey]?i.formKey:t[i.formKey]&&!t[o.formKey]?o.formKey:null:n.includes(o.formKey)&&t[o.formKey]?i.formKey:n.includes(i.formKey)&&t[i.formKey]?o.formKey:null,this.switchGeocodeStateTimer&&this.switchGeocodeStateTimer.unsubscribe(),this.pendingGeocodeSubscription&&this.pendingGeocodeSubscription.unsubscribe(),this.geocodeStatus=E.tm.SEARCHING,this.pendingGeocodeSubscription=new B.y(a=>{this.geocodeService.completeWithGeocode(this.form,s,o,i,!1,this.languageService.progressLanguageToLanguageKey(this.progressLanguage),this.filledDataType).then(c=>a.next(c),c=>a.error(c))}).subscribe(a=>{this.geocodeStatus=E.tm.FOUND,this.lastGeocode=a,this.form.patchValue({[a.key]:a.value}),this.form.controls[a.key].markAsDirty(),this.switchGeocodeStateTimer=(0,y.H)(3e3).pipe((0,v.t)(this)).subscribe(c=>{this.geocodeStatus=E.tm.DEFAULT,this.switchGeocodeStateTimer=null,this.pendingGeocodeSubscription=null})},a=>{this.geocodeStatus=E.tm.NOT_FOUND,this.switchGeocodeStateTimer=(0,y.H)(3e3).pipe((0,v.t)(this)).subscribe(c=>{this.geocodeStatus=E.tm.DEFAULT,this.lastGeocode=null,this.switchGeocodeStateTimer=null,this.pendingGeocodeSubscription=null})})}createFieldNames(){this.fieldNames=this.segment.fields.map(n=>this.v1ContractFormService.variableNameToFieldName(n,this.segment))}trackByStash(n,t){return t.ID}trackByStashLabel(n,t){return t[1]}trackByField(n,t){return t.variable}openModal(n){switch(this.currentModal=n,n){case"LAWYER_HELP":this.modalRef=this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONTRACTS.SEGMENT.FEEDBACK.TITLES.LAWYER_HELP"),nzContent:this.translate.instant("CLIENT.CONTRACTS.SEGMENT.FEEDBACK.CONTENT.LAWYER_HELP"),nzFooter:this.modalFooter});break;case"ERROR_FOUND":this.modalRef=this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONTRACTS.SEGMENT.FEEDBACK.TITLES.ERROR_FOUND"),nzContent:this.translate.instant("CLIENT.CONTRACTS.SEGMENT.FEEDBACK.CONTENT.ERROR_FOUND"),nzFooter:this.modalFooter});break;case"SUGGESTION":this.modalService.suggestionModal(this.suggestionCoordinate,this.segment.displayElements.title)}}openIntercomHelp(){this.openIntercomHelpFunction=this.intercom.isOpened||this.intercomHelpLoading?null:new Promise((n,t)=>{this.intercomHelpLoading=!0,this.eventService.intercomOpened.pipe((0,v.t)(this)).subscribe(s=>{this.intercomHelpLoading=!1,s?n(null):t()}),this.intercom.startAndShow("right")})}};T.\u0275fac=function(n){return new(n||T)(e.Y36(O.R),e.Y36(N.sK),e.Y36(O.R),e.Y36(W.o),e.Y36(U.f),e.Y36(J.K),e.Y36(G.h),e.Y36(Q.M),e.Y36(H.T),e.Y36(Y.Z),e.Y36(j.Sf),e.Y36($.f),e.Y36(q.P))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-v1-segment"]],viewQuery:function(n,t){if(1&n&&(e.Gf(Ne,5),e.Gf(De,5)),2&n){let s;e.iGM(s=e.CRH())&&(t.stashList=s.first),e.iGM(s=e.CRH())&&(t.modalFooter=s.first)}},inputs:{segment:"segment",show:"show",isContractEditable:"isContractEditable",isCustomClause:"isCustomClause",coloredBackgroun
vendor: 10,272 bytes, line 27
27d:"coloredBackground",progressLanguage:"progressLanguage",progressID:"progressID",contractTitle:"contractTitle",stepTitle:"stepTitle",isDemo:"isDemo",isEditedByOther:"isEditedByOther",isOwned:"isOwned",showSendSuggestions:"showSendSuggestions",canonical:"canonical",formWidth:"formWidth",matchmakingCategory:"matchmakingCategory"},outputs:{validityChange:"validityChange",variablesChange:"variablesChange",removedCustomClause:"removedCustomClause",selectedStashEmitter:"selectedStashEmitter",focusEmitter:"focusEmitter",inputCompleteEmitter:"inputCompleteEmitter",rendered:"rendered"},features:[e.TTD],decls:1,vars:1,consts:[["nz-form","",3,"formGroup","keydown.enter",4,"ngIf"],["nz-form","",3,"formGroup","keydown.enter"],[1,"code-box","expand","hoverBorder",3,"ngClass"],["titleTemplate",""],["descriptionTemplate",""],[1,"segmentInfoBox",3,"nzTitle","nzDescription","ngClass"],["placeholderTemplate",""],["class","w-100 stashForm",4,"ngIf"],["class","code-box-description p-t-0",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","feedback-positioning suggestion",3,"title","coordinate",4,"ngIf"],["nzType","link","class","border-0 color-gray-light background-color-unset font-size-11 link-like-button text-decoration-underline-hover feedbackIcon","nz-dropdown","","nzPlacement","topLeft","nzTrigger","click",3,"nzDropdownMenu",4,"ngIf"],["menu","nzDropdownMenu"],["nz-menu","","nzSelectable",""],["nz-menu-item","",3,"click"],["modalFooter",""],["nz-tooltip","",3,"nzTooltipMouseEnterDelay","nzTooltipTitle"],["nz-icon","","nzType","check","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","edit","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","check","nzTheme","outline"],["nz-icon","","nzType","edit","nzTheme","outline"],[4,"ngIf"],["class","listWithMargin descriptionContent",3,"innerHTML",4,"ngIf"],["class","p-10 definiteBox listWithMargin",4,"ngIf"],["class","font-weight-bold",4,"ngIf"],["target","_blank","rel","noopener noreferrer",1,"open-link-brand-16",3,"href"],[1,"listWithMargin","descriptionContent",3,"innerHTML"],[1,"p-10","definiteBox","listWithMargin"],["nz-tooltip","","nzTooltipPlacement","topRight",1,"descriptionContent",3,"innerHTML","nzTooltipTitle","ngClass","click"],[1,"w-100","text-right"],["nz-button","","nzType","link","class","link-like-button",3,"click",4,"ngIf"],["nz-button","","nzType","link",1,"link-like-button",3,"click"],[1,"font-weight-bold"],[1,"ml-0","px-2","stashStyling"],["nz-button","","nzType","link","nz-tooltip","",1,"link-like-button",3,"nzTooltipTitle","nzTooltipTrigger"],["nz-icon","","nzType","question-circle","nzTheme","outline"],[1,"w-100","stashForm"],["nz-menu","","nzMode","inline","nzType","primary","nz-tooltip","","nzTooltipPlacement","top",1,"bg-transparent","stashList",3,"nzTooltipTitle","ngClass"],["nz-submenu","","nzIcon","history",1,"ant-menu-item-selected","white-space-normal","h-auto","placeholderItem",3,"nzTitle","nzOpenChange"],[1,"position-relative"],["class","text-center p-t-10 w-100",4,"ngIf"],["class","text-center p-t-10",4,"ngIf"],[1,"text-center","p-t-10","w-100"],["stashList",""],["class","stashCard w-100","nzSize","small",3,"nzActions",4,"ngFor","ngForOf"],["nzSize","small",1,"stashCard","w-100",3,"nzActions"],[1,"w-100"],["class","row w-100 m-h-0 stashLine",4,"ngFor","ngForOf"],["actionSkeleton",""],[1,"row","w-100","m-h-0","stashLine"],[1,"col-6","ant-descriptions-item-label","ant-descriptions-item-no-colon","d-flex","p-h-0"],["nzType","input","nzSize","small",1,"p-b-10","w-100",3,"nzActive"],["nzType","vertical"],[1,"col-6","ant-descriptions-item-content","text-left"],["nzType","input","nzSize","small",1,"p-b-10","w-100","cursor-default",3,"nzActive"],[1,"text-center","p-t-10"],["class","stashCard","nzSize","small",3,"nzActions",4,"ngFor","ngForOf","ngForTrackBy"],["nzSize","small",1,"stashCard",3,"nzActions"],[1,"w-100",3,"id"],["class","row w-100 m-h-0 stashLine",4,"ngFor","ngForOf","ngForTrackBy"],["actionScroll",""],["actionSelect",""],[1,"w-100","font-size-smaller"],["class","col-6 ant-descriptions-item-content text-left",3,"ngClass",4,"ngIf"],["nz-tooltip","","class","col-6 ant-descriptions-item-content text-left",3,"nzTooltipTitle","nzTooltipTrigger","ngClass",4,"ngIf"],[1,"col-6","ant-descriptions-item-content","text-left",3,"ngClass"],["nz-tooltip","",1,"col-6","ant-descriptions-item-content","text-left",3,"nzTooltipTitle","nzTooltipTrigger","ngClass"],["nz-button","","nzSize","small",1,"ant-btn-quaternary","h-auto","white-space-normal",3,"click"],["nz-icon","","nzTheme","outline",1,"border-0",3,"nzType"],[1,"d-inline"],["nz-button","","nzSize","small","appThrottleEvents","",1,"ant-btn-quaternary","h-auto","white-space-normal",3,"eventsToThrottle","throttledHandler"],["nz-icon","","nzType","select","nzTheme","outline",1,"border-0"],[1,"code-box-description","p-t-0"],["nz-checkbox","",3,"nzDisabled","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"nzDisabled","ngModel","ngModelOptions","ngModelChange"],[1,"col-12"],[3,"field","parentForm","fieldName","isContractEditable","isEditedByOther","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","isDemo","formWidth","matchmakingCategory",4,"ngIf"],[3,"field","parentForm","fieldName","isContractEditable","isEditedByOther","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","formWidth","matchmakingCategory","focusEmitter",4,"ngIf"],[3,"field","parentForm","fieldName","isContractEditable","isEditedByOther","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","formWidth","matchmakingCategory",4,"ngIf"],[3,"field","parentForm","fieldName","isContractEditable","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","matchmakingCategory","focusEmitter",4,"ngIf"],[3,"field","parentForm","fieldName","isContractEditable","isEditedByOther","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","geocodeStatus","filledDataType","filledDataID","formWidth","matchmakingCategory","focusEmitter",4,"ngIf"],[3,"field","parentForm","fieldName","isContractEditable","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","formWidth","matchmakingCategory",4,"ngIf"],[3,"field","parentForm","fieldName","isContractEditable","isEditedByOther","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","isDemo","formWidth","matchmakingCategory"],[3,"field","parentForm","fieldName","isContractEditable","isEditedByOther","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","formWidth","matchmakingCategory","focusEmitter"],[3,"field","parentForm","fieldName","isContractEditable","isEditedByOther","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","formWidth","matchmakingCategory"],[3,"field","parentForm","fieldName","isContractEditable","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","matchmakingCategory","focusEmitter"],[3,"field","parentForm","fieldName","isContractEditable","isEditedByOther","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","geocodeStatus","filledDataType","filledDataID","formWidth","matchmakingCategory","focusEmitter"],[3,"field","parentForm","fieldName","isContractEditable","isOwned","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","progressLanguage","progressID","contractTitle","formWidth","matchmakingCategory"],[1,"m-t-5","text-center"],["nz-button","","nz-tooltip","","nzTooltipPlacement","top","class","m-5",3,"disabled","nzTooltipTitle","click",4,"ngIf"],[1,"d-inline-flex","m-5",3,"progressID","matchmakingCategoryKind"],["nz-button","","nz-tooltip","","nzTooltipPlacement","top",1,"m-5",3,"disabled","nzTooltipTitle","click"],[1,"feedback-positioning","suggestion",3,"title","coordinate"],["nzType","link","nz-dropdown","","nzPlacement","topLeft","nzTrigger","click",1,"border-0","color-gray-light","background-color-unset","font-size-11","link-like-button","text-decoration-underline-hover","feedbackIcon",3,"nzDropdownMenu"],["nz-icon","","nzType","info-circle","nzTheme","outline",1,"font-size-11",2,"margin-bottom","5px","margin-right","1px"],["nz-button","","nzType","default",3,"click"],[3,"progressID","matchmakingCategoryKind",4,"ngIf"],[3,"stickResult","runFunction","nzTextKeys","click",4,"ngIf"],[3,"progressID","matchmakingCategoryKind"],[3,"stickResult","runFunction","nzTextKeys","click"]],template:function(n,t){1&n&&e.YNc(0,Nt,29,26,"form",0),2&n&&e.Q6J("ngIf",t.show&&t.form)},dependencies:[X.I,I.mk,I.sg,I.O5,x._Y,x.JJ,x.JL,x.On,x.sg,b.P4,ee.u,te.w,ie.ix,ne.w,oe.dQ,se.bd,re.Ie,ae.g,A.wO,A.r9,A.rY,D.cm,D.RR,le.t3,M.Lr,M.iK,ce.Ls,w.Xw,w.yg,_e.SY,me.B,de.Q,ge.F,pe.G,fe.c,ue.W,he.g,Ce.U,Ee.I,Te.W,xe.k,Oe.W,N.X$,ve.j,Se.Y,Le.N,ye.L,Ie.y,Ae.A,be.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}[_nghost-%COMP%]     .code-box{margin-top:-5px;margin-bottom:5px;padding-bottom:20px}[_nghost-%COMP%]     .highlight-wrapper{border-bottom:none}.hoverBorder[_ngcontent-%COMP%]:hover{border-color:#9579d1}.stashForm[_ngcontent-%COMP%]{padding:12px 24px}.stashLabel[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;height:auto;line-height:normal}
27.coloredBackground[_ngcontent-%COMP%]{background-color:#9579d11a}[_nghost-%COMP%]   .removeTitleBackground[_ngcontent-%COMP%]     .code-box-title{background-color:#fff}[_nghost-%COMP%]   .removeTitleBackground[_ngcontent-%COMP%]     .code-box-title>div{background-color:#9579d11a}[_nghost-%COMP%]   .segmentInfoBox[_ngcontent-%COMP%]     .code-box-title>div{border-radius:.25rem}.stashList[_ngcontent-%COMP%]{max-width:100%}.stashListOpened[_ngcontent-%COMP%]{width:-moz-min-content;width:min-content}@media (max-width: 575.98px){.stashList[_ngcontent-%COMP%]{width:auto}.placeholderItem[_ngcontent-%COMP%]     .ant-menu-submenu-title{white-space:normal;height:auto}}[_nghost-%COMP%]   .segmentInfoBox[_ngcontent-%COMP%]     .code-box-description{line-height:1.5715}[_nghost-%COMP%]   .hoverBorder[_ngcontent-%COMP%]:hover   .segmentInfoBox[_ngcontent-%COMP%]     .code-box-title{color:#9579d1}.stashCard[_ngcontent-%COMP%]{max-width:300px;width:auto;display:inline-block}.stashCard[_ngcontent-%COMP%] + .stashCard[_ngcontent-%COMP%]{margin-left:10px}.stashCard[_ngcontent-%COMP%]     .ant-card-body{position:relative;max-height:300px;overflow:hidden}.stashLine[_ngcontent-%COMP%]{padding-bottom:6px}.stashItem[_ngcontent-%COMP%]     .ant-descriptions-item{padding-bottom:6px}.stashItem[_ngcontent-%COMP%]     .ant-descriptions-item-label{width:50%}.stashItem[_ngcontent-%COMP%]     .ant-descriptions-item-content{width:50%}.stashItem[_ngcontent-%COMP%]     .ant-descriptions-item-label:after{content:""}.stashCard[_ngcontent-%COMP%]     .ant-card-actions>li{margin:5px 0}.definiteBox[_ngcontent-%COMP%]{border:1px #edf2f9 solid}.stashCard[_ngcontent-%COMP%]     .ant-card-actions{display:flex;flex-wrap:wrap}.stashCard[_ngcontent-%COMP%]     .ant-card-actions li{min-width:-moz-min-content;min-width:min-content;flex-grow:1;padding-left:5px;padding-right:5px}.stashStyling[_ngcontent-%COMP%]{line-height:21px;flex:initial!important}.suggestion[_ngcontent-%COMP%]{bottom:15px}.feedbackIcon[_ngcontent-%COMP%]{bottom:13px;right:10px;position:absolute;cursor:pointer}'],data:{animation:[Z.Ln]}}),T=(0,K.gn)([(0,v.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.