1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[9028],{58569:(fe,C,r)=>{r.d(C,{W:()=>ce});var e=r(94650),T=r(90065),E=r.n(T),d=r(36057),u=r(71997),h=r(83092),c=r(36895),_=r(24006),x=r(59166),I=r(43013),O=r(66616),N=r(47044),L=r(21811),A=r(2577),S=r(73679),M=r(36704),v=r(47423),f=r(35635),D=r(6497),m=r(38231),F=r(37570),z=r(83481),R=r(53891),w=r(94452),y=r(6350),b=r(12732),P=r(20246),Z=r(32925),V=r(79991),G=r(7463); 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 B=function(l){return{disabled:l}},U=function(l,a,t,i){return{alignToSuffix:l,removeInnerBorderAndShadow:a,removeActiveBorder:t,"cursor-wait":i}};function J(l,a){if(1&l){const t=e.EpF();e.TgZ(0,"input",14),e.NdJ("focus",function(){e.CHM(t);const n=e.oxw(3);return e.KtG(n.focusChange(!0))})("blur",function(){e.CHM(t);const n=e.oxw(3);return e.KtG(n.focusChange(!1))}),e.ALo(1,"translate"),e.qZA()}if(2&l){const t=e.oxw(3);e.ekj("ant-zorro-input-error",t.parentForm.controls[t.fieldName].touched&&(t.parentForm.controls[t.fieldName].hasError("required")||t.parentForm.controls[t.fieldName].hasError("error")))("ant-zorro-input-warning",t.parentForm.controls[t.fieldName].touched&&t.parentForm.controls[t.fieldName].hasError("warning")),e.Q6J("input-bank-account",e.VKq(13,B,!t.allowBankNumberFormatting))("ngClass",e.l5B(15,U,t.field.specification.field.suffix,t.field.specification.field.prefix||t.field.specification.field.suffix,!t.isLawyer&&t.expertSegment,t.filledDataType===t.fieldGeocodeDataType&&t.geocodeStatus===t.GeocodeState.SEARCHING&&t.filledDataID===t.fieldName))("disableControl",t.filledDataType===t.fieldGeocodeDataType&&t.geocodeStatus===t.GeocodeState.SEARCHING&&t.filledDataID===t.fieldName)("id",t.fieldName)("placeholder",t.field.specification.field.placeholder?e.lcZ(1,11,"CLIENT.CONTRACTS.FIELD.PLACEHOLDER_PREFIX")+t.field.specification.field.placeholder:"")("formControlName",t.fieldName)("readonly",!(t.isContractEditable&&t.isCustomClauseConfirmed)||!t.isLawyer&&t.expertSegment)}}function W(l,a){if(1&l&&e._UZ(0,"nz-option",17),2&l){const t=a.$implicit;e.Q6J("nzLabel",t)("nzValue",t)}}const g=function(l,a,t,i){return{alignToSuffix:l,removeInnerBorderAndShadow:a,readOnlyInput:t,"cursor-wait":i}};function K(l,a){if(1&l){const t=e.EpF();e.TgZ(0,"nz-select",15),e.NdJ("nzOpenChange",function(n){e.CHM(t);const o=e.oxw(3);return e.KtG(o.dropdownOpen=n)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.YNc(7,W,1,2,"nz-option",16),e.qZA()}if(2&l){e.oxw();const t=e.MAs(10),i=e.oxw(2);e.ekj("ant-zorro-input-error",i.parentForm.controls[i.fieldName].touched&&(i.parentForm.controls[i.fieldName].hasError("required")||i.parentForm.controls[i.fieldName].hasError("error")))("ant-zorro-input-warning",i.parentForm.controls[i.fieldName].touched&&i.parentForm.controls[i.fieldName].hasError("warning")),e.Q6J("ngClass",e.l5B(27,g,i.field.specification.field.suffix,i.field.specification.field.prefix||i.field.specification.field.suffix,!(i.isContractEditable&&i.isCustomClauseConfirmed)||!i.isLawyer&&i.expertSegment,i.filledDataType===i.fieldGeocodeDataType&&i.geocodeStatus===i.GeocodeState.SEARCHING&&i.filledDataID===i.fieldName))("id",i.fieldName)("nzShowSearch",i.listOfItem.length>5)("formControlName",i.fieldName)("nzOpen",i.dropdownOpen)("nzDisabled",!(i.isContractEditable&&i.isCustomClauseConfirmed)||!i.isLawyer&&i.expertSegment||i.filledDataType===i.fieldGeocodeDataType&&i.geocodeStatus===i.GeocodeState.SEARCHING&&i.filledDataID===i.fieldName)("nzTooltipTitle",!i.isLawyer&&i.expertSegment?e.lcZ(1,15,"CLIENT.CONTRACTS.SEGMENT.EXPERT.WARNING"):i.isCu
27stomClauseConfirmed?i.isContractEditable?null:i.isEditedByOther?e.lcZ(3,19,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER")+(i.isOwned?" "+e.lcZ(4,21,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER_HINT"):""):e.lcZ(5,23,"CLIENT.CONTRACTS.FIELD.PERMISSION.WARNING"):e.lcZ(2,17,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.CONFIRM_NEEDED"))("nzDropdownRender",t)("nzPlaceHolder",i.field.specification.field.placeholder?e.lcZ(6,25,"CLIENT.CONTRACTS.FIELD.PLACEHOLDER_PREFIX")+i.field.specification.field.placeholder:""),e.xp6(7),e.Q6J("ngForOf",i.listOfItem)("ngForTrackBy",i.trackBySuggestion)}}function H(l,a){if(1&l){const t=e.EpF();e._UZ(0,"nz-divider"),e.TgZ(1,"div",18)(2,"input",19,20),e.NdJ("keydown.enter",function(){e.CHM(t);const n=e.MAs(3),o=e.oxw(3);return e.KtG(o.addItem(n))})("blur",function(){e.CHM(t);const n=e.MAs(3),o=e.oxw(3);return e.KtG(o.addItem(n))}),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"button",21),e.NdJ("click",function(){e.CHM(t);const n=e.MAs(3),o=e.oxw(3);return e.KtG(o.addItem(n))}),e._UZ(6,"i",22),e._uU(7),e.ALo(8,"translate"),e.qZA()()}if(2&l){const t=e.oxw(3);e.xp6(2),e.Q6J("placeholder",e.lcZ(4,5,"CLIENT.CONTRACTS.FIELD.TEXT.OTHER"))("readonly",!(t.isContractEditable&&t.isCustomClauseConfirmed)||!t.isLawyer&&t.expertSegment)("value",t.listOfItem&&t.field&&t.field.specification.field.suggestions&&t.listOfItem.length>t.field.specification.field.suggestions.length?t.listOfItem[t.listOfItem.length-1]:""),e.xp6(3),e.Q6J("nzSize","small"),e.xp6(2),e.hij("",e.lcZ(8,7,"CLIENT.CONTRACTS.FIELD.TEXT.I_PROVIDE_MY_OWN")," ")}}const p=function(l){return{value:l}};function k(l,a){if(1&l){const t=e.EpF();e.TgZ(0,"div")(1,"span",23),e._uU(2),e.ALo(3,"hyphen"),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"div",24)(6,"button",25),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(3);return e.KtG(n.isContractEditable&&n.isCustomClauseConfirmed&&(n.isLawyer||!n.expertSegment)?n.acceptSuggestion():null)}),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",24)(10,"button",25),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(3);return e.KtG(n.isContractEditable&&n.isCustomClauseConfirmed&&(n.isLawyer||!n.expertSegment)?n.declineSuggestion():null)}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()}if(2&l){const t=e.oxw(3);e.xp6(2),e.hij(" ",e.xi3(3,3,e.xi3(4,6,"CLIENT.CONTRACTS.FIELD.TEXT.SUGGESTION_AVAILABLE.WARNING",e.VKq(14,p,t.suggestion)),t.progressLanguage)," "),e.xp6(5),e.hij(" ",e.xi3(8,9,"CLIENT.CONTRACTS.FIELD.TEXT.SUGGESTION_AVAILABLE.ACCEPT",e.VKq(16,p,t.suggestion))," "),e.xp6(4),e.hij(" ",e.lcZ(12,12,"CLIENT.CONTRACTS.FIELD.TEXT.SUGGESTION_AVAILABLE.DECLINE")," ")}}function Q(l,a){if(1&l){const t=e.EpF();e.TgZ(0,"button",26),e.NdJ("nzOnConfirm",function(){e.CHM(t);const n=e.oxw(3);return e.KtG(n.isContractEditable&&n.isCustomClauseConfirmed&&(n.isLawyer||!n.expertSegment)?n.contractFormService.deleteFieldValue(n.parentForm,n.fieldName):null)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e._uU(5),e.ALo(6,"translate"),e.qZA()}if(2&l){const t=e.oxw(3);e.s9C("nzPopconfirmTitle",t.isCustomClause?e.lcZ(1,5,"CLIENT.CONTRACTS.FIELD.CLEAR_VALUE_POPCONFIRM.CUSTOM_CLAUSE_TITLE"):e.lcZ(2,7,"CLIENT.CONTRACTS.FIELD.CLEAR_VALUE_POPCONFIRM.TITLE")),e.s9C("nzCancelText",e.lcZ(3,9,"CLIENT.CONTRACTS.FIELD.CLEAR_VALUE_POPCONFIRM.CANCEL")),e.s9C("nzOkText",e.lcZ(4,11,"CLIENT.CONTRACTS.FIELD.CLEAR_VALUE_POPCONFIRM.OK")),e.Q6J("nzCondition",!(t.isContractEditable&&t.isCustomClauseConfirmed)||!t.isLawyer&&t.expertSegment),e.xp6(5),e.hij(" ",e.lcZ(6,13,"CLIENT.CONTRACTS.FIELD.CLEAR_VALUE")," ")}}function Y(l,a){if(1&l&&(e.TgZ(0,"nz-form-control",7)(1,"nz-input-group",8),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.YNc(7,J,2,20,"input",9),e.YNc(8,K,8,32,"nz-select",10),e.qZA(),e.YNc(9,H,9,9,"ng-template",null,11,e.W1O),e.YNc(11,k,13,18,"div",12),e.YNc(12,Q,7,15,"button",13),e.qZA()),2&l){e.oxw();const t=e.MAs(9),i=e.MAs(7),n=e.MAs(5),o=e.oxw();e.Q6J("nzValidateStatus",o.parentForm.controls[o.fieldName])("nzErrorTip",t)("nzWarningTip",t),e.xp6(1),e.Q6J("nzSuffix",o.field.specification.field.suffix?i:null)("nzPrefix",o.field.specification.field.prefix?n:null)("nzTooltipTitle",!o.isLawyer&&o.expertSegment?e.lcZ(2,10,"CLIENT.CONTRACTS.SEGMENT.EXPERT.WARNING"):o.isCustomClauseConfirmed?o.isContractEditable?null:o.isEditedByOther?e.lcZ(4,14,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER")+(o.isOwned?" "+e.lcZ(5,16,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER_HINT"):""):e.lcZ(6,18,"CLIENT.CONTRACTS.FIELD.PERMISSION.WARNING"):e.lcZ(3,12,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.CONFIRM_NEEDED")),e.xp6(6),e.Q6J("ngIf",0===o.listOfItem.length),e.xp6(1),e.Q6J("ngIf",o.listOfItem.length>0),e.xp6(3),e.Q6J("ngIf",o.suggestion&&!o.disabledSuggestion),e.xp6(1),e.Q6J("ngIf",!o.field.specification.required&&o.parentForm.controls[o.fieldName].value&&(o.isLawyer||!o.expertSegment))}}function X(l,a){if(1&l){const t=e.EpF();e.TgZ(0,"app-v1-multiple-field",30),e.NdJ("addedField",function(n){e.CHM(t);const o=e.oxw(3);return e.KtG(o.handleAddedField(n))})("removedField",function(n){e.CHM(t);const o=e.oxw(3);return e.KtG(o.handleRemovedField(n))}),e.qZA()}if(2&l){e.oxw();const t=e.MAs(3),i=e.oxw(2);e.Q6J("field",i.field)("fieldName",i.fieldName)("parentForm",i.parentForm)("isContractEditable",i.isContractEditable)("isCustomClause",i.isCustomClause)("isCustomClauseConfirmed",i.isCustomClauseConfirmed)("isLawyer",i.isLawyer)("expertSegment",i.expertSegment)("template",t)("id",i.fieldName)}}const j=function(l,a,t){return{alignToSuffix:l,removeInnerBorderAndShadow:a,removeActiveBorder:t}};function q(l,a){if(1&l){const t=e.EpF();e.TgZ(0,"input",36),e.NdJ("focus",function(){e.CHM(t);const n=e.oxw(4);return e.KtG(n.focusChange(!0))})("blur",function(){e.CHM(t);const n=e.oxw(4);return e.KtG(n.focusChange(!1))}),e.ALo(1,"translate"),e.qZA()}if(2&l){const t=e.oxw(),i=t.control,n=t.index,o=t.placeholder,s=e.oxw(3);
27e.ekj("ant-zorro-input-error",i&&i.controls&&i.controls.control&&i.controls.control.touched&&(i.controls.control.hasError("required")||i.controls.control.hasError("error")))("ant-zorro-input-warning",i&&i.controls&&i.controls.control&&i.controls.control.touched&&i.controls.control.hasError("warning")),e.Q6J("ngClass",e.kEZ(11,j,s.field.specification.field.suffix,s.field.specification.field.prefix||s.field.specification.field.suffix,!s.isLawyer&&s.expertSegment))("id",n)("formControlName","control")("placeholder",o?e.lcZ(1,9,"CLIENT.CONTRACTS.FIELD.PLACEHOLDER_PREFIX")+o:"")("readonly",!(s.isContractEditable&&s.isCustomClauseConfirmed)||!s.isLawyer&&s.expertSegment)}}function $(l,a){if(1&l&&e._UZ(0,"nz-option",17),2&l){const t=a.$implicit;e.Q6J("nzLabel",t)("nzValue",t)}}function ee(l,a){if(1&l){const t=e.EpF();e.TgZ(0,"nz-select",15),e.NdJ("nzOpenChange",function(n){e.CHM(t);const o=e.oxw().index,s=e.oxw(3);return e.KtG(s.dropdownOpenMultiple[o]=n)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.YNc(7,$,1,2,"nz-option",16),e.qZA()}if(2&l){const t=e.oxw().index,i=e.MAs(11),n=e.oxw(3);e.ekj("ant-zorro-input-error",n.parentForm.controls[n.fieldName].touched&&(n.parentForm.controls[n.fieldName].hasError("required")||n.parentForm.controls[n.fieldName].hasError("error")))("ant-zorro-input-warning",n.parentForm.controls[n.fieldName].touched&&n.parentForm.controls[n.fieldName].hasError("warning")),e.Q6J("ngClass",e.l5B(27,g,n.field.specification.field.suffix,n.field.specification.field.prefix||n.field.specification.field.suffix,!(n.isContractEditable&&n.isCustomClauseConfirmed)||!n.isLawyer&&n.expertSegment,n.filledDataType===n.fieldGeocodeDataType&&n.geocodeStatus===n.GeocodeState.SEARCHING&&n.filledDataID===n.fieldName))("id",n.fieldName)("nzShowSearch",n.listOfItemMultiple&&n.listOfItemMultiple[t]&&n.listOfItemMultiple[t].length>5)("formControlName","control")("nzOpen",n.dropdownOpenMultiple[t])("nzDisabled",!(n.isContractEditable&&n.isCustomClauseConfirmed)||!n.isLawyer&&n.expertSegment||n.filledDataType===n.fieldGeocodeDataType&&n.geocodeStatus===n.GeocodeState.SEARCHING&&n.filledDataID===n.fieldName)("nzTooltipTitle",!n.isLawyer&&n.expertSegment?e.lcZ(1,15,"CLIENT.CONTRACTS.SEGMENT.EXPERT.WARNING"):n.isCustomClauseConfirmed?n.isContractEditable?null:n.isEditedByOther?e.lcZ(3,19,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER")+(n.isOwned?" "+e.lcZ(4,21,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER_HINT"):""):e.lcZ(5,23,"CLIENT.CONTRACTS.FIELD.PERMISSION.WARNING"):e.lcZ(2,17,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.CONFIRM_NEEDED"))("nzDropdownRender",i)("nzPlaceHolder",n.field.specification.field.placeholder?e.lcZ(6,25,"CLIENT.CONTRACTS.FIELD.PLACEHOLDER_PREFIX")+n.field.specification.field.placeholder:""),e.xp6(7),e.Q6J("ngForOf",n.listOfItemMultiple[t])("ngForTrackBy",n.trackBySuggestion)}}function te(l,a){if(1&l){const t=e.EpF();e._UZ(0,"nz-divider"),e.TgZ(1,"div",18)(2,"input",19,20),e.NdJ("keydown.enter",function(){e.CHM(t);const n=e.MAs(3),o=e.oxw().index,s=e.oxw(3);return e.KtG(s.addItemMultipliable(n,o))})("blur",function(){e.CHM(t);const n=e.MAs(3),o=e.oxw().index,s=e.oxw(3);return e.KtG(s.addItemMultipliable(n,o))}),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"button",21),e.NdJ("click",function(){e.CHM(t);const n=e.MAs(3),o=e.oxw().index,s=e.oxw(3);return e.KtG(s.addItemMultipliable(n,o))}),e._UZ(6,"i",22),e._uU(7),e.ALo(8,"translate"),e.qZA()()}if(2&l){const t=e.oxw().index,i=e.oxw(3);e.xp6(2),e.Q6J("placeholder",e.lcZ(4,5,"CLIENT.CONTRACTS.FIELD.TEXT.OTHER"))("readonly",!(i.isContractEditable&&i.isCustomClauseConfirmed)||!i.isLawyer&&i.expertSegment)("value",i.listOfItemMultiple&&i.listOfItemMultiple[t]&&i.field&&i.field.specification.field.suggestions&&i.listOfItemMultiple[t].length>i.field.specification.field.suggestions.length?i.listOfItemMultiple[t][i.listOfItemMultiple[t].length-1]:""),e.xp6(3),e.Q6J("nzSize","small"),e.xp6(2),e.hij("",e.lcZ(8,7,"CLIENT.CONTRACTS.FIELD.TEXT.I_PROVIDE_MY_OWN")," ")}}function ie(l,a){if(1&l){const t=e.EpF();e.TgZ(0,"div")(1,"span",23),e._uU(2),e.ALo(3,"hyphen"),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"div",24)(6,"button",25),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().index,o=e.oxw(3);return e.KtG(o.isContractEditable&&o.isCustomClauseConfirmed&&(o.isLawyer||!o.expertSegment)?o.acceptSuggestionMultiple(n):null)}),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",24)(10,"button",25),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().index,o=e.oxw(3);return e.KtG(o.isContractEditable&&o.isCustomClauseConfirmed&&(o.isLawyer||!o.expertSegment)?o.declineSuggestionMultiple(n):null)}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()}if(2&l){const t=e.oxw().index,i=e.oxw(3);e.xp6(2),e.hij(" ",e.xi3(3,3,e.xi3(4,6,"CLIENT.CONTRACTS.FIELD.TEXT.SUGGESTION_AVAILABLE.WARNING",e.VKq(14,p,i.suggestionMultiple[t])),i.progressLanguage)," "),e.xp6(5),e.hij(" ",e.xi3(8,9,"CLIENT.CONTRACTS.FIELD.TEXT.SUGGESTION_AVAILABLE.ACCEPT",e.VKq(16,p,i.suggestionMultiple[t]))," "),e.xp6(4),e.hij(" ",e.lcZ(12,12,"CLIENT.CONTRACTS.FIELD.TEXT.SUGGESTION_AVAILABLE.DECLINE")," ")}}function ne(l,a){if(1&l&&(e.TgZ(0,"div",31)(1,"nz-form-control",32)(2,"nz-input-group",33),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.ALo(7,"translate"),e.YNc(8,q,2,15,"input",34),e.YNc(9,ee,8,32,"nz-select",10),e.qZA(),e.YNc(10,te,9,9,"ng-template",null,35,e.W1O),e.YNc(12,ie,13,18,"div",12),e.qZA()()),2&l){const t=a.index;e.oxw(2);const i=e.MAs(9),n=e.MAs(7),o=e.MAs(5),s=e.oxw();e.Q6J("formGroupName",t),e.xp6(1),e.Q6J("nzErrorTip",i)("nzWarningTip",i),e.xp6(1),e.Q6J("nzSuffix",s.field.specification.field.suffix?n:null)("nzPrefix",s.field.specification.field.prefix?o:null)("nzTooltipTitle",!s.isLawyer&&s.expertSegment?e.lcZ(3,9,"CLIENT.CONTRACTS.SEGMENT.EXPERT.WARNING"):s.isCu
27stomClauseConfirmed?s.isContractEditable?null:s.isEditedByOther?e.lcZ(5,13,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER")+(s.isOwned?" "+e.lcZ(6,15,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER_HINT"):""):e.lcZ(7,17,"CLIENT.CONTRACTS.FIELD.PERMISSION.WARNING"):e.lcZ(4,11,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.CONFIRM_NEEDED")),e.xp6(6),e.Q6J("ngIf",!s.listOfItemMultiple||!s.listOfItemMultiple[t]||0===s.listOfItemMultiple[t].length),e.xp6(1),e.Q6J("ngIf",s.listOfItemMultiple&&s.listOfItemMultiple[t]&&s.listOfItemMultiple[t].length>0),e.xp6(3),e.Q6J("ngIf",s.suggestionMultiple&&s.suggestionMultiple[t]&&s.disabledSuggestionMultiple&&!s.disabledSuggestionMultiple[t])}}function le(l,a){if(1&l&&(e.TgZ(0,"div",27),e.YNc(1,X,1,10,"app-v1-multiple-field",28),e.YNc(2,ne,13,19,"ng-template",null,29,e.W1O),e.qZA()),2&l){const t=e.oxw(2);e.Q6J("formArrayName",t.fieldName),e.xp6(1),e.Q6J("ngIf",t.field.specification.field.multipliable)}}function oe(l,a){if(1&l){const t=e.EpF();e.TgZ(0,"div",27)(1,"app-multipliable-input",37),e.NdJ("focus",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.focusChange(!0))})("blur",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.focusChange(!1))}),e.qZA()()}if(2&l){const t=e.oxw(2);e.Q6J("formArrayName",t.fieldName),e.xp6(1),e.Q6J("field",t.field)("fieldName",t.fieldName)("parentForm",t.parentForm)("isContractEditable",t.isContractEditable)("isEditedByOther",t.isEditedByOther)("isOwned",t.isOwned)("isLawyer",t.isLawyer)("expertSegment",t.expertSegment)("isCustomClauseConfirmed",t.isCustomClauseConfirmed)("progressLanguage",t.progressLanguage)("id",t.fieldName)}}function se(l,a){if(1&l&&e._UZ(0,"span",39),2&l){const t=e.oxw(3);e.Q6J("innerHTML",t.field.specification.field.prefix,e.oJD)}}function ae(l,a){if(1&l&&e.YNc(0,se,1,1,"span",38),2&l){const t=e.oxw(2);e.Q6J("ngIf",t.field.specification.field.prefix)}}function re(l,a){if(1&l&&e._UZ(0,"span",39),2&l){const t=e.oxw(3);e.Q6J("innerHTML",t.field.specification.field.suffix,e.oJD)}}function _e(l,a){if(1&l&&e.YNc(0,re,1,1,"span",38),2&l){const t=e.oxw(2);e.Q6J("ngIf",t.field.specification.field.suffix)}}function de(l,a){if(1&l&&(e._UZ(0,"app-v1-field-validation",40),e.ALo(1,"definiteArticle")),2&l){const t=a.$implicit,i=e.oxw(2);e.Q6J("control",t)("name",e.lcZ(1,4,i.fieldDisplayName))("validationText",i.field.specification.field.validation?i.field.specification.field.validation.text:null)("progressLanguage",i.progressLanguage)}}function pe(l,a){if(1&l&&(e.TgZ(0,"app-v1-field",1),e.YNc(1,Y,13,20,"nz-form-control",2),e.YNc(2,le,4,2,"div",3),e.YNc(3,oe,2,12,"div",3),e.YNc(4,ae,1,1,"ng-template",null,4,e.W1O),e.YNc(6,_e,1,1,"ng-template",null,5,e.W1O),e.YNc(8,de,2,6,"ng-template",null,6,e.W1O),e.qZA()),2&l){const t=e.oxw();e.Q6J("field",t.field)("formGroup",t.parentForm)("progressLanguage",t.progressLanguage)("progressID",t.progressID)("contractTitle",t.contractTitle)("fieldName",t.fieldName)("parentForm",t.parentForm)("isLawyer",t.isLawyer)("expertSegment",t.expertSegment)("geocodeStatus",t.geocodeStatus)("filledDataType",t.filledDataType)("fieldGeocodeDataType",t.fieldGeocodeDataType)("formWidth",t.formWidth)("matchmakingCategory",t.matchmakingCategory)("isOwned",t.isOwned),e.xp6(1),e.Q6J("ngIf",!t.field.specification.field.multipliable),e.xp6(1),e.Q6J("ngIf",t.field.specification.field.multipliable&&(!t.field.specification.field.multipliable.delimiter||!t.field.specification.field.multipliable.exactly)),e.xp6(1),e.Q6J("ngIf",t.field.specification.field.multipliable&&t.field.specification.field.multipliable.delimiter&&t.field.specification.field.multipliable.exactly)}}let ce=(()=>{class l{constructor(t){this.contractFormService=t,this.geocodeStatus=d.tm.DEFAULT,this.filledDataType=null,this.focusEmitter=new e.vpe,this.listOfItem=[],this.listOfItemMultiple=[],this.index=0,this.dropdownOpen=!1,this.dropdownOpenMultiple=[],this.suggestionMultiple=[],this.suggestionDistanceMultiple=[],this.disabledSuggestion=!1,this.disabledSuggestionMultiple=[],this.GeocodeState=d.tm,this.allowBankNumberFormatting=!0}ngOnInit(){this.allowBankNumberFormatting=this.field?.specification?.f
27ield?.features&&this.field?.specification?.field?.features?.includes("bank-account-number"),this.field&&this.field.specification.field.suggestions&&this.field.specification.field.suggestions.length>0&&(this.field.specification.field.multipliable?(this.listOfItemMultiple=this.parentForm.controls[this.fieldName].controls.map((t,i)=>this.field.variableValue&&this.field.variableValue[i]&&!this.field.specification.field.suggestions.includes(this.field.variableValue[i])?[...this.field.specification.field.suggestions,this.field.variableValue[i]]:[...this.field.specification.field.suggestions]),this.dropdownOpenMultiple=Array(this.parentForm.controls[this.fieldName].controls.length).fill(!1)):this.listOfItem=this.field.variableValue&&!this.field.specification.field.suggestions.includes(this.field.variableValue)?[...this.field.specification.field.suggestions,this.field.variableValue]:[...this.field.specification.field.suggestions]),this.field&&this.field.displayElements.name&&(this.fieldDisplayName=this.contractFormService.parseMarkdownText(this.field.displayElements.name)),this.parentForm.valueChanges.subscribe(t=>{Object.keys(t).includes(this.fieldName)&&this.field.specification.field.features.includes("lowercase")&&this.parentForm.controls[this.fieldName]&&this.parentForm.controls[this.fieldName].value&&(this.field.specification.field.multipliable&&Array.isArray(this.parentForm.controls[this.fieldName].value)&&this.parentForm.controls[this.fieldName].value.some(n=>"string"==typeof n&&n!==n.toLowerCase())?this.parentForm.patchValue(this.parentForm.controls[this.fieldName].value.map(n=>n.toLowerCase(),{emitEvent:!1})):this.parentForm.controls[this.fieldName].value!==this.parentForm.controls[this.fieldName].value.toLowerCase()&&this.parentForm.controls[this.fieldName].patchValue(this.parentForm.controls[this.fieldName].value.toLowerCase(),{emitEvent:!1}))}),this.fieldGeocodeDataType=this.field.specification.field.features.includes(d.FD.CITY.toString())?u.XE5.CITY:this.field.specification.field.features.includes(d.FD.POSTAL_CODE.toString())?u.XE5.POSTAL_CODE:null}addItem(t){const i=t.value;if(i.length>0){let n=this.listOfItem.indexOf(i);-1===n?(this.listOfItem=[...this.field.specification.field.suggestions,t.value],n=this.listOfItem.length-1):n+1<this.listOfItem.length&&(this.listOfItem=[...this.field.specification.field.suggestions]),this.parentForm.patchValue({[this.fieldName]:this.listOfItem[n]}),this.dropdownOpen=!1,this.disabledSuggestion=!1,this.resetSuggestion(),this.checkForSuggestions(i)}}addItemMultipliable(t,i){const n=t.value;if(n.length>0&&this.listOfItemMultiple&&Array.isArray(this.listOfItemMultiple[i])){let o=this.listOfItemMultiple[i].indexOf(n);-1===o?(this.listOfItemMultiple[i]=[...this.field.specification.field.suggestions,t.value],o=this.listOfItemMultiple[i].length-1):o+1<this.listOfItemMultiple[i].length&&(this.listOfItemMultiple[i]=[...this.field.specification.field.suggestions]),this.parentForm.controls[this.fieldName].controls[i].patchValue({control:this.listOfItemMultiple[i][o]}),this.dropdownOpenMultiple[i]=!1,this.disabledSuggestionMultiple[i]=!1,this.resetSuggestion(i),this.checkForSuggestionsMultipliable(n,i)}}focusChange(t){this.focusEmitter.emit(t)}checkForSuggestions(t){this.field.specification.field.suggestions.forEach(i=>{const n=this.checkDiff(t,i);(!this.suggestion&&n<=2||this.suggestion&&n<this.suggestionDistance)&&(this.suggestion=i,this.suggestionDistance=n)}),this.suggestion&&0===this.suggestionDistance&&this.resetSuggestion()}checkForSuggestionsMultipliable(t,i){this.field.specification.field.suggestions.forEach(n=>{const o=this.checkDiff(t,n);(!this.suggestionMultiple[i]&&o<=2||this.suggestionMultiple[i]&&o<this.suggestionDistanceMultiple[i])&&(this.suggestionMultiple[i]=n,this.suggestionDistanceMultiple[i]=o)}),this.suggestionMultiple[i]&&0===this.suggestionDistanceMultiple[i]&&this.resetSuggestion(i)}checkDiff(t,i){const n=E()(t,i,!0);return(t.length<i.length?i.length:t.length)-n.length}acceptSuggestion(){this.parentForm.patchValue({[this.fieldName]:this.suggestion}),this.listOfItem=[...this.field.specification.field.suggestions],this.resetSuggestion(),this.disabledSuggestion=!0}
27acceptSuggestionMultiple(t){this.parentForm.controls[this.fieldName].controls[t].patchValue({control:this.suggestionMultiple[t]}),this.listOfItemMultiple[t]=[...this.field.specification.field.suggestions],this.resetSuggestion(t),this.disabledSuggestionMultiple[t]=!0}declineSuggestion(){this.resetSuggestion(),this.disabledSuggestion=!0}declineSuggestionMultiple(t){this.resetSuggestion(t),this.disabledSuggestionMultiple[t]=!0}resetSuggestion(t){this.field.specification.field.multipliable?(this.suggestionMultiple[t]=void 0,this.suggestionDistanceMultiple[t]=void 0):(this.suggestion=void 0,this.suggestionDistance=void 0)}trackBySuggestion(t,i){return i}handleAddedField(t){this.listOfItemMultiple.splice(t,0,[...this.field.specification.field.suggestions]),this.dropdownOpenMultiple.splice(t,0,!1)}handleRemovedField(t){this.listOfItemMultiple.splice(t,1),this.dropdownOpenMultiple.splice(t,1)}}return l.\u0275fac=function(t){return new(t||l)(e.Y36(h.R))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-v1-field-text"]],inputs:{field:"field",fieldName:"fieldName",parentForm:"parentForm",isContractEditable:"isContractEditable",isEditedByOther:"isEditedByOther",isOwned:"isOwned",isLawyer:"isLawyer",expertSegment:"expertSegment",isCustomClause:"isCustomClause",isCustomClauseConfirmed:"isCustomClauseConfirmed",progressLanguage:"progressLanguage",progressID:"progressID",contractTitle:"contractTitle",geocodeStatus:"geocodeStatus",filledDataType:"filledDataType",filledDataID:"filledDataID",formWidth:"formWidth",matchmakingCategory:"matchmakingCategory"},outputs:{focusEmitter:"focusEmitter"},decls:1,vars:1,consts:[[3,"field","formGroup","progressLanguage","progressID","contractTitle","fieldName","parentForm","isLawyer","expertSegment","geocodeStatus","filledDataType","fieldGeocodeDataType","formWidth","matchmakingCategory","isOwned",4,"ngIf"],[3,"field","formGroup","progressLanguage","progressID","contractTitle","fieldName","parentForm","isLawyer","expertSegment","geocodeStatus","filledDataType","fieldGeocodeDataType","formWidth","matchmakingCategory","isOwned"],[3,"nzValidateStatus","nzErrorTip","nzWarningTip",4,"ngIf"],[3,"formArrayName",4,"ngIf"],["prefixTemplateUser",""],["suffixTemplateInfo",""],["errorTemplate",""],[3,"nzValidateStatus","nzErrorTip","nzWarningTip"],["nz-tooltip","","nzTooltipPlacement","top",1,"p-t-0","p-b-0",3,"nzSuffix","nzPrefix","nzTooltipTitle"],["input-backslash-replace","","nz-input","","class","keepBorderRadius","trim","blur",3,"input-bank-account","ngClass","disableControl","id","placeholder","formControlName","readonly","ant-zorro-input-error","ant-zorro-input-warning","focus","blur",4,"ngIf"],["class","w-100","nz-tooltip","","nzTooltipPlacement","top",3,"ngClass","id","nzShowSearch","formControlName","nzOpen","nzDisabled","ant-zorro-input-error","ant-zorro-input-warning","nzTooltipTitle","nzDropdownRender","nzPlaceHolder","nzOpenChange",4,"ngIf"],["renderTemplate",""],[4,"ngIf"],["nz-button","","nzType","link","nz-popconfirm","","nzPopconfirmPlacement","bottom","class","change-options link-like-button","style","float: right",3,"nzPopconfirmTitle","nzCondition","nzCancelText","nzOkText","nzOnConfirm",4,"ngIf"],["input-backslash-replace","","nz-input","","trim","blur",1,"keepBorderRadius",3,"input-bank-account","ngClass","disableControl","id","placeholder","formControlName","readonly","focus","blur"],["nz-tooltip","","nzTooltipPlacement","top",1,"w-100",3,"ngClass","id","nzShowSearch","formControlName","nzOpen","nzDisabled","nzTooltipTitle","nzDropdownRender","nzPlaceHolder","nzOpenChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"container"],["type","text","nz-input","","input-backslash-replace","","trim","blur",3,"placeholder","readonly","value","keydown.enter","blur"],["inputElement",""],["nz-button","","nzType","primary",1,"add-item","m-t-10",3,"nzSize","click"],["nz-icon","","nzType","plus"],[1,"text-info"],[1,"text-right"],["nz-button","","nzType","link",1,"change-options",3,"click"],["nz-button","","nzType","link","nz-popconfirm","","nzPopconfirmPlacement","bottom",1,"change-options","link-like-button",2,"float","right",3,"nzPopconfirmTitle","nzCondition","nzCancelText","nzOkText","nzOnConfirm"],[3,"formArrayName"],[3,"field","fieldName","parentForm","isContractEditable","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","template","id","addedField","removedField",4,"ngIf"],["multipleTemplate",""],[3,"field","fieldName","parentForm","isContractEditable","isCustomClause","isCustomClauseConfirmed","isLawyer","expertSegment","template","id","addedField","removedField"],[1,"display-inline-flex","w-100",3,"formGroupName"],[3,"nzErrorTip","nzWarningTip"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzSuffix","nzPrefix","nzTooltipTitle"],["nz-input","","input-backslash-replace","","class","w-100 keepBorderRadius","trim","blur",3,"ngClass","id","formControlName","placeholder","readonly","ant-zorro-input-error","ant-zorro-input-warning","focus","blur",4,"ngIf"],["renderTemplateMultiple",""],["nz-input","","input-backslash-replace","","trim","blur",1,"w-100","keepBorderRadius",3,"ngClass","id","formControlName","placeholder","readonly","focus","blur"],[3,"field","fieldName","parentForm","isContractEditable","isEditedByOther","isOwned","isLawyer","expertSegment","isCustomClauseConfirmed","progressLanguage","id","focus","blur"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"control","name","validationText","progressLanguage"]],template:function(t,i){1&t&&e.YNc(0,pe,10,18,"app-v1-field",0),2&t&&e.Q6J("ngIf",i.field&&i.parentForm)},dependencies:[c.mk,c.sg,c.O5,_.Fj,_.JJ,_.JL,x.P,_.sg,_.u,_.x0,_.CE,I.d,O.ix,N.w,L.dQ,A.g,S.t3,M.Fd,v.Ls,f.Zp,f.gB,f.ke,D.JW,m.Ip,m.Vq,F.SY,z.v,R.$,w.f,y.a,b.w,P.q,Z.X$,V.Y,G.N],styles:['@charset "UTF-8";nz-divider[_ngcontent-%COMP%]{margin:4px 0}.container[_ngcontent-%COMP%]{padding:8px;text-align:center}.removeInnerBorderAndShadow[_ngcontent-%COMP%]{border:none!important;box-shadow:none!important}[_nghost-%COMP%] .alignToSuffix input{text-align:right}.keepBorderRadius[_ngcontent-%COMP%]{border-radius:.25rem!important}.readOnlyInput[_ngcontent-%COMP%] nz-select-top-control, .readOnlyInput[_ngcontent-%COMP%] nz-select-arrow{curs
27or:default!important}.readOnlyInput[_ngcontent-%COMP%] nz-select-top-control{background:white!important}']}),l})()}}]);
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.