1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[6366],{97457:(W,O,r)=>{r.d(O,{W:()=>l});var e=r(94650),_=r(18683),p=r(5111),m=r(37623),D=r(28397),z=r(83092),f=r(87689),c=r(36895),d=r(24006),L=r(66616),C=r(47044),u=r(834),I=r(73679),N=r(36704),v=r(6497),P=r(37570),A=r(53891),F=r(94452),M=r(20246),R=r(32925),k=r(79991); 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 S=["datePicker"];function E(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.selectToday())}),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"button",9),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.selectTomorrow())}),e._uU(4),e.ALo(5,"translate"),e.qZA()}2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"CLIENT.CONTRACTS.FIELD.DATE.TODAY")," "),e.xp6(3),e.hij(" ",e.lcZ(5,4,"CLIENT.CONTRACTS.FIELD.DATE.TOMORROW")," "))}const T=function(o){return{"cursor-default readOnlyInput background-white":o}};function g(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"nz-date-picker",10,11),e.NdJ("nzOnOpenChange",function(a){e.CHM(t);const s=e.oxw(2);return e.KtG(s.focusChange(a))})("keydown.enter",function(a){e.CHM(t);const s=e.oxw(2);return e.KtG(s.handleEnter(a))})("nzOnPanelChange",function(a){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onPanelChange(a))}),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.ALo(7,"translate"),e.ALo(8,"translate"),e.qZA()}if(2&o){e.oxw();const t=e.MAs(3),n=e.oxw();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("id",n.fieldName)("formControlName",n.fieldName)("nzFormat",n.V1Settings.dateFormat)("nzPlaceHolder",n.field.specification.field.placeholder?e.lcZ(2,15,"CLIENT.CONTRACTS.FIELD.PLACEHOLDER_PREFIX")+n.field.specification.field.placeholder:e.lcZ(3,17,"CLIENT.CONTRACTS.FIELD.DATE.PLACEHOLDER"))("nzDisabled",!(n.isContractEditable&&n.isCustomClauseConfirmed)||!n.isLawyer&&n.expertSegment)("nzTooltipTitle",!n.isLawyer&&n.expertSegment?e.lcZ(4,19,"CLIENT.CONTRACTS.SEGMENT.EXPERT.WARNING"):n.isCustomClauseConfirmed?n.isContractEditable?null:n.isEditedByOther?e.lcZ(6,23,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER")+(n.isOwned?" "+e.lcZ(7,25,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER_HINT"):""):e.lcZ(8,27,"CLIENT.CONTRACTS.FIELD.PERMISSION.WARNING"):e.lcZ(5,21,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.CONFIRM_NEEDED"))("nzDisabledDate",n.disabledDate)("nzDefaultPickerValue",n.defaultValue)("nzRenderExtraFooter",t)("nzShowToday",!1)("ngClass",e.VKq(29,T,!(n.isContractEditable&&n.isCustomClauseConfirmed)||!n.isLawyer&&n.expertSegment))}}const h=function(o,i){return[o,i]};function x(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"nz-range-picker",12,11),e.NdJ("nzOnOpenChange",function(a){e.CHM(t);const s=e.oxw(2);return e.KtG(s.focusChangeRange(a))})("ngModelChange",function(a){e.CHM(t);const s=e.oxw(2);return e.KtG(s.handleDateRangePanelChange(a))})("keydown.enter",function(a){e.CHM(t);const s=e.oxw(2);return e.KtG(s.handleEnter(a))}),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.ALo(7,"translate"),e.ALo(8,"translate"),e.qZA()}if(2&o){e.oxw();const t=e.MAs(3),n=e.oxw();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("id",n.fieldName)("formControlName",n.fieldName)("nzFormat",n.V1Settings.dateFormat)("nzPlaceHolder",n.field.specification.field.placeholder?e.WLB(28,h,e.lcZ(2,14,"CLIENT.CONTRACTS.FIELD.PLACEHOLDER_PREFIX")+n.field.specification.field.placeholder,e.lcZ(3,16,"CLIENT.CONTRACTS.FIELD.PLACEHOLDER_PREFIX")+n.field.specification.field.placeholder):null)("nzDisabled",!(n.isContractEditable&&n.isCustomClauseConfirmed)||!n.isLawyer&&n.expertSegment)("nzTooltipTitle",!n.isLawyer&&n.expertSegment?e.lcZ(4,18,"CLIENT.CONTRACTS.SEGMENT.EXPERT.WARNING"):n.isCu
27stomClauseConfirmed?n.isContractEditable?null:n.isEditedByOther?e.lcZ(6,22,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER")+(n.isOwned?" "+e.lcZ(7,24,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER_HINT"):""):e.lcZ(8,26,"CLIENT.CONTRACTS.FIELD.PERMISSION.WARNING"):e.lcZ(5,20,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.CONFIRM_NEEDED"))("nzDisabledDate",n.disabledDate)("nzDefaultPickerValue",n.defaultValue?e.WLB(31,h,n.defaultValue,n.defaultValue):null)("nzRenderExtraFooter",t)("ngClass",e.VKq(34,T,!(n.isContractEditable&&n.isCustomClauseConfirmed)||!n.isLawyer&&n.expertSegment))}}function w(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"button",13),e.NdJ("nzOnConfirm",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.isContractEditable&&a.isCustomClauseConfirmed&&(a.isLawyer||!a.expertSegment)?a.contractFormService.deleteFieldValue(a.parentForm,a.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&o){const t=e.oxw(2);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(o,i){if(1&o&&(e._UZ(0,"app-v1-field-validation",14),e.ALo(1,"definiteArticle")),2&o){const t=i.$implicit,n=e.oxw(2);e.Q6J("control",t)("name",e.lcZ(1,4,n.fieldDisplayName))("validationText",n.field.specification.field.validation?n.field.specification.field.validation.text:null)("progressLanguage",n.progressLanguage)}}function b(o,i){if(1&o&&(e.TgZ(0,"app-v1-field",1)(1,"nz-form-control",2),e.YNc(2,E,6,6,"ng-template",null,3,e.W1O),e.YNc(4,g,9,31,"nz-date-picker",4),e.YNc(5,x,9,36,"nz-range-picker",5),e.YNc(6,w,7,15,"button",6),e.qZA(),e.YNc(7,y,2,6,"ng-template",null,7,e.W1O),e.qZA()),2&o){const t=e.MAs(8),n=e.oxw();e.Q6J("field",n.field)("formGroup",n.parentForm)("progressLanguage",n.progressLanguage)("progressID",n.progressID)("contractTitle",n.contractTitle)("fieldName",n.fieldName)("parentForm",n.parentForm)("isLawyer",n.isLawyer)("expertSegment",n.expertSegment)("formWidth",n.formWidth)("matchmakingCategory",n.matchmakingCategory)("isOwned",n.isOwned),e.xp6(1),e.Q6J("nzValidateStatus",n.parentForm.controls[n.fieldName])("nzErrorTip",t)("nzWarningTip",t),e.xp6(3),e.Q6J("ngIf",!n.field.specification.field.range),e.xp6(1),e.Q6J("ngIf",n.field.specification.field.range),e.xp6(1),e.Q6J("ngIf",!n.field.specification.required&&n.parentForm.controls[n.fieldName].value&&(n.isLawyer||!n.expertSegment))}}let l=(()=>{class o{constructor(t,n){this.contractFormService=t,this.formService=n,this.focusEmitter=new e.vpe,this.minDate=new Date(1900,0),this.maxDate=new Date(2100,11,31),this.keepOpen=!1,this.V1Settings=p.L,this.preventInputOverWriteObject={preventInputOverWrite:!1},this.preventFirstInputOverWrite=!1,this.preventLastInputOverWrite=!1,this.disabledDate=a=>(0,m.Z)(this.minDate,a)>0||(0,m.Z)(a,this.maxDate)>0}ngOnInit(){this.field.specification.field.range?this.parentForm.controls[this.fieldName].value&&(this.lastValue=[new Date(this.parentForm.controls[this.fieldName].value[0]),new Date(this.parentForm.controls[this.fieldName].value[1])]):(this.mode=this.getDefaultMode(),this.parentForm.controls[this.fieldName].value&&(this.lastValue=new Date(this.parentForm.controls[this.fieldName].value))),this.field&&this.field.displayElements.name&&(this.fieldDisplayName=this.contractFormService.parseMarkdownText(this.field.displayElements.name)),this.field&&this.field.specification.field.placeholder&&(this.defaultValue=new Date(this.field.specification.field.placeholder))}selectToday(){const t=new Date;this.field.specification.field.range?this.selectDayRange(t):this.selectDay(t)}selectTomorrow(){const t=new Date;t.setDate(t.getDate()+1),this.field.specification.field.range?this.selectDayRange(t):this.selectDay(t)}selectDay(t){t instanceof Date&&!isNaN(t.valueOf())&&!this.disabledDate(t)&&(this.keepOpen=!1,this.formService.selectDay(t,this.parentForm,this.fieldName,this.datePicker,this.preventInputOverWriteObject,this.disabledDate))}selectDayRange(t){t instanceof Date&&!isNaN(t.valueOf())&&!this.disabledDate(t)&&(this.preventInputOverWriteObject.preventInputOverWrite=!0,this.datePicker.panel.changeValueFromSelect(new D.Yp(t)))}focusChange(t){this.focusEmitter.emit(t),t?setTimeout(()=>this.datePicker.panel.onPanelModeChange(this.getDefaultMode()),0):(this.mode=this.getDefaultMode(),this.formService.tryInputOverWrite(this.parentForm,this.fieldName,this.datePicker,this.preventInputOverWriteObject,this.disabledDate))}onPanelChange(t){if("date"===t)switch(this.mode){case"year":this.mode="month",this.datePicker.panel.onPanelModeChange(this.mode);break;case"month":this.mode="date",this.datePicker.panel.onPanelModeChange(this.mode);break;default:this.mode=this.getDefaultMode(),this.preventInputOverWriteObject.preventInputOverWrite=!0}else this.mode=t}handleEnter(t){this.field.specification.field.range||(this.keepOpen=!1,this.mode=this.getDefaultMode()),this.datePicker.close()}getDefaultMode(){return!this.field.specification.field.opening||this.field.specification.field.opening!==_.dT.Year&&this.field.specification.field.opening!==_.dT.Month?this.field.specification.field.opening&&this.field.specification.field.opening===_.dT.Day?"date":"month":this.field.specification.field.opening.toString().toLowerCase()}focusChangeRange(t){if(this.focusEmitter.emit(t),t)this.preventFirstInputOverWrite=!1,this.preventLastInputOverWrite=!1;else{let n,a;if(this.preventFirstInputOverWrite)n=this.lastValue?this.lastValue[0]:null,this.preventFirstInputOverWrite=!1;
27else{const s=this.datePicker.rangePickerInputs.first.nativeElement.value;s.length>0&&(n=this.formService.convertStringToDate(s,this.disabledDate))}if(this.preventLastInputOverWrite)a=this.lastValue?this.lastValue[1]:null,this.preventLastInputOverWrite=!1;else{const s=this.datePicker.rangePickerInputs.last.nativeElement.value;s.length>0&&(a=this.formService.convertStringToDate(s,this.disabledDate))}n instanceof Date&&!isNaN(n.valueOf())&&!this.disabledDate(n)&&a instanceof Date&&!isNaN(a.valueOf())&&!this.disabledDate(a)&&n.valueOf()<a.valueOf()&&(this.parentForm.patchValue({[this.fieldName]:[n,a]}),this.parentForm.controls[this.fieldName].markAsTouched(),this.parentForm.controls[this.fieldName].updateValueAndValidity())}}handleDateRangePanelChange(t){this.lastValue&&t&&this.lastValue.length===t.length&&(this.lastValue&&t&&this.lastValue[0].valueOf()!==t[0].valueOf()&&(this.preventFirstInputOverWrite=!0),this.lastValue&&t&&this.lastValue[1].valueOf()!==t[1].valueOf()&&(this.preventLastInputOverWrite=!0)),this.lastValue=t}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(z.R),e.Y36(f.o))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-v1-field-date"]],viewQuery:function(t,n){if(1&t&&e.Gf(S,5),2&t){let a;e.iGM(a=e.CRH())&&(n.datePicker=a.first)}},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",formWidth:"formWidth",matchmakingCategory:"matchmakingCategory"},outputs:{focusEmitter:"focusEmitter"},decls:1,vars:1,consts:[[3,"field","formGroup","progressLanguage","progressID","contractTitle","fieldName","parentForm","isLawyer","expertSegment","formWidth","matchmakingCategory","isOwned",4,"ngIf"],[3,"field","formGroup","progressLanguage","progressID","contractTitle","fieldName","parentForm","isLawyer","expertSegment","formWidth","matchmakingCategory","isOwned"],[3,"nzValidateStatus","nzErrorTip","nzWarningTip"],["extraFooter",""],["input-backslash-replace","","class","w-100","nz-tooltip","","nzTooltipPlacement","top",3,"id","formControlName","nzFormat","nzPlaceHolder","nzDisabled","nzTooltipTitle","ant-zorro-input-error","ant-zorro-input-warning","nzDisabledDate","nzDefaultPickerValue","nzRenderExtraFooter","nzShowToday","ngClass","nzOnOpenChange","keydown.enter","nzOnPanelChange",4,"ngIf"],["class","w-100 hideActiveBar","nz-tooltip","","nzTooltipPlacement","top",3,"id","formControlName","nzFormat","nzPlaceHolder","nzDisabled","nzTooltipTitle","ant-zorro-input-error","ant-zorro-input-warning","nzDisabledDate","nzDefaultPickerValue","nzRenderExtraFooter","ngClass","nzOnOpenChange","ngModelChange","keydown.enter",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"],["errorTemplate",""],["nz-button","","nzType","link",1,"ant-picker-today-button","link-like-button","m-r-10",3,"click"],["nz-button","","nzType","link",1,"ant-picker-today-button","link-like-button",3,"click"],["input-backslash-replace","","nz-tooltip","","nzTooltipPlacement","top",1,"w-100",3,"id","formControlName","nzFormat","nzPlaceHolder","nzDisabled","nzTooltipTitle","nzDisabledDate","nzDefaultPickerValue","nzRenderExtraFooter","nzShowToday","ngClass","nzOnOpenChange","keydown.enter","nzOnPanelChange"],["datePicker",""],["nz-tooltip","","nzTooltipPlacement","top",1,"w-100","hideActiveBar",3,"id","formControlName","nzFormat","nzPlaceHolder","nzDisabled","nzTooltipTitle","nzDisabledDate","nzDefaultPickerValue","nzRenderExtraFooter","ngClass","nzOnOpenChange","ngModelChange","keydown.enter"],["nz-button","","nzType","link","nz-popconfirm","","nzPopconfirmPlacement","bottom",1,"change-options","link-like-button",2,"float","right",3,"nzPopconfirmTitle","nzCondition","nzCancelText","nzOkText","nzOnConfirm"],[3,"control","name","validationText","progressLanguage"]],template:function(t,n){1&t&&e.YNc(0,b,9,18,"app-v1-field",0),2&t&&e.Q6J("ngIf",n.field)},dependencies:[c.mk,c.O5,d.JJ,d.JL,d.sg,d.u,L.ix,C.w,u.uw,u.wS,I.t3,N.Fd,v.JW,P.SY,A.$,F.f,M.q,R.X$,k.Y],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%] .ant-picker-input{min-width:-moz-fit-content;min-width:fit-content;width:auto;flex-grow:1}[_nghost-%COMP%] .ant-picker-input>input{width:10ch}[_nghost-%COMP%] nz-range-picker>div{flex-wrap:wrap}[_nghost-%COMP%] nz-range-picker{min-height:2.5375rem;height:auto;min-width:-moz-fit-content!important;min-width:fit-content!important}[_nghost-%COMP%] nz-date-picker{min-width:-moz-fit-content!important;min-width:fit-content!important}.hideActiveBar[_ngcontent-%COMP%] .ant-picker-active-bar{display:none}.readOnlyInput[_ngcontent-%COMP%] .ant-picker.ant-picker-disabled{background:white!important}.readOnlyInput[_ngcontent-%COMP%] .ant-picker-separator{cursor:default}']}),o})()},10407:(W,O,r)=>{r.d(O,{g:()=>b});var e=r(94650),_=r(5111),p=r(37623),m=r(28397),D=r(83092),z=r(87689),f=r(36895),c=r(24006),d=r(66616),L=r(47044),C=r(834),u=r(73679),I=r(36704),N=r(6497),v=r(37570),P=r(53891),A=r(94452),F=r(20246),M=r(32925),R=r(79991); 28/* 29 * @license 30 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 31 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 32 *
33 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 34 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 35 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 36 * trade secret or copyright law. 37 * 38 * Dissemination of this information or reproduction of this material is strictly forbidden 39 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 40 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 41 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 42 * explicitly covering such access. 43 * 44 * The copyright notice above does not evidence any actual or intended publication or disclosure 45 * of this source code, which includes information that is confidential and/or proprietary, 46 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 47 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 48 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 49 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 50 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 51 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 52 * IN WHOLE OR IN PART. 53 */const k=["datePicker"];function S(l,o){if(1&l){const i=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(i);const n=e.oxw(2);return e.KtG(n.selectToday())}),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"button",9),e.NdJ("click",function(){e.CHM(i);const n=e.oxw(2);return e.KtG(n.selectTomorrow())}),e._uU(4),e.ALo(5,"translate"),e.qZA()}2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"CLIENT.CONTRACTS.FIELD.DATE.TODAY")," "),e.xp6(3),e.hij(" ",e.lcZ(5,4,"CLIENT.CONTRACTS.FIELD.DATE.TOMORROW")," "))}const E=function(l){return{"cursor-default readOnlyInput background-white":l}};function T(l,o){if(1&l){const i=e.EpF();e.TgZ(0,"nz-date-picker",10,11),e.NdJ("nzOnOpenChange",function(n){e.CHM(i);const a=e.oxw(2);return e.KtG(a.focusChange(n))})("keydown.enter",function(n){e.CHM(i);const a=e.oxw(2);return e.KtG(a.handleEnter(n))}),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.ALo(7,"translate"),e.qZA()}if(2&l){e.oxw();const i=e.MAs(3),t=e.oxw();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("id",t.fieldName)("formControlName",t.fieldName)("nzFormat",t.V1Settings.dateTimeFormat)("nzPlaceHolder",t.field.specification.field.placeholder?e.lcZ(2,15,"CLIENT.CONTRACTS.FIELD.PLACEHOLDER_PREFIX")+t.field.specification.field.placeholder:null)("nzDisabled",!(t.isContractEditable&&t.isCustomClauseConfirmed)||!t.isLawyer&&t.expertSegment)("nzTooltipTitle",!t.isLawyer&&t.expertSegment?e.lcZ(3,17,"CLIENT.CONTRACTS.SEGMENT.EXPERT.WARNING"):t.isCustomClauseConfirmed?t.isContractEditable?null:t.isEditedByOther?e.lcZ(5,21,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER")+(t.isOwned?" "+e.lcZ(6,23,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER_HINT"):""):e.lcZ(7,25,"CLIENT.CONTRACTS.FIELD.PERMISSION.WARNING"):e.lcZ(4,19,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.CONFIRM_NEEDED"))("nzDisabledDate",t.disabledDate)("nzDefaultPickerValue",t.defaultValue)("nzRenderExtraFooter",i)("nzShowToday",!1)("ngClass",e.VKq(27,E,!(t.isContractEditable&&t.isCustomClauseConfirmed)||!t.isLawyer&&t.expertSegment))}}const g=function(l,o){return[l,o]};function h(l,o){if(1&l){const i=e.EpF();e.TgZ(0,"nz-range-picker",12,11),e.NdJ("nzOnOpenChange",function(n){e.CHM(i);const a=e.oxw(2);return e.KtG(a.focusChangeRange(n))})("keydown.enter",function(n){e.CHM(i);const a=e.oxw(2);return e.KtG(a.handleEnter(n))}),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.ALo(7,"translate"),e.ALo(8,"translate"),e.qZA()}if(2&l){e.oxw();const i=e.MAs(3),t=e.oxw();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("id",t.fieldName)("formControlName",t.fieldName)("nzFormat",t.V1Settings.dateTimeFormat)("nzPlaceHolder",t.field.specification.field.placeholder?e.WLB(28,g,e.lcZ(2,14,"CLIENT.CONTRACTS.FIELD.PLACEHOLDER_PREFIX")+t.field.specification.field.placeholder,e.lcZ(3,16,"CLIENT.CONTRACTS.FIELD.PLACEHOLDER_PREFIX")+t.field.specification.field.placeholder):null)("nzDisabled",!(t.isContractEditable&&t.isCustomClauseConfirmed)||!t.isLawyer&&t.expertSegment)("nzTooltipTitle",!t.isLawyer&&t.expertSegment?e.lcZ(4,18,"CLIENT.CONTRACTS.SEGMENT.EXPERT.WARNING"):t.isCustomClauseConfirmed?t.isContractEditable?null:t.isEditedByOther?e.lcZ(6,22,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER")+(t.isOwned?" "+e.lcZ(7,24,"CLIENT.CONTRACTS.FIELD.PERMISSION.EDITED_BY_OTHER_HINT"):""):e.lcZ(8,26,"CLIENT.CONTRACTS.FIELD.PERMISSION.WARNING"):e.lcZ(5,20,"CLIENT.CONTRACTS.SEGMENT.CUSTOM_CLAUSE.CONFIRM_NEEDED"))("nzDisabledDate",t.disabledDate)("nzDefaultPickerValue",t.defaultValue?e.WLB(31,g,t.defaultValue,t.defaultValue):null)("nzRenderExtraFooter",i)("ngClass",e.VKq(34,E,!(t.isContractEditable&&t.isCustomClauseConfirmed)||!t.isLawyer&&t.expertSegment))}}function x(l,o){if(1&l){const i=e.EpF();e.TgZ(0,"button",13),e.NdJ("nzOnConfirm",function(){e.CHM(i);const n=e.oxw(2);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 i=e.oxw(2);e.s9C("nzPopconfirmTitle",i.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",!(i.isContractEditable&&i.isCustomClauseConfirmed)||!i.isLawyer&&i.expertSegment),e.xp6(5),e.hij(" ",e.lcZ(6,13,"CLIENT.CONTRACTS.FIELD.CLEAR_VALUE")," ")}}function w(l,o){if(1&l&&(e._UZ(0,"app-v1-field-validation",14),e.ALo(1,"definiteArticle")),2&l){const i=o.$implicit,t=e.oxw(2);e.Q6J("control",i)("name",e.lcZ(1,4,t.fieldDisplayName))("validationText",t.field.specification.field.validation?t.field.specification.field.validation.text:null)("progressLanguage",t.progressLanguage)}}function y(l,o){if(1&l&&(e.TgZ(0,"app-v1-field",1)(1,"nz-form-control",2),e.YNc(2,S,6,6,"ng-template",null,3,e.W1O),e.YNc(4,T,8,29,"nz-date-picker",4),e.YNc(5,h,9,36,"nz-range-picker",5),e.YNc(6,x,7,15,"button",6),e.qZA(),e.YNc(7,w,2,6,"ng-template",null,7,e.W1O),e.qZA()),2&l){const i=e.MAs(8),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)("formWidth",t.formWidth)("matchmakingCategory",t.matchmakingCategory)("isOwned",t.isOwned),e.xp6(1),e.Q6J("nzValidateStatus",t.parentForm.controls[t.fieldName])("nzErrorTip",i)("nzWarningTip",i),e.xp6(3),e.Q6J("ngIf",!t.field.specification.field.range),e.xp6(1),e.Q6J("ngIf",t.field.specification.field.range),e.xp6(1),e.Q6J("ngIf",!t.field.specification.required&&t.parentForm.controls[t.fieldName].value&&(t.isLawyer||!t.expertSegment))}}let b=(()=>{class l{constructor(i,t){this.contractFormService=i,this.formService=t,this.focusEmitter=new e.vpe,this.minDate=new Date(1900,0),this.maxDate=new Date(2100,11,31),this.V1Settings=_.L,this.preventInputOverWriteObject={preventInputOverWrite:!1},this.disabledDate=n=>(0,p.Z)(this.minDate,n)>0||(0,p.Z)(n,this.maxDate)>0}ngOnInit(){this.field&&this.field.displayElements.name&&(this.fieldDisplayName=this.contractFormService.parseMarkdownText(this.field.displayElements.name)),this.field&&this.field.specification.field.placeholder&&(this.defaultValue=new Date(this.field.specification.field.placeholder))}selectToday(){const i=new Date;this.field.specification.field.range?this.selectDayRange(i):this.formService.selectDay(i,this.parentForm,this.fieldName,this.datePicker,this.preventInputOverWriteObject,this.disabledDate)}selectTomorrow(){const i=new Date;i.setDate(i.getDate()+1),this.field.specification.field.range?this.selectDayRange(i):this.formService.selectDay(i,this.parentForm,this.fieldName,this.datePicker,this.preventInputOverWriteObject,this.disabledDate)}selectDayRange(i){i instanceof Date&&!isNaN(i.valueOf())&&!this.disabledDate(i)&&(this.preventInputOverWriteObject.preventInputOverWrite=!0,this.datePicker.panel.changeValueFromSelect(new m.Yp(i)))}focusChange(i){this.focusEmitter.emit(i),i?setTimeout(()=>{const t=document.getElementsByClassName("ant-picker-now-btn");t.length>0&&t[0].classList.add("d-none")},0):this.formService.tryInputOverWrite(this.parentForm,this.fieldName,this.datePicker,this.preventInputOverWriteObject,this.disabledDate)}focusChangeRange(i){if(this.focusEmitter.emit(i),!i)if(this.preventInputOverWriteObject.preventInputOverWrite)this.preventInputOverWriteObject.preventInputOverWrite=!1;
53else{const t=this.datePicker.rangePickerInputs.first.nativeElement.value,n=this.datePicker.rangePickerInputs.last.nativeElement.value;if(t.length>0&&n.length>0){const a=this.formService.convertStringToDate(t,this.disabledDate),s=this.formService.convertStringToDate(n,this.disabledDate);a instanceof Date&&!isNaN(a.valueOf())&&!this.disabledDate(a)&&s instanceof Date&&!isNaN(s.valueOf())&&!this.disabledDate(s)&&a.valueOf()<s.valueOf()&&(this.parentForm.patchValue({[this.fieldName]:[a,s]}),this.parentForm.controls[this.fieldName].markAsTouched(),this.parentForm.controls[this.fieldName].updateValueAndValidity())}}}handleEnter(i){this.datePicker.close()}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(D.R),e.Y36(z.o))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-v1-field-datetime"]],viewQuery:function(i,t){if(1&i&&e.Gf(k,5),2&i){let n;e.iGM(n=e.CRH())&&(t.datePicker=n.first)}},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",formWidth:"formWidth",matchmakingCategory:"matchmakingCategory"},outputs:{focusEmitter:"focusEmitter"},decls:1,vars:1,consts:[[3,"field","formGroup","progressLanguage","progressID","contractTitle","fieldName","parentForm","isLawyer","expertSegment","formWidth","matchmakingCategory","isOwned",4,"ngIf"],[3,"field","formGroup","progressLanguage","progressID","contractTitle","fieldName","parentForm","isLawyer","expertSegment","formWidth","matchmakingCategory","isOwned"],[3,"nzValidateStatus","nzErrorTip","nzWarningTip"],["extraFooter",""],["nzShowTime","","input-backslash-replace","","class","w-100","nz-tooltip","","nzTooltipPlacement","top","nzDropdownClassName","inlineDatePickerFooter",3,"id","formControlName","nzFormat","nzPlaceHolder","nzDisabled","nzTooltipTitle","ant-zorro-input-error","ant-zorro-input-warning","nzDisabledDate","nzDefaultPickerValue","nzRenderExtraFooter","nzShowToday","ngClass","nzOnOpenChange","keydown.enter",4,"ngIf"],["nzShowTime","","class","w-100 hideActiveBar","nz-tooltip","","nzTooltipPlacement","top","nzDropdownClassName","inlineDatePickerFooter",3,"id","formControlName","nzFormat","nzPlaceHolder","nzDisabled","nzTooltipTitle","ant-zorro-input-error","ant-zorro-input-warning","nzDisabledDate","nzDefaultPickerValue","nzRenderExtraFooter","ngClass","nzOnOpenChange","keydown.enter",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"],["errorTemplate",""],["nz-button","","nzType","link",1,"ant-picker-today-button","link-like-button","m-r-10",3,"click"],["nz-button","","nzType","link",1,"ant-picker-today-button","link-like-button",3,"click"],["nzShowTime","","input-backslash-replace","","nz-tooltip","","nzTooltipPlacement","top","nzDropdownClassName","inlineDatePickerFooter",1,"w-100",3,"id","formControlName","nzFormat","nzPlaceHolder","nzDisabled","nzTooltipTitle","nzDisabledDate","nzDefaultPickerValue","nzRenderExtraFooter","nzShowToday","ngClass","nzOnOpenChange","keydown.enter"],["datePicker",""],["nzShowTime","","nz-tooltip","","nzTooltipPlacement","top","nzDropdownClassName","inlineDatePickerFooter",1,"w-100","hideActiveBar",3,"id","formControlName","nzFormat","nzPlaceHolder","nzDisabled","nzTooltipTitle","nzDisabledDate","nzDefaultPickerValue","nzRenderExtraFooter","ngClass","nzOnOpenChange","keydown.enter"],["nz-button","","nzType","link","nz-popconfirm","","nzPopconfirmPlacement","bottom",1,"change-options","link-like-button",2,"float","right",3,"nzPopconfirmTitle","nzCondition","nzCancelText","nzOkText","nzOnConfirm"],[3,"control","name","validationText","progressLanguage"]],template:function(i,t){1&i&&e.YNc(0,y,9,18,"app-v1-field",0),2&i&&e.Q6J("ngIf",t.field)},dependencies:[f.mk,f.O5,c.JJ,c.JL,c.sg,c.u,d.ix,L.w,C.uw,C.wS,u.t3,I.Fd,N.JW,v.SY,P.$,A.f,F.q,M.X$,R.Y],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%] .ant-picker-input{min-width:-moz-fit-content;min-width:fit-content;width:auto;flex-grow:1}[_nghost-%COMP%] .ant-picker-input>input{width:15ch}[_nghost-%COMP%] nz-range-picker>div{flex-wrap:wrap}[_nghost-%COMP%] nz-range-picker{min-height:2.5375rem;height:auto;min-width:-moz-fit-content!important;min-width:fit-content!important}[_nghost-%COMP%] nz-date-picker{min-width:-moz-fit-content!important;min-width:fit-content!important}.hideActiveBar[_ngcontent-%COMP%] .ant-picker-active-bar{display:none}.readOnlyInput[_ngcontent-%COMP%] .ant-picker.ant-picker-disabled{background:white!important}.readOnlyInput[_ngcontent-%COMP%] .ant-picker-separator{cursor:default}']}),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.