1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[179],{60253:(Se,k,n)=>{n.d(k,{U1:()=>e,f8:()=>t,yt:()=>o});var s=n(37340); 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 e=(0,s.X$)("fade",[(0,s.eR)(":leave",[(0,s.oB)({opacity:1}),(0,s.jt)("0.2s ease-in",(0,s.oB)({opacity:0}))]),(0,s.eR)(":enter",[(0,s.oB)({opacity:0}),(0,s.jt)("0.2s ease-out",(0,s.oB)({opacity:1}))])]),o=(0,s.X$)("fadeWithDuration",[(0,s.eR)(":leave",[(0,s.oB)({opacity:1}),(0,s.jt)("{{duration}}ms ease-in",(0,s.oB)({opacity:0}))]),(0,s.eR)(":enter",[(0,s.oB)({opacity:0}),(0,s.jt)("{{duration}}ms ease-out",(0,s.oB)({opacity:1}))])]),t=(0,s.X$)("inOutAnimationSection",[(0,s.eR)(":enter",[(0,s.oB)({opacity:0,height:0,display:"block !important",overflow:"hidden"}),(0,s.jt)("0.3s ease-out",(0,s.oB)({opacity:1,height:"*",display:"block !important",overflow:"hidden"}))]),(0,s.eR)(":leave",[(0,s.oB)({opacity:1,height:"*",display:"block !important",overflow:"hidden"}),(0,s.jt)("0.4s ease-in",(0,s.oB)({opacity:0,height:0,display:"block !important",overflow:"hidden"}))])])},52835:(Se,k,n)=>{n.d(k,{Ji:()=>c,Ln:()=>o,U6:()=>C,hh:()=>t,le:()=>v,nV:()=>r,rL:()=>e});var s=n(37340); 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 e=(0,s.X$)("skeletonAnimation",[(0,s.eR)(":leave",[(0,s.oB)({opacity:1}),(0,s.jt)("0.7s ease-in",(0,s.oB)({opacity:0}))]),(0,s.eR)(":enter",[(0,s.oB)({opacity:0}),(0,s.jt)("0.7s ease-out",(0,s.oB)({opacity:1}))])]),o=(0,s.X$)("skeletonPosAbsLeave",[(0,s.eR)(":leave",[(0,s.vP)([(0,s.oB)({opacity:1,position:"absolute"}),(0,s.jt)("{{timing}}s ease-in",(0,s.oB)({opacity:0,position:"absolute"}))])],{params:{timing:.7}}),(0,s.eR)(":enter",[(0,s.vP)([(0,s.IO)(":self",[(0,s.oB)({opacity:0}),(0,s.jt)("0.7s ease-out",(0,s.oB)({opacity:1}))]),(0,s.IO)("@*",[(0,s.pV)({delay:50})],{optional:!0})])])]),t=(0,s.X$)("contentEnterAnimation",[(0,s.eR)(":enter",[(0,s.vP)([(0,s.IO)(":self",[(0,s.oB)({opacity:0}),(0,s.jt)("0.7s ease-out",(0,s.oB)({opacity:1}))]),(0,s.IO)("@*",[(0,s.pV)({delay:50})],{optional:!0})])])]),v=(0,s.X$)("pdfAnimation",[(0,s.SB)("loading",(0,s.oB)({opacity:0})),(0,s.SB)("rendered",(0,s.oB)({opacity:1})),(0,s.eR)("loading <=> rendered",(0,s.jt)(1e3))]),r=(0,s.X$)("imageLoadAnimation",[(0,s.SB)("loading",(0,s.oB)({opacity:0})),(0,s.SB)("loaded",(0,s.oB)({opacity:1})),(0,s.eR)("loading => loaded",[(0,s.jt)("0.7s ease-out")]),(0,s.eR)("loaded => loading",[(0,s.jt)("0.7s ease-in")])]),c=(0,s.X$)("fadeIn",[(0,s.SB)("1",(0,s.oB)({opacity:1})),(0,s.SB)("0",(0,s.oB)({opacity:0})),(0,s.eR)("0 <=> 1",[(0,s.jt)(300)])]),C=(0,s.X$)("fadeOut",[(0,s.SB)("1",(0,s.oB)({opacity:0})),(0,s.SB)("0",(0,s.oB)({opacity:1})),(0,s.eR)("0 <=> 1",[(0,s.jt)(300)])])},69804:(Se,k,n)=>{n.d(k,{O:()=>e});var s=n(94650); 54/* 55 * @license 56 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 57 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 58 *
59 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 60 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 61 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 62 * trade secret or copyright law. 63 * 64 * Dissemination of this information or reproduction of this material is strictly forbidden 65 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 66 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 67 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 68 * explicitly covering such access. 69 * 70 * The copyright notice above does not evidence any actual or intended publication or disclosure 71 * of this source code, which includes information that is confidential and/or proprietary, 72 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 73 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 74 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 75 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 76 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 77 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 78 * IN WHOLE OR IN PART. 79 */let e=(()=>{class o{constructor(){this.afterViewInit=new s.vpe}ngAfterViewInit(){this.afterViewInit.emit(!0)}}return o.\u0275fac=function(v){return new(v||o)},o.\u0275dir=s.lG2({type:o,selectors:[["","afterViewInit",""]],outputs:{afterViewInit:"afterViewInit"}}),o})()},43013:(Se,k,n)=>{n.d(k,{d:()=>o});var s=n(94650),e=n(24006);let o=(()=>{class t{constructor(r){this.ngControl=r}set disableControl(r){this.ngControl?.control&&this.ngControl?.control[r?"disable":"enable"]()}}return t.\u0275fac=function(r){return new(r||t)(s.Y36(e.a5))},t.\u0275dir=s.lG2({type:t,selectors:[["","disableControl",""]],inputs:{disableControl:"disableControl"}}),t})()},76118:(Se,k,n)=>{n.d(k,{v:()=>e});var s=n(94650); 80/* 81 * @license 82 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 83 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 84 *
85 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 86 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 87 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 88 * trade secret or copyright law. 89 * 90 * Dissemination of this information or reproduction of this material is strictly forbidden 91 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 92 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 93 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 94 * explicitly covering such access. 95 * 96 * The copyright notice above does not evidence any actual or intended publication or disclosure 97 * of this source code, which includes information that is confidential and/or proprietary, 98 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 99 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 100 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 101 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 102 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 103 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 104 * IN WHOLE OR IN PART. 105 */let e=(()=>{class o{constructor(v){this.template=v}}return o.\u0275fac=function(v){return new(v||o)(s.Y36(s.Rgc))},o.\u0275dir=s.lG2({type:o,selectors:[["ng-template","name",""]],inputs:{name:"name"}}),o})()},93710:(Se,k,n)=>{n.d(k,{v:()=>u});var s=n(97582),e=n(94650),o=n(44224),t=n(5963),v=n(6947),r=n(57222),c=n(37570),C=n(27830); 106/* 107 * @license 108 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 109 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 110 *
111 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 112 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 113 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 114 * trade secret or copyright law. 115 * 116 * Dissemination of this information or reproduction of this material is strictly forbidden 117 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 118 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 119 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 120 * explicitly covering such access. 121 * 122 * The copyright notice above does not evidence any actual or intended publication or disclosure 123 * of this source code, which includes information that is confidential and/or proprietary, 124 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 125 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 126 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 127 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 128 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 129 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 130 * IN WHOLE OR IN PART. 131 */let u=class{constructor(a,f,O,N){this.el=a,this.safekeepingService=f,this.nzTooltipDirective=O,this.tabSetComponent=N,this.scrollElement=window,this.tutorialEnabled=!0,this.viewInitialized=!1}ngOnInit(){if(this.tutorialStorageKey){const a=localStorage.getItem(v.B[this.tutorialStorageKey]);this.tutorialEnabled=!a||!JSON.parse(a)}if(this.safekeepingStorageKey){const a=this.safekeepingService.getter(this.safekeepingStorageKey);this.tutorialEnabled=!a,this.safekeepingService.safekeepingEmitter.pipe((0,o.t)(this)).subscribe(()=>{if(this.safekeepingService.pref){const f=this.safekeepingService.getter(this.safekeepingStorageKey)||!this.tutorialEnabled;this.tutorialEnabled=!f}})}}ngAfterViewInit(){this.viewInitialized=!0,this.tutorialEnabled&&(0,t.H)(3e3).pipe((0,o.t)(this)).subscribe(a=>{if(this.nzTooltipDirective&&this.tabSetComponent&&this.tabSetComponent.tabNavBarRef){let f=this.tabSetComponent.tabNavBarRef.navWarpRef.nativeElement;for(;"nz-tabset"!==f.tagName.toLocaleLowerCase()&&"ant-tabs-nav-operations"!==f.tagName;)f=f.parentElement;const O=f.getElementsByClassName("ant-tabs-nav-operations");O.length>0&&(this.nzTooltipDirective.component.origin=new e.SBq(O[0]),this.checkTutorialPosition(a),this.scrollElement.addEventListener("scroll",L=>this.checkTutorialPosition(L)))}})}ngOnChanges(a){if(a.scrollElement&&a.scrollElement.previousValue!==a.scrollElement.currentValue&&(a.scrollElement.previousValue&&a.scrollElement.previousValue.removeEventListener("scroll",f=>this.checkTutorialPosition(f)),a.scrollElement.currentValue&&this.tabSetComponent.tabNavBarRef)){let f=this.tabSetComponent.tabNavBarRef.navWarpRef.nativeElement;for(;"nz-tabset"!==f.tagName.toLocaleLowerCase()&&"ant-tabs-nav-operations"!==f.tagName;)f=f.parentElement;const O=f.getElementsByClassName("ant-tabs-nav-operations");O.length>0&&(this.nzTooltipDirective.component.origin=new e.SBq(O[0]),this.checkTutorialPosition(null),this.scrollElement.addEventListener("scroll",L=>this.checkTutorialPosition(L)))}}ngOnDestroy(){this.scrollElement.removeEventListener("scroll",a=>this.checkTutorialPosition(a))}checkTutorialPosition(a){if(this.nzTooltipDirective&&this.tabSetComponent&&this.tabSetComponent.tabNavBarRef){let f=this.tabSetComponent.tabNavBarRef.navWarpRef.nativeElement;for(;"nz-tabset"!==f.tagName.toLocaleLowerCase()&&"ant-tabs-nav-operations"!==f.tagName;)f=f.parentElement;const O=f.getElementsByClassName("ant-tabs-nav-operations");
131if(O.length>0){const N=O[0],L=N.getBoundingClientRect(),i=this.scrollElement instanceof Window?this.scrollElement.scrollX:this.scrollElement.scrollTop,M=this.scrollElement instanceof Window?this.scrollElement.innerHeight:this.scrollElement.clientHeight;this.tutorialEnabled&&i<L.top&&L.top<i+M&&!N.classList.contains("ant-tabs-nav-operations-hidden")?this.nzTooltipDirective.show():this.nzTooltipDirective.hide(),this.nzTooltipDirective.updatePosition()}}}};u.\u0275fac=function(a){return new(a||u)(e.Y36(e.SBq),e.Y36(r.xM),e.Y36(c.SY,1),e.Y36(C.xH,1))},u.\u0275dir=e.lG2({type:u,selectors:[["nz-tabset","nz-tooltip","","tabsetTutorial",""]],inputs:{scrollElement:"scrollElement",tutorialStorageKey:"tutorialStorageKey",safekeepingStorageKey:"safekeepingStorageKey"},features:[e.TTD]}),u=(0,s.gn)([(0,o.c)()],u)},75352:(Se,k,n)=>{n.d(k,{w:()=>t});var s=n(94650),e=n(77579),o=n(59468); 132/* 133 * @license 134 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 135 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 136 *
137 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 138 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 139 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 140 * trade secret or copyright law. 141 * 142 * Dissemination of this information or reproduction of this material is strictly forbidden 143 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 144 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 145 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 146 * explicitly covering such access. 147 * 148 * The copyright notice above does not evidence any actual or intended publication or disclosure 149 * of this source code, which includes information that is confidential and/or proprietary, 150 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 151 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 152 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 153 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 154 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 155 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 156 * IN WHOLE OR IN PART. 157 */let t=(()=>{class v{constructor(c,C){this.elementRef=c,this.renderer=C,this.eventsToThrottle=["click"],this.throttleTime=500,this.throttledHandler=new s.vpe,this.triggers=new e.x}ngOnInit(){this.eventsToThrottle.forEach(c=>{this.renderer.listen(this.elementRef.nativeElement,c,C=>{C.preventDefault(),C.stopPropagation(),this.triggers.next(C)})}),this.subscription=this.triggers.pipe((0,o.p)(this.throttleTime)).subscribe(c=>this.emitThrottledClick(c))}emitThrottledClick(c){this.throttledHandler.emit(c)}ngOnDestroy(){this.subscription.unsubscribe()}}return v.\u0275fac=function(c){return new(c||v)(s.Y36(s.SBq),s.Y36(s.Qsj))},v.\u0275dir=s.lG2({type:v,selectors:[["","appThrottleEvents",""]],inputs:{eventsToThrottle:"eventsToThrottle",throttleTime:"throttleTime"},outputs:{throttledHandler:"throttledHandler"}}),v})()},30918:(Se,k,n)=>{n.d(k,{O:()=>C});var s=n(97582),e=n(94650),o=n(44224),t=n(78321),v=n(5963),r=n(37570),c=n(61479); 158/* 159 * @license 160 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 161 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 162 *
163 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 164 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 165 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 166 * trade secret or copyright law. 167 * 168 * Dissemination of this information or reproduction of this material is strictly forbidden 169 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 170 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 171 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 172 * explicitly covering such access. 173 * 174 * The copyright notice above does not evidence any actual or intended publication or disclosure 175 * of this source code, which includes information that is confidential and/or proprietary, 176 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 177 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 178 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 179 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 180 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 181 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 182 * IN WHOLE OR IN PART. 183 */let C=class{constructor(m,a,f){this.el=m,this.tooltipDirective=a,this.resizeService=f,this.scrollElement=window,this.tutorialVisible=!1,this.duration=20,this.tutorialVisibleChange=new e.vpe}ngOnInit(){this.tooltipDirective.nzTooltipColor||(this.tooltipDirective.nzTooltipColor=t.y.Secondary),this.tooltipDirective.trigger=null}ngAfterViewInit(){this.scrollElement&&(this.checkOriginPosition(null),this.scrollElement.addEventListener("scroll",m=>this.checkOriginPosition(m))),this.resizeService.width.pipe((0,o.t)(this)).subscribe(m=>this.checkOriginPosition(m))}ngOnChanges(m){m.tutorialVisible&&(!m.tutorialVisible.previousValue&&m.tutorialVisible.currentValue?this.showTutorial():m.tutorialVisible.previousValue&&!m.tutorialVisible.currentValue&&this.hideTutorial()),m.duration&&this.tutorialVisible&&this.showTutorial(),m.scrollElement&&m.scrollElement.previousValue!==m.scrollElement.currentValue&&(m.scrollElement.previousValue&&m.scrollElement.previousValue.removeEventListener("scroll",a=>this.checkOriginPosition(a)),m.scrollElement.currentValue&&(this.checkOriginPosition(null),this.scrollElement.addEventListener("scroll",a=>this.checkOriginPosition(a))))}ngOnDestroy(){}showTutorial(){this.tooltipDirective.componentRef&&this.tooltipDirective.elementRef&&this.tooltipDirective.elementRef.nativeElement&&this.tooltipDirective.elementRef.nativeElement.offsetParent&&(this.hideTimeout&&this.hideTimeout.unsubscribe(),this.tooltipDirective.show(),this.tooltipDirective.visible=!0,this.tooltipDirective.componentRef&&(this.tooltipDirective.componentRef.instance.onClickOutside=()=>{}),0!==this.duration&&(this.hideTimeout=(0,v.H)(1e3*this.duration).pipe((0,o.t)(this)).subscribe(m=>{this.tutorialVisible=!1,this.tooltipDirective.hide()})))}hideTutorial(){this.hideTimeout&&this.hideTimeout.unsubscribe(),this.tutorialVisible=!1,this.tutorialVisibleChange.emit(this.tutorialVisible),this.tooltipDirective.hide()}checkOriginPosition(m){if(this.tooltipDirective&&this.tooltipDirective.component&&this.tooltipDirective.component.origin){const a=this.tooltipDirective.component.origin.nativeElement.getBoundingClientRect(),f=this.scrollElement instanceof Window?this.scrollElement.scrollX:this.scrollElement.scrollTop,O=this.scrollElement instanceof Window?this.scrollElement.innerHeight:this.scrollElement.clientHeight;this.tutorialVisible&&this.tooltipDirective.component.origin.nativeElement.offsetParent&&f<a.top&&a.top<f+O?this.tooltipDirective.show():this.tooltipDirective.hide(),this.tooltipDirective.updatePosition()}}};C.\u0275fac=function(m){return new(m||C)(e.Y36(e.SBq),e.Y36(r.SY,1),e.Y36(c._))},C.\u0275dir=e.lG2({type:C,selectors:[["","nz-tooltip","","appTutorial",""]],inputs:{scrollElement:"scrollElement",tutorialVisible:"tutorialVisible",duration:"duration"},outputs:{tutorialVisibleChange:"tutorialVisibleChange"},features:[e.TTD]}),C=(0,s.gn)([(0,o.c)()],C)},60630:(Se,k,n)=>{n.d(k,{g:()=>e});var s=n(94650); 184/* 185 * @license 186 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 187 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 188 *
189 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 190 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 191 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 192 * trade secret or copyright law. 193 * 194 * Dissemination of this information or reproduction of this material is strictly forbidden 195 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 196 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 197 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 198 * explicitly covering such access. 199 * 200 * The copyright notice above does not evidence any actual or intended publication or disclosure 201 * of this source code, which includes information that is confidential and/or proprietary, 202 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 203 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 204 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 205 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 206 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 207 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 208 * IN WHOLE OR IN PART. 209 */let e=(()=>{class o{constructor(v,r){this.vcRef=v,this.templateRef=r,this.context={}}set ngVar(v){this.context.$implicit=this.context.ngVar=v,this.updateView()}updateView(){this.vcRef.clear(),this.vcRef.createEmbeddedView(this.templateRef,this.context)}}return o.\u0275fac=function(v){return new(v||o)(s.Y36(s.s_b),s.Y36(s.Rgc))},o.\u0275dir=s.lG2({type:o,selectors:[["","ngVar",""]],inputs:{ngVar:"ngVar"}}),o})()},17009:(Se,k,n)=>{n.d(k,{As:()=>o,Gb:()=>v,J3:()=>c,Kf:()=>u,L:()=>e,MN:()=>C});var s=n(54668); 210/* 211 * @license 212 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 213 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 214 *
215 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 216 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 217 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 218 * trade secret or copyright law. 219 * 220 * Dissemination of this information or reproduction of this material is strictly forbidden 221 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 222 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 223 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 224 * explicitly covering such access. 225 * 226 * The copyright notice above does not evidence any actual or intended publication or disclosure 227 * of this source code, which includes information that is confidential and/or proprietary, 228 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 229 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 230 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 231 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 232 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 233 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 234 * IN WHOLE OR IN PART. 235 */class e{}class o{}class v{constructor(a,f,O,N,L,i,M){this.displayElements=a,this.fields=f,this.ordinal=(0,s.Z)(O),this.parents=N,this.expert=L,this.integrity=i,this.stash=M}}var c=(()=>{return(m=c||(c={}))[m.Blockade="Blockade"]="Blockade",m[m.Checkbox="Checkbox"]="Checkbox",m[m.Confirm="Confirm"]="Confirm",m[m.Date="Date"]="Date",m[m.Datetime="Datetime"]="Datetime",m[m.Time="Time"]="Time",m[m.Notice="Notice"]="Notice",m[m.Number="Number"]="Number",m[m.Selection="Selection"]="Selection",m[m.Text="Text"]="Text",m[m.Textarea="Textarea"]="Textarea",c;var m})();class C{constructor(a,f,O){this.kind=a,this.required=f,this.field=O}}class u{constructor(a,f,O,N=null,L=!1,i){this.stepID=a,this.displayElements=f,this.segments=O,this.addon=N,this.complete=L,this.leadingStepID=i}}},11491:(Se,k,n)=>{n.d(k,{AA:()=>f,Bi:()=>i,C:()=>t,Gr:()=>s,Qc:()=>L,Rk:()=>O,Rl:()=>v,Zm:()=>u,d2:()=>r,di:()=>m,hJ:()=>C,it:()=>o,nO:()=>N,rA:()=>c,xJ:()=>e,yZ:()=>a}); 236/* 237 * @license 238 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 239 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 240 *
241 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 242 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 243 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 244 * trade secret or copyright law. 245 * 246 * Dissemination of this information or reproduction of this material is strictly forbidden 247 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 248 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 249 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 250 * explicitly covering such access. 251 * 252 * The copyright notice above does not evidence any actual or intended publication or disclosure 253 * of this source code, which includes information that is confidential and/or proprietary, 254 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 255 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 256 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 257 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 258 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 259 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 260 * IN WHOLE OR IN PART. 261 */ 262var s=(()=>{return(M=s||(s={})).Apple="Apple",M.Facebook="Facebook",M.Google="Google",M.Mail="Mail",s;var M})();class e{constructor(R,l){this.type="Protocol$Request$Login$Standard",this.mail=R,this.password=l}}class o{constructor(R,l,h){this.type="Protocol$Request$Login$twoFactor",this.mail=R,this.verificationToken=l,this.twoFactorPass=h}}class t{constructor(R){this.type="Protocol$Request$Login$Facebook",this.accessToken=R}}class v{constructor(R){this.type="Protocol$Request$Login$Apple",this.authCode=R}}
262class r{constructor(R){this.type="Protocol$Request$Login$Google",this.idTokenString=R}}class c{constructor(R,l,h){this.type="Protocol$Request$Registration$Standard",this.mail=R,this.password=l,this.defaultLanguage=h}}class C{constructor(R,l,h){this.type="Protocol$Request$Registration$Facebook",this.accessToken=l,this.mail=R,this.defaultLanguage=h}}class u{constructor(R,l){this.password=R,this.verificationCode=l}}class m{constructor(R,l,h){this.type="Protocol$Request$Registration$Google",this.idTokenString=l,this.mail=R,this.defaultLanguage=h}}class a{constructor(R,l,h){this.type="Protocol$Request$Registration$Apple",this.authCode=R,this.name=l,this.defaultLanguage=h}}class f{constructor(R,l){this.type="Protocol$Request$Registration$Apple",this.authCode=R,this.defaultLanguage=l}}class O{constructor(R){this.mail=R}}class N{constructor(R,l){this.mail=R,this.password=l}}class L{constructor(R){this.accessToken=R}}class i{constructor(R,l){this.authCode=R,this.name=l}}},76096:(Se,k,n)=>{n.d(k,{A9:()=>Ce,Ar:()=>C,C5:()=>Ct,Cb:()=>s,Ci:()=>se,DX:()=>R,EM:()=>O,Ff:()=>le,I6:()=>j,Ir:()=>W,JD:()=>xe,LJ:()=>e,MS:()=>K,NN:()=>B,NT:()=>mt,Om:()=>Pe,T9:()=>V,Tu:()=>Fe,UY:()=>fe,Wo:()=>Ae,aI:()=>it,at:()=>G,b:()=>X,cY:()=>rt,dS:()=>ht,dx:()=>ye,hx:()=>Qe,j:()=>te,jE:()=>_e,kR:()=>q,lw:()=>f,q9:()=>h,qK:()=>u,t5:()=>l,tq:()=>de,vi:()=>Ue,w5:()=>ee,x8:()=>Z,yT:()=>w}); 263/* 264 * @license 265 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 266 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 267 *
268 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 269 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 270 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 271 * trade secret or copyright law. 272 * 273 * Dissemination of this information or reproduction of this material is strictly forbidden 274 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 275 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 276 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 277 * explicitly covering such access. 278 * 279 * The copyright notice above does not evidence any actual or intended publication or disclosure 280 * of this source code, which includes information that is confidential and/or proprietary, 281 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 282 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 283 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 284 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 285 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 286 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 287 * IN WHOLE OR IN PART. 288 */ 289var s=(()=>{return(F=s||(s={}))[F.Text="Protocol$Response$Message$Text"]="Text",F[F.Widget="Protocol$Response$Message$Widget"]="Widget",F[F.Offer="Protocol$Response$Message$Offer"]="Offer",F[F.Contact="Protocol$Response$Message$Contact"]="Contact",s;var F})(),e=(()=>{return(F=e||(e={}))[F.Created="Chat$Created"]="Created",F[F.Closed="Chat$Closed"]="Closed",e;var F})();class C{constructor(ne,U){this.chatID=ne,this.newState=U}}class u{constructor(ne,U){this.widgetType=ne,this.widgetID=U}}class m{}class a extends m{}var f=(()=>{return(F=f||(f={}))[F.Ping="WsProtocol$Ping"]="Ping",F[F.Pong="WsProtocol$Pong"]="Pong",F[F.Payload="WsProtocol$Payload"]="Payload",F[F.BatchPayload="WsProtocol$BatchPayload"]="BatchPayload",F[F.Last="WsProtocol$Last"]="Last",F[F.LastSince="WsProtocol$LastSince"]="LastSince",F[F.LastBefore="WsProtocol$LastBefore"]="LastBefore",F[F.LastSeen="WsProtocol$LastSeen"]="LastSeen",F[F.GetLastSeenStamps="WsProtocol$GetLastSeenStamps"]="GetLastSeenStamps",F[F.LastSeenStamps="WsProtocol$LastSeenStamps"]="LastSeenStamps",F[F.SendText="WsProtocol$SendText"]="SendText",F[F.CreateOffer="WsProtocol$CreateOffer"]="CreateOffer",F[F.ModifyOffer="WsProtocol$ModifyOffer"]="ModifyOffer",F[F.GetParticipants="WsProtocol$GetParticipants"]="GetParticipants",F[F.Participants="WsProtocol$Participants"]="Participants",F[F.ShareContactDetails="WsProtocol$ShareContactDetails"]="ShareContactDetails",F[F.Error="WsProtocol$Error"]="Error",F[F.Close="WsProtocol$Close"]="Close",F[F.Closed="WsProtocol$Closed"]="Closed",F[F.GetActivity="WsProtocol$GetActivity"]="GetActivity",F[F.Activity="WsProtocol$Activity"]="Activity",f;var F})(),O=(()=>{return(F=O||(O={}))[F.room_outdated="ROOM_OUTDATED"]="room_outdated",F[F.room_closed="ROOM_CLOSED"]="room_closed",F[F.not_chat_participant="NOT_CHAT_PARTICIPANT"]="not_chat_participant",F[F.operation_limited="OPERATION_LIMITED"]="operation_limited",F[F.rate_limit_reached="RATE_LIMIT_REACHED"]="rate_limit_reached",F[F.unknown="UNKNOWN"]="unknown",O;var F})();class R extends m{constructor(){super(...arguments),this.type=f.ShareContactDetails}}class l extends m{constructor(){super(...arguments),this.type=f.Last}}class h extends m{constructor(ne){super(),this.type=f.LastBefore,this.before=ne}}class B extends m{constructor(ne){super(),this.type=f.LastSeen,this.until=ne}}class K extends a{constructor(){super(...arguments),this.type=f.GetParticipants}}class w extends a{constructor(ne,U){super(),this.type=f.SendText,this.text=ne,this.publicI
289D=U}}class X extends a{constructor(){super(...arguments),this.type=f.GetActivity}}class Z extends m{constructor(){super(...arguments),this.type=f.Close}}class G extends a{constructor(ne){super(),this.type=f.Closed,this.byUserID=ne}}const V="Ft";class se extends a{constructor(ne){super(),this.type=f.CreateOffer,this.creation=ne}}class xe extends a{constructor(ne,U){super(),this.type=f.ModifyOffer,this.offerID=ne,this.mutation=U}}class re{}var le=(()=>{return(F=le||(le={}))[F.Open="Protocol$Request$Message$Offer$Creation$Open"]="Open",F[F.Accept="Protocol$Request$Message$Offer$Mutation$Accept"]="Accept",F[F.Decline="Protocol$Request$Message$Offer$Mutation$Decline"]="Decline",F[F.Revoke="Protocol$Request$Message$Offer$Mutation$Revoke"]="Revoke",F[F.Opened="Offer$State$Opened"]="Opened",F[F.Accepted="Offer$State$Accepted"]="Accepted",F[F.Declined="Offer$State$Declined"]="Declined",F[F.Revoked="Offer$State$Revoked"]="Revoked",le;var F})(),q=(()=>{return(F=q||(q={}))[F.NO_TRANSITION_ACCESS="NO_TRANSITION_ACCESS"]="NO_TRANSITION_ACCESS",F[F.INVALID_TRANSITION="INVALID_TRANSITION"]="INVALID_TRANSITION",F[F.MISSING_PROFILE="MISSING_PROFILE"]="MISSING_PROFILE",F[F.MISSING_BILLING_INFORMATION="MISSING_BILLING_INFORMATION"]="MISSING_BILLING_INFORMATION",F[F.MISSING_BILLING_ADDRESS="MISSING_BILLING_ADDRESS"]="MISSING_BILLING_ADDRESS",F[F.MISSING_DEFAULT_PAYMENT_METHOD="MISSING_DEFAULT_PAYMENT_METHOD"]="MISSING_DEFAULT_PAYMENT_METHOD",F[F.MISSING_PAYMENT_METHOD="MISSING_PAYMENT_METHOD"]="MISSING_PAYMENT_METHOD",F[F.NON_SUPPORTED_CURRENCY="NON_SUPPORTED_CURRENCY"]="NON_SUPPORTED_CURRENCY",F[F.UNKNOWN="UNKNOWN"]="UNKNOWN",q;var F})();class fe{constructor(ne,U,et,ct,ft){this.type=le.Open,this.type=le.Open,this.brief=ne,this.deadline=U,this.breakdown=et,this.currency=ct,this.clause=ft}}class de{constructor(ne){this.items=ne}}class it{constructor(ne,U,et){this.name=ne,this.minutes=U,this.price=et}}class Ve{}class W extends Ve{constructor(){super(),this.type=le.Accept}}class ee extends Ve{constructor(ne){super(),this.type=le.Decline,this.cause=ne}}class te extends Ve{constructor(ne){super(),this.type=le.Revoke,this.cause=ne}}class Pe extends re{}class Ue extends re{constructor(){super(...arguments),this.type=le.Accepted}}class Ae extends re{constructor(){super(...arguments),this.type=le.Declined}}class Fe extends re{constructor(){super(...arguments),this.type=le.Revoked}}class Qe{constructor(ne,U){this.score=ne,this.description=U}}class rt{constructor(ne,U,et,ct,ft){this.createOffer=ne,this.chatID=U,this.createOfferPromise=et,this.createOfferResolve=ct,this.createOfferReject=ft}}class Ct{constructor(ne,U,et,ct,ft){this.modifyOffer=ne,this.chatID=U,this.modifyOfferPromise=et,this.modifyOfferResolve=ct,this.modifyOfferReject=ft}}class ht{constructor(ne,U,et,ct){this.chatID=ne,this.closePromise=U,this.closeResolve=et,this.closeReject=ct}}class mt{constructor(ne,U,et,ct){this.chatID=ne,this.shareContactPromise=U,this.shareContactResolve=et,this.shareContactReject=ct}}class ye{constructor(ne,U){this.chatID=ne,this.offer=U}}class Ce{constructor(ne,U,et,ct,ft){this.brief=ne,this.deadline=U,this.payment=et,this.breakdown=ct,this.clause=ft}}class j{constructor(ne,U){this.amount=ne,this.currency=U}}var _e=(()=>{return(F=_e||(_e={}))[F.REAL="REAL"]="REAL",F[F.DEMO_LAWYER_MEDIATION="DEMO_LAWYER_MEDIATION"]="DEMO_LAWYER_MEDIATION",F[F.DEMO_FEATURES="DEMO_FEATURES"]="DEMO_FEATURES",_e;var F})()},71997:(Se,k,n)=>{n.d(k,{$60:()=>bt,$RW:()=>fe,$kq:()=>Z,$om:()=>S,ASW:()=>se,ASe:()=>Kt,AWd:()=>Yn,AbW:()=>h,AeS:()=>di,AnI:()=>Je,BAK:()=>kn,BPA:()=>Pe,Bot:()=>m,BrQ:()=>Q,CHL:()=>x,COF:()=>pt,CQT:()=>R,CSD:()=>Y,CyS:()=>Ce,CzQ:()=>Mn,D7m:()=>Bt,EnA:()=>T,F62:()=>Ye,Fa6:()=>hn,GV4:()=>te,Glb:()=>M,Hej:()=>Lt,IIR:()=>ct,Imd:()=>D,Ink:()=>Qt,JM_:()=>en,JdH:()=>cn,Ju5:()=>ne,K64:()=>H,LjH:()=>Fe,LtK:()=>rt,M$G:()=>Ee,NiE:()=>on,Nxg:()=>Qe,NzX:()=>Ue,OG2:()=>et,OH5:()=>q,OHy:()=>Gt,OfR:()=>G,Oud:()=>pe,P9u:()=>L,P_k:()=>b,Q6N:()=>E,QAM:()=>De,QI5:()=>Wt,QSe:()=>l,Qe3:()=>Fn,QgM:()=>Pn,QiL:()=>oe,R$p:()=>lt,RD6:()=>be,Rcy:()=>W,RvE:()=>Un,SfM:()=>Rn,Tk:()=>yt,Trt:()=>f,Ufe:()=>st,Uik:()=>an,Uso:()=>Jn,V5g:()=>c,VOP:()=>Ut,Vr4:()=>Tn,WDA:()=>Oe,XE5:()=>ke,XL7:()=>mt,XYB:()=>N,Xck:()=>Vn,YDG:()=>zt,YEU:()=>gn,YSE:()=>ze,YUV:()=>Me,Ygm:()=>Vt,_0Z:()=>Ot,_2C:()=>Be,_Wq:()=>t,_eX:()=>xe,_mi:()=>En,aAH:()=>C,ar7:()=>mn,axY:()=>u,b3W:()=>Wn,bF:()=>rn,b__:()=>j,bfP:()=>O,c9m:()=>v,cp9:()=>Rt,dEQ:()=>wt,dI$:()=>Dn,dOr:()=>nn,di5:()=>sn,eLm:()=>ci,emc:()=>nt,f2E:()=>tn,fUo:()=>Ae,g8T:()=>we,gUs:()=>qe,h$3:()=>_,hIQ:()=>me,hYY:()=>_n,hvj:()=>Ke,iDy:()=>Ze,iMq:()=>ft,iSU:()=>zn,ilg:()=>y,ip4:()=>Xt,jCS:()=>X,jSv:()=>Kn,kiw:()=>yn,kr6:()=>Jt,lLP:()=>tt,lrp:()=>ut,mK9:()=>ot,ojd:()=>gt,otv:()=>vt,pmz:()=>K,pxB:()=>Re,pxT:()=>Ve,r0R:()=>wn,rwb:()=>F,s9l:()=>B,sxX:()=>ae,tIW:()=>w,tPQ:()=>ln,tbW:()=>kt,tv5:()=>de,u1F:()=>Zt,uNW:()=>It,uxK:()=>ve,v5T:()=>bn,w0K:()=>Ge,w2Z:()=>A,w3H:()=>Pt,x2q:()=>Ft,xJR:()=>He,xlD:()=>V,yNp:()=>un,z4K:()=>U,z6x:()=>_e});class t extends class e{}{}class v extends t{}var c=(()=>{return(p=c||(c={}))[p.Read="Read"]="Read",p[p.Write="Write"]="Write",c;var p})(),C=(()=>{return(p=C||(C={}))[p.Share="Share"]="Share",p[p.UpdateToRead="UpdateToRead"]="UpdateToRead",p[p.UpdateToWrite="UpdateToWrite"]="UpdateToWrite",p[p.Unshare="Unshare"]="Unshare",C;var p})(),u=(()=>{return(p=u||(u={}))[p.NOT_FOUND="NOT_FOUND"]="NOT_FOUND",p[p.UNVERIFIED_LAWYER="UNVERIFIED_LAWYER"]="UNVERIFIED_LAWYER",p[p.SHARE_LIMIT_REACHED="SHARE_LIMIT_REACHED"]="SHARE_LIMIT_REACHED",p[p.HAS_WRITE_PERMISSION="HAS_WRITE_PERMISSION"]="HAS_WRITE_PERMISSION",p[p.HAS_READ_PERMISSION="HAS_READ_PERMISSION"]="HAS_READ_PERMISSION",p[p.SHARE_TO_OWNER="SHARE_TO_OWNER"]="SHARE_TO_OWNER",p[p.INACTIVE="INACTIVE"]="INACTIVE",p[p.INVITED="INVITED"]="INVITED",p[p.CAN_NOT_INVITE="CAN_NOT_INVITE"]="CAN_NOT_INVITE",p[p.NO_LAWYER_CONVERSATION="NO_LAWYER_CONVERSATION"]="NO_LAWYER_CONVERSATION",u;var p})();class m{}class f extends m{}var O=(()=>{return(p=O||(O={}))[p.NOTES="Differentiable$Change$Metadata$Notes"]="NOTES",p[p.NAME="Differentiable$Change$Metadata$Name"]="NAME",p[p.UPDATE="Differentiable$Change$Metadata$Update"]="UPDATE",p[p.PERCENTAGE="Differentiable$Change$Percentage"]="PERCENTAGE",p[p.STEP="Differentiable$Change$Steps"]="STEP",p[p.EDITOR="Differentiable$Change$Editor"]="EDITOR",p[p.ROLLBACK="Progress$Metadata$Flag$Cause$Rollback"]="ROLLBACK",p[p.COPY="Progress$Metadata$Flag$Cause$Copy"]="COPY",p[p.UNSPECIFIED="Progress$Metadata$Flag$Cause$Unspecified"]="UNSPECIFIED",p[p.FINALIZATION="Differentiable$Change$Finalization"]="FINALIZATION",p[p.CANONICAL="Differentiable$Change$Canonical"]="CANONICAL",p[p.CREATE="create"]="CREATE",O;var p})(),N=(()=>{return(p=N||(N={})).UPDATED="UPDATED",p.ROLLBACK="ROLLBACK",p.ROLLBACK_SAME_LENGTH="ROLLBACK_SAME_LENGTH",p.NONE="NONE",p.UNKNOWN="UNKNOWN",N;var p})(),L=(()=>{return(p=L||(L={})).RANK="RANK",p.NAME="NAME",L;var p})();class M{constructor(J,ge){this.name=J,this.active=ge}}class R{}class l{constructor(J,ge,We){this.userPassword=J,this.keepNotes=ge,this.keepName=We}}class h{constructor(J,ge){this.name=J,this.version=ge}}class D{constructor(J){this.variables=J}}class B{}var K=(()=>{return(p=K||(K={}))[p.Help="Help"]="Help",K;var p})();class b{constructor(J,ge,We,dt,Tt,Nt,_t=null,$t=null,dn=null,On=null,In){this.type=J,this.title=ge,this.message=We,this.timeCreated=dt,this.seen=Tt,this.ID=Nt,this.color=_t,this.link=$t,this.img=dn,this.action=On,this.relatedID=In}}class w{constructor(J,ge){this.notifs=J,this.lastLogin=ge}}class X{constructor(J,ge){this.checked=J,this.content=ge}}var Y=(()=>{return(p=Y||(Y={}))[p.Company="Recipient$Company"]="Company",p[p.Person="Recipient$Person"]="Person",Y;var p})();class Z{}class G{}class Q{constructor(J,ge){this.name=J,this.address=ge}}class V{constructor(J,ge){this.number=J,this.bank=ge}}class se{constructor(J,ge="Taxpayer$Community"){this.type=ge,J?(this.countryCode=J.substring(0,2),this.taxPayerID=J.substring(2)):(this.countryCode=null,this.taxPayerID=null)}static constructCommunityTaxNumber(J){return J.countryCode+J.taxPayerID}static isEquals(J,ge){return J.type===ge.type&&J.taxPayerID===ge.taxPayerID&&J.countryCode===ge.countryCode}}class xe{constructor(J,ge="Taxpayer$Hungarian"){this.type=ge,J?(this.taxPayerID=J.split("-")[0],this.vatCode=J.split("-")[1],this.countyCode=J.split("-")[2]):(this.taxPayerID=null,this.vatCode=null,this.countyCode=null)}static constructHungarianTaxNumber(J){return`${J.taxPayerID}-${J.vatCode}-${J.countyCode}`}static isEquals(J,ge){return J.type===ge.type&&J.taxPayerID===ge.taxPayerID&&J.vatCode===ge.vatCode&&J.countyCode===ge.countyCode}}class Ee{constructor(J=null,ge=null,We=null,dt=null,Tt=null,Nt=null,_t=null,$t=null,dn=!1){this.company=J,this.address=ge,this.taxNumber=We,this.communityTaxNumber=dt,this.registrationNumber=Tt,this.mail=Nt,this.phone=_t,this.account=$t,this.cashSettlement=dn}}class q{constructor(J,ge){this.grossPrice=J,this.currency=ge}}class fe{constructor(J,ge,We){this.year=J,this.month=ge,this.day=We}static fromDateString(J){if(!J)return null;const ge=J.split("-");return 3!==ge.length?null:new fe(+ge[0],+ge[1],+ge[2])}static fromDate(J){return new fe(J.getUTCFullYear(),J.getMonth()+1,J.getDate())}static toDate(J){return new Date(J.year,J.month-1,J.day)}static toDayDate(J){return new fe(J.getFullYear(),J.getMonth()+1,J.getDate())}}class de extends fe{constructor(J,ge,We,dt){super(J,ge,We),this.place=dt}static fromDayDate(J,ge){return new de(J.year,J.month,J.day,ge)}}class Ve{constructor(J,ge,We){this.pageFilter=J,this.limit=ge,We&&(this.dateFilter=We)}}var W=(()=>{return(p=W||(W={})).MISSING_INVOICE="MISSING_INVOICE",p.NON_RENDERED_INVOICE="NON_RENDERED_INVOICE",p.NON_APPLICATION_INVOICE="NON_APPLICATION_INVOICE",W;var p})(),te=(()=>{return(p=te||(te={})).First="First",p.Previous="Previous",p.Next="Next",p.Last="Last",te;var p})();class Pe{constructor(J,ge){this.type=J,ge&&(this.identifier=ge)}}var Ue=(()=>{return(p=Ue||(Ue={})).FIRST="Filter$Pagination$First",p.PREVIOUS="Filter$Pagination$Previous",p.NEXT="Filter$Pagination$Next",p.LAST="Filter$Pagination$Last",Ue;var p})();class Ae{constructor(J,ge,We,dt){this.type=J,this.year=ge,We&&(this.month=We,dt&&(this.day=dt))}}var Fe=(()=>{return(p=Fe||(Fe={})).YEAR="Filter$Date$Year",p.MONTH="Filter$Date$Month",p.DAY="Filter$Date$Day",Fe;var p})(),Qe=(()=>{return(p=Qe||(Qe={})).Year="year",p.Month="month",p.Day="day",Qe;var p})(),rt=(()=>{return(p=rt||(rt={}))[p.CreditCard="Method$Kind$CreditCard"]="CreditCard",p[p.ApplePay="Method$Kind$ApplePay"]="ApplePay",p[p.GooglePay="Method$Kind$GooglePay"]="GooglePay",p[p.SamsungPay="Method$Kind$SamsungPay"]="SamsungPay",p[p.PayPal="Method$Kind$PayPal"]="PayPal",rt;var p})();class mt extends class ht{constructor(J,ge,We){this.kind=J,this.token=ge,this.preferred=We}}{constructor(J){switch(super(J.kind,J.token,J.preferred),this.kind.type){case rt.Credit
289Card:const ge=this.kind;this.imageHyperlink=`/assets/images/payment/${ge.brand.toString().toLowerCase()}.svg`,this.name=ge.last4;break;case rt.ApplePay:this.imageHyperlink="/assets/images/payment/apple_pay.svg",this.name=this.kind.last4;break;case rt.GooglePay:this.imageHyperlink="/assets/images/payment/google_pay.svg",this.name=this.kind.last4;break;case rt.SamsungPay:this.imageHyperlink="/assets/images/payment/samsung_pay.svg",this.name=this.kind.last4;break;case rt.PayPal:this.imageHyperlink="/assets/images/payment/paypal.svg",this.name=this.kind.mail}}}var Ce=(()=>{return(p=Ce||(Ce={}))[p.SUBSCRIPTION_ZERO_MONTHLY_HUF_VI_v1="SUBSCRIPTION-ZERO-MONTHLY-HUF-VI_v1"]="SUBSCRIPTION_ZERO_MONTHLY_HUF_VI_v1",p[p.SUBSCRIPTION_BASIC_MONTHLY_HUF_VI_v1="SUBSCRIPTION-BASIC-MONTHLY-HUF-VI_v1"]="SUBSCRIPTION_BASIC_MONTHLY_HUF_VI_v1",p[p.SUBSCRIPTION_STANDARD_MONTHLY_HUF_VI_v1="SUBSCRIPTION-STANDARD-MONTHLY-HUF-VI_v1"]="SUBSCRIPTION_STANDARD_MONTHLY_HUF_VI_v1",p[p.SUBSCRIPTION_PREMIUM_MONTHLY_HUF_VI_v1="SUBSCRIPTION-PREMIUM-MONTHLY-HUF-VI_v1"]="SUBSCRIPTION_PREMIUM_MONTHLY_HUF_VI_v1",Ce;var p})(),j=(()=>{return(p=j||(j={}))[p.SUBSCRIPTION_ZERO_MONTHLY_HUF_VE_v1="SUBSCRIPTION-ZERO-MONTHLY-HUF-VE_v1"]="SUBSCRIPTION_ZERO_MONTHLY_HUF_VE_v1",p[p.SUBSCRIPTION_BASIC_MONTHLY_HUF_VE_v1="SUBSCRIPTION-BASIC-MONTHLY-HUF-VE_v1"]="SUBSCRIPTION_BASIC_MONTHLY_HUF_VE_v1",p[p.SUBSCRIPTION_STANDARD_MONTHLY_HUF_VE_v1="SUBSCRIPTION-STANDARD-MONTHLY-HUF-VE_v1"]="SUBSCRIPTION_STANDARD_MONTHLY_HUF_VE_v1",p[p.SUBSCRIPTION_PREMIUM_MONTHLY_HUF_VE_v1="SUBSCRIPTION-PREMIUM-MONTHLY-HUF-VE_v1"]="SUBSCRIPTION_PREMIUM_MONTHLY_HUF_VE_v1",j;var p})(),_e=(()=>{return(p=_e||(_e={}))[p.UNLIMITED_DOCUMENT_LENIENCY_REQUEST_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-LENIENCY_REQUEST-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_LENIENCY_REQUEST_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_WORKS_CONTRACT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-WORKS_CONTRACT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_WORKS_CONTRACT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_TESTAMENTARY_STATEMENT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-TESTAMENTARY_STATEMENT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_TESTAMENTARY_STATEMENT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_MOVABLE_SALE_CONTRACT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-MOVABLE_SALE_CONTRACT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_MOVABLE_SALE_CONTRACT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_GUARANTEE_CONTRACT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-GUARANTEE_CONTRACT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_GUARANTEE_CONTRACT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_VEHICLE_SALE_CONTRACT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-VEHICLE_SALE_CONTRACT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_VEHICLE_SALE_CONTRACT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_MOVABLE_LOAN_AGREEMENT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-MOVABLE_LOAN_AGREEMENT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_MOVABLE_LOAN_AGREEMENT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_AGENCY_CONTRACT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-AGENCY_CONTRACT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_AGENCY_CONTRACT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_MONEY_LOAN_AGREEMENT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-MONEY_LOAN_AGREEMENT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_MONEY_LOAN_AGREEMENT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_FLAT_LEASE_AGREEMENT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-FLAT_LEASE_AGREEMENT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_FLAT_LEASE_AGREEMENT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_FAVORED_PROPERTY_USE_AGREEMENT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-FAVORED_PROPERTY_USE_AGREEMENT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_FAVORED_PROPERTY_USE_AGREEMENT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_CONSTRUCTION_CONTRACT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-CONSTRUCTION_CONTRACT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_CONSTRUCTION_CONTRACT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_MOVABLE_GIFT_AGREEMENT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-MOVABLE_GIFT_AGREEMENT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_MOVABLE_GIFT_AGREEMENT_MONTHLY_HUF_VI_v1",p[p.UNLIMITED_DOCUMENT_ASSIGNMENT_CONTRACT_MONTHLY_HUF_VI_v1="UNLIMITED-DOCUMENT-ASSIGNMENT_CONTRACT-MONTHLY-HUF-VI_v1"]="UNLIMITED_DOCUMENT_ASSIGNMENT_CONTRACT_MONTHLY_HUF_VI_v1",_e;var p})(),F=(()=>{return(p=F||(F={}))[p.UNLIMITED_DOCUMENT_FAVORED_PROPERTY_USE_AGREEMENT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-FAVORED_PROPERTY_USE_AGREEMENT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_FAVORED_PROPERTY_USE_AGREEMENT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_VEHICLE_SALE_CONTRACT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-VEHICLE_SALE_CONTRACT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_VEHICLE_SALE_CONTRACT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_MOVABLE_LOAN_AGREEMENT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-MOVABLE_LOAN_AGREEMENT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_MOVABLE_LOAN_AGREEMENT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_GUARANTEE_CONTRACT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-GUARANTEE_CONTRACT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_GUARANTEE_CONTRACT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_MONEY_LOAN_AGREEMENT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-MONEY_LOAN_AGREEMENT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_MONEY_LOAN_AGREEMENT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_MOVABLE_SALE_CONTRACT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-MOVABLE_SALE_CONTRACT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_MOVABLE_SALE_CONTRACT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_MOVABLE_GIFT_AGREEMENT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-MOVABLE_GIFT_AGREEMENT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_MOVABLE_GIFT_AGREEMENT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_FLAT_LEASE_AGREEMENT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-FLAT_LEASE_AGREEMENT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_FLAT_LEASE_AGREEMENT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_TESTAMENTARY_STATEMENT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-TESTAMENTARY_STATEMENT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_TESTAMENTARY_STATEMENT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_LENIENCY_REQUEST_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-LENIENCY_REQUEST-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_LENIENCY_REQUEST_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_AGENCY_CONTRACT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-AGENCY_CONTRACT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_AGENCY_CONTRACT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_CONSTRUCTION_CONTRACT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-CONSTRUCTION_CONTRACT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_CONSTRUCTION_CONTRACT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_WORKS_CONTRACT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-WORKS_CONTRACT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_WORKS_CONTRACT_MONTHLY_HUF_VE_v1",p[p.UNLIMITED_DOCUMENT_ASSIGNMENT_CONTRACT_MONTHLY_HUF_VE_v1="UNLIMITED-DOCUMENT-ASSIGNMENT_CONTRACT-MONTHLY-HUF-VE_v1"]="UNLIMITED_DOCUMENT_ASSIGNMENT_CONTRACT_MONTHLY_HUF_VE_v1",F;var p})();
289class ne{constructor(J,ge){this.subscriptionKey=J,this.realPayment=ge}}class U{constructor(J,ge,We){this.subscriptionKey=J,this.subscriptionModuleKeys=ge,this.idempotencyKey=We}}class et{constructor(J,ge,We){this.subscriptionID=J,this.currentSubscriptionKey=ge,this.currentStatus=We}}class ct{constructor(J,ge,We,dt,Tt){this.subscriptionID=J,this.currentSubscriptionKey=ge,this.currentSubscriptionModuleKeys=We,this.currentStatus=dt,this.idempotencyKey=Tt}}class ft{constructor(J,ge,We,dt,Tt){this.subscriptionID=J,this.currentSubscriptionKey=ge,this.currentStatus=We,this.currentSubscriptionModuleKeys=dt,this.idempotencyKey=Tt}}class Ze{constructor(J,ge,We,dt,Tt){this.subscriptionID=J,this.currentSubscriptionKey=ge,this.currentStatus=We,this.newSubscriptionKey=dt,this.realPayment=Tt}}class Oe{constructor(J,ge,We,dt,Tt,Nt,_t){this.subscriptionID=J,this.currentSubscriptionKey=ge,this.currentSubscriptionModuleKeys=We,this.currentStatus=dt,this.newSubscriptionKey=Tt,this.newSubscriptionModuleKeys=Nt,this.idempotencyKey=_t}}class y{constructor(J,ge,We,dt,Tt,Nt,_t){this.subscriptionID=J,this.currentSubscriptionKey=ge,this.currentSubscriptionModuleKeys=We,this.currentStatus=dt,this.newSubscriptionKey=Tt,this.newSubscriptionModuleKeys=Nt,this.idempotencyKey=_t}}class x{constructor(J){this.invoiceID=J}}class E{constructor(J,ge,We,dt,Tt,Nt){this.subscriptionID=J,this.currentSubscriptionKey=ge,this.currentSubscriptionModuleKeys=We,this.currentStatus=dt,this.methodToken=Tt,this.idempotencyKey=Nt}}class T{constructor(J,ge,We,dt,Tt){this.subscriptionID=J,this.currentSubscriptionModuleKeys=We,this.currentSubscriptionKey=ge,this.currentStatus=dt,this.idempotencyKey=Tt}}var S=(()=>{return(p=S||(S={}))[p.Downgrade="Downgrade"]="Downgrade",p[p.Upgrade="Upgrade"]="Upgrade",S;var p})();class pe{constructor(J,ge,We,dt){this.status=J,this.subscriptionKeyAtNextPeriod=ge,this.subscriptionModulesAtNextPeriod=We,this.cancelAtPeriodEnd=dt}}class Re{constructor(J,ge,We,dt,Tt,Nt,_t,$t,dn,On,In,jt){this.ID=J,this.buyer=ge,this.key=We,this.methodToken=dt,this.periodStart=Tt,this.periodEnd=Nt,this.billingStart=_t,this.quota=$t,this.expiration=dn,this.providerData=On,this.realStatus=In,this.modules=jt}}var Ke=(()=>{return(p=Ke||(Ke={}))[p.SUBSCRIPTION="Protocol$Response$Order$Item$Subscription"]="SUBSCRIPTION",p[p.PACK="Protocol$Response$Order$Item$Pack"]="PACK",p[p.SERVICE="Protocol$Response$Order$Item$Service"]="SERVICE",p[p.FINALIZATION="Protocol$Response$Order$Item$Finalization"]="FINALIZATION",Ke;var p})(),nt=(()=>{return(p=nt||(nt={}))[p.CREDIT="Protocol$Response$Order$Receipt$Credit"]="CREDIT",p[p.FREE="Protocol$Response$Order$Receipt$Free"]="FREE",p[p.FREE_WITH_MODULE="Protocol$Response$Order$Receipt$FreeWithSubscriptionModule"]="FREE_WITH_MODULE",p[p.GIFT="Protocol$Response$Order$Receipt$Gift"]="GIFT",p[p.REAL="Protocol$Response$Order$Receipt$Real"]="REAL",p[p.REAL_SNAPSHOT="Receipt$Simple$snapshotOfReal"]="REAL_SNAPSHOT",nt;var p})(),lt=(()=>{return(p=lt||(lt={}))[p.ACTIVE="Protocol$Response$PackModel$Active"]="ACTIVE",p[p.INACTIVE="Protocol$Response$PackModel$Inactive"]="INACTIVE",lt;var p})();class $e{constructor(J,ge,We,dt,Tt,Nt){this.ID=J,this.clientID=ge,this.key=We,this.quota=dt,this.created=Tt,this.updated=Nt}}var qe=(()=>{return(p=qe||(qe={}))[p.BRAINTREE_ACTIVE="BRAINTREE_ACTIVE"]="BRAINTREE_ACTIVE",p[p.BRAINTREE_CANCELED="BRAINTREE_CANCELED"]="BRAINTREE_CANCELED",p[p.BRAINTREE_EXPIRED="BRAINTREE_EXPIRED"]="BRAINTREE_EXPIRED",p[p.BRAINTREE_PAST_DUE="BRAINTREE_PAST_DUE"]="BRAINTREE_PAST_DUE",p[p.BRAINTREE_PENDING="BRAINTREE_PENDING"]="BRAINTREE_PENDING",p[p.BRAINTREE_UNRECOGNIZED="BRAINTREE_UNRECOGNIZED"]="BRAINTREE_UNRECOGNIZED",qe;var p})(),ve=(()=>{return(p=ve||(ve={}))[p.STRIPE_ACTIVE="STRIPE_ACTIVE"]="STRIPE_ACTIVE",p[p.STRIPE_PAST_DUE="STRIPE_PAST_DUE"]="STRIPE_PAST_DUE",p[p.STRIPE_UNPAID="STRIPE_UNPAID"]="STRIPE_UNPAID",p[p.STRIPE_CANCELED="STRIPE_CANCELED"]="STRIPE_CANCELED",p[p.STRIPE_INCOMPLETE="STRIPE_INCOMPLETE"]="STRIPE_INCOMPLETE",p[p.STRIPE_INCOMPLETE_EXPIRED="STRIPE_INCOMPLETE_EXPIRED"]="STRIPE_INCOMPLETE_EXPIRED",p[p.STRIPE_TRIALING="STRIPE_TRIALING"]="STRIPE_TRIALING",p[p.STRIPE_PENDING="STRIPE_PENDING"]="STRIPE_PENDING",ve;var p})(),we=(()=>{return(p=we||(we={}))[p.TOKEN="token"]="TOKEN",p[p.CHANGING="changing"]="CHANGING",p[p.DEFAULT="default"]="DEFAULT",p[p.DELETE="delete"]="DELETE",we;var p})(),De=(()=>{return(p=De||(De={}))[p.LOGIN="login"]="LOGIN",p[p.SETUP="setup"]="SETUP",p[p.DELETE="delete"]="DELETE",De;var p})(),Be=(()=>{return(p=Be||(Be={}))[p.MISSING="missing"]="MISSING",p[p.INVALID="invalid"]="INVALID",p[p.ERROR="error"]="ERROR",p[p.DEREGISTERED="deregistered"]="DEREGISTERED",Be;var p})();class oe extends $e{constructor(J,ge,We,dt,Tt,Nt,_t,$t){super(J,ge,We,dt,Tt,Nt),this.transaction=_t,this.hasExpired=$t}static fromPack(J){return new oe(J.ID,J.clientID,J.key,J.quota,J.created,J.updated,J.transaction,J.hasExpired)}}class Ge extends $e{constructor(J,ge,We,dt,Tt,Nt,_t,$t,dn,On,In,jt,St,gi,pi){super(J,ge,We,dt,Tt,Nt),this.billingStart=_t,this.buyer=$t,this.consumable=dn,this.features=On,this.providerData=In,this.expiration=jt,this.methodToken=St,this.periodStart=gi,this.periodEnd=pi}static fromSubscription(J){return new Ge(J.ID,J.clientID,J.key,J.quota,J.created,J.updated,J.billingStart,J.buyer,J.consumable,J.features,J.providerData,J.expiration,J.methodToken,J.periodStart,J.periodEnd)}}class tt{constructor(J){this.mail=J}}
289class pt{constructor(J){this.code=J}}class Me{constructor(J){this.password=J}}var he=(()=>{return(p=he||(he={}))[p.methodPaymentRequest="Protocol$Request$Payment$methodPaymentRequest"]="methodPaymentRequest",p[p.creditPaymentRequest="Protocol$Request$Payment$creditPaymentRequest"]="creditPaymentRequest",p[p.threeDSecurePaymentRequest="Protocol$Request$Payment$threeDSecurePaymentRequest"]="threeDSecurePaymentRequest",p[p.noncePaymentRequest="Protocol$Request$Payment$noncePaymentRequest"]="noncePaymentRequest",he;var p})();class Ye{}class He extends Ye{}class at extends Ye{}class me extends He{constructor(J){super(),this.type=he.methodPaymentRequest,this.methodToken=J}}class _ extends at{constructor(J){super(),this.type=he.creditPaymentRequest,this.benefitIDs=J}}class ot extends He{constructor(J,ge){super(),this.type=he.threeDSecurePaymentRequest,this.enrichedNonce=J,this.deviceData=ge}}var je=(()=>{return(p=je||(je={}))[p.Generic="Protocol$Request$Service$Geocode$Generic"]="Generic",p[p.Locality="Protocol$Request$Service$Geocode$Locality"]="Locality",p[p.PostalCode="Protocol$Request$Service$Geocode$PostalCode"]="PostalCode",je;var p})();class At{}class gt extends At{constructor(J,ge,We){super(),this.type=je.Locality,this.locality=J,this.language=ge,this.country=We}}class Pt extends At{constructor(J,ge,We){super(),this.type=je.PostalCode,this.country=J,this.postalCode=ge,this.language=We}}class ze{constructor(J,ge,We,dt){this.type=J,this.formKey=ge,this.canComplete=We,this.inputElementID=dt}}var ke=(()=>{return(p=ke||(ke={}))[p.CITY="CITY"]="CITY",p[p.POSTAL_CODE="POSTAL_CODE"]="POSTAL_CODE",ke;var p})(),Je=(()=>{return(p=Je||(Je={}))[p.Frontend="frontend"]="Frontend",Je;var p})(),ut=(()=>{return(p=ut||(ut={}))[p.Lobby="lobby"]="Lobby",p[p.Settings="settings"]="Settings",p[p.Contract="contract"]="Contract",p[p.Chat="chat"]="Chat",p[p.Modal="modal"]="Modal",ut;var p})(),Ot=(()=>{return(p=Ot||(Ot={}))[p.Overview="overview"]="Overview",p[p.Contracts="contracts"]="Contracts",p[p.Conversations="conversations"]="Conversations",p[p.Profile="profile"]="Profile",p[p.Password="password"]="Password",p[p.Email="email"]="Email",p[p.Twofactor="twofactor"]="Twofactor",p[p.Language="language"]="Language",p[p.Delete="delete"]="Delete",p[p.Billing="billing"]="Billing",p[p.Payment="payment"]="Payment",p[p.LawyerLicense="lawyerlicense"]="LawyerLicense",p[p.LawyerIntroduction="lawyerintroduction"]="LawyerIntroduction",p[p.LawyerInvoicing="lawyerinvoicing"]="LawyerInvoicing",p[p.LawyerPayout="lawyerpayout"]="LawyerPayout",p[p.Subscriptions="subscriptions"]="Subscriptions",p[p.Bundles="bundles"]="Bundles",p[p.Invoices="invoices"]="Invoices",p[p.Orders="orders"]="Orders",p[p.Social="social"]="Social",p[p.Details="details"]="Details",p[p.SharedContracts="sharedwithmecontracts"]="SharedContracts",p[p.List="list"]="List",p[p.SharedWithMeList="sharedwithmelist"]="SharedWithMeList",p[p.Edit="edit"]="Edit",p[p.Create="create"]="Create",p[p.ShareContract="sharecontract"]="ShareContract",p[p.History="history"]="History",p[p.Manage="manage"]="Manage",p[p.BenefitList="benefitlist"]="BenefitList",p[p.ContractFinalization="contractfinalization"]="ContractFinalization",p[p.PurchaseModal="purchasemodal"]="PurchaseModal",p[p.ImageUpload="imageupload"]="ImageUpload",p[p.OfferCreation="offercreation"]="OfferCreation",p[p.TwoFactor="twofactor"]="TwoFactor",p[p.LawyerMatchmaker="lawyermatchmaker"]="LawyerMatchmaker",p[p.Candidate="candidate"]="Candidate",p[p.Onepage="onepage"]="Onepage",p[p.ContractsForQuota="contractsforquota"]="ContractsForQuota",p[p.VerificationState="verificationstate"]="VerificationState",p[p.AddPayment="addpayment"]="AddPayment",p[p.Folder="Folder"]="Folder",p[p.Segment="segment"]="Segment",Ot;var p})();class xt{constructor(J,ge,We,dt,Tt){this.component=J,this.feature=ge,this.unit=We,this.user=dt,this.aspect=Tt}}class Ut{constructor(J,ge,We,dt,Tt="",Nt=""){this.canonical=J,this.user=ge,this.stepTitle=We,this.segmentTitle=dt,this.fieldTitle=Tt,this.aspect=Nt}}class Lt{constructor(J,ge){this.coordinate=J,this.text=ge}}var yt=(()=>{return(p=yt||(yt={}))[p.DESKTOP="Desktop"]="DESKTOP",p[p.MOBILE="Mobile"]="MOBILE",p[p.TABLET="Tablet"]="TABLET",p[p.BOT="Bot"]="BOT",p[p.OTHER="Other"]="OTHER",p[p.UNKNOWN="Unknown"]="UNKNOWN",yt;var p})(),Bt=(()=>{return(p=Bt||(Bt={}))[p.BLUETOOTH="Bluetooth"]="BLUETOOTH",p[p.CELLULAR="Cellular"]="CELLULAR",p[p.ETHERNET="Ethernet"]="ETHERNET",p[p.NONE="None"]="NONE",p[p.WIRELESS="Wireless"]="WIRELESS",p[p.OTHER="Other"]="OTHER",p[p.UNKNOWN="Unknown"]="UNKNOWN",Bt;var p})(),Rt=(()=>{return(p=Rt||(Rt={})).BLUETOOTH="bluetooth",p.CELLULAR="cellular",p.ETHERNET="ethernet",p.MIXED="mixed",p.NONE="none",p.OTHER="other",p.UNKNOWN="unknown",p.WIFI="wifi",p.WIMAX="wimax",Rt;var p})();
289class nn{constructor(J,ge){this.name=J,this.version=ge}}class zt{constructor(J,ge,We=null,dt=null){this.height=J,this.width=ge,this.ratio=We,this.density=dt}}class Xt{constructor(J,ge=null,We=null,dt=null,Tt=null,Nt=[]){this.model=J,this.manufacturer=ge,this.memory=We,this.processor=dt,this.screen=Tt,this.capabilities=Nt}}class Zt{constructor(J,ge=null,We=null,dt=null,Tt=null,Nt=null){this.kind=J,this.variant=ge,this.download=We,this.upload=dt,this.latency=Tt,this.saving=Nt}}class Kt{constructor(J,ge=null,We=null,dt=null,Tt=null,Nt=null){this.agent=J,this.version=ge,this.kind=We,this.platform=dt,this.hardware=Tt,this.connection=Nt}}class Ft{constructor(J,ge,We,dt,Tt,Nt,_t){this.coordinate=new xt(ge,We,dt,Tt,_t),this.text=J,this.device=Nt}}class on extends class qt{constructor(J,ge){this.issuer=J,this.credentials=ge}}{constructor(J,ge,We){super(J,ge),this.aamEnabled=We}static fromInvoicingResponse(J){return new on(J.issuer,J.credentials,!(!J.seller||J.seller.vat!==sn.AAM))}}class mn{constructor(J=null,ge=null,We=null,dt=null){this.signingKey=J,this.exchangeKey=ge,this.login=We,this.password=dt}}class un{constructor(J){this.cvvOnlyNonce=J}}class Vt{constructor(J){this.idempotencyKey=J}}var hn=(()=>{return(p=hn||(hn={}))[p.USD="USD"]="USD",p[p.HUF="HUF"]="HUF",p[p.EUR="EUR"]="EUR",hn;var p})();class Mn{constructor(J=null,ge=null,We=null,dt=null,Tt=null,Nt=null){this.chamberIdentifier=J,this.chamberNumber=ge,this.phone=We,this.taxNumber=dt,this.insurance=Tt,this.identityNumber=Nt}}class zn{constructor(J=null,ge){this.provider=J,this.number=ge}}var Jt=(()=>{return(p=Jt||(Jt={}))[p.Candidate="Protocol$Response$Matchmaking$Client$Status$Candidate"]="Candidate",p[p.Locked="Protocol$Response$Matchmaking$Client$Status$Locked"]="Locked",Jt;var p})(),gn=(()=>{return(p=gn||(gn={}))[p.GTS="GTS"]="GTS",p[p.PP="PP"]="PP",gn;var p})(),an=(()=>{return(p=an||(an={}))[p.DELETE="Schedule$Batch$Operation$Delete"]="DELETE",p[p.INSERT="Schedule$Batch$Operation$Insert"]="INSERT",an;var p})();class Fn{constructor(J,ge,We){this.type=J,this.startInMillis=ge,this.endInMillis=We}}class Pn{constructor(J){this.operations=J}}var en=(()=>{return(p=en||(en={}))[p.NotParticipating="Protocol$Response$Matchmaking$Lawyer$Status$NotParticipating"]="NotParticipating",p[p.Participating="Protocol$Response$Matchmaking$Lawyer$Status$Participating"]="Participating",en;var p})();class Un{constructor(J,ge,We){this.slogan=J,this.pitch=ge,this.narrative=We}}var pn=(()=>{return(p=pn||(pn={}))[p.Client="Taxation$Buyer$Client"]="Client",pn;var p})();class bn extends class Bn{}{constructor(){super(...arguments),this.type=pn.Client}}var sn=(()=>{return(p=sn||(sn={}))[p.Standard="HU-Standard"]="Standard",p[p.ATK="HU-ATK"]="ATK",p[p.AAM="HU-AAM"]="AAM",p[p.EUFAD37="HU-EUFAD37"]="EUFAD37",p[p.HO="HU-HO"]="HO",sn;var p})();class Wn{constructor(J,ge,We,dt){this.subscriptionID=J,this.currentSubscriptionKey=ge,this.currentStatus=We,this.newSubscriptionKey=dt}}class rn{constructor(J,ge,We,dt,Tt,Nt,_t){this.subscriptionID=J,this.currentSubscriptionKey=ge,this.currentSubscriptionModuleKeys=We,this.currentStatus=dt,this.newSubscriptionKey=Tt,this.newSubscriptionModuleKeys=Nt,this.idempotencyKey=_t}}var Tn=(()=>{return(p=Tn||(Tn={}))[p.Matchmaking="SERVICE-MATCHMAKING_v1"]="Matchmaking",p[p.Mediated="SERVICE-MEDIATED_v1"]="Mediated",p[p.Finalization="SERVICE-FINALIZATION_v1"]="Finalization",Tn;var p})(),Gt=(()=>{return(p=Gt||(Gt={}))[p.Braintree="Braintree"]="Braintree",p[p.Stripe="Stripe"]="Stripe",p[p.Unicredit="Unicredit"]="Unicredit",Gt;var p})();class Kn{constructor(J,ge){this.candidateID=J,this.creditPayment=ge}}class Yn{constructor(J,ge){this.progressID=J,this.creditPayment=ge}}class Vn{constructor(J,ge){this.bundleID=J,this.realPayment=ge}}class wt{constructor(J,ge){this.candidateID=J,this.realPayment=ge}}class Jn{constructor(J,ge){this.progressID=J,this.realPayment=ge}}class wn{constructor(J,ge,We){this.chatID=J,this.offerID=ge,this.realPayment=We}}class Rn{constructor(J,ge){this.packKey=J,this.idempotencyKey=ge}}class kt{constructor(J,ge){this.candidateID=J,this.idempotencyKey=ge}}class H{constructor(J,ge){this.progressID=J,this.idempotencyKey=ge}}class ae{constructor(J,ge,We,dt,Tt){this.progressID=J,this.subscriptionID=ge,this.currentSubscriptionKey=We,this.currentSubscriptionModuleKeys=dt,this.currentStatus=Tt}}class A{constructor(J,ge,We){this.chatID=J,this.offerID=ge,this.idempotencyKey=We}}class st{constructor(J){this.invoiceID=J}}class be{constructor(J){this.paymentIntentID=J}}class It{constructor(J){this.paymentIntentID=J}}class vt{constructor(J){this.paymentIntentID=J}}class Wt{constructor(J){this.paymentIntentID=J}}class ln{constructor(J){this.packKey=J}}class bt{constructor(J){this.transactionID=J}}class tn{constructor(J){this.progressID=J}}class En{constructor(J){this.transactionID=J}}class cn{constructor(J,ge,We,dt){this.purchaseType=J,this.transactionID=ge,this.productID=We,this.expectedResult=dt}}class kn{constructor(J,ge,We){this.stripe=J,this.paymentID=ge,this.idempotencyID=We}}class Qt{constructor(J){this.checkNeeded=J}}class ci{constructor(J,ge,We){this.deletePaymentMethodPromise=J,this.deletePaymentMethodResolve=ge,this.deletePaymentMethodReject=We}}class di{constructor(J){this.category=J}}var Dn=(()=>{return(p=Dn||(Dn={}))[p.FINANCIAL_V1="financial_v1"]="FINANCIAL_V1",p[p.PROPERTY_V1="property_v1"]="PROPERTY_V1",p[p.CRIMINAL_V1="criminal_v1"]="CRIMINAL_V1",p[p.AGRICULTURAL_V1="agricultural_v1"]="AGRICULTURAL_V1",p[p.COMPETITION_V1="competition_v1"]="COMPETITION_V1",p[p.CORPORATE_V1="corporate_v1"]="CORPORATE_V1",p[p.PERSONAL_V1="personal_v1"]="PERSONAL_V1",p[p.LITIGATION_V1="litigation_v1"]="LITIGATION_V1",p[p.LABOR_V1="labor_v1"]="LABOR_V1",p[p.COMPENSATIONS_V1="compensation_v1"]="COMPENSATIONS_V1",p[p.COMMERCIAL_V1="commercial_v1"]="COMMERCIAL_V1",p[p.CONTRACT_V1="contract_v1"]="CONTRACT_V1",p[p.INHERITANCE_V1="inheritance_v1"]="INHERITANCE_V1",p[p.FREEDOM_OF_INFORMATION_V1="freedom-of-information_v1"]="FREEDOM_OF_INFORMATION_V1",p[p.COPYRIGHT_V1="copyright_v1"]="COPYRIGHT_V1",p[p.ADMINISTRATIVE_V1="administrative_v1"]="ADMINISTRATIVE_V1",p[p.DATA_PROTECTION_V1="data-protection_v1"]="DATA_PROTECTION_V1",p[p.SOCIAL_SECURITY_V1="social-security_v1"]="SOCIAL_SECURITY_V1",Dn;var p})(),yn=(()=>{return(p=yn||(yn={}))[p.DUPLICATE_CATEGORY="DUPLICATE_CATEGORY"]="DUPLICATE_CATEGORY",p[p.INVALID_CATEGORY="INVALID_CATEGORY"]="INVALID_CATEGORY",yn;var p})(),_n=(()=>{return(p=_n||(_n={}))[p.REGULAR="Regular"]="REGULAR",p[p.ROOT="Root"]="ROOT",_n;var p})()},41399:(Se,k,n)=>{n.d(k,{_:()=>s}); 290/* 291 * @license 292 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 293 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 294 *
295 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 296 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 297 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 298 * trade secret or copyright law. 299 * 300 * Dissemination of this information or reproduction of this material is strictly forbidden 301 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 302 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 303 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 304 * explicitly covering such access. 305 * 306 * The copyright notice above does not evidence any actual or intended publication or disclosure 307 * of this source code, which includes information that is confidential and/or proprietary, 308 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 309 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 310 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 311 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 312 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 313 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 314 * IN WHOLE OR IN PART. 315 */ 316let s=(()=>{class e{constructor(t,v,r="simple",c=!1,C){this.forceArray=!1,this.name=t,this.value=v,this.type=r,this.forceArray=c,this.ID=C||e.generateID(),e.usedIDs.includes(this.ID)||e.usedIDs.push(this.ID)}static generateID(){let t=Math.floor(Math.random()*e.IDMultiplier);for(;e.usedIDs.includes(t)&&e.usedIDs.length!==e.IDMultiplier;)t=Math.floor(Math.random()*e.IDMultiplier);return t}static empty(){return new e("",[])}static emptyObject(){return new e("",[],"object")}static emptyComplex(){return new e("",[],"objects")}static removeUsedIDs(t){if(t instanceof e&&!Array.isArray(t)){const v=t.ID,r=e.usedIDs.findIndex(c=>c===v);-1!==r&&e.usedIDs.splice(r,1),e.removeUsedIDs(t.value)}else Array.isArray(t)&&t&&Array.isArray(t)&&t.forEach(v=>{e.removeUsedIDs(v)})}static clearUsedIDs(){e.usedIDs=[]}}return e.usedIDs=[],e.IDMultiplier=1e6,e})()},36057:(Se,k,n)=>{n.d(k,{$d:()=>it,BP:()=>G,C0:()=>V,C7:()=>f,F3:()=>u,FD:()=>Y,G8:()=>K,HP:()=>B,HU:()=>v,He:()=>fe,Jx:()=>b,Ml:()=>Ve,OL:()=>i,Oz:()=>O,PG:()=>l,RR:()=>o,Ud:()=>h,V1:()=>a,XA:()=>q,YN:()=>C,YZ:()=>re,cM:()=>L,eP:()=>Z,ep:()=>e,m$:()=>Q,m8:()=>Ee,n0:()=>m,oH:()=>t,p1:()=>c,q8:()=>r,rp:()=>N,tm:()=>X,ts:()=>R,vP:()=>M,xr:()=>D,yi:()=>w});var s=n(71997),e=(()=>{return(W=e||(e={}))[W.RIGHT="RIGHT"]="RIGHT",W[W.LEFT="LEFT"]="LEFT",W[W.CENTER="CENTER"]="CENTER",W[W.COLUMN="COLUMN"]="COLUMN",e;var W})(),o=(()=>{return(W=o||(o={}))[W.xs="xs"]="xs",W[W.sm="sm"]="sm",W[W.md="md"]="md",W[W.lg="lg"]="lg",W[W.xl="xl"]="xl",W[W.xxl="xxl"]="xxl",o;var W})(),t=(()=>{return(W=t||(t={}))[W.PAGE_COUNT="PAGE_COUNT"]="PAGE_COUNT",W[W.SIZE="SIZE"]="SIZE",W[W.FILE_TYPE="FILE_TYPE"]="FILE_TYPE",W[W.ENCRYPTED="ENCRYPTED"]="ENCRYPTED",t;var W})(),v=(()=>{return(W=v||(v={}))[W.CONTRACTS="CONTRACTS"]="CONTRACTS",W[W.LEGAL="LEGAL"]="LEGAL",W[W.PURCHASE="PURCHASE"]="PURCHASE",v;var W})(),r=(()=>{return(W=r||(r={}))[W.SIMPLE="SIMPLE"]="SIMPLE",W[W.LIGHT="LIGHT"]="LIGHT",W[W.FOLD="FOLD"]="FOLD",r;var W})(),c=(()=>{return(W=c||(c={}))[W.CHANGE=W.CHANGE]="CHANGE",W[W.REGISTRATION="REGISTRATION"]="REGISTRATION",c;var W})(),C=(()=>{return(W=C||(C={}))[W.ALL="all"]="ALL",W[W.COMPLETE="complete"]="COMPLETE",W[W.PURCHASED="purchased"]="PURCHASED",W[W.INCOMPLETE="incomplete/draft"]="INCOMPLETE",C;var W})(),u=(()=>{return(W=u||(u={}))[W.LEFT="LEFT"]="LEFT",W[W.RIGHT="RIGHT"]="RIGHT",u;var W})(); 317/* 318 * @license 319 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 320 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 321 *
322 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 323 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 324 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 325 * trade secret or copyright law. 326 * 327 * Dissemination of this information or reproduction of this material is strictly forbidden 328 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 329 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 330 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 331 * explicitly covering such access. 332 * 333 * The copyright notice above does not evidence any actual or intended publication or disclosure 334 * of this source code, which includes information that is confidential and/or proprietary, 335 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 336 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 337 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 338 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 339 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 340 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 341 * IN WHOLE OR IN PART. 342 */class m{constructor(ee,te=null){this.key=ee,this.params=te}}var a=(()=>{return(W=a||(a={}))[W.SHORT=5e3]="SHORT",W[W.MEDIUM=1e4]="MEDIUM",W[W.LONG=15e3]="LONG",W[W.XLONG=2e4]="XLONG",W[W.UNLIMITED=0]="UNLIMITED",a;var W})(),f=(()=>{return(W=f||(f={})).PRIMARY="#9579d1",W.SECONDARY="#7eb8da",W.SUCCESS="#92ddea",W.INFO="#3f87f5",W.WARNING="#ffc107",W.DANGER="#de4436",f;var W})(),O=(()=>{return(W=O||(O={}))[W.BUNDLE="BUNDLE"]="BUNDLE",W[W.CONTRACT="CONTRACT"]="CONTRACT",W[W.LAWYER_MEDIATION="LAWYER_MEDIATION"]="LAWYER_MEDIATION",W[W.OFFER="OFFER"]="OFFER",W[W.SUBSCRIPTION="SUBSCRIPTION"]="SUBSCRIPTION",W[W.SUBSCRIPTION_CONTRACT="SUBSCRIPTION_CONTRACT"]="SUBSCRIPTION_CONTRACT",O;var W})(),N=(()=>{return(W=N||(N={}))[W.LOGIN="LOGIN"]="LOGIN",W[W.REGISTER="REGISTER"]="REGISTER",W[W.IMPERSONATED="IMPERSONATED"]="IMPERSONATED",N;var W})(),L=(()=>{return(W=L||(L={}))[W.DOCUMENT="document"]="DOCUMENT",W[W.LAWYER_MEDIATION="mediation"]="LAWYER_MEDIATION",L;var W})();class i extends s.pxB{constructor(ee,te){super(ee.ID,ee.buyer,ee.key,ee.methodToken,ee.periodStart,ee.periodEnd,ee.billingStart,ee.quota,ee.expiration,ee.providerData,ee.realStatus,ee.modules),this.payment=te}}var M=(()=>{return(W=M||(M={})).HOTJAR="Hotjar",W.PIXEL="Pixel",W.TAG_MANAGER="Google Tag Manager",W.CONVERSION="Conversion",M;var W})(),R=(()=>{return(W=R||(R={})).ClampBlue="phantom_clamp_blue",W.ClampMulticolor="phantom_clamp_multicolor",W.ClampOutline="phantom_clamp_outline",R;var W})(),l=(()=>{return(W=l||(l={})).WaveBlue1="phantom_wave_blue_1",W.WaveBlue2="phantom_wave_blue_2",W.WaveBlue3="phantom_wave_blue_3",W.WaveBlue4="phantom_wave_blue_4",W.WavePurple1="phantom_wave_purple_1",W.WavePurple2="phantom_wave_purple_2",W.WavePurple3="phantom_wave_purple_3",l;var W})(),h=(()=>{return(W=h||(h={})).MY_CONTRACTS="MY_CONTRACTS",W.SHARED="SHARED",W.TEST="TEST",h;var W})(),D=(()=>{return(W=D||(D={})).PROFILE="PROFILE",W.IMAGE="IMAGE",W.LAWYER_LICENSE="LAWYER_LICENSE",W.INTRODUCTION="INTRODUCTION",W.INVOICING="INVOICING",W.MATCHMAKING="MATCHMAKING",W.PAYOUT="PAYOUT",W.VERIFIED="VERIFIED",D;var W})(),B=(()=>{return(W=B||(B={})).ERROR="ERROR",W.LOADING="LOADING",W.SUCCESS="SUCCESS",W.MISSING="MISSING",B;var W})();class K{constructor(ee=!0,te=!1,Pe=!1){this.isLoading=ee,this.value=te,this.hasError=Pe}}class b{constructor(ee,te,Pe,Ue,Ae,Fe){this.type=ee,this.title=te,this.desc=Pe,this.button=Ue,this.link=Ae,this.status=Fe}}var w=(()=>{return(W=w||(w={}
342))[W.ADD="ADD"]="ADD",W[W.RENAME="RENAME"]="RENAME",W[W.DELETE="DELETE"]="DELETE",w;var W})(),X=(()=>{return(W=X||(X={}))[W.SEARCHING="SEARCHING"]="SEARCHING",W[W.FOUND="FOUND"]="FOUND",W[W.NOT_FOUND="NOT_FOUND"]="NOT_FOUND",W[W.DEFAULT="DEFAULT"]="DEFAULT",X;var W})(),Y=(()=>{return(W=Y||(Y={}))[W.POSTAL_CODE="postal code"]="POSTAL_CODE",W[W.CITY="city"]="CITY",W[W.COUNTRY="country"]="COUNTRY",Y;var W})(),Z=(()=>{return(W=Z||(Z={})).WINDOWS="WINDOWS",W.IOS="IOS",W.ANDROID="ANDROID",W.LINUX="LINUX",Z;var W})(),G=(()=>{return(W=G||(G={})).DIFFERENT="DIFFERENT",W.EMPTY="EMPTY",W.ERROR="ERROR",W.FIRST="FIRST",G;var W})(),Q=(()=>{return(W=Q||(Q={})).REMOVE_BEGINNING="REMOVE_BEGINNING",W.REMOVE_MIDDLE="REMOVE_MIDDLE",W.REMOVE_END="REMOVE_END",Q;var W})();class V{constructor(ee,te,Pe,Ue,Ae,Fe,Qe,rt,Ct){this.title=ee,this.customColor=Fe,this.hoverClass=Qe,this.lightIcon=rt,this.darkIcon=Ct,this.isImg=Ae,this.name=te,this.quota=Pe,this.duration=Ue}}class Ee{constructor(ee,te){this.start=ee,this.end=te}}var re=(()=>{return(W=re||(re={}))[W.CREATE="CREATE"]="CREATE",W[W.DELETE="DELETE"]="DELETE",W[W.REFRESH="REFRESH"]="REFRESH",W[W.UPDATE="UPDATE"]="UPDATE",re;var W})();class le{}class q extends le{constructor(ee,te){super(),this.type=re.CREATE,this.event=ee,this.neighboringEvents=te}}class fe extends le{constructor(ee){super(),this.type=re.DELETE,this.event=ee,this.neighboringEvents=[]}}class it extends le{constructor(ee,te,Pe){super(),this.type=re.UPDATE,this.event=ee,this.eventsToRollbackTo=te,this.neighboringEvents=Pe}}var Ve=(()=>{return(W=Ve||(Ve={})).DATEPICKER="Datepicker",W.PAGINATION="Pagination",Ve;var W})()},59674:(Se,k,n)=>{n.d(k,{i:()=>s}); 343/* 344 * @license 345 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 346 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 347 *
348 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 349 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 350 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 351 * trade secret or copyright law. 352 * 353 * Dissemination of this information or reproduction of this material is strictly forbidden 354 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 355 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 356 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 357 * explicitly covering such access. 358 * 359 * The copyright notice above does not evidence any actual or intended publication or disclosure 360 * of this source code, which includes information that is confidential and/or proprietary, 361 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 362 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 363 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 364 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 365 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 366 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 367 * IN WHOLE OR IN PART. 368 */ 369var s=(()=>{return(e=s||(s={})).en="en",e.hu="hu",s;var e})()},10273:(Se,k,n)=>{n.d(k,{R:()=>e,S:()=>s}); 370/* 371 * @license 372 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 373 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 374 *
375 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 376 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 377 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 378 * trade secret or copyright law. 379 * 380 * Dissemination of this information or reproduction of this material is strictly forbidden 381 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 382 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 383 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 384 * explicitly covering such access. 385 * 386 * The copyright notice above does not evidence any actual or intended publication or disclosure 387 * of this source code, which includes information that is confidential and/or proprietary, 388 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 389 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 390 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 391 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 392 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 393 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 394 * IN WHOLE OR IN PART. 395 */ 396const s=["HU","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"],e={AD:[{code:"AD-02",name:"Canillo"},{code:"AD-03",name:"Encamp"},{code:"AD-04",name:"La Massana"},{code:"AD-05",name:"Ordino"},{code:"AD-06",name:"Sant Julia de Loria"},{code:"AD-07",name:"Andorra la Vella"},{code:"AD-08",name:"Escaldes-Engordany"}],AE:[{code:"AE-AJ",name:"'Ajman"},{code:"AE-AZ",name:"Abu Zaby"},{code:"AE-DU",name:"Dubayy"},{code:"AE-FU",name:"Al Fujayrah"},{code:"AE-RK",name:"Ra's al Khaymah"},{code:"AE-SH",name:"Ash Shariqah"},{code:"AE-UQ",name:"Umm al Qaywayn"}],AF:[{code:"AF-BAL",name:"Balkh"},{code:"AF-BAM",name:"Bamyan"},{code:"AF-BDG",name:"Badghis"},{code:"AF-BDS",name:"Badakhshan"},{code:"AF-BGL",name:"Baghlan"},{code:"AF-DAY",name:"Daykundi"},{code:"AF-FRA",name:"Farah"},{code:"AF-FYB",name:"Faryab"},{code:"AF-GHA",name:"Ghazni"},{code:"AF-GHO",name:"Ghor"},{code:"AF-HEL",name:"Helmand"},{code:"AF-HER",name:"Herat"},{code:"AF-JOW",name:"Jowzjan"},{code:"AF-KAB",name:"Kabul"},{code:"AF-KAN",name:"Kandahar"},{code:"AF-KAP",name:"Kapisa"},{code:"AF-KDZ",name:"Kunduz"},{code:"AF-KHO",name:"Khost"},{code:"AF-KNR",name:"Kunar"},{code:"AF-LAG",name:"Laghman"},{code:"AF-LOG",name:"Logar"},{code:"AF-NAN",name:"Nangarhar"},{code:"AF-NIM",name:"Nimroz"},{code:"AF-NUR",name:"Nuristan"},{code:"AF-PAN",name:"Panjshayr"},{code:"AF-PAR",name:"Parwan"},{code:"AF-PIA",name:"Paktiya"},{code:"AF-PKA",name:"Paktika"},{code:"AF-SAM",name:"Samangan"},{code:"AF-SAR",name:"Sar-e pul"},{code:"AF-TAK",name:"Takhar"},{code:"AF-URU",name:"Uruzgan"},{code:"AF-WAR",name:"Wardak"},{code:"AF-ZAB",name:"Zabul"}],AG:[{code:"AG-04",name:"Saint John"},{code:"AG-05",name:"Saint Mary"},{code:"AG-06",name:"Saint Paul"}],AL:[{code:"AL-01",name:"Berat"},{code:"AL-02",name:"Durres"},{code:"AL-03",name:"Elbasan"},{code:"AL-04",name:"Fier"},{code:"AL-05",name:"Gjirokaster"},{code:"AL-06",name:"Korce"},{code:"AL-07",name:"Kukes"}
396,{code:"AL-08",name:"Lezhe"},{code:"AL-09",name:"Diber"},{code:"AL-10",name:"Shkoder"},{code:"AL-11",name:"Tirane"},{code:"AL-12",name:"Vlore"}],AM:[{code:"AM-AG",name:"Aragacotn"},{code:"AM-AR",name:"Ararat"},{code:"AM-AV",name:"Armavir"},{code:"AM-ER",name:"Erevan"},{code:"AM-GR",name:"Gegark'unik'"},{code:"AM-KT",name:"Kotayk'"},{code:"AM-LO",name:"Lori"},{code:"AM-SH",name:"Sirak"},{code:"AM-SU",name:"Syunik'"},{code:"AM-TV",name:"Tavus"},{code:"AM-VD",name:"Vayoc Jor"}],AO:[{code:"AO-BGO",name:"Bengo"},{code:"AO-BGU",name:"Benguela"},{code:"AO-BIE",name:"Bie"},{code:"AO-CAB",name:"Cabinda"},{code:"AO-CCU",name:"Kuando Kubango"},{code:"AO-CNN",name:"Cunene"},{code:"AO-CNO",name:"Kwanza Norte"},{code:"AO-CUS",name:"Kwanza Sul"},{code:"AO-HUA",name:"Huambo"},{code:"AO-HUI",name:"Huila"},{code:"AO-LNO",name:"Lunda Norte"},{code:"AO-LSU",name:"Lunda Sul"},{code:"AO-LUA",name:"Luanda"},{code:"AO-MAL",name:"Malange"},{code:"AO-MOX",name:"Moxico"},{code:"AO-NAM",name:"Namibe"},{code:"AO-UIG",name:"Uige"},{code:"AO-ZAI",name:"Zaire"}],AR:[{code:"AR-A",name:"Salta"},{code:"AR-B",name:"Buenos Aires"},{code:"AR-C",name:"Ciudad Autonoma de Buenos Aires"},{code:"AR-D",name:"San Luis"},{code:"AR-E",name:"Entre Rios"},{code:"AR-F",name:"La Rioja"},{code:"AR-G",name:"Santiago del Estero"},{code:"AR-H",name:"Chaco"},{code:"AR-J",name:"San Juan"},{code:"AR-K",name:"Catamarca"},{code:"AR-L",name:"La Pampa"},{code:"AR-M",name:"Mendoza"},{code:"AR-N",name:"Misiones"},{code:"AR-P",name:"Formosa"},{code:"AR-Q",name:"Neuquen"},{code:"AR-R",name:"Rio Negro"},{code:"AR-S",name:"Santa Fe"},{code:"AR-T",name:"Tucuman"},{code:"AR-U",name:"Chubut"}
396,{code:"AR-V",name:"Tierra del Fuego"},{code:"AR-W",name:"Corrientes"},{code:"AR-X",name:"Cordoba"},{code:"AR-Y",name:"Jujuy"},{code:"AR-Z",name:"Santa Cruz"}],AT:[{code:"AT-1",name:"Burgenland"},{code:"AT-2",name:"Karnten"},{code:"AT-3",name:"Niederosterreich"},{code:"AT-4",name:"Oberosterreich"},{code:"AT-5",name:"Salzburg"},{code:"AT-6",name:"Steiermark"},{code:"AT-7",name:"Tirol"},{code:"AT-8",name:"Vorarlberg"},{code:"AT-9",name:"Wien"}],AU:[{code:"AU-ACT",name:"Australian Capital Territory"},{code:"AU-NSW",name:"New South Wales"},{code:"AU-NT",name:"Northern Territory"},{code:"AU-QLD",name:"Queensland"},{code:"AU-SA",name:"South Australia"},{code:"AU-TAS",name:"Tasmania"},{code:"AU-WA",name:"Western Australia"}],AZ:[{code:"AZ-ABS",name:"Abseron"},{code:"AZ-AGA",name:"Agstafa"},{code:"AZ-AGC",name:"Agcabadi"},{code:"AZ-AGM",name:"Agdam"},{code:"AZ-AGS",name:"Agdas"},{code:"AZ-AGU",name:"Agsu"},{code:"AZ-AST",name:"Astara"},{code:"AZ-BA",name:"Baki"},{code:"AZ-BAL",name:"Balakan"},{code:"AZ-BAR",name:"Barda"},{code:"AZ-BEY",name:"Beylaqan"},{code:"AZ-BIL",name:"Bilasuvar"},{code:"AZ-CAB",name:"Cabrayil"},{code:"AZ-CAL",name:"Calilabad"},{code:"AZ-DAS",name:"Daskasan"},{code:"AZ-FUZ",name:"Fuzuli"},{code:"AZ-GA",name:"Ganca"},{code:"AZ-GAD",name:"Gadabay"},{code:"AZ-GOR",name:"Goranboy"},{code:"AZ-GOY",name:"Goycay"},{code:"AZ-GYG",name:"Goygol"},{code:"AZ-HAC",name:"Haciqabul"},{code:"AZ-IMI",name:"Imisli"},{code:"AZ-ISM",name:"Ismayilli"},{code:"AZ-KAL",name:"Kalbacar"},{code:"AZ-LAC",name:"Lacin"},{code:"AZ-LAN",name:"Lankaran"},{code:"AZ-LER",name:"Lerik"},{code:"AZ-MAS",name:"Masalli"},{code:"AZ-MI",name:"Mingacevir"},{code:"AZ-NA",name:"Naftalan"},{code:"AZ-NEF",name:"Neftcala"},{code:"AZ-NV",name:"Naxcivan"},{code:"AZ-OGU",name:"Oguz"},{code:"AZ-QAB",name:"Qabala"},{code:"AZ-QAX",name:"Qax"},{code:"AZ-QAZ",name:"Qazax"},{code:"AZ-QBA",name:"Quba"},{code:"AZ-QBI",name:"Qubadli"},{code:"AZ-QOB",name:"Qobustan"},{code:"AZ-QUS",name:"Qusar"},{code:"AZ-SAB",name:"Sabirabad"},{code:"AZ-SAK",name:"Saki"},{code:"AZ-SAL",name:"Salyan"},{code:"AZ-SAT",name:"Saatli"},{code:"AZ-SKR",name:"Samkir"},{code:"AZ-SM",name:"Sumqayit"},{code:"AZ-SMI",name:"Samaxi"},{code:"AZ-SMX",name:"Samux"},{code:"AZ-SR",name:"Sirvan"},{code:"AZ-SUS",name:"Susa"},{code:"AZ-TAR",name:"Tartar"},{code:"AZ-TOV",name:"Tovuz"},{code:"AZ-UCA",name:"Ucar"},{code:"AZ-XA",name:"Xankandi"},{code:"AZ-XAC",name:"Xacmaz"},{code:"AZ-XCI",name:"Xocali"},{code:"AZ-XIZ",name:"Xizi"},{code:"AZ-XVD",name:"Xocavand"},{code:"AZ-YAR",name:"Yardimli"},{code:"AZ-YEV",name:"Yevlax"},{code:"AZ-ZAN",name:"Zangilan"},{code:"AZ-ZAQ",name:"Zaqatala"},{code:"AZ-ZAR",name:"Zardab"}],BA:[{code:"BA-BIH",name:"Federacija Bosna i Hercegovina"},{code:"BA-SRP",name:"Republika Srpska"}],BB:[{code:"BB-01",name:"Christ Church"},{code:"BB-04",name:"Saint James"},{code:"BB-06",name:"Saint Joseph"},{code:"BB-08",name:"Saint Michael"},{code:"BB-09",name:"Saint Peter"}],BD:[{code:"BD-A",name:"Barisal"},{code:"BD-B",name:"Chittagong"},{code:"BD-C",name:"Dhaka"},{code:"BD-D",name:"Khulna"},{code:"BD-E",name:"Rajshahi"},{code:"BD-F",name:"Rangpur"},{code:"BD-G",name:"Sylhet"}],BE:[{code:"BE-BRU",name:"Brussels Hoofdstedelijk Gewest"},{code:"BE-VAN",name:"Antwerpen"},{code:"BE-VBR",name:"Vlaams-Brabant"},{code:"BE-VLI",name:"Limburg"},{code:"BE-VOV",name:"Oost-Vlaanderen"},{code:"BE-VWV",name:"West-Vlaanderen"},{code:"BE-WBR",name:"Brabant Wallon"},{code:"BE-WHT",name:"Hainaut"},{code:"BE-WLG",name:"Liege"},{code:"BE-WLX",name:"Luxembourg"},{code:"BE-WNA",name:"Namur"}],BF:[{code:"BF-BAL",name:"Bale"},{code:"BF-BAM",name:"Bam"},{code:"BF-BAN",name:"Banwa"},{code:"BF-BAZ",name:"Bazega"},{code:"BF-BGR",name:"Bougouriba"},{code:"BF-BLG",name:"Boulgou"},{code:"BF-BLK",name:"Boulkiemde"},{code:"BF-COM",name:"Comoe"},{code:"BF-GAN",name:"Ganzourgou"},{code:"BF-GNA",name:"Gnagna"},{code:"BF-GOU",name:"Gourma"},{code:"BF-HOU",name:"Houet"},{code:"BF-IOB",name:"Ioba"},{code:"BF-KAD",name:"Kadiogo"},{code:"BF-KEN",name:"Kenedougou"},{code:"BF-KMD",name:"Komondjari"},{code:"BF-KMP",name:"Kompienga"},{code:"BF-KOP",name:"Koulpelogo"},{code:"BF-KOS",name:"Kossi"},{code:"BF-KOT",name:"Kouritenga"},{code:"BF-KOW",name:"Kourweogo"},{code:"BF-LER",name:"Leraba"},{code:"BF-LOR",name:"Loroum"},{code:"BF-MOU",name:"Mouhoun"},{code:"BF-NAM",name:"Namentenga"},{code:"BF-NAO",name:"Nahouri"},{code:"BF-NAY",name:"Nayala"},{code:"BF-NOU",name:"Noumbiel"},{code:"BF-OUB",name:"Oubritenga"},{code:"BF-OUD",name:"Oudalan"},{code:"BF-PAS",name:"Passore"},{code:"BF-PON",name:"Poni"},{code:"BF-SEN",name:"Seno"},{code:"BF-SIS",name:"Sissili"},{code:"BF-SMT",name:"Sanmatenga"},{code:"BF-SNG",name:"Sanguie"},{code:"BF-SOM",name:"Soum"},{code:"BF-SOR",name:"Sourou"},{code:"BF-TAP",name:"Tapoa"},{code:"BF-TUI",name:"Tui"},{code:"BF-YAG",name:"Yagha"},{code:"BF-YAT",name:"Yatenga"},{code:"BF-ZIR",name:"Ziro"},{code:"BF-ZON",name:"Zondoma"},{code:"BF-ZOU",name:"Zoundweogo"}
396],BG:[{code:"BG-01",name:"Blagoevgrad"},{code:"BG-02",name:"Burgas"},{code:"BG-03",name:"Varna"},{code:"BG-04",name:"Veliko Tarnovo"},{code:"BG-05",name:"Vidin"},{code:"BG-06",name:"Vratsa"},{code:"BG-07",name:"Gabrovo"},{code:"BG-08",name:"Dobrich"},{code:"BG-09",name:"Kardzhali"},{code:"BG-10",name:"Kyustendil"},{code:"BG-11",name:"Lovech"},{code:"BG-12",name:"Montana"},{code:"BG-13",name:"Pazardzhik"},{code:"BG-14",name:"Pernik"},{code:"BG-15",name:"Pleven"},{code:"BG-16",name:"Plovdiv"},{code:"BG-17",name:"Razgrad"},{code:"BG-18",name:"Ruse"},{code:"BG-19",name:"Silistra"},{code:"BG-20",name:"Sliven"},{code:"BG-21",name:"Smolyan"},{code:"BG-22",name:"Sofia (stolitsa)"},{code:"BG-23",name:"Sofia"},{code:"BG-24",name:"Stara Zagora"},{code:"BG-25",name:"Targovishte"},{code:"BG-26",name:"Haskovo"},{code:"BG-27",name:"Shumen"},{code:"BG-28",name:"Yambol"}],BH:[{code:"BH-13",name:"Al Asimah"},{code:"BH-15",name:"Al Muharraq"},{code:"BH-17",name:"Ash Shamaliyah"}],BI:[{code:"BI-BB",name:"Bubanza"},{code:"BI-BM",name:"Bujumbura Mairie"},{code:"BI-BR",name:"Bururi"},{code:"BI-CA",name:"Cankuzo"},{code:"BI-CI",name:"Cibitoke"},{code:"BI-GI",name:"Gitega"},{code:"BI-KI",name:"Kirundo"},{code:"BI-KR",name:"Karuzi"},{code:"BI-KY",name:"Kayanza"},{code:"BI-MA",name:"Makamba"},{code:"BI-MU",name:"Muramvya"},{code:"BI-MW",name:"Mwaro"},{code:"BI-MY",name:"Muyinga"},{code:"BI-NG",name:"Ngozi"},{code:"BI-RT",name:"Rutana"},{code:"BI-RY",name:"Ruyigi"}],BJ:[{code:"BJ-AK",name:"Atacora"},{code:"BJ-AL",name:"Alibori"},{code:"BJ-AQ",name:"Atlantique"},{code:"BJ-BO",name:"Borgou"},{code:"BJ-CO",name:"Collines"},{code:"BJ-DO",name:"Donga"},{code:"BJ-KO",name:"Couffo"},{code:"BJ-LI",name:"Littoral"},{code:"BJ-MO",name:"Mono"},{code:"BJ-OU",name:"Oueme"},{code:"BJ-PL",name:"Plateau"},{code:"BJ-ZO",name:"Zou"}],BN:[{code:"BN-BE",name:"Belait"},{code:"BN-BM",name:"Brunei-Muara"},{code:"BN-TE",name:"Temburong"},{code:"BN-TU",name:"Tutong"}],BO:[{code:"BO-B",name:"El Beni"},{code:"BO-C",name:"Cochabamba"},{code:"BO-H",name:"Chuquisaca"},{code:"BO-L",name:"La Paz"},{code:"BO-N",name:"Pando"},{code:"BO-O",name:"Oruro"},{code:"BO-P",name:"Potosi"},{code:"BO-S",name:"Santa Cruz"},{code:"BO-T",name:"Tarija"}],BQ:[{code:"BQ-BO",name:"Bonaire"},{code:"BQ-SA",name:"Saba"},{code:"BQ-SE",name:"Sint Eustatius"}],BR:[{code:"BR-AC",name:"Acre"},{code:"BR-AL",name:"Alagoas"},{code:"BR-AM",name:"Amazonas"},{code:"BR-AP",name:"Amapa"},{code:"BR-BA",name:"Bahia"},{code:"BR-CE",name:"Ceara"},{code:"BR-DF",name:"Distrito Federal"},{code:"BR-ES",name:"Espirito Santo"},{code:"BR-GO",name:"Goias"},{code:"BR-MA",name:"Maranhao"},{code:"BR-MG",name:"Minas Gerais"},{code:"BR-MS",name:"Mato Grosso do Sul"},{code:"BR-MT",name:"Mato Grosso"},{code:"BR-PA",name:"Para"},{code:"BR-PB",name:"Paraiba"},{code:"BR-PE",name:"Pernambuco"},{code:"BR-PI",name:"Piaui"},{code:"BR-PR",name:"Parana"},{code:"BR-RJ",name:"Rio de Janeiro"},{code:"BR-RN",name:"Rio Grande do Norte"},{code:"BR-RO",name:"Rondonia"},{code:"BR-RR",name:"Roraima"},{code:"BR-RS",name:"Rio Grande do Sul"},{code:"BR-SC",name:"Santa Catarina"},{code:"BR-SE",name:"Sergipe"},{code:"BR-SP",name:"Sao Paulo"},{code:"BR-TO",name:"Tocantins"}],BS:[{code:"BS-FC",name:"Fresh Creek"},{code:"BS-FP",name:"Freeport"},{code:"BS-HI",name:"Harbour Island"},{code:"BS-HR",name:"High Rock"},{code:"BS-LI",name:"Long Island"},{code:"BS-MH",name:"Marsh Harbour"},{code:"BS-NP",name:"New Providence"},{code:"BS-RS",name:"Rock Sound"}],BT:[{code:"BT-11",name:"Paro"},{code:"BT-12",name:"Chhukha"},{code:"BT-13",name:"Ha"},{code:"BT-15",name:"Thimphu"},{code:"BT-22",name:"Dagana"},{code:"BT-23",name:"Punakha"},{code:"BT-32",name:"Trongsa"},{code:"BT-34",name:"Zhemgang"},{code:"BT-42",name:"Monggar"},{code:"BT-GA",name:"Gasa"},{code:"BT-TY",name:"Trashi Yangtse"}],BW:[{code:"BW-GH",name:"Ghanzi"},{code:"BW-KG",name:"Kgalagadi"},{code:"BW-KL",name:"Kgatleng"},{code:"BW-KW",name:"Kweneng"},{code:"BW-NE",name:"North-East"},{code:"BW-NW",name:"North-West"},{code:"BW-SE",name:"South-East"},{code:"BW-SO",name:"Southern"}],BY:[{code:"BY-BR",name:"Brestskaya Voblasts'"},{code:"BY-HO",name:"Homyel'skaya Voblasts'"},{code:"BY-HR",name:"Hrodzyenskaya Voblasts'"},{code:"BY-MA",name:"Mahilyowskaya Voblasts'"},{code:"BY-MI",name:"Minskaya Voblasts'"},{code:"BY-VI",name:"Vitsyebskaya Voblasts'"}],BZ:[{code:"BZ-BZ",name:"Belize"},{code:"BZ-CY",name:"Cayo"},{code:"BZ-CZL",name:"Corozal"},{code:"BZ-OW",name:"Orange Walk"},{code:"BZ-SC",name:"Stann Creek"},{code:"BZ-TOL",name:"Toledo"}],CA:[{code:"CA-AB",name:"Alberta"},{code:"CA-BC",name:"British Columbia"},{code:"CA-MB",name:"Manitoba"},{code:"CA-NB",name:"New Brunswick"},{code:"CA-NL",name:"Newfoundland and Labrador"},{code:"CA-NS",name:"Nova Scotia"}
396,{code:"CA-NT",name:"Northwest Territories"},{code:"CA-NU",name:"Nunavut"},{code:"CA-ON",name:"Ontario"},{code:"CA-PE",name:"Prince Edward Island"},{code:"CA-QC",name:"Quebec"},{code:"CA-SK",name:"Saskatchewan"},{code:"CA-YT",name:"Yukon"}],CD:[{code:"CD-BC",name:"Bas-Congo"},{code:"CD-BN",name:"Bandundu"},{code:"CD-EQ",name:"Equateur"},{code:"CD-KA",name:"Katanga"},{code:"CD-KE",name:"Kasai-Oriental"},{code:"CD-KN",name:"Kinshasa"},{code:"CD-KW",name:"Kasai-Occidental"},{code:"CD-MA",name:"Maniema"},{code:"CD-NK",name:"Nord-Kivu"},{code:"CD-OR",name:"Orientale"},{code:"CD-SK",name:"Sud-Kivu"}],CF:[{code:"CF-AC",name:"Ouham"},{code:"CF-BB",name:"Bamingui-Bangoran"},{code:"CF-BGF",name:"Bangui"},{code:"CF-BK",name:"Basse-Kotto"},{code:"CF-HK",name:"Haute-Kotto"},{code:"CF-HM",name:"Haut-Mbomou"},{code:"CF-HS",name:"Mambere-Kadei"},{code:"CF-KB",name:"Nana-Grebizi"},{code:"CF-KG",name:"Kemo"},{code:"CF-LB",name:"Lobaye"},{code:"CF-MB",name:"Mbomou"},{code:"CF-MP",name:"Ombella-Mpoko"},{code:"CF-NM",name:"Nana-Mambere"},{code:"CF-OP",name:"Ouham-Pende"},{code:"CF-SE",name:"Sangha-Mbaere"},{code:"CF-UK",name:"Ouaka"}],CG:[{code:"CG-11",name:"Bouenza"},{code:"CG-12",name:"Pool"},{code:"CG-13",name:"Sangha"},{code:"CG-14",name:"Plateaux"},{code:"CG-15",name:"Cuvette-Ouest"},{code:"CG-16",name:"Pointe-Noire"},{code:"CG-2",name:"Lekoumou"},{code:"CG-7",name:"Likouala"},{code:"CG-8",name:"Cuvette"},{code:"CG-9",name:"Niari"},{code:"CG-BZV",name:"Brazzaville"}],CH:[{code:"CH-AG",name:"Aargau"},{code:"CH-AI",name:"Appenzell Innerrhoden"},{code:"CH-AR",name:"Appenzell Ausserrhoden"},{code:"CH-BE",name:"Bern"},{code:"CH-BL",name:"Basel-Landschaft"},{code:"CH-BS",name:"Basel-Stadt"},{code:"CH-FR",name:"Fribourg"},{code:"CH-GE",name:"Geneve"},{code:"CH-GL",name:"Glarus"},{code:"CH-GR",name:"Graubunden"},{code:"CH-JU",name:"Jura"},{code:"CH-LU",name:"Luzern"},{code:"CH-NE",name:"Neuchatel"},{code:"CH-NW",name:"Nidwalden"},{code:"CH-OW",name:"Obwalden"},{code:"CH-SG",name:"Sankt Gallen"},{code:"CH-SH",name:"Schaffhausen"},{code:"CH-SO",name:"Solothurn"},{code:"CH-SZ",name:"Schwyz"},{code:"CH-TG",name:"Thurgau"},{code:"CH-TI",name:"Ticino"},{code:"CH-UR",name:"Uri"},{code:"CH-VD",name:"Vaud"},{code:"CH-VS",name:"Valais"},{code:"CH-ZG",name:"Zug"},{code:"CH-ZH",name:"Zurich"}],CI:[{code:"CI-01",name:"Lagunes"},{code:"CI-02",name:"Haut-Sassandra"},{code:"CI-03",name:"Savanes"},{code:"CI-04",name:"Vallee du Bandama"},{code:"CI-05",name:"Moyen-Comoe"},{code:"CI-06",name:"Dix-Huit Montagnes"},{code:"CI-07",name:"Lacs"},{code:"CI-08",name:"Zanzan"},{code:"CI-09",name:"Bas-Sassandra"},{code:"CI-10",name:"Denguele"},{code:"CI-11",name:"N'zi-Comoe"},{code:"CI-12",name:"Marahoue"},{code:"CI-13",name:"Sud-Comoe"},{code:"CI-14",name:"Worodougou"},{code:"CI-15",name:"Sud-Bandama"},{code:"CI-16",name:"Agneby"},{code:"CI-17",name:"Bafing"},{code:"CI-18",name:"Fromager"},{code:"CI-19",name:"Moyen-Cavally"}],CL:[{code:"CL-AI",name:"Aysen"},{code:"CL-AN",name:"Antofagasta"},{code:"CL-AP",name:"Arica y Parinacota"},{code:"CL-AR",name:"Araucania"},{code:"CL-AT",name:"Atacama"},{code:"CL-BI",name:"Biobio"},{code:"CL-CO",name:"Coquimbo"},{code:"CL-LI",name:"Libertador General Bernardo O'Higgins"},{code:"CL-LL",name:"Los Lagos"},{code:"CL-LR",name:"Los Rios"},{code:"CL-MA",name:"Magallanes"},{code:"CL-ML",name:"Maule"},{code:"CL-RM",name:"Region Metropolitana de Santiago"},{code:"CL-TA",name:"Tarapaca"},{code:"CL-VS",name:"Valparaiso"}],CM:[{code:"CM-AD",name:"Adamaoua"},{code:"CM-CE",name:"Centre"},{code:"CM-EN",name:"Extreme-Nord"},{code:"CM-ES",name:"Est"},{code:"CM-LT",name:"Littoral"},{code:"CM-NO",name:"Nord"},{code:"CM-NW",name:"Nord-Ouest"},{code:"CM-OU",name:"Ouest"},{code:"CM-SU",name:"Sud"},{code:"CM-SW",name:"Sud-Ouest"}],CN:[{code:"CN-11",name:"Beijing"},{code:"CN-12",name:"Tianjin"},{code:"CN-13",name:"Hebei"},{code:"CN-14",name:"Shanxi"},{code:"CN-15",name:"Nei Mongol"},{code:"CN-21",name:"Liaoning"},{code:"CN-22",name:"Jilin"},{code:"CN-23",name:"Heilongjiang"},{code:"CN-31",name:"Shanghai"},{code:"CN-32",name:"Jiangsu"},{code:"CN-33",name:"Zhejiang"},{code:"CN-34",name:"Anhui"},{code:"CN-35",name:"Fujian"},{code:"CN-36",name:"Jiangxi"},{code:"CN-37",name:"Shandong"}
396,{code:"CN-41",name:"Henan"},{code:"CN-42",name:"Hubei"},{code:"CN-43",name:"Hunan"},{code:"CN-44",name:"Guangdong"},{code:"CN-45",name:"Guangxi"},{code:"CN-46",name:"Hainan"},{code:"CN-50",name:"Chongqing"},{code:"CN-51",name:"Sichuan"},{code:"CN-52",name:"Guizhou"},{code:"CN-53",name:"Yunnan"},{code:"CN-54",name:"Xizang"},{code:"CN-61",name:"Shaanxi"},{code:"CN-62",name:"Gansu"},{code:"CN-63",name:"Qinghai"},{code:"CN-64",name:"Ningxia"},{code:"CN-65",name:"Xinjiang"}],CO:[{code:"CO-AMA",name:"Amazonas"},{code:"CO-ANT",name:"Antioquia"},{code:"CO-ARA",name:"Arauca"},{code:"CO-ATL",name:"Atlantico"},{code:"CO-BOL",name:"Bolivar"},{code:"CO-BOY",name:"Boyaca"},{code:"CO-CAL",name:"Caldas"},{code:"CO-CAQ",name:"Caqueta"},{code:"CO-CAS",name:"Casanare"},{code:"CO-CAU",name:"Cauca"},{code:"CO-CES",name:"Cesar"},{code:"CO-CHO",name:"Choco"},{code:"CO-COR",name:"Cordoba"},{code:"CO-CUN",name:"Cundinamarca"},{code:"CO-DC",name:"Distrito Capital de Bogota"},{code:"CO-GUA",name:"Guainia"},{code:"CO-GUV",name:"Guaviare"},{code:"CO-HUI",name:"Huila"},{code:"CO-LAG",name:"La Guajira"},{code:"CO-MAG",name:"Magdalena"},{code:"CO-MET",name:"Meta"},{code:"CO-NAR",name:"Narino"},{code:"CO-NSA",name:"Norte de Santander"},{code:"CO-PUT",name:"Putumayo"},{code:"CO-QUI",name:"Quindio"},{code:"CO-RIS",name:"Risaralda"},{code:"CO-SAN",name:"Santander"},{code:"CO-SAP",name:"San Andres, Providencia y Santa Catalina"},{code:"CO-SUC",name:"Sucre"},{code:"CO-TOL",name:"Tolima"},{code:"CO-VAC",name:"Valle del Cauca"},{code:"CO-VAU",name:"Vaupes"},{code:"CO-VID",name:"Vichada"}],CR:[{code:"CR-A",name:"Alajuela"},{code:"CR-C",name:"Cartago"},{code:"CR-G",name:"Guanacaste"},{code:"CR-H",name:"Heredia"},{code:"CR-L",name:"Limon"},{code:"CR-P",name:"Puntarenas"},{code:"CR-SJ",name:"San Jose"}],CU:[{code:"CU-01",name:"Pinar del Rio"},{code:"CU-03",name:"La Habana"},{code:"CU-04",name:"Matanzas"},{code:"CU-05",name:"Villa Clara"},{code:"CU-06",name:"Cienfuegos"},{code:"CU-07",name:"Sancti Spiritus"},{code:"CU-08",name:"Ciego de Avila"},{code:"CU-09",name:"Camaguey"},{code:"CU-10",name:"Las Tunas"},{code:"CU-11",name:"Holguin"},{code:"CU-12",name:"Granma"},{code:"CU-13",name:"Santiago de Cuba"},{code:"CU-14",name:"Guantanamo"},{code:"CU-15",name:"Artemisa"},{code:"CU-16",name:"Mayabeque"},{code:"CU-99",name:"Isla de la Juventud"}],CV:[{code:"CV-BR",name:"Brava"},{code:"CV-BV",name:"Boa Vista"},{code:"CV-CA",name:"Santa Catarina"},{code:"CV-CF",name:"Santa Catarina do Fogo"},{code:"CV-CR",name:"Santa Cruz"},{code:"CV-MA",name:"Maio"},{code:"CV-MO",name:"Mosteiros"},{code:"CV-PA",name:"Paul"},{code:"CV-PN",name:"Porto Novo"},{code:"CV-PR",name:"Praia"},{code:"CV-RB",name:"Ribeira Brava"},{code:"CV-RG",name:"Ribeira Grande"},{code:"CV-RS",name:"Ribeira Grande de Santiago"},{code:"CV-SD",name:"Sao Domingos"},{code:"CV-SF",name:"Sao Filipe"},{code:"CV-SL",name:"Sal"},{code:"CV-SM",name:"Sao Miguel"},{code:"CV-SS",name:"Sao Salvador do Mundo"},{code:"CV-SV",name:"Sao Vicente"},{code:"CV-TA",name:"Tarrafal"},{code:"CV-TS",name:"Tarrafal de Sao Nicolau"}],CY:[{code:"CY-01",name:"Lefkosia"},{code:"CY-02",name:"Lemesos"},{code:"CY-03",name:"Larnaka"},{code:"CY-04",name:"Ammochostos"},{code:"CY-05",name:"Pafos"},{code:"CY-06",name:"Keryneia"}],CZ:[{code:"CZ-JC",name:"Jihocesky kraj"},{code:"CZ-JM",name:"Jihomoravsky kraj"},{code:"CZ-KA",name:"Karlovarsky kraj"},{code:"CZ-KR",name:"Kralovehradecky kraj"},{code:"CZ-LI",name:"Liberecky kraj"},{code:"CZ-MO",name:"Moravskoslezsky kraj"},{code:"CZ-OL",name:"Olomoucky kraj"},{code:"CZ-PA",name:"Pardubicky kraj"},{code:"CZ-PL",name:"Plzensky kraj"},{code:"CZ-PR",name:"Praha, hlavni mesto"},{code:"CZ-ST",name:"Stredocesky kraj"},{code:"CZ-US",name:"Ustecky kraj"},{code:"CZ-VY",name:"Vysocina kraj"},{code:"CZ-ZL",name:"Zlinsky kraj"}],DE:[{code:"DE-BB",name:"Brandenburg"},{code:"DE-BE",name:"Berlin"},{code:"DE-BW",name:"Baden-Wurttemberg"},{code:"DE-BY",name:"Bayern"},{code:"DE-HB",name:"Bremen"},{code:"DE-HE",name:"Hessen"},{code:"DE-HH",name:"Hamburg"},{code:"DE-MV",name:"Mecklenburg-Vorpommern"},{code:"DE-NI",name:"Niedersachsen"},{code:"DE-NW",name:"Nordrhein-Westfalen"},{code:"DE-RP",name:"Rheinland-Pfalz"},{code:"DE-SH",name:"Schleswig-Holstein"},{code:"DE-SL",name:"Saarland"},{code:"DE-SN",name:"Sachsen"},{code:"DE-ST",name:"Sachsen-Anhalt"},{code:"DE-TH",name:"Thuringen"}],DJ:[{code:"DJ-AS",name:"Ali Sabieh"},{code:"DJ-DI",name:"Dikhil"},{code:"DJ-DJ",name:"Djibouti"},{code:"DJ-OB",name:"Obock"},{code:"DJ-TA",name:"Tadjourah"}],DK:[{code:"DK-81",name:"Nordjylland"},{code:"DK-82",name:"Midtjylland"}
396,{code:"DK-83",name:"Syddanmark"},{code:"DK-84",name:"Hovedstaden"},{code:"DK-85",name:"Sjelland"}],DM:[{code:"DM-03",name:"Saint David"},{code:"DM-05",name:"Saint John"},{code:"DM-06",name:"Saint Joseph"},{code:"DM-07",name:"Saint Luke"},{code:"DM-08",name:"Saint Mark"},{code:"DM-09",name:"Saint Patrick"},{code:"DM-10",name:"Saint Paul"}],DO:[{code:"DO-01",name:"Distrito Nacional"},{code:"DO-02",name:"Azua"},{code:"DO-03",name:"Baoruco"},{code:"DO-04",name:"Barahona"},{code:"DO-05",name:"Dajabon"},{code:"DO-06",name:"Duarte"},{code:"DO-07",name:"Elias Pina"},{code:"DO-08",name:"El Seibo"},{code:"DO-09",name:"Espaillat"},{code:"DO-10",name:"Independencia"},{code:"DO-11",name:"La Altagracia"},{code:"DO-12",name:"La Romana"},{code:"DO-13",name:"La Vega"},{code:"DO-14",name:"Maria Trinidad Sanchez"},{code:"DO-15",name:"Monte Cristi"},{code:"DO-16",name:"Pedernales"},{code:"DO-17",name:"Peravia"},{code:"DO-18",name:"Puerto Plata"},{code:"DO-19",name:"Salcedo"},{code:"DO-20",name:"Samana"},{code:"DO-21",name:"San Cristobal"},{code:"DO-22",name:"San Juan"},{code:"DO-23",name:"San Pedro De Macoris"},{code:"DO-24",name:"Sanchez Ramirez"},{code:"DO-25",name:"Santiago"},{code:"DO-26",name:"Santiago Rodriguez"},{code:"DO-27",name:"Valverde"},{code:"DO-28",name:"Monsenor Nouel"},{code:"DO-29",name:"Monte Plata"},{code:"DO-30",name:"Hato Mayor"}],DZ:[{code:"DZ-01",name:"Adrar"},{code:"DZ-02",name:"Chlef"},{code:"DZ-03",name:"Laghouat"},{code:"DZ-04",name:"Oum el Bouaghi"},{code:"DZ-05",name:"Batna"},{code:"DZ-06",name:"Bejaia"},{code:"DZ-07",name:"Biskra"},{code:"DZ-08",name:"Bechar"},{code:"DZ-09",name:"Blida"},{code:"DZ-10",name:"Bouira"},{code:"DZ-11",name:"Tamanrasset"},{code:"DZ-12",name:"Tebessa"},{code:"DZ-13",name:"Tlemcen"},{code:"DZ-14",name:"Tiaret"},{code:"DZ-15",name:"Tizi Ouzou"},{code:"DZ-16",name:"Alger"},{code:"DZ-17",name:"Djelfa"},{code:"DZ-19",name:"Setif"},{code:"DZ-20",name:"Saida"},{code:"DZ-21",name:"Skikda"},{code:"DZ-22",name:"Sidi Bel Abbes"},{code:"DZ-23",name:"Annaba"},{code:"DZ-24",name:"Guelma"},{code:"DZ-25",name:"Constantine"},{code:"DZ-26",name:"Medea"},{code:"DZ-27",name:"Mostaganem"},{code:"DZ-28",name:"Msila"},{code:"DZ-29",name:"Mascara"},{code:"DZ-30",name:"Ouargla"},{code:"DZ-31",name:"Oran"},{code:"DZ-32",name:"El Bayadh"},{code:"DZ-33",name:"Illizi"},{code:"DZ-34",name:"Bordj Bou Arreridj"},{code:"DZ-35",name:"Boumerdes"},{code:"DZ-36",name:"El Tarf"},{code:"DZ-37",name:"Tindouf"},{code:"DZ-38",name:"Tissemsilt"},{code:"DZ-39",name:"El Oued"},{code:"DZ-40",name:"Khenchela"},{code:"DZ-41",name:"Souk Ahras"},{code:"DZ-42",name:"Tipaza"},{code:"DZ-43",name:"Mila"},{code:"DZ-44",name:"Ain Defla"},{code:"DZ-45",name:"Naama"},{code:"DZ-46",name:"Ain Temouchent"},{code:"DZ-47",name:"Ghardaia"},{code:"DZ-48",name:"Relizane"}],EC:[{code:"EC-A",name:"Azuay"},{code:"EC-B",name:"Bolivar"},{code:"EC-C",name:"Carchi"},{code:"EC-D",name:"Orellana"},{code:"EC-E",name:"Esmeraldas"},{code:"EC-F",name:"Canar"},{code:"EC-G",name:"Guayas"},{code:"EC-H",name:"Chimborazo"},{code:"EC-I",name:"Imbabura"},{code:"EC-L",name:"Loja"},{code:"EC-M",name:"Manabi"},{code:"EC-N",name:"Napo"},{code:"EC-O",name:"El Oro"},{code:"EC-P",name:"Pichincha"},{code:"EC-R",name:"Los Rios"},{code:"EC-S",name:"Morona-Santiago"},{code:"EC-SE",name:"Santa Elena"},{code:"EC-T",name:"Tungurahua"},{code:"EC-U",name:"Sucumbios"},{code:"EC-W",name:"Galapagos"},{code:"EC-X",name:"Cotopaxi"},{code:"EC-Y",name:"Pastaza"},{code:"EC-Z",name:"Zamora-Chinchipe"}],EE:[{code:"EE-37",name:"Harjumaa"},{code:"EE-39",name:"Hiiumaa"},{code:"EE-44",name:"Ida-Virumaa"},{code:"EE-49",name:"Jogevamaa"},{code:"EE-51",name:"Jarvamaa"},{code:"EE-57",name:"Laanemaa"},{code:"EE-59",name:"Laane-Virumaa"},{code:"EE-65",name:"Polvamaa"},{code:"EE-67",name:"Parnumaa"},{code:"EE-70",name:"Raplamaa"},{code:"EE-74",name:"Saaremaa"},{code:"EE-78",name:"Tartumaa"},{code:"EE-82",name:"Valgamaa"},{code:"EE-84",name:"Viljandimaa"},{code:"EE-86",name:"Vorumaa"}],EG:[{code:"EG-ALX",name:"Al Iskandariyah"},{code:"EG-ASN",name:"Aswan"},{code:"EG-AST",name:"Asyut"},{code:"EG-BA",name:"Al Bahr al Ahmar"},{code:"EG-BH",name:"Al Buhayrah"},{code:"EG-BNS",name:"Bani Suwayf"},{code:"EG-C",name:"Al Qahirah"},{code:"EG-DK",name:"Ad Daqahliyah"},{code:"EG-DT",name:"Dumyat"},{code:"EG-FYM",name:"Al Fayyum"},{code:"EG-GH",name:"Al Gharbiyah"},{code:"EG-GZ",name:"Al Jizah"},{code:"EG-IS",name:"Al Ismailiyah"},{code:"EG-JS",name:"Janub Sina'"},{code:"EG-KB",name:"Al Qalyubiyah"},{code:"EG-KFS",name:"Kafr ash Shaykh"},{code:"EG-KN",name:"Qina"},{code:"EG-LX",name:"Al Uqsur"},{code:"EG-MN",name:"Al Minya"},{code:"EG-MNF",name:"Al Minufiyah"},{code:"EG-MT",name:"Matruh"},{code:"EG-PTS",name:"Bur Sa'id"},{code:"EG-SHG",name:"Suhaj"},{code:"EG-SHR",name:"Ash Sharqiyah"},{code:"EG-SIN",name:"Shamal Sina'"}
396,{code:"EG-SUZ",name:"As Suways"},{code:"EG-WAD",name:"Al Wadi al Jadid"}],ER:[{code:"ER-AN",name:"Ansaba"},{code:"ER-DK",name:"Janubi al Bahri al Ahmar"},{code:"ER-DU",name:"Al Janubi"},{code:"ER-GB",name:"Qash-Barkah"},{code:"ER-MA",name:"Al Awsat"},{code:"ER-SK",name:"Shimali al Bahri al Ahmar"}],ES:[{code:"ES-AN",name:"Andalucia"},{code:"ES-AR",name:"Aragon"},{code:"ES-AS",name:"Asturias, Principado de"},{code:"ES-CB",name:"Cantabria"},{code:"ES-CE",name:"Ceuta"},{code:"ES-CL",name:"Castilla y Leon"},{code:"ES-CM",name:"Castilla-La Mancha"},{code:"ES-CN",name:"Canarias"},{code:"ES-CT",name:"Catalunya"},{code:"ES-EX",name:"Extremadura"},{code:"ES-GA",name:"Galicia"},{code:"ES-IB",name:"Illes Balears"},{code:"ES-LO",name:"La Rioja"},{code:"ES-MC",name:"Murcia, Region de"},{code:"ES-MD",name:"Madrid, Comunidad de"},{code:"ES-ML",name:"Melilla"},{code:"ES-NC",name:"Navarra, Comunidad Foral de"},{code:"ES-PV",name:"Pais Vasco"},{code:"ES-VC",name:"Valenciana, Comunidad"}],ET:[{code:"ET-AA",name:"Adis Abeba"},{code:"ET-AF",name:"Afar"},{code:"ET-AM",name:"Amara"},{code:"ET-BE",name:"Binshangul Gumuz"},{code:"ET-DD",name:"Dire Dawa"},{code:"ET-GA",name:"Gambela Hizboch"},{code:"ET-HA",name:"Hareri Hizb"},{code:"ET-OR",name:"Oromiya"},{code:"ET-SN",name:"YeDebub Biheroch Bihereseboch na Hizboch"},{code:"ET-SO",name:"Sumale"},{code:"ET-TI",name:"Tigray"}],FI:[{code:"FI-02",name:"Etela-Karjala"},{code:"FI-03",name:"Etela-Pohjanmaa"},{code:"FI-04",name:"Etela-Savo"},{code:"FI-05",name:"Kainuu"},{code:"FI-06",name:"Kanta-Hame"},{code:"FI-07",name:"Keski-Pohjanmaa"},{code:"FI-08",name:"Keski-Suomi"},{code:"FI-09",name:"Kymenlaakso"},{code:"FI-10",name:"Lappi"},{code:"FI-11",name:"Pirkanmaa"},{code:"FI-12",name:"Pohjanmaa"},{code:"FI-13",name:"Pohjois-Karjala"},{code:"FI-14",name:"Pohjois-Pohjanmaa"},{code:"FI-15",name:"Pohjois-Savo"},{code:"FI-16",name:"Paijat-Hame"},{code:"FI-17",name:"Satakunta"},{code:"FI-18",name:"Uusimaa"},{code:"FI-19",name:"Varsinais-Suomi"}],FJ:[{code:"FJ-C",name:"Central"},{code:"FJ-N",name:"Northern"}],FM:[{code:"FM-KSA",name:"Kosrae"},{code:"FM-PNI",name:"Pohnpei"},{code:"FM-TRK",name:"Chuuk"},{code:"FM-YAP",name:"Yap"}],FR:[{code:"FR-A",name:"Alsace"},{code:"FR-B",name:"Aquitaine"},{code:"FR-C",name:"Auvergne"},{code:"FR-D",name:"Bourgogne"},{code:"FR-E",name:"Bretagne"},{code:"FR-F",name:"Centre"},{code:"FR-G",name:"Champagne-Ardenne"},{code:"FR-H",name:"Corse"},{code:"FR-I",name:"Franche-Comte"},{code:"FR-J",name:"Ile-de-France"},{code:"FR-K",name:"Languedoc-Roussillon"},{code:"FR-L",name:"Limousin"},{code:"FR-M",name:"Lorraine"},{code:"FR-N",name:"Midi-Pyrenees"},{code:"FR-O",name:"Nord-Pas-de-Calais"},{code:"FR-P",name:"Basse-Normandie"},{code:"FR-Q",name:"Haute-Normandie"},{code:"FR-R",name:"Pays de la Loire"},{code:"FR-S",name:"Picardie"},{code:"FR-T",name:"Poitou-Charentes"},{code:"FR-U",name:"Provence-Alpes-Cote d'Azur"},{code:"FR-V",name:"Rhone-Alpes"}],GA:[{code:"GA-1",name:"Estuaire"},{code:"GA-2",name:"Haut-Ogooue"},{code:"GA-3",name:"Moyen-Ogooue"},{code:"GA-4",name:"Ngounie"},{code:"GA-5",name:"Nyanga"},{code:"GA-6",name:"Ogooue-Ivindo"},{code:"GA-7",name:"Ogooue-Lolo"},{code:"GA-8",name:"Ogooue-Maritime"},{code:"GA-9",name:"Woleu-Ntem"}],GB:[{code:"GB-ENG",name:"England"},{code:"GB-NIR",name:"Northern Ireland"},{code:"GB-SCT",name:"Scotland"},{code:"GB-WLS",name:"Wales"}],GD:[{code:"GD-01",name:"Saint Andrew"},{code:"GD-02",name:"Saint David"},{code:"GD-03",name:"Saint George"},{code:"GD-04",name:"Saint John"},{code:"GD-05",name:"Saint Mark"},{code:"GD-06",name:"Saint Patrick"}],GE:[{code:"GE-04",name:"Akhalk'alak'is Raioni"},{code:"GE-09",name:"Baghdat'is Raioni"},{code:"GE-11",name:"Borjomis Raioni"},{code:"GE-19",name:"Goris Raioni"},{code:"GE-23",name:"Javis Raioni"},{code:"GE-24",name:"K'arelis Raioni"},{code:"GE-28",name:"Khashuris Raioni"},{code:"GE-61",name:"Vanis Raioni"},{code:"GE-AB",name:"Abkhazia"},{code:"GE-AJ",name:"Ajaria"},{code:"GE-GU",name:"Guria"},{code:"GE-IM",name:"Imereti"},{code:"GE-KA",name:"Kakheti"},{code:"GE-KK",name:"Kvemo Kartli"},{code:"GE-MM",name:"Mtskheta-Mtianeti"},{code:"GE-RL",name:"Racha-Lechkhumi and Kvemo Svaneti"},{code:"GE-SJ",name:"Samtskhe-Javakheti"},{code:"GE-SK",name:"Shida Kartli"},{code:"GE-SZ",name:"Samegrelo and Zemo Svaneti"},{code:"GE-TB",name:"T'bilisi"}],GH:[{code:"GH-AA",name:"Greater Accra"},{code:"GH-AH",name:"Ashanti"},{code:"GH-BA",name:"Brong-Ahafo"},{code:"GH-CP",name:"Central"},{code:"GH-NP",name:"Northern"},{code:"GH-TV",name:"Volta"},{code:"GH-UE",name:"Upper East"},{code:"GH-UW",name:"Upper West"},{code:"GH-WP",name:"Western"}],GL:[{code:"GL-KU",name:"Kommune Kujalleq"},{code:"GL-QA",name:"Qaasuitsup Kommunia"},{code:"GL-QE",name:"Qeqqata Kommunia"}
396,{code:"GL-SM",name:"Kommuneqarfik Sermersooq"}],GM:[{code:"GM-B",name:"Banjul"},{code:"GM-L",name:"Lower River"},{code:"GM-M",name:"Central River"},{code:"GM-N",name:"North Bank"},{code:"GM-U",name:"Upper River"},{code:"GM-W",name:"Western"}],GN:[{code:"GN-BE",name:"Beyla"},{code:"GN-BF",name:"Boffa"},{code:"GN-BK",name:"Boke"},{code:"GN-C",name:"Conakry"},{code:"GN-CO",name:"Coyah"},{code:"GN-DB",name:"Dabola"},{code:"GN-DI",name:"Dinguiraye"},{code:"GN-DL",name:"Dalaba"},{code:"GN-DU",name:"Dubreka"},{code:"GN-FA",name:"Faranah"},{code:"GN-FO",name:"Forecariah"},{code:"GN-FR",name:"Fria"},{code:"GN-GA",name:"Gaoual"},{code:"GN-GU",name:"Gueckedou"},{code:"GN-KA",name:"Kankan"},{code:"GN-KB",name:"Koubia"},{code:"GN-KD",name:"Kindia"},{code:"GN-KE",name:"Kerouane"},{code:"GN-KN",name:"Koundara"},{code:"GN-KO",name:"Kouroussa"},{code:"GN-KS",name:"Kissidougou"},{code:"GN-LA",name:"Labe"},{code:"GN-LE",name:"Lelouma"},{code:"GN-LO",name:"Lola"},{code:"GN-MC",name:"Macenta"},{code:"GN-MD",name:"Mandiana"},{code:"GN-ML",name:"Mali"},{code:"GN-MM",name:"Mamou"},{code:"GN-NZ",name:"Nzerekore"},{code:"GN-PI",name:"Pita"},{code:"GN-SI",name:"Siguiri"},{code:"GN-TE",name:"Telimele"},{code:"GN-TO",name:"Tougue"},{code:"GN-YO",name:"Yomou"}],GQ:[{code:"GQ-AN",name:"Annobon"},{code:"GQ-BN",name:"Bioko Norte"},{code:"GQ-BS",name:"Bioko Sur"},{code:"GQ-CS",name:"Centro Sur"},{code:"GQ-KN",name:"Kie-Ntem"},{code:"GQ-LI",name:"Litoral"},{code:"GQ-WN",name:"Wele-Nzas"}],GR:[{code:"GR-01",name:"Aitolia kai Akarnania"},{code:"GR-03",name:"Voiotia"},{code:"GR-04",name:"Evvoia"},{code:"GR-05",name:"Evritania"},{code:"GR-06",name:"Fthiotis"},{code:"GR-07",name:"Fokis"},{code:"GR-11",name:"Argolis"},{code:"GR-12",name:"Arkadhia"},{code:"GR-13",name:"Akhaia"},{code:"GR-14",name:"Ilia"},{code:"GR-15",name:"Korinthia"},{code:"GR-16",name:"Lakonia"},{code:"GR-17",name:"Messinia"},{code:"GR-21",name:"Zakinthos"},{code:"GR-22",name:"Kerkira"},{code:"GR-23",name:"Kefallinia"},{code:"GR-24",name:"Levkas"},{code:"GR-32",name:"Thesprotia"},{code:"GR-33",name:"Ioannina"},{code:"GR-34",name:"Preveza"},{code:"GR-41",name:"Kardhitsa"},{code:"GR-42",name:"Larisa"},{code:"GR-43",name:"Magnisia"},{code:"GR-44",name:"Trikala"},{code:"GR-51",name:"Grevena"},{code:"GR-52",name:"Drama"},{code:"GR-53",name:"Imathia"},{code:"GR-54",name:"Thessaloniki"},{code:"GR-55",name:"Kavala"},{code:"GR-56",name:"Kastoria"},{code:"GR-57",name:"Kilkis"},{code:"GR-58",name:"Kozani"},{code:"GR-59",name:"Pella"},{code:"GR-61",name:"Pieria"},{code:"GR-62",name:"Serrai"},{code:"GR-63",name:"Florina"},{code:"GR-64",name:"Khalkidhiki"},{code:"GR-71",name:"Evros"},{code:"GR-72",name:"Xanthi"},{code:"GR-73",name:"Rodhopi"},{code:"GR-81",name:"Dhodhekanisos"},{code:"GR-82",name:"Kikladhes"},{code:"GR-83",name:"Lesvos"},{code:"GR-84",name:"Samos"},{code:"GR-85",name:"Khios"},{code:"GR-91",name:"Iraklion"},{code:"GR-92",name:"Lasithi"},{code:"GR-93",name:"Rethimni"},{code:"GR-94",name:"Khania"},{code:"GR-A1",name:"Attiki"}],GT:[{code:"GT-AV",name:"Alta Verapaz"},{code:"GT-BV",name:"Baja Verapaz"},{code:"GT-CM",name:"Chimaltenango"},{code:"GT-CQ",name:"Chiquimula"},{code:"GT-ES",name:"Escuintla"},{code:"GT-GU",name:"Guatemala"},{code:"GT-HU",name:"Huehuetenango"},{code:"GT-IZ",name:"Izabal"},{code:"GT-JA",name:"Jalapa"},{code:"GT-JU",name:"Jutiapa"},{code:"GT-PE",name:"Peten"},{code:"GT-PR",name:"El Progreso"},{code:"GT-QC",name:"Quiche"},{code:"GT-QZ",name:"Quetzaltenango"},{code:"GT-RE",name:"Retalhuleu"},{code:"GT-SA",name:"Sacatepequez"},{code:"GT-SM",name:"San Marcos"},{code:"GT-SO",name:"Solola"},{code:"GT-SR",name:"Santa Rosa"},{code:"GT-SU",name:"Suchitepequez"},{code:"GT-TO",name:"Totonicapan"},{code:"GT-ZA",name:"Zacapa"}],GW:[{code:"GW-BA",name:"Bafata"},{code:"GW-BL",name:"Bolama"},{code:"GW-BM",name:"Biombo"},{code:"GW-BS",name:"Bissau"},{code:"GW-CA",name:"Cacheu"},{code:"GW-GA",name:"Gabu"},{code:"GW-OI",name:"Oio"},{code:"GW-QU",name:"Quinara"},{code:"GW-TO",name:"Tombali"}],GY:[{code:"GY-CU",name:"Cuyuni-Mazaruni"},{code:"GY-DE",name:"Demerara-Mahaica"},{code:"GY-EB",name:"East Berbice-Corentyne"},{code:"GY-ES",name:"Essequibo Islands-West Demerara"},{code:"GY-MA",name:"Mahaica-Berbice"},{code:"GY-PM",name:"Pomeroon-Supenaam"},{code:"GY-UD",name:"Upper Demerara-Berbice"}],HN:[{code:"HN-AT",name:"Atlantida"},{code:"HN-CH",name:"Choluteca"},{code:"HN-CL",name:"Colon"},{code:"HN-CM",name:"Comayagua"},{code:"HN-CP",name:"Copan"},{code:"HN-CR",name:"Cortes"},{code:"HN-EP",name:"El Paraiso"},{code:"HN-FM",name:"Francisco Morazan"},{code:"HN-GD",name:"Gracias a Dios"},{code:"HN-IB",name:"Islas de la Bahia"},{code:"HN-IN",name:"Intibuca"},{code:"HN-LE",name:"Lempira"},{code:"HN-LP",name:"La Paz"},{code:"HN-OC",name:"Ocotepeque"}
396,{code:"HN-OL",name:"Olancho"},{code:"HN-SB",name:"Santa Barbara"},{code:"HN-VA",name:"Valle"},{code:"HN-YO",name:"Yoro"}],HR:[{code:"HR-01",name:"Zagrebacka zupanija"},{code:"HR-02",name:"Krapinsko-zagorska zupanija"},{code:"HR-03",name:"Sisacko-moslavacka zupanija"},{code:"HR-04",name:"Karlovacka zupanija"},{code:"HR-05",name:"Varazdinska zupanija"},{code:"HR-06",name:"Koprivnicko-krizevacka zupanija"},{code:"HR-07",name:"Bjelovarsko-bilogorska zupanija"},{code:"HR-08",name:"Primorsko-goranska zupanija"},{code:"HR-09",name:"Licko-senjska zupanija"},{code:"HR-10",name:"Viroviticko-podravska zupanija"},{code:"HR-11",name:"Pozesko-slavonska zupanija"},{code:"HR-12",name:"Brodsko-posavska zupanija"},{code:"HR-13",name:"Zadarska zupanija"},{code:"HR-14",name:"Osjecko-baranjska zupanija"},{code:"HR-15",name:"Sibensko-kninska zupanija"},{code:"HR-16",name:"Vukovarsko-srijemska zupanija"},{code:"HR-17",name:"Splitsko-dalmatinska zupanija"},{code:"HR-18",name:"Istarska zupanija"},{code:"HR-19",name:"Dubrovacko-neretvanska zupanija"},{code:"HR-20",name:"Medimurska zupanija"},{code:"HR-21",name:"Grad Zagreb"}],HT:[{code:"HT-AR",name:"Artibonite"},{code:"HT-CE",name:"Centre"},{code:"HT-GA",name:"Grand' Anse"},{code:"HT-ND",name:"Nord"},{code:"HT-NE",name:"Nord-Est"},{code:"HT-NI",name:"Nippes"},{code:"HT-NO",name:"Nord-Ouest"},{code:"HT-OU",name:"Ouest"},{code:"HT-SD",name:"Sud"},{code:"HT-SE",name:"Sud-Est"}],HU:[{code:"HU-BA",name:"Baranya"},{code:"HU-BE",name:"B\xe9k\xe9s"},{code:"HU-BK",name:"B\xe1cs-Kiskun"},{code:"HU-BU",name:"Budapest"},{code:"HU-BZ",name:"Borsod-Aba\xfaj-Zempl\xe9n"},{code:"HU-CS",name:"Csongr\xe1d"},{code:"HU-FE",name:"Fej\xe9r"},{code:"HU-GS",name:"Gy\u0151r-Moson-Sopron"},{code:"HU-HB",name:"Hajd\xfa-Bihar"},{code:"HU-HE",name:"Heves"},{code:"HU-JN",name:"J\xe1sz-Nagykun-Szolnok"},{code:"HU-KE",name:"Kom\xe1rom-Esztergom"},{code:"HU-NO",name:"N\xf3gr\xe1d"},{code:"HU-PE",name:"Pest"},{code:"HU-SO",name:"Somogy"},{code:"HU-SZ",name:"Szabolcs-Szatm\xe1r-Bereg"},{code:"HU-TO",name:"Tolna"},{code:"HU-VA",name:"Vas"},{code:"HU-VE",name:"Veszpr\xe9m"},{code:"HU-ZA",name:"Zala"}],ID:[{code:"ID-AC",name:"Aceh"},{code:"ID-BA",name:"Bali"},{code:"ID-BB",name:"Bangka Belitung"},{code:"ID-BE",name:"Bengkulu"},{code:"ID-BT",name:"Banten"},{code:"ID-GO",name:"Gorontalo"},{code:"ID-JA",name:"Jambi"},{code:"ID-JB",name:"Jawa Barat"},{code:"ID-JI",name:"Jawa Timur"},{code:"ID-JK",name:"Jakarta Raya"},{code:"ID-JT",name:"Jawa Tengah"},{code:"ID-KB",name:"Kalimantan Barat"},{code:"ID-KI",name:"Kalimantan Timur"},{code:"ID-KR",name:"Kepulauan Riau"},{code:"ID-KS",name:"Kalimantan Selatan"},{code:"ID-KT",name:"Kalimantan Tengah"},{code:"ID-LA",name:"Lampung"},{code:"ID-MA",name:"Maluku"},{code:"ID-MU",name:"Maluku Utara"},{code:"ID-NB",name:"Nusa Tenggara Barat"},{code:"ID-NT",name:"Nusa Tenggara Timur"},{code:"ID-PA",name:"Papua"},{code:"ID-PB",name:"Papua Barat"},{code:"ID-RI",name:"Riau"},{code:"ID-SA",name:"Sulawesi Utara"},{code:"ID-SB",name:"Sumatera Barat"},{code:"ID-SG",name:"Sulawesi Tenggara"},{code:"ID-SN",name:"Sulawesi Selatan"},{code:"ID-SR",name:"Sulawesi Barat"},{code:"ID-SS",name:"Sumatera Selatan"},{code:"ID-ST",name:"Sulawesi Tengah"},{code:"ID-SU",name:"Sumatera Utara"},{code:"ID-YO",name:"Yogyakarta"}],IE:[{code:"IE-CE",name:"Clare"},{code:"IE-CN",name:"Cavan"},{code:"IE-CO",name:"Cork"},{code:"IE-CW",name:"Carlow"},{code:"IE-D",name:"Dublin"},{code:"IE-DL",name:"Donegal"},{code:"IE-G",name:"Galway"},{code:"IE-KE",name:"Kildare"},{code:"IE-KK",name:"Kilkenny"},{code:"IE-KY",name:"Kerry"},{code:"IE-LD",name:"Longford"},{code:"IE-LH",name:"Louth"},{code:"IE-LK",name:"Limerick"},{code:"IE-LM",name:"Leitrim"},{code:"IE-LS",name:"Laois"},{code:"IE-MH",name:"Meath"},{code:"IE-MN",name:"Monaghan"},{code:"IE-MO",name:"Mayo"},{code:"IE-OY",name:"Offaly"},{code:"IE-RN",name:"Roscommon"},{code:"IE-SO",name:"Sligo"},{code:"IE-TA",name:"Tipperary"},{code:"IE-WD",name:"Waterford"},{code:"IE-WH",name:"Westmeath"},{code:"IE-WW",name:"Wicklow"},{code:"IE-WX",name:"Wexford"}],IL:[{code:"IL-D",name:"HaDarom"},{code:"IL-HA",name:"Hefa"},{code:"IL-JM",name:"Yerushalayim"},{code:"IL-M",name:"HaMerkaz"},{code:"IL-TA",name:"Tel-Aviv"},{code:"IL-Z",name:"HaTsafon"}],IN:[{code:"IN-AN",name:"Andaman and Nicobar Islands"},{code:"IN-AP",name:"Andhra Pradesh"},{code:"IN-AR",name:"Arunachal Pradesh"},{code:"IN-AS",name:"Assam"},{code:"IN-BR",name:"Bihar"},{code:"IN-CH",name:"Chandigarh"},{code:"IN-CT",name:"Chhattisgarh"},{code:"IN-DD",name:"Daman and Diu"},{code:"IN-DL",name:"Delhi"},{code:"IN-DN",name:"Dadra and Nagar Haveli"},{code:"IN-GA",name:"Goa"},{code:"IN-GJ",name:"Gujarat"},{code:"IN-HP",name:"Himachal Pradesh"},{code:"IN-HR",name:"Haryana"},{code:"IN-JH",name:"Jharkhand"},{code:"IN-JK",name:"Jammu and Kashmir"},{code:"IN-KA",name:"Karnataka"},{code:"IN-KL",name:"Kerala"},{code:"IN-LD",name:"Lakshadweep"},{code:"IN-MH",name:"Maharashtra"},{code:"IN-ML",name:"Meghalaya"},{code:"IN-MN",name:"Manipur"},{code:"IN-MP",name:"Madhya Pradesh"},{code:"IN-MZ",name:"Mizoram"},{code:"IN-NL",name:"Nagaland"},{code:"IN-OR",name:"Odisha"},{code:"IN-PB",name:"Punjab"},{code:"IN-PY",name:"Puducherry"},{code:"IN-RJ",name:"Rajasthan"},{code:"IN-SK",name:"Sikkim"},{code:"IN-TG",name:"Telangana"},{code:"IN-TN",name:"Tamil Nadu"},{code:"IN-TR",name:"Tripura"},{code:"IN-UP",name:"Uttar Pradesh"},{code:"IN-UT",name:"Uttarakhand"},{code:"IN-WB",name:"West Bengal"}],IQ:[{code:"IQ-AN",name:"Al Anbar"},{code:"IQ-AR",name:"Arbil"},{code:"IQ-BA",name:"Al Basrah"},{code:"IQ-BB",name:"Babil"},{code:"IQ-BG",name:"Baghdad"},{code:"IQ-DA",name:"Dahuk"},{code:"IQ-DI",name:"Diyala"},{code:"IQ-DQ",name:"Dhi Qar"},{code:"IQ-KA",name:"Karbala'"},{code:"IQ-KI",name:"Kirkuk"},{code:"IQ-MA",name:"Maysan"},{code:"IQ-MU",name:"Al Muthanna"},{code:"IQ-NA",name:"An Najaf"},{code:"IQ-NI",name:"Ninawa"},{code:"IQ-QA",name:"Al Qadisiyah"},{code:"IQ-SD",name:"Salah ad Din"},{code:"IQ-SU",name:"As Sulaymaniyah"},{code:"IQ-WA",name:"Wasit"}
396],IR:[{code:"IR-01",name:"Azarbayjan-e Sharqi"},{code:"IR-02",name:"Azarbayjan-e Gharbi"},{code:"IR-03",name:"Ardabil"},{code:"IR-04",name:"Esfahan"},{code:"IR-05",name:"Ilam"},{code:"IR-06",name:"Bushehr"},{code:"IR-07",name:"Tehran"},{code:"IR-08",name:"Chahar Mahal va Bakhtiari"},{code:"IR-10",name:"Khuzestan"},{code:"IR-11",name:"Zanjan"},{code:"IR-12",name:"Semnan"},{code:"IR-13",name:"Sistan va Baluchestan"},{code:"IR-14",name:"Fars"},{code:"IR-15",name:"Kerman"},{code:"IR-16",name:"Kordestan"},{code:"IR-17",name:"Kermanshah"},{code:"IR-18",name:"Kohgiluyeh va Bowyer Ahmad"},{code:"IR-19",name:"Gilan"},{code:"IR-20",name:"Lorestan"},{code:"IR-21",name:"Mazandaran"},{code:"IR-22",name:"Markazi"},{code:"IR-23",name:"Hormozgan"},{code:"IR-24",name:"Hamadan"},{code:"IR-25",name:"Yazd"},{code:"IR-26",name:"Qom"},{code:"IR-27",name:"Golestan"},{code:"IR-28",name:"Qazvin"},{code:"IR-29",name:"Khorasan-e Jonubi"},{code:"IR-30",name:"Khorasan-e Razavi"},{code:"IR-31",name:"Khorasan-e Shomali"},{code:"IR-32",name:"Alborz"}],IS:[{code:"IS-1",name:"Hofudborgarsvaedi utan Reykjavikur"},{code:"IS-2",name:"Sudurnes"},{code:"IS-3",name:"Vesturland"},{code:"IS-4",name:"Vestfirdir"},{code:"IS-5",name:"Nordurland vestra"},{code:"IS-6",name:"Nordurland eystra"},{code:"IS-7",name:"Austurland"},{code:"IS-8",name:"Sudurland"}],IT:[{code:"IT-21",name:"Piemonte"},{code:"IT-23",name:"Valle d'Aosta"},{code:"IT-25",name:"Lombardia"},{code:"IT-32",name:"Trentino-Alto Adige"},{code:"IT-34",name:"Veneto"},{code:"IT-36",name:"Friuli-Venezia Giulia"},{code:"IT-42",name:"Liguria"},{code:"IT-45",name:"Emilia-Romagna"},{code:"IT-52",name:"Toscana"},{code:"IT-55",name:"Umbria"},{code:"IT-57",name:"Marche"},{code:"IT-62",name:"Lazio"},{code:"IT-65",name:"Abruzzo"},{code:"IT-67",name:"Molise"},{code:"IT-72",name:"Campania"},{code:"IT-75",name:"Puglia"},{code:"IT-77",name:"Basilicata"},{code:"IT-78",name:"Calabria"},{code:"IT-82",name:"Sicilia"},{code:"IT-88",name:"Sardegna"}],JM:[{code:"JM-01",name:"Kingston"},{code:"JM-02",name:"Saint Andrew"},{code:"JM-03",name:"Saint Thomas"},{code:"JM-04",name:"Portland"},{code:"JM-05",name:"Saint Mary"},{code:"JM-06",name:"Saint Ann"},{code:"JM-07",name:"Trelawny"},{code:"JM-08",name:"Saint James"},{code:"JM-09",name:"Hanover"},{code:"JM-10",name:"Westmoreland"},{code:"JM-11",name:"Saint Elizabeth"},{code:"JM-12",name:"Manchester"},{code:"JM-13",name:"Clarendon"},{code:"JM-14",name:"Saint Catherine"}],JO:[{code:"JO-AM",name:"Al 'Asimah"},{code:"JO-AQ",name:"Al 'Aqabah"},{code:"JO-AT",name:"At Tafilah"},{code:"JO-AZ",name:"Az Zarqa'"},{code:"JO-BA",name:"Al Balqa'"},{code:"JO-IR",name:"Irbid"},{code:"JO-KA",name:"Al Karak"},{code:"JO-MA",name:"Al Mafraq"},{code:"JO-MD",name:"Madaba"},{code:"JO-MN",name:"Ma'an"}],JP:[{code:"JP-01",name:"Hokkaido"},{code:"JP-02",name:"Aomori"},{code:"JP-03",name:"Iwate"},{code:"JP-04",name:"Miyagi"},{code:"JP-05",name:"Akita"},{code:"JP-06",name:"Yamagata"},{code:"JP-07",name:"Fukushima"},{code:"JP-08",name:"Ibaraki"},{code:"JP-09",name:"Tochigi"},{code:"JP-10",name:"Gunma"},{code:"JP-11",name:"Saitama"},{code:"JP-12",name:"Chiba"},{code:"JP-13",name:"Tokyo"},{code:"JP-14",name:"Kanagawa"},{code:"JP-15",name:"Niigata"},{code:"JP-16",name:"Toyama"},{code:"JP-17",name:"Ishikawa"},{code:"JP-18",name:"Fukui"},{code:"JP-19",name:"Yamanashi"},{code:"JP-20",name:"Nagano"},{code:"JP-21",name:"Gifu"},{code:"JP-22",name:"Shizuoka"},{code:"JP-23",name:"Aichi"},{code:"JP-24",name:"Mie"},{code:"JP-25",name:"Shiga"},{code:"JP-26",name:"Kyoto"},{code:"JP-27",name:"Osaka"},{code:"JP-28",name:"Hyogo"},{code:"JP-29",name:"Nara"},{code:"JP-30",name:"Wakayama"},{code:"JP-31",name:"Tottori"},{code:"JP-32",name:"Shimane"},{code:"JP-33",name:"Okayama"},{code:"JP-34",name:"Hiroshima"},{code:"JP-35",name:"Yamaguchi"},{code:"JP-36",name:"Tokushima"},{code:"JP-37",name:"Kagawa"},{code:"JP-38",name:"Ehime"},{code:"JP-39",name:"Kochi"},{code:"JP-40",name:"Fukuoka"},{code:"JP-41",name:"Saga"},{code:"JP-42",name:"Nagasaki"},{code:"JP-43",name:"Kumamoto"},{code:"JP-44",name:"Oita"},{code:"JP-45",name:"Miyazaki"},{code:"JP-46",name:"Kagoshima"},{code:"JP-47",name:"Okinawa"}
396],KE:[{code:"KE-110",name:"Nairobi Area"},{code:"KE-300",name:"Coast"},{code:"KE-500",name:"North-Eastern"},{code:"KE-600",name:"Nyanza"},{code:"KE-700",name:"Rift Valley"}],KG:[{code:"KG-B",name:"Batken"},{code:"KG-C",name:"Chu"},{code:"KG-GB",name:"Bishkek"},{code:"KG-J",name:"Jalal-Abad"},{code:"KG-N",name:"Naryn"},{code:"KG-O",name:"Osh"},{code:"KG-T",name:"Talas"},{code:"KG-Y",name:"Ysyk-Kol"}],KH:[{code:"KH-1",name:"Banteay Mean Chey"},{code:"KH-10",name:"Kracheh"},{code:"KH-11",name:"Mondol Kiri"},{code:"KH-12",name:"Phnom Penh"},{code:"KH-13",name:"Preah Vihear"},{code:"KH-14",name:"Prey Veaeng"},{code:"KH-15",name:"Pousaat"},{code:"KH-16",name:"Rotanak Kiri"},{code:"KH-17",name:"Siem Reab"},{code:"KH-18",name:"Krong Preah Sihanouk"},{code:"KH-19",name:"Stueng Traeng"},{code:"KH-2",name:"Baat Dambang"},{code:"KH-20",name:"Svaay Rieng"},{code:"KH-21",name:"Taakaev"},{code:"KH-22",name:"Otdar Mean Chey"},{code:"KH-23",name:"Krong Kaeb"},{code:"KH-24",name:"Krong Pailin"},{code:"KH-3",name:"Kampong Chaam"},{code:"KH-4",name:"Kampong Chhnang"},{code:"KH-5",name:"Kampong Spueu"},{code:"KH-6",name:"Kampong Thum"},{code:"KH-7",name:"Kampot"},{code:"KH-8",name:"Kandaal"},{code:"KH-9",name:"Kaoh Kong"}],KI:[{code:"KI-G",name:"Gilbert Islands"},{code:"KI-L",name:"Line Islands"}],KM:[{code:"KM-A",name:"Anjouan"},{code:"KM-G",name:"Grande Comore"},{code:"KM-M",name:"Moheli"}],KN:[{code:"KN-03",name:"Saint George Basseterre"},{code:"KN-10",name:"Saint Paul Charlestown"}],KP:[{code:"KP-01",name:"P'yongyang"},{code:"KP-02",name:"P'yongan-namdo"},{code:"KP-03",name:"P'yongan-bukto"},{code:"KP-04",name:"Chagang-do"},{code:"KP-05",name:"Hwanghae-namdo"},{code:"KP-06",name:"Hwanghae-bukto"},{code:"KP-07",name:"Kangwon-do"},{code:"KP-08",name:"Hamgyong-namdo"},{code:"KP-09",name:"Hamgyong-bukto"},{code:"KP-10",name:"Yanggang-do"},{code:"KP-13",name:"Nason (Najin-Sonbong)"}],KR:[{code:"KR-11",name:"Seoul"},{code:"KR-26",name:"Busan"},{code:"KR-27",name:"Daegu"},{code:"KR-28",name:"Incheon"},{code:"KR-29",name:"Gwangju"},{code:"KR-30",name:"Daejeon"},{code:"KR-31",name:"Ulsan"},{code:"KR-41",name:"Gyeonggi"},{code:"KR-42",name:"Gangwon"},{code:"KR-43",name:"Chungbuk"},{code:"KR-44",name:"Chungnam"},{code:"KR-45",name:"Jeonbuk"},{code:"KR-46",name:"Jeonnam"},{code:"KR-47",name:"Gyeongbuk"},{code:"KR-48",name:"Gyeongnam"},{code:"KR-49",name:"Jeju"}],KW:[{code:"KW-AH",name:"Al Ahmadi"},{code:"KW-FA",name:"Al Farwaniyah"},{code:"KW-HA",name:"Hawalli"},{code:"KW-JA",name:"Al Jahra"},{code:"KW-KU",name:"Al Asimah"},{code:"KW-MU",name:"Mubarak al Kabir"}],KZ:[{code:"KZ-AKM",name:"Aqmola oblysy"},{code:"KZ-AKT",name:"Aqtobe oblysy"},{code:"KZ-ALA",name:"Almaty"},{code:"KZ-ALM",name:"Almaty oblysy"},{code:"KZ-AST",name:"Astana"},{code:"KZ-ATY",name:"Atyrau oblysy"},{code:"KZ-KAR",name:"Qaraghandy oblysy"},{code:"KZ-KUS",name:"Qostanay oblysy"},{code:"KZ-KZY",name:"Qyzylorda oblysy"},{code:"KZ-MAN",name:"Mangghystau oblysy"},{code:"KZ-PAV",name:"Pavlodar oblysy"},{code:"KZ-SEV",name:"Soltustik Qazaqstan oblysy"},{code:"KZ-VOS",name:"Shyghys Qazaqstan oblysy"},{code:"KZ-YUZ",name:"Ongtustik Qazaqstan oblysy"},{code:"KZ-ZHA",name:"Zhambyl oblysy"}],LA:[{code:"LA-AT",name:"Attapu"},{code:"LA-BK",name:"Bokeo"},{code:"LA-BL",name:"Bolikhamxai"},{code:"LA-CH",name:"Champasak"},{code:"LA-HO",name:"Houaphan"},{code:"LA-KH",name:"Khammouan"},{code:"LA-LM",name:"Louang Namtha"},{code:"LA-LP",name:"Louangphabang"},{code:"LA-OU",name:"Oudomxai"},{code:"LA-PH",name:"Phongsali"},{code:"LA-SL",name:"Salavan"},{code:"LA-SV",name:"Savannakhet"},{code:"LA-VI",name:"Vientiane"},{code:"LA-XA",name:"Xaignabouli"},{code:"LA-XE",name:"Xekong"},{code:"LA-XI",name:"Xiangkhouang"}],LB:[{code:"LB-AK",name:"Aakkar"},{code:"LB-AS",name:"Liban-Nord"},{code:"LB-BA",name:"Beyrouth"},{code:"LB-BH",name:"Baalbek-Hermel"},{code:"LB-BI",name:"Beqaa"},{code:"LB-JA",name:"Liban-Sud"},{code:"LB-JL",name:"Mont-Liban"},{code:"LB-NA",name:"Nabatiye"}],LC:[{code:"LC-01",name:"Anse la Raye"},{code:"LC-02",name:"Castries"},{code:"LC-05",name:"Dennery"},{code:"LC-06",name:"Gros Islet"},{code:"LC-07",name:"Laborie"},{code:"LC-08",name:"Micoud"},{code:"LC-10",name:"Soufriere"},{code:"LC-11",name:"Vieux Fort"}],LI:[{code:"LI-01",name:"Balzers"},{code:"LI-02",name:"Eschen"},{code:"LI-03",name:"Gamprin"},{code:"LI-04",name:"Mauren"},{code:"LI-05",name:"Planken"},{code:"LI-06",name:"Ruggell"},{code:"LI-07",name:"Schaan"},{code:"LI-08",name:"Schellenberg"},{code:"LI-09",name:"Triesen"},{code:"LI-10",name:"Triesenberg"}
396,{code:"LI-11",name:"Vaduz"}],LK:[{code:"LK-1",name:"Western Province"},{code:"LK-2",name:"Central Province"},{code:"LK-3",name:"Southern Province"},{code:"LK-4",name:"Northern Province"},{code:"LK-5",name:"Eastern Province"},{code:"LK-6",name:"North Western Province"},{code:"LK-7",name:"North Central Province"},{code:"LK-8",name:"Uva Province"},{code:"LK-9",name:"Sabaragamuwa Province"}],LR:[{code:"LR-BG",name:"Bong"},{code:"LR-BM",name:"Bomi"},{code:"LR-CM",name:"Grand Cape Mount"},{code:"LR-GB",name:"Grand Bassa"},{code:"LR-GG",name:"Grand Gedeh"},{code:"LR-GK",name:"Grand Kru"},{code:"LR-GP",name:"Gbarpolu"},{code:"LR-LO",name:"Lofa"},{code:"LR-MG",name:"Margibi"},{code:"LR-MO",name:"Montserrado"},{code:"LR-MY",name:"Maryland"},{code:"LR-NI",name:"Nimba"},{code:"LR-RG",name:"River Gee"},{code:"LR-RI",name:"River Cess"},{code:"LR-SI",name:"Sinoe"}],LS:[{code:"LS-A",name:"Maseru"},{code:"LS-B",name:"Butha-Buthe"},{code:"LS-C",name:"Leribe"},{code:"LS-D",name:"Berea"},{code:"LS-E",name:"Mafeteng"},{code:"LS-F",name:"Mohale's Hoek"},{code:"LS-G",name:"Quthing"},{code:"LS-H",name:"Qacha's Nek"},{code:"LS-J",name:"Mokhotlong"},{code:"LS-K",name:"Thaba-Tseka"}],LT:[{code:"LT-AL",name:"Alytaus Apskritis"},{code:"LT-KL",name:"Klaipedos Apskritis"},{code:"LT-KU",name:"Kauno Apskritis"},{code:"LT-MR",name:"Marijampoles Apskritis"},{code:"LT-PN",name:"Panevezio Apskritis"},{code:"LT-SA",name:"Siauliu Apskritis"},{code:"LT-TA",name:"Taurages Apskritis"},{code:"LT-TE",name:"Telsiu Apskritis"},{code:"LT-UT",name:"Utenos Apskritis"},{code:"LT-VL",name:"Vilniaus Apskritis"}],LU:[{code:"LU-DI",name:"Diekirch"},{code:"LU-GR",name:"Grevenmacher"},{code:"LU-LU",name:"Luxembourg"}],LV:[{code:"LV-001",name:"Aglonas"},{code:"LV-002",name:"Aizkraukles"},{code:"LV-003",name:"Aizputes"},{code:"LV-005",name:"Alojas"},{code:"LV-007",name:"Aluksnes"},{code:"LV-011",name:"Adazu"},{code:"LV-012",name:"Babites"},{code:"LV-014",name:"Baltinavas"},{code:"LV-015",name:"Balvu"},{code:"LV-016",name:"Bauskas"},{code:"LV-017",name:"Beverinas"},{code:"LV-018",name:"Brocenu"},{code:"LV-020",name:"Carnikavas"},{code:"LV-021",name:"Cesvaines"},{code:"LV-022",name:"Cesu"},{code:"LV-023",name:"Ciblas"},{code:"LV-025",name:"Daugavpils"},{code:"LV-026",name:"Dobeles"},{code:"LV-027",name:"Dundagas"},{code:"LV-033",name:"Gulbenes"},{code:"LV-034",name:"Iecavas"},{code:"LV-037",name:"Incukalna"},{code:"LV-038",name:"Jaunjelgavas"},{code:"LV-039",name:"Jaunpiebalgas"},{code:"LV-040",name:"Jaunpils"},{code:"LV-041",name:"Jelgavas"},{code:"LV-042",name:"Jekabpils"},{code:"LV-046",name:"Kokneses"},{code:"LV-047",name:"Kraslavas"},{code:"LV-050",name:"Kuldigas"},{code:"LV-052",name:"Kekavas"},{code:"LV-057",name:"Lubanas"},{code:"LV-058",name:"Ludzas"},{code:"LV-059",name:"Madonas"},{code:"LV-061",name:"Malpils"},{code:"LV-067",name:"Ogres"},{code:"LV-068",name:"Olaines"},{code:"LV-069",name:"Ozolnieku"},{code:"LV-073",name:"Preilu"},{code:"LV-077",name:"Rezeknes"},{code:"LV-079",name:"Rojas"},{code:"LV-080",name:"Ropazu"},{code:"LV-082",name:"Rugaju"},{code:"LV-083",name:"Rundales"},{code:"LV-086",name:"Salacgrivas"},{code:"LV-088",name:"Saldus"},{code:"LV-090",name:"Sejas"},{code:"LV-091",name:"Siguldas"},{code:"LV-093",name:"Skrundas"},{code:"LV-095",name:"Stopinu"},{code:"LV-096",name:"Strencu"},{code:"LV-097",name:"Talsu"},{code:"LV-099",name:"Tukuma"},{code:"LV-100",name:"Vainodes"},{code:"LV-101",name:"Valkas"},{code:"LV-103",name:"Varkavas"},{code:"LV-105",name:"Vecumnieku"},{code:"LV-106",name:"Ventspils"},{code:"LV-JEL",name:"Jelgava"},{code:"LV-JUR",name:"Jurmala"},{code:"LV-LE",name:"Liepajas"},{code:"LV-LM",name:"Limbazu"},{code:"LV-LPX",name:"Liepaja"},{code:"LV-RI",name:"Rigas"},{code:"LV-RIX",name:"Riga"},{code:"LV-VM",name:"Valmieras"}],LY:[{code:"LY-BA",name:"Banghazi"},{code:"LY-BU",name:"Al Butnan"},{code:"LY-DR",name:"Darnah"},{code:"LY-GT",name:"Ghat"},{code:"LY-JA",name:"Al Jabal al Akhdar"},{code:"LY-JG",name:"Al Jabal al Gharbi"},{code:"LY-JI",name:"Al Jafarah"},{code:"LY-JU",name:"Al Jufrah"},{code:"LY-KF",name:"Al Kufrah"},{code:"LY-MB",name:"Al Marqab"},{code:"LY-MI",name:"Misratah"},{code:"LY-MJ",name:"Al Marj"},{code:"LY-MQ",name:"Murzuq"},{code:"LY-NL",name:"Nalut"},{code:"LY-NQ",name:"An Nuqat al Khams"},{code:"LY-SB",name:"Sabha"},{code:"LY-SR",name:"Surt"},{code:"LY-TB",name:"Tarabulus"},{code:"LY-WA",name:"Al Wahat"},{code:"LY-WD",name:"Wadi al Hayat"},{code:"LY-WS",name:"Wadi ash Shati'"},{code:"LY-ZA",name:"Az Zawiyah"}],MA:[{code:"MA-01",name:"Tanger-Tetouan"},{code:"MA-02",name:"Gharb-Chrarda-Beni Hssen"},{code:"MA-03",name:"Taza-Al Hoceima-Taounate"},{code:"MA-04",name:"L'Oriental"},{code:"MA-05",name:"Fes-Boulemane"}
396,{code:"MA-06",name:"Meknes-Tafilalet"},{code:"MA-07",name:"Rabat-Sale-Zemmour-Zaer"},{code:"MA-08",name:"Grand Casablanca"},{code:"MA-09",name:"Chaouia-Ouardigha"},{code:"MA-10",name:"Doukhala-Abda"},{code:"MA-11",name:"Marrakech-Tensift-Al Haouz"},{code:"MA-12",name:"Tadla-Azilal"},{code:"MA-13",name:"Souss-Massa-Draa"},{code:"MA-14",name:"Guelmim-Es Semara"}],MC:[{code:"MC-MO",name:"Monaco"}],MD:[{code:"MD-AN",name:"Anenii Noi"},{code:"MD-BA",name:"Balti"},{code:"MD-BD",name:"Bender"},{code:"MD-BR",name:"Briceni"},{code:"MD-BS",name:"Basarabeasca"},{code:"MD-CA",name:"Cahul"},{code:"MD-CL",name:"Calarasi"},{code:"MD-CM",name:"Cimislia"},{code:"MD-CR",name:"Criuleni"},{code:"MD-CS",name:"Causeni"},{code:"MD-CT",name:"Cantemir"},{code:"MD-CU",name:"Chisinau"},{code:"MD-DO",name:"Donduseni"},{code:"MD-DR",name:"Drochia"},{code:"MD-DU",name:"Dubasari"},{code:"MD-ED",name:"Edinet"},{code:"MD-FA",name:"Falesti"},{code:"MD-FL",name:"Floresti"},{code:"MD-GA",name:"Gagauzia, Unitatea teritoriala autonoma"},{code:"MD-GL",name:"Glodeni"},{code:"MD-HI",name:"Hincesti"},{code:"MD-IA",name:"Ialoveni"},{code:"MD-LE",name:"Leova"},{code:"MD-NI",name:"Nisporeni"},{code:"MD-OC",name:"Ocnita"},{code:"MD-OR",name:"Orhei"},{code:"MD-RE",name:"Rezina"},{code:"MD-RI",name:"Riscani"},{code:"MD-SD",name:"Soldanesti"},{code:"MD-SI",name:"Singerei"},{code:"MD-SN",name:"Stinga Nistrului, unitatea teritoriala din"},{code:"MD-SO",name:"Soroca"},{code:"MD-ST",name:"Straseni"},{code:"MD-SV",name:"Stefan Voda"},{code:"MD-TA",name:"Taraclia"},{code:"MD-TE",name:"Telenesti"},{code:"MD-UN",name:"Ungheni"}],ME:[{code:"ME-02",name:"Bar"},{code:"ME-05",name:"Budva"},{code:"ME-06",name:"Cetinje"},{code:"ME-07",name:"Danilovgrad"},{code:"ME-08",name:"Herceg-Novi"},{code:"ME-09",name:"Kolasin"},{code:"ME-10",name:"Kotor"},{code:"ME-11",name:"Mojkovac"},{code:"ME-12",name:"Niksic"},{code:"ME-16",name:"Podgorica"},{code:"ME-19",name:"Tivat"},{code:"ME-20",name:"Ulcinj"},{code:"ME-21",name:"Zabljak"}],MG:[{code:"MG-A",name:"Toamasina"},{code:"MG-D",name:"Antsiranana"},{code:"MG-F",name:"Fianarantsoa"},{code:"MG-M",name:"Mahajanga"},{code:"MG-T",name:"Antananarivo"},{code:"MG-U",name:"Toliara"}],MH:[{code:"MH-ALK",name:"Ailuk Atoll"},{code:"MH-ALL",name:"Ailinglaplap Atoll"},{code:"MH-ARN",name:"Arno Atoll"},{code:"MH-AUR",name:"Aur Atoll"},{code:"MH-EBO",name:"Ebon Atoll"},{code:"MH-ENI",name:"Enewetak Atoll"},{code:"MH-JAB",name:"Jabat Island"},{code:"MH-JAL",name:"Jaluit Atoll"},{code:"MH-KIL",name:"Kili Island"},{code:"MH-KWA",name:"Kwajalein Atoll"},{code:"MH-LAE",name:"Lae Atoll"},{code:"MH-LIB",name:"Lib Island"},{code:"MH-LIK",name:"Likiep Atoll"},{code:"MH-MAJ",name:"Majuro Atoll"},{code:"MH-MAL",name:"Maloelap Atoll"},{code:"MH-MEJ",name:"Mejit Island"},{code:"MH-MIL",name:"Mili Atoll"},{code:"MH-NMK",name:"Namdrik Atoll"},{code:"MH-NMU",name:"Namu Atoll"},{code:"MH-RON",name:"Rongelap Atoll"},{code:"MH-UJA",name:"Ujae Atoll"},{code:"MH-UTI",name:"Utrik Atoll"},{code:"MH-WTH",name:"Wotho Atoll"},{code:"MH-WTJ",name:"Wotje Atoll"}],MK:[{code:"MK-02",name:"Aracinovo"},{code:"MK-03",name:"Berovo"},{code:"MK-04",name:"Bitola"},{code:"MK-05",name:"Bogdanci"},{code:"MK-06",name:"Bogovinje"},{code:"MK-07",name:"Bosilovo"},{code:"MK-08",name:"Brvenica"},{code:"MK-10",name:"Valandovo"},{code:"MK-11",name:"Vasilevo"},{code:"MK-12",name:"Vevcani"},{code:"MK-13",name:"Veles"},{code:"MK-14",name:"Vinica"},{code:"MK-16",name:"Vrapciste"},{code:"MK-18",name:"Gevgelija"},{code:"MK-19",name:"Gostivar"},{code:"MK-20",name:"Gradsko"},{code:"MK-21",name:"Debar"},{code:"MK-22",name:"Debarca"},{code:"MK-23",name:"Delcevo"},{code:"MK-24",name:"Demir Kapija"},{code:"MK-25",name:"Demir Hisar"},{code:"MK-26",name:"Dojran"},{code:"MK-27",name:"Dolneni"},{code:"MK-30",name:"Zelino"},{code:"MK-32",name:"Zelenikovo"},{code:"MK-33",name:"Zrnovci"},{code:"MK-34",name:"Ilinden"},{code:"MK-35",name:"Jegunovce"},{code:"MK-36",name:"Kavadarci"},{code:"MK-37",name:"Karbinci"},{code:"MK-40",name:"Kicevo"},{code:"MK-41",name:"Konce"},{code:"MK-42",name:"Kocani"},{code:"MK-43",name:"Kratovo"}
396,{code:"MK-44",name:"Kriva Palanka"},{code:"MK-45",name:"Krivogastani"},{code:"MK-46",name:"Krusevo"},{code:"MK-47",name:"Kumanovo"},{code:"MK-48",name:"Lipkovo"},{code:"MK-49",name:"Lozovo"},{code:"MK-50",name:"Mavrovo i Rostusa"},{code:"MK-51",name:"Makedonska Kamenica"},{code:"MK-52",name:"Makedonski Brod"},{code:"MK-53",name:"Mogila"},{code:"MK-54",name:"Negotino"},{code:"MK-55",name:"Novaci"},{code:"MK-56",name:"Novo Selo"},{code:"MK-58",name:"Ohrid"},{code:"MK-59",name:"Petrovec"},{code:"MK-60",name:"Pehcevo"},{code:"MK-61",name:"Plasnica"},{code:"MK-62",name:"Prilep"},{code:"MK-63",name:"Probistip"},{code:"MK-64",name:"Radovis"},{code:"MK-65",name:"Rankovce"},{code:"MK-66",name:"Resen"},{code:"MK-67",name:"Rosoman"},{code:"MK-69",name:"Sveti Nikole"},{code:"MK-70",name:"Sopiste"},{code:"MK-71",name:"Staro Nagoricane"},{code:"MK-72",name:"Struga"},{code:"MK-73",name:"Strumica"},{code:"MK-74",name:"Studenicani"},{code:"MK-75",name:"Tearce"},{code:"MK-76",name:"Tetovo"},{code:"MK-78",name:"Centar Zupa"},{code:"MK-80",name:"Caska"},{code:"MK-81",name:"Cesinovo-Oblesevo"},{code:"MK-82",name:"Cucer Sandevo"},{code:"MK-83",name:"Stip"},{code:"MK-85",name:"Skopje"}],ML:[{code:"ML-1",name:"Kayes"},{code:"ML-2",name:"Koulikoro"},{code:"ML-3",name:"Sikasso"},{code:"ML-4",name:"Segou"},{code:"ML-5",name:"Mopti"},{code:"ML-6",name:"Tombouctou"},{code:"ML-7",name:"Gao"},{code:"ML-8",name:"Kidal"},{code:"ML-BKO",name:"Bamako"}],MM:[{code:"MM-01",name:"Sagaing"},{code:"MM-02",name:"Bago"},{code:"MM-03",name:"Magway"},{code:"MM-04",name:"Mandalay"},{code:"MM-05",name:"Taninthayi"},{code:"MM-06",name:"Yangon"},{code:"MM-07",name:"Ayeyawady"},{code:"MM-11",name:"Kachin"},{code:"MM-12",name:"Kayah"},{code:"MM-13",name:"Kayin"},{code:"MM-14",name:"Chin"},{code:"MM-15",name:"Mon"},{code:"MM-16",name:"Rakhine"},{code:"MM-17",name:"Shan"},{code:"MM-18",name:"Nay Pyi Taw"}],MN:[{code:"MN-035",name:"Orhon"},{code:"MN-037",name:"Darhan uul"},{code:"MN-039",name:"Hentiy"},{code:"MN-041",name:"Hovsgol"},{code:"MN-043",name:"Hovd"},{code:"MN-046",name:"Uvs"},{code:"MN-047",name:"Tov"},{code:"MN-049",name:"Selenge"},{code:"MN-051",name:"Suhbaatar"},{code:"MN-053",name:"Omnogovi"},{code:"MN-055",name:"Ovorhangay"},{code:"MN-057",name:"Dzavhan"},{code:"MN-059",name:"Dundgovi"},{code:"MN-061",name:"Dornod"},{code:"MN-063",name:"Dornogovi"},{code:"MN-064",name:"Govi-Sumber"},{code:"MN-065",name:"Govi-Altay"},{code:"MN-067",name:"Bulgan"},{code:"MN-069",name:"Bayanhongor"},{code:"MN-071",name:"Bayan-Olgiy"},{code:"MN-073",name:"Arhangay"},{code:"MN-1",name:"Ulaanbaatar"}],MR:[{code:"MR-01",name:"Hodh Ech Chargui"},{code:"MR-02",name:"Hodh El Gharbi"},{code:"MR-03",name:"Assaba"},{code:"MR-04",name:"Gorgol"},{code:"MR-05",name:"Brakna"},{code:"MR-06",name:"Trarza"},{code:"MR-07",name:"Adrar"},{code:"MR-08",name:"Dakhlet Nouadhibou"},{code:"MR-09",name:"Tagant"},{code:"MR-10",name:"Guidimaka"},{code:"MR-11",name:"Tiris Zemmour"},{code:"MR-12",name:"Inchiri"},{code:"MR-NKC",name:"Nouakchott"}],MU:[{code:"MU-BL",name:"Black River"},{code:"MU-FL",name:"Flacq"},{code:"MU-GP",name:"Grand Port"},{code:"MU-MO",name:"Moka"},{code:"MU-PA",name:"Pamplemousses"},{code:"MU-PL",name:"Port Louis"},{code:"MU-PW",name:"Plaines Wilhems"},{code:"MU-RR",name:"Riviere du Rempart"},{code:"MU-SA",name:"Savanne"}],MV:[{code:"MV-01",name:"Seenu"},{code:"MV-02",name:"Alifu"},{code:"MV-05",name:"Laamu"},{code:"MV-07",name:"Haa Alifu"},{code:"MV-08",name:"Thaa"},{code:"MV-12",name:"Meemu"},{code:"MV-13",name:"Raa"},{code:"MV-17",name:"Dhaalu"},{code:"MV-20",name:"Baa"},{code:"MV-23",name:"Haa Dhaalu"},{code:"MV-24",name:"Shaviyani"},{code:"MV-25",name:"Noonu"},{code:"MV-26",name:"Kaafu"},{code:"MV-28",name:"Gaafu Dhaalu"},{code:"MV-MLE",name:"Maale"}],MW:[{code:"MW-BA",name:"Balaka"},{code:"MW-BL",name:"Blantyre"},{code:"MW-CK",name:"Chikwawa"},{code:"MW-CR",name:"Chiradzulu"},{code:"MW-CT",name:"Chitipa"},{code:"MW-DE",name:"Dedza"},{code:"MW-DO",name:"Dowa"},{code:"MW-KR",name:"Karonga"},{code:"MW-KS",name:"Kasungu"},{code:"MW-LI",name:"Lilongwe"},{code:"MW-LK",name:"Likoma"},{code:"MW-MC",name:"Mchinji"},{code:"MW-MG",name:"Mangochi"},{code:"MW-MH",name:"Machinga"},{code:"MW-MU",name:"Mulanje"},{code:"MW-MW",name:"Mwanza"},{code:"MW-MZ",name:"Mzimba"},{code:"MW-NB",name:"Nkhata Bay"},{code:"MW-NE",name:"Neno"},{code:"MW-NI",name:"Ntchisi"},{code:"MW-NK",name:"Nkhotakota"},{code:"MW-NS",name:"Nsanje"},{code:"MW-NU",name:"Ntcheu"},{code:"MW-PH",name:"Phalombe"},{code:"MW-RU",name:"Rumphi"},{code:"MW-SA",name:"Salima"},{code:"MW-TH",name:"Thyolo"},{code:"MW-ZO",name:"Zomba"}
396],MX:[{code:"MX-AGU",name:"Aguascalientes"},{code:"MX-BCN",name:"Baja California"},{code:"MX-BCS",name:"Baja California Sur"},{code:"MX-CAM",name:"Campeche"},{code:"MX-CHH",name:"Chihuahua"},{code:"MX-CHP",name:"Chiapas"},{code:"MX-COA",name:"Coahuila"},{code:"MX-COL",name:"Colima"},{code:"MX-DIF",name:"Distrito Federal"},{code:"MX-DUR",name:"Durango"},{code:"MX-GRO",name:"Guerrero"},{code:"MX-GUA",name:"Guanajuato"},{code:"MX-HID",name:"Hidalgo"},{code:"MX-JAL",name:"Jalisco"},{code:"MX-MEX",name:"Mexico"},{code:"MX-MIC",name:"Michoacan"},{code:"MX-MOR",name:"Morelos"},{code:"MX-NAY",name:"Nayarit"},{code:"MX-NLE",name:"Nuevo Leon"},{code:"MX-OAX",name:"Oaxaca"},{code:"MX-PUE",name:"Puebla"},{code:"MX-QUE",name:"Queretaro"},{code:"MX-ROO",name:"Quintana Roo"},{code:"MX-SIN",name:"Sinaloa"},{code:"MX-SLP",name:"San Luis Potosi"},{code:"MX-SON",name:"Sonora"},{code:"MX-TAB",name:"Tabasco"},{code:"MX-TAM",name:"Tamaulipas"},{code:"MX-TLA",name:"Tlaxcala"},{code:"MX-VER",name:"Veracruz"},{code:"MX-YUC",name:"Yucatan"},{code:"MX-ZAC",name:"Zacatecas"}],MY:[{code:"MY-01",name:"Johor"},{code:"MY-02",name:"Kedah"},{code:"MY-03",name:"Kelantan"},{code:"MY-04",name:"Melaka"},{code:"MY-05",name:"Negeri Sembilan"},{code:"MY-06",name:"Pahang"},{code:"MY-07",name:"Pulau Pinang"},{code:"MY-08",name:"Perak"},{code:"MY-09",name:"Perlis"},{code:"MY-10",name:"Selangor"},{code:"MY-11",name:"Terengganu"},{code:"MY-12",name:"Sabah"},{code:"MY-13",name:"Sarawak"},{code:"MY-14",name:"Wilayah Persekutuan Kuala Lumpur"},{code:"MY-15",name:"Wilayah Persekutuan Labuan"},{code:"MY-16",name:"Wilayah Persekutuan Putrajaya"}],MZ:[{code:"MZ-A",name:"Niassa"},{code:"MZ-B",name:"Manica"},{code:"MZ-G",name:"Gaza"},{code:"MZ-I",name:"Inhambane"},{code:"MZ-L",name:"Maputo"},{code:"MZ-N",name:"Nampula"},{code:"MZ-P",name:"Cabo Delgado"},{code:"MZ-Q",name:"Zambezia"},{code:"MZ-S",name:"Sofala"},{code:"MZ-T",name:"Tete"}],NA:[{code:"NA-CA",name:"Zambezi"},{code:"NA-ER",name:"Erongo"},{code:"NA-HA",name:"Hardap"},{code:"NA-KA",name:"Karas"},{code:"NA-KH",name:"Khomas"},{code:"NA-KU",name:"Kunene"},{code:"NA-OD",name:"Otjozondjupa"},{code:"NA-OH",name:"Omaheke"},{code:"NA-ON",name:"Oshana"},{code:"NA-OS",name:"Omusati"},{code:"NA-OT",name:"Oshikoto"},{code:"NA-OW",name:"Ohangwena"}],NE:[{code:"NE-1",name:"Agadez"},{code:"NE-2",name:"Diffa"},{code:"NE-3",name:"Dosso"},{code:"NE-4",name:"Maradi"},{code:"NE-5",name:"Tahoua"},{code:"NE-6",name:"Tillaberi"},{code:"NE-7",name:"Zinder"},{code:"NE-8",name:"Niamey"}],NG:[{code:"NG-AB",name:"Abia"},{code:"NG-AD",name:"Adamawa"},{code:"NG-AK",name:"Akwa Ibom"},{code:"NG-AN",name:"Anambra"},{code:"NG-BA",name:"Bauchi"},{code:"NG-BE",name:"Benue"},{code:"NG-BO",name:"Borno"},{code:"NG-BY",name:"Bayelsa"},{code:"NG-CR",name:"Cross River"},{code:"NG-DE",name:"Delta"},{code:"NG-EB",name:"Ebonyi"},{code:"NG-ED",name:"Edo"},{code:"NG-EK",name:"Ekiti"},{code:"NG-EN",name:"Enugu"},{code:"NG-FC",name:"Abuja Federal Capital Territory"},{code:"NG-GO",name:"Gombe"},{code:"NG-IM",name:"Imo"},{code:"NG-JI",name:"Jigawa"},{code:"NG-KD",name:"Kaduna"},{code:"NG-KE",name:"Kebbi"},{code:"NG-KN",name:"Kano"},{code:"NG-KO",name:"Kogi"},{code:"NG-KT",name:"Katsina"},{code:"NG-KW",name:"Kwara"},{code:"NG-LA",name:"Lagos"},{code:"NG-NA",name:"Nasarawa"},{code:"NG-NI",name:"Niger"},{code:"NG-OG",name:"Ogun"},{code:"NG-ON",name:"Ondo"},{code:"NG-OS",name:"Osun"},{code:"NG-OY",name:"Oyo"},{code:"NG-PL",name:"Plateau"},{code:"NG-RI",name:"Rivers"},{code:"NG-SO",name:"Sokoto"},{code:"NG-TA",name:"Taraba"},{code:"NG-YO",name:"Yobe"},{code:"NG-ZA",name:"Zamfara"}],NI:[{code:"NI-AN",name:"Atlantico Norte"},{code:"NI-AS",name:"Atlantico Sur"},{code:"NI-BO",name:"Boaco"},{code:"NI-CA",name:"Carazo"},{code:"NI-CI",name:"Chinandega"},{code:"NI-CO",name:"Chontales"},{code:"NI-ES",name:"Esteli"},{code:"NI-GR",name:"Granada"},{code:"NI-JI",name:"Jinotega"},{code:"NI-LE",name:"Leon"},{code:"NI-MD",name:"Madriz"},{code:"NI-MN",name:"Managua"},{code:"NI-MS",name:"Masaya"},{code:"NI-MT",name:"Matagalpa"},{code:"NI-NS",name:"Nueva Segovia"},{code:"NI-RI",name:"Rivas"},{code:"NI-SJ",name:"Rio San Juan"}],NL:[{code:"NL-DR",name:"Drenthe"},{code:"NL-FL",name:"Flevoland"},{code:"NL-FR",name:"Fryslan"},{code:"NL-GE",name:"Gelderland"},{code:"NL-GR",name:"Groningen"},{code:"NL-LI",name:"Limburg"},{code:"NL-NB",name:"Noord-Brabant"},{code:"NL-NH",name:"Noord-Holland"},{code:"NL-OV",name:"Overijssel"},{code:"NL-UT",name:"Utrecht"},{code:"NL-ZE",name:"Zeeland"},{code:"NL-ZH",name:"Zuid-Holland"}
396],NO:[{code:"NO-01",name:"Ostfold"},{code:"NO-02",name:"Akershus"},{code:"NO-03",name:"Oslo"},{code:"NO-04",name:"Hedmark"},{code:"NO-05",name:"Oppland"},{code:"NO-06",name:"Buskerud"},{code:"NO-07",name:"Vestfold"},{code:"NO-08",name:"Telemark"},{code:"NO-09",name:"Aust-Agder"},{code:"NO-10",name:"Vest-Agder"},{code:"NO-11",name:"Rogaland"},{code:"NO-12",name:"Hordaland"},{code:"NO-14",name:"Sogn og Fjordane"},{code:"NO-15",name:"More og Romsdal"},{code:"NO-16",name:"Sor-Trondelag"},{code:"NO-17",name:"Nord-Trondelag"},{code:"NO-18",name:"Nordland"},{code:"NO-19",name:"Troms"},{code:"NO-20",name:"Finnmark"}],NP:[{code:"NP-BA",name:"Bagmati"},{code:"NP-BH",name:"Bheri"},{code:"NP-DH",name:"Dhawalagiri"},{code:"NP-GA",name:"Gandaki"},{code:"NP-JA",name:"Janakpur"},{code:"NP-KA",name:"Karnali"},{code:"NP-KO",name:"Kosi"},{code:"NP-LU",name:"Lumbini"},{code:"NP-MA",name:"Mahakali"},{code:"NP-ME",name:"Mechi"},{code:"NP-NA",name:"Narayani"},{code:"NP-RA",name:"Rapti"},{code:"NP-SA",name:"Sagarmatha"},{code:"NP-SE",name:"Seti"}],NR:[{code:"NR-14",name:"Yaren"}],NZ:[{code:"NZ-AUK",name:"Auckland"},{code:"NZ-BOP",name:"Bay of Plenty"},{code:"NZ-CAN",name:"Canterbury"},{code:"NZ-CIT",name:"Chatham Islands"},{code:"NZ-GIS",name:"Gisborne"},{code:"NZ-HKB",name:"Hawke's Bay"},{code:"NZ-MBH",name:"Marlborough"},{code:"NZ-MWT",name:"Manawatu-Wanganui"},{code:"NZ-NSN",name:"Nelson"},{code:"NZ-NTL",name:"Northland"},{code:"NZ-OTA",name:"Otago"},{code:"NZ-STL",name:"Southland"},{code:"NZ-TAS",name:"Tasman"},{code:"NZ-TKI",name:"Taranaki"},{code:"NZ-WGN",name:"Wellington"},{code:"NZ-WKO",name:"Waikato"},{code:"NZ-WTC",name:"West Coast"}],OM:[{code:"OM-BJ",name:"Janub al Batinah"},{code:"OM-BS",name:"Shamal al Batinah"},{code:"OM-BU",name:"Al Buraymi"},{code:"OM-DA",name:"Ad Dakhiliyah"},{code:"OM-MA",name:"Masqat"},{code:"OM-MU",name:"Musandam"},{code:"OM-SJ",name:"Janub ash Sharqiyah"},{code:"OM-SS",name:"Shamal ash Sharqiyah"},{code:"OM-WU",name:"Al Wusta"},{code:"OM-ZA",name:"Az Zahirah"},{code:"OM-ZU",name:"Zufar"}],PA:[{code:"PA-1",name:"Bocas del Toro"},{code:"PA-2",name:"Cocle"},{code:"PA-3",name:"Colon"},{code:"PA-4",name:"Chiriqui"},{code:"PA-5",name:"Darien"},{code:"PA-6",name:"Herrera"},{code:"PA-7",name:"Los Santos"},{code:"PA-8",name:"Panama"},{code:"PA-9",name:"Veraguas"},{code:"PA-KY",name:"San Blas"}],PE:[{code:"PE-AMA",name:"Amazonas"},{code:"PE-ANC",name:"Ancash"},{code:"PE-APU",name:"Apurimac"},{code:"PE-ARE",name:"Arequipa"},{code:"PE-AYA",name:"Ayacucho"},{code:"PE-CAJ",name:"Cajamarca"},{code:"PE-CAL",name:"Callao"},{code:"PE-CUS",name:"Cusco"},{code:"PE-HUC",name:"Huanuco"},{code:"PE-HUV",name:"Huancavelica"},{code:"PE-ICA",name:"Ica"},{code:"PE-JUN",name:"Junin"},{code:"PE-LAL",name:"La Libertad"},{code:"PE-LAM",name:"Lambayeque"},{code:"PE-LIM",name:"Lima"},{code:"PE-LOR",name:"Loreto"},{code:"PE-MDD",name:"Madre de Dios"},{code:"PE-MOQ",name:"Moquegua"},{code:"PE-PAS",name:"Pasco"},{code:"PE-PIU",name:"Piura"},{code:"PE-PUN",name:"Puno"},{code:"PE-SAM",name:"San Martin"},{code:"PE-TAC",name:"Tacna"},{code:"PE-TUM",name:"Tumbes"},{code:"PE-UCA",name:"Ucayali"}],PG:[{code:"PG-CPK",name:"Chimbu"},{code:"PG-EBR",name:"East New Britain"},{code:"PG-EHG",name:"Eastern Highlands"},{code:"PG-EPW",name:"Enga"},{code:"PG-ESW",name:"East Sepik"},{code:"PG-GPK",name:"Gulf"},{code:"PG-MBA",name:"Milne Bay"},{code:"PG-MPL",name:"Morobe"},{code:"PG-MPM",name:"Madang"},{code:"PG-MRL",name:"Manus"},{code:"PG-NCD",name:"National Capital District"},{code:"PG-NIK",name:"New Ireland"},{code:"PG-NPP",name:"Northern"},{code:"PG-NSB",name:"Bougainville"},{code:"PG-SAN",name:"West Sepik"},{code:"PG-SHM",name:"Southern Highlands"},{code:"PG-WBK",name:"West New Britain"},{code:"PG-WHM",name:"Western Highlands"},{code:"PG-WPD",name:"Western"}],PH:[{code:"PH-00",name:"National Capital Region"},{code:"PH-ABR",name:"Abra"},{code:"PH-AGN",name:"Agusan del Norte"},{code:"PH-AGS",name:"Agusan del Sur"},{code:"PH-AKL",name:"Aklan"},{code:"PH-ALB",name:"Albay"},{code:"PH-ANT",name:"Antique"},{code:"PH-APA",name:"Apayao"},{code:"PH-AUR",name:"Aurora"},{code:"PH-BAN",name:"Bataan"},{code:"PH-BAS",name:"Basilan"},{code:"PH-BEN",name:"Benguet"},{code:"PH-BOH",name:"Bohol"},{code:"PH-BTG",name:"Batangas"},{code:"PH-BTN",name:"Batanes"},{code:"PH-BUK",name:"Bukidnon"},{code:"PH-BUL",name:"Bulacan"},{code:"PH-CAG",name:"Cagayan"},{code:"PH-CAM",name:"Camiguin"},{code:"PH-CAN",name:"Camarines Norte"},{code:"PH-CAP",name:"Capiz"},{code:"PH-CAS",name:"Camarines Sur"},{code:"PH-CAT",name:"Catanduanes"},{code:"PH-CAV",name:"Cavite"},{code:"PH-CEB",name:"Cebu"},{code:"PH-DAO",name:"Davao Oriental"},{code:"PH-DAS",name:"Davao del Sur"},{code:"PH-EAS",name:"Eastern Samar"},{code:"PH-IFU",name:"Ifugao"},{code:"PH-ILI",name:"Iloilo"},{code:"PH-ILN",name:"Ilocos Norte"},{code:"PH-ILS",name:"Ilocos Sur"},{code:"PH-ISA",name:"Isabela"},{code:"PH-KAL",name:"Kalinga"},{code:"PH-LAG",name:"Laguna"},{code:"PH-LAN",name:"Lanao del Norte"},{code:"PH-LAS",name:"Lanao del Sur"},{code:"PH-LEY",name:"Leyte"},{code:"PH-LUN",name:"La Union"},{code:"PH-MAD",name:"Marinduque"},{code:"PH-MAG",name:"Maguindanao"},{code:"PH-MAS",name:"Masbate"},{code:"PH-MDC",name:"Mindoro Occidental"},{code:"PH-MDR",name:"Mindoro Oriental"},{code:"PH-MOU",name:"Mountain Province"},{code:"PH-MSC",name:"Misamis Occidental"},{code:"PH-MSR",name:"Misamis Oriental"},{code:"PH-NCO",name:"Cotabato"},{code:"PH-NEC",name:"Negros Occidental"},{code:"PH-NER",name:"Negros Oriental"},{code:"PH-NSA",name:"Northern Samar"},{code:"PH-NUE",name:"Nueva Ecija"},{code:"PH-NUV",name:"Nueva Vizcaya"},{code:"PH-PAM",name:"Pampanga"},{code:"PH-PAN",name:"Pangasinan"},{code:"PH-PLW",name:"Palawan"},{code:"PH-QUE",name:"Quezon"},{code:"PH-QUI",name:"Quirino"},{code:"PH-RIZ",name:"Rizal"},{code:"PH-ROM",name:"Romblon"},{code:"PH-SCO",name:"South Cotabato"},{code:"PH-SIG",name:"Siquijor"},{code:"PH-SLE",name:"Southern Leyte"},{code:"PH-SLU",name:"Sulu"},{code:"PH-SOR",name:"Sorsogon"},{code:"PH-SUK",name:"Sultan Kudarat"},{code:"PH-SUN",name:"Surigao del Norte"},{code:"PH-SUR",name:"Surigao del Sur"},{code:"PH-TAR",name:"Tarlac"},{code:"PH-TAW",name:"Tawi-Tawi"},{code:"PH-WSA",name:"Samar (Western Samar)"},{code:"PH-ZAN",name:"Zamboanga del Norte"},{code:"PH-ZAS",name:"Zamboanga del Sur"},{code:"PH-ZMB",name:"Zambales"}],PK:[{code:"PK-BA",name:"Balochistan"},{code:"PK-GB",name:"Gilgit-Baltistan"},{code:"PK-IS",name:"Islamabad"},{code:"PK-JK",name:"Azad Kashmir"},{code:"PK-KP",name:"Khyber Pakhtunkhwa"},{code:"PK-PB",name:"Punjab"},{code:"PK-SD",name:"Sindh"},{code:"PK-TA",name:"Federally Administered Tribal Areas"}],PL:[{code:"PL-DS",name:"Dolnoslaskie"},{code:"PL-KP",name:"Kujawsko-Pomorskie"},{code:"PL-LB",name:"Lubuskie"},{code:"PL-LD",name:"Lodzkie"},{code:"PL-LU",name:"Lubelskie"},{code:"PL-MA",name:"Malopolskie"},{code:"PL-MZ",name:"Mazowieckie"},{code:"PL-OP",name:"Opolskie"},{code:"PL-PD",name:"Podlaskie"},{code:"PL-PK",name:"Podkarpackie"},{code:"PL-PM",name:"Pomorskie"},{code:"PL-SK",name:"Swietokrzyskie"},{code:"PL-SL",name:"Slaskie"},{code:"PL-WN",name:"Warminsko-Mazurskie"},{code:"PL-WP",name:"Wielkopolskie"},{code:"PL-ZP",name:"Zachodniopomorskie"}],PT:[{code:"PT-01",name:"Aveiro"},{code:"PT-02",name:"Beja"},{code:"PT-03",name:"Braga"},{code:"PT-04",name:"Braganca"},{code:"PT-05",name:"Castelo Branco"},{code:"PT-06",name:"Coimbra"},{code:"PT-07",name:"Evora"},{code:"PT-08",name:"Faro"},{code:"PT-09",name:"Guarda"},{code:"PT-10",name:"Leiria"},{code:"PT-11",name:"Lisboa"},{code:"PT-12",name:"Portalegre"},{code:"PT-13",name:"Porto"},{code:"PT-14",name:"Santarem"},{code:"PT-15",name:"Setubal"},{code:"PT-16",name:"Viana do Castelo"},{code:"PT-17",name:"Vila Real"},{code:"PT-18",name:"Viseu"},{code:"PT-20",name:"Regiao Autonoma dos Acores"},{code:"PT-30",name:"Regiao Autonoma da Madeira"}],PW:[{code:"PW-002",name:"Aimeliik"},{code:"PW-004",name:"Airai"},{code:"PW-010",name:"Angaur"},{code:"PW-100",name:"Kayangel"},{code:"PW-150",name:"Koror"},{code:"PW-212",name:"Melekeok"},{code:"PW-214",name:"Ngaraard"},{code:"PW-218",name:"Ngarchelong"},{code:"PW-222",name:"Ngardmau"},{code:"PW-224",name:"Ngatpang"},{code:"PW-228",name:"Ngiwal"},{code:"PW-350",name:"Peleliu"}],PY:[{code:"PY-1",name:"Concepcion"},{code:"PY-10",name:"Alto Parana"},{code:"PY-11",name:"Central"},{code:"PY-12",name:"Neembucu"},{code:"PY-13",name:"Amambay"},{code:"PY-14",name:"Canindeyu"},{code:"PY-15",name:"Presidente Hayes"},{code:"PY-16",name:"Alto Paraguay"},{code:"PY-19",name:"Boqueron"},{code:"PY-2",name:"San Pedro"},{code:"PY-3",name:"Cordillera"},{code:"PY-4",name:"Guaira"},{code:"PY-5",name:"Caaguazu"},{code:"PY-6",name:"Caazapa"},{code:"PY-7",name:"Itapua"},{code:"PY-8",name:"Misiones"},{code:"PY-9",name:"Paraguari"},{code:"PY-ASU",name:"Asuncion"}],QA:[{code:"QA-DA",name:"Ad Dawhah"},{code:"QA-KH",name:"Al Khawr wa adh Dhakhirah"},{code:"QA-MS",name:"Ash Shamal"},{code:"QA-RA",name:"Ar Rayyan"},{code:"QA-US",name:"Umm Salal"},{code:"QA-WA",name:"Al Wakrah"},{code:"QA-ZA",name:"Az Za'ayin"}],RO:[{code:"RO-AB",name:"Alba"},{code:"RO-AG",name:"Arges"},{code:"RO-AR",name:"Arad"},{code:"RO-B",name:"Bucuresti"},{code:"RO-BC",name:"Bacau"},{code:"RO-BH",name:"Bihor"}
396,{code:"RO-BN",name:"Bistrita-Nasaud"},{code:"RO-BR",name:"Braila"},{code:"RO-BT",name:"Botosani"},{code:"RO-BV",name:"Brasov"},{code:"RO-BZ",name:"Buzau"},{code:"RO-CJ",name:"Cluj"},{code:"RO-CL",name:"Calarasi"},{code:"RO-CS",name:"Caras-Severin"},{code:"RO-CT",name:"Constanta"},{code:"RO-CV",name:"Covasna"},{code:"RO-DB",name:"Dambovita"},{code:"RO-DJ",name:"Dolj"},{code:"RO-GJ",name:"Gorj"},{code:"RO-GL",name:"Galati"},{code:"RO-GR",name:"Giurgiu"},{code:"RO-HD",name:"Hunedoara"},{code:"RO-HR",name:"Harghita"},{code:"RO-IF",name:"Ilfov"},{code:"RO-IL",name:"Ialomita"},{code:"RO-IS",name:"Iasi"},{code:"RO-MH",name:"Mehedinti"},{code:"RO-MM",name:"Maramures"},{code:"RO-MS",name:"Mures"},{code:"RO-NT",name:"Neamt"},{code:"RO-OT",name:"Olt"},{code:"RO-PH",name:"Prahova"},{code:"RO-SB",name:"Sibiu"},{code:"RO-SJ",name:"Salaj"},{code:"RO-SM",name:"Satu Mare"},{code:"RO-SV",name:"Suceava"},{code:"RO-TL",name:"Tulcea"},{code:"RO-TM",name:"Timis"},{code:"RO-TR",name:"Teleorman"},{code:"RO-VL",name:"Valcea"},{code:"RO-VN",name:"Vrancea"},{code:"RO-VS",name:"Vaslui"}],RU:[{code:"RU-AD",name:"Adygeya, Respublika"},{code:"RU-AL",name:"Altay, Respublika"},{code:"RU-ALT",name:"Altayskiy kray"},{code:"RU-AMU",name:"Amurskaya oblast'"},{code:"RU-ARK",name:"Arkhangel'skaya oblast'"},{code:"RU-AST",name:"Astrakhanskaya oblast'"},{code:"RU-BA",name:"Bashkortostan, Respublika"},{code:"RU-BEL",name:"Belgorodskaya oblast'"},{code:"RU-BRY",name:"Bryanskaya oblast'"},{code:"RU-BU",name:"Buryatiya, Respublika"},{code:"RU-CE",name:"Chechenskaya Respublika"},{code:"RU-CHE",name:"Chelyabinskaya oblast'"},{code:"RU-CHU",name:"Chukotskiy avtonomnyy okrug"},{code:"RU-CU",name:"Chuvashskaya Respublika"},{code:"RU-DA",name:"Dagestan, Respublika"},{code:"RU-IN",name:"Ingushetiya, Respublika"},{code:"RU-IRK",name:"Irkutskaya oblast'"},{code:"RU-IVA",name:"Ivanovskaya oblast'"},{code:"RU-KAM",name:"Kamchatskiy kray"},{code:"RU-KB",name:"Kabardino-Balkarskaya Respublika"},{code:"RU-KC",name:"Karachayevo-Cherkesskaya Respublika"},{code:"RU-KDA",name:"Krasnodarskiy kray"},{code:"RU-KEM",name:"Kemerovskaya oblast'"},{code:"RU-KGD",name:"Kaliningradskaya oblast'"},{code:"RU-KGN",name:"Kurganskaya oblast'"},{code:"RU-KHA",name:"Khabarovskiy kray"},{code:"RU-KHM",name:"Khanty-Mansiyskiy avtonomnyy okrug-Yugra"},{code:"RU-KIR",name:"Kirovskaya oblast'"},{code:"RU-KK",name:"Khakasiya, Respublika"},{code:"RU-KL",name:"Kalmykiya, Respublika"},{code:"RU-KLU",name:"Kaluzhskaya oblast'"},{code:"RU-KO",name:"Komi, Respublika"},{code:"RU-KOS",name:"Kostromskaya oblast'"},{code:"RU-KR",name:"Kareliya, Respublika"},{code:"RU-KRS",name:"Kurskaya oblast'"},{code:"RU-KYA",name:"Krasnoyarskiy kray"},{code:"RU-LEN",name:"Leningradskaya oblast'"},{code:"RU-LIP",name:"Lipetskaya oblast'"},{code:"RU-MAG",name:"Magadanskaya oblast'"},{code:"RU-ME",name:"Mariy El, Respublika"},{code:"RU-MO",name:"Mordoviya, Respublika"},{code:"RU-MOS",name:"Moskovskaya oblast'"},{code:"RU-MOW",name:"Moskva"},{code:"RU-MUR",name:"Murmanskaya oblast'"},{code:"RU-NEN",name:"Nenetskiy avtonomnyy okrug"},{code:"RU-NGR",name:"Novgorodskaya oblast'"},{code:"RU-NIZ",name:"Nizhegorodskaya oblast'"},{code:"RU-NVS",name:"Novosibirskaya oblast'"},{code:"RU-OMS",name:"Omskaya oblast'"},{code:"RU-ORE",name:"Orenburgskaya oblast'"},{code:"RU-ORL",name:"Orlovskaya oblast'"},{code:"RU-PER",name:"Permskiy kray"},{code:"RU-PNZ",name:"Penzenskaya oblast'"},{code:"RU-PRI",name:"Primorskiy kray"},{code:"RU-PSK",name:"Pskovskaya oblast'"},{code:"RU-ROS",name:"Rostovskaya oblast'"},{code:"RU-RYA",name:"Ryazanskaya oblast'"},{code:"RU-SA",name:"Sakha, Respublika"},{code:"RU-SAK",name:"Sakhalinskaya oblast'"},{code:"RU-SAM",name:"Samarskaya oblast'"},{code:"RU-SAR",name:"Saratovskaya oblast'"},{code:"RU-SE",name:"Severnaya Osetiya-Alaniya, Respublika"},{code:"RU-SMO",name:"Smolenskaya oblast'"},{code:"RU-SPE",name:"Sankt-Peterburg"},{code:"RU-STA",name:"Stavropol'skiy kray"},{code:"RU-SVE",name:"Sverdlovskaya oblast'"},{code:"RU-TA",name:"Tatarstan, Respublika"},{code:"RU-TAM",name:"Tambovskaya oblast'"},{code:"RU-TOM",name:"Tomskaya oblast'"},{code:"RU-TUL",name:"Tul'skaya oblast'"},{code:"RU-TVE",name:"Tverskaya oblast'"},{code:"RU-TY",name:"Tyva, Respublika"},{code:"RU-TYU",name:"Tyumenskaya oblast'"},{code:"RU-UD",name:"Udmurtskaya Respublika"},{code:"RU-ULY",name:"Ul'yanovskaya oblast'"},{code:"RU-VGG",name:"Volgogradskaya oblast'"},{code:"RU-VLA",name:"Vladimirskaya oblast'"},{code:"RU-VLG",name:"Vologodskaya oblast'"},{code:"RU-VOR",name:"Voronezhskaya oblast'"},{code:"RU-YAN",name:"Yamalo-Nenetskiy avtonomnyy okrug"},{code:"RU-YAR",name:"Yaroslavskaya oblast'"},{code:"RU-YEV",name:"Yevreyskaya avtonomnaya oblast'"},{code:"RU-ZAB",name:"Zabaykal'skiy kray"}],RW:[{code:"RW-01",name:"Ville de Kigali"},{code:"RW-02",name:"Est"},{code:"RW-03",name:"Nord"},{code:"RW-04",name:"Ouest"},{code:"RW-05",name:"Sud"}],SA:[{code:"SA-01",name:"Ar Riyad"},{code:"SA-02",name:"Makkah al Mukarramah"}
396,{code:"SA-03",name:"Al Madinah al Munawwarah"},{code:"SA-04",name:"Ash Sharqiyah"},{code:"SA-05",name:"Al Qasim"},{code:"SA-06",name:"Ha'il"},{code:"SA-07",name:"Tabuk"},{code:"SA-08",name:"Al Hudud ash Shamaliyah"},{code:"SA-09",name:"Jazan"},{code:"SA-10",name:"Najran"},{code:"SA-11",name:"Al Bahah"},{code:"SA-12",name:"Al Jawf"},{code:"SA-14",name:"'Asir"}],SB:[{code:"SB-CE",name:"Central"},{code:"SB-GU",name:"Guadalcanal"},{code:"SB-IS",name:"Isabel"},{code:"SB-MK",name:"Makira"},{code:"SB-ML",name:"Malaita"},{code:"SB-WE",name:"Western"}],SC:[{code:"SC-16",name:"English River"}],SD:[{code:"SD-DN",name:"North Darfur"},{code:"SD-DS",name:"South Darfur"},{code:"SD-DW",name:"West Darfur"},{code:"SD-GD",name:"Gedaref"},{code:"SD-GZ",name:"Gezira"},{code:"SD-KA",name:"Kassala"},{code:"SD-KH",name:"Khartoum"},{code:"SD-KN",name:"North Kordofan"},{code:"SD-KS",name:"South Kordofan"},{code:"SD-NB",name:"Blue Nile"},{code:"SD-NO",name:"Northern"},{code:"SD-NR",name:"River Nile"},{code:"SD-NW",name:"White Nile"},{code:"SD-RS",name:"Red Sea"},{code:"SD-SI",name:"Sennar"}],SE:[{code:"SE-AB",name:"Stockholms Lan"},{code:"SE-AC",name:"Vasterbottens Lan"},{code:"SE-BD",name:"Norrbottens Lan"},{code:"SE-C",name:"Uppsala Lan"},{code:"SE-D",name:"Sodermanlands Lan"},{code:"SE-E",name:"Ostergotlands Lan"},{code:"SE-F",name:"Jonkopings Lan"},{code:"SE-G",name:"Kronobergs Lan"},{code:"SE-H",name:"Kalmar Lan"},{code:"SE-I",name:"Gotlands Lan"},{code:"SE-K",name:"Blekinge Lan"},{code:"SE-M",name:"Skane Lan"},{code:"SE-N",name:"Hallands Lan"},{code:"SE-O",name:"Vastra Gotaland"},{code:"SE-S",name:"Varmlands Lan"},{code:"SE-T",name:"Orebro Lan"},{code:"SE-U",name:"Vastmanlands Lan"},{code:"SE-W",name:"Dalarnas Lan"},{code:"SE-X",name:"Gavleborgs Lan"},{code:"SE-Y",name:"Vasternorrlands Lan"},{code:"SE-Z",name:"Jamtlands Lan"}],SG:[{code:"SG-01",name:"Singapore"}],SH:[{code:"SH-AC",name:"Ascension"},{code:"SH-HL",name:"Saint Helena"},{code:"SH-TA",name:"Tristan da Cunha"}],SI:[{code:"SI-001",name:"Ajdovscina"},{code:"SI-003",name:"Bled"},{code:"SI-004",name:"Bohinj"},{code:"SI-005",name:"Borovnica"},{code:"SI-006",name:"Bovec"},{code:"SI-008",name:"Brezovica"},{code:"SI-009",name:"Brezice"},{code:"SI-011",name:"Celje"},{code:"SI-013",name:"Cerknica"},{code:"SI-014",name:"Cerkno"},{code:"SI-015",name:"Crensovci"},{code:"SI-017",name:"Crnomelj"},{code:"SI-018",name:"Destrnik"},{code:"SI-019",name:"Divaca"},{code:"SI-023",name:"Domzale"},{code:"SI-025",name:"Dravograd"},{code:"SI-029",name:"Gornja Radgona"},{code:"SI-032",name:"Grosuplje"},{code:"SI-034",name:"Hrastnik"},{code:"SI-036",name:"Idrija"},{code:"SI-037",name:"Ig"},{code:"SI-038",name:"Ilirska Bistrica"},{code:"SI-039",name:"Ivancna Gorica"},{code:"SI-040",name:"Izola-Isola"},{code:"SI-041",name:"Jesenice"},{code:"SI-043",name:"Kamnik"},{code:"SI-044",name:"Kanal"},{code:"SI-045",name:"Kidricevo"},{code:"SI-046",name:"Kobarid"},{code:"SI-048",name:"Kocevje"},{code:"SI-050",name:"Koper-Capodistria"},{code:"SI-052",name:"Kranj"},{code:"SI-053",name:"Kranjska Gora"},{code:"SI-054",name:"Krsko"},{code:"SI-057",name:"Lasko"},{code:"SI-058",name:"Lenart"},{code:"SI-059",name:"Lendava"},{code:"SI-060",name:"Litija"},{code:"SI-061",name:"Ljubljana"},{code:"SI-063",name:"Ljutomer"},{code:"SI-064",name:"Logatec"},{code:"SI-070",name:"Maribor"},{code:"SI-071",name:"Medvode"},{code:"SI-072",name:"Menges"},{code:"SI-073",name:"Metlika"},{code:"SI-074",name:"Mezica"},{code:"SI-075",name:"Miren-Kostanjevica"},{code:"SI-076",name:"Mislinja"},{code:"SI-079",name:"Mozirje"},{code:"SI-080",name:"Murska Sobota"},{code:"SI-081",name:"Muta"},{code:"SI-084",name:"Nova Gorica"},{code:"SI-085",name:"Novo Mesto"},{code:"SI-086",name:"Odranci"},{code:"SI-087",name:"Ormoz"},{code:"SI-090",name:"Piran"},{code:"SI-091",name:"Pivka"},{code:"SI-094",name:"Postojna"},{code:"SI-096",name:"Ptuj"},{code:"SI-098",name:"Racam"},{code:"SI-099",name:"Radece"},{code:"SI-100",name:"Radenci"},{code:"SI-101",name:"Radlje ob Dravi"},{code:"SI-102",name:"Radovljica"},{code:"SI-103",name:"Ravne na Koroskem"},{code:"SI-104",name:"Ribnica"},{code:"SI-106",name:"Rogaska Slatina"}
396,{code:"SI-108",name:"Ruse"},{code:"SI-110",name:"Sevnica"},{code:"SI-111",name:"Sezana"},{code:"SI-112",name:"Slovenj Gradec"},{code:"SI-113",name:"Slovenska Bistrica"},{code:"SI-114",name:"Slovenske Konjice"},{code:"SI-117",name:"Sencur"},{code:"SI-118",name:"Sentilj"},{code:"SI-120",name:"Sentjur pri Celju"},{code:"SI-122",name:"Skofja Loka"},{code:"SI-123",name:"Skofljica"},{code:"SI-126",name:"Sostanj"},{code:"SI-127",name:"Store"},{code:"SI-128",name:"Tolmin"},{code:"SI-129",name:"Trbovlje"},{code:"SI-130",name:"Trebnje"},{code:"SI-131",name:"Trzic"},{code:"SI-132",name:"Turnisce"},{code:"SI-133",name:"Velenje"},{code:"SI-136",name:"Vipava"},{code:"SI-138",name:"Vodice"},{code:"SI-139",name:"Vojnik"},{code:"SI-140",name:"Vrhnika"},{code:"SI-141",name:"Vuzenica"},{code:"SI-142",name:"Zagorje ob Savi"},{code:"SI-144",name:"Zrece"},{code:"SI-146",name:"Zelezniki"},{code:"SI-147",name:"Ziri"},{code:"SI-160",name:"Hoce-Slivnica"},{code:"SI-162",name:"Horjul"},{code:"SI-167",name:"Lovrenc na Pohorju"},{code:"SI-169",name:"Miklavz na Dravskem Polju"},{code:"SI-171",name:"Oplotnica"},{code:"SI-173",name:"Polzela"},{code:"SI-174",name:"Prebold"},{code:"SI-175",name:"Prevalje"},{code:"SI-183",name:"Sempeter-Vrtojba"},{code:"SI-186",name:"Trzin"},{code:"SI-190",name:"Zalec"},{code:"SI-193",name:"Zuzemberk"},{code:"SI-200",name:"Poljcane"},{code:"SI-203",name:"Straza"},{code:"SI-208",name:"Log-Dragomer"}],SK:[{code:"SK-BC",name:"Banskobystricky kraj"},{code:"SK-BL",name:"Bratislavsky kraj"},{code:"SK-KI",name:"Kosicky kraj"},{code:"SK-NI",name:"Nitriansky kraj"},{code:"SK-PV",name:"Presovsky kraj"},{code:"SK-TA",name:"Trnavsky kraj"},{code:"SK-TC",name:"Trenciansky kraj"},{code:"SK-ZI",name:"Zilinsky kraj"}],SL:[{code:"SL-E",name:"Eastern"},{code:"SL-N",name:"Northern"},{code:"SL-S",name:"Southern"},{code:"SL-W",name:"Western Area"}],SM:[{code:"SM-01",name:"Acquaviva"},{code:"SM-02",name:"Chiesanuova"},{code:"SM-07",name:"San Marino"},{code:"SM-09",name:"Serravalle"}],SN:[{code:"SN-DB",name:"Diourbel"},{code:"SN-DK",name:"Dakar"},{code:"SN-FK",name:"Fatick"},{code:"SN-KA",name:"Kaffrine"},{code:"SN-KD",name:"Kolda"},{code:"SN-KE",name:"Kedougou"},{code:"SN-KL",name:"Kaolack"},{code:"SN-LG",name:"Louga"},{code:"SN-MT",name:"Matam"},{code:"SN-SE",name:"Sedhiou"},{code:"SN-SL",name:"Saint-Louis"},{code:"SN-TC",name:"Tambacounda"},{code:"SN-TH",name:"Thies"},{code:"SN-ZG",name:"Ziguinchor"}],SO:[{code:"SO-AW",name:"Awdal"},{code:"SO-BK",name:"Bakool"},{code:"SO-BN",name:"Banaadir"},{code:"SO-BR",name:"Bari"},{code:"SO-BY",name:"Bay"},{code:"SO-GA",name:"Galguduud"},{code:"SO-GE",name:"Gedo"},{code:"SO-HI",name:"Hiiraan"},{code:"SO-JD",name:"Jubbada Dhexe"},{code:"SO-JH",name:"Jubbada Hoose"},{code:"SO-MU",name:"Mudug"},{code:"SO-NU",name:"Nugaal"},{code:"SO-SA",name:"Sanaag"},{code:"SO-SD",name:"Shabeellaha Dhexe"},{code:"SO-SH",name:"Shabeellaha Hoose"},{code:"SO-SO",name:"Sool"},{code:"SO-TO",name:"Togdheer"},{code:"SO-WO",name:"Woqooyi Galbeed"}],SR:[{code:"SR-BR",name:"Brokopondo"},{code:"SR-CM",name:"Commewijne"},{code:"SR-CR",name:"Coronie"},{code:"SR-MA",name:"Marowijne"},{code:"SR-NI",name:"Nickerie"},{code:"SR-PM",name:"Paramaribo"},{code:"SR-PR",name:"Para"},{code:"SR-SA",name:"Saramacca"},{code:"SR-WA",name:"Wanica"}],SS:[{code:"SS-BN",name:"Northern Bahr el Ghazal"},{code:"SS-BW",name:"Western Bahr el Ghazal"},{code:"SS-EC",name:"Central Equatoria"},{code:"SS-EE",name:"Eastern Equatoria"},{code:"SS-EW",name:"Western Equatoria"},{code:"SS-JG",name:"Jonglei"},{code:"SS-LK",name:"Lakes"},{code:"SS-NU",name:"Upper Nile"},{code:"SS-UY",name:"Unity"},{code:"SS-WR",name:"Warrap"}],ST:[{code:"ST-P",name:"Principe"},{code:"ST-S",name:"Sao Tome"}],SV:[{code:"SV-AH",name:"Ahuachapan"},{code:"SV-CA",name:"Cabanas"},{code:"SV-CH",name:"Chalatenango"},{code:"SV-CU",name:"Cuscatlan"},{code:"SV-LI",name:"La Libertad"},{code:"SV-MO",name:"Morazan"},{code:"SV-PA",name:"La Paz"},{code:"SV-SA",name:"Santa Ana"},{code:"SV-SM",name:"San Miguel"},{code:"SV-SO",name:"Sonsonate"},{code:"SV-SS",name:"San Salvador"},{code:"SV-SV",name:"San Vicente"},{code:"SV-UN",name:"La Union"},{code:"SV-US",name:"Usulutan"}],SY:[{code:"SY-DI",name:"Dimashq"},{code:"SY-DR",name:"Dar'a"},{code:"SY-DY",name:"Dayr az Zawr"},{code:"SY-HA",name:"Al Hasakah"},{code:"SY-HI",name:"Hims"},{code:"SY-HL",name:"Halab"},{code:"SY-HM",name:"Hamah"},{code:"SY-ID",name:"Idlib"},{code:"SY-LA",name:"Al Ladhiqiyah"},{code:"SY-QU",name:"Al Qunaytirah"},{code:"SY-RA",name:"Ar Raqqah"},{code:"SY-RD",name:"Rif Dimashq"}
396,{code:"SY-SU",name:"As Suwayda'"},{code:"SY-TA",name:"Tartus"}],SZ:[{code:"SZ-HH",name:"Hhohho"},{code:"SZ-LU",name:"Lubombo"},{code:"SZ-MA",name:"Manzini"},{code:"SZ-SH",name:"Shiselweni"}],TD:[{code:"TD-BA",name:"Batha"},{code:"TD-BG",name:"Bahr el Gazel"},{code:"TD-BO",name:"Borkou"},{code:"TD-CB",name:"Chari-Baguirmi"},{code:"TD-GR",name:"Guera"},{code:"TD-HL",name:"Hadjer Lamis"},{code:"TD-KA",name:"Kanem"},{code:"TD-LC",name:"Lac"},{code:"TD-LO",name:"Logone-Occidental"},{code:"TD-LR",name:"Logone-Oriental"},{code:"TD-MA",name:"Mandoul"},{code:"TD-MC",name:"Moyen-Chari"},{code:"TD-ME",name:"Mayo-Kebbi-Est"},{code:"TD-MO",name:"Mayo-Kebbi-Ouest"},{code:"TD-OD",name:"Ouaddai"},{code:"TD-SA",name:"Salamat"},{code:"TD-TA",name:"Tandjile"},{code:"TD-TI",name:"Tibesti"},{code:"TD-WF",name:"Wadi Fira"}],TG:[{code:"TG-C",name:"Centre"},{code:"TG-K",name:"Kara"},{code:"TG-M",name:"Maritime"},{code:"TG-P",name:"Plateaux"},{code:"TG-S",name:"Savannes"}],TH:[{code:"TH-10",name:"Krung Thep Maha Nakhon"},{code:"TH-11",name:"Samut Prakan"},{code:"TH-12",name:"Nonthaburi"},{code:"TH-13",name:"Pathum Thani"},{code:"TH-14",name:"Phra Nakhon Si Ayutthaya"},{code:"TH-15",name:"Ang Thong"},{code:"TH-16",name:"Lop Buri"},{code:"TH-17",name:"Sing Buri"},{code:"TH-18",name:"Chai Nat"},{code:"TH-19",name:"Saraburi"},{code:"TH-20",name:"Chon Buri"},{code:"TH-21",name:"Rayong"},{code:"TH-22",name:"Chanthaburi"},{code:"TH-23",name:"Trat"},{code:"TH-24",name:"Chachoengsao"},{code:"TH-25",name:"Prachin Buri"},{code:"TH-26",name:"Nakhon Nayok"},{code:"TH-27",name:"Sa Kaeo"},{code:"TH-30",name:"Nakhon Ratchasima"},{code:"TH-31",name:"Buri Ram"},{code:"TH-32",name:"Surin"},{code:"TH-33",name:"Si Sa Ket"},{code:"TH-34",name:"Ubon Ratchathani"},{code:"TH-35",name:"Yasothon"},{code:"TH-36",name:"Chaiyaphum"},{code:"TH-37",name:"Amnat Charoen"},{code:"TH-39",name:"Nong Bua Lam Phu"},{code:"TH-40",name:"Khon Kaen"},{code:"TH-41",name:"Udon Thani"},{code:"TH-42",name:"Loei"},{code:"TH-43",name:"Nong Khai"},{code:"TH-44",name:"Maha Sarakham"},{code:"TH-45",name:"Roi Et"},{code:"TH-46",name:"Kalasin"},{code:"TH-47",name:"Sakon Nakhon"},{code:"TH-48",name:"Nakhon Phanom"},{code:"TH-49",name:"Mukdahan"},{code:"TH-50",name:"Chiang Mai"},{code:"TH-51",name:"Lamphun"},{code:"TH-52",name:"Lampang"},{code:"TH-53",name:"Uttaradit"},{code:"TH-54",name:"Phrae"},{code:"TH-55",name:"Nan"},{code:"TH-56",name:"Phayao"},{code:"TH-57",name:"Chiang Rai"},{code:"TH-58",name:"Mae Hong Son"},{code:"TH-60",name:"Nakhon Sawan"},{code:"TH-61",name:"Uthai Thani"},{code:"TH-62",name:"Kamphaeng Phet"},{code:"TH-63",name:"Tak"},{code:"TH-64",name:"Sukhothai"},{code:"TH-65",name:"Phitsanulok"},{code:"TH-66",name:"Phichit"},{code:"TH-67",name:"Phetchabun"},{code:"TH-70",name:"Ratchaburi"},{code:"TH-71",name:"Kanchanaburi"},{code:"TH-72",name:"Suphan Buri"},{code:"TH-73",name:"Nakhon Pathom"},{code:"TH-74",name:"Samut Sakhon"},{code:"TH-75",name:"Samut Songkhram"},{code:"TH-76",name:"Phetchaburi"},{code:"TH-77",name:"Prachuap Khiri Khan"},{code:"TH-80",name:"Nakhon Si Thammarat"},{code:"TH-81",name:"Krabi"},{code:"TH-82",name:"Phangnga"},{code:"TH-83",name:"Phuket"},{code:"TH-84",name:"Surat Thani"},{code:"TH-85",name:"Ranong"},{code:"TH-86",name:"Chumphon"},{code:"TH-90",name:"Songkhla"},{code:"TH-91",name:"Satun"},{code:"TH-92",name:"Trang"},{code:"TH-93",name:"Phatthalung"},{code:"TH-94",name:"Pattani"},{code:"TH-95",name:"Yala"},{code:"TH-96",name:"Narathiwat"}],TJ:[{code:"TJ-GB",name:"Kuhistoni Badakhshon"},{code:"TJ-KT",name:"Khatlon"},{code:"TJ-RR",name:"Regions of Republican Subordination"},{code:"TJ-SU",name:"Sughd"}],TL:[{code:"TL-DI",name:"Dili"}],TM:[{code:"TM-A",name:"Ahal"},{code:"TM-B",name:"Balkan"},{code:"TM-D",name:"Dashoguz"},{code:"TM-L",name:"Lebap"},{code:"TM-M",name:"Mary"}],TN:[{code:"TN-11",name:"Tunis"},{code:"TN-12",name:"Aiana"},{code:"TN-13",name:"Ben Arous"},{code:"TN-14",name:"Manouba"},{code:"TN-21",name:"Nabeul"},{code:"TN-22",name:"Zaghouan"},{code:"TN-23",name:"Bizerte"},{code:"TN-31",name:"Bajah"},{code:"TN-32",name:"Jendouba"},{code:"TN-33",name:"El Kef"}
396,{code:"TN-34",name:"Siliana"},{code:"TN-41",name:"Kairouan"},{code:"TN-42",name:"Kasserine"},{code:"TN-43",name:"Sidi Bou Zid"},{code:"TN-51",name:"Sousse"},{code:"TN-52",name:"Al Munastir"},{code:"TN-53",name:"Al Mahdia"},{code:"TN-61",name:"Sfax"},{code:"TN-71",name:"Gafsa"},{code:"TN-72",name:"Tozeur"},{code:"TN-73",name:"Kebili"},{code:"TN-81",name:"Gabes"},{code:"TN-82",name:"Madanin"},{code:"TN-83",name:"Tataouine"}],TO:[{code:"TO-02",name:"Ha'apai"},{code:"TO-04",name:"Tongatapu"},{code:"TO-05",name:"Vava'u"}],TR:[{code:"TR-01",name:"Adana"},{code:"TR-02",name:"Adiyaman"},{code:"TR-03",name:"Afyonkarahisar"},{code:"TR-04",name:"Agri"},{code:"TR-05",name:"Amasya"},{code:"TR-06",name:"Ankara"},{code:"TR-07",name:"Antalya"},{code:"TR-08",name:"Artvin"},{code:"TR-09",name:"Aydin"},{code:"TR-10",name:"Balikesir"},{code:"TR-11",name:"Bilecik"},{code:"TR-12",name:"Bingol"},{code:"TR-13",name:"Bitlis"},{code:"TR-14",name:"Bolu"},{code:"TR-15",name:"Burdur"},{code:"TR-16",name:"Bursa"},{code:"TR-17",name:"Canakkale"},{code:"TR-18",name:"Cankiri"},{code:"TR-19",name:"Corum"},{code:"TR-20",name:"Denizli"},{code:"TR-21",name:"Diyarbakir"},{code:"TR-22",name:"Edirne"},{code:"TR-23",name:"Elazig"},{code:"TR-24",name:"Erzincan"},{code:"TR-25",name:"Erzurum"},{code:"TR-26",name:"Eskisehir"},{code:"TR-27",name:"Gaziantep"},{code:"TR-28",name:"Giresun"},{code:"TR-29",name:"Gumushane"},{code:"TR-30",name:"Hakkari"},{code:"TR-31",name:"Hatay"},{code:"TR-32",name:"Isparta"},{code:"TR-33",name:"Mersin"},{code:"TR-34",name:"Istanbul"},{code:"TR-35",name:"Izmir"},{code:"TR-36",name:"Kars"},{code:"TR-37",name:"Kastamonu"},{code:"TR-38",name:"Kayseri"},{code:"TR-39",name:"Kirklareli"},{code:"TR-40",name:"Kirsehir"},{code:"TR-41",name:"Kocaeli"},{code:"TR-42",name:"Konya"},{code:"TR-43",name:"Kutahya"},{code:"TR-44",name:"Malatya"},{code:"TR-45",name:"Manisa"},{code:"TR-46",name:"Kahramanmaras"},{code:"TR-47",name:"Mardin"},{code:"TR-48",name:"Mugla"},{code:"TR-49",name:"Mus"},{code:"TR-50",name:"Nevsehir"},{code:"TR-51",name:"Nigde"},{code:"TR-52",name:"Ordu"},{code:"TR-53",name:"Rize"},{code:"TR-54",name:"Sakarya"},{code:"TR-55",name:"Samsun"},{code:"TR-56",name:"Siirt"},{code:"TR-57",name:"Sinop"},{code:"TR-58",name:"Sivas"},{code:"TR-59",name:"Tekirdag"},{code:"TR-60",name:"Tokat"},{code:"TR-61",name:"Trabzon"},{code:"TR-62",name:"Tunceli"},{code:"TR-63",name:"Sanliurfa"},{code:"TR-64",name:"Usak"},{code:"TR-65",name:"Van"},{code:"TR-66",name:"Yozgat"},{code:"TR-67",name:"Zonguldak"},{code:"TR-68",name:"Aksaray"},{code:"TR-69",name:"Bayburt"},{code:"TR-70",name:"Karaman"},{code:"TR-71",name:"Kirikkale"},{code:"TR-72",name:"Batman"},{code:"TR-73",name:"Sirnak"},{code:"TR-74",name:"Bartin"},{code:"TR-75",name:"Ardahan"},{code:"TR-76",name:"Igdir"},{code:"TR-77",name:"Yalova"},{code:"TR-78",name:"Karabuk"},{code:"TR-79",name:"Kilis"},{code:"TR-80",name:"Osmaniye"},{code:"TR-81",name:"Duzce"}],TT:[{code:"TT-ARI",name:"Arima"},{code:"TT-MRC",name:"Mayaro"},{code:"TT-POS",name:"Port-of-Spain"},{code:"TT-SFO",name:"San Fernando"}],TW:[{code:"TW-KHH",name:"Kao-hsiung"},{code:"TW-TPE",name:"T'ai-pei"}],TZ:[{code:"TZ-01",name:"Arusha"},{code:"TZ-02",name:"Dar es Salaam"},{code:"TZ-03",name:"Dodoma"},{code:"TZ-04",name:"Iringa"},{code:"TZ-05",name:"Kagera"},{code:"TZ-06",name:"Kaskazini Pemba"},{code:"TZ-07",name:"Kaskazini Unguja"},{code:"TZ-08",name:"Kigoma"},{code:"TZ-09",name:"Kilimanjaro"},{code:"TZ-10",name:"Kusini Pemba"},{code:"TZ-11",name:"Kusini Unguja"},{code:"TZ-12",name:"Lindi"},{code:"TZ-13",name:"Mara"},{code:"TZ-14",name:"Mbeya"},{code:"TZ-15",name:"Mjini Magharibi"},{code:"TZ-16",name:"Morogoro"},{code:"TZ-17",name:"Mtwara"},{code:"TZ-18",name:"Mwanza"},{code:"TZ-19",name:"Pwani"},{code:"TZ-20",name:"Rukwa"},{code:"TZ-21",name:"Ruvuma"},{code:"TZ-22",name:"Shinyanga"},{code:"TZ-23",name:"Singida"},{code:"TZ-24",name:"Tabora"},{code:"TZ-25",name:"Tanga"},{code:"TZ-26",name:"Manyara"}],UA:[{code:"UA-05",name:"Vinnyts'ka Oblast'"},{code:"UA-07",name:"Volyns'ka Oblast'"},{code:"UA-09",name:"Luhans'ka Oblast'"},{code:"UA-12",name:"Dnipropetrovs'ka Oblast'"},{code:"UA-14",name:"Donets'ka Oblast'"},{code:"UA-18",name:"Zhytomyrs'ka Oblast'"}
396,{code:"UA-21",name:"Zakarpats'ka Oblast'"},{code:"UA-23",name:"Zaporiz'ka Oblast'"},{code:"UA-26",name:"Ivano-Frankivs'ka Oblast'"},{code:"UA-30",name:"Kyiv"},{code:"UA-32",name:"Kyivs'ka Oblast'"},{code:"UA-35",name:"Kirovohrads'ka Oblast'"},{code:"UA-40",name:"Sevastopol'"},{code:"UA-43",name:"Avtonomna Respublika Krym"},{code:"UA-46",name:"L'vivs'ka Oblast'"},{code:"UA-48",name:"Mykolaivs'ka Oblast'"},{code:"UA-51",name:"Odes'ka Oblast'"},{code:"UA-53",name:"Poltavs'ka Oblast'"},{code:"UA-56",name:"Rivnens'ka Oblast'"},{code:"UA-59",name:"Sums'ka Oblast'"},{code:"UA-61",name:"Ternopil's'ka Oblast'"},{code:"UA-63",name:"Kharkivs'ka Oblast'"},{code:"UA-65",name:"Khersons'ka Oblast'"},{code:"UA-68",name:"Khmel'nyts'ka Oblast'"},{code:"UA-71",name:"Cherkas'ka Oblast'"},{code:"UA-74",name:"Chernihivs'ka Oblast'"},{code:"UA-77",name:"Chernivets'ka Oblast'"}],UG:[{code:"UG-101",name:"Kalangala"},{code:"UG-102",name:"Kampala"},{code:"UG-103",name:"Kiboga"},{code:"UG-104",name:"Luwero"},{code:"UG-105",name:"Masaka"},{code:"UG-106",name:"Mpigi"},{code:"UG-107",name:"Mubende"},{code:"UG-108",name:"Mukono"},{code:"UG-109",name:"Nakasongola"},{code:"UG-110",name:"Rakai"},{code:"UG-111",name:"Sembabule"},{code:"UG-112",name:"Kayunga"},{code:"UG-113",name:"Wakiso"},{code:"UG-114",name:"Mityana"},{code:"UG-115",name:"Nakaseke"},{code:"UG-116",name:"Lyantonde"},{code:"UG-117",name:"Buikwe"},{code:"UG-118",name:"Bukomansibi"},{code:"UG-120",name:"Buvuma"},{code:"UG-121",name:"Gomba"},{code:"UG-123",name:"Kyankwanzi"},{code:"UG-124",name:"Lwengo"},{code:"UG-201",name:"Bugiri"},{code:"UG-202",name:"Busia"},{code:"UG-203",name:"Iganga"},{code:"UG-204",name:"Jinja"},{code:"UG-205",name:"Kamuli"},{code:"UG-206",name:"Kapchorwa"},{code:"UG-207",name:"Katakwi"},{code:"UG-208",name:"Kumi"},{code:"UG-209",name:"Mbale"},{code:"UG-210",name:"Pallisa"},{code:"UG-211",name:"Soroti"},{code:"UG-212",name:"Tororo"},{code:"UG-213",name:"Kaberamaido"},{code:"UG-214",name:"Mayuge"},{code:"UG-215",name:"Sironko"},{code:"UG-216",name:"Amuria"},{code:"UG-217",name:"Budaka"},{code:"UG-218",name:"Bukwa"},{code:"UG-219",name:"Butaleja"},{code:"UG-220",name:"Kaliro"},{code:"UG-221",name:"Manafwa"},{code:"UG-222",name:"Namutumba"},{code:"UG-223",name:"Bududa"},{code:"UG-224",name:"Bukedea"},{code:"UG-225",name:"Bulambuli"},{code:"UG-226",name:"Buyende"},{code:"UG-227",name:"Kibuku"},{code:"UG-228",name:"Kween"},{code:"UG-229",name:"Luuka"},{code:"UG-230",name:"Namayingo"},{code:"UG-231",name:"Ngora"},{code:"UG-232",name:"Serere"},{code:"UG-301",name:"Adjumani"},{code:"UG-302",name:"Apac"},{code:"UG-303",name:"Arua"},{code:"UG-304",name:"Gulu"},{code:"UG-305",name:"Kitgum"},{code:"UG-306",name:"Kotido"},{code:"UG-307",name:"Lira"},{code:"UG-308",name:"Moroto"},{code:"UG-309",name:"Moyo"},{code:"UG-310",name:"Nebbi"},{code:"UG-311",name:"Nakapiripirit"},{code:"UG-312",name:"Pader"},{code:"UG-313",name:"Yumbe"},{code:"UG-314",name:"Amolatar"},{code:"UG-315",name:"Kaabong"},{code:"UG-316",name:"Koboko"},{code:"UG-317",name:"Abim"},{code:"UG-318",name:"Dokolo"},{code:"UG-319",name:"Amuru"},{code:"UG-320",name:"Maracha"},{code:"UG-321",name:"Oyam"},{code:"UG-322",name:"Agago"},{code:"UG-323",name:"Alebtong"},{code:"UG-324",name:"Amudat"},{code:"UG-326",name:"Kole"},{code:"UG-328",name:"Napak"},{code:"UG-330",name:"Otuke"},{code:"UG-331",name:"Zombo"},{code:"UG-401",name:"Bundibugyo"},{code:"UG-402",name:"Bushenyi"},{code:"UG-403",name:"Hoima"},{code:"UG-404",name:"Kabale"},{code:"UG-405",name:"Kabarole"},{code:"UG-406",name:"Kasese"},{code:"UG-407",name:"Kibaale"},{code:"UG-408",name:"Kisoro"},{code:"UG-409",name:"Masindi"},{code:"UG-410",name:"Mbarara"},{code:"UG-411",name:"Ntungamo"},{code:"UG-412",name:"Rukungiri"},{code:"UG-413",name:"Kamwenge"},{code:"UG-414",name:"Kanungu"},{code:"UG-415",name:"Kyenjojo"},{code:"UG-417",name:"Isingiro"},{code:"UG-419",name:"Buliisa"},{code:"UG-420",name:"Kiryandongo"},{code:"UG-421",name:"Kyegegwa"},{code:"UG-422",name:"Mitooma"},{code:"UG-423",name:"Ntoroko"},{code:"UG-424",name:"Rubirizi"},{code:"UG-425",name:"Sheema"}],UM:[{code:"UM-95",name:"Palmyra Atoll"}],US:[{code:"US-AK",name:"Alaska"},{code:"US-AL",name:"Alabama"},{code:"US-AR",name:"Arkansas"},{code:"US-AZ",name:"Arizona"},{code:"US-CA",name:"California"},{code:"US-CO",name:"Colorado"},{code:"US-CT",name:"Connecticut"},{code:"US-DC",name:"District Of Columbia"},{code:"US-DE",name:"Delaware"},{code:"US-FL",name:"Florida"},{code:"US-GA",name:"Georgia"},{code:"US-HI",name:"Hawaii"},{code:"US-IA",name:"Iowa"},{code:"US-ID",name:"Idaho"},{code:"US-IL",name:"Illinois"},{code:"US-IN",name:"Indiana"},{code:"US-KS",name:"Kansas"},{code:"US-KY",name:"Kentucky"},{code:"US-LA",name:"Louisiana"},{code:"US-MA",name:"Massachusetts"},{code:"US-MD",name:"Maryland"},{code:"US-ME",name:"Maine"},{code:"US-MI",name:"Michigan"},{code:"US-MN",name:"Minnesota"},{code:"US-MO",name:"Missouri"},{code:"US-MS",name:"Mississippi"},{code:"US-MT",name:"Montana"},{code:"US-NC",name:"North Carolina"},{code:"US-ND",name:"North Dakota"},{code:"US-NE",name:"Nebraska"},{code:"US-NH",name:"New Hampshire"},{code:"US-NJ",name:"New Jersey"},{code:"US-NM",name:"New Mexico"},{code:"US-NV",name:"Nevada"},{code:"US-NY",name:"New York"},{code:"US-OH",name:"Ohio"},{code:"US-OK",name:"Oklahoma"},{code:"US-OR",name:"Oregon"},{code:"US-PA",name:"Pennsylvania"},{code:"US-RI",name:"Rhode Island"},{code:"US-SC",name:"South Carolina"},{code:"US-SD",name:"South Dakota"},{code:"US-TN",name:"Tennessee"},{code:"US-TX",name:"Texas"},{code:"US-UT",name:"Utah"}
396,{code:"US-VA",name:"Virginia"},{code:"US-VT",name:"Vermont"},{code:"US-WA",name:"Washington"},{code:"US-WI",name:"Wisconsin"},{code:"US-WV",name:"West Virginia"},{code:"US-WY",name:"Wyoming"}],UY:[{code:"UY-AR",name:"Artigas"},{code:"UY-CA",name:"Canelones"},{code:"UY-CL",name:"Cerro Largo"},{code:"UY-CO",name:"Colonia"},{code:"UY-DU",name:"Durazno"},{code:"UY-FD",name:"Florida"},{code:"UY-FS",name:"Flores"},{code:"UY-LA",name:"Lavalleja"},{code:"UY-MA",name:"Maldonado"},{code:"UY-MO",name:"Montevideo"},{code:"UY-PA",name:"Paysandu"},{code:"UY-RN",name:"Rio Negro"},{code:"UY-RO",name:"Rocha"},{code:"UY-RV",name:"Rivera"},{code:"UY-SA",name:"Salto"},{code:"UY-SJ",name:"San Jose"},{code:"UY-SO",name:"Soriano"},{code:"UY-TA",name:"Tacuarembo"},{code:"UY-TT",name:"Treinta y Tres"}],UZ:[{code:"UZ-AN",name:"Andijon"},{code:"UZ-BU",name:"Buxoro"},{code:"UZ-FA",name:"Farg'ona"},{code:"UZ-JI",name:"Jizzax"},{code:"UZ-NG",name:"Namangan"},{code:"UZ-NW",name:"Navoiy"},{code:"UZ-QA",name:"Qashqadaryo"},{code:"UZ-QR",name:"Qoraqalpog'iston Respublikasi"},{code:"UZ-SA",name:"Samarqand"},{code:"UZ-SI",name:"Sirdaryo"},{code:"UZ-SU",name:"Surxondaryo"},{code:"UZ-TO",name:"Toshkent"},{code:"UZ-XO",name:"Xorazm"}],VC:[{code:"VC-01",name:"Charlotte"},{code:"VC-04",name:"Saint George"}],VE:[{code:"VE-A",name:"Distrito Federal"},{code:"VE-B",name:"Anzoategui"},{code:"VE-C",name:"Apure"},{code:"VE-D",name:"Aragua"},{code:"VE-E",name:"Barinas"},{code:"VE-F",name:"Bolivar"},{code:"VE-G",name:"Carabobo"},{code:"VE-H",name:"Cojedes"},{code:"VE-I",name:"Falcon"},{code:"VE-J",name:"Guarico"},{code:"VE-K",name:"Lara"},{code:"VE-L",name:"Merida"},{code:"VE-M",name:"Miranda"},{code:"VE-N",name:"Monagas"},{code:"VE-O",name:"Nueva Esparta"},{code:"VE-P",name:"Portuguesa"},{code:"VE-R",name:"Sucre"},{code:"VE-S",name:"Tachira"},{code:"VE-T",name:"Trujillo"},{code:"VE-U",name:"Yaracuy"},{code:"VE-V",name:"Zulia"},{code:"VE-X",name:"Vargas"},{code:"VE-Y",name:"Delta Amacuro"},{code:"VE-Z",name:"Amazonas"}],VN:[{code:"VN-01",name:"Lai Chau"},{code:"VN-02",name:"Lao Cai"},{code:"VN-03",name:"Ha Giang"},{code:"VN-04",name:"Cao Bang"},{code:"VN-05",name:"Son La"},{code:"VN-06",name:"Yen Bai"},{code:"VN-07",name:"Tuyen Quang"},{code:"VN-09",name:"Lang Son"},{code:"VN-13",name:"Quang Ninh"},{code:"VN-14",name:"Hoa Binh"},{code:"VN-18",name:"Ninh Binh"},{code:"VN-20",name:"Thai Binh"},{code:"VN-21",name:"Thanh Hoa"},{code:"VN-22",name:"Nghe An"},{code:"VN-23",name:"Ha Tinh"},{code:"VN-24",name:"Quang Binh"},{code:"VN-25",name:"Quang Tri"},{code:"VN-26",name:"Thua Thien-Hue"},{code:"VN-27",name:"Quang Nam"},{code:"VN-29",name:"Quang Ngai"},{code:"VN-30",name:"Gia Lai"},{code:"VN-31",name:"Binh Dinh"},{code:"VN-32",name:"Phu Yen"},{code:"VN-33",name:"Dak Lak"},{code:"VN-34",name:"Khanh Hoa"},{code:"VN-35",name:"Lam Dong"},{code:"VN-36",name:"Ninh Thuan"},{code:"VN-37",name:"Tay Ninh"},{code:"VN-39",name:"Dong Nai"},{code:"VN-40",name:"Binh Thuan"},{code:"VN-41",name:"Long An"},{code:"VN-44",name:"An Giang"},{code:"VN-45",name:"Dong Thap"},{code:"VN-46",name:"Tien Giang"},{code:"VN-47",name:"Kien Giang"},{code:"VN-49",name:"Vinh Long"},{code:"VN-50",name:"Ben Tre"},{code:"VN-51",name:"Tra Vinh"},{code:"VN-52",name:"Soc Trang"},{code:"VN-53",name:"Bac Kan"},{code:"VN-54",name:"Bac Giang"},{code:"VN-55",name:"Bac Lieu"},{code:"VN-56",name:"Bac Ninh"},{code:"VN-57",name:"Binh Duong"},{code:"VN-58",name:"Binh Phuoc"},{code:"VN-59",name:"Ca Mau"},{code:"VN-61",name:"Hai Duong"},{code:"VN-63",name:"Ha Nam"},{code:"VN-66",name:"Hung Yen"},{code:"VN-67",name:"Nam Dinh"},{code:"VN-68",name:"Phu Tho"},{code:"VN-69",name:"Thai Nguyen"},{code:"VN-70",name:"Vinh Phuc"},{code:"VN-71",name:"Dien Bien"},{code:"VN-CT",name:"Can Tho"},{code:"VN-DN",name:"Da Nang"},{code:"VN-HN",name:"Ha Noi"},{code:"VN-HP",name:"Hai Phong"},{code:"VN-SG",name:"Ho Chi Minh"}],VU:[{code:"VU-MAP",name:"Malampa"},{code:"VU-SAM",name:"Sanma"},{code:"VU-SEE",name:"Shefa"},{code:"VU-TAE",name:"Tafea"},{code:"VU-TOB",name:"Torba"}],WS:[{code:"WS-AA",name:"A'ana"},{code:"WS-AT",name:"Atua"},{code:"WS-GI",name:"Gagaifomauga"},{code:"WS-PA",name:"Palauli"},{code:"WS-TU",name:"Tuamasaga"}
396],YE:[{code:"YE-AB",name:"Abyan"},{code:"YE-AD",name:"'Adan"},{code:"YE-AM",name:"'Amran"},{code:"YE-BA",name:"Al Bayda'"},{code:"YE-DA",name:"Ad Dali"},{code:"YE-DH",name:"Dhamar"},{code:"YE-HD",name:"Hadramawt"},{code:"YE-HJ",name:"Hajjah"},{code:"YE-HU",name:"Al Hudaydah"},{code:"YE-IB",name:"Ibb"},{code:"YE-JA",name:"Al Jawf"},{code:"YE-LA",name:"Lahij"},{code:"YE-MA",name:"Ma'rib"},{code:"YE-MR",name:"Al Mahrah"},{code:"YE-MW",name:"Al Mahwit"},{code:"YE-RA",name:"Raymah"},{code:"YE-SA",name:"Amanat al 'Asimah"},{code:"YE-SD",name:"Sa'dah"},{code:"YE-SH",name:"Shabwah"},{code:"YE-SN",name:"San'a'"},{code:"YE-TA",name:"Ta'izz"}],ZA:[{code:"ZA-EC",name:"Eastern Cape"},{code:"ZA-FS",name:"Free State"},{code:"ZA-GT",name:"Gauteng"},{code:"ZA-LP",name:"Limpopo"},{code:"ZA-MP",name:"Mpumalanga"},{code:"ZA-NC",name:"Northern Cape"},{code:"ZA-NL",name:"KwaZulu-Natal"},{code:"ZA-NW",name:"North-West"},{code:"ZA-WC",name:"Western Cape"}],ZM:[{code:"ZM-01",name:"Western"},{code:"ZM-02",name:"Central"},{code:"ZM-03",name:"Eastern"},{code:"ZM-04",name:"Luapula"},{code:"ZM-05",name:"Northern"},{code:"ZM-06",name:"North-Western"},{code:"ZM-07",name:"Southern"},{code:"ZM-08",name:"Copperbelt"},{code:"ZM-09",name:"Lusaka"}],ZW:[{code:"ZW-BU",name:"Bulawayo"},{code:"ZW-HA",name:"Harare"},{code:"ZW-MA",name:"Manicaland"},{code:"ZW-MC",name:"Mashonaland Central"},{code:"ZW-ME",name:"Mashonaland East"},{code:"ZW-MI",name:"Midlands"},{code:"ZW-MN",name:"Matabeleland North"},{code:"ZW-MS",name:"Matabeleland South"},{code:"ZW-MV",name:"Masvingo"},{code:"ZW-MW",name:"Mashonaland West"}]}},22971:(Se,k,n)=>{n.d(k,{$B:()=>O,DW:()=>i,FW:()=>s,T_:()=>c,UZ:()=>b,Wj:()=>u,ZL:()=>B,ck:()=>l,ft:()=>D,g$:()=>v,gs:()=>R,kL:()=>o,kc:()=>M,nX:()=>t,pq:()=>e,r8:()=>K,up:()=>w,y2:()=>f,y_:()=>X,yg:()=>r,z4:()=>N,z_:()=>m}); 397/* 398 * @license 399 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 400 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 401 *
402 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 403 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 404 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 405 * trade secret or copyright law. 406 * 407 * Dissemination of this information or reproduction of this material is strictly forbidden 408 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 409 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 410 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 411 * explicitly covering such access. 412 * 413 * The copyright notice above does not evidence any actual or intended publication or disclosure 414 * of this source code, which includes information that is confidential and/or proprietary, 415 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 416 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 417 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 418 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 419 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 420 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 421 * IN WHOLE OR IN PART. 422 */ 423var s=(()=>{return(Y=s||(s={}))[Y.Administrator="Administrator"]="Administrator",Y[Y.Client="Client"]="Client",Y[Y.Lawyer="Lawyer"]="Lawyer",Y[Y.Invited="Invited"]="Invited",s;var Y})(),e=(()=>{return(Y=e||(e={})).Person="Person",Y.Company="Company",Y.PersonLong="Protocol$Request$Party$Owner$Person",Y.CompanyLong="Protocol$Request$Party$Owner$Company",e;var Y})();class o{constructor(){this.name=null,this.country=null,this.city=null,this.postalCode=null,this.building=null,this.region=null,this.publicPlaceName=null,this.publicPlaceCategory=null,this.number=null,this.staircase=null,this.floor=null,this.door=null,this.registration=null}}class t{constructor(Z,G,Q,V,se,xe,Ee){this.name=Z,this.taxNumber=G,this.type=Q,this.taxID=V,this.representative=se,this.phone=xe,this.address=Ee}static empty(Z){return new t(null,new i,Z,null,r.empty(Z))}}class v{constructor(Z,G,Q){this.first=Z,this.last=G,this.middle=Q}static empty(){return new v(null,null,null)}}class r{constructor(Z,G,Q,V,se){this.name=Z,this.type=G,this.birth=Q,this.representative=V,this.address=se}static empty(Z){return new r(v.empty(),Z)}}var c=(()=>{return(Y=c||(c={}))[Y.Company="company"]="Company",Y[Y.Personal="personal"]="Personal",c;var Y})(),u=(()=>{return(Y=u||(u={}))[Y.MISSING_CAPTCHA_HEADER="MISSING_CAPTCHA_HEADER"]="MISSING_CAPTCHA_HEADER",Y[Y.INVALID_CAPTCHA="INVALID_CAPTCHA"]="INVALID_CAPTCHA",Y[Y.NO_USABLE_MAIL="NO_USABLE_MAIL"]="NO_USABLE_MAIL",u;var Y})();class m{constructor(Z,G,Q,V){this.mail=Z,this.kind=G,this.token=Q,this.userID=V}}class f{constructor(Z,G,Q){this.name=Z,this.version=G,this.legist=Q}}class O extends f{constructor(Z,G,Q,V,se){super(Z,G,Q),this.content=V,this.variables=se}}var N=(()=>{return(Y=N||(N={}))[Y.Hungarian="Taxpayer$Hungarian"]="Hungarian",Y[Y.Community="Taxpayer$Community"]="Community",Y[Y.Other="Taxpayer$Other"]="Other",N;var Y})();class L{}class i extends L{constructor(){super(...arguments),this.type=N.Hungarian}}class M extends L{constructor(){super(...arguments),this.type=N.Community}}class R extends L{constructor(){super(...arguments),this.type=N.Other}}var l=(()=>{return(Y=l||(l={}))[Y.CompanyResponse="Protocol$Response$Billing$Company"]="CompanyResponse",Y[Y.PersonResponse="Protocol$Response$Billing$Person"]="PersonResponse",Y[Y.CompanyRequest="Protocol$Request$Billing$Recipient$Company"]="CompanyRequest",Y[Y.PersonRequest="Protocol$Request$Billing$Recipient$Person"]="PersonRequest",l;var Y})();class h{}class D extends h{constructor(){super(...arguments),this.type=l.CompanyRequest}}class B extends h{constructor(){super(...arguments),this.type=l.PersonRequest}}var K=(()=>{return(Y=K||(K={}))[Y.INVALID_COMMUNITY_TAX_NUMBER="INVALID_COMMUNITY_TAX_NUMBER"]="INVALID_COMMUNITY_TAX_NUMBER",Y[Y.INVALID_PHONE_NUMBER="INVALID_PHONE_NUMBER"]="INVALID_PHONE_NUMBER",Y[Y.MISSING_REPRESENTATIVE_DATA="MISSING_REPRESENTATIVE_DATA"]="MISSING_REPRESENTATIVE_DATA",Y[Y.INVALID_COUNTRY_WITH_TAX_NUMBER="INVALID_COUNTRY_WITH_TAX_NUMBER"]="INVALID_COUNTRY_WITH_TAX_NUMBER",Y[Y.INVALID_OTHER_TAX_
423NUMBER="INVALID_OTHER_TAX_NUMBER"]="INVALID_OTHER_TAX_NUMBER",Y[Y.UNKNOWN="UNKNOWN"]="UNKNOWN",K;var Y})(),b=(()=>{return(Y=b||(b={}))[Y.INVALID_COMMUNITY_TAX_NUMBER="INVALID_COMMUNITY_TAX_NUMBER"]="INVALID_COMMUNITY_TAX_NUMBER",Y[Y.INVALID_NAV_CREDENTIALS="INVALID_NAV_CREDENTIALS"]="INVALID_NAV_CREDENTIALS",Y[Y.INVALID_PHONE_NUMBER="INVALID_PHONE_NUMBER"]="INVALID_PHONE_NUMBER",Y[Y.INVALID_HUNGARIAN_TAXPAYER_ID="INVALID_HUNGARIAN_TAXPAYER_ID"]="INVALID_HUNGARIAN_TAXPAYER_ID",Y[Y.INVALID_HUNGARIAN_VAT_CODE="INVALID_HUNGARIAN_VAT_CODE"]="INVALID_HUNGARIAN_VAT_CODE",Y[Y.INVALID_HUNGARIAN_COUNTY_CODE="INVALID_HUNGARIAN_COUNTY_CODE"]="INVALID_HUNGARIAN_COUNTY_CODE",Y[Y.INVALID_COMMUNITY_TAXPAYER_ID="INVALID_COMMUNITY_TAXPAYER_ID"]="INVALID_COMMUNITY_TAXPAYER_ID",Y[Y.INVALID_COMMUNITY_COUNTRY_CODE="INVALID_COMMUNITY_COUNTRY_CODE"]="INVALID_COMMUNITY_COUNTRY_CODE",Y[Y.UNKNOWN="UNKNOWN"]="UNKNOWN",b;var Y})(),w=(()=>{return(Y=w||(w={}))[Y.INVALID_PHONE_NUMBER="INVALID_PHONE_NUMBER"]="INVALID_PHONE_NUMBER",Y[Y.UNKNOWN="UNKNOWN"]="UNKNOWN",w;var Y})(),X=(()=>{return(Y=X||(X={}))[Y.INVALID_PHONE_NUMBER="INVALID_PHONE_NUMBER"]="INVALID_PHONE_NUMBER",Y[Y.UNKNOWN="UNKNOWN"]="UNKNOWN",X;var Y})()},35950:(Se,k,n)=>{n.d(k,{f:()=>r});var s=n(39646),e=n(44569),o=n(94650),t=n(39889),v=n(55089);let r=(()=>{class c{constructor(u,m){this.routerService=u,this.userService=m}canActivate(u,m){return this.guard(m)}canActivateChild(u,m){return this.guard(m)}guard(u){if(this.userService.isLoggedIn&&this.userService.isClient)return(0,s.of)(!0);if(this.userService.isLawyer&&u&&u.url&&u.url.includes(`/${e.d.baseClient}/${e.d.baseContract}/`)&&!u.url.includes("/manage")){const m=u.url.split("/"),a=m.findIndex(f=>f===e.d.baseContract);if(-1!==a&&a<m.length&&m[a+1].length>0){const f=m[a+1].split("?");return f.length>0?(this.routerService.routeToContract(f[0],u.root.queryParams.isOwned),(0,s.of)(!0)):(this.routerService.routeToLoginWithForwarding(u.url),(0,s.of)(!0))}return this.routerService.routeToLoginWithForwarding(u.url),(0,s.of)(!0)}return this.routerService.routeToLoginWithForwarding(u.url),(0,s.of)(!0)}}return c.\u0275fac=function(u){return new(u||c)(o.LFG(t.c),o.LFG(v.K))},c.\u0275prov=o.Yz7({token:c,factory:c.\u0275fac}),c})()},74910:(Se,k,n)=>{n.d(k,{d:()=>r});var s=n(44569),e=n(39646),o=n(94650),t=n(39889),v=n(55089);let r=(()=>{class c{constructor(u,m){this.routerService=u,this.userService=m}canActivate(u,m){return this.guard(m,u)}canActivateChild(u,m){return this.guard(m,u)}guard(u,m){if(this.userService.isLoggedIn)return(0,e.of)(!0);if(u&&u.url&&u.url.includes(`/${s.d.baseUser}/${s.d.emailConfirm}`)){if(m.queryParams.mail){let a=`/${s.d.baseUser}/${s.d.emailConfirm}&mail=${m.queryParams.mail}`;return m.queryParams.pin&&(a+=`&pin=${m.queryParams.pin}`),this.routerService.routeToLoginWithForwarding(a),(0,e.of)(!0)}return this.routerService.routeToLogin(),(0,e.of)(!0)}return this.routerService.hrefOrRouter("/"),(0,e.of)(!1)}}return c.\u0275fac=function(u){return new(u||c)(o.LFG(t.c),o.LFG(v.K))},c.\u0275prov=o.Yz7({token:c,factory:c.\u0275fac}),c})()},16023:(Se,k,n)=>{n.d(k,{E:()=>t});var s=n(15861),e=n(8472),o=n(45218); 424/* 425 * @license 426 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 427 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 428 *
429 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 430 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 431 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 432 * trade secret or copyright law. 433 * 434 * Dissemination of this information or reproduction of this material is strictly forbidden 435 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 436 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 437 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 438 * explicitly covering such access. 439 * 440 * The copyright notice above does not evidence any actual or intended publication or disclosure 441 * of this source code, which includes information that is confidential and/or proprietary, 442 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 443 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 444 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 445 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 446 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 447 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 448 * IN WHOLE OR IN PART. 449 */let t=(()=>{class v extends e.hx{constructor(){super()}initialize(){return new Promise((c,C)=>{this.loadScript(v.PROVIDER_ID,"https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",()=>{AppleID.auth.init({clientId:o.L.config.appleClientID,scope:"name email",redirectURI:o.L.config.appleRedirectURI,usePopup:!0}),c()})})}getLoginStatus(){return new Promise((c,C)=>{c(null)})}signIn(c){return(0,s.Z)(function*(){return new Promise((C,u)=>{const m=AppleID.auth.signIn(),a=new e.xs;m.then(f=>{f.authorization?(a.authorizationCode=f.authorization.code,a.idToken=f.authorization.id_token,f.user?(a.name=f.user.name.firstName+" "+f.user.name.lastName,a.email=f.user.email):(a.name=null,a.email=null),C(a)):u(f)},f=>{u(f)})})})()}signOut(c){return new Promise((C,u)=>{C(null)})}}return v.PROVIDER_ID="APPLE",v})()},83154:(Se,k,n)=>{n.d(k,{b:()=>e});var s=n(77579); 450/* 451 * @license 452 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 453 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 454 *
455 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 456 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 457 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 458 * trade secret or copyright law. 459 * 460 * Dissemination of this information or reproduction of this material is strictly forbidden 461 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 462 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 463 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 464 * explicitly covering such access. 465 * 466 * The copyright notice above does not evidence any actual or intended publication or disclosure 467 * of this source code, which includes information that is confidential and/or proprietary, 468 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 469 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 470 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 471 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 472 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 473 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 474 * IN WHOLE OR IN PART. 475 */const e=o=>{const t=o.markAsPristine,v=o.markAsDirty,r=new s.x;return o.markAsPristine=function c(...u){r.next(!0),t.bind(o)(...u)},o.markAsDirty=function C(...u){r.next(!1),v.bind(o)(...u)},r}},7172:(Se,k,n)=>{n.d(k,{D:()=>x});var s=n(97582),e=n(71997),o=n(28736),t=n(92961),v=n(69751),r=n(44569),c=n(44224),C=n(36057),u=n(52835),m=n(45218),a=n(94650),f=n(50211),O=n(25156),N=n(32925),L=n(3674),i=n(81404),M=n(39889),R=n(61479),l=n(75489),h=n(31495),D=n(3417); 476/* 477 * @license 478 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 479 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 480 *
481 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 482 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 483 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 484 * trade secret or copyright law. 485 * 486 * Dissemination of this information or reproduction of this material is strictly forbidden 487 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 488 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 489 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 490 * explicitly covering such access. 491 * 492 * The copyright notice above does not evidence any actual or intended publication or disclosure 493 * of this source code, which includes information that is confidential and/or proprietary, 494 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 495 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 496 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 497 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 498 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 499 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 500 * IN WHOLE OR IN PART. 501 */const B=["defaultHelpText"],K=["defaultHelpTextCredit"],b=["defaultPurchaseText"],w=["defaultPurchaseTextCredit"];function X(E,T){1&E&&a._UZ(0,"nz-skeleton-element",13),2&E&&a.Q6J("nzActive",!0)}function Y(E,T){1&E&&(a.TgZ(0,"div",47),a._UZ(1,"nz-skeleton-element",48)(2,"nz-skeleton-element",48)(3,"nz-skeleton-element",49)(4,"nz-skeleton-element",50),a.qZA()),2&E&&(a.xp6(1),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0))}function Z(E,T){1&E&&a._UZ(0,"nz-skeleton-element",51),2&E&&a.Q6J("nzActive",!0)("nzSize",40)}function G(E,T){1&E&&a._UZ(0,"nz-skeleton-element",51),2&E&&a.Q6J("nzActive",!0)("nzSize",60)}function Q(E,T){if(1&E&&(a.TgZ(0,"nz-list",14),a.YNc(1,Y,5,4,"div",4),a.TgZ(2,"div")(3,"nz-list-item",15),a._UZ(4,"nz-list-item-meta",16),a.TgZ(5,"div",17),a._UZ(6,"nz-skeleton-element",18),a.qZA(),a.TgZ(7,"div",19),a._UZ(8,"nz-skeleton-element",20),a.qZA()(),a.TgZ(9,"nz-list-item",21),a.YNc(10,Z,1,2,"ng-template",null,22,a.W1O),a.TgZ(12,"
501nz-list-item-meta",23)(13,"nz-list-item-meta-title"),a._UZ(14,"nz-skeleton-element",24),a.qZA()(),a.TgZ(15,"span",17)(16,"span"),a._UZ(17,"nz-skeleton-element",13),a.qZA()(),a._UZ(18,"nz-skeleton-element",25),a.TgZ(19,"div",26),a._UZ(20,"nz-skeleton-element",27),a.qZA()(),a.TgZ(21,"nz-list-item",28)(22,"div",29),a._UZ(23,"nz-skeleton-element",13),a.qZA(),a.TgZ(24,"div",30),a._UZ(25,"nz-skeleton-element",31)(26,"nz-skeleton-element",13)(27,"nz-skeleton-element",13)(28,"nz-skeleton-element",32),a.qZA()()(),a.TgZ(29,"div",33)(30,"nz-list",34)(31,"nz-list-item",15),a._UZ(32,"nz-list-item-meta",35)(33,"nz-skeleton-element",36),a.qZA(),a.TgZ(34,"nz-list-item",37),a.YNc(35,G,1,2,"ng-template",null,38,a.W1O),a.TgZ(37,"nz-list-item-meta",39)(38,"nz-list-item-meta-title"),a._UZ(39,"nz-skeleton-element",40),a.qZA()(),a._UZ(40,"nz-skeleton-element",41)(41,"nz-skeleton-element",42),a.qZA(),a.TgZ(42,"div",43)(43,"div",44),a._UZ(44,"nz-skeleton-element",45)(45,"nz-skeleton-element",46)(46,"nz-skeleton-element",13)(47,"nz-skeleton-element",13)(48,"nz-skeleton-element",32),a.qZA()()()()()),2&E){const S=a.MAs(11),$=a.MAs(36),pe=a.oxw(),Re=a.MAs(1);a.Q6J("@skeletonPosAbsLeave",void 0),a.xp6(1),a.Q6J("ngIf",pe.purchaseType===pe.PurchaseType.LAWYER_MEDIATION),a.xp6(3),a.Q6J("nzDescription",Re),a.xp6(2),a.Q6J("nzActive",!0),a.xp6(2),a.Q6J("nzActive",!0),a.xp6(4),a.Q6J("nzAvatar",S)("nzDescription",Re),a.xp6(2),a.Q6J("nzActive",!0),a.xp6(3),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(2),a.Q6J("nzActive",!0),a.xp6(3),a.Q6J("nzActive",!0),a.xp6(2),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(4),a.Q6J("nzDescription",Re),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(4),a.Q6J("nzAvatar",$)("nzDescription",Re),a.xp6(2),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(3),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0),a.xp6(1),a.Q6J("nzActive",!0)}}function V(E,T){1&E&&(a.TgZ(0,"span"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&E&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER_MATCHMAKING")," "))}function se(E,T){if(1&E&&(a.TgZ(0,"div",47)(1,"p"),a.YNc(2,V,3,3,"span",6),a.TgZ(3,"span"),a._uU(4),a.ALo(5,"translate"),a.qZA()(),a.TgZ(6,"p",52),a._uU(7),a.ALo(8,"translate"),a.qZA()()),2&E){const S=a.oxw();a.xp6(2),a.Q6J("ngIf",!S.candidateLawyer),a.xp6(2),a.hij(" ",a.lcZ(5,3,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER_MATCHMAKING_2")," "),a.xp6(3),a.hij(" ",a.lcZ(8,5,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_MATCHMAKING_HEADER")," ")}}function xe(E,T){1&E&&(a.TgZ(0,"div",53)(1,"p",54),a._uU(2),a.ALo(3,"translate"),a.qZA()()),2&E&&(a.xp6(2),a.hij(" ",a.lcZ(3,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.LOAD_FAILED")," "))}function Ee(E,T){if(1&E){const S=a.EpF();a.TgZ(0,"div",53)(1,"p"),a._uU(2),a.ALo(3,"translate"),a.TgZ(4,"a",55),a.NdJ("click",function(){a.CHM(S);const pe=a.oxw();return a.KtG(pe.goToBundles())}),a._uU(5),a.ALo(6,"translate"),a.qZA()()()}if(2&E){const S=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,3,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.NOT_ENOUGH_IN_ALL")," "),a.xp6(2),a.Q6J("href",S.routerService.routeForSettingsTab(S.PageRoutes.settingsBundlesTab),a.LSH),a.xp6(1),a.hij(" ",a.lcZ(6,5,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.BUY_CREDIT")," ")}}function re(E,T){if(1&E&&a._UZ(0,"img",67),2&E){const S=a.oxw(),$=S.$implicit,pe=S.index,Re=a.oxw(2);a.Q6J("src",Re.isSubscription[$.ID]?"assets/images/subscriptions/subscription-"+pe%5+".svg":"assets/images/bundles/bundle-quota.svg",a.LSH)}}const le=function(E){return{quota:E}};function q(E,T){if(1&E&&(a.TgZ(0,"span"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&E){const S=a.oxw(),$=S.last,pe=S.index,Re=S.$implicit,Ke=a.oxw(2);a.xp6(1),a.hij(" ",a.xi3(2,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.CONSUME_FROM_HERE",a.VKq(4,le,!$&&Ke.recommendedBenefitsObject[Ke.benefitList[pe+1].ID]?Re.quota:Ke.lastBenefitQuotaUsed))," ")}}function fe(E,T){if(1&E&&(a.TgZ(0,"span"),a._uU(1),a.ALo(2,"date"),a.ALo(3,"as"),a.qZA()),2&E){const S=a.oxw().$implicit,$=a.oxw(2);a.xp6(1),a.hij(" ",a.gM2(2,1,a.xi3(3,6,S,$.Subscription).expiration,"medium",null,$.dateLocale)," ")}}function de(E,T){if(1&E&&(a.TgZ(0,"span"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&E){const S=a.oxw(3);a.xp6(1),a.hij(" ",a.xi3(2,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFIT
501SLIST.NOT_EXPIRING",a.VKq(4,le,S.quotaNeeded))," ")}}function it(E,T){if(1&E&&(a.TgZ(0,"nz-list-item",21)(1,"nz-list-item-meta",23),a.ALo(2,"translate"),a.ALo(3,"translate"),a.YNc(4,re,1,1,"ng-template",null,63,a.W1O),a.TgZ(6,"nz-list-item-meta-title")(7,"span"),a._uU(8),a.ALo(9,"translate"),a.qZA()()(),a.TgZ(10,"span",17),a.YNc(11,q,3,6,"span",6),a.qZA(),a.TgZ(12,"ul",64)(13,"nz-list-item-action")(14,"span",65),a._uU(15),a.ALo(16,"translate"),a.qZA()()(),a.TgZ(17,"ul",66)(18,"nz-list-item-action"),a.YNc(19,fe,4,9,"span",6),a.ALo(20,"as"),a.YNc(21,de,3,6,"span",6),a.ALo(22,"as"),a.qZA()()()),2&E){const S=T.$implicit,$=a.MAs(5),pe=a.oxw(2);a.xp6(1),a.Q6J("nzAvatar",$)("nzDescription",pe.isSubscription[S.ID]?a.lcZ(2,8,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.PLAN_"+pe.subscriptionLevels[S.key]):a.lcZ(3,10,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.BUNDLE")),a.xp6(7),a.AsE("",a.lcZ(9,12,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.AVAILABLE_POINTS"),": ",S.quota,""),a.xp6(3),a.Q6J("ngIf",pe.recommendedBenefitsObject[S.ID]),a.xp6(4),a.Oqu(a.lcZ(16,14,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.EXPIRATION_DATE")),a.xp6(4),a.Q6J("ngIf",a.xi3(20,16,S,pe.Subscription).expiration),a.xp6(2),a.Q6J("ngIf",!a.xi3(22,19,S,pe.Subscription).expiration)}}const Ve=function(E){return{contract:E}};function W(E,T){if(1&E&&(a._UZ(0,"app-payment-confirm",68),a.ALo(1,"translate")),2&E){const S=a.oxw(2);a.Q6J("confirmText",a.xi3(1,2,"CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.CONTRACT",a.VKq(5,Ve,S.contractDetails.displayElements.name)))("purchaseType",S.purchaseType)}}function ee(E,T){if(1&E&&(a._UZ(0,"app-payment-confirm",68),a.ALo(1,"translate")),2&E){const S=a.oxw(2);a.Q6J("confirmText",a.xi3(1,2,"CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.POINTS",a.VKq(5,le,S.quotaNeeded)))("purchaseType",S.purchaseType)}}const te=function(){return[]};function Pe(E,T){if(1&E&&(a.TgZ(0,"div")(1,"nz-list-item",15),a._UZ(2,"nz-list-item-meta",16),a.ALo(3,"translate"),a.TgZ(4,"span",56),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"ul",57)(8,"nz-list-item-action")(9,"span",56),a._uU(10),a.ALo(11,"translate"),a.qZA()()()(),a.YNc(12,it,23,22,"nz-list-item",58),a.TgZ(13,"nz-list-item",21),a._UZ(14,"nz-list-item-meta",59),a.ALo(15,"translate"),a.TgZ(16,"div",60),a._UZ(17,"app-multi-state-button",61),a.ALo(18,"translate"),a.YNc(19,W,2,7,"app-payment-confirm",62),a.YNc(20,ee,2,7,"app-payment-confirm",62),a.qZA()()()),2&E){const S=a.oxw();a.xp6(2),a.s9C("nzDescription",a.lcZ(3,14,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.RECOMMENDED_COMBINATION")),a.xp6(3),a.Oqu(a.lcZ(6,16,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.QUOTA_TO_CONSUME")),a.xp6(5),a.Oqu(a.lcZ(11,18,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.EXPIRATION_DATE")),a.xp6(2),a.Q6J("ngForOf",S.benefitList),a.xp6(2),a.Q6J("nzDescription",a.lcZ(15,20,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.TOTAL")+": "+S.allAvailableQuota),a.xp6(3),a.Q6J("nzType","primary")("defaultFunction",S.defaultFunction)("defaultFunctionParameters",a.DdM(24,te))("stickResult",!1)("nzTextKeys",S.progressID&&S.contractDetails&&S.contractFormDisplay?S.purchaseTextCredit:S.helpTextCredit)("nzTooltipTitle",S.cardPaymentInProgress?a.lcZ(18,22,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.OTHER_PAYMENT_IN_PROGRESS"):null)("disabled",S.cardPaymentInProgress),a.xp6(2),a.Q6J("ngIf",S.purchaseType===S.PurchaseType.CONTRACT),a.xp6(1),a.Q6J("ngIf",S.purchaseType===S.PurchaseType.LAWYER_MEDIATION)}}function Ue(E,T){if(1&E&&a._UZ(0,"img",73),2&E){const S=a.oxw(2);a.s9C("src",S.progressID&&S.contractDetails&&S.contractFormDisplay?S.ClientRoutes.apiRouteContractIcon(S.contractFormDisplay.editor.iconDark):S.matchmakingAssetModel?S.ClientRoutes.apiRouteContractIcon(S.matchmakingAssetModel.name):"assets/images/marchmaking-service.svg",a.LSH)}}function Ae(E,T){if(1&E&&(a.TgZ(0,"span"),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"translate"),a.qZA()),2&E){const S=a.oxw(2);a.xp6(1),a.hij(" (",S.vat&&S.vat!==S.VATValue.Standard?a.lcZ(3,3,"COMMON.NOT_INCL_TAX"):a.lcZ(2,1,"COMMON.INCL_TAX"),") ")}}function Fe(E,T){1&E&&(a.TgZ(0,"span"),a._uU(1,"*"),a.qZA())}const Qe=function(E){return{categoryName:E}},rt=function(E,T){return{price:E,currency:T}};function Ct(E,T){if(1&E){const S=a.EpF();a.TgZ(0,"div")(1,"nz-list-item",21),a._UZ(2,"nz-list-item-meta",16),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div")(5,"nz-list-item",21)(6,"nz-list-item-meta",69),a.ALo(7,"translate"),a.ALo(8,"translate"),a.YNc(9,Ue,1,1,"ng-template",null,70,a.W1O),a.TgZ(11,"nz-list-item-meta-title")(12,"span"),a._uU(13),a.ALo(14,"formatCurrencyName"),a.YNc(15,Ae,4,5,"span",6),a.qZA(),a.YNc(16,Fe,2,0,"span",6),a.qZA()(),a.TgZ(17,"div",17),a._UZ(18,"span",71),a.ALo(19,"translate"),a.ALo(20,"formatCurrencyName"),a.qZA(),a.TgZ(21,"ul",66)(22,"nz-list-item-action")(23,"button",72),a.NdJ("click",function(){a.CHM(S);const pe=a.oxw();return a.KtG(pe.showOnepagecheckout())}),a.ALo(24,"safe"),a.ALo(25,"translate"),a.ALo(26,"translate"),a.ALo(27,"translate"),a.ALo(28,"formatCurrencyName"),a.qZA()()()()()()}if(2&E){const S=a.MAs(10),$=a.oxw();a.xp6(2),a.s9C("nzDescription",a.lcZ(3,9,"CLIENT.CONTRACTS.FINALIZATION.BENEFIT
501SLIST.PAY_AS_YOU_GO")),a.xp6(4),a.Q6J("nzAvatar",S)("nzDescription",$.progressID&&$.contractDetails&&$.contractFormDisplay?$.contractName:$.matchmakingCategoryModel?a.xi3(7,11,"CLIENT.HELP.PRODUCT_NAME",a.VKq(34,Qe,$.matchmakingCategoryModel.names[$.actLanguage])):a.lcZ(8,14,"CLIENT.HELP.PRODUCT_NAME_DEFAULT")),a.xp6(7),a.AsE("",$.vat&&$.vat!==$.VATValue.Standard?$.netPrice:$.price,"\xa0",a.lcZ(14,16,$.currency)," "),a.xp6(2),a.Q6J("ngIf",$.vat),a.xp6(1),a.Q6J("ngIf",!$.hasBilling&&$.purchaseType!==$.PurchaseType.LAWYER_MEDIATION),a.xp6(2),a.Q6J("innerHTML",a.xi3(19,18,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MONEY_NEEDED",a.WLB(36,rt,$.vat&&$.vat!==$.VATValue.Standard?$.netPrice:$.price,a.lcZ(20,21,$.currency))),a.oJD),a.xp6(5),a.Q6J("innerHTML",a.xi3(24,23,$.progressID&&$.contractDetails&&$.contractFormDisplay?a.lcZ(25,26,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.BUY_CONTRACT"):($.candidateLawyer?a.lcZ(26,28,"CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.DEFAULT"):a.lcZ(27,30,"CLIENT.HELP.BUTTON_STATES.DEFAULT"))+" ("+($.vat&&$.vat!==$.VATValue.Standard?$.netPrice:$.price)+"\xa0"+a.lcZ(28,32,$.currency)+")","html"),a.oJD)}}function ht(E,T){if(1&E){const S=a.EpF();a.TgZ(0,"div",74)(1,"app-purchase-modal",75),a.NdJ("cardPaymentInProgressChanged",function(pe){a.CHM(S);const Re=a.oxw();return a.KtG(Re.changeCardPaymentInProgress(pe))})("readyCallback",function(){a.CHM(S);const pe=a.oxw();return a.KtG(pe.purchaseReady())}),a.ALo(2,"formatCurrencyName"),a.ALo(3,"translate"),a.ALo(4,"translate"),a.qZA()()}if(2&E){const S=a.oxw();a.Q6J("hidden",S.loading),a.xp6(1),a.Q6J("imageUrl",S.ClientRoutes.apiRouteContractIcon(S.contractFormDisplay.editor.iconDark))("productName",S.contractName)("itemPrice",S.price+"\xa0"+a.lcZ(2,18,S.currency))("currency",S.currency)("requestFromPaymentID",S.purchaseRequest)("submitText",S.purchaseText)("confirmText",a.xi3(3,20,"CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.CONTRACT",a.VKq(25,Ve,S.contractDetails.displayElements.name)))("purchaseLabel",a.lcZ(4,23,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.PAY_AS_YOU_GO"))("purchaseType",S.PurchaseType.CONTRACT)("showFooter",!1)("showPopconfirm",!0)("popconfirmTitle","CLIENT.PROFILE.PAYMENT.POPCONFIRM.FINALIZATION")("popconfirmOkText","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.DEFAULT")("vat",S.vat)("currentPaymentProvider",S.currentPaymentProvider)("creditPaymentInProgress",S.creditPaymentInProgress)("checkNeeded",S.checkNeeded)}}const mt=function(E,T){return{amount:E,currency:T}};function ye(E,T){if(1&E){const S=a.EpF();a.TgZ(0,"div",74)(1,"app-purchase-modal",76),a.NdJ("cardPaymentInProgressChanged",function(pe){a.CHM(S);const Re=a.oxw();return a.KtG(Re.changeCardPaymentInProgress(pe))})("readyCallback",function(){a.CHM(S);const pe=a.oxw();return a.KtG(pe.purchaseReady())}),a.ALo(2,"translate"),a.ALo(3,"translate"),a.ALo(4,"formatCurrencyName"),a.ALo(5,"translate"),a.ALo(6,"formatCurrencyName"),a.ALo(7,"translate"),a.qZA()()}if(2&E){const S=a.oxw();a.Q6J("hidden",S.loading),a.xp6(1),a.Q6J("imageUrl",S.matchmakingAssetModel?S.ClientRoutes.apiRouteContractIcon(S.matchmakingAssetModel.name):"assets/images/marchmaking-service.svg")("productName",S.matchmakingCategoryModel?a.xi3(2,17,"CLIENT.HELP.PRODUCT_NAME",a.VKq(31,Qe,S.matchmakingCategoryModel.names[S.actLanguage])):a.lcZ(3,20,"CLIENT.HELP.PRODUCT_NAME_DEFAULT"))("itemPrice",S.price+"\xa0"+a.lcZ(4,22,S.currency))("currency",S.currency)("requestFromPaymentID",S.purchaseRequest)("submitText",S.helpText)("confirmText",a.xi3(5,24,"CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.AMOUNT",a.WLB(33,mt,S.price,a.lcZ(6,27,S.currency))))("purchaseLabel",a.lcZ(7,29,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.PAY_AS_YOU_GO"))("purchaseType",S.purchaseType)("showFooter",!1)("showPopconfirm",!0)("popconfirmTitle","CLIENT.PROFILE.PAYMENT.POPCONFIRM.MATCHMAKING")("popconfirmOkText",S.candidateLawyer?"CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.DEFAULT":"CLIENT.HELP.BUTTON_STATES.DEFAULT")("vat",S.vat)("currentPaymentProvider",S.currentPaymentProvider)("creditPaymentInProgress",S.creditPaymentInProgress)}}function Ce(E,T){1&E&&a._UZ(0,"nz-list-empty")}function j(E,T){1&E&&(a.TgZ(0,"p",79),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&E&&(a.xp6(1),a.hij(" * ",a.lcZ(2,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFIT
501SLIST.MODAL_FOOTER_TEMP_PRICE")," "))}function _e(E,T){1&E&&(a.TgZ(0,"span"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&E&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER")," "))}function F(E,T){1&E&&(a.TgZ(0,"span"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&E&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER_MATCHMAKING")," "))}function ne(E,T){1&E&&(a.TgZ(0,"span"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&E&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER_MATCHMAKING_2")," "))}function U(E,T){if(1&E&&(a.TgZ(0,"p",79),a.YNc(1,_e,3,3,"span",6),a.YNc(2,F,3,3,"span",6),a.YNc(3,ne,3,3,"span",6),a.qZA()),2&E){const S=a.oxw(2);a.xp6(1),a.Q6J("ngIf",S.contractDetails&&S.contractFormDisplay),a.xp6(1),a.Q6J("ngIf",!(S.contractDetails&&S.contractFormDisplay||S.candidateLawyer)),a.xp6(1),a.Q6J("ngIf",!(S.contractDetails&&S.contractFormDisplay))}}function et(E,T){1&E&&(a.TgZ(0,"p",79),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&E&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER_MATCHMAKING_3")," "))}function ct(E,T){if(1&E&&(a.TgZ(0,"div"),a.YNc(1,j,3,3,"p",77),a.YNc(2,U,4,3,"p",77),a.YNc(3,et,3,3,"p",77),a._UZ(4,"app-feedback",78),a.qZA()),2&E){const S=a.oxw();a.xp6(1),a.Q6J("ngIf",!S.loading&&(!S.hasBilling||S.contractsCost&&S.contractsCost.isEstimate)&&S.purchaseType!==S.PurchaseType.LAWYER_MEDIATION),a.xp6(1),a.Q6J("ngIf",!S.loading),a.xp6(1),a.Q6J("ngIf",!S.loading&&!S.contractDetails&&!S.contractFormDisplay),a.xp6(1),a.Q6J("unit",S.FeedbackUnit.BenefitList)("feature",S.FeedbackFeature.Modal)("aspect",S.feedbackType)}}function ft(E,T){if(1&E&&(a._uU(0),a.ALo(1,"translate"),a.ALo(2,"translate"),a.ALo(3,"formatCurrencyName")),2&E){const S=a.oxw();a.lnq(" ",S.candidateLawyer?a.lcZ(1,3,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.BUY_CONTRACT"):a.lcZ(2,5,"CLIENT.HELP.BUTTON_STATES.DEFAULT")," (",S.price,"\xa0",a.lcZ(3,7,S.currency),")\n")}}function Ze(E,T){if(1&E&&(a._uU(0),a.ALo(1,"translate"),a.ALo(2,"translate"),a.ALo(3,"translate")),2&E){const S=a.oxw();a.lnq(" ",S.candidateLawyer?a.lcZ(1,3,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.BUY_CONTRACT"):a.lcZ(2,5,"CLIENT.HELP.BUTTON_STATES.DEFAULT")," (",S.quotaNeeded," ",a.lcZ(3,7,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.SZERZI_CREDIT"),")\n")}}function Oe(E,T){if(1&E&&(a._uU(0),a.ALo(1,"translate"),a.ALo(2,"formatCurrencyName")),2&E){const S=a.oxw();a.lnq(" ",a.lcZ(1,3,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.DEFAULT")," (",S.price,"\xa0",a.lcZ(2,5,S.currency),")\n")}}function y(E,T){if(1&E&&(a._uU(0),a.ALo(1,"translate"),a.ALo(2,"translate")),2&E){const S=a.oxw();a.lnq(" ",a.lcZ(1,3,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.DEFAULT")," (",S.quotaNeeded," ",a.lcZ(2,5,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.SZERZI_CREDIT"),")\n")}}let x=class{constructor(T,S,$,pe,Re,Ke,nt,lt,$e,qe,ve){this.clientService=T,this.modal=S,this.nzModal=$,this.translate=pe,this.utilService=Re,this.paymentModalService=Ke,this.routerService=nt,this.resizeService=lt,this.eventService=$e,this.onepageService=qe,this.languageService=ve,this.price=0,this.currency=e.Fa6.HUF,this.currentPaymentProvider=m.L.config.currentPaymentProvider,this.checkNeeded=!1,this.loadingBenefits=!0,this.loadingPayment=!0,this.loadingPurchase=!0,this.loading=!0,this.recommendedBenefits=[],this.recommendedBenefitsObject={},this.quotaLeft=0,this.requestID=this.utilService.randomString(128),this.purchaseText=new t.PR("CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.DEFAULT","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.WORKING","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.SUCCESS","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.FAILED"),this.purchaseTextCredit=new t.PR("CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.DEFAULT","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.WORKING","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.SUCCESS","CLIENT.CONTRACTS.FINALIZATION.BENEFIT
501SLIST.ONEPAGE.BUTTON_STATES.FAILED"),this.helpErrorMap=(new Map).set(0,"CLIENT.HELP.BUTTON_STATES.FAILED.OTHER").set(402,"CLIENT.HELP.BUTTON_STATES.FAILED.402").set(404,"CLIENT.HELP.BUTTON_STATES.FAILED.NOT_FOUND").set(423,"CLIENT.HELP.BUTTON_STATES.FAILED.LOCKED").set(444,"CLIENT.HELP.BUTTON_STATES.FAILED.444").set(499,"CLIENT.HELP.BUTTON_STATES.FAILED.CANCELLED"),this.helpText=new t.PR("CLIENT.HELP.BUTTON_STATES.DEFAULT","CLIENT.HELP.BUTTON_STATES.WORKING","CLIENT.HELP.BUTTON_STATES.SUCCESS",this.helpErrorMap),this.helpTextCredit=new t.PR("CLIENT.HELP.BUTTON_STATES.DEFAULT","CLIENT.HELP.BUTTON_STATES.WORKING","CLIENT.HELP.BUTTON_STATES.SUCCESS",this.helpErrorMap),this.insteadText=new t.PR("CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.CHOOSE_BUTTON.CHANGE","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.CHOOSE_BUTTON.CHANGING","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.CHOOSE_BUTTON.CHANGED","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.CHOOSE_BUTTON.FAILED"),this.acceptText=new t.PR("CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ACCEPT_BUTTON.CHANGE","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ACCEPT_BUTTON.CHANGING","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ACCEPT_BUTTON.CHANGED","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ACCEPT_BUTTON.FAILED"),this.hasBilling=!1,this.hasPayment=!1,this.ClientRoutes=o.i,this.PageRoutes=r.d,this.PurchaseType=C.Oz,this.Subscription=e.w0K,this.benefitsArray=[],this.benefitList=[],this.lastBenefitQuotaUsed=0,this.dateLocale="hu",this.phoneView=!1,this.allAvailableQuota=0,this.isSubscription={},this.subscriptionLevels={},this.FeedbackUnit=e._0Z,this.FeedbackFeature=e.lrp,this.PaymentProvider=e.OHy,this.VATValue=e.di5,this.feedbackType="",this.creditPaymentInProgress=!1,this.cardPaymentInProgress=!1,this.actLanguage="hu-HU"}ngOnInit(){this.actLanguage=this.languageService.dashedServerLanguageFromLanguageKey(this.languageService.currentLanguage),this.translate.onLangChange.subscribe(T=>{this.actLanguage=this.languageService.dashedServerLanguageFromLanguageKey(T.lang)}),this.feedbackType=this.purchaseType.toString(),this.defaultFunction=T=>this.finalize(T),this.clientService.getBenefits().pipe((0,c.t)(this)).subscribe(T=>{this.benefits=T,this.benefitsArray=[...this.benefits.subscriptions,...this.benefits.packs].sort((S,$)=>S.expiration&&$.expiration?S.expiration-$.expiration:S.expiration?-1:$.expiration?1:0),this.benefits.subscriptions.forEach(S=>{this.isSubscription[S.ID]=!0,this.subscriptionLevels[S.key]=S.key.split("-").length>0?S.key.split("-")[1]:S.key}),this.benefitList=[];for(const S of this.benefitsArray)this.allAvailableQuota+=S.quota,0===this.benefitList.length?this.benefits.subscriptions.includes(S)?this.benefitList.push(e.w0K.fromSubscription(S)):this.benefits.packs.includes(S)&&this.benefitList.push(e.QiL.fromPack(S)):!S.expiration&&!this.benefitList[this.benefitList.length-1].expiration||S.expiration===this.benefitList[this.benefitList.length-1].expiration?this.benefitList[this.benefitList.length-1].quota+=S.quota:this.benefits.subscriptions.includes(S)?this.benefitList.push(e.w0K.fromSubscription(S)):this.benefits.packs.includes(S)&&this.benefitList.push(e.QiL.fromPack(S));this.progressID?this.getContractProgress():this.quotaNeeded&&this.calculateRecommendedBenefits(),this.loadingBenefits=!1,this.loading=this.loadingBenefits||this.loadingPayment||this.loadingPurchase},T=>{console.log(T),this.progressID?this.getContractProgress():this.quotaNeeded&&this.calculateRecommendedBenefits(),this.loadingBenefits=!1,this.loading=this.loadingBenefits||this.loadingPayment||this.loadingPurchase}),this.progressID&&(this.updatePrice(),this.eventService.changedClientStatus.subscribe(T=>{this.updatePrice()}),this.clientService.getFormDisplayElements(this.progressID).pipe((0,c.t)(this)).subscribe(T=>{this.contractFormDisplay=T},T=>{})),this.checkBillingAndPayment(),this.purchaseRequest=T=>new v.y(S=>{S.next(this.finalizeWithPayment(T))}),this.translate.currentLang&&(this.dateLocale=this.translate.currentLang),this.translate.onLangChange.subscribe(T=>{this.dateLocale=T.lang}),this.resizeService.width.subscribe(T=>{this.phoneView=T<1185}),window.innerWidth<1185&&(this.phoneView=!0)}ngAfterViewInit(){this.helpText=new t.PR(this.defaultHelpText,"CLIENT.HELP.BUTTON_STATES.WORKING","CLIENT.HELP.BUTTON_STATES.SUCCESS",this.helpErrorMap),this.helpTextCredit=new t.PR(this.defaultHelpTextCredit,"CLIENT.HELP.BUTTON_STATES.WORKING","CLIENT.HELP.BUTTON_STATES.SUCCESS",this.helpErrorMap),this.purchaseText=new t.PR(this.defaultPurchaseText,"CLIENT.CONTRACTS.FINALIZATION.BENEFIT
501SLIST.ONEPAGE.BUTTON_STATES.WORKING","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.SUCCESS","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.FAILED"),this.purchaseTextCredit=new t.PR(this.defaultPurchaseTextCredit,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.WORKING","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.SUCCESS","CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.BUTTON_STATES.FAILED")}checkBillingAndPayment(){return this.clientService.getBilling().pipe((0,c.t)(this)).toPromise().then(T=>{this.hasBilling=null!=T},T=>{this.hasBilling=!1}).then(()=>this.clientService.getPaymentMethod().pipe((0,c.t)(this)).toPromise().then(T=>{this.hasPayment=0!==T.length,this.loadingPayment=!1,this.loadingPurchase=this.hasBilling&&this.hasPayment&&this.loadingPurchase,this.loading=this.loadingBenefits||this.loadingPayment||this.loadingPurchase},T=>{this.hasPayment=!1,this.loadingPayment=!1,this.loadingPurchase=this.hasBilling&&this.hasPayment&&this.loadingPurchase,this.loading=this.loadingBenefits||this.loadingPayment||this.loadingPurchase}))}updatePrice(){this.clientService.getContractFinalizeCost(this.progressID).pipe((0,c.t)(this)).subscribe(T=>{this.price=T.grossPrice,this.contractsCost=T,this.onepageService.contractPriceChanged.emit(T.grossPrice)})}showOnepagecheckout(){let T=!1;return new Promise((S,$)=>{this.purchaseType===C.Oz.CONTRACT?this.paymentModalService.onepagecheckoutModalForFinalization(!this.hasBilling,!this.hasPayment,this.phoneView,this.purchaseText,this.price,this.currency?this.currency:e.Fa6.HUF,this.contractDetails.displayElements.name,o.i.apiRouteContractIcon(this.contractFormDisplay.editor.iconDark),Re=>{this.modal.result=Re;const Ke=this.successCallback(this.modal.result,this.price,this.currency);return Ke.then(()=>{this.modal.triggerOk(),S(this.checkBillingAndPayment())}),Ke},()=>{T=!0,$()},this.currentPaymentProvider):this.purchaseType===C.Oz.LAWYER_MEDIATION?this.paymentModalService.onepagecheckoutModalForMatchmaker(!this.hasBilling,!this.hasPayment,this.phoneView,this.price,this.currency?this.currency:e.Fa6.HUF,Re=>{this.modal.result=Re;const Ke=this.successCallback(this.modal.result,this.price,this.currency);return Ke.then(()=>{this.modal.triggerOk(),S(this.checkBillingAndPayment())}),Ke},()=>{T=!0,$()},this.matchmakingCategoryModel,this.matchmakingAssetModel,this.candidateLawyer,this.netPrice):console.log(`In the benefit list modal purchase type should be "CONTRACT" or "LAWYER_MEDIATION", [${this.purchaseType}] is not accepted!`)})}finalize(T){this.creditPaymentInProgress=!0;let S=[];S=T?[T]:this.recommendedBenefits;const $=new e.h$3(S),pe=this.finalizeWithPayment($);return pe.then(()=>{this.creditPaymentInProgress=!1},Re=>{this.creditPaymentInProgress=!1}),pe}finalizeWithPayment(T){this.modal.result=T;const S=this.successCallback(this.modal.result,this.price,this.currency);return S.then(()=>this.modal.triggerOk(),$=>console.log($)),S}calculateRecommendedBenefits(){this.recommendedBenefits=[],this.recommendedBenefitsObject={},this.quotaLeft=this.quotaNeeded,this.lastBenefitQuotaUsed=0;for(let T=0;T<this.benefitsArray.length&&this.quotaLeft>0;T++)this.benefitList.find(S=>S.ID===this.benefitsArray[T].ID)&&(this.lastBenefitQuotaUsed=0,this.lastBenefitUsed=this.benefitsArray[T]),this.recommendedBenefits.push(this.benefitsArray[T].ID),this.quotaLeft-=this.benefitsArray[T].quota,this.lastBenefitQuotaUsed+=this.benefitsArray[T].quota,this.recommendedBenefitsObject[this.benefitsArray[T].ID]=!0;this.quotaLeft>0?this.recommendedBenefits=[]:this.lastBenefitQuotaUsed+=this.quotaLeft}isNotAllRecommended(T){return T.some(S=>!this.recommendedBenefits.includes(S.ID))}goToBundles(){this.nzModal.closeAll()}purchaseReady(){this.loadingPurchase=!1,this.loading=this.loadingBenefits||this.loadingPayment||this.loadingPurchase}getContractProgress(){this.progressID&&this.clientService.getContractProgressByID(this.progressID).pipe((0,c.t)(this)).subscribe(T=>{this.contractDetails=T,this.quotaNeeded=T.progress.quota,this.contractName=T.progress.metadata.name?T.progress.metadata.name:T.dis
501playElements.name,this.calculateRecommendedBenefits()},T=>{console.log(T),this.clientService.getContractSharedPermission(this.progressID).pipe((0,c.t)(this)).subscribe(S=>{this.contractDetails=S,this.quotaNeeded=S.progress.quota,this.contractName=S.progress.metadata&&S.progress.metadata.name?S.progress.metadata.name:S.displayElements.name,this.calculateRecommendedBenefits()},S=>{})})}changeCardPaymentInProgress(T){this.cardPaymentInProgress=T}};x.\u0275fac=function(T){return new(T||x)(a.Y36(f.y),a.Y36(O.Lf),a.Y36(O.Sf),a.Y36(N.sK),a.Y36(L.f),a.Y36(i.u),a.Y36(M.c),a.Y36(R._),a.Y36(l.P),a.Y36(h.g),a.Y36(D.T))},x.\u0275cmp=a.Xpm({type:x,selectors:[["ng-component"]],viewQuery:function(T,S){if(1&T&&(a.Gf(B,5),a.Gf(K,5),a.Gf(b,5),a.Gf(w,5)),2&T){let $;a.iGM($=a.CRH())&&(S.defaultHelpText=$.first),a.iGM($=a.CRH())&&(S.defaultHelpTextCredit=$.first),a.iGM($=a.CRH())&&(S.defaultPurchaseText=$.first),a.iGM($=a.CRH())&&(S.defaultPurchaseTextCredit=$.first)}},inputs:{progressID:"progressID",quotaNeeded:"quotaNeeded",price:"price",netPrice:"netPrice",currency:"currency",purchaseType:"purchaseType",successCallback:"successCallback",vat:"vat",currentPaymentProvider:"currentPaymentProvider",checkNeeded:"checkNeeded",matchmakingCategoryModel:"matchmakingCategoryModel",matchmakingAssetModel:"matchmakingAssetModel",candidateLawyer:"candidateLawyer"},decls:23,vars:11,consts:[["descriptionSkeletonTemplate",""],[1,"position-relative"],["nzItemLayout","horizontal","class","w-100",4,"ngIf"],["nzItemLayout","horizontal",3,"hidden"],["class","mb-2",4,"ngIf"],["class","text-center",4,"ngIf"],[4,"ngIf"],[3,"hidden",4,"ngIf"],[4,"nzModalFooter"],["defaultHelpText",""],["defaultHelpTextCredit",""],["defaultPurchaseText",""],["defaultPurchaseTextCredit",""],["nzType","input","nzSize","small",1,"w-80","skeleton-h-20px",3,"nzActive"],["nzItemLayout","horizontal",1,"w-100"],[1,"flex-wrap","justify-normal"],[1,"col-sm-4","col-6","text-sm-left","text-center","metaDescription",3,"nzDescription"],[1,"col-sm-4","col-6","mt-sm-0","mt-2","text-sm-left","text-center"],["nzType","input","nzSize","small",1,"w-70","skeleton-h-20px",3,"nzActive"],[1,"m-l-0","m-b-0","col-sm-4","col-6","mt-lg-0","mt-3","d-sm-block","d-none","buttonDiv"],["nzType","input","nzSize","small",1,"w-50","skeleton-h-20px",3,"nzActive"],[1,"flex-wrap"],["avatarSkeletonTemplate",""],[1,"col-sm-4","col-6","text-sm-left","text-center","metaDescription",3,"nzAvatar","nzDescription"],["nzType","input","nzSize","small",1,"w-90","skeleton-h-20px",3,"nzActive"],["nzType","input","nzSize","small",1,"m-l-0","m-b-0","col-sm-4","col-6","mt-lg-0","mt-3","d-block","d-sm-none","buttonDiv","skeleton-h-20px",3,"nzActive"],[1,"m-l-0","m-b-0","col-sm-4","col-6","mt-lg-0","mt-3","buttonDiv"],["nzType","input","nzSize","small",1,"w-40",3,"nzActive"],[1,"flex-wrap","p-b-5"],[1,"col-6","align-self-start","text-sm-left","text-center","metaDescription"],[1,"m-l-0","m-b-0","col-6","mt-lg-0","mt-3","text-right"],["nzType","input","nzSize","large",1,"w-70",3,"nzActive"],["nzType","input","nzSize","small",1,"w-60","skeleton-h-20px",3,"nzActive"],[1,"w-100"],["nzItemLayout","horizontal"],[1,"col-sm-6","col-12","text-sm-left","text-center","metaDescription",3,"nzDescription"],["nzType","input","nzSize","small",1,"col-sm-6","col-12","mt-sm-0","mt-2","text-sm-left","text-center","skeleton-h-20px",3,"nzActive"],[1,"flex-wrap","border-bottom-0"],["avatarSkeletonTemplate60",""],[1,"col-sm-6","col-12","text-sm-left","text-center","metaDescription",3,"nzAvatar","nzDescription"],["nzType","input","nzSize","small",1,"p-b-10","w-25",3,"nzActive"],["nzType","input","nzSize","small",1,"m-l-0","m-b-0","col-sm-6","col-12","mt-lg-0","mt-3","d-block","d-sm-none","buttonDiv",3,"nzActive"],["nzType","input","nzSize","large",1,"m-l-0","m-b-0","col-sm-6","col-12","mt-lg-0","mt-3","selectionSkeleton",3,"nzActive"],[1,"w-100","text-right"],[1,"d-inline-block","m-l-0","m-b-0","col-sm-6","col-12","mt-lg-0","mt-3"],["nzType","input","nzSize","large",1,"p-b-30","w-70",3,"nzActive"],["nzType","input","nzSize","large",1,"w-85",3,"nzActive"],[1,"mb-2"],["nzType","input","nzSize","small",1,"m-b-1","w-100",3,"nzActive"],["nzType","input","nzSize","small",1,"mb-3","w-50",3,"nzActive"],["nzType","input","nzSize","small",1,"m-b-10","w-70","skeleton-h-20px",3,"nzActive"],["nzType","avatar",1,"w-100",3,"nzActive","nzSize"],[1,"small"],[1,"text-center"],[1,"text-danger"],[1,"color-secondary",3,"href","click"],[1,"col-sm-4","col-6","mt-sm-0","mt-2","text-sm-left","text-center","font-weight-lighter","font-size-smaller"],["nz-list-item-actions","",1,"m-l-0","m-b-0","col-sm-4","col-6","mt-lg-0","mt-3","d-sm-block","d-none","buttonDiv"],["class","flex-wrap",4,"ngFor","ngForOf"],[1,"col-6","align-self-start","text-sm-left","text-center","metaDescription",3,"nzDescription"],[1,"m-l-0","m-b-0","col-6","mt-lg-0","mt-3","text-right","p-l-0"],["nz-tooltip","",1,"multiLineButton",3,"nzType","defaultFunction","defaultFunctionParameters","stickResult","nzTextKeys","nzTooltipTitle","disabled"],[3,"confirmText","purchaseType",4,"ngIf"],["multipleRecommendedAvatarTemplate",""],["nz-list-item-actions","",1,"m-l-0","m-b-0","col-sm-4","col-6","mt-lg-0","mt-3","d-block","d-sm-none","buttonDiv"],[1,"mt-sm-0","mt-2","text-sm-left","text-center","font-weight-lighter","font-size-smaller"],["nz-list-item-actions","",1,"m-l-0","m-b-0","col-sm-4","col-6","mt-lg-0","mt-3","buttonDiv"],["alt","Benefit icon",1,"avatarImage",3,"src"],[3,"confirmText","purchaseType"],[1,"col-sm-4","col-6","col-12","text-sm-left","text-center","metaDescription",3,"nzAvatar","nzDescription"],["packAvatarTemplate",""],[1,"w-100",3,"innerHTML"],["nz-button","","nzType","primary",1,"multiLineButton",3,"innerHTML","click"],["alt","Matchmaking service logo",1,"avatarImage",3,"src"],[3,"hidden"],[3,"imageUrl","productName","
501itemPrice","currency","requestFromPaymentID","submitText","confirmText","purchaseLabel","purchaseType","showFooter","showPopconfirm","popconfirmTitle","popconfirmOkText","vat","currentPaymentProvider","creditPaymentInProgress","checkNeeded","cardPaymentInProgressChanged","readyCallback"],[3,"imageUrl","productName","itemPrice","currency","requestFromPaymentID","submitText","confirmText","purchaseLabel","purchaseType","showFooter","showPopconfirm","popconfirmTitle","popconfirmOkText","vat","currentPaymentProvider","creditPaymentInProgress","cardPaymentInProgressChanged","readyCallback"],["class","small text-left",4,"ngIf"],[3,"unit","feature","aspect"],[1,"small","text-left"]],template:function(T,S){1&T&&(a.YNc(0,X,1,1,"ng-template",null,0,a.W1O),a.TgZ(2,"div",1),a.YNc(3,Q,49,28,"nz-list",2),a.TgZ(4,"nz-list",3),a.YNc(5,se,9,7,"div",4),a.YNc(6,xe,4,3,"div",5),a.YNc(7,Ee,7,7,"div",5),a.YNc(8,Pe,21,25,"div",6),a.YNc(9,Ct,29,39,"div",6),a.YNc(10,ht,5,27,"div",7),a.YNc(11,ye,8,36,"div",7),a.YNc(12,Ce,1,0,"nz-list-empty",6),a.qZA()(),a.TgZ(13,"div"),a.YNc(14,ct,5,6,"div",8),a.qZA(),a.YNc(15,ft,4,9,"ng-template",null,9,a.W1O),a.YNc(17,Ze,4,9,"ng-template",null,10,a.W1O),a.YNc(19,Oe,3,7,"ng-template",null,11,a.W1O),a.YNc(21,y,3,7,"ng-template",null,12,a.W1O)),2&T&&(a.xp6(3),a.Q6J("ngIf",S.loading),a.xp6(1),a.Q6J("hidden",S.loading)("@skeletonPosAbsLeave",void 0),a.xp6(1),a.Q6J("ngIf",!S.loading&&!S.contractDetails&&!S.contractFormDisplay),a.xp6(1),a.Q6J("ngIf",!S.loading&&!S.benefits),a.xp6(1),a.Q6J("ngIf",!S.loading&&S.benefits&&S.recommendedBenefits&&0===S.recommendedBenefits.length&&S.purchaseType!==S.PurchaseType.LAWYER_MEDIATION),a.xp6(1),a.Q6J("ngIf",!S.loading&&S.benefitList&&S.recommendedBenefits&&S.recommendedBenefits.length>0),a.xp6(1),a.Q6J("ngIf",!(S.loading||S.hasBilling&&(S.hasPayment||S.purchaseType===S.PurchaseType.CONTRACT&&S.currentPaymentProvider===S.PaymentProvider.Unicredit))),a.xp6(1),a.Q6J("ngIf",S.hasBilling&&(S.hasPayment||S.currentPaymentProvider===S.PaymentProvider.Unicredit)&&S.progressID&&S.contractDetails&&S.contractFormDisplay&&S.purchaseType===S.PurchaseType.CONTRACT),a.xp6(1),a.Q6J("ngIf",S.hasBilling&&S.hasPayment&&S.purchaseType===S.PurchaseType.LAWYER_MEDIATION&&0!==S.price),a.xp6(1),a.Q6J("ngIf",S.purchaseType!==S.PurchaseType.LAWYER_MEDIATION&&!S.progressID&&(!S.benefits||0===S.benefits.subscriptions.length&&0===S.benefits.packs.length)))},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}.multiLineButton[_ngcontent-%COMP%]{height:auto;white-space:normal}.buttonDiv[_ngcontent-%COMP%]{text-align:center}.avatarImage[_ngcontent-%COMP%]{width:40px;height:40px}.metaDescription[_ngcontent-%COMP%] .ant-list-item-meta-description{font-weight:lighter;font-size:12px}[_nghost-%COMP%] .purchaseLabel, [_nghost-%COMP%] .chosenPayment{font-size:12px;font-weight:lighter}[_nghost-%COMP%] .purchaseLabel{color:#4b5766!important}.justify-normal[_ngcontent-%COMP%]{justify-content:normal}.selectionSkeleton[_ngcontent-%COMP%]{margin-top:1.5rem!important}'],data:{animation:[u.Ln]}}),x=(0,s.gn)([(0,c.c)()],x)},99142:(Se,k,n)=>{n.d(k,{i:()=>Ee});var s=n(97582),e=n(36057),o=n(71997),t=n(44224),v=n(5963),r=n(17445),c=n(92961),C=n(52835),u=n(45218),m=n(94650),a=n(25156),f=n(50211),O=n(93196),N=n(32925),L=n(39889),i=n(52632),M=n(97895),R=n(11481); 502/* 503 * @license 504 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 505 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 506 *
507 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 508 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 509 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 510 * trade secret or copyright law. 511 * 512 * Dissemination of this information or reproduction of this material is strictly forbidden 513 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 514 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 515 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 516 * explicitly covering such access. 517 * 518 * The copyright notice above does not evidence any actual or intended publication or disclosure 519 * of this source code, which includes information that is confidential and/or proprietary, 520 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 521 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 522 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 523 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 524 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 525 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 526 * IN WHOLE OR IN PART. 527 */function l(re,le){1&re&&(m.TgZ(0,"div"),m._UZ(1,"nz-skeleton-element",19),m.qZA()),2&re&&(m.xp6(1),m.Q6J("nzActive",!0))}function h(re,le){1&re&&m._UZ(0,"nz-skeleton-element",20),2&re&&m.Q6J("nzActive",!0)}function D(re,le){1&re&&(m.TgZ(0,"div",7)(1,"div",8),m._UZ(2,"nz-skeleton-element",9),m.qZA(),m.TgZ(3,"div",8)(4,"div"),m._UZ(5,"nz-skeleton-element",10),m.qZA(),m.TgZ(6,"div"),m._UZ(7,"nz-skeleton-element",11),m.qZA()(),m.TgZ(8,"div"),m._UZ(9,"nz-skeleton-element",12),m.qZA(),m.TgZ(10,"div"),m._UZ(11,"nz-skeleton-element",13),m.qZA(),m.TgZ(12,"div"),m._UZ(13,"nz-skeleton-element",13),m.qZA(),m.TgZ(14,"div"),m._UZ(15,"nz-skeleton-element",14),m.qZA(),m.YNc(16,l,2,1,"div",15),m.ALo(17,"numberArray"),m.TgZ(18,"div"),m._UZ(19,"nz-skeleton-element",16),m.qZA(),m.TgZ(20,"div"),m.YNc(21,h,1,1,"nz-skeleton-element",17),m.ALo(22,"numberArray"),m._UZ(23,"nz-skeleton-element",18),m.qZA()()),2&re&&(m.Q6J("@skeletonPosAbsLeave",void 0),m.xp6(2),m.Q6J("nzActive",!0)("nzSize",100),m.xp6(3),m.Q6J("nzActive",!0),m.xp6(2),m.Q6J("nzActive",!0),m.xp6(2),m.Q6J("nzActive",!0),m.xp6(2),m.Q6J("nzActive",!0),m.xp6(2),m.Q6J("nzActive",!0),m.xp6(2),m.Q6J("nzActive",!0),m.xp6(1),m.Q6J("ngForOf",m.lcZ(17,13,4)),m.xp6(3),m.Q6J("nzActive",!0),m.xp6(2),m.Q6J("ngForOf",m.lcZ(22,15,3)),m.xp6(2),m.Q6J("nzActive",!0))}function B(re,le){if(1&re&&m._UZ(0,"nz-avatar",27),2&re){const q=m.oxw(3);m.Q6J("nzSize",100)("nzSrc",q.imageToShow)}}function K(re,le){if(1&re&&(m.TgZ(0,"h4",8),m._uU(1),m.qZA()),2&re){const q=m.oxw(3);m.xp6(1),m.hij(" ",q.userData.name," ")}}function b(re,le){if(1&re&&(m.TgZ(0,"p",8),m._uU(1),m.qZA()),2&re){const q=m.oxw(3);m.xp6(1),m.hij(' "',q.candidate.lawyer.introduction.slogan,'" ')}}function w(re,le){if(1&re&&(m.TgZ(0,"p",28),m._uU(1),m.qZA()),2&re){const q=m.oxw(3);m.xp6(1),m.hij(' "',q.candidate.lawyer.introduction.narrative,'" ')}}function X(re,le){1&re&&m._UZ(0,"nz-skeleton-element",16),2&re&&m.Q6J("@skeletonPosAbsLeave",void 0)("nzActive",!0)}function Y(re,le){if(1&re&&(m.TgZ(0,"a",30),m._UZ(1,"i",31),m._uU(2),m.ALo(3,"translate"),m.qZA()),2&re){const q=m.oxw(4);m.Q6J("href",q.sanitize(q.dataProtectionURL),m.LSH),m.xp6(2),m.hij(" ",m.lcZ(3,2,"CLIENT.HELP.CANDIDATE_MODAL.DOWNLOAD_DATA_PROTECTION")," ")}}function Z(re,le){1&re&&(m.TgZ(0,"span",28),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&re&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"CLIENT.HELP.CANDIDATE_MODAL.DATA_PROTECTION")," "))}function G(re,le){if(1&re&&(m.TgZ(0,"p"),m.YNc(1,Y,4,4,"a",29),m.YNc(2,Z,3,3,"span",24),m.qZA()),2&re){const q=m.oxw(3);m.Q6J("@skeletonPosAbsLeave",void 0),m.xp6(1),m.Q6J("ngIf",q.candidate.lawyer.legals&&q.candidate.lawyer.legals.length>0&&q.dataProtectionURL),m.xp6(1),m.Q6J("ngIf",!q.candidate.lawyer.legals||0===q.candidate.lawyer.legals.length||!q.dataProtectionURL)}}function Q(re,le){if(1&re&&(m.TgZ(0,"div")(1,"div",21),m.YNc(2,B,1,2,"nz-avatar",22),m.qZA(),m.YNc(3,K,2,1,"h4",23),m.YNc(4,b,2,1,"p",23),m.TgZ(5,"p"),m._uU(6),m.qZA(),m.YNc(7,w,2,1,"p",24),m.TgZ(8,"div",25)(9,"div"),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"div"),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.TgZ(15,"div"),m._uU(16),m.ALo(17,"translate"),m.qZA(),m.TgZ(18,"div"),m._uU(19),m.ALo(20,"translate"),m.qZA()(),m.YNc(21,X,1,2,"nz-skeleton-element",26),m.YNc(22,G,3,3,"p",4),m.qZA()),2&re){const q=m.oxw(2);m.Q6J("@skeletonPosAbsLeave",void 0),m.xp6(2),m.Q6J("ngIf",q.imageToShow),m.xp6(1),m.Q6J("ngIf",q.userData&&q.userData.name),m.xp6(1),m.Q6J("ngIf",q.candidate.lawyer.introduction.slogan),m.xp6(2),m.hij('"',q.candidate.lawyer.introduction.pitch,'"'),m.xp6(1),m.Q6J("ngIf",q.candidate.lawyer.introduction.narrative),m.xp6(3),m.AsE(" ",m.lcZ(11,16,"COMMON.FORM.LAWYER_LICENSE.CHAMBER_IDENTIFIER"),": ",q.candidate.lawyer.license.chamberIdentifier," "),m.xp6(3),m.AsE(" ",m.lcZ(14,18,"COMMON.FORM.LAWYER_LICENSE.CHAMBER_NUMBER"),": ",q.candidate.lawyer.license.chamberNumber," "),m.xp6(3),m.AsE("",m.lcZ(17,20,"COMMON.FORM.LAWYER_LICENSE.PHONE"),": ",q.candidate.lawyer.license.phone,""),m.xp6(3),m.AsE("",m.lcZ(20,22,"COMMON.FORM.LAWYER_LICENSE.TAX_NUMBER"),": ",q.taxNumber,""),m.xp6(2),m.Q6J("ngIf",q.isDataProtectionLoading),m.xp6(1),m.Q6J("ngIf",!q.isDataProtectionLoading)}}function V(re,le){if(1&re&&(m.TgZ(0,"div",2)(1,"p"),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,D,24,17,"div",3),m.YNc(5,Q,23,24,"div",4),m.TgZ(6,"p",5),m._uU(7),m.ALo(8,"translate"),m.TgZ(9,"a",6),m.ALo(10,"localizeRoute"),m._uU(11),m.ALo(12,"translate"),m.qZA(),m._uU(13),m.ALo(14,"translate"),m.qZA()()),2&re){const q=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,7,"CLIENT.HELP.CANDIDATE_MODAL.DESCRIPTION")," "),m.xp6(2),m.Q6J("ngIf",!q.userData||!q.imageToShow),m.xp6(1),m.Q6J("ngIf",q.userData&&q.imageToShow),m.xp6(2),m.hij(" ",m.lcZ(8,9,"CLIENT.HELP.CANDIDATE_MODAL.BOTTOM_DESCRIPTION_1")," "),m.xp6(2),m.Q6J("href",m.lcZ(10,11,"/general-terms-of-service#tab-0"),m.LSH),m.xp6(2),m.Oqu(m.lcZ(12,13,"CLIENT.HELP.CANDIDATE_MODAL.BOTTOM_DESCRIPTION_2")),m.xp6(2),m.hij(" ",m.lcZ(14,15,"CLIENT.HELP.CANDIDATE_MODAL.BOTTOM_DESCRIPTION_3")," ")}}const se=function(re){return{timeLeft:re}};function xe(re,le){if(1&re){const q=m.EpF();m.TgZ(0,"div")(1,"div",32)(2,"div",33),m._uU(3),m.ALo(4,"translate"),m.ALo(5,"dateAfter"),m.qZA(),m.TgZ(6,"app-multi-state-button",34),m.NdJ("nzOnConfirm",function(){m.CHM(q);const de=m.oxw();return m.KtG(de.rejectCandidate())}),m.ALo(7,"translate"),m.ALo(8,"translate"),m.ALo(9,"translate"),m.qZA(),m._UZ(10,"app-multi-state-button",35),m.qZA(),m._UZ(11,"app-feedback",36),m.qZA()}if(2&re){const q=m.oxw();m.xp6(3),m.hij(" ",m.xi3(4,14,"CLIENT.HELP.CANDIDATE_MODAL.ACCEPT_TIME_LEFT",m.VKq(27,se,m.Dn7(5,17,q.remainingDate,q.trigger,2)))," "),m.xp6(3),m.Q6J("nzType","default")("runFunction",q.rejectCandidateFunction)("stickResult",!1)("nzTextKeys",q.rejectCandidateText)("nzPopconfirmTitle",m.lcZ(7,21,"CLIENT.HELP.CANDIDATE_MODAL.POPCONFIRM"))("nzOkText",m.lcZ(8,23,"CLIENT.HELP.CANDIDATE_MODAL.REJECT_CANDIDATE_BUTTON_STATES.DEFAULT"))("nzCancelText",m.lcZ(9,25,"COMMON.CANCEL")),m.xp6(4),m.Q6J("nzType","primary")("defaultFunction",q.acceptCandidateFunction)("stickResult",!1)("nzTextKeys",q.acceptCandidateText),m.xp6(1),m.Q6J("unit",q.FeedbackUnit.Candidate)("feature",q.FeedbackFeature.Modal)}}let Ee=class{constructor(le,q,fe,de,it,Ve,W,ee,te){this.modal=le,this.clientService=q,this.nzModal=fe,this.notificationService=de,this.translate=it,this.routerService=Ve,this.paymentService=W,this.trackingService=ee,this.sanitizer=te,this.acceptCandidateText=new c.PR("
527CLIENT.HELP.CANDIDATE_MODAL.ACCEPT_CANDIDATE_BUTTON_STATES.DEFAULT","CLIENT.HELP.CANDIDATE_MODAL.ACCEPT_CANDIDATE_BUTTON_STATES.WORKING","CLIENT.HELP.CANDIDATE_MODAL.ACCEPT_CANDIDATE_BUTTON_STATES.SUCCESS",(new Map).set(0,"CLIENT.HELP.CANDIDATE_MODAL.ACCEPT_CANDIDATE_BUTTON_STATES.FAILED.OTHER").set(442,"CLIENT.HELP.CANDIDATE_MODAL.ACCEPT_CANDIDATE_BUTTON_STATES.FAILED.442")),this.rejectCandidateText=new c.PR("CLIENT.HELP.CANDIDATE_MODAL.REJECT_CANDIDATE_BUTTON_STATES.DEFAULT","CLIENT.HELP.CANDIDATE_MODAL.REJECT_CANDIDATE_BUTTON_STATES.WORKING","CLIENT.HELP.CANDIDATE_MODAL.REJECT_CANDIDATE_BUTTON_STATES.SUCCESS","CLIENT.HELP.CANDIDATE_MODAL.REJECT_CANDIDATE_BUTTON_STATES.FAILED"),this.trigger=0,this.isDataProtectionLoading=!0,this.FeedbackFeature=o.lrp,this.FeedbackUnit=o._0Z,this.taxNumber=""}ngOnInit(){this.candidate&&(this.taxNumber=o._eX.constructHungarianTaxNumber(this.candidate.lawyer.license.taxNumber),this.clientService.getImageByID(this.candidate.lawyer.ID).pipe((0,t.t)(this)).subscribe(le=>{const q=new FileReader;q.addEventListener("load",()=>{this.imageToShow=q.result},!1),le&&q.readAsDataURL(le)},le=>{}),this.clientService.getUserByID(this.candidate.lawyer.ID).pipe((0,t.t)(this)).subscribe(le=>{this.userData=le},le=>{}),this.remainingDate=Date.now()+this.candidate.remainingFor,(0,v.H)(this.candidate.remainingFor).pipe((0,t.t)(this)).subscribe(le=>{this.autoClose()}),this.dateTriggerInterval=(0,r.F)(1e3).pipe((0,t.t)(this)).subscribe(()=>this.trigger=Math.random())),this.acceptCandidateFunction=()=>this.acceptCandidate(),this.loadDataProtection()}acceptCandidate(){let le;if(u.L.config.currentPaymentProvider===o.OHy.Braintree&&this.payment instanceof o.xJR)le=this.clientService.postMatchmakerBraintreePurchase(new o.dEQ(this.candidate.candidateID,this.payment)).pipe((0,t.t)(this)).toPromise();else if(this.payment instanceof o.h$3)le=this.clientService.postMatchmakerCreditPurchase(new o.jSv(this.candidate.candidateID,this.payment)).pipe((0,t.t)(this)).toPromise();else if(u.L.config.currentPaymentProvider===o.OHy.Stripe&&this.payment instanceof o.BAK){const q=this.payment;le=this.clientService.postMatchmakerStripePurchase(new o.tbW(this.candidate.candidateID,q.idempotencyID)).pipe((0,t.t)(this)).toPromise().then(fe=>q.stripe.confirmCardPayment(fe.clientSecret,{payment_method:q.paymentID}).then(de=>!de.error||de.error.code&&"payment_intent_unexpected_state"===de.error.code?this.paymentService.paymentStripeCheck(this.clientService.postMatchmakerStripeCheck(new o.uNW(fe.paymentIntentID)).pipe((0,t.t)(this))):Promise.reject(),de=>(console.log(de),Promise.reject())),fe=>(console.log(fe),Promise.reject()))}else le=Promise.reject();return le.then(q=>{(u.L.config.currentPaymentProvider===o.OHy.Braintree&&this.payment instanceof o.xJR||u.L.config.currentPaymentProvider===o.OHy.Stripe&&this.payment instanceof o.BAK)&&(this.trackingService.sendGoogleTagManagerPurchaseEvent(this.price,this.currency),this.trackingService.sendPixelPurchaseEvent([o.Vr4.Matchmaking],this.price,this.currency)),this.resolveCallback(q),this.modal.triggerOk()},q=>{console.log(q)}),le}rejectCandidate(){const le=this.clientService.postMatchmakerReject(this.candidate.candidateID).pipe((0,t.t)(this)).toPromise();le.then(q=>{this.rejectCallback({status:499}),this.nzModal.closeAll()}),this.rejectCandidateFunction=le}autoClose(){this.rejectCallback(),this.notificationService.addNotif("warning",new e.n0("CLIENT.HELP.LOCKED_NOTIFICATION.TITLE"),new e.n0("CLIENT.HELP.LOCKED_NOTIFICATION.DESCRIPTION"),e.V1.XLONG,e.C7.DANGER,null,"assets/images/marchmaking-service.svg"),this.nzModal.closeAll()}loadDataProtection(){this.candidate.lawyer.legals&&this.candidate.lawyer.legals.length>0&&this.candidate.lawyer.legals.find(le=>le.kind===o.YEU.PP)?this.clientService.getDataProtection(this.candidate.lawyer.ID).pipe((0,t.t)(this)).subscribe(le=>{this.isDataProtectionLoading=!1;const q=[];q.push(le);const fe=new Blob(q,{type:"application/pdf"});this.dataProtectionURL=window.URL.createObjectURL(fe)},le=>{404===le.status&&(this.isDataProtectionLoading=!1)}):this.isDataProtectionLoading=!1}sanitize(le){return this.sanitizer.bypassSecurityTrustUrl(le)}};Ee.\u0275fac=function(le){return new(le||Ee)(m.Y36(a.Lf),m.Y36(f.y),m.Y36(a.Sf),m.Y36(O.g),m.Y36(N.sK),m.Y36(L.c),m.Y36(i.t),m.Y36(M.e),m.Y36(R.H7))},Ee.\u0275cmp=m.Xpm({type:Ee,selectors:[["app-candidate-modal"]],inputs:{candidate:"candidate",payment:"payment",resolve
527Callback:"resolveCallback",rejectCallback:"rejectCallback",price:"price",currency:"currency"},decls:2,vars:1,consts:[["class","position-relative",4,"ngIf"],[4,"nzModalFooter"],[1,"position-relative"],["class","w-100",4,"ngIf"],[4,"ngIf"],[1,"m-b-0"],["target","_blank","rel","noreferrer noopener",1,"open-link-brand-16",3,"href"],[1,"w-100"],[1,"text-center"],["nzType","avatar",1,"p-b-15",3,"nzActive","nzSize"],["nzType","input","nzSize","small",1,"p-b-10","w-30",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-10","w-50",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-15","w-70",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-10","w-100","smallHeightSkeleton",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-10","w-80","smallHeightSkeleton",3,"nzActive"],[4,"ngFor","ngForOf"],["nzType","input","nzSize","small",1,"p-b-10","w-80",3,"nzActive"],["class","p-b-5 w-100","nzType","input","nzSize","small",3,"nzActive",4,"ngFor","ngForOf"],["nzType","input","nzSize","small",1,"p-b-5","w-20",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-10","w-40","smallHeightSkeleton",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-5","w-100",3,"nzActive"],[1,"p-b-10","text-center"],["class","shadow","nzIcon","user",3,"nzSize","nzSrc",4,"ngIf"],["class","text-center",4,"ngIf"],["class","font-size-smaller",4,"ngIf"],[1,"font-size-smaller","m-b-15"],["class","p-b-10 w-80","nzType","input","nzSize","small",3,"nzActive",4,"ngIf"],["nzIcon","user",1,"shadow",3,"nzSize","nzSrc"],[1,"font-size-smaller"],["class","color-primary open-link-brand-16","target","_blank",3,"href",4,"ngIf"],["target","_blank",1,"color-primary","open-link-brand-16",3,"href"],["nz-icon","","nzType","book","theme","outline"],[1,"row","text-center","flex-wrap","grid-gap-15","mb-2"],[1,"col-12"],["nz-popconfirm","",1,"multiLineButton","button-flexing",3,"nzType","runFunction","stickResult","nzTextKeys","nzPopconfirmTitle","nzOkText","nzCancelText","nzOnConfirm"],[1,"button-flexing",3,"nzType","defaultFunction","stickResult","nzTextKeys"],[3,"unit","feature"]],template:function(le,q){1&le&&(m.YNc(0,V,15,17,"div",0),m.YNc(1,xe,12,29,"div",1)),2&le&&m.Q6J("ngIf",q.candidate&&q.candidate.lawyer)},styles:['@charset "UTF-8";.smallHeightSkeleton[_ngcontent-%COMP%]{height:12px}[_nghost-%COMP%] .smallHeightSkeleton[_ngcontent-%COMP%] .ant-skeleton-input{height:12px}.button-flexing[_ngcontent-%COMP%]{flex:1 0 auto}'],data:{animation:[C.Ln]}}),Ee=(0,s.gn)([(0,t.c)()],Ee)},33494:(Se,k,n)=>{n.d(k,{q:()=>B});var s=n(97582),e=n(71997),o=n(28736),t=n(44224),v=n(92961),r=n(94650),c=n(50211),C=n(49651),u=n(32925),m=n(25156),a=n(39889),f=n(47959),O=n(61479);function N(K,b){1&K&&(r.TgZ(0,"p",6),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&K&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"CLIENT.PROFILE.SUBSCRIPTIONS.QUOTA_DESC"),"\n"))}function L(K,b){1&K&&r._UZ(0,"div",18)}function i(K,b){if(1&K&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&K){const w=r.oxw().$implicit;r.xp6(1),r.AsE(" ",w.quota<10?" "+w.quota:w.quota," ",r.lcZ(2,2,"CLIENT.PROFILE.BUNDLES.POINTS")," ")}}function M(K,b){1&K&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&K&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"PRICING.FREE")," "))}const R=function(){return{md:40,sm:24,x:0}},l=function(K){return[K]};function h(K,b){if(1&K&&(r.ynx(0),r.TgZ(1,"div",7),r.YNc(2,L,1,0,"div",8),r.TgZ(3,"div",9)(4,"p",10),r._UZ(5,"img",11),r.YNc(6,i,3,4,"span",12),r.YNc(7,M,3,3,"span",12),r._UZ(8,"img",13),r.qZA()(),r.TgZ(9,"div",14)(10,"p",15),r._uU(11),r.ALo(12,"limitTo"),r.qZA()(),r.TgZ(13,"div",16),r._UZ(14,"app-multi-state-button",17),r.qZA()(),r.BQk()),2&K){const w=b.$implicit,X=r.oxw();r.xp6(2),r.Q6J("ngIf",X.quota<w.quota),r.xp6(3),r.Q6J("src",X.ClientRoutes.apiRouteContractIcon(w.formDisplayElements.iconDark),r.LSH),r.xp6(1),r.Q6J("ngIf",0!==w.quota),r.xp6(1),r.Q6J("ngIf",0===w.quota),r.xp6(1),r.Q6J("src",X.ClientRoutes.apiRouteContractIcon(w.formDisplayElements.iconDark),r.LSH),r.xp6(3),r.hij(" ",r.Dn7(12,10,w.formDisplayElements.name,r.DdM(14,R),X.screenWidth)," "),r.xp6(3),r.Q6J("stickResult",!1)("nzTextKeys",X.createContractText)("defaultFunction",X.defaultFunction)("defaultFunctionParameters",r.VKq(15,l,w))}}function D(K,b){if(1&K){const w=r.EpF();r.TgZ(0,"div")(1,"button",19),r.NdJ("click",function(){r.CHM(w);const Y=r.oxw();return r.KtG(Y.nzModal.closeAll())}),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",20),r._UZ(5,"app-feedback",21),r.qZA()()}if(2&K){const w=r.oxw();r.xp6(2),r.hij(" ",r.lcZ(3,3,"COMMON.GO_BACK")," "),r.xp6(3),r.Q6J("unit",w.FeedbackUnit.ContractsForQuota)("feature",w.FeedbackFeature.Modal)}}let B=class{constructor(b,w,X,Y,Z,G,Q){this.clientService=b,this.nzMessage=w,this.translate=X,this.nzModal=Y,this.routerService=Z,this.contractService=G,this.resizeService=Q,this.screenWidth=window.innerWidth,this.simplebarOptions={autoHide:!1},this.ClientRoutes=o.i,this.contracts=[],this.createContractText=new v.PR("CLIENT.PROFILE.BUNDLES.START_CONTRACT_BUTTON.CHANGE","CLIENT.PROFILE.BUNDLES.START_CONTRACT_BUTTON.CHANGING","CLIENT.PROFILE.BUNDLES.START_CONTRACT_BUTTON.CHANGED","CLIENT.PROFILE.BUNDLES.START_CONTRACT_BUTTON.FAILED"),this.FeedbackUnit=e._0Z,this.FeedbackFeature=e.lrp}ngOnInit(){this.resizeService.width.subscribe(b=>{this.screenWidth=b}),this.clientService.getContracts().pipe((0,t.t)(this)).subscribe(b=>{this.contracts=b.sort((w,X)=>w.quota>X.quota?1:-1)}),this.defaultFunction=b=>this.startContract(b)}startContract(b){return this.contractService.create(b,this.contracts).then(w=>
527{this.nzModal.closeAll(),w.created?this.routerService.routeToContract(w.progressID,!0):this.routerService.routeToContractFromCreate(w.progressID)})}};B.\u0275fac=function(b){return new(b||B)(r.Y36(c.y),r.Y36(C.dD),r.Y36(u.sK),r.Y36(m.Sf),r.Y36(a.c),r.Y36(f.W),r.Y36(O._))},B.\u0275cmp=r.Xpm({type:B,selectors:[["app-contracts-for-quota-modal"]],inputs:{quota:"quota",showQuotaDesc:"showQuotaDesc"},decls:8,vars:6,consts:[["class","mb-0",4,"ngIf"],[1,"text-margin"],["nzBordered","false","nzSize","small",1,"bundles-list"],[1,"h-100","overflow-x-hidden",3,"options"],[4,"ngFor","ngForOf"],[4,"nzModalFooter"],[1,"mb-0"],[1,"contract-list-row","row"],["class","quota-not-enough-overflow",4,"ngIf"],[1,"col-sm-3","col-12","text-sm-left","text-center"],[1,"contract-list-item","quota-point","white-space-nowrap"],["alt","Contract icon",1,"contract-icon","d-sm-none",2,"width","50px","height","auto",3,"src"],[4,"ngIf"],["alt","Contract icon",1,"contract-icon","display-none-on-small",2,"width","50px","height","auto",3,"src"],[1,"col-sm-5","col-12","text-sm-left","text-center"],[1,"contract-list-item"],[1,"col-sm-4","col-12","text-sm-right","text-center","mt-sm-0","mt-2"],[1,"button-text-wrap",3,"stickResult","nzTextKeys","defaultFunction","defaultFunctionParameters"],[1,"quota-not-enough-overflow"],["nz-button","",3,"click"],[1,"row","feedback-container"],[1,"feedback-pos",3,"unit","feature"]],template:function(b,w){1&b&&(r.YNc(0,N,3,3,"p",0),r.TgZ(1,"p",1),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"nz-list",2)(5,"ngx-simplebar",3),r.YNc(6,h,15,17,"ng-container",4),r.qZA()(),r.YNc(7,D,6,5,"div",5)),2&b&&(r.Q6J("ngIf",w.showQuotaDesc),r.xp6(2),r.hij(" ",r.lcZ(3,4,"CLIENT.PROFILE.BUNDLES.CONTRACTS_INFO"),"\n"),r.xp6(3),r.Q6J("options",w.simplebarOptions),r.xp6(1),r.Q6J("ngForOf",w.contracts))},styles:['@charset "UTF-8";nz-list.bundles-list[_ngcontent-%COMP%]{height:55vh} nz-list.bundles-list .ant-spin-nested-loading{height:100%} nz-list.bundles-list .ant-spin-nested-loading .ant-spin-container{height:100%}[_nghost-%COMP%] .ant-list-items{height:100%}nz-list.bundles-list[_ngcontent-%COMP%] .bundle-details[_ngcontent-%COMP%]{text-align:right}.contract-list-row[_ngcontent-%COMP%]{padding:.5rem 1.25rem .5rem 0;position:relative;border:1px solid #edf2f9}@media screen and (min-width: 576px) and (max-width: 724.98px){.quota-point[_ngcontent-%COMP%]{font-size:11px}.contract-icon[_ngcontent-%COMP%]{width:40px!important}}.contract-list-item[_ngcontent-%COMP%]{margin-bottom:0;line-height:50px}.contract-list-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{line-height:50px}.quota-not-enough-overflow[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;background:rgba(255,255,255,.5);pointer-events:none}.feedback-pos[_ngcontent-%COMP%]{right:15px;bottom:3px;position:absolute}.feedback-container[_ngcontent-%COMP%]{height:21px}@media (max-width: 576px){.display-none-on-small[_ngcontent-%COMP%]{display:none!important}.contract-list-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{line-height:1.8em!important}.contract-icon[_ngcontent-%COMP%]{width:auto!important;width:initial!important;height:40px!important}.contract-list-item[_ngcontent-%COMP%]{line-height:1.8em!important}}']}),B=(0,s.gn)([(0,t.c)()],B)},9037:(Se,k,n)=>{n.d(k,{Q:()=>Z});var s=n(97582),e=n(94650),o=n(71997),t=n(37340),v=n(92961),r=n(78321),c=n(5963),C=n(44224),u=n(52835),m=n(37570),a=n(50211),f=n(75489),O=n(75141); 528/* 529 * @license 530 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 531 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 532 *
533 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 534 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 535 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 536 * trade secret or copyright law. 537 * 538 * Dissemination of this information or reproduction of this material is strictly forbidden 539 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 540 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 541 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 542 * explicitly covering such access. 543 * 544 * The copyright notice above does not evidence any actual or intended publication or disclosure 545 * of this source code, which includes information that is confidential and/or proprietary, 546 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 547 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 548 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 549 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 550 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 551 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 552 * IN WHOLE OR IN PART. 553 */const N=["footerdivider"],L=["simpleBar"],i=["actionEdit"],M=["actionSetting"];function R(G,Q){1&G&&(e.TgZ(0,"div",11),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"a",12),e.ALo(4,"localizeRoute"),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&G&&(e.Q6J("@showErrorInnerAnimation",void 0),e.xp6(1),e.hij(" ",e.lcZ(2,4,"CLIENT.CONTRACTS.COMPLETE.SAMPLE_ERROR.MESSAGE")," "),e.xp6(2),e.Q6J("href",e.lcZ(4,6,"/contact-us"),e.LSH),e.xp6(2),e.Oqu(e.lcZ(6,8,"CLIENT.CONTRACTS.COMPLETE.SAMPLE_ERROR.CONTACT_US")))}const l=function(G,Q){return{"0%":G,"100%":Q}};function h(G,Q){if(1&G&&(e.TgZ(0,"div",8),e._UZ(1,"nz-progress",9),e.YNc(2,R,7,10,"div",10),e.qZA()),2&G){const V=e.oxw(2);e.Q6J("@showErrorOuterAnimation",V.showError),e.xp6(1),e.Q6J("nzPercent",V.percent)("nzStrokeColor",e.WLB(5,l,V.ColorSettings.Tertiary,V.ColorSettings.Qu
553inary))("nzStatus",V.showError?"exception":null),e.xp6(1),e.Q6J("ngIf",V.showError)}}function D(G,Q){1&G&&e._UZ(0,"nz-skeleton-element",18),2&G&&e.Q6J("nzActive",!0)}const B=function(){return{autoHide:!1}};function K(G,Q){if(1&G&&(e.TgZ(0,"ngx-simplebar",13)(1,"div",14)(2,"div",15),e._UZ(3,"nz-skeleton-element",16),e.qZA(),e.YNc(4,D,1,1,"nz-skeleton-element",17),e.qZA()()),2&G){const V=e.oxw(2);e.Q6J("@skeletonPosAbsLeave",void 0)("options",e.DdM(4,B)),e.xp6(3),e.Q6J("nzActive",!0),e.xp6(1),e.Q6J("ngForOf",V.skeletonLines)}}function b(G,Q){if(1&G){const V=e.EpF();e.TgZ(0,"ngx-simplebar",19,20),e.NdJ("nzTooltipVisibleChange",function(xe){e.CHM(V);const Ee=e.oxw(2);return e.KtG(Ee.scrollTooltipVisible=xe)})("click",function(){e.CHM(V);const xe=e.oxw(2);return e.KtG(xe.pdfRendered?xe.changeScrollTooltip(!0):null)}),e.ALo(2,"translate"),e.TgZ(3,"pdf-viewer",21),e.NdJ("page-rendered",function(){e.CHM(V);const xe=e.oxw(2);return e.KtG(xe.pdfProgressRendered())}),e.qZA()()}if(2&G){const V=e.oxw(2);e.Q6J("@skeletonPosAbsLeave",void 0)("options",e.DdM(14,B))("nzTooltipTitle",e.lcZ(2,12,"CLIENT.CONTRACTS.COMPLETE.CAN_SCROLL"))("nzTooltipTrigger",null)("nzTooltipVisible",V.scrollTooltipVisible)("nzTooltipPlacement","left")("nzTooltipOverlayClassName","scrollTooltip")("@pdfAnimation",V.pdfRendered?"rendered":"loading"),e.xp6(3),e.Q6J("src",V.exampleURL)("render-text",!0)("original-size",!1)("autoresize",!0)}}function w(G,Q){if(1&G&&(e.YNc(0,h,3,8,"ng-template",null,4,e.W1O),e.TgZ(2,"nz-spin",5),e.YNc(3,K,5,5,"ngx-simplebar",6),e.YNc(4,b,4,15,"ngx-simplebar",7),e.qZA()),2&G){const V=e.MAs(1),se=e.oxw();e.xp6(2),e.Q6J("nzDelay",1e3)("nzSpinning",se.showSpinner||!se.pdfRendered)("nzIndicator",V),e.xp6(1),e.Q6J("ngIf",!se.exampleURL||se.showSpinner||!se.pdfRendered),e.xp6(1),e.Q6J("ngIf",se.exampleURL)}}function X(G,Q){if(1&G&&e._UZ(0,"app-feedback",22),2&G){const V=e.oxw();e.Q6J("title","COMMON.FEEDBACK.TITLES.INVOICING")("feature",V.FeedbackFeature.Modal)("unit",V.FeedbackUnit.LawyerInvoicing)("showAsButton",!0)}}function Y(G,Q){if(1&G){const V=e.EpF();e.TgZ(0,"app-multi-state-button",23),e.NdJ("click",function(){e.CHM(V);const xe=e.oxw();return e.KtG(xe.openIntercomHelp())}),e.qZA()}if(2&G){const V=e.oxw();e.Q6J("stickResult",!1)("runFunction",V.openIntercomHelpFunction)("nzTextKeys",V.openIntercomHelpText)}}let Z=class{constructor(Q,V,se){this.clientService=Q,this.eventService=V,this.intercom=se,this.skeletonLines=Array(25).fill(!0),this.showError=!1,this.percent=0,this.expectedLoadTime=4e3,this.showSpinner=!0,this.ColorSettings=r.y,this.FeedbackFeature=o.lrp,this.FeedbackUnit=o._0Z,this.buttonList=[],this.pdfRendered=!1,this.scrollTooltipVisible=!1,this.tooltipHandlerAdded=!1,this.openIntercomHelpText=new v.PR("CLIENT.PROFILE.INVOICING.EXAMPLE_INVOICE.MODAL.HELP_BUTTON_STATES.DEFAULT","CLIENT.PROFILE.INVOICING.EXAMPLE_INVOICE.MODAL.HELP_BUTTON_STATES.WORKING","CLIENT.PROFILE.INVOICING.EXAMPLE_INVOICE.MODAL.HELP_BUTTON_STATES.SUCCESS","CLIENT.PROFILE.INVOICING.EXAMPLE_INVOICE.MODAL.HELP_BUTTON_STATES.FAILED"),this.intercomHelpLoading=!1}ngOnInit(){this.getExample(),this.increasePercent()}ngAfterViewInit(){this.buttonList=[this.actionEdit,this.actionSetting]}ngOnDestroy(){window.removeEventListener("click",Q=>this.tooltipClickHandler(Q))}increasePercent(){let Q;(this.exampleURL||!this.showError&&this.percent<90)&&this.percent++,this.exampleURL?Q=10:(Q=this.expectedLoadTime,Q*=this.percent>80?.1:this.percent>70?.025:this.percent<=60&&this.percent>=20?.00625:.25/30),this.increasePercentTimeout=this.percent<100?(0,c.H)(Q).pipe((0,C.t)(this)).subscribe(V=>{this.increasePercent()}):(0,c.H)(600).pipe((0,C.t)(this)).subscribe(V=>{this.showSpinner=!1})}getExample(Q=3){Q>0?this.clientService.getInvoiceExample().pipe((0,C.t)(this)).subscribe(V=>{this.exampleURL=URL.createObjectURL(V),this.showSpinner=!1},V=>{console.log(V),this.showError=!0}):this.showError=!0}pdfProgressRendered(){this.pdfRendered=!0,this.initializeScrollTooltip()}initializeScrollTooltip(){if(this.scrollTooltipVisible=!0,!this.tooltipHandlerAdded&&this.simpleBar&&this.simpleBar.SimpleBar){const Q=this.simpleBar.SimpleBar.axis.y.track.el;if(Q&&this.nzTooltipDirective){const V=new e.SBq(Q);this.nzTooltipDirective.component.origin=V,this.scrollTooltipVisible=!0,this.tooltipHandlerAdded=!0,window.addEventListener("click",
553se=>this.tooltipClickHandler(se))}}}changeScrollTooltip(Q){this.scrollTooltipVisible=Q}tooltipClickHandler(Q){if(this.simpleBar&&this.simpleBar.SimpleBar){const V=this.simpleBar.SimpleBar.getScrollElement();let se=Q.target;for(;se&&se!==V;)se=se.parentElement;Q.target&&se!==V&&this.changeScrollTooltip(!1)}}openIntercomHelp(){this.openIntercomHelpFunction=this.intercom.isOpened||this.intercomHelpLoading?null:new Promise((Q,V)=>{this.intercomHelpLoading=!0,this.eventService.intercomOpened.pipe((0,C.t)(this)).subscribe(se=>{this.intercomHelpLoading=!1,se?Q(null):V()}),this.intercom.startAndShow("right")})}};Z.\u0275fac=function(Q){return new(Q||Z)(e.Y36(a.y),e.Y36(f.P),e.Y36(O.f))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["app-invoice-example-modal"]],viewQuery:function(Q,V){if(1&Q&&(e.Gf(N,5),e.Gf(L,5),e.Gf(i,5),e.Gf(M,5),e.Gf(m.SY,5)),2&Q){let se;e.iGM(se=e.CRH())&&(V.footerdivider=se.first),e.iGM(se=e.CRH())&&(V.simpleBar=se.first),e.iGM(se=e.CRH())&&(V.actionEdit=se.first),e.iGM(se=e.CRH())&&(V.actionSetting=se.first),e.iGM(se=e.CRH())&&(V.nzTooltipDirective=se.first)}},decls:7,vars:2,consts:[[1,"m-b-0","invoiceCard",3,"nzCover","nzActions"],["coverTemplate",""],["actionSetting",""],["actionEdit",""],["indicatorTemplate",""],[1,"loadingSpin",3,"nzDelay","nzSpinning","nzIndicator"],["style","height: 100%",3,"options",4,"ngIf"],["style","height: 100%","nz-tooltip","",3,"options","nzTooltipTitle","nzTooltipTrigger","nzTooltipVisible","nzTooltipPlacement","nzTooltipOverlayClassName","nzTooltipVisibleChange","click",4,"ngIf"],[1,"centerProgress","w-100"],["nzType","circle",1,"progressCirlce",3,"nzPercent","nzStrokeColor","nzStatus"],["class","text-danger p-t-10 p-l-20 p-r-20",4,"ngIf"],[1,"text-danger","p-t-10","p-l-20","p-r-20"],["target","_blank","rel","noopener noreferrer",1,"open-link-brand-16","text-link",3,"href"],[2,"height","100%",3,"options"],[1,"w-100","m-t-10","p-t-30","text-center"],[1,"w-100","text-center"],["nzType","input","nzSize","small",1,"p-b-10","w-30",3,"nzActive"],["class","p-b-10 w-75 pdfSkeleton","nzType","input",3,"nzActive",4,"ngFor","ngForOf"],["nzType","input",1,"p-b-10","w-75","pdfSkeleton",3,"nzActive"],["nz-tooltip","",2,"height","100%",3,"options","nzTooltipTitle","nzTooltipTrigger","nzTooltipVisible","nzTooltipPlacement","nzTooltipOverlayClassName","nzTooltipVisibleChange","click"],["simpleBar",""],[2,"display","block",3,"src","render-text","original-size","autoresize","page-rendered"],[1,"actionButton",3,"title","feature","unit","showAsButton"],["nzType","primary",1,"actionButton",3,"stickResult","runFunction","nzTextKeys","click"]],template:function(Q,V){if(1&Q&&(e._UZ(0,"nz-card",0),e.YNc(1,w,5,5,"ng-template",null,1,e.W1O),e.YNc(3,X,1,4,"ng-template",null,2,e.W1O),e.YNc(5,Y,1,3,"ng-template",null,3,e.W1O)),2&Q){const se=e.MAs(2);e.Q6J("nzCover",se)("nzActions",V.buttonList)}},styles:['@charset "UTF-8";[_nghost-%COMP%] .ant-card-cover{height:60vh;overflow:auto}[_nghost-%COMP%] .ant-card-actions{display:flex;justify-content:center;flex-wrap:wrap}[_nghost-%COMP%] .ant-card-actions li{width:-moz-fit-content!important;width:fit-content!important;margin:12px}[_nghost-%COMP%] .pdfSkeleton[_ngcontent-%COMP%]{height:12px}[_nghost-%COMP%] .pdfSkeleton[_ngcontent-%COMP%] .ant-skeleton-input{height:12px}[_nghost-%COMP%] .invoiceCard[_ngcontent-%COMP%] .ant-card-actions{height:auto;opacity:1;animation:.3s ease-out 0s 1 invoiceCardAnimation}@keyframes invoiceCardAnimation{0%{transform:translateY(-100%);height:0;opacity:0}
553to{transform:translateY(0);height:auto;opacity:1}}[_nghost-%COMP%] .invoiceCard[_ngcontent-%COMP%] .ant-card-body{padding:0}.actionButton[_ngcontent-%COMP%] .anticon{border:0!important}.centerProgress[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%)}.loadingSpin[_ngcontent-%COMP%]{height:100%;overflow:hidden}.loadingSpin[_ngcontent-%COMP%] .ant-spin-container{height:100%}.scrollTooltip[_ngcontent-%COMP%]{position:absolute}'],data:{animation:[u.Ln,u.le,(0,t.X$)("showErrorInnerAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0,height:0}),(0,t.jt)("0.3s ease-out",(0,t.oB)({opacity:1,height:"*"}))])]),(0,t.X$)("showErrorOuterAnimation",[(0,t.eR)(":enter",[(0,t.oB)({height:"*"}),(0,t.jt)("0.3s ease-out",(0,t.oB)({height:"*"}))])])]}}),Z=(0,s.gn)([(0,C.c)()],Z)},88744:(Se,k,n)=>{n.d(k,{o:()=>f});var s=n(71997),e=n(44569),o=n(92961),t=n(94650),v=n(25156),r=n(14206),c=n(87689);function C(O,N){1&O&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&O&&(t.xp6(1),t.hij("",t.lcZ(2,1,"COMMON.HEADER.LAWYER_MATCHMAKER.MODAL.TOOLTIP")," "))}function u(O,N){1&O&&t.YNc(0,C,3,3,"ng-container",7),2&O&&t.Q6J("ngIf",N.$implicit.hasError("required"))}function m(O,N){if(1&O){const L=t.EpF();t.TgZ(0,"form",8)(1,"nz-form-item",9)(2,"nz-form-control",10)(3,"label",11),t.NdJ("nzCheckedChange",function(){t.CHM(L);const M=t.oxw();return t.KtG(M.updateResponsibility())}),t._uU(4),t.ALo(5,"translate"),t.qZA()()()()}if(2&O){const L=t.oxw(),i=t.MAs(6);t.Q6J("formGroup",L.responsibilityForm),t.xp6(2),t.Q6J("nzValidateStatus",L.responsibilityForm.controls.understandResponsibility)("nzErrorTip",i),t.xp6(2),t.hij(" ",t.lcZ(5,4,"COMMON.HEADER.LAWYER_MATCHMAKER.MODAL.CHECKBOX")," ")}}function a(O,N){if(1&O){const L=t.EpF();t.TgZ(0,"div")(1,"button",12),t.NdJ("click",function(){t.CHM(L);const M=t.oxw();return t.KtG(M.cancelMatchmaker())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"app-multi-state-button",13),t.NdJ("click",function(){t.CHM(L);const M=t.oxw();return t.KtG(M.joinMatchmaker())}),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",14),t._UZ(7,"app-feedback",15),t.qZA()()}if(2&O){const L=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,9,"COMMON.HEADER.LAWYER_MATCHMAKER.MODAL.SERVE_CANCEL")," "),t.xp6(2),t.Q6J("nzType","primary")("runFunction",L.joinMatchmakerFunction)("stickResult",!1)("nzTextKeys",L.joinText)("nzGhost",!L.understandResponsibility)("nzTooltipTitle",L.understandResponsibility?null:t.lcZ(5,11,"COMMON.HEADER.LAWYER_MATCHMAKER.MODAL.TOOLTIP")),t.xp6(3),t.Q6J("unit",L.FeedbackUnit.LawyerMatchmaker)("feature",L.FeedbackFeature.Modal)}}let f=(()=>{class O{constructor(L,i,M){this.modal=L,this.matchmakerService=i,this.formService=M,this.joinText=new o.PR("COMMON.HEADER.LAWYER_MATCHMAKER.MODAL.SERVE_BUTTON_STATE.DEFAULT","COMMON.HEADER.LAWYER_MATCHMAKER.MODAL.SERVE_BUTTON_STATE.WORKING","COMMON.HEADER.LAWYER_MATCHMAKER.MODAL.SERVE_BUTTON_STATE.SUCCESS","COMMON.HEADER.LAWYER_MATCHMAKER.MODAL.SERVE_BUTTON_STATE.FAILED"),this.understandResponsibility=!1,this.PageRoutes=e.d,this.FeedbackFeature=s.lrp,this.FeedbackUnit=s._0Z}ngOnInit(){this.responsibilityForm=this.formService.responsibilityFormGroup(this.understandResponsibility)}updateResponsibility(){this.responsibilityForm&&(this.understandResponsibility=this.formService.groupToResponsibility(this.responsibilityForm))}joinMatchmaker(){if(this.understandResponsibility){const L=this.matchmakerService.joinMatchmaker();L.then(i=>this.modal.triggerOk(),i=>{}),this.joinMatchmakerFunction=L}else this.formService.markAllAsTouched(this.responsibilityForm)}cancelMatchmaker(){this.modal.triggerCancel()}}return O.\u0275fac=function(L){return new(L||O)(t.Y36(v.Lf),t.Y36(r.$),t.Y36(c.o))},O.\u0275cmp=t.Xpm({type:O,selectors:[["app-lawyer-matchmaker-modal"]],decls:19,vars:16,consts:[[1,"markdown"],[1,"code-box-description","p-t-0"],["responsibilityFormErrorTip",""],["nz-form","",3,"formGroup",4,"ngIf"],[1,"mt-2"],["target","_blank","rel","noopener noreferrer",1,"font-size-smaller","open-link-brand-16",3,"href"],[4,"nzModalFooter"],[4,"ngIf"],["nz-form","",3,"formGroup"],[1,"d-block","m-b-0"],[3,"nzValidateStatus","nzErrorTip"],["nz-checkbox","","formControlName","understandResponsibility",3,"nzCheckedChange"],["nz-button","",1,"m-r-10","m-b-10",3,"click"],["nz-tooltip","",1,"multiLineButton",3,"nzType","runFunction","stickResult","nzTextKeys","nzGhost","nzTooltipTitle","click"],[1,"row","feedback-container"],[1,"feedback-pos",3,"unit","feature"]],template:function(L,i){1&L&&(t.TgZ(0,"div",0)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.YNc(5,u,1,1,"ng-template",null,2,t.W1O),t.YNc(7,m,6,6,"form",3),t.TgZ(8,"div",4)(9,"a",5),t.ALo(10,"localizeRoute"),t._uU(11),t.ALo(12,"translate"),t.qZA()(),t.TgZ(13,"div")(14,"a",5),t.ALo(15,"localizeRoute"),t._uU(16),t.ALo(17,"translate"),t.qZA()()()(),t.YNc(18,a,8,13,"div",6)),2&L&&(t.xp6(2),t.hij(" ",t.lcZ(3,6,"COMMON.HEADER.LAWYER_MATCHMAKER.MODAL.DESCRIPTION")," "),t.xp6(5),t.Q6J("ngIf",i.responsibilityForm),t.xp6(2),t.Q6J("href",t.lcZ(10,8,"/"+i.PageRoutes.landingTOS
553),t.LSH),t.xp6(2),t.hij(" ",t.lcZ(12,10,"LANDING.PAYMENT_INFORMATION.GTS"),""),t.xp6(3),t.Q6J("href",t.lcZ(15,12,"/"+i.PageRoutes.landingPrivacy),t.LSH),t.xp6(2),t.hij(" ",t.lcZ(17,14,"LANDING.PAYMENT_INFORMATION.PP"),""))},styles:['@charset "UTF-8";.feedback-pos[_ngcontent-%COMP%]{right:15px;bottom:3px;position:absolute}.feedback-container[_ngcontent-%COMP%]{height:10px}']}),O})()},76842:(Se,k,n)=>{n.d(k,{V:()=>y});var s=n(97582),e=n(94650),o=n(92961),t=n(71997),v=n(44224),r=n(37649),c=n(44569),C=n(36057),u=n(45218),m=n(32925),a=n(3417),f=n(50211),O=n(87689),N=n(31495),L=n(25156),i=n(52632),M=n(39889),R=n(3674);const l=["defaultUnicreditText"],h=["defaultUpgradeText"];function D(x,E){1&x&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&x&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER_MATCHMAKING")," "))}function B(x,E){if(1&x&&(e.TgZ(0,"div",23)(1,"p"),e.YNc(2,D,3,3,"span",10),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.TgZ(6,"p",24),e._uU(7),e.ALo(8,"translate"),e.qZA()()),2&x){const T=e.oxw();e.xp6(2),e.Q6J("ngIf",!T.candidateLawyer),e.xp6(2),e.hij(" ",e.lcZ(5,3,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER_MATCHMAKING_2")," "),e.xp6(3),e.hij(" ",e.lcZ(8,5,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_MATCHMAKING_HEADER")," ")}}function K(x,E){if(1&x&&e._UZ(0,"img",25),2&x){const T=e.oxw();e.Q6J("src",T.imageUrl?T.imageUrl:"",e.LSH)}}const b=function(x){return{price:x}};function w(x,E){if(1&x&&(e._UZ(0,"span",11),e.ALo(1,"safe"),e.ALo(2,"translate"),e.ALo(3,"formatCurrencyName")),2&x){const T=e.oxw();e.Q6J("innerHTML",e.xi3(1,1,e.xi3(2,4,"COMMON.FORM.SUBSCRIPTIONS.UPGRADE_PRICE_NOW",e.VKq(9,b,T.upgradePrice+"\xa0"+e.lcZ(3,7,T.currency)))+"<br />","html"),e.oJD)}}function X(x,E){1&x&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&x&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.SUBSCRIPTIONS.UPGRADE_PRICE_NEXT_CYCLE")," "))}function Y(x,E){if(1&x&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&x){const T=e.oxw();e.xp6(1),e.hij(" (",T.vat===T.VATValue.Standard?e.lcZ(2,1,"COMMON.INCL_TAX"):e.lcZ(3,3,"COMMON.NOT_INCL_TAX"),")")}}const Z=function(x){return{rate:x}};function G(x,E){if(1&x&&(e.TgZ(0,"span",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&x){const T=e.oxw();e.xp6(1),e.Oqu(e.xi3(2,1,"CLIENT.PROFILE.PAYMENT.TAX_INCLUDED",e.VKq(4,Z,T.vat===T.VATValue.Standard?27:0)))}}const Q=function(x,E){return{netPrice:x,currency:E}};function V(x,E){if(1&x&&(e._UZ(0,"span",27),e.ALo(1,"safe"),e.ALo(2,"translate"),e.ALo(3,"formatCurrencyName")),2&x){const T=e.oxw();e.Q6J("innerHTML",e.xi3(1,1,e.xi3(2,4,"CLIENT.PROFILE.PAYMENT.NET_PRICE",e.WLB(9,Q,T.netPrice,e.lcZ(3,7,T.currency))),"html"),e.oJD)}}function se(x,E){1&x&&(e._UZ(0,"i",34),e._uU(1),e.ALo(2,"translate")),2&x&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.PROFILE.PAYMENT.LOADING_PAYMENT")," "))}function xe(x,E){if(1&x&&e._UZ(0,"nz-spin",35),2&x){e.oxw();const T=e.MAs(3);e.Q6J("nzIndicator",T)}}const Ee=function(x){return{mail:x}},re=function(x){return{number:x}};function le(x,E){if(1&x&&(e.TgZ(0,"nz-option",39),e.ALo(1,"translate"),e.ALo(2,"translate"),e.TgZ(3,"div",40),e._UZ(4,"img",41),e.TgZ(5,"div",42)(6,"h6",43),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"translate"),e.qZA()()()()),2&x){const T=E.$implicit,S=e.oxw(3);e.Q6J("nzLabel",T.kind.type===S.PaymentMethodType.PayPal?e.xi3(1,4,"CLIENT.PROFILE.PAYMENT.MAIL",e.VKq(16,Ee,T.name)):e.xi3(2,7,"CLIENT.PROFILE.PAYMENT.ENDING",e.VKq(18,re,T.name)))("nzValue",T.token),e.xp6(4),e.Q6J("src",T.imageHyperlink,e.LSH),e.xp6(3),e.hij(" ",T.kind.type===S.PaymentMethodType.PayPal?e.xi3(8,10,"CLIENT.PROFILE.PAYMENT.MAIL",e.VKq(20,Ee,T.name)):e.xi3(9,13,"CLIENT.PROFILE.PAYMENT.ENDING",e.VKq(22,re,T.name))," ")}}function q(x,E){if(1&x){const T=e.EpF();e.TgZ(0,"nz-form-control",36),e.ALo(1,"translate"),e.TgZ(2,"nz-select",37),e.NdJ("ngModelChange",function($){e.CHM(T);const pe=e.oxw(2);return e.KtG(pe.preferredPayment=$)}),e.ALo(3,"translate"),e.YNc(4,le,10,24,"nz-option",38),e.qZA()()}if(2&x){const T=e.oxw(2);e.Q6J("nzErrorTip",e.lcZ(1,5,"CLIENT.CONTRACTS.SHARE.INPUT_ERROR")),e.xp6(2),e.Q6J("nzPlaceHolder",e.lcZ(3,7,"CLIENT.PROFILE.PAYMENT.CHOOSE"))("nzOptionHeightPx",56)("ngModel",T.preferredPayment),e.xp6(2),e.Q6J("ngForOf",T.allPayments)}}function fe(x,E){1&x&&(e.TgZ(0,"div",44),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&x&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.PROFILE.PAYMENT.LOADING_PAYMENT_FAILED")," "))}function de(x,E){if(1&x&&(e.TgZ(0,"form",28)(1,"nz-form-item",29),e.YNc(2,se,3,3,"ng-template",null,30,e.W1O),e.YNc(4,xe,1,1,"nz-spin",31),e.YNc(5,q,5,9,"nz-form-control",32),e.YNc(6,fe,3,3,"div",33),e.qZA()()),2&x){const T=e.oxw();e.Q6J("formGroup",T.paymentChooseForm),e.xp6(4),e.Q6J("ngIf",T.isLoading||T.isProviderLoading),e.xp6(1),e.Q6J("ngIf",T.allPayments.length>0&&!T.isLoading&&!T.isProviderLoading&&(T.stripe||T.threeDSecure)),e.xp6(1),e.Q6J("ngIf",!(0!==(!T.allPayments||T.allPayments.length)||T.
553isLoading||T.isProviderLoading||T.stripe||T.threeDSecure))}}function it(x,E){if(1&x){const T=e.EpF();e.TgZ(0,"app-multi-state-button",48),e.NdJ("nzPopoverVisibleChange",function($){e.CHM(T);const pe=e.oxw(2);return e.KtG(pe.popoverVisible=$)})("click",function(){e.CHM(T);const $=e.oxw(2);return e.KtG($.isPaymentPending?null:$.showPopconfirm?$.popoverVisible=!0:$.runSubscribe())}),e.ALo(1,"translate"),e.qZA()}if(2&x){const T=e.oxw(2),S=e.MAs(40);e.Q6J("nzType","primary")("nzPopoverVisible",T.popoverVisible)("nzPopoverContent",S)("nzPopoverTrigger",!T.isPaymentPending&&T.showPopconfirm?"click":null)("runFunction",T.runSubscribeFunction)("nzTextKeys",T.submitUnicreditText)("disabled",T.isLoading||T.creditPaymentInProgress)("stickResult",!0)("nzTooltipTitle",T.creditPaymentInProgress?e.lcZ(1,9,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.OTHER_PAYMENT_IN_PROGRESS"):null)}}const Ve=function(x,E){return{amount:x,currency:E}};function W(x,E){if(1&x&&(e.TgZ(0,"div",45),e.YNc(1,it,2,11,"app-multi-state-button",46),e._UZ(2,"app-payment-confirm",47),e.ALo(3,"translate"),e.ALo(4,"formatCurrencyName"),e.qZA()),2&x){const T=e.oxw();e.xp6(1),e.Q6J("ngIf",T.currentPaymentProvider===T.PaymentProvider.Unicredit),e.xp6(1),e.Q6J("subscriptionUpdateText",null!=T.upgradePrice?e.xi3(3,5,"CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.UPGRADE_AMOUNT",e.WLB(10,Ve,T.upgradePrice,e.lcZ(4,8,T.currency))):null)("confirmText",T.confirmText)("purchaseType",T.purchaseType)("purchasedQuota",T.purchasedQuota)}}function ee(x,E){if(1&x&&(e._UZ(0,"p",11),e.ALo(1,"safe"),e.ALo(2,"translate"),e.ALo(3,"formatCurrencyName")),2&x){const T=e.oxw();e.Q6J("innerHTML",e.xi3(1,1,e.xi3(2,4,T.isDelayedPurchase?"COMMON.FORM.SUBSCRIPTIONS.UPGRADE_PRICE_DELAYED":"COMMON.FORM.SUBSCRIPTIONS.UPGRADE_PRICE",e.VKq(9,b,T.upgradePrice+"\xa0"+e.lcZ(3,7,T.currency))),"html"),e.oJD)}}function te(x,E){1&x&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&x&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.SUBSCRIPTIONS.DELAYED_PURCHASE")," "))}function Pe(x,E){if(1&x){const T=e.EpF();e.TgZ(0,"button",49),e.NdJ("click",function(){e.CHM(T);const $=e.oxw();return e.KtG($.showCardAdding=!$.showCardAdding)}),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()}if(2&x){const T=e.oxw();e.Q6J("disabled",T.isLoading||T.isPaymentPending||T.creditPaymentInProgress),e.xp6(1),e.hij(" ",T.showCardAdding?e.lcZ(2,2,"CLIENT.PROFILE.PAYMENT.CANCEL_USING_ANOTHER"):e.lcZ(3,4,"CLIENT.PROFILE.PAYMENT.USE_ANOTHER")," ")}}function Ue(x,E){1&x&&e._UZ(0,"app-payment",50),2&x&&e.Q6J("choosingPayment",!0)}function Ae(x,E){if(1&x){const T=e.EpF();e.TgZ(0,"nz-list-item")(1,"div",51)(2,"div",52)(3,"app-multi-state-button",53),e.NdJ("nzPopoverVisibleChange",function($){e.CHM(T);const pe=e.oxw();return e.KtG(pe.popoverVisible=$)})("click",function(){e.CHM(T);const $=e.oxw();return e.KtG($.isPaymentPending?null:$.showPopconfirm?$.popoverVisible=!0:$.runSubscribe())}),e.ALo(4,"translate"),e.qZA(),e._UZ(5,"app-payment-confirm",47),e.ALo(6,"translate"),e.ALo(7,"formatCurrencyName"),e.qZA()()()}if(2&x){const T=e.oxw(),S=e.MAs(40);e.xp6(3),e.Q6J("nzType","primary")("nzPopoverVisible",T.popoverVisible)("nzPopoverContent",S)("nzPopoverTrigger",!T.isPaymentPending&&T.showPopconfirm?"click":null)("runFunction",T.runSubscribeFunction)("nzTextKeys",T.updateType?T.submitUpgradeText:T.submitText)("disabled",T.isLoading||T.creditPaymentInProgress)("stickResult",!0)("nzGhost",!T.paymentChooseForm||!T.paymentChooseForm.valid)("nzTooltipTitle",T.creditPaymentInProgress?e.lcZ(4,14,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.OTHER_PAYMENT_IN_PROGRESS"):null),e.xp6(2),e.Q6J("subscriptionUpdateText",null!=T.upgradePrice?e.xi3(6,16,"CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.UPGRADE_AMOUNT",e.WLB(21,Ve,T.upgradePrice,e.lcZ(7,19,T.currency))):null)("confirmText",T.confirmText)("purchaseType",T.purchaseType)("purchasedQuota",T.purchasedQuota)}}function Fe(x,E){1&x&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&x&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER_MATCHMAKING")," "))}function Qe(x,E){if(1&x&&(e.TgZ(0,"p",58),e.YNc(1,Fe,3,3,"span",10),e.TgZ(2,"span"),e._uU(3),e.ALo(4,"translate"),e.qZA()()),2&x){const T=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!T.candidateLawyer),e.xp6(2),e.hij(" ",e.lcZ(4,2,"CLIENT.CONTRACTS.FINALIZATION.BENEFIT
553SLIST.MODAL_FOOTER_MATCHMAKING_2")," ")}}function rt(x,E){1&x&&(e.TgZ(0,"p",58),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&x&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER_MATCHMAKING_3")," "))}const Ct=function(x,E){return{buttonText:x,price:E}};function ht(x,E){if(1&x&&(e._UZ(0,"div",11),e.ALo(1,"safe"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"formatCurrencyName")),2&x){const T=e.oxw(3);e.Q6J("innerHTML",e.xi3(1,1,e.xi3(2,4,T.modalFooter,e.WLB(11,Ct,e.lcZ(3,7,T.submitText[T.ButtonState.Default]),null!=T.upgradePrice?T.upgradePrice+"\xa0"+e.lcZ(4,9,T.currency):T.itemPrice.split("/")[0])),"html"),e.oJD)}}function mt(x,E){if(1&x&&(e.TgZ(0,"div"),e.YNc(1,Qe,5,4,"p",55),e.YNc(2,rt,3,3,"p",55),e.YNc(3,ht,5,14,"div",9),e._UZ(4,"app-payment-info",56)(5,"app-feedback",57),e.qZA()),2&x){const T=e.oxw(2);e.xp6(1),e.Q6J("ngIf",T.purchaseType===T.PurchaseType.LAWYER_MEDIATION),e.xp6(1),e.Q6J("ngIf",T.purchaseType===T.PurchaseType.LAWYER_MEDIATION),e.xp6(1),e.Q6J("ngIf",T.modalFooter),e.xp6(1),e.Q6J("currentPaymentProvider",T.currentPaymentProvider)("cardInfoMessageDisabled",!1),e.xp6(1),e.Q6J("unit",T.FeedbackUnit.PurchaseModal)("feature",T.FeedbackFeature.Modal)("aspect",T.feedbackType)}}function ye(x,E){1&x&&(e.TgZ(0,"div"),e.YNc(1,mt,6,8,"div",54),e.qZA())}function Ce(x,E){if(1&x){const T=e.EpF();e.TgZ(0,"div"),e._UZ(1,"i",59),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",60),e.NdJ("click",function(){e.CHM(T);const $=e.oxw();return e.KtG($.openContactUs())}),e.TgZ(5,"span",61),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"button",60),e.NdJ("click",function(){e.CHM(T);const $=e.oxw();return e.KtG($.popoverVisible=!1)}),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"button",62),e.NdJ("click",function(){e.CHM(T);const $=e.oxw();return e.KtG($.runSubscribe())}),e._uU(12),e.ALo(13,"translate"),e.qZA()}if(2&x){const T=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,4,T.popconfirmTitle)," "),e.xp6(4),e.hij(" ",e.lcZ(7,6,"CLIENT.PROFILE.PAYMENT.HAVE_QUESTION")," "),e.xp6(3),e.hij(" ",e.lcZ(10,8,"COMMON.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(13,10,T.popconfirmOkText?T.popconfirmOkText:T.submitText[T.ButtonState.Default])," ")}}function j(x,E){if(1&x&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&x){const T=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,T.submitText[T.ButtonState.Default])," ")}}function _e(x,E){1&x&&e.GkF(0,64)}function F(x,E){if(1&x&&(e.ynx(0),e.YNc(1,_e,1,0,"ng-container",63),e.BQk()),2&x){const T=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",T.submitText[T.ButtonState.Default])}}function ne(x,E){if(1&x&&(e.YNc(0,j,3,3,"ng-container",10),e.YNc(1,F,2,1,"ng-container",10),e._uU(2),e.ALo(3,"translate")),2&x){const T=e.oxw();e.Q6J("ngIf",!T.isDefaultTextTemplate),e.xp6(1),e.Q6J("ngIf",T.isDefaultTextTemplate),e.xp6(1),e.hij(" ",e.lcZ(3,3,"CLIENT.PROFILE.PAYMENT.WITH_UNICREDIT"),"\n")}}function U(x,E){1&x&&e._UZ(0,"i",67)}function et(x,E){1&x&&e._UZ(0,"i",68)}function ct(x,E){if(1&x&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&x){const T=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,T.submitText[T.ButtonState.Default])," ")}}function ft(x,E){1&x&&e.GkF(0,64)}function Ze(x,E){if(1&x&&(e.ynx(0),e.YNc(1,ft,1,0,"ng-container",63),e.BQk()),2&x){const T=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",T.submitText[T.ButtonState.Default])}}function Oe(x,E){if(1&x&&(e.YNc(0,U,1,0,"i",65),e.YNc(1,et,1,0,"i",66),e.YNc(2,ct,3,3,"ng-container",10),e.YNc(3,Ze,2,1,"ng-container",10)),2&x){const T=e.oxw();e.Q6J("ngIf",T.updateType===T.UpdateType.Upgrade),e.xp6(1),e.Q6J("ngIf",T.updateType===T.UpdateType.Downgrade),e.xp6(1),e.Q6J("ngIf",!T.isDefaultTextTemplate),e.xp6(1),e.Q6J("ngIf",T.isDefaultTextTemplate)}}let y=class{constructor(E,T,S,$,pe,Re,Ke,nt,lt){this.translate=E,this.languageService=T,this.clientService=S,this.formService=$,this.onePage=pe,this.modal=Re,this.paymentService=Ke,this.routerService=nt,this.utilService=lt,this.currency=t.Fa6.HUF,this.showFooter=!0,this.modalFooter="CLIENT.PROFILE.PAYMENT.PAYMENT_CHOOSE_FOOTER",this.showPopconfirm=!1,this.popconfirmTitle="",this.creditPaymentInProgress=!1,this.currentPaymentProvider=u.L.config.currentPaymentProvider,this.checkNeeded=!1,this.successCallback=$e=>{},this.errorCallback=$e=>{},this.readyCallback=new e.vpe,this.cardPaymentInProgressChanged=new e.vpe,this.allPayments=[],this.isLoading=!0,this.isProviderLoading=!0,this.paymentID="",this.preferredPayment="",this.showCardAdding=!1,this.ButtonState=o.BN,this.isDefaultTextTemplate=!1,this.PageRoutes=c.d,this.PaymentMethodType=t.LtK,this.VATValue=t.di5,this.isPaymentPending=!1,this.popoverVisible=!1,this.FeedbackUnit=t._0Z,this.FeedbackFeature=t.lrp,this.PurchaseType=C.Oz,this.PaymentProvider=t.OHy,this.UpdateType=t.$om}ngOnInit(){this.feedbackType=this.purchaseType.toString();const E=this.getPaymentMethods();let T;this.paymentChooseForm=this.formService.paymentToUseFormGroup(this.paymentID),this.onePage.paymentChanged.subscribe(S=>{this.isLoading=!0,this.showCardAdding=!1,this.getPaymentMethods()}),this.onePage.lastAddedMethod.subscribe(S=>{this.lastAddedMethod=S,this.allPayments.find($=>$.token===this.lastAddedMethod)&&(this.preferredPayment=this.lastAddedMethod)}),T=this.currentPaymentProvider===t.OHy.Stripe?this.initStripe():Promise.resolve(),this.submitUnicreditText=this.submitText,this.submitUpgradeText=this.submitText,Promise.all([E,T]).then(()=>this.readyCallback.emit()),this.isDefaultTextTemplate=this.submitText[o.BN.Default]instanceof e.Rgc}refreshSubmitUnicreditText(){this.submitUnicreditText=new o.PR(this.defaultUnicreditText,this.submitText[o.BN.Working],this.checkNeeded?this.submitText[o.BN.Success]:"CLIENT.PROFILE.PAYMENT.UNICREDIT_REDIRECT",this.submitText[o.BN.Failed])}refreshSubmitUpgradeText(){this.submitUpgradeText=new o.PR(this.defaultUpgradeText,this.submitText[o.BN.Working],this.submitText[o.BN.Success],this.submitText[o.BN.Failed])}ngAfterViewInit(){this.submitText&&(this.refreshSubmitUnicreditText(),this.refreshSubmitUpgradeText()),this.checkNeeded&&this.runSubscribe()}
553runSubscribe(){this.popoverVisible=!1,this.runSubscribeFunction=this.submit()}runUnicreditPayment(){this.popoverVisible=!1,this.runUnicreditPaymentFunction=()=>this.submitUnicredit()}getPaymentMethods(){return this.isLoading=!0,this.clientService.getPaymentMethod().pipe((0,v.t)(this)).toPromise().then(E=>{this.allPayments=E,this.isLoading=!1,this.lastAddedMethod&&this.allPayments.find(T=>T.token===this.lastAddedMethod)&&(this.preferredPayment=this.lastAddedMethod),this.preferredPayment||(this.allPayments.length>0&&(this.preferredPayment=this.allPayments[0].token),this.allPayments.forEach(T=>{T.preferred&&(this.preferredPayment=T.token)}))},E=>{this.isLoading=!1})}submit(){this.isPaymentPending=!0,this.cardPaymentInProgressChanged.emit(!0),this.setModalClosable(!1),this.paymentID=this.formService.groupToPayment(this.paymentChooseForm);const E=this.allPayments.find(S=>S.token===this.paymentID);let T;if(E&&E.kind.type===t.LtK.PayPal){const S=new t.hIQ(this.paymentID);T=this.sendPaymentRequest(S)}else this.currentPaymentProvider===t.OHy.Braintree?T=this.submitBraintree():this.currentPaymentProvider===t.OHy.Stripe?T=this.submitStripe():this.currentPaymentProvider===t.OHy.Unicredit&&(T=this.submitUnicredit());return T.then(()=>{this.isPaymentPending=!1,this.cardPaymentInProgressChanged.emit(!1),this.setModalClosable(!0)},S=>{this.isPaymentPending=!1,this.cardPaymentInProgressChanged.emit(!1),this.setModalClosable(!0)}),T}submitBraintree(){return this.clientService.getMethodBraintreeNonce(this.paymentID).pipe((0,v.t)(this)).toPromise().then(E=>this.threeDSecure.verifyCard({amount:this.itemPrice.split(" ")[0],nonce:E.value,onLookupComplete:(T,S)=>{S()}}).then(T=>{if(T.liabilityShifted){const pe=new t.mK9(T.nonce,this.dataCollectorInstance.deviceData);return this.sendPaymentRequest(pe)}return Promise.reject()},T=>(console.log(T),Promise.reject())),E=>(console.log(E),Promise.reject()))}submitStripe(){return this.sendPaymentRequest(new t.BAK(this.stripe,this.paymentID,this.idempotencyID))}submitUnicredit(){const E=this.sendPaymentRequest(new t.Ink(this.checkNeeded));return E.then(()=>{},T=>{this.checkNeeded&&T&&441===T.status&&(this.checkNeeded=!1,this.refreshSubmitUnicreditText())}),E}sendPaymentRequest(E){return new Promise((T,S)=>{this.requestFromPaymentID(E).subscribe($=>{this.successCallback($),T($)},$=>{this.errorCallback($),S($)})})}initStripe(){return this.idempotencyID=this.utilService.randomString(128),(0,r.loadStripe)(u.L.config.stripePublishableApiKey,{locale:this.translate.currentLang}).then(T=>{this.stripe=T,this.isProviderLoading=!1},T=>{this.isProviderLoading=!1})}setModalClosable(E){if(this.modal){const T=this.modal.getConfig();T.nzClosable=E,T.nzKeyboard=E,this.modal.updateConfig(T)}}openContactUs(){this.popoverVisible=!1,this.routerService.windowOpenAlternative(c.d.landingContact)}};y.\u0275fac=function(E){return new(E||y)(e.Y36(m.sK),e.Y36(a.T),e.Y36(f.y),e.Y36(O.o),e.Y36(N.g),e.Y36(L.Lf),e.Y36(i.t),e.Y36(M.c),e.Y36(R.f))},y.\u0275cmp=e.Xpm({type:y,selectors:[["app-purchase-modal"]],viewQuery:function(E,T){if(1&E&&(e.Gf(l,5),e.Gf(h,5)),2&E){let S;e.iGM(S=e.CRH())&&(T.defaultUnicreditText=S.first),e.iGM(S=e.CRH())&&(T.defaultUpgradeText=S.first)}},inputs:{imageUrl:"imageUrl",productName:"productName",itemPrice:"itemPrice",netPrice:"netPrice",currency:"currency",requestFromPaymentID:"requestFromPaymentID",submitText:"submitText",confirmText:"confirmText",purchaseLabel:"purchaseLabel",purchaseType:"purchaseType",showFooter:"showFooter",modalFooter:"modalFooter",showPopconfirm:"showPopconfirm",popconfirmTitle:"popconfirmTitle",popconfirmOkText:"popconfirmOkText",vat:"vat",upgradePrice:"upgradePrice",creditPaymentInProgress:"creditPaymentInProgress",currentPaymentProvider:"currentPaymentProvider",checkNeeded:"checkNeeded",purchasedQuota:"purchasedQuota",updateType:"updateType",isDelayedPurchase:"isDelayedPurchase",successCallback:"successCallback",errorCallback:"errorCallback",hideVatPercent:"hideVatPercent",candidateLawyer:"candidateLawyer"},outputs:{readyCallback:"readyCallback",cardPaymentInProgressChanged:"cardPaymentInProgressChanged"},decls:45,vars:32,consts:[["nzItemLayout","horizontal"],["class","mb-2",4,"ngIf"],[1,"d-sm-flex","d-none"],[1,"col-sm-6","col-12","font-weight-lighter","color-unset","purchaseLabel"],[1,"col-sm-6","col-12","font-weight-lighter","chosenPayment"],[1,"d-sm-none","d-block","labelColor","purchaseLabel"],[1,"removeBorderBottom"],[1,"col-sm-6","col-12","metaDescription",3,"nzAvatar","nzDescription"],["multipleRecommendedAvatarTemplate",""],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["class","font-size-smaller",4,"ngIf"],["class","font-size-smaller",3,"innerHTML",4,"ngIf"],[1,"d-sm-none","d-block","pt-3","labelColor","chosenPayment"],["nz-form","","class","w-100 paymentForm col-sm-6 col-12","nzNoColon","",3,"formGroup",4,"ngIf"],["class","col-sm-6 buttonAlign p-h-0 m-h-0 m-h-sm-minus9",4,"ngIf"],[1,"row","justify-content-end","w-100","mb-3","m-h-0","m-h-sm-minus9"],["nz-button","","nzType","default","class","button-text-wrap cursor-pointer",3,"disabled","click",4,"ngIf"],[3,"choosingPayment",4,"ngIf"],["popconfirmTemplate",""],["defaultUnicreditText",""],["defaultUpgradeText",""],[1,"mb-2"],[1,"small"],["alt","Avatar",1,"avatarImage",3,"src"],[1,"font-size-smaller"],[1,"font-size-smaller",3,"innerHTML"],["nz-form","","nzNoColon","",1,"w-100","paymentForm","col-sm-6","col-12",3,"formGroup"],[1,"w-100","mb-0"],["
553indicatorTemplate",""],["nzSimple","","class","centerLoading",3,"nzIndicator",4,"ngIf"],["class","w-100",3,"nzErrorTip",4,"ngIf"],["class","text-danger",4,"ngIf"],["nz-icon","","nzType","loading",1,"m-r-5",2,"font-size","25px"],["nzSimple","",1,"centerLoading",3,"nzIndicator"],[1,"w-100",3,"nzErrorTip"],["nzRequired","","formControlName","paymentID",2,"width","100%","margin-top","1.5rem",3,"nzPlaceHolder","nzOptionHeightPx","ngModel","ngModelChange"],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[1,"media","m-b-5"],["alt","Payment method type",1,"align-self-center","payment-method-image",3,"src"],[1,"media-body","m-l-20"],[1,"m-b-0","white-space-breakspaces"],[1,"text-danger"],[1,"col-sm-6","buttonAlign","p-h-0","m-h-0","m-h-sm-minus9"],["nzType","primary","class","button-text-wrap","nz-popover","","nz-tooltip","",3,"nzType","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","runFunction","nzTextKeys","disabled","stickResult","nzTooltipTitle","nzPopoverVisibleChange","click",4,"ngIf"],[3,"subscriptionUpdateText","confirmText","purchaseType","purchasedQuota"],["nzType","primary","nz-popover","","nz-tooltip","",1,"button-text-wrap",3,"nzType","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","runFunction","nzTextKeys","disabled","stickResult","nzTooltipTitle","nzPopoverVisibleChange","click"],["nz-button","","nzType","default",1,"button-text-wrap","cursor-pointer",3,"disabled","click"],[3,"choosingPayment"],[1,"row","justify-content-end","w-100","m-h-0","m-h-sm-minus9"],[1,"col-sm-6","buttonAlign","p-h-0"],["nzType","primary","nz-popover","","nz-tooltip","",1,"button-text-wrap",3,"nzType","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","runFunction","nzTextKeys","disabled","stickResult","nzGhost","nzTooltipTitle","nzPopoverVisibleChange","click"],[4,"nzModalFooter"],["class","small text-left",4,"ngIf"],[1,"display-block","m-t-10",3,"currentPaymentProvider","cardInfoMessageDisabled"],[3,"unit","feature","aspect"],[1,"small","text-left"],["nz-icon","","nzType","exclamation-circle","nzTheme","fill",1,"warning-color"],["nz-button","","nzSize","small",1,"m-5",3,"click"],[1,"open-link-brand-button-16"],["nz-button","","nzType","primary","nzSize","small",1,"m-5",3,"click"],["class","template",4,"ngTemplateOutlet"],[1,"template"],["nz-icon","","nzType","up-circle","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","down-circle","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","up-circle","nzTheme","outline"],["nz-icon","","nzType","down-circle","nzTheme","outline"]],template:function(E,T){if(1&E&&(e.TgZ(0,"nz-list",0)(1,"div"),e.YNc(2,B,9,7,"div",1),e.TgZ(3,"nz-list-item",2)(4,"span",3),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"span",4),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.TgZ(13,"nz-list-item",6)(14,"nz-list-item-meta",7),e.YNc(15,K,1,1,"ng-template",null,8,e.W1O),e.TgZ(17,"nz-list-item-meta-title"),e.YNc(18,w,4,11,"span",9),e.YNc(19,X,3,3,"span",10),e._UZ(20,"span",11),e.ALo(21,"safe"),e.YNc(22,Y,4,5,"span",10),e._UZ(23,"br"),e.YNc(24,G,3,6,"span",12),e._UZ(25,"br"),e.YNc(26,V,4,12,"span",13),e.qZA()(),e.TgZ(27,"span",14),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.YNc(30,de,7,4,"form",15),e.YNc(31,W,5,13,"div",16),e.qZA(),e.YNc(32,ee,4,11,"p",9),e.YNc(33,te,3,3,"p",10),e.TgZ(34,"div",17),e.YNc(35,Pe,4,6,"button",18),e.qZA(),e.YNc(36,Ue,1,1,"app-payment",19),e.YNc(37,Ae,8,24,"nz-list-item",10),e.qZA()(),e.YNc(38,ye,2,0,"div",10),e.YNc(39,Ce,14,12,"ng-template",null,20,e.W1O),e.YNc(41,ne,4,5,"ng-template",null,21,e.W1O),e.YNc(43,Oe,4,4,"ng-template",null,22,e.W1O)),2&E){const S=e.MAs(16);e.xp6(2),e.Q6J("ngIf",T.purchaseType===T.PurchaseType.LAWYER_MEDIATION),e.xp6(3),e.hij(" ",e.lcZ(6,21,T.purchaseLabel)," "),e.xp6(3),e.hij(" ",e.lcZ(9,23,"CLIENT.PROFILE.PAYMENT.CHOOSEN_PAYMENT")," "),e.xp6(3),e.Oqu(e.lcZ(12,25,T.purchaseLabel)),e.xp6(3),e.s9C("nzDescription",T.productName?T.productName:""),e.Q6J("nzAvatar",S),e.xp6(4),e.Q6J("ngIf",null!=T.upgradePrice),e.xp6(1),e.Q6J("ngIf",null!=T.upgradePrice),e.xp6(1),e.Q6J("innerHTML",e.xi3(21,27,T.itemPrice,"html"),e.oJD),e.xp6(2),e.Q6J("ngIf",T.vat),e.xp6(2),e.Q6J("ngIf",T.vat&&!T.hideVatPercent),e.xp6(2),e.Q6J("ngIf",T.vat===T.VATValue.Standard&&T.netPrice),e.xp6(2),e.hij("",e.lcZ(29,30,"CLIENT.PROFILE.PAYMENT.CHOOSEN_PAYMENT")," "),e.xp6(2),e.Q6J("ngIf",T.currentPaymentProvider!==T.PaymentProvider.Unicredit),e.xp6(1),e.Q6J("ngIf",T.currentPaymentProvider===T.PaymentProvider.Unicredit),e.xp6(1),e.Q6J("ngIf",null!=T.upgradePrice),e.xp6(1),e.Q6J("ngIf",T.isDelayedPurchase&&null==T.upgradePrice),e.xp6(2),e.Q6J("ngIf",T.currentPaymentProvider!==T.PaymentProvider.Unicredit),e.xp6(1),e.Q6J("ngIf",T.showCardAdding),e.xp6(1),e.Q6J("ngIf",!T.showCardAdding&&T.currentPaymentProvider!==T.PaymentProvider.Unicredit),e.xp6(1),e.Q6J("ngIf",T.showFooter)}},styles:['@charset "UTF-8";.multiLineButton[_ngcontent-%COMP%]{height:auto;white-space:normal}.buttonAlign[_ngcontent-%COMP%]{text-align:right}.centerLoading[_ngcontent-%COMP%]{margin:0 auto!important}.removeBorderBottom[_ngcontent-%COMP%]{border-bottom:0px!important}.labelColor[_ngcontent-%COMP%]{color:#000000d9!important}.avatarImage[_ngcontent-%COMP%]{width:60px}.warning-color[_ngcontent-%COMP%]{color:#faad14!important}@media (max-width: 575px){.paymentForm[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}']}),y=(0,s.gn)([(0,v.c)()],y)},55770:(Se,k,n)=>{n.d(k,{W:()=>t});var s=n(94650);function e(v,r){if(1&v&&(s.TgZ(0,"div",5),s._UZ(1,"app-subscription-card",6),s.qZA()),2&v){const c=r.$implicit,C=r.index,u=s.oxw();s.xp6(1),s.Q6J("activeSubscriptionPlan",u.activeSubscriptionPlan)("activeSubscriptionState",u.activeSubscriptionState)("duration",u.duration)("hasBilling",u.hasBilling)("hasPayment",u.hasPayment)("index",u.planImageIndex[C])("plan",c)("pendingPlan",u.pendingPlan)("loadedActiveSubscriptions",u.loadedActiveSubscriptions)("relatedSubscriptionKeys",u.relatedSubscriptionKeys)}}const o=function(){return{autoHide:!1}};let t=(()=>{class v{constructor(){this.relatedSubscriptionKeys={},this.planImageIndex=[],this.remainingPlans=[],this.features=["Manage","Share","Concurrency","History","Revert","Copy","Conversations"]}ngOnInit(){this.plans.map((c,C)=>{this.selectedPlan.ID!==c.ID&&(this.planImageIndex.push(C),this.remainingPlans.push(c))}),this.remainingPlans=this.remainingPlans.sort((c,C)=>c.rank>C.rank?1:-1)}}return v.\u0275fac=function(c){return new(c||v)},v.\u0275cmp=s.Xpm({type:v,selectors:[["app-unsubscribe-modal"]],inputs:{activeSubscriptionPlan:"activeSubscriptionPlan",activeSubscriptionState:"activeSubscriptionState",currLang:"currLang",duration:"duration",hasBilling:"hasBilling",hasPayment:"hasPayment",plans:"plans",selectedPlan:"selectedPlan",pen
553dingPlan:"pendingPlan",loadedActiveSubscriptions:"loadedActiveSubscriptions",relatedSubscriptionKeys:"relatedSubscriptionKeys"},decls:8,vars:6,consts:[[1,"overflow-x-hidden","h-auto",2,"max-height","50vh",3,"options"],[2,"margin-top","-1px"],[1,"row","justify-content-center","w-100"],[1,"col-12","text-center"],["class","col-md-6 col-12 card-width",4,"ngFor","ngForOf"],[1,"col-md-6","col-12","card-width"],[3,"activeSubscriptionPlan","activeSubscriptionState","duration","hasBilling","hasPayment","index","plan","pendingPlan","loadedActiveSubscriptions","relatedSubscriptionKeys"]],template:function(c,C){1&c&&(s.TgZ(0,"ngx-simplebar",0)(1,"div",1)(2,"div",2)(3,"p",3),s._uU(4),s.ALo(5,"translate"),s.qZA()(),s.TgZ(6,"div",2),s.YNc(7,e,2,10,"div",4),s.qZA()()()),2&c&&(s.Q6J("options",s.DdM(5,o)),s.xp6(4),s.hij(" ",s.lcZ(5,3,"CLIENT.PROFILE.SUBSCRIPTIONS.UNSUBSCRIBE.DESC")," "),s.xp6(3),s.Q6J("ngForOf",C.remainingPlans))},styles:['@charset "UTF-8";.card-width[_ngcontent-%COMP%]{max-width:500px!important}']}),v})()},45144:(Se,k,n)=>{n.d(k,{j:()=>e});var s=n(94650);let e=(()=>{class o{transform(v,r){return v}}return o.\u0275fac=function(v){return new(v||o)},o.\u0275pipe=s.Yjl({name:"as",type:o,pure:!0}),o})()},39359:(Se,k,n)=>{n.d(k,{s:()=>e});var s=n(94650);let e=(()=>{class o{transform(v){return v.progress?v.progress:v.shared?v.shared:null}}return o.\u0275fac=function(v){return new(v||o)},o.\u0275pipe=s.Yjl({name:"contractParser",type:o,pure:!0}),o})()},86725:(Se,k,n)=>{n.d(k,{K:()=>c});var s=n(73040),e=n(6947),o=n(41086),t=n(30817),v=n(94650),r=n(32925);let c=(()=>{class C{constructor(m){this.translate=m,this.language=localStorage.getItem(e.B.languageSelection),(0,s.registerLocale)(o),(0,s.registerLocale)(t),this.translate.onLangChange.subscribe(a=>{this.language=a.lang})}transform(m,a=this.language){return a=a?a.substr(0,2).toLowerCase():this.language,(0,s.getName)(m,a,{select:"official"})}}return C.\u0275fac=function(m){return new(m||C)(v.Y36(r.sK,16))},C.\u0275pipe=v.Yjl({name:"countryName",type:C,pure:!1}),C})()},12987:(Se,k,n)=>{n.d(k,{Al:()=>v,H9:()=>t,U2:()=>r});var s=n(76096),e=n(71997),o=n(94650);let t=(()=>{class c{transform(u,m="HUF"){if("HUF"===m){const a=Math.round(u);return a%5<=2?a-a%5:a+(5-a%5)}return Math.round(10*u)/10}}return c.\u0275fac=function(u){return new(u||c)},c.\u0275pipe=o.Yjl({name:"currency",type:c,pure:!0}),c})(),v=(()=>{class c{transform(u,m=2){return u||0===u?u.toLocaleString("en-US",{maximumFractionDigits:m}).replace(/,/g," "):""}}return c.\u0275fac=function(u){return new(u||c)},c.\u0275pipe=o.Yjl({name:"formatCurrency",type:c,pure:!0}),c})(),r=(()=>{class c{transform(u){return u===e.Fa6.HUF?s.T9:u.toString()}}return c.\u0275fac=function(u){return new(u||c)},c.\u0275pipe=o.Yjl({name:"formatCurrencyName",type:c,pure:!0}),c})()},3550:(Se,k,n)=>{n.d(k,{z:()=>r});var s=n(97582),e=n(44224),o=n(17445),t=n(94650),v=n(32925);let r=class{constructor(C){this.translate=C,this.refreshTranslations(),this.translate.onLangChange.subscribe(u=>{this.refreshTranslations()}),(0,o.F)(6e4).pipe((0,e.t)(this)).subscribe(()=>{this.trigger=Math.random()})}refreshTranslations(){this.year=this.translate.instant("COMMON.DATE_AFTER.YEAR"),this.month=this.translate.instant("COMMON.DATE_AFTER.MONTH"),this.week=this.translate.instant("COMMON.DATE_AFTER.WEEK"),this.day=this.translate.instant("COMMON.DATE_AFTER.DAY"),this.hour=this.translate.instant("COMMON.DATE_AFTER.HOUR"),this.minute=this.translate.instant("COMMON.DATE_AFTER.MINUTE"),this.second=this.translate.instant("COMMON.DATE_AFTER.SECOND"),this.now=this.translate.instant("COMMON.DATE_AFTER.NOW")}transform(C,u=null,m=1,a){if(C){const f=Math.floor((+new Date(C)-+new Date)/1e3);if(f<29)return this.now;const O={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};let N;const L=Object.keys(O);m<1&&(m=1);for(let i=0;i<L.length;i++)if(N=Math.floor(f/O[L[i]]),N>0){let M="",R=0,l=f;for(;i+R<L.length&&R<m;)M+=N+" "+this.translate.instant(`COMMON.DATE_AFTER.${L[i+R].toUpperCase()}`)+(i+R+1<L.length&&R+1<m?" ":""),l-=N*O[L[i+R]],R++,N=Math.floor(l/O[L[i+R]]);return M}}return C}};r.\u0275fac=function(C){return new(C||r)(t.Y36(v.sK,16))},r.\u0275pipe=t.Yjl({name:"dateAfter",type:r,pure:!0}),r=(0,s.gn)([(0,e.c)()],r)},14954:(Se,k,n)=>{n.d(k,{R:()=>r});var s=n(97582),e=n(44224),o=n(17445),t=n(94650),v=n(32925);let r=class{constructor(C){this.translate=C,this.refreshTranslations(this.shortText),this.translate.onLangChange.subscribe(u=>{this.refreshTranslations(this.shortText)}),(0,o.F)(6e4).pipe((0,e.t)(this)).subscribe(()=>{this.trigger=Math.random()})}refreshTranslations(C){this.year=this.translate.instant(C?"COMMON.DATE_AGO.SHORT.YEAR":"COMMON.DATE_AGO.YEAR"),this.month=this.translate.instant(C?"COMMON.DATE_AGO.SHORT.MONTH":"COMMON.DATE_AGO.MONTH"),this.week=this.translate.instant(C?"COMMON.DATE_AGO.SHORT.WEEK":"COMMON.DATE_AGO.WEEK"),this.day=this.translate.instant(C?"COMMON.DATE_AGO.SHORT.DAY":"COMMON.DATE_AGO.DAY"),this.hour=this.translate.instant(C?"COMMON.DATE_AGO.SHORT.HOUR":"COMMON.DATE_AGO.HOUR"),this.minute=this.translate.instant(C?"COMMON.DATE_AGO.SHORT.MINUTE":"COMMON.DATE_AGO.MINUTE"),this.second=this.translate.instant(C?"COMMON.DATE_AGO.SHORT.
553SECOND":"COMMON.DATE_AGO.SECOND"),this.now=this.translate.instant("COMMON.DATE_AGO.NOW")}transform(C,u=null,m=1,a=29,f=!1,O){if(this.shortText=f,C){const N=Math.floor((+new Date-+new Date(C))/1e3);if(N<a)return this.now;const L={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};let i;const M=Object.keys(L);m<1&&(m=1);for(let R=0;R<M.length;R++)if(i=Math.floor(N/L[M[R]]),i>0){let l="",h=0,D=N;for(;R+h<M.length&&h<m;)l+=i+(f?"":" ")+this.translate.instant(`COMMON.DATE_AGO.${f?"SHORT."+M[R+h].toUpperCase():M[R+h].toUpperCase()}`)+(R+h+1<M.length&&h+1<m?" ":""),D-=i*L[M[R+h]],h++,i=Math.floor(D/L[M[R+h]]);return l}}return C}};r.\u0275fac=function(C){return new(C||r)(t.Y36(v.sK,16))},r.\u0275pipe=t.Yjl({name:"dateAgo",type:r,pure:!0}),r=(0,s.gn)([(0,e.c)()],r)},79991:(Se,k,n)=>{n.d(k,{Y:()=>c,h:()=>C});var r,s=n(97582),e=n(6947),o=n(32925),t=n(44224),v=n(94650);let c=r=class{constructor(m){this.translate=m,this.translate.onLangChange.subscribe(a=>{r.language=a.lang})}static transform(m,a,f){if(m&&"hu"===a){const O="a\xe1e\xe9i\xedo\xf3\xf6\u0151u\xfa\xfc\u0171A\xc1E\xc9I\xcdO\xd3\xd6\u0150U\xda\xdc\u0170",N="5",L="1";let i=m.replace(/[Aa]\(z\)[\n\t '"]+([a-zA-Z\xe1\xe9\xed\xf3\u0151\xfa\u0171\xc1\xc9\xcd\xd3\u0150\xda\u0170]|[0-9]+)/g,(M,...R)=>R[0]&&O.includes(R[0].charAt(0))||N.includes(R[0].charAt(0))||L.includes(R[0].charAt(0))&&R[0].length%3==1?M.replace("(z)","z"):M.replace("(z)",""));return f&&(i=i.replace(/[Aa]\(z\)[\n\t '"]*$/g,(M,...R)=>O.includes(f.charAt(0))||N.includes(f.charAt(0))||L.includes(f.charAt(0))&&f.length%3==1?M.replace("(z)","z"):M.replace("(z)",""))),i}return m}transform(m,a,f){return a||(a=r.language),r.transform(m,a,f)}};c.language=localStorage.getItem(e.B.languageSelection)?localStorage.getItem(e.B.languageSelection):"hu",c.\u0275fac=function(m){return new(m||c)(v.Y36(o.sK,16))},c.\u0275pipe=v.Yjl({name:"definiteArticle",type:c,pure:!0}),c=r=(0,s.gn)([(0,t.c)()],c);let C=(()=>{class u extends o.FX{interpolate(a,f){const O=super.interpolate(a,f);return"string"==typeof O?c.transform(O,c.language):O}}return u.\u0275fac=function(){let m;return function(f){return(m||(m=v.n5z(u)))(f||u)}}(),u.\u0275prov=v.Yz7({token:u,factory:u.\u0275fac}),u})()},38704:(Se,k,n)=>{n.d(k,{O:()=>v});var s=n(22971),e=n(94650),o=n(32925),t=n(55089);let v=(()=>{class r{constructor(C,u){this.translate=C,this.userService=u,this.missing=""}transform(C,u,m){if(this.translate.get("COMMON.NO_PROFILE_LAWYER").subscribe(a=>{this.missing=m?null:a}),null==C)return this.missing;if(C.owner){if(C.owner.representative){if(C.owner.representative.name){if(C.owner.representative.name.middle){const a=C.owner.representative.name;return`${a.first} ${a.middle} ${a.last}`}{const a=C.owner.representative.name;return`${a.first} ${a.last}`}}return this.missing}return C.owner.type===s.pq.Person?C.owner.name.first+" "+C.owner.name.last:C.owner.type===s.pq.Company?C.owner.name:this.missing}return this.missing}}return r.\u0275fac=function(C){return new(C||r)(e.Y36(o.sK,16),e.Y36(t.K,16))},r.\u0275pipe=e.Yjl({name:"getOwnUsername",type:r,pure:!0}),r})()},92367:(Se,k,n)=>{n.d(k,{D:()=>t});var s=n(22971),e=n(94650),o=n(32925);let t=(()=>{class v{constructor(c){this.translate=c,this.missing=""}transform(c,C,u){if(this.translate.get("COMMON.NO_PROFILE").subscribe(m=>{this.missing=u?null:m}),null==c)return this.missing;if(c.owner){if(c.owner.representative){const m=c;if(m.owner.representative.name){if(m.owner.representative.name.middle){const a=m.owner.representative.name;return`${a.first} ${a.middle} ${a.last}`}{const a=m.owner.representative.name;return`${a.first} ${a.last}`}}return this.missing}return c.owner.type===s.pq.Person?c.owner.name.first+" "+c.owner.name.last:c.owner.type===s.pq.Company?c.owner.name:this.missing}return this.missing}}return v.\u0275fac=function(c){return new(c||v)(e.Y36(o.sK,16))},v.\u0275pipe=e.Yjl({name:"getUserName",type:v,pure:!0}),v})()},7463:(Se,k,n)=>{n.d(k,{N:()=>a});var s=n(97582),e=n(6947),o=n(40241),v=n(78604),c=n(44224),C=n(94650),u=n(32925),m=n(61479);let a=class{constructor(O,N){this.translate=O,this.resizeService=N,this.language=localStorage.getItem(e.B.languageSelection),this.translate.onLangChange.subscribe(L=>{this.language=L.lang}),this.width=window.innerWidth,this.resizeService.width.pipe((0,c.t)(this)).subscribe(L=>this.width=L)}transform(O,N,L=0,i,M,R=7){return null==M&&(M=this.width),L&&M<L||i&&i<M?O:"hu"===(N=N?N.substr(0,2).toLowerCase():this.language)?(0,v.hyphenateHTMLSync)(O,{minWordLength:R}):(0,o.hyphenateHTMLSync)(O,{minWordLength:R})}};a.\u0275fac=function(O){return new(O||a)(C.Y36(u.sK,16),C.Y36(m._,16))}
553,a.\u0275pipe=C.Yjl({name:"hyphen",type:a,pure:!0}),a=(0,s.gn)([(0,c.c)()],a)},70087:(Se,k,n)=>{n.d(k,{L:()=>e});var s=n(94650);let e=(()=>{class o{constructor(){this.breakpointDict={all:0,x:1,phone:2,sm:3,md:4,lg:5,xl:6,xxl:7},this.breakpointsGiven=[]}searchClosest(v,r){const c=this.breakpointDict[v];let C=-1;for(const m of this.breakpointsGiven)m>C&&m<c&&2!==m&&(C=m);const u=Object.keys(this.breakpointDict).find(m=>this.breakpointDict[m]===C);return-1!==C&&u?r[u]:30}transform(v,r,c,C){let u=0;for(const a in r)this.breakpointsGiven.push(this.breakpointDict[a]);return r.hasOwnProperty("all")?u=r.all:(null==c&&(c=window.innerWidth),u=c>=1400?r.hasOwnProperty("xxl")?r.xxl:this.searchClosest("xxl",r):c>=1200?r.hasOwnProperty("xl")?r.xl:this.searchClosest("xl",r):c>=992?r.hasOwnProperty("lg")?r.lg:this.searchClosest("lg",r):c>=768?r.hasOwnProperty("md")?r.md:this.searchClosest("md",r):c>=576?r.hasOwnProperty("sm")?r.sm:this.searchClosest("sm",r):c<=400?r.hasOwnProperty("phone")?r.phone:this.searchClosest("phone",r):r.hasOwnProperty("x")?r.x:this.searchClosest("x",r)),0===u?v:C&&"mail"===C?v.length>u?v.substring(0,u/2)+"..."+v.substring(v.length-u+u/2,v.length):v:v.length>u?v.substring(0,u)+"...":v}}return o.\u0275fac=function(v){return new(v||o)},o.\u0275pipe=s.Yjl({name:"limitTo",type:o,pure:!0}),o})()},35232:(Se,k,n)=>{n.d(k,{d:()=>v});var s=n(6947),e=n(99753),o=n(94650),t=n(32925);let v=(()=>{class r{constructor(C){this.translate=C,this.language=localStorage.getItem(s.B.languageSelection),this.translate.onLangChange.subscribe(u=>{this.language=u.lang})}transform(C){return"en"===this.language?C&&C.startsWith("/")&&!C.startsWith(`/${e._.en}`)&&!C.startsWith(`/${e._.baseBlog}`)?`/${e._.en}${C}`:`/${e._.en}`:C}}return r.\u0275fac=function(C){return new(C||r)(o.Y36(t.sK,16))},r.\u0275pipe=o.Yjl({name:"localizeRoute",type:r,pure:!1}),r})()},11679:(Se,k,n)=>{n.d(k,{B:()=>e});var s=n(94650);let e=(()=>{class o{transform(v){const r=v.lastIndexOf(" ");return v.slice(0,r)+" "+v.slice(r+1,v.length)}}return o.\u0275fac=function(v){return new(v||o)},o.\u0275pipe=s.Yjl({name:"nonBreakingEnd",type:o,pure:!0}),o})()},81801:(Se,k,n)=>{n.d(k,{A:()=>e});var s=n(94650);let e=(()=>{class o{transform(v){const r=[];for(let c=0;c<v;c++)r.push(c);return r}}return o.\u0275fac=function(v){return new(v||o)},o.\u0275pipe=s.Yjl({name:"numberArray",type:o,pure:!0}),o})()},5233:(Se,k,n)=>{n.d(k,{y:()=>o});var s=n(94650),e=n(11481);let o=(()=>{class t{constructor(r){this.sanitizer=r}transform(r,c){switch(c){case"html":default:return this.sanitizer.bypassSecurityTrustHtml(r);case"style":return this.sanitizer.bypassSecurityTrustStyle(r);case"script":return this.sanitizer.bypassSecurityTrustScript(r);case"url":return this.sanitizer.bypassSecurityTrustUrl(r);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(r)}}}return t.\u0275fac=function(r){return new(r||t)(s.Y36(e.H7,16))},t.\u0275pipe=s.Yjl({name:"safe",type:t,pure:!0}),t})()},80432:(Se,k,n)=>{n.d(k,{R:()=>o});var s=n(94650),e=n(3674);let o=(()=>{class t{constructor(r){this.utilService=r}transform(r,c){return this.utilService.shortifyText(r,200,c)}}return t.\u0275fac=function(r){return new(r||t)(s.Y36(e.f,16))},t.\u0275pipe=s.Yjl({name:"shortify",type:t,pure:!0}),t})()},41836:(Se,k,n)=>{n.d(k,{m:()=>u});var s=n(97582),e=n(36057),o=n(86768),t=n(44224),v=n(94650),r=n(32925),c=n(97185),C=n(75489); 554/* 555 * @license 556 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 557 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 558 *
559 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 560 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 561 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 562 * trade secret or copyright law. 563 * 564 * Dissemination of this information or reproduction of this material is strictly forbidden 565 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 566 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 567 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 568 * explicitly covering such access. 569 * 570 * The copyright notice above does not evidence any actual or intended publication or disclosure 571 * of this source code, which includes information that is confidential and/or proprietary, 572 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 573 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 574 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 575 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 576 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 577 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 578 * IN WHOLE OR IN PART. 579 */let u=class{constructor(a,f,O){this.translate=a,this.toastr=f,this.eventService=O}deleteAllToasts(){const a=[];this.toastr.toasts.forEach(f=>{a.push(f.toastId)}),a.forEach(f=>{1===this.toastr.currentlyActive?(this.eventService.lastNotifClicked.emit(!0),this.toastr.remove(f)):this.toastr.remove(f)})}successNotification(a,f,O,N,L){this.translate.get(a,O).subscribe(i=>{this.toastr.success(f?this.translate.instant(f,N):void 0,i,{timeOut:e.V1.MEDIUM,tapToDismiss:!0,toastComponent:o.c,titleClass:"toast-title toastr-title-styling mr-4",toastClass:"toastr-size-fix ngx-toastr toastr-success",messageClass:"toast-message toastr-message-styling mr-4"}).toastRef.componentInstance.relatedID=L})}errorMessage(a,f,O,N,L){this.translate.get(a,O).subscribe(i=>{this.toastr.error(f?this.translate.instant(f,N):void 0,i,{timeOut:e.V1.MEDIUM,tapToDismiss:!0,toastComponent:o.c,titleClass:"toast-title toastr-title-styling mr-4",toastClass:"toastr-size-fix ngx-toastr toastr-error",messageClass:"toast-message toastr-message-styling mr-4 showContactUs"}).toastRef.componentInstance.relatedID=L})}infoNotification(a,f,O,N,L){this.translate.get(a,O).subscribe(i=>{this.toastr.info(f?this.translate.instant(f,N):void 0,i,{timeOut:e.V1.MEDIUM,tapToDismiss:!0,toastComponent:o.c,titleClass:"toast-title toastr-title-styling mr-4",toastClass:"toastr-size-fix ngx-toastr toast-info toastr-background",messageClass:"toast-message toastr-message-styling mr-4"}).toastRef.componentInstance.relatedID=L})}warningNotification(a,f,O,N,L){this.translate.get(a,O).subscribe(i=>{this.toastr.warning(f?this.translate.instant(f,N):void 0,i,{timeOut:e.V1.MEDIUM,tapToDismiss:!0,toastComponent:o.c,titleClass:"toast-title toastr-title-styling mr-4",toastClass:"toastr-size-fix ngx-toastr toastr-warning",messageClass:"toast-message toastr-message-styling mr-4"}).toastRef.componentInstance.relatedID=L})}warningMessage(a,f,O,N,L){this.translate.get(a,O).subscribe(i=>{this.toastr.error(f?this.translate.instant(f,N):void 0,i,{timeOut:e.V1.MEDIUM,tapToDismiss:!0,toastComponent:o.c,titleClass:"toast-title toastr-title-styling mr-4",toastClass:"toastr-size-fix ngx-toastr",messageClass:"toast-message toastr-message-styling mr-4 showContactUs"}).toastRef.componentInstance.relatedID=L})}};u.\u0275fac=function(a){return new(a||u)(v.LFG(r.sK),v.LFG(c._W),v.LFG(C.P))},u.\u0275prov=v.Yz7({token:u,factory:u.\u0275fac}),u=(0,s.gn)([(0,t.c)()],u)},90735:(Se,k,n)=>{n.d(k,{a:()=>B});var s=n(97582),e=n(94650),o=n(28736),t=n(76096),v=n(55089),r=n(36057),c=n(44224),C=n(44569),u=n(17445),m=n(22529),a=n(45218),f=n(80529),O=n(50211),N=n(93196),L=n(32925),i=n(39889),M=n(49651),R=n(32046),l=n(30144),h=n(75489),D=n(54584); 580/* 581 * @license 582 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 583 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 584 *
585 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 586 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 587 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 588 * trade secret or copyright law. 589 * 590 * Dissemination of this information or reproduction of this material is strictly forbidden 591 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 592 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 593 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 594 * explicitly covering such access. 595 * 596 * The copyright notice above does not evidence any actual or intended publication or disclosure 597 * of this source code, which includes information that is confidential and/or proprietary, 598 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 599 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 600 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 601 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 602 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 603 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 604 * IN WHOLE OR IN PART. 605 */let B=class{constructor(b,w,X,Y,Z,G,Q,V,se,xe,Ee){this.http=b,this.clientService=w,this.userService=X,this.notificationService=Y,this.translate=Z,this.routerService=G,this.nzMessageService=Q,this.userInfosService=V,this.router=se,this.eventService=xe,this.lawyerValidationService=Ee,this.newMessage=new e.vpe,this.messages=new e.vpe,this.newChatOrMessage=new e.vpe,this.chatStateChanged=new e.vpe,this.chatSnippetList=[],this.initialized=!1,this.ticketExpiration=a.L.config.ticketExpiration?a.L.config.ticketExpiration:2e4,this.gotMessages=!1,this.userService.isLoggedIn&&!this.userService.isAdministrator&&this.initialize(),v.K.sessionStatusChanged.subscribe(re=>{re&&!this.initialized?this.initialize():!re&&this.initialized&&this.destroy()}),v.K.impersonatedStatusChanged.pipe((0,c.t)(this)).subscribe(re=>{re?this.initialized||this.initialize():this.initialized&&this.destroy()}),this.eventService.createNewConversationWithUserID.pipe((0,c.t)(this)).subscribe(re=>{re&&re.userID&&this.createNewConversationWithUserID(re.userID,re.modal)})}initialize(){if(this.initialized=!0,this.userService.isLawyer&&!this.lawyerValidationService.isVerified){let b=!0;this.lawyerValidationService.changed.pipe((0,c.t)(this),(0,m.o)(w=>b)).subscribe(w=>{const X=w.get(r.xr.VERIFIED);!X.isLoading&&X.value&&!X.hasError&&(b=!1,this.startUpdateInterval())})}else this.startUpdateInterval()}startUpdateInterval(){this.refreshTicket().then(()=>{this.checkForUpdates()}),this.updateInterval&&this.updateInterval.unsubscribe(),this.updateInterval=(0,u.F)(6e4).pipe((0,c.t)(this)).subscribe(()=>{this.checkForUpdates()})}destroy(){this.initialized=!1,this.updateInterval&&(this.updateInterval.unsubscribe(),this.updateInterval=null),this.chatSnippetList=[]}refreshTicket(){return this.pendingTicketRefresh||(this.pendingTicketRefresh=this.getChatTicket().toPromise().then(b=>(this.ticket=b.ticketID,this.ticketDate=Date.now(),this.pendingTicketRefresh=null,this.ticket),b=>(console.log("ticket refresh failed"),console.log(b),this.pendingTicketRefresh=null,Promise.reject(b)))),this.pendingTicketRefresh}getChatTicket(){return this.http.get(o.i.apiRouteClientChatTicket(),{headers:this.clientService.getAuthHeaders()})}connectToChatChannel(b){return new WebSocket(o.i.wsApiRouteClientChatChannel(b,this.ticket))}postMessages(b,w){return this.http.post(o.i.apiRouteClientChatMessages(b),{messageIDs:w},{headers:this.clientService.getAuthHeaders()})}getLatestTimestamp(b){return b.messages&&b.messages.length>
6050?b.messages[0].timestamp:b.state&&b.state.timestamp?b.state.timestamp:0}checkForUpdates(){this.clientService.getPreviousConversations().pipe((0,c.t)(this)).subscribe(b=>{if(this.chatSnippetList&&0!==this.chatSnippetList.length)b.forEach(w=>{this.handleNewChatSnippet(w)});else{this.chatSnippetList=b;let w=[...b].sort((Y,Z)=>this.getLatestTimestamp(Y)<this.getLatestTimestamp(Z)?1:-1),X=0;w.forEach((Y,Z)=>{const G=Y.participants.find(V=>V.userID!==this.clientService.userService.sessionUserID),Q=Y.messages.filter(V=>V.userID===G.userID);Y.participants.forEach(V=>{if(V.userID===this.userService.sessionUserID&&Y.messages.length>0&&Q.length>0&&V.lastSeen<Q[0].timestamp)if(this.userInfosService.userImgs.has(G.userID)&&null!==this.userInfosService.userImgs.get(G.userID))X=this.createNewChatMessageNotification(Y,G,Y.messages,this.userInfosService.userImgs.get(G.userID),X);else{this.userInfosService.batchGetUserImgsByIds([G.userID]);const se=this.userInfosService.userImgsChanged.subscribe(xe=>{(!xe.has(G.userID)||null!==xe.get(G.userID))&&(X=this.createNewChatMessageNotification(Y,G,Y.messages,xe.get(G.userID),X),se.unsubscribe())})}else if(V.userID===this.userService.sessionUserID&&0===Y.messages.length&&V.lastSeen<Y.state.timestamp)if(this.userInfosService.userImgs.has(G.userID)&&null!==this.userInfosService.userImgs.get(G.userID))this.createNewChatSnippetNotification(Y,G,this.userInfosService.userImgs.get(G.userID));else{this.userInfosService.batchGetUserImgsByIds([G.userID]);const se=this.userInfosService.userImgsChanged.subscribe(xe=>{(!xe.has(G.userID)||null!==xe.get(G.userID))&&(this.createNewChatSnippetNotification(Y,G,this.userInfosService.userImgs.get(G.userID)),se.unsubscribe())})}})})}},b=>{},()=>{this.gotMessages=!0,this.messages.emit(this.chatSnippetList)})}createNewChatMessageNotification(b,w,X,Y,Z){return Z&&!(Z<3)||this.router.url.includes(b.chatID)?this.notificationService.addNotifWithoutPopup("wechat",new r.n0("CLIENT.NOTIFICATIONS.CONVERSATIONS.MESSAGE.TITLE"),new r.n0("CLIENT.NOTIFICATIONS.CONVERSATIONS.MESSAGE.DESCRIPTION",{name:w.name}),r.V1.UNLIMITED,r.C7.SECONDARY,C.d.clientChatByIDWithUserType(b.chatID),Y,X[0].timestamp,b.chatID):this.notificationService.addNotif("wechat",new r.n0("CLIENT.NOTIFICATIONS.CONVERSATIONS.MESSAGE.TITLE"),new r.n0("CLIENT.NOTIFICATIONS.CONVERSATIONS.MESSAGE.DESCRIPTION",{name:w.name}),r.V1.UNLIMITED,r.C7.SECONDARY,C.d.clientChatByIDWithUserType(b.chatID),Y,X[0].timestamp,null,b.chatID),Z&&Z++,this.router.url.includes(b.chatID)||this.newMessage.emit(!0),Z}handleNewChatSnippet(b){const w=b.participants.find(Y=>Y.userID!==this.clientService.userService.sessionUserID),X=this.chatSnippetList.find(Y=>Y.chatID===b.chatID);if(X){X.participants=b.participants,X.state.type!==b.state.type&&this.chatStateChanged.emit(new t.Ar(b.chatID,b.state)),X.state=b.state;const Y=b.messages.filter(Z=>!X.messages.find(G=>G.ID===Z.ID));if(Y.length>0){Y.forEach(G=>{const Q=X.messages.findIndex(V=>V.timestamp<G.timestamp);-1===Q?X.messages.push(G):0===Q?X.messages.unshift(G):Q>0&&X.messages.splice(Q-1,0,G),this.newChatOrMessage.emit(G)});const Z=Y.filter(G=>G.userID===w.userID);if(Z.length>0)if(this.userInfosService.userImgs.has(w.userID)&&null!==this.userInfosService.userImgs.get(w.userID))this.createNewChatMessageNotification(b,w,Z,this.userInfosService.userImgs.get(w.userID));else{this.userInfosService.batchGetUserImgsByIds([w.userID]);const G=this.userInfosService.userImgsChanged.subscribe(Q=>{(!Q.has(w.userID)||null!==Q.get(w.userID))&&(this.createNewChatMessageNotification(b,w,Z,Q.get(w.userID)),G.unsubscribe())})}else this.newMessage.emit(!1)}this.newMessage.emit(!1)}else if(this.chatSnippetList.push(b),this.userInfosService.userImgs.has(w.userID)&&null!==this.userInfosService.userImgs.get(w.userID))this.createNewChatSnippetNotification(b,w,this.userInfosService.userImgs.get(w.userID));else{this.userInfosService.batchGetUserImgsByIds([w.userID]);const Y=this.userInfosService.userImgsChanged.subscribe(Z=>{(!Z.has(w.userID)||null!==Z.get(w.userID))&&(this.createNewChatSnippetNotification(b,w,this.userInfosService.userImgs.get(w.userID)),Y.unsubscribe())})}}createNewChatSnippetNotification(b,w,X){this.notificationService.addNotif("wechat",new r.n0("CLIENT.NOTIFICATIONS.CONVERSATIONS.CONVERSATION.TITLE"),new r.n0("CLIENT.NOTIFICATIONS.CONVERSATIONS.CONVERSATION.DESCRIPTION",{name:w.name}),r.V1.UNLIMITED,r.C7.SECONDARY,C.d.clientChatByIDWithUserType(b.chatID),X,b.state.t
605imestamp,null,b.chatID),this.newMessage.emit(!0),this.newChatOrMessage.emit(b)}createNewConversationWithUserID(b,w){this.clientService.startNewConversationWithUserID(b).pipe((0,c.t)(this)).subscribe(X=>{const Y=X.chatID;this.handleNewChatSnippet(X),this.routerService.routeToChatByID(Y),w&&w.close()},X=>{400===X.status&&this.nzMessageService.error(this.translate.instant("CLIENT.CONVERSATIONS.CREATE_ERROR"))})}createNewConversationWithMail(b,w){const X=this.clientService.startNewConversation(b).pipe((0,c.t)(this)).toPromise();return X.then(Y=>{const Z=Y.chatID;this.handleNewChatSnippet(Y),this.routerService.routeToChatByID(Z),w&&w.close()},Y=>{400===Y.status&&this.nzMessageService.error(this.translate.instant("CLIENT.CONVERSATIONS.CREATE_CONVERSATION_MODAL.CREATE_ERROR_MESSAGE"))}),X}downloadAgencyContract(b){return this.clientService.getAgencyContractByID(b).pipe((0,c.t)(this)).toPromise().then(w=>{this.translate.instant("CLIENT.CONVERSATIONS.AGENCY_CONTRACT.FILE_NAME"),w=new Blob([w],{type:"application/pdf"}),document.createElement("a");const Z=URL.createObjectURL(w);return this.routerService.windowOpenAlternative(Z),Z},w=>{console.log(w)})}updateLastSeen(b,w){const X=this.chatSnippetList.find(Z=>Z.chatID===b);if(X){const Z=X.participants.find(G=>G.userID===this.userService.sessionUserID);Z&&(Z.lastSeen=w)}const Y=this.chatSnippetList.some(Z=>{const G=Z.participants.find(Q=>Q.userID===this.userService.sessionUserID);return Z.messages.length>0&&G.lastSeen<Z.messages[0].timestamp||0===Z.messages.length&&G.lastSeen<Z.state.timestamp});this.newMessage.emit(Y)}};B.\u0275fac=function(b){return new(b||B)(e.LFG(f.eN),e.LFG(O.y),e.LFG(v.K),e.LFG(N.g),e.LFG(L.sK),e.LFG(i.c),e.LFG(M.dD),e.LFG(R.h),e.LFG(l.F0),e.LFG(h.P),e.LFG(D.w))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B=(0,s.gn)([(0,c.c)()],B)},50211:(Se,k,n)=>{n.d(k,{y:()=>M});var s=n(80529),e=n(11491),o=n(76096),t=n(71997),v=n(22971),r=n(28736),c=n(89698),C=n(39646),u=n(39841),m=n(4128),a=n(54004),O=n(94650),N=n(55089); 606/* 607 * @license 608 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 609 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 610 *
611 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 612 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 613 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 614 * trade secret or copyright law. 615 * 616 * Dissemination of this information or reproduction of this material is strictly forbidden 617 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 618 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 619 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 620 * explicitly covering such access. 621 * 622 * The copyright notice above does not evidence any actual or intended publication or disclosure 623 * of this source code, which includes information that is confidential and/or proprietary, 624 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 625 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 626 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 627 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 628 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 629 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 630 * IN WHOLE OR IN PART. 631 */ 632/* 633 * @license 634 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 635 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 636 *
637 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 638 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 639 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 640 * trade secret or copyright law. 641 * 642 * Dissemination of this information or reproduction of this material is strictly forbidden 643 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 644 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 645 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 646 * explicitly covering such access. 647 * 648 * The copyright notice above does not evidence any actual or intended publication or disclosure 649 * of this source code, which includes information that is confidential and/or proprietary, 650 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 651 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 652 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 653 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 654 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 655 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 656 * IN WHOLE OR IN PART. 657 */ 658let L=(()=>{class R extends class f{constructor(){this.headers=new s.WM({"Content-Type":"application/json"})}captchaHeaders(l){return new s.WM({"Content-Type":"application/json",Captcha:l})}handleServerError(l){return 0===l.status||500===l.status}url(l,h){return l+"?"+h.map(D=>D.toString()).join("&")}}{constructor(h){super(),this.userService=h}getAuthHeaders(){const h=this.userService.sessionToken;return new s.WM(h?{"Content-Type":"application/json",Session:h}:{"Content-Type":"application/json"})}getAuthHeadersWithNoCache(){const h=this.userService.sessionToken;return new s.WM(h?{"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0",Session:h}:{"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}getAuthHeaderWithTTL(h){return h?this.getAuthHeaders().append("ttl",h.toString()):this.getAuthHeaders()}}return R.\u0275fac=function(h){return new(h||R)(O.LFG(N.K))},R.\u0275prov=O.Yz7({token:R,factory:R.\u0275fac}),R})();var i=n(97895); 659/* 660 * @license 661 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 662 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 663 *
664 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 665 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 666 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 667 * trade secret or copyright law. 668 * 669 * Dissemination of this information or reproduction of this material is strictly forbidden 670 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 671 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 672 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 673 * explicitly covering such access. 674 * 675 * The copyright notice above does not evidence any actual or intended publication or disclosure 676 * of this source code, which includes information that is confidential and/or proprietary, 677 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 678 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 679 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 680 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 681 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 682 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 683 * IN WHOLE OR IN PART. 684 */let M=(()=>{class R extends L{constructor(h,D,B){super(B),this.http=h,this.trackingService=D,this.userService=B}getConfiguration(){return this.http.get(r.i.apiRouteConfiguration,{headers:this.getAuthHeaders()})}login(h,D,B){return this.http.post(r.i.apiRouteLogin,JSON.stringify(new e.xJ(h,D)),{headers:this.captchaHeaders(B)})}auth2falogin(h,D,B,K){return this.http.post(r.i.apiRouteLogin,JSON.stringify(new e.it(h,D,B)),{headers:this.captchaHeaders(K)})}loginGoogle(h,D){return this.http.post(r.i.apiRouteLogin,JSON.stringify(new e.d2(h)),{headers:this.captchaHeaders(D)})}loginFB(h,D){return this.http.post(r.i.apiRouteLogin,JSON.stringify(new e.C(h)),{headers:this.captchaHeaders(D)})}loginApple(h,D){return this.http.post(r.i.apiRouteLogin,JSON.stringify(new e.Rl(h)),{headers:this.captchaHeaders(D)})}registerStandard(h,D,B,K,b){this.trackingService.sendGoogleTagManagerRegistrationCompleteEvent(B),this.trackingService.sendPixelRegistrationCompleteEvent(B);const w=this.trackingService.appendConversionHeader(this.captchaHeaders(K));return this.http.post(r.i.apiRouteRegister(B),JSON.stringify(new e.rA(h,D,b)),{headers:w})}registerFB(h,D,B,K,b){this.trackingService.sendGoogleTagManagerRegistrationCompleteEvent(B),this.trackingService.sendPixelRegistrationCompleteEvent(B);const w=this.trackingService.appendConversionHeader(this.captchaHeaders(K));return this.http.post(r.i.apiRouteRegister(B),JSON.stringify(new e.hJ(h,D,b)),{headers:w})}registerGoogle(h,D,B,K,b){this.trackingService.sendGoogleTagManagerRegistrationCompleteEvent(B),this.trackingService.sendPixelRegistrationCompleteEvent(B);const w=this.trackingService.appendConversionHeader(this.captchaHeaders(K));return this.http.post(r.i.apiRouteRegister(B),JSON.stringify(new e.di(h,D,b)),{headers:w})}registerApple(h,D,B,K,b){this.trackingService.sendGoogleTagManagerRegistrationCompleteEvent(B),this.trackingService.sendPixelRegistrationCompleteEvent(B);const w=this.trackingService.appendConversionHeader(this.captchaHeaders(K));return this.http.post(r.i.apiRouteRegister(B),JSON.stringify(new e.yZ(h,D,b)),{headers:w})}registerAppleWithoutName(h,D,B,K){this.trackingService.sendGoogleTagManagerRegistrationCompleteEvent(D),this.trackingService.sendPixelRegistrationCompleteEvent(D);const b=this.trackingService.appendConversionHeader(this.captchaHeaders(B));return this.http.post(r.i.apiRouteRegister(D),JSON.stringify(new e.AA(h,K)),{headers:b})}recovery(h,D){return this.http.post(r.i.apiRouteRecovery,JSON.stringify(new e.Rk(h)),{headers:this.captchaHeaders(D)})}recoveryConfirm(h,D,B){return this.http.patch(`${r.i.apiRouteRecovery}/${B}`,JSON.stringify(new e.nO(h,D)),{headers:this.headers})}logout(){return this.http.post(r.i.apiRouteLogout,void 0,{headers:this.getAuthHeaders()})}deregister(h){return this.http.post(`${r.i.apiRouteDeregisterInit()}`,JSON.stringify(new t.YUV(h)),{headers:this.getAuthHeaders()})}getDeregisterState(){return this.http.get(`${r.i.apiRouteDeregisterState()}`,{headers:this.getAuthHeaders()})}cancelDeregister(){return this.http.delete(`${r.i.apiRouteDeregisterCancel()}`,{headers:this.getAuthHeaders()})}deregisterConfirm(h){return this.http.post(r.i.apiRouteDeregisterConfirm(h),void 0,{headers:this.getAuthHeaders()})}getIntercomHash(){return this.http.get(r.i.apiRouteUserIntercom,{headers:this.getAuthHeaders()})}getLawyerAgreements(){return this.http.get(r.i.apiRouteLawyerAgreements,{headers:this.headers})}getClientAgreements(){return this.http.get(r.i.apiRouteClientAgreements,{headers:this.headers})}acceptAgreements(h){return this.http.patch(r.i.apiRouteUserAgreements,JSON.stringify(h),{headers:this.getAuthHeaders()})}getImpressum(){return this.http.get(r.i.apiRouteImpressum,{headers:this.headers})}getLanguage(){return this.http.get(r.i.apiRouteAccountLanguage,{headers:this.getAuthHeaders()})}postLanguage(h){return this.http.post(r.i.apiRouteAccountLanguage,JSON.stringify(new t.COF(h)),{headers:this.getAuthHeaders()})}postPasswordChange(h,D){return this.http.post(r.i.apiRoutePasswordChange,JSON.stringify({oldPassword:h,newPassword:D}),{headers:this.getAuthHeaders()})}postMailUpdate(h,D){return this.http.post(r.i.apiRouteMailUpdateAdd,JSON.stringify({mail:h,password:D}),{headers:this.getAuthHeaders()})}postMailVerify(h,D){return this.http.post(r.i.apiRouteMailConfirm(D),JSON.stringify({mail:h}),{headers:this.getAuthHeaders()})}changePrimaryMail(h){return this.http.post(r.i.apiRouteMailSetPrimary,JSON.stringify({mail:h}),{headers:this.getAuthHeaders()})}deleteMail(h){return this.http.delete(r.i.apiRouteMailRemove,{headers:this.getAuthHeaders(),body:{mail:h}})}is2Factor(){return this.http.get(r.i.apiRouteTwoFactorState,{headers:this.getAuthHeaders()})}init2Factor(h){return this.http.post(r.i.apiRouteTwoFactorInit,JSON.stringify(new t.YUV(h)),{headers:this.getAuthHeaders()})}confirm2Factor(h,D){return this.http.post(r.i.apiRouteTwoFactorConfirm,JSON.stringify(new e.Zm(h,D)),{headers:this.getAuthHeaders()})}remove2Factor(h,D){return this.http.post(r.i.apiRouteTwoFactorRemove,JSON.stringify(new e.Zm(h,D)),{headers:this.getAuthHeaders()})}getSessionValidity(){return this.http.get(r.i.apiRouteUserPing,{headers:this.getAuthHeaders()})}getClientCount(){return this.http.get(r.i.apiRouteClientCount,{headers:this.getAuthHeaders()})}getClientList(h,D){return this.http.post(r.i.apiRouteClientList,JSON.stringify({offset:h,limit:D}),{headers:this.getAuthHeaders()})}impersonateClient(h){return this.http.post(r.i.apiRouteClientImpersonate(h),null,{headers:this.getAuthHeaders()})}getClientPacks(h){return this.http.post(r.i.apiRouteGetClientPacks(),JSON.stringify({clientID:h}),{headers:this.getAuthHeaders()})}giftClientWithQuota(h,D,B){return this.http.post(r.i.apiRouteGiftingClientWithQuota(),JSON.stringify({clientID:h,quota:D,description:B}),{headers:this.getAuthHeaders()})}terminateClientPack(h,D,B){return this.http.post(r.i.apiRouteTerminateClientPack(),JSON.stringify({clientID:h,packID:D,description:B}),{headers:this.getAuthHeaders()})}restoreClientPack(h,D){return this.http.post(r.i.apiRouteRestoreClientPack(),JSON.stringify({clientID:h,packID:D}),{headers:this.getAuthHeaders()})}getClientProfile(){return this.http.get(r.i.apiRouteProfile(),{headers:this.getAuthHeaders()})}patchClient(h){return h.type===v.pq.Company?h.type=v.pq.CompanyLong:h.type===v.pq.Person&&(h.type=v.pq.PersonLong),this.http.patch(r.i.apiRouteProfileOwner(),JSON.stringify(h),{headers:this.getAuthHeaders()})}
684resendConfirmationEmail(h){return this.http.put(r.i.apiRouteResendMail,JSON.stringify({mail:h}),{headers:this.getAuthHeaders()})}getSocial(){return this.http.get(r.i.apiRouteSocial,{headers:this.getAuthHeaders()})}addFacebook(h){return this.http.post(r.i.apiRouteFacebook,JSON.stringify(new e.Qc(h)),{headers:this.getAuthHeaders()})}addApple(h,D){return this.http.post(r.i.apiRouteApple,JSON.stringify(new e.Bi(h,D)),{headers:this.getAuthHeaders()})}addGoogle(h){return this.http.post(r.i.apiRouteGoogle,JSON.stringify(new e.Qc(h)),{headers:this.getAuthHeaders()})}deleteFacebook(){return this.http.delete(r.i.apiRouteFacebook,{headers:this.getAuthHeaders()})}deleteGoogle(){return this.http.delete(r.i.apiRouteGoogle,{headers:this.getAuthHeaders()})}deleteApple(){return this.http.delete(r.i.apiRouteApple,{headers:this.getAuthHeaders()})}getMailVerified(){return this.http.get(r.i.apiRouteMailState,{headers:this.getAuthHeaders()})}getInvoices(){return this.http.get(r.i.apiRouteInvoice,{headers:this.getAuthHeaders()})}getBenefits(){return this.userService.isClient?this.http.get(r.i.apiRouteClientUsage,{headers:this.getAuthHeaders()}):(0,C.of)()}getSubscriptionStateList(){return this.http.get(r.i.apiRouteSubscriptionList,{headers:this.getAuthHeaders()})}getSubscriptionState(){return this.http.get(r.i.apiRouteSubscriptionRelevant,{headers:this.getAuthHeaders()})}getSubscriptionPlans(){return this.http.get(r.i.apiRouteSubscriptionPlans)}getModules(){return this.http.get(r.i.apiRouteModules)}uncancelPlanStripe(h){return this.http.post(r.i.apiRouteUncancelPlanStripe,JSON.stringify(h),{headers:this.getAuthHeaders()})}updatePlanPurchaseBraintree(h){return this.http.post(r.i.apiRouteUpdatePlanPurchaseBraintree,JSON.stringify(h),{headers:this.getAuthHeaders()})}updatePlanPurchaseStripe(h){const D=this.trackingService.appendConversionHeader(this.getAuthHeaders());return this.http.post(r.i.apiRouteUpdatePlanPurchaseStripe,JSON.stringify(h),{headers:D})}updatePlanCheckStripe(h){return this.http.post(r.i.apiRouteUpdatePlanCheckStripe,JSON.stringify(h),{headers:this.getAuthHeaders()})}updatePlanPurchaseDelayedStripe(h){return this.http.post(r.i.apiRouteUpdatePlanPurchaseDelayedStripe,JSON.stringify(h),{headers:this.getAuthHeaders()})}updatePlanMethodStripe(h){return this.http.post(r.i.apiRouteUpdatePlanMethodStripe,JSON.stringify(h),{headers:this.getAuthHeaders()})}updatePlanCancelDelayedStripe(h){return this.http.post(r.i.apiRouteUpdatePlanCancelDelayedStripe,JSON.stringify(h),{headers:this.getAuthHeaders()})}postUpdatePriceBraintree(h){return this.http.post(r.i.apiRouteUpdatePriceBraintree,JSON.stringify(h),{headers:this.getAuthHeaders()})}postUpdatePriceStripe(h){return this.http.post(r.i.apiRouteUpdatePriceStripe,JSON.stringify(h),{headers:this.getAuthHeaders()})}subscribeToPlanBraintree(h){return this.http.post(r.i.apiRouteSubscribeToPlanBraintree,JSON.stringify(h),{headers:this.getAuthHeaders()})}subscribeToPlanStripe(h){const D=this.trackingService.appendConversionHeader(this.getAuthHeaders());return this.http.post(r.i.apiRouteSubscribeToPlanStripe,JSON.stringify(h),{headers:D})}subscribeToPlanCheckStripe(h){return this.http.post(r.i.apiRouteSubscribeToPlanCheckStripe,JSON.stringify(h),{headers:this.getAuthHeaders()})}unsubscribePlanBraintree(h){return this.http.post(`${r.i.apiRouteCancelPlanBraintree}`,JSON.stringify(h),{headers:this.getAuthHeaders()})}unsubscribePlanStripe(h){return this.http.post(`${r.i.apiRouteCancelPlanStripe}`,JSON.stringify(h),{headers:this.getAuthHeaders()})}getBundles(){return this.http.get(r.i.apiRouteBundles,{headers:this.getAuthHeaders()})}buyBundleBraintree(h){return this.http.post(r.i.apiRoutePackBuyBraintree,JSON.stringify(h),{headers:this.getAuthHeaders()})}buyBundleStripe(h){const D=this.trackingService.appendConversionHeader(this.getAuthHeaders());return this.http.post(r.i.apiRoutePackBuyStripe,JSON.stringify(h),{headers:D})}checkBundleStripe(h){return this.http.post(r.i.apiRoutePackCheckStripe,JSON.stringify(h),{headers:this.getAuthHeaders()})}buyBundleUnicredit(h){const D=this.trackingService.appendConversionHeader(this.getAuthHeaders());return this.http.post(r.i.apiRoutePackBuyUnicredit,JSON.stringify(h),{headers:D})}checkBundleUnicredit(h){return this.http.post(r.i.apiRoutePackCheckUnicredit,JSON.stringify(h),{headers:this.getAuthHeaders()})}getQuotaPrices(){return this.http.get(r.i.apiRouteQuotaPrices,{headers:this.getAuthHeaders()})}getOrders(){return this.userService.isClient?this.http.get(r.i.apiRouteOrders,{headers:this.getAuthHeaders()}):(0,C.of)()}getTaxStatus(){return this.userService.isClient?this.http.get(r.i.apiRouteClientTaxStatus,{headers:this.getAuthHeaders()}):(0,C.of)()}getPreviousConversations(){return this.http.get(r.i.apiRouteClientChatConversations(),{headers:this.getAuthHeaders()})}
684getPreviousConversationByID(h){return this.http.get(r.i.apiRouteClientChatByID(h),{headers:this.getAuthHeaders()})}startNewConversation(h){return this.http.post(r.i.apiRouteOpenConversation(),JSON.stringify(new t.lLP(h)),{headers:this.getAuthHeaders()})}startNewConversationWithUserID(h){return this.http.post(r.i.apiRouteNewConversationWithUserID(h),null,{headers:this.getAuthHeaders()})}rateLawyer(h,D){return this.userService.isClient?this.http.post(r.i.apiRouteClientReviewLawyer(D),JSON.stringify(new o.hx(h)),{headers:this.getAuthHeaders()}):(0,C.of)()}deleteLawyerRating(h){return this.userService.isClient?this.http.delete(r.i.apiRouteClientReviewLawyer(h),{headers:this.getAuthHeaders()}):(0,C.of)()}getLawyerRating(h){return this.userService.isClient?this.http.get(r.i.apiRouteClientReviewLawyer(h),{headers:this.getAuthHeaders()}):(0,C.of)()}postOfferBraintreePurchase(h){return this.http.post(r.i.apiRouteClientOfferBraintreePurchase(),JSON.stringify(h),{headers:this.getAuthHeaders()})}postOfferStripePurchase(h){const D=this.trackingService.appendConversionHeader(this.getAuthHeaders());return this.http.post(r.i.apiRouteClientOfferStripePurchase(),JSON.stringify(h),{headers:D})}postOfferStripeCheck(h){return this.http.post(r.i.apiRouteClientOfferStripeCheck(),JSON.stringify(h),{headers:this.getAuthHeaders()})}getContractsInProgress(){return this.userService.isClient?this.http.get(r.i.apiRouteClientContractProgresses,{headers:this.getAuthHeaders()}):this.userService.isLawyer?this.http.get(r.i.apiRouteLawyerContractProgresses,{headers:this.getAuthHeaders()}):(0,C.of)()}getContracts(){return this.http.get(r.i.apiRouteContracts,{headers:this.getAuthHeaders()})}getContractsSharedWithMe(){return this.http.get(r.i.apiRouteClientContractsSharedWithMe,{headers:this.getAuthHeaders()})}getContractSharedPermission(h){return this.http.get(r.i.apiRouteContractSharedPermission(h),{headers:this.getAuthHeaders()})}rollbackContract(h,D,B){return this.http.post(r.i.apiRouteContractRollback(h,D),JSON.stringify(B),{headers:this.getAuthHeaders()})}massDeleteContractInProgress(h,D){if(this.userService.isClient){const B=[];for(const[K,b]of h.entries())B.push(this.deleteContractInProgress(b,D));return(0,u.a)(B)}}deleteContractInProgress(h,D){return this.userService.isClient?this.http.post(r.i.apiRouteDeleteContracts(h),D?JSON.stringify(new t.YUV(D)):{password:""},{headers:this.getAuthHeaders()}):this.userService.isLawyer?this.http.post(r.i.apiRouteDeleteContractsLawyer(h),null,{headers:this.getAuthHeaders()}):(0,C.of)()}getProgressProof(h){return this.http.get(r.i.apiRouteProofProgressLawyer(h),{headers:this.getAuthHeaders()})}initializeContract(h,D){return this.http.post(r.i.apiRouteContractInitialize(),JSON.stringify(new t.AbW(h,D)),{headers:this.getAuthHeaders()})}copyContract(h,D){return this.http.post(r.i.apiRouteClientContractCopy(h),JSON.stringify({withPermissions:D}),{headers:this.getAuthHeaders()})}copyContractHistory(h,D){return this.http.post(r.i.apiRouteClientContractCopyHistory(h),JSON.stringify({withPermissions:D}),{headers:this.getAuthHeaders()})}getContractProgressByIDS(h){if(this.userService.isClient){const D=[];for(const[B,K]of h.entries())D.push(this.getContractProgressByID(K));return(0,m.D)(D)}if(!this.userService.isLawyer)return(0,C.of)()}getContractProgressByID(h){return this.userService.isClient?this.http.get(`${r.i.apiRouteClientContractProgresses}/${h}`,{headers:this.getAuthHeaders()}):this.userService.isLawyer?this.http.get(`${r.i.apiRouteLawyerContractProgresses}/${h}`,{headers:this.getAuthHeaders()}):(0,C.of)()}getContractHistoryById(h){return this.http.get(r.i.apiRouteContractHistory(h),{headers:this.getAuthHeaders()})}inviteForSharingContract(h,D){return this.http.post(r.i.apiRouteContractInviteForSharingByMail(h),JSON.stringify({mails:D,level:t.V5g.Read}),{headers:this.getAuthHeaders()})}shareContractByUserID(h,D,B){return this.http.post(`${r.i.apiRouteContractShareByIdentifier(h)}`,JSON.stringify({userID:D,level:B}),{headers:this.getAuthHeaders()})}shareContractByMail(h,D,B){return this.http.post(`${r.i.apiRouteContractShareByMail(h)}`,JSON.stringify({mails:[D],level:B}),{headers:this.getAuthHeaders()})}massBatchShareContract(h,D){const B=[];for(const[K,b]of h.entries())B.push(this.batchShareContract(b,D));(0,u.a)(B).subscribe(K=>K)}
684batchShareContract(h,D){return this.http.post(r.i.apiRouteContractShareByMail(h),JSON.stringify({mails:D,level:t.V5g.Read}),{headers:this.getAuthHeaders()})}getContractShares(h){return this.userService.isClient?this.http.get(`${r.i.apiRouteClientContractShares}/${h}`,{headers:this.getAuthHeaders()}):(0,C.of)()}addNote(h,D){return this.http.post(`${r.i.apiRouteMetadata(h)}/notes`,JSON.stringify(D),{headers:this.getAuthHeaders()})}unshareContract(h,D){return this.http.post(`${r.i.apiRouteContractUnshare(h)}`,JSON.stringify({userID:D}),{headers:this.getAuthHeaders()})}getUserByID(h){return this.http.get(`${r.i.apiRouteGetUserByID(h)}`,{headers:this.getAuthHeaders()})}getInvitedUserByID(h){return this.http.get(`${r.i.apiRouteGetInvitedUserByID(h)}`,{headers:this.getAuthHeaders()})}getContractSample(h){return this.http.get(r.i.apiRouteContractSample(h),{headers:this.getAuthHeaders(),responseType:"blob"})}getContractSampleLawyer(h){return this.http.get(r.i.apiRouteContractSampleLawyer(h),{headers:this.getAuthHeaders(),responseType:"blob"})}getContractDownload(h){return this.http.get(r.i.apiRouteContractDownload(h),{headers:this.getAuthHeaders(),responseType:"blob"})}getContractDownloadLawyer(h){return this.http.get(r.i.apiRouteContractDownloadLawyer(h),{headers:this.getAuthHeaders(),responseType:"blob"})}getContractFinalizeCost(h){return this.http.get(r.i.apiRouteContractFinalizeCost(h),{headers:this.getAuthHeaders()})}postContractCreditFinalize(h){return this.http.post(r.i.apiRouteContractCreditFinalize(h.progressID),JSON.stringify(h),{headers:this.getAuthHeaders()})}postContractBraintreeFinalize(h){return this.http.post(r.i.apiRouteContractBraintreeFinalize(h.progressID),JSON.stringify(h),{headers:this.getAuthHeaders()})}postContractStripeFinalize(h){const D=this.trackingService.appendConversionHeader(this.getAuthHeaders());return this.http.post(r.i.apiRouteContractStripeFinalize(h.progressID),JSON.stringify(h),{headers:D})}postContractStripeFinalizeWithSubscription(h){const D=this.trackingService.appendConversionHeader(this.getAuthHeaders());return this.http.post(r.i.apiRouteContractStripeFinalizeWithSubscription(h.progressID),JSON.stringify(h),{headers:D})}postContractStripeCheck(h,D){return this.http.post(r.i.apiRouteContractStripeCheck(h),JSON.stringify(D),{headers:this.getAuthHeaders()})}postContractUnicreditFinalize(h){const D=this.trackingService.appendConversionHeader(this.getAuthHeaders());return this.http.post(r.i.apiRouteContractUnicreditFinalize(h.progressID),JSON.stringify(h),{headers:D})}postContractUnicreditCheck(h,D){return this.http.post(r.i.apiRouteContractUnicreditCheck(h),JSON.stringify(D),{headers:this.getAuthHeaders()})}getSafekeeping(){return this.http.get(r.i.apiRouteSafekeeping,{headers:this.getAuthHeaders()})}setSafekeeping(h,D){return this.http.put(r.i.apiRouteSafekeeping,JSON.stringify({data:JSON.stringify(h),updated:D}),{headers:this.getAuthHeaders()})}getFolderSettings(){return this.http.get(r.i.apiRouteFolders,{headers:this.getAuthHeaders()})}setContractFolderSettings(h,D,B){if(B)switch(B.type){case"add":if(B.listOfNames.includes(B.name))return(0,C.of)(Promise.reject({status:909}));if(B.name.length>20)return(0,C.of)(Promise.reject({status:922}));if(0===B.name.length)return(0,C.of)(Promise.reject({status:904}));const K=h.find(X=>X.name===B.name),b=h.find(X=>X.ID===K.parentRoutes.at(-1));if(b&&(b.childRoutes.length>5||K.parentRoutes.length>5))return(0,C.of)(Promise.reject({status:910}));break;case"delete":if(!B.copyOfDeleted)return(0,C.of)(Promise.reject({status:904}));const w=h.find(X=>X.ID===B.copyOfDeleted.parentRoutes.at(-1));if(w&&w.childRoutes.length>5)return(0,C.of)(Promise.reject({status:910}));break;case"rename":if(B.listOfNames.includes(B.name))return(0,C.of)(Promise.reject({status:909}));if(B.name.length>20)return(0,C.of)(Promise.reject({status:922}));if(0===B.name.length)return(0,C.of)(Promise.reject({status:904}))}return this.http.post(r.i.apiRouteFolders,JSON.stringify({folders:h,updated:D}),{headers:this.getAuthHeaders()})}getFormDisplayElements(h){return this.http.get(r.i.apiRouteFormDisplayElements(h),{headers:this.getAuthHeaders()})}getFormDisplayElementsLawyer(h){return this.http.get(r.i.apiRouteFormDisplayElementsLawyer(h),{headers:this.getAuthHeaders()})}getStepDisplayElements(h){return this.http.get(r.i.apiRouteStepDisplayElements(h),{headers:this.getAuthHeaders()})}getStepDisplayElementsLawyer(h){return this.http.get(r.i.apiRouteStepDisplayElementsLawyer(h),{headers:this.getAuthHeaders()})}getEditingStep(h){return this.http.get(r.i.apiRouteViewEditingStep(h),{headers:this.getAuthHeaders(),responseType:"text"}).pipe((0,a.U)(D=>(0,c.parse)(D)))}getEditingStepLawyer(h){return this.http.get(r.i.apiRouteViewEditingStepLawyer(h),{headers:this.getAuthHeaders(),responseType:"text"}).pipe((0,a.U)(D=>(0,c.parse)(D)))}getEditUnlockedStep(h,D){return this.http.get(r.i.apiRouteEditUnlockedStep(h,D),{headers:this.getAuthHeaders(),responseType:"text"}).pipe((0,a.U)(B=>(0,c.parse)(B)))}getEditUnlockedStepLawyer(h,D){return this.http.get(r.i.apiRouteEditUnlockedStepLawyer(h,D),{headers:this.getAuthHeaders(),responseType:"text"}).pipe((0,a.U)(B=>(0,c.parse)(B)))}getViewUnlockedStep(h,D){return this.http.get(r.i.apiRouteViewUnlockedStep(h,D),{headers:this.getAuthHeaders(),responseType:"text"}).pipe((0,a.U)(B=>(0,c.parse)(B)))}getViewUnlockedStepLawyer(h,D){return this.http.get(r.i.apiRouteViewUnlockedStepLawyer(h,D),{headers:this.getAuthHeaders(),responseType:"text"}).pipe((0,a.U)(B=>(0,c.parse)(B)))}getState(h){return this.http.get(r.i.apiRouteState(h),{headers:this.getAuthHeaders()})}getStateLawyer(h){return this.http.get(r.i.apiRouteStateLawyer(h),{headers:this.getAuthHeaders()})}postMetadata(h,D){return this.http.post(`${r.i.apiRouteMetadata(h)}/name`,JSON.stringify({name:D}),{headers:this.getAuthHeaders()})}getRelease(h){return this.http.get(r.i.apiRouteRelease(h),{headers:this.getAuthHeaders()})}getEditor(h){return this.http.get(r.i.apiRouteEditor(h),{headers:this.getAuthHeaders()})}getEditorLawyer(h){return this.http.get(r.i.apiRouteEditorLawyer(h),{headers:this.getAuthHeaders()})}getTakeover(h){return this.http.get(r.i.apiRouteTakeover(h),{headers:this.getAuthHeaders()})}postGeocoding(h){return this.http.post(r.i.apiRouteGeocoding,h,{headers:new s.WM({Session:this.userService.sessionToken,charset:"UTF-8",Accept:"application/json;charset=UTF-8"})})}
684postFeedback(h){return this.http.post(r.i.apiRouteUserFeedback,JSON.stringify(h),{headers:this.getAuthHeaders()})}postSuggestion(h){return this.http.post(r.i.apiRouteUserSuggestion,JSON.stringify(h),{headers:this.getAuthHeaders()})}getBilling(){return this.userService.isClient?this.http.get(r.i.apiRouteClientBilling,{headers:this.getAuthHeaders()}):(0,C.of)()}postBilling(h){return this.http.post(r.i.apiRouteClientBillingUpdate,JSON.stringify(h),{headers:this.getAuthHeaders()})}getPaymentMethod(){return this.http.get(r.i.apiRouteClientPaymentMethodList,{headers:this.getAuthHeaders()}).pipe((0,a.U)(h=>h.map(D=>new t.XL7(D))))}postPaymentMethodBraintree(h){return this.http.post(r.i.apiRouteClientPaymentMethodBraintreeSetup,JSON.stringify(h),{headers:this.getAuthHeaders()})}postPaymentMethodStripe(h){return this.http.post(r.i.apiRouteClientPaymentMethodStripeSetup,JSON.stringify(h),{headers:this.getAuthHeaders()})}deletePaymentMethod(h){return this.http.delete(`${r.i.apiRouteClientPaymentMethodRemove}/${h}`,{headers:this.getAuthHeaders()})}setDefaultPaymentMethod(h){return this.http.post(`${r.i.apiRouteClientPaymentMethodSetPreferred}/${h}`,null,{headers:this.getAuthHeaders()})}getMethodBraintreeNonce(h){return this.http.get(r.i.apiRouteMethodBraintreeToken(h),{headers:this.getAuthHeaders()})}postBraintreeToken(h){return this.http.post(r.i.apiRouteClientBraintreeToken,JSON.stringify(h),{headers:this.getAuthHeaders()})}postBatch(h,D){return this.http.post(r.i.apiRouteBatch(h),JSON.stringify({variables:D}),{headers:this.getAuthHeaders(),responseType:"text"}).pipe((0,a.U)(B=>(0,c.parse)(B)))}postBatchLawyer(h,D){return this.http.post(r.i.apiRouteBatchLawyer(h),JSON.stringify({variables:D}),{headers:this.getAuthHeaders(),responseType:"text"}).pipe((0,a.U)(B=>(0,c.parse)(B)))}getServices(){return this.http.get(r.i.apiRouteServices,{headers:this.getAuthHeaders()})}requestLawyer(h){return this.http.post(r.i.apiRouteRequestLawyer(),JSON.stringify(h),{headers:this.getAuthHeaders()})}requestLawyerWithProgress(h){return this.http.post(r.i.apiRouteRequestLawyerWithProgress(h),null,{headers:this.getAuthHeaders()})}requestLawyerByLawyerID(h){return this.http.post(r.i.apiRouteRequestLawyerByLawyerID(h),null,{headers:this.getAuthHeaders()})}getLawyerScheduleByLawyerID(h){return this.http.post(r.i.apiRouteRequestLawyerScheduleByLawyerID(h),null,{headers:this.getAuthHeaders()})}getPreviewByLawyerID(h){return this.http.post(r.i.apiRoutePreviewByLawyerID(h),null,{headers:this.getAuthHeaders()})}postAvailableLawyerByLawyerID(h){return this.http.post(r.i.apiRouteAvailableLawyerByLawyerID(h),null,{headers:this.getAuthHeaders()})}getClientMatchmakerStatus(){return this.http.get(r.i.apiRouteMatchmakerStatus(),{headers:this.getAuthHeaders()})}postMatchmakerReject(h){return this.http.post(r.i.apiRouteMatchmakerReject(h),null,{headers:this.getAuthHeaders()})}postMatchmakerCreditPurchase(h){return this.http.post(r.i.apiRouteMatchmakerCreditPurchase(),JSON.stringify(h),{headers:this.getAuthHeaders()})}postMatchmakerBraintreePurchase(h){return this.http.post(r.i.apiRouteMatchmakerBraintreePurchase(),JSON.stringify(h),{headers:this.getAuthHeaders()})}postMatchmakerStripePurchase(h){const D=this.trackingService.appendConversionHeader(this.getAuthHeaders());return this.http.post(r.i.apiRouteMatchmakerStripePurchase(),JSON.stringify(h),{headers:D})}postMatchmakerStripeCheck(h){return this.http.post(r.i.apiRouteMatchmakerStripeCheck(),JSON.stringify(h),{headers:this.getAuthHeaders()})}getAgencyContractSample(h){return this.http.post(r.i.apiRouteAgencyContractSample(),JSON.stringify(h),{headers:this.getAuthHeaders(),responseType:"blob"})}getAgencyContractByID(h){return this.http.get(r.i.apiRouteAgencyContractByID(h),{headers:this.getAuthHeaders(),responseType:"blob"})}getAvailableLawyers(h){return this.http.post(r.i.apiRouteAvailableLawyers(),JSON.stringify(h),{headers:this.getAuthHeaders()})}postNext(h,D){return this.http.post(r.i.apiRouteNext(h),JSON.stringify(new t.Imd(D)),{headers:this.getAuthHeaders(),responseType:"text"}).pipe((0,a.U)(B=>(0,c.parse)(B)))}postNextLawyer(h,D){return this.http.post(r.i.apiRouteNextLawyer(h),JSON.stringify(new t.Imd(D)),{headers:this.getAuthHeaders(),responseType:"text"}).pipe((0,a.U)(B=>(0,c.parse)(B)))}
684getContractTemplateList(){return this.http.get(r.i.apiRouteGenerators,{headers:this.getAuthHeaders()})}postGenerateContract(h,D,B,K,b){const w=this.prepareVariablesForSaving(K);return this.http.post(r.i.apiRouteGenerators,JSON.stringify(new v.$B(h,D,b,B,w)),{headers:this.getAuthHeaders()})}prepareVariablesForSaving(h){const D={};for(const B of Object.keys(h)){let K=h[B];if(K instanceof Array&&0!==K.length&&!K.some(b=>"string"==typeof b)){const b={};K=K.map((w,X)=>{b[X]=this.prepareVariablesForSaving(w)}),K=b}else if(K instanceof Object&&!(K instanceof Array)){const b={};for(const w of Object.keys(K))b[w]=K[w]instanceof Array&&K[w].every(X=>"string"!=typeof X)||!(K[w]instanceof Array&&K[w].every(X=>"string"==typeof X))&&K[w]instanceof Object?this.prepareVariablesForSaving(K[w]):K[w];K=b}D[B]=K}return D}patchSaveContract(h,D,B,K,b){const w=this.prepareVariablesForSaving(B);return this.http.patch(r.i.apiRouteGenerator(h),JSON.stringify({content:D,variables:w,name:K,version:b}),{headers:this.getAuthHeaders()})}getContractTemplate(h){return this.http.get(r.i.apiRouteGenerator(h),{headers:this.getAuthHeaders()})}deleteContractTemplate(h){return this.http.delete(r.i.apiRouteGenerator(h),{headers:this.getAuthHeaders()})}sendToGenerator(h,D,B){const K=this.prepareVariablesForSaving(D);return this.http.post("http://localhost:4201/create-pdf",JSON.stringify({content:h,variables:K,css:B}),{headers:{"Content-Type":"application/json"},responseType:"blob"})}sendInvoiceToGenerator(h){const D=this.prepareVariablesForSaving(h);return this.http.post("http://localhost:4201/create-invoice",JSON.stringify({variables:D}),{headers:{"Content-Type":"application/json"},responseType:"blob"})}downloadInvoiceFromBackend(h){return this.http.get(r.i.apiRouteInvoiceDownload(h),{headers:new s.WM({Session:this.userService.sessionToken}),responseType:"blob"})}sendToGeneratorKubernetes(h,D){const B=this.prepareVariablesForSaving(D);return this.http.post("http://szerzi-testing-backend-legist-v1.development.svc.sigma/create-pdf",JSON.stringify({content:h,variables:B}),{headers:{"Content-Type":"application/json"},responseType:"blob"})}sendToGeneratorServer(h){return this.http.get(r.i.apiRouteGenerate(h),{headers:this.getAuthHeaders()})}sendImage(h){return this.http.post(r.i.apiRouteProfilePicture(),h,{headers:new s.WM({Session:this.userService.sessionToken})})}getImage(){return this.http.get(r.i.apiRouteProfilePicture(),{headers:this.getAuthHeadersWithNoCache(),responseType:"blob"})}getImageByID(h){return this.http.get(r.i.apiRoutePictureByID(h),{headers:this.getAuthHeadersWithNoCache(),responseType:"blob"})}getServerStatus(){return this.http.get(r.i.apiRoutePing,{headers:this.headers})}getInvoiceState(){return this.userService.isLawyer?this.http.get(r.i.apiRouteInvoicingState,{headers:this.getAuthHeaders()}):(0,C.of)()}postNetPrice(h){return this.http.post(r.i.apiRouteNetPrice,JSON.stringify(h),{headers:this.getAuthHeaders()})}postInvoiceUpdate(h){return this.http.post(r.i.apiRouteInvoicingUpdate,JSON.stringify(h),{headers:this.getAuthHeaders()})}getInvoiceExample(){return this.userService.isLawyer?this.http.get(r.i.apiRouteInvoicingExample,{headers:this.getAuthHeaders(),responseType:"blob"}):(0,C.of)()}getLawyerService(){return this.http.get(r.i.apiRouteLawyerService,{headers:this.getAuthHeaders()})}getLawyerInvoice(h){return this.http.get(r.i.apiRouteInvoicingGetByID(h),{headers:this.getAuthHeaders()})}downloadLawyerInvoiceFromBackend(h){return this.http.get(r.i.apiRouteInvoicingDownloadByID(h),{headers:new s.WM({Session:this.userService.sessionToken}),responseType:"blob"})}getDataProtection(h){return this.http.get(r.i.apiRouteSpecificLawyerDataProtection(h),{responseType:"blob",headers:this.getAuthHeaders()})}postDataProtection(h){const D=new FormData;return D.append("document",h),this.http.post(r.i.apiRouteLawyerDataProtection,D,{headers:new s.WM({Session:this.userService.sessionToken})})}patchLawyerLicence(h){return this.http.patch(r.i.apiRouteLawyerLicense,JSON.stringify(h),{headers:this.getAuthHeaders()})}patchIntroduction(h){return this.http.patch(r.i.apiRouteIntroduction,JSON.stringify(h),{headers:this.getAuthHeaders()})}postHeartbeat(){return this.http.post(r.i.apiRouteHeartbeat(),null,{headers:this.getAuthHeaders()})}getLawyerMatchmakerStatus(){return this.http.get(r.i.apiRouteMatchmakerStatus(),{headers:this.getAuthHeaders()})}postJoin(){return this.http.post(r.i.apiRouteMatchmakerJoin(),null,{headers:this.getAuthHeaders()})}postExit(){return this.http.post(r.i.apiRouteMatchmakerExit(),null,{headers:this.getAuthHeaders()})}getUsageAssets(){return this.http.get(r.i.apiRouteUsageAssets)}getCategories(){return this.http.get(r.i.apiRouteCategories)}getMatchmakerCategoriesList(){return this.http.get(r.i.apiRouteMatchmakerCategoriesList(),{headers:this.getAuthHeaders()})}postCategoriesModify(h){return this.http.post(r.i.apiRouteMatchmakerCategoriesModify(),JSON.stringify(h),{headers:this.getAuthHeaders()})}postMatchmakerVerifyWebsite(h){return this.http.post(r.i.apiRouteMatchmakerVerifyWebsite(),JSON.stringify(h),{headers:this.getAuthHeaders()})}patchActivity(){return this.http.patch(r.i.apiRouteClientTrackingHeartbeat(),null,{headers:this.getAuthHeaders()})}getLastActivity(){return this.http.get(r.i.apiRouteClientTrackingLastActivity(),{headers:this.getAuthHeaders()})}getPendingCandidateFor(){return this.http.get(r.i.apiRoutePendingCandidateFor(),{headers:this.getAuthHeaders()})}getSchedule(){return this.http.get(r.i.apiRouteScheduleList,{headers:this.getAuthHeaders()})}modifySchedule(h){return this.http.post(r.i.apiRouteScheduleModify,JSON.stringify(new t.QgM(h)),{headers:this.getAuthHeaders()})}getLawyerVerification(){return this.userService.isLawyer?this.http.get(r.i.apiRouteLawyerVerification,{headers:this.getAuthHeaders()}):(0,C.of)()}getLawyerStripeAccount(){return this.userService.isLawyer?this.http.get(r.i.apiRouteStripeAccount,{headers:this.getAuthHeaders()}):(0,C.of)()}postLawyerStripeCreate(){return this.userService.isLawyer?this.http.post(r.i.apiRouteStripeCreate,null,{headers:this.getAuthHeaders()}):(0,C.of)()}postLawyerStripeReset(){return this.userService.isLawyer?this.http.post(r.i.apiRouteStripeReset,null,{headers:this.getAuthHeaders()}):(0,C.of)()}getLawyerStripeCreateLink(){return this.userService.isLawyer?this.http.get(r.i.apiRouteStripeCreateLink,{headers:this.getAuthHeaders()}):(0,C.of)()}getLawyerStripeLoginLink(){return this.userService.isLawyer?this.http.get(r.i.apiRouteStripeLoginLink,{headers:this.getAuthHeaders()}):(0,C.of)()}getLawyerStripeBalance(){return this.userService.isLawyer?this.http.get(r.i.apiRouteStripeBalance,{headers:this.getAuthHeaders()}).pipe((0,a.U)(h=>(h.available&&h.available.length>0&&h.available.forEach(D=>{D.amount/=100}),h.connectReserved&&h.connectReserved.length>0&&h.connectReserved.forEach(D=>{D.amount/=100}),h.instantAvailable&&h.instantAvailable.length>0&&h.instantAvailable.forEach(D=>{D.amount/=100}),h.pending&&h.pending.length>0&&h.pending.forEach(D=>{D.amount/=100}),h))):(0,C.of)()}
684getAdminInvoices(h){return this.http.post(r.i.apiRouteAdminInvoices,JSON.stringify(h),{headers:this.getAuthHeaders()})}downloadAdminInvoiceFromBackend(h){return this.http.get(r.i.apiRouteAdminInvoicingDownloadByID(h),{headers:this.getAuthHeaders(),responseType:"blob"})}getLawyerCount(){return this.http.get(r.i.apiRouteLawyerCount,{headers:this.getAuthHeaders()})}getLawyerList(h,D){return this.http.post(r.i.apiRouteLawyerList,JSON.stringify({offset:h,limit:D}),{headers:this.getAuthHeaders()})}impersonateLawyer(h){return this.http.post(r.i.apiRouteLawyerImpersonate(h),null,{headers:this.getAuthHeaders()})}verifyLawyer(h){return this.http.post(r.i.apiRouteLawyerVerify(h),null,{headers:this.getAuthHeaders()})}unverifyLawyer(h){return this.http.post(r.i.apiRouteLawyerUnverify(h),null,{headers:this.getAuthHeaders()})}}return R.\u0275fac=function(h){return new(h||R)(O.LFG(s.eN),O.LFG(i.e),O.LFG(N.K))},R.\u0275prov=O.Yz7({token:R,factory:R.\u0275fac}),R})()},20494:(Se,k,n)=>{n.d(k,{e:()=>r});var s=n(97582),e=n(44224),o=n(39646),t=n(94650),v=n(50211);let r=class{constructor(C){this.clientService=C}getConfiguration(){return this.configuration?(0,o.of)(this.configuration).pipe((0,e.t)(this)).toPromise():this.clientService.getConfiguration().pipe((0,e.t)(this)).toPromise().then(C=>this.configuration=C)}};r.\u0275fac=function(C){return new(C||r)(t.LFG(v.y))},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r=(0,s.gn)([(0,e.c)()],r)},63084:(Se,k,n)=>{n.d(k,{z:()=>e});var s=n(94650);let e=(()=>{class o{constructor(){this.checkedContracts={checkedCount:0,checkedFolderCount:0,progresses:new Map,folderAllChecked:new Map,allChecked:!1,indeterminate:!1,folderIndeterminate:new Map,isAnySelected:!1},this.lastCheckedID=null}setCheckedStartupFolders(v){for(const r of this.checkedContracts.folderAllChecked.keys())v.find(c=>c.ID===r)||(this.checkedContracts.folderAllChecked.delete(r),this.checkedContracts.folderIndeterminate.delete(r));this.checkedContracts.progresses.forEach((r,c)=>{v.find(C=>C.progresses.includes(c))||this.checkedContracts.progresses.delete(c)});for(const r of v)if(r.progresses.length>0){const c=r.progresses.every(C=>this.checkedContracts.progresses.get(C));this.checkedContracts.folderAllChecked.set(r.ID,c),c||this.checkedContracts.folderIndeterminate.set(r.ID,r.progresses.some(C=>this.checkedContracts.progresses.get(C)))}else this.checkedContracts.folderAllChecked.set(r.ID,!1),this.checkedContracts.folderIndeterminate.set(r.ID,!1);this.checkedContracts.checkedCount=[...this.checkedContracts.progresses].filter(r=>r[1]).length,this.checkedContracts.checkedFolderCount=[...this.checkedContracts.folderIndeterminate].filter(r=>r[1]).length+[...this.checkedContracts.folderAllChecked].filter(r=>r[1]).length,this.checkedContracts.isAnySelected=[...this.checkedContracts.progresses].some(r=>!0===r[1])}setCheckedStartup(v){this.checkedContracts.allChecked=!1,this.checkedContracts.isAnySelected=!1,this.checkedContracts.indeterminate=!1,this.checkedContracts.checkedCount=0,this.checkedContracts.checkedFolderCount=0;for(const r of v)this.checkedContracts.progresses.set(r.progress.ID,!1)}setAllChecked(v,r,c){v&&(this.lastCheckedID=null),r?c&&c.progresses.length>0&&(this.checkedContracts.folderAllChecked.set(c.ID,v),this.checkedContracts.folderIndeterminate.set(c.ID,!1),c.progresses.forEach(C=>this.checkedContracts.progresses.set(C,v))):(this.checkedContracts.allChecked=v,this.checkedContracts.indeterminate=!1,this.checkedContracts.progresses.forEach((C,u)=>this.checkedContracts.progresses.set(u,v))),this.checkedContracts.checkedCount=[...this.checkedContracts.progresses].filter(C=>C[1]).length,this.checkedContracts.checkedFolderCount=[...this.checkedContracts.folderIndeterminate].filter(C=>C[1]).length+[...this.checkedContracts.folderAllChecked].filter(C=>C[1]).length,this.checkedContracts.isAnySelected=[...this.checkedContracts.progresses].some(C=>!0===C[1])}nullOutChecked(){this.checkedContracts.allChecked=!1,this.checkedContracts.indeterminate=!1,this.checkedContracts.isAnySelected=!1,this.checkedContracts.folderAllChecked.forEach((v,r)=>{this.checkedContracts.folderAllChecked.set(r,!1)}),this.checkedContracts.folderIndeterminate.forEach((v,r)=>this.checkedContracts.folderIndeterminate.set(r,!1)),this.checkedContracts.progresses.forEac
684h((v,r)=>this.checkedContracts.progresses.set(r,!1)),this.checkedContracts.checkedCount=0,this.checkedContracts.checkedFolderCount=0}setCheckedContract(v,r,c,C){r&&(this.lastCheckedID=v.progress.ID),this.checkedContracts.progresses.set(v.progress.ID,r),this.checkedContracts.isAnySelected=[...this.checkedContracts.progresses].some(u=>!0===u[1]),c?C&&(this.checkedContracts.folderIndeterminate.set(C.ID,C.progresses.some(u=>{if(this.checkedContracts.progresses.get(u))return!0})),this.checkedContracts.folderAllChecked.set(C.ID,!C.progresses.some(u=>{if(!this.checkedContracts.progresses.get(u))return!0})),this.checkedContracts.folderAllChecked.get(C.ID)&&this.checkedContracts.folderIndeterminate.set(C.ID,!1)):(this.checkedContracts.indeterminate=[...this.checkedContracts.progresses].some(u=>!0===u[1]),this.checkedContracts.allChecked=![...this.checkedContracts.progresses].some(u=>!1===u[1]),this.checkedContracts.allChecked&&(this.checkedContracts.indeterminate=!1)),this.checkedContracts.checkedCount=[...this.checkedContracts.progresses].filter(u=>u[1]).length,this.checkedContracts.checkedFolderCount=[...this.checkedContracts.folderIndeterminate].filter(u=>u[1]).length+[...this.checkedContracts.folderAllChecked].filter(u=>u[1]).length}}return o.\u0275fac=function(v){return new(v||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},47959:(Se,k,n)=>{n.d(k,{W:()=>D});var s=n(97582),e=n(71997),o=n(94650),t=n(6947),v=n(44224),r=n(5963),c=n(36057),C=n(45218),u=n(50211),m=n(81664),a=n(81404),f=n(75489),O=n(32925),N=n(55089),L=n(31495),i=n(39889),M=n(52632),R=n(83092),l=n(41836),h=n(97895);let D=class{constructor(K,b,w,X,Y,Z,G,Q,V,se,xe,Ee){this.clientService=K,this.modalService=b,this.paymentModalService=w,this.eventService=X,this.translate=Y,this.userService=Z,this.onePageService=G,this.routerService=Q,this.paymentService=V,this.contractFormService=se,this.asyncMessenger=xe,this.trackingService=Ee,this.contracts=new o.vpe,this.availableContractsUpdateDate=0,this.availableContractsUpdateFrequency=18e5,this.userService.isLoggedIn&&(this.clientService.getSubscriptionState().pipe((0,v.t)(this)).subscribe(re=>{let le=[];le=re.filter(q=>!q.expiration||q.expiration>Date.now()),this.currentSubscriptionState=le.find(q=>q.providerData.status===e.gUs.BRAINTREE_ACTIVE||q.providerData.status===e.gUs.BRAINTREE_PENDING||q.providerData.status===e.uxK.STRIPE_ACTIVE)}),this.clientService.getModules().pipe((0,v.t)(this)).subscribe(re=>{this.allModules=[...re]})),this.onePageService.subscriptionChanged.subscribe(re=>{re&&(this.currentSubscriptionState=re),this.clientService.getModules().pipe((0,v.t)(this)).subscribe(le=>{this.allModules=[...le]})})}filename(K,b=""){return`${b.length>0?b+"-":""}${K}.pdf`}getContracts(){this.userService.isClient?this.clientService.getContractsInProgress().pipe((0,v.t)(this)).subscribe(K=>{this.allContracts=this.sortContracts(K),this.contracts.emit(this.allContracts)},K=>{this.contracts.emit([])}):this.userService.isLawyer&&this.clientService.getContractsSharedWithMe().pipe((0,v.t)(this)).subscribe(K=>{this.allContracts=this.sortContracts(K,!0),this.contracts.emit(this.allContracts)},K=>{this.contracts.emit([])})}sortContracts(K,b){return K.length>0?K.sort(b?(w,X)=>(w.shared.metadata.update&&w.shared.metadata.update.timestamp?w.shared.metadata.update.timestamp:w.shared.metadata.creation.timestamp)<(X.shared.metadata.update&&X.shared.metadata.update.timestamp?X.shared.metadata.update.timestamp:X.shared.metadata.creation.timestamp)?1:-1:(w,X)=>(w.progress.metadata.update&&w.progress.metadata.update.timestamp?w.progress.metadata.update.timestamp:w.progress.metadata.creation.timestamp)<(X.progress.metadata.update&&X.progress.metadata.update.timestamp?X.progress.metadata.update.timestamp:X.progress.metadata.creation.timestamp)?1:-1):[]}getAvailableContracts(){if(!this.availableContracts){const K=localStorage.getItem(t.B.availableContracts);if(K)try{const b=JSON.parse(K);this.availableContracts=b.contracts,this.availableContractsUpdateDate=b.updateDate}catch{}}return this.availableContracts&&this.availableContractsUpdateDate&&Date.now()-this.availableContractsUpdateDate<this.availableContractsUpdateFrequency?Promise.resolve(this.availableContracts):this.clientService.getContracts().pipe((0,v.t)(this)).toPromise().then(K=>(this.availableContracts=K,this.availableContractsUpdateDate=Date.now(),localStorage.setItem(t.B.availableContracts,JSON.stringify({contracts:this.availableContracts,updateDate:this.availableContractsUpdateDate})),this.availableContracts))}finalize(K,b){return K.progress.finalization||this.userService.isLawyer?this.downloadFinal(K.progress,b):new Promise((w,X)=>{const Y=this.allModules?.filter(Z=>Z.kindName===K.progress.canonical.name);C.L.config.currentPaymentProvider===e.OHy.Stripe&&this.currentSubscriptionState&&Y.some(Z=>this.currentSubscriptionState.modules.includes(Z.ID))?this.clientService.postContractStripeFinalizeWithSubscription(new e.sxX(K.progress.ID,this.currentSubscriptionState.ID,this.currentSubscriptionState.key,this.currentSubscriptionState.modules,this.currentSubscriptionState.providerData.status)).pipe((0,v.t)(this)).toPromise().then(
684Z=>{const G=this.downloadFinal(K.progress,b);return K.progress=Z,w(G),G},Z=>{if(409===Z.status){this.eventService.quotaChanged.emit(),this.clientService.getContractProgressByID(K.progress.ID).pipe((0,v.t)(this)).subscribe(V=>{K.progress=V.progress,K.displayElements=V.displayElements},V=>{console.log(V)});const Q=this.downloadFinal(K.progress,b);return w(Q),Q}return this.modalService.generatorErrorModal(b,K.progress.ID),console.log(Z.status),X(),Promise.reject()}):this.paymentModalService.benefitListModal(K.progress.ID,null,c.Oz.CONTRACT,(Z,G,Q)=>{let V;return V=Z instanceof e.h$3?this.clientService.postContractCreditFinalize(new e.AWd(K.progress.ID,Z)).pipe((0,v.t)(this)).toPromise():C.L.config.currentPaymentProvider===e.OHy.Braintree&&Z instanceof e.xJR?this.clientService.postContractBraintreeFinalize(new e.Uso(K.progress.ID,Z)).pipe((0,v.t)(this)).toPromise():C.L.config.currentPaymentProvider===e.OHy.Stripe&&Z instanceof e.BAK?this.clientService.postContractStripeFinalize(new e.K64(K.progress.ID,Z.idempotencyID)).pipe((0,v.t)(this)).toPromise().then(se=>Z.stripe.confirmCardPayment(se.clientSecret,{payment_method:Z.paymentID}).then(xe=>!xe.error||xe.error.code&&"payment_intent_unexpected_state"===xe.error.code?this.paymentService.paymentStripeCheck(this.clientService.postContractStripeCheck(K.progress.ID,new e.otv(se.paymentIntentID)).pipe((0,v.t)(this))):Promise.reject(),xe=>(console.log(xe),Promise.reject())),se=>(console.log(se),Promise.reject())):Z instanceof e.Ink&&!Z.checkNeeded?this.clientService.postContractUnicreditFinalize(new e.f2E(K.progress.ID)).pipe((0,v.t)(this)).toPromise().then(se=>{const xe=new e.JdH(c.Oz.CONTRACT,se.transactionID,K.progress.ID);localStorage.setItem(t.B.pendingPayment,JSON.stringify(xe)),this.routerService.hrefOrRouter(C.L.config.unicreditTransactionUrl+se.transactionID)},se=>(console.log(se),Promise.reject())):Promise.reject(),V.then(se=>{this.eventService.quotaChanged.emit();const xe=this.downloadFinal(K.progress,b);return(C.L.config.currentPaymentProvider===e.OHy.Braintree&&Z instanceof e.xJR||C.L.config.currentPaymentProvider===e.OHy.Stripe&&Z instanceof e.BAK)&&(this.trackingService.sendGoogleTagManagerPurchaseEvent(G,Q),this.trackingService.sendPixelPurchaseEvent([K.progress.canonical.name],G,Q)),(Z instanceof e.h$3||C.L.config.currentPaymentProvider===e.OHy.Braintree&&Z instanceof e.xJR||C.L.config.currentPaymentProvider===e.OHy.Stripe&&Z instanceof e.BAK)&&(K.progress=se),w(xe),xe},se=>{if(409===se.status){this.eventService.quotaChanged.emit(),this.clientService.getContractProgressByID(K.progress.ID).pipe((0,v.t)(this)).subscribe(re=>{K.progress=re.progress,K.displayElements=re.displayElements},re=>{console.log(re)});const Ee=this.downloadFinal(K.progress,b);return w(Ee),Ee}return this.modalService.generatorErrorModal(b,K.progress.ID),console.log(se.status),X(),Promise.reject()})},()=>X(),0,e.Fa6.HUF,this.eventService.clientStatus&&this.eventService.clientStatus.valueAddedTax?this.eventService.clientStatus.valueAddedTax:null,C.L.config.unicreditEnabled?e.OHy.Unicredit:C.L.config.currentPaymentProvider)})}downloadFinal(K,b){const w=K.ID,X=(K.permissions||K.permission?this.clientService.getContractDownload(w):this.clientService.getContractDownloadLawyer(w)).pipe((0,v.t)(this)).toPromise();return X.then(Y=>{const Z=this.filename(b),G=document.createElement("a"),Q=URL.createObjectURL(Y);G.href=Q,G.download=Z,document.body.appendChild(G),G.click(),(0,r.H)(0).pipe((0,v.t)(this)).subscribe(V=>{document.body.removeChild(G),window.URL.revokeObjectURL(Q)})},Y=>{this.modalService.generatorErrorModal(b,w)}),X}copyContract(K,b,w,X){let Y;Y=X&&X>Date.now()?this.openCopyFinalizedWithUnlimitedEdit(b,X):Promise.resolve(),Y.then(()=>new Promise(w.length>0?(Z,G)=>this.openCopyEditModal(K,b,!0):(Z,G)=>this.openCopyEditModal(K,b)),Z=>{})}openCopyFinalizedWithUnlimitedEdit(K,b){let w;return w=null,new Promise((X,Y)=>{this.modalService.openCopyFinalizedWithUnlimitedEdit(K,b,()=>X(),()=>Y())})}openCopyEditModal(K,b,w=!1){let X;X=null;const Y=this.modalService.copyEditModal(K,b,w);return new Promise((Z,G)=>{Y.afterClose.subscribe(Q=>this.clientService.getContractProgressByID(b).pipe((0,v.t)(this)).toPromise().then(V=>{X=V,Z(X)},V=>Promise.reject()))})}parseContractsShownMarkdown(K){return[K.map(b=>this.contractFormService.parseMarkdownText(b.displayElements.brief)),K.map(b=>this.contractFormService.parseMarkdownText(b.displayElements.brief.split(" ").slice(0,10).join(" ")+"...")),K.map(b=>this.contractFormService.parseMarkdownText(b.displayElements.description)),K.map(b=>b.displayElements.editor.helper.content?this.contractFormService.parseMarkdownText(b.displayElements.editor.helper.content):null)]}create(K,b,w){if(b.length>=1e3)return this.asyncMessenger.errorMessage("CLIENT.CONTRACTS.CREATION.ERROR"),Promise.reject();{let X="",Y=[];return this.clientService.getContractsInProgress().pipe((0,v.t)(this)).toPromise().then(
684Z=>(Y=this.sortContracts(Z),Y.forEach(G=>{K.name===G.progress.canonical.name&&K.version===G.progress.canonical.version&&0===G.progress.percentage&&(!w||K.version===w)&&""===X&&(X=G.progress.ID)}),""===X?this.clientService.initializeContract(K.name,w).pipe((0,v.t)(this)).toPromise().then(G=>Promise.resolve({created:!0,progressID:G.value}),G=>(console.log(G),Promise.reject())):Promise.resolve({created:!1,progressID:X})),Z=>Promise.reject())}}};D.\u0275fac=function(K){return new(K||D)(o.LFG(u.y),o.LFG(m.Z),o.LFG(a.u),o.LFG(f.P),o.LFG(O.sK),o.LFG(N.K),o.LFG(L.g),o.LFG(i.c),o.LFG(M.t),o.LFG(R.R),o.LFG(l.m),o.LFG(h.e))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D=(0,s.gn)([(0,v.c)()],D)},9641:(Se,k,n)=>{n.d(k,{N:()=>o});var s=n(94650),e=n(6947); 685/* 686 * @license 687 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 688 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 689 * 690 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 691 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 692 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 693 * trade secret or copyright law. 694 * 695 * Dissemination of this information or reproduction of this material is strictly forbidden 696 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code
697 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 698 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 699 * explicitly covering such access. 700 * 701 * The copyright notice above does not evidence any actual or intended publication or disclosure 702 * of this source code, which includes information that is confidential and/or proprietary, 703 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 704 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 705 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 706 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 707 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 708 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 709 * IN WHOLE OR IN PART. 710 */let o=(()=>{class t{constructor(){this.consentedToCookies=new s.vpe}acceptCookies(){const r=new CustomEvent("acceptCookiesFromAngular",{});document.dispatchEvent(r)}consented(){return!!localStorage.getItem(e.B.cookieConsent)}consentedTo(r){return this.consentedOptional().map(c=>c?c.toLowerCase():"").includes(r.toLowerCase())}consentedOptional(){return localStorage.getItem(e.B.cookieConsent)?JSON.parse(localStorage.getItem(e.B.cookieConsent)).optional:[]}}return t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},80479:(Se,k,n)=>{n.d(k,{R:()=>t});var s=n(71764),e=n.n(s),o=n(94650);let t=(()=>{class v{constructor(){}static dateToString(c){return c?e()(c).format("YYYY-MM-DD"):null}static dateToDateTimeString(c){return c?e()(c).format("YYYY-MM-DD HH:mm:ss"):null}static dateToTimeString(c){return c?e()(c).format("HH:mm:ss"):null}}return v.\u0275fac=function(c){return new(c||v)},v.\u0275prov=o.Yz7({token:v,factory:v.\u0275fac}),v})()},8269:(Se,k,n)=>{n.d(k,{J:()=>r});var s=n(97582),e=n(94650),o=n(44224),t=n(17445),v=n(32925); 711/* 712 * @license 713 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 714 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 715 *
716 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 717 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 718 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 719 * trade secret or copyright law. 720 * 721 * Dissemination of this information or reproduction of this material is strictly forbidden 722 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 723 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 724 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 725 * explicitly covering such access. 726 * 727 * The copyright notice above does not evidence any actual or intended publication or disclosure 728 * of this source code, which includes information that is confidential and/or proprietary, 729 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 730 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 731 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 732 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 733 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 734 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 735 * IN WHOLE OR IN PART. 736 */let r=class{constructor(C){this.translate=C,this.trigger=new e.vpe,(0,t.F)(6e4).pipe((0,o.t)(this)).subscribe(()=>{this.trigger.next(Math.random())}),this.translate.onLangChange.subscribe(u=>{this.trigger.emit(Math.random())})}};r.\u0275fac=function(C){return new(C||r)(e.LFG(v.sK))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r=(0,s.gn)([(0,o.c)()],r)},28952:(Se,k,n)=>{n.d(k,{g:()=>e});var s=n(94650);let e=(()=>{class o{constructor(){}mapToVariableObject(v){const r={};return Array.from(v.keys()).forEach(c=>{r[c]=v.get(c)}),r}}return o.\u0275fac=function(v){return new(v||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})()},45218:(Se,k,n)=>{n.d(k,{L:()=>o});var s=n(29971),e=n(94650);let o=(()=>{class t{constructor(){}static fetchConfig(){return fetch("/assets/environment.json").then(r=>r.json())}static isLocalEnvironment(){return window.location.host.startsWith("localhost")}static loadConfig(){return t.config?new Promise((r,c)=>{r(t.config)}):t.fetchConfig().then(r=>(t.config=r,t.config.backendUrl=t.isLocalEnvironment()?"development.szerzi.hu":window.location.host,t.isLocalEnvironment()&&console.log("Using local environment config."),t.config))}static switchOperation(r=null,c=null,C=null,u=null,m){let a=Object.values(s.$).find(f=>f===m);return(!a||a===s.$.local)&&(a=s.$.development),(0,s.V)(r,c,C,u,a)}static loadConfigAndSwitchOperation(r=null,c=null,C=null,u=null){return t.loadConfig().then(m=>t.switchOperation(r,c,C,u,m.environment))}switchOperation(r=null,c=null,C=null,u=null){return t.switchOperation(r,c,C,u,t.config.environment)}}return t.config=null,t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},75489:(Se,k,n)=>{n.d(k,{P:()=>v});var s=n(97582),e=n(94650),o=n(44224),t=n(50211); 737/* 738 * @license 739 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 740 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 741 *
742 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 743 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 744 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 745 * trade secret or copyright law. 746 * 747 * Dissemination of this information or reproduction of this material is strictly forbidden 748 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 749 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 750 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 751 * explicitly covering such access. 752 * 753 * The copyright notice above does not evidence any actual or intended publication or disclosure 754 * of this source code, which includes information that is confidential and/or proprietary, 755 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 756 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 757 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 758 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 759 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 760 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 761 * IN WHOLE OR IN PART. 762 */let v=class{constructor(c){this.clientService=c,this.mailLanguageChanged=new e.vpe,this.hasProfile=new e.vpe,this.hasBilling=new e.vpe,this.hasPayment=new e.vpe,this.hasLicense=new e.vpe,this.quotaChanged=new e.vpe,this.profileUpdated=new e.vpe,this.handleNotifaction=new e.vpe,this.intercomOpened=new e.vpe,this.changedOrders=new e.vpe,this.changedClientStatus=new e.vpe,this.lastNotifClicked=new e.vpe,this.copiedContract=new e.vpe,this.demoContractScrolled=new e.vpe,this.smallCardSelected=new e.vpe,this.createNewConversationWithUserID=new e.vpe,this.contractCurrentlyDragged=new e.vpe,this.breadcrumbIsHidden=new e.vpe,this.hasOrders=!1}setHasOrders(c){this.hasOrders=c,this.changedOrders.emit(c)}setTaxStatus(c){this.clientStatus=c,this.changedClientStatus.emit(c)}sendCopiedContract(c){this.copiedContract.emit(null),this.clientService.getContractProgressByID(c).pipe((0,o.t)(this)).subscribe(C=>{this.copiedContract.emit(C)})}};v.\u0275fac=function(c){return new(c||v)(e.LFG(t.y))},v.\u0275prov=e.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v=(0,s.gn)([(0,o.c)()],v)},53012:(Se,k,n)=>{n.d(k,{V:()=>O});var s=n(97582),e=n(94650),o=n(71997),t=n(44224),v=n(51588),r=n(39300),c=n(50590),C=n(30144),u=n(50211),m=n(63084),a=n(32925),f=n(57222); 763/* 764 * @license 765 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 766 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 767 *
768 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 769 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 770 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 771 * trade secret or copyright law. 772 * 773 * Dissemination of this information or reproduction of this material is strictly forbidden 774 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 775 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 776 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 777 * explicitly covering such access. 778 * 779 * The copyright notice above does not evidence any actual or intended publication or disclosure 780 * of this source code, which includes information that is confidential and/or proprietary, 781 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 782 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 783 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 784 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 785 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 786 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 787 * IN WHOLE OR IN PART. 788 */let O=class{constructor(L,i,M,R,l,h){this.clientService=L,this.contractSelecting=i,this.translate=M,this.safekeepingService=R,this.route=l,this.router=h,this.pageGoTo=-1,this.folderExpanded=new Map,this.folderNameExpanded=new Map,this.isEnabled=!1,this.viewMode="cardView",this.folderChangedName="",this.folderNames=new Map,this.folderContractCount=new Map,this.folderSumContractCount=new Map,this.sortType="name",this.sortDirection=null,this.folderRenamed=new e.vpe,h.events.pipe((0,r.h)(D=>D instanceof C.m2)).subscribe(D=>{this.isEnabled&&this.folderSettings&&this.router.url.split("/").pop().includes("list")&&this.route.snapshot.queryParams.folder&&this.changeCurrentFolder(this.findFolder(this.route.snapshot.queryParams.folder))}),this.safekeepingService.safekeepingEmitter.pipe((0,c.P)()).subscribe(()=>{this.safekeepingService.pref&&this.folderSettings&&this.folderSettings.folders&&(this.viewMode=this.safekeepingService.getter("currentView"),this.isEnabled=this.safekeepingService.getter("folderMode"))})}loadFolderSettings(){return this.folderSettingsLoading=!0,this.clientService.getFolderSettings().pipe((0,t.t)(this)).toPromise().then(L=>(this.folderSettingsLoading=!1,this.folderSettings=structuredClone(L),this.maluableFolders=structuredClone(L.folders),this.viewMode=this.safekeepingService.getter("currentView"),this.isEnabled=this.safekeepingService.getter("folderMode"),this.currentFolder||(this.currentFolder=this.findFolder(this.route.snapshot.queryParams.folder)),this.updateEssentials(),this.contractSelecting.setCheckedStartupFolders(this.folderSettings.folders),this.contractsShown.length>0&&this.parseUnassignedDocuments(this.contractsShown),Promise.resolve()),L=>(console.log(L),this.folderSettingsLoading=!1,Promise.reject()))}updateEssentials(){this.listFoldersInFolder(this.currentFolder),this.listFoldersInFolderSubdivided(this.currentFolder);for(const L of this.folderSettings.folders)this.folderNameExpanded.has(L.ID)||this.folderNameExpanded.set(L.ID,!1),this.folderExpanded.has(L.ID)||this.folderExpanded.set(L.ID,!1),this.folderNames.set(L.ID,L.kind===o.hYY.ROOT?this.translate.instant("CLIENT.CONTRACTS.PROGRESSES.FOLDER_INFO.STARTING_FOLDER"):L.name);this.countCountractsInFolder()}update(L,i,M){this.folderSettingsLoading=!0;let R=this.clientService.setContractFolderSettings(L,this.folderSettings.updated,i).pipe((0,t.t)(this)).toPromise();return R.then(l=>{this.folderSettings=structuredClone(l),this.maluableFolders=structuredClone(l.folders),this.currentFolder&&(this.currentFolder=this.findFolder(this.currentFolder.ID)),this.updateEssentials(),this.contractSelecting.setCheckedStartupFolders(this.folderSettings.folders),M&&M(),this.folderSettingsLoading=!1},l=>{console.log(l),l.status&&(this.resetMaluableFolder(),409===l.status&&(this.loadFolderSettings(),R=Promise.reject(409))),this.folderSettingsLoading=!1}),R}findIndexOfFolder(L){const i=this.folderSettings.folders.findIndex(M=>M.ID===L);if(-1!==i)return i}findIndexOfFolderMaluable(L){const i=this.maluableFolders.findIndex(M=>M.ID===L);if(-1!==i)return i}findFolder(L){if(this.folderSettings&&this.folderSettings.folders){const i=this.folderSettings.folders.findIndex(M=>M.ID===L);return-1!==i?this.folderSettings.folders[i]:this.getRootFolder()}return null}changeCurrentFolder(L){this.currentFolder=L,this.updateEssentials()}changeCurrentFolderWithNavigation(L){this.contractSelecting.nullOutChecked(),this.router.navigate([],{relativeTo:this.route,queryParams:{folder:L.ID},queryParamsHandling:"merge"})}changeIsEnabled(){this.isEnabled=!this.isEnabled,this.currentFolder||(this.currentFolder=this.getRootFolder()),this.safekeepingService.updateStart("folderMode",this.isEnabled)}changeFolderByBreadcrumb(L){const i=this.findFolder(L);i&&(this.currentFolder=i,this.updateEssentials())}deleteFolder(L,i,M){const R=this.maluableFolders[this.findIndexOfFolderMaluable(L.ID)],l=this.maluableFolders[this.findIndexOfFolderMaluable(L.parentRoutes[L.parentRoutes.length-1])];if(!R||!l)throw this.resetMaluableFolder(),404;const h=[...R.childRoutes],D=[];for(const B of h){const K=this.maluableFolders.find(b=>b.ID===B);D.push(this.maluableFolders.indexOf(K)),h.push(...K.childRoutes)}try{if(i){if(M.length>0){if(R.progresses.length>0){const B=[];for(const b of R.progresses)B.push(b);this.clientService.massDeleteContractInProgress(B,M)}for(const B of D)this.maluableFolders.splice(B,1)}}else{R.progresses.length>0&&l.progresses.push(...R.progresses);for(const B of D){const K=this.maluableFolders[B],b=K.parentRoutes.indexOf(L.ID);-1!==b&&K.parentRoutes.splice(b,1)}}L.ID===this.currentFolder.ID&&(this.currentFolder=this.getRootFolder()),l.childRoutes.splice(l.childRoutes.findIndex(B=>B===L.ID),1),l.childRoutes.push(...L.childRoutes),this.maluableFolders.splice(this.findIndexOfFolderMaluable(L.ID),1)}catch{throw this.resetMaluableFolder(),413}return this.update(this.maluableFolders,{type:"delete",copyOfDeleted:R,deleteAll:i},()=>{this.folderRenamed.emit(R.ID)})}deleteContractFromFolder(L){if(Array.isArray(L)||(L=[L]),L)for(const i of L)for(const M of this.maluableFolders)if(M.progresses.length>0){const R=M.progresses.findIndex(l=>l===i);-1!==R&&M.progresses.splice(R,1)}return this.update(this.maluableFolders)}massAddToFolder(L,i){const M=this.maluableFolders[this.findIndexOfFolderMaluable(i.ID)],R=[];if(this.contractSelecting.checkedContracts.folderIndeterminate.forEach((h,D)=>{h&&R.push(D),this.contractSelecting.checkedContracts.folderAllChecked.get(D)&&R.push(D)}),!M)throw this.resetMaluableFolder(),404;if(0===L.length||0===R.length)throw this.resetMaluableFolder(),405;const l=[...L];try{for(const h of R){const D=this.maluableFolders.find(B=>B.ID===h);if(D.progresses.length>0&&D.progresses.some(B=>l.includes(B))){D.updated=Date.now();for(const B of L){const K=D.progresses.findIndex(b=>b===B);-1!==K&&(D.progresses.splice(K,1),l.splice(l.findIndex(b=>b===B),1))}}}if(L.forEach(h=>M.progresses.push(h)),M.updated=Date.now(),0!==l.length)throw new Error}catch{throw this.resetMaluableFolder(),414}try{this.update(this.maluableFolders,null,()=>{this.contractSelecting.nullOutChecked()})}catch(h){console.log(h)}}addToFolder(L,i,M){const R=this.maluableFolders[this.findIndexOfFolderMaluable(i.ID)],l=this.maluableFolders[this.findIndexOfFolderMaluable(M.ID)],h=M.progresses.findIndex(D=>D===L.progress.ID);if(!R||!l)throw this.resetMaluableFolder(),404;if(-1===h)throw this.resetMaluableFolder(),406;R.progresses.push(L.progress.ID),R.updated=Date.now(),l.progresses.splice(h,1),l.updated=Date.now(),this.update(this.maluableFolders,null,()=>{this.contractSelecting.nullOutChecked()})}addFolder(L,i){let M;if(M=i?this.maluableFolders[this.findIndexOfFolderMaluable(i.ID)]:this.maluableFolders[this.findIndexOfFolderMaluable(this.currentFolder.ID)],!M)throw this.resetMaluableFolder(),404;this.folderChangedName=L.trim();const R=(0,v.Z)();try{this.maluableFolders.push({ID:R,name:L.trim(),kind:o.hYY.REGULAR,parentRoutes:[...M.parentRoutes,M.ID],childRoutes:[],created:Date.now(),updated:Date.now()+10,progresses:[]}),M.childRoutes.push(R)}catch{throw this.resetMaluableFolder(),412}return this.update(this.maluableFolders,{type:"add",name:L.trim(),listOfNames:this.listAllFolderNames()},()=>{this.folderRenamed.emit(R)})}renameFolder(L,i){const M=this.maluableFolders[this.findIndexOfFolderMaluable(L.ID)];if(!M)throw this.resetMaluableFolder(),404;return M.name=i.trim(),M.updated=Date.now(),this.folderChangedName=i.trim(),this.update(this.maluableFolders,{type:"rename",name:i.trim(),listOfNames:this.listAllFolderNames()},()=>{this.folderRenamed.emit(L.ID)})}listFoldersInFolder(L){const i=[];return L&&(L.childRoutes.map(M=>i.push(this.folderSettings.folders.find(R=>R.ID===M))),this.contractsShown&&i.sort((M,R)=>{switch(this.sortType){case"name":return"ascend"===this.sortDirection||null===this.sortDirection?M[this.sortType].localeCompare(R[this.sortType],void 0,{numeric:!0}):R[this.sortType].localeCompare(M[this.sortType],void 0,{numeric:!0});case"progress":const l=[];i.map(D=>{l.push(D.progresses)});const h=new Map;
788for(const D of i)h.set(D.ID,this.contractsShown.filter(B=>D.progresses.includes(B.progress.ID)).reduce((B,K)=>B+K.progress.percentage,0));return"ascend"===this.sortDirection||null===this.sortDirection?h.get(M.ID)-h.get(R.ID):h.get(R.ID)-h.get(M.ID);case"modified":return"ascend"===this.sortDirection||null===this.sortDirection?M.updated-R.updated:R.updated-M.updated}}),this.currentFolderListOfFolders=i),i}listFoldersInFolderSubdivided(L,i){if(this.currentFolderListOfFolders||this.listFoldersInFolder(L),i&&(this.widthOfCarouselWindow=i.newRect.width),this.widthOfCarouselWindow){const M=[...this.currentFolderListOfFolders];let R=2;switch(!0){case this.widthOfCarouselWindow<425:R=1;break;case 425<=this.widthOfCarouselWindow&&this.widthOfCarouselWindow<768:R=2;break;case 768<=this.widthOfCarouselWindow&&this.widthOfCarouselWindow<992:R=3;break;case 992<=this.widthOfCarouselWindow&&this.widthOfCarouselWindow<1200:R=4;break;case 1200<=this.widthOfCarouselWindow:R=5}const l=M.reduce((h,D,B)=>{const K=Math.floor(B/R);return h[K]||(h[K]=[]),h[K].push(D),h},[]);if(this.folderChangedName)for(const[h,D]of l.entries())if(D.map(B=>B.name).includes(this.folderChangedName)){this.pageGoTo=h;break}this.currentFolderListOfFoldersSubdivided=l}}returnFoldersParent(L){return 0===L.parentRoutes.length?this.getRootFolder():this.folderSettings.folders[this.findIndexOfFolder(L.parentRoutes[L.parentRoutes.length-1])]}listAllFolderNames(){const L=[];for(const i of this.folderSettings.folders)L.push(i.name);return L}parseUnassignedDocuments(L){const i=[];let M=!1;const R=[];for(const l of this.folderSettings.folders)i.push(...l.progresses);L.map(l=>R.push(l.progress.ID));for(const l of R)i.some(h=>h===l)||(this.getRootFolder(!0).progresses.push(l),M=!0);if(M)try{this.update(this.maluableFolders)}catch(l){console.log(l)}this.listFoldersInFolderSubdivided(this.currentFolder)}gettingAllContracts(L){const i=[...L.progresses],M=[...L.childRoutes];for(const R of M){const l=this.maluableFolders.find(h=>h.ID===R);i.push(...l.progresses),M.push(...l.childRoutes)}return i}contractContainedInFolder(L,i){return!!this.isEnabled&&L.progresses.some(M=>M===i.progress.ID)}resetMaluableFolder(){this.maluableFolders=structuredClone(this.folderSettings.folders)}getRootFolder(L){return L?this.maluableFolders.find(i=>i.kind===o.hYY.ROOT):this.folderSettings.folders.find(i=>i.kind===o.hYY.ROOT)}countCountractsInFolder(){if(this.folderSettings&&this.folderSettings.folders){const L=this.folderSettings.folders;L.sort((M,R)=>R.parentRoutes.length-M.parentRoutes.length);const i=this.contractsShown.map(M=>M.progress.ID);this.folderSumContractCount.clear(),this.folderContractCount.clear();for(const M of L){let R=M.progresses.filter(l=>i.includes(l)).length;this.folderContractCount.set(M.ID,R);for(const l of M.childRoutes)R+=this.folderSumContractCount.get(l)||0;this.folderSumContractCount.set(M.ID,R)}}}setContractsShown(L){this.contractsShown=L,this.countCountractsInFolder()}};O.\u0275fac=function(L){return new(L||O)(e.LFG(u.y),e.LFG(m.z),e.LFG(a.sK),e.LFG(f.xM),e.LFG(C.gz),e.LFG(C.F0))},O.\u0275prov=e.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O=(0,s.gn)([(0,t.c)()],O)},87689:(Se,k,n)=>{n.d(k,{o:()=>M});var i,s=n(97582),e=n(24006),o=n(76096),t=n(71997),v=n(41399),r=n(36057),c=n(10273),C=n(22971),u=n(44224),m=n(36416),a=n(29358),f=n(5963),O=n(94650),N=n(89181),L=n(3674);let M=i=class{constructor(l,h,D){this.fb=l,this.validatorService=h,this.utilService=D}markAllAsTouched(l){if(l.markAllAsTouched(),l.controls)for(const h of Object.keys(l.controls))l.controls[h].markAsTouched(),l.controls[h].updateValueAndValidity(),l.controls[h]instanceof e.nJ&&this.markAllAsTouched(l.controls[h]),l.controls[h].value&&l.controls[h].value instanceof e.nJ&&this.markAllAsTouched(l.controls[h].value),l.controls[h].value&&Array.isArray(l.controls[h].value)&&l.controls[h].value.forEach(D=>{D instanceof e.nJ&&this.markAllAsTouched(D),D.value instanceof e.nJ&&this.markAllAsTouched(D.value)});l.updateValueAndValidity()}passwordFormControl(l="change",h){const D=[e.kI.required,e.kI.minLength(8),e.kI.maxLength(70),this.validatorService.strong()];
788return h&&D.push(this.validatorService.notEqualTo(h)),new e.p4("",{validators:D,updateOn:l})}confirmPasswordControl(l,h="change"){return new e.p4("",{validators:this.validatorService.equalTo(l),updateOn:h})}FormControl2FA(){return new e.p4(" ",{validators:[e.kI.required,e.kI.minLength(6)],updateOn:"blur"})}calendarEventFormGroup(l,h,D,B){return this.fb.group({startDate:[D||(l?l.start:null),{validators:e.kI.compose([e.kI.required])}],startTime:[B?D:l?l.start:null,{validators:e.kI.compose([e.kI.required])}],endDate:[B?(0,a.Z)(D,1):l?l.end:null,{validators:e.kI.compose([e.kI.required])}],endTime:[B?(0,a.Z)(D,1):l?l.end:null,{validators:e.kI.compose([e.kI.required])}]},{validators:[this.validatorService.minimalMaximalDifferenceBetweenDates("startDate","startTime","endDate","endTime",h.minIntervalLength,h.maxIntervalLength),this.validatorService.getMissingValuesForSchedulerAddOrUpdateForm("startDate","startTime","endDate","endTime"),this.validatorService.validatePrecision("startTime","endTime",m.D.segmentLengthInMinutes)],updateOn:"change"})}groupToCalendarStartDate(l){const h=l.get("startDate")?l.get("startDate").value:null,D=l.get("startTime")?l.get("startTime").value:null;return new Date(h.getUTCFullYear(),h.getMonth(),h.getDate(),D?D.getHours():0,D?D.getMinutes():0,D?D.getSeconds():0)}groupToCalendarEndDate(l){const h=l.get("endDate")?l.get("endDate").value:null,D=l.get("endTime")?l.get("endTime").value:null;if(h)return new Date(h.getUTCFullYear(),h.getMonth(),h.getDate(),D?D.getHours():0,D?D.getMinutes():0,D?D.getSeconds():0);{const B=l.get("startDate")?l.get("startDate").value:null,K=l.get("startTime")?l.get("startTime").value:null;return new Date(B.getUTCFullYear(),B.getMonth(),B.getDate(),K?K.getHours():0,K?K.getMinutes():0,K?K.getSeconds():0)}}groupToCalendarInterval(l){return l?new r.m8(this.groupToCalendarStartDate(l),this.groupToCalendarEndDate(l)):null}confirmPasswordFormGroup(){return this.fb.group({password:["",{validators:e.kI.compose([e.kI.required])}]})}newConversationFormGroup(){return this.fb.group({mail:["",{validators:e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(100),e.kI.pattern(i.mailValidatorPattern)])}]})}loginFormGroup(){return this.fb.group({mail:["",{validators:e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(100),e.kI.pattern(i.mailValidatorPattern)])}],password:["",{validators:e.kI.compose([e.kI.required])}]},{updateOn:"change"})}registrationFormGroup(){const l=this.passwordFormControl("change"),h=this.passwordFormControl("change");return this.fb.group({mail:["",{validators:e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(100),e.kI.pattern(i.mailValidatorPattern)])}],password:l,confirmPassword:h},{validators:this.validatorService.passwordMatches(),updateOn:"change"})}missingEmailForm(){return this.fb.group({mail:["",{validators:e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(100),e.kI.pattern(i.mailValidatorPattern)])}]})}appleRegisterFormGroup(){return this.fb.group({mail:["",{validators:e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(100),e.kI.pattern(i.mailValidatorPattern)])}],name:["",{validators:e.kI.required}]},{updateOn:"blur"})}formGroup2FA(){const l=this.FormControl2FA();return this.fb.group({mail:l},{updateOn:"blur"})}shareContractGroup(){return this.fb.group({mail:["",{validators:e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(100)])}]},{updateOn:"blur"})}recoveryFormGroup(l="change",h=""){return this.fb.group({mail:[h,{validators:e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(100),e.kI.pattern(i.mailValidatorPattern)])}]},{updateOn:l})}recoveryConfirmFormGroup(){const l=this.passwordFormControl("change"),h=this.passwordFormControl("change");return this.fb.group({mail:["",{validators:e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(100),e.kI.pattern(i.mailValidatorPattern)])}],password:l,confirmPassword:h,token:[null,[e.kI.required]]},{validators:this.validatorService.passwordMatches(),updateOn:"change"})}copyObjectFormGroup(l,h,D){return this.fb.group({name:[D||null,{validators:[e.kI.minLength(1)],updateOn:"blur"}],from:[l||null,[e.kI.required]],to:[h||null,[e.kI.required]]},{validator:this.objectsElementValidator("name","from","to")})}objectsElementValidator(l,h,D){return B=>
788{const K=B.controls[l],b=B.controls[h],w=B.controls[D];if(K.touched&&b.touched&&w.touched){const X=K.value||w.value instanceof v._&&"objects"===w.value.type;if(!X&&K.valid&&b.valid)return K.setErrors({emptyName:l}),{emptyName:l+" can not be empty!"};X&&b.hasError("equalValue")&&b.setErrors(null)}return null}}groupToCopyObject(l){return{name:l.get("name").value,from:l.get("from").value,to:l.get("to").value}}variableFormGroup(l){return this.fb.group({name:[l?l.name:null,[e.kI.compose([e.kI.required,e.kI.minLength(1)])]],value:[l?l.value:null,{validators:[e.kI.compose([e.kI.required,e.kI.minLength(1)])],updateOn:"change"}],forceArray:[!!l&&l.forceArray,{updateOn:"change"}],ID:[l?l.ID:v._.generateID()]},{updateOn:"blur"})}groupToVariable(l){return new v._(l.get("name").value,l.get("value").value,"simple",l.get("forceArray").value,l.get("ID").value)}addressFormGroup(l){const h=this.fb.group({addressBuilding:[l?l.building:null],addressCity:[l?l.city:null,[e.kI.compose([e.kI.required])]],addressCountry:[l?l.country:null,{validators:[e.kI.compose([e.kI.required,e.kI.pattern(i.addressCountryPattern)])],updateOn:"change"}],postalCode:[l?l.postalCode:null,[e.kI.compose([e.kI.required,e.kI.pattern(i.postalCodePattern)])]],publicPlaceName:[l?l.publicPlaceName:null,[e.kI.compose([e.kI.required])]],publicPlaceCategory:[l?l.publicPlaceCategory:null,[e.kI.compose([e.kI.required])]],region:[l?l.region:null,{validators:this.validatorService.regionConditionallyRequiredValidator(()=>h.get("addressCountry").value&&c.R[h.controls.addressCountry.value]&&c.R[h.controls.addressCountry.value].length>0),updateOn:"change"}],number:[l?l.number:null],staircase:[l?l.staircase:null],floor:[l?l.floor:null],door:[l?l.door:null],registration:[l?l.registration:null]},{updateOn:"blur",validators:[this.validatorService.validateAddress()]});return h}clientOwnerFormGroup(l,h){return this.fb.group({address:l&&l.address?this.addressFormGroup(l.address):null,name:[l?l.name:null,[e.kI.required]],representative:this.clientPersonFormGroup(l.representative),taxNumber:l&&l.taxNumber?this.taxNumberFormGroup(l.taxNumber):null,type:[l?l.type:null,[e.kI.required]],taxID:[l?l.taxID:null,[e.kI.required]],phone:[l?l.phone:null,[e.kI.compose([this.validatorService.isPhoneValid()])]]},{updateOn:h||"blur"})}taxNumberHungarianFormGroup(l){return this.fb.group({type:[l?l.type:null,[e.kI.required]],hungarianTaxNumber:[l&&l.taxPayerID&&l.vatCode&&l.countyCode?`${l.taxPayerID}-${l.vatCode}-${l.countyCode}`:null,[e.kI.compose([e.kI.required,e.kI.pattern(i.hungarianTaxPattern)])]],taxPayerID:[l?l.taxPayerID:null,[e.kI.required,e.kI.pattern(i.taxNumberPattern)]],vatCode:[l?l.vatCode:null,[e.kI.required,e.kI.pattern(i.taxCodePattern)]],countyCode:[l?l.countyCode:null,[e.kI.required,e.kI.pattern(i.taxCountyPattern)]]},{updateOn:"blur"})}groupToTaxNumberHungarian(l){return l?{type:l.get("type").value,taxPayerID:l.get("taxPayerID").value,vatCode:l.get("vatCode").value,countyCode:l.get("countyCode").value}:null}taxNumberCommunityFormGroup(l){return this.fb.group({type:[l?l.type:null,[e.kI.required]],communityTaxNumber:[l&&l.taxPayerID&&l.countryCode?`${l.countryCode}${l.taxPayerID}`:null,[e.kI.compose([e.kI.required,e.kI.pattern(i.communityTaxNumberPattern)])]],taxPayerID:[l?l.taxPayerID:null,[e.kI.required,e.kI.pattern(i.taxPayerIDPattern)]],countryCode:[l?l.countryCode:null,[e.kI.required,e.kI.pattern(i.addressCountryPattern)]]},{updateOn:"blur"})}groupToTaxNumberCommunity(l){return l?{type:l.get("type").value,taxPayerID:l.get("taxPayerID").value,countryCode:l.get("countryCode").value}:null}taxNumberOtherFormGroup(l){return this.fb.group({type:[l?l.type:null,[e.kI.required]],taxNumber:[l?l.taxNumber:null,[e.kI.required]]},{updateOn:"blur"})}groupToTaxNumberOther(l){return l?{type:l.get("type").value,taxNumber:l.get("taxNumber").value}:null}taxNumberFormGroup(l){return l.type===C.z4.Hungarian?this.taxNumberHungarianFormGroup(l):l.type===C.z4.Community?this.taxNumberCommunityFormGroup(l):l.type===C.z4.Other?this.taxNumberOtherFormGroup(l):null}groupToTaxNumber(l){return l.get("type")&&l.get("type").value===C.z4.Hungarian?this.groupToTaxNumberHungarian(l):l.get("type")&&l.get("type").value===C.z4.Community?this.groupToTaxNumberCommunity(l):l.get("type")&&l.get("type").value===C.z4.Other?this.groupToTaxNumberOther(l):null}clientPersonFormGroup(l,h){const D=new Date;return D.setFullYear(D.getFullYear()-18),this.fb.group({address:l&&l.address?this.addressFormGroup(l.address):null,birth:[l&&l.birth&&l.birth.year&&l.birth.month&&l.birth.day?t.$RW.toDate(l.birth):null,e.kI.compose([e.kI.required,this.validatorService.maxDate(D)])],birthPlace:[l&&l.birth&&l.birth.place?l.birth.place:null],firstName:[l?l.name.first:null,[e.kI.compose([e.kI.required])]],lastName:[l?l.name.last:null,[e.kI.compose([e.kI.required])]],representative:l&&l.representative?this.clientPersonFormGroup(l.representative):null},{updateOn:h||"blur"})}groupToAddress(l){return l?{building:l.get("addressBuilding").value,city:l.get("addressCity").value,country:l.get("addressCountry").value,postalCode:l.get("postalCode").value,region:l.get("region").value,publicPlaceName:l.get("publicPlaceName").value,publicPlaceCategory:l.get("publicPlaceCategory").value,
788number:l.get("number").value,staircase:l.get("staircase").value,floor:l.get("floor").value,door:l.get("door").value,registration:l.get("registration").value}:null}groupToClientOwner(l){return l?new C.nX(l.get("name").value,l.get("taxNumber")&&l.get("taxNumber").value?this.groupToTaxNumber(l.get("taxNumber")):null,l.get("type").value,l.get("taxID").value,l.get("representative")&&l.get("representative").value?this.groupToClientPerson(l.get("representative")):null,l.get("phone").value,l.get("address")&&l.get("address").value?this.groupToAddress(l.get("address")):null):null}groupToClientPerson(l){if(l){const h=l.get("birth").value?t.tv5.fromDayDate(t.$RW.fromDate(l.get("birth").value),l.get("birthPlace").value?l.get("birthPlace").value:void 0):new t.tv5(void 0,void 0,void 0,l.get("birthPlace").value?l.get("birthPlace").value:void 0);return new C.yg(new C.g$(l.get("firstName").value,l.get("lastName").value,""),C.pq.Person,h,l.get("representative")&&l.get("representative").value?this.groupToClientPerson(l.get("representative")):null,l.get("address")&&l.get("address").value?this.groupToAddress(l.get("address")):null)}return null}groupToPasswordChange(l){return l?{oldPassword:l.get("oldPassword").value,newPassword:l.get("password").value,confirmedPassword:l.get("confirmPassword").value}:null}passwordChangeFormGroup(){const l=this.passwordFormControl("change"),h=new e.p4(null,[e.kI.required,e.kI.maxLength(128)]),D=this.passwordFormControl("change");return this.fb.group({oldPassword:h,password:D,confirmPassword:l},{validators:[this.validatorService.passwordMatches(),this.newValueValidator("oldPassword","password")],updateOn:"change"})}equalValueValidator(l,h){return D=>{const B=D.controls[l],K=D.controls[h];if(B.touched&&K.touched){const b=B.value===K.value;if(!b&&B.valid&&K.valid)return K.setErrors({equalValue:l}),{equalValue:l+" != "+h};b&&K.hasError("equalValue")&&K.setErrors(null)}return null}}newValueValidator(l,h){return D=>{const B=D.controls[l],K=D.controls[h];if(B.touched&&K.touched){const b=B.value===K.value;if(b&&B.valid&&K.valid)return K.setErrors({newValue:l}),{newValue:l+" === "+h};!b&&K.hasError("newValue")&&K.setErrors(null)}return null}}changeMailFormGroup(){return this.fb.group({password:["",{validators:e.kI.compose([e.kI.required])}],newMail:["",{validators:e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(100),e.kI.pattern(i.mailValidatorPattern)])}]},{updateOn:"blur"})}contactUsFormGroup(l){return this.fb.group({name:["",{validators:e.kI.compose([e.kI.compose([e.kI.required,this.validatorService.atleast2Words()])])}],mail:["",{validators:e.kI.compose([e.kI.required,e.kI.maxLength(100),e.kI.pattern(i.mailValidatorPattern)])}],subject:["",{validators:[e.kI.required]}],message:["",{validators:[e.kI.required]}],checkbox:[!1,{validators:l?[e.kI.compose([e.kI.requiredTrue])]:null}]},{updateOn:"change"})}consentForm(){return this.fb.group({mandatory:[!0,{validators:[e.kI.compose([e.kI.requiredTrue])]}],optional:[!0]},{updateOn:"change"})}passwordProtectedForm(l="change"){return this.fb.group({password:["",{validators:e.kI.compose([e.kI.required])}]},{updateOn:l})}switchTwoFactorCode(){return this.fb.group({verifcode:[null,[e.kI.required]]},{updateOn:"blur"})}tokenForm(){return this.fb.group({token:[null,[e.kI.required]]})}deregisterTokenForm(){return this.fb.group({token:[null,[e.kI.required,this.validatorService.length(64),e.kI.pattern(i.deregisterTokenPattern)]]},{updateOn:"blur"})}groupToMailChange(l){return l?{password:l.get("password").value,newMail:l.get("newMail").value}:null}changeMailVerifyFormGroup(l){return this.fb.group({mail:[l||null,[e.kI.required]],mailToken:[null,[e.kI.required]]},{updateOn:"blur"})}deleteMailFormGroup(l){return this.fb.group({mail:[l||null,[e.kI.required]]},{updateOn:"blur"})}groupToDeleteMail(l){return l?l.get("mail").value:null}groupToMailVerification(l){return l?{mail:l.get("mail").value,mailToken:l.get("mailToken").value}:null}billingCompanyFormGroup(l,h=!0){return this.fb.group({type:l.type,address:[l&&l.address?this.addressFormGroup(l.address):null],name:[l?l.name:null,[e.kI.compose([e.kI.required,this.validatorService.atleast2Words()])]],taxNumber:l&&l.taxNumber?this.taxNumberFormGroup(l.taxNumber):null,taxID:[l?l.taxID:null,[e.kI.required]],phone:[l?l.phone:null,[this.validatorService.isPhoneValid()]],representative:h?null:this.clientPersonFormGroup(l.representative)},{updateOn:"blur"})}groupToBillingCompany(l){return l?{type:l.get("type").value,address:l.get("address")?this.groupToAddress(l.get("address").value):null,name:l.get("name").value,taxNumber:l.get("taxNumber")?this.groupToTaxNumber(l.get("taxNumber")):null,taxID:l.get("taxID").value,phone:l.get("phone").value,representative:l.get("representative")&&l.get("representative").value?this.groupToClientPerson(l.get("representative")):null,idempotencyKey:this.utilService.randomString(128)}:null}
788billingPersonFormGroup(l,h=!0){const D=new Date;return D.setFullYear(D.getFullYear()-18),this.fb.group({type:l.type,address:[l&&l.address?this.addressFormGroup(l.address):null],firstName:[l?l.firstName:null,[e.kI.compose([e.kI.required])]],lastName:[l?l.lastName:null,[e.kI.compose([e.kI.required])]],birth:[l&&l.birth&&l.birth.year&&l.birth.month&&l.birth.day?t.$RW.toDate(l.birth):null,e.kI.compose([this.validatorService.maxDate(D)].concat(h?[]:[e.kI.required]))]},{updateOn:"blur"})}groupToBillingPerson(l){if(l){const h=l.get("birth").value?t.tv5.fromDayDate(t.$RW.fromDate(l.get("birth").value),void 0):new t.tv5(void 0,void 0,void 0,void 0);return{type:l.get("type").value,address:l.get("address")?this.groupToAddress(l.get("address").value):null,firstName:l.get("firstName").value,lastName:l.get("lastName").value,birth:h,idempotencyKey:this.utilService.randomString(128)}}return null}billingFormGroup(l,h=!0){return!l||l.type!==C.ck.CompanyRequest&&l.type!==C.ck.CompanyResponse?this.billingPersonFormGroup(l,h):this.billingCompanyFormGroup(l,h)}groupToBilling(l){return!l.get("type")||l.get("type").value!==C.ck.CompanyRequest&&l.get("type").value!==C.ck.CompanyResponse?this.groupToBillingPerson(l):this.groupToBillingCompany(l)}invoicingRequestFormGroup(l){return this.fb.group({issuer:l&&l.issuer?this.issuerFormGroup(l.issuer):null,credentials:l&&l.credentials?this.navEntityCredentialsFormGroup(l.credentials):null,aamEnabled:[l?l.aamEnabled:null,{Validators:[e.kI.compose([e.kI.required])],updateOn:"change"}]},{updateOn:"blur"})}groupToInvoicingRequest(l){return l?{issuer:l.get("issuer")?this.groupToIssuer(l.get("issuer")):null,credentials:l.get("credentials")?this.groupToNavEntityCredentials(l.get("credentials")):null,aamEnabled:l.get("aamEnabled").value}:null}issuerFormGroup(l){return this.fb.group({company:[l?l.company:null,[e.kI.required]],address:l&&l.address?this.addressFormGroup(l.address):null,taxNumber:[l&&l.taxNumber?t._eX.constructHungarianTaxNumber(l.taxNumber):null,[e.kI.compose([e.kI.required,e.kI.pattern(i.hungarianTaxPattern)])]],communityTaxNumber:[l&&l.communityTaxNumber?t.ASW.constructCommunityTaxNumber(l.communityTaxNumber):null,[e.kI.compose([e.kI.required,e.kI.pattern(i.communityTaxNumberPattern)])]],registrationNumber:[l?l.registrationNumber:null,[e.kI.compose([e.kI.required,e.kI.pattern(i.chamberIdentifierPattern)])]],mail:[l?l.mail:null,{validators:e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(100),e.kI.pattern(i.mailValidatorPattern)])}],phone:[l?l.phone:null,[this.validatorService.isPhoneValid()]],account:l&&l.account?this.accountFormGroup(l.account):null,cashSettlement:[l?l.cashSettlement:null]},{updateOn:"blur"})}groupToIssuer(l){return l?{address:l.get("address")?this.groupToAddress(l.get("address")):null,company:l.get("company").value,taxNumber:new t._eX(l.get("taxNumber").value),communityTaxNumber:new t.ASW(l.get("communityTaxNumber").value),registrationNumber:l.get("registrationNumber").value,mail:l.get("mail").value,phone:l.get("phone").value,account:l.get("account")?this.groupToAccount(l.get("account")):null,cashSettlement:!!l.get("cashSettlement").value&&l.get("cashSettlement").value}:null}accountFormGroup(l){return this.fb.group({number:[l?l.number:null,[e.kI.required,e.kI.pattern(i.bankAccountPattern)]],bank:l&&l.bank?this.bankFormGroup(l.bank):null},{updateOn:"blur"})}groupToAccount(l){return l?{number:l.get("number").value,bank:l.get("bank")?this.groupToBank(l.get("bank")):null}:null}bankFormGroup(l){return this.fb.group({name:[l?l.name:null,[e.kI.required]],address:l&&l.address?this.addressFormGroup(l.address):null},{updateOn:"blur"})}groupToBank(l){return l?{name:l.get("name").value,address:l.get("address")&&l.get("address").value?this.groupToAddress(l.get("address")):void 0}:null}navEntityCredentialsFormGroup(l){return this.fb.group({signingKey:[l?l.signingKey:null,[e.kI.required]],exchangeKey:[l?l.exchangeKey:null,[e.kI.required]],login:[l?l.login:null,[e.kI.compose([e.kI.required,e.kI.pattern(i.navLoginPattern)])]],password:[l?l.password:null,[e.kI.required]]},{updateOn:"blur"})}groupToNavEntityCredentials(l){return l?{signingKey:l.get("signingKey").value,exchangeKey:l.get("exchangeKey").value,login:l.get("login").value,password:l.get("password").value}:null}licenseFormGroup(l){return this.fb.group({chamberIdentifier:[l?l.chamberIdentifier:null,[e.kI.compose([e.kI.required,e.kI.pattern(i.chamberIdentifierPattern)])]],chamberNumber:[l?l.chamberNumber:null,[e.kI.pattern(i.chamberNumberPattern)]],phone:[l?l.phone:null,[e.kI.compose([e.kI.required,this.validatorService.isPhoneValid()])]],taxNumber:[l&&l.taxNumber?t._eX.constructHungarianTaxNumber(l.taxNumber):null,[e.kI.compose([e.kI.required,e.kI.pattern(i.hungarianTaxPattern)])]],identityNumber:[l?l.identityNumber:null,[e.kI.required]],insurance:l&&l.insurance?this.insuranceFormGroup(l.insurance):null},{updateOn:"blur"})}groupToLicense(l){return l?{chamberIdentifier:l.get("chamberIdentifier").value,chamberNumber:l.get("chamberNumber").value,phone:l.get("phone").value,taxNumber:new t._eX(l.get("taxNumber").value),identityNumber:l.get("identityNumber").value,insurance:l.get("insurance")?this.groupToInsurance(l.get("insurance")):null}:null}insuranceFormGroup(l){return this.fb.group({provider:[l?l.provider:null,[e.kI.required,e.kI.maxLength(100)]],number:[l?l.number:null,[e.kI.maxLength(50)]]},{updateOn:"blur"})}
788groupToInsurance(l){return l?{provider:l.get("provider").value,number:l.get("number").value}:null}introductionFormGroup(l){return this.fb.group({slogan:[l?l.slogan:null,[e.kI.maxLength(200)]],pitch:[l?l.pitch:null,[e.kI.required,e.kI.maxLength(500)]],narrative:[l?l.narrative:null,[e.kI.maxLength(5e3)]]},{updateOn:"blur"})}groupToIntroduction(l){return l?{slogan:l.get("slogan").value,pitch:l.get("pitch").value,narrative:l.get("narrative").value}:null}modifyCategoriesFormGroup(l){return this.fb.group({categories:[l?l.categories:null,[e.kI.required]]})}groupToModifyCategories(l){return l?{categories:l.get("categories").value}:null}matchmakingCategoryFormGroup(l){return this.fb.group({category:[l?l.category:null,[e.kI.required]]})}groupToMatchmakingCategory(l){return l?{category:l.get("category").value}:null}offerOpenFormGroup(l,h=36e5,D=6048e5){return this.fb.group({brief:[l?l.brief:null,{validators:[e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(1024)])],updateOn:"change"}],deadline:[l?l.deadline:null,[e.kI.compose([e.kI.required,this.validatorService.minDateDiffToCurrentDate(h),this.validatorService.maxDateDiffToCurrentDate(D
788)])]],breakdown:[l?this.breakdownFormGroup(l.breakdown):null],currency:[l?l.currency:null,e.kI.required],clause:[l?l.clause:null,e.kI.maxLength(2500)]})}breakdownFormGroup(l){return this.fb.group({items:[l?l.items.map(h=>this.itemFormGroup(h)):null]})}itemFormGroup(l){return this.fb.group({name:[l?l.name:null,[e.kI.compose([e.kI.required,e.kI.minLength(1),e.kI.maxLength(30)])]],minutes:[l?l.minutes:null,[e.kI.compose([e.kI.required,e.kI.min(0),e.kI.max(4800)])]],price:[l?l.price:null,[e.kI.compose([e.kI.required,e.kI.min(.01),e.kI.max(1e8)])]]},{updateOn:"change"})}groupToOfferOpen(l){return l?{type:o.Ff.Open,brief:l.get("brief").value,deadline:l.get("deadline").value?Number(l.get("deadline").value):null,breakdown:l.get("breakdown")?this.groupToBreakdown(l.get("breakdown").value):null,currency:l.get("currency").value,clause:l.get("clause").value}:null}groupToBreakdown(l){return l?{items:l.get("items")?l.get("items").value.map(h=>this.groupToItem(h)):null}:null}groupToItem(l){return l?{name:l.get("name").value,minutes:l.get("minutes").value,price:l.get("price").value}:null}causeFormGroup(l){return this.fb.group({cause:[l||null,[e.kI.compose([e.kI.required,e.kI.minLength(20),e.kI.maxLength(1024)])]]},{updateOn:"blur"})}groupToCause(l){return l?l.get("cause").value:null}versionFormGroup(l){return this.fb.group({version:[l||null,[e.kI.compose([e.kI.required,e.kI.pattern(i.semanticVersionPatter)])]]},{updateOn:"blur"})}groupToVersion(l){return l?l.get("version").value:null}preventEnterFromSubmit(l){13===l.which&&(!l.target||"button"!==l.target.tagName.toLowerCase()&&"textarea"!==l.target.tagName.toLowerCase())&&l.preventDefault()}triggerAutoSubmitWithEnter(l){if(13===l.which&&l.target){const h=l.target;let D=h.tagName.toLowerCase(),B=h,K=!i.disabledAutoSubmitElementList.includes(D);for(;"form"!==B.tagName.toLowerCase()&&K;)B=B.parentElement,D=B.tagName.toLowerCase(),K=!i.disabledAutoSubmitElementList.includes(D);K?(h.blur(),(0,f.H)(0).pipe((0,u.t)(this)).subscribe(b=>{h.focus()})):this.preventEnterFromSubmit(l)}}contractRollbackFormGroup(){return this.fb.group({password:["",{validators:e.kI.compose([e.kI.required])}],keepNotes:[!0],keepName:[!0]})}groupToContractRollback(l){return l?new t.QSe(l.get("password").value,!!l.get("keepNotes").value&&l.get("keepNotes").value,!!l.get("keepName").value&&l.get("keepName").value):null}contractToShareFormGroup(l){return this.fb.group({contractToShare:[l||null,[e.kI.compose([e.kI.required,e.kI.minLength(1)])]]})}paymentToUseFormGroup(l){return this.fb.group({paymentID:[l||null,[e.kI.compose([e.kI.required,e.kI.minLength(1)])]]})}groupToPayment(l){return l?l.get("paymentID").value:null}groupToMailVerifyMail(l){return l?l.get("mail").value:null}groupToContractToShare(l){return l?l.get("contractToShare").value:null}suggestionFormGroup(){return this.fb.group({text:["",[e.kI.compose([e.kI.required,e.kI.minLength(10),e.kI.maxLength(1e3)])]]})}groupToSuggestion(l,h){return l&&h.stepTitle.trim().length<=1e3&&h.segmentTitle.trim().length<=1e3&&h.fieldTitle.trim().length<=1e3&&h.aspect.length<=100?new t.Hej(h,l.get("text").value?l.get("text").value:null):null}feedbackFormGroup(l,h,D,B,K){return this.fb.group({feedback:["",[e.kI.compose([e.kI.required,e.kI.minLength(10)])]],component:[l,{validators:e.kI.compose([e.kI.required])}],feature:[h,{validators:e.kI.compose([e.kI.required])}],unit:[D,{validators:e.kI.compose([e.kI.required])}],user:[B,{validators:e.kI.compose([e.kI.required])}],aspect:[K,{validators:null}]},{updateOn:"blur"})}groupToFeedback(l,h){return l?new t.x2q(l.get("feedback").value?l.get("feedback").value.toLowerCase():null,l.get("component").value?l.get("component").value.toLowerCase():null,l.get("feature").value?l.get("feature").value.toLowerCase():null,l.get("unit").value?l.get("unit").value.toLowerCase():null,l.get("user").value,h,null!=l.get("aspect").value&&""!==l.get("aspect").value?l.get("aspect").value.toLowerCase().split(" ").join("-"):""):null}responsibilityFormGroup(l){return this.fb.group({understandResponsibility:[l||null,[e.kI.compose([e.kI.requiredTrue])]]})}groupToResponsibility(l){return l?l.get("understandResponsibility").value:null}generatorsCreateDataFormGroup(l){return this.fb.group({name:[l?l.name:null,[e.kI.required]],version:[l?l.ver
788sion:null,[e.kI.required]],legist:[l?l.legist:null,[e.kI.compose([e.kI.required,e.kI.pattern(i.legistVersionPattern)])]]},{updateOn:"blur"})}groupToGeneratorsCreateData(l){return l?{name:l.get("name").value,version:l.get("version").value,legist:l.get("legist").value}:null}convertStringToDate(l,h=(()=>!1)){let D=new Date(l);if(!(D instanceof Date)||isNaN(D.valueOf())||h(D)){const B=l.replace(/\s/g,"");if((4===B.length||6===B.length||8===B.length)&&!isNaN(Number(B))){const K=B.substring(0,4)+(B.length>=6?"-"+B.substring(4,6):"")+(8===B.length?"-"+B.substring(6,8):"");D=new Date(K)}}return D}tryInputOverWrite(l,h,D,B,K=(()=>!1)){if(B.preventInputOverWrite)B.preventInputOverWrite=!1;else{const b=D.pickerInput.nativeElement.value;if(b.length>0){const w=this.convertStringToDate(b,K);w instanceof Date&&!isNaN(w.valueOf())&&!K(w)&&(!l.get(h)||!l.get(h).value||!l.get(h).value.valueOf||l.get(h).value.valueOf()!==w.valueOf())&&(l.patchValue({[h]:w}),l.controls[h].markAsTouched(),l.controls[h].updateValueAndValidity())}}}selectDay(l,h,D,B,K,b=(()=>!1)){l instanceof Date&&!isNaN(l.valueOf())&&!b(l)&&(h.patchValue({[D]:l}),h.controls[D].markAsTouched(),h.controls[D].updateValueAndValidity(),K.preventInputOverWrite=!0,B.close())}triggerProfileValidation(l,h,D=document.documentElement){const B=l.get("address"),K=l.get("representative");let b;K&&(b=K.get("address"));const w=l.get("taxNumber"),X=l.controls.phone&&l.controls.phone.hasError("wrongNumber");this.markAllAsTouched(l),X&&l.controls.phone&&l.controls.phone.setErrors({wrongNumber:!0}),(l.invalid||K&&K.invalid||B&&B.invalid||b&&b.invalid||w&&w.invalid)&&h&&this.jumpToFirstInvalidInput(h,D)}triggerBillingValidation(l,h,D=document.documentElement){const B=l.get("address")?l.get("address").value:null,K=l.get("taxNumber"),b=l.controls.taxNumber&&l.controls.taxNumber.controls&&l.controls.taxNumber.controls.communityTaxNumber&&l.controls.taxNumber.controls.communityTaxNumber.hasError("pattern"),w=l.controls.taxNumber&&l.controls.taxNumber.controls&&l.controls.taxNumber.controls.communityTaxNumber&&l.controls.taxNumber.controls.communityTaxNumber.hasError("countryWithWrongTaxNumber"),X=l.controls.phone&&l.controls.phone.hasError("wrongNumber");this.markAllAsTouched(l),l.controls.taxNumber&&l.controls.taxNumber.controls&&l.controls.taxNumber.controls.communityTaxNumber&&(b&&l.controls.taxNumber.controls.communityTaxNumber.setErrors({pattern:!0}),w&&l.controls.taxNumber.controls.communityTaxNumber.setErrors({countryWithWrongTaxNumber:!0})),X&&l.controls.phone&&l.controls.phone.setErrors({wrongNumber:!0}),(l.invalid||B&&B&&B.invalid||K&&K.invalid)&&h&&this.jumpToFirstInvalidInput(h,D)}jumpToFirstInvalidInput(l,h=document.documentElement){if(l){const D=l.getElementsByClassName("ng-invalid");if(D.length>0){const B=D[0],K=Math.floor(B.getBoundingClientRect().top+h.scrollTop-150-(h.clientHeight-150)/8);if(h.scrollTo({top:K,behavior:"smooth"}),B instanceof HTMLInputElement)B.focus({preventScroll:!0});else{const b=B.getElementsByTagName("input"),w=B.getElementsByTagName("textarea");b.length>0?b[0].focus({preventScroll:!0}):w.length>0&&w[0].focus({preventScroll:!0})}}}}verifyWebsiteFormGroup(l){return this.fb.group({website:[l?l.website:null,[e.kI.required,e.kI.pattern(i.websiteValidationPatter)]]},{updateOn:"blur"})}groupToVerifyWebsite(l){return l?{website:l.get("website").value}:null}folderNamingFrom(){return this.fb.group({name:[null,[e.kI.required,e.kI.maxLength(20)]]})}};M.mailValidatorPattern="^([a-zA-Z0-9.!#$%&\u2019'*+/=?^_`{|}~-]+)@([a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*)$",M.addressCountryPattern="[A-Z]{2}",M.regionPattern="[A-Z0-9]{1,3}",M.postalCodePattern="[A-Z0-9][A-Z0-9s-]{1,8}[A-Z0-9]",M.taxNumberPattern="[0-9]{8}",M.taxCountyPattern="[0-9]{2}",M.navLoginPattern="[a-zA-Z0-9]{6,15}",M.taxCodePattern="[1-5]",M.communityTaxNumberPattern="[A-Z]{2}[0-9A-Z]{2,13}",M.taxPayerIDPattern="[0-9A-Z]{2,13}",M.chamberIdentifierPattern="[0-9]{8}",M.chamberNumberPattern="[0-9]{2}-[0-9]{5,6}",M.disabledAutoSubmitElementList=["button","textarea","nz-date-picker","nz-range-picker","nz-year-picker","nz-month-picker","nz-week-picker","nz-time-picker"],M.hungarianTaxPattern="[0-9]{8}-[1-5]-(0[2-9]|1[0-9]|20|2[2-9]|3[0-9]|4[0-4]|51)",M.hungarianBankAccountPatternShort="[0-9]{8}-[0-9]{8}",M.hungarianBankAccountPatternLong="[0-9]{8}-[0-9]{8}-[0-9]{8}",M.IBANBankAccountPattern="[A-Z]{2}[0-9]{2}[0-9A-Za-z]{11,30}",M.bankAccountPattern="(^"+i.hungarianBankAccountPatternShort+"$)|(^"+i.hungarianBankAccountPatternLong+"$)|(^"+i.IBANBankAccountPattern+"$)",M.legistVersionPattern="v[1-9][0-9]?",M.deregisterTokenPattern="[a-zA-Z0-9]*",M.websiteValidationPatter="https?://[\\S]+",M.semanticVersionPatter="[0-9]+.[0-9]+.[0-9]+",M.\u0275fac=function(l){return new(l||M)(O.LFG(e.QS),O.LFG(N.o),O.LFG(L.f))},M.\u0275prov=O.Yz7({token:M,factory:M.\u0275fac}),M=i=(0,s.gn)([(0,u.c)()],M)},93706:(Se,k,n)=>{n.d(k,{M:()=>f});var s=n(97582),e=n(71997),o=n(44224),t=n(73040),v=n(41086),r=n(30817),c=n(5963),C=n(94650),u=n(50211),m=n(3417),a=n(32925); 789/* 790 * @license 791 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 792 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 793 *
794 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 795 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 796 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 797 * trade secret or copyright law. 798 * 799 * Dissemination of this information or reproduction of this material is strictly forbidden 800 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 801 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 802 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 803 * explicitly covering such access. 804 * 805 * The copyright notice above does not evidence any actual or intended publication or disclosure 806 * of this source code, which includes information that is confidential and/or proprietary, 807 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 808 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 809 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 810 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 811 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 812 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 813 * IN WHOLE OR IN PART. 814 */let f=class{constructor(N,L,i){this.clientService=N,this.languageService=L,this.translate=i,this.currentLanguage="hu",this.pendingTimeouts=new Map,this.searchRunning=!1,this.submittedWhileGeocoding=!1,this.currentLanguage=this.languageService.currentLanguage,this.translate.onLangChange.subscribe(M=>{this.currentLanguage=M.lang}),(0,t.registerLocale)(v),(0,t.registerLocale)(r)}completeWithGeocode(N,L,i,M,R=!1,l=this.currentLanguage,h){if("change"!==N.controls[L.formKey].updateOn&&"change"!==N.controls[i.formKey].updateOn&&"change"!==N.controls[M.formKey].updateOn)return this.completeWithGeocodeImmediately(N,L,i,M,R,l,h);{if(this.pendingTimeouts.has(N)){const B=this.pendingTimeouts.get(N);B.unsubscribe&&B.unsubscribe()}const D=(0,c.H)(3e3);return this.pendingTimeouts.set(N,D),D.pipe((0,o.t)(this)).toPromise().then(B=>(this.pendingTimeouts.delete(N),this.completeWithGeocodeImmediately(N,L,i,M,R,l,h)))}}completeWithGeocodeImmediately(N,L,i,M,R=!1,l=this.currentLanguage,h){return h?h===e.XE5.CITY&&N.controls[i.formKey].valid?this.clientService.postGeocoding(new e.w3H(N.controls[L.formKey].value?N.controls[L.formKey].value:"HU",N.controls[i.formKey].value,l)).pipe((0,o.t)(this)).toPromise().then(D=>this.tryPatchGeocode(N,M,"locality",D,R,l),D=>(this.searchRunning=!1,Promise.reject())):h===e.XE5.POSTAL_CODE&&N.controls[L.formKey].valid&&N.controls[M.formKey].valid?this.clientService.postGeocoding(new e.ojd(N.controls[M.formKey].value,l,N.controls[L.formKey].value?N.controls[L.formKey].value:"HU")).pipe((0,o.t)(this)).toPromise().then(D=>this.tryPatchGeocode(N,L,"country",D,R).then(()=>this.tryPatchGeocode(N,i,"postal_code",D,R,l),B=>this.tryPatchGeocode(N,i,"postal_code",D,R,l)),D=>(console.log(D),this.searchRunning=!1,Promise.reject())):(this.searchRunning=!1,Promise.reject()):!(N.controls[L.formKey].valid&&N.controls[i.formKey].valid&&M.canComplete)||N.controls[M.formKey].value&&N.controls[M.formKey].dirty?(N.controls[L.formKey].value&&N.controls[L.formKey].dirty||!L.canComplete)&&(N.controls[i.formKey].value&&N.controls[i.formKey].dirty||!i.canComplete)||!N.controls[M.formKey].valid?void 0:this.clientService.postGeocoding(new e.ojd(N.controls[M.formKey].value,l,N.controls[L.formKey].value?N.controls[L.formKey].value:"HU")).pipe((0,o.t)(this)).toPromise().then(D=>this.tryPatchGeocode(N,L,"country",D,R).then(()=>this.tryPatchGeocode(N,i,"postal_code",D,R,l),B=>(this.searchRunning=!1,Promise.reject())),D=>(this.searchRunning=!1,Promise.reject())):this.clientService.postGeocoding(new e.w3H(N.controls[L.formKey].value?N.controls[L.formKey].value:"HU",N.controls[i.formKey].value,l)).pipe((0,o.t)(this)).toPromise().then(D=>this.tryPatchGeocode(N,M,"locality",D,R,l),D=>(this.searchRunning=!1,Promise.reject()))}tryPatchGeocode(N,L,i,M,R=!1,l=this.currentLanguage){if(M&&M.length>0&&M[0].addressComponents.length>0){let h;if(h=L.inputElementID?document.getElementById(L.inputElementID):document.getElementById(L.formKey),(N.controls[L.formKey].value||h&&h.value)&&(N.controls[L.formKey].dirty||h&&h.value!==N.controls[L.formKey].value))return this.searchRunning=!1,Promise.reject();{const D=M[0].addressComponents.find(B=>B.types.includes(i));if(D){let B=D.long;return R&&(B=(0,t.getAlpha2Code)(D.long,l)||B),this.searchRunning=!0,Promise.resolve({key:L.formKey,value:B})}return this.searchRunning=!1,Promise.reject()}}return this.searchRunning=!1,Promise.reject()}};
814f.\u0275fac=function(N){return new(N||f)(C.LFG(u.y),C.LFG(m.T),C.LFG(a.sK))},f.\u0275prov=C.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f=(0,s.gn)([(0,o.c)()],f)},29262:(Se,k,n)=>{n.d(k,{l:()=>a});var s=n(97582),e=n(94650),o=n(44224),t=n(97185),v=n(17445),r=n(36057),c=n(83447),C=n(13217),u=n(30144),m=n(32925); 815/* 816 * @license 817 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 818 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 819 * 820 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 821 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 822 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 823 * trade secret or copyright law. 824 * 825 * Dissemination of this information or reproduction of this material is strictly forbidden 826 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code
827 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 828 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 829 * explicitly covering such access. 830 * 831 * The copyright notice above does not evidence any actual or intended publication or disclosure 832 * of this source code, which includes information that is confidential and/or proprietary, 833 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 834 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 835 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 836 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 837 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 838 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 839 * IN WHOLE OR IN PART. 840 */let a=class{constructor(O,N,L,i,M,R,l){this.injector=N,this.clipboard=L,this.onTheFlyService=i,this.route=M,this.router=R,this.translate=l,this.isHighlighterMode=!1,this.highlightModeEvent=new e.vpe;const h=this.highlight.bind(null,this.route,this.router,this.removeHighlight,this.clipboard,this.searchHighlighted,this.calculateScrollTopPosition,this.getElement);this.highlightCopyHandle=D=>0===D.button?h():null,window.addEventListener("keydown",D=>{!this.isHighlighterMode&&"h"===D.key&&D.altKey&&(this.isHighlighterMode=!0,this.highlightModeEvent.emit(!0),this.showToast(this.translate.instant("COMMON.HIGHLIGHTER.START.TITLE"),this.translate.instant("COMMON.HIGHLIGHTER.START.DESCRIPTION")),this.startHighlighting())}),window.addEventListener("keydown",D=>{this.isHighlighterMode&&"x"===D.key&&D.altKey&&(this.isHighlighterMode=!1,this.highlightModeEvent.emit(!1),this.endHighlighting(),this.showToast(this.translate.instant("COMMON.HIGHLIGHTER.END.TITLE"),null))}),this.initHighlight()}showToast(O,N){this.onTheFlyService.toastrService.info(N,O,{timeOut:r.V1.MEDIUM,tapToDismiss:!0,titleClass:"toast-title toastr-title-styling mr-4",toastClass:"toastr-size-fix ngx-toastr toast-info toastr-background",messageClass:"toast-message toastr-message-styling mr-4"})}startHighlighting(){window.addEventListener("mouseup",this.highlightCopyHandle,!0)}endHighlighting(){window.removeEventListener("mouseup",this.highlightCopyHandle,!0)}highlight(O,N,L,i,M,R,l){L();const h=window.pageYOffset,D=window.pageXOffset;let B=window.getSelection().toString();if(B&&""!==B){let K;B=encodeURIComponent(B),K=l(B,K,!1),K&&N.navigate([],{relativeTo:O,queryParams:{highlight:B},queryParamsHandling:"merge",replaceUrl:!0}).then(()=>{const b=M();if(console.log(b),b&&"style"!==b.tagName.toLowerCase()){const w=R(b);i.copy(window.location.href),window.open(window.location.href),window.scroll({top:w,behavior:"smooth"})}else N.navigate([],{queryParams:{highlight:null},queryParamsHandling:"merge",replaceUrl:!0}).then(()=>{window.scroll(D,h)})})}}calculateScrollTopPosition(O){return O.getBoundingClientRect().top+window.scrollY+O.getBoundingClientRect().height/2-window.innerHeight/2}initHighlight(){let O=0;this.tryToHighlightSubscription=(0,v.F)(500).pipe((0,o.t)(this)).subscribe(()=>{const N=this.getElementBy();if(N&&O>2){const L=this.calculateScrollTopPosition(N);window.scroll({top:L,behavior:"smooth"}),this.tryToHighlightSubscription.unsubscribe()}O++})}getElementBy(){let O;return this.route.queryParams.pipe((0,o.t)(this)).subscribe(N=>{N.highlight&&(O=this.getElement(N.highlight,O,!0))}),O}getElement(O,N,L){const i=document.querySelectorAll("*"),M=/(?:\r\n|\r|\n)/g;let R;for(const l of i)if("body"===l.tagName.toLowerCase()&&l.textContent.replace(M," ").includes(decodeURIComponent(O))){R=l;break}return R?L?((N=this.findLastContainingChild(R,decodeURIComponent(O),M)).classList.add("highlight-text"),N):R:N}findLastContainingChild(O,N,L){if(!O.textContent.replace(L," ").includes(N))return null;if(O.hasChildNodes())for(const M of O.children)if("head"!==M.tagName.toLowerCase()){const R=this.findLastContainingChild(M,N,L);if(R)return R}return O}searchHighlighted(){return document.querySelector(".highlight-text")}removeHighlight(){document.querySelector(".highlight-text")?.classList.remove("highlight-text")}};a.\u0275fac=function(O){return new(O||a)(e.LFG(t.$e),e.LFG(e.zs3),e.LFG
840(c.Yv),e.LFG(C.k),e.LFG(u.gz),e.LFG(u.F0),e.LFG(m.sK))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a=(0,s.gn)([(0,o.c)()],a)},30607:(Se,k,n)=>{n.d(k,{i:()=>C});var s=n(97582),e=n(44224),o=n(94650),t=n(5963),v=n(50211),r=n(25156),c=n(55089); 841/* 842 * @license 843 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 844 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 845 * 846 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 847 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 848 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 849 * trade secret or copyright law. 850 * 851 * Dissemination of this information or reproduction of this material is strictly forbidden 852 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code
853 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 854 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 855 * explicitly covering such access. 856 * 857 * The copyright notice above does not evidence any actual or intended publication or disclosure 858 * of this source code, which includes information that is confidential and/or proprietary, 859 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 860 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 861 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 862 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 863 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 864 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 865 * IN WHOLE OR IN PART. 866 */let C=class{constructor(m,a,f){this.clientService=m,this.nzmodal=a,this.userService=f,this.onChange=new o.vpe,this.imageToShow={img:null,hasError:!1,isLoading:!0}}getImg(){this.clientService.getImageByID(this.userService.sessionUserID).pipe((0,e.t)(this)).subscribe(m=>{const a=new FileReader;a.addEventListener("load",()=>{this.imageToShow={img:a.result,hasError:!1,isLoading:!1},this.onChange.emit(this.imageToShow)},!1),m&&a.readAsDataURL(m)},m=>{this.imageToShow={img:null,hasError:404!==m.status,isLoading:!1},this.onChange.emit(this.imageToShow)})}getNewImg(){this.clientService.getImage().pipe((0,e.t)(this)).subscribe(m=>{const a=new FileReader;a.addEventListener("load",()=>{this.imageToShow={img:a.result,hasError:!1,isLoading:!1},this.onChange.emit(this.imageToShow)},!1),m&&a.readAsDataURL(m)},m=>{this.imageToShow={img:null,hasError:404!==m.status,isLoading:!1},this.onChange.emit(this.imageToShow)})}deleteCurrImg(){this.imageToShow.img=null,this.onChange.emit(this.imageToShow)}b64toArrayBuffer(m){const a=atob(m.split(",")[1]),f=new ArrayBuffer(a.length),O=new Uint8Array(f);for(let N=0;N<a.length;N++)O[N]=a.charCodeAt(N);return O}b64toBlob(m,a){return new Blob([this.b64toArrayBuffer(m)],{type:a})}uploadImage(m){const a=this.b64toBlob(m,"image/jpeg"),f=new FormData;return f.append("picture",a),this.clientService.sendImage(f).pipe((0,e.t)(this)).toPromise().then(()=>(this.getNewImg(),(0,t.H)(1e3).pipe((0,e.t)(this)).subscribe(O=>{this.nzmodal.closeAll()}),Promise.resolve())).catch(O=>Promise.reject())}};C.\u0275fac=function(m){return new(m||C)(o.LFG(v.y),o.LFG(r.Sf),o.LFG(c.K))},C.\u0275prov=o.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C=(0,s.gn)([(0,e.c)()],C)},75141:(Se,k,n)=>{n.d(k,{f:()=>u});var s=n(97582),e=n(55089),o=n(44224),t=n(5963),v=n(94650),r=n(61769),c=n(75489),C=n(3417);let u=class{constructor(a,f,O,N){this.intercom=a,this.userService=f,this.eventService=O,this.languageService=N,this.isClosed=!1,this.isOpened=!1,this.failTimerDuration=5e3,e.K.sessionStatusChanged.pipe((0,o.t)(this)).subscribe(()=>{this.eventService.intercomOpened.emit(!1),this.isClosed=!0,this.isOpened=!1,this.intercom.shutdown()})}start(a="right"){let f=(0,t.H)(this.failTimerDuration).pipe((0,o.t)(this)).subscribe(O=>{(!window.Intercom||!window.Intercom.booted||!this.isOpened)&&this.eventService.intercomOpened.emit(!1)});this.intercom.boot({alignment:a,email:this.userService.isLoggedIn?this.userService.sessionMail:null,user_id:this.userService.isLoggedIn?this.userService.sessionUserID:null,language_override:this.languageService.currentLanguageFromStorage(),user_hash:this.userService.isLoggedIn?this.userService.intercomKey:null}),this.intercom.onShow(()=>{f&&(f.unsubscribe(),f=null),this.eventService.intercomOpened.emit(!0),this.isOpened=!0}),this.intercom.onHide(()=>{this.isClosed=!0,this.isOpened=!1})}startAndShow(a="right"){let f=(0,t.H)(this.failTimerDuration).pipe((0,o.t)(this)).subscribe(O=>{(!window.Intercom||!window.Intercom.booted||!this.isOpened)&&this.eventService.intercomOpened.emit(!1)});this.intercom.boot({alignment:a,email:this.userService.isLoggedIn?this.userService.sessionMail:null,user_id:this.userService.isLoggedIn?this.userService.sessionUserID:null,language_override:this.languageService.currentLanguageFromStorage(),user_hash:this.userService.isLoggedIn?this.userService.intercomKey:null}),this.intercom.show(),this.intercom.onShow(()=>{f&&(f.unsubscribe(),f=null),this.eventService.intercomOpened.emit(!0),this.isOpened=!0}),this.intercom.onHide(()=>{this.isClosed=!0,this.isOpened=!1})}startAndShowForInterceptor(a="right"){let f=(0,t.H)(this.failTimerDuration).pipe((0,o.t)(this)).subscribe(O=>{(!window.Intercom||!window.Intercom.booted||!this.isOpened)&&this.eventService.intercomOpened.emit(!1)});this.isClosed||(this.intercom.boot({alignment:a,email:this.userService.isLoggedIn?this.userService.sessionMail:null,user_id:this.userService.isLoggedIn?this.userService.sessionUserID:null,language_override:this.languageService.currentLanguageFromStorage(),user_hash:this.userService.isLoggedIn?this.userService.intercomKey:null}),this.intercom.show(),this.intercom.onShow(()=>{f&&(f.unsubscribe(),f=null),this.eventService.intercomOpened.emit(!0),this.isOpened=!0}),this.intercom.onHide(()=>{this.isClosed=!0,this.isOpened=!1}))}};u.\u0275fac=function(a){return new(a||u)(v.LFG(r.ZO),v.LFG(e.K),v.LFG(c.P),v.LFG
866(C.T))},u.\u0275prov=v.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u=(0,s.gn)([(0,o.c)()],u)},3417:(Se,k,n)=>{n.d(k,{T:()=>w});var s=n(8948),e=n(6947),o=n(59674),t=n(97582),v=n(92961),r=n(44224),c=n(94650),C=n(25156),u=n(50211),m=n(75489),a=n(66616),f=n(47044),O=n(21811),N=n(51971),L=n(32925);function i(X,Y){1&X&&(c._uU(0),c.ALo(1,"translate")),2&X&&c.hij(" ",c.lcZ(1,1,"CLIENT.PROFILE.ACCOUNT.LANGUAGE.MODAL.DESCRIPTION"),"\n")}function M(X,Y){if(1&X){const Z=c.EpF();c.TgZ(0,"div")(1,"div",4)(2,"div",5)(3,"button",6),c.NdJ("click",function(){c.CHM(Z);const Q=c.oxw();return c.KtG(Q.nzModal.closeAll())}),c._uU(4),c.ALo(5,"translate"),c.qZA()(),c.TgZ(6,"div",7),c._UZ(7,"app-multi-state-button",8),c.qZA()()()}if(2&X){const Z=c.oxw();c.xp6(4),c.hij(" ",c.lcZ(5,4,"CLIENT.PROFILE.ACCOUNT.LANGUAGE.MODAL.REJECT")," "),c.xp6(3),c.Q6J("defaultFunction",Z.defaultFunction)("nzTextKeys",Z.acceptText)("stickResult",!1)}}let R=class{constructor(Y,Z,G,Q){this.nzModal=Y,this.clientService=Z,this.eventService=G,this.languageService=Q,this.showError=!1}ngOnInit(){this.defaultFunction=()=>this.submitLanguage(),this.acceptText=new v.PR("CLIENT.PROFILE.ACCOUNT.LANGUAGE.MODAL.ACCEPT_BUTTON_STATES.CHANGE","CLIENT.PROFILE.ACCOUNT.LANGUAGE.MODAL.ACCEPT_BUTTON_STATES.CHANGING","CLIENT.PROFILE.ACCOUNT.LANGUAGE.MODAL.ACCEPT_BUTTON_STATES.CHANGED","CLIENT.PROFILE.ACCOUNT.LANGUAGE.MODAL.ACCEPT_BUTTON_STATES.FAILED")}submitLanguage(){return new Promise((Y,Z)=>{this.clientService.postLanguage(this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguage)).pipe((0,r.t)(this)).toPromise().then(G=>{this.eventService.mailLanguageChanged.emit(this.languageService.currentLanguage),Y(this.languageService.currentLanguage),this.nzModal.closeAll()},G=>{console.log(G),Z()})})}};R.\u0275fac=function(Y){return new(Y||R)(c.Y36(C.Sf),c.Y36(u.y),c.Y36(m.P),c.Y36(w))},R.\u0275cmp=c.Xpm({type:R,selectors:[["app-mail-language-modal"]],decls:6,vars:1,consts:[[1,"m-b-0"],[3,"nzDescription"],["descriptionTemplate",""],[4,"nzModalFooter"],[1,"row"],[1,"col-sm-6","col-12","text-sm-left","text-center","mb-sm-0","mb-2"],["nz-button","",1,"button-text-wrap","h-100",3,"click"],[1,"col-sm-6","col-12","text-sm-right","text-center"],["nzType","primary",3,"defaultFunction","nzTextKeys","stickResult"]],template:function(Y,Z){if(1&Y&&(c.TgZ(0,"nz-card",0),c._UZ(1,"nz-card-meta",1),c.qZA(),c.YNc(2,i,2,3,"ng-template",null,2,c.W1O),c.TgZ(4,"div"),c.YNc(5,M,8,6,"div",3),c.qZA()),2&Y){const G=c.MAs(3);c.xp6(1),c.Q6J("nzDescription",G)}},dependencies:[v.P4,a.ix,f.w,O.dQ,N.bd,N.l7,C.Uh,L.X$],encapsulation:2}),R=(0,t.gn)([(0,r.c)()],R);var l=n(71667),h=n(30144),D=n(39300),B=n(44569),K=n(55089),b=n(36895);let w=(()=>{class X{constructor(Z,G,Q,V,se,xe,Ee){this.i18n=Z,this.nzModal=G,this.translate=Q,this.clientService=V,this.userService=se,this.router=xe,this.location=Ee,this.supportedLanguages=Object.keys(o.i),this.supportedSelectableLanguages=Object.keys(o.i),this.calculateSelectableLanguages(),this.currentLanguage=this.currentLanguageFromStorage(),this.router.events.pipe((0,D.h)(re=>re instanceof h.m2)).subscribe(re=>{!re.url.startsWith(`/${B.d.en}/`)&&re.url!==`/${B.d.en}`||this.currentLanguage!==o.i.hu?!re.url.startsWith(`/${B.d.en}/`)&&re.url!==`/${B.d.en}`&&this.currentLanguage===o.i.en&&this.changeLanguage(o.i.hu,!1,!1):this.changeLanguage(o.i.en,!1,!1),this.updateHreflang()})}calculateSelectableLanguages(){this.supportedSelectableLanguages=this.supportedLanguages.filter(Z=>Z!==this.currentLanguageFromStorage())}askAboutMailLanguageChange(){this.mailLanguageChangeModal(this.serverLanguageFromLanguageKey(this.currentLanguage))}changeLanguage(Z,G=!1,Q=!1,V=!1){this.setLanguage(Z),Q||this.saveLanguage(Z),this.calculateSelectableLanguages(),G&&this.userService.isLoggedIn&&this.askAboutMailLanguageChange();const se=this.location.path();if(V||!se.startsWith(`/${B.d.en}/`)&&se!==`/${B.d.en}`||Z!==o.i.hu)!V&&!se.startsWith(`/${B.d.en}/`)&&se!==`/${B.d.en}`&&Z===o.i.en&&this.location.replaceState(`/${B.d.en}${se}`);else{const xe=new RegExp(`^/${B.d.en}`),Ee=se.replace(xe,"");this.location.replaceState(Ee)}this.updateHreflang()}currentLanguageFromStorage(){return localStorage.getItem(e.B.languageSelection)}languageKeyFromServerLanguage(Z){switch(Z){case"en_US":return"en";case"hu_HU":return"hu";default:return console.log(`Unknown server language received (${Z}), defaulting to 'en'.`),"en"}}localeFromLanguageKey(Z){switch(Z){case"en":return s.iF;case"hu":return s.JM;default:return console.log(`Unknown language key received (${Z}), defaulting to 'en_US'.`),s.iF}}mailLanguageChangeModal(Z){this.clientService.getLanguage().subscribe(G=>
866{if(G.code!==Z){const Q=l.K.optimalModalWidthPercentageBasedOnWindowSize(4);return this.nzModal.create({nzTitle:this.translate.instant("CLIENT.PROFILE.ACCOUNT.LANGUAGE.MODAL.TITLE"),nzContent:R,nzOkText:null,nzCancelText:null,nzWidth:Q.width,nzClassName:Q.class,nzStyle:{"max-height":"100%"},nzWrapClassName:"vertical-center-modal",nzBodyStyle:{padding:"0"},nzFooter:null})}})}serverLanguageFromLanguageKey(Z){switch(Z){case"en":return"en_US";case"hu":return"hu_HU";default:return console.log(`Unknown language key received (${Z}), defaulting to 'en_US'.`),"en_US"}}dashedServerLanguageFromLanguageKey(Z){switch(Z){case"en":return"en-US";case"hu":return"hu-HU";default:return console.log(`Unknown language key received (${Z}), defaulting to 'en-US'.`),"en-US"}}progressLanguageToLanguageKey(Z){switch(Z){case"English":return"en";case"Hungarian":return"hu";default:return console.log(`Unknown language key received (${Z}), defaulting to 'en'.`),"en"}}saveLanguage(Z){return localStorage.setItem(e.B.languageSelection,Z)}setLanguage(Z){this.translate.use(Z),this.i18n.setLocale(this.localeFromLanguageKey(Z)),this.currentLanguage=Z}getFullLocalizedLink(Z,G){if(G!==o.i.en||!Z.includes(window.location.host)||Z.includes(window.location.host+"/"+B.d.en)||Z.includes(window.location.host+"/"+B.d.baseBlog)){if(G===o.i.hu&&(Z.includes(window.location.host+"/"+B.d.en+"/")||Z.endsWith(window.location.host+"/"+B.d.en))){const Q=new RegExp(window.location.host+"/"+B.d.en);return Z.replace(Q,window.location.host)}return Z}{const Q=new RegExp(window.location.host);return Z.replace(Q,window.location.host+"/"+B.d.en)}}updateHreflang(){const Z=Array.from(document.head.children).filter(se=>"LINK"===se.tagName);let G=Z.find(se=>"canonical"===se.rel&&se.hreflang);G||(G=document.createElement("link"),G.rel="canonical",document.head.appendChild(G)),G&&(G.hreflang=this.currentLanguage,G.href=this.getFullLocalizedLink(window.location.href,this.currentLanguage));let Q=Z.find(se=>"alternate"===se.rel&&se.hreflang===o.i.hu);Q||(Q=document.createElement("link"),Q.rel="alternate",document.head.appendChild(Q)),Q&&(Q.hreflang=o.i.hu,Q.href=this.getFullLocalizedLink(window.location.href,o.i.hu));let V=Z.find(se=>"alternate"===se.rel&&se.hreflang===o.i.en);V||(V=document.createElement("link"),V.rel="alternate",document.head.appendChild(V)),V&&(V.hreflang=o.i.en,V.href=this.getFullLocalizedLink(window.location.href,o.i.en))}}return X.\u0275fac=function(Z){return new(Z||X)(c.LFG(s.wi),c.LFG(C.Sf),c.LFG(L.sK),c.LFG(u.y),c.LFG(K.K),c.LFG(h.F0),c.LFG(b.Ye))},X.\u0275prov=c.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})()},54584:(Se,k,n)=>{n.d(k,{w:()=>u});var s=n(97582),e=n(36057),o=n(94650),t=n(44224),v=n(55089),r=n(44569),c=n(50211),C=n(30607); 867/* 868 * @license 869 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 870 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 871 *
872 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 873 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 874 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 875 * trade secret or copyright law. 876 * 877 * Dissemination of this information or reproduction of this material is strictly forbidden 878 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 879 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 880 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 881 * explicitly covering such access. 882 * 883 * The copyright notice above does not evidence any actual or intended publication or disclosure 884 * of this source code, which includes information that is confidential and/or proprietary, 885 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 886 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 887 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 888 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 889 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 890 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 891 * IN WHOLE OR IN PART. 892 */let u=class{constructor(a,f,O){if(this.clientService=a,this.imgService=f,this.userService=O,this.changed=new o.vpe,this.isVerified=!1,this.isInitialized=!1,this.stepsMap=new Map,this.verificationSteps=[new e.Jx(e.xr.PROFILE,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.PROFILE}.TITLE`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.PROFILE}.DESC`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.PROFILE}.BUTTON`,`/${r.d.baseFromUserType()}/${r.d.baseSettings}/profile`,e.HP.LOADING),new e.Jx(e.xr.IMAGE,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.IMAGE}.TITLE`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.IMAGE}.DESC`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.IMAGE}.BUTTON`,`/${r.d.baseFromUserType()}/${r.d.baseSettings}/profile`,e.HP.LOADING),new e.Jx(e.xr.LAWYER_LICENSE,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.LAWYER_LICENSE}.TITLE`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.LAWYER_LICENSE}.DESC`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.LAWYER_LICENSE}.BUTTON`,`/${r.d.baseFromUserType()}/${r.d.baseSettings}/license`,e.HP.LOADING),new e.Jx(e.xr.INTRODUCTION,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.INTRODUCTION}.TITLE`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.INTRODUCTION}.DESC`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.INTRODUCTION}.BUTTON`,`/${r.d.baseFromUserType()}/${r.d.baseSettings}/introduction`,e.HP.LOADING),new e.Jx(e.xr.INVOICING,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.INVOICING}.TITLE`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.INVOICING}.DESC`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.INVOICING}.BUTTON`,`/${r.d.baseFromUserType()}/${r.d.baseSettings}/invoicing`,e.HP.LOADING),new e.Jx(e.xr.PAYOUT,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.PAYOUT}.TITLE`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.PAYOUT}.DESC`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.PAYOUT}.BUTTON`,`/${r.d.baseFromUserType()}/${r.d.baseSettings}/payout`,e.HP.LOADING),new e.Jx(e.xr.MATCHMAKING,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.MATCHMAKING}.TITLE`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.MATCHMAKING}.DESC`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.MATCHMAKING}.BUTTON`,`/${r.d.baseFromUserType()}/${r.d.baseSettings}/matchmaking`,e.HP.LOADING),new e.Jx(e.xr.VERIFIED,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.VERIFIED}.TITLE`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.VERIFIED}.DESC`,`CLIENT.LOBBY.VERIFICATION_STATE.STEPS.${e.xr.VERIFIED}.BUTTON`,`/${r.d.landingFAQ}`,e.HP.LOADING)],this.userService.isLawyer){for(const N of Object.keys(e.xr))this.stepsMap.set(N,new e.G8);this.imgService.onChange.subscribe(N=>{this.changeState(e.xr.IMAGE,new e.G8(N.isLoading,!!N.img,N.hasError))}),this.runCheck()}
892v.K.sessionStatusChanged.subscribe(N=>{if(this.userService.isLawyer){for(const L of Object.keys(e.xr))this.stepsMap.set(L,new e.G8);this.imgService.onChange.subscribe(L=>{this.changeState(e.xr.IMAGE,new e.G8(L.isLoading,!!L.img,L.hasError))}),this.runCheck()}}),v.K.impersonatedStatusChanged.subscribe(N=>{if(this.userService.isLawyer){for(const L of Object.keys(e.xr))this.stepsMap.set(L,new e.G8);this.imgService.onChange.subscribe(L=>{this.changeState(e.xr.IMAGE,new e.G8(L.isLoading,!!L.img,L.hasError))}),this.runCheck()}})}changeState(a,f){this.stepsMap.set(a,f),this.changed.emit(this.stepsMap)}changeStateOnError(a,f,O){if(404!==O.status){const N=new e.G8(f.isLoading,f.value,!0);this.stepsMap.set(a,N),this.changed.emit(this.stepsMap)}else this.stepsMap.set(a,f),this.changed.emit(this.stepsMap)}lastFinishedStep(){return this.verificationSteps.slice().reverse().find(a=>this.stepsMap.get(a.type)&&!0===this.stepsMap.get(a.type).value)}nextStep(a){const f=this.verificationSteps.findIndex(O=>O.type===a);return-1===f||f===this.verificationSteps.length-1?null:this.verificationSteps.find((O,N)=>N>f&&O.status!==e.HP.SUCCESS)}runCheck(){if(this.userService.isLawyer){for(const a of Object.keys(e.xr))this.stepsMap.set(a,new e.G8);this.clientService.getLawyerVerification().pipe((0,t.t)(this)).subscribe(()=>{this.changeState(e.xr.VERIFIED,new e.G8(!1,!0)),this.isVerified=!0,this.runDetailedCheck()},a=>{if(423===a.status)this.changeState(e.xr.VERIFIED,new e.G8(!1,!1)),this.isVerified=!1,this.runDetailedCheck();else for(const f of Object.keys(e.xr))this.stepsMap.set(f,new e.G8(!1,!1,!0))}).add(()=>{this.isInitialized=!0})}}runCheckForStep(a,f){if(this.userService.isLawyer){const O=this.stepsMap.get(a);switch(this.stepsMap.set(a,new e.G8(O.isLoading,f||O.value,O.hasError)),a){case e.xr.PROFILE:case e.xr.IMAGE:case e.xr.LAWYER_LICENSE:case e.xr.INTRODUCTION:this.clientService.getClientProfile().pipe((0,t.t)(this)).subscribe(N=>{this.changeState(e.xr.PROFILE,new e.G8(!1,!!N)),this.changeState(e.xr.LAWYER_LICENSE,new e.G8(!1,!!N&&!!N.license)),this.changeState(e.xr.INTRODUCTION,new e.G8(!1,!!N&&!!N.introduction)),N?this.imgService.getImg():this.changeState(e.xr.IMAGE,new e.G8(!1,!1,!1))},N=>{this.changeStateOnError(e.xr.PROFILE,new e.G8(!1,!1),N),this.changeStateOnError(e.xr.LAWYER_LICENSE,new e.G8(!1,!1),N),this.changeStateOnError(e.xr.INTRODUCTION,new e.G8(!1,!1),N),this.changeStateOnError(e.xr.IMAGE,new e.G8(!1,!1),N)});break;case e.xr.INVOICING:this.clientService.getInvoiceState().pipe((0,t.t)(this)).subscribe(N=>{this.changeState(e.xr.INVOICING,new e.G8(!1,!!N))},N=>{this.changeStateOnError(e.xr.INVOICING,new e.G8(!1,!1),N)});break;case e.xr.PAYOUT:this.clientService.getLawyerStripeAccount().pipe((0,t.t)(this)).subscribe(N=>{this.changeState(e.xr.PAYOUT,new e.G8(!1,N&&N.chargesEnabled&&N.detailsSubmitted&&N.payoutsEnabled))},N=>{this.changeStateOnError(e.xr.PAYOUT,new e.G8(!1,!1),N)});break;case e.xr.MATCHMAKING:this.clientService.getMatchmakerCategoriesList().pipe((0,t.t)(this)).subscribe(N=>{this.changeState(e.xr.MATCHMAKING,new e.G8(!1,N&&N.categories&&N.categories.length>0))},N=>{this.changeStateOnError(e.xr.MATCHMAKING,new e.G8(!1,!1),N)})}}}runDetailedCheck(){this.userService.isLawyer&&(this.clientService.getClientProfile().pipe((0,t.t)(this)).subscribe(a=>{this.changeState(e.xr.PROFILE,new e.G8(!1,!!a)),this.changeState(e.xr.LAWYER_LICENSE,new e.G8(!1,!!a&&!!a.license)),this.changeState(e.xr.INTRODUCTION,new e.G8(!1,!!a&&!!a.introduction)),a?this.imgService.getImg():this.changeState(e.xr.IMAGE,new e.G8(!1,!1,!1))},a=>{this.changeStateOnError(e.xr.PROFILE,new e.G8(!1,!1),a),this.changeStateOnError(e.xr.LAWYER_LICENSE,new e.G8(!1,!1),a),this.changeStateOnError(e.xr.INTRODUCTION,new e.G8(!1,!1),a),this.changeStateOnError(e.xr.IMAGE,new e.G8(!1,!1),a)}),this.clientService.getInvoiceState().pipe((0,t.t)(this)).subscribe(a=>{this.changeState(e.xr.INVOICING,new e.G8(!1,!!a))},a=>{this.changeStateOnError(e.xr.INVOICING,new e.G8(!1,!1),a)}),this.clientService.getLawyerStripeAccount().pipe((0,t.t)(this)).subscribe(a=>{this.changeState(e.xr.PAYOUT,new e.G8(!1,a&&a.chargesEnabled&&a.detailsSubmitted&&a.payoutsEnabled))},a=>{this.changeStateOnError(e.xr.PAYOUT,new e.G8(!1,!1),a)}),this.clientService.getMatchmakerCategoriesList().pipe((0,t.t)(this)).subscribe(a=>{this.changeState(e.xr.MATCHMAKING,new e.G8(!1,a&&a.categories&&a.categories.length>0))},a=>{this.changeStateOnError(e.xr.MATCHMAKING,new e.G8(!1,!1),a)}))}};u.\u0275fac=function(a){return new(a||u)(o.LFG(c.y),o.LFG(C.i),o.LFG(v.K))},u.\u0275prov=o.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u=(0,s.gn)([(0,t.c)()],u)},38151:(Se,k,n)=>{n.d(k,{d:()=>a});var s=n(97582),e=n(36057),o=n(44224),t=n(5963),v=n(55089),r=n(44569),c=n(94650),C=n(9641),u=n(251
89256),m=n(39889);let a=class{constructor(O,N,L,i){this.cookieService=O,this.nzModal=N,this.routerService=L,this.userService=i}handleLoginRegister(O,N,L,i){switch(this.sessionSubscription=N===e.rp.IMPERSONATED?v.K.impersonatedStatusChanged.pipe((0,o.t)(this)).subscribe(M=>{M&&(N===e.rp.IMPERSONATED&&(L?this.routerService.hrefOrRouter(L):this.routerService.sessionChangedRouting(O.kind)),this.sessionSubscription&&this.sessionSubscription.unsubscribe())}):v.K.sessionStatusChanged.pipe((0,o.t)(this)).subscribe(M=>{if(M){switch(N){case e.rp.LOGIN:if(L)if(L===`/${r.d.baseUser}/${r.d.emailConfirm}`)if(i&&i.mail&&i.mail===O.mail){let R=`${L}?mail=${i.mail}`;i.pin&&(R+=`&pin=${i.pin}`),this.routerService.hrefOrRouter(R)}else this.routerService.sessionChangedRouting(O.kind);else this.routerService.hrefOrRouter(L);else this.routerService.sessionChangedRouting(O.kind);break;case e.rp.REGISTER:L?this.routerService.hrefOrRouter(L):this.routerService.sessionChangedRouting(O.kind,!0),(0,t.H)(1e3).pipe((0,o.t)(this)).subscribe(R=>{this.nzModal.closeAll()})}this.sessionSubscription&&this.sessionSubscription.unsubscribe()}}),N){case e.rp.LOGIN:case e.rp.REGISTER:this.userService.saveSession(O),this.cookieService.acceptCookies();break;case e.rp.IMPERSONATED:this.userService.saveImpersonatedSession(O)}}};a.\u0275fac=function(O){return new(O||a)(c.LFG(C.N),c.LFG(u.Sf),c.LFG(m.c),c.LFG(v.K))},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a=(0,s.gn)([(0,o.c)()],a)},7695:(Se,k,n)=>{n.d(k,{u:()=>f});var s=n(97582),e=n(11491),o=n(22971),t=n(44224),v=n(5963),r=n(94650),c=n(25156),C=n(32925),u=n(81664),m=n(41836);class a{constructor(N,L,i,M){this.is2FA=N,this.veriftoken=i,this.authmail=L,this.cause=M}}let f=class{constructor(N,L,i,M){this.nzModal=N,this.translate=L,this.modalService=i,this.asyncMessenger=M}closeAllModalsAfter(N=200){(0,v.H)(N).pipe((0,t.t)(this)).subscribe(L=>{this.nzModal.closeAll()})}handle(N,L,i,M,R=!1,l=!1){if(N&&N.status)switch(449!==N.status&&!l&&this.closeAllModalsAfter(),N.status){case 440:R||this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.INCORRECT_PASSWORD");break;case 449:i?this.modalService.registerMeWithTermsModal(i,L,M):(this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.UNREGISTERED_MAIL"),this.closeAllModalsAfter());break;case 403:return new a(!0,L,N.msg.token);case 409:this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE",i!==e.Gr.Mail?"LOGIN.ERROR.NOT_THIS_WAY":"LOGIN.ERROR.REGISTERED_MAIL");break;case 410:this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.DEREGISTERED_MAIL");break;case 423:if(N.msg.until){const h=new Date(N.msg.until).toLocaleDateString("hu-HU",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.LOCKED",null,{lockedTime:h})}break;case 400:if(N.msg.cause===o.Wj.MISSING_CAPTCHA_HEADER||N.msg.cause===o.Wj.INVALID_CAPTCHA)return this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.INVALID_CAPTCHA"),new a(!1,L,null,N.msg.cause);if(N.msg.cause===o.Wj.NO_USABLE_MAIL)return this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.NO_USABLE_MAIL"),new a(!1,L,null,N.msg.cause);this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR_DESC");break;default:this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR_DESC")}else this.closeAllModalsAfter();return null}};f.\u0275fac=function(N){return new(N||f)(r.LFG(c.Sf),r.LFG(C.sK),r.LFG(u.Z),r.LFG(m.m))},f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f=(0,s.gn)([(0,t.c)()],f)},34643:(Se,k,n)=>{n.d(k,{Z:()=>t});var s=n(88183),o=n(94650);let t=(()=>{class v{constructor(){this.renderer=new s.Renderer}parseMarkDown(c){return(0,s.parse)(c.replace(new RegExp("((#!MD)|(#!md))( )*"),""),{renderer:this.renderer})}}return v.\u0275fac=function(c){return new(c||v)},v.\u0275prov=o.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},14206:(Se,k,n)=>{n.d(k,{$:()=>Ve});var s=n(97582),e=n(94650),o=n(55089),t=n(71997),v=n(17445),r=n(5963),c=n(36057),C=n(44224),u=n(45218),m=n(71667),a=n(12342),f=n(38755),O=n(62641),N=n(52835),L=n(36895),i=n(20545),M=n(32925);function R(W,ee){if(1&W&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&W){const te=e.oxw();
892e.xp6(1),e.Oqu(e.lcZ(2,1,te.reasonErrorString))}}function l(W,ee){1&W&&(e.TgZ(0,"div",5),e._UZ(1,"nz-skeleton-element",6),e.qZA()),2&W&&(e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(1),e.Q6J("nzActive",!0))}function h(W,ee){if(1&W&&(e.TgZ(0,"div")(1,"p",13),e._uU(2),e.ALo(3,"date"),e.ALo(4,"date"),e.qZA()()),2&W){const te=ee.$implicit;e.xp6(2),e.AsE(" ",e.xi3(3,2,te.startInMillis,"HH:mm")," - ",e.xi3(4,5,te.endInMillis,"HH:mm")," ")}}function D(W,ee){if(1&W&&(e.TgZ(0,"div",10)(1,"p",11),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,h,5,8,"div",12),e.qZA()),2&W){const te=e.oxw(2);e.xp6(2),e.Oqu(e.lcZ(3,2,"COMMON.TODAY")),e.xp6(2),e.Q6J("ngForOf",te.todayConsultingDates)}}function B(W,ee){if(1&W&&(e.TgZ(0,"div")(1,"p",13),e._uU(2),e.ALo(3,"date"),e.ALo(4,"date"),e.qZA()()),2&W){const te=ee.$implicit;e.xp6(2),e.AsE(" ",e.xi3(3,2,te.startInMillis,"HH:mm")," - ",e.xi3(4,5,te.endInMillis,"HH:mm")," ")}}function K(W,ee){if(1&W&&(e.TgZ(0,"div",14)(1,"p",11),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,B,5,8,"div",12),e.qZA()),2&W){const te=e.oxw(2);e.xp6(2),e.Oqu(e.lcZ(3,2,"COMMON.TOMORROW")),e.xp6(2),e.Q6J("ngForOf",te.tomorrowConsultingDates)}}function b(W,ee){if(1&W&&(e.TgZ(0,"div")(1,"p",4),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",7),e.YNc(5,D,5,4,"div",8),e.YNc(6,K,5,4,"div",9),e.qZA(),e.TgZ(7,"p"),e._uU(8),e.ALo(9,"translate"),e.qZA()()),2&W){const te=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,4,"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.SOONEST_AVAILABLE")),e.xp6(3),e.Q6J("ngIf",te.todayConsultingDates.length>0),e.xp6(1),e.Q6J("ngIf",te.tomorrowConsultingDates.length>0),e.xp6(2),e.Oqu(e.lcZ(9,6,"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.SOONEST_AVAILABLE_EXPLANATION"))}}let w=(()=>{class W{constructor(){this.todayConsultingDates=[],this.tomorrowConsultingDates=[],this.imageLoaded=!1}ngOnInit(){const te=new Date;new Date(te.getFullYear(),6,15).valueOf()<=te.valueOf()&&te.valueOf()<=new Date(te.getFullYear(),7,20).valueOf()?this.baseErrorString="CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.CONTENT":(this.baseErrorString="CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.DEFAULT_CONTENT",this.reasonErrorString=0===te.getDay()||6===te.getDay()?"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.REASON_8":new Date(te.getFullYear(),te.getMonth(),te.getDate(),2,0,0).valueOf()<=te.valueOf()&&te.valueOf()<new Date(te.getFullYear(),te.getMonth(),te.getDate(),8,0,0).valueOf()?"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.REASON_1":new Date(te.getFullYear(),te.getMonth(),te.getDate(),8,0,0).valueOf()<=te.valueOf()&&te.valueOf()<new Date(te.getFullYear(),te.getMonth(),te.getDate(),10,0,0).valueOf()?"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.REASON_2":new Date(te.getFullYear(),te.getMonth(),te.getDate(),10,0,0).valueOf()<=te.valueOf()&&te.valueOf()<new Date(te.getFullYear(),te.getMonth(),te.getDate(),12,0,0).valueOf()?"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.REASON_3":new Date(te.getFullYear(),te.getMonth(),te.getDate(),12,0,0).valueOf()<=te.valueOf()&&te.valueOf()<new Date(te.getFullYear(),te.getMonth(),te.getDate(),14,0,0).valueOf()?"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.REASON_4":new Date(te.getFullYear(),te.getMonth(),te.getDate(),14,0,0).valueOf()<=te.valueOf()&&te.valueOf()<new Date(te.getFullYear(),te.getMonth(),te.getDate(),16,0,0).valueOf()?"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.REASON_5":new Date(te.getFullYear(),te.getMonth(),te.getDate(),16,0,0).valueOf()<=te.valueOf()&&te.valueOf()<new Date(te.getFullYear(),te.getMonth(),te.getDate(),19,0,0).valueOf()?"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.REASON_6":"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.REASON_7"),this.getAvailableLawyerConsultingDates()}getAvailableLawyerConsultingDates(){this.availablelawyers.schedule.filter(te=>(0,a.Z)(te.startInMillis)||(0,f.Z)(te.startInMillis)).map(te=>{(0,O.Z)(te.startInMillis,new Date)?this.todayConsultingDates.push(te):this.tomorrowConsultingDates.push(te)})}}return W.\u0275fac=function(te){return new(te||W)},W.\u0275cmp=e.Xpm({type:W,selectors:[["app-no-available-lawyers-modal"]],inputs:{availablelawyers:"availablelawyers"},decls:16,vars:14,consts:[[4,"ngIf"],[1,"w-50","h-100","position-relative","pb-3","text-center","m-auto"],["class","skeletonImageContainer",4,"ngIf"],["src","/assets/sofbox/message_price_sad.svg","alt","Sad peo
892ple",3,"hidden","load"],[1,"font-weight-500"],[1,"skeletonImageContainer"],["nzType","image","nzSize","large",1,"w-100","h-100","imageSkeleton",3,"nzActive"],[1,"col","row","text-center","available-times"],["class","col-sm mb-2 mb-sm-0",4,"ngIf"],["class","col-sm",4,"ngIf"],[1,"col-sm","mb-2","mb-sm-0"],[1,"m-b-5"],[4,"ngFor","ngForOf"],[1,"m-b-0"],[1,"col-sm"]],template:function(te,Pe){1&te&&(e.TgZ(0,"div")(1,"p")(2,"span"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.YNc(5,R,3,3,"span",0),e.qZA(),e.TgZ(6,"div",1),e.YNc(7,l,2,2,"div",2),e.TgZ(8,"img",3),e.NdJ("load",function(){return Pe.imageLoaded=!0}),e.qZA()(),e.YNc(9,b,10,8,"div",0),e.TgZ(10,"p",4),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.TgZ(13,"p"),e._uU(14),e.ALo(15,"translate"),e.qZA()()),2&te&&(e.xp6(3),e.Oqu(e.lcZ(4,8,Pe.baseErrorString)),e.xp6(2),e.Q6J("ngIf",Pe.reasonErrorString),e.xp6(2),e.Q6J("ngIf",!Pe.imageLoaded),e.xp6(1),e.Q6J("hidden",!Pe.imageLoaded)("@imageLoadAnimation",Pe.imageLoaded?"loaded":"loading"),e.xp6(1),e.Q6J("ngIf",Pe.todayConsultingDates.length>0||Pe.tomorrowConsultingDates.length>0),e.xp6(2),e.Oqu(e.lcZ(12,10,"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.TRY_AGAIN.Q")),e.xp6(3),e.Oqu(e.lcZ(15,12,"CLIENT.HELP.NO_AVAILABLE_LAWYERS_CONTENT.TRY_AGAIN.A")))},dependencies:[L.sg,L.O5,i.Xw,i.Ql,L.uU,M.X$],styles:['@charset "UTF-8";.skeletonImageContainer[_ngcontent-%COMP%]{padding-top:77.5%}.imageSkeleton[_ngcontent-%COMP%]{position:absolute;inset:0}.imageSkeleton[_ngcontent-%COMP%] .ant-skeleton-image{width:100%;height:100%}.available-times[_ngcontent-%COMP%]{margin-bottom:1rem}'],data:{animation:[N.Ln,N.nV]}}),W})();var X=n(6947),Y=n(50211),Z=n(81664),G=n(81404),Q=n(11481),V=n(93196),se=n(39889),xe=n(75489),Ee=n(90735),re=n(25156),le=n(3674),q=n(54584),fe=n(69872),de=n(97895),it=n(52632); 893/* 894 * @license 895 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 896 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 897 *
898 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 899 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 900 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 901 * trade secret or copyright law. 902 * 903 * Dissemination of this information or reproduction of this material is strictly forbidden 904 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 905 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 906 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 907 * explicitly covering such access. 908 * 909 * The copyright notice above does not evidence any actual or intended publication or disclosure 910 * of this source code, which includes information that is confidential and/or proprietary, 911 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 912 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 913 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 914 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 915 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 916 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 917 * IN WHOLE OR IN PART. 918 */let Ve=class{constructor(ee,te,Pe,Ue,Ae,Fe,Qe,rt,Ct,ht,mt,ye,Ce,j,_e,F){this.userService=ee,this.clientService=te,this.modalService=Pe,this.paymentModalService=Ue,this.title=Ae,this.translate=Fe,this.notificationService=Qe,this.routerService=rt,this.eventService=Ct,this.chatService=ht,this.nzModal=mt,this.utilService=ye,this.lawyerValidationService=Ce,this.schedulerService=j,this.trackingService=_e,this.paymentService=F,this.initialized=!1,this.statusEmitter=new e.vpe,this.alertDurationMinutes=u.L.config.matchmakerAlertDurationMinutes,this.alertTimeoutDurationMinutes=u.L.config.matchmakerExitTimeoutDurationMinutes,this.pendingCandidateFor=0,this.pendingCandidateRequestEmitter=new e.vpe,this.userService.isLoggedIn&&this.initialize(),o.K.sessionStatusChanged.subscribe(ne=>{ne&&!this.initialized?this.initialize():!ne&&this.initialized&&this.destroy()}),o.K.impersonatedStatusChanged.pipe((0,C.t)(this)).subscribe(ne=>{ne?this.initialized||this.initialize():this.initialized&&this.destroy()})}initialize(){this.initialized=!0,this.lastActivity=Date.now(),this.lastActivityInterval&&this.lastActivityInterval.unsubscribe(),this.lastActivityInterval=(0,v.F)(9e5).pipe((0,C.t)(this)).subscribe(()=>{this.updateLastActivity()}),this.clickHandler=ee=>this.handleClick(ee),window.addEventListener("click",this.clickHandler),this.userService.isLawyer?this.lawyerValidationService.stepsMap.has(c.xr.VERIFIED)&&this.lawyerValidationService.stepsMap.get(c.xr.VERIFIED).value?this.initializeLawyer():this.lawyerValidationSubscription=this.lawyerValidationService.changed.subscribe(ee=>{ee.has(c.xr.VERIFIED)&&ee.get(c.xr.VERIFIED).value&&this.initializeLawyer()}):this.userService.isClient&&this.initializeClient()}initializeLawyer(){this.lawyerValidationSubscription&&this.lawyerValidationSubscription.unsubscribe(),this.updateLawyerStatus(),this.updatePendingCandidateFor(),this.updatePendingCandidateForInterval&&this.updatePendingCandidateForInterval.unsubscribe(),this.updatePendingCandidateForInterval=(0,v.F)(6e4).pipe((0,C.t)(this)).subscribe(()=>{this.updatePendingCandidateFor()})}initializeClient(){this.updateClientStatus(),this.updateClientStatusInterval&&this.updateClientStatusInterval.unsubscribe(),this.updateClientStatusInterval=(0,v.F)(3e5).pipe((0,C.t)(this)).subscribe(()=>{this.updateClientStatus()}),this.eventService.handleNotifaction.subscribe(ee=>{this.handleNotifAction(ee)}),localStorage.getItem(X.B.matchmakingLawyerID)&&this.getPreviewByLawyerID(localStorage.getItem(X.B.matchmakingLawyerID)),this.handleMatchmakerRequestChangeFunction=ee=>this.handleMatchmakerRequestChange(ee),window.addEventListener("storage",this.handleMatchmakerRequestChangeFunction,!1)}handleMatchmakerRequestChange(ee){ee.key===X.B.matchmakingLawyerID&&ee.oldValue!==ee.newValue&&(ee.newValue?this.getPreviewByLawyerID(ee.newValue):(this.pendingCandidateRequest=void 0,this.pendingCandidateRequestEmitter.emit(this.pendingCandidateRequest)))}removeCandidateLawyer(){localStorage.removeItem(X.B.matchmakingLawyerID),this.pendingCandidateRequest=void 0,this.pendingCandidateRequestEmitter.emit(this.pendingCandidateRequest)}getPreviewByLawyerID(ee){this.clientService.getPreviewByLawyerID(ee).subscribe(te=>{this.pendingCandidateRequest=te,this.pendingCandidateRequestEmitter.emit(this.pendingCandidateRequest)})}destroy(){this.initialized=!1,this.updateHeartbeatInterval&&(this.updateHeartbeatInterval.unsubscribe(),this.updateHeartbeatInterval=null),this.blinkingInterval&&(this.blinkingInterval.unsubscribe(),this.blinkingInterval=null),this.updateClientStatusInterval&&(this.updateClientStatusInterval.unsubscribe(),this.updateClientStatusInterval=null),this.lastActivityInterval&&(this.lastActivityInterval.unsubscribe(),this.lastActivityInterval=null),this.nextLawyerStatusUpdateTimeout&&clearTimeout(this.nextLawyerStatusUpdateTimeout),this.updatePendingCandidateForInterval&&(this.updatePendingCandidateForInterval.unsubscribe(),this.updatePendingCandidateForInterval=null),this.alertTimeout&&(this.alertTimeout.unsubscribe(),this.alertTimeout=null),this.exitTimeout&&(this.exitTimeout.unsubscribe(),this.exitTimeout=null),this.clickHandler&&window.removeEventListener("click",this.clickHandler),this.handleMatchmakerRequestChangeFunction&&window.removeEventListener("storage",this.handleMatchmakerRequestChangeFunction,!1)}handleClick(ee){const te=Date.now();this.lastActivity=te,(!this.lastSavedActivity||te-this.lastSavedActivity>3e4)&&this.clientService.patchActivity().pipe((0,C.t)(this)).subscribe(()=>{this.lastSavedActivity=te,this.updateLastActivity()},Pe=>{this.lastSavedActivity=te})}updateLastActivity(){this.clientService.getLastActivity().pipe((0,C.t)(this)).subscribe(ee=>{const te=Date.now();this.lastActivity=Math.max(te-ee.millisecondsAgo,this.lastActivity),this.lastSavedActivity=this.lastActivity,this.shouldAlertAndHeartbeat()&&(te-this.lastActivity<=60*this.alertTimeoutDurationMinutes*1e3?this.alertModal||this.restartAlertTimeout():this.autoExitMatchmaker())},ee=>{console.log(ee)})}updateLawyerStatus(){return this.clientService.getLawyerMatchmakerStatus().pipe((0,C.t)(this)).toPromise().then(ee=>(this.handleLawyerStatus(ee),ee),ee=>{console.log(ee)})}handleLawyerStatus(ee){this.status=ee,this.shouldAlertAndHeartbeat()?(this.updateHeartbeatInterval||(this.updateHeartbeat(),this.startUpd
918ateHeartbeatInterval()),this.exitTimeout||this.restartAlertTimeout()):(ee.type===t.JM_.Participating&&ee.schedule?this.nextLawyerStatusUpdateTimeout=window.setTimeout(()=>{this.updateLawyerStatus()},ee.schedule.endInMillis-Date.now()):ee.type===t.JM_.NotParticipating&&ee.nextSchedule&&(this.nextLawyerStatusUpdateTimeout=window.setTimeout(()=>{this.updateLawyerStatus()},ee.nextSchedule.startInMillis-Date.now())),this.updateHeartbeatInterval&&(this.updateHeartbeatInterval.unsubscribe(),this.updateHeartbeatInterval=null),this.clearAlertTimeout(),this.clearExitTimeout(),this.resetBlinking()),this.statusEmitter.emit(this.status)}joinMatchmaker(){const ee=this.clientService.postJoin().pipe((0,C.t)(this)).toPromise();return ee.then(te=>this.handleLawyerStatus(te),te=>{}),ee}updateHeartbeat(){this.clientService.postHeartbeat().pipe((0,C.t)(this)).subscribe(ee=>{this.handleLawyerStatus(ee),ee.type===t.JM_.NotParticipating&&(this.alertModal&&this.alertModal.close(),this.clearExitTimeout(),this.resetBlinking(),this.modalService.matchmakerNetworkLogoutInfoModal())},ee=>{console.log(ee)})}startUpdateHeartbeatInterval(){this.updateHeartbeatInterval&&this.updateHeartbeatInterval.unsubscribe(),this.updateHeartbeatInterval=(0,v.F)(3e4).pipe((0,C.t)(this)).subscribe(()=>{this.updateHeartbeat()})}exitMatchmaker(){let ee;return ee=this.status&&this.status.schedule?this.modalService.confirmModal(this.translate.instant("COMMON.HEADER.LAWYER_MATCHMAKER.EXIT_SCHEDULER.TITLE"),this.translate.instant("COMMON.HEADER.LAWYER_MATCHMAKER.EXIT_SCHEDULER.DESCRIPTION")).afterClose.toPromise().then(Pe=>Pe?this.clientService.modifySchedule([new t.Qe3(t.Uik.DELETE,this.status.schedule.startInMillis,this.status.schedule.endInMillis)]).toPromise().then(Ue=>(this.schedulerService.scheduleChanged.emit(Ue.intervals),this.updateLawyerStatus())):Promise.reject()):this.clientService.postExit().pipe((0,C.t)(this)).toPromise(),ee.then(te=>{this.clearAlertTimeout(),this.clearExitTimeout(),this.resetBlinking(),this.handleLawyerStatus(te)},te=>{console.log(te)}),ee}restartAlertTimeout(){if(this.shouldAlertAndHeartbeat()){this.clearAlertTimeout(),this.resetBlinking();const ee=this.lastActivity+60*(this.alertTimeoutDurationMinutes-this.alertDurationMinutes)*1e3-Date.now();this.alertTimeout=(0,r.H)(Math.max(ee,0)).pipe((0,C.t)(this)).subscribe(te=>{this.createAlert()})}}clearAlertTimeout(){this.alertTimeout&&(this.alertTimeout.unsubscribe(),this.alertTimeout=null)}clearExitTimeout(){this.exitTimeout&&(this.exitTimeout.unsubscribe(),this.exitTimeout=null)}resetBlinking(){this.blinkingInterval&&(this.blinkingInterval.unsubscribe(),this.blinkingInterval=null,this.title.setTitle(this.originalPageTitle))}createAlert(){this.clearAlertTimeout(),this.alertModal||(this.alertModal=this.modalService.matchmakerLogoutWarningModal(),this.alertModal.afterClose.subscribe(()=>{this.initialized&&(this.clearExitTimeout(),this.restartAlertTimeout(),this.alertModal=null)}),this.originalPageTitle=this.title.getTitle(),this.blinkingInterval&&this.blinkingInterval.unsubscribe(),this.blinkingInterval=(0,v.F)(1e3).pipe((0,C.t)(this)).subscribe(()=>{this.title.getTitle()===this.originalPageTitle?this.title.setTitle(this.translate.instant("COMMON.HEADER.LAWYER_MATCHMAKER.ALERT_WARNING.TITLE")):this.title.setTitle(this.originalPageTitle)}),this.exitTimeout=(0,r.H)(60*this.alertDurationMinutes*1e3).pipe((0,C.t)(this)).subscribe(ee=>{this.updateLastActivity()}))}shouldAlertAndHeartbeat(){return this.status&&this.status.type===t.JM_.Participating&&!this.status.schedule}autoExitMatchmaker(){this.exitMatchmaker().then(()=>{this.alertModal&&this.alertModal.close(),this.modalService.matchmakerLogoutInfoModal()})}updatePendingCandidateFor(){this.clientService.getPendingCandidateFor().pipe((0,C.t)(this)).subscribe(ee=>{this.pendingCandidateFor=ee.count})}updateClientStatus(){return this.clientService.getClientMatchmakerStatus().pipe((0,C.t)(this)).toPromise().then(ee=>{ee&&ee.type===t.kr6.Locked?(this.lockedDate=Date.now()+ee.remainingFor,this.candidate=null,this.candidateDate=null):ee&&ee.type===t.kr6.Candidate?(this.candidate||this.addCandidateNotification(),this.setCandidate(ee)):(this.lockedDate=null,this.candidate=null,this.candidateDate=null)},ee=>{})}setCandidate(ee){this.candidateDate=Date.now()+ee.remainingFor,this.candidate=ee,this.lockedDate=null}addCandidateNotification(){this.notificationService.addNotif("warning",new c.n0("CLIENT.HELP.CANDIDATE_NOTIFICATION.TITLE"),new c.n0("CLIENT.HELP.CANDIDATE_NOTIFICATION.DESCRIPTION"),c.V1.XLONG,c.C7.DANGER,null,"assets/images/marchmaking-service.svg",null,t.pmz.Help)}refreshBillingPayment(){let ee=!1,te=!1;return this.clientService.getBilling().pipe((0,C.t)(this)).toPromise().then(Pe=>(ee=null!=Pe,this.clientService.getPaymentMethod().pipe((0,C.t)(this)).toPromise().then(Ue=>(te=0!==Ue.length,{hasBilling:ee,hasPayment:te}),Ue=>(te=!1,{hasBilling:ee,hasPayment:te}))),Pe=>(ee=!1,{hasBilling:ee,hasPayment:te}))}getQuota(){return this.clientService.getBenefits().pipe((0,C.t)(this)).toPromise().then(ee=>{let te=0;return ee.packs.forEach(Pe=>{te+=Pe.quota}),ee.subscriptions.forEach(Pe=>{te+=Pe.quota}),te})}requestLawyer(ee,te,Pe,Ue,Ae,Fe){return new Promise((Qe,rt)=>{const Ct=mt=>{ee instanceof t.h$3&&this.eventService.quotaChanged.emit(),this.chatService.handleNewChatSnippet(mt),this.routerService.routeToChatByID(mt.chatID),Qe(null),this.nzModal.closeAll(),this.updateClientStatus(),this.pendingCandidateRequest&&this.removeCandidateLawyer()},ht=mt=>{rt(mt),this.updateClientStatus()};this.updateClientStatus().then(()=>
918{const mt=Date.now();this.lockedDate&&this.lockedDate<mt||this.candidate&&this.candidateDate&&this.candidateDate>mt?this.modalService.matchmakerCandidateModal(this.candidate,ee,Ct,ht,Ue,Ae):this.lockedDate&&this.lockedDate>mt?rt({status:423}):this.requestLawyerSubscription=Pe?this.clientService.requestLawyerWithProgress(Pe).pipe((0,C.t)(this)).subscribe(ye=>{ye.type===t.kr6.Candidate?(this.setCandidate(ye),this.modalService.matchmakerCandidateModal(ye,ee,Ct,ht,Ue,Ae)):rt()},ye=>rt({status:ye.status})):Fe?this.clientService.requestLawyerByLawyerID(Fe.ID).pipe((0,C.t)(this)).subscribe(ye=>{ye.type===t.kr6.Candidate?(this.setCandidate(ye),this.acceptCandidate(ee,Ue,Ae,Ct)):rt()},ye=>rt({status:ye.status})):this.clientService.requestLawyer(new t.AeS(te?te.category:t.dI$.CONTRACT_V1)).pipe((0,C.t)(this)).subscribe(ye=>{ye.type===t.kr6.Candidate?(this.setCandidate(ye),this.modalService.matchmakerCandidateModal(ye,ee,Ct,ht,Ue,Ae)):rt()},ye=>rt({status:ye.status}))})})}tryRequestLawyer(ee,te,Pe,Ue,Ae,Fe,Qe){return this.getAvailableLawyers(Ue).then(Ct=>{if(Ct.count&&Ct.count>0||this.candidateDate>Date.now()||Qe)return Promise.all([this.refreshBillingPayment(),Promise.resolve(0)]).then(([{hasBilling:ht,hasPayment:mt},ye])=>this.clientService.getServices().pipe((0,C.t)(this)).toPromise().then(Ce=>{const j=Ce.find(_e=>_e.ID&&_e.ID===t.Vr4.Matchmaking);return this.clientService.postNetPrice(new t.OH5(j?j.price:null,j?j.currency:null)).toPromise().then(_e=>new Promise(ht&&mt?(ne,U)=>{this.paymentModalService.choosePaymentModalForMatchmaking(c.Oz.LAWYER_MEDIATION,ct=>{const ft=this.requestLawyer(ct,Ue,Pe,j?j.price:null,j?j.currency:null,Qe);return ne(ft),ft},ct=>U(ct),j?j.price:null,j?j.currency:null,this.eventService.clientStatus&&this.eventService.clientStatus.valueAddedTax?this.eventService.clientStatus.valueAddedTax:null,Ae,Fe,Qe,_e).afterClose.toPromise().then(()=>U({status:404}))}:(ne,U)=>{this.paymentModalService.benefitListModal(null,null,c.Oz.LAWYER_MEDIATION,et=>{const ct=this.requestLawyer(et,Ue,null,j?j.price:null,j?j.currency:null,Qe);return ne(ct),ct},()=>U({status:499}),j?j.price:null,j?j.currency:null,this.eventService.clientStatus&&this.eventService.clientStatus.valueAddedTax?this.eventService.clientStatus.valueAddedTax:null,u.L.config.currentPaymentProvider,!1,Ae,Fe,Qe,_e)}),_e=>Promise.reject(_e))},Ce=>(console.log(Ce),this.showOnePageCheckout(990,t.Fa6.HUF,ht,mt,ee,te,Ue,Ae,Fe,Pe,Qe))));{new Date;const mt=m.K.optimalModalWidthPercentageBasedOnWindowSizeSmall(8);return this.nzModal.info({nzTitle:this.translate.instant("CLIENT.HELP.NO_AVAILABLE_LAWYERS"),nzContent:w,nzComponentParams:{availablelawyers:Ct},nzOkText:this.translate.instant("COMMON.OK"),nzWidth:mt.width,nzClassName:`${mt.class} primaryInfoIcon`,nzIconType:"clock-circle"}),Promise.reject({status:404})}})}showOnePageCheckout(ee,te,Pe,Ue,Ae,Fe,Qe,rt,Ct,ht,mt,ye){return new Promise((Ce,j)=>{this.paymentModalService.onepagecheckoutModalForMatchmaker(!Ue||!Pe,!Ue,Ae,ee,te,_e=>this.clientService.getServices().pipe((0,C.t)(this)).toPromise().then(F=>{const ne=this.requestLawyer(_e,Qe,ht,ee,te,mt);return this.trackingService.sendGoogleTagManagerPurchaseEvent(ee,te),this.trackingService.sendPixelPurchaseEvent([t.Vr4.Matchmaking],ee,te),Ce(ne),ne},F=>(console.log(F),Promise.reject())),()=>j({status:499}),rt,Ct,null,ye)})}getAvailableLawyers(ee){return this.clientService.getAvailableLawyers(ee||new t.AeS(t.dI$.CONTRACT_V1)).pipe((0,C.t)(this)).toPromise().then(te=>te)}selectMatchmakingCategory(ee,te){const Pe=Date.now();return this.candidate&&this.candidateDate&&this.candidateDate>Pe?this.requestLawyerWithCategory(this.candidate.progress?.ID,this.candidate.category):te?this.requestLawyerWithCategory(ee,te):new Promise((Ue,Ae)=>{this.modalService.matchmakingCategoryModal(Qe=>{Ue(Qe)},Qe=>{console.log(Qe),Ae({status:499})},ee).afterClose.toPromise().then(Qe=>{Ae(Qe)})})}requestLawyerWithCategory(ee,te){return te?this.refreshMatchmakingCategories().then(([Pe,Ue])=>{const Ae=this.categoryModels.findIndex(Fe=>Fe.ID===te);return-1!==Ae?this.tryRequestLawyer(window.innerWidth<1185,this.utilService.randomString(128),ee,new t.AeS(te),this.categoryModels[Ae],this.categoryDarkAssets[Ae]):this.tryRequestLawyer(window.innerWidth<1185,this.utilService.randomString(128),ee)}):this.tryRequestLawyer(window.innerWidth<1185,this.utilService.randomString(128),ee)}handleNotifAction(ee){switch(ee){case t.pmz.Help:{const te=Date.now();this.candidate&&this.candidateDate&&this.candidateDate>te?this.requestLawyerWithCategory(this.candidate.progress?.ID,this.candidate.category):this.tryRequestLawyer(window.innerWidth<1185,this.utilService.randomString(128));break}}}refreshMatchmakingCategories(){return this.clientService.getCategories().pipe((0,C.t)(this)).toPromise().then(ee=>(this.categoryModels=ee,this.refreshAssets()),ee=>Promise.reject(ee))}refreshAssets(){return this.clientService.getUsageAssets().pipe((0,C.t)(this)).toPromise().then(ee=>(this.assetModels=ee,this.categoryLightAssets=this.categoryModels.map(te=>this.assetModels.find(Pe=>Pe.name.endsWith("categories/"+te.name+"-light.svg"))),this.categoryDarkAssets=this.categoryModels.map(te=>this.assetModels.find(Pe=>Pe.name.endsWith("categories/"+te.name+"-dark.svg"))),ee),ee=>Promise.reject(ee))}acceptCandidate(ee,te,Pe,Ue){let Ae;return Ae=u.L.config.currentPaymentProvider===t.OHy.Braintree&&ee instanceof t.xJR?this.clientService.postMatchmakerBraintreePurchase(new t.dEQ(this.candidate.candidateID,ee)).pipe((0,C.t)(this)).toPromise():ee instanceof t.h$3?this.clientService.postMatchmakerCreditPurchase(new t.jSv(this.candidate.candidateID,ee)).pipe((0,C.t)(this)).toPromise():u.L.config.currentPaymentProvider===t.OHy.Stripe&&ee instanceof t.BAK?this.clientService.postMatchmakerStripePurchase(new t.tbW(this.candidate.candidateID,ee.idempotencyID)).pipe((0,C.t)(this)).toPromise().then(Fe=>ee.stripe.confirmCardPayment(Fe.clientSecret,{payment_method:ee.paymentID}).then(Qe=>!Qe.error||Qe.error.code&&"payment_intent_unexpected_state"===Qe.error.code?this.paymentService.paymentStripeCheck(this.clientService.postMatchmakerStripeCheck(new t.uNW(Fe.paymentIntentID)).pipe((0,C.t)(this))):Promise.reject(),Qe=>(console.log(Qe),Promise.reject())),Fe=>(console.log(Fe),Promise.reject())):Promise.reject(),Ae.then(Fe=>{(u.L.config.currentPaymentProvider===t.OHy.Braintree&&ee instanceof t.xJR||u.L.config.currentPaymentProvider===t.OHy.Stripe&&ee instanceof t.BAK)&&(this.trackingService.sendGoogleTagManagerPurchaseEvent(te,Pe),this.trackingService.sendPixelPurchaseEvent([t.Vr4.Matchmaking],te,Pe)),Ue(Fe)},Fe=>{console.log(Fe)}),Ae}};Ve.\u0275fac=function(ee){return new(ee||Ve)(e.LFG(o.K),e.LFG(Y.y),e.LFG(Z.Z),e.LFG(G.u),e.LFG(Q.Dx),e.LFG(M.sK),e.LFG(V.g),e.LFG
918(se.c),e.LFG(xe.P),e.LFG(Ee.a),e.LFG(re.Sf),e.LFG(le.f),e.LFG(q.w),e.LFG(fe.G),e.LFG(de.e),e.LFG(it.t))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve=(0,s.gn)([(0,C.c)()],Ve)},13345:(Se,k,n)=>{n.d(k,{D:()=>c});var s=n(30144),e=n(39300),o=n(44569),t=n(94650),v=n(32925),r=n(11481);let c=(()=>{class C{constructor(m,a,f,O){this.translate=m,this.title=a,this.meta=f,this.router=O,this.metaDataByRoute=[{route:"/",title:"METADATA.LANDING.PAGE_TITLE",meta:[{name:"title",content:"METADATA.LANDING.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.LANDING.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:""},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingTOS}`,title:"METADATA.TERMS.PAGE_TITLE",meta:[{name:"title",content:"METADATA.TERMS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.TERMS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingTOS}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingTOSTab0}`,title:"METADATA.TERMS.TAB0.PAGE_TITLE",meta:[{name:"title",content:"METADATA.TERMS.TAB0.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.TERMS.TAB0.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingTOSTab0}`},{property:"og:image",content:"szerzi.hu/favicon.ico"}]},{route:`/${o.d.landingTOSTab1}`,title:"METADATA.TERMS.TAB1.PAGE_TITLE",meta:[{name:"title",content:"METADATA.TERMS.TAB1.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.TERMS.TAB1.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingTOSTab1}`},{property:"og:image",content:"szerzi.hu/favicon.ico"}]},{route:`/${o.d.landingDisputeResolution}`,title:"METADATA.DISPUTE_RESOLUTION.PAGE_TITLE",meta:[{name:"title",content:"METADATA.DISPUTE_RESOLUTION.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.DISPUTE_RESOLUTION.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingDisputeResolution}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingPrivacy}`,title:"METADATA.PRIVACY_POLICY.PAGE_TITLE",meta:[{name:"title",content:"METADATA.PRIVACY_POLICY.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.PRIVACY_POLICY.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingPrivacy}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingPrivacyTab0}`,title:"METADATA.PRIVACY_POLICY.TAB0.PAGE_TITLE",meta:[{name:"title",content:"METADATA.PRIVACY_POLICY.TAB0.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.PRIVACY_POLICY.TAB0.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingPrivacyTab0}`},{property:"og:image",content:"szerzi.hu/favicon.ico"}]},{route:`/${o.d.landingPrivacyTab1}`,title:"METADATA.PRIVACY_POLICY.TAB1.PAGE_TITLE",meta:[{name:"title",content:"METADATA.PRIVACY_POLICY.TAB1.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.PRIVACY_POLICY.TAB1.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingPrivacyTab1}`},{property:"og:image",content:"szerzi.hu/favicon.ico"}]},{route:`/${o.d.landingRefundPolicy}`,title:"METADATA.REFUND_POLICY.PAGE_TITLE",meta:[{name:"title",content:"METADATA.REFUND_POLICY.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.REFUND_POLICY.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingRefundPolicy}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingPayment}`,title:"METADATA.PAYMENT_INFORMATION.PAGE_TITLE",meta:[{name:"title",content:"METADATA.PAYMENT_INFORMATION.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.PAYMENT_INFORMATION.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingPayment}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingImpressum}`,title:"METADATA.IMPRESSUM.PAGE_TITLE",meta:[{name:"title",content:"METADATA.IMPRESSUM.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.IMPRESSUM.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingImpressum}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingContact}`,title:"METADATA.CONTACT_US.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CONTACT_US.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CONTACT_US.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingContact}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingLawyerMediation}`,title:"METADATA.LAWYER_MEDIATION.PAGE_TITLE",meta:[{name:"title",content:"METADATA.LAWYER_MEDIATION.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.LAWYER_MEDIATION.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingLawyerMediation}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingAbout}`,title:"METADATA.ABOUT_US.PAGE_TITLE",meta:[{name:"title",content:"METADATA.ABOUT_US.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.ABOUT_US.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingAbout}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingPWA}`,title:"METADATA.PWA_GUIDE.PAGE_TITLE",meta:[{name:"title",content:"METADATA.PWA_GUIDE.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.PWA_GUIDE.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingPWA}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingFAQ}`,title:"METADATA.FAQ.PAGE_TITLE",meta:[{name:"title",content:"METADATA.FAQ.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.FAQ.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingFAQ}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingFAQTabContracts}`,title:"METADATA.FAQ.TAB_CONTRACTS.PAGE_TITLE",meta:[{name:"title",content:"METADATA.FAQ.TAB_CONTRACTS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.FAQ.TAB_CONTRACTS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingFAQTabContracts}`},{property:"og:image",content:"szerzi.hu/favicon.ico"}]},{route:`/${o.d.landingFAQTabLegal}`,title:"METADATA.FAQ.TAB_LEGAL.PAGE_TITLE",meta:[{name:"title",content:"METADATA.FAQ.TAB_LEGAL.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.FAQ.TAB_LEGAL.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingFAQTabLegal}`},{property:"og:image",content:"szerzi.hu/favicon.ico"}]},{route:`/${o.d.landingFAQTabPurchase}`,title:"METADATA.FAQ.TAB_PURCHASE.PAGE_TITLE",meta:[{name:"title",content:"METADATA.FAQ.TAB_PURCHASE.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.FAQ.TAB_PURCHASE.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingFAQTabPurchase}`},{property:"og:image",content:"szerzi.hu/favicon.ico"}]},{route:`/${o.d.landingPricing}`,title:"METADATA.PRICING.PAGE_TITLE",meta:[{name:"title",content:"METADATA.PRICING.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.PRICING.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingPricing}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingFeatures}`,title:"METADATA.FEATURE_PAGE.PAGE_TITLE",meta:[{name:"title",content:"METADATA.FEATURE_PAGE.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.FEATURE_PAGE.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingFeatures}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingForLawyers}`,title:"METADATA.FOR_LAWYERS.PAGE_TITLE",meta:[{name:"title",content:"METADATA.FOR_LAWYERS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.FOR_LAWYERS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingForLawyers}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingPayouts}`,title:"METADATA.PAYOUTS.PAGE_TITLE",meta:[{name:"title",content:"METADATA.PAYOUTS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.PAYOUTS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingPayouts}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.landingDocument}`,title:"METADATA.DOCUMENT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.DOCUMENT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.DOCUMENT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.landingDocument}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}],needsTranslateVariables:!0},{route:`/${o.d.login}`,title:"METADATA.LOGIN.PAGE_TITLE",meta:[{name:"title",content:"METADATA.LOGIN.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.LOGIN.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.login}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"noindex,follow"}]},{route:`/${o.d.register}`,title:"METADATA.REGISTRATION.PAGE_TITLE",meta:[{name:"title",content:"METADATA.REGISTRATION.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.REGISTRATION.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.register}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"noindex,follow"}]},{route:`/${o.d.register}/${o.d.baseClient}`,title:"METADATA.REGISTRATION_CLIENT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.REGISTRATION_CLIENT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.REGISTRATION_CLIENT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.register}/${o.d.baseClient}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"noindex,follow"}]},{route:`/${o.d.register}/${o.d.baseLawyer}`,title:"METADATA.REGISTRATION_LAWYER.PAGE_TITLE",meta:[{name:"title",content:"METADATA.REGISTRATION_LAWYER.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.REGISTRATION_LAWYER.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.register}/${o.d.baseLawyer}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"noindex,follow"}]},{route:`/${o.d.forgot}`,title:"METADATA.RECOVERY.PAGE_TITLE",meta:[{name:"title",content:"METADATA.RECOVERY.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.RECOVERY.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.forgot}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.forgotConfirm}`,title:"METADATA.RECOVERY_CONFIRM.PAGE_TITLE",meta:[{name:"title",content:"METADATA.RECOVERY_CONFIRM.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.RECOVERY_CONFIRM.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.forgotConfirm}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.demosContract}/[a-zA-Z0-9]*`,title:"METADATA.CONTRACTS_EDIT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CONTRACTS_EDIT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CONTRACTS_EDIT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.demosContract}/[a-zA-Z0-9]*`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}],needsTranslateVariables:!0},{route:`/(${o.d.baseUser}|${o.d.baseClient}|${o.d.baseLawyer})/${o.d.deRegister}`,title:"METADATA.DEREGISTER.PAGE_TITLE",meta:[{name:"title",content:"METADATA.DEREGISTER.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.DEREGISTER.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseUser}|${o.d.baseClient}|${o.d.baseLawyer})/${o.d.deRegister}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseUser}|${o.d.baseClient}|${o.d.baseLawyer})/${o.d.emailConfirm}`,title:"METADATA.EMAIL_CONFIRM.PAGE_TITLE",meta:[{name:"title",content:"METADATA.EMAIL_CONFIRM.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.EMAIL_CONFIRM.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseUser}|${o.d.baseClient}|${o.d.baseLawyer})/${o.d.emailConfirm}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})`,title:"METADATA.LOBBY.PAGE_TITLE",meta:[{name:"title",content:"METADATA.LOBBY.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.LOBBY.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseLobby}`,title:"METADATA.LOBBY.PAGE_TITLE",meta:[{name:"title",content:"METADATA.LOBBY.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.LOBBY.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseLobby}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.baseClient}/${o.d.baseContract}`,title:"METADATA.CONTRACTS_CLIENT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CONTRACTS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CONTRACTS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.baseClient}/${o.d.baseContract}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.baseLawyer}/${o.d.baseContract}`,title:"METADATA.CONTRACTS_LAWYER.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CONTRACTS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CONTRACTS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",conte
918nt:`/${o.d.baseLawyer}/${o.d.baseContract}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseContract}/${o.d.baseContractCreate}`,title:"METADATA.CONTRACTS_CREATE.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CONTRACTS_CREATE.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CONTRACTS_CREATE.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseContract}/${o.d.baseContractCreate}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.baseClient}/${o.d.baseContract}/[a-zA-Z0-9]*/[a-zA-Z0-9]*`,title:"METADATA.CONTRACTS_DETAILS.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CONTRACTS_DETAILS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CONTRACTS_DETAILS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.baseClient}/${o.d.baseContract}/[a-zA-Z0-9]*/[a-zA-Z0-9]*`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}],needsTranslateVariables:!0},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseContract}/[a-zA-Z0-9]*`,title:"METADATA.CONTRACTS_EDIT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CONTRACTS_EDIT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CONTRACTS_EDIT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseContract}/[a-zA-Z0-9]*`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}],needsTranslateVariables:!0},{route:`/${o.d.baseClient}/${o.d.baseList}`,title:"METADATA.CONTRACTS_CLIENT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CONTRACTS_CLIENT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CONTRACTS_CLIENT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.baseClient}/${o.d.baseList}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.baseLawyer}/${o.d.baseList}`,title:"METADATA.CONTRACTS_LAWYER.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CONTRACTS_LAWYER.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CONTRACTS_LAWYER.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.baseLawyer}/${o.d.baseList}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseList}/${o.d.baseShared}`,title:"METADATA.CONTRACTS_SHARED.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CONTRACTS_SHARED.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CONTRACTS_SHARED.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseList}/${o.d.baseShared}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseChat}`,title:"METADATA.CONVERSATIONS.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CONVERSATIONS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CONVERSATIONS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseChat}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer}|${o.d.baseAdmin})/${o.d.baseSettings}`,title:"METADATA.SETTINGS.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer}|${o.d.baseAdmin})/${o.d.baseSettings}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer}|${o.d.baseAdmin})/${o.d.baseSettings}/${o.d.settingsAccountTab}`,title:"METADATA.SETTINGS_ACCOUNT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_ACCOUNT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_ACCOUNT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer}|${o.d.baseAdmin})/${o.d.baseSettings}/${o.d.settingsAccountTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsBillingTab}`,title:"METADATA.SETTINGS_BILLING.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_BILLING.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_BILLING.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsBillingTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsLicenseTab}`,title:"METADATA.SETTINGS_LICENSE.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_LICENSE.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_LICENSE.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsLicenseTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsIntroductionTab}`,title:"METADATA.SETTINGS_INTRODUCTION.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_INTRODUCTION.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_INTRODUCTION.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsIntroductionTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsInvoicingTab}`,title:"METADATA.SETTINGS_INVOICING.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_INVOICING.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_INVOICING.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsInvoicingTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsPayoutTab}`,title:"METADATA.SETTINGS_PAYOUT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_PAYOUT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_PAYOUT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsPayoutTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsMatchmakingTab}`,title:"METADATA.SETTINGS_MATCHMAKING.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_MATCHMAKING.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_MATCHMAKING.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsMatchmakingTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsPaymentResultTab}`,title:"METADATA.SETTINGS_PAYMENT_RESULT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_PAYMENT_RESULT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_PAYMENT_RESULT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsPaymentResultTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsPaymentResultSuccessTab}`,title:"METADATA.SETTINGS_PAYMENT_RESULT_SUCCESS.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_PAYMENT_RESULT_SUCCESS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_PAYMENT_RESULT_SUCCESS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsPaymentResultSuccessTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsPaymentResultFailureTab}`,title:"METADATA.SETTINGS_PAYMENT_RESULT_FAILURE.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_PAYMENT_RESULT_FAILURE.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_PAYMENT_RESULT_FAILURE.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsPaymentResultFailureTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsBundlesTab}`,title:"METADATA.SETTINGS_BUNDLES.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_BUNDLES.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_BUNDLES.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsBundlesTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsInvoicesTab}`,title:"METADATA.SETTINGS_INVOICES.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_INVOICES.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_INVOICES.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsInvoicesTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsOrdersTab}`,title:"METADATA.SETTINGS_ORDERS.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_ORDERS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_ORDERS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsOrdersTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsPaymentTab}`,title:"METADATA.SETTINGS_PAYMENT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_PAYMENT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_PAYMENT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsPaymentTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsProfileTab}`,title:"METADATA.SETTINGS_PROFILE.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_PROFILE.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_PROFILE.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsProfileTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsSocialTab}`,title:"METADATA.SETTINGS_SOCIAL.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_SOCIAL.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_SOCIAL.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsSocialTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}
918/${o.d.settingsSubscriptionsTab}`,title:"METADATA.SETTINGS_SUBSCRIPTIONS.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_SUBSCRIPTIONS.DESCRIPTION",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_SUBSCRIPTIONS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.baseSettings}/${o.d.settingsSubscriptionsTab}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.subscriptions}`,title:"METADATA.SETTINGS_SUBSCRIPTIONS.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SETTINGS_SUBSCRIPTIONS.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SETTINGS_SUBSCRIPTIONS.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}|${o.d.baseLawyer})/${o.d.subscriptions}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/(${o.d.baseClient}/${o.d.matchmakerRequest})`,title:"METADATA.MATCHMAKER_REQUEST.PAGE_TITLE",meta:[{name:"title",content:"METADATA.MATCHMAKER_REQUEST.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.MATCHMAKER_REQUEST.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/(${o.d.baseClient}/${o.d.matchmakerRequest})`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.baseLawyer}/${o.d.scheduler}`,title:"METADATA.SCHEDULER.PAGE_TITLE",meta:[{name:"title",content:"METADATA.SCHEDULER.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.SCHEDULER.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.baseLawyer}/${o.d.scheduler}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.baseLawyer}/${o.d.integration}`,title:"METADATA.INTEGRATION.PAGE_TITLE",meta:[{name:"description",content:"METADATA.INTEGRATION.DESCRIPTION"}]},{route:`/${o.d.baseAdmin}/${o.d.baseFileManager}`,title:"METADATA.GENERATOR_MANAGEMENT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.GENERATOR_MANAGEMENT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.GENERATOR_MANAGEMENT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.baseAdmin}/${o.d.baseFileManager}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.baseAdmin}/${o.d.baseLawyerManager}`,title:"METADATA.LAWYER_MANAGEMENT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.LAWYER_MANAGEMENT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.LAWYER_MANAGEMENT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.baseAdmin}/${o.d.baseLawyerManager}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.baseAdmin}/${o.d.baseClientManager}`,title:"METADATA.CLIENT_MANAGEMENT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.CLIENT_MANAGEMENT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.CLIENT_MANAGEMENT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.baseAdmin}/${o.d.baseClientManager}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.baseAdmin}/${o.d.baseTemplater}`,title:"METADATA.TEMPLATER.PAGE_TITLE",meta:[{name:"title",content:"METADATA.TEMPLATER.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.TEMPLATER.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.baseAdmin}/${o.d.baseTemplater}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]},{route:`/${o.d.baseAdmin}/${o.d.baseInvoices}`,title:"METADATA.ADMIN_INVOICES.PAGE_TITLE",meta:[{name:"title",content:"METADATA.ADMIN_INVOICES.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.ADMIN_INVOICES.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:`/${o.d.baseAdmin}/${o.d.baseInvoices}`},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]}],this.defaultMetadata={title:"METADATA.DEFAULT.PAGE_TITLE",meta:[{name:"title",content:"METADATA.DEFAULT.PAGE_TITLE",property:"og:title"},{name:"description",content:"METADATA.DEFAULT.DESCRIPTION",property:"og:description"},{property:"og:type",content:"website"},{property:"og:url",content:"szerzi.hu"},{property:"og:image",content:"szerzi.hu/favicon.ico"},{name:"robots",content:"index"}]}}initialize(){this.translate.onLangChange.subscribe(m=>{this.updateTitleAndMeta()}),this.router.events.pipe((0,e.h)(m=>m instanceof s.m2)).subscribe(m=>{this.updateTitleAndMeta()}),this.updateTitleAndMeta(),this.checkIsIOS()&&this.addMaximumScaleToMetaViewport()}updateTitleAndMeta(){const m=this.metaDataByRoute.filter(a=>this.router.url.match("^"+a.route)).sort((a,f)=>{const O=this.router.url.match("^"+a.route),N=this.router.url.match("^"+f.route);return O&&N?N[0].length-O[0].length:O?-1:N?1:0});if(m&&m.length>0){const a=m[0];(!a.needsTranslateVariables||this.translateVariables)&&(this.title.setTitle(this.translate.instant(a.title,this.translateVariables)),a.meta.forEach(f=>{const O=Object.keys(f).filter(L=>"content"!==L);let N={};"og:url"===f.property?(N={content:this.translate.instant(window.location.href,this.translateVariables)},this.updateWithMetaKeys(O,N,f)):this.translate.get(f.content,this.translateVariables).subscribe(L=>{N={content:L},this.updateWithMetaKeys(O,N,f)})}))}else this.title.setTitle(this.translate.instant(this.defaultMetadata.title)),this.defaultMetadata.meta.forEach(a=>{const f=Object.keys(a).filter(N=>"content"!==N);let O={content:this.translate.instant(a.content,this.translateVariables)};O="og:url"===a.property?{content:this.translate.instant(window.location.href,this.translateVariables)}:{content:this.translate.instant(a.content,this.translateVariables)},this.updateWithMetaKeys(f,O,a)})}updateWithMetaKeys(m,a,f){for(const O of m)a[O]=f[O];this.meta.updateTag(a)}setTranslateVariables(m){this.translateVariables=m,this.updateTitleAndMeta()}checkIsIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}checkIsMac(){return/Mac/.test(navigator.userAgent)&&!window.MSStream}checkIsApple(){return this.checkIsIOS()||this.checkIsMac()}addMaximumScaleToMetaViewport(){const m=this.meta.getTag('name="viewport"');if(null!==m){let a=m.content;const f=/maximum\-scale=[0-9\.]+/g;a=f.test(a)?a.replace(f,"maximum-scale=1.0"):[a,"maximum-scale=1.0"].join(", "),this.meta.updateTag({name:"viewport",content:a})}else this.meta.addTag({name:"viewport",content:"maximum-scale=1.0"})}}
918return C.\u0275fac=function(m){return new(m||C)(t.LFG(v.sK),t.LFG(r.Dx),t.LFG(r.h_),t.LFG(s.F0))},C.\u0275prov=t.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},71667:(Se,k,n)=>{n.d(k,{K:()=>t});var s=n(97582),e=n(44224),o=n(94650);let t=class{constructor(){}static optimalModalWidthPercentageBasedOnWindowSizeSmall(r){const c=window.innerWidth;return c<768?{width:"100%",class:`responsive-small-modal-${r||0}`}:c<1200?{width:"85%",class:`responsive-small-modal-${r||0}`}:{width:400+25*(r||0)+"px",class:""}}static optimalModalWidthPercentageBasedOnWindowSize(r){const c=window.innerWidth;return c<768?{width:"100%",class:`responsive-modal-${r||0}`}:c<1200?{width:"85%",class:`responsive-modal-${r||0}`}:{width:800+25*(r||0)+"px",class:""}}static fixedModalWidthAboveGivenResolution(r){const c=window.innerWidth,C=window.innerHeight;return c>=640&&C>=480?{width:`${r}px`}:{width:"100%"}}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t=(0,s.gn)([(0,e.c)()],t)},81664:(Se,k,n)=>{n.d(k,{Z:()=>Ht});var s=n(97582),e=n(44224),o=n(92961),t=n(94650),v=n(25156),r=n(50211),c=n(87689),C=n(41836),u=n(55089),m=n(24006),a=n(59166),f=n(36895),O=n(66616),N=n(47044),L=n(21811),i=n(73679),M=n(36704),R=n(35635),l=n(32925);function D(I,g){1&I&&(t.TgZ(0,"p",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"COMMON.SUGGESTION.BRIEF")," "))}function B(I,g){1&I&&(t.TgZ(0,"p",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"COMMON.SUGGESTION.BRIEF_CLIENT")," "))}const K=function(I){return{maxLength:I}};function b(I,g){if(1&I&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&I){const d=t.oxw().$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,"COMMON.SUGGESTION.VALIDATION.MAX_LENGTH",t.VKq(4,K,d.errors.maxlength.requiredLength)))}}const w=function(I){return{minLength:I}};function X(I,g){if(1&I&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&I){const d=t.oxw().$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,"COMMON.SUGGESTION.VALIDATION.MIN_LENGTH",t.VKq(4,w,d.errors.minlength.requiredLength)))}}function Y(I,g){if(1&I&&(t.YNc(0,b,3,6,"ng-container",9),t.YNc(1,X,3,6,"ng-container",9)),2&I){const d=g.$implicit;t.Q6J("ngIf",d.hasError("maxlength")),t.xp6(1),t.Q6J("ngIf",d.hasError("minlength"))}}let Z=class{constructor(g,d,P,z,ie,Ie){this.nzModal=g,this.clientService=d,this.formService=P,this.asyncMessenger=z,this.userService=ie,this.modal=Ie,this.submitted=!1,this.unstickTrigger=0}ngOnInit(){const g=new Map;g.set(0,"COMMON.SUGGESTION.BUTTON_STATES.ERROR.OTHER"),this.submitSuggestionText=new o.PR("COMMON.SUGGESTION.BUTTON_STATES.CHANGE","COMMON.SUGGESTION.BUTTON_STATES.CHANGING","COMMON.SUGGESTION.BUTTON_STATES.CHANGED",g),this.defaultSubmissionFunction=()=>this.submitSuggestion(),this.suggestionForm=this.formService.suggestionFormGroup(),this.suggestionForm.statusChanges.subscribe(d=>{this.suggestionForm.dirty&&(this.unstickTrigger=Math.random())})}submitSuggestion(){if(this.suggestionForm.controls.text.markAsTouched(),this.submitted=!0,this.suggestionForm.valid){const g=this.formService.groupToSuggestion(this.suggestionForm,this.coordinate);if(g)return this.clientService.postSuggestion(g).pipe((0,e.t)(this)).toPromise().then(()=>{this.asyncMessenger.successNotification("COMMON.SUGGESTION.NOTIFICATION.SUCCESS.TITLE","COMMON.SUGGESTION.NOTIFICATION.SUCCESS.DESC"),this.modal.close()},d=>(this.asyncMessenger.errorMessage("COMMON.SUGGESTION.NOTIFICATION.ERROR.TITLE","COMMON.SUGGESTION.NOTIFICATION.ERROR.DESC"),Promise.reject(d)))}}};Z.\u0275fac=function(g){return new(g||Z)(t.Y36(v.Sf),t.Y36(r.y),t.Y36(c.o),t.Y36(C.m),t.Y36(u.K),t.Y36(v.Lf))},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["app-suggestion",8,"adder"]],inputs:{coordinate:"coordinate"},attrs:["class","adder"],decls:18,vars:20,consts:[["nz-form","",3,"formGroup"],["class","small",4,"ngIf"],[3,"nzValidateStatus","nzErrorTip"],["nz-input","","rows","4","formControlName","text","trim","blur",3,"placeholder"],["textErrorTmpl",""],[1,"row","justify-content-center","justify-content-md-end","grid-gap-15","w-100","mx-auto"],["nz-button","",1,"closeButton",3,"click"],[1,"button-text-wrap","modalFooterButton","submitModalButton",3,"defaultFunction","nzTextKeys","nzType","unstickTrigger"],[1,"small"],[4,"ngIf"]],template:function(g,d){if(1&g&&(t.TgZ(0,"form",0),t.YNc(1,D,3,3,"p",1),t.YNc(2,B,3,3,"p",1),t.TgZ(3,"nz-form-item")(4,"nz-form-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"nz-form-control",2)(8,"nz-input-group"),t._UZ(9,"textarea",3),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Y,2,2,"ng-template",null,4,t.W1O),t.qZA()()(),t.TgZ(13,"div",5)(14,"button",6),t.NdJ("click",function(){return d.modal.close()}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"app-multi-state-button",7),t.qZA()),2&g){const P=t.MAs(12);t.Q6J("formGroup",d.suggestionForm),t.xp6(1),t.Q6J("ngIf",d.coordinate&&"lawyer"===d.coordinate.user||!d.coordinate),t.xp6(1),t.Q6J("ngIf",d.coordinate&&"client"===d.coordinate.user),t.xp6(1),t.ekj("ant-form-item-has-error",d.submitted&&!d.suggestionForm.controls.text.valid),t.xp6(2),t.hij(" ",t.lcZ(6,14,"COMMON.SUGGESTION.SUGGESTION")," "),t.xp6(2),t.Q6J("nzValidateStatus",d.suggestionForm.controls.text)("nzErrorTip",P),t.xp6(2),t.Q6J("placeholder",t.lcZ(10,16,"COMMON.SUGGESTION.PLACEHOLDER")),t.xp6(6),t.hij(" ",t.lcZ(16,18,"COMMON.CANCEL")," "),t.xp6(2),t.Q6J("defaultFunction",d.defaultSubmissionFunction)("nzTextKeys",d.submitSuggestionText)("nzType",!d.submitted||d.submitted&&d.suggestionForm.valid?"primary":"default")("unstickTrigger",d.unstickTrigger)}},dependencies:[m._Y,m.Fj,m.JJ,m.JL,a.P,f.O5,m.sg,m.u,o.P4,O.ix,N.w,L.dQ,i.t3,i.SK,M.Lr,M.Nx,M.iK,M.Fd,R.Zp,R.gB,l.X$],styles:['@charset "UTF-8";@media (max-width: 767.98px){.submitModalButton[_ngcontent-%COMP%]{min-width:51%!important}.closeButton[_ngcontent-%COMP%]{margin-left:0!important;min-width:51%!important}.submitModalButton[_ngcontent-%COMP%] .smartButton{width:100%!important}}.modalFooterButton[_ngcontent-%COMP%] .smartButton{max-width:none!important;max-width:initial!important}']}),Z=(0,s.gn)([(0,e.c)({checkProperties:!0})],Z);var G=n(22971),Q=n(6497);const V=function(I,g){return{identifier:I,social:g}};let se=(()=>{class I{constructor(d,P){this.modal=d,this.modalService=P,this.UserType=G.FW}openTerms(d){this.modalService.termsModal(d,this.registerType,void 0,this.socialUser,void 0,void 0,void 0,!1)}}return I.\u0275fac=function(d){return new(d||I)(t.Y36(v.Lf),t.Y36(Ht))},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-register-social-modal"]],inputs:{name:"name",registerType:"registerType",socialUser:"socialUser"},decls:15,vars:25,consts:[[3,"innerHTML"],[1,"row","justify-content-center","justify-content-md-end","grid-gap-15","m-t-20","w-100"],["nz-button","","nzType","default",1,"button2",3,"click"],["type","button","nz-button","","nzType","primary","nz-popconfirm","","nzPopconfirmPlacement","top",3,"nzPopconfirmTitle","nzOkText","nzCancelText","nzOnConfirm","nzOnCancel"],["nz-button","","nzType","primary",3,"click"]],template:function(d,P){1&d&&(t._UZ(0,"span",0),t.ALo(1,"translate"),t.TgZ(2,"div",1)(3,"button",2),t.NdJ("click",function(){return P.modal.close()}
918),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("nzOnConfirm",function(){return P.openTerms(P.UserType.Lawyer)})("nzOnCancel",function(){return P.openTerms(P.UserType.Client)}),t.ALo(7,"translate"),t.ALo(8,"translate"),t.ALo(9,"translate"),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",4),t.NdJ("click",function(){return P.openTerms(P.UserType.Client)}),t._uU(13),t.ALo(14,"translate"),t.qZA()()),2&d&&(t.Q6J("innerHTML",t.xi3(1,7,"LOGIN.SIGN_UP_WITH_SOCIAL",t.WLB(22,V,P.name,P.registerType)),t.oJD),t.xp6(4),t.hij(" ",t.lcZ(5,10,"COMMON.CANCEL")," "),t.xp6(2),t.Q6J("nzPopconfirmTitle",t.lcZ(7,12,"REGISTRATION.POPCONFIRM.TITLE"))("nzOkText",t.lcZ(8,14,"REGISTRATION.POPCONFIRM.OK_TEXT"))("nzCancelText",t.lcZ(9,16,"REGISTRATION.POPCONFIRM.CANCEL_TEXT")),t.xp6(4),t.hij(" ",t.lcZ(11,18,"REGISTRATION.AS_LAWYER")," "),t.xp6(3),t.hij(" ",t.lcZ(14,20,"REGISTRATION.AS_CLIENT")," "))},dependencies:[O.ix,N.w,L.dQ,Q.JW,l.X$],styles:['@charset "UTF-8";']}),I})();var xe=n(47423),Ee=n(65681);function re(I,g){1&I&&t._UZ(0,"i",3)}let le=(()=>{class I{constructor(){}}return I.\u0275fac=function(d){return new(d||I)},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-in-progress"]],decls:4,vars:1,consts:[[1,"row","justify-content-center"],["indicatorTemplate",""],["nzSimple","",3,"nzIndicator"],["nz-icon","","nzType","loading",1,"font-size-45"]],template:function(d,P){if(1&d&&(t.TgZ(0,"div",0),t.YNc(1,re,1,0,"ng-template",null,1,t.W1O),t._UZ(3,"nz-spin",2),t.qZA()),2&d){const z=t.MAs(2);t.xp6(3),t.Q6J("nzIndicator",z)}},dependencies:[N.w,xe.Ls,Ee.W],styles:['@charset "UTF-8";']}),I})();var q=n(33494);const fe=function(I,g){return{contract_name:I,contract_progressid:g}};let de=(()=>{class I{constructor(){}ngOnInit(){}}return I.\u0275fac=function(d){return new(d||I)},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-generator-error-modal"]],inputs:{progressID:"progressID",name:"name"},decls:2,vars:7,consts:[[3,"innerHTML"]],template:function(d,P){1&d&&(t._UZ(0,"p",0),t.ALo(1,"translate")),2&d&&t.Q6J("innerHTML",t.xi3(1,1,"CLIENT.CONTRACTS.FINALIZATION.ERROR_MODAL.CONTENT",t.WLB(4,fe,P.name,P.progressID)),t.oJD)},dependencies:[l.X$],styles:['@charset "UTF-8";']}),I})();var it=n(88397),Ve=n(44569),W=n(50590),ee=n(39889),te=n(63084),Pe=n(30144);function Ue(I,g){if(1&I){const d=t.EpF();t.ynx(0),t._uU(1),t.ALo(2,"translate"),t._UZ(3,"br"),t.TgZ(4,"a",9),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.modal.triggerCancel())}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._UZ(7,"br"),t.BQk()}if(2&I){const d=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,3,"CLIENT.CONTRACTS.DELETE.PASSWORD")," "),t.xp6(3),t.Q6J("routerLink","/"+d.PageRoutes.forgot),t.xp6(1),t.hij(" ",t.lcZ(6,5,"COMMON.FORGOT_YOUR_PASSWORD")," ")}}function Ae(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"form",10,11),t.NdJ("keydown.enter",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.deleteContractWithButton())}),t.TgZ(2,"nz-form-control",12),t.ALo(3,"translate"),t.TgZ(4,"nz-form-item",13),t._UZ(5,"input",14),t.ALo(6,"translate"),t.qZA()()()}if(2&I){const d=t.oxw();t.Q6J("formGroup",d.passwordForm),t.xp6(2),t.Q6J("nzErrorTip",t.lcZ(3,5,"COMMON.FORM.VALIDATION.PASSWORD.REQUIRED")),t.xp6(2),t.ekj("ant-form-item-has-error",d.passwordForm.controls.password.hasError("required")&&d.passwordForm.controls.password.dirty),t.xp6(1),t.Q6J("placeholder",t.lcZ(6,7,"COMMON.FORM.PASSWORD"))}}function Fe(I,g){1&I&&(t.TgZ(0,"div",15),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.DELETE.ERROR.OTHER")," "))}const Qe=function(I){return{"p-b-10":I}};let rt=class{constructor(g,d,P,z,ie,Ie,Xe){this.modal=g,this.clientService=d,this.formService=P,this.routerService=z,this.userService=ie,this.modalService=Ie,this.selectingService=Xe,this.errorOccurred=!1,this.PageRoutes=Ve.d,this.isLawyer=!1,this.deleteContractText=new o.PR("CLIENT.CONTRACTS.DELETE.BUTTON_STATES.DEFAULT","CLIENT.CONTRACTS.DELETE.BUTTON_STATES.WORKING","CLIENT.CONTRACTS.DELETE.BUTTON_STATES.SUCCESS","CLIENT.CONTRACTS.DELETE.BUTTON_STATES.FAILED"),this.submitted=!1}ngOnInit(){this.isLawyer=this.userService.isLawyer,this.isLawyer||(this.passwordForm=this.formService.confirmPasswordFormGroup())}close(g){g?this.modal.triggerOk():this.modal.triggerCancel()}deleteContractWithButton(){this.deleteContractFunction=()=>
918{if(this.passwordForm&&this.passwordForm.valid||this.isLawyer)return this.deleteContract();Object.values(this.passwordForm.controls).forEach(g=>{g.invalid&&(g.markAsDirty(),g.updateValueAndValidity({onlySelf:!0}))})}}deleteContract(){if(this.errorOccurred=!1,this.submitted=!0,Array.isArray(this.progressID)&&this.contracts){const g=new Map;this.progressID.map(P=>g.set(P,!0));const d=this.modalService.confirmDeleteModal(g,this.contracts);return new Promise((P,z)=>{d.afterClose.pipe((0,W.P)()).subscribe(ie=>{ie?this.deleteContractsPromise().then(Xe=>{P(Xe)},Xe=>{console.log(Xe),z(Xe)}):z()})})}return this.deleteContractsPromise()}deleteContractsPromise(){let g;return Array.isArray(this.progressID)?(g=this.clientService.massDeleteContractInProgress(this.progressID,this.isLawyer?null:this.passwordForm.get("password").value).pipe((0,e.t)(this)).toPromise(),g.then(()=>{this.close(!0),this.selectingService.nullOutChecked()},d=>{this.passwordForm.setErrors({invalid:!0}),this.errorOccurred=!0})):(g=this.clientService.deleteContractInProgress(this.progressID,this.isLawyer?null:this.passwordForm.get("password").value).pipe((0,e.t)(this)).toPromise(),g.then(()=>{this.close(!0),this.selectingService.nullOutChecked()},d=>{this.passwordForm.setErrors({invalid:!0}),this.errorOccurred=!0})),g}};rt.\u0275fac=function(g){return new(g||rt)(t.Y36(v.Lf),t.Y36(r.y),t.Y36(c.o),t.Y36(ee.c),t.Y36(u.K),t.Y36(Ht),t.Y36(te.z))},rt.\u0275cmp=t.Xpm({type:rt,selectors:[["app-delete-contract-modal"]],inputs:{progressID:"progressID",contracts:"contracts"},decls:14,vars:18,consts:[[1,"ant-modal-body",3,"ngClass"],[1,"p-b-10"],[3,"innerHTML"],[4,"ngIf"],["id","mainForm","nz-form","","nzNoColon","",3,"formGroup","keydown.enter",4,"ngIf"],["class","p-l-25 p-b-10 p-r-25 text-danger text-right",4,"ngIf"],[1,"ant-modal-footer"],["nz-button","",3,"click"],["form","mainForm",1,"m-l-10",3,"nzType","nzDanger","runFunction","nzTextKeys","click"],[1,"color-secondary",3,"routerLink","click"],["id","mainForm","nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],["passwordNgForm","ngForm"],[3,"nzErrorTip"],[1,"m-b-0"],["nz-input","","type","password","formControlName","password","trim","blur",3,"placeholder"],[1,"p-l-25","p-b-10","p-r-25","text-danger","text-right"]],template:function(g,d){1&g&&(t.TgZ(0,"div")(1,"div",0)(2,"div",1),t._UZ(3,"p",2),t.ALo(4,"translate"),t.ALo(5,"translate"),t.YNc(6,Ue,8,7,"ng-container",3),t.qZA(),t.YNc(7,Ae,7,9,"form",4),t.qZA(),t.YNc(8,Fe,3,3,"div",5),t.TgZ(9,"div",6)(10,"button",7),t.NdJ("click",function(){return d.close(!1)}
918),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"app-multi-state-button",8),t.NdJ("click",function(){return d.deleteContractWithButton()}),t.qZA()()()),2&g&&(t.xp6(1),t.Q6J("ngClass",t.VKq(16,Qe,d.errorOccurred)),t.xp6(2),t.Q6J("innerHTML",d.isLawyer?t.lcZ(4,10,"CLIENT.CONTRACTS.DELETE.DESC_LAWYER"):t.lcZ(5,12,"CLIENT.CONTRACTS.DELETE.DESC"),t.oJD),t.xp6(3),t.Q6J("ngIf",!d.isLawyer),t.xp6(1),t.Q6J("ngIf",!d.isLawyer&&d.passwordForm),t.xp6(1),t.Q6J("ngIf",d.errorOccurred),t.xp6(3),t.hij(" ",t.lcZ(12,14,"COMMON.CANCEL")," "),t.xp6(2),t.Q6J("nzType",d.isLawyer||!d.submitted||d.submitted&&d.passwordForm&&d.passwordForm.valid?"primary":"default")("nzDanger",d.isLawyer||!d.submitted||d.submitted&&d.passwordForm&&d.passwordForm.valid)("runFunction",d.deleteContractFunction)("nzTextKeys",d.deleteContractText))},dependencies:[m._Y,m.Fj,m.JJ,m.JL,a.P,Pe.yS,f.mk,f.O5,m.sg,m.u,o.P4,O.ix,N.w,L.dQ,i.t3,i.SK,M.Lr,M.Nx,M.Fd,R.Zp,l.X$],encapsulation:2}),rt=(0,s.gn)([(0,e.c)()],rt);var Ct=n(99983),ht=n(52835),mt=n(90735),ye=n(8269),Ce=n(32046),j=n(2293),_e=n(74383),F=n(73325),ne=n(29562),U=n(20545),et=n(37570),ct=n(14954);function ft(I,g){1&I&&(t.TgZ(0,"div",6),t._UZ(1,"nz-skeleton-element",7),t.TgZ(2,"h4",8),t._UZ(3,"nz-skeleton-element",9),t.qZA(),t._UZ(4,"nz-skeleton-element",10),t.qZA()),2&I&&(t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("nzActive",!0)("nzSize",100)("@skeletonPosAbsLeave",void 0),t.xp6(2),t.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0))}function Ze(I,g){if(1&I&&(t.TgZ(0,"h4",13),t._uU(1),t.qZA()),2&I){const d=t.oxw(2);t.xp6(1),t.hij(" ",d.userData.name," ")}}function Oe(I,g){1&I&&(t.TgZ(0,"h4",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"COMMON.NO_PROFILE")," "))}function y(I,g){if(1&I&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&I){const d=t.oxw(2);t.xp6(1),t.Oqu(d.userData.mail)}}function x(I,g){if(1&I&&(t.TgZ(0,"div"),t._UZ(1,"nz-avatar",11),t.YNc(2,Ze,2,1,"h4",12),t.YNc(3,Oe,3,3,"h4",12),t.YNc(4,y,2,1,"p",2),t.qZA()),2&I){const d=t.oxw();t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("nzSize",100)("nzSrc",d.imagesToShow[d.userID]),t.xp6(1),t.Q6J("ngIf",d.userData&&d.userData.name),t.xp6(1),t.Q6J("ngIf",!d.userData||!d.userData.name),t.xp6(1),t.Q6J("ngIf",d.userData&&d.userData.mail)}}const E=function(I){return{count:I}};function T(I,g){if(1&I&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"translate"),t._UZ(3,"i",18),t.qZA()),2&I){t.oxw();const d=t.MAs(3),P=t.oxw();t.Q6J("nzDropdownMenu",d)("@skeletonPosAbsLeave",void 0),t.xp6(1),t.hij(" ",t.xi3(2,3,"CLIENT.PUBLIC.CONTRACTS_SHARED",t.VKq(6,E,P.sharesWithUser.length))," ")}}const S=function(){return{height:"40px"}};function $(I,g){if(1&I){const d=t.EpF();t.ynx(0),t.TgZ(1,"div",22),t.NdJ("click",function(){const ie=t.CHM(d).$implicit,Ie=t.oxw(3);return t.KtG(Ie.routeToContract(ie.progress.ID))}),t._UZ(2,"app-contract-progress-logo",23),t.TgZ(3,"li"),t._uU(4),t.TgZ(5,"p",24),t.ALo(6,"date"),t.ALo(7,"date"),t._uU(8),t.ALo(9,"translate"),t.ALo(10,"translate"),t.ALo(11,"dateAgo"),t.ALo(12,"dateAgo"),t.qZA()()(),t.BQk()}if(2&I){const d=g.$implicit,P=t.oxw(3);t.xp6(2),t.Akn(t.DdM(27,S)),t.Q6J("isComplete",d.progress.complete),t.xp6(2),t.hij(" ",d.progress.metadata.name?d.progress.metadata.name:d.displayElements.name," "),t.xp6(1),t.Q6J("nzTooltipTitle",d.progress.metadata.update?t.xi3(6,7,d.progress.metadata.update.timestamp,"yyyy-MM-dd HH:mm:ss"):t.xi3(7,10,d.progress.metadata.creation.timestamp,"yyyy-MM-dd HH:mm:ss")),t.xp6(3),t.AsE(" ",d.progress.metadata.update?t.lcZ(9,13,"COMMON.CONTRACT.INFO.MODIFIED"):t.lcZ(10,15,"COMMON.CONTRACT.INFO.CREATED")," ",d.progress.metadata.update?t.gM2(11,17,d.progress.metadata.update.timestamp,P.trigger,1,59):t.gM2(12,22,d.progress.metadata.creation.timestamp,P.trigger,1,59)," ")}}const pe=function(I){return{name:I}};function Re(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"ul",19),t.YNc(1,$,13,28,"ng-container",20),t.TgZ(2,"li",21),t.NdJ("click",function(){t.CHM(d);const z=t.oxw(2);return t.KtG(z.shareContractModal())}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&I){const d=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",d.sharesWithUser),t.xp6(2),t.hij(" ",t.xi3(4,2,"CLIENT.PUBLIC.SHARE_MORE",t.VKq(5,pe,d.userData.name?d.userData.name:d.userData.mail))," ")}}function Ke(I,g){if(1&I&&(t.ynx(0),t.YNc(1,T,4,8,"button",14),t.TgZ(2,"
918nz-dropdown-menu",null,15),t.YNc(4,Re,5,7,"ul",16),t.qZA(),t.BQk()),2&I){const d=t.oxw();t.xp6(1),t.Q6J("ngIf",d.sharesWithUser),t.xp6(3),t.Q6J("ngIf",d.userData)}}function nt(I,g){1&I&&t._UZ(0,"nz-skeleton-element",25),2&I&&t.Q6J("@skeletonPosAbsLeave",void 0)("nzActive",!0)}function lt(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.openConversation())}),t._UZ(1,"i",27),t.TgZ(2,"span",28),t._uU(3),t.ALo(4,"translate"),t.qZA()()}2&I&&(t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(3),t.hij(" ",t.lcZ(4,2,"CLIENT.CONVERSATIONS.FUNCTIONS.GO_TO")," "))}function $e(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.createNewConversation())}),t._UZ(1,"i",27),t.TgZ(2,"span",28),t._uU(3),t.ALo(4,"translate"),t.qZA()()}2&I&&(t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(3),t.hij(" ",t.lcZ(4,2,"CLIENT.CONVERSATIONS.FUNCTIONS.CREATE")," "))}let qe=class{constructor(g,d,P,z,ie,Ie,Xe,Mt,Dt){this.modal=g,this.chatService=d,this.clientService=P,this.dateTrigger=z,this.modalService=ie,this.routerService=Ie,this.userService=Xe,this.userInfosService=Mt,this.translate=Dt,this.imagesToShow={},this.UserType=G.FW,this.sharesWithUser=[],this.trigger=0,this.isLoading=!0}ngOnInit(){this.dateTrigger.trigger.subscribe(z=>{this.trigger=z});const g=new Promise((z,ie)=>{if(this.userInfosService.userImgs.has(this.userID)&&null!==this.userInfosService.userImgs.get(this.userID))z(this.userInfosService.userImgs.get(this.userID));else{this.userInfosService.batchGetUserImgsByIds([this.userID]);const Ie=this.userInfosService.userImgsChanged.pipe((0,e.t)(this)).subscribe(Xe=>{(!Xe.has(this.userID)||null!==Xe.get(this.userID))&&(z(this.userInfosService.userImgs.get(this.userID)),Ie.unsubscribe())})}});g.then(z=>{this.imagesToShow[this.userID]=z},z=>{});const d=new Promise((z,ie)=>{if(this.userInfosService.userInformations.has(this.userID)&&null!==this.userInfosService.userInformations.get(this.userID))z(this.userInfosService.userInformations.get(this.userID));else{this.userInfosService.batchGetUserNamesByIds([this.userID]);const Ie=this.userInfosService.userInformationsChanged.pipe((0,e.t)(this)).subscribe(Xe=>{(!Xe.has(this.userID)||null!==Xe.get(this.userID))&&(z(this.userInfosService.userInformations.get(this.userID)),Ie.unsubscribe())})}});let P;d.then(z=>{this.userData=z,this.modal.updateConfig({nzTitle:this.translate.instant("CLIENT.PUBLIC.TITLE",{name:this.userInfosService.hasNameOrMail(z)})});const ie=this.chatService.chatSnippetList.find(Ie=>Ie.participants.find(Xe=>Xe.userID===this.userID));this.editorChatID=ie?ie.chatID:""},z=>{}),P=this.userService.isClient?this.clientService.getContractShares(this.userID).pipe((0,e.t)(this)).toPromise().then(z=>{this.sharesWithUser=z},z=>{}):Promise.resolve(),Promise.all([d,g,P]).then(()=>{this.isLoading=!1},z=>{this.isLoading=!1})}createNewConversation(){this.chatService.createNewConversationWithUserID(this.userID,this.modal)}openConversation(){this.routerService.routeToChatByID(this.editorChatID),this.modal.close()}routeToContract(g){this.routerService.routeToContractRollback(g,"manage"),this.modal.close()}shareContractModal(){let g=this.userData;this.userData.name||(g=JSON.parse(JSON.stringify(this.userData)),g.name=this.userData.mail),this.modalService.shareContractModal(g,d=>this.updateShares(d),d=>this.updateShares(d),!this.editorChatID)}updateShares(g){g&&(this.sharesWithUser=g)}};qe.\u0275fac=function(g){return new(g||qe)(t.Y36(v.Lf),t.Y36(mt.a),t.Y36(r.y),t.Y36(ye.J),t.Y36(Ht),t.Y36(ee.c),t.Y36(u.K),t.Y36(Ce.h),t.Y36(l.sK))},qe.\u0275cmp=t.Xpm({type:qe,selectors:[["app-public-profile"]],inputs:{userID:"userID"},decls:8,vars:6,consts:[[1,"m-t-20","text-center","position-relative"],["class","w-100",4,"ngIf"],[4,"ngIf"],[1,"text-center","m-t-30"],["class","p-b-10","nzType","input","nzSize","large","style","width: 170px",3,"nzActive",4,"ngIf"],["nz-button","","nzType","primary","nzGhost","",3,"click",4,"ngIf"],[1,"w-100"],["nzType","avatar",3,"nzActive","nzSize"],[1,"m-t-30","w-100"],["nzType","input","nzSize","small",1,"w-100",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-10","w-80",3,"nzActive"],["nzIcon","user",1,"shadow",3,"nzSize","nzSrc"],["class","m-t-30",4,"ngIf"],[1,"m-t-30"],["nzType","link","class","link-like-button p-0 border-0 background-color-unset color-primary text-decoration-underline-hover","nz-dropdown","","nzTrigger","click","
918style","margin-left: 10px",3,"nzDropdownMenu",4,"ngIf"],["menu","nzDropdownMenu"],["nz-menu","",4,"ngIf"],["nzType","link","nz-dropdown","","nzTrigger","click",1,"link-like-button","p-0","border-0","background-color-unset","color-primary","text-decoration-underline-hover",2,"margin-left","10px",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["nz-menu",""],[4,"ngFor","ngForOf"],["nz-menu-item","",1,"background-primary","color-white","white-space-breakspaces","text-center","share-button-sizing",3,"click"],["nz-menu-item","",1,"row",3,"click"],[1,"contract-logo-alignment","mr-2",3,"isComplete"],["nz-tooltip","",1,"opacity-06","mb-0",3,"nzTooltipTitle"],["nzType","input","nzSize","large",1,"p-b-10",2,"width","170px",3,"nzActive"],["nz-button","","nzType","primary","nzGhost","",3,"click"],["nz-icon","","nzType","mail","theme","outline"],[1,"m-l-5"]],template:function(g,d){1&g&&(t.TgZ(0,"div",0),t.YNc(1,ft,5,8,"div",1),t.YNc(2,x,5,6,"div",2),t.YNc(3,Ke,5,2,"ng-container",2),t.qZA(),t.TgZ(4,"div",3),t.YNc(5,nt,1,2,"nz-skeleton-element",4),t.YNc(6,lt,5,4,"button",5),t.YNc(7,$e,5,4,"button",5),t.qZA()),2&g&&(t.xp6(1),t.Q6J("ngIf",d.isLoading),t.xp6(1),t.Q6J("ngIf",!d.isLoading),t.xp6(1),t.Q6J("ngIf",d.userService.isClient),t.xp6(2),t.Q6J("ngIf",null==d.editorChatID),t.xp6(1),t.Q6J("ngIf",""!==d.editorChatID&&null!=d.editorChatID),t.xp6(1),t.Q6J("ngIf",d.userData&&d.userData.kind===d.UserType.Client&&""===d.editorChatID&&null!=d.editorChatID))},dependencies:[f.sg,f.O5,j.k,_e.Dz,O.ix,N.w,L.dQ,F.wO,F.r9,ne.cm,ne.RR,xe.Ls,U.Xw,U.yx,U.yg,et.SY,f.uU,l.X$,ct.R],styles:['@charset "UTF-8";'],data:{animation:[ht.Ln]}}),qe=(0,s.gn)([(0,e.c)()],qe);var ve=n(71997),we=n(28736),De=n(37340),Be=n(78321),Le=n(47959),Ne=n(4788),oe=n(2577),ue=n(66152),Ge=n(38231),tt=n(81801);function pt(I,g){1&I&&(t.TgZ(0,"div",14),t._UZ(1,"nz-skeleton-element",15),t.qZA()),2&I&&(t.xp6(1),t.Q6J("nzActive",!0))}function ce(I,g){1&I&&(t.TgZ(0,"nz-list-item")(1,"div",8),t._UZ(2,"nz-skeleton-element",9),t.qZA(),t.TgZ(3,"div",10),t._UZ(4,"nz-skeleton-element",11)(5,"nz-skeleton-element",12),t.qZA(),t.YNc(6,pt,2,1,"div",13),t.ALo(7,"numberArray"),t.qZA()),2&I&&(t.xp6(2),t.Q6J("nzActive",!0),t.xp6(2),t.Q6J("nzActive",!0),t.xp6(1),t.Q6J("nzActive",!0),t.xp6(1),t.Q6J("ngForOf",t.lcZ(7,4,2)))}function Me(I,g){1&I&&(t.TgZ(0,"nz-list",6),t.YNc(1,ce,8,6,"nz-list-item",7),t.ALo(2,"numberArray"),t.qZA()),2&I&&(t.Q6J("nzItemLayout","horizontal")("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,3,3)))}function he(I,g){if(1&I&&t._UZ(0,"app-contract-progress-logo",27),2&I){const d=t.oxw().$implicit;t.Q6J("isComplete",d.progress.complete)}}function Ye(I,g){if(1&I&&(t.TgZ(0,"h5",28),t._uU(1),t.qZA()),2&I){const d=t.oxw().$implicit;t.xp6(1),t.hij(" ",d.progress.metadata.name?d.progress.metadata.name:d.displayElements.name," ")}}const He=function(I,g){return{contract:I,user:g}},at=function(){return{"max-width":"50%"}},me=function(I){return[I]};function Te(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"nz-list-item",18)(1,"nz-list-item-meta",19),t.YNc(2,he,1,1,"ng-template",null,20,t.W1O),t.YNc(4,Ye,2,1,"ng-template",null,21,t.W1O),t.TgZ(6,"nz-list-item-meta-title")(7,"p",22),t.ALo(8,"date"),t.ALo(9,"date"),t._uU(10),t.ALo(11,"translate"),t.ALo(12,"translate"),t.ALo(13,"dateAgo"),t.ALo(14,"dateAgo"),t.qZA()()(),t.TgZ(15,"ul",23)(16,"nz-list-item-action",24)(17,"app-multi-state-button",25),t.NdJ("nzOnConfirm",function(){const ie=t.CHM(d).$implicit,Ie=t.oxw(2);return t.KtG(Ie.submitRemove(ie.progress.ID))}),t.ALo(18,"translate"),t.ALo(19,"translate"),t.ALo(20,"translate"),t.qZA()(),t.TgZ(21,"nz-list-item-action",24),t._UZ(22,"app-multi-state-button",26),t.qZA()()()}if(2&I){const d=g.$implicit,P=t.MAs(3),z=t.MAs(5),ie=t.oxw(2);t.Q6J("@inOutContract",void 0),t.xp6(1),t.Q6J("nzAvatar",P)("nzDescription",z),t.xp6(6),t.Q6J("nzTooltipTitle",d.progress.metadata.update?t.xi3(8,20,d.progress.metadata.update.timestamp,"yyyy-MM-dd HH:mm:ss"):t.xi3(9,23,d.progress.metadata.creation.timestamp,"yyyy-MM-dd HH:mm:ss")),t.xp6(3),t.AsE(" ",d.progress.metadata.update?t.lcZ(11,26,"COMMON.CONTRACT.INFO.MODIFIED"):t.lcZ(12,28,"COMMON.CONTRACT.INFO.CREATED")," ",d.progress.metadata.update?t.xi3(13,30,d.progress.metadata.update.timestamp,ie.trigger):t.xi3(14,33,d.progress.metadata.creation.timestamp,ie.trigger)," "),t.xp6(7),t.Q6J("showAsLink",!0)("nzPopconfirmTitle",t.xi3(18,36,"CLIENT.CONTRACTS.UNSHARE.QUESTION",t.WLB(43,He,d.progress.metadata.name?d.progress.metadata.name:d.displayElements.name,ie.selectedUser.name)))("nzPopconfirmOverlayStyle",t.DdM(46,at))("nzCancelText",t.lcZ(19,39,"COMMON.CANCEL"))("nzOkText",t.lcZ(20,41,"CLIENT.CONTRACTS.UNSHARE.UNSHARE"))("runFunction",ie.runFunctionMap.get(d.progress.ID))("stickResult",!1)("nzTextKeys",ie.removeText),t.xp6(5),t.Q6J("defaultFunction",ie.changePermissionWithButton)("defaultFunctionParameters",t.VKq(47,me,d))("selectedOption",d.progress.permissions.permissions[ie.selectedUser.userID]&&d.progress.permissions.permissions[ie.selectedUser.userID].level===ie.PermissionLevel.Read?"CLIENT.CONTRACTS.SHARE.PERMISSIONS.VIEW_ONLY_DISABLED":"CLIENT.CONTRACTS.SHARE.PERMISSIONS.EDIT_DISABLED")("unstickTrigger",ie.changePermissionUnstickTrigger)("showAsSelection",!0)("selectOptions",ie.selectOptionsMap.has(d.progress.ID)?ie.selectOptionsMap.get(d.progress.ID):null)}}function _(I,g){if(1&I&&(t.TgZ(0,"nz-list",16),t.YNc(1,Te,23,49,"
918nz-list-item",17),t.qZA()),2&I){const d=t.oxw();t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("ngForOf",d.sharesWithUser)}}function ot(I,g){1&I&&(t._UZ(0,"nz-empty",29),t.ALo(1,"translate")),2&I&&t.Q6J("@skeletonPosAbsLeave",void 0)("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",t.lcZ(1,3,"CLIENT.CONTRACTS.SHARE.WARNING.NOTHING_SHARED_WITH"))}const je=function(I){return{user:I}};function At(I,g){if(1&I&&(t._UZ(0,"nz-avatar",30),t._uU(1),t.ALo(2,"translate")),2&I){const d=t.oxw();t.Q6J("nzSrc",d.imageToShow),t.xp6(1),t.hij(" ",t.xi3(2,2,"CLIENT.CONTRACTS.SHARE.CHOOSE_CONTRACT_TO_SHARE_WITH",t.VKq(5,je,d.selectedUser.name)),"\n")}}function Et(I,g){1&I&&t._UZ(0,"nz-skeleton-element",39),2&I&&t.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0)}function gt(I,g){if(1&I&&(t.TgZ(0,"nz-option",43)(1,"div",44),t._UZ(2,"nz-avatar",45),t.TgZ(3,"div",46)(4,"h6",47),t._uU(5),t.qZA(),t.TgZ(6,"span",48),t.ALo(7,"date"),t.ALo(8,"date"),t._uU(9),t.ALo(10,"translate"),t.ALo(11,"translate"),t.ALo(12,"dateAgo"),t.ALo(13,"dateAgo"),t.qZA()()()()),2&I){const d=g.$implicit,P=t.oxw(3);t.Q6J("nzLabel",d.progress.metadata.name?d.progress.metadata.name:d.displayElements.name)("nzValue",d.progress.ID),t.xp6(2),t.s9C("nzSrc",P.ClientRoutes.apiRouteContractIcon(d.displayElements.iconDark)),t.xp6(3),t.hij(" ",d.progress.metadata.name?d.progress.metadata.name:d.displayElements.name," "),t.xp6(1),t.Q6J("nzTooltipTitle",d.progress.metadata.update?t.xi3(7,7,d.progress.metadata.update.timestamp,"yyyy-MM-dd HH:mm:ss"):t.xi3(8,10,d.progress.metadata.creation.timestamp,"yyyy-MM-dd HH:mm:ss")),t.xp6(3),t.AsE(" ",d.progress.metadata.update?t.lcZ(10,13,"COMMON.CONTRACT.INFO.MODIFIED"):t.lcZ(11,15,"COMMON.CONTRACT.INFO.CREATED")," ",d.progress.metadata.update?t.xi3(12,17,d.progress.metadata.update.timestamp,P.trigger):t.xi3(13,20,d.progress.metadata.creation.timestamp,P.trigger)," ")}}function Pt(I,g){if(1&I&&(t.TgZ(0,"nz-form-control",40),t.ALo(1,"translate"),t.TgZ(2,"nz-select",41),t.ALo(3,"translate"),t.YNc(4,gt,14,23,"nz-option",42),t.qZA()()),2&I){const d=t.oxw(2);t.Q6J("nzValidateStatus",d.contractToShareForm.controls.contractToShare)("nzErrorTip",t.lcZ(1,7,"CLIENT.CONTRACTS.SHARE.INPUT_ERROR"))("@skeletonPosAbsLeave",void 0),t.xp6(2),t.Q6J("nzPlaceHolder",t.lcZ(3,9,"CLIENT.CONTRACTS.SHARE.CHOOSE_CONTRACT"))("nzOptionHeightPx",56)("formControlName","contractToShare"),t.xp6(2),t.Q6J("ngForOf",d.sharableContracts)}}function ze(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"button",53),t.NdJ("click",function(){t.CHM(d);const z=t.oxw(3);return z.modal.close(),t.KtG(z.routerService.routeToContractCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"COMMON.CONTRACT.FUNCTIONS.CREATE_NOW")," "))}function ke(I,g){if(1&I&&(t.TgZ(0,"nz-form-control",40),t.ALo(1,"translate"),t.TgZ(2,"nz-select",49),t.ALo(3,"translate"),t.TgZ(4,"nz-option",50)(5,"nz-empty",51),t.ALo(6,"translate"),t.YNc(7,ze,3,3,"ng-template",null,52,t.W1O),t.qZA()()()()),2&I){const d=t.MAs(8),P=t.oxw(2);t.Q6J("nzValidateStatus",P.contractToShareForm.controls.contractToShare)("nzErrorTip",t.lcZ(1,8,"CLIENT.CONTRACTS.SHARE.INPUT_ERROR")),t.xp6(2),t.Q6J("nzOptionHeightPx",200)("nzPlaceHolder",t.lcZ(3,10,"CLIENT.CONTRACTS.SHARE.CHOOSE_CONTRACT"))("formControlName","contractToShare"),t.xp6(3),t.Q6J("nzNotFoundContent",t.lcZ(6,12,"CLIENT.CONTRACTS.SHARE.WARNING.NO_MORE"))("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundFooter",d)}}const Je=function(I){return{name:I}};function ut(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"div"),t._UZ(1,"nz-divider",31),t.TgZ(2,"p"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"form",32)(6,"nz-form-item",33),t.YNc(7,Et,1,2,"nz-skeleton-element",34),t.YNc(8,Pt,5,11,"nz-form-control",35),t.YNc(9,ke,9,14,"nz-form-control",35),t.qZA()(),t.TgZ(10,"div",36)(11,"div",37),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"app-multi-state-button",38),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.shareContractWithButton())}),t.qZA()()()}if(2&I){const d=t.oxw(),P=t.MAs(5);t.xp6(1),t.Q6J("nzText",P),t.xp6(2),t.Oqu(t.lcZ(4,11,"CLIENT.CONTRACTS.SHARE.WARNING.LIMIT")),t.xp6(2),t.Q6J("formGroup",d.contractToShareForm),t.xp6(2),t.Q6J("ngIf",!d.sharesWithUser||!d.sharableContracts),t.xp6(1),t.Q6J("ngIf",d.sharesWithUser&&d.sharableContracts&&d.sharableContracts.length>0),t.xp6(1),t.Q6J("ngIf",d.sharableContracts&&0===d.sharableContracts.length),t.xp6(3),t.hij(" ",t.xi3(13,13,"CLIENT.CONTRACTS.SHARE.FOOTER_DESCRIPTION",t.VKq(16,Je,d.selectedUser.name))," "),t.xp6(2),t.Q6J("runFunction",d.runFunction)("nzTextKeys",d.shareText)("nzGhost",!d.contractToShareForm||!d.contractToShareForm.valid)("unstickTrigger",d.unstickTrigger)}}let Ot=class{constructor(g,d,P,z,ie,Ie,Xe){this.clientService=g,this.dateTrigger=d,this.contractService=P,this.routerService=z,this.formService=ie,this.modal=Ie,this.userInfos=Xe,this.ClientRoutes=we.i,this.ColorSettings=Be.y,this.PermissionLevel=ve.V5g,this.trigger=0,this.contractToShare="",this.unstickTrigger=0,this.shareText=new o.PR("CLIENT.CONTRACTS.SHARE.SHARE","CLIENT.CONTRACTS.SHARE.SHARING","CLIENT.CONTRACTS.SHARE.SHARED","CLIENT.CONTRACTS.SHARE.FAILED"),this.runFunctionMap=new Map,this.removeText=new o.PR("CLIENT.CONTRACTS.UNSHARE.BUTTON_STATES.CHANGE","CLIENT.CONTRACTS.UNSHARE.BUTTON_STATES.CHANGING","CLIENT.CONTRACTS.UNSHARE.BUTTON_STATES.CHANGED","CLIENT.CONTRACTS.UNSHARE.BUTTON_STATES.FAILED"),this.changePermissionUnstickTrigger=0,this.selectOptions=["CLIENT.CONTRACTS.SHARE.PERMISSIONS.VIEW_ONLY_ENABLED","CLIENT.CONTRACTS.SHARE.PERMISSIONS.EDIT_ENABLED"],this.selectOptionsMap=new Map,this.imageToShow=null}ngOnInit(){if(this.selectedUser&&(this.selectedUser.userID?this.selectedUser.ID=this.selectedUser.userID:this.selectedUser.ID&&(this.selectedUser.userID=this.selectedUser.ID)),this.dateTrigger.trigger.subscribe(g=>{this.trigger=g}),this.contractService.getContracts(),this.contractService.contracts.subscribe(g=>{this.usersContracts=g,this.sharableContracts=[...this.usersContracts],this.clientService.getContractShares(this.selectedUser.userID).pipe((0,e.t)(this)).subscribe(d=>{this.sharesWithUser=d,this.makeRunFunctionMap();let P=this.sharableContracts.length-1;for(;-1!==P;){for(let z of this.sharesWithUser)if(this.sharableContracts[P].progress.ID===z.progress.ID){this.sharableContracts.splice(P,1);break}P--}})}),this.createContractToShareForm(),this.changePermissionWithButton=(g,d)=>{let P=ve.V5g.Read;switch(g){case this.selectOptions[0]:P=ve.V5g.Read;break;case this.selectOptions[1]:P=ve.V5g.Write}return this.changePermission(P,d)},this.userInfos.userImgs.has(this.selectedUser.userID)&&null!=this.userInfos.userImgs.get(this.selectedUser.userID))this.imageToShow=this.userInfos.userImgs.get(this.selectedUser.userID);else{const g=this.userInfos.userImgsChanged.pipe((0,e.t)(this)).subscribe(()=>{this.userInfos.userImgs.has(this.selectedUser.userID)&&null!=this.userInfos.userImgs.get(this.selectedUser.userID)&&(this.imageToShow=this.userInfos.userImgs.get(this.selectedUser.userID),g.unsubscribe())});this.userInfos.batchGetUserImgsByIds([this.selectedUser.userID])}}makeRunFunctionMap(){this.runFunctionMap.clear(),this.sharesWithUser.forEach(g=>{this.runFunctionMap.set(g.progress.ID,null),this.selectOptionsMap.set(g.progress.ID,g.progress.permissions.permissions[this.selectedUser.userID].level===ve.V5g.Read?["CLIENT.CONTRACTS.SHARE.PERMISSIONS.VIEW_ONLY_DISABLED","CLIENT.CONTRACTS.SHARE.PERMISSIONS.EDIT_ENABLED"]:["CLIENT.CONTRACTS.SHARE.PERMISSIONS.VIEW_ONLY_ENABLED","CLIENT.CONTRACTS.SHARE.PERMISSIONS.EDIT_DISABLED"])})}createContractToShareForm(){this.contractToShareForm=this.formService.contractToShareFormGroup(this.contractToShare),this.contractToShareForm.statusChanges.subscribe(g=>{this.contractToShareForm.dirty&&(this.unstickTrigger=Math.random())})}submitRemove(g){this.runFunctionMap.set(g,()=>this.removeAccess(g))}removeAccess(g){const d=this.sharesWithUser.find(P=>P.progress.ID===g);return this.clientService.unshareContract(g,this.selectedUser.userID).pipe((0,e.t)(this)).toPromise().then(P=>(d.progress=P,this.refreshShares(d,ve.aAH.Unshare)))}changePermission(g,d){this.updateChangePermissionUnstickTrigger();const P=d.progress.ID,z=d.progress.permissions.permissions[this.selectedUser.userID].level;d.progress.permissions.permissions[this.selectedUser.userID].level=g;const ie=this.clientService.shareContractByUserID(P,this.selectedUser.userID,g).pipe((0,e.t)(this)).toPromise();return ie.then(Ie=>{d.progress=Ie,this.refreshShares(d,g===ve.V5g.Read?ve.aAH.UpdateToRead:ve.aAH.UpdateToWrite)},Ie=>{d.progress.permissions.permissions[this.selectedUser.userID].level=z}),ie}shareContractWithButton(){if(this.contractToShare=this.formService.groupToContractToShare(this.contractToShareForm),""!==this.contractToShare&&null!=this.contractToShare)this.runFunction=()=>this.shareContract();else{this.contractToShareForm.markAllAsTouched();for(const g of Object.keys(this.contractToShareForm.controls))this.contractToShareForm.controls[g].markAsTouched(),this.contractToShareForm.controls[g].updateV
918alueAndValidity();this.contractToShareForm.updateValueAndValidity()}}shareContract(){if(this.contractToShare=this.formService.groupToContractToShare(this.contractToShareForm),""!==this.contractToShare&&null!=this.contractToShare)return this.clientService.shareContractByUserID(this.contractToShare,this.selectedUser.userID,ve.V5g.Read).pipe((0,e.t)(this)).toPromise().then(g=>{const d=this.sharableContracts.find(P=>P.progress.ID===this.contractToShare);return d.progress=g,this.contractToShare="",this.createContractToShareForm(),this.refreshShares(d,ve.aAH.Share)},g=>Promise.reject())}refreshShares(g,d){let P=[];return this.clientService.getContractsInProgress().pipe((0,e.t)(this)).toPromise().then(z=>{P=this.contractService.sortContracts(z)},z=>{P=[]}).then(()=>{this.clientService.getContractShares(this.selectedUser.userID).pipe((0,e.t)(this)).subscribe(z=>{this.sharableContracts=[],this.sharableContracts=P,g&&d===ve.aAH.Share&&!z.find(Ie=>Ie.progress.ID===g.progress.ID)&&this.sharesWithUser.push(g),this.sharesWithUser=this.sharesWithUser.filter(Ie=>(!g||g.progress.ID!==Ie.progress.ID||d!==ve.aAH.Unshare)&&(g&&g.progress.ID===Ie.progress.ID&&d===ve.aAH.Share||z.find(Xe=>Xe.progress.ID===Ie.progress.ID))),z.forEach(Ie=>{const Xe=this.sharesWithUser.findIndex(Mt=>Mt.progress.ID===Ie.progress.ID);-1!==Xe||g&&g.progress.ID===Ie.progress.ID&&d===ve.aAH.Unshare?Xe>0&&Ie.progress.permissions.permissions[this.selectedUser.userID].level!==this.sharesWithUser[Xe].progress.permissions.permissions[this.selectedUser.userID].level&&(!g||g.progress.ID!==Ie.progress.ID||d===ve.aAH.UpdateToRead&&Ie.progress.permissions.permissions[this.selectedUser.userID].level===ve.V5g.Read||d===ve.aAH.UpdateToWrite&&Ie.progress.permissions.permissions[this.selectedUser.userID].level===ve.V5g.Write)&&this.sharesWithUser.splice(Xe,1,Ie):this.sharesWithUser.push(Ie)});let ie=this.sharableContracts.length-1;for(;-1!==ie;){for(let Ie of this.sharesWithUser)if(this.sharableContracts[ie].progress.ID===Ie.progress.ID){this.sharableContracts.splice(ie,1);break}ie--}this.makeRunFunctionMap()})},z=>Promise.reject())}updateChangePermissionUnstickTrigger(){this.changePermissionUnstickTrigger=Math.random()}};Ot.\u0275fac=function(g){return new(g||Ot)(t.Y36(r.y),t.Y36(ye.J),t.Y36(Le.W),t.Y36(ee.c),t.Y36(c.o),t.Y36(v.Lf),t.Y36(Ce.h))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["app-shares-with-user-modal"]],inputs:{selectedUser:"selectedUser",isSharingDisabled:"isSharingDisabled"},decls:7,vars:4,consts:[[1,"position-relative"],["class","w-100",3,"nzItemLayout",4,"ngIf"],["nzItemLayout","horizontal",4,"ngIf"],["class","w-100",3,"nzNotFoundImage","nzNotFoundContent",4,"ngIf"],["dividerTemplate",""],[4,"ngIf"],[1,"w-100",3,"nzItemLayout"],[4,"ngFor","ngForOf"],[1,"ant-skeleton-header","ng-star-inserted","col-1","p-l-0"],["nzType","avatar","nzSize","large","nzShape","square",3,"nzActive"],[1,"ant-skeleton-content","ng-star-inserted","col-5"],["nzType","input","nzSize","small",1,"p-b-5","w-100",3,"nzActive"],["nzType","input","nzSize","small",1,"w-100",3,"nzActive"],["class","ant-skeleton-content ng-star-inserted col-3",4,"ngFor","ngForOf"],[1,"ant-skeleton-content","ng-star-inserted","col-3"],["nzType","input","nzSize","small",1,"p-b-10","w-100","skeleton-h-20px",3,"nzActive"],["nzItemLayout","horizontal"],["class","d-flex flex-wrap",4,"ngFor","ngForOf"],[1,"d-flex","flex-wrap"],[1,"col-12","col-lg-5","p-0","col-xl-6",3,"nzAvatar","nzDescription"],["sharesavatar",""],["sharesTitle",""],["nz-tooltip","",1,"m-b-0",3,"nzTooltipTitle"],["nz-list-item-actions","",1,"col-12","col-lg-7","p-0","col-xl-6","margin-adjustment","d-flex","flex-wrap"],[1,"p-0"],["nz-popconfirm","","nzPopconfirmPlacement","right",3,"showAsLink","nzPopconfirmTitle","nzPopconfirmOverlayStyle","nzCancelText","nzOkText","runFunction","stickResult","nzTextKeys","nzOnConfirm"],["nzType","primary",1,"downloadButton",3,"defaultFunction","defaultFunctionParameters","selectedOption","unstickTrigger","showAsSelection","selectOptions"],[3,"isComplete"],[1,"mb-0"],[1,"w-100",3,"nzNotFoundImage","nzNotFoundContent"],["nzIcon","user",3,"nzSrc"],["nzOrientation","left",1,"shareWithDivider",2,"padding-top","15px","padding-bottom","5px","white-space","pre-wrap","word-wrap","break-word",3,"nzText"],["nz-form","","nzNoColon","",1,"w-100",3,"formGroup"],[1,"w-100","position-relative"],["class","w-100","style","margin-top: 1.5rem","nzType","input","nzSize","large",3,"nzActive",4,"ngIf"],["class","w-100",3,"nzValidateStatus","nzErrorTip",4,"ngIf"],["nz-row","","nzJustify","end",1,"flex-nowrap",2,"padding-top","24px"],[1,"font-size-smaller","p-r-10"],["nzType","primary",1,"downloadButton",3,"runFunction","nzTextKeys","nzGhost","unstickTrigger","click"],["nzType","input","nzSize","large",1,"w-100",2,"margin-top","1.5rem",3,"nzActive"],[1,"w-100",3,"nzValidateStatus","nzErrorTip"],["nzRequired","",2,"width","100%","margin-top","1.5rem",3,"nzPlaceHolder","nzOptionHeightPx","formControlName"],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[1,"media","m-b-5"],["nzShape","square",2,"background","none",3,"nzSrc"],[1,"media-body","m-l-20"],[1,"m-b-0"],["nz-tooltip","",1,"font-size-13","text-gray",3,"nzTooltipTitle"],["nzRequired","",2,"width","100%","margin-top","1.5rem",3,"nzOptionHeightPx","nzPlaceHolder","formControlName"],["nzCustomContent",""],[3,"nzNotFoundContent","nzNotFoundImage","nzNotFoundFooter"],["footerTpl",""],["nz-button","","nzType","primary",1,"button-text-wrap",3,"click"]],template:function(g,d){1&g&&(t.TgZ(0,"div",0),t.YNc(1,Me,3,5,"nz-list",1),t.YNc(2,_,2,2,"nz-list",2),t.YNc(3,ot,2,5,"nz-empty",3),t.qZA(),t.YNc(4,At,3,7,"ng-template",null,4,t.W1O),t.YNc(6,ut,15,18,"div",5)),2&g&&(t.xp6(1),t.Q6J("ngIf",!d.sharesWithUser||!d.sharableContracts),t.xp6(1),t.Q6J("ngIf",d.sharesWithUser&&d.sharableContracts),t.xp6(1),t.Q6J("ngIf",d.sharesWithUser&&0===d.sharesWithUser.length),t.xp6(3),t.Q6J("ngIf",!d.isSharingDisabled))},dependencies:[m._Y,m.JJ,m.JL,f.sg,f.O5,m.sg,m.u,j.k,o.P4,_e.Dz,O.ix,N.w,L.dQ,Ne.p9,oe.g,i.t3,i.SK,M.Lr,M.Nx,M.Fd,ue.n_,ue.AA,ue.yi,ue.IO,ue.nk,ue.KC,Q.JW,Ge.Ip,Ge.Vq,U.Xw,U.yx,U.yg,et.SY,f.uU,l.X$,ct.R,tt.A],styles:['@charset "UTF-8";.shareWithDivider[_ngcontent-%COMP%]:after{flex-grow:1;max-width:100%;width:auto;min-width:5%}.margin-adjustment[_ngcontent-%COMP%]{-moz-column-gap:10px;column-gap:10px}.margin-adjustment[_ngcontent-%COMP%] >li{padding:0!important}@media (max-width: 991.98px){.margin-adjustment[_ngcontent-%COMP%]{margin-left:52px;padding-right:52px!important}}@media (min-width: 992px){.margin-adjustment[_ngcontent-%COMP%]{margin-left:0;margin-right:0}}
918'],data:{animation:[ht.Ln,(0,De.X$)("isLoading",[(0,De.SB)("1",(0,De.oB)({opacity:1,width:"*"})),(0,De.SB)("0",(0,De.oB)({opacity:0,width:"0"})),(0,De.eR)("1 <=> 0",(0,De.jt)(300))]),(0,De.X$)("inOutContract",[(0,De.eR)(":enter",[(0,De.oB)({opacity:0,height:"0px"}),(0,De.jt)("0.1s ease-out",(0,De.oB)({opacity:1,height:"*"}))]),(0,De.eR)(":leave",[(0,De.oB)({opacity:1,height:"*"}),(0,De.jt)("0.3s ease-in",(0,De.oB)({opacity:0,height:"0px"}))])]),(0,De.X$)("inOutLoading",[(0,De.eR)(":enter",[(0,De.oB)({opacity:0,width:"0"}),(0,De.jt)("0.3s",(0,De.oB)({opacity:1,width:"*"}))]),(0,De.eR)(":leave",[(0,De.oB)({opacity:1,width:"*"}),(0,De.jt)("0.3s",(0,De.oB)({opacity:0,width:"0"}))])])]}}),Ot=(0,s.gn)([(0,e.c)()],Ot);var xt=n(9865);let Ut=(()=>{class I{constructor(){}ngOnInit(){}}return I.\u0275fac=function(d){return new(d||I)},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-save-in-progress-modal"]],decls:5,vars:4,consts:[[1,"containerDiv"],["nzSimple","",1,"p-v-10",3,"nzSize"]],template:function(d,P){1&d&&(t.TgZ(0,"div",0),t._UZ(1,"nz-spin",1),t.TgZ(2,"span"),t._uU(3),t.ALo(4,"translate"),t.qZA()()),2&d&&(t.xp6(1),t.Q6J("nzSize","large"),t.xp6(2),t.Oqu(t.lcZ(4,2,"CLIENT.CONTRACTS.SAVE_IN_PROGRESS_MODAL.DESCRIPTION")))},dependencies:[Ee.W,l.X$],styles:['@charset "UTF-8";.containerDiv[_ngcontent-%COMP%]{text-align:center}']}),I})();var Lt=n(75489),yt=n(21243); 919/* 920 * @license 921 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 922 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 923 *
924 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 925 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 926 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 927 * trade secret or copyright law. 928 * 929 * Dissemination of this information or reproduction of this material is strictly forbidden 930 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 931 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 932 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 933 * explicitly covering such access. 934 * 935 * The copyright notice above does not evidence any actual or intended publication or disclosure 936 * of this source code, which includes information that is confidential and/or proprietary, 937 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 938 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 939 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 940 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 941 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 942 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 943 * IN WHOLE OR IN PART. 944 */function Bt(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"div",7)(1,"label",8),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"nz-switch",9),t.NdJ("ngModelChange",function(z){t.CHM(d);const ie=t.oxw();return t.KtG(ie.copyWithPermission=z)}),t.qZA()()()}if(2&I){const d=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,2,"CLIENT.CONTRACTS.PROGRESSES.COPY.COPY_PERMISSIONS")," "),t.xp6(2),t.Q6J("ngModel",d.copyWithPermission)}}function Rt(I,g){1&I&&(t.TgZ(0,"p",10),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.PROGRESSES.COPY.NAME_FAILED"),"\n"))}function nn(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"div")(1,"div",11)(2,"button",12),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.nameChangeFailed&&z.createdContractID?z.closeWhenNameFailed():z.modal.close(!1))}),t._uU(3),t.ALo(4,"translate"),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"app-multi-state-button",13),t.qZA()()}if(2&I){const d=t.oxw();t.xp6(3),t.hij(" ",d.nameChangeFailed?t.lcZ(4,6,"CLIENT.CONTRACTS.PROGRESSES.COPY.CANCEL_NAME_TEXT"):t.lcZ(5,8,"CLIENT.CONTRACTS.PROGRESSES.COPY.CANCEL_TEXT")," "),t.xp6(3),t.Q6J("nzType","primary")("defaultFunction",d.defaultSubmitFunction)("runFunction",d.submitRunFunction)("stickResult",!1)("nzTextKeys",d.submitText)}}let zt=class{constructor(g,d,P,z,ie){this.formService=g,this.modal=d,this.clientService=P,this.routerService=z,this.eventService=ie,this.copyWithPermission=!1,this.nameChangeFailed=!1,this.submitText=new o.PR("CLIENT.CONTRACTS.PROGRESSES.COPY.SUBMIT.DEFAULT","CLIENT.CONTRACTS.PROGRESSES.COPY.SUBMIT.WORKING","CLIENT.CONTRACTS.PROGRESSES.COPY.SUBMIT.SUCCESS","CLIENT.CONTRACTS.PROGRESSES.COPY.SUBMIT.FAILED")}ngOnInit(){this.contractCopyEditForm=this.formService.shareContractGroup(),this.defaultSubmitFunction=()=>this.submitForm()}triggerSubmit(g){this.formService.triggerAutoSubmitWithEnter(g),this.submitRunFunction=this.nameChangeFailed?this.submitNameChange():this.submitForm()}submitForm(){return this.clientService.copyContract(this.contractID,this.copyWithPermission).pipe((0,e.t)(this)).toPromise().then(g=>(this.createdContractID=g.value,this.contractCopyEditForm.get("mail").value?this.submitNameChange():(this.routerService.routeToContract(this.createdContractID,!0),this.eventService.sendCopiedContract(this.createdContractID),this.modal.close(!1),Promise.resolve())),g=>(console.log(g),Promise.reject()))}closeWhenNameFailed(){this.routerService.routeToContract(this.createdContractID,!0),this.eventService.sendCopiedContract(this.createdContractID),this.modal.close(!1)}submitNameChange(){return this.clientService.postMetadata(this.createdContractID,this.contractCopyEditForm.get("mail").value).pipe((0,e.t)(this)).toPromise().then(()=>{this.routerService.routeToContract(this.createdContractID,!0),this.eventService.sendCopiedContract(this.createdContractID),this.modal.close(!1)},g=>(this.nameChangeFailed=!0,this.submitText=new o.PR("CLIENT.CONTRACTS.PROGRESSES.COPY.SUBMIT_NAME.DEFAULT","CLIENT.CONTRACTS.PROGRESSES.COPY.SUBMIT_NAME.WORKING","CLIENT.CONTRACTS.PROGRESSES.COPY.SUBMIT_NAME.SUCCESS","CLIENT.CONTRACTS.PROGRESSES.COPY.SUBMIT_NAME.FAILED"),this.defaultSubmitFunction=()=>this.submitNameChange(),Promise.reject()))}};zt.\u0275fac=function(g){return new(g||zt)(t.Y36(c.o),t.Y36(v.Lf),t.Y36(r.y),t.Y36(ee.c),t.Y36(Lt.P))},zt.\u0275cmp=t.Xpm({type:zt,selectors:[["app-copy-edit-modal"]],inputs:{contractID:"contractID",askPermission:"askPermission"},decls:14,vars:12,consts:[["nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],["nzFor","mail"],["nzErrorTip",""],["nz-input","","formControlName","mail","trim","blur",3,"placeholder"],["class","ant-form-item-label",4,"ngIf"],["class","text-danger mb-0",4,"ngIf"],[4,"nzModalFooter"],[1,"ant-form-item-label"],[1,"remove-after","permission-text"],[1,"ml-2",3,"ngModel","ngModelChange"],[1,"text-danger","mb-0"],[1,"row","text-center","flex-wrap","grid-gap-15"],["nz-button","","nzType","default",1,"button-flexing",3,"click"],[1,"multiLineButton","button-flexing",3,"nzType","defaultFunction","runFunction","stickResult","nzTextKeys"]],template:function(g,d){1&g&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"form",0),t.NdJ("keydown.enter",function(z){return d.triggerSubmit(z)}),t.TgZ(4,"nz-form-item")(5,"nz-form-label",1),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"nz-form-control",2),t._UZ(9,"
944input",3),t.ALo(10,"translate"),t.qZA()()(),t.YNc(11,Bt,5,4,"div",4),t.YNc(12,Rt,3,3,"p",5),t.YNc(13,nn,7,10,"div",6)),2&g&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"CLIENT.CONTRACTS.PROGRESSES.COPY.DESC")),t.xp6(2),t.Q6J("formGroup",d.contractCopyEditForm),t.xp6(3),t.hij(" ",t.lcZ(7,8,"CLIENT.CONTRACTS.PROGRESSES.COPY.NEW_NAME")," "),t.xp6(3),t.Q6J("placeholder",t.lcZ(10,10,"CLIENT.CONTRACTS.PROGRESSES.COPY.NEW_NAME")),t.xp6(2),t.Q6J("ngIf",d.askPermission&&!d.nameChangeFailed),t.xp6(1),t.Q6J("ngIf",d.nameChangeFailed))},dependencies:[m._Y,m.Fj,m.JJ,m.JL,m.On,a.P,f.O5,m.sg,m.u,o.P4,O.ix,N.w,L.dQ,i.t3,i.SK,M.Lr,M.Nx,M.iK,M.Fd,R.Zp,v.Uh,yt.i,l.X$],styles:['@charset "UTF-8";.remove-after[_ngcontent-%COMP%]:after{content:""!important}.button-flexing[_ngcontent-%COMP%]{flex:1 0 auto}.permission-text[_ngcontent-%COMP%]{white-space:normal;text-align:left;height:auto}']}),zt=(0,s.gn)([(0,e.c)()],zt);var Xt=n(66309),Zt=n(5963);function Kt(I,g){if(1&I){const d=t.EpF();t.ynx(0),t.TgZ(1,"button",1),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.triggerCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"app-multi-state-button",2),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.triggerOk())}),t.ALo(5,"translate"),t.qZA(),t.BQk()}if(2&I){const d=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"COMMON.CANCEL")," "),t.xp6(2),t.Q6J("nzGhost",!d.isValid)("runFunction",d.switchFunction)("nzTextKeys",d.switchText)("nzTooltipTitle",d.isValid?null:t.lcZ(5,7,d.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.INVALID"))}}let Ft=class{constructor(g,d,P){this.modal=g,this.formService=d,this.userService=P,this.isValid=!1,this.switchText=new o.PR(this.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.TO_COMPANY_BUTTON_STATES.DEFAULT",this.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.TO_COMPANY_BUTTON_STATES.WORKING",this.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.TO_COMPANY_BUTTON_STATES.SUCCESS",this.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.TO_COMPANY_BUTTON_STATES.FAILED")}ngAfterViewInit(){this.companyDataFormComponent.profileForm.statusChanges.subscribe(g=>{this.updateModalConfig("VALID"===g)})}updateModalConfig(g){Object.assign(this.profile,this.formService.groupToClientOwner(this.companyDataFormComponent.profileForm)),this.isValid=g}triggerCancel(){this.modal.triggerCancel()}triggerOk(){if(this.isValid&&this.successCallback){const g=this.successCallback(this,this.profile,()=>{},()=>{});g.then(d=>{},d=>{(0,Zt.H)(0).pipe((0,e.t)(this)).subscribe(()=>{this.formService.triggerProfileValidation(this.companyDataFormComponent.profileForm,this.companyDataFormComponent&&this.companyDataFormComponent.profileFormElement?this.companyDataFormComponent.profileFormElement.nativeElement:void 0,this.modal&&this.modal.containerInstance&&this.modal.containerInstance.getNativeElement()?this.modal.containerInstance.getNativeElement():void 0)})}),this.switchFunction=g}else this.formService.triggerProfileValidation(this.companyDataFormComponent.profileForm,this.companyDataFormComponent&&this.companyDataFormComponent.profileFormElement?this.companyDataFormComponent.profileFormElement.nativeElement:void 0,this.modal&&this.modal.containerInstance&&this.modal.containerInstance.getNativeElement()?this.modal.containerInstance.getNativeElement():void 0)}};Ft.\u0275fac=function(g){return new(g||Ft)(t.Y36(v.Lf),t.Y36(c.o),t.Y36(u.K))},Ft.\u0275cmp=t.Xpm({type:Ft,selectors:[["ng-component"]],viewQuery:function(g,d){if(1&g&&t.Gf(Xt.m,5),2&g){let P;t.iGM(P=t.CRH())&&(d.companyDataFormComponent=P.first)}},inputs:{profile:"profile",successCallback:"successCallback"},decls:2,vars:0,consts:[[4,"nzModalFooter"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary","nz-tooltip","",3,"nzGhost","runFunction","nzTextKeys","nzTooltipTitle","click"]],template:function(g,d){1&g&&(t._UZ(0,"app-company-data-form"),t.YNc(1,Kt,6,9,"ng-container",0))},dependencies:[o.P4,O.ix,N.w,L.dQ,v.Uh,et.SY,Xt.m,l.X$],encapsulation:2}),Ft=(0,s.gn)([(0,e.c)({checkProperties:!0})],Ft);var qt=n(64056);function on(I,g){if(1&I){const d=t.EpF();t.ynx(0),t.TgZ(1,"button",1),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.triggerCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"app-multi-state-button",2),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.triggerOk())}),t.ALo(5,"translate"),t.qZA(),t.BQk()}if(2&I){const d=t.oxw();
944t.xp6(2),t.hij(" ",t.lcZ(3,5,"COMMON.CANCEL")," "),t.xp6(2),t.Q6J("nzGhost",!d.isValid)("runFunction",d.switchFunction)("nzTextKeys",d.switchText)("nzTooltipTitle",d.isValid?null:t.lcZ(5,7,d.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.INVALID"))}}let Yt=class{constructor(g,d,P){this.modal=g,this.formService=d,this.userService=P,this.isValid=!1,this.switchText=new o.PR(this.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.TO_PERSONAL_BUTTON_STATES.DEFAULT",this.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.TO_PERSONAL_BUTTON_STATES.WORKING",this.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.TO_PERSONAL_BUTTON_STATES.SUCCESS",this.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.TO_PERSONAL_BUTTON_STATES.FAILED")}ngAfterViewInit(){this.personalDataFormComponent.profileForm.statusChanges.subscribe(g=>{this.updateModalConfig("VALID"===g)})}updateModalConfig(g){Object.assign(this.profile,this.formService.groupToClientPerson(this.personalDataFormComponent.profileForm)),this.isValid=g}triggerCancel(){this.modal.triggerCancel()}triggerOk(){if(this.isValid&&this.successCallback){const g=this.successCallback(this,this.profile,()=>{},()=>{});g.then(d=>{},d=>{(0,Zt.H)(0).pipe((0,e.t)(this)).subscribe(()=>{this.formService.triggerProfileValidation(this.personalDataFormComponent.profileForm,this.personalDataFormComponent&&this.personalDataFormComponent.profileFormElement?this.personalDataFormComponent.profileFormElement.nativeElement:void 0,this.modal&&this.modal.containerInstance&&this.modal.containerInstance.getNativeElement()?this.modal.containerInstance.getNativeElement():void 0)})}),this.switchFunction=g}else this.formService.triggerProfileValidation(this.personalDataFormComponent.profileForm,this.personalDataFormComponent&&this.personalDataFormComponent.profileFormElement?this.personalDataFormComponent.profileFormElement.nativeElement:void 0,this.modal&&this.modal.containerInstance&&this.modal.containerInstance.getNativeElement()?this.modal.containerInstance.getNativeElement():void 0)}};Yt.\u0275fac=function(g){return new(g||Yt)(t.Y36(v.Lf),t.Y36(c.o),t.Y36(u.K))},Yt.\u0275cmp=t.Xpm({type:Yt,selectors:[["ng-component"]],viewQuery:function(g,d){if(1&g&&t.Gf(qt.z,5),2&g){let P;t.iGM(P=t.CRH())&&(d.personalDataFormComponent=P.first)}},inputs:{profile:"profile",successCallback:"successCallback"},decls:2,vars:0,consts:[[4,"nzModalFooter"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary","nz-tooltip","",3,"nzGhost","runFunction","nzTextKeys","nzTooltipTitle","click"]],template:function(g,d){1&g&&(t._UZ(0,"app-personal-data-form"),t.YNc(1,on,6,9,"ng-container",0))},dependencies:[o.P4,O.ix,N.w,L.dQ,v.Uh,et.SY,qt.z,l.X$],encapsulation:2}),Yt=(0,s.gn)([(0,e.c)({checkProperties:!0})],Yt);var mn=n(93196),un=n(89181),Vt=n(6672); 945/* 946 * @license 947 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 948 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 949 *
950 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 951 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 952 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 953 * trade secret or copyright law. 954 * 955 * Dissemination of this information or reproduction of this material is strictly forbidden 956 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 957 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 958 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 959 * explicitly covering such access. 960 * 961 * The copyright notice above does not evidence any actual or intended publication or disclosure 962 * of this source code, which includes information that is confidential and/or proprietary, 963 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 964 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 965 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 966 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 967 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 968 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 969 * IN WHOLE OR IN PART. 970 */function $n(I,g){1&I&&t.GkF(0)}function jn(I,g){1&I&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"COMMON.FORM.VALIDATION.TOKENIZER.ALREADY_PRESENT")," "))}function hn(I,g){if(1&I&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&I){const d=t.oxw(4);t.xp6(1),t.hij(" ",d.restrictedErrorText," ")}}function Xn(I,g){if(1&I&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&I){const d=t.oxw(4);t.xp6(1),t.hij(" ",d.SRVErrorText," ")}}function Mn(I,g){1&I&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"COMMON.FORM.VALIDATION.TOKENIZER.ALREADY_PRESENT")," "))}function zn(I,g){if(1&I&&(t.ynx(0),t.YNc(1,hn,2,1,"span",8),t.YNc(2,Xn,2,1,"span",8),t.YNc(3,Mn,3,3,"span",8),t.BQk()),2&I){const d=t.oxw().$implicit,P=t.oxw(2);t.xp6(1),t.Q6J("ngIf",P.restrictedErrorText&&d.value!==P.specialyRestrictedValue),t.xp6(1),t.Q6J("ngIf",P.SRVErrorText&&d.value===P.specialyRestrictedValue),t.xp6(1),t.Q6J("ngIf",!P.restrictedErrorText)}}const Jt=function(I){return{control:I}};function qn(I,g){if(1&I&&(t.YNc(0,$n,1,0,"ng-container",7),t.YNc(1,jn,3,3,"ng-container",8),t.YNc(2,zn,4,3,"ng-container",8)),2&I){const d=g.$implicit,P=t.oxw(2);t.Q6J("ngTemplateOutlet",P.errorTemplate)("ngTemplateOutletContext",t.VKq(4,Jt,d)),t.xp6(1),t.Q6J("ngIf",d.dirty&&d.hasError("textValueAlreadyPresent")&&P.submitAttempted),t.xp6(1),t.Q6J("ngIf",d.dirty&&d.hasError("textValueIsRestricted")&&P.submitAttempted)}}function ei(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"form",3),t.YNc(1,qn,3,6,"ng-template",null,4,t.W1O),t.TgZ(3,"nz-form-control",5)(4,"input",6),t.NdJ("blur",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.addValueOnBlur())})("keydown.enter",function(z){t.CHM(d);const ie=t.oxw();return t.KtG(ie.addValueOnEnter(z.target.value))})("input",function(z){t.CHM(d);const ie=t.oxw();return t.KtG(ie.valueChanged(z.target.value))}),t.qZA()()()}if(2&I){const d=t.MAs(2),P=t.oxw();t.Q6J("formGroup",P.tokenizerForm),t.xp6(3),t.Q6J("nzValidateStatus",P.submitAttempted?P.tokenizerForm.controls.tokenizer:"success")("nzErrorTip",P.tokenizerForm.touched&&P.tokenizerForm.dirty&&!P.tokenizerForm.valid&&P.submitAttempted?d:"")("nzTooltipTitle",P.tooltipTitle),t.xp6(1),t.ekj("ant-zorro-input-error",P.tokenizerForm.touched&&P.tokenizerForm.dirty&&!P.tokenizerForm.valid&&P.submitAttempted),t.Q6J("placeholder",P.placeholder)}}function ti(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(){const ie=t.CHM(d).$implicit,Ie=t.oxw();return t.KtG(Ie.removeValue(ie))}),t._uU(1),t.qZA()}if(2&I){const d=g.$implicit;t.xp6(1),t.hij(" ",d," ")}}let ni=(()=>{class I{constructor(d,P,z){this.fb=d,this.formService=P,this.validatorService=z,this.placeholder="",this.tooltipTitle="",this.tokenList=[],this.restrictedValues=[],this.validators=[],this.resultChange=new t.vpe,this.previousValue="",this.submitAttempted=!1}ngOnInit(){this.tokenizerForm=this.fb.group({tokenizer:[null,this.tokenizerValidators()]},{updateOn:"change"})}ngOnChanges(d){d&&d.restrictedValues&&this.tokenizerForm&&this.tokenizerForm.get("tokenizer")&&(this.tokenizerForm.get("tokenizer").setValidators(this.tokenizerValidators()),this.tokenizerForm.get("tokenizer").updateV
970alueAndValidity(),this.addValueOnBlur())}addValue(d){const P=d||this.tokenizerForm.get("tokenizer").value;this.tokenList.push(P),this.emitResults(),this.resetTokenizerForm(),this.submitAttempted=!1}addValueOnBlur(){this.submitAttempted=!0,this.tokenizerForm.get("tokenizer").value&&this.tokenizerForm.valid&&this.addValue()}addValueOnEnter(d){this.tokenizerForm.updateValueAndValidity(),this.tokenizerForm.markAsDirty(),this.tokenizerForm.markAsTouched(),this.submitAttempted=!0,this.isValueValid(d)&&this.addValue(d)}emitResults(){this.resultChange.emit(this.tokenList)}isValueValid(d){return d&&!this.restrictedValues.includes(d)&&this.specialyRestrictedValue!==d&&!this.tokenList.includes(d)&&!this.validators.find(P=>null!==P(new m.p4(d)))}removeValue(d){const P=this.tokenList.findIndex(z=>z===d);-1!==P&&(this.tokenList.splice(P),this.emitResults())}resetTokenizerForm(){this.tokenizerForm.get("tokenizer").setValue(null),this.tokenizerForm.markAsPristine(),this.tokenizerForm.markAsUntouched()}tokenizerValidators(){return[this.validatorService.textValueAlreadyPresent(this.tokenList),this.validatorService.textValueAlreadyPresent(this.restrictedValues,"textValueIsRestricted"),...this.validators]}valueChanged(d){d&&(this.isValueValid(this.previousValue)&&this.previousValue.length+1===d.length&&d.startsWith(this.previousValue)&&new RegExp("[,; ]$").test(d)&&this.addValue(this.previousValue),this.previousValue=d)}}return I.\u0275fac=function(d){return new(d||I)(t.Y36(m.QS),t.Y36(c.o),t.Y36(un.o))},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-tokenizer-input"]],inputs:{errorTemplate:"errorTemplate",placeholder:"placeholder",tooltipTitle:"tooltipTitle",tokenList:"tokenList",restrictedValues:"restrictedValues",restrictedErrorText:"restrictedErrorText",specialyRestrictedValue:"specialyRestrictedValue",SRVErrorText:"SRVErrorText",validators:"validators"},outputs:{resultChange:"resultChange"},features:[t.TTD],decls:3,vars:2,consts:[["nzNoColon","",3,"formGroup",4,"ngIf"],[1,"m-t-10"],["nzMode","closeable","class","tokenizer-token",3,"nzOnClose",4,"ngFor","ngForOf"],["nzNoColon","",3,"formGroup"],["errorTipTemplate",""],["nz-tooltip","","nzTooltipPlacement","top",3,"nzValidateStatus","nzErrorTip","nzTooltipTitle"],["nz-input","","formControlName","tokenizer","trim","blur",3,"placeholder","blur","keydown.enter","input"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["nzMode","closeable",1,"tokenizer-token",3,"nzOnClose"]],template:function(d,P){1&d&&(t.YNc(0,ei,5,7,"form",0),t.TgZ(1,"div",1),t.YNc(2,ti,2,1,"nz-tag",2),t.qZA()),2&d&&(t.Q6J("ngIf",P.tokenizerForm),t.xp6(2),t.Q6J("ngForOf",P.tokenList))},dependencies:[m._Y,m.Fj,m.JJ,m.JL,a.P,f.sg,f.O5,f.tP,m.sg,m.u,i.t3,M.Fd,R.Zp,Vt.j,et.SY,l.X$],styles:["nz-tag.tokenizer-token>I{color:#fff}",'@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-form-item-explain-connected{opacity:1;height:-moz-fit-content;height:fit-content}nz-tag[_ngcontent-%COMP%]{background:#9579d1;color:#fff}']}),I})();const gn=["userNotFoundTemplate"];function ii(I,g){1&I&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"COMMON.FORM.VALIDATION.MAIL.MAX_LENGTH")," "))}function an(I,g){1&I&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"COMMON.FORM.VALIDATION.MAIL.INVALID")," "))}function Fn(I,g){if(1&I&&(t.YNc(0,ii,3,3,"ng-container",12),t.YNc(1,an,3,3,"ng-container",12)),2&I){const d=g.control;t.Q6J("ngIf",d.dirty&&d.hasError("maxlength")),t.xp6(1),t.Q6J("ngIf",d.dirty&&d.hasError("pattern"))}}function Pn(I,g){if(1&I&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate")),2&I){const d=t.oxw();t.hij(" ",d.notSharedWithUnregistered?t.lcZ(1,1,"CLIENT.CONTRACTS.SHARE.WARNING.USER_NOT_FOUND"):d.notSharedWithLawyer?t.lcZ(2,3,"CLIENT.CONTRACTS.SHARE.WARNING.NO_LAWYER_SHARING"):t.lcZ(3,5,"CLIENT.CONTRACTS.SHARE.FAILED")," ")}}function en(I,g){1&I&&(t.TgZ(0,"h6",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.SHARE.TOO_MANY"),"\n"))}function oi(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"nz-avatar",27),t.NdJ("click",function(){t.CHM(d);const z=t.oxw().$implicit,ie=t.oxw(2);
970return t.KtG(ie.sharedWithUserData.has(z)?ie.openProfileModal(z):null)}),t.qZA()}if(2&I){const d=t.oxw().$implicit,P=t.oxw(2);t.Tol(P.sharedWithUserData.has(d)?"cursor-pointer":""),t.Q6J("nzSrc",P.sharedWithUserImageData.get(d))}}function ai(I,g){if(1&I&&(t.TgZ(0,"p",28),t._uU(1),t.qZA()),2&I){const d=t.oxw().$implicit,P=t.oxw(2);t.xp6(1),t.hij(" (",P.sharedWithUserData.get(d).mail,") ")}}function si(I,g){1&I&&(t.TgZ(0,"p",29)(1,"strong"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA()),2&I&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"CLIENT.CONTRACTS.SHARE.PERMISSIONS.LONG.EDIT_1")),t.xp6(2),t.hij(" ",t.lcZ(5,4,"CLIENT.CONTRACTS.SHARE.PERMISSIONS.LONG.EDIT_2")," "))}function Un(I,g){1&I&&(t.TgZ(0,"p",29)(1,"strong"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA()),2&I&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"CLIENT.CONTRACTS.SHARE.PERMISSIONS.LONG.VIEW_ONLY_1")),t.xp6(2),t.hij(" ",t.lcZ(5,4,"CLIENT.CONTRACTS.SHARE.PERMISSIONS.LONG.VIEW_ONLY_2")," "))}function pn(I,g){1&I&&(t.TgZ(0,"p",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.SHARE.INVITE_SENT")," "))}function Bn(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"a",33),t.NdJ("click",function(){t.CHM(d);const z=t.oxw(4);return t.KtG(z.closeModal())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&I){const d=t.oxw(2).$implicit,P=t.oxw(2);t.Q6J("routerLink","/"+P.PageRoutes.baseFromUserType()+"/"+P.PageRoutes.baseChat+"/"+P.sharedWithUserChatIDData.get(d)),t.xp6(1),t.hij(" ",t.lcZ(2,2,"CLIENT.CONTRACTS.SHARE.TO_CONVERSATION")," ")}}function bn(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"button",34),t.NdJ("click",function(){t.CHM(d);const z=t.oxw(2).$implicit,ie=t.oxw(2);return t.KtG(ie.createNewConversation(z))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.SHARE.START_CONVERSATION")," "))}function Zn(I,g){if(1&I&&(t.TgZ(0,"span"),t.YNc(1,Bn,3,4,"a",31),t.YNc(2,bn,3,3,"button",32),t.qZA()),2&I){const d=t.oxw().$implicit,P=t.oxw(2);t.xp6(1),t.Q6J("ngIf",P.sharedWithUserChatIDData.get(d)),t.xp6(1),t.Q6J("ngIf",!P.sharedWithUserChatIDData.get(d))}}const Gn=function(I,g){return{contract:I,user:g}},Hn=function(I){return[I]};function sn(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"nz-list-item"),t.YNc(1,oi,1,4,"ng-template",null,16,t.W1O),t.TgZ(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),t.YNc(5,ai,2,1,"p",18),t.YNc(6,si,6,6,"p",19),t.YNc(7,Un,6,6,"p",19),t.YNc(8,pn,3,3,"p",20),t.YNc(9,Zn,3,2,"span",12),t.TgZ(10,"div")(11,"app-multi-state-button",21),t.NdJ("nzOnConfirm",function(){const ie=t.CHM(d).$implicit,Ie=t.oxw(2);return t.KtG(Ie.submitRemove(ie))}),t.ALo(12,"translate"),t.ALo(13,"translate"),t.ALo(14,"translate"),t.qZA(),t._UZ(15,"app-multi-state-button",22),t.qZA()()(),t.TgZ(16,"ul",23)(17,"nz-list-item-action",24)(18,"app-multi-state-button",25),t.NdJ("nzOnConfirm",function(){const ie=t.CHM(d).$implicit,Ie=t.oxw(2);return t.KtG(Ie.submitRemove(ie))}),t.ALo(19,"translate"),t.ALo(20,"translate"),t.ALo(21,"translate"),t.qZA()(),t.TgZ(22,"nz-list-item-action",24),t._UZ(23,"app-multi-state-button",26),t.qZA()()()}if(2&I){const d=g.$implicit,P=t.MAs(2),z=t.oxw(2);t.Q6J("@personSharedWith",void 0),t.xp6(3),t.Q6J("nzAvatar",P)("nzDescription",z.sharedWithUserData.has(d)?z.userInfosService.hasNameOrMail(z.sharedWithUserData.get(d)):""),t.xp6(2),t.Q6J("ngIf",z.sharedWithUserData.has(d)&&z.sharedWithUserData.get(d)),t.xp6(1),t.Q6J("ngIf",z.contract.progress.permissions.permissions[d].level===z.PermissionLevel.Write),t.xp6(1),t.Q6J("ngIf",z.contract.progress.permissions.permissions[d].level===z.PermissionLevel.Read),t.xp6(1),t.Q6J("ngIf",z.sharedWithUserData.has(d)&&z.sharedWithUserData.get(d)&&!z.sharedWithUserData.get(d).kind),t.xp6(1),t.Q6J("ngIf",z.sharedWithUserData.has(d)&&z.sharedWithUserData.get(d)&&z.sharedWithUserData.get(d).kind),t.xp6(2),t.Q6J("showAsLink",!0)("nzPopconfirmTitle",t.xi3(12,34,"CLIENT.CONTRACTS.UNSHARE.QUESTION",t.WLB(48,Gn,z.contract.progress.metadata.name?z.contract.progress.metadata.name:z.contract.displayElements.name,z.sharedWithUserData.has(d)?z.userInfosService.hasNameOrMail(z.sharedWithUserData.get(d)):"")))("nzCancelText",t.lcZ(13,37,"COMMON.CANCEL"))("nzOkText",t.lcZ(14,39,"CLIENT.CONTRACTS.UNSHARE.UNSHARE"))("runFunction",z.runFunctionMap.get(d))("nzTextKeys",z.removeText)("stickResult",!1),t.xp6(4),t.Q6J("defaultFunction",z.changePermissionWithButton)("defaultFunctionParameters",t.VKq(51,Hn,d))("selectedOption",z.contract.progress.permissions.permissions[d].level===z.PermissionLevel.Read?"CLIENT.CONTRACTS.SHARE.PERMISSIONS.VIEW_ONLY_DISABLED":"CLIENT.CONTRACTS.SHARE.PERMISSIONS.EDIT_DISABLED")("unstickTrigger",z.changePermissionUnstickTrigger)("showAsSelection",!0)("selectOptions",z.selectOptionsMap.has(d)?z.selectOptionsMap.get(d):null),t.xp6(3),t.Q6J("showAsLink",!0)("stickResult",!1)("nzPopconfirmTitle",t.xi3(19,41,"CLIENT.CONTRACTS.UNSHARE.QUESTION",t.WLB(53,Gn,z.contract.progress.metadata.name?z.contract.progress.metadata.name:z.contract.displayElements.name,z.sharedWithUserData.has(d)?z.userInfosService.hasNameOrMail(z.sharedWithUserData.get(d)):"")))("nzCancelText",t.lcZ(20,44,"COMMON.CANCEL"))("nzOkText",t.lcZ(21,46,"CLIENT.CONTRACTS.UNSHARE.UNSHARE"))("runFunction",z.runFunctionMap.get(d))("nzTextKeys",z.removeText),t.xp6(5),t.Q6J("defaultFunction",z.changePermissionWithButton)("defaultFunctionParameters",t.VKq(56,Hn,d))("selectedOption",z.contract.progress.permissions.permissions[d].level===z.PermissionLevel.Read?"CLIENT.CONTRACTS.SHARE.PERMISSIONS.VIEW_ONLY_DISABLED":"CLIENT.CONTRACTS.SHARE.PERMISSIONS.EDIT_DISABLED")("unstickTrigger",z.changePermissionUnstickTrigger)("showAsSelection",!0)("selectOptions",z.selectOptionsMap.has(d)?z.selectOptionsMap.get(d):null)}}function Wn(I,g){if(1&I&&(t.TgZ(0,"nz-list",14),t.YNc(1,sn,24,58,"nz-list-item",15),t.qZA()),2&I){const d=t.oxw();
970t.xp6(1),t.Q6J("ngForOf",d.contract.progress.permissions.users)}}function rn(I,g){1&I&&(t._UZ(0,"nz-empty",35),t.ALo(1,"translate")),2&I&&t.Q6J("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",t.lcZ(1,2,"CLIENT.CONTRACTS.SHARE.WARNING.NOT_SHARED"))}const Tn=function(I,g){return[I,g]};let Gt=class{constructor(g,d,P,z,ie,Ie,Xe,Mt,Dt){this.modal=g,this.translate=d,this.chatService=P,this.clientService=z,this.modalService=ie,this.notificationService=Ie,this.routerService=Xe,this.userService=Mt,this.userInfosService=Dt,this.emailsToShare=[],this.notSharedWithUnregistered=!1,this.notSharedWithLawyer=!1,this.shareLimit=10,this.sharedWithUserData=new Map,this.sharedWithUserImageData=new Map,this.sharedWithUserChatIDData=new Map,this.sharedWithUserMails=[],this.runFunctionMap=new Map,this.removeText=new o.PR("CLIENT.CONTRACTS.UNSHARE.BUTTON_STATES.CHANGE","CLIENT.CONTRACTS.UNSHARE.BUTTON_STATES.CHANGING","CLIENT.CONTRACTS.UNSHARE.BUTTON_STATES.CHANGED","CLIENT.CONTRACTS.UNSHARE.BUTTON_STATES.FAILED"),this.submitShareText=new o.PR("CLIENT.CONTRACTS.SHARE.SHARE","CLIENT.CONTRACTS.SHARE.SHARING","CLIENT.CONTRACTS.SHARE.SHARED","CLIENT.CONTRACTS.SHARE.FAILED"),this.unstickTrigger=0,this.selectOptions=["CLIENT.CONTRACTS.SHARE.PERMISSIONS.VIEW_ONLY_ENABLED","CLIENT.CONTRACTS.SHARE.PERMISSIONS.EDIT_ENABLED"],this.selectOptionsMap=new Map,this.changePermissionUnstickTrigger=0,this.FormService=c.o,this.Validators=m.kI,this.PermissionLevel=ve.V5g,this.PageRoutes=Ve.d,this.ClientRoutes=we.i}ngOnInit(){this.sharedWithUserMails=[this.userService.sessionMail],this.userMail=this.userService.sessionMail,this.contract=this.previousStateContract,this.sharedWithUserImageData=this.userInfosService.userImgs,this.sharedWithUserData=this.userInfosService.userInformations,this.loadSharedWithUserData(),this.userInfosService.userInformationsChanged.subscribe(g=>{this.loadSharedWithUserMails(this.contract.progress.permissions.users)}),this.submitShareFunction=()=>this.submitShare(),this.changePermissionWithButton=(g,d)=>{let P=ve.V5g.Read;switch(g){case this.selectOptions[0]:P=ve.V5g.Read;break;case this.selectOptions[1]:P=ve.V5g.Write}return this.changePermission(P,d)}}ngAfterViewInit(){this.submitShareText=new o.PR("CLIENT.CONTRACTS.SHARE.SHARE","CLIENT.CONTRACTS.SHARE.SHARING","CLIENT.CONTRACTS.SHARE.SHARED",this.userNotFoundTemplate)}changePermission(g,d){return this.updateChangePermissionUnstickTrigger(),this.sharedWithUserData.has(d)&&this.sharedWithUserData.get(d)&&!this.sharedWithUserData.get(d).kind?this.clientService.shareContractByMail(this.contractID,this.sharedWithUserData.get(d).mail,g).pipe((0,e.t)(this)).subscribe(P=>{this.loadContracts()},P=>{this.loadContracts()}):this.clientService.shareContractByUserID(this.contractID,d,g).pipe((0,e.t)(this)).subscribe(P=>{this.loadContracts()},P=>{this.loadContracts()})}loadContracts(){this.clientService.getContractProgressByID(this.contractID).pipe((0,e.t)(this)).subscribe(g=>{this.contract=g},g=>{},()=>{this.loadSharedWithUserData()})}loadSharedWithUserData(){this.userInfosService.batchGetUserImgsByIds(this.contract.progress.permissions.users),this.userInfosService.batchGetUserNamesByIds(this.contract.progress.permissions.users),this.runFunctionMap.clear(),this.contract.progress.permissions.users.forEach(g=>{this.runFunctionMap.set(g,null);const d=this.chatService.chatSnippetList.find(P=>P.participants.find(z=>z.userID===g));this.sharedWithUserChatIDData.set(g,d?d.chatID:null),this.selectOptionsMap.set(g,this.contract.progress.permissions.permissions[g].level===ve.V5g.Read?["CLIENT.CONTRACTS.SHARE.PERMISSIONS.VIEW_ONLY_DISABLED","CLIENT.CONTRACTS.SHARE.PERMISSIONS.EDIT_ENABLED"]:["CLIENT.CONTRACTS.SHARE.PERMISSIONS.VIEW_ONLY_ENABLED","CLIENT.CONTRACTS.SHARE.PERMISSIONS.EDIT_DISABLED"])}),this.loadSharedWithUserMails(this.contract.progress.permissions.users)}loadSharedWithUserMails(g){this.sharedWithUserMails=[this.userService.sessionMail,...g.filter(d=>this.userInfosService.userInformations.has(d)&&this.userInfosService.userInformations.get(d)).map(d=>this.userInfosService.userInformations.get(d).mail)]}removeSharedUserData(g){const d=this.sharedWithUserData.get(g);this.runFunctionMap.has(g)&&this.runFunctionMap.delete(g),d&&(this.sharedWithUserMails=this.sharedWithUserMails.filter(P=>P!==d.mail),this.sharedWithUserData.delete(g))}submitShare(){if(this.emailsToShare.length>0)return this.clientService.batchShareContract(this.contractID,this.emailsToShare).pipe((0,e.t)(this)).toPromise().then(g=>
970{let d=Promise.resolve();if(!g)return this.loadContracts(),this.emailsToShare=[],d;const P=g.flatMap(Ie=>Ie[Object.keys(Ie)[0]]===ve.axY.UNVERIFIED_LAWYER?[Object.keys(Ie)[0]]:[]);P&&P.length>0&&(d=this.modalService.unverifiedLawyerSharingInfoModal(this.contract.displayElements.name,P).afterClose.toPromise().then(Xe=>Promise.reject()));const z=g.flatMap(Ie=>Ie[Object.keys(Ie)[0]]===ve.axY.NOT_FOUND?[Object.keys(Ie)[0]]:[]);z&&z.length>0&&(d=this.modalService.inviteForSharingModal(this.contractID,z,this.contract.progress.metadata.name?this.contract.progress.metadata.name:this.contract.displayElements.name).afterClose.toPromise().then(Xe=>{if(!Xe)return this.notSharedWithUnregistered=!0,Promise.reject();this.loadContracts()}));const ie=g.flatMap(Ie=>Ie[Object.keys(Ie)[0]]===ve.axY.NO_LAWYER_CONVERSATION?[Object.keys(Ie)[0]]:[]);return ie&&ie.length>0&&(d=this.modalService.noLawyerSharingInfoModal(ie).afterClose.toPromise().then(Xe=>(this.notSharedWithLawyer=!0,Promise.reject()))),this.loadContracts(),this.emailsToShare=[],d},g=>(this.loadContracts(),this.emailsToShare=[],Promise.reject()))}submitRemove(g){this.runFunctionMap.set(g,()=>this.removeAccess(g))}removeAccess(g){const d=this.clientService.unshareContract(this.contractID,g).pipe((0,e.t)(this)).toPromise();return d.then(P=>{this.removeSharedUserData(g)},P=>{this.runFunctionMap.has(g)&&this.runFunctionMap.delete(g)}).then(()=>{this.loadContracts()}),d}createNewConversation(g){new Promise((P,z)=>{if(this.userInfosService.userInformations.has(g)&&null!==this.userInfosService.userInformations.get(g))P(this.userInfosService.userInformations.get(g));else{this.userInfosService.batchGetUserImgsByIds([g]);const ie=this.userInfosService.userInformationsChanged.subscribe(Ie=>{(!Ie.has(g)||null!==Ie.get(g))&&(P(this.userInfosService.userInformations.get(g)),ie.unsubscribe())})}}).then(P=>{P.kind===G.FW.Lawyer?this.modalService.noLawyerConversationInfoModal():this.chatService.createNewConversationWithUserID(g,this.modal)})}closeModal(){this.modal.close()}resultChange(g){this.emailsToShare=g,this.notSharedWithUnregistered=!1,this.notSharedWithLawyer=!1,this.unstickTrigger=Math.random()}updateChangePermissionUnstickTrigger(){this.changePermissionUnstickTrigger=Math.random()}openProfileModal(g){this.modalService.publicProfileModal(g)}};Gt.\u0275fac=function(g){return new(g||Gt)(t.Y36(v.Lf),t.Y36(l.sK),t.Y36(mt.a),t.Y36(r.y),t.Y36(Ht),t.Y36(mn.g),t.Y36(ee.c),t.Y36(u.K),t.Y36(Ce.h))},Gt.\u0275cmp=t.Xpm({type:Gt,selectors:[["app-share-contract-modal"]],viewQuery:function(g,d){if(1&g&&t.Gf(gn,5),2&g){let P;t.iGM(P=t.CRH())&&(d.userNotFoundTemplate=P.first)}},inputs:{contractID:"contractID",previousStateContract:"previousStateContract"},decls:22,vars:34,consts:[[1,"row","no-wrap"],[1,"p-l-10",2,"margin-top","7px"],[1,"col-lg-7","col-md-6","col-sm-12","col-12"],["tokenizerErrorTemplate",""],[3,"errorTemplate","placeholder","restrictedValues","restrictedErrorText","specialyRestrictedValue","SRVErrorText","tokenList","tooltipTitle","validators","resultChange"],[1,"p-l-10"],["nz-tooltip","",3,"nzTooltipTitle"],["userNotFoundTemplate",""],["nzType","primary",1,"w-100",3,"nzGhost","nzDanger","defaultFunction","nzTextKeys","unstickTrigger"],["style","color: red; padding-top: 12px; margin-bottom: 0",4,"ngIf"],["nzItemLayout","horizontal",4,"ngIf"],["class","emptyBox",3,"nzNotFoundImage","nzNotFoundContent",4,"ngIf"],[4,"ngIf"],[2,"color","red","padding-top","12px","margin-bottom","0"],["nzItemLayout","horizontal"],[4,"ngFor","ngForOf"],["sharedWithAvatar",""],[1,"col-lg-6","col-12",3,"nzAvatar","nzDescription"],["class","font-size-10 m-b-0",4,"ngIf"],["class","m-b-0",4,"ngIf"],["class","font-size-11 m-b-0",4,"ngIf"],["nz-popconfirm","","nzPopconfirmPlacement","right",1,"font-size-12","m-b-0","mr-3","d-lg-none","d-inline-block",3,"showAsLink","nzPopconfirmTitle","nzCancelText","nzOkText","runFunction","nzTextKeys","stickResult","nzOnConfirm"],["nzType","primary",1,"downloadButton","font-size-12","m-b-0","conversationLink","d-lg-none","d-inline-block",3,"defaultFunction","defaultFunctionParameters","selectedOption","unstickTrigger","showAsSelection","selectOptions"],["nz-list-item-actions","",1,"d-lg-block","d-none","ml-0"],[1,"col-xs-12"],["nz-popconfirm","","nzPopconfirmPlacement","right",1,"col-xs-12",3,"showAsLink","stickResult","nzPopconfirmTitle","nzCancelText","nzOkText","runFunction","nzTextKeys","nzOnConfirm"],["nzType","primary",1,"downloadButton",3,"defaultFunction","defaultFunctionParameters","selectedOption","unstickTrigger","showAsSelection","selectOptions"],["nzIcon","user",3,"nzSrc","click"],[1,"font-size-10","m-b-0"],[1,"m-b-0"],[1,"font-size-11","m-b-0"],["class","font-size-11 m-b-0 conversationLink",3,"routerLink","click",4,"ngIf"],["nz-button","","nzType","link","class","font-size-11 m-b-0 conversationLink link-like-button",3,"click",4,"ngIf"],[1,"font-size-11","m-b-0","conversationLink",3,"routerLink","click"],["nz-button","","nzType","link",1,"font-size-11","m-b-0","conversationLink","link-like-button",3,"click"],[1,"emptyBox",3,"nzNotFoundImage","nzNotFoundContent"]],template:function(g,d){if(1&g&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h5"),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",2),t.YNc(6,Fn,2,2,"ng-template",null,3,t.W1O),t.TgZ(8,"app-tokenizer-input",4),t.NdJ("resultChange",function(z){return d.resultChange(z)}),t.ALo(9,"translate"),t.ALo(10,"translate"),t.ALo(11,"translate"),t.ALo(12,"translate"),t.qZA()(),t.TgZ(13,"div",5)(14,"div",6),t.ALo(15,"translate"),t.YNc(16,Pn,4,7,"ng-template",null,7,t.W1O),t._UZ(18,"app-multi-state-button",8),t.qZA()()(),t.YNc(19,en,3,3,"h6",9),t.YNc(20,Wn,2,1,"nz-list",10),t.YNc(21,rn,2,4,"nz-empty",11)),2&g){const P=t.MAs(7);t.xp6(3),t.hij("",t.lcZ(4,19,"CLIENT.CONTRACTS.SHARE.WITH_THEM"),":"),t.xp6(5),t.Q6J("errorTemplate",P)("placeholder",t.lcZ(9,21,"CLIENT.CONTRACTS.SHARE.MAIL.PLACEHOLDER"))("restrictedValues",d.sharedWithUserMails)("restrictedErrorText",t.lcZ(10,23,"CLIENT.CONTRACTS.SHARE.MAIL.VALIDATION.ALREADY_SHARED"))("specialyRestrictedValue",d.userMail)("SRVErrorText",t.lcZ(11,25,"CLIENT.CONTRACTS.SHARE.MAIL.VALIDATION.OWN_MAIL"))("tokenList",d.emailsToShare)("tooltipTitle",t.lcZ(12,27,"CLIENT.CONTRACTS.SHARE.MAIL.TOOLTIP"))("validators",t.WLB(31,Tn,d.Validators.maxLength(100),d.Validators.pattern(d.FormService.mailValidatorPattern))),t.xp6(6),t.Q6J("nzTooltipTitle",d.contract.progress.permissions.users.length+d.emailsToShare.length>d.shareLimit?t.lcZ(15,29,"CLIENT.CONTRACTS.SHARE.TOO_MANY"):""),t.xp6(4),t.Q6J("nzGhost",(0===d.emailsToShare.length||d.contract.progress.permissions.users.length+d.emailsToShare.length>d.shareLimit)&&!d.notSharedWithUnregistered&&!d.notSharedWithLawyer)("nzDanger",(0===d.emailsToShare.length||d.contract.progress.permissions.users.length+d.emailsToShare.length>d.shareLimit)&&(d.notSharedWithUnregistered||d.notSharedWithLawyer))("defaultFunction",d.submitShareFunction)("nzTextKeys",d.submitShareText)("unstickTrigger",d.unstickTrigger),t.xp6(1),t.Q6J("ngIf",d.contract.progress.permissions.users.length+d.emailsToShare.length>d.shareLimit),t.xp6(1),t.Q6J("ngIf",d.contract),t.xp6(1),t.Q6J("ngIf",0===d.contract.progress.permissions.users.length)}},dependencies:[Pe.yS,f.sg,f.O5,o.P4,_e.Dz,O.ix,N.w,Ne.p9,ue.n_,ue.AA,ue.yi,ue.IO,ue.nk,ue.KC,Q.JW,et.SY,ni,l.X$],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} .ant-select-multiple .ant-select-selector{height:100%}.conversationLink[_ngcontent-%COMP%]{color:#9579d1}.emptyBox[_ngcontent-%COMP%]{padding-top:1.5rem}.emptyBox[_ngcontent-%COMP%] .ant-empty-description{margin-bottom:0}
970@media (min-width: 768px){.no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap!important}}'],data:{animation:[(0,De.X$)("personSharedWith",[(0,De.eR)(":leave",[(0,De.oB)({opacity:1}),(0,De.jt)("0.3s ease-in",(0,De.oB)({opacity:0}))])])]}}),Gt=(0,s.gn)([(0,e.c)()],Gt);var Kn=n(88703),Yn=n(77248),Vn=n(65834);let wt=class{constructor(g,d,P,z,ie,Ie,Xe){this.nzModal=g,this.translate=d,this.clientService=P,this.formService=z,this.asyncMessenger=ie,this.userService=Ie,this.modal=Xe,this.submitted=!1,this.unstickTrigger=0}ngOnInit(){this.parser=new Vn.UAParser;const g=new Map;g.set(0,"COMMON.FEEDBACK.BUTTON_STATES.ERROR.OTHER"),this.submitFeedbackText=new o.PR("COMMON.FEEDBACK.BUTTON_STATES.CHANGE","COMMON.FEEDBACK.BUTTON_STATES.CHANGING","COMMON.FEEDBACK.BUTTON_STATES.CHANGED",g),this.defaultFeedbackSubmission=()=>this.submitFeedback(),this.feedbackForm=this.formService.feedbackFormGroup(this.component,this.feature,this.unit,this.userService.isLoggedIn?this.userService.sessionType.toString().toLowerCase():null,this.aspect),this.feedbackForm.statusChanges.subscribe(d=>{this.feedbackForm.dirty&&(this.unstickTrigger=Math.random())})}submitFeedback(){if(this.feedbackForm.controls.feedback.markAsTouched(),this.submitted=!0,this.makeDevice(),this.feedbackForm.valid)return this.clientService.postFeedback(this.formService.groupToFeedback(this.feedbackForm,this.makeDevice())).pipe((0,e.t)(this)).toPromise().then(g=>{this.asyncMessenger.successNotification("COMMON.FEEDBACK.NOTIFICATION.SUCCESS.TITLE","COMMON.FEEDBACK.NOTIFICATION.SUCCESS.DESC"),this.modal.close()},g=>(this.asyncMessenger.errorMessage("COMMON.FEEDBACK.NOTIFICATION.ERROR.TITLE","COMMON.FEEDBACK.NOTIFICATION.ERROR.DESC"),Promise.reject(g)))}makeDevice(){const g=this.parser.getDevice(),d=g.type?g.type.charAt(0).toUpperCase()+g.type.slice(1):null,P=d&&Object.values(ve.Tk).includes(d)?d:ve.Tk.OTHER,z=this.parser.getOS(),ie=this.parser.getBrowser();let Ie=navigator;return new ve.ASe(this.parser.getUA(),ie.version,P,new ve.dOr(z.name,z.version),new ve.ip4(g.type,g.vendor,null,this.parser.getCPU().architecture,new ve.YDG(window.innerHeight,window.innerWidth),"ontouchstart"in window||Ie?.maxTouchPoints>0||Ie?.msMaxTouchPoints>0?["Touch"]:[]),new ve.u1F(Ie?.connection?this.matchNavigatorConnectionType(Ie?.connection.type):ve.D7m.UNKNOWN,Ie?.connection?.effectiveType,Ie?.connection?.downlink,null,Ie?.connection?.rtt,Ie?.connection?.saveData))}matchNavigatorConnectionType(g){if(!g)return ve.D7m.UNKNOWN;switch(g){case ve.cp9.BLUETOOTH:case ve.cp9.CELLULAR:case ve.cp9.ETHERNET:case ve.cp9.NONE:case ve.cp9.UNKNOWN:return ve.D7m[g.charAt(0).toUpperCase()+g.slice(1)];case ve.cp9.MIXED:return ve.D7m.OTHER;case ve.cp9.WIFI:return ve.D7m.WIRELESS;default:return ve.D7m.OTHER}}};wt.\u0275fac=function(g){return new(g||wt)(t.Y36(v.Sf),t.Y36(l.sK),t.Y36(r.y),t.Y36(c.o),t.Y36(C.m),t.Y36(u.K),t.Y36(v.Lf))},wt.\u0275cmp=t.Xpm({type:wt,selectors:[["ng-component"]],inputs:{component:"component",feature:"feature",unit:"unit",aspect:"aspect"},decls:18,vars:23,consts:[["nz-form","",3,"formGroup"],[1,"small"],[3,"nzValidateStatus","nzErrorTip"],["nz-input","","rows","4","formControlName","feedback","trim","blur",3,"placeholder"],[1,"row","justify-content-center","justify-content-md-end","grid-gap-15","w-100","m-l-0"],["nz-button","",1,"button2",3,"click"],[1,"button-text-wrap","modalFooterButton","button1",3,"defaultFunction","nzTextKeys","nzType","unstickTrigger"]],template:function(g,d){1&g&&(t.TgZ(0,"form",0)(1,"nz-form-item")(2,"p",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"nz-form-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"nz-form-control",2),t.ALo(9,"translate"),t.TgZ(10,"nz-input-group"),t._UZ(11,"textarea",3),t.ALo(12,"translate"),t.qZA()()()(),t.TgZ(13,"div",4)(14,"button",5),t.NdJ("click",function(){return d.modal.close()}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"app-multi-state-button",6),t.qZA()),2&g&&(t.Q6J("formGroup",d.feedbackForm),t.xp6(1),t.ekj("ant-form-item-has-error",d.submitted&&!d.feedbackForm.controls.feedback.valid),t.xp6(2),t.hij(" ",t.lcZ(4,13,"COMMON.FEEDBACK.BRIEF")," "),t.xp6(3),t.hij(" ",t.lcZ(7,15,"COMMON.FEEDBACK.FEEDBACK")," "),t.xp6(2),t.Q6J("nzValidateStatus",d.feedbackForm.controls.feedback)("nzErrorTip",d.feedbackForm.controls.feedback.valid?null:t.lcZ(9,17,"COMMON.FEEDBACK.VALIDATION.FEEDBACK")),t.xp6(3),t.Q6J("placeholder",t.lcZ(12,19,"COMMON.FEEDBACK.PLACEHOLDER")),t.xp6(4),t.hij(" ",t.lcZ(16,21,"COMMON.CANCEL")," "),t.xp6(2),t.Q6J("defaultFunction",d.defaultFeedbackSubmission)("nzTextKeys",d.submitFeedbackText)("nzType",!d.submitted||d.submitted&&d.feedbackForm.valid?"primary":"default")("unstickTrigger",d.unstickTrigger))},dependencies:[m._Y,m.Fj,m.JJ,m.JL,a.P,m.sg,m.u,o.P4,O.ix,N.w,L.dQ,i.t3,i.SK,M.Lr,M.Nx,M.iK,M.Fd,R.Zp,R.gB,l.X$],styles:['@charset "UTF-8";@media (max-width: 767.98px){.button1[_ngcontent-%COMP%]{min-width:51%!important}.button2[_ngcontent-%COMP%]{margin-left:0!important;min-width:51%!important}.button1[_ngcontent-%COMP%] .smartButton{width:100%!important}}.modalFooterButton[_ngcontent-%COMP%] .smartButton{max-width:none!important;max-width:initial!important}']}),wt=(0,s.gn)([(0,e.c)({checkProperties:!0})],wt);var Jn=n(35146),wn=n(88744),Rn=n(14206);function kt(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"div")(1,"div",2),t._UZ(2,"app-multi-state-button",3),t.TgZ(3,"button",4),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.continueMatchmaking())}),t._uU(4),t.ALo(5,"translate"),t.qZA()()()}if(2&I){const d=t.oxw();
970t.xp6(2),t.Q6J("defaultFunction",d.exitMatchmakerFunction)("stickResult",!1)("nzTextKeys",d.exitText),t.xp6(2),t.hij(" ",t.lcZ(5,4,"COMMON.HEADER.LAWYER_MATCHMAKER.ALERT_WARNING.CONTINUE_MATCHMAKING")," ")}}const H=function(I){return{buttonText:I}};let ae=(()=>{class I{constructor(d,P){this.modal=d,this.matchmakerService=P,this.exitText=new o.PR("COMMON.HEADER.LAWYER_MATCHMAKER.EXIT_BUTTON_STATE.DEFAULT","COMMON.HEADER.LAWYER_MATCHMAKER.EXIT_BUTTON_STATE.WORKING","COMMON.HEADER.LAWYER_MATCHMAKER.EXIT_BUTTON_STATE.SUCCESS","COMMON.HEADER.LAWYER_MATCHMAKER.EXIT_BUTTON_STATE.FAILED")}ngOnInit(){this.exitMatchmakerFunction=()=>{const d=this.matchmakerService.exitMatchmaker();return d.then(P=>this.modal.triggerOk(),P=>{}),d}}continueMatchmaking(){this.matchmakerService.clearExitTimeout(),this.matchmakerService.restartAlertTimeout(),this.modal.triggerCancel()}}return I.\u0275fac=function(d){return new(d||I)(t.Y36(v.Lf),t.Y36(Rn.$))},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-matchmaker-logout-warning-modal"]],decls:6,vars:8,consts:[[1,"markdown"],[4,"nzModalFooter"],[1,"row","text-center","flex-wrap","grid-gap-15"],["nzType","default",1,"multiLineButton","mx-auto",3,"defaultFunction","stickResult","nzTextKeys"],["nz-button","","nzType","primary",1,"mx-auto","multiLineButton",3,"click"]],template:function(d,P){1&d&&(t.TgZ(0,"div",0)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,kt,6,6,"div",1)),2&d&&(t.xp6(2),t.hij(" ",t.xi3(3,1,"COMMON.HEADER.LAWYER_MATCHMAKER.ALERT_WARNING.DESCRIPTION",t.VKq(6,H,t.lcZ(4,4,"COMMON.HEADER.LAWYER_MATCHMAKER.ALERT_WARNING.CONTINUE_MATCHMAKING")))," "))},dependencies:[o.P4,O.ix,N.w,L.dQ,v.Uh,l.X$],encapsulation:2}),I})();var A=n(99142);function st(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.INVITE_FOR_SHARING.NOT_FOUND.SINGLE")," "))}function be(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.INVITE_FOR_SHARING.NOT_FOUND.MULTIPLE")," "))}function It(I,g){if(1&I&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&I){const d=g.$implicit;t.xp6(1),t.hij(" ",d," ")}}function vt(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.INVITE_FOR_SHARING.QUESTION.SINGLE")," "))}function Wt(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.INVITE_FOR_SHARING.QUESTION.MULTIPLE")," "))}function ln(I,g){1&I&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.INVITE_FOR_SHARING.ERROR.OTHER"),"\n"))}let bt=class{constructor(g,d,P,z){this.modal=g,this.clientService=d,this.notificationService=P,this.modalService=z,this.errorOccurred=!1}ngOnInit(){this.inviteText=new o.PR(`CLIENT.CONTRACTS.INVITE_FOR_SHARING.BUTTON_STATES.${1===this.mails.length?"SINGLE":"MULTIPLE"}.INVITE`,`CLIENT.CONTRACTS.INVITE_FOR_SHARING.BUTTON_STATES.${1===this.mails.length?"SINGLE":"MULTIPLE"}.INVITING`,`CLIENT.CONTRACTS.INVITE_FOR_SHARING.BUTTON_STATES.${1===this.mails.length?"SINGLE":"MULTIPLE"}.INVITED`,`CLIENT.CONTRACTS.INVITE_FOR_SHARING.BUTTON_STATES.${1===this.mails.length?"SINGLE":"MULTIPLE"}.FAILED`),this.inviteFunction=()=>this.inviteForSharing()}cancel(){this.modal.close(!1)}done(){this.modal.close(!0)}inviteForSharing(){return this.errorOccurred=!1,this.clientService.inviteForSharingContract(this.progressID,this.mails).pipe((0,e.t)(this)).toPromise().then(g=>{let d=!1;const P=[];g.forEach((z,ie)=>{Object.entries(z).forEach(([Ie,Xe])=>{Xe===ve.axY.CAN_NOT_INVITE&&(d=!0,P.push(Ie))})}),P&&P.length>0?this.modalService.inviteFailedInfoModal(P).afterClose.toPromise().then(ie=>{this.done()}):this.done()}).catch(g=>{console.log(g),this.errorOccurred=!0})}};bt.\u0275fac=function(g){return new(g||bt)(t.Y36(v.Lf),t.Y36(r.y),t.Y36(mn.g),t.Y36(Ht))},bt.\u0275cmp=t.Xpm({type:bt,selectors:[["app-invite-for-sharing"]],inputs:{mails:"mails",progressID:"progressID",contractName:"contractName"},decls:13,vars:11,consts:[[1,"ant-modal-body","listWithMargin"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","p-l-25 p-b-10 text-danger",4,"ngIf"],[1,"ant-modal-footer"],["nz-button","",3,"click"],["nzType","primary",1,"m-l-10",3,"defaultFunction","nzTextKeys"],[1,"p-l-25","p-b-10","text-danger"]],template:function(g,d){1&g&&(t.TgZ(0,"div",0),t.YNc(1,st,3,3,"div",1),t.YNc(2,be,3,3,"div",1),t.TgZ(3,"ul"),t.YNc(4,It,2,1,"li",2),t.qZA(),t.YNc(5,vt,3,3,"div",1),t.YNc(6,Wt,3,3,"div",1),t.qZA(),t.YNc(7,ln,3,3,"div",3),t.TgZ(8,"div",4)(9,"button",5),t.NdJ("click",function(){return d.cancel()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._UZ(12,"app-multi-state-button",6),t.qZA()),2&g&&(t.xp6(1),t.Q6J("ngIf",d.mails&&1===d.mails.length),t.xp6(1),t.Q6J("ngIf",d.mails&&d.mails.length>1),t.xp6(2),t.Q6J("ngForOf",d.mails),t.xp6(1),t.Q6J("ngIf",d.mails&&1===d.mails.length),t.xp6(1),t.Q6J("ngIf",d.mails&&d.mails.length>1),t.xp6(1),t.Q6J("ngIf",d.errorOccurred),t.xp6(3),t.hij(" ",t.lcZ(11,9,"COMMON.CANCEL")," "),t.xp6(2),t.Q6J("defaultFunction",d.inviteFunction)("nzTextKeys",d.inviteText))},dependencies:[f.sg,f.O5,o.P4,O.ix,N.w,L.dQ,l.X$],encapsulation:2}),bt=(0,s.gn)([(0,e.c)()],bt);var tn=n(36057);let En=(()=>{class I{constructor(d,P,z,ie){this.formService=d,this.chatService=P,this.modal=z,this.userService=ie,this.newConversationFailed=!1,this.triedNewChat=!1,this.createNewConversationText=new o.PR("CLIENT.CONVERSATIONS.CREATE_CONVERSATION_MODAL.BUTTON_STATES.DEFAULT","CLIENT.CONVERSATIONS.CREATE_CONVERSATION_MODAL.BUTTON_STATES.WORKING","CLIENT.CONVERSATIONS.CREATE_CONVERSATION_MODAL.BUTTON_STATES.SUCCESS",(new Map).set(0,"CLIENT.CONVERSATIONS.CREATE_CONVERSATION_MODAL.BUTTON_STATES.FAILED.DEFAULT").set(451,"CLIENT.CONVERSATIONS.CREATE_CONVERSATION_MODAL.BUTTON_STATES.FAILED.451")),this.unstickTrigger=0}ngOnInit(){this.conversationForm=this.formService.newConversationFormGroup()}createNewConversationWithButton(d){d&&this.formService.triggerAutoSubmitWithEnter(d),this.createNewConversationFunction=()=>this.createNewConversation()}createNewConversation(){if(this.conversationForm){const d=this.conversationForm.controls.mail.value;if(this.triedNewChat=!1,d===this.userService.sessionMail)return Promise.reject({status:451}).then(z=>{this.newConversationFailed=!0,this.triedNewChat=!0});const P=this.chatService.createNewConversationWithMail(d);return P.then(z=>{this.newConversationFailed=!1,this.modal.close()},z=>{this.newConversationFailed=!0,this.triedNewChat=!0}),P}}resetFail(){this.newConversationFailed&&this.triedNewChat&&(this.newConversationFailed=!1,this.triedNewChat=!1,this.unstickTrigger=Math.random())}}return I.\u0275fac=function(d){return new(d||I)(t.Y36(c.o),t.Y36(mt.a),t.Y36(v.Lf),t.Y36(u.K))},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-new-conversation-modal"]],decls:12,vars:18,consts:[["nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],["newConversationForm","ngForm"],["nzRequired","","nzFor","mail"],[3,"nzValidateStatus","nzErrorTip"],["nz-input","","formControlName","mail","trim","blur",3,"placeholder","change"],["nz-row","","nzJustify","end"],[1,"multiLineButton",3,"nzType","nzDanger","unstickTrigger","runFunction","nzTextKeys","click"]],template:function(d,P){if(1&d&&(t.TgZ(0,"form",0,1),t.NdJ("keydown.enter",function(ie){return P.conversationForm.valid?P.createNewConversationWithButton(ie):P.conversationForm.markAllAsTouched()}
970),t.TgZ(2,"nz-form-item")(3,"nz-form-label",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"nz-form-control",3),t.ALo(7,"translate"),t.TgZ(8,"input",4),t.NdJ("change",function(){return P.resetFail()}),t.ALo(9,"translate"),t.qZA()()(),t.TgZ(10,"div",5)(11,"app-multi-state-button",6),t.NdJ("click",function(){return P.conversationForm.valid?P.createNewConversationWithButton():P.conversationForm.markAllAsTouched()}),t.qZA()()()),2&d){const z=t.MAs(1);t.Q6J("formGroup",P.conversationForm),t.xp6(2),t.ekj("ant-form-item-has-error",(null==z?null:z.submitted)&&!(null!=P.conversationForm&&null!=P.conversationForm.controls&&null!=P.conversationForm.controls.mail&&P.conversationForm.controls.mail.valid)),t.xp6(2),t.hij("",t.lcZ(5,12,"CLIENT.CONVERSATIONS.CREATE_CONVERSATION_MODAL.CREATE_LABEL")," "),t.xp6(2),t.Q6J("nzValidateStatus",P.conversationForm.controls.mail)("nzErrorTip",null!=z&&z.submitted?t.lcZ(7,14,"CLIENT.CONVERSATIONS.CREATE_CONVERSATION_MODAL.ERROR_TIP"):null),t.xp6(2),t.Q6J("placeholder",t.lcZ(9,16,"CLIENT.CONVERSATIONS.CREATE_CONVERSATION_MODAL.PLACEHOLDER")),t.xp6(3),t.Q6J("nzType",null==z||!z.submitted||null!=z&&z.submitted&&P.conversationForm.valid?"primary":"default")("nzDanger",P.newConversationFailed)("unstickTrigger",P.unstickTrigger)("runFunction",P.createNewConversationFunction)("nzTextKeys",P.createNewConversationText)}},dependencies:[m._Y,m.Fj,m.JJ,m.JL,a.P,m.sg,m.u,o.P4,i.t3,i.SK,M.Lr,M.Nx,M.iK,M.Fd,R.Zp,l.X$],styles:['@charset "UTF-8";']}),I})();function cn(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.NO_LAWYER_SHARING.NOT_FOUND.SINGLE")," "))}function ri(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.NO_LAWYER_SHARING.NOT_FOUND.MULTIPLE")," "))}function li(I,g){if(1&I&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&I){const d=g.$implicit;t.xp6(1),t.hij(" ",d," ")}}function kn(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.NO_LAWYER_SHARING.CONTENT")," "))}let Qt=class{constructor(g,d){this.modal=g,this.clientService=d,this.errorOccurred=!1}ngOnInit(){}cancel(){this.modal.close(!1)}done(){this.modal.close(!0)}};Qt.\u0275fac=function(g){return new(g||Qt)(t.Y36(v.Lf),t.Y36(r.y))},Qt.\u0275cmp=t.Xpm({type:Qt,selectors:[["app-no-lawyer-sharing"]],inputs:{mails:"mails"},decls:6,vars:4,consts:[[1,"listWithMargin"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(g,d){1&g&&(t.TgZ(0,"div",0),t.YNc(1,cn,3,3,"div",1),t.YNc(2,ri,3,3,"div",1),t.TgZ(3,"ul"),t.YNc(4,li,2,1,"li",2),t.qZA(),t.YNc(5,kn,3,3,"div",1),t.qZA()),2&g&&(t.xp6(1),t.Q6J("ngIf",d.mails&&1===d.mails.length),t.xp6(1),t.Q6J("ngIf",d.mails&&d.mails.length>1),t.xp6(2),t.Q6J("ngForOf",d.mails),t.xp6(1),t.Q6J("ngIf",d.mails))},dependencies:[f.sg,f.O5,l.X$],encapsulation:2}),Qt=(0,s.gn)([(0,e.c)()],Qt);var ci=n(75141),Ei=n(58800); 971/* 972 * @license 973 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 974 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 975 *
976 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 977 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 978 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 979 * trade secret or copyright law. 980 * 981 * Dissemination of this information or reproduction of this material is strictly forbidden 982 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 983 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 984 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 985 * explicitly covering such access. 986 * 987 * The copyright notice above does not evidence any actual or intended publication or disclosure 988 * of this source code, which includes information that is confidential and/or proprietary, 989 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 990 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 991 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 992 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 993 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 994 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 995 * IN WHOLE OR IN PART. 996 */const di=["defaultOpenIntercomHelpText"];function Dn(I,g){1&I&&(t._UZ(0,"i",4),t._uU(1),t.ALo(2,"translate")),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONVERSATIONS.HELP_MODAL.FURTHER_HELP_BUTTON_STATES.DEFAULT"),"\n"))}function Ci(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"div")(1,"app-multi-state-button",5),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.furtherHelp())}),t.qZA(),t.TgZ(2,"button",6),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.close())}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&I){const d=t.oxw();t.xp6(1),t.Q6J("stickResult",!1)("runFunction",d.openIntercomHelpFunction)("nzTextKeys",d.openIntercomHelpText),t.xp6(2),t.hij(" ",t.lcZ(4,4,"COMMON.OK")," ")}}let Cn=class{constructor(g,d,P){this.modal=g,this.eventService=d,this.intercom=P,this.helpLoading=!1,this.isLawyerVerified=!1,this.isLawyerVerifiedLoading=!0,this.openIntercomHelpText=new o.PR("CLIENT.CONVERSATIONS.HELP_MODAL.FURTHER_HELP_BUTTON_STATES.DEFAULT","CLIENT.CONVERSATIONS.HELP_MODAL.FURTHER_HELP_BUTTON_STATES.WORKING","CLIENT.CONVERSATIONS.HELP_MODAL.FURTHER_HELP_BUTTON_STATES.SUCCESS","CLIENT.CONVERSATIONS.HELP_MODAL.FURTHER_HELP_BUTTON_STATES.FAILED")}ngOnInit(){}ngAfterViewInit(){this.defaultOpenIntercomHelpText&&(this.openIntercomHelpText=new o.PR(this.defaultOpenIntercomHelpText,"CLIENT.CONVERSATIONS.HELP_MODAL.FURTHER_HELP_BUTTON_STATES.WORKING","CLIENT.CONVERSATIONS.HELP_MODAL.FURTHER_HELP_BUTTON_STATES.SUCCESS","CLIENT.CONVERSATIONS.HELP_MODAL.FURTHER_HELP_BUTTON_STATES.FAILED"))}close(){this.modal.triggerOk()}furtherHelp(){this.openIntercomHelpFunction=this.intercom.isOpened||this.helpLoading?null:new Promise((g,d)=>{this.helpLoading=!0,this.eventService.intercomOpened.pipe((0,e.t)(this)).subscribe(P=>{this.helpLoading=!1,P?(g(null),this.modal.triggerOk()):d()}),this.intercom.startAndShow("right")})}};Cn.\u0275fac=function(g){return new(g||Cn)(t.Y36(v.Lf),t.Y36(Lt.P),t.Y36(ci.f))},Cn.\u0275cmp=t.Xpm({type:Cn,selectors:[["app-chat-help-modal"]],viewQuery:function(g,d){if(1&g&&t.Gf(di,5),2&g){let P;t.iGM(P=t.CRH())&&(d.defaultOpenIntercomHelpText=P.first)}},decls:8,vars:6,consts:[["nz-typography","",3,"innerHTML"],[1,"text-justify","justify-inter",3,"innerHTML"],["defaultOpenIntercomHelpText",""],[4,"nzModalFooter"],["nz-icon","","nzType","question-circle","nzTheme","outline"],["nzType","default",1,"actionButton","m-r-10",3,"stickResult","runFunction","nzTextKeys","click"],["nz-button","","nzType","primary",1,"button-text-wrap",3,"click"]],template:function(g,d){1&g&&(t.TgZ(0,"div"),t._UZ(1,"h4",0),t.ALo(2,"translate"),t._UZ(3,"p",1),t.ALo(4,"translate"),t.qZA(),t.YNc(5,Dn,3,3,"ng-template",null,2,t.W1O),t.YNc(7,Ci,5,6,"div",3)),2&g&&(t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,2,"CLIENT.CONVERSATIONS.HELP_MODA
996L.QUESTIONS.1.Q"),t.oJD),t.xp6(2),t.Q6J("innerHTML",t.lcZ(4,4,"CLIENT.CONVERSATIONS.HELP_MODAL.QUESTIONS.1.A"),t.oJD))},dependencies:[o.P4,O.ix,N.w,L.dQ,xe.Ls,v.Uh,Ei.ZU,l.X$],encapsulation:2}),Cn=(0,s.gn)([(0,e.c)()],Cn);var yn=n(21043),mi=n(91009);function fi(I,g){if(1&I){const d=t.EpF();t.ynx(0),t.TgZ(1,"button",1),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.triggerCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"app-multi-state-button",2),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.triggerOk())}),t.ALo(5,"translate"),t.qZA(),t.BQk()}if(2&I){const d=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"COMMON.CANCEL")," "),t.xp6(2),t.Q6J("nzGhost",!d.isValid)("runFunction",d.switchFunction)("nzTextKeys",d.switchText)("nzTooltipTitle",d.isValid?null:t.lcZ(5,7,d.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.INVALID"))}}let fn=class{constructor(g,d,P){this.modal=g,this.formService=d,this.userService=P,this.isValid=!1,this.switchText=new o.PR(this.userService.sessionTypeTranslationKey+".PROFILE.BILLING.KIND.SWITCH.TO_COMPANY_BUTTON_STATES.DEFAULT",this.userService.sessionTypeTranslationKey+".PROFILE.BILLING.KIND.SWITCH.TO_COMPANY_BUTTON_STATES.WORKING",this.userService.sessionTypeTranslationKey+".PROFILE.BILLING.KIND.SWITCH.TO_COMPANY_BUTTON_STATES.SUCCESS",this.userService.sessionTypeTranslationKey+".PROFILE.BILLING.KIND.SWITCH.TO_COMPANY_BUTTON_STATES.FAILED")}ngAfterViewInit(){const g=this.companyBillingFormComponent.billingForm.get("address")?this.companyBillingFormComponent.billingForm.get("address").value:null;this.companyBillingFormComponent.billingForm.statusChanges.subscribe(d=>{this.updateModalConfig((!g||"VALID"===g.status)&&"VALID"===d)}),g&&g.statusChanges.subscribe(d=>{this.updateModalConfig("VALID"===this.companyBillingFormComponent.billingForm.status&&"VALID"===d)})}updateModalConfig(g){Object.assign(this.actBilling,this.formService.groupToBillingCompany(this.companyBillingFormComponent.billingForm)),this.isValid=g}triggerCancel(){this.modal.triggerCancel()}triggerOk(){if(this.isValid&&this.successCallback){const g=this.successCallback(this,this.actBilling,()=>{},()=>{});g.then(d=>{},d=>{(0,Zt.H)(0).pipe((0,e.t)(this)).subscribe(()=>{this.formService.triggerBillingValidation(this.companyBillingFormComponent.billingForm,this.companyBillingFormComponent&&this.companyBillingFormComponent.billingFormElement?this.companyBillingFormComponent.billingFormElement.nativeElement:void 0,this.modal&&this.modal.containerInstance&&this.modal.containerInstance.getNativeElement()?this.modal.containerInstance.getNativeElement():void 0)})}),this.switchFunction=g}else this.formService.triggerBillingValidation(this.companyBillingFormComponent.billingForm,this.companyBillingFormComponent&&this.companyBillingFormComponent.billingFormElement?this.companyBillingFormComponent.billingFormElement.nativeElement:void 0,this.modal&&this.modal.containerInstance&&this.modal.containerInstance.getNativeElement()?this.modal.containerInstance.getNativeElement():void 0)}};fn.\u0275fac=function(g){return new(g||fn)(t.Y36(v.Lf),t.Y36(c.o),t.Y36(u.K))},fn.\u0275cmp=t.Xpm({type:fn,selectors:[["ng-component"]],viewQuery:function(g,d){if(1&g&&t.Gf(mi.m,5),2&g){let P;t.iGM(P=t.CRH())&&(d.companyBillingFormComponent=P.first)}},inputs:{actBilling:"actBilling",successCallback:"successCallback"},decls:2,vars:0,consts:[[4,"nzModalFooter"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary","nz-tooltip","",3,"nzGhost","runFunction","nzTextKeys","nzTooltipTitle","click"]],template:function(g,d){1&g&&(t._UZ(0,"app-company-billing-form"),t.YNc(1,fi,6,9,"ng-container",0))},dependencies:[o.P4,O.ix,N.w,L.dQ,v.Uh,et.SY,mi.m,l.X$],encapsulation:2}),fn=(0,s.gn)([(0,e.c)({checkProperties:!0})],fn);var ui=n(98405);function Ai(I,g){if(1&I){const d=t.EpF();t.ynx(0),t.TgZ(1,"button",2),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.triggerCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"app-multi-state-button",3),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.triggerOk())}),t.ALo(5,"translate"),t.qZA(),t.BQk()}if(2&I){const d=t.oxw();
996t.xp6(2),t.hij(" ",t.lcZ(3,5,"COMMON.CANCEL")," "),t.xp6(2),t.Q6J("nzGhost",!d.isValid)("runFunction",d.switchFunction)("nzTextKeys",d.switchText)("nzTooltipTitle",d.isValid?null:t.lcZ(5,7,d.userService.sessionTypeTranslationKey+".PROFILE.DATA.KIND.SWITCH.INVALID"))}}let An=class{constructor(g,d,P){this.modal=g,this.formService=d,this.userService=P,this.isValid=!1,this.switchText=new o.PR(this.userService.sessionTypeTranslationKey+".PROFILE.BILLING.KIND.SWITCH.TO_PERSONAL_BUTTON_STATES.DEFAULT",this.userService.sessionTypeTranslationKey+".PROFILE.BILLING.KIND.SWITCH.TO_PERSONAL_BUTTON_STATES.WORKING",this.userService.sessionTypeTranslationKey+".PROFILE.BILLING.KIND.SWITCH.TO_PERSONAL_BUTTON_STATES.SUCCESS",this.userService.sessionTypeTranslationKey+".PROFILE.BILLING.KIND.SWITCH.TO_PERSONAL_BUTTON_STATES.FAILED")}ngAfterViewInit(){const g=this.personalBillingFormComponent.billingForm.get("address")?this.personalBillingFormComponent.billingForm.get("address").value:null;this.personalBillingFormComponent.billingForm.statusChanges.subscribe(d=>{this.updateModalConfig((!g||"VALID"===g.status)&&"VALID"===d)}),g&&g.statusChanges.subscribe(d=>{this.updateModalConfig("VALID"===this.personalBillingFormComponent.billingForm.status&&"VALID"===d)})}updateModalConfig(g){Object.assign(this.actBilling,this.formService.groupToBillingPerson(this.personalBillingFormComponent.billingForm)),this.isValid=g}triggerCancel(){this.modal.triggerCancel()}triggerOk(){if(this.isValid&&this.successCallback){const g=this.successCallback(this,this.actBilling,()=>{},()=>{});g.then(d=>{},d=>{(0,Zt.H)(0).pipe((0,e.t)(this)).subscribe(()=>{this.formService.triggerBillingValidation(this.personalBillingFormComponent.billingForm,this.personalBillingFormComponent&&this.personalBillingFormComponent.billingFormElement?this.personalBillingFormComponent.billingFormElement.nativeElement:void 0,this.modal&&this.modal.containerInstance&&this.modal.containerInstance.getNativeElement()?this.modal.containerInstance.getNativeElement():void 0)})}),this.switchFunction=g}else this.formService.triggerBillingValidation(this.personalBillingFormComponent.billingForm,this.personalBillingFormComponent&&this.personalBillingFormComponent.billingFormElement?this.personalBillingFormComponent.billingFormElement.nativeElement:void 0,this.modal&&this.modal.containerInstance&&this.modal.containerInstance.getNativeElement()?this.modal.containerInstance.getNativeElement():void 0)}};An.\u0275fac=function(g){return new(g||An)(t.Y36(v.Lf),t.Y36(c.o),t.Y36(u.K))},An.\u0275cmp=t.Xpm({type:An,selectors:[["ng-component"]],viewQuery:function(g,d){if(1&g&&t.Gf(ui.M,5),2&g){let P;t.iGM(P=t.CRH())&&(d.personalBillingFormComponent=P.first)}},inputs:{actBilling:"actBilling",hasProfile:"hasProfile",successCallback:"successCallback"},decls:2,vars:1,consts:[[3,"hasProfile"],[4,"nzModalFooter"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary","nz-tooltip","",3,"nzGhost","runFunction","nzTextKeys","nzTooltipTitle","click"]],template:function(g,d){1&g&&(t._UZ(0,"app-personal-billing-form",0),t.YNc(1,Ai,6,9,"ng-container",1)),2&g&&t.Q6J("hasProfile",d.hasProfile)},dependencies:[o.P4,O.ix,N.w,L.dQ,v.Uh,et.SY,ui.M,l.X$],encapsulation:2}),An=(0,s.gn)([(0,e.c)({checkProperties:!0})],An);var _n=n(9037);const hi=function(I){return{contract_name:I}};function p(I,g){if(1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I){const d=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,"CLIENT.CONTRACTS.UNVERIFIED_LAWYER_SHARING.UNVERIFIED.SINGLE",t.VKq(4,hi,d.contract_name))," ")}}function J(I,g){if(1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I){const d=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,"CLIENT.CONTRACTS.UNVERIFIED_LAWYER_SHARING.UNVERIFIED.MULTIPLE",t.VKq(4,hi,d.contract_name))," ")}}function ge(I,g){if(1&I&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&I){const d=g.$implicit;t.xp6(1),t.hij(" ",d," ")}}function We(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.UNVERIFIED_LAWYER_SHARING.CONTENT.SINGLE")," "))}function dt(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.UNVERIFIED_LAWYER_SHARING.CONTENT.MULTIPLE")," "))}let Tt=class{constructor(g){this.modal=g}ngOnInit(){}cancel(){this.modal.close(!1)}done(){this.modal.close(!0)}};Tt.\u0275fac=function(g){return new(g||Tt)(t.Y36(v.Lf))},Tt.\u0275cmp=t.Xpm({type:Tt,selectors:[["app-unverified-lawyer-sharing"]],inputs:{contract_name:"contract_name",mails:"mails"},decls:7,vars:5,consts:[[1,"listWithMargin"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(g,d){1&g&&(t.TgZ(0,"div",0),t.YNc(1,p,3,6,"div",1),t.YNc(2,J,3,6,"div",1),t.TgZ(3,"ul"),t.YNc(4,ge,2,1,"li",2),t.qZA(),t.YNc(5,We,3,3,"div",1),t.YNc(6,dt,3,3,"div",1),t.qZA()),2&g&&(t.xp6(1),t.Q6J("ngIf",d.mails&&1===d.mails.length),t.xp6(1),t.Q6J("ngIf",d.mails&&d.mails.length>1),t.xp6(2),t.Q6J("ngForOf",d.mails),t.xp6(1),t.Q6J("ngIf",d.mails&&1===d.mails.length),t.xp6(1),t.Q6J("ngIf",d.mails&&d.mails.length>1))},dependencies:[f.sg,f.O5,l.X$],encapsulation:2}),Tt=(0,s.gn)([(0,e.c)()],Tt);const Nt=function(I){return{contract_name:I}};function _t(I,g){if(1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I){const d=t.oxw();
996t.xp6(1),t.hij(" ",t.xi3(2,1,"CLIENT.CONTRACTS.INVITE_FAILED.FAILED.SINGLE",t.VKq(4,Nt,d.contract_name))," ")}}function $t(I,g){if(1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I){const d=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,"CLIENT.CONTRACTS.INVITE_FAILED.FAILED.MULTIPLE",t.VKq(4,Nt,d.contract_name))," ")}}function dn(I,g){if(1&I&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&I){const d=g.$implicit;t.xp6(1),t.hij(" ",d," ")}}function On(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.INVITE_FAILED.CONTENT.SINGLE")," "))}function In(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.INVITE_FAILED.CONTENT.MULTIPLE")," "))}let jt=class{constructor(g){this.modal=g}ngOnInit(){}cancel(){this.modal.close(!1)}done(){this.modal.close(!0)}};jt.\u0275fac=function(g){return new(g||jt)(t.Y36(v.Lf))},jt.\u0275cmp=t.Xpm({type:jt,selectors:[["app-invite-failed"]],inputs:{contract_name:"contract_name",mails:"mails"},decls:7,vars:5,consts:[[1,"listWithMargin"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(g,d){1&g&&(t.TgZ(0,"div",0),t.YNc(1,_t,3,6,"div",1),t.YNc(2,$t,3,6,"div",1),t.TgZ(3,"ul"),t.YNc(4,dn,2,1,"li",2),t.qZA(),t.YNc(5,On,3,3,"div",1),t.YNc(6,In,3,3,"div",1),t.qZA()),2&g&&(t.xp6(1),t.Q6J("ngIf",d.mails&&1===d.mails.length),t.xp6(1),t.Q6J("ngIf",d.mails&&d.mails.length>1),t.xp6(2),t.Q6J("ngForOf",d.mails),t.xp6(1),t.Q6J("ngIf",d.mails&&1===d.mails.length),t.xp6(1),t.Q6J("ngIf",d.mails&&d.mails.length>1))},dependencies:[f.sg,f.O5,l.X$],encapsulation:2}),jt=(0,s.gn)([(0,e.c)()],jt);var St=n(71667),gi=n(3550);const pi=function(I){return{modificationEndTime:I}};let Sn=class{constructor(g,d){this.modal=g,this.dateTrigger=d,this.dateAfterTrigger=0}ngOnInit(){this.dateTrigger.trigger.subscribe(g=>{this.dateAfterTrigger=g}),(0,Zt.H)(this.modificationEndTime-Date.now()).pipe((0,e.t)(this)).subscribe(()=>{this.modal.triggerCancel()})}};Sn.\u0275fac=function(g){return new(g||Sn)(t.Y36(v.Lf),t.Y36(ye.J))},Sn.\u0275cmp=t.Xpm({type:Sn,selectors:[["app-copy-finalized-with-unlimited-edit"]],inputs:{contractID:"contractID",modificationEndTime:"modificationEndTime"},decls:4,vars:10,template:function(g,d){1&g&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"dateAfter"),t.qZA()),2&g&&(t.xp6(1),t.hij(" ",t.xi3(2,1,"CLIENT.CONTRACTS.PROGRESSES.COPY.UNLIMITED_EDIT_MODAL.DESC",t.VKq(8,pi,t.Dn7(3,4,d.modificationEndTime,d.dateAfterTrigger,2))),"\n"))},dependencies:[l.X$,gi.z],encapsulation:2}),Sn=(0,s.gn)([(0,e.c)()],Sn);var vi=n(3417),Li=n(3674),Oi=n(51971),Mi=n(45144); 997/* 998 * @license 999 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1000 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1001 *
1002 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1003 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1004 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1005 * trade secret or copyright law. 1006 * 1007 * Dissemination of this information or reproduction of this material is strictly forbidden 1008 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1009 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1010 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1011 * explicitly covering such access. 1012 * 1013 * The copyright notice above does not evidence any actual or intended publication or disclosure 1014 * of this source code, which includes information that is confidential and/or proprietary, 1015 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1016 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1017 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1018 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1019 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1020 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1021 * IN WHOLE OR IN PART. 1022 */const Pi=["matchmakingFormElement"];function Ri(I,g){1&I&&(t.TgZ(0,"div",15),t._UZ(1,"nz-skeleton-element",16),t.qZA()),2&I&&(t.xp6(1),t.Q6J("nzActive",!0))}function Di(I,g){1&I&&(t.TgZ(0,"div",17)(1,"span"),t._UZ(2,"nz-skeleton-element",18),t.qZA()()),2&I&&(t.xp6(2),t.Q6J("nzActive",!0))}function yi(I,g){1&I&&(t.TgZ(0,"div",1),t._UZ(1,"nz-skeleton-element",19),t.qZA()),2&I&&(t.xp6(1),t.Q6J("nzActive",!0))}function _i(I,g){if(1&I&&(t.TgZ(0,"nz-card",10),t.YNc(1,Ri,2,1,"ng-template",null,11,t.W1O),t._UZ(3,"nz-card-meta",12),t.YNc(4,Di,3,1,"ng-template",null,13,t.W1O),t.YNc(6,yi,2,1,"ng-template",null,14,t.W1O),t.qZA()),2&I){const d=t.MAs(2),P=t.MAs(5),z=t.MAs(7);t.Q6J("nzCover",z),t.xp6(3),t.Q6J("nzTitle",P)("nzDescription",d)}}function xi(I,g){1&I&&(t.TgZ(0,"div",5)(1,"div",6),t._UZ(2,"nz-skeleton-element",7),t.qZA(),t.TgZ(3,"div",8),t.YNc(4,_i,8,3,"nz-card",9),t.ALo(5,"numberArray"),t.qZA()()),2&I&&(t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(2),t.Q6J("nzActive",!0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,3,18)))}function zi(I,g){1&I&&(t.TgZ(0,"div")(1,"p",20),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&I&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"CLIENT.HELP.CATEGORY_MODAL.LOAD_FAILED")," "))}function Fi(I,g){1&I&&(t.TgZ(0,"span"),t._uU(1,","),t.qZA())}function Ui(I,g){if(1&I&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,Fi,2,0,"span",3),t.qZA()),2&I){const d=g.$implicit,P=g.index,z=t.oxw(2).$implicit,ie=t.oxw(3);t.xp6(1),t.hij(" ",d,""),t.xp6(1),t.Q6J("ngIf",P!==z.keywords[ie.actLanguage].length-1)}}function Bi(I,g){if(1&I&&(t.TgZ(0,"ul",40)(1,"li",41)(2,"a",42),t._uU(3),t.qZA()()()),2&I){const d=g.$implicit;t.xp6(2),t.Q6J("href",d.hyperlink,t.LSH),t.xp6(1),t.Oqu(d.title)}}function bi(I,g){if(1&I&&(t.TgZ(0,"div",31)(1,"a",36),t.NdJ("click",function(P){return P.stopPropagation()}),t._UZ(2,"i",37),t.qZA(),t.TgZ(3,"nz-dropdown-menu",null,38),t.YNc(5,Bi,4,2,"ul",39),t.qZA()()),2&I){const d=t.MAs(4),P=t.oxw(2).$implicit;t.xp6(1),t.Q6J("nzDropdownMenu",d),t.xp6(4),t.Q6J("ngForOf",P.links)}}function Zi(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"app-multi-state-button",43),t.NdJ("click",function(){t.CHM(d);const z=t.oxw(5);return t.KtG(z.tryRequestLawyer())}),t.qZA()}if(2&I){const d=t.oxw(5);t.Q6J("nzType",d.matchmakingForm&&d.matchmakingForm.valid?"primary":"default")("runFunction",d.helpRunFunction)("stickResult",!1)("nzTextKeys",d.quickHelpText)("backToDefaultStateCondition",d.categorySwitched)}}const Ti=function(){return{}};function Gi(I,g){if(1&I&&(t.TgZ(0,"div",31),t.YNc(1,Ui,3,2,"span",32),t.qZA(),t.YNc(2,bi,6,2,"div",33),t.TgZ(3,"div",34),t.YNc(4,Zi,1,5,"app-multi-state-button",35),t.qZA()),2&I){const d=t.oxw(),P=d.$implicit,z=d.index,ie=t.oxw(3);
1022t.xp6(1),t.Q6J("ngForOf",P.keywords[ie.actLanguage])("ngForTrackBy",ie.trackByKeyword),t.xp6(1),t.Q6J("ngIf",ie.categoryInfo[z].length>0&&ie.categoryInfo[z]!==t.DdM(4,Ti)),t.xp6(2),t.Q6J("ngIf",ie.matchmakingForm.controls.category.value===P.ID||ie.matchmakingForm.controls.category.value&&ie.matchmakingForm.controls.category.value.includes(P.ID))}}function Hi(I,g){if(1&I&&(t.TgZ(0,"div",17)(1,"span"),t._uU(2),t.qZA()()),2&I){const d=t.oxw().$implicit,P=t.oxw(3);t.xp6(2),t.hij(" ",d.names[P.actLanguage]," ")}}function Wi(I,g){if(1&I&&(t.TgZ(0,"nz-tag",48),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I){const d=t.oxw(5);t.Q6J("nzColor",d.ColorSettings.Primary),t.xp6(1),t.hij(" ",t.lcZ(2,2,"CLIENT.CONTRACTS.FIELD.SELECT.SELECTED")," ")}}function Ki(I,g){1&I&&t._UZ(0,"nz-skeleton-element",19),2&I&&t.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0)}function Yi(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"img",49),t.NdJ("load",function(){t.CHM(d);const z=t.oxw(2).$implicit,ie=t.oxw(3);return t.KtG(ie.setIconDarkLoaded(z.ID,!0))}),t.qZA()}if(2&I){const d=t.oxw(2),P=d.index,z=d.$implicit,ie=t.oxw(3);t.Q6J("@fadeIn",ie.hoveredCard===P?1:0)("alt",z.name)("src",ie.ClientRoutes.apiRouteContractIcon(ie.categoryDarkAssets[P].name),t.LSH)("hidden",!ie.iconLightLoaded[z.ID]||!ie.iconDarkLoaded[z.ID])}}function Vi(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"img",50),t.NdJ("load",function(){t.CHM(d);const z=t.oxw(2).$implicit,ie=t.oxw(3);return t.KtG(ie.setIconLightLoaded(z.ID,!0))}),t.qZA()}if(2&I){const d=t.oxw(2),P=d.index,z=d.$implicit,ie=t.oxw(3);t.Q6J("@fadeOut",ie.hoveredCard===P?1:0)("alt",z.name)("src",ie.ClientRoutes.apiRouteContractIcon(ie.categoryLightAssets[P].name),t.LSH)("hidden",!ie.iconLightLoaded[z.ID]||!ie.iconDarkLoaded[z.ID])}}function Ji(I,g){if(1&I&&(t.YNc(0,Wi,3,4,"nz-tag",44),t.TgZ(1,"div",1),t.YNc(2,Ki,1,2,"nz-skeleton-element",45),t.YNc(3,Yi,1,4,"img",46),t.YNc(4,Vi,1,4,"img",47),t.qZA()),2&I){const d=t.oxw(),P=d.$implicit,z=d.index,ie=t.oxw(3);t.Q6J("ngIf",ie.matchmakingForm.controls.category.value===P.ID||ie.matchmakingForm.controls.category.value&&ie.matchmakingForm.controls.category.value.includes(P.ID)),t.xp6(2),t.Q6J("ngIf",ie.categoryLightAssets&&ie.categoryLightAssets[z]&&ie.categoryLightAssets[z].name&&ie.categoryDarkAssets&&ie.categoryDarkAssets[z]&&ie.categoryDarkAssets[z].name&&!(ie.iconLightLoaded[P.ID]&&ie.iconDarkLoaded[P.ID])),t.xp6(1),t.Q6J("ngIf",ie.categoryDarkAssets&&ie.categoryDarkAssets[z]&&ie.categoryDarkAssets[z].name),t.xp6(1),t.Q6J("ngIf",ie.categoryLightAssets&&ie.categoryLightAssets[z]&&ie.categoryLightAssets[z].name)}}function wi(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"nz-card",30),t.NdJ("click",function(){const ie=t.CHM(d).$implicit,Ie=t.oxw(3);return t.KtG(Ie.toggleListOrPanelSelection(ie.ID))})("keydown.space",function(z){const Ie=t.CHM(d).$implicit,Xe=t.oxw(3);return t.KtG(Xe.toggleListOrPanelSelectionWithKey(Ie.ID,z))})("keydown.arrowup",function(z){const Ie=t.CHM(d).index,Xe=t.oxw(3);return t.KtG(Xe.changePanelFocus(z,Ie))})("keydown.arrowleft",function(z){const Ie=t.CHM(d).index,Xe=t.oxw(3);return t.KtG(Xe.changePanelFocus(z,Ie))})("keydown.arrowdown",function(z){const Ie=t.CHM(d).index,Xe=t.oxw(3);return t.KtG(Xe.changePanelFocus(z,Ie))})("keydown.arrowright",function(z){const Ie=t.CHM(d).index,Xe=t.oxw(3);return t.KtG(Xe.changePanelFocus(z,Ie))})("mouseover",function(){const ie=t.CHM(d).index,Ie=t.oxw(3);return t.KtG(Ie.hoveredCard=ie)})("mouseout",function(){t.CHM(d);const z=t.oxw(3);return t.KtG(z.hoveredCard=void 0)}),t.ALo(1,"as"),t.YNc(2,Gi,5,5,"ng-template",null,11,t.W1O),t._UZ(4,"nz-card-meta",12),t.YNc(5,Hi,3,1,"ng-template",null,13,t.W1O),t.YNc(7,Ji,5,4,"ng-template",null,14,t.W1O),t.qZA()}if(2&I){const d=g.$implicit,P=g.index,z=t.MAs(3),ie=t.MAs(6),Ie=t.MAs(8),Xe=t.oxw(3);t.ekj("active",Xe.matchmakingForm.controls.category.value===d.ID||Xe.matchmakingForm.controls.category.value&&Xe.matchmakingForm.controls.category.value.includes(d.ID))("col-sm-12",1===Xe.categoryModels.length)("col-sm-6",2===Xe.categoryModels.length)("col-sm-4",Xe.categoryModels.length>=3),t.Q6J("formControl",t.xi3(1,13,Xe.matchmakingForm.controls.category,Xe.FormControl))("nzCover",Ie)("id",P),t.xp6(4),t.Q6J("nzTitle",ie)("nzDescription",d.keywords&&d.keywords[Xe.actLanguage]?z:null)}}function ki(I,g){1&I&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&I&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"CLIENT.HELP.CATEGORY_MODAL_VALIDATION.CATEGORY.REQUIRED")))}function Qi(I,g){if(1&I&&(t.TgZ(0,"div",51),t.YNc(1,ki,3,3,"ng-container",3),t.qZA()),2&I){const d=g.$implicit;t.xp6(1),t.Q6J("ngIf",d.hasError("required"))}}function $i(I,g){if(1&I){const d=t.EpF();
1022t.TgZ(0,"form",22,23),t.NdJ("keydown.enter",function(z){t.CHM(d);const ie=t.oxw(2);return t.KtG(ie.formService.triggerAutoSubmitWithEnter(z))}),t.TgZ(2,"nz-form-item",24)(3,"nz-form-label",25)(4,"span"),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"nz-form-control",26)(8,"div",27),t.YNc(9,wi,9,16,"nz-card",28),t.qZA(),t.YNc(10,Qi,2,1,"ng-template",null,29,t.W1O),t.qZA()()()}if(2&I){const d=t.MAs(11),P=t.oxw(2);t.Q6J("formGroup",P.matchmakingForm),t.xp6(3),t.Q6J("nzXs",24)("nzRequired",P.matchmakingForm&&P.matchmakingForm.controls.category&&P.matchmakingForm.controls.category.validator&&P.matchmakingForm.controls.category.validator(t.DdM(11,Ti))&&P.matchmakingForm.controls.category.validator(t.DdM(12,Ti)).required),t.xp6(2),t.hij(" ",t.lcZ(6,9,"CLIENT.HELP.CATEGORY_MODAL.CATEGORIES")," "),t.xp6(2),t.Q6J("nzXs",24)("nzValidateStatus",P.matchmakingForm.controls.category)("nzErrorTip",d),t.xp6(2),t.Q6J("ngForOf",P.categoryModels)("ngForTrackBy",P.trackByCategory)}}function ji(I,g){if(1&I&&(t.TgZ(0,"div"),t.YNc(1,$i,12,13,"form",21),t.qZA()),2&I){const d=t.oxw();t.Q6J("@contentEnterAnimation",void 0),t.xp6(1),t.Q6J("ngIf",d.matchmakingForm)}}function Xi(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"div",52)(1,"div",53)(2,"button",54),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.closeModal())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"app-multi-state-button",55),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.tryRequestLawyer())}),t.qZA()()()}if(2&I){const d=t.oxw();t.xp6(3),t.hij(" ",t.lcZ(4,5,"COMMON.CANCEL")," "),t.xp6(2),t.Q6J("nzType",d.matchmakingForm&&d.matchmakingForm.valid?"primary":"default")("runFunction",d.helpRunFunction)("stickResult",!1)("nzTextKeys",d.helpText)}}let Nn=class{constructor(g,d,P,z,ie,Ie,Xe,Mt){this.formService=g,this.modal=d,this.clientService=P,this.routerService=z,this.languageService=ie,this.translate=Ie,this.matchmakerService=Xe,this.utilService=Mt,this.isLoading=!1,this.helpErrorMap=(new Map).set(0,"CLIENT.HELP.BUTTON_STATES.FAILED.OTHER").set(402,"CLIENT.HELP.BUTTON_STATES.FAILED.402").set(404,"CLIENT.HELP.BUTTON_STATES.FAILED.NOT_FOUND").set(423,"CLIENT.HELP.BUTTON_STATES.FAILED.LOCKED").set(444,"CLIENT.HELP.BUTTON_STATES.FAILED.444").set(499,"CLIENT.HELP.BUTTON_STATES.FAILED.CANCELLED"),this.helpText=new o.PR("CLIENT.HELP.CATEGORY_MODAL.SELECT_BUTTON_STATES.DEFAULT","CLIENT.HELP.BUTTON_STATES.WORKING","CLIENT.HELP.BUTTON_STATES.SUCCESS",this.helpErrorMap),this.quickHelpText=new o.PR("CLIENT.HELP.CATEGORY_MODAL.QUICK_START_HELP.DEFAULT","CLIENT.HELP.BUTTON_STATES.WORKING","CLIENT.HELP.BUTTON_STATES.SUCCESS",this.helpErrorMap),this.matchmakingLoadingFailed=!1,this.actLanguage="hu-HU",this.iconLightLoaded={},this.iconDarkLoaded={},this.FormControl=m.p4,this.PageRoutes=Ve.d,this.ClientRoutes=we.i,this.ColorSettings=Be.y,this.categorySwitched=!1}ngOnInit(){this.actLanguage=this.languageService.dashedServerLanguageFromLanguageKey(this.languageService.currentLanguage),this.translate.onLangChange.subscribe(g=>{this.actLanguage=this.languageService.dashedServerLanguageFromLanguageKey(g.lang),this.getInfo()}),this.isLoading=!0,this.loadMatchmakingCategories()}loadMatchmakingCategories(){this.clientService.getCategories().pipe((0,e.t)(this)).subscribe(g=>{this.categoryModels=this.sortCategoryModels(g),this.getAssets(),this.getInfo()},g=>{this.matchmakingLoadingFailed=!0,this.isLoading=!1})}getAssets(){this.clientService.getUsageAssets().pipe((0,e.t)(this)).subscribe(g=>{this.assetModels=g,this.categoryLightAssets=this.categoryModels.map(d=>this.assetModels.find(P=>P.name.endsWith("categories/"+d.name+"-light.svg"))),this.categoryDarkAssets=this.categoryModels.map(d=>this.assetModels.find(P=>P.name.endsWith("categories/"+d.name+"-dark.svg"))),this.createMatchmakingFormService(),this.isLoading=!1})}getInfo(){this.categoryInfo=[],this.categoryModels.forEach(g=>{g.links.length>0&&g.links.filter(d=>d.language===this.actLanguage).length>0?this.categoryInfo.push(g.links):this.categoryInfo.push([])})}createMatchmakingFormService(){this.matchmakingForm=this.formService.matchmakingCategoryFormGroup()}toggleListOrPanelSelectionWithKey(g,d){32===d.which&&(d.preventDefault(),this.toggleListOrPanelSelection(g))}toggleListOrPanelSelection(g){this.matchmakingForm.controls.category.value!==g&&(this.matchmakingForm.controls.category.setValue(g),this.categorySwitched=!0,setTimeout(()=>this.categorySwitched=!1,500)),this.matchmakingForm.controls.category.markAsDirty()}changePanelFocus(g,d){if(g.target.parentElement&&g.target.parentElement){const P=g.target.parentElement.children;g.which>=37&&g.which<=40&&g.preventDefault(),P.length>0&&(37===g.which||38===g.which)?d>0?P[d-1].focus():P.length>1&&P[P.length-1].focus():P.length>0&&(39===g.which||40===g.which)&&(P.length>d+1?P[d+1].focus():P.length>1&&P[0].focus())}}setIconLightLoaded(g,d){this.iconLightLoaded[g]=d}setIconDarkLoaded(g,d){this.iconDarkLoaded[g]=d}sortCategoryModels(g){return g.sort((d,P)=>d.names[this.actLanguage].localeCompare(P.names[this.actLanguage]))}trackByCategory(g,d){return d.ID}trackByKeyword(g,d){return d}closeModal(){this.modal.result={status:499},this.modal.triggerCancel()}tryRequestLawyer(){if(this.matchmakingForm.valid){const g=this.formService.groupToMatchmakingCategory(this.matchmakingForm),d=this.categoryModels.findIndex(Ie=>Ie.ID===g.category);let P,z;-1!==d&&(P=this.categoryModels[d],z=this.categoryDarkAssets[d]);const ie=this.matchmakerService.tryRequestLawyer(window.innerWidth<1185,this.utilService.randomString(128),this.progressID,g,P,z);return this.helpRunFunction=ie,ie.then(Ie=>{this.modal.result=Ie,this.modal.triggerOk()},Ie=>{this.modal.result=Ie}),ie}this.formService.markAllAsTouched(this.matchmakingForm)}};Nn.\u0275fac=function(g){return new(g||Nn)(t.Y36(c.o),t.Y36(v.Lf),t.Y36(r.y),t.Y36(ee.c),t.Y36(vi.T),t.Y36(l.sK),t.Y36(Rn.$),t.Y36(Li.f))},Nn.\u0275cmp=t.Xpm({type:Nn,selectors:[["app-matchmaker-category-modal"]],viewQuery:function(g,d){if(1&g&&t.Gf(Pi,5),2&g){let P;t.iGM(P=t.CRH())&&(d.matchmakingFormElement=P.first)}},inputs:{progressID:"progressID"},decls:9,vars:6,consts:[[2,"border-style","none"],[1,"position-relative"],["class","w-100",4,"ngIf"],[4,"ngIf"],["class","sticky-footer",4,"nzModalFooter"],[1,"w-100"],[1,"col-12","text-left","mb-2","mb-sm-0"],["nzType","input","nzSize","small",1,"w-40","formLabelSkeleton",3,"nzActive"],[1,"row","mb-4","justify-content-center"],["class","selection-
1022panel m-b-0 col-xs-12 col-sm-6",3,"nzCover",4,"ngFor","ngForOf"],[1,"selection-panel","m-b-0","col-xs-12","col-sm-6",3,"nzCover"],["descriptionTemplate",""],[3,"nzTitle","nzDescription"],["titleTemplate",""],["coverTemplate",""],[1,"text-center"],["nzType","input","nzSize","small",1,"w-70","labelSkeleton","skeleton-h-20px",3,"nzActive"],[1,"selection-panel-title","code-box-description"],["nzType","input","nzSize","small",1,"w-60","labelSkeleton","skeleton-h-20px",3,"nzActive"],["nzType","avatar",1,"panelImage","imgSkeleton",3,"nzActive"],[1,"text-danger"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter",4,"ngIf"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],["matchmakingFormElement",""],[1,"m-b-0"],[1,"multiLineLabel","text-left",3,"nzXs","nzRequired"],[3,"nzXs","nzValidateStatus","nzErrorTip"],[1,"row","justify-content-center"],["ngDefaultControl","","class","selection-panel m-b-0 col-xs-12","tabindex","0",3,"formControl","nzCover","id","active","col-sm-12","col-sm-6","col-sm-4","click","keydown.space","keydown.arrowup","keydown.arrowleft","keydown.arrowdown","keydown.arrowright","mouseover","mouseout",4,"ngFor","ngForOf","ngForTrackBy"],["categoryErrorTip",""],["ngDefaultControl","","tabindex","0",1,"selection-panel","m-b-0","col-xs-12",3,"formControl","nzCover","id","click","keydown.space","keydown.arrowup","keydown.arrowleft","keydown.arrowdown","keydown.arrowright","mouseover","mouseout"],[1,"text-center","font-size-smaller"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","text-center font-size-smaller",4,"ngIf"],[1,"m-t-5","text-center"],["class","multiLineButton button-flexing",3,"nzType","runFunction","stickResult","nzTextKeys","backToDefaultStateCondition","click",4,"ngIf"],["nz-dropdown","",3,"nzDropdownMenu","click"],["nz-icon","","nzType","question-circle","nzTheme","outline",1,"mr-1"],["menu","nzDropdownMenu"],["nz-menu","",4,"ngFor","ngForOf"],["nz-menu",""],["nz-menu-item",""],["target","_blank",1,"open-link-brand-16",3,"href"],[1,"multiLineButton","button-flexing",3,"nzType","runFunction","stickResult","nzTextKeys","backToDefaultStateCondition","click"],["class","selectedPanelTag m-t-5 m-r-5",3,"nzColor",4,"ngIf"],["class","panelImage imgSkeleton","nzType","avatar",3,"nzActive",4,"ngIf"],["class","panelImage",3,"alt","src","hidden","load",4,"ngIf"],["class","panelImage light-image",3,"alt","src","hidden","load",4,"ngIf"],[1,"selectedPanelTag","m-t-5","m-r-5",3,"nzColor"],[1,"panelImage",3,"alt","src","hidden","load"],[1,"panelImage","light-image",3,"alt","src","hidden","load"],[1,"m-t-10"],[1,"sticky-footer"],[1,"row","text-center","flex-wrap","grid-gap-15","m-l-0","m-r-0"],["nz-button","","nzType","default",1,"button-flexing","m-h-auto",3,"click"],[1,"multiLineButton","button-flexing",3,"nzType","runFunction","stickResult","nzTextKeys","click"]],template:function(g,d){1&g&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",0)(4,"div",1),t.YNc(5,xi,6,5,"div",2),t.YNc(6,zi,4,3,"div",3),t.YNc(7,ji,2,2,"div",3),t.qZA()(),t.YNc(8,Xi,6,7,"div",4)),2&g&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"CLIENT.HELP.CATEGORY_MODAL.DESC")),t.xp6(4),t.Q6J("ngIf",d.isLoading),t.xp6(1),t.Q6J("ngIf",!d.isLoading&&d.matchmakingLoadingFailed),t.xp6(1),t.Q6J("ngIf",!d.isLoading&&!d.matchmakingLoadingFailed))},dependencies:[m._Y,m.Fj,m.JJ,m.JL,f.sg,f.O5,m.oH,m.sg,o.P4,O.ix,N.w,L.dQ,Oi.bd,Oi.l7,F.wO,F.r9,ne.cm,ne.Ws,ne.RR,i.t3,i.SK,M.Lr,M.Nx,M.iK,M.Fd,xe.Ls,v.Uh,U.Xw,U.yx,U.yg,Vt.j,l.X$,Mi.j,tt.A],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}.labelSkeleton[_ngcontent-%COMP%]{min-width:110px;max-width:220px}[_nghost-%COMP%] .labelSkeleton[_ngcontent-%COMP%] .ant-skeleton-input{min-width:110px;max-width:220px}.labelSkeleton[_ngcontent-%COMP%]{height:auto;margin-bottom:.5rem}.formLabelSkeleton[_ngcontent-%COMP%]{min-height:2.4125rem}
1022.selection-panel[_ngcontent-%COMP%]{border:none;max-width:220px;margin:3px;cursor:pointer}.selection-panel.active[_ngcontent-%COMP%]{background-color:#9579d11a}.selection-panel[_ngcontent-%COMP%]:focus, .selection-panel[_ngcontent-%COMP%]:hover{outline:rgba(149,121,209,.3) 3px solid}.selection-panel-title[_ngcontent-%COMP%]{white-space:normal;text-align:center;padding:0;font-weight:400;font-size:14px}[_nghost-%COMP%] .selection-panel .ant-card-body{padding:0 0 .7rem}.panelImage[_ngcontent-%COMP%]{padding:5px 15%;width:100%}.selectedPanelTag[_ngcontent-%COMP%]{position:absolute;top:0;right:0;z-index:1;width:-moz-fit-content;width:fit-content}.imgSkeleton[_ngcontent-%COMP%]{width:100%;text-align:center}[_nghost-%COMP%] .imgSkeleton[_ngcontent-%COMP%] .ant-skeleton-avatar-circle{width:90%;padding-top:90%}.light-image[_ngcontent-%COMP%]{position:absolute;left:0}'],data:{animation:[ht.Ln,ht.hh,ht.Ji,ht.U6]}}),Nn=(0,s.gn)([(0,e.c)()],Nn);var Ii=n(49651),qi=n(52033),eo=n(37096),xn=n(40269); 1023/* 1024 * @license 1025 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1026 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1027 *
1028 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1029 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1030 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1031 * trade secret or copyright law. 1032 * 1033 * Dissemination of this information or reproduction of this material is strictly forbidden 1034 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1035 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1036 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1037 * explicitly covering such access. 1038 * 1039 * The copyright notice above does not evidence any actual or intended publication or disclosure 1040 * of this source code, which includes information that is confidential and/or proprietary, 1041 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1042 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1043 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1044 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1045 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1046 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1047 * IN WHOLE OR IN PART. 1048 */function to(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.ALo(7,"date"),t.qZA(),t.TgZ(8,"td")(9,"app-multi-state-button",12),t.NdJ("nzOnConfirm",function(){const ie=t.CHM(d).$implicit,Ie=t.oxw();return t.KtG(Ie.runActivation(ie.ID,ie.hasExpired))}),t.ALo(10,"translate"),t.ALo(11,"translate"),t.ALo(12,"translate"),t.ALo(13,"translate"),t.qZA()()()}if(2&I){const d=g.$implicit,P=t.oxw(),z=t.MAs(37);t.xp6(2),t.Oqu(null==d?null:d.displayName),t.xp6(2),t.Oqu(d.quota),t.xp6(2),t.Oqu(t.xi3(7,12,d.created,"yyyy-MM-dd")),t.xp6(3),t.s9C("nzCancelText",t.lcZ(11,17,"ADMIN.CANCEL")),t.s9C("nzOkText",d.hasExpired?t.lcZ(12,19,"ADMIN.ACTIVATE"):t.lcZ(13,21,"ADMIN.DEACTIVATE")),t.Q6J("runFunction",P.runFunctionMap.has(d.ID)?P.runFunctionMap.get(d.ID):null)("nzTextKeys",d.hasExpired?P.activateText:P.deactivateText)("stickResult",!1)("showAsLink",!0)("backToDefaultStateTime",1e3)("nzPopconfirmTitle",d.hasExpired?t.lcZ(10,15,"ADMIN.ACTIVATE_CONFIRM"):z)("nzOkType","primary")}}function no(I,g){if(1&I){const d=t.EpF();t._UZ(0,"i",13),t.TgZ(1,"div",14)(2,"span"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"textarea",15),t.NdJ("ngModelChange",function(z){t.CHM(d);const ie=t.oxw();return t.KtG(ie.terminateDescription=z)}),t.ALo(6,"translate"),t._uU(7," "),t.qZA()()}if(2&I){const d=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"ADMIN.DEACTIVATE_CONFIRM")),t.xp6(2),t.s9C("placeholder",t.lcZ(6,5,"COMMON.DESCRIPTION")),t.Q6J("ngModel",d.terminateDescription)}}const io=function(){return{y:"500px"}};let vn=class{constructor(g,d,P,z,ie){this.clientService=g,this.nzMessage=d,this.translate=P,this.cdr=z,this.packNameService=ie,this.bundleTranslations={},this.clientPacks=[],this.isClientPackLoading=!0,this.bundles=[],this.activateText=new o.PR("ADMIN.ACTIVATION.CHANGE","ADMIN.ACTIVATION.CHANGING","ADMIN.ACTIVATION.CHANGED","ADMIN.ACTIVATION.FAILED"),this.deactivateText=new o.PR("ADMIN.DEACTIVATION.CHANGE","ADMIN.DEACTIVATION.CHANGING","ADMIN.DEACTIVATION.CHANGED","ADMIN.DEACTIVATION.FAILED"),this.runFunctionMap=new Map}ngOnInit(){this.getClientPacks()}getClientPacks(){this.isClientPackLoading=!0,this.clientService.getClientPacks(this.clientID).pipe((0,e.t)(this)).toPromise().then(g=>{this.clientPacks=g.sort((d,P)=>P.created-d.created),this.packNameService.setPacksNameWithBundle(g).then(d=>{this.clientPacks=d}),this.generateRunFunctionMap()},g=>{console.log(g)}).finally(()=>{this.isClientPackLoading=!1,this.cdr.detectChanges()})}generateRunFunctionMap(){this.clientPacks.forEach(g=>{this.runFunctionMap.set(g.ID,null)})}runActivation(g,d){this.runFunctionMap.has(g)&&this.runFunctionMap.set(g,()=>this.activate(g,d))}activate(g,d){return d?this.clientService.restoreClientPack(this.clientID,g).pipe((0,e.t)(this)).toPromise().then(()=>{this.nzMessage.success(this.translate.instant("ADMIN.DEACTIVATED",{ID:g})),this.setPackHasExpiredStatus(g)}).finally(()=>{this.runFunctionMap.set(g,null)}):this.clientService.terminateClientPack(this.clientID,g,this.terminateDescription).pipe((0,e.t)(this)).toPromise().then(()=>{this.nzMessage.success(this.translate.instant("ADMIN.ACTIVATED",{ID:g})),this.setPackHasExpiredStatus(g)}).finally(()=>{this.runFunctionMap.set(g,null),this.terminateDescription=null})}setPackHasExpiredStatus(g){this.clientPacks.forEach(d=>{d.ID===g&&(0,Zt.H)(1e3).pipe((0,e.t)(this)).subscribe(()=>{d.hasExpired=!d.hasExpired})})}
1048gifting(){this.clientService.giftClientWithQuota(this.clientID,this.quota,this.giftDescription).pipe((0,e.t)(this)).toPromise().then(g=>{this.nzMessage.success(this.translate.instant("ADMIN.CLIENT_MANAGEMENT.GIFTING.SUCCESS"))},g=>{this.nzMessage.success(this.translate.instant("ADMIN.CLIENT_MANAGEMENT.GIFTING.FAILED")),console.log(g)}).finally(()=>{this.quota=null,this.giftDescription=null,setTimeout(()=>{this.getClientPacks()},300)})}};vn.\u0275fac=function(g){return new(g||vn)(t.Y36(r.y),t.Y36(Ii.dD),t.Y36(l.sK),t.Y36(t.sBO),t.Y36(qi.S))},vn.\u0275cmp=t.Xpm({type:vn,selectors:[["app-client-management"]],inputs:{clientID:"clientID"},decls:38,vars:38,consts:[[1,"container"],[1,"m-t-20","d-flex","flex-column","align-items-center","m-t-10"],[1,"m-b-5"],[1,"m-b-10",3,"nzMin","ngModel","ngModelChange"],["rows","2","nz-input","",1,"w-70","m-b-10",3,"placeholder","ngModel","ngModelChange"],["nz-button","","nz-popconfirm","","nzPopconfirmPlacement","bottom","nzType","primary",3,"nzPopconfirmTitle","disabled","nzOnConfirm"],[1,"p-b-10","text-center"],[1,"subtitle","m-b-10"],["id","clientPackTable",1,"m-t-10",3,"nzScroll","nzData","nzLoading","nzPageSize","nzShowPagination","nzPageSizeChange"],["clientPackTable",""],[4,"ngFor","ngForOf"],["terminateBundle",""],["nz-popconfirm","","nzPopconfirmPlacement","bottom",3,"runFunction","nzTextKeys","stickResult","showAsLink","backToDefaultStateTime","nzPopconfirmTitle","nzCancelText","nzOkText","nzOkType","nzOnConfirm"],["nz-icon","","nzType","exclamation-circle","nzTheme","outline"],[1,"ant-popover-message-title","max-width-500"],["rows","2","nz-input","",3,"placeholder","ngModel","ngModelChange"]],template:function(g,d){if(1&g&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span",2),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"nz-input-number",3),t.NdJ("ngModelChange",function(z){return d.quota=z}),t.qZA(),t.TgZ(6,"textarea",4),t.NdJ("ngModelChange",function(z){return d.giftDescription=z}),t.ALo(7,"translate"),t._uU(8," "),t.qZA(),t.TgZ(9,"button",5),t.NdJ("nzOnConfirm",function(){return d.gifting()}),t.ALo(10,"translate"),t._uU(11),t.ALo(12,"translate"),t.qZA()(),t._UZ(13,"nz-divider"),t.TgZ(14,"div",6)(15,"span",7),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"nz-table",8,9),t.NdJ("nzPageSizeChange",function(z){return d.clientPacks.length=z}),t.TgZ(20,"thead")(21,"tr")(22,"th"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"th"),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"th"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"th"),t._uU(32),t.ALo(33,"translate"),t.qZA()()(),t.TgZ(34,"tbody"),t.YNc(35,to,14,23,"tr",10),t.qZA()()(),t.YNc(36,no,8,7,"ng-template",null,11,t.W1O),t.qZA()),2&g){const P=t.MAs(19);t.xp6(3),t.hij("",t.lcZ(4,19,"COMMON.QUOTA"),":"),t.xp6(2),t.Q6J("nzMin",1)("ngModel",d.quota),t.xp6(1),t.s9C("placeholder",t.lcZ(7,21,"COMMON.DESCRIPTION")),t.Q6J("ngModel",d.giftDescription),t.xp6(3),t.s9C("nzPopconfirmTitle",t.lcZ(10,23,"ADMIN.CLIENT_MANAGEMENT.GIFTING.CONFIRM")),t.Q6J("disabled",!d.quota),t.xp6(2),t.hij(" ",t.lcZ(12,25,"ADMIN.CLIENT_MANAGEMENT.GIFTING.GIFTING")," "),t.xp6(5),t.hij(" ",t.lcZ(17,27,"ADMIN.CLIENT_MANAGEMENT.GIFTING.CLIENT_PACKS")," "),t.xp6(2),t.Q6J("nzScroll",t.DdM(37,io))("nzData",d.clientPacks)("nzLoading",d.isClientPackLoading)("nzPageSize",d.clientPacks.length)("nzShowPagination",!1),t.xp6(5),t.Oqu(t.lcZ(24,29,"ADMIN.CLIENT_MANAGEMENT.GIFTING.PACK_NAME")),t.xp6(3),t.Oqu(t.lcZ(27,31,"COMMON.QUOTA")),t.xp6(3),t.hij(" ",t.lcZ(30,33,"COMMON.CREATED")," "),t.xp6(3),t.Oqu(t.lcZ(33,35,"COMMON.STATE")),t.xp6(3),t.Q6J("ngForOf",P.data)}},dependencies:[m.Fj,m.JJ,m.On,f.sg,o.P4,O.ix,N.w,L.dQ,oe.g,xe.Ls,R.Zp,eo._V,Q.JW,xn.N8,xn.Uo,xn._C,xn.Om,xn.p0,xn.$Z,f.uU,l.X$],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}.subtitle[_ngcontent-%COMP%]{font-size:1.2em}.refresh[_ngcontent-%COMP%]{color:#9579d1} #clientPackTable .ant-table-expanded-row-fixed{margin:auto!important}']}),vn=(0,s.gn)([(0,e.c)()],vn);var oo=n(39359);function ao(I,g){if(1&I&&(t.ynx(0),t.TgZ(1,"nz-list-item"),t._uU(2),t.ALo(3,"contractParser"),t.ALo(4,"contractParser"),t.qZA(),t.BQk()),2&I){const d=g.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,d).metadata.name?t.lcZ(4,3,d).metadata.name:d.displayElements.name," ")}}let so=(()=>{class I{constructor(d,P,z){this.modal=d,this.translate=P,this.clientService=z}ngOnInit(){this.previousStateContract&&this.contractIDS&&(this.selectedContracts=[...this.previousStateContract].filter(d=>this.contractIDS.get(d.progress.ID)))}}return I.\u0275fac=function(d){return new(d||I)(t.Y36(v.Lf),t.Y36(l.sK),t.Y36(r.y))},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-confirm-delete-modal"]],inputs:{contractIDS:"contractIDS",previousStateContract:"previousStateContract"},decls:6,vars:4,consts:[[1,"container"],["nzBordered","true",1,"mt-3"],[4,"ngFor","ngForOf"]],template:function(d,P){1&d&&(t.TgZ(0,"div",0)(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"nz-list",1),t.YNc(5,ao,5,5,"ng-container",2),t.qZA()()),2&d&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"CLIENT.CONTRACTS.DELETE.CONFIRM_DESC")),t.xp6(3),t.Q6J("ngForOf",P.selectedContracts))},dependencies:[f.sg,ue.n_,ue.AA,l.X$,oo.s],encapsulation:2}),I})();var ro=n(53012),Si=n(59054); 1049/* 1050 * @license 1051 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1052 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1053 *
1054 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1055 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1056 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1057 * trade secret or copyright law. 1058 * 1059 * Dissemination of this information or reproduction of this material is strictly forbidden 1060 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1061 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1062 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1063 * explicitly covering such access. 1064 * 1065 * The copyright notice above does not evidence any actual or intended publication or disclosure 1066 * of this source code, which includes information that is confidential and/or proprietary, 1067 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1068 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1069 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1070 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1071 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1072 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1073 * IN WHOLE OR IN PART. 1074 */const lo=["commonInput"],co=["submitButton"],mo=function(I){return{parentFolder:I}};function uo(I,g){if(1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&I){const d=t.oxw(2);t.xp6(1),t.hij(" ",t.xi3(2,1,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.DELETE_INFO_TEMP",t.VKq(6,mo,d.parentFolder.kind!==d.Kind.ROOT?d.parentFolder.name:t.lcZ(3,4,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_INFO.STARTING_FOLDER")))," ")}}function ho(I,g){if(1&I&&(t.TgZ(0,"nz-list-item"),t._uU(1),t.qZA()),2&I){const d=g.$implicit,P=t.oxw(4);t.xp6(1),t.hij(" ",P.folderSettingsService.folderNames.get(d)," ")}}function go(I,g){if(1&I&&(t.TgZ(0,"nz-collapse-panel",5),t.ALo(1,"translate"),t.TgZ(2,"nz-list"),t.YNc(3,ho,2,1,"nz-list-item",6),t.qZA()()),2&I){const d=t.oxw(3);t.s9C("nzHeader",t.lcZ(1,2,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.DELETE_FOLDERS")),t.xp6(3),t.Q6J("ngForOf",d.targetedFolder.childRoutes)}}function po(I,g){if(1&I&&(t.TgZ(0,"nz-list-item"),t._uU(1),t.qZA()),2&I){const d=t.oxw().$implicit;t.xp6(1),t.hij(" ",d.progress.metadata.name?d.progress.metadata.name:d.displayElements.name," ")}}function To(I,g){if(1&I&&(t.ynx(0),t.YNc(1,po,2,1,"nz-list-item",0),t.BQk()),2&I){const d=g.$implicit,P=t.oxw(4);t.xp6(1),t.Q6J("ngIf",P.contractIDSInFolder.includes(d.progress.ID))}}function Eo(I,g){if(1&I&&(t.TgZ(0,"nz-collapse-panel",5),t.ALo(1,"translate"),t.TgZ(2,"nz-list"),t.YNc(3,To,2,1,"ng-container",6),t.qZA(),t.GkF(4),t.qZA()),2&I){const d=t.oxw(3);t.s9C("nzHeader",t.lcZ(1,2,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.DELETE_CONTRACTS")),t.xp6(3),t.Q6J("ngForOf",d.contractsShown)}}function Co(I,g){if(1&I&&(t.TgZ(0,"div",3)(1,"nz-collapse"),t.YNc(2,go,4,4,"nz-collapse-panel",4),t.YNc(3,Eo,5,4,"nz-collapse-panel",4),t.qZA()()),2&I){const d=t.oxw(2);t.xp6(2),t.Q6J("ngIf",d.targetedFolder.childRoutes.length>0),t.xp6(1),t.Q6J("ngIf",d.contractIDSInFolder.length>0)}}function fo(I,g){1&I&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.DELETE_INFO_EMPTY")," "))}function Ao(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"div",3)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"p")(5,"a",7),t.NdJ("click",function(){t.CHM(d);const z=t.oxw(2);return z.routerService.routeToForgot(),t.KtG(z.modalRef.triggerCancel())}),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"p"),t._UZ(9,"span",8),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"input",9),t.NdJ("ngModelChange",function(z){t.CHM(d);const ie=t.oxw(2);return t.KtG(ie.folderNewName=z)}),t.ALo(12,"translate"),t.qZA()()}if(2&I){const d=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,5,"CLIENT.CONTRACTS.DELETE.PASSWORD")),t.xp6(4),t.hij(" ",t.lcZ(7,7,"COMMON.FORGOT_YOUR_PASSWORD")," "),t.xp6(3),t.Q6J("innerHTML",t.lcZ(10,9,"CLIENT.CONTRACTS.DELETE.DESC"),t.oJD),t.xp6(2),t.Q6J("placeholder",t.lcZ(12,11,"COMMON.FORM.PASSWORD"))("ngModel",d.folderNewName)}}function Oo(I,g){if(1&I&&(t.ynx(0),t.YNc(1,uo,4,8,"div",0),t.YNc(2,Co,4,2,"div",2),t.YNc(3,fo,3,3,"div",0),t.YNc(4,Ao,13,13,"div",2),t.BQk()),2&I){const d=t.oxw();
1074t.xp6(1),t.Q6J("ngIf",d.targetedFolder.childRoutes.length>0||d.targetedFolder.progresses.length>0),t.xp6(1),t.Q6J("ngIf",d.targetedFolder.childRoutes.length>0||d.contractIDSInFolder.length>0),t.xp6(1),t.Q6J("ngIf",0==d.targetedFolder.childRoutes.length&&0==d.targetedFolder.progresses.length),t.xp6(1),t.Q6J("ngIf",d.deleteAll)}}const Io=function(I){return{maxLength:I}};function So(I,g){if(1&I&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&I){const d=t.oxw().$implicit;t.xp6(1),t.hij("",t.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.NAME.MAX_LENGTH",t.VKq(4,Io,d.errors.maxlength.requiredLength))," ")}}function No(I,g){1&I&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&I&&(t.xp6(1),t.hij("",t.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.NAME.REQUIRED")," "))}function vo(I,g){if(1&I&&(t.YNc(0,So,3,6,"ng-container",0),t.YNc(1,No,3,3,"ng-container",0)),2&I){const d=g.$implicit;t.Q6J("ngIf",d.hasError("maxlength")),t.xp6(1),t.Q6J("ngIf",d.hasError("required"))}}function Lo(I,g){if(1&I){const d=t.EpF();t.ynx(0),t.TgZ(1,"form",10),t.NdJ("ngSubmit",function(z){t.CHM(d);const ie=t.oxw();return t.KtG(ie.enterPressed(z))})("keydown.enter",function(z){t.CHM(d);const ie=t.oxw();return t.KtG(ie.enterPressed(z))}),t.TgZ(2,"nz-form-item",11)(3,"nz-form-control",12)(4,"input",13,14),t.NdJ("ngModelChange",function(z){t.CHM(d);const ie=t.oxw();return t.KtG(ie.folderNewName=z)}),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,vo,2,2,"ng-template",null,15,t.W1O),t.qZA(),t.BQk()}if(2&I){const d=t.MAs(8),P=t.oxw();
1074t.xp6(1),t.Q6J("formGroup",P.validateForm),t.xp6(2),t.Q6J("nzValidateStatus",P.validateForm.controls.name)("nzErrorTip",d),t.xp6(1),t.s9C("placeholder",P.modalCurrentState==P.folderModalState.RENAME?P.targetedFolder.name:t.lcZ(6,5,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.DEFAULT_NAME")),t.Q6J("ngModel",P.folderNewName)}}const Ni=function(I){return{parentName:I}};function Mo(I,g){if(1&I){const d=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(d);const z=t.oxw();return t.KtG(z.modalRef.close())}),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"app-multi-state-button",17,18),t.ALo(5,"translate")}if(2&I){const d=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,6,"ADMIN.CANCEL")," "),t.xp6(2),t.Q6J("nzTextKeys",d.returnTextCreditForModal())("nzTextKeyParameters",d.folderModalState.DELETE?d.parentFolder.kind===d.Kind.ROOT?t.VKq(10,Ni,t.lcZ(5,8,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_INFO.STARTING_FOLDER")):t.VKq(12,Ni,d.parentFolder.name):null)("nzDanger",d.deleteAll)("defaultFunction",d.editOrAddFolderFunction)("stickResult",!1)}}let Ln=class{constructor(g,d,P,z,ie,Ie,Xe,Mt){this.translate=g,this.modalService=d,this.nzModalService=P,this.folderSettingsService=z,this.nzMessageService=ie,this.routerService=Ie,this.modalRef=Xe,this.form=Mt,this.deleteTextCredit=new o.PR("CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.DELETE.CHANGE","CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.DELETE.CHANGING","CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.DELETE.CHANGED",(new Map).set(0,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.DELETE.FAILED.DEFAULT").set(910,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.DELETE.FAILED.910")),this.deleteAllTextCredit=new o.PR("CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.DELETE.TEXT","CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.DELETE.CHANGING","CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.DELETE.CHANGED",(new Map).set(0,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.DELETE.FAILED.DEFAULT").set(910,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.DELETE.FAILED.910")),this.editTextCredit=new o.PR("CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.RENAME.CHANGE","CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.RENAME.CHANGING","CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.RENAME.CHANGED",(new Map).set(0,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.FAILED.DEFAULT").set(909,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.FAILED.909").set(922,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.FAILED.922").set(904,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.FAILED.904")),this.addTextCredit=new o.PR("CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.CHANGE","CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.CHANGING","CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.CHANGED",(new Map).set(0,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.FAILED.DEFAULT").set(909,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.FAILED.909").set(922,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.FAILED.922").set(904,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.FAILED.904").set(910,"CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.BUTTON_STATES.ADD.FAILED.910")),this.deleteAll=!1,this.folderNewName="",this.folderModalState=tn.yi,this.validateForm=this.form.folderNamingFrom(),this.Kind=ve.hYY}ngOnInit(){this.parentFolder=this.folderSettingsService.returnFoldersParent(this.targetedFolder),this.modalCurrentState===tn.yi.DELETE&&(this.contractIDSInFolder=this.folderSettingsService.gettingAllContracts(this.targetedFolder)),this.editOrAddFolderFunction=()=>this.changeNameModalConfirm(),this.modalCurrentState===tn.yi.RENAME&&(this.folderNewName=this.targetedFolder.name),this.modalRef&&this.modalRef.afterOpen.pipe((0,e.t)(this)).subscribe(()=>{this.commonInput&&this.commonInput.nativeElement&&setTimeout(()=>{this.focusInput()})})}enterPressed(g){g&&g.key&&"Enter"===g.key&&(g.stopPropagation(),this.submitButton.nativeElement.querySelector("button").click())}focusInput(){this.commonInput&&this.commonInput.nativeElement&&this.commonInput.nativeElement.focus()}changeNameModalConfirm(){let g=null;try{switch(this.modalCurrentState){case this.folderModalState.ADD:g=this.folderSettingsService.addFolder(this.folderNewName,this.targetedFolder);break;case this.folderModalState.RENAME:g=this.folderSettingsService.renameFolder(this.targetedFolder,this.folderNewName);break;case this.folderModalState.DELETE:if(this.deleteAll){const d=this.folderSettingsService.gettingAllContracts(this.targetedFolder);if(Array.isArray(d)&&this.contractsShown){const P=new Map;d.map(ie=>P.set(ie,!0));const z=this.modalService.confirmDeleteModal(P,this.contractsShown);g=new Promise((ie,Ie)=>{z.afterClose.pipe((0,W.P)()).subscribe(Xe=>{Xe?this.folderSettingsService.deleteFolder(this.targetedFolder,this.deleteAll,this.folderNewName).then(Dt=>{ie(Dt)},Dt=>{console.log(Dt),Ie(Dt)}):Ie()})})}else g=this.folderSettingsService.deleteFolder(this.targetedFolder,this.deleteAll,this.folderNewName)}else g=this.folderSettingsService.deleteFolder(this.targetedFolder,this.deleteAll,this.folderNewName)}}catch(d){return console.error(d+": "+this.translate.instant(this.errorList.get(d))),this.modalRef.close(),this.nzMessageService.error(this.translate.instant(this.errorList.get(d))),Promise.reject()}return g.then(d=>{setTimeout(()=>{this.modalRef.close()},1500)},d=>{if(console.log(d),910===d.status){let P,z;switch(this.modalCurrentState){case this.folderModalState.DELETE:P="CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.ERRORS.DELETE",z=this.parentFolder;break;case this.folderModalState.ADD:P="CLIENT.CONTRACTS.PROGRESSES.FOLDER_ACTIONS.ERRORS.ADD",z=this.targetedFolder}this.nzModalService.error({nzOkText:this.translate.instant("COMMON.OK"),nzTitle:this.translate.instant(P),nzContent:this.modalCurrentState===this.folderModalState.DELETE?this.translate.instant("CLIENT.CONTRACTS.PROGRESSES.FOLDER_INFO.DELETING_HELP_MULTIPLE",{numberOfDeletionNeeded:this.parentFolder.childRoutes.length+this.targetedFolder.childRoutes.length-6,parentFolder:z.kind!==ve.hYY.ROOT?z.name:this.translate.instant("CLIENT.CONTRACTS.PROGRESSES.FOLDER_INFO.STARTING_FOLDER")}):this.translate.instant("CLIENT.CONTRACTS.PROGRESSES.FOLDER_INFO.DELETING_HELP",{numberOfDeletionNeeded:1,parentFolder:z.kind!==ve.hYY.ROOT?z.name:this.translate.instant("CLIENT.CONTRACTS.PROGRESSES.FOLDER_INFO.STARTING_FOLDER")})})}}),g}returnTextCreditForModal(){switch(this.modalCurrentState){case this.folderModalState.ADD:return this.addTextCredit;case this.folderModalState.RENAME:return this.editTextCredit;case this.folderModalState.DELETE:return this.deleteAll?this.deleteAllTextCredit:this.deleteTextCredit}}};Ln.\u0275fac=function(g){return new(g||Ln)(t.Y36(l.sK),t.Y36(Ht),t.Y36(v.Sf),t.Y36(ro.V),t.Y36(Ii.dD),t.Y36(ee.c),t.Y36(v.Lf),t.Y36(c.o))},Ln.\u0275cmp=t.Xpm({type:Ln,selectors:[["app-folder-multi-action-modal"]],viewQuery:function(g,d){if(1&g&&(t.Gf(lo,5),t.Gf(co,5,t.SBq)),2&g){let P;t.iGM(P=t.CRH())&&(d.commonInput=P.first),t.iGM(P=t.CRH())&&(d.submitButton=P.first)}},inputs:{modalCurrentState:"modalCurrentState",targetedFolder:"targetedFolder",contractsShown:"contractsShown",errorList:"errorList"}
1074,decls:3,vars:2,consts:[[4,"ngIf"],[3,"nzModalFooter"],["class","mt-2",4,"ngIf"],[1,"mt-2"],[3,"nzHeader",4,"ngIf"],[3,"nzHeader"],[4,"ngFor","ngForOf"],[1,"color-secondary",3,"click"],[1,"mt-2",3,"innerHTML"],["nz-input","","type","password","trim","blur",3,"placeholder","ngModel","ngModelChange"],["nz-form","",3,"formGroup","ngSubmit","keydown.enter"],[1,"m-b-0"],[3,"nzValidateStatus","nzErrorTip"],["trim","blur","formControlName","name","nz-input","",3,"placeholder","ngModel","ngModelChange"],["commonInput",""],["errorTip",""],["nz-button","","nzType","default",3,"click"],[3,"nzTextKeys","nzTextKeyParameters","nzDanger","defaultFunction","stickResult"],["submitButton",""]],template:function(g,d){1&g&&(t.YNc(0,Oo,5,4,"ng-container",0),t.YNc(1,Lo,9,7,"ng-container",0),t.YNc(2,Mo,6,14,"ng-template",1)),2&g&&(t.Q6J("ngIf",d.modalCurrentState===d.folderModalState.DELETE),t.xp6(1),t.Q6J("ngIf",d.modalCurrentState!==d.folderModalState.DELETE))},dependencies:[m._Y,m.Fj,m.JJ,m.JL,m.On,a.P,f.sg,f.O5,m.sg,m.u,o.P4,O.ix,N.w,L.dQ,Si.Zv,Si.yH,i.t3,i.SK,M.Lr,M.Nx,M.Fd,R.Zp,ue.n_,ue.AA,v.Uh,l.X$],styles:['@charset "UTF-8";']}),Ln=(0,s.gn)([(0,e.c)()],Ln);var Po=n(31495),Ro=n(35232); 1075/* 1076 * @license 1077 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1078 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1079 *
1080 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1081 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1082 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1083 * trade secret or copyright law. 1084 * 1085 * Dissemination of this information or reproduction of this material is strictly forbidden 1086 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1087 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1088 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1089 * explicitly covering such access. 1090 * 1091 * The copyright notice above does not evidence any actual or intended publication or disclosure 1092 * of this source code, which includes information that is confidential and/or proprietary, 1093 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1094 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1095 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1096 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1097 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1098 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1099 * IN WHOLE OR IN PART. 1100 */let Ht=class{constructor(g,d,P,z,ie,Ie,Xe,Mt,Dt,Qn){this.nzModal=g,this.translate=d,this.clientService=P,this.eventService=z,this.onePageService=ie,this.routerService=Ie,this.userService=Xe,this.localizeRoutePipe=Mt,this.userInfosService=Dt,this.chatService=Qn}deletePaymentModal(g,d,P,z){St.K.optimalModalWidthPercentageBasedOnWindowSize(),null!=g?this.nzModal.warning({nzTitle:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.DELETE.WARNING_TITLE"),nzContent:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.DELETE.WARNING_DESC"),nzOkText:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.DELETE.CONTINUE"),nzCancelText:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.DELETE.CANCEL"),nzOnCancel:()=>{this.nzModal.closeAll(),z&&z()},nzOnOk:()=>{this.nzModal.create({nzTitle:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.DELETE.TITLE"),nzContent:`<div class="row justify-content-center">\n <img src="${d.imageHyperlink}" class="mr-2 payment-method-image" alt="Payment method type" />\n <span class="vertical-center-with-margin">${d.name}</span>\n </div>`,nzFooter:P,nzOnCancel:()=>{this.nzModal.closeAll(),z&&z()}})}}):this.nzModal.create({nzTitle:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.DELETE.TITLE"),nzContent:`<div class="row justify-content-center">\n <img src="${d.imageHyperlink}" class="mr-2 payment-method-image" alt="Payment method type" />\n <span class="vertical-center-with-margin">${d.name}</span>\n </div>`,nzFooter:P,nzOnCancel:()=>{this.nzModal.closeAll(),z&&z()}})}setDefaultPaymentModal(g,d){this.nzModal.create({nzTitle:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.DEFAULT.TITLE"),nzContent:`<div class="row justify-content-center">\n <img src="${g.imageHyperlink}" class="mr-2 payment-method-image alt="Payment method type"">
1100\n <span class="vertical-center-with-margin">${g.name}</span>\n </div>`,nzFooter:d})}imageUploadModal(g){const d=St.K.optimalModalWidthPercentageBasedOnWindowSize(5);this.nzModal.create({nzTitle:this.translate.instant("CLIENT.PROFILE.DATA.IMAGE.MODAL.TITLE"),nzContent:Jn.f,nzWidth:d.width,nzComponentParams:{imageChangedEvent:g},nzClassName:d.class,nzCancelDisabled:!0,nzOkDisabled:!0,nzFooter:[]})}confirmModal(g,d){return this.nzModal.confirm({nzTitle:g,nzContent:d,nzOnOk:()=>!0,nzOkText:this.translate.instant("COMMON.OK"),nzCancelText:this.translate.instant("COMMON.CANCEL")})}confirmDeleteModal(g,d){return this.nzModal.confirm({nzTitle:this.translate.instant("CLIENT.CONTRACTS.DELETE.CONFIRM_TITLE"),nzContent:so,nzComponentParams:{contractIDS:g,previousStateContract:d},nzOnOk:()=>!0,nzOkDanger:!0,nzOkText:this.translate.instant("COMMON.OK"),nzCancelText:this.translate.instant("COMMON.CANCEL")})}folderMultiActionModal(g,d,P,z,ie){return this.nzModal.create({nzContent:Ln,nzComponentParams:{modalCurrentState:d,targetedFolder:P,contractsShown:ie,errorList:z},nzTitle:g})}invoiceExampleModal(){const g=St.K.optimalModalWidthPercentageBasedOnWindowSize(6);return this.nzModal.create({nzTitle:this.translate.instant("CLIENT.PROFILE.INVOICING.EXAMPLE_INVOICE.MODAL.TITLE"),nzContent:_n.Q,nzOkText:null,nzCancelText:null,nzWidth:g.width,nzStyle:{"max-height":"100%"},nzClassName:g.class,nzWrapClassName:"vertical-center-modal",nzBodyStyle:{padding:"0"},nzFooter:null})}contractInformationModal(g,d,P,z,ie,Ie=!1,Xe=!1,Mt){return this.nzModal.create({nzTitle:g,nzCancelText:null,nzOkText:this.translate.instant(Ie?"CLIENT.CONTRACTS.READ_UNDERSTOOD":"COMMON.OK"),nzContent:it.G,nzComponentParams:{content:d,progressID:z,contractTitle:ie,aspect:P,isDemo:Xe,isUnderstood:Ie,matchmakingCategoryKind:Mt},nzStyle:{top:"20px"},nzWidth:620,nzWrapClassName:Xe?"demoContractDetailsModal roundedScrollbar":""})}contractShareModal(g,d,P,z=(Ie=>null),ie=(Ie=>null)){const Ie=St.K.optimalModalWidthPercentageBasedOnWindowSize(8);if(!Array.isArray(d)){const Xe=this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONTRACTS.SHARE.TITLE",{contract:d.progress.metadata.name?d.progress.metadata.name:d.displayElements.name}),nzContent:Gt,nzClassName:`${Ie.class} share-modal`,nzComponentParams:{contractID:d.progress.ID,previousStateContract:d},nzFooter:P,nzCancelText:null,nzOkText:this.translate.instant("COMMON.OK"),nzOkType:"default",nzWidth:Ie.width,nzOnCancel:()=>ie?ie(Xe.getContentComponent().contract.progress.permissions):null,nzOnOk:()=>z?z(Xe.getContentComponent().contract.progress.permissions):null});return Xe}}rollbackModal(g){const d=St.K.optimalModalWidthPercentageBasedOnWindowSize(4);this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONTRACT.MANAGE.ROLLBACKMODAL.ROLLBACK"),nzContent:g,nzWidth:d.width,nzClassName:`${d.class} modal-remove-footer-border`,nzOkText:null,nzCancelText:null})}generatorErrorModal(g,d){const P=St.K.optimalModalWidthPercentageBasedOnWindowSize(1);this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONTRACTS.FINALIZATION.ERROR_MODAL.TITLE"),nzCancelText:this.translate.instant("CLIENT.CONTRACTS.FINALIZATION.ERROR_MODAL.CANCEL"),nzOkText:this.translate.instant("CLIENT.CONTRACTS.FINALIZATION.ERROR_MODAL.CONTINUE"),nzContent:de,nzOnOk:()=>{location.href=this.localizeRoutePipe.transform("/contact-us")},nzWidth:P.width,nzClassName:P.class,nzComponentParams:{name:g,progressID:d}})}contractsForQuotaModal(g,d){const P=St.K.optimalModalWidthPercentageBasedOnWindowSize(6);this.nzModal.create({nzTitle:this.translate.instant("CLIENT.PROFILE.BUNDLES.INFO",{quota:g}),nzContent:q.q,nzOkText:null,nzCancelText:this.translate.instant("COMMON.GO_BACK"),nzWidth:P.width,nzCentered:!0,nzBodyStyle:{overflow:"hidden"},nzComponentParams:{quota:g,showQuotaDesc:d},nzClassName:P.class})}openCopyFinalizedWithUnlimitedEdit(g,d,P,z){const ie=St.K.optimalModalWidthPercentageBasedOnWindowSize();return this.nzModal.warning({nzWidth:ie.width,nzClassName:ie.class,nzTitle:this.translate.instant("CLIENT.CONTRACTS.PROGRESSES.COPY.UNLIMITED_EDIT_MODAL.TITLE"),nzContent:Sn,nzComponentParams:{contractID:g,modificationEndTime:d},nzCancelText:this.translate.instant("CLIENT.CONTRACTS.PROGRESSES.COPY.UNLIMITED_EDIT_MODAL.CANCEL_TEXT"),nzOkText:this.translate.instant("CLIENT.CONTRACTS.PROGRESSES.COPY.UNLIMITED_EDIT_MODAL.OK_TEXT"),nzOnCancel:()=>{z()},nzOnOk:()=>{P()}})}copyEditModal(g,d,P){const z=St.K.optimalModalWidthPercentageBasedOnWindowSize();return this.nzModal.create({nzWidth:z.width,nzClassName:z.class,nzTitle:this.translate.instant("CLIENT.CONTRACTS.PROGRESSES.COPY.NEW_NAME",{name:g}),nzContent:zt,nzComponentParams:{contractID:d,askPermission:P},nzCancelText:this.translate.instant("CLIENT.CONTRACTS.PROGRESSES.COPY.CANCEL_TEXT"),nzOkText:this.translate.instant("CLIENT.CONTRACTS.PROGRESSES.COPY.O
1100K_TEXT")})}createNewConversationModal(g,d){this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONTRACT.MANAGE.SHARE.CONVERSATION_MODAL.TITLE"),nzContent:this.translate.instant("CLIENT.CONTRACT.MANAGE.SHARE.CONVERSATION_MODAL.CONTENT",{userName:d}),nzCancelText:this.translate.instant("CLIENT.CONTRACT.MANAGE.SHARE.CONVERSATION_MODAL.CANCEL_TEXT"),nzOkText:this.translate.instant("CLIENT.CONTRACT.MANAGE.SHARE.CONVERSATION_MODAL.OK_TEXT"),nzOnCancel:()=>{},nzOnOk:()=>{new Promise((P,z)=>{if(this.userInfosService.userInformations.has(g)&&null!==this.userInfosService.userInformations.get(g))P(this.userInfosService.userInformations.get(g));else{this.userInfosService.batchGetUserImgsByIds([g]);const ie=this.userInfosService.userInformationsChanged.subscribe(Ie=>{(!Ie.has(g)||null!==Ie.get(g))&&(P(this.userInfosService.userInformations.get(g)),ie.unsubscribe())})}}).then(P=>{P.kind===G.FW.Lawyer?this.noLawyerConversationInfoModal():this.chatService.createNewConversationWithUserID(g)})}})}createNewConversationModalNotRegisteredUser(g){this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONTRACT.MANAGE.SHARE.CONVERSATION_MODAL_NOT_REGISTERED.TITLE"),nzContent:g?this.translate.instant("CLIENT.CONTRACT.MANAGE.SHARE.CONVERSATION_MODAL_NOT_REGISTERED.CONTENT_WITH_MAIL",{mail:g}):this.translate.instant("CLIENT.CONTRACT.MANAGE.SHARE.CONVERSATION_MODAL_NOT_REGISTERED.CONTENT"),nzCancelText:null,nzOkText:this.translate.instant("CLIENT.CONTRACT.MANAGE.SHARE.CONVERSATION_MODAL_NOT_REGISTERED.OK_TEXT")})}newConversationWithMailModal(){const g=St.K.optimalModalWidthPercentageBasedOnWindowSize(3);this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONVERSATIONS.CREATE_CONVERSATION_MODAL.TITLE"),nzContent:En,nzOkText:null,nzCancelText:null,nzClassName:g.class,nzWidth:g.width})}noLawyerConversationInfoModal(){const g=St.K.optimalModalWidthPercentageBasedOnWindowSizeSmall(2);return this.nzModal.info({nzTitle:this.translate.instant("CLIENT.CONTRACT.MANAGE.SHARE.NO_AVAILABLE_CONVERSATION.TITLE"),nzContent:this.translate.instant("CLIENT.CONTRACT.MANAGE.SHARE.NO_AVAILABLE_CONVERSATION.CONTENT"),nzWidth:g.width,nzClassName:`primaryInfoIcon ${g.class}`,nzOkText:this.translate.instant("COMMON.OK")})}noLawyerSharingInfoModal(g){const d=St.K.optimalModalWidthPercentageBasedOnWindowSize(4);return this.nzModal.info({nzTitle:this.translate.instant("CLIENT.CONTRACTS.NO_LAWYER_SHARING.TITLE."+(1===g.length?"SINGLE":"MULTIPLE")),nzContent:Qt,nzComponentParams:{mails:g},nzOkText:this.translate.instant("COMMON.OK"),nzWidth:d.width,nzClassName:"primaryInfoIcon",nzStyle:{top:"20px"},nzBodyStyle:{padding:"0"}})}unverifiedLawyerSharingInfoModal(g,d){const P=St.K.optimalModalWidthPercentageBasedOnWindowSize(4);return this.nzModal.info({nzTitle:this.translate.instant("CLIENT.CONTRACTS.UNVERIFIED_LAWYER_SHARING.TITLE."+(1===d.length?"SINGLE":"MULTIPLE")),nzContent:Tt,nzComponentParams:{contract_name:g,mails:d},nzOkText:this.translate.instant("COMMON.OK"),nzWidth:P.width,nzClassName:"primaryInfoIcon",nzStyle:{top:"20px"},nzBodyStyle:{padding:"0"}})}massDeleteContractModal(g,d,P){this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONTRACTS.DELETE.QUESTION_MULTIPLE"),nzContent:rt,nzFooter:null,nzComponentParams:{progressID:g,contracts:d},nzCancelText:this.translate.instant("COMMON.CANCEL"),nzOkText:this.translate.instant("CLIENT.CONTRACTS.DELETE.SUBMIT"),nzStyle:{top:"20px"},nzBodyStyle:{padding:"0"},nzOnCancel:()=>{},nzOnOk:()=>{P()}})}deleteContractModal(g,d,P){this.nzModal.create({nzTitle:this.translate.instant(this.userService.isLawyer?"CLIENT.CONTRACTS.DELETE.QUESTION_LAWYER":"CLIENT.CONTRACTS.DELETE.QUESTION",{contract:d}),nzContent:rt,nzFooter:null,nzComponentParams:{progressID:g,contracts:null},nzCancelText:this.translate.instant("COMMON.CANCEL"),nzOkText:this.translate.instant("CLIENT.CONTRACTS.DELETE.SUBMIT"),nzStyle:{top:"20px"},nzBodyStyle:{padding:"0"},nzOnCancel:()=>{},nzOnOk:()=>{P()}})}offerCreationModal(g,d,P){const z=St.K.optimalModalWidthPercentageBasedOnWindowSize(3);this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONVERSATIONS.OFFER.CREATE.TITLE"),nzContent:Ct.L,nzComponentParams:{offer:g,chatID:d,successCallback:P},nzOnCancel:()=>{},nzFooter:null,nzWidth:z.width,nzClassName:z.class})}offerWidgetModal(g,d,P,z=(()=>null),ie=!1,Ie){const Xe=St.K.optimalModalWidthPercentageBasedOnWindowSize(3),Mt=P.find(Qn=>Qn.userID!==this.userService.sessionUserID),Dt=this.nzModal.create({nzTitle:Mt.kind===G.FW.Client?this.translate.instant("CLIENT.CONVERSATIONS.OFFER.OFFER_TO_CLIENT",{client:Mt.name}):this.translate.instant("CLIENT.CONVERSATIONS.OFFER.OFFER_FROM_LAWYER",{lawyer:Mt.name}),nzContent:xt.D,nzComponentParams:{offer:g,isActive:d,isModal:!0,participants:P,resultOffer:Ie,isDemo:ie},nzCancelText:null,nzOkText:null,nzWidth:Xe.width,nzClassName:Xe.class,nzBodyStyle:{padding:"0"},nzFooter:null});return Dt.getContentComponent().modal=Dt,Dt.getContentComponent().modifyEmitter.subscribe(Qn=>{z(Qn)}),Dt}publicProfileModal(g,d=(z=>null),P=(z=>null)){const z=this.nzModal.create({nzContent:qe,nzComponentParams:{userID:g},nzCancelText:null,nzOkText:null,nzOnCancel:()=>P(z.getContentComponent().sharesWithUser),nzOnOk:()=>d(z.getContentComponent().sharesWithUser)})}inProgressModal(g){this.nzModal.create({nzTitle:this.translate.instant(g),nzContent:le,nzClassName:"modal-remove-footer-border",nzOkText:null,nzCancelText:null,nzFooter:[],nzClosable:!1})}registerMeWithTermsModal(g,d,P){const z=St.K.optimalModalWidthPercentageBasedOnWindowSizeSmall(10);this.nzModal.closeAll(),this.nzModal.create({nzTitle:this.translate.instant("LOGIN.REGISTER_TITLE"),nzContent:se,nzComponentParams:{name:d,registerType:g,socialUser:P},nzWidth:z.width,nzClassName:`${z.class}`,nzFooter:null})}twofactorModal(g,d,P,z){const ie=St.K.optimalModalWidthPercentageBasedOnWindowSize();return this.nzModal.create({nzTitle:g,nzContent:Yn.S,nzWidth:ie.width,nzComponentParams:{pass:d,qr:P,isTwoFactor:z},nzClassName:`${ie.class} modal-remove-footer-border`,nzCancelDisabled:!0,nzOkDisabled:!0,nzFooter:[]})}saveInProgressModal(){return this.nzModal.warning({nzTitle:this.translate.instant("CLIENT.CONTRACTS.SAVE_IN_PROGRESS_MODAL.TITLE"),nzContent:Ut,nzOkText:null,nzCancelText:null,nzClosable:!1,nzMaskClosable:!1,nzKeyboard:!1})}callInProgressModal(){return this.nzModal.warning({nzTitle:this.translate.instant("CLIENT.CONVERSATIONS.VIDEOCHAT_IN_PROGRESS_MODAL.TITLE"),nzContent:this.translate.instant("CLIENT.CONVERSATIONS.VIDEOCHAT_IN_PROGRESS_MODAL.DESCRIPTION"),nzOkText:this.translate.instant("COMMON.OK"),nzOnOk:()=>"true",nzCancelText:this.translate.instant("COMMON.CANCEL"),nzOnCancel:()=>"false",nzClosable:!1,nzMaskClosable:!1,nzKeyboard:!1})}inviteForSharingModal(g,d,P){const z=St.K.optimalModalWidthPercentageBasedOnWindowSize(4);return this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONTRACTS.INVITE_FOR_SHARING.TITLE."+(1===d.length?"SINGLE":"MULTIPLE")),nzContent:bt,nzComponentParams:{progressID:g,mails:d,contractName:P},nzOkText:null,nzCancelText:null,nzWidth:z.width,nzClassName:`${z.class}
1100 footerless-modal`,nzStyle:{top:"20px"},nzBodyStyle:{padding:"0"}})}inviteFailedInfoModal(g){const d=St.K.optimalModalWidthPercentageBasedOnWindowSize(4);return this.nzModal.info({nzTitle:this.translate.instant("CLIENT.CONTRACTS.INVITE_FAILED.TITLE"),nzContent:jt,nzComponentParams:{mails:g},nzOkText:this.translate.instant("COMMON.OK"),nzWidth:d.width,nzClassName:"primaryInfoIcon",nzStyle:{top:"20px"},nzBodyStyle:{padding:"0"}})}shareContractModal(g,d,P,z){const ie=St.K.optimalModalWidthPercentageBasedOnWindowSize(4),Ie=this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONTRACTS.SHARE.SHARE_WITH",{name:g.name}),nzContent:Ot,nzComponentParams:{selectedUser:g,isSharingDisabled:z},nzOkText:null,nzCancelText:null,nzWidth:ie.width,nzClassName:ie.class,nzOnCancel:()=>P(Ie.getContentComponent().sharesWithUser),nzOnOk:()=>d(Ie.getContentComponent().sharesWithUser)})}switchToCompanyProfileModal(g,d,P,z){const ie=St.K.optimalModalWidthPercentageBasedOnWindowSize(8);return this.nzModal.create({nzTitle:d,nzContent:Ft,nzComponentParams:{profile:g,successCallback:P},nzCancelText:this.translate.instant("COMMON.CANCEL"),nzOnCancel:Ie=>new Promise((Xe,Mt)=>z(Ie,Xe,Mt)),nzOkDisabled:!0,nzWidth:ie.width,nzClassName:ie.class})}switchToPersonalProfileModal(g,d,P,z){const ie=St.K.optimalModalWidthPercentageBasedOnWindowSize(8);return this.nzModal.create({nzTitle:d,nzContent:Yt,nzComponentParams:{profile:g,successCallback:P},nzCancelText:this.translate.instant("COMMON.CANCEL"),nzOnCancel:Ie=>new Promise((Xe,Mt)=>z(Ie,Xe,Mt)),nzWidth:ie.width,nzClassName:ie.class})}switchToCompanyBillingModal(g,d,P,z){const ie=St.K.optimalModalWidthPercentageBasedOnWindowSize(8);return this.nzModal.create({nzTitle:d,nzContent:fn,nzComponentParams:{actBilling:g,successCallback:P},nzCancelText:this.translate.instant("COMMON.CANCEL"),nzOnCancel:Ie=>new Promise((Xe,Mt)=>z(Ie,Xe,Mt)),nzOkDisabled:!0,nzWidth:ie.width,nzClassName:ie.class})}switchToPersonalBillingModal(g,d,P,z,ie){const Ie=St.K.optimalModalWidthPercentageBasedOnWindowSize(8);return this.nzModal.create({nzTitle:d,nzContent:An,nzComponentParams:{actBilling:g,hasProfile:ie,successCallback:P},nzCancelText:this.translate.instant("COMMON.CANCEL"),nzOnCancel:Xe=>new Promise((Mt,Dt)=>z(Xe,Mt,Dt)),nzOkDisabled:!0,nzWidth:Ie.width,nzClassName:Ie.class})}termsModal(g,d,P,z,ie,Ie,Xe,Mt){const Dt=St.K.optimalModalWidthPercentageBasedOnWindowSize(10);return this.nzModal.create({nzTitle:this.translate.instant("COMMON.TOS"),nzContent:Kn.L,nzComponentParams:{termsKind:tn.p1.REGISTRATION,kind:g,registerType:d,mail:ie,password:Ie,initializeWithDocument:P,userFromOtherLogin:z,initializedWithMatchmaking:Xe,googleButtonShouldDoLogin:Mt},nzWidth:Dt.width,nzStyle:{"overflow-y":"hidden","overflow-x":"hidden"},nzClassName:`${Dt.class} footerless-modal`,nzOkText:null,nzCancelText:null})}feedbackModal(g,d,P,z,ie){const Ie=St.K.optimalModalWidthPercentageBasedOnWindowSize();this.nzModal.create({nzTitle:ie?this.translate.instant("COMMON.FEEDBACK.TITLE_EXTENDED",{title:this.translate.instant(ie)}):this.translate.instant("COMMON.FEEDBACK.TITLE"),nzContent:wt,nzWidth:Ie.width,nzClassName:Ie.class,nzComponentParams:{component:g,feature:d,unit:P,aspect:z},nzFooter:null,nzOkText:null,nzCancelText:null})}suggestionModal(g,d){const P=St.K.optimalModalWidthPercentageBasedOnWindowSize();this.nzModal.create({nzTitle:d?this.translate.instant("COMMON.SUGGESTION.TITLE_EXTENDED",{title:this.translate.instant(d)}):this.translate.instant("COMMON.SUGGESTION.TITLE"),nzContent:Z,nzWidth:P.width,nzClassName:P.class,nzComponentParams:{coordinate:g},nzFooter:null,nzOkText:null,nzCancelText:null})}openLawyerMatchmakerModal(){const g=St.K.optimalModalWidthPercentageBasedOnWindowSize(4);return this.nzModal.create({nzTitle:this.translate.instant("COMMON.HEADER.LAWYER_MATCHMAKER.MODAL.TITLE"),nzContent:wn.o,nzOkText:null,nzCancelText:null,nzWidth:g.width,nzClassName:g.class,nzFooter:null})}matchmakerLogoutWarningModal(){const g=St.K.optimalModalWidthPercentageBasedOnWindowSizeSmall(8);return this.nzModal.create({nzTitle:this.translate.instant("COMMON.HEADER.LAWYER_MATCHMAKER.ALERT_WARNING.TITLE"),nzContent:ae,nzWidth:g.width,nzClassName:g.class,nzOkText:null,nzCancelText:null})}matchmakerLogoutInfoModal(){const g=St.K.optimalModalWidthPercentageBasedOnWindowSizeSmall(8);return this.nzModal.info({nzTitle:this.translate.instant("COMMON.HEADER.LAWYER_MATCHMAKER.ALERT_LOGGED_OUT.TITLE"),nzContent:this.translate.instant("COMMON.HEADER.LAWYER_MATCHMAKER.ALERT_LOGGED_OUT.DESCRIPTION"),nzWidth:g.width,nzOkText:this.translate.instant("COMMON.OK"),nzClassName:`${g.class} primaryInfoIcon`})}matchmakerNetworkLogoutInfoModal(){const g=St.K.optimalModalWidthPercentageBasedOnWindowSizeSmall(8);return this.nzModal.info({nzTitle:this.translate.instant("COMMON.HEADER.LAWYER_MATCHMAKER.ALERT_NETWORK_LOGGED_OUT.TITLE"),nzContent:this.translate.instant("COMMON.HEADER.LAWYER_MATCHMAKER.ALERT_NETWORK_LOGGED_OUT.DESCRIPTION"),nzWidth:g.width,nzOkText:this.translate.instant("COMMON.OK"),nzClassName:`${g.class} primaryInfoIcon`})}matchmakerCandidateModal(g,d,P,z,ie,Ie){const Xe=St.K.optimalModalWidthPercentageBasedOnWindowSize(8);return this.nzModal.create({nzTitle:this.translate.instant("CLIENT.HELP.CANDIDATE_MODAL.TITLE"),nzContent:A.i,nzComponentParams:{candidate:g,payment:d,resolveCallback:P,rejectCallback:z,price:ie,currency:Ie},nzMaskClosable:!1,nzWidth:Xe.width,nzClassName:Xe.class,nzOkText:null,nzCancelText:null,nzOnCancel:()=>z({status:499})})}chatHelpModal(){const g=St.K.optimalModalWidthPercentageBasedOnWindowSize(6);this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONVERSATIONS.HELP_MODA
1100L.TITLE"),nzClassName:`${g.class} modal-remove-footer-border`,nzWidth:g.width,nzContent:Cn,nzFooter:null})}testCardInfoModal(){const g=St.K.optimalModalWidthPercentageBasedOnWindowSize(4);this.nzModal.create({nzTitle:this.translate.instant("CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.MODAL_TITLE"),nzClassName:`${g.class} modal-remove-footer-border`,nzWidth:g.width,nzContent:yn.q,nzComponentParams:{currentPaymentProvider:ve.OHy.Unicredit},nzFooter:null})}matchmakingCategoryModal(g,d,P){const z=this.nzModal.create({nzTitle:this.translate.instant("CLIENT.HELP.CATEGORY_MODAL.TITLE"),nzContent:Nn,nzComponentParams:{progressID:P},nzOkText:null,nzCancelText:null,nzWidth:window.innerWidth<768?"100%":"90%",nzFooter:null,nzOnCancel:()=>d?d(z.result):null,nzOnOk:()=>g?g(z.result):null});return z}giftingPackToClient(g,d){const P=St.K.optimalModalWidthPercentageBasedOnWindowSize(4);return this.nzModal.create({nzTitle:this.translate.instant("ADMIN.CLIENT_MANAGEMENT.GIFTING.MODAL_TITLE",{clientName:g}),nzContent:vn,nzComponentParams:{clientID:d},nzOkText:null,nzCancelText:null,nzWidth:P.width,nzClassName:`${P.class} footerless-modal`,nzStyle:{top:"20px"},nzBodyStyle:{padding:"0"}})}};Ht.\u0275fac=function(g){return new(g||Ht)(t.LFG(v.Sf),t.LFG(l.sK),t.LFG(r.y),t.LFG(Lt.P),t.LFG(Po.g),t.LFG(ee.c),t.LFG(u.K),t.LFG(Ro.d),t.LFG(Ce.h),t.LFG(mt.a))},Ht.\u0275prov=t.Yz7({token:Ht,factory:Ht.\u0275fac}),Ht=(0,s.gn)([(0,e.c)()],Ht)},93196:(Se,k,n)=>{n.d(k,{g:()=>N});var s=n(86768),e=n(71997),o=n(55089),t=n(77579),v=n(6947),r=n(72639),C=n(94650),u=n(32925),m=n(97185),a=n(3674),f=n(75489),O=n(39889); 1101/* 1102 * @license 1103 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1104 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1105 *
1106 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1107 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1108 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1109 * trade secret or copyright law. 1110 * 1111 * Dissemination of this information or reproduction of this material is strictly forbidden 1112 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1113 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1114 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1115 * explicitly covering such access. 1116 * 1117 * The copyright notice above does not evidence any actual or intended publication or disclosure 1118 * of this source code, which includes information that is confidential and/or proprietary, 1119 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1120 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1121 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1122 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1123 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1124 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1125 * IN WHOLE OR IN PART. 1126 */let N=(()=>{class L{constructor(M,R,l,h,D,B){this.userService=M,this.translate=R,this.toastr=l,this.utilService=h,this.eventService=D,this.routerService=B,this.changes$=new t.x,this.notificationsEnabled=!0,o.K.sessionStatusChanged.subscribe(K=>{this.changes$.closed&&(this.changes$=new t.x)}),o.K.impersonatedStatusChanged.subscribe(K=>{this.changes$.closed&&(this.changes$=new t.x)})}addNotif(M,R,l,h,D,B,K,b,w,X){const Y=b||Date.now(),Z=this.generateID(Y);this.addItemToStorage(M,R,l,h,Z,D,B,K,Y,w,X);const G=l?this.translate.instant(l.key,l.params).length>120?`${this.translate.instant(l.key,l.params).slice(0,240)}`:this.translate.instant(l.key,l.params):null,Q=this.translate.instant(R.key,R.params);if(this.notificationsEnabled){const V=this.toastr.info(G,Q,{timeOut:h,extendedTimeOut:0===h?0:2e3,titleClass:"toast-title toastr-title-styling mr-4",toastClass:"toastr-background toastr-size-fix ngx-toastr",messageClass:"toast-message toastr-message-styling mr-4",toastComponent:s.c});V.toastRef.componentInstance.imgSrc=K,V.toastRef.componentInstance.iconType=M,V.toastRef.componentInstance.relatedID=X,V.onTap.subscribe(()=>{this.setToSeen({ID:Z}),this.toastr.remove(V.toastId),B?this.routerService.hrefOrRouter(B,0):w&&this.handleNotifAction(w)}),V.onAction.subscribe(()=>{this.setToSeen({ID:Z})})}}handleNotifAction(M){this.eventService.handleNotifaction.emit(M)}generateID(M){return this.utilService.randomString(16)+M}addNotifWithoutPopup(M,R,l,h,D,B,K,b,w,X){const Y=b||Date.now();this.addItemToStorage(M,R,l,h,this.generateID(Y),D,B,K,Y,w,X)}addItemToStorage(M,R,l,h,D,B,K,b,w,X,Y){const Z=this.getItem().notifs;this.getItem().notifs.length>=20&&Z.pop();const G=Z.filter(V=>JSON.stringify(V.title)!==JSON.stringify(R)&&JSON.stringify(V.message)!==JSON.stringify(l)||JSON.stringify(V.title)===JSON.stringify(R)&&JSON.stringify(V.message)!==JSON.stringify(l)||JSON.stringify(V.title)!==JSON.stringify(R)&&JSON.stringify(V.message)===JSON.stringify(l));G.push(new e.P_k(M,R,l,w,!1,D,B,K,r.compress(b),X,Y));const Q=G.sort((V,se)=>V.timeCreated<se.timeCreated?1:-1);localStorage.setItem(this.notificationStorageKey(),JSON.stringify(new e.tIW(Q,Date.now()))),this.isThereUnseen()}afterLoginCheck(){let M=Object.keys(localStorage).filter(R=>R.split("_")[0]===v.B.notificationPrefix);M.length>=3&&(M=M.sort((R,l)=>this.getItemByKey(R).lastLogin<this.getItemByKey(l).lastLogin?1:-1),M=M.slice(2,M.length),M.forEach(R=>{localStorage.removeItem(R)}
1126)),localStorage.getItem(this.notificationStorageKey())?localStorage.setItem(this.notificationStorageKey(),JSON.stringify(new e.tIW(this.getItem().notifs,Date.now()))):localStorage.setItem(this.notificationStorageKey(),JSON.stringify(new e.tIW([],Date.now())))}notificationStorageKey(){return v.B.notificationPrefix+"_"+btoa(this.userService.sessionUserID)}getAllNotifs(){return this.isThereUnseen(),this.getItem().notifs.map(M=>(M.img=r.decompress(M.img),M))}getMinimalNotifs(){return this.isThereUnseen(),this.getItem().notifs.filter(M=>Date.now()/1e3-M.timeCreated/1e3<604800).map(M=>(M.img=r.decompress(M.img),M))}getItem(){return null!==localStorage.getItem(this.notificationStorageKey())?JSON.parse(localStorage.getItem(this.notificationStorageKey())):new e.tIW([],Date.now())}getItemByKey(M){return null!==localStorage.getItem(M)?JSON.parse(localStorage.getItem(M)):new e.tIW([],Date.now())}isThereUnseen(){let M=!1;this.getItem().notifs.forEach(R=>{R.seen||(M=!0)}),this.changes$.next(M)}setToSeen(M){const R=JSON.parse(localStorage.getItem(this.notificationStorageKey()));R.notifs.forEach(l=>{l.ID===M.ID&&(l.seen=!0)}),localStorage.setItem(this.notificationStorageKey(),JSON.stringify(R)),this.isThereUnseen()}deleteOldNotifs(){const M=this.getItem(),R=M.notifs.filter(l=>Date.now()/1e3-l.timeCreated/1e3<2592e3);0===R.length?localStorage.setItem(this.notificationStorageKey(),JSON.stringify(new e.tIW([],M.lastLogin))):localStorage.setItem(this.notificationStorageKey(),JSON.stringify(new e.tIW(R,M.lastLogin))),this.isThereUnseen()}setNotificationsEnabled(M){this.notificationsEnabled=M}}return L.\u0275fac=function(M){return new(M||L)(C.LFG(o.K),C.LFG(u.sK),C.LFG(m._W),C.LFG(a.f),C.LFG(f.P),C.LFG(O.c))},L.\u0275prov=C.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},13217:(Se,k,n)=>{n.d(k,{k:()=>r});var s=n(97582),e=n(94650),o=n(44224),t=n(8472),v=n(97185); 1127/* 1128 * @license 1129 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1130 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1131 *
1132 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1133 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1134 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1135 * trade secret or copyright law. 1136 * 1137 * Dissemination of this information or reproduction of this material is strictly forbidden 1138 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1139 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1140 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1141 * explicitly covering such access. 1142 * 1143 * The copyright notice above does not evidence any actual or intended publication or disclosure 1144 * of this source code, which includes information that is confidential and/or proprietary, 1145 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1146 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1147 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1148 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1149 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1150 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1151 * IN WHOLE OR IN PART. 1152 */let r=class{constructor(C){this.injector=C}get authService(){return this._authService?Promise.resolve(this._authService):(this._authService=this.injector.get(t.xE),this._authService.initState.toPromise().then(()=>this._authService))}get toastrService(){return this._toastrService||(this._toastrService=this.injector.get(v._W)),this._toastrService}};r.\u0275fac=function(C){return new(C||r)(e.LFG(e.zs3))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r=(0,s.gn)([(0,o.c)()],r)},31495:(Se,k,n)=>{n.d(k,{g:()=>e});var s=n(94650); 1153/* 1154 * @license 1155 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1156 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1157 *
1158 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1159 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1160 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1161 * trade secret or copyright law. 1162 * 1163 * Dissemination of this information or reproduction of this material is strictly forbidden 1164 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1165 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1166 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1167 * explicitly covering such access. 1168 * 1169 * The copyright notice above does not evidence any actual or intended publication or disclosure 1170 * of this source code, which includes information that is confidential and/or proprietary, 1171 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1172 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1173 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1174 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1175 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1176 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1177 * IN WHOLE OR IN PART. 1178 */let e=(()=>{class o{constructor(){this.submitBilling=new s.vpe,this.submitPayment=new s.vpe,this.bundleBought=new s.vpe,this.billingChanged=new s.vpe,this.subscriptionChanged=new s.vpe,this.paymentChanged=new s.vpe,this.selectedMethod=new s.vpe,this.lastAddedMethod=new s.vpe,this.contractPriceChanged=new s.vpe,this.billing=0,this.bundle=0,this.payment=0,this.subscription=0,this.paymentAdded=0}sendSubmitBilling(){this.billing++,this.submitBilling.emit(this.billing)}sendSubmitPayment(){this.payment++,this.submitPayment.emit(this.payment)}sendBillingChanged(){this.billing++,this.billingChanged.emit(this.billing)}sendSubscriptionChanged(v){this.subscription++,this.subscriptionChanged.emit(v)}sendPaymentAdded(v){this.paymentAdded++,this.paymentChanged.emit(this.paymentAdded),this.lastAddedMethod.emit(v)}sendBundleBought(){this.bundle++,this.bundleBought.emit(this.bundle)}sendSelectedPayment(v){this.selectedMethod.emit(v)}}return o.\u0275fac=function(v){return new(v||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},52033:(Se,k,n)=>{n.d(k,{S:()=>c});var s=n(97582),e=n(44224),o=n(94650),t=n(50211),v=n(3417),r=n(32925);let c=class{constructor(u,m,a){this.clientService=u,this.languageService=m,this.translate=a,this.giftKey="gift",this.currentLanguageDashedServerFormat=this.languageService.dashedServerLanguageFromLanguageKey(this.languageService.currentLanguage)}isGift(u){return u.toLowerCase()===this.giftKey}setPacksNameWithBundle(u){return this.clientService.getBundles().pipe((0,e.t)(this)).toPromise().then(m=>(u.map(a=>{const f=m.find(O=>O.ID===a.key);f&&(a.displayName=f.translations[this.currentLanguageDashedServerFormat].replace("$$",a.quota.toString()))}),u),m=>(console.log(m),null))}setPackNames(u,m){return u.map(a=>{const f=m?.find(O=>O.ID===a.key);f&&(a.displayName=f.translations[this.currentLanguageDashedServerFormat].replace("$$",a.quota.toString()+" "+this.translate.instant("CLIENT.PROFILE.ORDERS.GIFT")))}),u}};c.\u0275fac=function(u){return new(u||c)(o.LFG(t.y),o.LFG(v.T),o.LFG(r.sK))},c.\u0275prov=o.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c=(0,s.gn)([(0,e.c)()],c)},81404:(Se,k,n)=>{n.d(k,{u:()=>y});var s=n(97582),e=n(44224),o=n(15635),t=n(69751),v=n(92961),r=n(36057),c=n(71997),C=n(45218),u=n(76842),m=n(94650),a=n(52835),f=n(93710),O=n(54968),N=n(78372),L=n(37340),i=n(32925),M=n(3417),R=n(25156),l=n(61479),h=n(55089),D=n(50211),B=n(34643),K=n(46061),b=n(24006),w=n(36895),X=n(80114),Y=n(87918),Z=n(26079),G=n(66616),Q=n(47044),V=n(21811),se=n(28213),xe=n(47423),Ee=n(20545),re=n(27830),le=n(37570),q=n(81801); 1179/* 1180 * @license 1181 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1182 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1183 *
1184 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1185 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1186 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1187 * trade secret or copyright law. 1188 * 1189 * Dissemination of this information or reproduction of this material is strictly forbidden 1190 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1191 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1192 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1193 * explicitly covering such access. 1194 * 1195 * The copyright notice above does not evidence any actual or intended publication or disclosure 1196 * of this source code, which includes information that is confidential and/or proprietary, 1197 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1198 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1199 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1200 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1201 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1202 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1203 * IN WHOLE OR IN PART. 1204 */const fe=["termsScrollbar"],de=["acceptTOS"],it=["scrollButton"];function Ve(x,E){if(1&x){const T=m.EpF();m.TgZ(0,"button",20,21),m.NdJ("click",function(){m.CHM(T);const $=m.oxw();return m.KtG($.jumpToAcceptTOS())}),m._uU(2),m.ALo(3,"translate"),m._UZ(4,"i",22),m.qZA()}if(2&x){const T=m.oxw();m.Q6J("nzSize","default")("@fadeIn",T.animation),m.xp6(2),m.hij(" ",m.lcZ(3,3,"COMMON.SCROLL_DOWN")," ")}}function W(x,E){1&x&&(m.TgZ(0,"span"),m._UZ(1,"nz-skeleton-element",29),m.qZA()),2&x&&(m.Q6J("@skeletonPosAbsLeave",void 0),m.xp6(1),m.Q6J("nzActive",!0))}function ee(x,E){1&x&&(m.TgZ(0,"div",23)(1,"div",24)(2,"div",25),m._UZ(3,"nz-skeleton-element",26),m.qZA()(),m._UZ(4,"nz-skeleton-element",27),m.YNc(5,W,2,2,"span",28),m.ALo(6,"numberArray"),m.qZA()),2&x&&(m.Q6J("@skeletonPosAbsLeave",void 0),m.xp6(3),m.Q6J("nzActive",!0),m.xp6(1),m.Q6J("nzActive",!0),m.xp6(1),m.Q6J("ngForOf",m.lcZ(6,4,15)))}function te(x,E){if(1&x&&m._UZ(0,"app-tabset-tutorial",30),2&x){const T=m.oxw();m.Q6J("tabsetTutorialDirective",T.tabsetTutorialDirective)}}function Pe(x,E){if(1&x&&(m.TgZ(0,"nz-tab",33)(1,"div",34),m._UZ(2,"span",35),m.qZA()()),2&x){const T=E.$implicit,S=m.oxw(2);m.Q6J("nzTitle",T.short[S.actLanguage]),m.xp6(2),m.Q6J("innerHTML",T.content,m.oJD)}}function Ue(x,E){if(1&x){const T=m.EpF();m.TgZ(0,"nz-tabset",31),m.NdJ("nzSelectedIndexChange",function($){m.CHM(T);const pe=m.oxw();return m.KtG(pe.setSeoSchema($))}),m.YNc(1,Pe,3,2,"nz-tab",32),m.qZA()}if(2&x){const T=m.oxw(),S=m.MAs(9);m.Q6J("nzTooltipTitle",S)("nzTooltipTrigger",null)("nzTooltipPlacement","bottomRight")("scrollElement",T.scrollElement)("@skeletonPosAbsLeave",void 0),m.xp6(1),m.Q6J("ngForOf",T.termsAgreements)}}function Ae(x,E){1&x&&m._UZ(0,"nz-skeleton-element",36),2&x&&m.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0)}const Fe=function(x){return{name:x}};function Qe(x,E){if(1&x){const T=m.EpF();m.TgZ(0,"div",37),m.ALo(1,"translate"),m.TgZ(2,"label",38),m.NdJ("ngModelChange",function($){const Re=m.CHM(T).index,Ke=m.oxw();return m.KtG(Ke.isCheckedAgreements[Re]=$)}),m._uU(3),m.ALo(4,"translate"),m.qZA()()}if(2&x){const T=E.$implicit,S=E.index,$=m.oxw();m.Q6J("nzTooltipTitle",m.lcZ(1,3,"COMMON.READ_TOS_BEFORE_ACCEPT")),m.xp6(2),m.Q6J("ngModel",$.isCheckedAgreements[S]),m.xp6(1),m.hij(" ",m.xi3(4,5,"COMMON.ACCEPTED_AGREEMENT",m.VKq(8,Fe,T.translations[$.actLanguage]))," ")}}const rt=function(){return{autoHide:!1,scrollbarMinSize:100}},Ct=function(x){return{"overflow-hidden":x}};let ht=class{constructor(E,T,S,$,pe,Re,Ke,nt,lt,$e){this.ngZone=E,this.translate=T,this.languageService=S,this.nzModal=$,this.resizeService=pe,this.userService=Re,this.clientService=Ke,this.interfaceService=nt,this.modal=lt,this.seoSchemaService=$e,this.animation=1,this.readHandlerAdded=!1,this.viewInitialized=!1,this.actLanguage="hu-HU",this.termsLogoLoaded=!1,this.callback=new m.vpe}ngOnInit(){this.resizeService.width.subscribe(E=>{this.setScrollElement(E)}),this.actLanguage=this.languageService.dashedServerLanguageFromLanguageKey(this.languageService.currentLanguage),this.translate.onLangChange.subscribe(E=>{this.actLanguage=this.languageService.dashedServerLanguageFromLanguageKey(E.lang)}),this.loadAgreements()}loadAgreements(){this.userService.isLawyer?this.clientService.getLawyerAgreements().pipe((0,e.t)(this)).subscribe(E=>{const T=E.filter(S=>S.signature.kind===c.YEU.GTS);T.forEach(S=>{S.content=this.interfaceService.parseMarkDown(S.content)}),this.termsAgreements=T,this.isCheckedAgreements=Array(this.termsAgreements.length).fill(!1),setTimeout(()=>(this.addReadHandler(),this.setSeoSchema(0)),0)}):this.userService.isClient&&this.clientService.getClientAgreements().pipe((0,e.t)(this)).subscribe(E=>{const T=E.filter(S=>S.signature.kind===c.YEU.GTS);T.forEach(S=>{S.content=this.interfaceService.parseMarkDown(S.content)}),this.termsAgreements=T,this.isCheckedAgreements=Array(this.termsAgreements.length).fill(!1),setTimeout(()=>(this.addReadHandler(),this.setSeoSchema(0)),0)})}addReadHandler(){!this.readHandlerAdded&&this.viewInitialized&&this.termsAgreements&&this.termsAgreements.length>0&&this.termsScrollbar&&this.termsScrollbar.SimpleBar&&(this.readHandlerAdded=!0)}ngAfterViewInit(){this.viewInitialized=!0,this.setScrollElement(window.innerWidth)}accept(){this.callback.emit(!0)}decline(){this.callback.emit(!1)}setScrollElement(E){if(E<768){const T=this.modal.containerInstance.getNativeElement();this.scrollElement!==T&&(this.scrollElement=T),this.srcollSubscription=(0,O.R)(T,"scroll").pipe((0,N.b)(1),(0,e.t)(this)).subscribe(()=>{const S=this.scrollToAcceptTOS.nativeElement.getBoundingClientRect();this.animation=S.top>=0&&S.left>=0&&S.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&S.right<=(window.innerWidth||document.documentElement.clientWidth)?0:1})}else if(this.termsScrollbar&&this.termsScrollbar.SimpleBar){const T=this.termsScrollbar.SimpleBar.getScrollElement();this.scrollElement!==T&&(this.scrollElement=T)}}jumpToAcceptTOS(){this.scrollToAcceptTOS.nativeElement.scrollIntoView({behavior:"smooth"})}setSeoSchema(E){this.gtosSchema=this.seoSchemaService.getGToS(this.termsAgreements[E].short[this.actLanguage])}};ht.\u0275fac=function(E){return new(E||ht)(m.Y36(m.R0b),m.Y36(i.sK),m.Y36(M.T),m.Y36(R.Sf),m.Y36(l._),m.Y36(h.K),m.Y36(D.y),m.Y36(B.Z),m.Y36(R.Lf),m.Y36(K.a))},ht.\u0275cmp=m.Xpm({type:ht,selectors:[["app-gts-modal"]],viewQuery:function(E,T){if(1&E&&(m.Gf(fe,7),m.Gf(f.v,5),m.Gf(de,5),m.Gf(it,5)),2&E){let S;m.iGM(S=m.CRH())&&(T.termsScrollbar=S.first),m.iGM(S=m.CRH())&&(T.tabsetTutorialDirective=S.first),m.iGM(S=m.CRH())&&(T.scrollToAcceptTOS=S.first),m.iGM(S=m.CRH())&&(T.scrollButton=S.first)}},outputs:{callback:"callback"},decls:27,vars:24,consts:[["nz-button","","nzType","primary","class","jump-down",3,"nzSize","click",4,"ngIf"],["id","terms-container",1,"row","m-b-20","m-l-0","m-r-0"],[1,"col-xs-12","w-50","h-100","overflow-y-auto","p-l-0","p-r-0","flex-grow-1","flex-shrink-1"],["id","terms-scrollbar",1,"overflow-x-hidden","h-100",3,"options","ngClass"],["termsScrollbar",""],["id","terms-text",1,"m-b-0","text-justify",2,"padding-right","1rem","font-size","0.8rem"],[1,"w-100","position-relative"],["class","w-100",4,"ngIf"],["tutorialTitle",""],["nz-tooltip","","tabsetTutorial","",3,"nzTooltipTitle","nzTooltipTrigger","nzTooltipPlacement","scrollElement","nzSelectedIndexChange",4,"ngIf"],[1,"d-none","d-sm-none","d-md-block","align-self-center","h-100","text-center","position-relative"],["nzType","image","nzSize","large","class","h-100 img-max-width imageSkeleton",3,"nzActive",4,"ngIf"],["src","assets/images/szerzi_terms_logo.svg","alt","Terms of service logo",1,"h-100","img-max-width",3,"load"],["class","m-b-10","nz-tooltip","","nzTooltipPlacement","topLeft",3,"nzTooltipTitle",4,"ngFor","ngForOf"],[1,"row","display-flex","justify-content-flex-end","m-l-0","m-r-0","m-t-20"],["nz-button","","nzType","default","id","declineTOS",1,"mb-4","mb-md-0","mr-0","mr-md-3",3,"click"],["id","acceptTOS","nz-tooltip","",3,"nzTooltipTitle"],["acceptTOS",""],["nz-button","","nzType","default","id","declineTOS",1,"mb-4","mb-md-0","mr-0","mr-md-3",3,"disabled","click"],[3,"json"],["nz-button","","nzType","primary",1,"jump-down",3,"nzSize","click"],["scrollButton",""],["nz-icon","","nzType","caret-down","nzTheme","outline"],[1,"w-100"],[1,"ant-tabs-nav","p-v-5","tabSkeleton"],[1,"ant-tabs-tab","ant-tabs-tab-active","w-30"],["nzType","input","nzSize","small",1,"w-100","skeleton-h-20px",3,"nzActive"],["nzType","input","nzSize","large",1,"p-t-20","p-b-10","w-80",3,"nzActive"],[4,"ngFor","ngForOf"],["nzType","input","nzSize","small",1,"p-b-10","w-100",3,"nzActive"],[3,"tabsetTutorialDirective"],["nz-tooltip","","tabsetTutorial","",3,"nzTooltipTitle","nzTooltipTrigger","nzTooltipPlacement","scrollElement","nzSelectedIndexChange"],["class","markdown",3,"nzTitle",4,"ngFor","ngForOf"],[1,"markdown",3,"nzTitle"],[1,"markdownAgreementsDiv","p-t-20"],[3,"innerHTML"],["nzType","image","nzSize","large",1,"h-100","img-max-width","imageSkeleton",3,"nzActive"],["nz-tooltip","","nzTooltipPlacement","topLeft",1,"m-b-10",3,"nzTooltipTitle"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(E,T){1&E&&(m.YNc(0,Ve,5,5,"button",0),m.TgZ(1,"div",1)(2,"div",2)(3,"ngx-simplebar",3,4)(5,"div",5)(6,"div",6),m.YNc(7,ee,7,6,"div",7),m.YNc(8,te,1,1,"ng-template",null,8,m.W1O),m.YNc(10,Ue,2,6,"nz-tabset",9),m.qZA()()()(),m.TgZ(11,"div",10),m.YNc(12,Ae,1,2,"nz-skeleton-element",11),m.TgZ(13,"img",12),m.NdJ("load",function(){return T.termsLogoLoaded=!0}),m.qZA()()(),m.YNc(14,Qe,5,10,"div",13),m.TgZ(15,"div",14)(16,"button",15),m.NdJ("click",function(){return T.decline()}),m._uU(17),m.ALo(18,"translate"),m.qZA(),m.TgZ(19,"div",16,17),m.ALo(21,"translate"),m.ALo(22,"translate"),m.TgZ(23,"button",18),m.NdJ("click",function(){return T.accept()}),m._uU(24),m.ALo(25,"translate"),m.qZA()()(),m._UZ(26,"ngx-json-ld",19)),2&E&&(m.Q6J("ngIf",T.srcollSubscription),m.xp6(3),m.Q6J("options",m.Dd
1204M(21,rt))("ngClass",m.VKq(22,Ct,!T.termsAgreements||0===T.termsAgreements.length)),m.xp6(4),m.Q6J("ngIf",!T.termsAgreements||0===T.termsAgreements.length),m.xp6(3),m.Q6J("ngIf",T.termsAgreements&&T.termsAgreements.length>0),m.xp6(2),m.Q6J("ngIf",!T.termsLogoLoaded),m.xp6(1),m.Q6J("@imageLoadAnimation",T.termsLogoLoaded?"loaded":"loading"),m.xp6(1),m.Q6J("ngForOf",T.termsAgreements),m.xp6(3),m.hij(" ",m.lcZ(18,13,"CLIENT.GTS_MODAL.DECLINE_TOS_AND_PRIVACY")," "),m.xp6(2),m.Q6J("nzTooltipTitle",T.readHandlerAdded?!T.isCheckedAgreements||T.isCheckedAgreements.includes(!1)?m.lcZ(22,17,"CLIENT.GTS_MODAL.ACCEPT_TOS_AND_PRIVACY"):"":m.lcZ(21,15,"CLIENT.GTS_MODAL.LOADING_TOS_AND_PRIVACY")),m.xp6(4),m.Q6J("disabled",!T.isCheckedAgreements||T.isCheckedAgreements.includes(!1)),m.xp6(1),m.hij(" ",m.lcZ(25,19,"CLIENT.GTS_MODAL.CONTINUE")," "),m.xp6(2),m.Q6J("json",T.gtosSchema))},dependencies:[b.JJ,b.On,w.mk,w.sg,w.O5,X.T,Y.M,Z.p,f.v,G.ix,Q.w,V.dQ,se.Ie,xe.Ls,Ee.Xw,Ee.Ql,Ee.yg,re.xH,re.xw,le.SY,i.X$,q.A],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}@media only screen and (min-width: 768px){#terms-container[_ngcontent-%COMP%]{min-height:45vh;height:45vh}}@media only screen and (max-width: 767.98px){#acceptTOS[_ngcontent-%COMP%]{width:100%}#acceptTOS[_ngcontent-%COMP%] > app-multi-state-button[_ngcontent-%COMP%]{display:grid;width:100%}#declineTOS[_ngcontent-%COMP%]{width:100%;margin-bottom:10px!important}#terms-text[_ngcontent-%COMP%]{padding-right:0!important}}.imageSkeleton[_ngcontent-%COMP%]{width:275px}.imageSkeleton[_ngcontent-%COMP%] .ant-skeleton-image{width:100%;height:100%}.tabSkeleton[_ngcontent-%COMP%]{background-color:#be9ddf40!important}.img-max-width[_ngcontent-%COMP%]{max-width:300px;padding-left:1.5rem}'],data:{animation:[a.Ln,a.nV,(0,L.X$)("fadeIn",[(0,L.SB)("1",(0,L.oB)({opacity:1})),(0,L.SB)("0",(0,L.oB)({opacity:0,display:"none"})),(0,L.eR)("* <=> *",[(0,L.oB)({display:"block"}),(0,L.jt)(300)])])]}}),ht=(0,s.gn)([(0,e.c)()],ht);var mt=n(6947),ye=n(22525),Ce=n(55770),j=n(7172),_e=n(71667),F=n(28736),ne=n(75489),U=n(12987),et=n(31495),ct=n(52632),ft=n(39889),Ze=n(97895),Oe=n(3674); 1205/* 1206 * @license 1207 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1208 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1209 *
1210 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1211 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1212 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1213 * trade secret or copyright law. 1214 * 1215 * Dissemination of this information or reproduction of this material is strictly forbidden 1216 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1217 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1218 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1219 * explicitly covering such access. 1220 * 1221 * The copyright notice above does not evidence any actual or intended publication or disclosure 1222 * of this source code, which includes information that is confidential and/or proprietary, 1223 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1224 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1225 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1226 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1227 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1228 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1229 * IN WHOLE OR IN PART. 1230 */let y=class{constructor(E,T,S,$,pe,Re,Ke,nt,lt,$e,qe){this.nzModal=E,this.translate=T,this.clientService=S,this.eventService=$,this.formatCurrencyNamePipe=pe,this.onePageService=Re,this.paymentService=Ke,this.routerService=nt,this.trackingService=lt,this.utilService=$e,this.languageService=qe}addPaymentMethodModal(E,T){const S=_e.K.optimalModalWidthPercentageBasedOnWindowSize();this.nzModal.create({nzTitle:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.CANCEL.TITLE"),nzContent:o.p,nzClassName:`${S.class} modal-remove-footer-border`,nzWidth:S.width,nzFooter:T,nzComponentParams:{isPayPal:E},nzBodyStyle:{"padding-bottom":"0"},nzOnCancel:()=>{const $=_e.K.optimalModalWidthPercentageBasedOnWindowSizeSmall();return this.nzModal.confirm({nzTitle:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.CANCEL.QUESTION"),nzContent:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.CANCEL.DESC"),nzOkText:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.CANCEL.OK"),nzCancelText:this.translate.instant("CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.CANCEL.CANCEL"),nzWidth:$.width,nzClassName:$.class,nzOnOk:()=>this.nzModal.closeAll()}),!1}})}benefitListModal(E,T,S,$,pe,Re=0,Ke=c.Fa6.HUF,nt,lt,$e=!1,qe,ve,we,De){const Be=_e.K.optimalModalWidthPercentageBasedOnWindowSize(6),Le=this.nzModal.create({nzTitle:this.translate.instant("CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.TITLE"),nzContent:j.D,nzComponentParams:{progressID:E,quotaNeeded:T,purchaseType:S,price:Re,currency:Ke,successCallback:$,vat:nt,currentPaymentProvider:lt,checkNeeded:$e,matchmakingCategoryModel:qe,matchmakingAssetModel:ve,candidateLawyer:we,netPrice:De},nzOkText:null,nzCancelText:null,nzWidth:Be.width,nzClassName:Be.class,nzStyle:{"max-height":"100%"},nzWrapClassName:"vertical-center-modal",nzOnCancel:()=>pe?pe(Le.result):null})}bundleSuccessModal(E){const T=_e.K.optimalModalWidthPercentageBasedOnWindowSize(0);this.nzModal.success({nzTitle:this.translate.instant("CLIENT.PROFILE.BUNDLES.SUCCESS_MODAL.SUCCESS_TITLE",{quota:E}),nzOkText:this.translate.instant("CLIENT.PROFILE.BUNDLES.SUCCESS_MODAL.CONTINUE"),nzWidth:T.width,nzClassName:T.class,nzCancelText:this.translate.instant("CLIENT.PROFILE.BUNDLES.SUCCESS_MODAL.CANCEL"),nzOnCancel:()=>{this.nzModal.closeAll()},nzOnOk:()=>{this.nzModal.closeAll(),this.routerService.routeToContractCreate()}})}buyBundleRequest(E,T){let S;return S=C.L.config.currentPaymentProvider===c.OHy.Braintree&&E instanceof c.F62?this.clientService.buyBundleBraintree(new c.Xck(T.ID,E)).pipe((0,e.t)(this)).toPromise():C.L.config.currentPaymentProvider===c.OHy.Str
1230ipe&&E instanceof c.BAK?this.clientService.buyBundleStripe(new c.SfM(T.ID,E.idempotencyID)).pipe((0,e.t)(this)).toPromise().then($=>E.stripe.confirmCardPayment($.clientSecret,{payment_method:E.paymentID}).then(pe=>!pe.error||pe.error.code&&"payment_intent_unexpected_state"===pe.error.code?this.paymentService.paymentStripeCheck(this.clientService.checkBundleStripe(new c.RD6($.paymentIntentID)).pipe((0,e.t)(this))):Promise.reject(),pe=>(console.log(pe),Promise.reject())),$=>(console.log($),Promise.reject())):E instanceof c.Ink?this.clientService.buyBundleUnicredit(new c.tPQ(T.ID)).pipe((0,e.t)(this)).toPromise().then($=>{const pe=new c.JdH(r.Oz.BUNDLE,$.transactionID,T.ID);localStorage.setItem(mt.B.pendingPayment,JSON.stringify(pe)),this.routerService.hrefOrRouter(C.L.config.unicreditTransactionUrl+$.transactionID)},$=>(console.log($),Promise.reject())):Promise.reject(),S.then($=>{(C.L.config.currentPaymentProvider===c.OHy.Braintree&&E instanceof c.F62||C.L.config.currentPaymentProvider===c.OHy.Stripe&&E instanceof c.BAK)&&(this.trackingService.sendGoogleTagManagerPurchaseEvent(this.eventService.clientStatus.valueAddedTax===c.di5.Standard?T.grossPrice:T.netPrice,T.currency),this.trackingService.sendPixelPurchaseEvent([T.ID],this.eventService.clientStatus.valueAddedTax&&this.eventService.clientStatus.valueAddedTax!==c.di5.Standard?T.netPrice:T.grossPrice,T.currency))},$=>{console.log($)}),S}cancelDelayedPlan(E,T,S){if(!(T&&C.L.config.currentPaymentProvider===c.OHy.Stripe&&E instanceof c.BAK))return Promise.reject();{let $;if(T.methodToken===E.paymentID)$=Promise.resolve();else{const Re=this.utilService.randomString(128);$=this.clientService.updatePlanMethodStripe(new c.Q6N(T.ID,T.key,T.modules,T.realStatus?T.realStatus:T.providerData.status,E.paymentID,Re)).pipe((0,e.t)(this)).toPromise()}return $.then(Re=>this.clientService.updatePlanCancelDelayedStripe(new c.EnA(T.ID,T.key,T.modules,T.realStatus?T.realStatus:T.providerData.status,S)).pipe((0,e.t)(this)).toPromise(),Re=>Promise.reject(Re))}}checkBundleUnicredit(E,T){const S=this.clientService.checkBundleUnicredit(new c.$60(E)).pipe((0,e.t)(this)).toPromise();return S.then($=>{localStorage.removeItem(mt.B.pendingPayment),this.trackingService.sendGoogleTagManagerPurchaseEvent(this.eventService.clientStatus.valueAddedTax===c.di5.Standard?T.grossPrice:T.netPrice,T.currency),this.trackingService.sendPixelPurchaseEvent([T.ID],this.eventService.clientStatus.valueAddedTax&&this.eventService.clientStatus.valueAddedTax!==c.di5.Standard?T.netPrice:T.grossPrice,T.currency)},$=>{}),S}choosePaymentModal(E,T,S,$,pe,Re,Ke,nt,lt,$e,qe,ve,we,De,Be,Le,Ne,oe,ue,Ge,tt=C.L.config.currentPaymentProvider,pt,ce,Me,he,Ye,He,at){const me=_=>{lt&&(lt(_),this.eventService.setHasOrders(!0))},Te=_=>{$e&&$e(_)};if(this.eventService.hasOrders||pt){const _=_e.K.optimalModalWidthPercentageBasedOnWindowSize(8);return this.nzModal.create({nzTitle:ve?this.translate.instant(ve,at):this.translate.instant("CLIENT.PROFILE.PAYMENT.CHOOSE_TITLE"),nzContent:u.V,nzComponentParams:{imageUrl:$,productName:pe,itemPrice:Re,requestFromPaymentID:E,submitText:T,confirmText:S,purchaseLabel:Ke,purchaseType:nt,modalFooter:we,showPopconfirm:De,popconfirmTitle:Be,popconfirmOkText:Le,currency:Ne,vat:oe,upgradePrice:ue,netPrice:Ge,currentPaymentProvider:tt,checkNeeded:pt,purchasedQuota:ce,updateType:Me,isDelayedPurchase:he,successCallback:me,errorCallback:Te,hideVatPercent:Ye,candidateLawyer:He},nzOkText:null,nzCancelText:null,nzWidth:_.width,nzClassName:_.class,nzStyle:{"max-height":"100%"},nzWrapClassName:"vertical-center-modal",nzMaskClosable:!1,nzOnCancel:()=>qe?qe({status:499}):{}})}{const _=_e.K.optimalModalWidthPercentageBasedOnWindowSize(10),ot=this.nzModal.create({nzTitle:this.translate.instant("COMMON.TOS"),nzContent:ht,nzWidth:_.width,nzStyle:{"overflow-y":"hidden","overflow-x":"hidden"},nzClassName:`${_.class} footerless-modal`,nzOkText:null,nzCancelText:null,nzOnCancel:()=>qe?qe({status:499}):{}});ot.getContentComponent().callback.subscribe(je=>{if(ot.close(),je){const At=_e.K.optimalModalWidthPercentageBasedOnWindowSize(8);return this.nzModal.create({nzTitle:this.translate.instant(ve||"CLIENT.PROFILE.PAYMENT.CHOOSE_TITLE"),nzContent:u.V,nzComponentParams:{imageUrl:$,productName:pe,itemPrice:Re,requestFromPaymentID:E,submitText:T,confirmText:S,purchaseLabel:Ke,purchaseType:nt,modalFooter:we,showPopconfirm:De,popconfirmTitle:Be,popconfirmOkText:Le,currency:Ne,vat:oe,upgradePrice
1230:ue,netPrice:Ge,currentPaymentProvider:tt,checkNeeded:pt,purchasedQuota:ce,updateType:Me,isDelayedPurchase:he,successCallback:me,errorCallback:Te,candidateLawyer:He},nzOkText:null,nzCancelText:null,nzWidth:At.width,nzClassName:At.class,nzStyle:{"max-height":"100%"},nzWrapClassName:"vertical-center-modal",nzMaskClosable:!1,nzOnCancel:()=>qe?qe({status:499}):{}})}qe&&qe({status:499})})}}choosePaymentModalForMatchmaking(E,T,S,$=0,pe=c.Fa6.HUF,Re,Ke,nt,lt,$e){const ve=`${Re&&Re!==c.di5.Standard?$e:$} ${this.formatCurrencyNamePipe.transform(pe)}`;let we;if(lt)we=new v.PR(this.translate.instant("CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.DEFAULT")+" ("+ve+")","CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.WORKING","CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.SUCCESS",(new Map).set(0,"CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.FAILED.OTHER").set(442,"CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.FAILED.442"));else{const Ne=new Map;Ne.set(0,"CLIENT.HELP.BUTTON_STATES.FAILED.OTHER"),Ne.set(402,"CLIENT.HELP.BUTTON_STATES.FAILED.402"),Ne.set(404,"CLIENT.HELP.BUTTON_STATES.FAILED.NOT_FOUND"),Ne.set(423,"CLIENT.HELP.BUTTON_STATES.FAILED.LOCKED"),Ne.set(444,"CLIENT.HELP.BUTTON_STATES.FAILED.444"),Ne.set(499,"CLIENT.HELP.BUTTON_STATES.FAILED.CANCELLED"),we=new v.PR(this.translate.instant("CLIENT.HELP.BUTTON_STATES.DEFAULT")+" ("+ve+")","CLIENT.HELP.BUTTON_STATES.WORKING","CLIENT.HELP.BUTTON_STATES.SUCCESS",Ne)}const De=nt?F.i.apiRouteContractIcon(nt.name):"assets/images/marchmaking-service.svg",Be=Ke?this.translate.instant("CLIENT.HELP.PRODUCT_NAME",{c
1230ategoryName:Ke.names[this.languageService.dashedServerLanguageFromLanguageKey(this.languageService.currentLanguage)]}):this.translate.instant("CLIENT.HELP.PRODUCT_NAME_DEFAULT");let Le;return lt&&(Le={lawyerName:lt?.owner?.fullName?lt?.owner?.fullName:lt?.owner?.name}),this.choosePaymentModal(Ne=>new t.y(oe=>{T(Ne).then(ue=>oe.next(ue),ue=>oe.error(ue))}),we,this.translate.instant("CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.AMOUNT",{amount:$,currency:this.formatCurrencyNamePipe.transform(pe)}),De,Be,ve,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.PAY_AS_YOU_GO",E,null,S,S,lt?"CLIENT.PROFILE.PAYMENT.CHOOSE_TITLE_MATCHMAKER_FROM_CANDIDATE":"CLIENT.PROFILE.PAYMENT.CHOOSE_TITLE_MATCHMAKER",null,!0,"CLIENT.PROFILE.PAYMENT.POPCONFIRM.MATCHMAKING",lt?"CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.DEFAULT":"CLIENT.HELP.BUTTON_STATES.DEFAULT",pe,Re,null,null,C.L.config.currentPaymentProvider,null,null,null,null,!0,lt,Le)}choosePaymentModalForBundle(E,T,S,$=!1,pe,Re=C.L.config.currentPaymentProvider){const nt=new Map;nt.set(0,"CLIENT.PROFILE.BUNDLES.BUTTON_STATES.ERROR.OTHER"),nt.set(440,"CLIENT.PROFILE.BUNDLES.BUTTON_STATES.ERROR.401");const lt=new v.PR("CLIENT.PROFILE.BUNDLES.BUTTON_STATES.CHANGE","CLIENT.PROFILE.BUNDLES.BUTTON_STATES.CHANGING","CLIENT.PROFILE.BUNDLES.BUTTON_STATES.CHANGED",nt),$e=`assets/images/bundles/bundle-quota-${E.quota}.svg`,ve=`${S&&S!==c.di5.Standard?E.netPrice:E.grossPrice} ${this.formatCurrencyNamePipe.transform(E.currency)}`;this.choosePaymentModal(De=>new t.y(Be=>{let Le;De instanceof c.Ink&&De.checkNeeded?($=De.checkNeeded,Le=this.checkBundleUnicredit(pe,E)):($=!1,Le=this.buyBundleRequest(De,E)),Le.then(Ne=>Be.next(Ne),Ne=>Be.error(Ne))}),lt,this.translate.instant("CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.AMOUNT",{amount:E.grossPrice,currency:this.formatCurrencyNamePipe.transform(E.currency)}),$e,T,ve,"CLIENT.PROFILE.PAYMENT.CHOOSEN_BUNDLE",r.Oz.BUNDLE,()=>{(Re!==c.OHy.Unicredit||!0===$)&&(this.bundleSuccessModal(E.quota),this.onePageService.sendBundleBought())},()=>{},null,"CLIENT.PROFILE.PAYMENT.CHOOSE_TITLE_BUNDLE","CLIENT.PROFILE.PAYMENT.PAYMENT_CHOOSE_FOOTER_BUNDLE",!0,"CLIENT.PROFILE.PAYMENT.POPCONFIRM.BUNDLE",null,E.currency,S,null,E.netPrice,Re,$,E.quota)}choosePaymentModalForPlan(E,T,S,$,pe=!1,Re,Ke,nt,lt,$e,qe,ve=!1,we,De,Be,Le){let Ne,oe;if(Ne=this.getPlanRequest(E,T,S,pe,Re,nt,ve,De,Be),!pe||Be&&Be.length>0){const He=new Map;He.set(0,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.OTHER"),He.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.401"),He.set(499,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.499"),He.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.503"),oe=new v.PR("COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.CHANGE","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.CHANGED",He)}else if(E&&E.rank<S.rank||C.L.config.currentPaymentProvider===c.OHy.Stripe&&we&&we.rank<S.rank){const He=new Map;He.set(0,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.OTHER"),He.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.401"),He.set(428,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.428"),He.set(499,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.499"),He.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.503"),oe=new v.PR("COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.CHANGE","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.CHANGED",He)}else if(E&&E.rank>S.rank||C.L.config.currentPaymentProvider===c.OHy.Stripe&&we&&we.rank>S.rank){const He=new Map;He.set(0,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.OTHER"),He.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.401"),He.set(499,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.499"),He.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.503"),oe=new v.PR("COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.CHANGE","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.CHANGED",He)}const ue=Le||"assets/images/subscriptions/subscription-0.svg",Ge=Be&&Be.length>0?Be.map(He=>He.translations[$]).join(", "):S.translations[$]+(pe?", "+this.translate.instant("COMMON.FORM.SUBSCRIPTIONS.PRODUCT_UPDATE"):""),ce=Be&&Be.length>0?Be.reduce((He,at)=>He+at.price,0):S.price,Me=`${ce} ${this.formatCurrencyNamePipe.transform(S.currency)}/${this.translate.instant(1===S.months?"CLIENT.ONE_PAGE.MONTH":"CLIENT.ONE_PAGE.YEAR")}`,he=Ke&&Ke===c.di5.Standard?Be&&Be.length>0?Be.every(He=>He.netPrice)?Be.reduce((He,at)=>He+at.netPrice,0):null:S.netPrice?S.netPrice:null:null,Ye=Re===c.$om.Downgrade||ve;this.choosePaymentModal(Ne,oe,this.translate.instant("CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.AMOUNT_"+(1===S.months?"MONTHLY":"ANNUALLY"),{amount:ce,currency:this.formatCurrencyNamePipe.transform(S.currency)}),ue,Ge,Me,"CLIENT.PROFILE.PAYMENT.CHOOSEN_SUBSCRIPTION",Be&&Be.length>0?r.Oz.SUBSCRIPTION_CONTRACT:r.Oz.SUBSCRIPTION,He=>{const at=_e.K.optimalModalWidthPercentageBasedOnWindowSize(0);this.nzModal.success(!pe||Be&&0!==Be.length?{nzTitle:Be&&Be.length>0?this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.SUCCESS.START_TITLE_MODULE",{planName:Be.map(me=>me.translations[$]).join(", ")}):this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.SUCCESS.START_TITLE",{planName:S.translations[$]}),nzOkText:this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.SUCCESS.CONTINUE"),nzCancelText:this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.SUCCESS.CANCEL"),nzWidth:at.width,nzClassName:at.class,nzOnCancel:()=>{this.nzModal.closeAll()},nzOnOk:()=>{this.nzModal.closeAll(),this.routerService.routeToContractCreate()}}:{nzTitle:this.translate.instant(Re===c.$om.Downgrade?"CLIENT.PROFILE.SUBSCRIPTIONS.SUCCESS.DOWNGRADE_TITLE":"CLIENT.PROFILE.SUBSCRIPTIONS.SUCCESS.UPGRADE_TITLE",{lastPlan:E.translations[$],newPlan:S.translations[$]}),nzContent:this.translate.instant(Re===c.$om.Downgrade?"CLIENT.PROFILE.SUBSCRIPTIONS.SUCCESS.DOWNGRADE_CONTENT":"CLIENT.PROFILE.SUBSCRIPTIONS.SUCCESS.UPGRADE_CONTENT",{lastPlan:E.translations[$],newPlan:S.translations[$]}),nzOkText:this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.SUCCESS.CONTINUE"),nzWidth:at.width,nzClassName:at.class,nzCancelText:this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.SUCCESS.CANCEL"),nzOnCancel:()=>{this.nzModal.closeAll()},nzOnOk:()=>{this.nzModal.closeAll(),this.routerService.routeToContractCreate()}}),this.onePageService.sendSubscriptionChanged(He),this.eventService.quotaChanged.emit(),this.eventService.setHasOrders(!0),lt()},He=>{pe&&He&&428===He.status&&this.nzModal.info({nzTitle:this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.MESSAGES.ERROR.TAX_STATUS_CHANGE_TITLE"),nzContent:this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.MESSAGES.ERROR.TAX_STATUS_CHANGE_DESCRIPTION",{oldTaxStatus:this.translate.instant(T.buyer.valueAddedTax===c.di5.Standard?"CLIENT.PROFILE.SUBSCRIPTIONS.TAX_STATUS.STANDARD":"CLIENT.PROFILE.SUBSCRIPTIONS.TAX_STATUS.ATK"),newTaxStatus:this.translate.instant(Ke===c.di5.Standard?"CLIENT.PROFILE.SUBSCRIPTIONS.TAX_STATUS.STANDARD":"CLIENT.PROFILE.SUBSCRIPTIONS.TAX_STATUS.ATK")}),nzOkText:this.translate.instant("COMMON.OK"),nzOnOk:()=>this.nzModal.closeAll(),nzClassName:"primaryInfoIcon"}),$e(He)},qe,"CLIENT.PROFILE.PAYMENT.CHOOSE_TITLE",Ye?"CLIENT.PROFILE.PAYMENT.PAYMENT_CHOOSE_FOOTER_DELAYED":"CLIENT.PROFILE.PAYMENT.PAYMENT_CHOOSE_FOOTER",!0,pe?Re===c.$om.Downgrade?"CLIENT.PROFILE.PAYMENT.POPCONFIRM.PLAN_DOWNGRADE":"CLIENT.PROFILE.PAYMENT.POPCONFIRM.PLAN_
1230UPGRADE":"CLIENT.PROFILE.PAYMENT.POPCONFIRM.PLAN_BUY",null,S.currency,Ke,nt,he,C.L.config.currentPaymentProvider,!1,S.quota,Re,Ye)}getPlanRequest(E,T,S,$=!1,pe,Re,Ke=!1,nt,lt){let $e;return $e=$?qe=>new t.y(ve=>{if(!(C.L.config.currentPaymentProvider===c.OHy.Stripe&&E&&E.rank===S.rank&&T.providerData.status===c.uxK.STRIPE_ACTIVE&&nt&&nt.length===T.modules.length&&nt.every(we=>T.modules.includes(we.ID)))||T.providerData.subscriptionKeyAtNextPeriod===S.ID&&nt.length===T.providerData.subscriptionModulesAtNextPeriod.length&&nt.every(we=>T.providerData.subscriptionModulesAtNextPeriod.includes(we.ID))||T.providerData.cancelAtPeriodEnd||Ke)C.L.config.currentPaymentProvider===c.OHy.Stripe&&E&&E.rank===S.rank&&T.providerData.status===c.uxK.STRIPE_ACTIVE&&T.providerData.cancelAtPeriodEnd&&!Ke?this.uncancelSubscriptionStripe(T,qe).then(we=>nt&&we&&nt.length===we.modules.length&&nt.every(De=>we.modules.includes(De.ID))&&nt.length===we.providerData.subscriptionModulesAtNextPeriod.length&&nt.every(De=>we.providerData.subscriptionModulesAtNextPeriod.includes(De.ID))?ve.next(we):this.updatePlanRequest(qe,S,T,pe,Ke,Re,nt,lt).then(De=>ve.next(De),De=>ve.error(De)),we=>ve.error(we)):this.updatePlanRequest(qe,S,T,pe,Ke,Re,nt,lt).then(we=>ve.next(we),we=>ve.error(we));else{const we=this.utilService.randomString(128);this.cancelDelayedPlan(qe,T,we).then(De=>ve.next(De),De=>ve.error(De))}}):qe=>new t.y(ve=>{C.L.config.currentPaymentProvider===c.OHy.Stripe&&E&&E.rank===S.rank&&T.providerData.status===c.uxK.STRIPE_ACTIVE&&T.providerData.cancelAtPeriodEnd&&!Ke?this.uncancelSubscriptionStripe(T,qe).then(we=>nt&&we&&nt.length===we.modules.length&&nt.every(De=>we.modules.includes(De.ID))&&nt.length===we.providerData.subscriptionModulesAtNextPeriod.length&&nt.every(De=>we.providerData.subscriptionModulesAtNextPeriod.includes(De.ID))?ve.next(we):this.updatePlanRequest(qe,S,T,pe,Ke,Re,nt,lt).then(De=>ve.next(De),De=>ve.error(De)),we=>ve.error(we)):C.L.config.currentPaymentProvider===c.OHy.Stripe&&E&&E.rank===S.rank&&T.providerData.status===c.uxK.STRIPE_ACTIVE&&T.providerData.cancelAtPeriodEnd&&(Ke||lt&<.length>0)?this.updatePlanRequest(qe,S,T,pe,Ke,Re).then(we=>ve.next(we),we=>ve.error(we)):this.subscribeToPlanRequest(qe,S,nt).then(we=>ve.next(we),we=>ve.error(we))}),$e}getUpdatePrice(E,T,S,$){let pe;return pe=C.L.config.currentPaymentProvider===c.OHy.Braintree?this.clientService.postUpdatePriceBraintree(new c.b3W(S.ID,S.key,S.realStatus?S.realStatus:S.providerData.status,E.ID)).pipe((0,e.t)(this)).toPromise():C.L.config.currentPaymentProvider===c.OHy.Stripe&&S.providerData.status===c.uxK.STRIPE_ACTIVE&&S.key!==E.ID&&S.providerData.subscriptionKeyAtNextPeriod!==E.ID?T?Promise.resolve(0):this.clientService.postUpdatePriceStripe(new c.bF(S.ID,S.key,S.modules,S.realStatus?S.realStatus:S.providerData.status,E.ID,S.modules,$)).pipe((0,e.t)(this)).toPromise():C.L.config.currentPaymentProvider===c.OHy.Stripe&&S.providerData.status===c.uxK.STRIPE_ACTIVE&&S.key===E.ID&&S.providerData.subscriptionKeyAtNextPeriod!==E.ID?Promise.resolve(0):C.L.config.currentPaymentProvider!==c.OHy.Stripe||S.providerData.status===c.uxK.STRIPE_ACTIVE&&S.key!==E.ID&&S.providerData.subscriptionKeyAtNextPeriod!==E.ID?Promise.reject():Promise.resolve(null),pe}onepagecheckoutModalForPlan(E,T,S,$,pe,Re,Ke,nt,lt,$e,qe,ve,we,De,Be,Le,Ne,oe,ue,Ge,tt,pt,ce){let Me,he;if(Me=qe?at=>{let me=Re,Te=oe,_=Ne,ot=$;this.eventService.clientStatus&&this.eventService.clientStatus.valueAddedTax!==c.di5.Standard&&(Le&&(me=Le),pt&&(Te=pt),tt&&(_=tt),ce&&(ot=ce));const je=Object.keys(this.eventService.clientStatus&&this.eventService.clientStatus.valueAddedTax!==c.di5.Standard?c.b__:c.CyS),At=$e&&!je.includes($e.key);let Et;if(!(C.L.config.currentPaymentProvider===c.OHy.Stripe&&me&&me.rank===Ke.rank&&$e.providerData.status===c.uxK.STRIPE_ACTIVE&&Ne&&Ne.length===$e.modules.length&&Ne.every(gt=>$e.modules.includes(gt.ID)))||$e.providerData.subscriptionKeyAtNextPeriod===Ke.ID&&Ne.length===$e.providerData.subscriptionModulesAtNextPeriod.length&&Ne.every(gt=>$e.providerData.subscriptionModulesAtNextPeriod.includes(gt.ID))||At)if(C.L.c
1230onfig.currentPaymentProvider===c.OHy.Stripe&&me&&me.rank===Ke.rank&&$e&&$e.providerData.status===c.uxK.STRIPE_ACTIVE&&$e.providerData.cancelAtPeriodEnd&&!At)Et=this.uncancelSubscriptionStripe($e,at).then(gt=>_&>&&_.length===gt.modules.length&&_.every(Pt=>gt.modules.includes(Pt.ID))&&_.length===gt.providerData.subscriptionModulesAtNextPeriod.length&&_.every(Pt=>gt.providerData.subscriptionModulesAtNextPeriod.includes(Pt.ID))?Promise.resolve(gt):this.updatePlanRequest(at,Ke,$e,ve,At,ot,_,Te),gt=>Promise.reject(gt));else{const gt=this.utilService.randomString(128);Et=this.getUpdatePrice(me,At,$e,gt).then(Pt=>this.updatePlanRequest(at,me,$e,ve,At,Pt,_,Te),Pt=>(console.log(Pt),Promise.reject()))}else{const gt=this.utilService.randomString(128);Et=this.cancelDelayedPlan(at,$e,gt)}return Et.then(()=>we(),gt=>De(gt)),Et}:at=>{let me=Re,Te=oe,_=Ne,ot=$;this.eventService.clientStatus&&this.eventService.clientStatus.valueAddedTax!==c.di5.Standard&&(Le&&(me=Le),pt&&(Te=pt),tt&&(_=tt),ce&&(ot=ce));const je=Object.keys(this.eventService.clientStatus&&this.eventService.clientStatus.valueAddedTax!==c.di5.Standard?c.b__:c.CyS),At=$e&&!je.includes($e.key);let Et;if(C.L.config.currentPaymentProvider===c.OHy.Stripe&&me&&me.rank===Ke.rank&&$e&&$e.providerData.status===c.uxK.STRIPE_ACTIVE&&$e.providerData.cancelAtPeriodEnd&&!At)Et=this.uncancelSubscriptionStripe($e,at).then(gt=>_&>&&_.length===gt.modules.length&&_.every(Pt=>gt.modules.includes(Pt.ID))&&_.length===gt.providerData.subscriptionModulesAtNextPeriod.length&&_.every(Pt=>gt.providerData.subscriptionModulesAtNextPeriod.includes(Pt.ID))?Promise.resolve(gt):this.updatePlanRequest(at,Ke,$e,ve,At,ot,_,Te),gt=>Promise.reject(gt));else if(C.L.config.currentPaymentProvider===c.OHy.Stripe&&me&&me.rank===Ke.rank&&$e&&$e.providerData.status===c.uxK.STRIPE_ACTIVE&&$e.providerData.cancelAtPeriodEnd&&(At||oe&&oe.length>0)){const gt=this.utilService.randomString(128);Et=this.getUpdatePrice(me,At,$e,gt).then(Pt=>this.updatePlanRequest(at,me,$e,ve,At,Pt),Pt=>(console.log(Pt),Promise.reject()))}else Et=this.subscribeToPlanRequest(at,me,Ne);return Et.then(()=>we(),gt=>De(gt)),Et},qe)if(ve===c.$om.Downgrade||C.L.config.currentPaymentProvider===c.OHy.Stripe&&Be&&Be.rank>Ke.rank){const at=new Map;at.set(0,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.OTHER"),at.set(500,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.OTHER"),at.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.401"),at.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.503"),he=new v.PR("COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.CHANGE","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.CHANGED",at)}else{const at=new Map;at.set(0,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.OTHER"),at.set(500,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.OTHER"),at.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.401"),at.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.503"),he=new v.PR("COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.CHANGE","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.CHANGED",at)}else{const at=new Map;at.set(0,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.OTHER"),at.set(500,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.OTHER"),at.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.401"),at.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.503"),he=new v.PR("COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.CHANGE","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.CHANGED",at)}const Ye=ue||"assets/images/subscriptions/subscription-0.svg",He=oe&&oe.length>0?oe.map(at=>at.translations[Ge]).join(", "):Ke.translations[Ge]+(qe?", "+this.translate.instant("COMMON.FORM.SUBSCRIPTIONS.PRODUCT_UPDATE"):"");return this.onepagecheckoutModal(this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.CHECKOUT.TITLE"),E,T,S,he,"CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.AMOUNT",oe&&oe.length>0?r.Oz.SUBSCRIPTION_CONTRACT:r.Oz.SUBSCRIPTION,$,pe,Me,De,null,null,Re,
1230Ke,nt,lt,qe,$e,Le,He,Ye,ce)}onepagecheckoutModalForBundle(E,T,S,$,pe,Re,Ke,nt,lt=C.L.config.currentPaymentProvider){const qe=new Map;qe.set(0,"CLIENT.PROFILE.BUNDLES.BUTTON_STATES.ERROR.OTHER"),qe.set(440,"CLIENT.PROFILE.BUNDLES.BUTTON_STATES.ERROR.OTHER");const ve=new v.PR("CLIENT.PROFILE.BUNDLES.BUTTON_STATES.CHANGE","CLIENT.PROFILE.BUNDLES.BUTTON_STATES.CHANGING","CLIENT.PROFILE.BUNDLES.BUTTON_STATES.CHANGED",qe);return this.onepagecheckoutModal(this.translate.instant("CLIENT.PROFILE.BUNDLES.CHECKOUT.TITLE"),E,T,S,ve,"CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.AMOUNT",r.Oz.BUNDLE,$,pe,we=>this.buyBundleRequest(we,Re),nt,Re,Ke,null,null,null,null,null,null,null,null,null,null,lt)}onepagecheckoutModalForOffer(E,T,S,$,pe,Re,Ke,nt,lt){return this.onepagecheckoutModal(this.translate.instant("CLIENT.CONVERSATIONS.OFFER.MODAL_TITLE"),E,T,S,$,"CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.AMOUNT",r.Oz.OFFER,pe,Re,nt,lt,null,null,null,null,null,null,null,null,null,Ke,"assets/images/marchmaking-service.svg")}onepagecheckoutModalForMatchmaker(E,T,S,$,pe,Re,Ke,nt,lt,$e,qe){let ve;if($e)ve=new v.PR("CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.DEFAULT","CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.WORKING","CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.SUCCESS",(new Map).set(0,"CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.FAILED.OTHER").set(442,"CLIENT.HELP.MATCHMAKER_REQUEST.REQUEST_LAWYER_BUTTON_STATES.FAILED.442"));else{const Be=new Map;Be.set(0,"CLIENT.HELP.BUTTON_STATES.FAILED.OTHER"),Be.set(402,"CLIENT.HELP.BUTTON_STATES.FAILED.402"),Be.set(404,"CLIENT.HELP.BUTTON_STATES.FAILED.NOT_FOUND"),Be.set(423,"CLIENT.HELP.BUTTON_STATES.FAILED.LOCKED"),Be.set(444,"CLIENT.HELP.BUTTON_STATES.FAILED.444"),Be.set(499,"CLIENT.HELP.BUTTON_STATES.FAILED.CANCELLED"),ve=new v.PR("CLIENT.HELP.BUTTON_STATES.DEFAULT","CLIENT.HELP.BUTTON_STATES.WORKING","CLIENT.HELP.BUTTON_STATES.SUCCESS",Be)}const we=lt?F.i.apiRouteContractIcon(lt.name):"assets/images/marchmaking-service.svg",De=nt?this.translate.instant("CLIENT.HELP.PRODUCT_NAME",{c
1230ategoryName:nt.names[this.languageService.dashedServerLanguageFromLanguageKey(this.languageService.currentLanguage)]}):this.translate.instant("CLIENT.HELP.PRODUCT_NAME_DEFAULT");return this.onepagecheckoutModal(this.translate.instant("CLIENT.HELP.MODAL_TITLE"),E,T,S,ve,"CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.AMOUNT",r.Oz.LAWYER_MEDIATION,$,pe,Re,Ke,null,null,null,null,null,null,null,null,null,De,we,qe)}onepagecheckoutModalForFinalization(E,T,S,$,pe,Re,Ke,nt,lt,$e,qe=C.L.config.currentPaymentProvider){return this.onepagecheckoutModal(this.translate.instant("CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.ONEPAGE.MODAL_TITLE"),E,T,S,$,this.translate.instant("CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.CONTRACT",{contract:Ke}),r.Oz.CONTRACT,pe,Re,lt,$e,null,null,null,null,null,null,null,null,null,Ke,nt,null,qe)}onepagecheckoutModal(E,T,S,$,pe,Re,Ke,nt,lt,$e,qe,ve,we,De,Be,Le,Ne,oe,ue,Ge,tt,pt,ce,Me=C.L.config.currentPaymentProvider){if(this.eventService.hasOrders){const he=_e.K.optimalModalWidthPercentageBasedOnWindowSize(6);return this.nzModal.create({nzTitle:E,nzContent:ye.S,nzClassName:`${he.class} modal-remove-footer-border`,nzWidth:he.width,nzComponentParams:{billingMissing:T,paymentMissing:S,phoneView:$,buttonText:pe,confirmText:Re,purchaseType:Ke,price:nt,currency:lt,submitCallback:$e,toBundle:ve,bundle:we,toPlan:De,plan:Be,planInd:Le,planDuration:Ne,isUpdatePlan:oe,currPlanState:ue,currentPaymentProvider:Me,netPlan:Ge,productName:tt,productImageUrl:pt,netPrice:ce},nzOkText:null,nzCancelText:null,nzOnCancel:qe?()=>qe({status:499}):()=>{}})}{const he=_e.K.optimalModalWidthPercentageBasedOnWindowSize(10),Ye=this.nzModal.create({nzTitle:this.translate.instant("COMMON.TOS"),nzContent:ht,nzWidth:he.width,nzStyle:{"overflow-y":"hidden","overflow-x":"hidden"},nzClassName:`${he.class} footerless-modal`,nzOkText:null,nzCancelText:null,nzOnCancel:qe?()=>qe({status:499}):()=>{}});return Ye.getContentComponent().callback.subscribe(He=>{if(Ye.close(),He){const at=_e.K.optimalModalWidthPercentageBasedOnWindowSize(6);return this.nzModal.create({nzTitle:E,nzContent:ye.S,nzClassName:`${at.class} modal-remove-footer-border`,nzWidth:at.width,nzComponentParams:{billingMissing:T,paymentMissing:S,phoneView:$,buttonText:pe,confirmText:Re,purchaseType:Ke,price:nt,currency:lt,submitCallback:$e,toBundle:ve,bundle:we,toPlan:De,plan:Be,planInd:Le,planDuration:Ne,isUpdatePlan:oe,currPlanState:ue,currentPaymentProvider:Me,netPlan:Ge,productName:tt,productImageUrl:pt},nzOkText:null,nzCancelText:null,nzOnCancel:qe?()=>qe({status:499}):()=>{}})}qe&&qe({status:499})}),Ye}}updatePlanRequest(E,T,S,$,pe,Re,Ke,nt){let lt;if(C.L.config.currentPaymentProvider===c.OHy.Braintree&&E instanceof c.F62)lt=this.clientService.updatePlanPurchaseBraintree(new c.iDy(S.ID,S.key,S.realStatus?S.realStatus:S.providerData.status,T.ID,E)).pipe((0,e.t)(this)).toPromise();else if(C.L.config.currentPaymentProvider===c.OHy.Stripe&&E instanceof c.BAK){let $e;if(S.methodToken===E.paymentID)$e=Promise.resolve();else{const qe=this.utilService.randomString(128);$e=this.clientService.updatePlanMethodStripe(new c.Q6N(S.ID,S.key,S.modules,S.realStatus?S.realStatus:S.providerData.status,E.paymentID,qe)).pipe((0,e.t)(this)).toPromise()}lt=$e.then(qe=>{const ve=Ke?Ke.map(De=>De.ID):[...S.providerData.subscriptionModulesAtNextPeriod],we=[...S.modules,...ve.filter(De=>!S.modules.includes(De))];if(($===c.$om.Upgrade&&(S.key!==T.ID||!S.modules.every(De=>we.find(Be=>Be===De)))||nt&&nt.length>0&&(S.modules.length!==we.length||!S.modules.every(De=>we.find(Be=>Be===De))))&&!pe)return this.clientService.updatePlanPurchaseStripe(new c.WDA(S.ID,S.key,S.modules,S.realStatus?S.realStatus:S.providerData.status,$!==c.$om.Downgrade&&S.modules.every(De=>ve.find(Be=>Be===De))||we.length===S.modules.length&&S.modules.every(De=>we.includes(De))?T.ID:S.key,we,E.idempotencyID)).pipe((0,e.t)(this)).toPromise().then(De=>this.paymentService.paymentStripeCheck(this.clientService.updatePlanCheckStripe(new c.CHL(De.invoiceID)).pipe((0,e.t)(this))).then(Be=>{if($!==c.$om.Downgrade&&S.modules.every(Le=>ve.find(Ne=>Ne===Le))||S.key===T.ID&&we.length===S.modules.length&&S.modules.every(Le=>we.includes(Le)))return Promise.resolve(Be);{const Le=this.utilService.randomString(128);return this.clientService.updatePlanPurchaseDelayedStripe(new c.ilg(
1230Be.ID,Be.key,Be.modules,S.realStatus?S.realStatus:S.providerData.status,T.ID,ve,Le)).pipe((0,e.t)(this)).toPromise()}},Be=>Promise.reject(Be)),De=>(console.log(De),Promise.reject()));{const De=this.utilService.randomString(128);return this.clientService.updatePlanPurchaseDelayedStripe(new c.ilg(S.ID,S.key,S.modules,S.realStatus?S.realStatus:S.providerData.status,T.ID,ve,De)).pipe((0,e.t)(this)).toPromise()}},qe=>Promise.reject(qe))}else lt=Promise.reject();return lt.then($e=>{Re&&Re>0&&(this.trackingService.sendGoogleTagManagerSubscribeToPlanEvent(Re,T.currency),this.trackingService.sendPixelSubscribeEvent([T.ID],Re,T.currency))},$e=>{console.log($e)}),lt}subscribeToPlanRequest(E,T,S){let $;return $=C.L.config.currentPaymentProvider===c.OHy.Braintree&&E instanceof c.F62?this.clientService.subscribeToPlanBraintree(new c.Ju5(T.ID,E)).pipe((0,e.t)(this)).toPromise():C.L.config.currentPaymentProvider===c.OHy.Stripe&&E instanceof c.BAK?this.clientService.subscribeToPlanStripe(new c.z4K(T.ID,S.map(pe=>pe.ID),E.idempotencyID)).pipe((0,e.t)(this)).toPromise().then(pe=>E.stripe.confirmCardPayment(pe.clientSecret,{payment_method:E.paymentID}).then(Re=>!Re.error||Re.error.code&&"payment_intent_unexpected_state"===Re.error.code?this.paymentService.paymentStripeCheck(this.clientService.subscribeToPlanCheckStripe(new c.Ufe(pe.invoiceID)).pipe((0,e.t)(this))):Promise.reject(),Re=>(console.log(Re),Promise.reject())),pe=>(console.log(pe),Promise.reject())):Promise.reject(),$.then(pe=>{this.trackingService.sendGoogleTagManagerSubscribeToPlanEvent(T.price,T.currency),this.trackingService.sendPixelSubscribeEvent([T.ID],T.price,T.currency)},pe=>{console.log(pe)}),$}uncancelSubscriptionStripe(E,T){if(!E||C.L.config.currentPaymentProvider!==c.OHy.Stripe)return Promise.reject();{let S,$;if(E.methodToken===T.paymentID)S=Promise.resolve();else{const pe=this.utilService.randomString(128);S=this.clientService.updatePlanMethodStripe(new c.Q6N(E.ID,E.key,E.modules,E.realStatus?E.realStatus:E.providerData.status,T.paymentID,pe)).pipe((0,e.t)(this)).toPromise()}return $=S.then(pe=>this.clientService.uncancelPlanStripe(new c.iMq(E.ID,E.key,E.realStatus?E.realStatus:E.providerData.status,E.modules,T.idempotencyID)).pipe((0,e.t)(this)).toPromise(),pe=>Promise.reject(pe)),$.then(pe=>{this.onePageService.sendSubscriptionChanged(pe)},pe=>{}),$}}unsubscribeModal(E,T,S,$,pe,Re,Ke,nt,lt,$e,qe,ve,we){const De=_e.K.optimalModalWidthPercentageBasedOnWindowSize(4);this.nzModal.create({nzTitle:this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.UNSUBSCRIBE.TITLE",{planName:E.translations[T]}),nzContent:Ce.W,nzWidth:De.width,nzClassName:De.class,nzComponentParams:{activeSubscriptionPlan:S,activeSubscriptionState:$,currLang:T,duration:pe,hasBilling:Re,hasPayment:Ke,plans:nt,selectedPlan:E,loadedActiveSubscriptions:lt,pendingPlan:$e,relatedSubscriptionKeys:qe},nzFooter:ve,nzOnCancel:()=>{we()}})}unsubscribeModuleModal(E,T,S,$,pe){const Re=_e.K.optimalModalWidthPercentageBasedOnWindowSize();return this.nzModal.create({nzTitle:pe?this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CANCEL_TITLE",{moduleName:pe.translations[E]}):this.translate.instant("CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CANCEL_ALL_TITLE"),nzContent:T,nzWidth:Re.width,nzClassName:Re.class,nzFooter:S,nzOnCancel:()=>{$()}})}};y.\u0275fac=function(E){return new(E||y)(m.LFG(R.Sf),m.LFG(i.sK),m.LFG(D.y),m.LFG(ne.P),m.LFG(U.U2),m.LFG(et.g),m.LFG(ct.t),m.LFG(ft.c),m.LFG(Ze.e),m.LFG(Oe.f),m.LFG(M.T))},y.\u0275prov=m.Yz7({token:y,factory:y.\u0275fac}),y=(0,s.gn)([(0,e.c)()],y)},52632:(Se,k,n)=>{n.d(k,{t:()=>v});var s=n(97582),e=n(44224),o=n(5963),t=n(94650);let v=class{constructor(){this.stripeCheckRetryLimit=12e4}paymentStripeCheck(c,C=Date.now(),u=500){return c.toPromise().then(m=>m,m=>425===m.status&&Date.now()-C<this.stripeCheckRetryLimit?(0,o.H)(u).pipe((0,e.t)(this)).toPromise().then(()=>this.paymentStripeCheck(c,C,2*u)):Promise.reject(m))}};v.\u0275fac=function(c){return new(c||v)},v.\u0275prov=t.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v=(0,s.gn)([(0,e.c)()],v)},43559:(Se,k,n)=>{n.d(k,{f:()=>v,m:()=>r});var s=n(97582),e=n(44224),o=n(5963),t=n(94650);let v=class{constructor(){this.reloadDurationLimit=6e4,this.reloadStartDuration=5e3}startReload(C,u,m=this.reloadStartDuration,a=!0){u.reloadTimer&&u.reloadTimer.unsubscribe(),a&&(u.stopReload=!1);const f=C();f instanceof Promise?f.then(()=>this.scheduleReload(C,u,m),O=>this.scheduleReload(C,u,m)):this.scheduleReload(C,u,m)}scheduleReload(C,u,m=this.reloadStartDuration){if(!u.stopReload){u.reloadTimer&&u.reloadTimer.unsubscribe();const a=Math.min(m,this.reloadDurationLimit);u.reloadTimer=(0,o.H)(a).pipe((0,e.t)(this)).subscribe(()=>{this.startReload(C,u,2*a,!1)})}}stopReload(C){C.reloadTimer&&C.reloadTimer.unsubscribe(),C.reloadTimer=null,C.stopReload=!0}};v.\u0275fac=function(C){return new(C||v)},v.\u0275prov=t.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v=(0,s.gn)([(0,e.c)()],v);class r{}},61479:(Se,k,n)=>{n.d(k,{_:()=>r});var s=n(97582),e=n(44224),o=n(61135),t=n(5963),v=n(94650);let r=class{constructor(){this.width=new o.X(window.innerWidth),this.height=new o.X(window.innerHeight),this.onResize(),window.addEventListener("resize",C=>{this.timeout&&this.timeout.unsubscribe(),this.timeout=(0,t.H)(100).pipe((0,e.t)(this)).subscribe(u=>{this.onResize()})})}onResize(){this.width.next(window.innerWidth),this.height.next(window.innerHeight)}};r.\u0275fac=function(C){return new(C||r)},r.\u0275prov=v.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r=(0,s.gn)([(0,e.c)()],r)},39889:(Se,k,n)=>{n.d(k,{c:()=>u});var s=n(44569),e=n(22971),o=n(99753),t=n(36057),v=n(94650),r=n(30144),c=n(87341),C=n(35232);let u=(()=>{class m{constructor(f,O,N){this.router=f,this.themeService=O,this.localizeRoutePipe=N}paramsToString(f){return f?"?"+Object.keys(f).map(N=>`${N}=${f[N]}`).join("&"):""}includesUserType(f,O=1){const N=f.split("/").length>=2?f.split("/")[O]:f;return"client"===N||"user"===N||"lawyer"===N||"administrator"===N}hrefOrRouter(f,O){this.includesUserType(f,O)!==this.includesUserType(this.router.url)||!this.includesUserType(this.router.url)&&(f.includes(`/${o._.login}`)||f.includes(`/${o._.register}`)||f.includes(`/${s.d.forgot}`)||f.includes(`/${s.d.forgotConfirm}`))?location.href=this.localizeRoutePipe.transform(f):this.router.navigateByUrl(this.localizeRoutePipe.transform(f))}windowOpenAlternative(f){console.log(f);const O=document.createElement("a");O.setAttribute("href",f),O.setAttribute("target","_blank"),O.click()}routeForLogin(){return this.localizeRoutePipe.transform(`/${s.d.login}`)}routeToLogin(){this.router.navigateByUrl(this.routeForLogin())}routeToLoginWithForwarding(f){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.login}?forward=${f}`))}routeToLoginHref(){location.href=this.routeForLogin()}routeToPWA(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.landingPWA}`))}routeToMainPage(){this.router.navigateByUrl(this.localizeRoutePipe.transform(""))}routeToLoginNoSession(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.login}?session=invalid`))}routeToRecoveryConfirm(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.forgotConfirm}`))}routeToContract(f,O=!0){this.themeService.toggleFold(!0),this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.clientContract(f)}?isOwned=${O}`))}getRouteToContract(f,O=!0){return this.localizeRoutePipe.transform(`/${s.d.clientContract(f)}?isOwned=${O}`)}routeToContractFromCreate(f,O=!0){this.themeService.toggleFold(!0),this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.clientContract(f)}?fromCreate=true&isOwned=${O}`))}routeToContractFromCreateHref(f,O=!0){this.themeService.toggleFold(!0),location.href=this.localizeRoutePipe.transform(`/${s.d.clientContract(f)}?fromCreate=true&isOwned=${O}`)}routeToContractHref(f,O){this.themeService.toggleFold(!0),location.href=this.localizeRoutePipe.transform(`/${s.d.clientContract(f)}?isOwned=${O}`)}getRouteToContractRollback(f,O,N=!0){return this.localizeRoutePipe.transform(`/${s.d.clientContract(f)}/${O}?isOwned=${N}`)}routeToContractRollback(f,O,N=!0){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.clientContract(f)}/${O}?isOwned=${N}`))}routeToDocument(f){this.hrefOrRouter("/"+s.d.baseDocument+"/"+f.replace(/ /g,"-"))}getRouteToDocument(f){return"/"+s.d.baseDocument+"/"+f.replace(/ /g,"-")}routeToNewContractRollback(f,O,N=!0){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.clientContract(f)}/${O}?new=true&isOwned=${N}`))}routeToContractFinalizationCheck(f,O){this.themeService.toggleFold(!0),this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.clientContract(f)}?isOwned=${O}&check=true`))}routeToDeregister(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.deRegister}`))}routeToContractsSharedWithMe(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/list/shared`))}routeToRegister(f,O){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.register}${f?`/${f.toString().toLowerCase()}`:""}${O?`?mail=${O}`:""}`))}
1230routeParentWindowToRegister(f,O){window.parent.location.href=this.localizeRoutePipe.transform(`/${s.d.register}${f?`/${f.toString().toLowerCase()}`:""}${O?`?mail=${O}`:""}`)}getRouteToRegister(f,O){return`/${s.d.register}${f?`/${f.toString().toLowerCase()}`:""}${O?`?mail=${O}`:""}`}routeToRegisterHref(f,O){location.href=this.localizeRoutePipe.transform(this.getRouteToRegister(f,O))}routeToRegisterHrefForDocument(f,O){location.href=this.localizeRoutePipe.transform(`/${s.d.register}/${e.FW.Client.toString().toLowerCase()}?goal=${t.cM.DOCUMENT.toString().toLowerCase()}&document=${f}&documentTranslatedName=${encodeURIComponent(O)}`)}getRouteToRegisterHrefForDocument(f,O){return this.localizeRoutePipe.transform(`/${s.d.register}/${e.FW.Client.toString().toLowerCase()}?goal=${t.cM.DOCUMENT.toString().toLowerCase()}&document=${f}&documentTranslatedName=${encodeURIComponent(O)}`)}routeForRegisterHrefForLawyerMediation(){return`/${s.d.register}/${e.FW.Client.toString().toLowerCase()}?goal=${t.cM.LAWYER_MEDIATION.toString().toLowerCase()}`}routeToRegisterHrefForLawyerMediation(){location.href=this.localizeRoutePipe.transform(this.routeForRegisterHrefForLawyerMediation())}getRouteToRegisterHrefForLawyerMediation(){return this.localizeRoutePipe.transform(this.routeForRegisterHrefForLawyerMediation())}routeToSubscriptions(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.subscriptions}`))}routeToContractList(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.clientContractList}`))}routeToContractCreate(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.clientContractCreate}`))}getRouteToContractCreate(){return this.localizeRoutePipe.transform(`/${s.d.clientContractCreate}`)}routeToSettings(f=s.d.settingsProfileTab){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseSettings}/${f}`))}routeToSettingsHref(f=s.d.settingsProfileTab){location.href=this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseSettings}/${f}`)}routeForSettingsTab(f){return`/${s.d.baseFromUserType()}/${s.d.baseSettings}/${f}`}routeToSettingsTab(f,O){this.router.navigate([this.localizeRoutePipe.transform(this.routeForSettingsTab(f))],O?{fragment:O}:{})}getRouteToSettingsTab(f,O){return`/${s.d.baseFromUserType()}/${s.d.baseSettings}/${f}${O?"#"+O:""}`}routeToSettingsTabHref(f){location.href=this.localizeRoutePipe.transform(this.getRouteToSettingsTab(f))}routeToBundlesTabCheck(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseSettings}/${s.d.settingsBundlesTab}?check=true`))}routeToHomeByUserType(f){f===e.FW.Client?this.routeToLobby():f===e.FW.Administrator?this.routeToAdminLobby():f===e.FW.Lawyer&&this.routeToLobby()}routeToHomeByUserTypeWithHref(f){f===e.FW.Client?location.href=this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseLobby}`):f===e.FW.Administrator?location.href=this.localizeRoutePipe.transform(`/${s.d.baseAdmin}`):f===e.FW.Lawyer&&(location.href=this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseLobby}`))}routeToHomeByUserTypeRegister(f){f===e.FW.Client?location.href=this.localizeRoutePipe.transform(`/${s.d.clientContractCreate}`):f===e.FW.Administrator?location.href=this.localizeRoutePipe.transform(`/${s.d.baseAdmin}`):f===e.FW.Lawyer&&(location.href=this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseLobby}`))}sessionChangedRouting(f,O){O?f===e.FW.Client?this.hrefOrRouter("/"+s.d.baseClient+"/"+s.d.baseContract+"/create"):f===e.FW.Administrator?this.hrefOrRouter("/"+s.d.baseAdmin):f===e.FW.Lawyer&&this.hrefOrRouter("/"+s.d.baseLawyer+"/"+s.d.baseLobby):f===e.FW.Client?this.hrefOrRouter("/"+s.d.baseClient+"/"+s.d.baseLobby):f===e.FW.Administrator?this.hrefOrRouter("/"+s.d.baseAdmin):f===e.FW.Lawyer&&this.hrefOrRouter("/"+s.d.baseLawyer+"/"+s.d.baseLobby)}routeToAdminLobby(){this.hrefOrRouter("/"+s.d.baseAdmin)}routeToAdminClientManagement(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseAdmin}/client-management`))}routeToAdminLawyerManagement(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseAdmin}/lawyer-management`))}routeToAdminLobbyHref(){location.href=this.localizeRoutePipe.transform(`/${s.d.baseAdmin}`)}routeToTemplater(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.adminTemplater}`))}routeToTemplaterOpenContract(f){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.adminContract(f)}`))}routeToTemplaterWithState(f){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.adminTemplater}`),{state:f})}routeToLawyerManager(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseLawyerManager}`))}routeToFileManager(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.adminFileManager}`))}routeToLobby(){this.hrefOrRouter("/"+s.d.baseFromUserType()+"/"+s.d.baseLobby)}routeToVerificationSteps(){this.router.navigate([this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseLobby}`)],{fragment:"lawyerSteps"})}routeToForgot(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.forgot}`))}getRouteToLobby(){return`/${s.d.baseFromUserType()}/${s.d.baseLobby}`}routeForLobbyHref(){return`/${s.d.baseFromUserType()}/${s.d.baseLobby}`}routeToLobbyHref(){location.href=this.localizeRoutePipe.transform(this.getRouteToLobby())}routeToList(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseList}`))}routeToListHref(){location.href=this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseList}`)}routeToShared(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseList}/${s.d.baseShared}`))}routeToSharedHref(){location.href=this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseList}/${s.d.baseShared}`)}routeToChat(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseChat}`))}getRouteToChat(){return this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseChat}`)}routeToChatHref(){location.href=this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseChat}`)}routeToChatByID(f){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseChat}/${f}`))}routeToVideoChat(f){window.open(this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseChat}/${s.d.videoCall}/`+f),"_blank")}getRouteToVideoChat(f){return this.localizeRoutePipe.transform(`/${s.d.baseFromUserType()}/${s.d.baseChat}/${s.d.videoCall}/`+f)}routeToPaymentInformation(){this.hrefOrRouter("/"+s.d.landingPayment)}getLobbyRouteWithQuery(f){return`/${s.d.baseClient}/${s.d.baseLobby}?${f}`}getLobbyRouteWithMatchmaking(){return this.getLobbyRouteWithQuery("startMatchmaking=true")}routeToLobbyWithMatchmaking(){this.hrefOrRouter(this.getLobbyRouteWithMatchmaking())}getMatchmakerRequestRoute(f){return`/${s.d.baseClient}/${s.d.matchmakerRequest}/${f}`}
1230routeToMatchmakerRequest(f){this.hrefOrRouter(this.getMatchmakerRequestRoute(f))}routeToMatchmakerRequestHref(f){location.href=this.localizeRoutePipe.transform(this.getMatchmakerRequestRoute(f))}routeToScheduler(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseLawyer}/${s.d.scheduler}`))}routeToIntegration(){this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${s.d.baseLawyer}/${s.d.integration}`))}}return m.\u0275fac=function(f){return new(f||m)(v.LFG(r.F0),v.LFG(c.w),v.LFG(C.d))},m.\u0275prov=v.Yz7({token:m,factory:m.\u0275fac}),m})()},57222:(Se,k,n)=>{n.d(k,{xM:()=>i});var s=n(97582),e=n(94650),o=(()=>{return(M=o||(o={})).understandProfileTooltip="understandProfileTooltip",M.understandTabsetTooltip="understandTabsetTooltip",M.understandSidebarCloseTooltip="understandSidebarCloseTooltip",M.understandSidebarOpenTooltip="understandSidebarOpenTooltip",M.understandSavingTooltip="understandSavingTooltip",o;var M})(),t=(()=>{return(M=t||(t={}))[M.Get="Get"]="Get",M[M.Set="Set"]="Set",t;var M})(),r=n(44224),c=n(6947),C=n(55089),u=n(17445),m=n(67690),a=n(50211); 1231/* 1232 * @license 1233 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1234 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1235 *
1236 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1237 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1238 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1239 * trade secret or copyright law. 1240 * 1241 * Dissemination of this information or reproduction of this material is strictly forbidden 1242 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1243 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1244 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1245 * explicitly covering such access. 1246 * 1247 * The copyright notice above does not evidence any actual or intended publication or disclosure 1248 * of this source code, which includes information that is confidential and/or proprietary, 1249 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1250 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1251 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1252 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1253 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1254 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1255 * IN WHOLE OR IN PART. 1256 */ 1257/* 1258 * @license 1259 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1260 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1261 *
1262 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1263 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1264 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1265 * trade secret or copyright law. 1266 * 1267 * Dissemination of this information or reproduction of this material is strictly forbidden 1268 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1269 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1270 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1271 * explicitly covering such access. 1272 * 1273 * The copyright notice above does not evidence any actual or intended publication or disclosure 1274 * of this source code, which includes information that is confidential and/or proprietary, 1275 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1276 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1277 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1278 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1279 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1280 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1281 * IN WHOLE OR IN PART. 1282 */ 1283const O={folder:{folderMode:!1,understandDragHandleTutorial:!1,understandMovingTutorial:!1},contractListing:{currentView:"cardView",understandFolderTooltip:!1,contractRowsPerPage:30},contractCard:{contractCardsPerPage:30},tutorial:{understandTabsetTooltip:!1},sidebar:{understandSidebarTooltip:!1},matchmaker:{understandSchedulerCalendar:!1},contract:{understandSavingTooltip:!1},profile:{understandProfileTooltip:!1},version:1},N={folder:{folderMode:"boolean",understandDragHandleTutorial:"boolean",understandMovingTutorial:"boolean"},contractListing:{currentView:"string",understandFolderTooltip:"boolean",contractRowsPerPage:"number"},contractCard:{contractCardsPerPage:"number"},tutorial:{understandTabsetTooltip:"boolean"},sidebar:{understandSidebarTooltip:"boolean"},matchmaker:{understandSchedulerCalendar:"boolean"},contract:{understandSavingTooltip:"boolean"},profile:{understandProfileTooltip:"boolean"},version:"number"},L={understandSidebarOpenTooltip:"understandSidebarTooltip",understandSidebarCloseTooltip:"understandSidebarTooltip"};let i=class{constructor(R,l){if(this.clientService=R,this.userService=l,this.pref=this.cleanPrefGenerator(),this.prefCopy=(0,m.ZP)(this.pref),this.PreferenceRequestType=t,this.DeprecatedKeys=o,this.safekeepingEmitter=new e.vpe,this.firstGetUnfinished=!0,this.updateInProgress=!1,this.pingInterval=15e3,this.timeBetweenUpdates=5e3,C.K.sessionStatusChanged.pipe((0,r.t)(this)).subscribe(h=>{h||(localStorage.removeItem(c.B.remoteStorage),localStorage.removeItem(c.B.remoteStorageTemp))}),l.isLoggedIn){const h=localStorage.getItem(c.B.remoteStorage);if(h)try{this.localSafekeeping=JSON.parse(h),this.errorChecking(this.localSafekeeping)&&(this.localSafekeeping=this.cleanPrefGenerator(this.localSafekeeping))}catch(B){console.log(B),this.localSafekeeping=null}this.remoteGetSafekeeping(null,B=>{(0===B.status||B.status>=500)&&(this.pingGetServer=setInterval(()=>{this.getServerStatus(t.Get)},this.pingInterval))}),localStorage.getItem(c.B.remoteStorageTemp)&&this.getServerStatus(t.Set)}}updateStart(R,l){for(const h of Object.keys(N))N[h][R]&&(this.prefCopy[h][R]=l);this.updateInProgress=!0,this.updateHappening&&clearTimeout(this.updateHappening),this.updateHappening=setTimeout(()=>this.updateEnd(),this.timeBetweenUpdates)}getter(R){for(const l of Object.keys(N))if(N[l][R])return this.updateInProgress&&this.prefCopy&&null!=this.prefCopy[l][R]?this.prefCopy[l][R]:!this.firstGetUnfinished&&this.pref&&null!=this.pref[l][R]?this.pref[l][R]:this.localSafekeeping&&null!=this.localSafekeeping[l][R]?this.localSafekeeping[l][R]:O[l][R]}endServerPinging(){this.pingGetServer&&(clearInterval(this.pingGetServer),this.pingGetServer=null)}getServerStatus(R){this.clientService.getServerStatus().pipe((0,r.t)(this)).toPromise().then(()=>
1283{if(R===t.Get)this.remoteGetSafekeeping(()=>{this.endServerPinging()},l=>{404===l.status&&this.endServerPinging()});else{const l=JSON.parse(localStorage.getItem(c.B.remoteStorageTemp));if(l){const h=JSON.parse(l.data);this.remoteSetSafekeeping(h,l.updated,()=>{this.endServerPinging(),localStorage.removeItem(c.B.remoteStorageTemp)},D=>{409===D.status&&(this.endServerPinging(),localStorage.removeItem(c.B.remoteStorageTemp))})}}})}updateEnd(){this.remoteSetSafekeeping(this.prefCopy,null,()=>{clearTimeout(this.updateHappening),this.updateHappening=null,this.updateInProgress=!1})}handleOldData(){let R=!1;Object.keys(o).forEach(l=>{const h=localStorage.getItem(l);h&&(R=!0,Object.keys(N).map(D=>{N[D]&&N[D][l]&&(L[l]?this.prefCopy[D][L[l]]=h:this.prefCopy[D][l]=h)}))}),R&&this.remoteSetSafekeeping(this.prefCopy,null,()=>{Object.keys(o).forEach(l=>{localStorage.removeItem(l)})})}errorChecking(R){for(const l of Object.keys(N))if("version"!==l){if(!R[l])return!0;if(Object.keys(N[l]).filter(h=>void 0===R[l][h]||typeof R[l][h]!==N[l][h]&&null!==R[l][h]).length>0)return!0}return!1}cleanPrefGenerator(R){const l=(0,m.ZP)(O);return R&&Object.keys(N).map(h=>{Object.keys(N[h]).map(D=>{R[h]&&null!=R[h][D]&&typeof R[h][D]===N[h][D]&&(l[h][D]=R[h][D])})}),l}initialise(R){try{this.prefCopy=JSON.parse(R),this.errorChecking(this.prefCopy)&&(this.prefCopy=this.cleanPrefGenerator(this.prefCopy))}catch(l){return console.log(l),this.prefCopy=(0,m.ZP)(this.pref),!1}return!0}remoteSetSafekeeping(R,l,h,D){return this.clientService.setSafekeeping(R,l||(this.safekeeping?this.safekeeping.updated:Date.now())).pipe((0,r.t)(this)).toPromise().then(B=>(null!=B.data&&(this.safekeeping=B,this.pref=JSON.parse(this.safekeeping.data),this.prefCopy=(0,m.ZP)(this.pref),localStorage.setItem(c.B.remoteStorage,B.data)),h&&h(B),Promise.resolve()),B=>(console.log(B),409===B.status&&this.remoteGetSafekeeping(),(0===B.status||B.status>=500)&&(localStorage.setItem(c.B.remoteStorageTemp,JSON.stringify({data:JSON.stringify(R),updated:this.safekeeping?this.safekeeping.updated:Date.now()})),this.pingSetServer&&(this.pingSetServer.unsubscribe(),this.pingSetServer=null),this.pingSetServer=(0,u.F)(this.pingInterval).pipe((0,r.t)(this)).subscribe(()=>{this.getServerStatus(t.Set)})),!this.firstGetUnfinished&&this.safekeeping.data&&(this.prefCopy=(0,m.ZP)(this.pref)),D&&D(B),Promise.reject(B)))}remoteGetSafekeeping(R,l){return this.clientService.getSafekeeping().pipe((0,r.t)(this)).toPromise().then(h=>(h&&h.updated&&(this.safekeeping=h,this.endServerPinging(),this.initialise(h.data)&&(localStorage.setItem(c.B.remoteStorage,h.data),this.pref=(0,m.ZP)(this.prefCopy),this.firstGetUnfinished&&(this.firstGetUnfinished=!1,this.safekeepingEmitter.emit(!0)))),R&&R(h),Promise.resolve()),h=>{console.log(h),404===h.status&&(this.endServerPinging(),this.handleOldData()),l&&l(h)})}};i.\u0275fac=function(R){return new(R||i)(e.LFG(a.y),e.LFG(C.K))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i=(0,s.gn)([(0,r.c)()],i)},69872:(Se,k,n)=>{n.d(k,{G:()=>ft});var s=n(94650),e=n(71997),o=n(36057),t=n(71667),v=n(36416),r=n(12342),c=n(59756),C=n(62641),u=n(76080),m=n(32722),a=n(28115),f=n(97582),O=n(24006),N=n(44224),L=n(44569),i=n(5111),M=n(35882),R=n(29358),l=n(37623),h=n(92961),D=n(25156),B=n(50211),K=n(87689),b=n(3674),w=n(32925),X=n(81664),Y=n(36895),Z=n(66616),G=n(47044),Q=n(21811),V=n(834),se=n(73679),xe=n(36704),Ee=n(46581),re=n(14685),le=n(69287),q=n(45144);const fe=function(Ze,Oe){return{start:Ze,end:Oe}};function de(Ze,Oe){if(1&Ze&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"date"),s.ALo(4,"date"),s.qZA()),2&Ze){const y=s.oxw(2);s.xp6(1),s.hij(" ",s.xi3(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.UPDATE.SUB_TITLE",s.WLB(10,fe,s.xi3(3,4,y.updateStart,"yyyy.MM.dd. HH:mm"),s.xi3(4,7,y.updateEnd,"yyyy.MM.dd. HH:mm")))," ")}}function it(Ze,Oe){1&Ze&&s._UZ(0,"div")}function Ve(Ze,Oe){1&Ze&&(s.TgZ(0,"div",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.ERROR.OTHER")," "))}function W(Ze,Oe){1&Ze&&(s.TgZ(0,"div",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.ERROR.DELETE")," "))}function ee(Ze,Oe){if(1&Ze){const y=s.EpF();
1283s.TgZ(0,"app-multi-state-button",22),s.NdJ("click",function(){s.CHM(y);const E=s.oxw(2);return s.KtG(E.deleteScheduleWithButton())}),s.qZA()}if(2&Ze){const y=s.oxw(2);s.Q6J("nzType","default")("runFunction",y.deleteScheduleFunction)("nzTextKeys",y.deleteScheduleText)}}function te(Ze,Oe){if(1&Ze){const y=s.EpF();s.TgZ(0,"div",3),s.YNc(1,de,5,13,"span",4),s.TgZ(2,"div",5)(3,"form",6),s.NdJ("keydown.enter",function(){s.CHM(y);const E=s.oxw();return s.KtG(E.saveScheduleWithButton())}),s.TgZ(4,"nz-form-item")(5,"nz-form-label",7),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"nz-form-control")(9,"nz-date-picker",8),s.NdJ("ngModelChange",function(E){s.CHM(y);const T=s.oxw();return s.KtG(T.startDateChanged(E))}),s.ALo(10,"translate"),s.ALo(11,"as"),s.qZA()(),s.TgZ(12,"nz-form-control",9)(13,"nz-time-picker",10),s.NdJ("nzPopoverVisible",function(){return!0})("ngModelChange",function(){s.CHM(y);const E=s.oxw();return s.KtG(E.checkPotentialMergedEventsExceedsMaxIntervalLength(!0))})("nzOpenChange",function(){s.CHM(y);const E=s.oxw();return s.KtG(E.startTimeChanged())}),s.ALo(14,"translate"),s.ALo(15,"translate"),s.ALo(16,"as"),s.qZA()()(),s.TgZ(17,"nz-form-item")(18,"nz-form-label",11),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"nz-form-control",9)(22,"nz-date-picker",12),s.NdJ("nzPopoverVisible",function(){return!0})("ngModelChange",function(E){s.CHM(y);const T=s.oxw();return s.KtG(T.endDateChanged(E))}),s.ALo(23,"translate"),s.ALo(24,"as"),s.qZA()(),s.TgZ(25,"nz-form-control",9)(26,"nz-time-picker",10),s.NdJ("nzPopoverVisible",function(){return!0})("ngModelChange",function(){s.CHM(y);const E=s.oxw();return s.KtG(E.checkPotentialMergedEventsExceedsMaxIntervalLength(!1))})("nzOpenChange",function(){s.CHM(y);const E=s.oxw();return s.KtG(E.changeEndTime())}),s.ALo(27,"translate"),s.ALo(28,"translate"),s.ALo(29,"as"),s.qZA()()(),s.TgZ(30,"div",13),s.YNc(31,it,1,0,"div",14),s.qZA()()(),s.YNc(32,Ve,3,3,"div",15),s.YNc(33,W,3,3,"div",15),s._UZ(34,"app-matchmaker-scheduler-information-data",16),s.TgZ(35,"div",17)(36,"button",18),s.NdJ("click",function(){s.CHM(y);const E=s.oxw();return s.KtG(E.close(!1))}),s._uU(37),s.ALo(38,"translate"),s.qZA(),s.YNc(39,ee,1,3,"app-multi-state-button",19),s.TgZ(40,"app-multi-state-button",20),s.NdJ("nzPopoverVisible",function(){return!0})("click",function(){s.CHM(y);const E=s.oxw();return s.KtG(E.eventForm.valid?E.saveScheduleWithButton():E.isSaveButtonClicked())}),s.qZA()()()}if(2&Ze){const y=s.oxw(),x=s.MAs(4),E=s.MAs(2);s.xp6(1),s.Q6J("ngIf",y.isUpdate),s.xp6(2),s.Q6J("formGroup",y.eventForm),s.xp6(1),s.ekj("ant-form-item-has-error",y.submitted&&!y.eventForm.controls.startDate.valid),s.xp6(1),s.Q6J("nzLg",8)("nzMd",8)("nzSm",8)("nzXs",24),s.xp6(1),s.hij(" ",s.lcZ(7,63,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.LABEL.START")," "),s.xp6(3),s.Q6J("nzDisabledDate",y.nzDisabledDate)("nzFormat",y.V1Settings.dateFormat)("nzPlaceHolder",s.lcZ(10,65,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.PLACEHOLDER.START_DATE"))("nzShowTime",!1)("nzShowToday",!1)("formControl",s.xi3(11,67,y.eventForm.controls.startDate,y.FormControl)),s.xp6(4),s.Q6J("nzPopoverContent",s.lcZ(14,70,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.START_DATE_MISSING"))("nzPopoverTrigger",y.eventForm.controls.startDate.value?null:"click")("nzDisabled",!y.eventForm.controls.startDate.value)("nzDisabledHours",y.nzDisabledStartHours)("nzDisabledMinutes",y.nzDisabledStartMinutes)("nzDisabledSeconds",y.disabledSeconds)("nzFormat",y.V1Settings.timeFormatShort)("nzHideDisabledOptions",!0)("nzMinuteStep",y.SchedulerSettings.segmentLengthInMinutes)("nzPlaceHolder",s.lcZ(15,72,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.PLACEHOLDER.START_TIME"))("formControl",s.xi3(16,74,y.eventForm.controls.startTime,y.FormControl)),s.xp6(4),s.ekj("ant-form-item-has-error",y.submitted&&!y.eventForm.controls.endDate.valid),s.xp6(1),s.Q6J("nzLg",8)("nzMd",8)("nzSm",8)("nzXs",24),s.xp6(1),s.hij(" ",s.lcZ(20,77,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.LABEL.END")," "),s.xp6(3),s.Q6J("nzPopoverContent",x)("nzPopoverTrigger",y.eventForm.controls.startDate.value&&y.eventForm.controls.startTime.value?null:"click")("nzDisabled",!y.eventForm.controls.startDate.value||!y.eventForm.controls.startTime.value)("nzDisabledDate",y.nzDisableEndDateAfterStartDateSelected)("nzFormat",y.V1Settings.dateFormat)("nzPlaceHolder",s.lcZ(23,79,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.PLACEHOLDER.END_DATE"))("nzShowTime",!1)("nzShowToday",!1)("formControl",s.xi3(24,81,y.eventForm.controls.endDate,y.FormControl)),s.xp6(4),s.Q6J("nzPopoverContent",y.isDisabledHoursFull?s.lcZ(27,84,"LAWYER.SCHEDULER.MESSAGES.OVERLAP.TITLE"):x)("nzPopoverTrigger",y.isDisabledHoursFull?"hover":y.eventForm.controls.startDate.value&&y.eventForm.controls.startTime.value?null:"click")("nzDisabled",y.isDisabledHoursFull||!y.eventForm.controls.startTime.value||!y.eventForm.controls.endDate.value)("nzDisabledHours",y.nzDisabledEndHours)("nzDisabledMinutes",y.nzDisabledEndMinutes)("nzDisabledSeconds",y.disabledSeconds)("nzFormat",y.V1Settings.timeFormatShort)("nzHideDisabledOptions",!0)("nzMinuteStep",y.SchedulerSettings.segmentLengthInMinutes)("nzPlaceHolder",s.lcZ(28,86,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.PLACEHOLDER.END_TIME"))("formControl",s.xi3(29,88,y.eventForm.controls.endTime,y.FormControl)),s.xp6(5),s.Q6J("ngTemplateOutlet",E),s.xp6(1),s.Q6J("ngIf",y.errorOccurred),s.xp6(1),s.Q6J("ngIf",y.deleteErrorOccurred),s.xp6(4),s.hij(" ",s.lcZ(38,91,"COMMON.CANCEL")," "),s.xp6(2),s.Q6J("ngIf",y.isUpdate),s.xp6(1),s.Q6J("nzPopoverContent",E)("nzPopoverTrigger",y.eventForm.valid?null:"click")("nzType",y.eventForm.valid?"primary":"default")("runFunction",y.saveScheduleFunction)("nzTextKeys",y.saveScheduleText)}}function Pe(Ze,Oe){1&Ze&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.END_BEFORE_START")," "))}const Ue=function(Ze){return{hours:Ze}};function Ae(Ze,Oe){if(1&Ze&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze){const y=s.oxw(2);s.xp6(1),s.hij(" ",s.xi3(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.MIN_DIFFERENCE",s.VKq(4,Ue,y.backendConfiguration.minIntervalLength/y.SchedulerSettings.oneHoursLengthInMilliseconds))," ")}}function Fe(Ze,Oe){if(1&Ze&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze){const y=s.oxw(2);s.xp6(1),s.hij(" ",s.xi3(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.MAX_DIFFERENCE",s.VKq(4,Ue,y.backendConfiguration.maxIntervalLength/y.SchedulerSettings.oneHoursLengthInMilliseconds))," ")}}function Qe(Ze,Oe){1&Ze&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.START_DATE_MISSING")," "))}function rt(Ze,Oe){1&Ze&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.START_TIME_MISSING")," "))}function Ct(Ze,Oe){1&Ze&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.END_DATE_MISSING")," "))}function ht(Ze,Oe){1&Ze&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.END_TIME_MISSING")," "))}const mt=function(Ze){return{precision:Ze}};function ye(Ze,Oe){if(1&Ze&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze){const y=s.oxw(2);s.xp6(1),s.hij(" ",s.xi3(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.START_PRECISION",s.VKq(4,mt,y.SchedulerSettings.segmentLengthInMinutes))," ")}}function Ce(Ze,Oe){if(1&Ze&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze){const y=s.oxw(2);s.xp6(1),s.hij(" ",s.xi3(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.END_PRECISION",s.VKq(4,mt,y.SchedulerSettings.segmentLengthInMinutes))," ")}}function j(Ze,Oe){1&Ze&&(s.TgZ(0,"p",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"LAWYER.SCHEDULER.MESSAGES.OVERLAP.TITLE")," "))}function _e(Ze,Oe){if(1&Ze&&(s.YNc(0,Pe,3,3,"p",4),s.YNc(1,Ae,3,6,"p",4),s.YNc(2,Fe,3,6,"p",4),s.YNc(3,Qe,3,3,"p",4),s.YNc(4,rt,3,3,"p",4),s.YNc(5,Ct,3,3,"p",4),s.YNc(6,ht,3,3,"p",4),s.YNc(7,ye,3,6,"p",4),s.YNc(8,Ce,3,6,"p",4),s.YNc(9,j,3,3,"p",23)),2&Ze){const y=s.oxw();s.Q6J("ngIf",y.eventForm.hasError("endBeforeStart")),s.xp6(1),s.Q6J("ngIf",(y.eventForm.controls.startTime.touched||y.eventForm.controls.endTime.touched||y.saveButtonClicked)&&((null==y.eventForm.controls.startTime.errors?null:y.eventForm.controls.startTime.errors.minDifference)||(null==y.eventForm.controls.endTime.errors?null:y.eventForm.controls.endTime.errors.minDifference))||y.eventForm.hasError("minDifference")),s.xp6(1),s.Q6J("ngIf",(y.eventForm.controls.startTime.touched||y.eventForm.controls.endTime.touched||y.saveButtonClicked)&&((null==y.eventForm.controls.startTime.errors?null:y.eventForm.controls.startTime.errors.maxDifference)||(null==y.eventForm.controls.endTime.errors?null:y.eventForm.controls.endTime.errors.maxDifference))||y.eventForm.hasError("maxDifference")),s.xp6(1),s.Q6J("ngIf",(y.eventForm.controls.startDate.touched||y.saveButtonClicked)&&y.eventForm.hasError("startDateMissing")),s.xp6(1),s.Q6J("ngIf",(y.eventForm.controls.startTime.touched||y.saveButtonClicked)&&y.eventForm.hasError("startTimeMissing")),s.xp6(1),s.Q6J("ngIf",(y.eventForm.controls.endDate.touched||y.saveButtonClicked)&&y.eventForm.hasError("endDateMissing")),s.xp6(1),s.Q6J("ngIf",(y.eventForm.controls.endTime.touched||y.saveButtonClicked)&&y.eventForm.hasError("endTimeMissing")),s.xp6(1),s.Q6J("ngIf",(y.eventForm.controls.startTime.touched||y.saveButtonClicked)&&y.eventForm.hasError("wrongStartTimePrecision")),s.xp6(1),s.Q6J("ngIf",(y.eventForm.controls.endTime.touched||y.saveButtonClicked)&&y.eventForm.hasError("wrongEndTimePrecision")),s.xp6(1),s.Q6J("ngIf",y.eventForm.controls.endTime.hasError("overlap"))}}function F(Ze,Oe){1&Ze&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.START_DATE_MISSING")," "))}function ne(Ze,Oe){1&Ze&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ze&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.START_TIME_MISSING")," "))}function U(Ze,Oe){if(1&Ze&&(s.YNc(0,F,3,3,"p",4),s.YNc(1,ne,3,3,"p",4)),2&Ze){const y=s.oxw();s.Q6J("ngIf",y.eventForm.hasError("startDateMissing")),s.xp6(1),s.Q6J("ngIf",y.eventForm.hasError("startTimeMissing"))}}let et=class{constructor(Oe,y,x,E,T,S,$){this.modal=Oe,this.clientService=y,this.formService=x,this.schedulerService=E,this.utilService=T,this.translate=S,this.modalService=$,this.restrictedIntervals=[],this.errorOccurred=!1,this.deleteErrorOccurred=!1,this.PageRoutes=L.d,this.submitted=!1,this.popoverVisible=!1,this.isDisabledHoursFull=!1,this.isUpdate=!1,this.saveButtonClicked=!1,this.disabledStartHoursAndMinutes=[],this.isEndDateCleared=!1,this.SchedulerSettings=v.D,this.V1Settings=i.L,this.FormControl=O.p4}ngOnInit(){!this.startDate&&this.event&&(this.isUpdate=!0,this.updateStart=this.event.start,this.updateEnd=this.event.end
1283),this.nzDisabledStartHours=()=>(this.disabledStartHoursAndMinutes=[],this.calculateDisabledHours(this.eventForm.controls.startDate.value)),this.nzDisabledStartMinutes=Oe=>this.calculateDisabledMinutesForHour(this.eventForm.controls.startDate.value,Oe),this.nzDisabledEndHours=()=>[...new Set([...this.calculateDisabledHoursForInterval(this.formService.groupToCalendarInterval(this.eventForm))])],this.nzDisabledEndMinutes=Oe=>[...new Set([...this.calculateDisabledMinutesForInterval(this.formService.groupToCalendarInterval(this.eventForm),Oe)])],this.nzDisabledDate=Oe=>this.calculateDisabledPastAndFutureDates(Oe,!0),this.nzDisableEndDateAfterStartDateSelected=Oe=>{if(this.calculateDisabledPastAndFutureDates(Oe))return!0;if(this.isEndDateCleared){if((0,M.Z)(Oe,this.eventForm.controls.startTime.value)>0||!this.isReachNextDay(this.eventForm.controls.startTime.value)&&!(0,C.Z)(Oe,this.eventForm.controls.startTime.value)||this.isReachNextDay(this.eventForm.controls.startTime.value)&&this.isNearToMidnight(this.eventForm.controls.startTime.value)&&(0,C.Z)(Oe,this.eventForm.controls.startTime.value))return!0}else{if(!this.isReachNextDay(this.eventForm.controls.startTime.value)&&(0,l.Z)(Oe,this.eventForm.controls.startDate.value)>=1)return!0;{const y=new Date(this.eventForm.controls.startTime.value.getTime());if(y.setHours(24,0,0,0),this.isReachNextDay(this.eventForm.controls.startTime.value)&&(0,l.Z)(Oe,this.eventForm.controls.startDate.value)>=2||this.schedulerService.isOverlappingWithOtherEventsOrRestrictions("",this.eventForm.controls.startTime.value,y,this.events,this.restrictedIntervals)&&!this.creatingFromTouchEvent)return!0;const x=new Date(y);if(this.isNearToMidnight(x))return!0}}return!1},this.eventForm=this.formService.calendarEventFormGroup(this.event?this.event:null,this.backendConfiguration,this.startDate?this.startDate:null,this.creatingFromTouchEvent),this.deleteScheduleText=new h.PR("LAWYER.SCHEDULER.EVENT_MODAL.DELETE.BUTTON_STATES.DEFAULT","LAWYER.SCHEDULER.EVENT_MODAL.DELETE.BUTTON_STATES.WORKING","LAWYER.SCHEDULER.EVENT_MODAL.DELETE.BUTTON_STATES.SUCCESS","LAWYER.SCHEDULER.EVENT_MODAL.DELETE.BUTTON_STATES.FAILED"),this.event?(this.events=this.events.filter(Oe=>Oe.id!==this.event.id),this.eventsPreviousState.set(`${this.event.id}`,this.event),this.saveScheduleText=new h.PR("LAWYER.SCHEDULER.EVENT_MODAL.UPDATE.BUTTON_STATES.DEFAULT","LAWYER.SCHEDULER.EVENT_MODAL.UPDATE.BUTTON_STATES.WORKING","LAWYER.SCHEDULER.EVENT_MODAL.UPDATE.BUTTON_STATES.SUCCESS","LAWYER.SCHEDULER.EVENT_MODAL.UPDATE.BUTTON_STATES.FAILED")):this.saveScheduleText=new h.PR("LAWYER.SCHEDULER.EVENT_MODAL.CREATE.BUTTON_STATES.DEFAULT","LAWYER.SCHEDULER.EVENT_MODAL.CREATE.BUTTON_STATES.WORKING","LAWYER.SCHEDULER.EVENT_MODAL.CREATE.BUTTON_STATES.SUCCESS","LAWYER.SCHEDULER.EVENT_MODAL.CREATE.BUTTON_STATES.FAILED")}calculateDisabledPastAndFutureDates(Oe,y){return(0,l.Z)(Oe,y?new Date:this.eventForm.controls.startDate.value)<0||(0,l.Z)(Oe,y?new Date:this.eventForm.controls.startDate.value)>this.backendConfiguration.presetTime/v.D.oneDaysLengthInMilliseconds}calculateDisabledHours(Oe){return new Array(24).fill(null).map((y,x)=>x).flatMap(y=>{const x=this.calculateDisabledMinutesForHour(Oe,y);return this.disabledStartHoursAndMinutes.push(x),4===x.length?[y]:[]})}calculateDisabledMinutesForHour(Oe,y){return[0,15,30,45].flatMap(x=>{const E=new Date(Oe.getTime());if(E.setSeconds(0),E.setMilliseconds(0),this.timeslotAvailableAtHourAndMinutesInStartTime(E,y,x)){const T=this.utilService.roundDateDownToNearestMinutes(Oe,1);return T.setHours(y),T.setMinutes(x),this.schedulerService.isUnallowedInterval(new o.m8(T,(0,c.Z)(T,60)),this.backendConfiguration.minIntervalLength,this.backendConfiguration.maxIntervalLength,this.events,this.restrictedIntervals)?[x]:[]}return[x]})}calculateDisabledHoursForInterval(Oe){return new Array(24).fill(null).map((y,x)=>x).flatMap(y=>4===this.calculateDisabledMinutesForInterval(Oe,y).length?[y]:[])}calculateDisabledMinutesForInterval(Oe,y){return Oe.end.setHours(y),[0,15,30,45].flatMap(x=>{const E=new Date(Oe.end.getTime());return E.setSeconds(0),E.setMilliseconds(0),this.timeslotAvailableAtHourAndMinutesInEndTime(E,y,x)?(Oe.end.setMinutes(x),this.schedulerService.isUnallowedInterval(Oe,this.backendConfiguration.minIntervalLength,this.backendConfiguration.maxIntervalLength,this.events,this.restrictedIntervals)?[x]:[]):[x]})}close(Oe){Oe?this.modal.triggerOk():this.modal.triggerCancel()}closeAfterDelete(){this.modal.result=!0,this.modal.triggerOk()}removeEvent(){let Oe;if(this.deleteErrorOccurred=!1,!this.schedulerService.isOngoingEvent(this.event))return Oe=new o.He(this.event),this.delete(Oe);this.modalService.confirmModal(this.translate.instant("LAWYER.SCHEDULER.QUESTIONS.TITLE"),this.translate.instant("LAWYER.SCHEDULER.QUESTIONS.REMOVE_ONGOING")).afterClose.asObservable().subscribe(x=>{if(x)return Oe=new o.He(this.event),this.delete(Oe)})}delete(Oe){const y=new e.Qe3(e.Uik.DELETE,this.event.start.getTime(),this.event.end.getTime()),x=this.clientService.modifySchedule([y]).pipe((0,N.t)(this)).toPromise();return x.then(()=>{this.schedulerService.schedulerEventDeleted.emit(Oe),this.closeAfterDelete()},()=>{this.deleteErrorOccurred=!0}),x}disabledSeconds(){return new Array(59).fill(null).map((Oe,y)=>y+1)}prepareModifications(){const Oe=this.formService.groupToCalendarInterval(this.eventForm),y=this.schedulerService.createEvent(this.utilService.roundDateDownToNearestMinutes(Oe.start,1),this.utilService.roundDateDownToNearestMinutes(Oe.end,1),this.event?{id:this.event.id}:{}),x=this.schedulerService.findNeighboringEvents(y,this.events);if(this.event){const E=new o.$d(y,this.eventsPreviousState.has(`${this.event.id}`)?[this.eventsPreviousState.get(`${this.event.id}`)]:[],x);return this.schedulerService.prepareSaveEvent(E,this.eventsPreviousState)}{const E=new o.XA(y,x);return this.schedulerService.prepareSaveEvent(E,this.eventsPreviousState)}}saveSchedule(){this.errorOccurred=!1,this.submitted=!0;const Oe=this.clientService.modifySchedule(this.prepareModifications()).pipe((0,N.t)(this)).toPromise();return Oe.then(y=>{this.schedulerService.scheduleChanged.emit(y.intervals),this.close(!0)},y=>{this.errorOccurred=!0}),Oe}saveScheduleWithButton(){this.saveScheduleFunction=()=>this.saveSchedule()}deleteScheduleWithButton(){this.deleteScheduleFunction=()=>this.removeEvent()}startDateChanged(Oe){this.eventForm.controls.endDate.setValue(Oe),this.changeStartTime(Oe)}endDateChanged(Oe){this.isEndDateCleared=!Oe}startTimeChanged(){if(this.changeStartTime(this.eventForm.controls.startDate.value),this.eventForm.controls.startTime.value){const Oe=new Date(this.eventForm.controls.startTime.value);Oe.setHours(24,0,0,0),this.isNearToMidnight(Oe)?(this.eventForm.controls.endDate.setValue(Oe),this.eventForm.controls.endTime.setValue(Oe)):(this.eventForm.controls.endDate.setValue(this.eventForm.controls.startTime.value),this.eventForm.controls.endTime.setValue((0,R.Z)(this.eventForm.controls.startTime.value,1)))}}changeStartTime(Oe){this.eventForm.controls.startTime.value&&Oe&&!(0,C.Z)(this.eventForm.controls.startTime.value,Oe)&&this.eventForm.controls.startTime.setValue(new Date(Oe.getFullYear(),Oe.getMonth(),Oe.getDate(),this.eventForm.controls.startTime.value.getHours(),this.eventForm.controls.startTime.value.getMinutes(),0,0))}changeEndTime(){this.eventForm.controls.endTime.value&&this.eventForm.controls.endTime.setValue(new Date(this.eventForm.controls.endTime.value.getFullYear(),this.eventForm.controls.endTime.value.getMonth(),this.eventForm.controls.endTime.value.getDate(),this.eventForm.controls.endTime.value.getHours(),this.eventForm.controls.endTime.value.getMinutes(),0,0))}isNearToMidnight(Oe){if(this.eventForm.controls.startTime.value)return Oe?.getTime()-this.eventForm.controls.startTime?.value.getTime()<=this.backendConfiguration.minIntervalLength}isReachNextDay(Oe){return Oe.getHours()>=24-this.backendConfiguration.maxIntervalLength/v.D.oneHoursLengthInMilliseconds}timeslotAvailableAtHourAndMinutesInStartTime(Oe,y,x){return!(Oe&&(Oe.setHours(y),Oe.setMinutes(x),this.schedulerService.isUnallowedPastDate(Oe)||this.schedulerService.isFoggyFutureDate(Oe)||this.schedulerService.isMidEventOrRestricted(Oe,this.events,this.restrictedIntervals)||this.schedulerService.isPreviousEventExceedsOrWillExceedMaxIntervalLengthWithMinIntervalLength(Oe,this.events)||this.schedulerService.isNextEventExceedsOrWillExceedMaxIntervalLengthWithMinIntervalLength(Oe,this.events,!1)||this.schedulerService.isPreviousPlusNextEventWillExceedMaxIntervalLength(Oe,this.events,!1)))}timeslotAvailableAtHourAndMinutesInEndTime(Oe,y,x){return!(Oe&&(Oe.setHours(y),Oe.setMinutes(x),this.schedulerService.isNextEventExceedsOrWillExceedMaxIntervalLengthWithMinIntervalLength(Oe,this.events,!0)||this.schedulerService.isNextEventWillExceedMaxIntervalLengthWithNewEventLength(this.events,new o.m8(this.formService.groupToCalendarStartDate(this.eventForm),Oe))||this.schedulerService.isPreviousEventWillExceedMaxIntervalLengthWithNewEventLength(this.events,new o.m8(this.formService.groupToCalendarStartDate(this.eventForm),Oe))))}isSaveButtonClicked(){this.saveButtonClicked=!!(this.eventForm.controls.startDate.invali
1283d||this.eventForm.controls.startTime.invalid||this.eventForm.controls.endDate.invalid||this.eventForm.controls.endTime.invalid)}checkPotentialMergedEventsExceedsMaxIntervalLength(Oe){this.schedulerService.isPreviousEventWillExceedMaxIntervalLengthWithNewEventLength(this.events,this.formService.groupToCalendarInterval(this.eventForm))||this.schedulerService.isNextEventWillExceedMaxIntervalLengthWithNewEventLength(this.events,this.formService.groupToCalendarInterval(this.eventForm))?Oe?this.eventForm.controls.startTime.setErrors({...this.eventForm.controls.startTime.errors||{},maxDifference:this.translate.instant("LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.MAX_DIFFERENCE")}):this.eventForm.controls.endTime.setErrors({...this.eventForm.controls.endTime.errors||{},maxDifference:this.translate.instant("LAWYER.SCHEDULER.EVENT_MODAL.FORM.VALIDATION.MAX_DIFFERENCE")}):(this.eventForm.controls.startTime.setErrors({...this.eventForm.controls.startTime.errors||{},maxDifference:null}),this.eventForm.controls.startTime.updateValueAndValidity(),this.eventForm.controls.endTime.setErrors({...this.eventForm.controls.endTime.errors||{},maxDifference:!1}),this.eventForm.controls.endTime.updateValueAndValidity())}};et.\u0275fac=function(Oe){return new(Oe||et)(s.Y36(D.Lf),s.Y36(B.y),s.Y36(K.o),s.Y36(ft),s.Y36(b.f),s.Y36(w.sK),s.Y36(X.Z))},et.\u0275cmp=s.Xpm({type:et,selectors:[["app-scheduler-event-modal"]],inputs:{backendConfiguration:"backendConfiguration",event:"event",events:"events",eventsPreviousState:"eventsPreviousState",restrictedIntervals:"restrictedIntervals",segmentPrecision:"segmentPrecision",startDate:"startDate",creatingFromTouchEvent:"creatingFromTouchEvent"},decls:5,vars:1,consts:[["id","scheduler-event-modal",4,"ngIf"],["disabledSaveButton",""],["disabledDateAndTimePickerPopoverTemplate",""],["id","scheduler-event-modal"],[4,"ngIf"],[1,"ant-modal-body","pb-0","text-center"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],["nzFor","startDate","nzRequired","",1,"multiLineLabel","p-0","text-left",3,"nzLg","nzMd","nzSm","nzXs"],[1,"m-b-10",3,"nzDisabledDate","nzFormat","nzPlaceHolder","nzShowTime","nzShowToday","formControl","ngModelChange"],[3,"nzErrorTip"],["nz-popover","","nzPopupClassName","nowless",3,"nzPopoverContent","nzPopoverTrigger","nzDisabled","nzDisabledHours","nzDisabledMinutes","nzDisabledSeconds","nzFormat","nzHideDisabledOptions","nzMinuteStep","nzPlaceHolder","formControl","nzPopoverVisible","ngModelChange","nzOpenChange"],["nzFor","start","nzRequired","",1,"multiLineLabel","p-0","text-left",3,"nzLg","nzMd","nzSm","nzXs"],["nz-popover","",1,"m-b-10",3,"nzPopoverContent","nzPopoverTrigger","nzDisabled","nzDisabledDate","nzFormat","nzPlaceHolder","nzShowTime","nzShowToday","formControl","nzPopoverVisible","ngModelChange"],[1,"m-b-10","color-validation-error"],[4,"ngTemplateOutlet"],["class","p-l-25 p-r-25 m-b-10 text-danger",4,"ngIf"],[1,"information"],[1,"d-flex","flex-column","align-items-center","align-items-md-end","flex-md-row","justify-content-md-end"],["nz-button","",3,"click"],["class","display-block m-l-10 m-t-10 multiLineButton","defaultIcon","delete",3,"nzType","runFunction","nzTextKeys","click",4,"ngIf"],["nz-popover","",1,"display-block","m-l-10","m-t-10","multiLineButton",3,"nzPopoverContent","nzPopoverTrigger","nzType","runFunction","nzTextKeys","nzPopoverVisible","click"],[1,"p-l-25","p-r-25","m-b-10","text-danger"],["defaultIcon","delete",1,"display-block","m-l-10","m-t-10","multiLineButton",3,"nzType","runFunction","nzTextKeys","click"],["class","m-0",4,"ngIf"],[1,"m-0"]],template:function(Oe,y){1&Oe&&(s.YNc(0,te,41,93,"div",0),s.YNc(1,_e,10,10,"ng-template",null,1,s.W1O),s.YNc(3,U,2,2,"ng-template",null,2,s.W1O)),2&Oe&&s.Q6J("ngIf",y.eventForm)},dependencies:[O._Y,O.JJ,O.JL,Y.O5,Y.tP,O.oH,O.sg,h.P4,Z.ix,G.w,Q.dQ,V.uw,se.t3,se.SK,xe.Lr,xe.Nx,xe.iK,xe.Fd,Ee.lU,re.m4,le.Z,Y.uU,w.X$,q.j],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}.information[_ngcontent-%COMP%]{font-size:12px!important} .nowless .ant-picker-now{display:none!important}.color-validation-error[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#de4436}[_nghost-%COMP%] .ant-picker-disabled, [_nghost-%COMP%] .ant-picker-disabled *{cursor:default!important}.footer-container[_ngcontent-%COMP%] .ant-modal-footer[_ngcontent-%COMP%]{padding-top:0;padding-bottom:1rem}']}),et=(0,f.gn)([(0,N.c)()],et);var ct=n(20494); 1284/* 1285 * @license 1286 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1287 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1288 *
1289 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1290 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1291 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1292 * trade secret or copyright law. 1293 * 1294 * Dissemination of this information or reproduction of this material is strictly forbidden 1295 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1296 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1297 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1298 * explicitly covering such access. 1299 * 1300 * The copyright notice above does not evidence any actual or intended publication or disclosure 1301 * of this source code, which includes information that is confidential and/or proprietary, 1302 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1303 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1304 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1305 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1306 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1307 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1308 * IN WHOLE OR IN PART. 1309 */let ft=(()=>{class Ze{constructor(y,x,E,T){this.nzModal=y,this.translate=x,this.configurationService=E,this.utilService=T,this.scheduleChanged=new s.vpe,this.schedulerEventDeleted=new s.vpe,this.configurationService.getConfiguration().then(S=>{this.configuration=S.matchmaking.schedule})}createEvent(y,x,E={}){return{id:this.utilService.randomString(16)+"-"+(new Date).getTime(),title:"",start:y,end:x,meta:{temporaryEvent:!1,loading:!1},actions:[],draggable:!0,resizable:{beforeStart:!0,afterEnd:!0},...E}}createEventByMutatingAnother(y,x){return{...y,...x}}createMergedEvent(y){const x=new Date(Math.min(...y.map(T=>T.start.getTime()))),E=new Date(Math.max(...y.map(T=>T.end.getTime())));return this.setEventLoading(this.createEvent(x,E),!1)}findNeighboringEvents(y,x){const E=x.filter(T=>T.id!==y.id&&!this.isUnallowedPastDate(T.start)&&(T.start.getTime()===y.end.getTime()||T.end.getTime()===y.start.getTime()));return E.length>0?[...E]:[]}isUnallowedInterval(y,x,E,T,S){return this.isUnallowedPastDate(y.start)||this.isFoggyFutureDate(y.end)||y.start.getTime()>y.end.getTime()||y.end.getTime()-y.start.getTime()<x||y.end.getTime()-y.start.getTime()>E||this.isOverlappingWithOtherEventsOrRestrictions("",y.start,y.end,T,S)}allowedPastTimestamp(){return(new Date).getTime()-this.configuration.postsetTime}isUnallowedPastDate(y){return!!y&&y.getTime()<this.allowedPastTimestamp()}isUnallowedMonthPastDate(y){return!(!y||(0,r.Z)(y))&&y.getTime()<this.allowedPastTimestamp()}foggyFutureTimestamp(){return this.utilService.roundDateDownToNearestMinutes(new Date((new Date).getTime()+this.configuration.presetTime),v.D.segmentLengthInMinutes).getTime()}isFoggyFutureDate(y,x=!1){return!!y&&(x?y.getTime()>=this.foggyFutureTimestamp():y.getTime()>this.foggyFutureTimestamp())}isMidEventOrRestricted(y,x,E){const T=x.find($=>y.getTime()<$.end.getTime()&&$.start.getTime()<y.getTime()),S=E.find($=>y.getTime()<$.end.getTime()&&$.start.getTime()<y.getTime());return!!T||!!S}isOngoingEvent(y){const x=(new Date).getTime();return y&&y.start.getTime()<x&&y.end.getTime()>x}isOverlappingWithOtherEventsOrRestrictions(y,x,E,T,S){const $=T.find(Re=>y!==Re.id&&x.getTime()<Re.end.getTime()&&Re.start.getTime()<E.getTime()),pe=S.find(Re=>x.getTime()<Re.end.getTime()&&Re.start.getTime()<E.getTime());return!!$||!!pe}isRestrictedSegment(y,x){return!!x.find(T=>T.start.getTime()<=y.getTime()&&T.end.getTime()>y.getTime())}getLengthOfMergingPreviousEvent(y,x){const E=x.find(S=>{const $=new Date(S.end);return $.setSeconds(0),$.setMilliseconds(0),Math.floor($.getTime()/6e4)===Math.floor(y.getTime()/6e4)});return E?E.end.getTime()-E.start.getTime():0}getLengthOfMergingNextEvent(y,x,E){const T=x.find($=>{const pe=new Date($.start);return pe.setSeconds(0),pe.setMilliseconds(0),Math.floor(pe.getTime()/6e4)===Math.floor(E?y.getTime()/6e4:(0,c.Z)(y,this.configuration.minIntervalLength/6e4).getTime()/6e4)});return T?T.end.getTime()-T.start.getTime():0}isPreviousEventExceedsOrWillExceedMaxIntervalLengthWithMinIntervalLength(y,x){const E=this.getLengthOfMergingPreviousEvent(y,x);return this.configuration.maxIntervalLength-this.configuration.minIntervalLength<E}isNextEventExceedsOrWillExceedMaxIntervalLengthWithMinIntervalLength(y,x,E){const T=this.getLengthOfMergingNextEvent(y,x,E);return this.configuration.maxIntervalLength-this.configuration.minIntervalLength<T}isPreviousEventWillExceedMaxIntervalLengthWithNewEventLength(y,x){const E=this.getLengthOfMergingPreviousEvent(x.start,y),T=x?x.end.getTime()-x.start.getTime():0;return this.configuration.maxIntervalLength<E+T}isNextEventWillExceedMaxIntervalLengthWithNewEventLength(y,x){const E=this.getLengthOfMergingNextEvent(x.end,y,!0),T=x?x.end.getTime()-x.start.getTime():0;return this.configuration.maxIntervalLength<E+T}isPreviousPlusNextEventWillExceedMaxIntervalLength(y,x,E,T){const S=this.getLengthOfMergingPreviousEvent(y,x),$=this.getLengthOfMergingNextEvent(y,x,!1),pe=T?T.end.getTime()-T.start.getTime():0;return this.configuration.maxIntervalLength-this.configuration.minIntervalLength<S+$+pe}openEventModal(y,x,E,T,S,$,pe){const Re=t.K.fixedModalWidthAboveGivenResolution(580),Ke=this.nzModal.create({nzTitle:this.translate.instant(S?"LAWYER.SCHEDULER.EVENT_MODAL.UPDATE.TITLE":"LAWYER.SCHEDULER.EVENT_MODAL.CREATE.TITLE"),nzContent:et,nzC
1309omponentParams:{backendConfiguration:y,event:S,events:E,eventsPreviousState:T,segmentPrecision:x,startDate:$,creatingFromTouchEvent:pe},nzWidth:Re.width,nzStyle:{"overflow-y":"hidden","overflow-x":"hidden",paddingBottom:0},nzClassName:"modal-remove-footer-border",nzOkText:null,nzCancelText:null,nzOnOk:()=>Ke.result,nzFooter:null});return Ke}prepareSaveEvent(y,x){if(y.type===o.YZ.CREATE){if(0===y.neighboringEvents.length)return[new e.Qe3(e.Uik.INSERT,y.event.start.getTime(),y.event.end.getTime())];{const E=this.createMergedEvent([y.event,...y.neighboringEvents]);return[...y.neighboringEvents.map(T=>new e.Qe3(e.Uik.DELETE,T.start.getTime(),T.end.getTime())),new e.Qe3(e.Uik.INSERT,E.start.getTime(),E.end.getTime())]}}if(y.type===o.YZ.DELETE)return[new e.Qe3(e.Uik.DELETE,y.event.start.getTime(),y.event.end.getTime())];if(y.type===o.YZ.UPDATE){if(x.get(`${y.event.id}`)){if(0===y.neighboringEvents.length)return[new e.Qe3(e.Uik.DELETE,x.get(`${y.event.id}`).start.getTime(),x.get(`${y.event.id}`).end.getTime()),new e.Qe3(e.Uik.INSERT,y.event.start.getTime(),y.event.end.getTime())];{const E=this.createMergedEvent([y.event,...y.neighboringEvents]);return[new e.Qe3(e.Uik.DELETE,x.get(`${y.event.id}`).start.getTime(),x.get(`${y.event.id}`).end.getTime()),...y.neighboringEvents.map(T=>new e.Qe3(e.Uik.DELETE,T.start.getTime(),T.end.getTime())),new e.Qe3(e.Uik.INSERT,E.start.getTime(),E.end.getTime())]}}return console.log(`Event [${y.event.id}] was updated, but there's no previous state. This is a tragedy, saving canceled...`),[]}}setEventLoading(y,x){return y.draggable=!x,y.resizable.beforeStart=!x,y.resizable.afterEnd=!x,y.meta.loading=x,y}calculateCustomerReceptionByDay(y){const x=new Map;return y.forEach(E=>{const T=x?.get(E.start.getDate());if((0,C.Z)(E.start,E.end))x.set(E.start.getDate(),T?T+(0,u.Z)(E.end,E.start):(0,u.Z)(E.end,E.start));else{x.set(E.start.getDate(),T?T+(0,u.Z)((0,m.Z)(E.start),E.start):(0,u.Z)((0,c.Z)((0,m.Z)(E.start),1),E.start));const S=x?.get(E.end.getDate());x.set(E.end.getDate(),S?S+(0,u.Z)(E.end,(0,a.Z)(E.end)):(0,u.Z)(E.end,(0,a.Z)(E.end)))}}),x}getTodayClientReceptionInHoursAndMinutes(y,x){const E=y.get(x.getDate()),T=Math.floor(E/60),S=E-60*T;return T>0?"\u03a3: "+T+"h "+(S?S+"m":""):S>0?"\u03a3: "+S+"m":null}startDateIsInThisDay(y,x){return(0,C.Z)(y,x)}}return Ze.\u0275fac=function(y){return new(y||Ze)(s.LFG(D.Sf),s.LFG(w.sK),s.LFG(ct.e),s.LFG(b.f))},Ze.\u0275prov=s.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})()},46061:(Se,k,n)=>{n.d(k,{a:()=>C});var s=n(22971),e=n(33436),o=n(49814),t=n(44569),v=n(94650),r=n(32925),c=n(39889);let C=(()=>{class u{constructor(a,f){this.translateService=a,this.routerService=f,this.CompanySettings=o.Q}getContractSchema(a,f,O){const N=a.map((i,M)=>({"@type":"ListItem",position:M+1,item:{"@type":"Product",url:this.routerService.getRouteToDocument(i.name),name:i.name,description:i.formDisplayElements.brief,image:this.setImageSrc(O[M].darkIcon),brand:{"@type":"Brand",name:"Szerzi"},sku:O[M].name,productID:O[M].name,offers:{"@type":"Offer",price:f.get(i.name).price,priceCurrency:"HUF",availability:"InStock",url:this.routerService.getRouteToDocument(i.name),shippingDetails:{"@type":"OfferShippingDetails",deliveryTime:{"@type":"ShippingDeliveryTime",businessDays:{"@type":"OpeningHoursSpecification",dayOfWeek:["https://schema.org/Monday","https://schema.org/Tuesday","https://schema.org/Wednesday","https://schema.org/Thursday","https://schema.org/Friday","https://schema.org/Saturday","https://schema.org/Sunday"],opens:"00:00:00",closes:"23:59:59"},handlingTime:{"@type":"QuantitativeValue",minValue:0,maxValue:0,unitCode:"d"},transitTime:{"@type":"QuantitativeValue",minValue:0,maxValue:0,unitCode:"d"}},shippingRate:{"@type":"MonetaryAmount",value:0,currency:"HUF"}}}}}));return{"@type":"ItemList","@context":"https://schema.org",name:this.translateService.instant("LANDING.PLANS.TITLE"),url:o.Q.baseWebPage+t.d.landingPricing,numberOfItems:N.length,itemListElement:N}}getPlanSchema(a){const f=a.flatMap((N,L)=>N.grossPrice?[{"@type":"ListItem",position:L+1,item:{"@type":"Product",url:o.Q.baseWebPage+t.d.landingPricing,name:this.translateService.instant(N.name),brand:{"@type":"Brand",name:"Szerzi"},offers:{"@type":"Offer",price:N.grossPrice,priceCurrency:"HUF",availability:"InStock",url:"https://szerzi.hu/pricing",shippingDetails:{"@type":"OfferShippingDetails",deliveryTime:{"@type":"ShippingDeliveryTime",businessDays:{"@type":"OpeningHoursSpecification",dayOfWeek:["https://schema.org/Monday","https://schema.org/Tuesday","https://schema.org/Wednesday","https://schema.org/Thursday","https://schema.org/Friday","https://schema.org/Saturday","https://schema.org/Sunday"],opens:"00:00:00",closes:"23:59:59"},handlingTime:{"@type":"QuantitativeValue",minValue:0,maxValue:0,unitCode:"d"},transitTime:{"@type":"QuantitativeValue",minValue:0,maxValue:0,unitCode:"d"}},shippingRate:{"@type":"MonetaryAmount",value:0,currency:"HUF"}
1309,shippingDestination:{"@type":"DefinedRegion",addressCountry:"HU",addressRegion:"All places in Hungary",postalCodeRange:{"@type":"PostalCodeRangeSpecification",postalCodeBegin:"1000",postalCodeEnd:"9999"}}}},image:{"@type":"ImageObject",url:o.Q.logo}}}]:[]);return{"@type":"ItemList","@context":"https://schema.org",name:this.translateService.instant("LANDING.PLANS.MEDIATION.DESC"),url:o.Q.baseWebPage+t.d.landingPricing,numberOfItems:f.length,itemListElement:f}}getVideoSchema(){const a=`${e.E.serverUrl}/${t.d.landingLawyerMediation}`,f=`${e.E.serverUrl}/assets/sofbox/20-minute-legal-advice.mp4`,O=`${e.E.serverUrl}/assets/sofbox/Woman-with-20 minute-legal-advice.mp4`,i=[{"@type":"VideoObject","@context":"https://schema.org",name:this.translateService.instant("LANDING.LAWYER_MEDIATION.BLOCK1.TITLE"),description:this.translateService.instant("LANDING.LAWYER_MEDIATION.BLOCK1.DESC"),url:a,duration:"PT21S",uploadDate:"2022-04-20T09:53:14+02:00",contentUrl:f,thumbnail:{"@type":"ImageObject",contentUrl:f},thumbnailUrl:f},{"@type":"VideoObject","@context":"https://schema.org",url:a,name:this.translateService.instant("LANDING.LAWYER_MEDIATION.BLOCK1.TITLE"),description:this.translateService.instant("LANDING.LAWYER_MEDIATION.BLOCK1.DESC"),duration:"PT16S",uploadDate:"2022-04-20T09:53:14+02:00",contentUrl:O,thumbnail:{"@type":"ImageObject",contentUrl:O},thumbnailUrl:O}].flatMap((R,l)=>[{"@type":"ListItem",position:l+1,item:R}]);return{"@type":"ItemList","@context":"https://schema.org",name:this.translateService.instant("LANDING.LAWYER_MEDIATION.BLOCK1.TITLE"),url:a,numberOfItems:2,itemListElement:i}}getListItemSchemaWithSzerziCards(a,f,O,N){let L=[];return a&&(L=a.flatMap((M,R)=>[{"@type":"ListItem",position:R+1,item:{"@type":"Thing",url:f,name:this.translateService.instant(M.title),image:M.icon?this.setImageSrc(M.icon):M.image?this.setImageSrc(M.image):M.img?this.setImageSrc(M.img):"",description:M.description||M.desc?this.translateService.instant(M.description||M.desc):""}}])),{"@type":"ItemList","@context":"https://schema.org",name:N?this.translateService.instant(O,{document:N}):this.translateService.instant(O),url:f,numberOfItems:L.length,itemListElement:L}}getFAQ(a,f,O){let N=a.flatMap(i=>[{"@type":"Question",name:i.question,acceptedAnswer:{"@type":"Answer",text:i.answer}}]);return{"@type":"FAQPage","@context":"https://schema.org",url:O?o.Q.baseWebPage+t.d.landingFAQ+"?tab="+O:o.Q.baseWebPage+t.d.landingFAQ,name:this.translateService.instant(f),mainEntity:N}}getOrganization(){return{"@type":"Organization","@context":"https://schema.org",address:{"@type":"PostalAddress",addressLocality:o.Q.addressLocality,postalCode:o.Q.postalCode,streetAddress:o.Q.streetAddress},contactPoint:[{"@type":"ContactPoint",telephone:o.Q.telephone,areaServed:["HU"],availableLanguage:["English","Hungarian"],contactType:"technical support"},{"@type":"ContactPoint",telephone:o.Q.telephone,areaServed:["HU"],availableLanguage:["English","Hungarian"],contactType:"customer service"},{"@type":"ContactPoint",email:o.Q.email,areaServed:["HU"],availableLanguage:["English","Hungarian"],contactType:"technical support"},{"@type":"ContactPoint",email:o.Q.email,areaServed:["HU"],availableLanguage:["English","Hungarian"],contactType:"customer service"}],duns:o.Q.duns,email:o.Q.email,foundingDate:o.Q.foundingDate,leiCode:o.Q.leiCode,location:{"@type":"PostalAddress",addressLocality:o.Q.addressLocality,postalCode:o.Q.postalCode,streetAddress:o.Q.streetAddress},logo:o.Q.logo,name:o.Q.enliven,url:o.Q.baseWebPage,slogan:this.translateService.instant("COMMON.SZERZI.SLOGAN"),telephone:o.Q.telephone,taxID:o.Q.taxID}}getContactPoint(){return{"@type":"ContactPoint","@context":"https://schema.org",areaServed:["HU"],availableLanguage:["English","Hungarian"],contactType:["customer service","technical support"],email:o.Q.email,name:o.Q.enliven,telephone:o.Q.telephone,url:o.Q.baseWebPage}}getGToS(a,f){return{"@type":"WebAPI","@context":"https://schema.org",name:this.translateService.instant(a),description:this.translateService.instant("COMMON.SZERZI.SLOGAN"),termsOfService:null!=f?o.Q.baseWebPage+t.d.landingTOS+"?tab="+f:o.Q.baseWebPage+t.d.landingTOS,provider:{"@type":"Organization",name:o.Q.enliven}}}getPP(a,f){return{"@type":"WebAPI","@context":"https://schema.org",name:this.translateService.instant(a),url:null!==f||void 0!==f?o.Q.baseWebPage+t.d.landingPrivacy+"?tab="+f:o.Q.baseWebPage+t.d.landingPrivacy,provider:{"@type":"Organization",name:o.Q.enliven}}}getHowTo(a,f,O){return{"@type":"HowTo","@context":"https://schema.org",url:a,name:this.translateService.instant(f),image:{"@type":"ImageObject",url:this.setImageSrc(O.image)}
1309,estimatedCost:{"@type":"MonetaryAmount",currency:"HUF",value:"0"},supply:[{"@type":"HowToSupply",name:O.title}],step:[{"@type":"HowToStep",url:a,name:this.translateService.instant(f),itemListElement:[{"@type":"HowToDirection",text:this.translateService.instant(O.description)}]}]}}getRegistration(a,f){let O=o.Q.baseWebPage+t.d.register,N=null;return a===s.FW.Client?(O=o.Q.baseWebPage+t.d.registerClient,N="USER.KIND.CLIENT"):a===s.FW.Lawyer&&(O=o.Q.baseWebPage+t.d.registerLawyer,N="USER.KIND.LAWYER"),{"@context":"https://schema.org/","@type":"Thing",name:N?this.translateService.instant(f,{kind:this.translateService.instant(N)}):this.translateService.instant(f),url:O,subjectOf:{"@type":"SoftwareApplication",applicationCategory:"Service",countriesSupported:["HU"],downloadUrl:o.Q.baseWebPage+t.d.landingPWA,featureList:o.Q.baseWebPage+t.d.landingFeatures,installUrl:o.Q.baseWebPage+t.d.landingPWA,operatingSystem:["Windows","IOS","Android","Linux"],screenShot:o.Q.registrationSVG}}}getLogo(){return{"@context":"https://schema.org","@type":"Brand",name:o.Q.szerzi,logo:o.Q.logo,slogan:this.translateService.instant("COMMON.SZERZI.SLOGAN")}}getImageObject(a){return{"@context":"https://schema.org","@type":"ImageObject",name:this.translateService.instant(a.alt||a.title),description:a.description?this.translateService.instant(a.description):"",contentUrl:this.setImageSrc(a.src)}}getWebSite(){let a=[{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.HEADER.FEATURES")}`,name:this.translateService.instant("LANDING.HEADER.FEATURES"),description:this.translateService.instant("LANDING.ABOUT_US.DESC"),url:o.Q.baseWebPage+t.d.landingFeatures},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.HEADER.LAWYERS")}`,name:this.translateService.instant("LANDING.HEADER.LAWYERS"),description:this.translateService.instant("LANDING.LAWYER_MEDIATION.BLOCK1.TITLE"),url:o.Q.baseWebPage+t.d.landingLawyerMediation},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.HEADER.PRICING")}`,name:this.translateService.instant("LANDING.HEADER.PRICING"),description:this.translateService.instant("LANDING.PLANS.DESC"),url:o.Q.baseWebPage+t.d.landingPricing},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.HEADER.FOR_LAWYERS")}`,name:this.translateService.instant("LANDING.HEADER.FOR_LAWYERS"),description:this.translateService.instant("LANDING.FOR_LAWYERS.BLOCK1.TITLE"),url:o.Q.baseWebPage+t.d.landingForLawyers},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.HEADER.SIGN_UP")}`,name:this.translateService.instant("LANDING.HEADER.SIGN_UP"),description:this.translateService.instant("REGISTRATION.CHOOSE"),url:o.Q.baseWebPage+t.d.register},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.HEADER.SIGN_UP")}`,name:this.translateService.instant("REGISTRATION.SIGNING_UP_AS",{kind:this.translateService.instant("USER.KIND.CLIENT")}),description:this.translateService.instant("REGISTRATION.CHOOSE"),url:o.Q.baseWebPage+t.d.registerClient},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.HEADER.SIGN_UP")}`,name:this.translateService.instant("REGISTRATION.SIGNING_UP_AS",{kind:this.translateService.instant("USER.KIND.LAWYER")}),description:this.translateService.instant("REGISTRATION.CHOOSE"),url:o.Q.baseWebPage+t.d.registerLawyer},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.HEADER.LOG_IN")}`,name:this.translateService.instant("LANDING.HEADER.LOG_IN"),description:this.translateService.instant("LOGIN.DESC"),url:o.Q.baseWebPage+t.d.login},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.FOOTER.ABOUT_US")}`,name:this.translateService.instant("LANDING.FOOTER.ABOUT_US"),description:this.translateService.instant("LANDING.ABOUT_US.TITLE"),url:o.Q.baseWebPage+t.d.landingAbout},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.DISPUTE_RESOLUTION.TITLE")}`,name:this.translateService.instant("LANDING.DISPUTE_RESOLUTION.TITLE"),url:o.Q.baseWebPage+t.d.landingDisputeResolution},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.FOOTER.IMPRESSUM")}`,name:this.translateService.instant("LANDING.FOOTER.IMPRESSUM"),url:o.Q.baseWebPage+t.d.landingImpressum},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.FOOTER.OPERATED_DESC_6")}`,name:this.translateService.instant("LANDING.FOOTER.OPERATED_DESC_6"),url:o.Q.baseWebPage+t.d.landingPrivacy},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.HEADER.CONTACT_US")}`,name:this.translateService.instant("LANDING.HEADER.CONTACT_US"),description:this.translateService.instant("LANDING.HELP.FAQ_SECTION.DESC"),url:o.Q.baseWebPage+t.d.landingContact},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.FOOTER.PAYMENT_INFORMATION")}`,name:this.translateService.instant("LANDING.FOOTER.PAYMENT_INFORMATION"),url:o.Q.baseWebPage+t.d.landingPayment},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.FOOTER.REFUND_POLICY")}`,name:this.translateService.instant("LANDING.FOOTER.REFUND_POLICY"),url:o.Q.baseWebPage+t.d.landingRefundPolicy},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.FOOTER.FAQ")}`,name:this.translateService.instant("LANDING.FOOTER.FAQ"),url:o.Q.baseWebPage+t.d.landingFAQ},{"@type":"WebPage",breadcrumb:`${this.translateService.instant("LANDING.HEADER.HOME")} > ${this.translateService.instant("LANDING.FOOTER.OPERATED_DESC_4")}`,name:this.translateService.instant("LANDING.FOOTER.OPERATED_DESC_4"),url:o.Q.baseWebPage+t.d.landingTOS}];return{"@context":"https://schema.org","@type":"WebSite",url:o.Q.szerzi,name:"Szerzi",alternateName:this.translateService.instant("COMMON.SZERZI.SLOGAN"),mainEntity:a}}getBreadcrumbList(){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,item:{"@id":o.Q.baseWebPage+t.d.landingFeatures,name:this.translateService.instant("LANDING.HEADER.FEATURES")}},{"@type":"ListItem",position:2,item:{"@id":o.Q.baseWebPage+t.d.landingLawyerMediation,name:this.translateService.instant("LANDING.HEADER.LAWYERS")}},{"@type":"ListItem",position:3,item:{"@id":o.Q.baseWebPage+t.d.landingPricing,name:this.translateService.instant("LANDING.HEADER.PRICING")}},{"@type":"ListItem",position:4,item:{"@id":o.Q.baseWebPage+t.d.landingForLawyers,name:this.translateService.instant("LANDING.HEADER.FOR_LAWYERS")}},{"@type":"ListItem",position:5,item:{"@id":o.Q.baseWebPage+t.d.register,name:this.translateService.instant("LANDING.HEADER.SIGN_UP")}},{"@type":"ListItem",position:6,item:{"@id":o.Q.baseWebPage+t.d.registerClient,name:this.translateService.instant("REGISTRATION.SIGNING_UP_AS",{kind:this.translateService.instant("USER.KIND.CLIENT")})}},{"@type":"ListItem",position:7,item:{"@id":o.Q.baseWebPage+t.d.registerLawyer,name:this.translateService.instant("REGISTRATION.SIGNING_UP_AS",{kind:this.translateService.instant("USER.KIND.LAWYER")})}},{"@type":"ListItem",position:8,item:{"@id":o.Q.baseWebPage+t.d.login,name:this.translateService.instant("LANDING.HEADER.LOG_IN")}},{"@type":"ListItem",position:9,item:{"@id":o.Q.baseWebPage+t.d.landingAbout,name:this.translateService.instant("LANDING.FOOTER.ABOUT_US")}},{"@type":"ListItem",position:10,item:{"@id":o.Q.baseWebPage+t.d.landingDisputeResolution,name:this.translateService.instant("LANDING.DISPUTE_RESOLUTION.TITLE")}},{"@type":"ListItem",position:11,item:{"@id":o.Q.baseWebPage+t.d.landingImpressum,name:this.translateService.instant("LANDING.FOOTER.IMPRESSUM")}},{"@type":"ListItem",position:12,item:{"@id":o.Q.baseWebPage+t.d.landingPrivacy,name:this.translateService.instant("LANDING.FOOTER.OPERATED_DESC_6")}},{"@type":"ListItem",position:13,item:{"@id":o.Q.baseWebPage+t.d.landingContact,name:this.translateService.instant("LANDING.HEADER.CONTACT_US")}}
1309,{"@type":"ListItem",position:14,item:{"@id":o.Q.baseWebPage+t.d.landingPayment,name:this.translateService.instant("LANDING.FOOTER.PAYMENT_INFORMATION")}},{"@type":"ListItem",position:15,item:{"@id":o.Q.baseWebPage+t.d.landingRefundPolicy,name:this.translateService.instant("LANDING.FOOTER.REFUND_POLICY")}},{"@type":"ListItem",position:16,item:{"@id":o.Q.baseWebPage+t.d.landingFAQ,name:this.translateService.instant("LANDING.FOOTER.FAQ")}},{"@type":"ListItem",position:17,item:{"@id":o.Q.baseWebPage+t.d.landingTOS,name:this.translateService.instant("LANDING.FOOTER.OPERATED_DESC_4")}}]}}setAllFAQs(a){return a.map(f=>this.setToFAQFormat("string"==typeof f.description?f:this.setMultipleDescriptionSectionToOne(f)))}setToFAQFormat(a){return{question:a.title,answer:a.description}}setMultipleDescriptionSectionToOne(a){const f=a.description.join("\n");return{title:a.title,description:f}}setImageSrc(a){return a.split("/assets")[1]?.replace(/^/,"/assets")}}return u.\u0275fac=function(a){return new(a||u)(v.LFG(r.sK),v.LFG(c.c))},u.\u0275prov=v.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()},98895:(Se,k,n)=>{n.d(k,{b:()=>e});var s=n(94650);let e=(()=>{class o{constructor(){this.bypassNextNavigationCheck=!1,this.changeInProgress=!1}setBypassNextNavigationCheck(v){this.bypassNextNavigationCheck=v}setChangeInProgress(v,r){this.changeInProgress=v,this.changeText=r}}return o.\u0275fac=function(v){return new(v||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},97895:(Se,k,n)=>{n.d(k,{e:()=>u});var s=n(92521),e=n(36895),o=n(36057),t=n(45218),v=n(6947),r=n(94650),c=n(9641),C=n(55089); 1310/* 1311 * @license 1312 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1313 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1314 *
1315 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1316 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1317 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1318 * trade secret or copyright law. 1319 * 1320 * Dissemination of this information or reproduction of this material is strictly forbidden 1321 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1322 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1323 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1324 * explicitly covering such access. 1325 * 1326 * The copyright notice above does not evidence any actual or intended publication or disclosure 1327 * of this source code, which includes information that is confidential and/or proprietary, 1328 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1329 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1330 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1331 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1332 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1333 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1334 * IN WHOLE OR IN PART. 1335 */let u=(()=>{class m{constructor(f,O,N,L,i){this.document=f,this.injector=O,this.cookieService=L,this.userService=i,this.initialized=!1,t.L.config.tracking?(this.renderer2=N.createRenderer(null,null),this.cookieService.consented()?this.initialize():this.cookieService.consentedToCookies.subscribe(M=>{M&&this.initialize()})):console.log("Tracking disabled...")}initialize(){t.L.config.tracking&&this.cookieService.consented()&&!this.initialized?(this.cookieService.consentedTo(o.vP.TAG_MANAGER)&&(localStorage.getItem(v.B.cookieConsentedForTheFirstTime)?this.initializeGoogleTagManagerAndAnalytics():this.initializeGoogleTagManagerAndAnalytics(()=>{localStorage.setItem(v.B.cookieConsentedForTheFirstTime,Date.now().toString())})),this.cookieService.consentedTo(o.vP.PIXEL)&&(this.pixelService=this.injector.get(s.l),this.pixelService.initialize(t.L.config.facebookPixel)),this.cookieService.consentedTo(o.vP.HOTJAR)&&this.initializeHotjar(),this.initialized=!0):(!t.L.config.tracking||!this.cookieService.consented())&&console.log(`Tracking disabled...\nTracking: ${t.L.config.tracking}, Consent: ${this.cookieService.consented()}`)}initializeGoogleTagManagerAndAnalytics(f){if(t.L.config.tracking&&this.cookieService.consented()&&!this.initialized&&this.cookieService.consentedTo(o.vP.TAG_MANAGER)){const O=this.document.createElement("script");O.type="text/javascript",O.async=!0,O.src=`https://www.googletagmanager.com/gtag/js?id=${t.L.config.googleTagManager}`;const N=this.document.createElement("script");N.type="text/javascript",N.innerHTML=`\n window['dataLayer'] = window['dataLayer'] || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '${t.L.config.googleTagManager}');\n window['gtag'] = gtag;\n `,this.renderer2.appendChild(this.document.head,O),this.renderer2.appendChild(this.document.head,N)}}sendGoogleTagManagerRegistrationCompleteEvent(f){t.L.config.tracking&&this.initialized&&this.cookieService.consentedTo(o.vP.TAG_MANAGER)&&(window.dataLayer=window.dataLayer||[],window.dataLayer&&(console.log("dataLayer",window.dataLayer),window.dataLayer.push({event:"registration",kind:f,user_id:this.userService.sessionUserID})))}sendGoogleTagManagerSubscribeToPlanEvent(f,O){t.L.config.tracking&&this.initialized&&this.cookieService.consentedTo(o.vP.TAG_MANAGER)&&(window.dataLayer=window.dataLayer||[],window.dataLayer&&window.dataLayer.push({event:"subscribe",value:f,currency:O.toString(),user_id:this.userService.sessionUserID,mail:this.userService.sessionMail}))}sendGoogleTagManagerPurchaseEvent(f,O){t.L.config.tracking&&this.initialized&&this.cookieService.consentedTo(o.vP.TAG_MANAGER)&&
1335(window.dataLayer=window.dataLayer||[],window.dataLayer&&window.dataLayer.push({event:"purchase",value:f,currency:O.toString(),user_id:this.userService.sessionUserID,mail:this.userService.sessionMail}))}initializeHotjar(){if(t.L.config.tracking&&this.cookieService.consented()&&!this.initialized&&this.cookieService.consentedTo(o.vP.HOTJAR)){const f=this.document.createElement("script");f.type="text/javascript",f.async=!0,f.text=`var hotjar =\n function(h,o,t,j,a,r){\n h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};\n h._hjSettings={hjid:${t.L.config.hotjar},hjsv:6};\n a=o.getElementsByTagName('head')[0];\n r=o.createElement('script');r.async=1;\n r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\n a.appendChild(r);\n }(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');\n `,this.renderer2.appendChild(this.document.body,f)}}sendPixelRegistrationCompleteEvent(f){t.L.config.tracking&&this.initialized&&this.cookieService.consentedTo(o.vP.PIXEL)&&this.pixelService.track("CompleteRegistration",{content_ids:[f.toString()],value:50,currency:"HUF"})}sendPixelSubscribeEvent(f,O,N){t.L.config.tracking&&this.initialized&&this.cookieService.consentedTo(o.vP.PIXEL)&&this.pixelService.track("Subscribe",{content_ids:f,value:O,currency:N.toString()})}sendPixelPurchaseEvent(f,O,N){t.L.config.tracking&&this.initialized&&this.cookieService.consentedTo(o.vP.PIXEL)&&this.pixelService.track("Purchase",{content_ids:f,value:O,currency:N.toString()})}appendConversionHeader(f){return f.append("User-Analytics",t.L.config.tracking&&this.initialized&&this.cookieService.consentedTo(o.vP.CONVERSION)?"enabled":"disabled").append("User-Agent",window.navigator.userAgent)}}return m.\u0275fac=function(f){return new(f||m)(r.LFG(e.K0),r.LFG(r.zs3),r.LFG(r.FYo),r.LFG(c.N),r.LFG(C.K))},m.\u0275prov=r.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},55089:(Se,k,n)=>{n.d(k,{K:()=>O});var f,s=n(97582),e=n(94650),o=n(6947),t=n(22971),v=n(44224),r=n(99753),c=n(30144),C=n(80529),u=n(25156),m=n(35232),a=n(13217); 1336/* 1337 * @license 1338 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1339 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1340 *
1341 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1342 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1343 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1344 * trade secret or copyright law. 1345 * 1346 * Dissemination of this information or reproduction of this material is strictly forbidden 1347 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1348 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1349 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1350 * explicitly covering such access. 1351 * 1352 * The copyright notice above does not evidence any actual or intended publication or disclosure 1353 * of this source code, which includes information that is confidential and/or proprietary, 1354 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1355 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1356 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1357 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1358 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1359 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1360 * IN WHOLE OR IN PART. 1361 */let O=f=class{constructor(L,i,M,R,l){this.router=L,this.http=i,this.nzModal=M,this.localizeRoutePipe=R,this.onTheFlyService=l,this.refreshSessionValues(),f.sessionStatusChanged.pipe((0,v.t)(this)).subscribe(()=>this.refreshSessionValues()),f.impersonatedStatusChanged.pipe((0,v.t)(this)).subscribe(()=>this.refreshSessionValues()),this.router&&window.addEventListener("storage",D=>this.handleLogout(D),!1)}handleLogout(L){(L.key===o.B.session||L.key===o.B.impersonated)&&(this.refreshSessionValues(),(L.key===o.B.impersonated||L.key===o.B.session&&null===L.oldValue&&null!==L.newValue)&&this.router&&this.session&&this.session.kind?((this.router.url.includes(`/${r._.login}`)||this.router.url.includes(`/${r._.register}`))&&this.router.navigateByUrl(this.localizeRoutePipe.transform(this.getHomeByUserType(this.session.kind))),f.sessionStatusChanged.emit(!0)):L.key===o.B.session&&null!==L.oldValue&&null===L.newValue&&this.router&&((this.router.url.includes(`/${r._.baseClient}`)||this.router.url.includes(`/${r._.baseLawyer}`)||this.router.url.includes(`/${r._.baseAdmin}`))&&this.router.navigateByUrl(this.localizeRoutePipe.transform(`/${r._.login}?session=invalid`)),this.nzModal&&this.nzModal.closeAll(),f.sessionStatusChanged.emit(!1))),this.onTheFlyService.authService.then(i=>i.signOut())}getHomeByUserType(L){return L===t.FW.Client?`/${r._.baseClient}/${r._.baseLobby}`:L===t.FW.Administrator?`/${r._.baseAdmin}`:L===t.FW.Lawyer?`/${r._.baseLawyer}/${r._.baseLobby}`:void 0}ngOnDestroy(){window.removeEventListener("storage",this.handleLogout,!1)}getSession(){if(this.hasImpersonation)return this.getImpersonatedSession();{const L=JSON.parse(localStorage.getItem(o.B.session));return L&&(!L.userID||!L.kind||!L.mail||!L.token)&&this.removeSession(),JSON.parse(localStorage.getItem(o.B.session))}}getImpersonatedSession(){const L=JSON.parse(localStorage.getItem(o.B.impersonated));return L&&(!L.userID||!L.kind||!L.mail||!L.token)&&this.removeImpersonatedSession(),JSON.parse(localStorage.getItem(o.B.impersonated))}getSessionType(){const L=this.getSession();return L&&L.kind?L.kind:null}getIntercomKey(){return localStorage.getItem(o.B.intercomKey)}saveSession(L){localStorage.setItem(o.B.session,JSON.stringify(L)),this.refreshSessionValues(),f.sessionStatusChanged.emit(!0)}saveImpersonatedSession(L){localStorage.setItem(o.B.impersonated,JSON.stringify(L)),this.refreshSessionValues(),f.impersonatedStatusChanged.emit(!0)}removeImpersonatedSession(){localStorage.removeItem(o.B.impersonated),this.refreshSessionValues(),f.impersonatedStatusChanged.emit(!1)}removeSession(){this.hasImpersonation&&(localStorage.removeItem(o.B.impersonated),f.impersonatedStatusChanged.emit(!1)),localStorage.removeItem(o.B.session),this.onTheFlyService.authService.then(L=>L.signOut()),this.removeIntercomKey(),this.refreshSessionValues(),f.sessionStatusChanged.emit(!1)}refreshSessionValues(){this.impersonatedSession=this.getImpersonatedSession(),this.hasImpersonation=!!this.impersonatedSession,this.session=this.getSession(),this.sessionType=this.session&&this.session.kind?this.session.kind:null,this.sessionTypeTranslationKey=this.sessionType?this.sessionType.toString().toUpperCase():"",this.sessionUserID=this.session&&this.session.userID?this.session.userID:null,this.sessionToken=this.session&&this.session.token?this.session.token:null,this.sessionMail=this.session&&this.session.mail?this.session.mail:null,this.isAdministrator=this.sessionType===t.FW.Administrator,this.isClient=this.sessionType===t.FW.Client,this.isLawyer=this.sessionType===t.FW.Lawyer,this.isLoggedIn=null!==this.sessionToken,this.intercomKey=this.getIntercomKey()}updateIntercomKey(L){this.intercomKey=L,localStorage.setItem(o.B.intercomKey,this.intercomKey)}removeIntercomKey(){this.intercomKey=null,localStorage.removeItem(o.B.intercomKey)}};O.sessionStatusChanged=new e.vpe,O.impersonatedStatusChanged=new e.vpe,O.\u0275fac=function(L){return new(L||O)(e.LFG(c.F0,8),e.LFG(C.eN,8),e.LFG(u.Sf,8),e.LFG(m.d,8),e.LFG(a.k,8))},O.\u0275prov=e.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O=f=(0,s.gn)([(0,v.c)()],O)},32046:(Se,k,n)=>{n.d(k,{h:()=>v});var s=n(97582),e=n(94650),o=n(44224),t=n(50211);let v=class{constructor(c){this.clientService=c,this.userImgs=new Map,this.userInformations=new Map,this.userImgsChanged=new e.vpe,this.userInformationsChanged=new e.vpe}
1361batchGetUserImgsByIds(c){c.forEach((C,u)=>{this.userImgs.has(C)||(this.userImgs.set(C,null),this.clientService.getImageByID(C).pipe((0,o.t)(this)).subscribe(m=>{const a=new FileReader;a.addEventListener("load",()=>{this.userImgs.set(C,a.result),this.userImgsChanged.emit(this.userImgs)},!1),m&&a.readAsDataURL(m)},m=>{this.userImgs.delete(C),this.userImgsChanged.emit(this.userImgs)}))}),this.userImgsChanged.emit(this.userImgs)}batchGetUserNamesByIds(c){return c.forEach((C,u)=>{this.userInformations.has(C)||(this.userInformations.set(C,null),this.clientService.getUserByID(C).pipe((0,o.t)(this)).subscribe(m=>(this.userInformations.set(C,m),this.userInformationsChanged.emit(this.userInformations),new Promise((a,f)=>{a(m)})),m=>{404===m.status?this.clientService.getInvitedUserByID(C).pipe((0,o.t)(this)).subscribe(a=>{this.userInformations.set(C,a),this.userInformationsChanged.emit(this.userInformations)},()=>{this.userInformations.delete(C),this.userInformationsChanged.emit(this.userInformations)}):(this.userInformations.delete(C),this.userInformationsChanged.emit(this.userInformations))}))}),this.userInformationsChanged.emit(this.userInformations),new Promise((C,u)=>{})}hasNameOrMail(c){return null==c?"":null!=c.name?c.name:null!=c.mail?c.mail:""}};v.\u0275fac=function(c){return new(c||v)(e.LFG(t.y))},v.\u0275prov=e.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v=(0,s.gn)([(0,o.c)()],v)},3674:(Se,k,n)=>{n.d(k,{f:()=>r});var s=n(36057),e=n(53231),o=n(1144),t=n(67552),v=n(94650);let r=(()=>{class c{constructor(){this.resolveObjectPath=(u,m,a)=>m.split(".").reduce((f,O)=>f?f[O]:a,u),this.setObjectPath=(u,m,a)=>m.split(".").reduce((f,O,N)=>f[O]=m.split(".").length===++N?a:f[O]||{},u)}static numberToTwoDigitString(u){return u.toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1})}addQueryParamToURL(u,m,a){const f=new URL(u,document.location.href);return f.searchParams.set(m,a),f.toString()}capitalizeText(u){return u&&u.length>0?u.charAt(0).toUpperCase()+u.slice(1):""}formatNumber(u,m=2){return u||0===u?u.toLocaleString("en-US",{maximumFractionDigits:m}).replace(/,/g," "):""}formatBankAccountNumber(u){let m="";return u?(m=(u=this.formattedBankAccountNumberToUnformattedString(u.toString())).toString().match("^([a-z]|[A-Z]){2}[0-9]{2}[0-9]*$")&&u.toString().length>=4?u.toString().replace(/(.{4})/g,"$1-"):u.toString().match("^[0-9]*/([a-z]|[A-Z]/)*$")?u.toString():u.toString().match("^[0-9]*$")&&u.toString().length>=8?u.toString().replace(/(.{8})/g,"$1-"):u.toString(),"-"===m[m.length-1]?m.substring(0,m.length-1):m):m}formattedBankAccountNumberToUnformattedString(u){return u.replace(/-/g,"").replace(/ /g,"")}formattedNumberStringToUnformattedString(u){return u.replace(/,/g,"").replace(/ /g,"")}formattedNumberToNumber(u){if(u||0===u){if(this.isNumeric(u))return+u;const m=u.replace(/,/g,"").replace(/ /g,"");return this.isNumeric(m)?+m:NaN}}formattedNumberToNumberWithinLimits(u){const m=this.formattedNumberToNumber(u);return m>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:m<Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:m}isNumeric(u){return!isNaN(+u)}makeArrayUniqueByKey(u,m){return[...new Map(u.map(a=>[a[m],a])).values()]}randomString(u){const m="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let a="";for(let f=u;f>0;--f)a+=m[Math.floor(Math.random()*m.length)];return a}roundDateDownToNearestMinutes(u,m){const a=Math.floor((0,e.Z)(u)/m)*m;return(0,o.Z)((0,t.Z)(u),a)}roundDateUpToNearestMinutes(u,m){const a=Math.ceil((0,e.Z)(u)/m)*m;return(0,o.Z)((0,t.Z)(u),a)}shortifyText(u,m,a){return u&&u.length>m?a===s.m$.REMOVE_BEGINNING?[u.substr(u.length-m,u.length)]:a===s.m$.REMOVE_MIDDLE?[u.substr(0,m),u.substr(u.length-m,u.length)]:a===s.m$.REMOVE_END?[u.substr(0,m)]:void console.log(`shortifyText received unhandled mode [${a}]`):[u]}isDeepEqual(u,m){if(u===m)return!0;if(null===u||"object"!=typeof u||null===m||"object"!=typeof m)return!1;{const a=Object.keys(u),f=Object.keys(m);return a.length===f.length&&a.every(O=>f.includes(O)&&this.isDeepEqual(u[O],m[O]))}}}return c.\u0275fac=function(u){return new(u||c)},c.\u0275prov=v.Yz7({token:c,factory:c.\u0275fac}),c})()},83092:(Se,k,n)=>{n.d(k,{R:()=>a});var s=n(94650),e=n(24006),o=n(17009); 1362/* 1363 * @license 1364 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1365 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1366 *
1367 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1368 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1369 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1370 * trade secret or copyright law. 1371 * 1372 * Dissemination of this information or reproduction of this material is strictly forbidden 1373 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1374 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1375 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1376 * explicitly covering such access. 1377 * 1378 * The copyright notice above does not evidence any actual or intended publication or disclosure 1379 * of this source code, which includes information that is confidential and/or proprietary, 1380 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1381 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1382 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1383 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1384 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1385 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1386 * IN WHOLE OR IN PART. 1387 */class t{constructor(O,N,L){this.original=O,this.parents=N,this.field=L}}var v=n(80479),r=n(5111),c=n(88183),C=n(3674),u=n(70844),m=n(8948); 1388/* 1389 * @license 1390 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1391 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1392 *
1393 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1394 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1395 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1396 * trade secret or copyright law. 1397 * 1398 * Dissemination of this information or reproduction of this material is strictly forbidden 1399 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1400 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1401 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1402 * explicitly covering such access. 1403 * 1404 * The copyright notice above does not evidence any actual or intended publication or disclosure 1405 * of this source code, which includes information that is confidential and/or proprietary, 1406 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1407 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1408 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1409 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1410 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1411 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1412 * IN WHOLE OR IN PART. 1413 */class a{constructor(O,N,L,i){this.fb=O,this.utilService=N,this.v1ValidatorService=L,this.dateHelper=i,this.renderer=new c.Renderer,this.renderer.link=function(M,R,l){return c.Renderer.prototype.link.apply(this,arguments).replace("<a",'<a target="_blank" rel="noopener noreferrer"')}}static formatBoolean(O){return null!==O?String(O):null}static formatDateField(O){return v.R.dateToString(O)}static formatDateRangeField(O){return O&&2===O.length?O.map(N=>a.formatDateField(N)):null}static formatDateTimeField(O){return v.R.dateToDateTimeString(O)}static formatDateTimeRangeField(O){return O&&2===O.length?O.map(N=>a.formatDateTimeField(N)):null}static formatNumber(O){return null!=O?O.toString():null}static formatNumberMultipliable(O){return O&&2===O.length?O.map(N=>a.formatNumber(N)):null}static formatTimeField(O){return v.R.dateToTimeString(O)}static formatTimeRangeField(O){return O&&2===O.length?O.map(N=>a.formatTimeField(N)):null}contractSelectionFormGroup(){return this.fb.group({contract:["lease agreement",e.kI.compose([e.kI.required])]},{updateOn:"blur"})}keyToParentFieldInformationArray(O){const N=O.split("|");return[new t(O,N.slice(0,N.length-1),N[N.length-1])]}variableNameToFieldName(O,N){return(N.parents&&N.parents.length>0?N.parents.map(L=>L.name+"|"+(null!=L.index?L.index+"|":"")).join(""):"")+O.variable}updateFormDataStructure(O){Object.keys(O).flatMap(L=>this.keyToParentFieldInformationArray(L)).forEach(L=>{if(L.parents.length>0){let i=O;for(const M of L.parents)i[M]||(i[M]={}),i=i[M];i[L.field]=O[L.original],delete O[L.original]}})}formatFormDataForSegment(O,N,L){return this.updateFormDataStructure(L),N.fields.forEach(i=>{const M=(N.parents&&N.parents.length>0?N.parents.map(R=>R.name+"."+(null!=R.index?R.index+".":"")).join(""):"")+i.variable;switch(i.specification.kind){case o.J3.Checkbox:case o.J3.Confirm:this.utilService.setObjectPath(L,M,a.formatBoolean(this.utilService.resolveObjectPath(L,M)));break;case o.J3.Date:this.utilService.setObjectPath(L,M,i.specification.field.range?a.formatDateRangeField(this.utilService.resolveObjectPath(L,M)):a.formatDateField(this.utilService.resolveObjectPath(L,M)));break;case o.J3.Datetime:this.utilService.setObjectPath(L,M,i.specification.field.range?a.formatDateTimeRangeField(this.utilService.resolveObjectPath(L,M)):a.formatDateTimeField(this.utilService.resolveObjectPath(L,M)));break;case o.J3.Number:if(i.specification.field.multipliable){let l=O.controls[this.variableNameToFieldName(i,N)].controls.map(h=>null!=h.value.control?h.value.control:"");l=l.filter(h=>""!==h),0===l.length&&(l=null),this.utilService.setObjectPath(L,M,a.formatNumberMultipli
1413able(l))}else{const R=a.formatNumber(this.utilService.resolveObjectPath(L,M));this.utilService.setObjectPath(L,M,""!==R?R:null)}break;case o.J3.Text:if(i.specification.field.multipliable){let l=O.controls[this.variableNameToFieldName(i,N)].controls.map(h=>null!=h.value.control?h.value.control:"");l=l.filter(h=>""!==h),0===l.length&&(l=null),this.utilService.setObjectPath(L,M,l)}else{const l=O.controls[this.variableNameToFieldName(i,N)].value;this.utilService.setObjectPath(L,M,""!==l?l:null)}break;case o.J3.Textarea:if(i.specification.field.multipliable){let l=O.controls[this.variableNameToFieldName(i,N)].controls.map(h=>null!=h.value.control?h.value.control:"");l=l.filter(h=>""!==h),0===l.length&&(l=null),this.utilService.setObjectPath(L,M,l)}else{const l=O.controls[this.variableNameToFieldName(i,N)].value;this.utilService.setObjectPath(L,M,""!==l?l:null)}break;case o.J3.Time:this.utilService.setObjectPath(L,M,i.specification.field.range?a.formatTimeRangeField(this.utilService.resolveObjectPath(L,M)):a.formatTimeField(this.utilService.resolveObjectPath(L,M)))}}),L}parseVariableValue(O,N){return O.specification.kind===o.J3.Number&&O.specification.field.multipliable||O.specification.kind===o.J3.Text&&O.specification.field.multipliable||O.specification.kind===o.J3.Textarea&&O.specification.field.multipliable||(N=O.variableValue,!O.variableValue&&O.defaultValue&&(N=O.defaultValue)),null!=N&&(O.specification.kind===o.J3.Checkbox||O.specification.kind===o.J3.Confirm)&&(N=JSON.parse(N)),null!=N&&O.specification.kind===o.J3.Time&&!O.specification.field.range&&(N=this.dateHelper.parseTime(N,r.L.timeFormat),isNaN(N)&&(N=null)),N}stepFieldFormControl(O,N){const L=[];N=this.parseVariableValue(O,N),O.specification.required&&L.push(e.kI.required);const i=this.v1ValidatorService.getValidationsByFieldType(O.specification.field,O.specification.kind);i&&L.push(this.v1ValidatorService.expressionValidator(i,O.specification.field,O.specification.kind)),O.specification.kind===o.J3.Confirm&&L.push(e.kI.requiredTrue);const M=(O.specification.kind!==o.J3.Text||O.specification.field.suggestions&&0!==O.specification.field.suggestions.length)&&(O.specification.kind!==o.J3.Textarea||O.specification.field.suggestions&&0!==O.specification.field.suggestions.length)&&O.specification.kind!==o.J3.Number?"change":"blur";return new e.p4(N??null,{validators:e.kI.compose(L),updateOn:M})}stepFieldFormGroup(O,N){return this.fb.group({control:this.stepFieldFormControl(O,N)})}stepFieldFormArrayControl(O){return this.fb.array(O.variableValue&&O.variableValue.length>0?O.variableValue.map(N=>this.stepFieldFormGroup(O,N)):[this.stepFieldFormGroup(O,null)])}stepFormGroup(O){const N={};O.fields.forEach(i=>{N[this.variableNameToFieldName(i,O)]=i.specification.kind===o.J3.Number&&i.specification.field.multipliable||i.specification.kind===o.J3.Text&&i.specification.field.multipliable||i.specification.kind===o.J3.Textarea&&i.specification.field.multipliable?this.stepFieldFormArrayControl(i):this.stepFieldFormControl(i)});const L=[];return O.integrity&&O.integrity.ensures.forEach(i=>{let M=[];const R=i.fields.reduce((l,h)=>{const D=O.fields.find(B=>h===B.variable);if(D){const B=this.variableNameToFieldName(D,O);B&&(l.push(B),M.push(D.displayElements.name))}return l},[]);L.push(this.v1ValidatorService.oneIsRequiredValidator(R,M,i.kind))}),this.fb.group(N,{validators:L})}selectStashFormGroup(O){return this.fb.group({selectedStash:[O||null,[e.kI.required]]})}groupToSelectStash(O){return O.get("selectedStash").value}deleteFieldValue(O,N){if(O.controls[N]instanceof e.p4)O.patchValue({[N]:null});else if(O.controls[N]instanceof e.vC){const L=O.controls[N];L.controls.splice(1),L.controls[0].patchValue({control:null})}}parseMarkdownText(O){return O.includes("#!html")||O.includes("#!HTML")?O.replace(new RegExp("((#!HTML)|(#!html))( )*"),""):(0,c.parseInline)(O.replace(new RegExp("((#!MD)|(#!md))( )*"),""),{renderer:this.renderer})}}a.updateFieldValueEmitter=new s.vpe,a.setDefaultFieldValueEmitter=new s.vpe,a.updateValidityEmitter=new s.vpe,a.editorDetailsEmitter=new s.vpe,a.\u0275fac=function(O){return new(O||a)(s.LFG(e.QS),s.LFG(C.f),s.LFG(u.h),s.LFG(m.mx))}
1413,a.\u0275prov=s.Yz7({token:a,factory:a.\u0275fac})},70844:(Se,k,n)=>{n.d(k,{h:()=>t});var s=n(17009),e=n(83092),o=n(94650);let t=(()=>{class v{constructor(){}getValidationsByFieldType(c,C){return c&&c.validation?c.validation:null}expressionValidator(c,C,u){return m=>{let a="";if(c.expression)try{a=new RegExp("^("+c.expression+")$","u")}catch(f){console.log("Failed to create unicode regexp!"),console.log(f),a=new RegExp("^("+c.expression+")$")}return null!=m.value&&""!==m.value&&(m.value.match&&!m.value.match(a)||!m.value.match&&u===s.J3.Date&&!C.range&&!e.R.formatDateField(m.value).match(a)||!m.value.match&&u===s.J3.Date&&C.range&&(!e.R.formatDateRangeField(m.value)||Array.isArray(e.R.formatDateRangeField(m.value))&&!e.R.formatDateRangeField(m.value).every(f=>f.match(a)))||!m.value.match&&u===s.J3.Datetime&&!C.range&&!e.R.formatDateTimeField(m.value).match(a)||!m.value.match&&u===s.J3.Datetime&&C.range&&(!e.R.formatDateTimeRangeField(m.value)||Array.isArray(e.R.formatDateTimeRangeField(m.value))&&!e.R.formatDateTimeRangeField(m.value).every(f=>f.match(a)))||!m.value.match&&u===s.J3.Time&&!C.range&&!e.R.formatTimeField(m.value).match(a)||!m.value.match&&u===s.J3.Time&&C.range&&(!e.R.formatTimeRangeField(m.value)||Array.isArray(e.R.formatTimeRangeField(m.value))&&!e.R.formatTimeRangeField(m.value).every(f=>f.match(a)))||!m.value.match&&u===s.J3.Number&&!e.R.formatNumber(m.value).match(a))?{[c.kind.toString().toLowerCase()]:!0,expression:!0,message:c.text}:null}}onlyOneIsRequiredError(c,C,u){const m=[u.toString().toLowerCase(),"oneIsRequired","requiredFields","requiredFieldNames"];let a=!0;if(C.controls[c].errors){const f=Object.keys(C.controls[c].errors);a=f.length===m.length&&m.every(O=>f.includes(O))}return a}oneIsRequiredValidator(c,C,u){return m=>{const a=c.map(O=>this.onlyOneIsRequiredError(O,m,u)),f=c.every((O,N)=>m.controls[O]&&!m.controls[O].value&&a[N]);return c.some((O,N)=>m.controls[O]&&m.controls[O].touched)&&c.forEach(O=>{m.controls[O]&&(m.controls[O].markAsTouched(),m.controls[O].markAllAsTouched())}),f?(c.forEach(O=>{m.controls[O]&&m.controls[O].setErrors({[u.toString().toLowerCase()]:!0,oneIsRequired:!0,requiredFields:c,requiredFieldNames:C})}),{[u.toString().toLowerCase()]:!0,oneIsRequired:!0,requiredFields:c,requiredFieldNames:C}):(c.forEach((O,N)=>{m.controls[O]&&a[N]&&m.controls[O].setErrors(null)}),null)}}}return v.\u0275fac=function(c){return new(c||v)},v.\u0275prov=o.Yz7({token:v,factory:v.\u0275fac}),v})()},31494:(Se,k,n)=>{n.d(k,{K:()=>t});var s=n(94650),e=n(97185),o=n(41836);let t=(()=>{class v{constructor(c,C){this.toastr=c,this.asyncMessenger=C}invalidCommunityTaxNumberToast(){this.toastr.toasts.find(C=>C.toastRef.componentInstance.relatedID&&"COMMUNITY_TAX_NUMBER_ERROR"===C.toastRef.componentInstance.relatedID)||this.asyncMessenger.errorMessage("CLIENT.PROFILE.INVOICING.COMMUNITY_TAX_NUMBER_ERROR.TITLE","CLIENT.PROFILE.INVOICING.COMMUNITY_TAX_NUMBER_ERROR.DESC",null,null,"COMMUNITY_TAX_NUMBER_ERROR")}invalidNavCredentialsToast(){this.toastr.toasts.find(C=>C.toastRef.componentInstance.relatedID&&"NAV_ERROR"===C.toastRef.componentInstance.relatedID)||this.asyncMessenger.errorMessage("COMMON.FORM.AAM_FORM.INVALID_TITLE","COMMON.FORM.AAM_FORM.INVALID_DESC",null,null,"NAV_ERROR")}invalidPhoneNumberToast(){this.toastr.toasts.find(C=>C.toastRef.componentInstance.relatedID&&"PHONE_NUMBER_ERROR"===C.toastRef.componentInstance.relatedID)||this.asyncMessenger.errorMessage("COMMON.FORM.PHONE.PHONE_NUMBER_ERROR.TITLE","COMMON.FORM.PHONE.PHONE_NUMBER_ERROR.DESC",null,null,"PHONE_NUMBER_ERROR")}}return v.\u0275fac=function(c){return new(c||v)(s.LFG(e._W),s.LFG(o.m))},v.\u0275prov=s.Yz7({token:v,factory:v.\u0275fac}),v})()},89181:(Se,k,n)=>{n.d(k,{o:()=>t});var s=n(24006),e=n(82718),o=n(94650);let t=(()=>{class v{constructor(){}equalTo(c){return C=>C.value!==c.value?{equalTo:{valid:!1}}:null}minimalMaximalDifferenceBetweenDates(c,C,u,m,a,f){return O=>{const N=O.get(c)?O.get(c).value:null,L=O.get(C)?O.get(C).value:null,i=O.get(u)?O.get(u).value:null,M=O.get(m)?O.get(m).value:null;if(!(N&&L&&i&&M))return null;const R=new Date(N.getFullYear(),N.getMonth(),N.getDate(),L.getHours(),L.getMinutes(),L.getSeconds()),l=new Date(i.getFullYear(),i.getMonth(),i.getDate(),M.getHours(),M.getMinutes(),M.getSeconds());return l.getTime()-R.getTime()<0?{endBeforeStart:!0}:l.getTime()-R.getTime()<a?{minDifference:!0}:l.getTime()-R.getTime()>f?{maxDifference:!0}:null}}getMissingValuesForSchedulerAddOrUpdateForm(c,C,u,m){return a=>{const f=a.get(c)?a.get(c).value:null,O=a.get(C)?a.get(C).value:null,N=a.get(u)?a.get(u).value:null,L=a.get(m)?a.get(m).value:null,i={startDateMissing:!1,startTimeMissing:!1,endDateMissing:!1,endTimeMissing:!1};if(f||(i.startDateMissing=!0),O||(i.startTimeMissing=!0),N||(i.endDateMissing=!0),L||(i.endTimeMissing=!0),i.startDateMissing||i.startTimeMissing||i.endDateMissing||i.endTimeMissing)return i}}validatePrecision(c,C,u){return m=>{const a=m.get(c)?.value?m.get(c).value.getMinutes():null,f=m.get(C)?.value?m.get(C).value.getMinutes():null,O={wrongStartTimePrecision:!1,wrongEndTimePrecision:!1};if(a%u!=0&&(O.wrongStartTimePrecision=!0),f%u!=0&&(O.wrongEndTimePrecision=!0),O.wrongStartTimePrecision||O.wrongEndTimePrecision)return O}}
1413maxDate(c){return C=>C.value&&c&&new Date(C.value).getTime()>=c.getTime()?{maxDate:{valid:!1}}:null}minDateDiffToCurrentDate(c){return C=>(C&&C.value&&console.log(C),C.value&&new Date(C.value).getTime()<Date.now()+c?{minDateDiff:{valid:!1}}:null)}maxDateDiffToCurrentDate(c){return C=>C.value&&new Date(C.value).getTime()>Date.now()+c?{maxDateDiff:{valid:!1}}:null}notEqualTo(c){return C=>C.value===c.value?{notEqualTo:{valid:!1}}:null}textValueAlreadyPresent(c,C="textValueAlreadyPresent"){return u=>c.includes(u.value)?{[C]:{valid:!1}}:null}passwordMatches(){return c=>{const C=c.get("password")?c.get("password").value:null,u=c.get("confirmPassword")?c.get("confirmPassword").value:null;return null==C||null==u?{notMatching:!0}:C===u?null:{notMatching:!0}}}strong(){return c=>{const C=/\d/.test(c.value)?1:0,u=/[A-Z]/.test(c.value)?1:0,m=/[a-z]/.test(c.value)?1:0,a=/[!"#$%&'()*+,-.\/:;<=>?@\[\]^_`{|}~]/.test(c.value)?1:0;return C+u+m+a<3?{number:!!+C,upper:!!+u,lower:!!+m,special:!!+a}:null}}atleast2Words(){return c=>{const C=c.value?c.value.trim():"";if(""!==C){let u=!0;for(let m of C.split(" "))0===m.length&&(u=!1);return!u||C.split(" ").length<2?{incorrect:!0}:null}return{incorrect:!0}}}regionConditionallyRequiredValidator(c){return C=>C.parent&&c()?s.kI.required(C):null}validateAddress(){return c=>c.get("addressCity").value&&c.get("postalCode").value?null:{missingAddress:!0}}isPhoneValid(){return c=>{if(!c||null==c.value||""===c.value)return null;{const C=c.value.trim();let u=!1;try{u=(0,e.S)(C,null).isValid()}catch{}return u?null:{wrongNumber:!0}}}}length(c){return C=>C.value&&C.value.length!==c?{length:{valid:!1}}:null}}return v.\u0275fac=function(c){return new(c||v)},v.\u0275prov=o.Yz7({token:v,factory:v.\u0275fac}),v})()},99753:(Se,k,n)=>{n.d(k,{_:()=>s}); 1414/* 1415 * @license 1416 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1417 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1418 *
1419 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1420 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1421 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1422 * trade secret or copyright law. 1423 * 1424 * Dissemination of this information or reproduction of this material is strictly forbidden 1425 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1426 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1427 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1428 * explicitly covering such access. 1429 * 1430 * The copyright notice above does not evidence any actual or intended publication or disclosure 1431 * of this source code, which includes information that is confidential and/or proprietary, 1432 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1433 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1434 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1435 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1436 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1437 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1438 * IN WHOLE OR IN PART. 1439 */ 1440let s=(()=>{class e{}return e.login="login",e.baseClient="client",e.baseLobby="lobby",e.baseAdmin="administrator",e.baseLawyer="lawyer",e.register="register",e.en="en",e.baseBlog="blog",e})()},33436:(Se,k,n)=>{n.d(k,{E:()=>e});var s=n(45218); 1441/* 1442 * @license 1443 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1444 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1445 *
1446 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1447 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1448 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1449 * trade secret or copyright law. 1450 * 1451 * Dissemination of this information or reproduction of this material is strictly forbidden 1452 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1453 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1454 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1455 * explicitly covering such access. 1456 * 1457 * The copyright notice above does not evidence any actual or intended publication or disclosure 1458 * of this source code, which includes information that is confidential and/or proprietary, 1459 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1460 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1461 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1462 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1463 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1464 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1465 * IN WHOLE OR IN PART. 1466 */class e{}e.apiVersion="v1",e.serverUrl=`https://${s.L.isLocalEnvironment()?"development.szerzi.hu":window.location.host}`,e.wsServerUrl=`wss://${s.L.isLocalEnvironment()?"development.szerzi.hu":window.location.host}`,e.apiUrl=`${e.serverUrl}/api/${e.apiVersion}`,e.wsApiUrl=`${e.wsServerUrl}/api/${e.apiVersion}`},28736:(Se,k,n)=>{n.d(k,{i:()=>t});var s=n(33436),e=n(22971),o=n(55089); 1467/* 1468 * @license 1469 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1470 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1471 *
1472 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1473 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1474 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1475 * trade secret or copyright law. 1476 * 1477 * Dissemination of this information or reproduction of this material is strictly forbidden 1478 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1479 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1480 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1481 * explicitly covering such access. 1482 * 1483 * The copyright notice above does not evidence any actual or intended publication or disclosure 1484 * of this source code, which includes information that is confidential and/or proprietary, 1485 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1486 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1487 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1488 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1489 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1490 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1491 * IN WHOLE OR IN PART. 1492 */class t{static apiRouteGetUserByID(r){return`${t.apiRouteOthers}/${r}/profile`}static apiRouteGetInvitedUserByID(r){return`${t.apiRouteUser}/invited/${r}`}static apiRouteFromUserType(){const r=t.userService.getSessionType();return r===e.FW.Lawyer?`${s.E.apiUrl}/lawyer`:r===e.FW.Client?`${s.E.apiUrl}/client`:r===e.FW.Administrator?`${s.E.apiUrl}/administrator`:void 0}static apiRouteDeregisterFromUserType(){return`${this.apiRouteFromUserType()}/account/removal`}static apiRouteDeregisterCancel(){return`${t.apiRouteDeregisterFromUserType()}/cancel`}static apiRouteDeregisterConfirm(r){return`${t.apiRouteDeregisterFromUserType()}/confirm/${r}`}static apiRouteDeregisterInit(){return`${t.apiRouteDeregisterFromUserType()}/init`}static apiRouteDeregisterState(){return`${t.apiRouteDeregisterFromUserType()}/state`}static apiRouteRegister(r){return`${s.E.apiUrl}/${r.toString().toLowerCase()}/registration`}static wsApiRouteFromUserType(){const r=t.userService.getSessionType();return r===e.FW.Lawyer?`${s.E.wsApiUrl}/lawyer`:r===e.FW.Client?`${s.E.wsApiUrl}/client`:r===e.FW.Administrator?`${s.E.wsApiUrl}/administrator`:void 0}static apiRoutetContractsFromUserType(){return`${t.apiRouteFromUserType()}/contracts`}static apiRouteContractInitialize(){return`${t.apiRoutetContractsFromUserType()}/initialize`}static apiRouteClientContractCopy(r){return`${t.apiRouteClientContractProgresses}/${r}/copy`}static apiRouteDeleteContracts(r){return`${t.apiRouteClientContractProgresses}/${r}/delete`}static apiRouteDeleteContractsLawyer(r){return`${t.apiRouteLawyerContractProgresses}/${r}/delete`}static apiRouteProofProgressLawyer(r){return`${t.apiRouteLawyerContractProgresses}/${r}/proof`}static apiRouteContractHistory(r){return`${t.apiRouteClientContractProgresses}/${r}/history`}static apiRouteContractRollback(r,c){return`${t.apiRouteClientContractProgresses}/${r}/rollback/${c}`}static apiRouteViewEditingStep(r){return`${t.apiRouteClientContractProgresses}/${r}/view-editing-step`}static apiRouteViewEditingStepLawyer(r){return`${t.apiRouteLawyerContractProgresses}/${r}/view-editing-step`}static apiRouteEditUnlockedStep(r,c){return`${t.apiRouteClientContractProgresses}/${r}/edit-unlocked-step/${c}`}static apiRouteEditUnlockedStepLawyer(r,c){return`${t.apiRouteLawyerContractProgresses}/${r}/edit-unlocked-step/${c}`}static apiRouteViewUnlockedStep(r,c){return`${t.apiRouteClientContractProgresses}/${r}/view-unlocked-step/${c}`}static apiRouteViewUnlockedStepLawyer(r,c){return`${t.apiRouteLawyerContractProgresses}/${r}/view-unlocked-step/${c}`}static apiRouteFormDisplayElements(r){return`${t.apiRouteClientContractProgresses}/${r}/form-display-elements`}static apiRouteFormDisplayElementsLawyer(r){return`${t.apiRouteLawyerContractProgresses}/${r}/form-display-elements`}static apiRouteStepDisplayElements(r){return`${t.apiRouteClientContractProgresses}/${r}/step-display-elements`}static apiRouteStepDisplayElementsLawyer(r){return`${t.apiRouteLawyerContractProgresses}/${r}/step-display-elements`}static apiRouteNext(r){return`${t.apiRouteClientContractProgresses}/${r}/next`}static apiRouteNextLawyer(r){return`${t.apiRouteLawyerContractProgresses}/${r}/next`}static apiRouteBatch(r){return`${t.apiRouteClientContractProgresses}/${r}/batch`}static apiRouteBatchLawyer(r){return`${t.apiRouteLawyerContractProgresses}/${r}/batch`}static apiRouteContractInviteForSharingByMail(r){return`${t.apiRouteClientContractProgresses}/${r}/invite-and-share-by-mail`}static apiRouteContractShareByIdentifier(r){return`${t.apiRouteClientContractProgresses}/${r}/share-by-identifier`}static apiRouteContractShareByMail(r){return`${t.apiRouteClientContractProgresses}/${r}/share-by-mail`}static apiRouteContractUnshare(r){return`${t.apiRouteClientContractProgresses}/${r}/unshare`}static apiRouteClientContractCopyHistory(r){return`${t.apiRouteClientContracts}/copy-from-history/${r}`}static apiRouteGenerator(r){return`${t.apiRouteGenerators}/${r}`}static apiRouteGenerate(r){return`${t.apiRouteGenerator(r)}/generate`}static apiRouteAdminInvoicingDownloadByID(r){return`${t.apiRouteAdmin}/invoicing/application/download/${r}`}static apiRouteGetClientUsagePack(){return`${t.apiRoutePack}/list`}static apiRouteGiftingClientWithQuota(){return`${t.apiRouteAdminGifting}`}static apiRouteTerminateClientPack(){return`${t.apiRouteAdminTerminateClientPack}`}static apiRouteRestoreClientPack(){return`${t.apiRouteAdminRestoreClientPAck}`}static apiRouteLawyerImpersonate(r){return`${t.apiRouteAdminLawyer}/${r}/impersonate`}static apiRouteLawyerVerify(r){return`${t.apiRouteAdminLawyer}/${r}/verify`}static apiRouteLawyerUnverify(r){return`${t.apiRouteAdminLawyer}/${r}/unverify`}static apiRouteClientImpersonate(r){return`${t.apiRouteAdminClient}/${r}/impersonate`}static apiRouteGetClientPacks(){return`${t.apiRouteAdminPack}/list`}static apiRouteMethodBraintreeToken(r){return`${t.apiRouteClientNonce}/${r}`}static apiRouteInvoiceDownload(r){return`${t.apiRouteInvoice}/download/${r}`}static apiRouteMetadata(r){return`${t.apiRouteClientContractProgresses}/${r}/metadata`}static apiRouteSpecificLawyerDataProtection(r){return`${t.apiRouteUser}/lawyer/${r}/legal/data-protection`}static apiRouteState(r){return`${t.apiRouteClientContractProgresses}/${r}/state`}static apiRouteStateLawyer(r){return`${t.apiRouteLawyerContractProgresses}/${r}/state`}static apiRouteRelease(r){return`${t.apiRouteClientContractProgresses}/${r}/release`}static apiRouteEditor(r){return`${t.apiRouteClientContractProgresses}/${r}/editor`}static apiRouteEditorLawyer(r){return`${t.apiRouteLawyerContractProgresses}/${r}/editor`}static apiRouteTakeover(r){return`${t.apiRouteClientContractProgresses}/${r}/takeover`}static apiRouteContractSample(r){return`${t.apiRouteClientContractProgresses}/${r}/sample`}static apiRouteContractSampleLawyer(r){return`${t.apiRouteLawyerContractProgresses}/${r}/sample`}static apiRouteContractDownload(r){return`${t.apiRouteClientContractProgresses}/${r}/download`}static apiRouteContractDownloadLawyer(r){return`${t.apiRouteLawyerContractProgresses}/${r}/download`}static apiRouteContractFinalizeCost(r){return`${t.apiRouteClientContractProgresses}/${r}/finalize-cost`}static apiRouteContractWithID(r){return`${t.apiRouteClientContractProgresses}/${r}`}static apiRouteContractCreditFinalize(r){return`${t.apiRouteContractWithID(r)}/credit/finalize`}static apiRouteContractBraintreeFinalize(r){return`${t.apiRouteContractWithID(r)}/braintree/finalize`}static apiRouteContractWithIDStripe(r){return`${t.apiRouteContractWithID(r)}/stripe`}static apiRouteContractStripeFinalize(r){return`${t.apiRouteContractWithIDStripe(r)}/finalize`}static apiRouteContractStripeFinalizeWithSubscription(r){return`${t.apiRouteContractWithIDStripe(r)}/finalize-with-subscription`}static apiRouteContractStripeCheck(r){return`${t.apiRouteContractWithIDStripe(r)}/check`}static apiRouteContractWithIDUnicredit(r){return`${t.apiRouteContractWithID(r)}/unicredit`}static apiRouteContractUnicreditFinalize(r){return`${t.apiRouteContractWithIDUnicredit(r)}/finalize`}static apiRouteContractUnicreditCheck(r){return`${t.apiRouteContractWithIDUnicredit(r)}/check`}static apiRouteContractSharedPermission(r){return`${t.apiRouteClientContractsSharedWithMe}/progresses/${r}`}static apiRouteContractIcon(r){return`${s.E.serverUrl}${r}`}static apiRouteMailConfirm(r){return`${t.apiRouteMail}/confirm/${r}`}static apiRouteProfile(){return`${t.apiRouteFromUserType()}/profile`}static apiRouteProfilePicture(){return`${t.apiRouteProfile()}/picture`}static apiRoutePictureByID(r){return`${t.apiRouteOthers}/${r}/image`}static apiRouteProfileOwner(){return`${t.apiRouteProfile()}/owner`}static apiRouteProfileRepresentative(){return`${t.apiRouteProfile()}/representative`}static apiRouteClientChatConversations(){return`${t.apiRouteFromUserType()}/chat`}static apiRouteClientChatTicket(){return`${t.apiRouteClientChatConversations()}/ticket`}static apiRouteClientMediation(){return`${t.apiRouteClientChatConversations()}/mediation`}static apiRouteClientOfferBraintreePurchase(){return`${t.apiRouteClientMediation()}/braintree/purchase`}static apiRouteClientOfferStripe(){return`${t.apiRouteClientMediation()}/stripe`}static apiRouteClientOfferStripePurchase(){return`${t.apiRouteClientOfferStripe()}/purchase`}static apiRouteClientOfferStripeCheck(){return`${t.apiRouteClientOfferStripe()}/check`}static apiRouteOpenConversation(){return`${t.apiRouteClientChatConversations()}/open`}static apiRouteNewConversationWithUserID(r){return`${t.apiRouteOpenConversation()}/${r}`}static apiRouteClientChatByID(r){return`${t.apiRouteClientChatConversations()}/${r}`}static apiRouteClientChatMessages(r){return`${t.apiRouteClientChatConversations()}/${r}/messages`}static apiRouteClientReviewLawyer(r){return`${t.apiRouteClientChatConversations()}/rate/${r}`}static apiRouteClientChatClose(r){return`${t.apiRouteClientChatConversations()}/${r}/close`}static wsApiRouteClientChatChannel(r,c){return`${this.wsApiRouteFromUserType()}/chat/${r}/channel?ticket=${c}`}static apiRouteMatchmaker(){return`${t.apiRouteFromUserType()}/matchmaker`}static apiRouteAvailableLawyers(){return`${t.apiRouteMatchmaker()}/available-lawyers`}static apiRouteMatchmakerBraintreePurchase(){return`${t.apiRouteMatchmaker()}/braintree/purchase`}static apiRouteMatchmakerCreditPurchase(){return`${t.apiRouteMatchmaker()}/credit/purchase`}static apiRouteMatchmakerExit(){return`${t.apiRouteMatchmaker()}/exit`}static apiRouteHeartbeat(){return`${t.apiRouteMatchmaker()}/heartbeat`}static apiRouteRequestLawyer(){return`${t.apiRouteMatchmaker()}/help`}static apiRouteRequestLawyerWithProgress(r){return`${t.apiRouteMatchmaker()}/help-with/${r}`}static apiRouteRequestLawyerByLawyerID(r){return`${t.apiRouteMatchmaker()}/help-by/${r}`}static apiRouteRequestLawyerScheduleByLawyerID(r){return`${t.apiRouteMatchmaker()}/schedule/${r}`}static apiRoutePreviewByLawyerID(r){return`${t.apiRouteMatchmaker()}/preview/${r}`}static apiRouteAvailableLawyerByLawyerID(r){return`${t.apiRouteMatchmaker()}/available/${r}`}static apiRouteMatchmakerJoin(){return`${t.apiRouteMatchmaker()}/join`}static apiRoutePendingCandidateFor(){return`${t.apiRouteMatchmaker()}/pending-candidate-for`}static apiRouteMatchmakerReject(r){return`${t.apiRouteMatchmaker()}/reject/${r}`}static apiRouteMatchmakerStatus(){return`${t.apiRouteMatchmaker()}/status`}static apiRouteMatchmakerStripe(){return`${t.apiRouteMatchmaker()}/stripe`}static apiRouteMatchmakerStripeCheck(){return`${t.apiRouteMatchmakerStripe()}/check`}static apiRouteMatchmakerStripePurchase(){return`${t.apiRouteMatchmakerStripe()}/purchase`}static apiRouteMatchmakerCategories(){return`${t.apiRouteMatchmaker()}/categories`}static apiRouteMatchmakerCategoriesList(){return`${t.apiRouteMatchmakerCategories()}/list`}static apiRouteMatchmakerCategoriesModify(){return`${t.apiRouteMatchmakerCategories()}/modify`}static apiRouteMatchmakerVerifyWebsite(){return`${t.apiRouteMatchmaker()}/verify-website`}static apiRouteAgencyContract(){return`${t.apiRouteFromUserType()}/agency-contract`}static apiRouteAgencyContractSample(){return`${t.apiRouteAgencyContract()}/sample`}static apiRouteAgencyContractByID(r){return`${t.apiRouteAgencyContract()}/${r}`}static apiRouteClientTracking(){return`${t.apiRouteFromUserType()}/tracking`}static apiRouteClientTrackingHeartbeat(){return`${t.apiRouteClientTracking()}/heartbeat`}static apiRouteClientTrackingLastActivity(){return`${t.apiRouteClientTracking()}/last-activity`}static apiRouteInvoicingGetByID(r){return`${t.apiRouteInvoicing}/get/${r}`}static apiRouteInvoicingDownloadByID(r){return`${t.apiRouteInvoicing}
1492/download/${r}`}}t.userService=new o.K,t.apiRouteUser=`${s.E.apiUrl}/user`,t.apiRouteAdmin=`${s.E.apiUrl}/administrator`,t.apiRouteClient=`${s.E.apiUrl}/client`,t.apiRouteLawyer=`${s.E.apiUrl}/lawyer`,t.wsApiRouteClient=`${s.E.wsApiUrl}/client`,t.apiRoutePing=`${s.E.apiUrl}/ping`,t.apiRouteOthers=`${t.apiRouteUser}/others`,t.apiRouteGenerators=`${t.apiRouteAdmin}/generators`,t.apiRouteAdminLawyer=`${t.apiRouteAdmin}/lawyer`,t.apiRouteAdminClient=`${t.apiRouteAdmin}/client`,t.apiRouteAdminInvoices=`${t.apiRouteAdmin}/invoicing/application/list`,t.apiRouteAdminUsage=`${t.apiRouteAdmin}/usage`,t.apiRouteAdminPack=`${t.apiRouteAdminUsage}/pack`,t.apiRouteAdminGifting=`${t.apiRouteAdminPack}/gift`,t.apiRouteAdminTerminateClientPack=`${t.apiRouteAdminPack}/terminate`,t.apiRouteAdminRestoreClientPAck=`${t.apiRouteAdminPack}/restore`,t.apiRouteLogin=`${s.E.apiUrl}/login`,t.apiRouteLogout=`${t.apiRouteUser}/logout`,t.apiRouteUserAccount=`${t.apiRouteUser}/account`,t.apiRouteAccount=`${s.E.apiUrl}/account`,t.apiRouteSocial=`${t.apiRouteUser}/social`,t.apiRouteFacebook=`${t.apiRouteSocial}/facebook`,t.apiRouteGoogle=`${t.apiRouteSocial}/google`,t.apiRouteApple=`${t.apiRouteSocial}/apple`,t.apiRouteTwoFactor=`${t.apiRouteUserAccount}/two-factor`,t.apiRouteTwoFactorInit=`${t.apiRouteTwoFactor}/init`,t.apiRouteTwoFactorState=`${t.apiRouteTwoFactor}/state`,t.apiRouteTwoFactorConfirm=`${t.apiRouteTwoFactor}/confirm`,t.apiRouteTwoFactorRemove=`${t.apiRouteTwoFactor}/remove`,t.apiRoutePasswordChange=`${t.apiRouteUserAccount}/password`,t.apiRouteRecovery=`${t.apiRouteAccount}/recovery/password`,t.apiRouteAccountLanguage=`${t.apiRouteUserAccount}/language`,t.apiRouteMail=`${t.apiRouteUserAccount}/mail`,t.apiRouteMailState=`${t.apiRouteMail}/state`,t.apiRouteResendMail=`${t.apiRouteMail}/resend`,t.apiRouteMailUpdate=`${t.apiRouteMail}/update`,t.apiRouteMailUpdateAdd=`${t.apiRouteMail}/add`,t.apiRouteMailSetPrimary=`${t.apiRouteMail}/set-primary`,t.apiRouteMailRemove=`${t.apiRouteMail}/remove`,t.apiRouteUserPing=`${t.apiRouteUser}/ping`,t.apiRouteUserAccessKeys=`${t.apiRouteUser}/access-keys`,t.apiRouteUserIntercom=`${t.apiRouteUserAccessKeys}/intercom`,t.apiRouteAgreements=`${s.E.apiUrl}/agreements`,t.apiRouteLawyerAgreements=`${t.apiRouteAgreements}/lawyer`,t.apiRouteClientAgreements=`${t.apiRouteAgreements}/client`,t.apiRouteUserAgreements=`${t.apiRouteUser}/agreements`,t.apiRouteImpressum=`${s.E.apiUrl}/impressum`,t.apiRouteConfiguration=`${s.E.apiUrl}/configuration`,t.apiRouteUserFeedback=`${t.apiRouteUser}/feedback`,t.apiRouteUserSuggestion=`${t.apiRouteUser}/suggestion`,t.apiRouteClientBilling=`${t.apiRouteClient}/billing`,t.apiRouteClientBillingUpdate=`${t.apiRouteClientBilling}/update`,t.apiRouteClientPaymentMethod=`${t.apiRouteClientBilling}/method`,t.apiRouteClientPaymentMethodBraintree=`${t.apiRouteClientPaymentMethod}/braintree`,t.apiRouteClientNonce=`${t.apiRouteClientPaymentMethodBraintree}/nonce`,t.apiRouteClientPaymentMethodBraintreeSetup=`${t.apiRouteClientPaymentMethodBraintree}/setup`,t.apiRouteClientPaymentMethodList=`${t.apiRouteClientPaymentMethod}/list`,t.apiRouteClientPaymentMethodRemove=`${t.apiRouteClientPaymentMethod}/remove`,t.apiRouteClientPaymentMethodSetPreferred=`${t.apiRouteClientPaymentMethod}/set-preferred`,t.apiRouteClientPaymentMethodStripeSetup=`${t.apiRouteClientPaymentMethod}/stripe/setup`,t.apiRouteInvoice=`${t.apiRouteClient}/invoice`,t.apiRouteClientUsage=`${t.apiRouteClient}/usage`,t.apiRouteOrders=`${t.apiRouteClientUsage}/orders/list`,t.apiRoutePack=`${t.apiRouteClientUsage}/pack`,t.apiRoutePackBuyBraintree=`${t.apiRoutePack}/braintree/purchase`,t.apiRouteClientBraintreeToken=`${t.apiRouteClientUsage}/braintree/token`,t.apiRoutePackStripe=`${t.apiRoutePack}/stripe`,t.apiRouteClientTaxStatus=`${t.apiRouteClientUsage}/tax-status`,t.apiRoutePackBuyStripe=`${t.apiRoutePackStripe}/purchase`,t.apiRoutePackCheckStripe=`${t.apiRoutePackStripe}/check`,t.apiRoutePackUnicredit=`${t.apiRoutePack}/unicredit`,t.apiRoutePackBuyUnicredit=`${t.apiRoutePackUnicredit}/purchase`,t.apiRoutePackCheckUnicredit=`${t.apiRoutePackUnicredit}/check`,t.apiRouteSubscriptionState=`${t.apiRouteClientUsage}/subscription`,t.apiRouteSubscriptionList=`${t.apiRouteSubscriptionState}/list`,t.apiRouteSubscriptionRelevant=`${t.apiRouteSubscriptionState}/relevant-list`,t.apiRouteSubscriptionBraintree=`${t.apiRouteSubscriptionState}/braintree`,t.apiRouteSubscribeToPlanBraintree=`${t.apiRouteSubscriptionBraintree}/purchase`,t.apiRouteUpdatePlanBraintree=`${t.apiRouteSubscriptionBraintree}/update`,t.apiRouteUpdatePlanPurchaseBraintree=`${t.apiRouteUpdatePlanBraintree}/purchase`,t.apiRouteUpdatePriceBraintree=`${t.apiRouteSubscriptionBraintree}/update-price`,t.apiRouteCancelPlanBraintree=`${t.apiRouteSubscriptionBraintree}/cancel`,t.apiRouteSubscriptionStripe=`${t.apiRouteSubscriptionState}/stripe`,t.apiRouteSubscribeToPlanStripe=`${t.apiRouteSubscriptionStripe}/purchase`,t.apiRouteSubscribeToPlanCheckStripe=`${t.apiRouteSubscriptionStripe}/check`,t.apiRouteUncancelPlanStripe=`${t.apiRouteSubscriptionStripe}/uncancel`,t.apiRouteUpdatePlanStripe=`${t.apiRouteSubscriptionStripe}/update`,t.apiRouteUpdatePlanPurchaseStripe=`${t.apiRouteUpdatePlanStripe}/purchase`,t.apiRouteUpdatePlanCheckStripe=`${t.apiRouteUpdatePlanStripe}/check`,t.apiRouteUpdatePlanPurchaseDelayedStripe=`${t.apiRouteUpdatePlanStripe}/purchase-delayed`,t.apiRouteUpdatePlanMethodStripe=`${t.apiRouteUpdatePlanStripe}/method`,t.apiRouteUpdatePlanCancelDelayedStripe=`${t.apiRouteUpdatePlanStripe}/cancel-delayed`,t.apiRouteUpdatePriceStripe=`${t.apiRouteUpdatePlanStripe}/price`,t.apiRouteCancelPlanStripe=`${t.apiRouteSubscriptionStripe}/cancel`,t.apiRouteAssets=`${s.E.apiUrl}/assets`,t.apiRouteUsage=`${s.E.apiUrl}/usage`,t.apiRouteQuotaPrices=`${t.apiRouteUsage}/credits`,t.apiRouteBundles=`${t.apiRouteUsage}/packs`,t.apiRouteServices=`${t.apiRouteUsage}/services`,t.apiRouteSubscriptionPlans=`${t.apiRouteUsage}/subscriptions`,t.apiRouteModules=`${t.apiRouteUsage}/modules`,t.apiRouteUsageAssets=`${t.apiRouteUsage}/assets`,t.apiRouteCategories=`${t.apiRouteUsage}/categories`,t.apiRouteContracts=`${s.E.apiUrl}/contracts`,t.apiRouteClientContracts=`${t.apiRouteClient}/contracts`,t.apiRouteClientContractProgresses=`${t.apiRouteClientContracts}/progresses`,t.apiRouteClientContractShares=`${t.apiRouteClientContracts}/shares`,t.apiRouteClientContractsSharedWithMe=`${t.apiRouteUser}
1492/contracts/shared`,t.apiRouteLawyerContracts=`${t.apiRouteLawyer}/contracts`,t.apiRouteLawyerContractProgresses=`${t.apiRouteLawyerContracts}/progresses`,t.apiRouteLawyerCount=`${t.apiRouteAdminLawyer}/count`,t.apiRouteClientCount=`${t.apiRouteAdminClient}/count`,t.apiRouteLawyerList=`${t.apiRouteAdminLawyer}/list`,t.apiRouteClientList=`${t.apiRouteAdminClient}/list`,t.apiRouteUserServices=`${s.E.apiUrl}/user/services`,t.apiRouteGeocoding=`${t.apiRouteUserServices}/geocoding`,t.apiRouteNetPrice=`${t.apiRouteUserServices}/net-price`,t.apiRouteFolders=`${t.apiRouteClient}/folders`,t.apiRouteSafekeeping=`${t.apiRouteUser}/safekeeping`,t.apiRouteLawyerService=`${t.apiRouteLawyer}/service`,t.apiRouteInvoicing=`${t.apiRouteLawyer}/invoicing`,t.apiRouteInvoicingFees=`${t.apiRouteInvoicing}/fees`,t.apiRouteInvoicingState=`${t.apiRouteInvoicing}/state`,t.apiRouteInvoicingUpdate=`${t.apiRouteInvoicing}/update`,t.apiRouteInvoicingExample=`${t.apiRouteInvoicing}/example`,t.apiRouteLawyerProfile=`${t.apiRouteLawyer}/profile`,t.apiRouteLawyerDataProtection=`${t.apiRouteLawyerProfile}/legal/data-protection`,t.apiRouteLawyerLicense=`${t.apiRouteLawyerProfile}/license`,t.apiRouteIntroduction=`${t.apiRouteLawyerProfile}/introduction`,t.apiRouteLawyerVerification=`${t.apiRouteLawyer}/verification`,t.apiRoutePayout=`${t.apiRouteLawyer}/payout`,t.apiRouteStripe=`${t.apiRoutePayout}/stripe`,t.apiRouteStripeAccount=`${t.apiRouteStripe}/account`,t.apiRouteStripeBalance=`${t.apiRouteStripeAccount}/balance`,t.apiRouteStripeCreate=`${t.apiRouteStripeAccount}/create`,t.apiRouteStripeCreateLink=`${t.apiRouteStripeAccount}/create-link`,t.apiRouteStripeLoginLink=`${t.apiRouteStripeAccount}/login-link`,t.apiRouteStripeReset=`${t.apiRouteStripeAccount}/reset`,t.apiRouteSchedule=`${t.apiRouteLawyer}/matchmaker/schedule`,t.apiRouteScheduleList=`${t.apiRouteSchedule}/list`,t.apiRouteScheduleModify=`${t.apiRouteSchedule}/modify`},78321:(Se,k,n)=>{n.d(k,{y:()=>s}); 1493/* 1494 * @license 1495 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1496 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1497 *
1498 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1499 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1500 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1501 * trade secret or copyright law. 1502 * 1503 * Dissemination of this information or reproduction of this material is strictly forbidden 1504 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1505 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1506 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1507 * explicitly covering such access. 1508 * 1509 * The copyright notice above does not evidence any actual or intended publication or disclosure 1510 * of this source code, which includes information that is confidential and/or proprietary, 1511 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1512 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1513 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1514 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1515 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1516 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1517 * IN WHOLE OR IN PART. 1518 */ 1519let s=(()=>{class e{}return e.Primary="#9579d1",e.Secondary="#7eb8da",e.Tertiary="#ffa5d8",e.Quaternary="#be9ddf",e.Quinary="#92ddea",e.Danger="#de4436",e.contractIconBackgroundColors={"agency contract":"8AC054","assignment contract":"F5AC45","construction contract":"8AC054","favored property use agreement":"E95538","flat lease agreement":"4B89DA","guarantee contract":"D97AB2","immovable state and inventory annex":"967ADA","lease agreement b":"967ADA","leniency request":"35BB9B","money loan agreement":"967ADA","movable gift agreement":"E8563F","movable loan agreement":"F5AC45","movable sale contract":"35BB9B","power of attorney agreement":"6a9de0","privacy statement":"F5AC45","step madness":"424852","testamentary statement":"D670AC","type field madness":"424852","vehicle sale contract":"3aadd9","works contract":"3599C0"},e})()},49814:(Se,k,n)=>{n.d(k,{Q:()=>s}); 1520/* 1521 * @license 1522 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1523 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1524 *
1525 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1526 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1527 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1528 * trade secret or copyright law. 1529 * 1530 * Dissemination of this information or reproduction of this material is strictly forbidden 1531 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1532 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1533 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1534 * explicitly covering such access. 1535 * 1536 * The copyright notice above does not evidence any actual or intended publication or disclosure 1537 * of this source code, which includes information that is confidential and/or proprietary, 1538 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1539 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1540 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1541 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1542 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1543 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1544 * IN WHOLE OR IN PART. 1545 */ 1546let s=(()=>{class e{}return e.addressLocality="Magyarorsz\xe1g, K\xe1poln\xe1sny\xe9k",e.baseWebPage="https://szerzi.hu/",e.duns="366670954",e.email="hello(at)szerzi.hu",e.enliven="Enliven Systems Kft.",e.foundingDate="2017.",e.googleApiKey="AIzaSyDgXNXYbGNpdlFI6Z8k7pEuTRPd1LI1htQ",e.leiCode="9845004CD193AC4B6338",e.logo="/assets/images/szerzi-logo-fold.svg",e.postalCode="2475",e.streetAddress="Kossuth utca 6. A \xe9p\xfclet",e.szerzi="Szerzi",e.taxID="HU25962295",e.telephone="+36303684785",e.registrationSVG="/assets/images/registration/szerzi_registration.svg",e})()},44569:(Se,k,n)=>{n.d(k,{d:()=>t});var s=n(22971),e=n(55089),o=n(99753); 1547/* 1548 * @license 1549 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1550 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1551 *
1552 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1553 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1554 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1555 * trade secret or copyright law. 1556 * 1557 * Dissemination of this information or reproduction of this material is strictly forbidden 1558 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1559 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1560 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1561 * explicitly covering such access. 1562 * 1563 * The copyright notice above does not evidence any actual or intended publication or disclosure 1564 * of this source code, which includes information that is confidential and/or proprietary, 1565 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1566 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1567 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1568 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1569 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1570 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1571 * IN WHOLE OR IN PART. 1572 */class t extends o._{static adminContract(r){return`${t.adminTemplater}/${r}`}static clientContract(r){return`${t.baseFromUserType()}/${t.baseContract}/${r}`}static clientChatByID(r){return`${t.baseChat}/${r}`}static clientChatByIDWithUserType(r){return`${t.baseFromUserType()}/${t.baseChat}/${r}`}static baseFromUserType(){const r=t.userService.getSessionType();return r===s.FW.Lawyer?t.baseLawyer:r===s.FW.Client?t.baseClient:r===s.FW.Administrator?t.baseAdmin:void 0}static testCardsTab(){return`${t.baseFromUserType()}/${t.baseSettings}/${t.settingsPaymentTestCardsTab}`}}t.userService=new e.K,t.baseUser="user",t.baseContract="contract",t.baseContractCreate="create",t.baseDocument="document",t.baseForm="form",t.baseList="list",t.baseSettings="settings",t.baseTemplater="templater",t.baseFileManager="generator-management",t.baseLawyerManager="lawyer-management",t.baseClientManager="client-management",t.baseChat="chat",t.baseShared="shared",t.baseInvoices="invoices",t.landingContact="contact-us",t.landingPayment="payment-terms",t.landingPrivacy="privacy-policy",t.landingPrivacyTab0=`${t.landingPrivacy}#tab-0`,t.landingPrivacyTab1=`${t.landingPrivacy}#tab-1`,t.landingImpressum="impressum",t.landingTOS="general-terms-of-service",t.landingTOSTab0=`${t.landingTOS}#tab-0`,t.landingTOSTab1=`${t.landingTOS}#tab-1`,t.landingForLawyers="for-lawyers",t.landingAbout="about-us",t.landingDocument=`${t.baseDocument}`,t.landingPWA="progressive-web-application",t.landingFAQ="frequently-asked-questions",t.landingFAQTabContracts=`${t.landingFAQ}#tab-contracts`,t.landingFAQTabLegal=`${t.landingFAQ}#tab-legal`,t.landingFAQTabPurchase=`${t.landingFAQ}#tab-purchase`,t.landingPricing="pricing",t.landingFeatures="features",t.landingLawyerMediation="lawyer-mediation",t.landingDisputeResolution="dispute-resolution",t.landingRefundPolicy="refund-policy",t.landingPayouts="payouts",t.deRegister="deregister",t.emailConfirm="email-confirm",t.scheduler="scheduler",t.integration="integration",t.login="login",t.terms="terms",t.privacy="privacy",t.register="register",t.registerClient=`${t.register}/${s.FW.Client.toString().toLowerCase()}`,t.registerLawyer=`${t.register}/${s.FW.Lawyer.toString().toLowerCase()}`,t.matchmakerRequest="matchmaker-request",t.dashboard="client",t.demos="demos",t.demosContract=`${t.demos}/contract`,t.presentationDemo="presentation-demo",t.chatDemoPresentation="chat",t.contractDemoPresentation="contract",t.listingDemoPresentation="listing",t.singleDocumentDemoPresentation="single-document",t.forgot="forgot",t.resetPassword="reset-password",t.forgotConfirm="forgot-confirm",t.subscriptions="subscriptions",t.settingsAccountTab="account",t.settingsBillingTab="billing",t.settingsLicenseTab="license",t.settingsIntroductionTab="introduction",t.settingsInvoicingTab="invoicing",t.settingsBundlesTab="bundles",t.settingsInvoicesTab="invoices",t.settingsPayoutTab="payout",t.settingsPayoutRefreshTab=`${t.settingsPayoutTab}/refresh`,t.settingsPayoutReturnTab=`${t.settingsPayoutTab}/return`,t.settingsMatchmakingTab="matchmaking",t.settingsPaymentResultTab="payment-result",t.settingsPaymentResultSuccessTab=`${t.settingsPaymentResultTab}/success`,t.settingsPaymentResultFailureTab=`${t.settingsPaymentResultTab}/failure`,t.settingsOrdersTab="orders",t.settingsPaymentTab="payment",t.settingsPaymentTestCardsTab=`${t.settingsPaymentTab}/test-cards`,t.settingsProfileTab="profile",t.settingsSocialTab="social",t.settingsSub
1572scriptionsTab="subscriptions",t.document="document/",t.movableSaleContract="movable-sale-contract",t.vehicleSaleContract="vehicle-sale-contract",t.movableGiftAgreement="movable-gift-agreement",t.assignmentContract="assignment-contract",t.movableLoanAgreement="movable-loan-agreement",t.favoredPropertyUseAgreement="favored-property-use-agreement",t.immovableStateAndInventoryAnnex="immovable-state-and-inventory-annex",t.guaranteeContract="guarantee-contract",t.flatLeaseAgreement="flat-lease-agreement",t.constructionContract="construction-contract",t.agencyContract="agency-contract",t.powerOfAttorneyAgreement="power-of-attorney-agreement",t.leniencyRequest="leniency-request",t.moneyLoanAgreement="money-loan-agreement",t.worksContract="works-contract",t.testamentaryStatement="testamentary-statement",t.adminTemplater=`${t.baseAdmin}/${t.baseTemplater}`,t.adminFileManager=`${t.baseAdmin}/${t.baseFileManager}`,t.adminLawyerManager=`${t.baseAdmin}/${t.baseLawyerManager}`,t.clientContractForm=`${t.baseClient}/${t.baseForm}`,t.clientContractList=`${t.baseClient}/${t.baseList}`,t.clientContractCreate=`${t.baseFromUserType()}/${t.baseContract}/create`,t.videoCall="video"},36416:(Se,k,n)=>{n.d(k,{D:()=>s}); 1573/* 1574 * @license 1575 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1576 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1577 *
1578 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1579 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1580 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1581 * trade secret or copyright law. 1582 * 1583 * Dissemination of this information or reproduction of this material is strictly forbidden 1584 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1585 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1586 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1587 * explicitly covering such access. 1588 * 1589 * The copyright notice above does not evidence any actual or intended publication or disclosure 1590 * of this source code, which includes information that is confidential and/or proprietary, 1591 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1592 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1593 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1594 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1595 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1596 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1597 * IN WHOLE OR IN PART. 1598 */ 1599let s=(()=>{class e{}return e.oneDaysLengthInMilliseconds=864e5,e.oneHoursLengthInMilliseconds=36e5,e.oneMinutesLengthInMilliseconds=6e4,e.segmentHeight=15,e.segmentLengthInMinutes=15,e.weekStartsOn=1,e.eventLimit=2,e})()},5111:(Se,k,n)=>{n.d(k,{L:()=>s}); 1600/* 1601 * @license 1602 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1603 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1604 *
1605 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1606 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1607 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1608 * trade secret or copyright law. 1609 * 1610 * Dissemination of this information or reproduction of this material is strictly forbidden 1611 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1612 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1613 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1614 * explicitly covering such access. 1615 * 1616 * The copyright notice above does not evidence any actual or intended publication or disclosure 1617 * of this source code, which includes information that is confidential and/or proprietary, 1618 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1619 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1620 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1621 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1622 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1623 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1624 * IN WHOLE OR IN PART. 1625 */ 1626let s=(()=>{class e{}return e.dateFormat="yyyy-MM-dd",e.dateTimeFormat="yyyy-MM-dd HH:mm:ss",e.dateTimeFormatShort="yyyy-MM-dd HH:mm",e.timeFormat="HH:mm:ss",e.timeFormatShort="HH:mm",e})()},1182:(Se,k,n)=>{n.d(k,{g:()=>s}); 1627/* 1628 * @license 1629 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1630 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1631 *
1632 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1633 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1634 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1635 * trade secret or copyright law. 1636 * 1637 * Dissemination of this information or reproduction of this material is strictly forbidden 1638 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1639 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1640 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1641 * explicitly covering such access. 1642 * 1643 * The copyright notice above does not evidence any actual or intended publication or disclosure 1644 * of this source code, which includes information that is confidential and/or proprietary, 1645 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1646 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1647 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1648 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1649 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1650 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1651 * IN WHOLE OR IN PART. 1652 */ 1653let s=(()=>{class e{}return e.apiVersion="1.0.0",e})()},77419:(Se,k,n)=>{n.d(k,{t:()=>se});var s=n(97582),e=n(1182),o=n(71997),t=n(94650),v=n(22971),r=n(44224),c=n(36057),C=n(45218),u=n(92961),m=n(5963),a=n(25156),f=n(72218),O=n(50211),N=n(87689),L=n(38151),i=n(39889),M=n(36895),R=n(24006),l=n(92440),h=n(66616),D=n(47044),B=n(21811),K=n(73679),b=n(36704),w=n(42895),X=n(32925),Y=n(7463); 1654/* 1655 * @license 1656 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1657 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1658 *
1659 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1660 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1661 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1662 * trade secret or copyright law. 1663 * 1664 * Dissemination of this information or reproduction of this material is strictly forbidden 1665 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1666 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1667 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1668 * explicitly covering such access. 1669 * 1670 * The copyright notice above does not evidence any actual or intended publication or disclosure 1671 * of this source code, which includes information that is confidential and/or proprietary, 1672 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1673 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1674 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1675 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1676 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1677 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1678 * IN WHOLE OR IN PART. 1679 */const Z=["ngOtpInput"];function G(xe,Ee){1&xe&&(t.TgZ(0,"div",19)(1,"div",20),t._UZ(2,"app-szerzi-logo",21),t.qZA(),t.TgZ(3,"div",22)(4,"h4",23),t._uU(5),t.ALo(6,"translate"),t.qZA()()()),2&xe&&(t.xp6(2),t.Q6J("imgClass","img-fluid"),t.xp6(3),t.Oqu(t.lcZ(6,2,"COMMON.FORM.2FACTOR")))}function Q(xe,Ee){if(1&xe){const re=t.EpF();t.TgZ(0,"div",24)(1,"div",25)(2,"button",26),t.NdJ("click",function(){t.CHM(re);const q=t.oxw();return t.KtG(q.resetToLogin.emit())}),t._uU(3),t.ALo(4,"translate"),t.ALo(5,"translate"),t.qZA()()()}if(2&xe){const re=t.oxw();
1679t.xp6(3),t.hij(" ",re.fromRegister?t.lcZ(4,1,"CLIENT.AUTH_2FACTOR.BACK_TO_REGISTER"):t.lcZ(5,3,"CLIENT.AUTH_2FACTOR.BACK_TO_LOGIN")," ")}}const V=function(xe){return{length:6,allowNumbersOnly:!0,placeholder:" ",inputClass:xe}};let se=class{constructor(Ee,re,le,q,fe,de){this.nzModal=Ee,this.reCaptchaV3Service=re,this.clientService=le,this.formService=q,this.loginRegisterHandler=fe,this.routerService=de,this.fromRegister=!1,this.errorToHandle=new t.vpe,this.resetToLogin=new t.vpe,this.isEmpty=!0,this.pin="",this.TwoFactorErrors=o._2C,this.TwoFactorType=o.QAM,this.App=e.g,this.submitted=!1}ngOnInit(){switch(this.type){case o.QAM.LOGIN:this.buttonText=new u.PR("CLIENT.AUTH_2FACTOR.BUTTON_STATES_LOGIN.CHANGE","CLIENT.AUTH_2FACTOR.BUTTON_STATES_LOGIN.CHANGING","CLIENT.AUTH_2FACTOR.BUTTON_STATES_LOGIN.CHANGED","CLIENT.AUTH_2FACTOR.BUTTON_STATES_LOGIN.FAILED");break;case o.QAM.DELETE:this.buttonText=new u.PR("CLIENT.AUTH_2FACTOR.BUTTON_STATES_DELETE.CHANGE","CLIENT.AUTH_2FACTOR.BUTTON_STATES_DELETE.CHANGING","CLIENT.AUTH_2FACTOR.BUTTON_STATES_DELETE.CHANGED","CLIENT.AUTH_2FACTOR.BUTTON_STATES_DELETE.FAILED");break;case o.QAM.SETUP:this.buttonText=new u.PR("CLIENT.AUTH_2FACTOR.BUTTON_STATES_SETUP.CHANGE","CLIENT.AUTH_2FACTOR.BUTTON_STATES_SETUP.CHANGING","CLIENT.AUTH_2FACTOR.BUTTON_STATES_SETUP.CHANGED","CLIENT.AUTH_2FACTOR.BUTTON_STATES_SETUP.FAILED")}this.form2Fa=this.formService.formGroup2FA(),this.defaultFunction=()=>this.submit2FA()}ngAfterViewInit(){this.type===o.QAM.DELETE&&(0,m.H)(300).pipe((0,r.t)(this)).subscribe(()=>{this.clear()})}submit2FAWithEnter(){this.submitted=!0,this.runFunction=()=>this.submit2FA()}onOtpChange(Ee){this.isEmpty=0===Ee.length,this.pin=Ee,6===this.pin.length&&!this.submitted&&(this.submitted=!0,this.runFunction=()=>this.submit2FA())}clear(){this.ngOtpInputRef.setValue(" "),this.ngOtpInputRef.focusTo(`otp_0_${this.ngOtpInputRef.componentKey}`),this.error=null,this.submitted=!1}submit2FA(){return 6!==this.pin.length?(this.error=o._2C.MISSING,Promise.reject()):this.type===o.QAM.SETUP?this.clientService.confirm2Factor(this.pass,parseInt(this.pin,10)).pipe((0,r.t)(this)).toPromise().then(()=>{this.nzModal.closeAll()},Ee=>(this.error=400===Ee.status?o._2C.INVALID:o._2C.ERROR,Promise.reject())):this.type===o.QAM.DELETE?this.clientService.remove2Factor(this.pass,parseInt(this.pin,10)).pipe((0,r.t)(this)).toPromise().then(()=>{this.nzModal.closeAll()},Ee=>(this.error=400===Ee.status?o._2C.INVALID:o._2C.ERROR,Promise.reject())):this.type===o.QAM.LOGIN?this.reCaptchaV3Service.executeAsPromise(C.L.config.reCaptcha,"",{useGlobalDomain:!1}).then(Ee=>this.clientService.auth2falogin(this.authmail,this.veriftoken,parseInt(this.pin,10),Ee).pipe((0,r.t)(this)).toPromise().then(re=>{this.errorToHandle.emit(),this.loginRegisterHandler.handleLoginRegister(new v.z_(this.authmail,re.kind,re.token,re.userID),c.rp.LOGIN)},re=>(this.errorToHandle.emit(re),this.error=400===re.status?o._2C.INVALID:410===re.status?o._2C.DEREGISTERED:o._2C.ERROR,Promise.reject()))):void 0}};se.\u0275fac=function(Ee){return new(Ee||se)(t.Y36(a.Sf),t.Y36(f.YC),t.Y36(O.y),t.Y36(N.o),t.Y36(L.d),t.Y36(i.c))},se.\u0275cmp=t.Xpm({type:se,selectors:[["app-auth-2fa"]],viewQuery:function(Ee,re){if(1&Ee&&t.Gf(Z,5),2&Ee){let le;t.iGM(le=t.CRH())&&(re.ngOtpInputRef=le.first)}},inputs:{type:"type",pass:"pass",authmail:"authmail",veriftoken:"veriftoken",fromRegister:"fromRegister"},outputs:{errorToHandle:"errorToHandle",resetToLogin:"resetToLogin"},decls:30,vars:29,consts:[[1,"container-fluid","p-h-0","p-v-20","h-100","bg"],[1,"d-flex","align-items-center","justify-content-between","h-100"],[1,"d-none","d-md-block"],[1,"container"],[1,"row","align-items-center"],[1,"col-md-7","col-lg-6","m-h-auto"],["class","row align-items-center justify-content-between m-b-30 w-100 mx-auto",4,"ngIf"],["nz-form","","nzLayout","vertical","nzNoColon","",1,"login-form",3,"formGroup","keydown.enter"],[1,"d-flex","justify-content-center"],[3,"nzErrorTip"],[3,"config","onInputChange"],["ngOtpInput",""],[1,"row","justify-content-center","align-items-center","mb-4","w-100","mx-auto","px-2"],[1,"err","text-center"],[1,"row","justify-content-center","justify-content-sm-between","grid-gap-15","px-2"],["nz-button","",3,"nzType","click"],[1,"text-right"],[1,"button-text-wrap",3,"nzType","nzTextKeys","stickResult","runFunction","defaultFunction"],["class","row justify-content-center align-items-center mt-4",4,"ngIf"],[1,"row","align-items-center","justify-content-between","m-b-30","w-100","mx-auto"],[1,"col-12","col-md-5","col-sm-6","text-center","text-sm-left"],[3,"imgClass"],[1,"col-12","col-md-7","col-sm-6","text-center","text-sm-left","mt-3","mt-sm-0"],[1,"m-b-0"],[1,"row","justify-content-center","align-items-center","mt-4"],[1,"text-center"],["nz-button","","nzType","link",1,"font-size-17","link-like-button","color-primary",3,"click"]],template:function(Ee,re){1&Ee&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"div",4)(5,"div",5),t.YNc(6,G,7,4,"div",6),t.TgZ(7,"form",7),t.NdJ("keydown.enter",function(){return re.submit2FAWithEnter()}),t.TgZ(8,"div",8)(9,"nz-form-item")(10,"nz-form-control",9),t.ALo(11,"translate"),t.TgZ(12,"
1679ng-otp-input",10,11),t.NdJ("onInputChange",function(q){return re.onOtpChange(q)}),t.qZA()()()()(),t.TgZ(14,"div",12)(15,"span",13),t._uU(16),t.ALo(17,"hyphen"),t.ALo(18,"translate"),t.ALo(19,"translate"),t.ALo(20,"translate"),t.ALo(21,"translate"),t.qZA()(),t.TgZ(22,"div",14)(23,"div")(24,"button",15),t.NdJ("click",function(){return re.clear()}),t._uU(25),t.ALo(26,"translate"),t.qZA()(),t.TgZ(27,"div",16),t._UZ(28,"app-multi-state-button",17),t.qZA()()()(),t.YNc(29,Q,6,5,"div",18),t.qZA()()()),2&Ee&&(t.xp6(6),t.Q6J("ngIf",re.type===re.TwoFactorType.LOGIN),t.xp6(1),t.Q6J("formGroup",re.form2Fa),t.xp6(3),t.Q6J("nzErrorTip",t.lcZ(11,13,"CLIENT.AUTH_2FACTOR.MISSING")),t.xp6(2),t.Q6J("config",t.VKq(27,V,re.error===re.TwoFactorErrors.MISSING?"error2fa":re.error===re.TwoFactorErrors.INVALID?"invalid2fa":"")),t.xp6(4),t.hij(" ",t.lcZ(17,15,re.error===re.TwoFactorErrors.INVALID?t.lcZ(18,17,"CLIENT.AUTH_2FACTOR.INVALID"):re.error===re.TwoFactorErrors.MISSING?t.lcZ(19,19,"CLIENT.AUTH_2FACTOR.MISSING"):re.error===re.TwoFactorErrors.ERROR?t.lcZ(20,21,"CLIENT.AUTH_2FACTOR.ERROR"):re.error===re.TwoFactorErrors.DEREGISTERED?t.lcZ(21,23,"CLIENT.AUTH_2FACTOR.DEREGISTERED"):"")," "),t.xp6(8),t.Q6J("nzType",re.isEmpty?"default":"primary"),t.xp6(1),t.hij(" ",t.lcZ(26,25,"CLIENT.AUTH_2FACTOR.CLEAR")," "),t.xp6(3),t.Q6J("nzType",6===re.pin.length?"primary":"default")("nzTextKeys",re.buttonText)("stickResult",!1)("runFunction",re.runFunction)("defaultFunction",re.defaultFunction),t.xp6(1),t.Q6J("ngIf",re.type===re.TwoFactorType.LOGIN))},dependencies:[M.O5,R._Y,R.JL,l.df,R.sg,h.ix,D.w,B.dQ,K.t3,K.SK,b.Lr,b.Nx,b.Fd,u.P4,w.i,X.X$,Y.N],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%] input.error2fa:-moz-placeholder-shown{border:2px solid #de4436!important}[_nghost-%COMP%] input.error2fa:placeholder-shown{border:2px solid #de4436!important}[_nghost-%COMP%] input.invalid2fa{border:2px solid #de4436!important}.err[_ngcontent-%COMP%]{color:#de4436!important}']}),se=(0,s.gn)([(0,r.c)()],se)},41342:(Se,k,n)=>{n.d(k,{M:()=>o});var s=n(76096),e=n(22971); 1680/* 1681 * @license 1682 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1683 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1684 *
1685 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1686 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1687 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1688 * trade secret or copyright law. 1689 * 1690 * Dissemination of this information or reproduction of this material is strictly forbidden 1691 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1692 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1693 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1694 * explicitly covering such access. 1695 * 1696 * The copyright notice above does not evidence any actual or intended publication or disclosure 1697 * of this source code, which includes information that is confidential and/or proprietary, 1698 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1699 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1700 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1701 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1702 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1703 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1704 * IN WHOLE OR IN PART. 1705 */const o=[{ID:"demo1",name:"dr. \xdcgyv\xe9d Pr\xf3ba G\xe1bor",avatar:"assets/images/avatars/thumb-4.webp",msg:[{avatar:"assets/images/avatars/thumb-4.webp",text:"\xdcdv\xf6zl\xf6m, miben seg\xedthetek?",from:"opposite",fromUserID:"demo1",time:(Date.now()-33e5).toString(),timestamp:Date.now()-33e5,publicID:"123456",msgType:"text"},{avatar:"",text:"K\xe9sz\xedtettem egy lak\xe1s b\xe9rleti szerz\u0151d\xe9st, melyet megosztottam a b\xe9rl\u0151mmel. A legt\xf6bb adatot felvitt\xfck \xe9s nagyj\xe1b\xf3l \xe9rt\xfcnk mindent, de lenne n\xe9h\xe1ny egyedi ig\xe9ny\xfcnk, amelyeket nem tudtunk hozz\xe1adni a szerz\u0151d\xe9shez. Ebben tudna seg\xedteni?",from:"me",fromUserID:"me",time:(Date.now()-27e5).toString(),timestamp:Date.now()-27e5,publicID:"123456",msgType:"text"},{avatar:"assets/images/avatars/thumb-4.webp",text:"\xd6r\xf6mmel! A Szerzi automatikusan megosztotta velem az \xd6n szerz\u0151d\xe9s\xe9t. \xcdr\xe1sban szeretn\xe9, hogy seg\xedtsek, vagy vide\xf3-besz\xe9lget\xe9sben?",from:"opposite",fromUserID:"demo1",time:(Date.now()-24e5).toString(),timestamp:Date.now()-24e5,publicID:"123456",msgType:"text"},{avatar:"",text:"Vide\xf3-besz\xe9lget\xe9sben.",from:"me",fromUserID:"me",time:(Date.now()-228e4).toString(),timestamp:Date.now()-228e4,publicID:"123456",msgType:"text"},{avatar:"assets/images/avatars/thumb-4.webp",text:"A megbesz\xe9ltek szerint k\xfcld\xf6m az aj\xe1nlatot.",from:"opposite",fromUserID:"demo1",time:(Date.now()-18e4).toString(),timestamp:Date.now()-18e4,publicID:"123456",msgType:"text"},{identifier:"offerID1",avatar:"",text:null,from:"opposite",fromUserID:"demo1",time:(Date.now()-6e4).toString(),timestamp:Date.now()-6e4,publicID:"123456",msgType:"offer",isActiveOffer:!0,offer:{type:s.Cb.Offer,ID:"offerID1",userID:"demo1",chatID:"demo1",state:{type:s.Ff.Opened,brief:"Lak\xe1s b\xe9rleti szerz\u0151d\xe9s kib\u0151v\xedt\xe9se egyedi ig\xe9nyekkel",deadline:Date.now()+864e5,breakdown:{items:[{name:"Ig\xe9nyek pontos\xedt\xe1sa",minutes:30,price:6e3},{name:"Szerz\u0151d\xe9s elk\xe9sz\xedt\xe9se",minutes:90,price:25e3}]},currency:"HUF",attempts:[]},originNumber:0,originID:"offerID1",timestamp:Date.now()-6e4}}],time:(Date.now()-6e4).toString(),state:{timestamp:Date.now()-6e4,responsibleID:"123456",type:s.LJ.Created},participants:[{kind:e.FW.Lawyer,name:"dr. \xdcgyv\xe9d Pr\xf3ba G\xe1bor",userID:"demo1",lastSeen:0}],limitedWidgets:[{widgetType:"Offer",widgetID:"offerID1"}]},{ID:"demo2",name:"P\xe9lda B.",avatar:"assets/images/avatars/thumb-3.webp",msg:[{avatar:"assets/images/avatars/thumb-3.webp",text:"Szervusz ism\xe9t! Milyen volt a h\xe9tv\xe9ge? Megcsin\xe1ltam az \xfaj szerz\u0151d\xe9st \xe9s megosztottam Veled. Az im\xe9nt egyeztettem egy \xdcgyv\xe9ddel, aki beleszerkesztette a megbesz\xe9lt dolgokat. K\xe9rlek csekkold le!",from:"opposite",fromUserID:"demo2",time:(Date.now()-18e5).toString(),timestamp:Date.now()-18e5,publicI
1705D:"123456",msgType:"text"},{avatar:"",text:"J\xf3 lett \xe9s \xe9rthet\u0151! K\xf6szi, hogy kit\xe9rtetek halad\xe9kra, amit k\xe9rtem. \xcdgy m\xe1r minden rendben.",from:"me",fromUserID:"me",time:(Date.now()-12e5).toString(),timestamp:Date.now()-12e5,publicID:"123456",msgType:"text"},{avatar:"assets/images/avatars/thumb-3.webp",text:"Rendben, a szerz\u0151d\xe9st let\xf6lthet\u0151v\xe9 tettem, m\xe9g egyszer n\xe9zz\xfck \xe1t \xe9s megk\xfcld\xf6m al\xe1\xedrva.",from:"opposite",fromUserID:"demo2",time:(Date.now()-6e5).toString(),timestamp:Date.now()-6e5,publicID:"123456",msgType:"text"}],time:(Date.now()-6e5).toString(),state:{timestamp:Date.now()-6e5,responsibleID:"123456",type:s.LJ.Created},participants:[{kind:e.FW.Client,name:"P\xe9lda B.",userID:"demo2",lastSeen:0}],limitedWidgets:[]},{ID:"demo3",name:"P\xe9lda Partner Szilvia",avatar:"assets/images/avatars/thumb-1.webp",msg:[{avatar:"assets/images/avatars/thumb-1.webp",text:"Felvittem a v\xe1llalkoz\xe1som adatait \xe9s javaslatot tettem a k\xf6lcs\xf6n \xf6sszegszer\u0171s\xe9g\xe9re vonatkoz\xf3an. Bizony\xe1ra l\xe1tja a szerz\u0151d\xe9s esem\xe9nyt\xf6rt\xe9net\xe9ben. K\xe9rem n\xe9zze \xe1t, \xe9s ha mindent rendben tal\xe1l, akkor k\xf6ss\xfck meg a szerz\u0151d\xe9st!",from:"opposite",fromUserID:"demo3",time:(Date.now()-186e4).toString(),timestamp:Date.now()-186e4,publicID:"123456",msgType:"text"},{avatar:"",text:"Rendben, nagyon sz\xe9pen k\xf6sz\xf6n\xf6m! M\xe1ris n\xe9zem! :-)",from:"me",fromUserID:"me",time:(Date.now()-126e4).toString(),timestamp:Date.now()-126e4,publicID:"123456",msgType:"text"},{avatar:"",text:"Minden rendben! Szilvi, a holnapi d\xe1tum megfelel\u0151 Neked al\xe1\xedr\xe1sra?",from:"me",fromUserID:"me",time:(Date.now()-96e4).toString(),timestamp:Date.now()-96e4,publicID:"123456",msgType:"text"},{avatar:"assets/images/avatars/thumb-1.webp",text:"Igen, szuper!",from:"opposite",fromUserID:"demo3",time:(Date.now()-36e4).toString(),timestamp:Date.now()-36e4,publicID:"123456",msgType:"text"},{avatar:"assets/images/avatars/thumb-1.webp",text:"Mindazon\xe1ltal ak\xe1r elektronikusan is al\xe1\xedrhatjuk, mondjuk AVDH-val.",from:"opposite",fromUserID:"demo3",time:(Date.now()-3e5).toString(),timestamp:Date.now()-3e5,publicID:"123456",msgType:"text"}],time:(Date.now()-3e5).toString(),state:{timestamp:Date.now()-3e5,responsibleID:"123456",type:s.LJ.Created},participants:[{kind:e.FW.Client,name:"P\xe9lda Partner Szilvia",userID:"demo3",lastSeen:0}],limitedWidgets:[]}]},2293:(Se,k,n)=>{n.d(k,{k:()=>C});var s=n(52835),e=n(94650),o=n(36895),t=n(20545),v=n(37570),r=n(32925);function c(u,m){1&u&&e._UZ(0,"nz-skeleton-element",2),2&u&&e.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0)}let C=(()=>{class u{constructor(){this.showSkeleton=!0}}return u.\u0275fac=function(a){return new(a||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["app-contract-progress-logo"]],inputs:{isComplete:"isComplete",style:"style"},decls:4,vars:12,consts:[["nzType","avatar","nzSize","large","nzShape","square",3,"nzActive",4,"ngIf"],["nz-tooltip","",1,"w-100","h-100",3,"src","alt","ngStyle","nzTooltipTitle","nzTooltipMouseEnterDelay","hidden","load"],["nzType","avatar","nzSize","large","nzShape","square",3,"nzActive"]],template:function(a,f){1&a&&(e.YNc(0,c,1,2,"nz-skeleton-element",0),e.TgZ(1,"img",1),e.NdJ("load",function(){return f.showSkeleton=!1}),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&a&&(e.Q6J("ngIf",f.showSkeleton),e.xp6(1),e.Q6J("src",f.isComplete?"assets/images/done-contract.svg":"assets/images/half-done-contract.svg",e.LSH)("alt",f.isComplete?"Contract complete":"Contract incomplete")("ngStyle",f.style?f.style:null)("nzTooltipTitle",f.isComplete?e.lcZ(2,8,"CLIENT.CONTRACTS.GREEN_DESCRIPTION"):e.lcZ(3,10,"CLIENT.CONTRACTS.OTHER_DESCRIPTION"))("nzTooltipMouseEnterDelay",.35)("hidden",f.showSkeleton)("@imageLoadAnimation",f.showSkeleton?"loading":"loaded"))},dependencies:[o.O5,o.PC,t.Xw,t.yx,v.SY,r.X$],encapsulation:2,data:{animation:[s.Ln,s.nV]}}),u})()},88397:(Se,k,n)=>{n.d(k,{G:()=>re});var s=n(97582),e=n(71997),o=n(44224),t=n(28736),v=n(5963),r=n(52835),c=n(94650),C=n(25156),u=n(47959); 1706/* 1707 * @license 1708 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1709 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1710 *
1711 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1712 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1713 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1714 * trade secret or copyright law. 1715 * 1716 * Dissemination of this information or reproduction of this material is strictly forbidden 1717 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1718 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1719 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1720 * explicitly covering such access. 1721 * 1722 * The copyright notice above does not evidence any actual or intended publication or disclosure 1723 * of this source code, which includes information that is confidential and/or proprietary, 1724 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1725 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1726 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1727 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1728 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1729 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1730 * IN WHOLE OR IN PART. 1731 */const m=["detailsContainer"],a=["lawyerFromRight"];function f(le,q){1&le&&c._UZ(0,"nz-skeleton-element",15),2&le&&c.Q6J("nzActive",!0)}const O=function(){return{timing:.001}},N=function(le){return{value:":leave",params:le}};function L(le,q){1&le&&(c.TgZ(0,"div",12)(1,"div",13),c.YNc(2,f,1,1,"nz-skeleton-element",14),c.ALo(3,"numberArray"),c.qZA()()),2&le&&(c.Q6J("@skeletonPosAbsLeave",c.VKq(5,N,c.DdM(4,O))),c.xp6(2),c.Q6J("ngForOf",c.lcZ(3,2,8)))}function i(le,q){if(1&le&&(c._UZ(0,"p",17),c.ALo(1,"safe"),c.ALo(2,"definiteArticle")),2&le){const fe=c.oxw(2);c.Q6J("innerHTML",c.xi3(1,1,c.lcZ(2,4,fe.content),"html"),c.oJD)}}const M=function(le){return{contractTitle:le}};function R(le,q){if(1&le&&(c.TgZ(0,"p"),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"definiteArticle"),c.qZA()),2&le){const fe=c.oxw(2);c.xp6(1),c.hij(" ",c.xi3(2,1,"CLIENT.HELP.CONTRACT_DESCRIPTION_WITH_TITLE",c.VKq(6,M,c.lcZ(3,4,fe.contractTitle)))," ")}}function l(le,q){1&le&&(c.TgZ(0,"p"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&le&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"CLIENT.HELP.CONTRACT_DESCRIPTION")," "))}function h(le,q){if(1&le&&(c.TgZ(0,"div",13),c.YNc(1,i,3,6,"p",16),c.YNc(2,R,4,8,"p",7),c.YNc(3,l,3,3,"p",7),c.qZA()),2&le){const fe=c.oxw();c.xp6(1),c.Q6J("ngIf",fe.content),c.xp6(1),c.Q6J("ngIf",!fe.content&&fe.contractTitle),c.xp6(1),c.Q6J("ngIf",!fe.content&&!fe.contractTitle)}}const D=function(le){return{version:le}};function B(le,q){if(1&le&&(c.TgZ(0,"div")(1,"p"),c._UZ(2,"i",18),c._uU(3),c.ALo(4,"translate"),c.qZA()()),2&le){const fe=c.oxw();c.xp6(3),c.hij(" ",c.xi3(4,1,"CLIENT.CONTRACTS.PROGRESSES.INFO.CONTRACT_VERSION_BRIEF",c.VKq(4,D,fe.version))," ")}}function K(le,q){1&le&&(c.TgZ(0,"div",19),c._UZ(1,"nz-skeleton-element",15)(2,"nz-skeleton-element",15)(3,"nz-skeleton-element",20),c.TgZ(4,"div",21)(5,"div")(6,"div",22)(7,"div",23),c._UZ(8,"nz-skeleton-element",24),c.qZA()(),c.TgZ(9,"div",25),c._UZ(10,"nz-skeleton-element",15),c.qZA()()()()),2&le&&(c.Q6J("@skeletonPosAbsLeave",c.VKq(8,N,c.DdM(7,O))),c.xp6(1),c.Q6J("nzActive",!0),c.xp6(1),c.Q6J("nzActive",!0),c.xp6(1),c.Q6J("nzActive",!0),c.xp6(5),c.Q6J("nzSize",75)("nzActive",!0),c.xp6(2),c.Q6J("nzActive",!0))}function b(le,q){1&le&&(c.TgZ(0,"div",23),c._UZ(1,"nz-skeleton-element",24),c.qZA()),2&le&&(c.Q6J("@skeletonPosAbsLeave",c.VKq(4,N,c.DdM(3,O))),c.xp6(1),c.Q6J("nzSize",75)("nzActive",!0))}function w(le,q){if(1&le){const fe=c.EpF();c.TgZ(0,"div",21)(1,"div",28)(2,"div",22),c.YNc(3,b,2,6,"div",29),c.TgZ(4,"img",30),c.NdJ("load",function(){const Ve=c.CHM(fe).$implicit,W=c.oxw(2);return c.KtG(W.setIconLoaded(Ve.name,!0))}),c.qZA()(),c.TgZ(5,"div",31),c._uU(6),c.qZA()()()}if(2&le){const fe=q.$implicit,de=c.oxw(2);c.xp6(3),c.Q6J("ngIf",!de.iconLoaded[fe.name]),c.xp6(1),c.Q6J("hidden",!de.iconLoaded[fe.name])("src",fe.icon?de.ClientRoutes.apiRouteContractIcon(fe.icon):"assets/images/joker-card-light.svg",c.LSH)("@imageLoadAnimation",de.iconLoaded[fe.name]?"loaded":"loading"),c.xp6(2),c.hij(" ",fe.name," ")}}function X(le,q){if(1&le&&(c.TgZ(0,"div",26),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"definiteArticle"),c.YNc(4,w,7,5,"div",27),c.qZA()),2&le){const fe=c.oxw();c.xp6(1),c.hij(" ",c.xi3(2,3,"CLIENT.HELP.DEPENDENCIES",c.VKq(8,M,c.lcZ(3,6,fe.contractTitle)))," "),c.xp6(3),c.Q6J("ngForOf",fe.dependencies)("ngForTrackBy",fe.trackByDependency)}}function Y(le,q){1&le&&(c.TgZ(0,"div",35),c._UZ(1,"nz-skeleton-element",36),c.qZA()),2&le&&(c.Q6J("@skeletonPosAbsLeave",c.VKq(3,N,c.DdM(2,O))),c.xp6(1),c.Q6J("nzActive",!0))}function Z(le,q){if(1&le&&c._UZ(0,"app-need-help-button",37),2&le){const fe=c.oxw(2);c.Q6J("progressID",fe.progressID)("matchmakingCategoryKind",fe.matchmakingCategoryKind)}}function G(le,q){if(1&le&&(c.TgZ(0,"div",32),c.YNc(1,Y,2,5,"div",33),c.YNc(2,Z,1,2,"app-need-help-button",34),c.qZA()),2&le){const fe=c.oxw();c.xp6(1),c.Q6J("ngIf",fe.isLoadingDependencies),c.xp6(1),c.Q6J("ngIf",!fe.isLoadingDependencies)}}function Q(le,q){1&le&&(c.ynx(0),c._uU(1),c.ALo(2,"translate"),c.BQk()),2&le&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"CLIENT.CONTRACTS.READ_UNDERSTOOD")))}function V(le,q){1&le&&(c.ynx(0),c._uU(1),c.ALo(2,"translate"),c.BQk()),2&le&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"COMMON.OK")))}function se(le,q){if(1&le){const fe=c.EpF();c.TgZ(0,"div",38)(1,"button",39),c.NdJ("click",function(){c.CHM(fe);const it=c.oxw();return c.KtG(it.modal.close())}),c.YNc(2,Q,3,3,"ng-container",7),c.YNc(3,V,3,3,"ng-container",7),c.qZA(),c.TgZ(4,"div",40),c._UZ(5,"app-feedback",41),c.ALo(6,"definiteArticle"),c.qZA()()}if(2&le){const fe=c.oxw();c.xp6(2),c.Q6J("ngIf",fe.isUnderstood),c.xp6(1),c.Q6J("ngIf",!fe.isUnderstood),c.xp6(2),c.Q6J("feature",fe.FeedbackFeature.Contract)("unit",fe.FeedbackUnit.Details)("aspect",fe.aspect)("title",c.lcZ(6,6,fe.contractTitle))}}const xe=function(le){return{smallLawyerFromRight:le}},Ee=function(le){return{smallLawyerFromLeft:le}};let re=class{constructor(q,fe){this.modal=q,this.contractsService=fe,this.isDemo=!1,this.isUnderstood=!1,this.shortDescription=!1,this.dependencies=[],this.iconLoaded={},this.isLoadingDependencies=!0,this.FeedbackFeature=e.lrp,this.FeedbackUnit=e._0Z,this.ClientRoutes=t.i}ngAfterViewInit(){this.loadDependencies(this.aspect),this.aspect=this.aspect.replace(" ","-"),this.checkContainerSize()}loadDependencies(q){q?(this.isLoadingDependencies=!0,this.contractsService.getAvailableContracts().then(fe=>{const de=fe.find(it=>it.name===q);this.version=de.version,de&&de.dependencies&&de.dependencies.length>
17310&&de.dependencies.forEach(it=>{const Ve=fe.find(W=>W.name===it.name);Ve&&this.dependencies.push({name:Ve.formDisplayElements.name,icon:Ve.formDisplayElements.editor.iconLight})}),this.isLoadingDependencies=!1,(0,v.H)(0).pipe((0,o.t)(this)).subscribe(()=>{this.checkContainerSize()})},fe=>{this.isLoadingDependencies=!1,(0,v.H)(0).pipe((0,o.t)(this)).subscribe(()=>{this.checkContainerSize()})})):(this.isLoadingDependencies=!0,this.contractsService.getAvailableContracts().then(fe=>{const de=fe.find(it=>it.metadata.title==this.contractTitle);this.version=de.version,this.isLoadingDependencies=!1,(0,v.H)(0).pipe((0,o.t)(this)).subscribe(()=>{this.checkContainerSize()})},fe=>{this.isLoadingDependencies=!1,(0,v.H)(0).pipe((0,o.t)(this)).subscribe(()=>{this.checkContainerSize()})}))}setIconLoaded(q,fe){this.iconLoaded[q]=fe}trackByDependency(q,fe){return fe.name}checkContainerSize(){this.detailsContainer&&(this.shortDescription=this.detailsContainer.nativeElement.clientHeight<200,this.lawyerFromRight.nativeElement.style.top=this.lawyerFromRight&&!this.shortDescription?this.detailsContainer.nativeElement.clientHeight-100+"px":"65px")}};re.\u0275fac=function(q){return new(q||re)(c.Y36(C.Lf),c.Y36(u.W))},re.\u0275cmp=c.Xpm({type:re,selectors:[["app-contract-description"]],viewQuery:function(q,fe){if(1&q&&(c.Gf(m,5),c.Gf(a,5)),2&q){let de;c.iGM(de=c.CRH())&&(fe.detailsContainer=de.first),c.iGM(de=c.CRH())&&(fe.lawyerFromRight=de.first)}},inputs:{content:"content",progressID:"progressID",contractTitle:"contractTitle",aspect:"aspect",isDemo:"isDemo",isUnderstood:"isUnderstood",matchmakingCategoryKind:"matchmakingCategoryKind"},decls:18,vars:18,consts:[["detailsContainer",""],["type","image/svg+xml","data",c.$Z9`assets/images/contract-details/lawyer-from-right.svg`,1,"lawyerFromRight","pointer-events-none",3,"ngClass"],["lawyerFromRight",""],["type","image/svg+xml","data",c.$Z9`assets/images/contract-details/lawyer-from-left.svg`,1,"lawyerFromLeft","pointer-events-none",3,"ngClass"],[1,"position-relative"],["class","w-100",4,"ngIf"],["class","markdown listWithMargin",4,"ngIf"],[4,"ngIf"],["class","markdown listWithMargin text-gray w-100",4,"ngIf"],["class","markdown listWithMargin text-gray m-b-10",4,"ngIf"],["class","text-center w-100 position-relative",4,"ngIf"],["class","p-b-15 w-100",4,"nzModalFooter"],[1,"w-100"],[1,"markdown","listWithMargin"],["class","w-100 skeleton-h-20px","nzType","input","nzSize","small",3,"nzActive",4,"ngFor","ngForOf"],["nzType","input","nzSize","small",1,"w-100","skeleton-h-20px",3,"nzActive"],["class","descriptionContent",3,"innerHTML",4,"ngIf"],[1,"descriptionContent",3,"innerHTML"],["nz-icon","","nzType","check","nzTheme","outline",1,"m-r-4"],[1,"markdown","listWithMargin","text-gray","w-100"],["nzType","input","nzSize","small",1,"w-80","skeleton-h-20px",3,"nzActive"],[1,"vertical-align-middle"],[1,"position-relative","d-inline-block","vertical-align-middle"],[1,"ant-skeleton-header","pr-0","mb-2","vertical-align-middle"],["nzType","avatar",3,"nzSize","nzActive"],[1,"d-inline-block","mt-auto","mb-auto","vertical-align-middle","m-l-5","w-30"],[1,"markdown","listWithMargin","text-gray","m-b-10"],["class","vertical-align-middle",4,"ngFor","ngForOf","ngForTrackBy"],[1,"d-flex","flex-column","align-items-center","flex-md-row","align-items-md-left"],["class","ant-skeleton-header pr-0 mb-2 vertical-align-middle",4,"ngIf"],["alt","image",1,"mw-100",2,"width","75px",3,"hidden","src","load"],[1,"d-inline-block","mt-auto","mb-auto","vertical-align-middle","m-l-5"],[1,"text-center","w-100","position-relative"],["class","text-center w-100",4,"ngIf"],[3,"progressID","matchmakingCategoryKind",4,"ngIf"],[1,"text-center","w-100"],["nzType","input","nzSize","large",1,"w-60",3,"nzActive"],[3,"progressID","matchmakingCategoryKind"],[1,"p-b-15","w-100"],["nz-button","","nzType","primary",3,"click"],[1,"row","justify-content-end","w-100"],[1,"feedback-positioning",3,"feature","unit","aspect","title"]],template:function(q,fe){1&q&&(c.TgZ(0,"div",null,0)(2,"object",1,2),c._uU(4),c.ALo(5,"translate"),c.qZA(),c.TgZ(6,"object",3),c._uU(7),c.ALo(8,"translate"),c.qZA(),c.TgZ(9,"div",4),c.YNc(10,L,4,7,"div",5),c.YNc(11,h,4,3,"div",6),c.qZA(),c.YNc(12,B,5,6,"div",7),c.TgZ(13,"div",4),c.YNc(14,K,11,10,"div",8),c.YNc(15,X,5,10,"div",9),c.qZA(),c.YNc(16,G,3,2,"div",10),c.qZA(),c.YNc(17,se,7,8,"div",11)),2&q&&(c.xp6(2),c.Q6J("ngClass",c.VKq(14,xe,fe.shortDe
1731scription)),c.xp6(2),c.hij(" ",c.lcZ(5,10,"COMMON.WARNING.SVG_SUPPORT")," "),c.xp6(2),c.Q6J("ngClass",c.VKq(16,Ee,fe.shortDescription)),c.xp6(1),c.hij(" ",c.lcZ(8,12,"COMMON.WARNING.SVG_SUPPORT")," "),c.xp6(3),c.Q6J("ngIf",fe.isLoadingDependencies),c.xp6(1),c.Q6J("ngIf",!fe.isLoadingDependencies),c.xp6(1),c.Q6J("ngIf",fe.version),c.xp6(2),c.Q6J("ngIf",fe.isLoadingDependencies),c.xp6(1),c.Q6J("ngIf",!fe.isLoadingDependencies&&fe.contractTitle&&fe.dependencies&&fe.dependencies.length>0),c.xp6(1),c.Q6J("ngIf",!fe.isDemo))},styles:['@charset "UTF-8";.lawyerFromRight[_ngcontent-%COMP%]{display:block;position:absolute;height:275px;width:auto;z-index:2;top:55px;right:-94px}.lawyerFromLeft[_ngcontent-%COMP%]{display:block;position:absolute;height:275px;width:auto;z-index:2;top:40px;left:-110px}.smallLawyerFromRight[_ngcontent-%COMP%]{height:150px;top:65px;right:-51px}.smallLawyerFromLeft[_ngcontent-%COMP%]{height:150px;left:-60px}'],data:{animation:[r.Ln,r.nV]}}),re=(0,s.gn)([(0,o.c)()],re)},99983:(Se,k,n)=>{n.d(k,{L:()=>pt});var s=n(97582),e=n(71997),o=n(76096),t=n(24006),v=n(5111),r=n(2986),C=n(6947),u=n(59674),m=n(28736),a=n(92961),f=n(44224),O=n(37623),N=n(17445),L=n(5963),i=n(94650),M=n(25156),R=n(87689),l=n(3674),h=n(32925),D=n(50211),B=n(39889); 1732/* 1733 * @license 1734 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1735 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1736 *
1737 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1738 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1739 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1740 * trade secret or copyright law. 1741 * 1742 * Dissemination of this information or reproduction of this material is strictly forbidden 1743 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1744 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1745 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1746 * explicitly covering such access. 1747 * 1748 * The copyright notice above does not evidence any actual or intended publication or disclosure 1749 * of this source code, which includes information that is confidential and/or proprietary, 1750 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1751 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1752 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1753 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1754 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1755 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1756 * IN WHOLE OR IN PART. 1757 */const K=["deadlinePicker"],b=["defaultAgencyDownloadText"];function w(ce,Me){1&ce&&(i.TgZ(0,"span",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&ce&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CLIENT.CONTRACTS.FIELD.OPTIONAL")," "))}const X=function(){return{}};function Y(ce,Me){if(1&ce&&i.YNc(0,w,3,3,"span",27),2&ce){const he=Me.controlName,Ye=i.oxw(2);i.Q6J("ngIf",!(Ye.offerForm&&Ye.offerForm.controls[he].validator&&Ye.offerForm.controls[he].validator(i.DdM(1,X))&&Ye.offerForm.controls[he].validator(i.DdM(2,X)).required))}}function Z(ce,Me){1&ce&&i.GkF(0,29)}const G=function(ce){return{maxLength:ce}};function Q(ce,Me){if(1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce){const he=i.oxw().$implicit;i.xp6(1),i.hij("",i.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.BRIEF.MAX_LENGTH",i.VKq(4,G,he.errors.maxlength.requiredLength))," ")}}const V=function(ce){return{minLength:ce}};function se(ce,Me){if(1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce){const he=i.oxw().$implicit;i.xp6(1),i.hij("",i.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.BRIEF.MIN_LENGTH",i.VKq(4,V,he.errors.minlength.requiredLength))," ")}}function xe(ce,Me){1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce&&(i.xp6(1),i.hij("",i.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.BRIEF.REQUIRED")," "))}function Ee(ce,Me){if(1&ce&&(i.YNc(0,Q,3,6,"ng-container",23),i.YNc(1,se,3,6,"ng-container",23),i.YNc(2,xe,3,3,"ng-container",23)),2&ce){const he=Me.$implicit;i.Q6J("ngIf",he.hasError("maxlength")),i.xp6(1),i.Q6J("ngIf",he.hasError("minlength")),i.xp6(1),i.Q6J("ngIf",he.hasError("required"))}}function re(ce,Me){1&ce&&i.GkF(0,29)}function le(ce,Me){1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.DEADLINE.REQUIRED")))}const q=function(ce,Me){return{minDateDiffValue:ce,minDateDiffUnit:Me}};function fe(ce,Me){if(1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"translate"),i.BQk()),2&ce){const he=i.oxw(3);i.xp6(1),i.Oqu(i.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.DEADLINE.MIN_DATE_DIFF",i.WLB(6,q,he.minDateDiffHours,i.lcZ(3,4,"COMMON.DATE_AFTER.HOUR"))))}}const de=function(ce,Me){return{maxDateDiffValue:ce,maxDateDiffUnit:Me}};function it(ce,Me){if(1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"translate"),i.BQk()),2&ce){const he=i.oxw(3);i.xp6(1),i.Oqu(i.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.DEADLINE.MAX_DATE_DIFF",i.WLB(6,de,he.maxDateDiffDays,i.lcZ(3,4,"COMMON.DATE_AFTER.DAY"))))}}function Ve(ce,Me){if(1&ce&&(i.YNc(0,le,3,3,"ng-container",23),i.YNc(1,fe,4,9,"ng-container",23),i.YNc(2,it,4,9,"ng-container",23)),2&ce){const he=Me.$implicit;i.Q6J("ngIf",he.hasError("required")),i.xp6(1),i.Q6J("ngIf",he.hasError("minDateDiff")),i.xp6(1),i.Q6J("ngIf",he.hasError("maxDateDiff"))}}function W(ce,Me){if(1&ce){const he=i.EpF();
1757i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(he);const He=i.oxw(2);return i.KtG(He.selectToday())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&ce&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CLIENT.CONTRACTS.FIELD.DATE.TODAY")," "))}function ee(ce,Me){1&ce&&i.GkF(0,29)}function te(ce,Me){1&ce&&(i.TgZ(0,"span",28),i._UZ(1,"br"),i._uU(2),i.ALo(3,"translate"),i.qZA()),2&ce&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"CLIENT.CONTRACTS.FIELD.OPTIONAL")," "))}function Pe(ce,Me){if(1&ce&&i.YNc(0,te,4,3,"span",27),2&ce){const he=Me.controlName,Ye=i.oxw().$implicit;i.Q6J("ngIf",!(Ye&&Ye.controls[he].validator&&Ye.controls[he].validator(i.DdM(1,X))&&Ye.controls[he].validator(i.DdM(2,X)).required))}}function Ue(ce,Me){1&ce&&i.GkF(0,29)}function Ae(ce,Me){if(1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce){const he=i.oxw().$implicit;i.xp6(1),i.Oqu(i.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.NAME.MAX_LENGTH",i.VKq(4,G,he.errors.maxlength.requiredLength)))}}function Fe(ce,Me){if(1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce){const he=i.oxw().$implicit;i.xp6(1),i.Oqu(i.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.NAME.MIN_LENGTH",i.VKq(4,V,he.errors.minlength.requiredLength)))}}function Qe(ce,Me){1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.NAME.REQUIRED")))}function rt(ce,Me){if(1&ce&&(i.YNc(0,Ae,3,6,"ng-container",23),i.YNc(1,Fe,3,6,"ng-container",23),i.YNc(2,Qe,3,3,"ng-container",23)),2&ce){const he=Me.$implicit;i.Q6J("ngIf",he.hasError("maxlength")),i.xp6(1),i.Q6J("ngIf",he.hasError("minlength")),i.xp6(1),i.Q6J("ngIf",he.hasError("required"))}}function Ct(ce,Me){if(1&ce){const he=i.EpF();i.TgZ(0,"i",50),i.NdJ("click",function(){i.CHM(he);const He=i.oxw().index,at=i.oxw(3);return i.KtG(at.removeItem(He))}),i.ALo(1,"translate"),i.qZA()}2&ce&&i.Q6J("nzTooltipTitle",i.lcZ(1,2,"CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.REMOVE_TASK"))("nzTooltipTrigger","hover")}function ht(ce,Me){1&ce&&i.GkF(0,29)}const mt=function(ce){return{max:ce}};function ye(ce,Me){if(1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce){const he=i.oxw().$implicit;i.xp6(1),i.hij("",i.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.MINUTES.MAX",i.VKq(4,mt,he.errors.max.max))," ")}}const Ce=function(ce){return{min:ce}};function j(ce,Me){if(1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce){const he=i.oxw().$implicit;i.xp6(1),i.hij("",i.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.MINUTES.MIN",i.VKq(4,Ce,he.errors.min.min))," ")}}function _e(ce,Me){1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce&&(i.xp6(1),i.hij("",i.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.MINUTES.REQUIRED")," "))}function F(ce,Me){if(1&ce&&(i.YNc(0,ye,3,6,"ng-container",23),i.YNc(1,j,3,6,"ng-container",23),i.YNc(2,_e,3,3,"ng-container",23)),2&ce){const he=Me.$implicit;i.Q6J("ngIf",he.hasError("max")),i.xp6(1),i.Q6J("ngIf",he.hasError("min")),i.xp6(1),i.Q6J("ngIf",he.hasError("required"))}}function ne(ce,Me){if(1&ce&&(i.TgZ(0,"span",51),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&ce){const he=i.oxw().index,Ye=i.oxw(3);i.xp6(1),i.AsE(" ",Ye.offer.creation.breakdown.items[he].minutes/60," ",i.lcZ(2,2,"COMMON.DATE_AFTER.HOUR")," ")}}function U(ce,Me){if(1&ce&&(i.TgZ(0,"span",51),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"translate"),i.qZA()),2&ce){const he=i.oxw().index,Ye=i.oxw(3);i.xp6(1),i.lnq(" ",i.lcZ(2,3,"CLIENT.CONVERSATIONS.OFFER.MINUTES_NEARLY")," ",Ye.Math.ceil(100*(Ye.offer.creation.breakdown.items[he].minutes/60+Ye.Number.EPSILON))/100," ",i.lcZ(3,5,"COMMON.DATE_AFTER.HOUR")," ")}}function et(ce,Me){1&ce&&i.GkF(0,29)}function ct(ce,Me){if(1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"number"),i.BQk()),2&ce){const he=i.oxw().$implicit;i.xp6(1),i.hij("",i.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.PRICE.MAX",i.VKq(8,mt,i.Dn7(3,4,he.errors.max.max,"1.0-0","hu")))," ")}}function ft(ce,Me){if(1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce){const he=i.oxw().$implicit;i.xp6(1),i.hij("",i.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.PRICE.MIN",i.VKq(4,Ce,he.errors.min.min))," ")}}function Ze(ce,Me){1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce&&(i.xp6(1),i.hij("",i.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.PRICE.REQUIRED")," "))}function Oe(ce,Me){if(1&ce&&(i.YNc(0,ct,4,10,"ng-container",23),i.YNc(1,ft,3,6,"ng-container",23),i.YNc(2,Ze,3,3,"ng-container",23)),2&ce){const he=Me.$implicit;i.Q6J("ngIf",he.hasError("max")),i.xp6(1),i.Q6J("ngIf",he.hasError("min")),i.xp6(1),i.Q6J("ngIf",he.hasError("required"))}}function y(ce,Me){if(1&ce&&(i.TgZ(0,"span",51),i._uU(1),i.ALo(2,"formatCurrencyName"),i.qZA()),2&ce){const he=i.oxw().index,Ye=i.oxw(3);i.xp6(1),i.AsE(" ",Ye.HandlebarsHelper.numberOrStringToText(Ye.offer.creation.breakdown.items[he].price,Ye.language),"\xa0",i.lcZ(2,2,Ye.offer.creation.currency)," ")}}const x=function(){return{controlName:"name"}},E=function(ce){return{"col-11":ce}},T=function(){return{controlName:"minutes"}},S=function(ce){return{currency:ce}},$=function(){return{controlName:"price"}};function pe(ce,Me){if(1&ce){const he=i.EpF();i.TgZ(0,"div"),i.YNc(1,Pe,1,3,"ng-template",null,33,i.W1O),i.TgZ(3,"nz-form-item",34)(4,"nz-form-label",6)(5,"span"),i._uU(6),i.ALo(7,"translate"),i.YNc(8,Ue,1,0,"ng-container",7),i.qZA()(),i.YNc(9,rt,3,3,"ng-template",null,35,i.W1O),i.TgZ(11,"nz-form-control",36)(12,"textarea",37),i.NdJ("ngModelChange",function(){i.CHM(he);const He=i.oxw(3);return i.KtG(He.updateOffer())}),i.ALo(13,"translate"),i._uU(14," "),i.qZA()(),i.YNc(15,
1757Ct,2,4,"i",38),i.qZA(),i.TgZ(16,"nz-form-item",39)(17,"nz-form-label",6)(18,"span"),i._uU(19),i.ALo(20,"translate"),i.YNc(21,ht,1,0,"ng-container",7),i.qZA()(),i.TgZ(22,"div",8),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.YNc(25,F,3,3,"ng-template",null,40,i.W1O),i.TgZ(27,"nz-form-control",41)(28,"nz-input-number",42),i.NdJ("ngModelChange",function(){i.CHM(he);const He=i.oxw(3);return i.KtG(He.updateOffer())}),i.ALo(29,"translate"),i.qZA(),i.YNc(30,ne,3,4,"span",43),i.YNc(31,U,4,7,"span",43),i.qZA()(),i.TgZ(32,"nz-form-item",44)(33,"nz-form-label",6)(34,"span"),i._uU(35),i.ALo(36,"translate"),i.ALo(37,"formatCurrencyName"),i.YNc(38,et,1,0,"ng-container",7),i.qZA()(),i.YNc(39,Oe,3,3,"ng-template",null,45,i.W1O),i.TgZ(41,"nz-form-control",41)(42,"nz-input-group",46),i.ALo(43,"formatCurrencyName"),i.TgZ(44,"nz-input-number",47),i.NdJ("ngModelChange",function(){i.CHM(he);const He=i.oxw(3);return i.KtG(He.updateOffer())}),i.ALo(45,"translate"),i.qZA()(),i.YNc(46,y,3,4,"span",43),i.qZA()(),i.TgZ(47,"div",48),i._UZ(48,"nz-divider",49),i.qZA()()}if(2&ce){const he=Me.$implicit,Ye=Me.index,He=i.MAs(2),at=i.MAs(10),me=i.MAs(26),Te=i.MAs(40),_=i.oxw(3);i.xp6(6),i.hij(" ",i.lcZ(7,29,"CLIENT.CONVERSATIONS.OFFER.NAME")," "),i.xp6(2),i.Q6J("ngTemplateOutlet",He)("ngTemplateOutletContext",i.DdM(48,x)),i.xp6(3),i.Q6J("ngClass",i.VKq(49,E,_.offerForm.controls.breakdown.value.controls.items.value.length>1))("nzValidateStatus",he.controls.name)("nzErrorTip",at),i.xp6(1),i.Q6J("placeholder",i.lcZ(13,31,"CLIENT.CONVERSATIONS.OFFER.NAME"))("formControl",he.controls.name),i.xp6(3),i.Q6J("ngIf",_.offerForm.controls.breakdown.value.controls.items.value.length>1),i.xp6(4),i.hij(" ",i.lcZ(20,33,"CLIENT.CONVERSATIONS.OFFER.MINUTES")," "),i.xp6(2),i.Q6J("ngTemplateOutlet",He)("ngTemplateOutletContext",i.DdM(51,T)),i.xp6(2),i.hij(" ",i.lcZ(24,35,"CLIENT.CONVERSATIONS.OFFER.MINUTES_HELP")," "),i.xp6(4),i.Q6J("nzValidateStatus",he.controls.minutes)("nzErrorTip",me),i.xp6(1),i.Q6J("formControl",he.controls.minutes)("nzPlaceHolder",i.lcZ(29,37,"CLIENT.CONVERSATIONS.OFFER.MINUTES")),i.xp6(2),i.Q6J("ngIf",null!==_.offer.creation.breakdown.items[Ye].minutes&&_.offer.creation.breakdown.items[Ye].minutes/60==_.Math.ceil(_.offer.creation.breakdown.items[Ye].minutes/60*100)/100),i.xp6(1),i.Q6J("ngIf",null!==_.offer.creation.breakdown.items[Ye].minutes&&_.offer.creation.breakdown.items[Ye].minutes/60!=_.Math.ceil(_.offer.creation.breakdown.items[Ye].minutes/60*100)/100),i.xp6(4),i.hij(" ",i.xi3(36,39,"CLIENT.CONVERSATIONS.OFFER.PRICE_IN_CURRENCY",i.VKq(52,S,i.lcZ(37,42,_.offer.creation.currency)))," "),i.xp6(3),i.Q6J("ngTemplateOutlet",He)("ngTemplateOutletContext",i.DdM(54,$)),i.xp6(3),i.Q6J("nzValidateStatus",he.controls.price)("nzErrorTip",Te),i.xp6(1),i.Q6J("nzSuffix",i.lcZ(43,44,_.offer.creation.currency)),i.xp6(2),i.Q6J("formControl",he.controls.price)("nzPlaceHolder",i.lcZ(45,46,"CLIENT.CONVERSATIONS.OFFER.PRICE"))("nzPrecision",2),i.xp6(2),i.Q6J("ngIf",null!==_.offer.creation.breakdown.items[Ye].price)}}function Re(ce,Me){if(1&ce){const he=i.EpF();i.TgZ(0,"button",52),i.NdJ("click",function(){i.CHM(he);const He=i.oxw(3);return i.KtG(He.addItem())}),i._UZ(1,"i",53),i._uU(2),i.ALo(3,"translate"),i.qZA()}2&ce&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.ADD_TASK")," "))}function Ke(ce,Me){if(1&ce&&(i.TgZ(0,"div"),i.YNc(1,pe,49,55,"div",31),i.YNc(2,Re,4,3,"button",32),i.qZA()),2&ce){const he=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",he.offerForm.controls.breakdown.value.controls.items.value),i.xp6(1),i.Q6J("ngIf",he.offerForm.controls.breakdown.value.controls.items.value.length<30)}}function nt(ce,Me){1&ce&&i.GkF(0,29)}function lt(ce,Me){if(1&ce&&(i.ynx(0),i._uU(1),i.ALo(2,"translate"),i.BQk()),2&ce){const he=i.oxw().$implicit;i.xp6(1),i.hij("",i.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE_VALIDATION.CLAUSE.MAX_LENGTH",i.VKq(4,G,he.errors.maxlength.requiredLength))," ")}}function $e(ce,Me){1&ce&&i.YNc(0,lt,3,6,"ng-container",23),2&ce&&i.Q6J("ngIf",Me.$implicit.hasError("maxlength"))}function qe(ce,Me){1&ce&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&ce&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.PRICE_SUM_MISSING")," "))}const ve=function(ce,Me,he){return{price:ce,priceText:Me,currency:he}};
1757function we(ce,Me){if(1&ce&&(i._UZ(0,"div",54),i.ALo(1,"safe"),i.ALo(2,"translate"),i.ALo(3,"formatCurrencyName")),2&ce){const he=i.oxw(2);i.Q6J("innerHTML",i.xi3(1,1,i.xi3(2,4,"CLIENT.CONVERSATIONS.OFFER.PRICE_SUM_PRESENT",i.kEZ(9,ve,he.summarizedPrice,he.HandlebarsHelper.numberOrStringToText(he.summarizedPrice,he.language),i.lcZ(3,7,he.offer.creation.currency))),"html"),i.oJD)}}const De=function(){return{controlName:"brief"}},Be=function(){return{controlName:"deadline"}},Le=function(){return{controlName:"currency"}},Ne=function(){return{controlName:"clause"}};function oe(ce,Me){if(1&ce){const he=i.EpF();i.TgZ(0,"form",3),i.NdJ("keydown.enter",function(He){i.CHM(he);const at=i.oxw();return i.KtG(at.sendOfferWithEnter(He))}),i.YNc(1,Y,1,3,"ng-template",null,4,i.W1O),i.TgZ(3,"nz-form-item",5)(4,"nz-form-label",6)(5,"span"),i._uU(6),i.ALo(7,"translate"),i.YNc(8,Z,1,0,"ng-container",7),i.qZA()(),i.TgZ(9,"div",8),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.YNc(12,Ee,3,3,"ng-template",null,9,i.W1O),i.TgZ(14,"nz-form-control",10)(15,"textarea",11),i.NdJ("ngModelChange",function(){i.CHM(he);const He=i.oxw();return i.KtG(He.updateOffer())}),i.ALo(16,"translate"),i.ALo(17,"as"),i._uU(18," >"),i.qZA()()(),i.TgZ(19,"nz-form-item",12)(20,"nz-form-label",6)(21,"span"),i._uU(22),i.ALo(23,"translate"),i.YNc(24,re,1,0,"ng-container",7),i.qZA()(),i.TgZ(25,"div",8),i._uU(26),i.ALo(27,"translate"),i.qZA(),i.YNc(28,Ve,3,3,"ng-template",null,13,i.W1O),i.YNc(30,W,3,3,"ng-template",null,14,i.W1O),i.TgZ(32,"nz-form-control",15)(33,"nz-date-picker",16,17),i.NdJ("click",function(){i.CHM(he);const He=i.oxw();return i.KtG(He.updateDisabledTime())})("nzOnOpenChange",function(He){i.CHM(he);const at=i.oxw();return i.KtG(at.datePickerOpened(He))})("ngModelChange",function(){i.CHM(he);const He=i.oxw();return i.KtG(He.updateOffer())}),i.ALo(35,"as"),i.ALo(36,"translate"),i.qZA()()(),i.TgZ(37,"nz-form-item",18)(38,"nz-form-label",6)(39,"span"),i._uU(40),i.ALo(41,"translate"),i.YNc(42,ee,1,0,"ng-container",7),i.qZA()(),i.TgZ(43,"div",8),i._uU(44),i.ALo(45,"translate"),i.qZA(),i.TgZ(46,"nz-form-control")(47,"nz-select",19),i.NdJ("ngModelChange",function(){i.CHM(he);const He=i.oxw();return i.KtG(He.updateOffer())}),i.ALo(48,"as"),i.ALo(49,"translate"),i._UZ(50,"nz-option",20),i.ALo(51,"formatCurrencyName"),i.qZA()()(),i._UZ(52,"nz-divider",21),i.ALo(53,"translate"),i.TgZ(54,"nz-form-item")(55,"div",22),i.YNc(56,Ke,3,2,"div",23),i.qZA()(),i.TgZ(57,"nz-form-item",5)(58,"nz-form-label",24)(59,"span"),i._uU(60),i.ALo(61,"translate"),i.YNc(62,nt,1,0,"ng-container",7),i.qZA()(),i.TgZ(63,"div",8),i._uU(64),i.ALo(65,"translate"),i.qZA(),i.YNc(66,$e,1,1,"ng-template",null,25,i.W1O),i.TgZ(68,"nz-form-control",10)(69,"textarea",11),i.NdJ("ngModelChange",function(){i.CHM(he);const He=i.oxw();return i.KtG(He.updateOffer())}),i.ALo(70,"translate"),i.ALo(71,"as"),i._uU(72," >"),i.qZA()()(),i._UZ(73,"nz-divider",21),i.ALo(74,"translate"),i.YNc(75,qe,3,3,"div",23),i.YNc(76,we,4,13,"div",26),i.qZA()}if(2&ce){const he=i.MAs(2),Ye=i.MAs(13),He=i.MAs(29),at=i.MAs(31),me=i.MAs(67),Te=i.oxw();i.Q6J("formGroup",Te.offerForm),i.xp6(6),i.hij(" ",i.lcZ(7,42,"CLIENT.CONVERSATIONS.OFFER.BRIEF")," "),i.xp6(2),i.Q6J("ngTemplateOutlet",he)("ngTemplateOutletContext",i.DdM(84,De)),i.xp6(2),i.hij(" ",i.lcZ(11,44,"CLIENT.CONVERSATIONS.OFFER.BRIEF_HELP")," "),i.xp6(4),i.Q6J("nzValidateStatus",Te.offerForm.controls.brief)("nzErrorTip",Ye),i.xp6(1),i.Q6J("placeholder",i.lcZ(16,46,"CLIENT.CONVERSATIONS.OFFER.BRIEF"))("formControl",i.xi3(17,48,Te.offerForm.controls.brief,Te.FormControl)),i.xp6(7),i.hij(" ",i.lcZ(23,51,"CLIENT.CONVERSATIONS.OFFER.DEADLINE")," "),i.xp6(2),i.Q6J("ngTemplateOutlet",he)("ngTemplateOutletContext",i.DdM(85,Be)),i.xp6(2),i.hij(" ",i.lcZ(27,53,"CLIENT.CONVERSATIONS.OFFER.DEADLINE_HELP")," "),i.xp6(6),i.Q6J("nzErrorTip",He),i.xp6(1),i.Q6J("formControl",i.xi3(35,55,Te.offerForm.controls.deadline,Te.FormControl))("nzFormat",Te.V1Settings.dateTimeFormatShort)("nzPlaceHolder",i.lcZ(36,58,"CLIENT.CONVERSATIONS.OFFER.DEADLINE"))("nzDisabledDate",Te.disabledDate)("nzDisabledTime",Te.disabledTime)("nzRenderExtraFooter",at)("nzShowToday",!1),i.xp6(7),i.hij(" ",i.lcZ(41,60,"CLIENT.CONVERSATIONS.OFFER.CURRENCY")," "),i.xp6(2),i.Q6J("ngTemplateOutlet",he)("ngTemplateOutletContext",i.DdM(86,Le)),i.xp6(2),i.hij(" ",i.lcZ(45,62,"CLIENT.CONVERSATIONS.OFFER.CURRENCY_HELP")," "),i.xp6(3),i.Q6J("formControl",i.xi3(48,64,Te.offerForm.controls.currency,Te.Form
1757Control))("nzPlaceHolder",i.lcZ(49,67,"CLIENT.CONVERSATIONS.OFFER.CURRENCY")),i.xp6(3),i.Q6J("nzValue",Te.Currency.HUF)("nzLabel",i.lcZ(51,69,Te.Currency.HUF)),i.xp6(2),i.Q6J("nzText",i.lcZ(53,71,"CLIENT.CONVERSATIONS.OFFER.BREAKDOWN")),i.xp6(4),i.Q6J("ngIf",Te.offerForm.controls.breakdown&&Te.offerForm.controls.breakdown.value.controls.items),i.xp6(4),i.hij(" ",i.lcZ(61,73,"CLIENT.CONVERSATIONS.OFFER.CLAUSE")," "),i.xp6(2),i.Q6J("ngTemplateOutlet",he)("ngTemplateOutletContext",i.DdM(87,Ne)),i.xp6(2),i.hij(" ",i.lcZ(65,75,"CLIENT.CONVERSATIONS.OFFER.CLAUSE_HELP")," "),i.xp6(4),i.Q6J("nzValidateStatus",Te.offerForm.controls.clause)("nzErrorTip",me),i.xp6(1),i.Q6J("placeholder",i.lcZ(70,77,"CLIENT.CONVERSATIONS.OFFER.CLAUSE"))("formControl",i.xi3(71,79,Te.offerForm.controls.clause,Te.FormControl)),i.xp6(4),i.Q6J("nzText",i.lcZ(74,82,"CLIENT.CONVERSATIONS.OFFER.PRICE_SUM")),i.xp6(2),i.Q6J("ngIf",0===Te.summarizedPrice),i.xp6(1),i.Q6J("ngIf",Te.summarizedPrice>0)}}function ue(ce,Me){1&ce&&(i._UZ(0,"i",55),i._uU(1),i.ALo(2,"translate")),2&ce&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.CREATE.AGENCY_SAMPLE.DEFAULT"),"\n"))}const Ge=function(){return[]};function tt(ce,Me){if(1&ce){const he=i.EpF();i.TgZ(0,"div")(1,"button",56),i.NdJ("click",function(){i.CHM(he);const He=i.oxw();return i.KtG(He.cancelOffer())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"app-multi-state-button",57),i.TgZ(5,"app-multi-state-button",58),i.NdJ("click",function(){i.CHM(he);const He=i.oxw();return i.KtG(He.sendOffer())}),i.qZA(),i.TgZ(6,"div",59),i._UZ(7,"app-feedback",60),i.qZA()()}if(2&ce){const he=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,12,"COMMON.CANCEL")," "),i.xp6(2),i.Q6J("nzType","default")("defaultFunction",he.defaultAgencySampleFunction)("defaultFunctionParameters",i.DdM(14,Ge))("stickResult",!1)("nzTextKeys",he.defaultAgencySampleText),i.xp6(1),i.Q6J("nzGhost",he.okButtonDisabled)("runFunction",he.sendOfferFunction)("stickResult",!1)("nzTextKeys",he.sendOfferText),i.xp6(2),i.Q6J("unit",he.FeedbackUnit.OfferCreation)("feature",he.FeedbackFeature.Modal)}}let pt=class{constructor(Me,he,Ye,He,at,me){this.modal=Me,this.formService=he,this.utilService=Ye,this.translate=He,this.clientService=at,this.routerService=me,this.HandlebarsHelper=r.HandlebarsHelper,this.Currency=e.Fa6,this.V1Settings=v.L,this.Math=Math,this.Number=Number,this.ClientRoutes=m.i,this.language=u.i.en,this.summarizedPrice=0,this.okButtonDisabled=!0,this.defaultAgencySampleText=new a.PR("CLIENT.CONVERSATIONS.OFFER.CREATE.AGENCY_SAMPLE.DEFAULT","CLIENT.CONVERSATIONS.OFFER.CREATE.AGENCY_SAMPLE.WORKING","CLIENT.CONVERSATIONS.OFFER.CREATE.AGENCY_SAMPLE.SUCCESS","CLIENT.CONVERSATIONS.OFFER.CREATE.AGENCY_SAMPLE.FAILED"),this.sendOfferText=new a.PR("CLIENT.CONVERSATIONS.OFFER.CREATE.SUBMIT.DEFAULT","CLIENT.CONVERSATIONS.OFFER.CREATE.SUBMIT.WORKING","CLIENT.CONVERSATIONS.OFFER.CREATE.SUBMIT.SUCCESS","CLIENT.CONVERSATIONS.OFFER.CREATE.SUBMIT.FAILED"),this.FeedbackFeature=e.lrp,this.FeedbackUnit=e._0Z,this.minDateDiffHours=1,this.maxDateDiffDays=7,this.preventInputOverWriteObject={preventInputOverWrite:!1},this.FormControl=t.p4,this.disabledDate=Te=>(0,O.Z)(this.minDate,Te)>0||(0,O.Z)(Te,this.maxDate)>0}ngOnInit(){this.offerForm=this.formService.offerOpenFormGroup(this.offer.creation,60*this.minDateDiffHours*60*1e3,24*this.maxDateDiffDays*60*60*1e3),this.language=localStorage.getItem(C.B.languageSelection),this.translate.onLangChange.subscribe(Me=>{this.language=Me.lang}),this.defaultAgencySampleFunction=()=>this.openAgencySample(),this.updateMinMaxDate(),(0,N.F)(6e4).pipe((0,f.t)(this)).subscribe(()=>{this.updateMinMaxDate()}),this.updateDisabledTime()}ngAfterViewInit(){this.defaultAgencyDownloadText&&(this.defaultAgencySampleText=new a.PR(this.defaultAgencyDownloadText,"CLIENT.CONVERSATIONS.OFFER.CREATE.AGENCY_SAMPLE.WORKING","CLIENT.CONVERSATIONS.OFFER.CREATE.AGENCY_SAMPLE.SUCCESS","CLIENT.CONVERSATIONS.OFFER.CREATE.AGENCY_SAMPLE.FAILED"))}updateOffer(){this.offer.creation=this.formService.groupToOfferOpen(this.offerForm),this.updateModalConfig()}addItem(){this.offer.creation.breakdown.items.push(new o.aI("",0,0)),this.offerForm=this.formService.offerOpenFormGroup(this.offer.creation,60*this.minDateDiffHours*60*1e3,24*this.maxDateDiffDays*60*60*1e3),this.updateModalConfig()}removeItem(Me){this.offer.creation.breakdown.items.splice(Me,1),this.offerForm=this.formService.offerOpenFormGroup(this.offer.creation,60*this.minDateDiffHours*60*1e3,24*this.maxDateDiffDays*60*60*1e3),this.updateModalConfig()}updateModalConfig(){this.okButtonDisabled=!this.offerForm.valid||!this.offerForm.controls.breakdown.value.controls.items.value.every(Me=>Me.valid),this.calculateSummarizedPrice()}calculateSummarizedPrice(){this.summarizedPrice=this.offer.creation.breakdown.items?this.offer.creation.breakdown.items.reduce((Me,he)=>Me+he.price,0):0}cancelOffer(){this.modal.triggerCancel()}sendOfferWithEnter(Me){this.formService.preventEnterFromSubmit(Me),13===Me.which&&(!Me.target||"button"!==Me.target.tagName.toLowerCase()&&"textarea"!==Me.target.tagName.toLowerCase())&&this.sendOffer()}sendOffer(){const he=this.offerForm.get("breakdown").value.get("items").value;if(this.offerForm.valid&&he.every(Ye=>Ye.valid)){const Ye=this.successCallback();this.sendOfferFunction=Ye,Ye.then(()=>this.modal.triggerOk())}else this.formService.markAllAsTouched(this.offerForm)}openAgencySample(){const he=this.offerForm.get("breakdown").value.get("items").value;if(this.offerForm.valid&&he.every(Ye=>Ye.valid)){const Ye=new o.A9(this.offer.creation.brief,this.offer.creation.deadline,new o.I6(this.summarizedPrice,this.offer.creation.currency),this.offer.creation.breakdown,this.offer.creation.clause),He=new o.dx(this.chatID,Ye),at=this.clientService.getAgencyContractSample(He).pipe((0,f.t)(this)).toPromise();return at.then(me=>{this.translate.instant("CLIENT.CONVERSATIONS.AGENCY_CONTRACT.FILE_NAME"),document.createElement("a");const ot=URL.createObjectURL(me);this.routerService.windowOpenAlternative(ot)},me=>{}),at}return this.formService.markAllAsTouched(this.offerForm),Promise.reject()}updateMinMaxDate(){this.minDate=new Date,this.minDate.setHours(this.minDate.getHours()+this.minDateDiffHours),this.maxDate=new Date,this.maxDate.setDate(this.maxDate.getDate()+this.maxDateDiffDays)}range(Me,he){const Ye=[];for(let He=Me;He<he;He++)Ye.push(He);return Ye}
1757datePickerOpened(Me){Me?(0,L.H)(0).pipe((0,f.t)(this)).subscribe(()=>{this.deadlinePicker&&this.deadlinePicker.datePickerService.inputPartChange$.pipe((0,f.t)(this)).subscribe(Ye=>{this.updateDisabledTime()});const he=document.getElementsByClassName("ant-picker-now-btn");he.length>0&&he[0].classList.add("d-none")}):this.formService.tryInputOverWrite(this.offerForm,"deadline",this.deadlinePicker,this.preventInputOverWriteObject,this.disabledDate)}updateDisabledTime(){this.disabledTime=Me=>(this.updateMinMaxDate(),0===(0,O.Z)(this.minDate,Me)&&Me.getDate()===this.minDate.getDate()?{nzDisabledHours:()=>this.range(0,this.minDate.getHours()),nzDisabledMinutes:he=>he===this.minDate.getHours()?this.range(0,this.minDate.getSeconds()>0?this.minDate.getMinutes()+1:this.minDate.getMinutes()):he<this.minDate.getHours()?this.range(0,60):[],nzDisabledSeconds:(he,Ye)=>[]}:0===(0,O.Z)(Me,this.maxDate)&&Me.getDate()===this.maxDate.getDate()?{nzDisabledHours:()=>this.range(this.maxDate.getHours()+1,24),nzDisabledMinutes:he=>he===this.maxDate.getHours()?this.range(this.maxDate.getMinutes()+1,60):he>this.maxDate.getHours()?this.range(0,60):[],nzDisabledSeconds:(he,Ye)=>[]}:{nzDisabledHours:()=>[],nzDisabledMinutes:he=>[],nzDisabledSeconds:(he,Ye)=>[]})}selectToday(){let Me=new Date;this.minDate.valueOf()>Me.valueOf()&&(Me=this.minDate),this.formService.selectDay(Me,this.offerForm,"deadline",this.deadlinePicker,this.preventInputOverWriteObject,this.disabledDate)}};pt.\u0275fac=function(Me){return new(Me||pt)(i.Y36(M.Lf),i.Y36(R.o),i.Y36(l.f),i.Y36(h.sK),i.Y36(D.y),i.Y36(B.c))},pt.\u0275cmp=i.Xpm({type:pt,selectors:[["app-offer-creation"]],viewQuery:function(Me,he){if(1&Me&&(i.Gf(K,5),i.Gf(b,5)),2&Me){let Ye;i.iGM(Ye=i.CRH())&&(he.deadlinePicker=Ye.first),i.iGM(Ye=i.CRH())&&(he.defaultAgencyDownloadText=Ye.first)}},inputs:{offer:"offer",chatID:"chatID",successCallback:"successCallback"},decls:4,vars:1,consts:[["nz-form","","nzNoColon","",3,"formGroup","keydown.enter",4,"ngIf"],["defaultAgencyDownloadText",""],[4,"nzModalFooter"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],["optionalLabel",""],[1,"row"],["nzRequired","",1,"field-label"],["class","template",4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"code-box-description","helpText","p-t-0"],["briefErrorTip",""],[1,"col",3,"nzValidateStatus","nzErrorTip"],["nz-input","","rows","3","trim","blur",3,"placeholder","formControl","ngModelChange"],[1,"col-sm-5","inlineBlock"],["deadlineErrorTip",""],["extraFooter",""],[3,"nzErrorTip"],["nzShowTime","","nzDropdownClassName","inlineDatePickerFooter",1,"w-100",3,"formControl","nzFormat","nzPlaceHolder","nzDisabledDate","nzDisabledTime","nzRenderExtraFooter","nzShowToday","click","nzOnOpenChange","ngModelChange"],["deadlinePicker",""],[1,"col-sm-7","inlineBlock"],[3,"formControl","nzPlaceHolder","ngModelChange"],[3,"nzValue","nzLabel"],["nzOrientation","left",3,"nzText"],[1,"ng-tns-c133-24","ant-form-item-control","ant-col","ng-star-inserted"],[4,"ngIf"],[1,"field-label"],["clauseErrorTip",""],[3,"innerHTML",4,"ngIf"],["class","optionalLabel",4,"ngIf"],[1,"optionalLabel"],[1,"template"],["nz-button","","nzType","link",1,"ant-picker-today-button","link-like-button","m-r-10",3,"click"],[4,"ngFor","ngForOf"],["nz-button","","nzType","dashed","class","add-button",3,"click",4,"ngIf"],["optionalLabelItemForm",""],[1,"m-b-10"],["nameErrorTip",""],[3,"ngClass","nzValidateStatus","nzErrorTip"],["nz-input","","rows","2","trim","blur",3,"placeholder","formControl","ngModelChange"],["nz-icon","","nzType","minus-circle-o","class","dynamic-delete-button","nz-tooltip","",3,"nzTooltipTitle","nzTooltipTrigger","click",4,"ngIf"],[1,"col-4","inlineBlock","p-l-0"],["minutesErrorTip",""],[3,"nzValidateStatus","nzErrorTip"],["nz-input-number-formatted","","nzRequired","",1,"w-100",3,"formControl","nzPlaceHolder","ngModelChange"],["class","priceString",4,"ngIf"],[1,"col-8","inlineBlock","m-b-0","p-r-0"],["priceErrorTip",""],[1,"p-t-0","p-b-0",3,"nzSuffix"],["nz-input-number-formatted","","nzPrecisionMode","toFixed",1,"w-100","alignToSuffix","removeInnerBorderAndShadow",3,"formControl","nzPlaceHolder","nzPrecision","ngModelChange"],[1,"w-50","margin-auto"],[1,"m-t-10","m-b-10"],["nz-icon","","nzType","minus-circle-o","nz-tooltip","",1,"dynamic-delete-button",3,"nzTooltipTitle","nzTooltipTrigger","click"],[1,"priceString"],["nz-button","","nzType","dashed",1,"add-button",3,"click"],["nz-icon","","nzType","plus"],[3,"innerHTML"],["nz-icon","","nzType","file-pdf","nzTheme","outline"],["nz-button","","nzType","default",1,"m-5",3,"click"],[1,"multiLineButton","smartButton-margin",3,"nzType","defaultFunction","defaultFunctionParameters","stickResult","nzTextKeys"],["nzType","primary",1,"multiLineButton","smartButton-margin",3,"nzGhost","runFunction","stickResult","nzTextKeys","click"],[1,"row","w-100","justify-content-end","mt-2"],[3,"unit","feature"]],template:function(Me,he){1&Me&&(i.YNc(0,oe,77,88,"form",0),i.YNc(1,ue,3,3,"ng-template",null,1,i.W1O),i.YNc(3,tt,8,15,"div",2)),2&Me&&i.Q6J("ngIf",he.offerForm)},styles:['@charset "UTF-8";.dynamic-delete-button[_ngcontent-%COMP%]{cursor:pointer;position:relative;font-size:24px;color:#999;transition:all .3s}
1757.dynamic-delete-button[_ngcontent-%COMP%]:hover{color:#777} svg{height:100%}.inlineBlock[_ngcontent-%COMP%]{display:inline-block}.margin-auto[_ngcontent-%COMP%]{margin:auto}[_nghost-%COMP%] .ant-input-number-handler-wrap{display:none}.priceString[_ngcontent-%COMP%]{float:right;text-align:right}.removeInnerBorderAndShadow[_ngcontent-%COMP%]{border:transparent solid 1px!important;box-shadow:none!important}[_nghost-%COMP%] .alignToSuffix input{text-align:right}nz-form-label.field-label[_ngcontent-%COMP%]{white-space:normal;white-space:initial;text-align:right}[_nghost-%COMP%] nz-form-label.field-label>label{height:auto}.helpText[_ngcontent-%COMP%]{white-space:normal;font-weight:lighter;font-size:small;padding-top:0;padding-left:0;padding-right:0;width:100%}.desc[_ngcontent-%COMP%]{display:inline-block;white-space:nowrap}.smartButton-margin[_ngcontent-%COMP%] .smartButton{margin:5px!important}']}),pt=(0,s.gn)([(0,f.c)()],pt)},9865:(Se,k,n)=>{n.d(k,{D:()=>kt});var s=n(97582),e=n(94650),o=n(76096),t=n(22971),v=n(24006),r=n(92961),c=n(69751),C=n(71997),u=n(44224),m=n(36057),a=n(41342),f=n(45218),O=n(25156),N=n(32925),L=n(50211),i=n(90735),M=n(8269),R=n(87689),l=n(81664),h=n(81404),D=n(55089),B=n(61479),K=n(39889),b=n(12987),w=n(52632),X=n(75489),Y=n(97895),Z=n(36895),G=n(59166),Q=n(67151),V=n(74383),se=n(66616),xe=n(47044),Ee=n(21811),re=n(51971),le=n(2577),q=n(73679),fe=n(36704),de=n(47423),it=n(35635),Ve=n(66152),W=n(6497),ee=n(46581),te=n(23848),Pe=n(37570),Ue=n(45144),Ae=n(3550),Fe=n(14954),Qe=n(7463),rt=n(5233);const Ct=["defaultAgencySampleText"],ht=["defaultAgencyFinalText"];function mt(H,ae){1&H&&e.GkF(0)}function ye(H,ae){if(1&H&&(e.TgZ(0,"div"),e.YNc(1,mt,1,0,"ng-container",19),e.qZA()),2&H){e.oxw();const A=e.MAs(3);e.xp6(1),e.Q6J("ngTemplateOutlet",A)}}function Ce(H,ae){1&H&&e.GkF(0)}function j(H,ae){if(1&H){const A=e.EpF();e.TgZ(0,"div",20),e.NdJ("resized",function(be){e.CHM(A);const It=e.oxw();return e.KtG(It.onResized(be))}),e.YNc(1,Ce,1,0,"ng-container",19),e.qZA()}if(2&H){e.oxw();const A=e.MAs(3);e.xp6(1),e.Q6J("ngTemplateOutlet",A)}}const _e=function(H,ae,A){return{wrapActions:H,singleLineActions:ae,shrinkedCard:A}},F=function(H){return{"max-width":H}},ne=function(H,ae,A,st){return[H,ae,A,st]},U=function(H,ae,A){return[H,ae,A]},et=function(H,ae){return[H,ae]},ct=function(H){return[H]},ft=function(){return[]};function Ze(H,ae){if(1&H&&(e.TgZ(0,"nz-card",22),e.ALo(1,"as"),e._UZ(2,"nz-card-meta",23),e.qZA()),2&H){const A=e.oxw(2),st=e.MAs(25),be=e.MAs(11),It=e.MAs(21),vt=e.MAs(15),Wt=e.MAs(23),ln=e.MAs(19),bt=e.MAs(7);e.Q6J("ngClass",e.kEZ(7,_e,A.componentWidth<740||A.chatWidth<930,A.componentWidth<430||A.chatWidth<620,A.componentWidth<340||A.chatWidth<510))("ngStyle",e.VKq(11,F,A.isModal?"none":"90%;"))("nzActions",A.resultOffer?A.offer.state.type===A.OfferStateType.Opened&&(A.resultOffer.state.type!==A.OfferStateType.Declined&&A.resultOffer.state.type!==A.OfferStateType.Revoked&&A.resultOffer.state.type!==A.OfferStateType.Accepted||(A.resultOffer.state.type===A.OfferStateType.Declined||A.resultOffer.state.type===A.OfferStateType.Revoked||A.resultOffer.state.type===A.OfferStateType.Accepted)&&A.isOpened)?A.isActive?A.userType===A.UserType.Client?A.componentWidth<740||A.chatWidth<930?A.componentWidth<430||A.chatWidth<620?e.l5B(13,ne,st,be,It,vt):e.l5B(18,ne,st,It,be,vt):e.l5B(23,ne,st,It,vt,be):e.kEZ(28,U,st,Wt,vt):A.resultOffer.state.type===A.OfferStateType.Accepted&&e.xi3(1,4,A.resultOffer.state,A.Accepted).serviceID?e.WLB(32,et,ln,st):e.VKq(35,ct,st):e.DdM(37,ft):A.offer.state.type===A.OfferStateType.Opened?A.isActive?A.userType===A.UserType.Client?A.componentWidth<740||A.chatWidth<930?A.componentWidth<430||A.chatWidth<620?e.l5B(38,ne,st,be,It,vt):e.l5B(43,ne,st,It,be,vt):e.l5B(48,ne,st,It,vt,be):e.kEZ(53,U,st,Wt,vt):e.VKq(57,ct,st):e.DdM(59,ft)),e.xp6(2),e.Q6J("nzDescription",bt)}}function Oe(H,ae){if(1&H&&e.YNc(0,Ze,3,60,"nz-card",21),2&H){const A=e.oxw();e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Opened)}}function y(H,ae){1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.l
1757cZ(2,1,"CLIENT.CONVERSATIONS.OFFER.STATE.OPENED")))}function x(H,ae){1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.STATE.ACCEPTED")))}function E(H,ae){1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.STATE.DECLINED")))}function T(H,ae){1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.STATE.REVOKED")))}function S(H,ae){if(1&H&&(e.YNc(0,y,3,3,"span",0),e.YNc(1,x,3,3,"span",0),e.YNc(2,E,3,3,"span",0),e.YNc(3,T,3,3,"span",0)),2&H){const A=e.oxw();e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Opened),e.xp6(1),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Accepted),e.xp6(1),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Declined),e.xp6(1),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Revoked)}}function $(H,ae){if(1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H){const A=e.oxw(3);e.xp6(1),e.AsE(" ",A.otherParticipant.name," ",e.lcZ(2,2,"CLIENT.CONVERSATIONS.OFFER.OPENED_TITLE_LAWYER")," ")}}function pe(H,ae){if(1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H){const A=e.oxw(3);e.xp6(1),e.AsE(" ",A.otherParticipant.name," ",e.lcZ(2,2,"CLIENT.CONVERSATIONS.OFFER.OPENED_TITLE_CLIENT")," ")}}function Re(H,ae){1&H&&(e.TgZ(0,"span")(1,"label",33),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&H&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"CLIENT.CONVERSATIONS.OFFER.BADGE.ACCEPTED")))}function Ke(H,ae){1&H&&(e.TgZ(0,"span")(1,"label",34),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&H&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"CLIENT.CONVERSATIONS.OFFER.BADGE.DECLINED")))}function nt(H,ae){1&H&&(e.TgZ(0,"span")(1,"label",34),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&H&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"CLIENT.CONVERSATIONS.OFFER.BADGE.REVOKED")))}function lt(H,ae){if(1&H&&(e.ynx(0),e.YNc(1,Re,4,3,"span",0),e.YNc(2,Ke,4,3,"span",0),e.YNc(3,nt,4,3,"span",0),e.BQk()),2&H){const A=e.oxw(3);e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Accepted),e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Declined),e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Revoked)}}function $e(H,ae){if(1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&H){const A=e.oxw(4);e.xp6(1),e.hij(" ",A.isOpened?e.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.CLOSE_DETAILS"):e.lcZ(3,3,"CLIENT.CONVERSATIONS.OFFER.OPEN_DETAILS")," ")}}function qe(H,ae){if(1&H){const A=e.EpF();e.TgZ(0,"div",35)(1,"button",36),e.NdJ("click",function(){e.CHM(A);const be=e.oxw(3);return e.KtG(be.isOpened=!be.isOpened)}),e._UZ(2,"span",37),e.YNc(3,$e,4,5,"span",0),e.qZA()()}if(2&H){const A=e.oxw(3);e.xp6(2),e.Q6J("nzType",A.isOpened?"up":"down"),e.xp6(1),e.Q6J("ngIf",!A.lowResolution)}}function ve(H,ae){if(1&H&&(e.TgZ(0,"div",31)(1,"div"),e.YNc(2,$,3,4,"span",0),e.YNc(3,pe,3,4,"span",0),e.YNc(4,lt,4,3,"ng-container",0),e.qZA(),e.YNc(5,qe,4,2,"div",32),e.qZA()),2&H){const A=e.oxw(2);e.xp6(2),e.Q6J("ngIf",A.otherParticipant&&A.otherParticipant.kind===A.UserType.Client),e.xp6(1),e.Q6J("ngIf",A.otherParticipant&&A.otherParticipant.kind===A.UserType.Lawyer),e.xp6(1),e.Q6J("ngIf",A.resultOffer),e.xp6(1),e.Q6J("ngIf",!A.isModal&&A.resultOffer&&(A.resultOffer.state.type===A.OfferStateType.Declined||A.resultOffer.state.type===A.OfferStateType.Revoked||A.resultOffer.state.type===A.OfferStateType.Accepted))}}function we(H,ae){if(1&H&&(e._uU(0),e.ALo(1,"dateAgo")),2&H){const A=e.oxw(2);e.hij(" ",e.xi3(1,1,A.offer.timestamp,A.trigger)," ")}}const De=function(H){return{"white-space-nowrap":H}},Be=function(H,ae){return[H,null,0,340,ae]},Le=function(H,ae){return[H,null,0,510,ae]};function Ne(H,ae){if(1&H&&(e.TgZ(0,"div",30)(1,"div",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",30),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"strong",38),e._uU(8),e.ALo(9,"date"),e.ALo(10,"as"),e.qZA()(),e.TgZ(11,"div",30),e._uU(12),e.ALo(13,"translate"),e.qZA(),e._UZ(14,"nz-divider",39),e.ALo(15,"hyphen"),e.ALo(16,"hyphen"),e.ALo(17,"translate"),e.qZA()),2&H){const A=e.oxw(2);e.xp6(2),e.hij(" ",e.lcZ(3,6,"CLIENT.CONVERSATIONS.OFFER.OPENED_MESSAGE_LAWYER")," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,"CLIENT.CONVERSATIONS.OFFER.DEADLINE_LAWYER")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(34,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.Oqu(e.gM2(9,10,e.xi3(10,15,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale)),e.xp6(4),e.hij(" ",e.lcZ(13,18,"CLIENT.CONVERSATIONS.OFFER.VALID_UNTIL_REVOKED_LAWYER")," "),e.xp6(2),e.s9C("nzText",e.G7q(15,20,e.WLB(39,
1757Le,e.G7q(16,26,e.WLB(36,Be,e.lcZ(17,32,"CLIENT.CONVERSATIONS.OFFER.BRIEF_LAWYER"),A.componentWidth)),A.chatWidth)))}}function oe(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"div",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",30),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"strong",38),e._uU(8),e.ALo(9,"date"),e.ALo(10,"as"),e.qZA()(),e._UZ(11,"nz-divider",39),e.ALo(12,"hyphen"),e.ALo(13,"hyphen"),e.ALo(14,"translate"),e.BQk()),2&H){const A=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,5,"CLIENT.CONVERSATIONS.OFFER.OPENED_MESSAGE_LAWYER_INACTIVE")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"CLIENT.CONVERSATIONS.OFFER.DEADLINE_LAWYER_INACTIVE")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(31,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.Oqu(e.gM2(9,9,e.xi3(10,14,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale)),e.xp6(3),e.s9C("nzText",e.G7q(12,17,e.WLB(36,Le,e.G7q(13,23,e.WLB(33,Be,e.lcZ(14,29,"CLIENT.CONVERSATIONS.OFFER.BRIEF_LAWYER_INACTIVE"),A.componentWidth)),A.chatWidth)))}}function ue(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"div",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",30),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"strong",38),e._uU(8),e.ALo(9,"date"),e.ALo(10,"as"),e.qZA()(),e._UZ(11,"nz-divider",39),e.ALo(12,"hyphen"),e.ALo(13,"hyphen"),e.ALo(14,"translate"),e.BQk()),2&H){const A=e.oxw(4);e.xp6(2),e.hij(" ",e.lcZ(3,5,"CLIENT.CONVERSATIONS.OFFER.OPENED_MESSAGE_LAWYER_ACCEPTED")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"CLIENT.CONVERSATIONS.OFFER.DEADLINE_LAWYER_ACCEPTED")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(31,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.Oqu(e.gM2(9,9,e.xi3(10,14,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale)),e.xp6(3),e.s9C("nzText",e.G7q(12,17,e.WLB(36,Le,e.G7q(13,23,e.WLB(33,Be,e.lcZ(14,29,"CLIENT.CONVERSATIONS.OFFER.BRIEF_LAWYER_ACCEPTED"),A.componentWidth)),A.chatWidth)))}}function Ge(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"div",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",30),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"strong",38),e._uU(8),e.ALo(9,"date"),e.ALo(10,"as"),e.qZA()(),e._UZ(11,"nz-divider",39),e.ALo(12,"hyphen"),e.ALo(13,"hyphen"),e.ALo(14,"translate"),e.BQk()),2&H){const A=e.oxw(4);e.xp6(2),e.hij(" ",e.lcZ(3,5,"CLIENT.CONVERSATIONS.OFFER.OPENED_MESSAGE_LAWYER_DECLINED")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"CLIENT.CONVERSATIONS.OFFER.DEADLINE_LAWYER_DECLINED_REVOKED")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(31,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.Oqu(e.gM2(9,9,e.xi3(10,14,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale)),e.xp6(3),e.s9C("nzText",e.G7q(12,17,e.WLB(36,Le,e.G7q(13,23,e.WLB(33,Be,e.lcZ(14,29,"CLIENT.CONVERSATIONS.OFFER.BRIEF_LAWYER_DECLINED_REVOKED"),A.componentWidth)),A.chatWidth)))}}function tt(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"div",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",30),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"strong",38),e._uU(8),e.ALo(9,"date"),e.ALo(10,"as"),e.qZA()(),e._UZ(11,"nz-divider",39),e.ALo(12,"hyphen"),e.ALo(13,"hyphen"),e.ALo(14,"translate"),e.BQk()),2&H){const A=e.oxw(4);e.xp6(2),e.hij(" ",e.lcZ(3,5,"CLIENT.CONVERSATIONS.OFFER.OPENED_MESSAGE_LAWYER_REVOKED")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"CLIENT.CONVERSATIONS.OFFER.DEADLINE_LAWYER_DECLINED_REVOKED")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(31,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.Oqu(e.gM2(9,9,e.xi3(10,14,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale)),e.xp6(3),e.s9C("nzText",e.G7q(12,17,e.WLB(36,Le,e.G7q(13,23,e.WLB(33,Be,e.lcZ(14,29,"CLIENT.CONVERSATIONS.OFFER.BRIEF_LAWYER_DECLINED_REVOKED"),A.componentWidth)),A.chatWidth)))}}function pt(H,ae){if(1&H&&(e.ynx(0),e.YNc(1,ue,15,39,"ng-container",0),e.YNc(2,Ge,15,39,"ng-container",0),e.YNc(3,tt,15,39,"ng-container",0),e.BQk()),2&H){const A=e.oxw(3);e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Accepted),e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Declined),e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Revoked)}}function ce(H,ae){if(1&H&&(e.TgZ(0,"div",30),e.YNc(1,oe,15,39,"ng-container",0),e.YNc(2,pt,4,3,"ng-container",0),e.qZA()),2&H){const A=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!A.resultOffer),e.xp6(1),e.Q6J("ngIf",A.resultOffer&&A.isOpened)}}function Me(H,ae){if(1&H&&(e.TgZ(0,"div",30)(1,"div",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",30),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"strong",38),e._uU(8),e.ALo(9,"date"),e.ALo(10,"as"),e.qZA()(),e.TgZ(11,"div",30),e._uU(12),e.ALo(13,"translate"),e.qZA(),e._UZ(14,"nz-divider",39),e.ALo(15,"hyphen"),e.ALo(16,"hyphen"),e.ALo(17,"translate"),e.qZA()),2&H){const A=e.oxw(2);e.xp6(2),e.hij(" ",e.lcZ(3,6,"CLIENT.CONVERSATIONS.OFFER.OPENED_MESSAGE_CLIENT")," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,"CLIENT.CONVERSATIONS.OFFER.DEADLINE_CLIENT")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(34,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.Oqu(e.gM2(9,10,e.xi3(10,15,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale)),e.xp6(4),e.hij(" ",e.lcZ(13,18,"CLIENT.CONVERSATIONS.OFFER.VALID_UNTIL_REVOKED_CLIENT")," "),e.xp6(2),e.s9C("nzText",e.G7q(15,20,e.WLB(39,
1757Le,e.G7q(16,26,e.WLB(36,Be,e.lcZ(17,32,"CLIENT.CONVERSATIONS.OFFER.BRIEF"),A.componentWidth)),A.chatWidth)))}}function he(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"div",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",30),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"strong",38),e._uU(8),e.ALo(9,"date"),e.ALo(10,"as"),e.qZA()(),e._UZ(11,"nz-divider",39),e.ALo(12,"hyphen"),e.ALo(13,"hyphen"),e.ALo(14,"translate"),e.BQk()),2&H){const A=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,5,"CLIENT.CONVERSATIONS.OFFER.OPENED_MESSAGE_CLIENT_INACTIVE")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"CLIENT.CONVERSATIONS.OFFER.DEADLINE_CLIENT_INACTIVE")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(31,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.Oqu(e.gM2(9,9,e.xi3(10,14,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale)),e.xp6(3),e.s9C("nzText",e.G7q(12,17,e.WLB(36,Le,e.G7q(13,23,e.WLB(33,Be,e.lcZ(14,29,"CLIENT.CONVERSATIONS.OFFER.BRIEF_CLIENT_INACTIVE"),A.componentWidth)),A.chatWidth)))}}function Ye(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"div",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",30),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"strong",38),e._uU(8),e.ALo(9,"date"),e.ALo(10,"as"),e.qZA()(),e._UZ(11,"nz-divider",39),e.ALo(12,"hyphen"),e.ALo(13,"hyphen"),e.ALo(14,"translate"),e.BQk()),2&H){const A=e.oxw(4);e.xp6(2),e.hij(" ",e.lcZ(3,5,"CLIENT.CONVERSATIONS.OFFER.OPENED_MESSAGE_CLIENT_ACCEPTED")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"CLIENT.CONVERSATIONS.OFFER.DEADLINE_CLIENT_ACCEPTED")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(31,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.Oqu(e.gM2(9,9,e.xi3(10,14,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale)),e.xp6(3),e.s9C("nzText",e.G7q(12,17,e.WLB(36,Le,e.G7q(13,23,e.WLB(33,Be,e.lcZ(14,29,"CLIENT.CONVERSATIONS.OFFER.BRIEF_CLIENT_ACCEPTED"),A.componentWidth)),A.chatWidth)))}}function He(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"div",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",30),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"strong",38),e._uU(8),e.ALo(9,"date"),e.ALo(10,"as"),e.qZA()(),e._UZ(11,"nz-divider",39),e.ALo(12,"hyphen"),e.ALo(13,"hyphen"),e.ALo(14,"translate"),e.BQk()),2&H){const A=e.oxw(4);e.xp6(2),e.hij(" ",e.lcZ(3,5,"CLIENT.CONVERSATIONS.OFFER.OPENED_MESSAGE_CLIENT_DECLINED")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"CLIENT.CONVERSATIONS.OFFER.DEADLINE_CLIENT_DECLINED_REVOKED")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(31,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.Oqu(e.gM2(9,9,e.xi3(10,14,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale)),e.xp6(3),e.s9C("nzText",e.G7q(12,17,e.WLB(36,Le,e.G7q(13,23,e.WLB(33,Be,e.lcZ(14,29,"CLIENT.CONVERSATIONS.OFFER.BRIEF_CLIENT_DECLINED_REVOKED"),A.componentWidth)),A.chatWidth)))}}function at(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"div",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",30),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"strong",38),e._uU(8),e.ALo(9,"date"),e.ALo(10,"as"),e.qZA()(),e._UZ(11,"nz-divider",39),e.ALo(12,"hyphen"),e.ALo(13,"hyphen"),e.ALo(14,"translate"),e.BQk()),2&H){const A=e.oxw(4);e.xp6(2),e.hij(" ",e.lcZ(3,5,"CLIENT.CONVERSATIONS.OFFER.OPENED_MESSAGE_CLIENT_REVOKED")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"CLIENT.CONVERSATIONS.OFFER.DEADLINE_CLIENT_DECLINED_REVOKED")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(31,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.Oqu(e.gM2(9,9,e.xi3(10,14,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale)),e.xp6(3),e.s9C("nzText",e.G7q(12,17,e.WLB(36,Le,e.G7q(13,23,e.WLB(33,Be,e.lcZ(14,29,"CLIENT.CONVERSATIONS.OFFER.BRIEF_CLIENT_DECLINED_REVOKED"),A.componentWidth)),A.chatWidth)))}}function me(H,ae){if(1&H&&(e.ynx(0),e.YNc(1,Ye,15,39,"ng-container",0),e.YNc(2,He,15,39,"ng-container",0),e.YNc(3,at,15,39,"ng-container",0),e.BQk()),2&H){const A=e.oxw(3);e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Accepted),e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Declined),e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Revoked)}}function Te(H,ae){if(1&H&&(e.TgZ(0,"div",30),e.YNc(1,he,15,39,"ng-container",0),e.YNc(2,me,4,3,"ng-container",0),e.qZA()),2&H){const A=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!A.resultOffer),e.xp6(1),e.Q6J("ngIf",A.resultOffer&&A.isOpened)}}function _(H,ae){if(1&H&&(e.TgZ(0,"nz-list",24)(1,"nz-list-item",25)(2,"nz-list-item-meta",26),e.YNc(3,ve,6,4,"ng-template",null,27,e.W1O),e.YNc(5,we,2,4,"ng-template",null,28,e.W1O),e.qZA(),e.YNc(7,Ne,18,42,"div",29),e.YNc(8,ce,3,2,"div",29),e.YNc(9,Me,18,42,"div",29),e.YNc(10,Te,3,2,"div",29),e.TgZ(11,"div",30),e._uU(12),e.ALo(13,"as"),e.qZA()()()),2&H){const A=e.MAs(4),st=e.MAs(6),be=e.oxw(),It=e.MAs(9);e.Q6J("nzItemLayout","vertical"),e.xp6(1),e.Q6J("nzContent",It),e.xp6(1),e.Q6J("nzTitle",A)("nzAvatar",be.isModal?be.imagesToShow[be.offer.userID]:null)("nzDescription",st),e.xp6(5),e.Q6J("ngIf",be.otherParticipant&&be.otherParticipant.kind===be.UserType.Client&&be.isActive),e.xp6(1),e.Q6J("ngIf",be.otherParticipant&&be.otherParticipant.kind===be.UserType.Client&&!be.isActive),e.xp6(1),e.Q6J("ngIf",be.otherParticipant&&be.otherParticipant.kind===be.UserType.Lawyer&&be.isActive),e.xp6(1),e.Q6J("ngIf",be.otherParticipant&&be.otherParticipant.kind===be.UserType.Lawyer&&!be.isActive),e.xp6(2),e.Oqu(e.xi3(13,10,be.offer.state,be.Opened).brief)}}const ot=function(H){return{currency:H}};function je(H,ae){if(1&H&&(e._UZ(0,"nz-divider",39),e.ALo(1,"hyphen"),e.ALo(2,"hyphen"),e.ALo(3,"translate"),e.ALo(4,"hyphen"),e.ALo(5,"hyphen"),e.ALo(6,"translate"),e.ALo(7,"formatCurrencyName"),e.ALo(8,"as")),2&H){const A=e.oxw(3);
1757e.hYB("nzText","",e.G7q(1,2,e.WLB(39,Le,e.G7q(2,8,e.WLB(36,Be,e.lcZ(3,14,"CLIENT.CONVERSATIONS.OFFER.BREAKDOWN"),A.componentWidth)),A.chatWidth))," (",e.G7q(4,16,e.WLB(47,Le,e.G7q(5,22,e.WLB(44,Be,e.xi3(6,28,"CLIENT.CONVERSATIONS.OFFER.ALL_PRICES_IN_CURRENCY",e.VKq(42,ot,e.lcZ(7,31,e.xi3(8,33,A.offer.state,A.Opened).currency))),A.componentWidth)),A.chatWidth)),")")}}const At=function(H){return{wrappedBreakdownList:H}};function Et(H,ae){if(1&H&&(e.TgZ(0,"nz-list-item",44)(1,"ul",45)(2,"nz-list-item-action"),e._uU(3),e.qZA(),e.TgZ(4,"nz-list-item-action",46),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"nz-list-item-action"),e._uU(8),e.ALo(9,"formatCurrencyName"),e.ALo(10,"as"),e.qZA()()()),2&H){const A=ae.$implicit,st=e.oxw(4);e.Q6J("ngClass",e.VKq(13,At,st.componentWidth<340||st.chatWidth<510)),e.xp6(3),e.Oqu(A.name),e.xp6(2),e.AsE("",A.minutes," ",e.lcZ(6,6,"CLIENT.CONVERSATIONS.OFFER.MINUTES_ON_TASK"),""),e.xp6(3),e.AsE("",A.price,"\xa0",e.lcZ(9,8,e.xi3(10,10,st.offer.state,st.Opened).currency),"")}}function gt(H,ae){if(1&H&&(e._UZ(0,"nz-divider",39),e.ALo(1,"hyphen"),e.ALo(2,"hyphen"),e.ALo(3,"translate")),2&H){const A=e.oxw(4);e.s9C("nzText",e.G7q(1,1,e.WLB(18,Le,e.G7q(2,7,e.WLB(15,Be,e.lcZ(3,13,"CLIENT.CONVERSATIONS.OFFER.CLAUSE"),A.componentWidth)),A.chatWidth)))}}function Pt(H,ae){if(1&H&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"as"),e.qZA()),2&H){const A=e.oxw(4);e.xp6(1),e.Oqu(e.xi3(2,1,A.offer.state,A.Opened).clause)}}function ze(H,ae){if(1&H&&(e.TgZ(0,"nz-list",42),e.YNc(1,Et,11,15,"nz-list-item",43),e.ALo(2,"as"),e.YNc(3,gt,4,21,"nz-divider",40),e.ALo(4,"as"),e.YNc(5,Pt,3,4,"div",0),e.ALo(6,"as"),e.qZA()),2&H){const A=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",e.xi3(2,4,A.offer.state,A.Opened).breakdown.items)("ngForTrackBy",A.trackByItem),e.xp6(2),e.Q6J("ngIf",e.xi3(4,7,A.offer.state,A.Opened).clause),e.xp6(2),e.Q6J("ngIf",e.xi3(6,10,A.offer.state,A.Opened).clause)}}function ke(H,ae){if(1&H&&(e.TgZ(0,"div"),e.YNc(1,je,9,50,"nz-divider",40),e.ALo(2,"as"),e.YNc(3,ze,7,13,"nz-list",41),e.ALo(4,"as"),e.ALo(5,"as"),e.qZA()),2&H){const A=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.xi3(2,2,A.offer.state,A.Opened).breakdown&&A.resultOffer&&(A.resultOffer.state.type!==A.OfferStateType.Declined&&A.resultOffer.state.type!==A.OfferStateType.Revoked&&A.resultOffer.state.type!==A.OfferStateType.Accepted||(A.resultOffer.state.type===A.OfferStateType.Declined||A.resultOffer.state.type===A.OfferStateType.Revoked||A.resultOffer.state.type===A.OfferStateType.Accepted)&&A.isOpened)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,5,A.offer.state,A.Opened).breakdown&&e.xi3(5,8,A.offer.state,A.Opened).breakdown.items&&A.resultOffer&&(A.resultOffer.state.type!==A.OfferStateType.Declined&&A.resultOffer.state.type!==A.OfferStateType.Revoked&&A.resultOffer.state.type!==A.OfferStateType.Accepted||(A.resultOffer.state.type===A.OfferStateType.Declined||A.resultOffer.state.type===A.OfferStateType.Revoked||A.resultOffer.state.type===A.OfferStateType.Accepted)&&A.isOpened))}}function Je(H,ae){1&H&&(e.TgZ(0,"div"),e._UZ(1,"div"),e.qZA())}function ut(H,ae){if(1&H&&(e.TgZ(0,"span")(1,"span"),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"as"),e.qZA()()),2&H){const A=e.oxw(2);e.xp6(2),e.AsE("",e.lcZ(3,2,"CLIENT.CONVERSATIONS.OFFER.CAUSE"),": ",e.xi3(4,4,A.offer.state,A.DeclinedOrRevoked).cause,"")}}function Ot(H,ae){if(1&H&&(e.YNc(0,ke,6,11,"div",0),e.YNc(1,Je,2,0,"div",0),e.YNc(2,ut,5,7,"span",0)),2&H){const A=e.oxw();e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Opened),e.xp6(1),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Accepted),e.xp6(1),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Declined||A.offer.state.type===A.OfferStateType.Revoked)}}function xt(H,ae){if(1&H){const A=e.EpF();e.TgZ(0,"app-multi-state-button",47),e.NdJ("nzOnConfirm",function(){e.CHM(A);const be=e.oxw();return e.KtG(be.isDemo?be.routeToRegister():be.checkBillingAndPaymentWithButton())}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()}if(2&H){const A=e.oxw();e.Q6J("disabled",A.acceptDisabled||!A.isActive)("runFunction",A.acceptOfferPromise)("nzTextKeys",A.acceptText)("stickResult",!1)("nzPopconfirmTitle",e.lcZ(1,8,"LANDING.DEMOS.CONVERSATIONS.ACCEPT_OFFER.TITLE"))("nzCancelText",e.lcZ(2,10,"LANDING.DEMOS.CONVERSATIONS.ACCEPT_OFFER.CANCEL_TEXT"))("nzOkText",e.lcZ(3,12,"LANDING.DEMOS.CONVERSATIONS.ACCEPT_OFFER.OK_TEXT"))("nzCondition",!A.isDemo)}}function Ut(H,ae){1&H&&(e._UZ(0,"i",48),e._uU(1),e.ALo(2,"translate")),2&H&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.DEFAULT"),"\n"))}function Lt(H,ae){if(1&H){const A=e.EpF();e.TgZ(0,"app-multi-state-button",47),e.NdJ("nzOnConfirm",function(){e.CHM(A);const be=e.oxw();return e.KtG(be.isDemo?be.routeToRegister():be.downloadAgencySampleWithButton())}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()}if(2&H){const A=e.oxw();e.Q6J("disabled",!A.isActive)("runFunction",A.downloadAgencySampleFunction)("nzTextKeys",A.agencySampleText)("stickResult",!1)("nzPopconfirmTitle",e.lcZ(1,8,"LANDING.DEMOS.CONVERSATIONS.AGENCY_SAMPLE.TITLE"))("nzCancelText",e.lcZ(2,10,"LANDING.DEMOS.CONVERSATIONS.AGENCY_SAMPLE.CANCEL_TEXT"))("nzOkText",e.lcZ(3,12,"LANDING.DEMOS.CONVERSATIONS.AGENCY_SAMPLE.OK_TEXT"))("nzCondition",!A.isDemo)}}function yt(H,ae){1&H&&(e._UZ(0,"i",48),e._uU(1),e.ALo(2,"translate")),2&H&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.DEFAULT"),"\n"))}function Bt(H,ae){if(1&H&&e._UZ(0,"app-multi-state-button",49),2&H){const A=e.oxw();e.Q6J("defaultFunction",A.downloadAgencyFinalFunction)("nzTextKeys",A.agencyFinalText)("stickResult",!1)}}const Rt=function(){return{width:"500px","max-width":"90vw"}};function nn(H,ae){if(1&H){const A=e.EpF();e.TgZ(0,"app-multi-state-button",50),e.NdJ("nzPopoverVisibleChange",function(be){e.CHM(A);const It=e.oxw();return e.KtG(It.showCauseConfirm=be)})("nzPopoverVisibleChange",function(){e.CHM(A);const be=e.oxw();return e.KtG(be.clearCause())})("nzOnConfirm",function(){e.CHM(A);const be=e.oxw();return e.KtG(be.isDemo?be.routeToRegister():null)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()}if(2&H){const A=e.oxw(),st=e.MAs(29);
1757e.Q6J("nzPopoverContent",st)("nzPopoverOverlayStyle",e.DdM(19,Rt))("nzPopoverVisible",A.showCauseConfirm)("nzPopoverTrigger",A.isDemo?null:"click")("defaultIcon","close")("disabled",A.declineDisabled||!A.isActive)("runFunction",A.declineOfferPromise)("nzTextKeys",A.declineText)("stickResult",!1)("nzPopconfirmTitle",e.lcZ(1,13,"LANDING.DEMOS.CONVERSATIONS.REJECT_OFFER.TITLE"))("nzCancelText",e.lcZ(2,15,"LANDING.DEMOS.CONVERSATIONS.REJECT_OFFER.CANCEL_TEXT"))("nzOkText",e.lcZ(3,17,"LANDING.DEMOS.CONVERSATIONS.REJECT_OFFER.OK_TEXT"))("nzCondition",!A.isDemo)}}function zt(H,ae){if(1&H){const A=e.EpF();e.TgZ(0,"app-multi-state-button",51),e.NdJ("nzPopoverVisibleChange",function(be){e.CHM(A);const It=e.oxw();return e.KtG(It.showCauseConfirm=be)})("nzPopoverVisibleChange",function(){e.CHM(A);const be=e.oxw();return e.KtG(be.clearCause())}),e.qZA()}if(2&H){const A=e.oxw(),st=e.MAs(27);e.Q6J("nzPopoverContent",st)("nzPopoverOverlayStyle",e.DdM(9,Rt))("nzPopoverVisible",A.showCauseConfirm)("nzPopoverTrigger","click")("defaultIcon","close")("disabled",!A.isActive)("runFunction",A.revokeOfferPromise)("nzTextKeys",A.revokeText)("stickResult",!1)}}const Xt=function(){return{"font-size":"18px"}},Zt=function(H){return{"individualPrice text-right":H}};function Kt(H,ae){if(1&H&&(e._UZ(0,"nz-statistic",52),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"number"),e.ALo(4,"formatCurrencyName"),e.ALo(5,"as"),e.ALo(6,"translate")),2&H){const A=e.oxw();e.Q6J("nzValue",(A.clientTaxStatus?(A.clientTaxStatus.valueAddedTax===A.VATValue.Standard?e.lcZ(1,4,"CLIENT.CONVERSATIONS.OFFER.GROSS"):e.lcZ(2,6,"CLIENT.CONVERSATIONS.OFFER.NET"))+" ":"")+e.lcZ(3,8,A.summarizedPrice)+"\xa0"+e.lcZ(4,10,e.xi3(5,12,A.offer.state,A.Opened).currency))("nzValueStyle",e.DdM(17,Xt))("nzTitle",e.lcZ(6,15,"CLIENT.CONVERSATIONS.OFFER.SUMMARY_AMOUNT"))("ngClass",e.VKq(18,Zt,!A.isActive))}}function Ft(H,ae){if(1&H){const A=e.EpF();e.TgZ(0,"form",57),e.NdJ("keydown.enter",function(be){e.CHM(A);const It=e.oxw(2);return e.KtG(It.formService.preventEnterFromSubmit(be))}),e.TgZ(1,"nz-form-item",58)(2,"nz-form-label",59),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"nz-form-control",60)(6,"textarea",61),e.NdJ("blur",function(){e.CHM(A);const be=e.oxw(2);return e.KtG(be.updateCause())})("focusin",function(){e.CHM(A);const be=e.oxw(2);return e.KtG(be.updateCauseConfig(!1))}),e.ALo(7,"translate"),e.ALo(8,"as"),e.qZA()()()()}if(2&H){const A=e.oxw(2),st=e.MAs(31);e.Q6J("formGroup",A.causeForm),e.xp6(3),e.hij(" ",e.lcZ(4,6,"CLIENT.CONVERSATIONS.OFFER.DESCRIBE_REVOKE_CAUSE")," "),e.xp6(2),e.Q6J("nzValidateStatus",A.causeForm.controls.cause)("nzErrorTip",st),e.xp6(1),e.Q6J("placeholder",e.lcZ(7,8,"CLIENT.CONVERSATIONS.OFFER.CAUSE_REVOKE"))("formControl",e.xi3(8,10,A.causeForm.controls.cause,A.FormControl))}}function qt(H,ae){if(1&H){const A=e.EpF();e._uU(0),e.ALo(1,"translate"),e.YNc(2,Ft,9,13,"form",53),e.TgZ(3,"div",54)(4,"button",55),e.NdJ("click",function(){e.CHM(A);const be=e.oxw();return e.KtG(be.setShowCauseConfirm(!1))}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"button",56),e.NdJ("click",function(){e.CHM(A);const be=e.oxw();return e.KtG(be.revokeOffer())}),e._uU(8),e.ALo(9,"translate"),e.qZA()()}if(2&H){const A=e.oxw();e.hij(" ",e.lcZ(1,5,"CLIENT.CONVERSATIONS.OFFER.QUESTION.REVOKE")," "),e.xp6(2),e.Q6J("ngIf",A.causeForm),e.xp6(3),e.hij(" ",e.lcZ(6,7,"COMMON.CANCEL")," "),e.xp6(2),e.Q6J("nzGhost",A.causeSendDisabled),e.xp6(1),e.hij(" ",e.lcZ(9,9,"CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.REVOKE")," ")}}function on(H,ae){if(1&H){const A=e.EpF();e.TgZ(0,"form",57),e.NdJ("keydown.enter",function(be){e.CHM(A);const It=e.oxw(2);return e.KtG(It.formService.preventEnterFromSubmit(be))}),e.TgZ(1,"nz-form-item",58)(2,"nz-form-label",59),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"nz-form-control",60)(6,"textarea",61),e.NdJ("blur",function(){e.CHM(A);const be=e.oxw(2);return e.KtG(be.updateCause())})("focusin",function(){e.CHM(A);const be=e.oxw(2);return e.KtG(be.updateCauseConfig(!1))}),e.ALo(7,"translate"),e.ALo(8,"as"),e.qZA()()()()}if(2&H){const A=e.oxw(2),st=e.MAs(31);e.Q6J("formGroup",A.causeForm),e.xp6(3),e.hij(" ",e.lcZ(4,6,"CLIENT.CONVERSATIONS.OFFER.DESCRIBE_DECLINE_CAUSE")," "),e.xp6(2),e.Q6J("nzValidateStatus",A.causeForm.controls.cause)("nzErrorTip",st),e.xp6(1),e.Q6J("placeholder",e.lcZ(7,8,"CLIENT.CONVERSATIONS.OFFER.CAUSE_DECLINE"))("formControl",e.xi3(8,10,A.causeForm.controls.cause,A.FormControl))}}function Yt(H,ae){if(1&H){const A=e.EpF();e._uU(0),e.ALo(1,"translate"),e.YNc(2,on,9,13,"form",53),e.TgZ(3,"div",54)(4,"button",55),e.NdJ("click",function(){e.CHM(A);const be=e.oxw();return e.KtG(be.setShowCauseConfirm(!1))}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"button",56),e.NdJ("click",function(){e.CHM(A);const be=e.oxw();return e.KtG(be.declineOffer())}),e._uU(8),e.ALo(9,"translate"),e.qZA()()}if(2&H){const A=e.oxw();e.hij(" ",e.lcZ(1,5,"CLIENT.CONVERSATIONS.OFFER.QUESTION.DECLINE")," "),e.xp6(2),e.Q6J("ngIf",A.causeForm),e.xp6(3),e.hij(" ",e.lcZ(6,7,"COMMON.CANCEL")," "),e.xp6(2),e.Q6J("nzGhost",A.causeSendDisabled),e.xp6(1),e.hij(" ",e.lcZ(9,9,"CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.DECLINE_POPCONFIRM")," ")}}const mn=function(H){return{maxLength:H}};function un(H,ae){if(1&H&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&H){const A=e.oxw().$implicit;e.xp6(1),e.hij("",e.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CAUSE_VALIDATION.MAX_LENGTH",e.VKq(4,mn,A.errors.maxlength.requiredLength))," ")}}const Vt=function(H){return{minLength:H}};function $n(H,ae){if(1&H&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&H){const A=e.oxw().$implicit;e.xp6(1),e.hij("",e.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.CAUSE_VALIDATION.MIN_LENGTH",e.VKq(4,Vt,A.errors.minlength.requiredLength))," ")}}function jn(H,ae){1&H&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&H&&(e.xp6(1),e.hij("",e.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.CAUSE_VALIDATION.REQUIRED")," "))}function hn(H,ae){if(1&H&&(e.YNc(0,un,3,6,"ng-container",0),e.YNc(1,$n,3,6,"ng-container",0),e.YNc(2,jn,3,3,"ng-container",0)),2&H){const A=ae.$implicit;e.Q6J("ngIf",A.hasError("maxlength")),e.xp6(1),e.Q6J("ngIf",A.hasError("minlength")),e.xp6(1),e.Q6J("ngIf",A.hasError("required"))}}function Xn(H,ae){if(1&H&&e._UZ(0,"nz-avatar",62),2&H){const A=e.oxw();e.Q6J("nzSrc",A.imagesToShow[A.offer.userID])}}const Mn=function(H,ae){return{clientName:H,timeLeft:ae}};function zn(H,ae){if(1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"dateAfter"),e.ALo(4,"as"),e.qZA()),2&H){const A=e.oxw(4);e.xp6(1),e.hij(" ",e.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.ACCEPTED_DESCRIPTION_LAWYER",e.WLB(11,Mn,A.otherParticipant.name,A.originOffer?e.Dn7(3,4,e.xi3(4,8,A.originOffer.state,A.Opened).deadline,A.trigger,2):null))," ")}}const Jt=function(H,ae){return{lawyerName:H,timeLeft:ae}};function qn(H,ae){if(1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"dateAfter"),e.ALo(4,"as"),e.qZA()),2&H){const A=e.oxw(4);e.xp6(1),e.hij(" ",e.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.ACCEPTED_DESCRIPTION_CLIENT",e.W
1757LB(11,Jt,A.otherParticipant.name,A.originOffer?e.Dn7(3,4,e.xi3(4,8,A.originOffer.state,A.Opened).deadline,A.trigger,2):null))," ")}}function ei(H,ae){if(1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"dateAgo"),e.ALo(4,"as"),e.qZA()),2&H){const A=e.oxw(4);e.xp6(1),e.hij(" ",e.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.ACCEPTED_DESCRIPTION_LAWYER_FINISHED",e.WLB(11,Mn,A.otherParticipant.name,A.originOffer?e.Dn7(3,4,e.xi3(4,8,A.originOffer.state,A.Opened).deadline,A.trigger,2):null))," ")}}function ti(H,ae){if(1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"dateAgo"),e.ALo(4,"as"),e.qZA()),2&H){const A=e.oxw(4);e.xp6(1),e.hij(" ",e.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.ACCEPTED_DESCRIPTION_CLIENT_FINISHED",e.WLB(11,Jt,A.otherParticipant.name,A.originOffer?e.Dn7(3,4,e.xi3(4,8,A.originOffer.state,A.Opened).deadline,A.trigger,2):null))," ")}}function ni(H,ae){1&H&&e.GkF(0)}function gn(H,ae){if(1&H&&(e.TgZ(0,"div",72),e.YNc(1,ni,1,0,"ng-container",19),e.qZA()),2&H){e.oxw(4);const A=e.MAs(19);e.xp6(1),e.Q6J("ngTemplateOutlet",A)}}function ii(H,ae){if(1&H&&(e.TgZ(0,"span",68),e.YNc(1,zn,5,14,"span",0),e.YNc(2,qn,5,14,"span",0),e.YNc(3,ei,5,14,"span",0),e.YNc(4,ti,5,14,"span",0),e.TgZ(5,"button",69),e.ALo(6,"date"),e.ALo(7,"as"),e._UZ(8,"i",70),e.qZA(),e.YNc(9,gn,2,1,"div",71),e.ALo(10,"as"),e.qZA()),2&H){const A=e.oxw(3);e.xp6(1),e.Q6J("ngIf",A.otherParticipant&&A.otherParticipant.kind===A.UserType.Client&&!A.deadlineExpired),e.xp6(1),e.Q6J("ngIf",A.otherParticipant&&A.otherParticipant.kind===A.UserType.Lawyer&&!A.deadlineExpired),e.xp6(1),e.Q6J("ngIf",A.otherParticipant&&A.otherParticipant.kind===A.UserType.Client&&A.deadlineExpired),e.xp6(1),e.Q6J("ngIf",A.otherParticipant&&A.otherParticipant.kind===A.UserType.Lawyer&&A.deadlineExpired),e.xp6(1),e.Q6J("nzTooltipTitle",A.originOffer?e.gM2(6,6,e.xi3(7,11,A.originOffer.state,A.Opened).deadline,"medium",null,A.dateLocale):null),e.xp6(4),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Accepted&&e.xi3(10,14,A.offer.state,A.Accepted).serviceID)}}const an=function(H){return{clientName:H}};function Fn(H,ae){if(1&H&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H){const A=e.oxw(4);e.xp6(1),e.hij(" ",e.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.DECLINED_DESCRIPTION_LAWYER",e.VKq(4,an,A.otherParticipant.name))," ")}}const Pn=function(H){return{lawyerName:H}};function en(H,ae){if(1&H&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H){const A=e.oxw(4);e.xp6(1),e.hij(" ",e.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.DECLINED_DESCRIPTION_CLIENT",e.VKq(4,Pn,A.otherParticipant.name))," ")}}function oi(H,ae){if(1&H&&(e.TgZ(0,"span",68),e.YNc(1,Fn,3,6,"div",0),e.YNc(2,en,3,6,"div",0),e.TgZ(3,"div"),e._uU(4),e.ALo(5,"translate"),e.TgZ(6,"p",73),e._uU(7,' "'),e.TgZ(8,"span",74),e._uU(9),e.ALo(10,"as"),e.qZA(),e._uU(11,'" '),e.qZA()()()),2&H){const A=e.oxw(3);e.xp6(1),e.Q6J("ngIf",A.otherParticipant&&A.otherParticipant.kind===A.UserType.Client),e.xp6(1),e.Q6J("ngIf",A.otherParticipant&&A.otherParticipant.kind===A.UserType.Lawyer),e.xp6(2),e.hij(" ",e.lcZ(5,4,"CLIENT.CONVERSATIONS.OFFER.CAUSE_DECLINED"),": "),e.xp6(5),e.Oqu(e.xi3(10,6,A.offer.state,A.DeclinedOrRevoked).cause)}}function ai(H,ae){if(1&H&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H){const A=e.oxw(4);e.xp6(1),e.hij(" ",e.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.REVOKED_DESCRIPTION_LAWYER",e.VKq(4,an,A.otherParticipant.name))," ")}}function si(H,ae){if(1&H&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H){const A=e.oxw(4);e.xp6(1),e.hij(" ",e.xi3(2,1,"CLIENT.CONVERSATIONS.OFFER.REVOKED_DESCRIPTION_CLIENT",e.VKq(4,Pn,A.otherParticipant.name))," ")}}function Un(H,ae){if(1&H&&(e.TgZ(0,"span",68),e.YNc(1,ai,3,6,"div",0),e.YNc(2,si,3,6,"div",0),e.TgZ(3,"div"),e._uU(4),e.ALo(5,"translate"),e.TgZ(6,"p",73),e._uU(7,' "'),e.TgZ(8,"span",74),e._uU(9),e.ALo(10,"as"),e.qZA(),e._uU(11,'" '),e.qZA()()()),2&H){const A=e.oxw(3);e.xp6(1),e.Q6J("ngIf",A.otherParticipant&&A.otherParticipant.kind===A.UserType.Client),e.xp6(1),e.Q6J("ngIf",A.otherParticipant&&A.otherParticipant.kind===A.UserType.Lawyer),e.xp6(2),e.hij(" ",e.lcZ(5,4,"CLIENT.CONVERSATIONS.OFFER.CAUSE_REVOKED"),": "),e.xp6(5),e.Oqu(e.xi3(10,6,A.offer.state,A.DeclinedOrRevoked).cause)}}function pn(H,ae){if(1&H&&(e.YNc(0,ii,11,17,"span",67),e.YNc(1,oi,12,9,"span",67),e.YNc(2,Un,12,9,"span",67)),2&H){const A=e.oxw(2);e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Accepted&&A.originOffer),e.xp6(1),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Declined),e.xp6(1),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Revoked)}}function Bn(H,ae){if(1&H&&(e.TgZ(0,"div"),e._UZ(1,"nz-divider",75),e.ALo(2,"hyphen"),e.ALo(3,"hyphen"),e.ALo(4,"translate"),e.TgZ(5,"div",30),e._uU(6),e.ALo(7,"as"),e.qZA()()),2&H){const A=e.oxw(2);e.xp6(1),e.s9C("nzText",e.G7q(2,2,e.WLB(22,Le,e.G7q(3,8,e.WLB(19,Be,e.lcZ(4,14,"CLIENT.CONVERSATIONS.OFFER.BRIEF"),A.componentWidth)),A.chatWidth))),e.xp6(
17575),e.Oqu(e.xi3(7,16,A.originOffer.state,A.Opened).brief)}}function bn(H,ae){1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.MORE_ACCEPTED")," "))}function Zn(H,ae){1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.MORE_DECLINED")," "))}function Gn(H,ae){1&H&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.CONVERSATIONS.OFFER.MORE_REVOKED")," "))}function Hn(H,ae){if(1&H){const A=e.EpF();e.TgZ(0,"button",76),e.NdJ("click",function(){e.CHM(A);const be=e.oxw(2);return e.KtG(be.openOriginOfferModal())}),e.YNc(1,bn,3,3,"span",0),e.YNc(2,Zn,3,3,"span",0),e.YNc(3,Gn,3,3,"span",0),e.qZA()}if(2&H){const A=e.oxw(2);e.xp6(1),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Accepted),e.xp6(1),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Declined),e.xp6(1),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Revoked)}}const sn=function(H){return{shrinkedCard:H}};function Wn(H,ae){if(1&H&&(e.TgZ(0,"div")(1,"nz-card",63),e._UZ(2,"nz-card-meta",64),e.YNc(3,pn,3,3,"ng-template",null,65,e.W1O),e.YNc(5,Bn,8,25,"div",0),e.qZA(),e.YNc(6,Hn,4,3,"ng-template",null,66,e.W1O),e.qZA()),2&H){const A=e.MAs(4),st=e.MAs(7),be=e.oxw(),It=e.MAs(5),vt=e.MAs(33);e.xp6(1),e.Q6J("nzTitle",It)("nzExtra",st)("ngClass",e.VKq(6,sn,be.componentWidth<340||be.chatWidth<510)),e.xp6(1),e.Q6J("nzAvatar",vt)("nzTitle",A),e.xp6(3),e.Q6J("ngIf",be.originOffer&&be.offer.state.type===be.OfferStateType.Accepted)}}const rn=function(H,ae){return{summarizedPrice:H,currency:ae}};function Tn(H,ae){if(1&H&&(e.TgZ(0,"div",30)(1,"div",30)(2,"p",73),e._UZ(3,"span",78),e.ALo(4,"safe"),e.ALo(5,"hyphen"),e.ALo(6,"hyphen"),e.ALo(7,"translate"),e.ALo(8,"number"),e.ALo(9,"formatCurrencyName"),e.ALo(10,"as"),e.TgZ(11,"span",38),e._uU(12),e.ALo(13,"date"),e.ALo(14,"as"),e.qZA()()()()),2&H){const A=e.oxw(2);e.xp6(3),e.Q6J("innerHTML",e.xi3(4,3,e.G7q(5,6,e.WLB(42,Le,e.G7q(6,12,e.WLB(39,Be,e.xi3(7,18,"CLIENT.CONVERSATIONS.OFFER.EXPLANATION",e.WLB(36,rn,e.lcZ(8,21,A.summarizedPrice),e.lcZ(9,23,e.xi3(10,25,A.offer.state,A.Opened).currency))),A.componentWidth)),A.chatWidth)),"html"),e.oJD),e.xp6(8),e.Q6J("ngClass",e.VKq(45,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.hij(" ",e.gM2(13,28,e.xi3(14,33,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale),"")}}function Gt(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"p",73),e._UZ(2,"span",78),e.ALo(3,"safe"),e.ALo(4,"hyphen"),e.ALo(5,"hyphen"),e.ALo(6,"translate"),e.ALo(7,"number"),e.ALo(8,"formatCurrencyName"),e.ALo(9,"as"),e.TgZ(10,"span",38),e._uU(11),e.ALo(12,"date"),e.ALo(13,"as"),e.qZA()(),e.BQk()),2&H){const A=e.oxw(3);e.xp6(2),e.Q6J("innerHTML",e.xi3(3,3,e.G7q(4,6,e.WLB(42,Le,e.G7q(5,12,e.WLB(39,Be,e.xi3(6,18,"CLIENT.CONVERSATIONS.OFFER.EXPLANATION_INACTIVE",e.WLB(36,rn,e.lcZ(7,21,A.summarizedPrice),e.lcZ(8,23,e.xi3(9,25,A.offer.state,A.Opened).currency))),A.componentWidth)),A.chatWidth)),"html"),e.oJD),e.xp6(8),e.Q6J("ngClass",e.VKq(45,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.hij(" ",e.gM2(12,28,e.xi3(13,33,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale),"")}}function Kn(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"p",73),e._UZ(2,"span",78),e.ALo(3,"safe"),e.ALo(4,"hyphen"),e.ALo(5,"hyphen"),e.ALo(6,"translate"),e.ALo(7,"number"),e.ALo(8,"formatCurrencyName"),e.ALo(9,"as"),e.TgZ(10,"span",38),e._uU(11),e.ALo(12,"date"),e.ALo(13,"as"),e.qZA()(),e.BQk()),2&H){const A=e.oxw(4);e.xp6(2),e.Q6J("innerHTML",e.xi3(3,3,e.G7q(4,6,e.WLB(42,Le,e.G7q(5,12,e.WLB(39,Be,e.xi3(6,18,"CLIENT.CONVERSATIONS.OFFER.EXPLANATION_ACCEPTED",e.WLB(36,rn,e.lcZ(7,21,A.summarizedPrice),e.lcZ(8,23,e.xi3(9,25,A.offer.state,A.Opened).currency))),A.componentWidth)),A.chatWidth)),"html"),e.oJD),e.xp6(8),e.Q6J("ngClass",e.VKq(45,De,!(A.componentWidth<340||A.chatWidth<510))),e.xp6(1),e.hij(" ",e.gM2(12,28,e.xi3(13,33,A.offer.state,A.Opened).deadline,"medium",null,A.dateLocale),"")}}function Yn(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"p",73),e._UZ(2,"span",78),e.ALo(3,"safe"),e.ALo(4,"hyphen"),e.ALo(5,"hyphen"),e.ALo(6,"translate"),e.ALo(7,"number"),e.ALo(8,"formatCurrencyName"),e.ALo(9,"as"),e.qZA(),e.BQk()),2&H){const A=e.oxw(4);e.xp6(2),e.Q6J("innerHTML",e.xi3(3,1,e.G7q(4,4,e.WLB(32,Le,e.G7q(5,10,e.WLB(29,Be,e.xi3(6,16,"CLIENT.CONVERSATIONS.OFFER.EXPLANATION_DECLINED",e.WLB(26,rn,e.lcZ(7,19,A.summarizedPrice),e.lcZ(8,21,e.xi3(9,23,A.offer.state,A.Opened).currency))),A.componentWidth)),A.chatWidth)),"html"),e.oJD)}}
1757function Vn(H,ae){if(1&H&&(e.ynx(0),e.TgZ(1,"p",73),e._UZ(2,"span",78),e.ALo(3,"safe"),e.ALo(4,"hyphen"),e.ALo(5,"hyphen"),e.ALo(6,"translate"),e.ALo(7,"number"),e.ALo(8,"formatCurrencyName"),e.ALo(9,"as"),e.qZA(),e.BQk()),2&H){const A=e.oxw(4);e.xp6(2),e.Q6J("innerHTML",e.xi3(3,1,e.G7q(4,4,e.WLB(32,Le,e.G7q(5,10,e.WLB(29,Be,e.xi3(6,16,"CLIENT.CONVERSATIONS.OFFER.EXPLANATION_REVOKED",e.WLB(26,rn,e.lcZ(7,19,A.summarizedPrice),e.lcZ(8,21,e.xi3(9,23,A.offer.state,A.Opened).currency))),A.componentWidth)),A.chatWidth)),"html"),e.oJD)}}function wt(H,ae){if(1&H&&(e.ynx(0),e.YNc(1,Kn,14,47,"ng-container",0),e.YNc(2,Yn,10,35,"ng-container",0),e.YNc(3,Vn,10,35,"ng-container",0),e.BQk()),2&H){const A=e.oxw(3);e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Accepted&&A.isOpened),e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Declined&&A.isOpened),e.xp6(1),e.Q6J("ngIf",A.resultOffer.state.type===A.OfferStateType.Revoked&&A.isOpened)}}function Jn(H,ae){if(1&H&&(e.TgZ(0,"div",30),e.YNc(1,Gt,14,47,"ng-container",0),e.YNc(2,wt,4,3,"ng-container",0),e.qZA()),2&H){const A=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!A.resultOffer),e.xp6(1),e.Q6J("ngIf",A.resultOffer)}}const wn=function(H){return{"p-l-10 p-r-10":H}};function Rn(H,ae){if(1&H&&(e.TgZ(0,"div",77),e._UZ(1,"nz-divider",39),e.ALo(2,"hyphen"),e.ALo(3,"hyphen"),e.ALo(4,"translate"),e.YNc(5,Tn,15,47,"div",29),e.YNc(6,Jn,3,2,"div",29),e.qZA()),2&H){const A=e.oxw();e.Q6J("ngClass",e.VKq(18,wn,A.componentWidth<340||A.chatWidth<510)),e.xp6(1),e.s9C("nzText",e.G7q(2,4,e.WLB(23,Le,e.G7q(3,10,e.WLB(20,Be,e.lcZ(4,16,"CLIENT.CONVERSATIONS.OFFER.WHAT_DOES_THIS_MEAN"),A.componentWidth)),A.chatWidth))),e.xp6(4),e.Q6J("ngIf",A.isActive),e.xp6(1),e.Q6J("ngIf",!A.isActive)}}let kt=class{constructor(ae,A,st,be,It,vt,Wt,ln,bt,tn,En,cn,ri,li,kn,Qt){this.nzModal=ae,this.translate=A,this.clientService=st,this.chatService=be,this.dateTrigger=It,this.formService=vt,this.modalService=Wt,this.paymentModalService=ln,this.userService=bt,this.resizeService=tn,this.routerService=En,this.formatCurrencyNamePipe=cn,this.paymentService=ri,this.appService=li,this.eventService=kn,this.trackingService=Qt,this.modifyEmitter=new e.vpe,this.isModal=!1,this.isDemo=!1,this.OfferStateType=o.Ff,this.UserType=t.FW,this.Opened=o.Om,this.cause="",this.summarizedPrice=0,this.imagesToShow={},this.trigger=0,this.dateLocale="hu",this.deadlineExpired=!1,this.acceptDisabled=!1,this.declineDisabled=!1,this.isOpened=!1,this.acceptText=new r.PR("CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.ACCEPT.DEFAULT","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.ACCEPT.WORKING","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.ACCEPT.SUCCESS",(new Map).set(0,"CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.ACCEPT.FAILED.OTHER").set(400,"CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.ACCEPT.FAILED.400").set(442,"CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.ACCEPT.FAILED.442")),this.declineText=new r.PR("CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.DECLINE.DEFAULT","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.DECLINE.WORKING","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.DECLINE.SUCCESS","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.DECLINE.FAILED"),this.revokeText=new r.PR("CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.REVOKE.DEFAULT","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.REVOKE.WORKING","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.REVOKE.SUCCESS","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.REVOKE.FAILED"),this.agencySampleText=new r.PR("CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_SAMPLE.DEFAULT","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_SAMPLE.WORKING","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_SAMPLE.SUCCESS","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_SAMPLE.FAILED"),this.agencyFinalText=new r.PR("CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.DEFAULT","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.WORKING","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.SUCCESS","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.FAILED"),this.showCauseConfirm=!1,this.causeSendDisabled=!1,this.phoneView=!1,this.lowResolution=!1,this.chatWidth=1e3,this.componentWidth=1e3,this.VATValue=C.di5,this.Accepted=o.vi,this.DeclinedOrRevoked=o.Wo||o.Tu,this.FormControl=v.p4}ngOnInit(){this.dateTrigger.trigger.pipe((0,u.t)(this)).subscribe(ae=>{this.trigger=ae}),this.clearCause(),this.offer.state.type===o.Ff.Opened&&(this.summarizedPrice=this.offer.state.breakdown.items.reduce((ae,A)=>ae+A.price,0)),this.participants&&(this.otherParticipant=this.participants.find(ae=>ae.userID!==this.userService.sessionUserID)),this.isDemo?(this.userType=t.FW.Client,this.imagesToShow[this.offer.userID]=a.M[0].avatar,this.clientTaxStatus=new C.v5T,this.clientTaxStatus.valueAddedTax=C.di5.Standard):(this.userType=this.clientService.userService.sessionType,this.clientService.getImageByID(this.offer.userID).pipe((0,u.t)(this)).subscribe(ae=>{const A=new FileReader;A.addEventListener("load",()=>{this.imagesToShow[this.offer.userID]=A.result}
1757,!1),ae&&A.readAsDataURL(ae)},ae=>{})),this.isModal&&(this.isOpened=!0),this.translate.currentLang&&(this.dateLocale=this.translate.currentLang),this.translate.onLangChange.pipe((0,u.t)(this)).subscribe(ae=>{this.dateLocale=ae.lang}),setTimeout(()=>{this.offer.state.type!==o.Ff.Opened?this.getOrigin():this.isActive||this.getResult()},0),this.downloadAgencyFinalFunction=()=>this.offer.state.type===o.Ff.Accepted&&this.offer.state.serviceID?this.downloadAgencyFinalWithButton(this.offer.state.serviceID):this.offer.state.type===o.Ff.Opened&&this.resultOffer&&this.resultOffer.state.type===o.Ff.Accepted&&this.resultOffer.state.serviceID?this.downloadAgencyFinalWithButton(this.resultOffer.state.serviceID):void 0,this.resizeService.width.pipe((0,u.t)(this)).subscribe(ae=>{ae<1185?(this.phoneView=!0,this.lowResolution=ae<400):(this.phoneView=!1,this.lowResolution=!1)}),window.innerWidth<1185&&(this.phoneView=!0),this.clientTaxStatus=this.eventService.clientStatus,this.eventService.changedClientStatus.pipe((0,u.t)(this)).subscribe(ae=>{this.clientTaxStatus=ae})}ngOnDestroy(){this.deadlineExpiredTimeout&&clearTimeout(this.deadlineExpiredTimeout)}ngOnChanges(ae){if(ae.chatResultOffers&&!this.resultOffer&&this.offer.state.type===o.Ff.Opened&&this.getResult(),ae.pendingOfferModification&&this.pendingOfferModification&&!this.acceptOfferPromise&&!this.declineOfferPromise&&!this.revokeOfferPromise)switch(this.pendingOfferModification.modifyOffer.mutation.type){case o.Ff.Accept:this.acceptOfferPromise=this.pendingOfferModification.modifyOfferPromise,this.handleAcceptPromise();break;case o.Ff.Decline:this.declineOfferPromise=this.pendingOfferModification.modifyOfferPromise,this.handleDeclinePromise();break;case o.Ff.Revoke:this.revokeOfferPromise=this.pendingOfferModification.modifyOfferPromise,this.handleRevokePromise()}}ngAfterViewInit(){this.defaultAgencySampleText&&(this.agencySampleText=new r.PR(this.defaultAgencySampleText,"CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.WORKING","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.SUCCESS","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.FAILED")),this.defaultAgencyFinalText&&(this.agencyFinalText=new r.PR(this.defaultAgencyFinalText,"CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.WORKING","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.SUCCESS","CLIENT.CONVERSATIONS.OFFER.FUNCTIONS.BUTTON_STATES.AGENCY_FINAL.FAILED"))}checkBillingAndPaymentWithButton(){this.acceptOfferPromise=this.checkBillingAndPayment()}checkBillingAndPayment(){return this.clientService.getBilling().pipe((0,u.t)(this)).toPromise().then(ae=>{this.hasBilling=null!=ae},ae=>{this.hasBilling=!1}).then(()=>this.clientService.getPaymentMethod().pipe((0,u.t)(this)).toPromise().then(ae=>(this.hasPayment=0!==ae.length,this.attemptAcceptOffer()),ae=>(this.hasPayment=!1,this.attemptAcceptOffer())))}attemptAcceptOffer(){return this.hasBilling&&this.hasPayment?new Promise((ae,A)=>{let st;const Wt=`${this.summarizedPrice} ${this.formatCurrencyNamePipe.transform(this.offer.state.currency)}`;st=this.paymentModalService.choosePaymentModal(tn=>new c.y(En=>{this.acceptOffer(tn).then(cn=>{En.next(cn)},cn=>{En.error(cn)})}),this.acceptText,this.translate.instant("CLIENT.PROFILE.PAYMENT.CONFIRM.RECEIVE.Q.AMOUNT",{amount:this.summarizedPrice,currency:this.formatCurrencyNamePipe.transform(this.offer.state.currency)}),"assets/images/marchmaking-service.svg",this.offer.state.brief,Wt,"CLIENT.CONVERSATIONS.OFFER.CHOSEN_OFFER",m.Oz.OFFER,()=>{ae(),st?st.close():this.nzModal.closeAll()},()=>A(),()=>A(),"CLIENT.PROFILE.PAYMENT.CHOOSE_TITLE_OFFER","CLIENT.PROFILE.PAYMENT.PAYMENT_CHOOSE_FOOTER_OFFER",!0,"CLIENT.PROFILE.PAYMENT.POPCONFIRM.OFFER_ACCEPT",null,this.offer.state.currency?this.offer.state.currency:C.Fa6.HUF)}):this.showOnepagecheckout()}showOnepagecheckout(){let ae=!1;return new Promise((A,st)=>{this.paymentModalService.onepagecheckoutModalForOffer(!this.hasBilling,!this.hasPayment,this.phoneView,this.acceptText,this.summarizedPrice,this.offer.state.currency?this.offer.state.currency:C.Fa6.HUF,this.offer.state.brief,be=>{const It=this.acceptOffer(be);return A(It),It},()=>{ae=!0,st(),this.nzModal.closeAll()})})}acceptOffer(ae){const A=new o.Ir,st=new o.JD(this.offer.originID,A);let be;return be=f.L.config.currentPaymentProvider===C.OHy.Braintree&&ae instanceof C.F62?this.clientService.postOfferBraintreePurchase(new C.r0R(this.offer.chatID,this.offer.originID,ae)).pipe((0,u.t)(this)).toPromise():f.L.config.currentPaymentProvider===C.OHy.Str
1757ipe&&ae instanceof C.BAK?this.clientService.postOfferStripePurchase(new C.w2Z(this.offer.chatID,this.offer.originID,ae.idempotencyID)).pipe((0,u.t)(this)).toPromise().then(It=>ae.stripe.confirmCardPayment(It.clientSecret,{payment_method:ae.paymentID}).then(vt=>!vt.error||vt.error.code&&"payment_intent_unexpected_state"===vt.error.code?this.paymentService.paymentStripeCheck(this.clientService.postOfferStripeCheck(new C.QI5(It.paymentIntentID)).pipe((0,u.t)(this))):Promise.reject(),vt=>(console.log(vt),Promise.reject(vt))),It=>(console.log(It),Promise.reject(It))):Promise.reject(),this.handleAcceptPromise(),this.modifyEmitter.emit(new o.C5(st,this.offer.chatID,this.acceptOfferPromise,null,null)),be.then(It=>{this.trackingService.sendGoogleTagManagerPurchaseEvent(this.summarizedPrice,this.offer.state.currency),this.trackingService.sendPixelPurchaseEvent([C.Vr4.Mediated.toString()],this.summarizedPrice,this.offer.state.currency)},It=>{console.log(It)}),be}handleAcceptPromise(){this.declineDisabled=!0,this.acceptOfferPromise.then(ae=>{this.modal&&this.modal.close()},ae=>{this.declineDisabled=!1})}declineOffer(){if(this.causeForm.valid){this.setShowCauseConfirm(!1);const ae=new o.w5(this.cause);this.declineOfferPromise=new Promise((st,be)=>{this.modifyOfferResolve=st,this.modifyOfferReject=be});const A=new o.JD(this.offer.originID,ae);this.handleDeclinePromise(),this.modifyEmitter.emit(new o.C5(A,this.offer.chatID,this.declineOfferPromise,this.modifyOfferResolve,this.modifyOfferReject))}else this.formService.markAllAsTouched(this.causeForm)}setShowCauseConfirm(ae){this.showCauseConfirm=ae}handleDeclinePromise(){this.acceptDisabled=!0,this.declineOfferPromise.then(ae=>{this.modal&&this.modal.close()},ae=>{this.acceptDisabled=!1})}revokeOffer(){if(this.causeForm.valid){this.setShowCauseConfirm(!1);const ae=new o.j(this.cause),A=new o.JD(this.offer.originID,ae);this.revokeOfferPromise=new Promise((st,be)=>{this.modifyOfferResolve=st,this.modifyOfferReject=be}),this.handleRevokePromise(),this.modifyEmitter.emit(new o.C5(A,this.offer.chatID,this.revokeOfferPromise,this.modifyOfferResolve,this.modifyOfferReject))}else this.formService.markAllAsTouched(this.causeForm)}handleRevokePromise(){this.revokeOfferPromise.then(ae=>{this.modal&&this.modal.close()},ae=>{})}updateCause(){this.cause=this.formService.groupToCause(this.causeForm),this.updateCauseConfig(!0)}clearCause(){this.cause="",this.causeForm=this.formService.causeFormGroup(this.cause),setTimeout(()=>this.updateCauseConfig(!0),0)}updateCauseConfig(ae){this.causeSendDisabled=!this.causeForm.valid&&!0===ae}updateDeadlineExpired(){if(this.originOffer){const ae=this.originOffer.state.deadline-Date.now();this.deadlineExpired=ae<=0,this.deadlineExpiredTimeout=this.deadlineExpired?null:setTimeout(()=>this.updateDeadlineExpired(),ae)}}getOrigin(){return this.chatOriginOffers&&(this.originOffer=this.chatOriginOffers.find(ae=>ae.ID===this.offer.originID)),this.originOffer?(this.updateDeadlineExpired(),Promise.resolve()):this.chatService.postMessages(this.offer.chatID,[this.offer.originID]).toPromise().then(ae=>{ae.length>0&&(this.chatOriginOffers.push(ae[0]),this.originOffer=ae[0],this.updateDeadlineExpired())})}getResult(){this.chatResultOffers&&(this.resultOffer=this.chatResultOffers.find(ae=>ae.originID===this.offer.originID))}openOriginOfferModal(){this.getOrigin().then(()=>{this.originOffer&&this.modalService.offerWidgetModal(this.originOffer,!1,this.participants,()=>null,this.isDemo,this.offer)})}downloadAgencySampleWithButton(){if(this.offer.state.type===o.Ff.Opened){const ae=this.offer.state,A=new o.A9(ae.brief,ae.deadline,new o.I6(this.summarizedPrice,ae.currency),ae.breakdown,ae.clause),st=new o.dx(this.offer.chatID,A);return this.downloadAgencySampleFunction=this.clientService.getAgencyContractSample(st).pipe((0,u.t)(this)).toPromise(),this.downloadAgencySampleFunction.then(be=>{const It=this.translate.instant("CLIENT.CONVERSATIONS.AGENCY_CONTRACT.FILE_NAME")+".pdf",vt=document.createElement("a"),Wt=URL.createObjectURL(be);vt.href=Wt,vt.download=It,document.body.appendChild(vt),vt.click(),setTimeout(()=>{document.body.removeChild(vt),window.URL.revokeObjectURL(Wt)},0)},be=>{}),this.downloadAgencySampleFunction}}onResized(ae){this.componentWidth=ae.newRect.width}downloadAgencyFinalWithButton(ae){return this.chatService.downloadAgencyContract(ae)}routeToRegister(){this.routerService.routeToRegisterHref(),this.nzModal.closeAll()}trackByItem(ae,A){return A.name}};kt.\u0275fac=function(ae){return new(ae||kt)(e.Y36(O.Sf),e.Y36(N.sK),e.Y36(L.y),e.Y36(i.a),e.Y36(M.J),e.Y36(R.o),e.Y36(l.Z),e.Y36(h.u),e.Y36(D.K),e.Y36(B._),e.Y36(K.c),e.Y36(b.U2),e.Y36(w.t),e.Y36(f.L),e.Y36(X.P),e.Y36(Y.e))},kt.\u0275cmp=e.Xpm({type:kt,selectors:[["app-offer-widget"]],viewQuery:function(ae,A){if(1&ae&&(e.Gf(Ct,5),e.Gf(ht,5)),2&ae){let st;e.iGM(st=e.CRH())&&(A.defaultAgencySampleText=st.first),e.iGM(st=e.CRH())&&(A.defaultAgencyFinalText=st.first)}},inputs:{offer:"offer",isActive:"isActive",isModal:"isModal",participants:"participants",chatOriginOffers:"chatOriginOffers",chatResultOffers:"chatResultOffers",resultOffer:"resultOffer",pendingOfferModification:"pendingOfferModification",isDemo:"isDemo",chatWidth:"chatWidth"},outputs:{modifyEmitter:"modifyEmitter"},features:[e.TTD],decls:36,vars:4,consts:[[4,"ngIf"],[3,"resized",4,"ngIf"],["offerWidgetTemplate",""],["cardTitle",""],["description",""],["breakdown",""],["accept",""],["defaultAgencySampleText",""],["agencySample",""],["defaultAgencyFinalText",""],["agencyFinal",""],["reject",""],["revoke",""],["price",""],["revokeConfirm",""],["declineConfirm",""],["causeFormErrorTip",""],["avatarTemplate",""],["class","bottomDiv p-b-10",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"resized"],["class","m-b-0 border-0",3,"ngClass","ngStyle","nzActions",4,"ngIf"],[1,"m-b-0","border-0",3,"ngClass","ngStyle","nzActions"],[3,"nzDescription"],[3,"nzItemLayout"],[1,"d-block","p-t-0","p-b-0",3,"nzContent"],[3,"nzTitle","nzAvatar","nzDescription"],["reviewTitle",""],["t
1757imeTemplate",""],["class","m-b-10",4,"ngIf"],[1,"m-b-10"],[1,"display-flex","flex-row","justify-content-between"],["class","m-l-10",4,"ngIf"],[1,"api-type-label","service","d-inline-block"],[1,"api-type-label","directive","d-inline-block"],[1,"m-l-10"],["nz-button","","nzType","default",1,"multiLineButton","p-10","w-100",3,"click"],["nz-icon","","nzTheme","outline",3,"nzType"],[3,"ngClass"],["nzOrientation","left",3,"nzText"],["nzOrientation","left",3,"nzText",4,"ngIf"],["nzItemLayout","vertical",4,"ngIf"],["nzItemLayout","vertical"],["class","breakdownList",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[1,"breakdownList",3,"ngClass"],["nz-list-item-actions","",1,"m-b-0","p-b-0","p-t-0","m-t-0","w-100"],[1,"timeItem"],["nzType","primary","nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm",1,"modifyButton",3,"disabled","runFunction","nzTextKeys","stickResult","nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","nzOnConfirm"],["nz-icon","","nzType","file-pdf","nzTheme","outline"],["nzType","primary",1,"modifyButton",3,"defaultFunction","nzTextKeys","stickResult"],["nz-popover","","nzPopoverPlacement","bottom","nzType","default","nzDanger","","nz-popconfirm","","nzPopconfirmPlacement","bottom","nzPopconfirmOverlayClassName","demoPopconfirm",1,"modifyButton",3,"nzPopoverContent","nzPopoverOverlayStyle","nzPopoverVisible","nzPopoverTrigger","defaultIcon","disabled","runFunction","nzTextKeys","stickResult","nzPopconfirmTitle","nzCancelText","nzOkText","nzCondition","nzPopoverVisibleChange","nzOnConfirm"],["nz-popover","","nzPopoverPlacement","bottom","nzType","default","nzDanger","",1,"modifyButton",3,"nzPopoverContent","nzPopoverOverlayStyle","nzPopoverVisible","nzPopoverTrigger","defaultIcon","disabled","runFunction","nzTextKeys","stickResult","nzPopoverVisibleChange"],[3,"nzValue","nzValueStyle","nzTitle","ngClass"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter",4,"ngIf"],[1,"text-right"],["nz-button","","nzType","default","nzSize","small",1,"m-10",3,"click"],["nz-button","","nzType","primary","nzSize","small",1,"m-10",3,"nzGhost","click"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],[1,"d-block"],[1,"text-left"],[3,"nzValidateStatus","nzErrorTip"],["nz-input","","rows","5","trim","blur",1,"w-100",3,"placeholder","formControl","blur","focusin"],[3,"nzSrc"],[3,"nzTitle","nzExtra","ngClass"],[1,"innerCardMeta",3,"nzAvatar","nzTitle"],["innerCardTitle",""],["extraTemplate",""],["class","font-size-base",4,"ngIf"],[1,"font-size-base"],["nz-button","","nzType","link","nz-tooltip","",1,"deadlineQuestionMark","link-like-button",3,"nzTooltipTitle"],["nz-icon","","nzType","question-circle","nzTheme","outline",1,"helpIcon"],["class","m-t-10",4,"ngIf"],[1,"m-t-10"],[1,"m-b-0"],[1,"font-italic"],["nzOrientation","left",1,"inactiveBriefDivider",3,"nzText"],["nz-button","","nzType","link",1,"link-like-button","text-wrap","color-primary",3,"click"],[1,"bottomDiv","p-b-10",3,"ngClass"],[3,"innerHTML"]],template:function(ae,A){1&ae&&(e.YNc(0,ye,2,1,"div",0),e.YNc(1,j,2,1,"div",1),e.YNc(2,Oe,1,1,"ng-template",null,2,e.W1O),e.YNc(4,S,4,4,"ng-template",null,3,e.W1O),e.YNc(6,_,14,13,"ng-template",null,4,e.W1O),e.YNc(8,Ot,3,3,"ng-template",null,5,e.W1O),e.YNc(10,xt,4,14,"ng-template",null,6,e.W1O),e.YNc(12,Ut,3,3,"ng-template",null,7,e.W1O),e.YNc(14,Lt,4,14,"ng-template",null,8,e.W1O),e.YNc(16,yt,3,3,"ng-template",null,9,e.W1O),e.YNc(18,Bt,1,3,"ng-template",null,10,e.W1O),e.YNc(20,nn,4,20,"ng-template",null,11,e.W1O),e.YNc(22,zt,1,10,"ng-template",null,12,e.W1O),e.YNc(24,Kt,7,20,"ng-template",null,13,e.W1O),e.YNc(26,qt,10,11,"ng-template",null,14,e.W1O),e.YNc(28,Yt,10,11,"ng-template",null,15,e.W1O),e.YNc(30,hn,3,3,"ng-template",null,16,e.W1O),e.YNc(32,Xn,1,1,"ng-template",null,17,e.W1O),e.YNc(34,Wn,8,8,"div",0),e.YNc(35,Rn,7,26,"div",18)),2&ae&&(e.Q6J("ngIf",!A.isModal),e.xp6(1),e.Q6J("ngIf",A.isModal),e.xp6(33),e.Q6J("ngIf",A.offer.state.type===A.OfferStateType.Accepted||A.offer.state.type===A.OfferStateType.Declined||A.offer.state.type===A.OfferStateType.Revoked),e.xp6(1),e.Q6J("ngIf",A.userType===A.UserType.Client&&A.offer&&A.offer.state.type===A.OfferStateType.Opened&&A.resultOffer&&(A.resultOffer.state.type!==A.OfferStateType.Declined&&A.resultOffer.state.type!==A.OfferStateType.Revoked&&A.resultOffer.state.type!==A.OfferStateType.Accepted||(A.resultOffer.state.type===A.OfferStateType.Declined||A.resultOffer.state.type===A.OfferStateType.Revoked||A.resultOffer.state.type===A.OfferStateType.Accepted)&&A.isOpened)))}
1757,dependencies:[Z.mk,Z.sg,Z.O5,Z.tP,Z.PC,v._Y,v.Fj,v.JJ,v.JL,G.P,Q.a5,v.oH,v.sg,r.P4,V.Dz,se.ix,xe.w,Ee.dQ,re.bd,re.l7,le.g,q.t3,q.SK,fe.Lr,fe.Nx,fe.iK,fe.Fd,de.Ls,it.Zp,Ve.n_,Ve.AA,Ve.yi,Ve.nk,Ve.KC,W.JW,ee.lU,te.my,Pe.SY,Z.JJ,Z.uU,N.X$,Ue.j,Ae.z,Fe.R,b.U2,Qe.N,rt.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%] ul{display:flex;padding:15px 10px}[_nghost-%COMP%] ul>li{margin:auto;border-right:none!important;cursor:inherit}[_nghost-%COMP%] ul>li>span{cursor:inherit;padding:5px}.shrinkedCard[_ngcontent-%COMP%] ul{padding:10px}.shrinkedCard[_ngcontent-%COMP%] ul>li>span{padding:0}.bottomDiv[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}.multilineButton[_ngcontent-%COMP%]{white-space:normal;height:auto}[_nghost-%COMP%] .ant-list-item-meta-content{width:100%!important}[_nghost-%COMP%] .breakdownList[_ngcontent-%COMP%] .ant-list-item-action li:first-child{width:45%}[_nghost-%COMP%] .breakdownList[_ngcontent-%COMP%] .ant-list-item-action li:nth-child(2){width:33%;font-size:small;font-weight:lighter}[_nghost-%COMP%] .breakdownList[_ngcontent-%COMP%] .ant-list-item-action li:last-child{width:22%;font-size:small;font-weight:lighter}[_nghost-%COMP%] .wrappedBreakdownList[_ngcontent-%COMP%] ul{flex-wrap:wrap;padding:0}[_nghost-%COMP%] .wrappedBreakdownList[_ngcontent-%COMP%] .ant-list-item-action li{width:100%!important;padding:0}.innerCardMeta[_ngcontent-%COMP%] .ant-card-meta-title{white-space:normal;font-weight:400}.inactiveBriefDivider[_ngcontent-%COMP%] .ant-divider-inner-text{white-space:normal}.inactiveBriefDivider[_ngcontent-%COMP%]:after{flex-grow:1;max-width:100%;width:auto;min-width:5%}.deadlineQuestionMark[_ngcontent-%COMP%]{color:#9579d1}.individualPrice[_ngcontent-%COMP%] .ant-statistic{padding-right:calc(1.5rem + 21px)}.individualPrice[_ngcontent-%COMP%] .ant-statistic-title, .individualPrice[_ngcontent-%COMP%] .ant-statistic-content{display:inline-block}.individualPrice[_ngcontent-%COMP%] .ant-statistic-title{margin-right:5px}.modifyButton[_ngcontent-%COMP%] .anticon{border:0!important}.wrapActions[_ngcontent-%COMP%] .ant-card-actions{flex-wrap:wrap}.wrapActions[_ngcontent-%COMP%] .ant-card-actions li:last-child{width:100%!important;margin-top:10px}.singleLineActions[_ngcontent-%COMP%] .ant-card-actions li{width:100%!important;margin-top:10px}.shrinkedCard[_ngcontent-%COMP%] .ant-card-body{padding:.75rem}nz-divider[_ngcontent-%COMP%] .ant-divider-inner-text{white-space:normal!important}nz-divider[_ngcontent-%COMP%]:after{flex-grow:1;max-width:100%;width:auto!important;min-width:5%}']}),kt=(0,s.gn)([(0,u.c)()],kt)},41766:(Se,k,n)=>{n.d(k,{w:()=>at});var s=n(97582),e=n(94650),o=n(24006),t=n(71997),v=n(10273),r=n(37340),c=n(44224),C=n(36057),u=n(69751),m=n(5963),a=n(95698),f=n(32925),O=n(86725),N=n(93706),L=n(3417),i=n(55089),M=n(59166),R=n(36895),l=n(6018),h=n(43013),D=n(47044),B=n(4788),K=n(2577),b=n(73679),w=n(36704),X=n(47423),Y=n(35635),Z=n(38231),G=n(37570),Q=n(58800),V=n(45144); 1758/* 1759 * @license 1760 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1761 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1762 *
1763 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1764 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1765 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1766 * trade secret or copyright law. 1767 * 1768 * Dissemination of this information or reproduction of this material is strictly forbidden 1769 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1770 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1771 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1772 * explicitly covering such access. 1773 * 1774 * The copyright notice above does not evidence any actual or intended publication or disclosure 1775 * of this source code, which includes information that is confidential and/or proprietary, 1776 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1777 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1778 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1779 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1780 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1781 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1782 * IN WHOLE OR IN PART. 1783 */function se(me,Te){1&me&&(e._UZ(0,"nz-empty",29),e.ALo(1,"translate")),2&me&&e.Q6J("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",e.lcZ(1,2,"COMMON.FORM.ADDRESS.NO_AVAILABLE_REGIONS"))}function xe(me,Te){1&me&&(e.TgZ(0,"span",16),e._UZ(1,"br"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&me&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"CLIENT.CONTRACTS.FIELD.OPTIONAL")," "))}const Ee=function(){return{}};function re(me,Te){if(1&me&&e.YNc(0,xe,4,3,"span",13),2&me){const _=Te.controlName,ot=e.oxw();e.Q6J("ngIf",!(ot.form&&ot.form.controls[_].validator&&ot.form.controls[_].validator(e.DdM(1,Ee))&&ot.form.controls[_].validator(e.DdM(2,Ee)).required))}}function le(me,Te){1&me&&e.GkF(0,30)}function q(me,Te){if(1&me&&(e._UZ(0,"nz-option",31),e.ALo(1,"countryName")),2&me){const _=Te.$implicit;e.Q6J("nzLabel",e.lcZ(1,2,_))("nzValue",_)}}function fe(me,Te){1&me&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&me&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.ADDRESS_VALIDATION.COUNTRY.REQUIRED")," "))}function de(me,Te){1&me&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&me&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.ADDRESS_VALIDATION.COUNTRY.INVALID")," "))}function it(me,Te){if(1&me&&(e.TgZ(0,"div",32),e.YNc(1,fe,3,3,"ng-container",14),e.YNc(2,de,3,3,"ng-container",14),e.qZA()),2&me){const _=e.oxw();e.Q6J("@inOutErrorMessage",void 0),e.xp6(1),e.Q6J("ngIf",_.form.controls.addressCountry.hasError("required")),e.xp6(1),e.Q6J("ngIf",_.form.controls.addressCountry.hasError("pattern"))}}function Ve(me,Te){1&me&&(e._UZ(0,"i",33),e.ALo(1,"translate")),2&me&&e.Q6J("nzTooltipTitle",e.lcZ(1,2,"COMMON.FORM.ADDRESS.COUNTRY_TOOLTIP"))("nzTooltipTrigger","click")}function W(me,Te){1&me&&(e.TgZ(0,"span",16)(1,"span",34),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&me&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"COMMON.FORM.ADDRESS.COUNTRY_LAWYER_HELPER")," "))}function ee(me,Te){1&me&&e.GkF(0,30)}const te=function(){return{controlName:"region"}};function Pe(me,Te){if(1&me&&(e.ynx(0),e.YNc(1,ee,1,0,"ng-container",7),e.BQk()),2&me){e.oxw();const _=e.MAs(6);e.xp6(1),e.Q6J("ngTemplateOutlet",_)("ngTemplateOutletContext",e.DdM(2,te))}}function Ue(me,Te){if(1&me&&e._UZ(0,"nz-option",31),2&me){const _=Te.$implicit;e.Q6J("nzLabel",_.name)("nzValue",_.code)}}function Ae(me,Te){1&me&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&me&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.ADDRESS_VALIDATION.REGION.INVALID")," "))}function Fe(me,Te){1&me&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&me&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.ADDRESS_VALIDATION.REGION.REQUIRED")," "))}function Qe(me,Te){if(1&me&&(e.TgZ(0,"div",32),e.YNc(1,Ae,3,3,"ng-container",14),e.YNc(2,Fe,3,3,"ng-container",14),e.qZA()),2&me){const _=e.oxw();e.Q6J("@inOutErrorMessage",void 0),e.xp6(1),e.Q6J("ngIf",_.form.controls.region.hasError("pattern")),e.xp6(1),e.Q6J("ngIf",_.form.controls.region.hasError("required"))}}function rt(me,Te){1&me&&e.GkF(0,30)}function Ct(me,Te){if(1&me&&e._UZ(0,"app-geocode-indicatior",35),2&me){const _=e.oxw();e.Q6J("geocodeStatus",_.geocodeStatus)("size","small")}}function ht(me,Te){1&me&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&me&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.ADDRESS_VALIDATION.POSTAL.REQUIRED")," "))}function mt(me,Te){1&me&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&me&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.ADDRESS_VALIDATION.POSTAL.INVALID")," "))}function ye(me,Te){if(1&me&&(e.YNc(0,ht,3,3,"ng-container",14),e.YNc(1,mt,3,3,"ng-container",14)),2&me){const _=Te.$implicit;e.Q6J("ngIf",_.hasError("required")),e.xp6(1),e.Q6J("ngIf",_.hasError("pattern"))}}function Ce(me,Te){if(1&me&&e._UZ(0,"app-geocode-indicatior",36),2&me){const _=e.oxw();e.Q6J("geocodeStatus",_.geocodeStatus)}}function j(me,Te){1&me&&e.GkF(0,30)}function _e(me,Te){if(1&me&&e._UZ(0,"app-geocode-indicatior",35),2&me){const _=e.oxw();e.Q6J("geocodeStatus",_.geocodeStatus)("size","small")}}function F(me,Te){1&me&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&me&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.ADDRESS_VALIDATION.CITY.REQUIRED")," "))}function ne(me,Te){1&me&&e.YNc(0,F,3,3,"ng-container",14),2&me&&e.Q6J("ngIf",Te.$implicit.hasError("required"))}function U(me,Te){if(1&me&&e._UZ(0,"app-geocode-indicatior",36),2&me){const _=e.oxw();e.Q6J("geocodeStatus",_.geocodeStatus)}}function et(me,Te){1&me&&e.GkF(0,30)}function ct(me,Te){1&me&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&me&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.ADDRESS_VALIDATION.PUBLIC_PLACE.NAME.REQUIRED")," "))}function ft(me,Te){1&me&&e.YNc(0,ct,3,3,"ng-container",14),2&me&&e.Q6J("ngIf",Te.$implicit.hasError("required"))}function Ze(me,Te){1&me&&e.GkF(0,30)}function Oe(me,Te){1&me&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&me&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.ADDRESS_VALIDATION.PUBLIC_PLACE.CATEGORY.REQUIRED")," "))}function y(me,Te){1&me&&e.YNc(0,Oe,3,3,"ng-container",14),2&me&&e.Q6J("ngIf",Te.$implicit.hasError("required"))}function x(me,Te){1&me&&e.GkF(0,30)}function E(me,Te){1&me&&e.GkF(0,30)}function T(me,Te){1&me&&e.GkF(0,30)}function S(me,Te){1&me&&e.GkF(0,30)}function $(me,Te){1&me&&e.GkF(0,30)}const pe=function(){return{controlName:"number"}},Re=function(){return{controlName:"addressBuilding"}},Ke=function(){return{controlName:"staircase"}},nt=function(){return{controlName:"floor"}},lt=function(){return{controlName:"door"}};function $e(me,Te){if(1&me){const _=e.EpF();
1783e.TgZ(0,"div",37)(1,"div",38)(2,"nz-form-item",39)(3,"nz-form-label",40)(4,"span"),e._uU(5),e.ALo(6,"translate"),e.YNc(7,x,1,0,"ng-container",7),e.qZA()(),e.TgZ(8,"nz-form-control",41)(9,"input",24),e.NdJ("blur",function(){e.CHM(_);const je=e.oxw();return e.KtG(je.save())}),e.ALo(10,"translate"),e.ALo(11,"as"),e.qZA()()()(),e.TgZ(12,"div",38)(13,"nz-form-item",39)(14,"nz-form-label",40)(15,"span"),e._uU(16),e.ALo(17,"translate"),e.YNc(18,E,1,0,"ng-container",7),e.qZA()(),e.TgZ(19,"nz-form-control",41)(20,"input",24),e.NdJ("blur",function(){e.CHM(_);const je=e.oxw();return e.KtG(je.save())}),e.ALo(21,"translate"),e.ALo(22,"as"),e.qZA()()()(),e.TgZ(23,"div",38)(24,"nz-form-item",39)(25,"nz-form-label",40)(26,"span"),e._uU(27),e.ALo(28,"translate"),e.YNc(29,T,1,0,"ng-container",7),e.qZA()(),e.TgZ(30,"nz-form-control",41)(31,"input",24),e.NdJ("blur",function(){e.CHM(_);const je=e.oxw();return e.KtG(je.save())}),e.ALo(32,"translate"),e.ALo(33,"as"),e.qZA()()()(),e.TgZ(34,"div",38)(35,"nz-form-item",39)(36,"nz-form-label",40)(37,"span"),e._uU(38),e.ALo(39,"translate"),e.YNc(40,S,1,0,"ng-container",7),e.qZA()(),e.TgZ(41,"nz-form-control",41)(42,"input",24),e.NdJ("blur",function(){e.CHM(_);const je=e.oxw();return e.KtG(je.save())}),e.ALo(43,"translate"),e.ALo(44,"as"),e.qZA()()()(),e.TgZ(45,"div",38)(46,"nz-form-item",39)(47,"nz-form-label",40)(48,"span"),e._uU(49),e.ALo(50,"translate"),e.YNc(51,$,1,0,"ng-container",7),e.qZA()(),e.TgZ(52,"nz-form-control",41)(53,"input",24),e.NdJ("blur",function(){e.CHM(_);const je=e.oxw();return e.KtG(je.save())}),e.ALo(54,"translate"),e.ALo(55,"as"),e.qZA()()()()()}if(2&me){const _=e.oxw(),ot=e.MAs(6);e.xp6(3),e.Q6J("nzRequired",_.form&&_.form.controls.number.validator&&_.form.controls.number.validator(e.DdM(125,Ee))&&_.form.controls.number.validator(e.DdM(126,Ee)).required)("nzXXl",24)("nzXl",24)("nzLg",12)("nzMd",12)("nzSm",24)("nzXs",24),e.xp6(2),e.hij(" ",e.lcZ(6,90,"COMMON.FORM.ADDRESS.HOUSE_NUMBER")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",e.DdM(127,pe)),e.xp6(1),e.Q6J("nzXXl",24)("nzXl",24)("nzLg",12)("nzMd",12)("nzSm",24)("nzXs",24),e.xp6(1),e.Q6J("placeholder",e.lcZ(10,92,"COMMON.FORM.ADDRESS.PLACEHOLDER.HOUSE_NUMBER"))("formControl",e.xi3(11,94,_.form.controls.number,_.FormControl)),e.xp6(5),e.Q6J("nzRequired",_.form&&_.form.controls.addressBuilding.validator&&_.form.controls.addressBuilding.validator(e.DdM(128,Ee))&&_.form.controls.addressBuilding.validator(e.DdM(129,Ee)).required)("nzXXl",24)("nzXl",24)("nzLg",12)("nzMd",12)("nzSm",24)("nzXs",24),e.xp6(2),e.hij(" ",e.lcZ(17,97,"COMMON.FORM.ADDRESS.BUILDING")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",e.DdM(130,Re)),e.xp6(1),e.Q6J("nzXXl",24)("nzXl",24)("nzLg",12)("nzMd",12)("nzSm",24)("nzXs",24),e.xp6(1),e.Q6J("placeholder",e.lcZ(21,99,"COMMON.FORM.ADDRESS.PLACEHOLDER.BUILDING"))("formControl",e.xi3(22,101,_.form.controls.addressBuilding,_.FormControl)),e.xp6(5),e.Q6J("nzRequired",_.form&&_.form.controls.staircase.validator&&_.form.controls.staircase.validator(e.DdM(131,Ee))&&_.form.controls.staircase.validator(e.DdM(132,Ee)).required)("nzXXl",24)("nzXl",24)("nzLg",12)("nzMd",12)("nzSm",24)("nzXs",24),e.xp6(2),e.hij(" ",e.lcZ(28,104,"COMMON.FORM.ADDRESS.STAIRCASE")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",e.DdM(133,Ke)),e.xp6(1),e.Q6J("nzXXl",24)("nzXl",24)("nzLg",12)("nzMd",12)("nzSm",24)("nzXs",24),e.xp6(1),e.Q6J("placeholder",e.lcZ(32,106,"COMMON.FORM.ADDRESS.PLACEHOLDER.STAIRCASE"))("formControl",e.xi3(33,108,_.form.controls.staircase,_.FormControl)),e.xp6(5),e.Q6J("nzRequired",_.form&&_.form.controls.floor.validator&&_.form.controls.floor.validator(e.DdM(134,Ee))&&_.form.controls.floor.validator(e.DdM(135,Ee)).required)("nzXXl",24)("nzXl",24)("nzLg",12)("nzMd",12)("nzSm",24)("nzXs",24),e.xp6(2),e.hij(" ",e.lcZ(39,111,"COMMON.FORM.ADDRESS.FLOOR")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",e.DdM(136,nt)),e.xp6(1),e.Q6J("nzXXl",24)("nzXl",24)("nzLg",12)("nzMd",12)("nzSm",24)("nzXs",24),e.xp6(1),e.Q6J("placeholder",e.lcZ(43,113,"COMMON.FORM.ADDRESS.PLACEHOLDER.FLOOR"))("formControl",e.xi3(44,115,_.form.controls.floor,_.FormControl)),e.xp6(
17835),e.Q6J("nzRequired",_.form&&_.form.controls.door.validator&&_.form.controls.door.validator(e.DdM(137,Ee))&&_.form.controls.door.validator(e.DdM(138,Ee)).required)("nzXXl",24)("nzXl",24)("nzLg",12)("nzMd",12)("nzSm",24)("nzXs",24),e.xp6(2),e.hij(" ",e.lcZ(50,118,"COMMON.FORM.ADDRESS.DOOR")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",e.DdM(139,lt)),e.xp6(1),e.Q6J("nzXXl",24)("nzXl",24)("nzLg",12)("nzMd",12)("nzSm",24)("nzXs",24),e.xp6(1),e.Q6J("placeholder",e.lcZ(54,120,"COMMON.FORM.ADDRESS.PLACEHOLDER.DOOR"))("formControl",e.xi3(55,122,_.form.controls.door,_.FormControl))}}function qe(me,Te){1&me&&e.GkF(0,30)}function ve(me,Te){1&me&&e.GkF(0,30)}function we(me,Te){1&me&&e.GkF(0,30)}function De(me,Te){1&me&&e.GkF(0,30)}function Be(me,Te){1&me&&e.GkF(0,30)}function Le(me,Te){if(1&me){const _=e.EpF();e.ynx(0),e.TgZ(1,"nz-form-item",39)(2,"nz-form-label",42)(3,"span"),e._uU(4),e.ALo(5,"translate"),e.YNc(6,qe,1,0,"ng-container",7),e.qZA()(),e.TgZ(7,"nz-form-control",43)(8,"input",24),e.NdJ("blur",function(){e.CHM(_);const je=e.oxw();return e.KtG(je.save())}),e.ALo(9,"translate"),e.ALo(10,"as"),e.qZA()()(),e.TgZ(11,"nz-form-item",39)(12,"nz-form-label",42)(13,"span"),e._uU(14),e.ALo(15,"translate"),e.YNc(16,ve,1,0,"ng-container",7),e.qZA()(),e.TgZ(17,"nz-form-control",43)(18,"input",24),e.NdJ("blur",function(){e.CHM(_);const je=e.oxw();return e.KtG(je.save())}),e.ALo(19,"translate"),e.ALo(20,"as"),e.qZA()()(),e.TgZ(21,"nz-form-item",39)(22,"nz-form-label",42)(23,"span"),e._uU(24),e.ALo(25,"translate"),e.YNc(26,we,1,0,"ng-container",7),e.qZA()(),e.TgZ(27,"nz-form-control",43)(28,"input",24),e.NdJ("blur",function(){e.CHM(_);const je=e.oxw();return e.KtG(je.save())}),e.ALo(29,"translate"),e.ALo(30,"as"),e.qZA()()(),e.TgZ(31,"nz-form-item",39)(32,"nz-form-label",42)(33,"span"),e._uU(34),e.ALo(35,"translate"),e.YNc(36,De,1,0,"ng-container",7),e.qZA()(),e.TgZ(37,"nz-form-control",43)(38,"input",24),e.NdJ("blur",function(){e.CHM(_);const je=e.oxw();return e.KtG(je.save())}),e.ALo(39,"translate"),e.ALo(40,"as"),e.qZA()()(),e.TgZ(41,"nz-form-item",39)(42,"nz-form-label",42)(43,"span"),e._uU(44),e.ALo(45,"translate"),e.YNc(46,Be,1,0,"ng-container",7),e.qZA()(),e.TgZ(47,"nz-form-control",43)(48,"input",24),e.NdJ("blur",function(){e.CHM(_);const je=e.oxw();return e.KtG(je.save())}),e.ALo(49,"translate"),e.ALo(50,"as"),e.qZA()()(),e.BQk()}if(2&me){const _=e.oxw(),ot=e.MAs(6);e.xp6(2),e.Q6J("nzMd",6)("nzSm",8)("nzXs",24)("nzRequired",_.form&&_.form.controls.number.validator&&_.form.controls.number.validator(e.DdM(95,Ee))&&_.form.controls.number.validator(e.DdM(96,Ee)).required),e.xp6(2),e.hij(" ",e.lcZ(5,60,"COMMON.FORM.ADDRESS.HOUSE_NUMBER")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",e.DdM(97,pe)),e.xp6(1),e.Q6J("nzMd",14)("nzSm",12)("nzXs",24),e.xp6(1),e.Q6J("placeholder",e.lcZ(9,62,"COMMON.FORM.ADDRESS.PLACEHOLDER.HOUSE_NUMBER"))("formControl",e.xi3(10,64,_.form.controls.number,_.FormControl)),e.xp6(4),e.Q6J("nzMd",6)("nzSm",8)("nzXs",24)("nzRequired",_.form&&_.form.controls.addressBuilding.validator&&_.form.controls.addressBuilding.validator(e.DdM(98,Ee))&&_.form.controls.addressBuilding.validator(e.DdM(99,Ee)).required),e.xp6(2),e.hij(" ",e.lcZ(15,67,"COMMON.FORM.ADDRESS.BUILDING")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",e.DdM(100,Re)),e.xp6(1),e.Q6J("nzMd",14)("nzSm",12)("nzXs",24),e.xp6(1),e.Q6J("placeholder",e.lcZ(19,69,"COMMON.FORM.ADDRESS.PLACEHOLDER.BUILDING"))("formControl",e.xi3(20,71,_.form.controls.addressBuilding,_.FormControl)),e.xp6(4),e.Q6J("nzMd",6)("nzSm",8)("nzXs",24)("nzRequired",_.form&&_.form.controls.staircase.validator&&_.form.controls.staircase.validator(e.DdM(101,Ee))&&_.form.controls.staircase.validator(e.DdM(102,Ee)).required),e.xp6(2),e.hij(" ",e.lcZ(25,74,"COMMON.FORM.ADDRESS.STAIRCASE")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",e.DdM(103,Ke)),e.xp6(1),e.Q6J("nzMd",14)("nzSm",12)("nzXs",24),e.xp6(1),e.Q6J("placeholder",e.lcZ(29,76,"COMMON.FORM.ADDRESS.PLACEHOLDER.STAIRCASE"))("formControl",e.xi3(30,78,_.form.controls.staircase,_.FormControl)),e.xp6(4),e.Q6J("nzMd",6)("nzSm",8)("nzXs",24)("nzRequired",_.form&&_.form.controls.floor.validator&&_.form.controls.floor.validator(e.DdM(104,Ee))&&_.form.controls.floor.validator(e.DdM(105,Ee)).required),e.xp6(2),e.hij(" ",e.lcZ(35,81,"COMMON.FORM.ADDRESS.FLOOR")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",e.DdM(106,nt)),e.xp6(1),e.Q6J("nzMd",14)("nzSm",12)("nzXs",24),e.xp6(1),e.Q6J("placeholder",e.lcZ(39,83,"COMMON.FORM.ADDRESS.PLACEHOLDER.FLOOR"))("formControl",e.xi3(40,85,_.form.controls.floor,_.FormControl)),e.xp6(4),e.Q6J("nzMd",6)("nzSm",8)("nzXs",24)("nzRequired",_.form&&_.form.controls.door.validator&&_.form.controls.door.validator(e.DdM(107,Ee))&&_.form.controls.door.validator(e.DdM(108,Ee)).required),e.xp6(2),e.hij(" ",e.lcZ(45,88,"COMMON.FORM.ADDRESS.DOOR")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",e.DdM(109,lt)),e.xp6(1),e.Q6J("nzMd",14)("nzSm",12)("nzXs",24),e.xp6(1),e.Q6J("placeholder",e.lcZ(49,90,"COMMON.FORM.ADDRESS.PLACEHOLDER.DOOR"))("formControl",e.xi3(50,92,_.form.controls.door,_.FormControl))}}function Ne(me,Te){1&me&&e.GkF(0,30)}const oe=function(){return{controlName:"registration"}};function ue(me,Te){if(1&me){const _=e.EpF();e.TgZ(0,"nz-form-item",39)(1,"nz-form-label",42)(2,"span"),e._uU(3),e.ALo(4,"translate"),e.YNc(5,Ne,1,0,"ng-container",7),e.qZA()(),e.TgZ(6,"nz-form-control",43)(7,"input",24),e.NdJ("blur",function(){e.CHM(_);const je=e.oxw();return e.KtG(je.save())}),e.ALo(8,"translate"),e.ALo(9,"as"),e.qZA()()()}if(2&me){const _=e.oxw(),ot=e.MAs(6);e.xp6(1),e.Q6J("nzMd",6)("nzSm",8)("nzXs",24)("nzRequired",_.form&&_.form.controls.registration.validator&&_.form.controls.registration.validator(e.DdM(19,Ee))&&_.form.controls.registration.validator(e.DdM(20,Ee)).required),e.xp6(2),e.hij(" ",e.lcZ(4,12,"COMMON.FORM.ADDRESS.REGISTRATION")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",e.DdM(21,oe)),e.xp6(1),e.Q6J("nzMd",14)("nzSm",12)("nzXs",24),e.xp6(1),e.Q6J("placeholder",e.lcZ(8,14,"COMMON.FORM.ADDRESS.PLACEHOLDER.REGISTRATION"))("formControl",e.xi3(9,16,_.form.controls.registration,_.FormControl))}}const Ge=function(me){return{row:me}},tt=function(me){return{"col-md-6 col-sm-12 m-b-10":me}},pt=function(){return{controlName:"addressCountry"}},ce=function(){return{controlName:"postalCode"}},Me=function(me){return{"cursor-wait":me}},he=function(){return{controlName:"addressCity"}},Ye=function(){return{controlName:"publicPlaceName"}},He=function(){return{controlName:"publicPlaceCategory"}};let at=class{constructor(Te,_,ot,je,At){this.translate=Te,this.countryNamePipe=_,this.geocodeService=ot,this.languageService=je,this.userService=At,this.saveEmitter=new e.vpe,this.unstickTrigger=new e.vpe,this.currentLanguage="hu",this.addressCountryID="addressCountry",this.postalCodeID="postalCode",this.addressCityID="addressCity",this.CountryCodes=[...v.S],this.RegionCodes=v.R,this.isLawyer=!1,this.geocodeStatus=C.tm.DEFAULT,this.GeocodeState=C.tm,this.filledDataType=null,this.GeocodeDataToFill=t.XE5,this.FormControl=o.p4,this.isRegionRequired=!1}ngOnInit(){this.sortCountriesAndRegions(),this.geocodeService.searchRunning=!1,this.createComponentID(),this.oldValue=this.form.value,this.isLawyer=this.userService.isLawyer,this.isLawyer&&this.form.controls.addressCountry.setValue(null!=this.form.controls.addressCountry.value&&""!==this.form.controls.addressCountry.value?this.form.controls.addressCountry.value:"HU"),this.currentLanguage=this.languageService.currentLanguage,this.translate.onLangChange.subscribe(Te=>{this.currentLanguage=Te.lang,this.sortCountriesAndRegions()}),this.updateRegionRequired()}sortCountriesAndRegions(){this.CountryCodes.sort((_,ot)=>{const je=this.countryNamePipe.transform("EL"===_?"GR":_),At=this.countryNamePipe.transform("EL"===ot?"GR":ot);return je&&At?je.localeCompare(At):(je||console.log(`No country found for country code ${je}`),At||console.log(`No country found for country code ${At}`),1)});const Te=this.CountryCodes.findIndex(_=>"HU"===_);-1!==Te&&(this.CountryCodes.splice(Te,1),this.CountryCodes=["HU",...this.CountryCodes]),Object.keys(this.RegionCodes).forEac
1783h(_=>{this.RegionCodes[_].sort((ot,je)=>ot.name.localeCompare(je.name))})}runGeocode(){const Te=this.form.value;let _;if(_=this.oldValue?Object.keys(Te).filter(ot=>Te[ot]!==this.oldValue[ot]):Object.keys(Te).filter(ot=>null!==Te[ot]),_.includes("addressCountry")&&Te.addressCountry||_.includes("postalCode")&&Te.postalCode||_.includes("addressCity")&&Te.addressCity){const ot=new t.YSE("country","addressCountry",!0,this.addressCountryID),je=new t.YSE("postal code","postalCode",!0,this.postalCodeID),At=new t.YSE("country","addressCity",!0,this.addressCityID);(_.includes("addressCountry")&&this.form.controls.addressCountry.value&&(this.form.controls.addressCity.value&&!this.form.controls.postalCode.value||!this.form.controls.addressCity.value&&this.form.controls.postalCode.value)||this.form.controls.addressCountry.value&&(_.includes("addressCity")&&!this.form.controls.postalCode.value||_.includes("postalCode")&&!this.form.controls.addressCity.value))&&(this.lastGeocode&&this.lastGeocode.key&&this.lastGeocode.value?_.includes(this.lastGeocode.key)&&Te[this.lastGeocode.key]!==this.lastGeocode.value||!_.includes(this.lastGeocode.key)?(this.filledDataType=_.includes("addressCountry")?!Te.addressCity&&Te.postalCode?t.XE5.CITY:Te.addressCity&&!Te.postalCode?t.XE5.POSTAL_CODE:null:_.includes("postalCode")&&Te.postalCode?t.XE5.CITY:_.includes("addressCity")&&Te.addressCity?t.XE5.POSTAL_CODE:null,this.filledDataID=_.includes("addressCountry")?!Te.addressCity&&Te.postalCode?this.addressCityID:Te.addressCity&&!Te.postalCode?this.postalCodeID:null:_.includes("postalCode")&&Te.postalCode?this.addressCityID:_.includes("addressCity")&&Te.addressCity?this.postalCodeID:null,this.switchGeocodeStateTimer&&this.switchGeocodeStateTimer.unsubscribe(),this.pendingGeocodeSubscription&&this.pendingGeocodeSubscription.unsubscribe(),this.geocodeStatus=C.tm.SEARCHING,this.pendingGeocodeSubscription=new u.y(Et=>{this.geocodeService.completeWithGeocode(this.form,ot,je,At,!0,this.currentLanguage,this.filledDataType).then(gt=>Et.next(gt),gt=>Et.error(gt))}).subscribe(Et=>{this.geocodeStatus=C.tm.FOUND,this.lastGeocode=Et,this.form.patchValue({[this.lastGeocode.key]:this.lastGeocode.value}),this.form.controls[this.lastGeocode.key].markAsDirty(),this.save(),this.switchGeocodeStateTimer=(0,m.H)(3e3).pipe((0,c.t)(this)).subscribe(gt=>{this.geocodeStatus=C.tm.DEFAULT,this.switchGeocodeStateTimer=null,this.pendingGeocodeSubscription=null})},Et=>{this.geocodeStatus=C.tm.NOT_FOUND,this.switchGeocodeStateTimer=(0,m.H)(3e3).pipe((0,c.t)(this)).subscribe(gt=>{this.geocodeStatus=C.tm.DEFAULT,this.lastGeocode=null,this.switchGeocodeStateTimer=null,this.pendingGeocodeSubscription=null})})):_.includes(this.lastGeocode.key)&&Te[this.lastGeocode.key]===this.lastGeocode.value&&_.length>1&&("postalCode"===this.lastGeocode.key&&_.includes("addressCity")||"addressCity"===this.lastGeocode.key&&_.includes("postalCode"))&&(_.splice(_.indexOf(this.lastGeocode.key),1),this.filledDataType=_.includes("addressCountry")?!Te.addressCity&&Te.postalCode?t.XE5.CITY:Te.addressCity&&!Te.postalCode?t.XE5.POSTAL_CODE:null:_.includes("postalCode")&&Te.postalCode?t.XE5.CITY:_.includes("addressCity")&&Te.addressCity?t.XE5.POSTAL_CODE:null,this.filledDataID=_.includes("addressCountry")?!Te.addressCity&&Te.postalCode?this.addressCityID:Te.addressCity&&!Te.postalCode?this.postalCodeID:null:_.includes("postalCode")&&Te.postalCode?this.addressCityID:_.includes("addressCity")&&Te.addressCity?this.postalCodeID:null,this.switchGeocodeStateTimer&&this.switchGeocodeStateTimer.unsubscribe(),this.pendingGeocodeSubscription&&this.pendingGeocodeSubscription.unsubscribe(),this.geocodeStatus=C.tm.SEARCHING,this.pendingGeocodeSubscription=new u.y(Et=>{this.geocodeService.completeWithGeocode(this.form,ot,je,At,!0,this.currentLanguage,this.filledDataType).then(gt=>Et.next(gt),gt=>Et.error(gt))}).subscribe(Et=>{this.geocodeStatus=C.tm.FOUND,this.lastGeocode=Et,this.form.patchValue({[this.lastGeocode.key]:this.lastGeocode.value}),this.form.controls[this.lastGeocode.key].markAsDirty(),this.save(),this.switchGeocodeStateTimer=(0,m.H)(3e3).pipe((0,c.t)(this)).subscribe(gt=>{this.geocodeStatus=C.tm.DEFAULT,this.switchGeocodeStateTimer=null,this.pendingGeocodeSubscription=null})},Et=>{this.geocodeStatus=C.tm.NOT_FOUND,this.switchGeocodeStateTimer=(0,m.H)(3e3).pipe((0,c.t)(this)).subscribe(gt=>{this.geocodeStatus=C.tm.DEFAULT,this.lastGeocode=null,this.switchGeocodeStateTimer=null,this.pendingGeocodeSubscription=null})})):(this.filledDataType=_.includes("addressCountry")?!Te.addressCity&&Te.postalCode?t.XE5.CITY:Te.addressCity&&!Te.postalCode?t.XE5.POSTAL_CODE:null:_.includes("postalCode")&&Te.postalCode?t.XE5.CITY:_.includes("addressCity")&&Te.addressCity?t.XE5.POSTAL_CODE:null,this.filledDataID=_.includes("addressCountry")?!Te.addressCity&&Te.postalCode?this.addressCityID:Te.addressCity&&!Te.postalCode?this.postalCodeID:null:_.includes("postalCode")&&Te.postalCode?this.addressCityID:_.includes("addressCity")&&Te.addressCity?this.postalCodeID:null,this.switchGeocodeStateTimer&&this.switchGeocodeStateTimer.unsubscribe(),this.pendingGeocodeSubscription&&this.pendingGeocodeSubscription.unsubscribe(),this.geocodeStatus=C.tm.SEARCHING,this.pendingGeocodeSubscription=new u.y(Et=>{this.geocodeService.completeWithGeocode(this.form,ot,je,At,!0,this.currentLanguage,this.filledDataType).then(gt=>Et.next(gt),gt=>Et.error(gt))}).subscribe(Et=>{this.geocodeStatus=C.tm.FOUND,this.lastGeocode=Et,this.form.patchValue({[Et.key]:Et.value}),this.form.controls[Et.key].markAsDirty(),this.save(),this.switchGeocodeStateTimer=(0,m.H)(3e3).pipe((0,c.t)(this)).subscribe(gt=>{this.geocodeStatus=C.tm.DEFAULT,this.switchGeocodeStateTimer=null,this.pendingGeocodeSubscription=null})},Et=>{this.geocodeStatus=C.tm.NOT_FOUND,this.switchGeocodeStateTimer=(0,m.H)(3e3).pipe((0,c.t)(this)).subscribe(gt=>{this.geocodeStatus=C.tm.DEFAULT,this.lastGeocode=null,this.switchGeocodeStateTimer=null,this.pendingGeocodeSubscription=null})}))),this.oldValue=Te}}save(){if(this.runGeocode(),this.geocodeService.searchRunning&&this.form){const Te=this.form.controls;for(const _ in Te)Te[_]&&Te[_].dirty&&"addressCity"!==_&&"postalCode"!==_&&(this.geocodeService.submittedWhileGeocoding=!0)}this.form.valid&&this.form.dirty?this.saveEmitter.emit():this.unstickTrigger.emit()}createComponentID(Te=0){const _=Math.round(1e3*Math.random()),ot="addressCountry"+_,je="postalCode"+_,At="addressCity"+_;(document.getElementById(ot)||document.getElementById(je)||document.getElementById(At))&&Te<1e3?this.createComponentID(Te+1):(this.addressCountryID=ot,this.postalCodeID=je,this.addressCityID=At)}selectChanged(Te){this.form.patchValue({region:null}),this.updateRegionRequired(),this.save()}saveRegion(){this.form.statusChanges.pipe((0,a.q)(1)).subscribe(Te=>
1783this.save()),this.form.get("region").updateValueAndValidity()}updateRegionRequired(){this.isRegionRequired=this.form.get("addressCountry")&&this.form.get("addressCountry").value&&v.R[this.form.controls.addressCountry.value]&&v.R[this.form.controls.addressCountry.value].length>0}};at.\u0275fac=function(Te){return new(Te||at)(e.Y36(f.sK),e.Y36(O.K),e.Y36(N.M),e.Y36(L.T),e.Y36(i.K))},at.\u0275cmp=e.Xpm({type:at,selectors:[["app-address-editor"]],inputs:{isOnePage:"isOnePage",form:"form",address:"address",title:"title",description:"description"},outputs:{saveEmitter:"saveEmitter",unstickTrigger:"unstickTrigger"},decls:93,vars:241,consts:[["noRegionTemplate",""],["nzOrientation","left",3,"nzText"],[1,"col-12","col-md-7","p-0"],["optionalLabel",""],[3,"ngClass"],[1,"align-content-start",3,"ngClass"],[1,"multiLineLabel","p-0",3,"nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs","nzRequired"],["class","template",4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs","nzValidateStatus"],[1,"w-100",3,"id","nzShowSearch","formControl","nzPlaceHolder","nzDisabled","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["class","text-danger",4,"ngIf"],["nz-icon","","nzType","info-circle","nzTheme","outline","class","text-gray info-padding info-alignment","nz-tooltip","",3,"nzTooltipTitle","nzTooltipTrigger",4,"ngIf"],["class","optionalLabel",4,"ngIf"],[4,"ngIf"],[1,"w-100",3,"nzShowSearch","formControl","nzPlaceHolder","nzNotFoundContent","ngModelChange"],[1,"optionalLabel"],[1,"multiLineLabel","p-0","citySearch",3,"nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs","nzRequired"],["class","m-l-auto",3,"geocodeStatus","size",4,"ngIf"],[3,"nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs","nzValidateStatus","nzErrorTip"],["nz-input","","trim","blur",3,"id","disableControl","ngClass","placeholder","formControl","blur"],["postalCodeErrorTip",""],[3,"geocodeStatus",4,"ngIf"],["addressCityErrorTip",""],["nz-input","","trim","blur",3,"placeholder","formControl","blur"],["publicPlaceNameErrorTip",""],["publicPlaceCategoryErrorTip",""],["class","row justify-content-center mt-2 mr-0 ml-0 mb-0",4,"ngIf"],["class","align-content-start",4,"ngIf"],[1,"emptyBox",3,"nzNotFoundImage","nzNotFoundContent"],[1,"template"],[3,"nzLabel","nzValue"],[1,"text-danger"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",1,"text-gray","info-padding","info-alignment",3,"nzTooltipTitle","nzTooltipTrigger"],["nz-typography",""],[1,"m-l-auto",3,"geocodeStatus","size"],[3,"geocodeStatus"],[1,"row","justify-content-center","mt-2","mr-0","ml-0","mb-0"],[1,"col-xl-2","col-lg-4","col-6"],[1,"align-content-start"],[1,"multiLineLabel","p-0",3,"nzRequired","nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs"],[3,"nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs"],[1,"multiLineLabel","p-0",3,"nzMd","nzSm","nzXs","nzRequired"],[3,"nzMd","nzSm","nzXs"]],template:function(Te,_){if(1&Te&&(e.YNc(0,se,2,4,"ng-template",null,0,e.W1O),e._UZ(2,"nz-divider",1),e.TgZ(3,"p",2),e._uU(4),e.qZA(),e.YNc(5,re,1,3,"ng-template",null,3,e.W1O),e.TgZ(7,"div",4)(8,"nz-form-item",5)(9,"nz-form-label",6)(10,"span"),e._uU(11),e.ALo(12,"translate"),e.YNc(13,le,1,0,"ng-container",7),e.qZA()(),e.TgZ(14,"nz-form-control",8)(15,"nz-select",9),e.NdJ("ngModelChange",function(je){return _.selectChanged(je)}),e.ALo(16,"as"),e.ALo(17,"translate"),e.YNc(18,q,2,4,"nz-option",10),e.qZA(),e.YNc(19,it,3,3,"div",11),e.YNc(20,Ve,2,4,"i",12),e.YNc(21,W,4,3,"span",13),e.qZA()(),e.TgZ(22,"nz-form-item",5)(23,"nz-form-label",6)(24,"span"),e._uU(25),e.ALo(26,"translate"),e.ALo(27,"translate"),e.YNc(28,Pe,2,3,"ng-container",14),e.qZA()(),e.TgZ(29,"nz-form-control",8)(30,"nz-select",15),e.NdJ("ngModelChange",function(){return _.saveRegion()}),e.ALo(31,"as"),e.ALo(32,"translate"),e.YNc(33,Ue,1,2,"nz-option",10),e.qZA(),e.TgZ(34,"span",16),e._uU(35),e.ALo(36,"translate"),e.qZA(),e.YNc(37,Qe,3,3,"div",11),e.qZA()(),e.TgZ(38,"nz-form-item",5)(39,"nz-form-label",17)(40,"span"),e._uU(41),e.ALo(42,"translate"),e.YNc(43,rt,1,0,"ng-container",7),e.qZA(),e.YNc(44,Ct,1,2,"app-geocode-indicatior",18),e.qZA(),e.TgZ(45,"nz-form-control",19)(46,"input",20),e.NdJ("blur",function(){return _.save()}),e.ALo(47,"translate"),e.ALo(48,"as"),e.qZA(),e.YNc(49,ye,2,2,"ng-template",null,21,e.W1O),e.qZA(),e.YNc(51,Ce,1,1,"app-geocode-indicatior",22),e.qZA(),e.TgZ(52,"nz-form-item",5)(53,"nz-form-label",17)(54,"span"),e._uU(55),e.ALo(56,"translate"),e.YNc(57,j,1,0,"ng-container",7),e.qZA(),e.YNc(58,_e,1,2,"app-geocode-indicatior",18),e.qZA(),e.TgZ(59,"nz-form-control",19)(60,"input",20),e.NdJ("blur",function(){return _.save()}),e.ALo(61,"translate"),e.ALo(62,"as"),e.qZA(),e.YNc(63,ne,1,1,"ng-template",null,23,e.W1O),e.qZA(),e.YNc(65,U,1,1,"app-geocode-indicatior",22),e.qZA(),e.TgZ(66,"nz-form-item",5)(67,"nz-form-label",6)(68,"span"),e._uU(69),e.ALo(70,"translate"),e.YNc(71,et,1,0,"ng-container",7),e.qZA()(),e.TgZ(72,"nz-form-control",19)(73,"input",24),e.NdJ("blur",function(){return _.save()}),e.ALo(74,"translate"),e.ALo(75,"as"),e.qZA(),e.YNc(76,ft,1,1,"ng-template",null,25,e.W1O),e.qZA()(),e.TgZ(78,"nz-form-item",5)(79,"nz-form-label",6)(80,"span"),e._uU(81),e.ALo(82,"translate"),e.YNc(83,Ze,1,0,"ng-container",7),e.qZA()(),e.TgZ(84,"nz-form-control",19)(85,"input",24),e.NdJ("blur",function(){return _.save()}),e.ALo(86,"translate"),e.ALo(87,"as"),e.qZA(),e.YNc(88,y,1,1,"ng-template",null,26,e.W1O),e.qZA()(),e.YNc(90,$e,56,140,"div",27),e.YNc(91,Le,51,110,"ng-container",14),e.YNc(92,ue,10,22,"nz-form-item",28),e.qZA()),2&Te){const ot=e.MAs(1),je=e.MAs(6),At=e.MAs(50),Et=e.MAs(64),gt=e.MAs(77),Pt=e.MAs(89);
1783e.xp6(2),e.Q6J("nzText",_.title),e.xp6(2),e.hij(" ",_.description,"\n"),e.xp6(3),e.Q6J("ngClass",e.VKq(208,Ge,_.isOnePage)),e.xp6(1),e.Q6J("ngClass",e.VKq(210,tt,_.isOnePage)),e.xp6(1),e.Q6J("nzXXl",_.isOnePage?8:6)("nzXl",_.isOnePage?24:6)("nzLg",_.isOnePage?24:6)("nzMd",_.isOnePage?24:6)("nzSm",_.isOnePage?24:8)("nzXs",24)("nzRequired",_.form&&_.form.controls.addressCountry.validator&&_.form.controls.addressCountry.validator(e.DdM(212,Ee))&&_.form.controls.addressCountry.validator(e.DdM(213,Ee)).required),e.xp6(2),e.hij(" ",e.lcZ(12,162,"COMMON.FORM.ADDRESS.COUNTRY")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",je)("ngTemplateOutletContext",e.DdM(214,pt)),e.xp6(1),e.Gre("",_.isLawyer?"countryCursor":""," position-relative"),e.Q6J("nzXXl",14)("nzXl",_.isOnePage?24:14)("nzLg",_.isOnePage?24:14)("nzMd",_.isOnePage?24:14)("nzSm",_.isOnePage?24:12)("nzXs",24)("nzValidateStatus",_.form.controls.addressCountry),e.xp6(1),e.ekj("ant-zorro-input-error",_.form.controls.addressCountry.touched&&(_.form.controls.addressCountry.hasError("required")||_.form.controls.addressCountry.hasError("error")))("ant-zorro-input-warning",_.form.controls.addressCountry.touched&&_.form.controls.addressCountry.hasError("warning")),e.Q6J("id",_.addressCountryID)("nzShowSearch",!0)("formControl",e.xi3(16,164,_.form.controls.addressCountry,_.FormControl))("nzPlaceHolder",e.lcZ(17,167,"COMMON.FORM.ADDRESS.PLACEHOLDER.COUNTRY"))("nzDisabled",_.isLawyer),e.xp6(3),e.Q6J("ngForOf",_.CountryCodes),e.xp6(1),e.Q6J("ngIf",_.form.controls.addressCountry.touched&&(_.form.controls.addressCountry.hasError("required")||_.form.controls.addressCountry.hasError("error"))),e.xp6(1),e.Q6J("ngIf",_.isLawyer),e.xp6(1),e.Q6J("ngIf",_.isLawyer),e.xp6(1),e.Q6J("ngClass",e.VKq(215,tt,_.isOnePage)),e.xp6(1),e.Q6J("nzXXl",_.isOnePage?8:6)("nzXl",_.isOnePage?24:6)("nzLg",_.isOnePage?24:6)("nzMd",_.isOnePage?24:6)("nzSm",_.isOnePage?24:8)("nzXs",24)("nzRequired",_.isRegionRequired),e.xp6(2),e.hij(" ","HU"===_.form.controls.addressCountry.value?e.lcZ(26,169,"COMMON.FORM.ADDRESS.REGION_HUNGARY"):e.lcZ(27,171,"COMMON.FORM.ADDRESS.REGION")," "),e.xp6(3),e.Q6J("ngIf",!_.isRegionRequired),e.xp6(1),e.Q6J("nzXXl",14)("nzXl",_.isOnePage?24:14)("nzLg",_.isOnePage?24:14)("nzMd",_.isOnePage?24:14)("nzSm",_.isOnePage?24:12)("nzXs",24)("nzValidateStatus",_.form.controls.region),e.xp6(1),e.ekj("ant-zorro-input-error",_.form.controls.region.touched&&(_.form.controls.region.hasError("required")||_.form.controls.region.hasError("error")))("ant-zorro-input-warning",_.form.controls.region.touched&&_.form.controls.region.hasError("warning")),e.Q6J("nzShowSearch",!0)("formControl",e.xi3(31,173,_.form.controls.region,_.FormControl))("nzPlaceHolder",e.lcZ(32,176,"COMMON.FORM.ADDRESS.PLACEHOLDER.REGION"))("nzNotFoundContent",ot),e.xp6(3),e.Q6J("ngForOf",_.RegionCodes[_.form.controls.addressCountry.value]),e.xp6(2),e.hij(" ",e.lcZ(36,178,"COMMON.FORM.ADDRESS.PLACEHOLDER.REGION_DESC")," "),e.xp6(2),e.Q6J("ngIf",_.form.controls.region.touched&&(_.form.controls.region.hasError("required")||_.form.controls.region.hasError("error"))),e.xp6(1),e.Q6J("ngClass",e.VKq(217,tt,_.isOnePage)),e.xp6(1),e.Q6J("nzXXl",_.isOnePage?8:6)("nzXl",_.isOnePage?24:6)("nzLg",_.isOnePage?24:6)("nzMd",_.isOnePage?24:6)("nzSm",_.isOnePage?24:8)("nzXs",24)("nzRequired",_.form&&_.form.controls.postalCode.validator&&_.form.controls.postalCode.validator(e.DdM(219,Ee))&&_.form.controls.postalCode.validator(e.DdM(220,Ee)).required),e.xp6(2),e.hij(" ",e.lcZ(42,180,"COMMON.FORM.ADDRESS.POSTAL")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",je)("ngTemplateOutletContext",e.DdM(221,ce)),e.xp6(1),e.Q6J("ngIf",_.filledDataType===_.GeocodeDataToFill.POSTAL_CODE),e.xp6(1),e.Q6J("nzXXl",14)("nzXl",_.isOnePage?24:14)("nzLg",_.isOnePage?24:14)("nzMd",_.isOnePage?24:14)("nzSm",_.isOnePage?24:12)("nzXs",24)("nzValidateStatus",_.form.controls.postalCode)("nzErrorTip",At),e.xp6(1),e.Q6J("id",_.postalCodeID)("disableControl",_.filledDataType===_.GeocodeDataToFill.POSTAL_CODE&&_.geocodeStatus===_.GeocodeState.SEARCHING&&_.filledDataID===_.postalCodeID)("ngClass",e.VKq(222,Me,_.filledDataType===_.GeocodeDataToFill.POSTAL_CODE&&_.geocodeStatus===_.GeocodeState.SEARCHING&&_.filledDataID===_.postalCodeID))("placeholder",e.lcZ(47,182,"COMMON.FORM.ADDRESS.PLACEHOLDER.POSTAL"))("formControl",e.xi3(48,184,_.form.controls.postalCode,_.FormControl)),e.xp6(
17835),e.Q6J("ngIf",_.filledDataType===_.GeocodeDataToFill.POSTAL_CODE),e.xp6(1),e.Q6J("ngClass",e.VKq(224,tt,_.isOnePage)),e.xp6(1),e.Q6J("nzXXl",_.isOnePage?8:6)("nzXl",_.isOnePage?24:6)("nzLg",_.isOnePage?24:6)("nzMd",_.isOnePage?24:6)("nzSm",_.isOnePage?24:8)("nzXs",24)("nzRequired",_.form&&_.form.controls.addressCity.validator&&_.form.controls.addressCity.validator(e.DdM(226,Ee))&&_.form.controls.addressCity.validator(e.DdM(227,Ee)).required),e.xp6(2),e.hij(" ",e.lcZ(56,187,"COMMON.FORM.ADDRESS.CITY")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",je)("ngTemplateOutletContext",e.DdM(228,he)),e.xp6(1),e.Q6J("ngIf",_.filledDataType===_.GeocodeDataToFill.CITY),e.xp6(1),e.Q6J("nzXXl",14)("nzXl",_.isOnePage?24:14)("nzLg",_.isOnePage?24:14)("nzMd",_.isOnePage?24:14)("nzSm",_.isOnePage?24:12)("nzXs",24)("nzValidateStatus",_.form.controls.addressCity)("nzErrorTip",Et),e.xp6(1),e.Q6J("id",_.addressCityID)("disableControl",_.filledDataType===_.GeocodeDataToFill.CITY&&_.geocodeStatus===_.GeocodeState.SEARCHING&&_.filledDataID===_.addressCityID)("ngClass",e.VKq(229,Me,_.filledDataType===_.GeocodeDataToFill.CITY&&_.geocodeStatus===_.GeocodeState.SEARCHING&&_.filledDataID===_.addressCityID))("placeholder",e.lcZ(61,189,"COMMON.FORM.ADDRESS.PLACEHOLDER.CITY"))("formControl",e.xi3(62,191,_.form.controls.addressCity,_.FormControl)),e.xp6(5),e.Q6J("ngIf",_.filledDataType===_.GeocodeDataToFill.CITY),e.xp6(1),e.Q6J("ngClass",e.VKq(231,tt,_.isOnePage)),e.xp6(1),e.Q6J("nzXXl",_.isOnePage?8:6)("nzXl",_.isOnePage?24:6)("nzLg",_.isOnePage?24:6)("nzMd",_.isOnePage?24:6)("nzSm",_.isOnePage?24:8)("nzXs",24)("nzRequired",_.form&&_.form.controls.publicPlaceName.validator&&_.form.controls.publicPlaceName.validator(e.DdM(233,Ee))&&_.form.controls.publicPlaceName.validator(e.DdM(234,Ee)).required),e.xp6(2),e.hij(" ",e.lcZ(70,194,"COMMON.FORM.ADDRESS.PUBLIC_PLACE.NAME")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",je)("ngTemplateOutletContext",e.DdM(235,Ye)),e.xp6(1),e.Q6J("nzXXl",14)("nzXl",_.isOnePage?24:14)("nzLg",_.isOnePage?24:14)("nzMd",_.isOnePage?24:14)("nzSm",_.isOnePage?24:12)("nzXs",24)("nzValidateStatus",_.form.controls.publicPlaceName)("nzErrorTip",gt),e.xp6(1),e.Q6J("placeholder",e.lcZ(74,196,"COMMON.FORM.ADDRESS.PLACEHOLDER.PUBLIC_PLACE.NAME"))("formControl",e.xi3(75,198,_.form.controls.publicPlaceName,_.FormControl)),e.xp6(5),e.Q6J("ngClass",e.VKq(236,tt,_.isOnePage)),e.xp6(1),e.Q6J("nzXXl",_.isOnePage?8:6)("nzXl",_.isOnePage?24:6)("nzLg",_.isOnePage?24:6)("nzMd",_.isOnePage?24:6)("nzSm",_.isOnePage?24:8)("nzXs",24)("nzRequired",_.form&&_.form.controls.publicPlaceCategory.validator&&_.form.controls.publicPlaceCategory.validator(e.DdM(238,Ee))&&_.form.controls.publicPlaceCategory.validator(e.DdM(239,Ee)).required),e.xp6(2),e.hij(" ",e.lcZ(82,201,"COMMON.FORM.ADDRESS.PUBLIC_PLACE.CATEGORY")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",je)("ngTemplateOutletContext",e.DdM(240,He)),e.xp6(1),e.Q6J("nzXXl",14)("nzXl",_.isOnePage?24:14)("nzLg",_.isOnePage?24:14)("nzMd",_.isOnePage?24:14)("nzSm",_.isOnePage?24:12)("nzXs",24)("nzValidateStatus",_.form.controls.publicPlaceCategory)("nzErrorTip",Pt),e.xp6(1),e.Q6J("placeholder",e.lcZ(86,203,"COMMON.FORM.ADDRESS.PLACEHOLDER.PUBLIC_PLACE.CATEGORY"))("formControl",e.xi3(87,205,_.form.controls.publicPlaceCategory,_.FormControl)),e.xp6(5),e.Q6J("ngIf",_.isOnePage),e.xp6(1),e.Q6J("ngIf",!_.isOnePage),e.xp6(1),e.Q6J("ngIf",!_.isOnePage)}},dependencies:[o.Fj,o.JJ,M.P,R.mk,R.sg,R.O5,R.tP,o.oH,l.X,h.d,D.w,B.p9,K.g,b.t3,b.SK,w.Nx,w.iK,w.Fd,X.Ls,Y.Zp,Z.Ip,Z.Vq,G.SY,Q.ZU,f.X$,V.j,O.K],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}.info-padding[_ngcontent-%COMP%]{padding-bottom:.25rem}.info-alignment[_ngcontent-%COMP%]{position:absolute;top:14px;right:-30px}@media (max-width: 575.98px){.info-alignment[_ngcontent-%COMP%]{right:-19px}}.countryCursor[_ngcontent-%COMP%]{cursor:default!important}[_nghost-%COMP%] .countryCursor[_ngcontent-%COMP%] .ant-form-item-control-input, [_nghost-%COMP%] .countryCursor[_ngcontent-%COMP%] .ant-form-item-control-input-content, [_nghost-%COMP%] .countryCursor[_ngcontent-%COMP%] nz-select, [_nghost-%COMP%] .countryCursor[_ngcontent-%COMP%] .ant-select-selection-search-input, [_nghost-%COMP%] .countryCursor[_ngcontent-%COMP%] nz-select-top-control, [_nghost-%COMP%] .countryCursor[_ngcontent-%COMP%] .ant-select-arrow{curs
1783or:default!important}@media (max-width: 350px){.searchLabel[_ngcontent-%COMP%]{display:none!important}.smallSearchLabel[_ngcontent-%COMP%]{display:flex}}@media (min-width: 349.98px){.smallSearchLabel[_ngcontent-%COMP%]{display:none}}.searchSpinner[_ngcontent-%COMP%] .ant-spin{color:#53535f}.searchSpinner[_ngcontent-%COMP%] .ant-spin .anticon{color:#9579d1}.searchSpinner.found-geocode[_ngcontent-%COMP%] .ant-spin{color:#92ddea!important}.searchSpinner.found-geocode[_ngcontent-%COMP%] .ant-spin .anticon{color:#92ddea!important}.searchSpinner.not-found-geocode[_ngcontent-%COMP%] .ant-spin{color:#de4436!important}.searchSpinner.not-found-geocode[_ngcontent-%COMP%] .ant-spin .anticon{color:#de4436!important}'],data:{animation:[(0,r.X$)("inOutErrorMessage",[(0,r.eR)(":enter",[(0,r.oB)({opacity:0,transform:"translateY(-10px)"}),(0,r.jt)("0.3s ease-out",(0,r.oB)({opacity:1,transform:"translateY(0)"}))]),(0,r.eR)(":leave",[(0,r.oB)({opacity:1,transform:"translateY(0)"}),(0,r.jt)("0.3s ease-in",(0,r.oB)({opacity:0,transform:"translateY(-10px)"}))])])]}}),at=(0,s.gn)([(0,c.c)()],at)},38320:(Se,k,n)=>{n.d(k,{F:()=>mt});var s=n(97582),e=n(94650),o=n(22971),t=n(92961),v=n(44224),r=n(52835),c=n(5963),C=n(37340),u=n(91009),m=n(98405),a=n(50211),f=n(75489),O=n(87689),N=n(31495),L=n(55089),i=n(81664),M=n(32925),R=n(41836),l=n(31494),h=n(36895),D=n(39597),B=n(74383),K=n(66616),b=n(47044),w=n(21811),X=n(51971),Y=n(2577),Z=n(20545),G=n(37570),Q=n(45144),V=n(81801);const se=["companyHeader"],xe=["personalHeader"];function Ee(ye,Ce){1&ye&&(e.TgZ(0,"div"),e._UZ(1,"nz-alert",11),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&ye&&(e.Q6J("@inOutAlert",void 0),e.xp6(1),e.Q6J("nzMessage",e.lcZ(2,3,"CLIENT.PROFILE.BILLING.COPIED_TO_PROFILE_TITLE"))("nzDescription",e.lcZ(3,5,"CLIENT.PROFILE.BILLING.COPIED_TO_PROFILE_DESC")))}function re(ye,Ce){1&ye&&(e.TgZ(0,"div",19)(1,"div",20),e._UZ(2,"nz-skeleton-element",21),e.qZA(),e.TgZ(3,"div",22),e._UZ(4,"nz-skeleton-element",23),e.qZA()()),2&ye&&(e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(2),e.Q6J("nzActive",!0),e.xp6(2),e.Q6J("nzActive",!0))}function le(ye,Ce){1&ye&&e._UZ(0,"nz-skeleton-element",24),2&ye&&e.Q6J("nzActive",!0)}function q(ye,Ce){1&ye&&(e.TgZ(0,"div",19)(1,"div",20),e._UZ(2,"nz-skeleton-element",21),e.qZA(),e.TgZ(3,"div",22),e._UZ(4,"nz-skeleton-element",23),e.qZA()()),2&ye&&(e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(2),e.Q6J("nzActive",!0),e.xp6(2),e.Q6J("nzActive",!0))}function fe(ye,Ce){if(1&ye&&(e.TgZ(0,"nz-card",12),e.YNc(1,re,5,3,"div",13),e.ALo(2,"numberArray"),e.TgZ(3,"div",14),e._UZ(4,"nz-skeleton-element",15),e.qZA(),e.YNc(5,le,1,1,"ng-template",null,16,e.W1O),e._UZ(7,"nz-divider",17)(8,"nz-skeleton-element",18),e.YNc(9,q,5,3,"div",13),e.ALo(10,"numberArray"),e.qZA()),2&ye){const j=e.MAs(6);e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,7,2)),e.xp6(2),e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(1),e.Q6J("nzActive",!0),e.xp6(3),e.Q6J("nzText",j),e.xp6(1),e.Q6J("nzActive",!0),e.xp6(1),e.Q6J("ngForOf",e.lcZ(10,9,10))}}function de(ye,Ce){1&ye&&(e.TgZ(0,"div")(1,"p",25),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&ye&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"CLIENT.PROFILE.BILLING.LOAD_FAILED")," "))}function it(ye,Ce){if(1&ye&&(e.TgZ(0,"h4",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye){const j=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,j.userTypeKey+".PROFILE.BILLING.KIND.QUESTION")," ")}}function Ve(ye,Ce){if(1&ye&&(e.TgZ(0,"h3",27),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"p",28),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"p",29),e._uU(7),e.ALo(8,"translate"),e.qZA()),2&ye){const j=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,3,j.userTypeKey+".PROFILE.BILLING.KIND.SWITCH.TO_PERSONAL")," "),e.xp6(3),e.hij(" ",e.lcZ(5,5,"COMMON.FORM.PERSONAL.DESCRIPTION.VISIBILITY."+j.userTypeKey)," "),e.xp6(3),e.hij(" ",e.lcZ(8,7,"COMMON.FORM.PERSONAL.DESCRIPTION.WARNING")," ")}}function W(ye,Ce){if(1&ye){const j=e.EpF();e.TgZ(0,"div",30)(1,"button",31),e.NdJ("click",function(){e.CHM(j);const F=e.oxw();return e.KtG(F.switchToPersonalBilling())})("nzTooltipVisibleChange",function(F){e.CHM(j);const ne=e.oxw();return e.KtG(ne.switchTooltipVisible=F)}),e.ALo(2,"translate"),e.TgZ(3,"span",32),e._uU(4),e.ALo(5,"translate"),e.qZA()()()}if(2&ye){const j=e.oxw();e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(1),e.Q6J("nzTooltipVisible",j.switchTooltipVisible)("nzTooltipTitle",e.lcZ(2,4,j.userTypeKey+".PROFILE.BILLING.KIND.SWITCH.TOOLTIP.PERSONAL")),e.xp6(3),e.hij(" ",e.lcZ(5,6,j.userTypeKey+".PROFILE.BILLING.KIND.SWITCH.TO_PERSONAL")," ")}}function ee(ye,Ce){if(1&ye&&(e.TgZ(0,"h3",27),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"p",28),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"p",29),e._uU(7),e.ALo(8,"translate"),e.qZA()),2&ye){const j=e.oxw();
1783e.xp6(1),e.Oqu(e.lcZ(2,3,j.userTypeKey+".PROFILE.BILLING.KIND.SWITCH.TO_COMPANY")),e.xp6(3),e.hij(" ",e.lcZ(5,5,"COMMON.FORM.COMPANY."+j.userTypeKey+".DESCRIPTION.VISIBILITY")," "),e.xp6(3),e.hij(" ",e.lcZ(8,7,"COMMON.FORM.PERSONAL.DESCRIPTION.WARNING")," ")}}function te(ye,Ce){if(1&ye){const j=e.EpF();e.TgZ(0,"div",30)(1,"button",31),e.NdJ("click",function(){e.CHM(j);const F=e.oxw();return e.KtG(F.switchToCompanyBilling())})("nzTooltipVisibleChange",function(F){e.CHM(j);const ne=e.oxw();return e.KtG(ne.switchTooltipVisible=F)}),e.ALo(2,"translate"),e.TgZ(3,"span",32),e._uU(4),e.ALo(5,"translate"),e.qZA()()()}if(2&ye){const j=e.oxw();e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(1),e.Q6J("nzTooltipVisible",j.switchTooltipVisible)("nzTooltipTitle",e.lcZ(2,4,j.userTypeKey+".PROFILE.BILLING.KIND.SWITCH.TOOLTIP.COMPANY")),e.xp6(3),e.hij(" ",e.lcZ(5,6,j.userTypeKey+".PROFILE.BILLING.KIND.SWITCH.TO_COMPANY")," ")}}const Pe=function(){return{display:"flex","flex-direction":"column",height:"100%"}};function Ue(ye,Ce){if(1&ye){const j=e.EpF();e.TgZ(0,"div",33)(1,"nz-card",34)(2,"div",35),e._UZ(3,"nz-avatar",36),e.TgZ(4,"h4",37),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"p",38),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"div",39)(11,"button",40),e.NdJ("click",function(){e.CHM(j);const F=e.oxw();
1783return e.KtG(F.createBillingCompany())}),e.TgZ(12,"span",32),e._uU(13),e.ALo(14,"translate"),e.qZA()()()(),e.TgZ(15,"nz-card",34)(16,"div",35),e._UZ(17,"nz-avatar",41),e.TgZ(18,"h4",37),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"p",38),e._uU(22),e.ALo(23,"translate"),e.qZA()(),e.TgZ(24,"div",39)(25,"button",40),e.NdJ("click",function(){e.CHM(j);const F=e.oxw();return e.KtG(F.createBillingPerson())}),e.TgZ(26,"span",32),e._uU(27),e.ALo(28,"translate"),e.qZA()()()()()}if(2&ye){const j=e.oxw();e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(1),e.Q6J("nzBodyStyle",e.DdM(23,Pe)),e.xp6(2),e.Q6J("nzSize",100),e.xp6(2),e.Oqu(e.lcZ(6,11,j.userTypeKey+".KIND.COMPANY")),e.xp6(3),e.hij(" ",e.lcZ(9,13,j.userTypeKey+".PROFILE.BILLING.KIND.SWITCH.DESC.COMPANY")," "),e.xp6(5),e.hij(" ",e.lcZ(14,15,j.userTypeKey+".PROFILE.BILLING.KIND.CREATE.COMPANY")," "),e.xp6(2),e.Q6J("nzBodyStyle",e.DdM(24,Pe)),e.xp6(2),e.Q6J("nzSize",100),e.xp6(2),e.Oqu(e.lcZ(20,17,j.userTypeKey+".KIND.PERSONAL")),e.xp6(3),e.hij(" ",e.lcZ(23,19,j.userTypeKey+".PROFILE.BILLING.KIND.SWITCH.DESC.PERSONAL")," "),e.xp6(5),e.hij(" ",e.lcZ(28,21,j.userTypeKey+".PROFILE.BILLING.KIND.CREATE.PERSONAL")," ")}}function Ae(ye,Ce){1&ye&&(e._UZ(0,"nz-divider",47),e.ALo(1,"translate")),2&ye&&e.s9C("nzText",e.lcZ(1,1,"CLIENT.PROFILE.BILLING.TITLE"))}function Fe(ye,Ce){if(1&ye){const j=e.EpF();e.TgZ(0,"app-personal-billing-form",48),e.NdJ("save",function(F){e.CHM(j);const ne=e.oxw(2);return e.KtG(ne.saveBillingWithButton(F))})("setSameAsProfile",function(){e.CHM(j);const F=e.oxw(2);return e.KtG(F.setSameAsProfileFunction())})("unstickTrigger",function(){e.CHM(j);const F=e.oxw(2);return e.KtG(F.updateUnstickTrigger())}),e.ALo(1,"as"),e.qZA()}if(2&ye){const j=e.oxw(2);e.Q6J("actBilling",e.xi3(1,11,j.actBilling,j.BillingPerson))("billingForm",j.billingForm)("isOnePage",j.isOnePage)("showSameAsProfile",j.showSameAsProfile)("hasBilling",j.hasBilling)("sameAsProfileFunction",j.sameAsProfileFunction)("sameAsProfileText",j.sameAsProfileText)("saveDynamically",!0)("isNewBilling",j.isNewBilling)("hasProfile",j.hasProfile)("saveInProgress",j.saveInProgress)}}function Qe(ye,Ce){if(1&ye){const j=e.EpF();e.TgZ(0,"app-company-billing-form",49),e.NdJ("save",function(F){e.CHM(j);const ne=e.oxw(2);return e.KtG(ne.saveBillingWithButton(F))})("setSameAsProfile",function(){e.CHM(j);const F=e.oxw(2);return e.KtG(F.setSameAsProfileFunction())})("unstickTrigger",function(){e.CHM(j);const F=e.oxw(2);return e.KtG(F.updateUnstickTrigger())}),e.ALo(1,"as"),e.qZA()}if(2&ye){const j=e.oxw(2);e.Q6J("actBilling",e.xi3(1,12,j.actBilling,j.BillingCompany))("billingForm",j.billingForm)("isOnePage",j.isOnePage)("showSameAsProfile",j.showSameAsProfile)("hasBilling",j.hasBilling)("sameAsProfileFunction",j.sameAsProfileFunction)("sameAsProfileText",j.sameAsProfileText)("saveDynamically",!0)("isNewBilling",j.isNewBilling)("hasProfile",j.hasProfile)("isTaxNumberInvalid",j.isTaxNumberInvalid)("saveInProgress",j.saveInProgress)}}function rt(ye,Ce){if(1&ye){const j=e.EpF();e.TgZ(0,"div",50)(1,"app-multi-state-button",51),e.NdJ("click",function(){e.CHM(j);const F=e.oxw(2);return e.KtG(F.saveManually())}),e.qZA()()}if(2&ye){const j=e.oxw(2);e.xp6(1),e.Q6J("runFunction",j.runSaveFunction)("unstickTrigger",j.unstickTrigger)("showMessage",!0)}}const Ct=function(ye){return{"m-b-0 onePageCard":ye}};function ht(ye,Ce){if(1&ye&&(e.TgZ(0,"nz-card",42),e.YNc(1,Ae,2,3,"nz-divider",43),e.TgZ(2,"div"),e.YNc(3,Fe,2,14,"app-personal-billing-form",44),e.YNc(4,Qe,2,15,"app-company-billing-form",45),e.YNc(5,rt,2,3,"div",46),e.qZA()()),2&ye){const j=e.oxw();e.Q6J("ngClass",e.VKq(6,Ct,j.isOnePage))("@skeletonPosAbsLeave",void 0),e.xp6(1),e.Q6J("ngIf",j.isOnePage),e.xp6(2),e.Q6J("ngIf",j.billingForm&&(j.billingType===j.BillingType.PersonRequest||j.billingType===j.BillingType.PersonResponse)),e.xp6(1),e.Q6J("ngIf",j.billingForm&&(j.billingType===j.BillingType.CompanyRequest||j.billingType===j.BillingType.CompanyResponse)),e.xp6(1),e.Q6J("ngIf",j.billingForm&&!j.isOnePage)}}let mt=class{constructor(Ce,j,_e,F,ne,U,et,ct,ft){this.clientService=Ce,this.eventService=j,this.formService=_e,this.onepage=F,this.userService=ne,this.modalService=U,this.translate=et,this.asyncMessenger=ct,this.validatorMessengerService=ft,this.submitBillingPromise=new e.vpe,this.unstickTriggerEmitter=new e.vpe,this.runSaveFunctionEmitter=new e.vpe,this.createdBilling=!1,this.sameAsProfileText=new t.PR("COMMON.FORM.SAME_AS_PROFILE_BUTTON_STATES.DEFAULT","COMMON.FORM.SAME_AS_PROFILE_BUTTON_STATES.WORKING","COMMON.FORM.SAME_AS_PROFILE_BUTTON_STATES.SUCCESS","COMMON.FORM.SAME_AS_PROFILE_BUTTON_STATES.FAILED"),this.toSubmit=this.onepage.submitBilling,this.showSameAsProfile=!1,this.hasProfile=!1,this.unstickTrigger=0,this.hasBilling=!1,this.isLoadingBilling=!0,this.BillingType=o.ck,this.loadingBillingFailed=!1,this.isNewBilling=!1,this.switchTooltipVisible=!1,this.isTaxNumberInvalid=!1,this.showCopyAlert=!1,this.Billing
1783Company=o.ft,this.BillingPerson=o.ZL,this.saveInProgress=!1}ngOnInit(){this.loadClientProfileAndBilling(),this.isOnePage&&this.toSubmit.subscribe(Ce=>{Ce>0&&this.submitBillingPromise.emit(this.saveManually())}),this.onepage.billingChanged.subscribe(Ce=>{Ce>0&&this.loadBilling()}),this.userTypeKey=this.userService.sessionTypeTranslationKey}unloadNotification(Ce){this.billingForm&&this.billingForm.dirty&&(Ce.returnValue=!0)}loadClientProfileAndBilling(){this.loadClientProfile().then(Ce=>{this.loadBilling()},Ce=>{404===Ce.status?(this.loadBilling(),this.eventService.hasProfile.subscribe(j=>{j&&(this.showSameAsProfile=!0,this.hasProfile=!0)})):(this.isLoadingBilling=!1,this.loadingBillingFailed=!0)})}loadClientProfile(){return this.clientService.getClientProfile().pipe((0,v.t)(this)).toPromise().then(Ce=>(Ce&&(this.showSameAsProfile=!0,this.hasProfile=!0),Promise.resolve(Ce)),Ce=>Promise.reject(Ce))}loadBilling(){this.isLoadingBilling=!0,this.clientService.getBilling().pipe((0,v.t)(this)).subscribe(Ce=>{Ce?(Ce.type===o.ck.CompanyResponse?Ce.type=o.ck.CompanyRequest:Ce.type===o.ck.PersonResponse&&(Ce.type=o.ck.PersonRequest,!Ce.birth&&this.actBilling&&this.actBilling.birth&&(this.actBilling.birth=void 0)),this.isDeepEqualOrNull(this.actBilling,Ce)||(this.actBilling=Ce,this.billingType=this.actBilling.type,this.createBillingFormService()),this.createdBilling=!0,this.hasBilling=!0,this.eventService.hasBilling.emit(!0)):(this.hasBilling=!1,this.eventService.hasBilling.emit(!1)),this.isLoadingBilling=!1,this.loadingBillingFailed=!1},Ce=>{this.isLoadingBilling=!1,this.loadingBillingFailed=!0})}isDeepEqualOrNull(Ce,j){if(Ce===j||!Ce&&!j)return!0;if(null===Ce||"object"!=typeof Ce||null===j||"object"!=typeof j)return!1;{const _e=Object.keys(Ce),F=Object.keys(j);return(_e.length<F.length?F:_e).every(U=>this.isDeepEqualOrNull(Ce[U],j[U]))}}createBillingFormService(){this.billingForm=this.formService.billingFormGroup(this.actBilling,this.hasProfile)}
1783createBillingCompany(Ce){this.billingType=o.ck.CompanyRequest,Ce||((Ce=new o.ft).address=new o.kL,Ce.taxNumber=new o.DW,this.actBilling=Ce),this.billingForm=this.formService.billingCompanyFormGroup(Ce,this.hasProfile)}createBillingPerson(Ce){this.billingType=o.ck.PersonRequest,Ce||((Ce=new o.ZL).address=new o.kL,this.actBilling=Ce),this.billingForm=this.formService.billingPersonFormGroup(Ce,this.hasProfile)}createBilling(){const Ce=this.billingForm.get("address").value;this.isTaxNumberInvalid=!1,this.billingForm.markAsPristine(),Ce.markAsPristine(),this.saveInProgress=!0;const j=this.clientService.postBilling(this.actBilling).pipe((0,v.t)(this)).toPromise().then(()=>(this.eventService.hasBilling.emit(!0),this.onepage.sendBillingChanged(),this.saveInProgress=!1,this.showSameAsProfile||(this.isOnePage?this.showCopyAlert=this.isOnePage:this.asyncMessenger.infoNotification("CLIENT.PROFILE.BILLING.COPIED_TO_PROFILE_TITLE","CLIENT.PROFILE.BILLING.COPIED_TO_PROFILE_DESC"),this.eventService.hasProfile.emit(!0),this.eventService.profileUpdated.emit()),this.createdBilling=!0,Promise.resolve()),_e=>(this.runSaveFunction===j&&(this.billingForm.markAsDirty(),Ce.markAsDirty()),this.saveInProgress=!1,this.handleBillingUpdateError(_e.msg,this.billingForm),Promise.reject(_e)));return j}updateBilling(Ce,j,_e=(()=>{}),F=(ne=>{})){const ne=j.get("address").value;if(j.valid&&ne.valid&&(j.dirty||ne.dirty)){if(Ce=this.formService.groupToBilling(j)){if(this.createdBilling){this.isTaxNumberInvalid=!1,this.saveInProgress=!0,j.markAsPristine(),ne.markAsPristine();const U=this.clientService.postBilling(Ce).pipe((0,v.t)(this)).toPromise().then(()=>(this.hasBilling=!0,this.eventService.hasBilling.emit(!0),this.onepage.sendBillingChanged(),this.saveInProgress=!1,_e(),Promise.resolve()),et=>(this.runSaveFunction===U&&(j.markAsDirty(),ne.markAsDirty()),this.saveInProgress=!1,F(et),this.handleBillingUpdateError(et.msg,j),Promise.reject(et)));return U}return this.createBilling()}}else if(j&&ne&&j.valid&&ne.valid&&!j.dirty&&!ne.dirty)return Promise.resolve(null)}setSameAsProfileFunction(){const Ce=this.setBillingAsProfile();this.sameAsProfileFunction=Ce}setBillingAsProfile(){return this.clientService.getClientProfile().toPromise().then(Ce=>(Ce.owner.type===o.pq.Person?(this.actBilling=new o.ZL,this.actBilling.firstName=Ce.owner.name.first,this.actBilling.lastName=Ce.owner.name.last):Ce.owner.type===o.pq.Company&&(this.actBilling=new o.ft,this.actBilling.name=Ce.owner.name,this.actBilling.taxNumber=Ce.owner.taxNumber,this.actBilling.taxID=Ce.owner.taxID,this.actBilling.phone=Ce.owner.phone),this.actBilling.address=Ce.owner.address?Ce.owner.address:new o.kL,this.billingType=this.actBilling.type,this.billingForm=this.formService.billingFormGroup(this.actBilling,this.hasProfile),this.billingForm.markAsDirty(),this.saveBillingWithButton(this.actBilling)),Ce=>Promise.reject())}saveBillingWithButton(Ce){const j=this.billingForm.get("address").value;if(this.billingForm.valid&&j.valid&&(this.billingForm.dirty||j.dirty)){this.actBilling=this.formService.groupToBilling(this.billingForm);const _e=this.updateBilling(this.actBilling,this.billingForm);return this.runSaveFunction=_e,this.runSaveFunctionEmitter.emit(this.runSaveFunction),_e}(!this.billingForm.valid||!j.valid)&&this.updateUnstickTrigger()}saveManually(){const Ce=this.billingForm.get("address").value;if(this.billingForm.valid&&Ce.valid){if(this.billingForm.dirty||Ce.dirty)return this.saveBillingWithButton(this.actBilling);{const j=t.P4.getSuccessfulPromise();return this.runSaveFunction=j,this.runSaveFunctionEmitter.emit(this.runSaveFunction),this.runSaveFunction}}{const j=this.personalBillingFormComponent?this.personalBillingFormComponent:this.companyBillingFormComponent;this.formService.triggerBillingValidation(j.billingForm,j&&j.billingFormElement?j.billingFormElement.nativeElement:void 0,document.documentElement)}}handleBillingUpdateError(Ce,j){Ce.cause===o.r8.INVALID_COMMUNITY_TAX_NUMBER?(this.isTaxNumberInvalid=!0,j.controls.taxNumber&&j.controls.taxNumber.controls&&j.controls.taxNumber.controls.communityTaxNumber&&j.controls.taxNumber.controls.communityTaxNumber.setErrors({pattern:!0})):Ce.cause===o.r8.INVALID_COUNTRY_WITH_TAX_NUMBER?j.controls.taxNumber&&j.controls.taxNumber.controls&&j.controls.taxNumber.controls.communityTaxNumber&&j.controls.taxNumber.controls.communityTaxNumber.setErrors({countryWithWrongTaxNumber:!0}):Ce.cause===o.r8.INVALID_PHONE_NUMBER&&j.controls.phone&&j.controls.phone.setErrors({wrongNumber:!0})}updateUnstickTrigger(){this.unstickTrigger=Math.random(),this.isOnePage&&this.unstickTriggerEmitter.emit()}switchToCompanyBilling(){(0,c.H)(200).pipe((0,v.t)(this)).subscribe(_e=>{this.switchTooltipVisible=!1});const Ce=new o.ft;Ce.address=new o.kL,Ce.taxNumber=new o.DW;const j=this.modalService.switchToCompanyBillingModal(Ce,this.companyHeaderTemplate,(_e,F,ne,U)=>this.updateBilling(F,_e.companyBillingFormComponent.billingForm,()=>{this.loadClientProfileAndBilling(),this.sameAsProfileFunction=null,j.close(),ne()},ct=>{U()}),(_e,F,ne)=>{_e.companyBillingFormComponent.billingForm.dirty?(this.showConfirmSwitchCloseModal(j,o.ck.CompanyRequest),ne()):F()})}switchToPersonalBilling(){(0,c.H)(200).pipe((0,v.t)(this)).subscribe(_e=>{this.switchTooltipVisible=!1});const Ce=new o.ft;Ce.address=new o.kL;const j=this.modalService.switchToPersonalBillingModal(Ce,this.personalHeaderTemplate,(_e,F,ne,U)=>this.updateBilling(F,_e.personalBillingFormComponent.billingForm,()=>{this.loadClientProfileAndBilling(),this.sameAsProfileFunction=null,j.close(),ne()},ct=>{j.getConfig().nzOkLoading=!1,U()}),(_e,F,ne)=>{_e.personalBillingFormComponent.billingForm.dirty?(this.showConfirmSwitchCloseModal(j,o.ck.PersonRequest),ne()):F()},this.hasProfile)}showConfirmSwitchCloseModal(Ce,j){this.modalService.confirmModal(`\n ${this.translate.instant("CLIENT.PROFILE.DATA.WARNINGS.SWITCH_BILLING_TYPE_INCOMPLETE.TITLE",{type:this.translate.instant(j===o.ck.CompanyRequest||j===o.ck.CompanyResponse?`${this.userTypeKey}.PROFILE.DATA.TYPE.COMPANY`:`${this.userTypeKey}.PROFILE.DATA.TYPE.PERSONAL`),submitText:this.translate.instant(j===o.ck.CompanyRequest||j===o.ck.CompanyResponse?`${this.userTypeKey}.PROFILE.BILLING.KIND.SWITCH.TO_COMPANY`:`${this.userTypeKey}.PROFILE.BILLING.KIND.SWITCH.TO_PERSONAL`)})}\n `,`${this.translate.instant("CLIENT.PROFILE.DATA.WARNINGS.SWITCH_BILLING_TYPE_INCOMPLETE.CONTENT",{type:this.translate.instant(j===o.ck.CompanyRequest||j===o.ck.CompanyResponse?`${this.userTypeKey}.PROFILE.DATA.TYPE.COMPANY`:`${this.userTypeKey}.PROFILE.DATA.TYPE.PERSONAL`)})}`).afterClose.asObservable().subscribe(F=>{F&&Ce.close()})}};mt.\u0275fac=function(Ce){return new(Ce||mt)(e.Y36(a.y),e.Y36(f.P),e.Y36(O.o),e.Y36(N.g),e.Y36(L.K),e.Y36(i.Z),e.Y36(M.sK),e.Y36(R.m),e.Y36(l.K))},mt.\u0275cmp=e.Xpm({type:mt,selectors:[["app-billing"]],viewQuery:function(Ce,j){if(1&Ce&&(e.Gf(u.m,5),e.Gf(m.M,5),e.Gf(se,5),e.Gf(xe,5)),2&Ce){let _e;e.iGM(_e=e.CRH())&&(j.companyBillingFormComponent=_e.first),e.iGM(_e=e.CRH())&&(j.personalBillingFormComponent=_e.first),e.iGM(_e=e.CRH())&&(j.companyHeaderTemplate=_e.first),e.iGM(_e=e.CRH())&&(j.personalHeaderTemplate=_e.first)}},hostBindings:function(Ce,j){1&Ce&&e.NdJ("beforeunload",function(F){return j.unloadNotification(F)},!1,e.Jf7)},inputs:{isOnePage:"isOnePage",fromProfile:"fromProfile"},outputs:{submitBillingPromise:"submitBillingPromise",unstickTriggerEmitter:"unstickTriggerEmitter",runSaveFunctionEmitter:"runSaveFunctionEmitter"},decls:17,vars:11,consts:[[4,"ngIf"],[1,"col-12","col-md-7","p-0"],[1,"position-relative"],["style","border-style: none","class","w-100",4,"ngIf"],["id","profileFormStart"],["class","m-t-8 font-size-16",4,"ngIf"],["personalHeader",""],["class","text-right m-b-10",4,"ngIf"],["companyHeader",""],["class","row",4,"ngIf"],["style","border-style: none","class","mainBillingCard",3,"ngClass",4,"ngIf"],["nzType","info","nzShowIcon","",1,"m-b-10",3,"nzMessage","nzDescription"],[1,"w-100",2,"border-style","none"],["class","row ant-form-item",4,"ngFor","ngForOf"],[1,"row","justify-content-end","mt-5","mb-4"],["nzType","input","nzSize","small",1,"w-100","buttonSkeleton",2,"max-width","150px",3,"nzActive"],["skeletonText",""],["nzOrientation","left",1,"skeletonDivider",3,"nzText"],["nzType","input","nzSize","small",1,"w-100","skeleton-h-20px","m-b-15",3,"nzActive"],[1,"row","ant-form-item"],[1,"col-md-3","col-sm-4","col-12","text-left","text-sm-right","skeleton-height","d-flex"],["nzType","input","nzSize","small",1,"skeleton-width","m-l-auto","mt-auto","mb-auto",3,"nzActive"],[1,"col-md-7","col-sm-6","col-12"],["nzType","input","nzSize","large",1,"w-100",3,"nzActive"],["nzType","input","nzSize","small",1,"w-100",3,"nzActive"],[1,"text-danger"],[1,"m-t-8","font-size-16"],[1,"font-size-16"],[1,"font-weight-normal","mb-0","col-12","col-md-7","p-0","small"],[1,"font-weight-normal","col-12","col-md-7","p-0","small"],[1,"text-right","m-b-10"],["nz-button","","nzType","primary","nzGhost","","nzSize","small","nz-tooltip","","nzTooltipPlacement","bottom",3,"nzTooltipVisible","nzTooltipTitle","click","nzTooltipVisibleChange"],[1,"m-l-5"],[1,"row"],[1,"col-md-6","col-12",2,"border-style","none",3,"nzBodyStyle"],[1,"m-t-20","text-center"],["nzIcon","user","nzSrc","assets/images/business-icon.svg",1,"shadow",3,"nzSize"],[1,"m-t-30"],[1,"m-b-30"],[1,"text-center","mt-auto"],["nz-button","","nzType","primary","nzGhost","",1,"button-text-wrap",3,"click"],["nzIcon","user","nzSrc","assets/images/personal-icon.svg",1,"shadow",3,"nzSize"],[1,"mainBillingCard",2,"border-style","none",3,"ngClass"],["nzOrientation","left",3,"nzText",4,"ngIf"],[3,"actBilling","billingForm","isOnePage","showSameAsProfile","hasBilling","sameAsProfileFunction","sameAsProfileText","saveDynamically","isNewBilling","hasProfile","saveInProgress","save","setSameAsProfile","unstickTrigger",4,"ngIf"],[3,"actBilling","billingForm","isOnePage","showSameAsProfile","hasBilling","sameAsProfileFunction","sameAsProfileText","saveDynamically","isNewBilling","hasProfile","isTaxNumberInvalid","saveInProgress","save","setSameAsProfile","unstickTrigger",4,"ngIf"],["class","text-right m-t-30",4,"ngIf"],["nzOrientation","left",3,"nzText"],[3,"actBilling","billingForm","isOnePage","showSameAsProfile","hasBilling","sameAsProfileFunction","sameAsProfileText","saveDynamically","isNewBilling","hasProfile","saveInProgress","save","setSameAsProfile","unstickTrigger"],[3,"actBilling","billingForm","isOnePage","showSameAsProfile","hasBilling","sameAsProfileFunction","sameAsProfileText","saveDynamically","isNewBilling","hasProfile","isTaxNumberInvalid","saveInProgress","save","setSameAsProfile","unstickTrigger"],[1,"text-right","m-t-30"],["nzType","primary","nzGhost","",1,"text-right","m-t-30",3,"runFunction","unstickTrigger","showMessage","click"]],template:function(Ce,j){1&Ce&&(e.YNc(0,Ee,4,7,"div",0),e.TgZ(1,"p",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",2),e.YNc(5,fe,11,11,"nz-card",3),e.YNc(6,de,4,3,"div",0),e.TgZ(7,"div",4),e.YNc(8,it,3,3,"h4",5),e.YNc(9,Ve,9,9,"ng-template",null,6,e.W1O),e.YNc(11,W,6,8,"div",7),e.YNc(12,ee,9,9,"ng-template",null,8,e.W1O),e.YNc(14,te,6,8,"div",7),e.YNc(15,Ue,29,25,"div",9),e.qZA(),e.YNc(16,ht,6,8,"nz-card",10),e.qZA()),2&Ce&&(e.Q6J("ngIf",j.showCopyAlert),e.xp6(2),e.hij(" ",e.lcZ(3,9,"CLIENT.PROFILE.BILLING.DESC"),"\n"),e.xp6(3),e.Q6J("ngIf",!j.actBilling&&j.isLoadingBilling),e.xp6(1),e.Q6J("ngIf",!j.actBilling&&!j.isLoadingBilling&&j.loadingBillingFailed),e.xp6(2),e.Q6J("ngIf",!j.billingType&&!j.loadingBillingFailed),e.xp6(3),e.Q6J("ngIf",(j.billingType===j.BillingType.CompanyRequest||j.billingType===j.BillingType.CompanyResponse)&&!j.isOnePage),e.xp6(3),e.Q6J("ngIf",(j.billingType===j.BillingType.PersonRequest||j.billingType===j.BillingType.PersonResponse)&&!j.isOnePage),e.xp6(1),e.Q6J("ngIf",!j.billingType&&!j.isLoadingBilling&&!j.loadingBillingFailed),e.xp6(1),e.Q6J("ngIf",j.actBilling))}
1783,dependencies:[h.mk,h.sg,h.O5,t.P4,D.r,B.Dz,K.ix,b.w,w.dQ,X.bd,Y.g,Z.Xw,Z.yg,G.SY,u.m,m.M,M.X$,Q.j,V.A],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}.onePageCard[_ngcontent-%COMP%] .ant-card-body{padding:0}.labelSkeleton[_ngcontent-%COMP%]{min-width:110px;max-width:170px}[_nghost-%COMP%] .labelSkeleton[_ngcontent-%COMP%] .ant-skeleton-input{min-width:110px;max-width:170px}.buttonSkeleton[_ngcontent-%COMP%]{height:40px}[_nghost-%COMP%] .buttonSkeleton[_ngcontent-%COMP%] .ant-skeleton-input{height:40px}.mainBillingCard[_ngcontent-%COMP%] .ant-card-body:first-child{padding-left:0;padding-right:0}'],data:{animation:[r.Ln,(0,C.X$)("inOutAlert",[(0,C.eR)(":enter",[(0,C.oB)({opacity:0,height:"0px"}),(0,C.jt)("0.3s ease-out",(0,C.oB)({opacity:1,height:"*"}))]),(0,C.eR)(":leave",[(0,C.oB)({opacity:1,height:"*"}),(0,C.jt)("0.3s ease-in",(0,C.oB)({opacity:0,height:"0px"}))])])]}}),mt=(0,s.gn)([(0,v.c)()],mt)},91009:(Se,k,n)=>{n.d(k,{m:()=>Y});var s=n(97582),e=n(94650),o=n(24006),t=n(22971),v=n(44224),r=n(43709),c=n(87689),C=n(55089); 1784/* 1785 * @license 1786 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1787 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1788 *
1789 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1790 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1791 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1792 * trade secret or copyright law. 1793 * 1794 * Dissemination of this information or reproduction of this material is strictly forbidden 1795 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1796 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1797 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1798 * explicitly covering such access. 1799 * 1800 * The copyright notice above does not evidence any actual or intended publication or disclosure 1801 * of this source code, which includes information that is confidential and/or proprietary, 1802 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1803 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1804 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1805 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1806 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1807 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1808 * IN WHOLE OR IN PART. 1809 */const u=["billingFormElement"];function m(Z,G){1&Z&&(e.TgZ(0,"span",3),e._UZ(1,"br"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&Z&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"CLIENT.CONTRACTS.FIELD.OPTIONAL")," "))}const a=function(){return{}};function f(Z,G){if(1&Z&&e.YNc(0,m,4,3,"span",2),2&Z){const Q=G.controlName,V=e.oxw();e.Q6J("ngIf",!(V.billingForm&&V.billingForm.controls[Q].validator&&V.billingForm.controls[Q].validator(e.DdM(1,a))&&V.billingForm.controls[Q].validator(e.DdM(2,a)).required))}}function O(Z,G){1&Z&&e.GkF(0,21)}function N(Z,G){1&Z&&e.GkF(0,21)}function L(Z,G){1&Z&&e.GkF(0,21)}function i(Z,G){1&Z&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.ISSUER_VALIDATION.PHONE.REQUIRED")," "))}function M(Z,G){1&Z&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.ISSUER_VALIDATION.PHONE.INVALID")," "))}function R(Z,G){if(1&Z&&(e.YNc(0,i,3,3,"ng-container",20),e.YNc(1,M,3,3,"ng-container",20)),2&Z){const Q=G.$implicit;e.Q6J("ngIf",Q.hasError("required")),e.xp6(1),e.Q6J("ngIf",Q.hasError("wrongNumber")&&!Q.hasError("required"))}}const l=function(Z,G){return{"m-t-30":Z,"m-t-15":G}};function h(Z,G){if(1&Z){const Q=e.EpF();e.TgZ(0,"div",22)(1,"app-multi-state-button",23),e.NdJ("nzOnConfirm",function(){e.CHM(Q);const se=e.oxw(2);return e.KtG(se.emitSameAsProfile())}),e.ALo(2,"translate"),e.qZA()()}if(2&Z){const Q=e.oxw(2);e.Q6J("ngClass",e.WLB(8,l,!Q.isOnePage,Q.isOnePage)),e.xp6(1),e.s9C("nzPopconfirmTitle",e.lcZ(2,6,"COMMON.FORM.COPY_PROFILE")),e.Q6J("runFunction",Q.sameAsProfileFunction)("nzTextKeys",Q.sameAsProfileText)("nzCondition",Q.showSameAsProfile&&!Q.hasBilling)("stickResult",!1)}}function D(Z,G){if(1&Z){const Q=e.EpF();e.TgZ(0,"div")(1,"h3",24),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"p",25),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"app-client-person-editor",26),e.NdJ("saveEmitter",function(){e.CHM(Q);const se=e.oxw(2);return e.KtG(se.saveIfDynamic())}),e.ALo(8,"as"),e.qZA()()}if(2&Z){const Q=e.oxw(2);e.xp6(2),e.hij(" ",e.lcZ(3,5,"COMMON.FORM.COMPANY."+Q.userTypeKey+".REPRESENTATIVE")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"COMMON.FORM.COMPANY."+Q.userTypeKey+".DESCRIPTION.REPRESENTATIVE")," "),e.xp6(2),e.Q6J("form",e.xi3(8,9,Q.billingForm.controls.representative,Q.FormGroup))("addressRequired",!0)("isFromBilling",!0)}}const B=function(Z,G){return{"col-md-6 col-sm-12 m-b-10":Z,"col-12":G}},K=function(){return{controlName:"name"}},b=function(){return{controlName:"taxID"}},w=function(){return{controlName:"phone"}};function X(Z,G){if(1&Z){const Q=e.EpF();e.TgZ(0,"form",4,5),e.NdJ("keydown.enter",function(se){e.CHM(Q);const xe=e.oxw();return e.KtG(xe.formService.triggerAutoSubmitWithEnter(se))}),e.TgZ(2,"div",6)(3,"nz-form-item",7)(4,"nz-form-label",8)(5,"span"),e._uU(6),e.ALo(7,"translate"),e.YNc(8,O,1,0,"ng-container",9),e.qZA()(),e.TgZ(9,"nz-form-control",10),e.ALo(10,"translate"),e.ALo(11,"translate"),e.TgZ(12,"input",11),e.NdJ("blur",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.saveIfDynamic())}),e.ALo(13,"as"),e.ALo(14,"translate"),e.qZA()()(),e.TgZ(15,"nz-form-item",7)(16,"nz-form-label",8)(17,"span"),e._uU(18),e.ALo(19,"translate"),e.YNc(20,N,1,0,"ng-container",9),e.qZA()(),e.TgZ(21,"nz-form-control",10),e.ALo(22,"translate"),e.TgZ(23,"input",11),e.NdJ("blur",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.saveIfDynamic())}),e.ALo(24,"as"),e.ALo(25,"translate"),e.qZA()()(),e.TgZ(26,"nz-form-item",7)(27,"nz-form-label",12)(28,"span"),e._uU(29),e.ALo(30,"translate"),e.YNc(31,L,1,0,"ng-container",9),e.qZA()(),e.TgZ(32,"nz-form-control",10)(33,"input",11),e.NdJ("blur",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.saveIfDynamic())}),e.ALo(34,"as"),e.ALo(35,"translate"),e.qZA(),e.YNc(36,R,2,2,"ng-template",null,13,e.W1O),e.TgZ(38,"span",3)(39,"span",14),e._uU(40),e.ALo(4
18091,"translate"),e.TgZ(42,"code"),e._uU(43),e.ALo(44,"translate"),e.qZA()()()()()(),e.YNc(45,h,3,11,"div",15),e.TgZ(46,"div",6)(47,"div",16)(48,"nz-form-item")(49,"app-address-editor",17),e.NdJ("saveEmitter",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.addressChanged())})("unstickTrigger",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.addressChanged())}),e.ALo(50,"translate"),e.ALo(51,"translate"),e.qZA()()()(),e.TgZ(52,"div",6)(53,"div",16)(54,"nz-form-item",18)(55,"app-tax-number-editor",19),e.NdJ("switchTaxNumberTypeEmitter",function(se){e.CHM(Q);const xe=e.oxw();return e.KtG(xe.switchTaxNumberType(se))})("saveEmitter",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.saveIfDynamic())})("unstickTrigger",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.updateUnstickTrigger())}),e.ALo(56,"as"),e.ALo(57,"translate"),e.qZA()()()(),e.YNc(58,D,9,12,"div",20),e.qZA()}if(2&Z){const Q=e.MAs(37),V=e.oxw(),se=e.MAs(1);e.Q6J("formGroup",V.billingForm),e.xp6(3),e.Q6J("ngClass",e.WLB(117,B,V.isOnePage,!V.isOnePage)),e.xp6(1),e.Q6J("nzXXl",V.isOnePage?8:6)("nzXl",V.isOnePage?24:6)("nzLg",V.isOnePage?24:6)("nzMd",V.isOnePage?24:6)("nzSm",V.isOnePage?24:6)("nzXs",24)("nzRequired",V.billingForm&&V.billingForm.controls.name.validator&&V.billingForm.controls.name.validator(e.DdM(120,a))&&V.billingForm.controls.name.validator(e.DdM(121,a)).required),e.xp6(2),e.hij(" ",e.lcZ(7,77,"COMMON.FORM.NAME")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",se)("ngTemplateOutletContext",e.DdM(122,K)),e.xp6(1),e.Q6J("nzXXl",V.isOnePage?16:14)("nzXl",V.isOnePage?24:14)("nzLg",V.isOnePage?24:14)("nzMd",V.isOnePage?24:14)("nzSm",V.isOnePage?24:14)("nzXs",24)("nzValidateStatus",V.billingForm.controls.name)("nzErrorTip",V.billingForm.controls.name.errors?V.billingForm.controls.name.errors.required?e.lcZ(10,79,"CLIENT.PROFILE.BILLING.VALIDATION.NAME.REQUIRED"):V.billingForm.controls.name.errors.incorrect?e.lcZ(11,81,"CLIENT.PROFILE.BILLING.VALIDATION.NAME.INCORRECT"):null:null),e.xp6(3),e.Q6J("formControl",e.xi3(13,83,V.billingForm.controls.name,V.FormControl))("placeholder",e.lcZ(14,86,"COMMON.FORM.PLACEHOLDER.NAME")),e.xp6(3),e.Q6J("ngClass",e.WLB(123,B,V.isOnePage,!V.isOnePage)),e.xp6(1),e.Q6J("nzXXl",V.isOnePage?8:6)("nzXl",V.isOnePage?24:6)("nzLg",V.isOnePage?24:6)("nzMd",V.isOnePage?24:6)("nzSm",V.isOnePage?24:6)("nzXs",24)("nzRequired",V.billingForm&&V.billingForm.controls.taxID.validator&&V.billingForm.controls.taxID.validator(e.DdM(126,a))&&V.billingForm.controls.taxID.validator(e.DdM(127,a)).required),e.xp6(2),e.hij(" ",e.lcZ(19,88,"COMMON.FORM.TAX_ID")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",se)("ngTemplateOutletContext",e.DdM(128,b)),e.xp6(1),e.Q6J("nzXXl",V.isOnePage?16:14)("nzXl",V.isOnePage?24:14)("nzLg",V.isOnePage?24:14)("nzMd",V.isOnePage?24:14)("nzSm",V.isOnePage?24:14)("nzXs",24)("nzValidateStatus",V.billingForm.controls.taxID)("nzErrorTip",V.billingForm.controls.taxID&&V.billingForm.controls.taxID.errors&&V.billingForm.controls.taxID.errors.required?e.lcZ(22,90,"CLIENT.PROFILE.BILLING.VALIDATION.TAX_ID.REQUIRED"):null),e.xp6(2),e.Q6J("formControl",e.xi3(24,92,V.billingForm.controls.taxID,V.FormControl))("placeholder",e.lcZ(25,95,"COMMON.FORM.PLACEHOLDER.TAX_ID")),e.xp6(3),e.Q6J("ngClass",e.WLB(129,B,V.isOnePage,!V.isOnePage)),e.xp6(1),e.Q6J("nzXXl",V.isOnePage?8:6)("nzXl",V.isOnePage?24:6)("nzLg",V.isOnePage?24:6)("nzMd",V.isOnePage?24:6)("nzSm",V.isOnePage?24:6)("nzXs",24),e.xp6(2),e.hij(" ",e.lcZ(30,97,"COMMON.FORM.PHONE.PHONE")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",se)("ngTemplateOutletContext",e.DdM(132,w)),e.xp6(1),e.Q6J("nzXXl",V.isOnePage?16:14)("nzXl",V.isOnePage?24:14)("nzLg",V.isOnePage?24:14)("nzMd",V.isOnePage?24:14)("nzSm",V.isOnePage?24:14)("nzXs",24)("nzValidateStatus",V.billingForm.controls.phone)("nzErrorTip",Q),e.xp6(1),e.Q6J("formControl",e.xi3(34,99,V.billingForm.controls.phone,V.FormControl))("placeholder",e.lcZ(35,102,"COMMON.FORM.PLACEHOLDER.PHONE")),e.xp6(7),e.hij(" ",e.lcZ(41,104,"COMMON.FORM_HELPER_TEXTS.PHONE.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(44,106,"COMMON.FORM_HELPER_TEXTS.PHONE.EXAMPLE")," "),e.xp6(2),e.Q6J("ngIf",V.showSameAsProfile),e.xp6(4),e.Q6J("form",V.billingForm.controls.address.value)("address",V.actBilling.address)("description",e.lcZ(50,108,"COMMON.FORM.ADDRESS.DESCRIPTION_BILLING"))("title",e.lcZ(51,110,"COMMON.FORM.ADDRESS.TITLE_BILLING"))("isOnePage",V.isOnePage),e.xp6(6),e.Q6J("form",e.xi3(56,112,V.billingForm.controls.taxNumber,V.FormGroup))("taxNumber",V.actBilling.taxNumber)("isCountryEU",V.isCountryEU)("title",e.lcZ(57,115,"COMMON.FORM.TAX_NUMBER_FORM.TITLE"))("isTaxNumberInvalid",V.isTaxNumberInvalid),e.xp6(3),e.Q6J("ngIf",!V.hasProfile)}}let Y=class{constructor(G,Q){this.formService=G,this.userService=Q,this.isNewBilling=!0,this.saveDynamically=!1,this.hasProfile=!0,this.saveInProgress=!1,this.save=new e.vpe,this.unstickTrigger=new e.vpe,this.setSameAsProfile=new e.vpe,this.isCountryEU=!0,this.isCountryHungary=!0,this.FormControl=o.p4,this.FormGroup=o.nJ}ngOnInit(){if(this.userTypeKey=this.userService.sessionTypeTranslationKey,this.actBilling){const G=this.billingForm.get("address")&&this.billingForm.get("address").value&&this.billingForm.get("address").value.get("addressCountry")&&this.billingForm.get("address").value.get("addressCountry").value?this.billingForm.get("address").value.get("addressCountry").value:null;this.isCountryEU=!G||(0,r.isEuMember)(G),this.isCountryHungary=null===G||"HU"===G}this.actBilling||(this.actBilling=new t.ft,this.actBilling.address=new t.kL,this.actBilling.taxNumber=new t.DW),this.billingForm||(this.billingForm=this.formService.billingCompanyFormGroup(this.actBilling,this.hasProfile))}unloadNotification(G){this.billingForm&&this.billingForm.dirty&&(G.returnValue=!0)}saveIfDynamic(){this.saveDynamically&&this.billingForm.valid?this.save.emit(this.formService.groupToBillingCompany(this.billingForm)):this.updateUnstickTrigger()}updateUnstickTrigger(){this.unstickTrigger.emit()}emitSameAsProfile(){this.setSameAsProfile.emit()}
1809switchTaxNumberType(G){switch(G){case t.z4.Hungarian:this.actBilling.taxNumber=new t.DW;break;case t.z4.Community:this.actBilling.taxNumber=new t.kc;break;case t.z4.Other:this.actBilling.taxNumber=new t.gs}this.billingForm.setControl("taxNumber",this.formService.taxNumberFormGroup(this.actBilling.taxNumber)),this.billingForm.markAsDirty(),this.saveIfDynamic()}addressChanged(){const G=this.billingForm.get("address")&&this.billingForm.get("address").value&&this.billingForm.get("address").value.get("addressCountry")&&this.billingForm.get("address").value.get("addressCountry").value?this.billingForm.get("address").value.get("addressCountry").value:null,Q=!G||(0,r.isEuMember)(G),V=null===G||"HU"===G;!this.isCountryHungary&&V?this.switchTaxNumberType(t.z4.Hungarian):this.isCountryHungary&&!V&&Q?this.switchTaxNumberType(t.z4.Community):!this.isCountryHungary||V||Q?this.isCountryEU!==Q&&this.switchTaxNumberType(Q?t.z4.Community:t.z4.Other):this.switchTaxNumberType(t.z4.Other),this.isCountryEU=Q,this.isCountryHungary=V,this.saveIfDynamic()}};Y.\u0275fac=function(G){return new(G||Y)(e.Y36(c.o),e.Y36(C.K))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["app-company-billing-form"]],viewQuery:function(G,Q){if(1&G&&e.Gf(u,5),2&G){let V;e.iGM(V=e.CRH())&&(Q.billingFormElement=V.first)}},hostBindings:function(G,Q){1&G&&e.NdJ("beforeunload",function(se){return Q.unloadNotification(se)},!1,e.Jf7)},inputs:{actBilling:"actBilling",isNewBilling:"isNewBilling",billingForm:"billingForm",saveDynamically:"saveDynamically",isOnePage:"isOnePage",showSameAsProfile:"showSameAsProfile",hasBilling:"hasBilling",sameAsProfileFunction:"sameAsProfileFunction",sameAsProfileText:"sameAsProfileText",hasProfile:"hasProfile",isTaxNumberInvalid:"isTaxNumberInvalid",saveInProgress:"saveInProgress"},outputs:{save:"save",unstickTrigger:"unstickTrigger",setSameAsProfile:"setSameAsProfile"},decls:3,vars:1,consts:[["optionalLabel",""],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter",4,"ngIf"],["class","optionalLabel",4,"ngIf"],[1,"optionalLabel"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],["billingFormElement",""],[1,"row"],[3,"ngClass"],[1,"multiLineLabel","p-0",3,"nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs","nzRequired"],["class","template",4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs","nzValidateStatus","nzErrorTip"],["nz-input","","trim","blur",3,"formControl","placeholder","blur"],[1,"multiLineLabel","p-0",3,"nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs"],["phoneErrorTip",""],["nz-typography",""],["class","text-right",3,"ngClass",4,"ngIf"],[1,"col-md-12"],[1,"col-md-12","p-h-0",3,"form","address","description","title","isOnePage","saveEmitter","unstickTrigger"],[1,"w-100","m-b-0"],[1,"col-md-12","p-h-0",3,"form","taxNumber","isCountryEU","title","isTaxNumberInvalid","switchTaxNumberTypeEmitter","saveEmitter","unstickTrigger"],[4,"ngIf"],[1,"template"],[1,"text-right",3,"ngClass"],["nzType","primary","nzGhost","","nz-popconfirm","","nzPopconfirmPlacement","bottom",1,"text-right","m-l-5",3,"runFunction","nzTextKeys","nzPopconfirmTitle","nzCondition","stickResult","nzOnConfirm"],[1,"font-size-16"],[1,"col-12","col-md-7","p-0"],[3,"form","addressRequired","isFromBilling","saveEmitter"]],template:function(G,Q){1&G&&(e.YNc(0,f,1,3,"ng-template",null,0,e.W1O),e.YNc(2,X,59,133,"form",1)),2&G&&(e.xp6(2),e.Q6J("ngIf",Q.billingForm))},styles:['@charset "UTF-8";']}),Y=(0,s.gn)([(0,v.c)({checkProperties:!0})],Y)},98405:(Se,k,n)=>{n.d(k,{M:()=>te});var s=n(97582),e=n(94650),o=n(24006),t=n(22971),v=n(83154),r=n(18505),c=n(44224),C=n(25156),u=n(32925),m=n(50211),a=n(75489),f=n(87689),O=n(98895),N=n(55089),L=n(59166),i=n(36895),M=n(92961),R=n(834),l=n(73679),h=n(36704),D=n(35635),B=n(6497),K=n(41766),b=n(45144); 1810/* 1811 * @license 1812 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1813 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1814 *
1815 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1816 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1817 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1818 * trade secret or copyright law. 1819 * 1820 * Dissemination of this information or reproduction of this material is strictly forbidden 1821 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1822 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1823 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1824 * explicitly covering such access. 1825 * 1826 * The copyright notice above does not evidence any actual or intended publication or disclosure 1827 * of this source code, which includes information that is confidential and/or proprietary, 1828 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1829 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1830 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1831 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1832 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1833 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1834 * IN WHOLE OR IN PART. 1835 */const w=["billingFormElement"],X=["birthPicker"];function Y(Pe,Ue){1&Pe&&(e.TgZ(0,"span",3),e._UZ(1,"br"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&Pe&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"CLIENT.CONTRACTS.FIELD.OPTIONAL")," "))}const Z=function(){return{}};function G(Pe,Ue){if(1&Pe&&e.YNc(0,Y,4,3,"span",2),2&Pe){const Ae=Ue.controlName,Fe=e.oxw();e.Q6J("ngIf",!(Fe.billingForm&&Fe.billingForm.controls[Ae]&&Fe.billingForm.controls[Ae].validator&&Fe.billingForm.controls[Ae].validator(e.DdM(1,Z))&&Fe.billingForm.controls[Ae].validator(e.DdM(2,Z)).required))}}function Q(Pe,Ue){1&Pe&&e.GkF(0,16)}function V(Pe,Ue){1&Pe&&e.GkF(0,16)}function se(Pe,Ue){1&Pe&&e.GkF(0,16)}function xe(Pe,Ue){1&Pe&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.CLIENT_PERSON_VALIDATION.BIRTH.REQUIRED")," "))}function Ee(Pe,Ue){1&Pe&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.CLIENT_PERSON_VALIDATION.BIRTH.MAX_DATE")," "))}function re(Pe,Ue){if(1&Pe&&(e.YNc(0,xe,3,3,"ng-container",21),e.YNc(1,Ee,3,3,"ng-container",21)),2&Pe){const Ae=Ue.$implicit;e.Q6J("ngIf",Ae.hasError("required")),e.xp6(1),e.Q6J("ngIf",Ae.hasError("maxDate"))}}const le=function(Pe,Ue){return{"col-md-6 col-sm-12 m-b-10":Pe,"col-12":Ue}},q=function(){return{controlName:"birth"}};function fe(Pe,Ue){if(1&Pe){const Ae=e.EpF();e.TgZ(0,"nz-form-item",7)(1,"nz-form-label",17)(2,"span"),e._uU(3),e.ALo(4,"translate"),e.YNc(5,se,1,0,"ng-container",9),e.qZA()(),e.TgZ(6,"nz-form-control",10)(7,"nz-date-picker",18,19),e.NdJ("ngModelChange",function(Qe){e.CHM(Ae);const rt=e.oxw(2);return e.KtG(rt.saveBirth(Qe))})("keydown.enter",function(){e.CHM(Ae);const Qe=e.oxw(2);return e.KtG(Qe.saveIfDynamic())})("nzOnOpenChange",function(Qe){e.CHM(Ae);const rt=e.oxw(2);return e.KtG(rt.onBirthOpenChange(Qe))})("nzOnPanelChange",function(Qe){e.CHM(Ae);const rt=e.oxw(2);return e.KtG(rt.onBirthPanelChange(Qe))}),e.ALo(9,"as"),e.ALo(10,"translate"),e.qZA(),e.YNc(11,re,2,2,"ng-template",null,20,e.W1O),e.qZA()()}if(2&Pe){const Ae=e.MAs(12),Fe=e.oxw(2),Qe=e.MAs(1);e.Q6J("ngClass",e.WLB(29,le,Fe.isOnePage,!Fe.isOnePage)),e.xp6(1),e.Q6J("nzXXl",Fe.isOnePage?8:6)("nzXl",Fe.isOnePage?24:6)("nzLg",Fe.isOnePage?24:6)("nzMd",Fe.isOnePage?24:6)("nzSm",Fe.isOnePage?24:6)("nzXs",24)("nzRequired",Fe.billingForm&&Fe.billingForm.controls.birth&&Fe.billingForm.controls.birth.validator&&Fe.billingForm.controls.birth.validator(e.DdM(32,Z))&&Fe.billingForm.controls.birth.validator(e.DdM(33,Z)).required),e.xp6(2),e.hij(" ",e.lcZ(4,22,"COMMON.FORM.BIRTH")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",Qe)("ngTemplateOutletContext",e.DdM(34,q)),e.xp6(1),e.Q6J("nzXXl",Fe.isOnePage?16:14)("nzXl",Fe.isOnePage?24:14)("nzLg",Fe.isOnePage?24:14)("nzMd",Fe.isOnePage?24:14)("nzSm",Fe.isOnePage?24:14)("nzXs",24)("nzValidateStatus",Fe.b
1835illingForm.controls.birth)("nzErrorTip",Ae),e.xp6(1),e.Q6J("formControl",e.xi3(9,24,Fe.billingForm.controls.birth,Fe.FormControl))("nzPlaceHolder",e.lcZ(10,27,"COMMON.FORM.BIRTH"))("nzDefaultPickerValue",Fe.defaultBirthDate)}}const de=function(Pe,Ue){return{"m-t-30":Pe,"m-t-15":Ue}};function it(Pe,Ue){if(1&Pe){const Ae=e.EpF();e.TgZ(0,"div",22)(1,"app-multi-state-button",23),e.NdJ("nzOnConfirm",function(){e.CHM(Ae);const Qe=e.oxw(2);return e.KtG(Qe.emitSameAsProfile())}),e.ALo(2,"translate"),e.qZA()()}if(2&Pe){const Ae=e.oxw(2);e.Q6J("ngClass",e.WLB(8,de,!Ae.isOnePage,Ae.isOnePage)),e.xp6(1),e.s9C("nzPopconfirmTitle",e.lcZ(2,6,"COMMON.FORM.COPY_PROFILE")),e.Q6J("runFunction",Ae.sameAsProfileFunction)("nzTextKeys",Ae.sameAsProfileText)("nzCondition",Ae.showSameAsProfile&&!Ae.hasBilling)("stickResult",!1)}}const Ve=function(){return{controlName:"firstName"}},W=function(){return{controlName:"lastName"}};function ee(Pe,Ue){if(1&Pe){const Ae=e.EpF();e.TgZ(0,"form",4,5),e.NdJ("keydown.enter",function(Qe){e.CHM(Ae);const rt=e.oxw();return e.KtG(rt.formService.triggerAutoSubmitWithEnter(Qe))}),e.TgZ(2,"div",6)(3,"nz-form-item",7)(4,"nz-form-label",8)(5,"span"),e._uU(6),e.ALo(7,"translate"),e.YNc(8,Q,1,0,"ng-container",9),e.qZA()(),e.TgZ(9,"nz-form-control",10),e.ALo(10,"translate"),e.ALo(11,"translate"),e.TgZ(12,"input",11),e.NdJ("blur",function(){e.CHM(Ae);const Qe=e.oxw();return e.KtG(Qe.saveIfDynamic())}),e.ALo(13,"as"),e.ALo(14,"translate"),e.qZA()()(),e.TgZ(15,"nz-form-item",7)(16,"nz-form-label",8)(17,"span"),e._uU(18),e.ALo(19,"translate"),e.YNc(20,V,1,0,"ng-container",9),e.qZA()(),e.TgZ(21,"nz-form-control",10),e.ALo(22,"translate"),e.ALo(23,"translate"),e.TgZ(24,"input",11),e.NdJ("blur",function(){e.CHM(Ae);const Qe=e.oxw();return e.KtG(Qe.saveIfDynamic())}),e.ALo(25,"as"),e.ALo(26,"translate"),e.qZA()()(),e.YNc(27,fe,13,35,"nz-form-item",12),e.qZA(),e.YNc(28,it,3,11,"div",13),e.TgZ(29,"div",6)(30,"div",14)(31,"nz-form-item")(32,"app-address-editor",15),e.NdJ("saveEmitter",function(){e.CHM(Ae);const Qe=e.oxw();return e.KtG(Qe.saveIfDynamic())})("unstickTrigger",function(){e.CHM(Ae);const Qe=e.oxw();return e.KtG(Qe.updateUnstickTrigger())}),e.ALo(33,"translate"),e.ALo(34,"translate"),e.qZA()()()()()}if(2&Pe){const Ae=e.oxw(),Fe=e.MAs(1);e.Q6J("formGroup",Ae.billingForm),e.xp6(3),e.Q6J("ngClass",e.WLB(74,le,Ae.isOnePage,!Ae.isOnePage)),e.xp6(1),e.Q6J("nzXXl",Ae.isOnePage?8:6)("nzXl",Ae.isOnePage?24:6)("nzLg",Ae.isOnePage?24:6)("nzMd",Ae.isOnePage?24:6)("nzSm",Ae.isOnePage?24:6)("nzXs",24),e.xp6(2),e.hij(" ",e.lcZ(7,48,"COMMON.FORM.FIRST_NAME")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",Fe)("ngTemplateOutletContext",e.DdM(77,Ve)),e.xp6(1),e.Q6J("nzXXl",Ae.isOnePage?16:14)("nzXl",Ae.isOnePage?24:14)("nzLg",Ae.isOnePage?24:14)("nzMd",Ae.isOnePage?24:14)("nzSm",Ae.isOnePage?24:14)("nzXs",24)("nzValidateStatus",Ae.billingForm.controls.firstName)("nzErrorTip",Ae.billingForm.controls.firstName.errors?Ae.billingForm.controls.firstName.errors.required?e.lcZ(10,50,"CLIENT.PROFILE.BILLING.VALIDATION.FIRST_NAME.REQUIRED"):Ae.billingForm.controls.firstName.errors.incorrect?e.lcZ(11,52,"CLIENT.PROFILE.BILLING.VALIDATION.FIRST_NAME.INCORRECT"):null:null),e.xp6(3),e.Q6J("formControl",e.xi3(13,54,Ae.billingForm.controls.firstName,Ae.FormControl))("placeholder",e.lcZ(14,57,"COMMON.FORM.PLACEHOLDER.FIRST_NAME")),e.xp6(3),e.Q6J("ngClass",e.WLB(78,le,Ae.isOnePage,!Ae.isOnePage)),e.xp6(1),e.Q6J("nzXXl",Ae.isOnePage?8:6)("nzXl",Ae.isOnePage?24:6)("nzLg",Ae.isOnePage?24:6)("nzMd",Ae.isOnePage?24:6)("nzSm",Ae.isOnePage?24:6)("nzXs",24),e.xp6(2),e.hij(" ",e.lcZ(19,59,"COMMON.FORM.LAST_NAME")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",Fe)("ngTemplateOutletContext",e.DdM(81,W)),e.xp6(1),e.Q6J("nzXXl",Ae.isOnePage?16:14)("nzXl",Ae.isOnePage?24:14)("nzLg",Ae.isOnePage?24:14)("nzMd",Ae.isOnePage?24:14)("nzSm",Ae.isOnePage?24:14)("nzXs",24)("nzValidateStatus",Ae.billingForm.controls.lastName)("nzErrorTip",Ae.billingForm.controls.lastName.errors?Ae.billingForm.controls.lastName.errors.required?e.lcZ(22,61,"CLIENT.PROFILE.BILLING.VALIDATION.LAST_NAME.REQUIRED"):Ae.billingForm.controls.lastName.errors.incorrect?e.lcZ(23,63,"CLIENT.PROFILE.BILLING.VALIDATION.LAST_NAME.INCORRECT"):null:null),e.xp6(3),e.Q6J("formControl",e.xi3(25,
183565,Ae.billingForm.controls.lastName,Ae.FormControl))("placeholder",e.lcZ(26,68,"COMMON.FORM.PLACEHOLDER.LAST_NAME")),e.xp6(3),e.Q6J("ngIf",!Ae.hasProfile),e.xp6(1),e.Q6J("ngIf",Ae.showSameAsProfile),e.xp6(4),e.Q6J("form",Ae.billingForm.controls.address.value)("address",Ae.actBilling.address)("description",e.lcZ(33,70,"COMMON.FORM.ADDRESS.DESCRIPTION_BILLING"))("title",e.lcZ(34,72,"COMMON.FORM.ADDRESS.TITLE_BILLING"))("isOnePage",Ae.isOnePage)}}let te=class{constructor(Ue,Ae,Fe,Qe,rt,Ct,ht){this.nzModal=Ue,this.translate=Ae,this.clientService=Fe,this.eventService=Qe,this.formService=rt,this.stateService=Ct,this.userService=ht,this.isNewBilling=!0,this.saveDynamically=!1,this.hasProfile=!0,this.saveInProgress=!1,this.save=new e.vpe,this.unstickTrigger=new e.vpe,this.setSameAsProfile=new e.vpe,this.defaultBirthDate=new Date(1990,1,1),this.mode="year",this.preventInputOverWriteObject={preventInputOverWrite:!1},this.UserType=t.FW,this.ProfileType=t.pq,this.FormControl=o.p4}ngOnInit(){this.userTypeKey=this.userService.sessionTypeTranslationKey,this.actBilling||(this.actBilling=new t.ZL,this.actBilling.address=new t.kL),this.billingForm||(this.billingForm=this.formService.billingPersonFormGroup(this.actBilling,this.hasProfile)),this.billingForm.get("birth")&&(this.oldBirth=this.billingForm.get("birth").value)}unloadNotification(Ue){this.billingForm&&this.billingForm.dirty&&(Ue.returnValue=!0)}changeInProgressStateByFormStatus(Ue){(0,v.b)(Ue).pipe((0,r.b)(Ae=>{this.stateService.setChangeInProgress(!Ae&&this.saveInProgress,this.isNewBilling?`<p>${this.translate.instant("CLIENT.PROFILE.DATA.WARNINGS.PROFILE_INCOMPLETE")}</p>`:`<p>${this.translate.instant("CLIENT.PROFILE.DATA.WARNINGS.PROFILE_CHANGE_INCOMPLETE")}</p>`)})).subscribe()}saveIfDynamic(){this.saveDynamically&&this.billingForm.valid?this.save.emit(this.formService.groupToBillingPerson(this.billingForm)):this.updateUnstickTrigger()}updateUnstickTrigger(){this.unstickTrigger.emit()}emitSameAsProfile(){this.setSameAsProfile.emit()}saveBirth(Ue){this.oldBirth&&Ue&&this.oldBirth.valueOf()===Ue.valueOf()?this.billingForm.get("birth")&&this.billingForm.get("birth").markAsPristine():(this.oldBirth=Ue,this.saveIfDynamic())}onBirthOpenChange(Ue){Ue?setTimeout(()=>this.birthPicker.panel.onPanelModeChange("year"),0):this.formService.tryInputOverWrite(this.billingForm,"birth",this.birthPicker,this.preventInputOverWriteObject)}onBirthPanelChange(Ue){if("date"===Ue)switch(this.mode){case"year":this.mode="month",this.birthPicker.panel.onPanelModeChange(this.mode);break;case"month":this.mode="date",this.birthPicker.panel.onPanelModeChange(this.mode);break;default:this.mode="year",this.preventInputOverWriteObject.preventInputOverWrite=!0}}};te.\u0275fac=function(Ue){return new(Ue||te)(e.Y36(C.Sf),e.Y36(u.sK),e.Y36(m.y),e.Y36(a.P),e.Y36(f.o),e.Y36(O.b),e.Y36(N.K))},te.\u0275cmp=e.Xpm({type:te,selectors:[["app-personal-billing-form"]],viewQuery:function(Ue,Ae){if(1&Ue&&(e.Gf(w,5),e.Gf(X,5)),2&Ue){let Fe;e.iGM(Fe=e.CRH())&&(Ae.billingFormElement=Fe.first),e.iGM(Fe=e.CRH())&&(Ae.birthPicker=Fe.first)}},hostBindings:function(Ue,Ae){1&Ue&&e.NdJ("beforeunload",function(Qe){return Ae.unloadNotification(Qe)},!1,e.Jf7)},inputs:{actBilling:"actBilling",isNewBilling:"isNewBilling",billingForm:"billingForm",saveDynamically:"saveDynamically",isOnePage:"isOnePage",showSameAsProfile:"showSameAsProfile",hasBilling:"hasBilling",sameAsProfileFunction:"sameAsProfileFunction",sameAsProfileText:"sameAsProfileText",hasProfile:"hasProfile",saveInProgress:"saveInProgress"},outputs:{save:"save",unstickTrigger:"unstickTrigger",setSameAsProfile:"setSameAsProfile"},decls:3,vars:1,consts:[["optionalLabel",""],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter",4,"ngIf"],["class","optionalLabel",4,"ngIf"],[1,"optionalLabel"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],["billingFormElement",""],[1,"row"],[3,"ngClass"],["nzRequired","",1,"multiLineLabel","p-0",3,"nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs"],["class","template",4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs","nzValidateStatus","nzErrorTip"],["nz-input","","trim","blur",3,"formControl","placeholder","blur"],[3,"ngClass",4,"ngIf"],["class","text-right",3,"ngClass",4,"ngIf"],[1,"col-md-12"],[1,"col-md-12","p-h-0",3,"form","address","description","title","isOnePage","saveEmitter","unstickTrigger"],[1,"template"],[1,"multiLineLabel","p-0",3,"nzXXl","nzXl","nzLg","nzMd","nzSm","nzXs","nzRequired"],[1,"w-100",3,"formControl","nzPlaceHolder","nzDefaultPickerValue","ngModelChange","keydown.enter","nzOnOpenChange","nzOnPanelChange"],["birthPicker",""],["birthErrorTip",""],[4,"ngIf"],[1,"text-right",3,"ngClass"],["nzType","primary","nzGhost","","nz-popconfirm","","nzPopconfirmPlacement","bottom",1,"text-right","m-l-5",3,"runFunction","nzTextKeys","nzPopconfirmTitle","nzCondition","stickResult","nzOnConfirm"]],template:function(Ue,Ae){1&Ue&&(e.YNc(0,G,1,3,"
1835ng-template",null,0,e.W1O),e.YNc(2,ee,35,82,"form",1)),2&Ue&&(e.xp6(2),e.Q6J("ngIf",Ae.billingForm))},dependencies:[o._Y,o.Fj,o.JJ,o.JL,L.P,i.mk,i.O5,i.tP,o.oH,o.sg,M.P4,R.uw,l.t3,l.SK,h.Lr,h.Nx,h.iK,h.Fd,D.Zp,B.JW,K.w,u.X$,b.j],encapsulation:2}),te=(0,s.gn)([(0,c.c)({checkProperties:!0})],te)},66309:(Se,k,n)=>{n.d(k,{m:()=>Y});var s=n(97582),e=n(94650),o=n(24006),t=n(22971),v=n(44224),r=n(43709),c=n(87689),C=n(55089); 1836/* 1837 * @license 1838 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1839 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1840 * 1841 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1842 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1843 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1844 * trade secret or copyright law. 1845 * 1846 * Dissemination of this information or reproduction of this material is strictly forbidden 1847 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code
1848 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1849 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1850 * explicitly covering such access. 1851 * 1852 * The copyright notice above does not evidence any actual or intended publication or disclosure 1853 * of this source code, which includes information that is confidential and/or proprietary, 1854 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1855 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1856 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1857 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1858 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1859 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1860 * IN WHOLE OR IN PART. 1861 */const u=["profileFormElement"];function m(Z,G){1&Z&&(e.TgZ(0,"span",11),e._UZ(1,"br"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&Z&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"CLIENT.CONTRACTS.FIELD.OPTIONAL")," "))}const a=function(){return{}};function f(Z,G){if(1&Z&&e.YNc(0,m,4,3,"span",21),2&Z){const Q=G.controlName,V=e.oxw(2);e.Q6J("ngIf",!(V.profileForm&&V.profileForm.controls[Q].validator&&V.profileForm.controls[Q].validator(e.DdM(1,a))&&V.profileForm.controls[Q].validator(e.DdM(2,a)).required))}}function O(Z,G){1&Z&&e.GkF(0,22)}function N(Z,G){if(1&Z&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&Z){const Q=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.COMPANY_VALIDATION.NAME."+Q.userTypeKey+".REQUIRED")," ")}}function L(Z,G){1&Z&&e.YNc(0,N,3,3,"ng-container",15),2&Z&&e.Q6J("ngIf",G.$implicit.hasError("required"))}function i(Z,G){1&Z&&e.GkF(0,22)}function M(Z,G){1&Z&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.COMPANY_VALIDATION.TAX_ID.REQUIRED")," "))}function R(Z,G){1&Z&&e.YNc(0,M,3,3,"ng-container",15),2&Z&&e.Q6J("ngIf",G.$implicit.hasError("required"))}function l(Z,G){1&Z&&e.GkF(0,22)}function h(Z,G){1&Z&&(e.ynx(0),e._uU(1),e.ALo(2,"translate"),e.BQk()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMMON.FORM.COMPANY_VALIDATION.PHONE.INVALID")," "))}function D(Z,G){1&Z&&e.YNc(0,h,3,3,"ng-container",15),2&Z&&e.Q6J("ngIf",G.$implicit.hasError("wrongNumber"))}function B(Z,G){if(1&Z){const Q=e.EpF();e.TgZ(0,"nz-form-item")(1,"app-address-editor",23),e.NdJ("saveEmitter",function(){e.CHM(Q);const se=e.oxw(2);return e.KtG(se.addressChanged())})("unstickTrigger",function(){e.CHM(Q);const se=e.oxw(2);return e.KtG(se.addressChanged())}),e.ALo(2,"as"),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.qZA()()}if(2&Z){const Q=e.oxw(2);e.xp6(1),e.Q6J("form",e.xi3(2,4,Q.profileForm.controls.address,Q.FormGroup))("address",Q.clientProfile.address)("description",Q.userService.isLawyer?e.lcZ(3,7,"COMMON.FORM.ADDRESS.DESCRIPTION_LAWYER"):e.lcZ(4,9,"COMMON.FORM.ADDRESS.DESCRIPTION"))("title",Q.userService.isLawyer?e.lcZ(5,11,"COMMON.FORM.ADDRESS.LAWYER_TITLE"):e.lcZ(6,13,"COMMON.FORM.ADDRESS.TITLE"))}}const K=function(){return{controlName:"name"}},b=function(){return{controlName:"taxID"}},w=function(){return{controlName:"phone"}};function X(Z,G){if(1&Z){const Q=e.EpF();e.TgZ(0,"form",1,2),e.NdJ("keydown.enter",function(se){e.CHM(Q);const xe=e.oxw();return e.KtG(xe.formService.triggerAutoSubmitWithEnter(se))}),e.YNc(2,f,1,3,"ng-template",null,3,e.W1O),e.TgZ(4,"nz-form-item")(5,"nz-form-label",4)(6,"span"),e._uU(7),e.ALo(8,"translate"),e.YNc(9,O,1,0,"ng-container",5),e.qZA()(),e.TgZ(10,"nz-form-control",6)(11,"input",7),e.NdJ("blur",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.saveIfDynamic())}),e.ALo(12,"translate"),e.ALo(13,"as"),e.qZA(),e.YNc(14,L,1,1,"ng-template",null,8,e.W1O),e.qZA()(),e.TgZ(16,"nz-form-item")(17,"nz-form-label",4)(18,"span"),e._uU(19),e.ALo(20,"translate"),e.YNc(21,i,1,0,"ng-container",5),e.qZA()(),e.TgZ(22,"nz-form-control",6)(23,"input",7),e.NdJ("blur",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.saveIfDynamic())}),e.ALo(24,"translate"),e.ALo(25,"as"),e.qZA(),e.YNc(26,R,1,1,"ng-template",null,9,e.W1O),e.qZA()(),e.TgZ(28,"nz-form-item")(29,"nz-form-label",4)(30,"span"),e._uU(31),e.ALo(32,"translate"),e.YNc(33,l,1,0,"ng-container",5),e.qZA()(),e.TgZ(34,"nz-form-control",6)(35,"input",7),e.NdJ("blur",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.saveIfDynamic())}),e.ALo(36,"translate"),e.ALo(37,"as"),e.qZA(),e.YNc(38,D,1,1,"ng-template",null,10,e.W1O),e.TgZ(40,"span",11)(41,"span",12),e._uU(42),e.ALo(43,"translate"),e.TgZ(44,"code"),e._uU(45),e.ALo(46,"translate"),e.qZA()()()()(),e.TgZ(47,"div",13)(48,"div",14),e.YNc(49,B,7,15,"nz-form-item",15),e.qZA()(),e.TgZ(50,"div",13)(51,"div",14)(52,"nz-form-item",16)(53,"app-tax-number-editor",17),e.NdJ("switchTaxNumberTypeEmitter",function(se){e.CHM(Q);const xe=e.oxw();return e.KtG(xe.switchTaxNumberType(se))})("saveEmitter",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.saveIfDynamic())})("unstickTrigger",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.updateUnstickTrigger())}),e.ALo(54,"as"),e.ALo(55,"translate"),e.qZA()()()(),e.TgZ(56,"div")(57,"h3",18),e._uU(58),e.ALo(59,"translate"),e.qZA(),e.TgZ(60,"p",19),e._uU(61),e.ALo(62,"translate"),e.qZA(),e.TgZ(63,"app-client-person-editor",20),e.NdJ("saveEmitter",function(){e.CHM(Q);const se=e.oxw();return e.KtG(se.saveIfDynamic())}),e.ALo(64,"as"),e.qZA()()()}if(2&Z){const Q=e.MAs(3),V=e.MAs(15),se=e.MAs(27),xe=e.MAs(39),Ee=e.oxw();e.Q6J("formGroup",Ee.profileForm),e.xp6(5),e.Q6J("nzMd",6)("nzSm",8)("nzXs",24)("nzRequired",Ee.profileForm&&Ee.profileForm.controls.name.validator&&Ee.profileForm.controls.name.validator(e.DdM(91,a))&&Ee.profileForm.controls.name.validator(e.DdM(92,a)).required),e.xp6(2),e.hij(" ",e.lcZ(8,54,"COMMON.FORM.COMPANY."+Ee.userTypeKey+".NAME")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",Q)("ngTemplateOutletContext",e.DdM(93,K)),e.xp6(1),e.Q6J("nzMd",14)("nzSm",12)("nzXs",24)("nzValidateStatus",Ee.profileForm.controls.name)("nzErrorTip",V),e.xp6(1),e.Q6J("placeholder",e.lcZ(12,56,"COMMON.FORM.COMPANY."+Ee.userTypeKey+".NAME"))("formControl",e.xi3(13,58,Ee.profileForm.controls.name,Ee.FormControl)),e.xp6(6),e.Q6J("nzMd",6)("nzSm",8)("nzXs",24)("nzRequired",Ee.profileForm&&Ee.profileForm.controls.taxID.validator&&Ee.profileForm.controls.taxID.validator(e.DdM(94,a))&&Ee.profileForm.controls.taxID.validator(e.DdM(95,a)).required),e.xp6(2),e.hij(" ",e.lcZ(20,61,"COMMON.FORM.COMPANY.TAX_ID")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",Q)("ngTemplateOutletContext",e.DdM(96,b)),e.xp6(1),e.Q6J("nzMd",14)("nzSm",12)("nzXs",24)("nzValidateStatus",Ee.profileForm.controls.taxID)("nzErrorTip",se),e.xp6(1),e.s9C("placeholder",e.lcZ(24,63,"COMMON.FORM.COMPANY.TAX_ID")),e.Q6J("formControl",e.xi3(25,
186165,Ee.profileForm.controls.taxID,Ee.FormControl)),e.xp6(6),e.Q6J("nzMd",6)("nzSm",8)("nzXs",24)("nzRequired",Ee.profileForm&&Ee.profileForm.controls.phone.validator&&Ee.profileForm.controls.phone.validator(e.DdM(97,a))&&Ee.profileForm.controls.phone.validator(e.DdM(98,a)).required),e.xp6(2),e.hij(" ",e.lcZ(32,68,"COMMON.FORM.COMPANY.PHONE")," "),e.xp6(2),e.Q6J("ngTemplateOutlet",Q)("ngTemplateOutletContext",e.DdM(99,w)),e.xp6(1),e.Q6J("nzMd",14)("nzSm",12)("nzXs",24)("nzValidateStatus",Ee.profileForm.controls.phone)("nzErrorTip",xe),e.xp6(1),e.s9C("placeholder",e.lcZ(36,70,"COMMON.FORM.COMPANY.PHONE")),e.Q6J("formControl",e.xi3(37,72,Ee.profileForm.controls.phone,Ee.FormControl)),e.xp6(7),e.hij(" ",e.lcZ(43,75,"COMMON.FORM_HELPER_TEXTS.PHONE.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(46,77,"COMMON.FORM_HELPER_TEXTS.PHONE.EXAMPLE")," "),e.xp6(4),e.Q6J("ngIf",Ee.clientProfile&&Ee.clientProfile.address),e.xp6(4),e.Q6J("form",e.xi3(54,79,Ee.profileForm.controls.taxNumber,Ee.FormGroup))("taxNumber",Ee.clientProfile.taxNumber)("isCountryEU",Ee.isCountryEU)("title",e.lcZ(55,82,"COMMON.FORM.TAX_NUMBER_FORM.TITLE")),e.xp6(5),e.hij(" ",e.lcZ(59,84,"COMMON.FORM.COMPANY."+Ee.userTypeKey+".REPRESENTATIVE")," "),e.xp6(3),e.hij(" ",e.lcZ(62,86,"COMMON.FORM.COMPANY."+Ee.userTypeKey+".DESCRIPTION.REPRESENTATIVE")," "),e.xp6(2),e.Q6J("form",e.xi3(64,88,Ee.profileForm.controls.representative,Ee.FormGroup))("addressRequired",!0)}}let Y=class{constructor(G,Q){this.formService=G,this.userService=Q,this.saveDynamically=!1,this.save=new e.vpe,this.unstickTrigger=new e.vpe,this.isCountryEU=!0,this.isCountryHungary=!0,this.FormControl=o.p4,this.FormGroup=o.nJ}ngOnInit(){if(this.userTypeKey=this.userService.sessionTypeTranslationKey,this.clientProfile){const G=this.profileForm.get("address")&&this.profileForm.get("address").get("addressCountry")&&this.profileForm.get("address").get("addressCountry").value?this.profileForm.get("address").get("addressCountry").value:null;this.isCountryEU=!G||(0,r.isEuMember)(G),this.isCountryHungary=null===G||"HU"===G}this.clientProfile||(this.clientProfile=t.nX.empty(t.pq.Company),this.clientProfile.taxNumber=new t.DW),this.profileForm||(this.profileForm=this.formService.clientOwnerFormGroup(this.clientProfile,"change")),this.clientProfile&&!this.clientProfile.address&&(this.clientProfile.address=new t.kL,this.profileForm.setControl("address",this.formService.addressFormGroup(this.clientProfile.address)))}unloadNotification(G){this.profileForm&&this.profileForm.dirty&&(G.returnValue=!0)}addOwnerCompanyAddress(){this.clientProfile.address=new t.kL,this.profileForm.setControl("address",this.formService.addressFormGroup(this.clientProfile.address)),this.saveIfDynamic()}removeOwnerCompanyAddress(){this.clientProfile.address=null,this.profileForm.removeControl("address"),this.profileForm.markAsDirty(),this.saveIfDynamic()}saveIfDynamic(){this.saveDynamically&&this.profileForm.valid?this.save.emit(this.formService.groupToClientOwner(this.profileForm)):this.updateUnstickTrigger()}updateUnstickTrigger(){this.unstickTrigger.emit()}switchTaxNumberType(G){switch(G){case t.z4.Hungarian:this.clientProfile.taxNumber=new t.DW;break;case t.z4.Community:this.clientProfile.taxNumber=new t.kc;break;case t.z4.Other:this.clientProfile.taxNumber=new t.gs}this.profileForm.setControl("taxNumber",this.formService.taxNumberFormGroup(this.clientProfile.taxNumber)),this.profileForm.markAsDirty(),this.saveIfDynamic()}addressChanged(){const G=this.profileForm.get("address")&&this.profileForm.get("address").get("addressCountry")&&this.profileForm.get("address").get("addressCountry").value?this.profileForm.get("address").get("addressCountry").value:null,Q=!G||(0,r.isEuMember)(G),V=null===G||"HU"===G;!this.isCountryHungary&&V?this.switchTaxNumberType(t.z4.Hungarian):this.isCountryHungary&&!V&&Q?this.switchTaxNumberType(t.z4.Community):!this.isCountryHungary||V||Q?this.isCountryEU!==Q&&this.switchTaxNumberType(Q?t.z4.Community:t.z4.Other):this.switchTaxNumberType(t.z4.Other),this.isCountryEU=Q,this.isCountryHungary=V,this.saveIfDynamic()}};Y.\u0275fac=function(G){return new(G||Y)(e.Y36(c.o),e.Y36(C.K))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["app-company-data-form"]],viewQuery:function(G,Q){if(1&G&&e.Gf(u,5),2&G){let V;e.iGM(V=e.CRH())&&(Q.profileFormElement=V.first)}},hostBindings:function(G,Q){1&G&&e.NdJ("beforeunload",function(se){return Q.unloadNotification(se)},!1,e.Jf7)},inputs:{clientProfile:"clientProfile",profileForm:"profileForm",saveDynamically:"saveDynamically"},outputs:{save:"save",unstickTrigger:"unstickTrigger"},decls:1,vars:1,consts:[["nz-form","","nzNoColon","",3,"formGroup","keydown.enter",4,"ngIf"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],["profileFormElement",""],["optionalLabel",""],[1,"multiLineLabel","p-0",3,"nzMd","nzSm","nzXs","nzRequired"],["class","template",4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzMd","nzSm","nzXs","nzValidateStatus","nzErrorTip"],["nz-input","","trim","blur",3,"placeholder","formControl","blur"],["nameErrorTip",""],["taxIDErrorTip",""],["phone
1861ErrorTip",""],[1,"optionalLabel"],["nz-typography",""],[1,"row"],[1,"col-md-12"],[4,"ngIf"],[1,"w-100","m-b-0"],[1,"col-md-12","p-h-0",3,"form","taxNumber","isCountryEU","title","switchTaxNumberTypeEmitter","saveEmitter","unstickTrigger"],[1,"font-size-16"],[1,"col-12","col-md-7","p-0"],[3,"form","addressRequired","saveEmitter"],["class","optionalLabel",4,"ngIf"],[1,"template"],[1,"col-md-12","p-h-0",3,"form","address","description","title","saveEmitter","unstickTrigger"]],template:function(G,Q){1&G&&e.YNc(0,X,65,100,"form",0),2&G&&e.Q6J("ngIf",Q.profileForm)},styles:['@charset "UTF-8";']}),Y=(0,s.gn)([(0,v.c)({checkProperties:!0})],Y)},64056:(Se,k,n)=>{n.d(k,{z:()=>D});var s=n(97582),e=n(94650),o=n(24006),t=n(22971),v=n(83154),r=n(18505),c=n(44224),C=n(25156),u=n(32925),m=n(50211),a=n(75489),f=n(87689),O=n(98895),N=n(55089); 1862/* 1863 * @license 1864 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1865 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1866 * 1867 * NOTICE: All information contained herein
1867is, and remains the property of Szerzi UG (haftungsbeschränkt) 1868 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1869 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1870 * trade secret or copyright law. 1871 * 1872 * Dissemination of this information or reproduction of this material is strictly forbidden 1873 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1874 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1875 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1876 * explicitly covering such access. 1877 * 1878 * The copyright notice above does not evidence any actual or intended publication or disclosure 1879 * of this source code, which includes information that is confidential and/or proprietary, 1880 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1881 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1882 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1883 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1884 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1885 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1886 * IN WHOLE OR IN PART. 1887 */const L=["profileFormElement"];function i(B,K){if(1&B){const b=e.EpF();e.TgZ(0,"app-client-person-editor",8),e.NdJ("saveEmitter",function(){e.CHM(b);const X=e.oxw(3);return e.KtG(X.saveIfDynamic())}),e.ALo(1,"as"),e.qZA()}if(2&B){const b=e.oxw(3);e.Q6J("form",e.xi3(1,2,b.profileForm.controls.representative,b.FormGroup))("addressRequired",!0)}}
1887function M(B,K){if(1&B){const b=e.EpF();e.TgZ(0,"div",9)(1,"button",10),e.NdJ("click",function(){e.CHM(b);const X=e.oxw(3);return e.KtG(X.removeRepresentative())}),e.TgZ(2,"span",11),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"p",12),e._uU(6),e.ALo(7,"translate"),e.qZA()()}if(2&B){const b=e.oxw(3);e.xp6(3),e.hij(" ",e.lcZ(4,2,b.userTypeKey+".PROFILE.DATA.REPRESENTATIVE.REMOVE")," "),e.xp6(3),e.Oqu(e.lcZ(7,4,b.userTypeKey+".PROFILE.DATA.REPRESENTATIVE.PERSONAL_OPTIONAL"))}}function R(B,K){if(1&B&&(e.TgZ(0,"div")(1,"h3",6),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"p"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.YNc(7,i,2,5,"app-client-person-editor",7),e.YNc(8,M,8,6,"div",1),e.qZA()),2&B){const b=e.oxw(2);e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMMON.FORM.COMPANY.CLIENT.REPRESENTATIVE")," "),e.xp6(3),e.hij(" ",e.lcZ(6,6,b.userTypeKey+".PROFILE.DATA.REPRESENTATIVE.DESC.PERSONAL")," "),e.xp6(2),e.Q6J("ngIf",b.profileForm.controls.representative),e.xp6(1),e.Q6J("ngIf",b.clientProfile&&b.clientProfile.representative)}}function l(B,K){if(1&B){const b=e.EpF();e.TgZ(0,"form",2,3),e.NdJ("keydown.enter",function(X){e.CHM(b);const Y=e.oxw();return e.KtG(Y.formService.triggerAutoSubmitWithEnter(X))}),e.TgZ(2,"app-client-person-editor",4),e.NdJ("saveEmitter",function(){e.CHM(b);const X=e.oxw();return e.KtG(X.saveIfDynamic())}),e.qZA(),e.YNc(3,R,9,8,"div",5),e.qZA()}if(2&B){const b=e.oxw();e.Q6J("formGroup",b.profileForm),e.xp6(2),e.Q6J("form",b.profileForm),e.xp6(1),e.Q6J("ngIf",b.clientProfile&&b.clientProfile.representative)}}function h(B,K){if(1&B){const b=e.EpF();e.TgZ(0,"div",9)(1,"button",13),e.NdJ("click",function(){e.CHM(b);const X=e.oxw();return e.KtG(X.addRepresentative())}),e.ALo(2,"translate"),e.TgZ(3,"span",11),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.TgZ(6,"p",14),e._uU(7),e.ALo(8,"translate"),e.qZA()()}if(2&B){const b=e.oxw();e.xp6(1),e.Q6J("nzTooltipTitle",e.lcZ(2,3,b.userTypeKey+".PROFILE.DATA.REPRESENTATIVE.DESC.PERSONAL")),e.xp6(3),e.Oqu(e.lcZ(5,5,b.userTypeKey+".PROFILE.DATA.REPRESENTATIVE.ADD")),e.xp6(3),e.hij(" ",e.lcZ(8,7,b.userTypeKey+".PROFILE.DATA.REPRESENTATIVE.PERSONAL_OPTIONAL")," ")}}let D=class{constructor(K,b,w,X,Y,Z,G){this.nzModal=K,this.translate=b,this.clientService=w,this.eventService=X,this.formService=Y,this.stateService=Z,this.userService=G,this.isNewProfile=!0,this.saveDynamically=!1,this.save=new e.vpe,this.unstickTrigger=new e.vpe,this.UserType=t.FW,this.FormGroup=o.nJ}ngOnInit(){this.userType=this.userService.sessionType,this.userTypeKey=this.userService.sessionTypeTranslationKey,this.clientProfile||(this.clientProfile=t.yg.empty(t.pq.Person)),this.profileForm||(this.profileForm=this.formService.clientPersonFormGroup(this.clientProfile,"change"))}unloadNotification(K){this.profileForm&&this.profileForm.dirty&&(K.returnValue=!0)}changeInProgressStateByFormStatus(K){(0,v.b)(K).pipe((0,r.b)(b=>{this.stateService.setChangeInProgress(!b,this.isNewProfile?`<p>${this.translate.instant("CLIENT.PROFILE.DATA.WARNINGS.PROFILE_INCOMPLETE")}</p>`:`<p>${this.translate.instant("CLIENT.PROFILE.DATA.WARNINGS.PROFILE_CHANGE_INCOMPLETE")}</p>`)})).subscribe()}addRepresentative(){this.clientProfile.representative=t.yg.empty(t.pq.Person),this.profileForm.setControl("representative",this.formService.clientPersonFormGroup(this.clientProfile.representative,"change")),this.changeInProgressStateByFormStatus(this.profileForm)}removeRepresentative(){this.nzModal.confirm({nzTitle:this.translate.instant("CLIENT.PROFILE.DATA.REMOVE_REPRESENTATIVE_MODAL.TITLE"),nzOnOk:()=>{this.profileForm.removeControl("representative"),this.profileForm.markAsDirty(),this.clientProfile.representative=void 0,this.saveIfDynamic()},nzOkText:this.translate.instant("CLIENT.PROFILE.DATA.REMOVE_REPRESENTATIVE_MODAL.OK_TEXT"),nzCancelText:this.translate.instant("CLIENT.PROFILE.DATA.REMOVE_REPRESENTATIVE_MODAL.CANCEL_TEXT")})}saveIfDynamic(){this.saveDynamically&&this.profileForm.valid?this.save.emit(this.formService.groupToClientPerson(this.profileForm)):this.updateUnstickTrigger()}updateUnstickTrigger(){this.unstickTrigger.emit()}};D.\u0275fac=function(K){return new(K||D)(e.Y36(C.Sf),e.Y36(u.sK),e.Y36(m.y),e.Y36(a.P),e.Y36(f.o),e.Y36(O.b),e.Y36(N.K))},D.\u0275cmp=e.Xpm({type:D,selectors:[["app-personal-data-form"]],viewQuery:function(K,b){if(1&K&&e.Gf(L,5),2&K){let w;e.iGM(w=e.CRH())&&(b.profileFormElement=w.first)}},hostBindings:function(K,b){1&K&&e.NdJ("beforeunload",function(X){return b.unloadNotification(X)},!1,e.Jf7)},inputs:{clientProfile:"clientProfile",isNewProfile:"isNewProfile",profileForm:"profileForm",saveDynamically:"saveDynamically"},outputs:{save:"save",unstickTrigger:"unstickTrigger"},decls:2,vars:2,consts:[["nz-form","","nzNoColon","",3,"formGroup","keydown.enter",4,"ngIf"],["class","text-left m-t-30 m-b-10",4,"ngIf"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],["profileFormElement",""],[3,"form","saveEmitter"],[4,"ngIf"],[1,"font-size-16"],[3,"form","addressRequired","saveEmitter",4,"ngIf"],[3,"form","addressRequired","saveEmitter"],[1,"text-left","m-t-30","m-b-10"],["nz-button","","nzType","primary","nzGhost","",3,"click"],[1,"m-l-5"],[1,"m-t-5"],["nz-button","","nzType","primary","nzGhost","","nz-tooltip","","nzTooltipPlacement","bottom",3,"nzTooltipTitle","click"],[1,"m-t-5","col-12","col-md-7","p-0"]],template:function(K,b){1&K&&(e.YNc(0,l,4,3,"form",0),e.YNc(1,h,9,9,"div",1)),2&K&&(e.Q6J("ngIf",b.profileForm),e.xp6(1),e.Q6J("ngIf",b.userType!==b.UserType.Lawyer&&b.clientProfile&&!b.clientProfile.representative))},encapsulation:2}),D=(0,s.gn)([(0,c.c)({checkProperties:!0})],D)},35146:(Se,k,n)=>{n.d(k,{f:()=>a});var s=n(92961),e=n(71997),o=n(36057),t=n(94650),v=n(50211),r=n(25156),c=n(30607),C=n(54584);function u(f,O){if(1&f&&t._UZ(0,"app-multi-state-button",4),2&f){const N=t.oxw();t.Q6J("nzType","primary")("defaultFunction",N.defaultFunction)("stickResult",!1)("nzTextKeys",N.uploadText)}}function m(f,O){if(1&f&&(t.TgZ(0,"div",5)(1,"div",6),t._UZ(2,"app-feedback",7),t.qZA()()),2&f){const N=t.oxw();
1887t.xp6(2),t.Q6J("unit",N.FeedbackUnit.ImageUpload)("feature",N.FeedbackFeature.Modal)}}let a=(()=>{class f{constructor(N,L,i,M){this.clientService=N,this.nzmodal=L,this.imgService=i,this.lawyerValidationService=M,this.imageChangedEvent="",this.croppedImage="",this.uploadText=new s.PR("CLIENT.PROFILE.DATA.IMAGE.BUTTON_STATES.CHANGE","CLIENT.PROFILE.DATA.IMAGE.BUTTON_STATES.CHANGING","CLIENT.PROFILE.DATA.IMAGE.BUTTON_STATES.CHANGED","CLIENT.PROFILE.DATA.IMAGE.BUTTON_STATES.FAILED"),this.FeedbackFeature=e.lrp,this.FeedbackUnit=e._0Z}ngOnInit(){this.defaultFunction=()=>this.submitImage()}imageCropped(N){this.croppedImage=N.base64}imageLoaded(){}cropperReady(){}loadImageFailed(){}submitImage(){return this.imgService.uploadImage(this.croppedImage).then(()=>{this.lawyerValidationService.runCheckForStep(o.xr.IMAGE)}),this.imgService.uploadImage(this.croppedImage)}}return f.\u0275fac=function(N){return new(N||f)(t.Y36(v.y),t.Y36(r.Sf),t.Y36(c.i),t.Y36(C.w))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-imageupload"]],inputs:{imageChangedEvent:"imageChangedEvent"},decls:6,vars:8,consts:[["format","jpeg",3,"imageChangedEvent","maintainAspectRatio","roundCropper","hideResizeSquares","resizeToHeight","resizeToWidth","onlyScaleDown","imageCropped","imageLoaded","cropperReady","loadImageFailed"],["nz-row","","nzJustify","end",2,"margin-top","1.5rem"],["class","multiLineButton",3,"nzType","defaultFunction","stickResult","nzTextKeys",4,"ngIf"],["class","w-100",4,"nzModalFooter"],[1,"multiLineButton",3,"nzType","defaultFunction","stickResult","nzTextKeys"],[1,"w-100"],[1,"row","justify-content-end","w-100"],[3,"unit","feature"]],template:function(N,L){1&N&&(t.TgZ(0,"div")(1,"image-cropper",0),t.NdJ("imageCropped",function(M){return L.imageCropped(M)})("imageLoaded",function(){return L.imageLoaded()})("cropperReady",function(){return L.cropperReady()})("loadImageFailed",function(){return L.loadImageFailed()}),t.qZA()(),t.TgZ(2,"div",1),t.YNc(3,u,1,4,"app-multi-state-button",2),t.qZA(),t.TgZ(4,"div"),t.YNc(5,m,3,2,"div",3),t.qZA()),2&N&&(t.xp6(1),t.Q6J("imageChangedEvent",L.imageChangedEvent)("maintainAspectRatio",!0)("roundCropper",!0)("hideResizeSquares",!1)("resizeToHeight",500)("resizeToWidth",500)("onlyScaleDown",!0),t.xp6(2),t.Q6J("ngIf",""!==L.croppedImage))},styles:['@charset "UTF-8";[_nghost-%COMP%] image-cropper{max-height:70vh}[_nghost-%COMP%] image-cropper .cropper:after{box-shadow:0 0 0 100vw #ffffff73;box-shadow:0 0 0 100vw #00000073!important}']}),f})()},15635:(Se,k,n)=>{n.d(k,{p:()=>Oe});var s=n(97582),e=n(94650),o=n(92961),t=n(71997),v=n(44224),r=n(37649),c=n(52835),C=n(45218),u=n(29971),m=n(44569),a=n(25156),f=n(49651),O=n(32925),N=n(50211),L=n(31495),i=n(52632),M=n(3674),R=n(24006),l=n(36895),h=n(66616),D=n(47044),B=n(73679),K=n(47423),b=n(35635),w=n(66152),X=n(20545),Y=n(21043),Z=n(35232);function G(y,x){1&y&&e._UZ(0,"nz-skeleton-element",15),2&y&&e.Q6J("nzActive",!0)}const Q=function(y){return{"p-t-0":y}};function V(y,x){if(1&y&&(e.TgZ(0,"nz-list-item",12),e.YNc(1,G,1,1,"ng-template",null,13,e.W1O),e._UZ(3,"nz-list-item-meta",14),e.qZA()),2&y){const E=e.MAs(2),T=e.oxw(2);e.Q6J("ngClass",e.VKq(3,Q,T.isOnePage))("@skeletonPosAbsLeave",void 0),e.xp6(3),e.Q6J("nzDescription",E)}}function se(y,x){if(1&y&&(e.TgZ(0,"nz-list-item",16),e._UZ(1,"nz-list-item-meta",14),e.ALo(2,"translate"),e.qZA()),2&y){const E=e.oxw(2);e.Q6J("hidden",E.isPayPalAdded)("ngClass",e.VKq(6,Q,E.isOnePage))("@skeletonPosAbsLeave",void 0),e.xp6(1),e.Q6J("nzDescription",e.lcZ(2,4,"CLIENT.PROFILE.PAYMENT.MODAL.ONEPAGE.CHOOSE_CARD"))}}function xe(y,x){1&y&&(e.TgZ(0,"footer",32)(1,"div",33),e._UZ(2,"nz-skeleton-element",34),e.qZA()()),2&y&&(e.xp6(2),e.Q6J("nzActive",!0))}const Ee=function(y){return{"p-t-5":y}};function re(y,x){if(1&y&&(e.TgZ(0,"form",21)(1,"div",22)(2,"div",23)(3,"div",24)(4,"div",25)(5,"label",26),e._UZ(6,"nz-skeleton-element",15),e.qZA(),e.TgZ(7,"div",27),e._UZ(8,"nz-skeleton-element",15),e.qZA()(),e.TgZ(9,"div",25)(10,"label",26),e._UZ(11,"nz-skeleton-element",15),e.qZA(),e.TgZ(12,"div",28),e._UZ(13,"nz-skeleton-element",15),e.qZA()()(),e.TgZ(14,"div",29)(15,"div",30)(16,"label",26),e._UZ(17,"nz-skeleton-element",15),e.qZA(),e.TgZ(18,"div",27),e._UZ(19,"nz-skeleton-element",15),e.qZA()(),e.TgZ(20,"div",30)(21,"label",26),e._UZ(22,"nz-skeleton-element",15),e.qZA(),e.TgZ(23,"div",27),e._UZ(24,"nz-skeleton-element",15),e.qZA()()()(),e.YNc(25,xe,3,1,"footer",31),e.qZA()()),2&y){const E=e.oxw(3);e.xp6(6),e.Q6J("nzActive",!0),e.xp6(1),e.Q6J("ngClass",e.VKq(12,Ee,E.currentPaymentProvider===E.PaymentProvider.Stripe)),e.xp6(1),e.Q6J("nzActive",!0),e.xp6(3),e.Q6J("nzActive",!0),e.xp6(2),e.Q6J("nzActive",!0),e.xp6(4),e.Q6J("nzActive",!0),e.xp6(1),e.Q6J("ngClass",e.VKq(14,Ee,E.currentPaymentProvider===E.PaymentProvider.Stripe)),e.xp6(1),e.Q6J("nzActive",!0),e.xp6(3),e.Q6J("nzActive",!0),e.xp6(1),e.Q6J("ngClass",e.VKq(16,Ee,E.currentPaymentProvider===E.PaymentProvider.Stripe)),e.xp6(1),e.Q6J("nzActive",!0),e.xp6(1),e.Q6J("ngIf",!E.isOnePage)}}function le(y,x){if(1&y&&(e.TgZ(0,"nz-list-item",17)(1,"div",18)(2,"div",19),e.YNc(3,re,26,18,"form",20),e.qZA()()()),2&y){const E=e.oxw(2);e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(3),e.Q6J("ngIf",!E.isPayPal||E.isOnePage||E.choosingPayment)}}function q(y,x){1&y&&(e.TgZ(0,"p",57),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&y&&(e.xp6(1),e.AsE(" ",e.lcZ(2,2,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.ERRORS.ERROR"),"",e.lcZ(3,4,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.ERRORS.number")," "))}function fe(y,x){1&y&&e._UZ(0,"div",58,59)}const de=function(y){return{"red-border":y}},it=function(){return{standalone:!0}};function Ve(y,x){if(1&y){const E=e.EpF();e.TgZ(0,"input",60,59),e.NdJ("ngModelChange",function(S){e.CHM(E);const $=e.oxw(4);return e.KtG($.cardholdersName=S)})("ngModelChange",function(S){e.CHM(E);const $=e.oxw(4);return e.KtG($.cardholdersNameChange(S))}),e.ALo(2,"translate"),e.qZA()}if(2&y){const E=e.oxw(4);e.Q6J("ngClass",e.VKq(6,de,E.errors.cardholderName))("ngModel",E.cardholdersName)("ngModelOptions",e.DdM(8,it))("placeholder",e.lcZ(2,4,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.NAME"))}}function W(y,x){1&y&&(e.TgZ(0,"p",57),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&y&&(e.xp6(1),e.AsE(" ",e.lcZ(2,2,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.ERRORS.ERROR"),"",e.lcZ(3,4,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.ERRORS.cardholderName")," "))}function ee(y,x){1&y&&(e.TgZ(0,"p",57),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&y&&(e.xp6(1),e.AsE(" ",e.lcZ(2,2,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.ERRORS.ERROR"),"",e.lcZ(3,4,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.ERRORS.expirationDate")," "))}function te(y,x){1&y&&(e.TgZ(0,"p",57),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&y&&(e.xp6(1),e.AsE(" ",e.lcZ(2,2,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.ERRORS.ERROR"),"",e.lcZ(3,4,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.ERRORS.cvv")," "))}const Pe=function(y){return{providerName:y}};function Ue(y,x){if(1&y&&(e.TgZ(0,"footer",32)(1,"div",33),e._UZ(2,"app-multi-state-button",61),e.TgZ(3,"div",62)(4,"p",63),e._uU(5),e.ALo(6,"translate"),e.qZA()()()()),2&y){const E=e.oxw(4);e.xp6(2),e.Q6J("runFunction",E.runFunction)("nzTextKeys",E.paymentButtonText)("stickResult",!1),e.xp6(3),e.hij(" ",e.xi3(6,4,"CLIENT.PROFILE.PAYMENT.CONFIRM.PROVIDER_CHECKOUT_NOTE",e.VKq(7,Pe,E.currentPaymentProvider===E.PaymentProvider.Braintree?"Braintree":E.currentPaymentProvider===E.PaymentProvider.Stripe?"Stripe":"Unicredit"))," ")}}const Ae=function(y){return{display:y}};function Fe(y,x){if(1&y){const E=e.EpF();e.TgZ(0,"form",36),e.NdJ("ngSubmit",function(){e.CHM(E);const S=e.oxw(3);return e.KtG(S.isOnePage?S.submitPaymentMethodToOnepage():S.addPaymentMethodWithButton())}),e.TgZ(1,"div",22)(2,"div",23)(3,"div",24)(4,"div",25)(5,"label",37)(6,"span",38),e.O4$(),e.TgZ(7,"svg",39),e._UZ(8,"path",40)(9,"path",41),e.qZA()(),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.kcU(),e._UZ(12,"div",42,43),e.YNc(14,q,4,6,"p",44),e.qZA(),e.TgZ(15,"div",25)(16,"label",45)(17,"span",38),e._UZ(18,"i",46),e.qZA(),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.YNc(21,fe,2,0,"div",47),e.YNc(22,Ve,3,9,"input",48),e.YNc(23,W,4,6,"p",44),e.qZA()(),e.TgZ(24,"div",29)(25,"div",30)(26,"label",49)(27,"span",38),e.O4$(),e.TgZ(28,"svg",39),e._UZ(29,"path",50),e.qZA()(),e._uU(30),e.ALo(31,"translate"),e.qZA(),e.kcU(),e._UZ(32,"div",51,52),e.YNc(34,ee,4,6,"p",44),e.qZA(),e.TgZ(35,"div",30)(36,"label",53)(37,"span",38),e.O4$(),e.TgZ(38,"svg",39),e._UZ(39,"path",54),e.qZA()(),e._uU(40),e.ALo(4
18871,"translate"),e.qZA(),e.kcU(),e._UZ(42,"div",55,56),e.YNc(44,te,4,6,"p",44),e.qZA()()(),e.YNc(45,Ue,7,9,"footer",31),e.qZA()()}if(2&y){const E=e.oxw(3);e.Q6J("hidden",E.isPayPalAdded)("ngStyle",e.VKq(24,Ae,E.isCardFormDisplayed?"flex":"none")),e.xp6(10),e.hij(" ",e.lcZ(11,16,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.CARD_NO")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(26,de,E.errors.number)),e.xp6(2),e.Q6J("ngIf",E.errors.number),e.xp6(5),e.hij(" ",e.lcZ(20,18,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.NAME")," "),e.xp6(2),e.Q6J("ngIf",E.currentPaymentProvider===E.PaymentProvider.Braintree),e.xp6(1),e.Q6J("ngIf",E.currentPaymentProvider===E.PaymentProvider.Stripe),e.xp6(1),e.Q6J("ngIf",E.errors.cardholderName),e.xp6(7),e.hij(" ",e.lcZ(31,20,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.EXPIRATION")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(28,de,E.errors.expirationDate)),e.xp6(2),e.Q6J("ngIf",E.errors.expirationDate),e.xp6(6),e.hij(" ",e.lcZ(41,22,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.CVV")," "),e.xp6(2),e.Q6J("ngClass",e.VKq(30,de,E.errors.cvv)),e.xp6(2),e.Q6J("ngIf",E.errors.cvv),e.xp6(1),e.Q6J("ngIf",!E.isOnePage)}}function Qe(y,x){if(1&y&&(e.TgZ(0,"div",18)(1,"div",19),e.YNc(2,Fe,46,32,"form",35),e.qZA()()),2&y){const E=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!E.isPayPal||E.isOnePage||E.choosingPayment)}}function rt(y,x){1&y&&e._UZ(0,"nz-skeleton-element",15),2&y&&e.Q6J("nzActive",!0)}function Ct(y,x){if(1&y&&(e.TgZ(0,"nz-list-item",12),e.YNc(1,rt,1,1,"ng-template",null,13,e.W1O),e._UZ(3,"nz-list-item-meta",14),e.qZA()),2&y){const E=e.MAs(2),T=e.oxw(2);e.Q6J("ngClass",e.VKq(3,Q,T.isOnePage))("@skeletonPosAbsLeave",void 0),e.xp6(3),e.Q6J("nzDescription",E)}}function ht(y,x){if(1&y&&(e.TgZ(0,"nz-list-item",8),e._UZ(1,"nz-list-item-meta",14),e.ALo(2,"translate"),e.qZA()),2&y){const E=e.oxw(2);e.Q6J("hidden",E.isPayPalAdded)("@skeletonPosAbsLeave",void 0),e.xp6(1),e.Q6J("nzDescription",e.lcZ(2,3,"CLIENT.PROFILE.PAYMENT.MODAL.ONEPAGE.CHOOSE_PAYPAL"))}}function mt(y,x){if(1&y&&(e.TgZ(0,"nz-list-item",8)(1,"div",64),e._UZ(2,"nz-skeleton-element",65),e.qZA()()),2&y){const E=e.oxw(2);e.Q6J("hidden",E.isPayPalAdded),e.xp6(2),e.Q6J("nzActive",!0)}}function ye(y,x){if(1&y&&(e.TgZ(0,"nz-list-item",8)(1,"div",62),e._UZ(2,"div",66),e.qZA()()),2&y){const E=e.oxw(2);e.Q6J("hidden",E.isPayPalAdded||!E.paypalRendered)}}const Ce=function(y){return{mail:y}};function j(y,x){if(1&y&&(e.TgZ(0,"nz-list-item"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&y){const E=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"CLIENT.PROFILE.PAYMENT.MAIL",e.VKq(4,Ce,E.payPalPayload.details.email))," ")}}function _e(y,x){if(1&y){const E=e.EpF();e.TgZ(0,"nz-list-item")(1,"button",67),e.NdJ("click",function(){e.CHM(E);const S=e.oxw(2);return e.KtG(S.removePaypal())}),e._uU(2),e.ALo(3,"translate"),e.qZA()()}2&y&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"CLIENT.PROFILE.PAYMENT.MODAL.ONEPAGE.UNCHOOSE_PAYPAL")," "))}const F=function(y){return{onePageList:y}};function ne(y,x){if(1&y&&(e.TgZ(0,"nz-list",4),e.YNc(1,V,4,5,"nz-list-item",5),e.YNc(2,se,3,8,"nz-list-item",6),e.YNc(3,le,4,2,"nz-list-item",7),e.TgZ(4,"nz-list-item",8),e.YNc(5,Qe,3,1,"div",9),e.qZA(),e.YNc(6,Ct,4,5,"nz-list-item",5),e.YNc(7,ht,3,5,"nz-list-item",10),e.YNc(8,mt,3,2,"nz-list-item",10),e.YNc(9,ye,3,1,"nz-list-item",10),e.YNc(10,j,3,6,"nz-list-item",11),e.YNc(11,_e,4,3,"nz-list-item",11),e.qZA()),2&y){const E=e.oxw();e.Q6J("ngClass",e.VKq(13,F,E.isOnePage)),e.xp6(1),e.Q6J("ngIf",(E.isOnePage||E.choosingPayment)&&!E.isCardFormDisplayed&&!E.isPayPalInline),e.xp6(1),e.Q6J("ngIf",(E.isOnePage||E.choosingPayment)&&E.isCardFormDisplayed),e.xp6(1),e.Q6J("ngIf",!E.isCardFormDisplayed&&!E.isPayPalInline),e.xp6(1),e.Q6J("@skeletonPosAbsLeave",void 0)("hidden",!E.isCardFormDisplayed&&!E.isPayPalInline),e.xp6(1),e.Q6J("ngIf",E.currentPaymentProvider===E.PaymentProvider.Stripe||E.token),e.xp6(1),e.Q6J("ngIf",(E.isOnePage||E.choosingPayment)&&E.currentPaymentProvider===E.PaymentProvider.Braintree&&!E.isCardFormDisplayed&&!E.isPayPalInline),e.xp6(1),e.Q6J("ngIf",(E.isOnePage||E.choosingPayment)&&E.currentPaymentProvider===E.PaymentProvider.Braintree&&E.isCardFormDisplayed),e.xp6(1),e.Q6J("ngIf",(E.isPayPal||E.isOnePage||E.choosingPayment)&&!E.paypalRendered&&E.currentPaymentProvider===E.PaymentProvider.Braintree),e.xp6(1),e.Q6J("ngIf",(E.isPayPal||E.isOnePage||E.choosingPayment)&&E.currentPaymentProvider===E.PaymentProvider.Braintree),e.xp6(1),e.Q6J("ngIf",E.isOnePage&&E.isPayPalAdded&&E.payPalPayload),e.xp6(1),e.Q6J("ngIf",E.isOnePage&&E.isPayPalAdded)}}function U(y,x){1&y&&e._UZ(0,"nz-skeleton-element",68),2&y&&e.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0)}function et(y,x){if(1&y&&e._UZ(0,"div",69),2&y){const E=e.oxw();e.Q6J("hidden",!E.isCardFormDisplayed||!E.paypalRendered)}}function ct(y,x){if(1&y&&(e.TgZ(0,"span"),e._UZ(1,"app-test-card-info",72),e.qZA()),2&y){const E=e.oxw(2);e.xp6(1),e.Q6J("currentPaymentProvider",E.currentPaymentProvider)}}function ft(y,x){if(1&y&&(e.TgZ(0,"a",73),e.ALo(1,"localizeRoute"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&y){const E=e.oxw(2);e.Q6J("href",e.lcZ(1,2,"/"+E.PageRoutes.testCardsTab()),e.LSH),e.xp6(2),e.hij(" ",e.lcZ(3,4,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.INFO_LINK")," ")}}function Ze(y,x){if(1&y&&(e.TgZ(0,"div",70),e.YNc(1,ct,2,1,"span",11),e.YNc(2,ft,4,6,"a",71),e.qZA()),2&y){const E=e.oxw();e.xp6(1),e.Q6J("ngIf",E.currentPaymentProvider!==E.PaymentProvider.Unicredit),e.xp6(1),e.Q6J("ngIf",E.currentPaymentProvider===E.PaymentProvider.Unicredit)}}let Oe=class{constructor(x,E,T,S,$,pe,Re,Ke){this.nzModal=x,this.nzMessage=E,this.translate=T,this.clientService=S,this.onepage=$,this.paymentService=pe,this.utilService=Re,this.appService=Ke,this.isPayPal=!1,this.isPayPalInline=!1,this.price="100.00",this.currency=t.Fa6.HUF,this.currentPaymentProvider=C.L.c
1887onfig.currentPaymentProvider,this.submitPaymentPromise=new e.vpe,this.unstickTrigger=new e.vpe,this.isValidCardData=new e.vpe,this.toSubmit=this.onepage.submitPayment,this.errors={number:!1,cvv:!1,expirationDate:!1,cardholderName:!1},this.complete={number:!1,cvv:!1,expirationDate:!1,cardholderName:!1},this.isPayPalAdded=!1,this.paypalRendered=!1,this.PaymentProvider=t.OHy,this.EnvironmentService=C.L,this.EnvironmentMode=u.$,this.PageRoutes=m.d}ngOnInit(){this.isCardFormDisplayed=!1,this.createPaymentProvider(),this.isPayPalInline||this.toSubmit.pipe((0,v.t)(this)).subscribe(x=>{x>0&&this.submitPaymentMethodToOnepage()}),this.paymentButtonText=new o.PR("CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.SAVE.CHANGE","CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.SAVE.CHANGING","CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.SAVE.CHANGED","CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.SAVE.FAILED")}createPaymentProvider(){(!this.isPayPal||this.isOnePage||this.choosingPayment)&&this.currentPaymentProvider===t.OHy.Stripe&&this.createStripeUI()}submitPaymentMethodToOnepage(){this.submitPaymentPromise.emit(this.currentPaymentProvider===t.OHy.Stripe?this.tokenizeUserDetailsStripe():this.tokenizeUserDetailsUnicredit())}addPaymentMethodWithButton(){const x=this.addPaymentMethod();this.runFunction=x}addPaymentMethod(){if(this.currentPaymentProvider===t.OHy.Stripe)return this.tokenizeUserDetailsStripe().then(x=>x,x=>Promise.reject())}tokenizeUserDetailsStripe(){if(Object.keys(this.errors).every(x=>!1===this.errors[x])&&Object.keys(this.complete).every(x=>!0===this.complete[x])){const x=this;return this.clientService.postPaymentMethodStripe(new t.Ygm(this.idempotencyID)).pipe((0,v.t)(this)).toPromise().then(E=>this.stripe.confirmCardSetup(E.clientSecret,{payment_method:{card:this.cardNumberElement,billing_details:{name:this.cardholdersName}}}).then(T=>{if(T.error)return Promise.reject(T.error);{let S;if(x.isOnePage){const $=this.utilService.randomString(128);S=Promise.resolve({payment:new t.BAK(this.stripe,"string"==typeof T.setupIntent.payment_method?T.setupIntent.payment_method:T.setupIntent.payment_method.id,$)})}else S=Promise.resolve({payload:T.setupIntent.payment_method});return S.then($=>{!this.isOnePage&&!this.choosingPayment&&this.nzModal.closeAll(),this.onepage.sendPaymentAdded($)},$=>{console.log($),this.nzMessage.error(this.translate.instant("COMMON.ERROR_MESSAGES.WRONG_RETRY"))}),S}},T=>Promise.reject(T)))}return Object.keys(this.errors).forEach(x=>{this.updateStripeFieldValidity({error:this.errors[x]||!this.complete[x],complete:this.complete[x]},"number"===x?"cardnumber":"expirationDate"===x?"expirationdate":x,x)}),Promise.reject()}tokenizeUserDetailsUnicredit(){return Promise.resolve({payment:new t.Ink(!1)})}postPaymentMethodBraintree(x){const E=this.clientService.postPaymentMethodBraintree(new t.yNp(this.appService.switchOperation(x,x,x,"fake-valid-no-billing-address-nonce"))).pipe((0,v.t)(this)).toPromise();return E.then(T=>{!this.isOnePage&&!this.choosingPayment&&this.nzModal.closeAll(),this.onepage.sendPaymentAdded(T.token)},T=>{console.log(T),this.nzMessage.error(this.translate.instant("COMMON.ERROR_MESSAGES.WRONG_RETRY"))}),E}findLabel(x){return document.querySelector('.hosted-field--label[for="'+x+'"]')}removePaypal(){this.isPayPalAdded=!1,this.payPalPayload=null}checkThreeDSecure(x){return this.clientService.getMethodBraintreeNonce(x).pipe((0,v.t)(this)).toPromise().then(E=>this.threeDSecure.verifyCard({amount:this.price,nonce:E.value,onLookupComplete:(T,S)=>{S()}}).then(T=>{if(T.liabilityShifted){const pe=new t.mK9(T.nonce,this.dataCollectorInstance.deviceData);return Promise.resolve({payment:pe})}return Promise.reject()},T=>(console.log(T),Promise.reject())),E=>(console.log(E),Promise.reject()))}createStripeUI(){this.idempotencyID=this.utilService.randomString(128),(0,r.loadStripe)(C.L.config.stripePublishableApiKey,{locale:this.translate.currentLang}).then(E=>{let T,S,$;this.stripe=E,this.stripeElements=this.stripe.elements(),this.cardNumberElement=this.stripeElements.create("cardNumber",{placeholder:"1111 1111 1111 1111"}),this.cardNumberElement.mount("#cardnumber"),this.cardNumberElement.on("ready",pe=>{T=!0,T&&S&&$&&(this.isCardFormDisplayed=!0)}),this.cardNumberElement.on("change",pe=>{this.updateStripeFieldValidity(pe,"cardnumber","number")}),this.cardExpiryElement=this.stripeElements.create("cardExpiry"),this.cardExpiryElement.mount("#expirationdate"),this.cardExpiryElement.on("ready",pe=>{S=!0,T&&S&&$&&(this.isCardFormDisplayed=!0)}),this.cardExpiryElement.on("change",pe=>{this.updateStripeFieldValidity(pe,"expirationdate","expirationDate"),!this.errors.expirationDate&&this.complete.expirationDate&&this.cardCvcElement.focus()}),this.cardCvcElement=this.stripeElements.create("cardCvc",{placeholder:"111"}),this.cardCvcElement.mount("#cvv"),this.cardCvcElement.on("ready",pe=>{$=!0,T&&S&&$&&(this.isCardFormDisplayed=!0)}),this.cardCvcElement.on("change",pe=>{this.updateStripeFieldValidity(pe,"cvv")}
1887)})}updateStripeFieldValidity(x,E,T){const S=this.findLabel(E);x.error?(S.classList.add("invalid"),this.errors[T||E]=!0):(S.classList.remove("invalid"),this.errors[T||E]=!1),this.complete[T||E]=x.complete,this.unstickTrigger.emit(),this.emitIsValidDardData()}cardholdersNameChange(x){this.errors.cardholderName=0===x.length||0===x.trim().length,this.complete.cardholderName=0!==x.length,this.emitIsValidDardData()}emitIsValidDardData(){this.isValidCardData.emit(!this.errors.number&&!this.errors.cardholderName&&!this.errors.expirationDate&&!this.errors.cvv&&this.complete.number&&this.complete.cardholderName&&this.complete.expirationDate&&this.complete.cvv)}};Oe.\u0275fac=function(x){return new(x||Oe)(e.Y36(a.Sf),e.Y36(f.dD),e.Y36(O.sK),e.Y36(N.y),e.Y36(L.g),e.Y36(i.t),e.Y36(M.f),e.Y36(C.L))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["app-payment"]],inputs:{isOnePage:"isOnePage",choosingPayment:"choosingPayment",isPayPal:"isPayPal",isPayPalInline:"isPayPalInline",price:"price",currency:"currency",currentPaymentProvider:"currentPaymentProvider"},outputs:{submitPaymentPromise:"submitPaymentPromise",unstickTrigger:"unstickTrigger",isValidCardData:"isValidCardData"},decls:4,vars:4,consts:[["nzItemLayout","horizontal","class","d-block",3,"ngClass",4,"ngIf"],["class","paypalButtonSkeleton z-index-1","nzType","input","nzSize","large",3,"nzActive",4,"ngIf"],["id","paypal-button-inline","class","paypalButton",3,"hidden",4,"ngIf"],["class","text-left",4,"ngIf"],["nzItemLayout","horizontal",1,"d-block",3,"ngClass"],["class","w-100",3,"ngClass",4,"ngIf"],[3,"hidden","ngClass",4,"ngIf"],["class","w-100 z-index-1",4,"ngIf"],[3,"hidden"],["class","row w-100 justify-content-center mx-0",4,"ngIf"],[3,"hidden",4,"ngIf"],[4,"ngIf"],[1,"w-100",3,"ngClass"],["descriptionSkeletonTemplate",""],[1,"metaDescription",3,"nzDescription"],["nzType","input","nzSize","small",1,"w-80","skeleton-h-20px",3,"nzActive"],[3,"hidden","ngClass"],[1,"w-100","z-index-1"],[1,"row","w-100","justify-content-center","mx-0"],[1,"col-12","mx-auto","max-700"],["class","flex",4,"ngIf"],[1,"flex"],[1,"panel",2,"box-shadow","none !important"],[1,"panel__content"],[1,"row","justify-content-between"],[1,"col-md-6","col-sm-12"],[1,"hosted-field--label"],[1,"hosted-field",3,"ngClass"],[1,"hosted-field"],[1,"row"],[1,"col-12","col-sm-6"],["class","panel__footer","style","background-color: transparent !important",4,"ngIf"],[1,"panel__footer",2,"background-color","transparent !important"],["nz-row","","nzJustify","end"],["nzType","input","nzSize","large",1,"w-40",3,"nzActive"],["id","cardForm",3,"hidden","ngStyle","ngSubmit",4,"ngIf"],["id","cardForm",3,"hidden","ngStyle","ngSubmit"],["for","cardnumber",1,"hosted-field--label"],[1,"icon"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 24 24"],["d","M0 0h24v24H0z","fill","none"],["d","M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"],["id","cardnumber",1,"hosted-field",3,"ngClass"],["cardnumber",""],["class","text-danger",4,"ngIf"],["for","cardholderName",1,"hosted-field--label"],["nz-icon","","nzType","user","nzTheme","outline",2,"font-size","20px","margin","0 0 0 0"],["id","cardholderName","class","hosted-field",4,"ngIf"],["nz-input","","id","cardholderName","class","hosted-field cardHoldersNameInput",3,"ngClass","ngModel","ngModelOptions","placeholder","ngModelChange",4,"ngIf"],["for","expirationdate",1,"hosted-field--label"],["d","M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"],["id","expirationdate",1,"hosted-field",3,"ngClass"],["expirationdate",""],["for","cvv",1,"hosted-field--label"],["d","M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"],["id","cvv",1,"hosted-field",3,"ngClass"],["cvv",""],[1,"text-danger"],["id","cardholderName",1,"hosted-field"],["cardholderName",""],["nz-input","","id","cardholderName",1,"hosted-field","cardHoldersNameInput",3,"ngClass","ngModel","ngModelOptions","placeholder","ngModelChange"],["nzType","primary",1,"button-text-wrap",3,"runFunction","nzTextKeys","stickResult"],[1,"w-100"],[1,"font-size-12","m-b-0","m-l-auto","m-r-0","p-h-0","p-t-5","col-12","col-md-6","text-right"],[1,"w-100","text-center"],["nzType","input","nzSize","large",1,"w-50",3,"nzActive"],["id","paypal-button",1,"w-50","paypalButtonDiv"],["nz-button","","nzType","link",1,"link-like-button",3,"click"],["nzType","input","nzSize","large",1,"payp
1887alButtonSkeleton","z-index-1",3,"nzActive"],["id","paypal-button-inline",1,"paypalButton",3,"hidden"],[1,"text-left"],["target","_blank","rel","noopener noreferrer",3,"href",4,"ngIf"],[3,"currentPaymentProvider"],["target","_blank","rel","noopener noreferrer",3,"href"]],template:function(x,E){1&x&&(e.YNc(0,ne,12,15,"nz-list",0),e.YNc(1,U,1,2,"nz-skeleton-element",1),e.YNc(2,et,1,1,"div",2),e.YNc(3,Ze,3,2,"div",3)),2&x&&(e.Q6J("ngIf",!E.isPayPalInline&&E.currentPaymentProvider!==E.PaymentProvider.Unicredit),e.xp6(1),e.Q6J("ngIf",!E.isCardFormDisplayed&&!E.paypalRendered&&E.isPayPalInline&&E.currentPaymentProvider===E.PaymentProvider.Braintree),e.xp6(1),e.Q6J("ngIf",E.isPayPalInline&&E.currentPaymentProvider===E.PaymentProvider.Braintree),e.xp6(1),e.Q6J("ngIf",E.isOnePage&&(E.EnvironmentService.config.environment===E.EnvironmentMode.testing||E.EnvironmentService.config.environment===E.EnvironmentMode.development||E.EnvironmentService.config.environment===E.EnvironmentMode.local)))},dependencies:[R._Y,R.Fj,R.JJ,R.JL,R.On,R.F,l.mk,l.O5,l.PC,o.P4,h.ix,D.w,B.SK,K.Ls,b.Zp,w.n_,w.AA,w.yi,X.Xw,X.yg,Y.q,O.X$,Z.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}*[_ngcontent-%COMP%], *[_ngcontent-%COMP%]:before, *[_ngcontent-%COMP%]:after{box-sizing:inherit}html[_ngcontent-%COMP%]{box-sizing:border-box;height:100%;overflow:hidden}body[_ngcontent-%COMP%]{background:#f2f2f2;font-family:Roboto,verdana,sans-serif;height:100%}h1[_ngcontent-%COMP%]{font-size:1.5em;font-weight:100}#cardForm[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center}.panel[_ngcontent-%COMP%]{background:#fff;width:100%;box-shadow:0 2px 2px #00000029,0 0 2px #0000001f}.panel__header[_ngcontent-%COMP%]{background:#fff;color:#fff}.panel__header[_ngcontent-%COMP%], .panel__footer[_ngcontent-%COMP%]{padding:1em 2em}.panel__footer[_ngcontent-%COMP%]{background:#f3f3f3}.panel__content[_ngcontent-%COMP%]{overflow:hidden}.textfield--float-label[_ngcontent-%COMP%]{width:50%;float:left;display:inline-block;padding-right:5px}.hosted-field--label[_ngcontent-%COMP%]{transform:translateY(.4em);font-size:1.125em;line-height:32px;transition:all .15s ease-out;display:block;width:100%;font-weight:400;overflow:hidden;margin-bottom:.5em}.hosted-field--label.label-float[_ngcontent-%COMP%], .hosted-field--label.filled[_ngcontent-%COMP%]{text-overflow:ellipsis;color:#2196f3;transition:all .15s ease-out}.hosted-field--label.filled[_ngcontent-%COMP%]{color:#0000008a}span.icon[_ngcontent-%COMP%]{position:relative;margin-right:.2em}svg[_ngcontent-%COMP%]{fill:#333}.hosted-field[_ngcontent-%COMP%], .hosted-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:32px;margin-bottom:1em;background-color:transparent;color:#000000de;border:1px solid rgba(75,87,102,.3);border-radius:5px;padding:7px 10px;outline:0;width:100%;font-size:16px;box-shadow:none;position:relative}.panel__content[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{padding-left:5px}.hosted-field[_ngcontent-%COMP%] > iframe[_ngcontent-%COMP%]{width:100%!important}.red-border[_ngcontent-%COMP%]{border-color:#de4436}.cardHoldersNameInput[_ngcontent-%COMP%], #cardnumber[_ngcontent-%COMP%], #expirationdate[_ngcontent-%COMP%], #cvv[_ngcontent-%COMP%]{margin-bottom:0}#expirationdate[_ngcontent-%COMP%]{width:70px!important}#cvv[_ngcontent-%COMP%]{width:50px!important}.braintree-hosted-fields-focused[_ngcontent-%COMP%]{border-bottom:2px solid #3f51b5;transition:all .2s ease}.braintree-hosted-fields-invalid[_ngcontent-%COMP%]{border-bottom:2px solid #e91e63;transition:all .2s ease}@media (max-width: 599.98px){html[_ngcontent-%COMP%]{overflow:auto}#cardForm[_ngcontent-%COMP%]{height:auto;font-size:13px}.panel[_ngcontent-%COMP%]{width:100%}.textfield--float-label[_ngcontent-%COMP%]{width:100%;float:none;display:inline-block}}.max-700[_ngcontent-%COMP%]{max-width:700px}.paypalButtonDiv[_ngcontent-%COMP%]{margin:auto;height:40px}.onePageList[_ngcontent-%COMP%] .ant-list-item{padding-top:.46875rem;padding-bottom:.46875rem}.onePageList[_ngcontent-%COMP%] .ant-list-item:last-child{padding-top:.46875rem;padding-bottom:.9375rem}.paypalButtonSkeleton[_ngcontent-%COMP%]{width:150px}.cardHoldersNameInput[_ngcontent-%COMP%]{font-family:sans-serif;font-size:1em}.cardHoldersNameInput[_ngcontent-%COMP%]::-moz-placeholder{color:#000!important;opacity:.6!important}.cardHoldersNameInput[_ngcontent-%COMP%]::placeholder{color:#000!important;opacity:.6!important}.hosted-field[_ngcontent-%COMP%] input{min-height:32px!important}'],data:{animation:[c.Ln]}}),Oe=(0,s.gn)([(0,v.c)()],Oe)},21043:(Se,k,n)=>{n.d(k,{q:()=>a});var s=n(71997),e=n(45218),o=n(29971),t=n(94650),v=n(36895),r=n(32925);function c(f,O){1&f&&(t.TgZ(0,"ul",3)(1,"li"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"li"),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&f&&(t.xp6(2),t.hij(" ",t.lcZ(3,2,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.SUCCESSFUL_CARDS"),": 4111 1111 1111 1111 "),t.xp6(3),t.hij(" ",t.lcZ(6,4,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.UNSUCCESSFUL_CARDS")," 4000 1111 1111 1115 "))}function C(f,O){1&f&&(t.TgZ(0,"ul",3)(1,"li"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"li"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"li"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"li"),t._uU(11),t.ALo(12,"translate"),t.qZA()()),2&f&&(t.xp6(2),t.hij(" ",t.lcZ(3,4,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.SUCCESSFUL_CARDS")," 4242 4242 4242 4242 "),t.xp6(3),t.hij(" ",t.lcZ(6,6,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.3DS_SUCCESSFUL_CARDS")," 4000 0027 6000 3184 "),t.xp6(3),t.hij(" ",t.lcZ(9,8,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.UNSUCCESSFUL_CHECKOUT_CARDS")," 4000 0000 0000 0002 "),t.xp6(3),t.hij(" ",t.lcZ(12,10,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.UNSUCCESSFUL_CARDS")," 4100 0000 0000 0019 "))}function u(f,O){1&f&&(t.TgZ(0,"ul",3)(1,"li"),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"ul",3)(5,"li"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"li"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"li"),t._uU(12),t.ALo(13,"translate"),t.qZA()()(),t.TgZ(14,"li"),t._uU(15),t.ALo(16,"translate"),t.TgZ(17,"ul",3)(18,"li"),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"li"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.TgZ(24,"li"),t._uU(25),t.ALo(26,"translate"),t.qZA()()(),t.TgZ(27,"li"),t._uU(28),t.ALo(29,"translate"),t.TgZ(30,"ul",3)(31,"li"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"li"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"li"),t._uU(38),t.ALo(39,"translate"),t.qZA()()()()),2&f&&(t.xp6(2),t.hij(" ",t.lcZ(3,12,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.SUCCESSFUL_CARDS")," "),t.xp6(4),t.hij("",t.lcZ(7,14,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.CARD_NO"),": 5437 5510 0000 0020"),t.xp6(3),t.hij("",t.lcZ(10,16,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.EXPIRATION"),": 01/22"),t.xp6(3),t.hij("",t.lcZ(13,18,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.CVV"),": 589"),t.xp6(3),t.hij(" ",t.lcZ(16,20,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.3DS_SUCCESSFUL_CARDS")," "),t.xp6(4),t.hij("",t.lcZ(20,22,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.CARD_NO"),": 5437 5510 0000 0014"),t.xp6(3),t.hij("",t.lcZ(23,24,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.EXPIRATION"),": 01/22"),t.xp6(3),t.hij("",t.lcZ(26,26,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.CVV"),": 589"),t.xp6(3),t.hij(" ",t.lcZ(29,28,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.UNSUCCESSFUL_CARDS")," "),t.xp6(4),t.hij("",t.lcZ(33,30,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.CARD_NO"),": 4314 2200 0000 0032"),t.xp6(3),t.hij("",t.lcZ(36,32,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.EXPIRATION"),": 01/22"),t.xp6(3),t.hij("",t.lcZ(39,34,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.FIELDS.CVV"),": 213"))}function m(f,O){if(1&f&&(t.TgZ(0,"div",1),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.YNc(4,c,7,6,"ul",2),t.YNc(5,C,13,12,"ul",2),t.YNc(6,u,40,36,"ul",2),t.qZA()),2&f){const N=t.oxw();
1887t.xp6(1),t.hij(" ",N.currentPaymentProvider===N.PaymentProvider.Unicredit?t.lcZ(2,4,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.UNICREDIT_INFO"):t.lcZ(3,6,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.INFO")," "),t.xp6(3),t.Q6J("ngIf",N.currentPaymentProvider===N.PaymentProvider.Braintree),t.xp6(1),t.Q6J("ngIf",N.currentPaymentProvider===N.PaymentProvider.Stripe),t.xp6(1),t.Q6J("ngIf",N.currentPaymentProvider===N.PaymentProvider.Unicredit)}}let a=(()=>{class f{constructor(){this.currentPaymentProvider=e.L.config.currentPaymentProvider,this.EnvironmentMode=o.$,this.EnvironmentService=e.L,this.PaymentProvider=s.OHy}}return f.\u0275fac=function(N){return new(N||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-test-card-info"]],inputs:{currentPaymentProvider:"currentPaymentProvider"},decls:1,vars:1,consts:[["class","text-left",4,"ngIf"],[1,"text-left"],["class","pl-4",4,"ngIf"],[1,"pl-4"]],template:function(N,L){1&N&&t.YNc(0,m,7,8,"div",0),2&N&&t.Q6J("ngIf",L.EnvironmentService.config.environment===L.EnvironmentMode.testing||L.EnvironmentService.config.environment===L.EnvironmentMode.development||L.EnvironmentService.config.environment===L.EnvironmentMode.local)},dependencies:[v.O5,r.X$],encapsulation:2}),f})()},77248:(Se,k,n)=>{n.d(k,{S:()=>L});var s=n(71997),e=n(77419),o=n(94650),t=n(61479),v=n(39889); 1888/* 1889 * @license 1890 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1891 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1892 *
1893 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1894 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1895 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1896 * trade secret or copyright law. 1897 * 1898 * Dissemination of this information or reproduction of this material is strictly forbidden 1899 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1900 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1901 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1902 * explicitly covering such access. 1903 * 1904 * The copyright notice above does not evidence any actual or intended publication or disclosure 1905 * of this source code, which includes information that is confidential and/or proprietary, 1906 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1907 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1908 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1909 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1910 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1911 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1912 * IN WHOLE OR IN PART. 1913 */function r(i,M){1&i&&(o._UZ(0,"nz-step",2),o.ALo(1,"translate")),2&i&&o.Q6J("nzTitle",o.lcZ(1,1,"CLIENT.PROFILE.2FACTOR.MODAL.STEPS.TITLE_1"))}function c(i,M){1&i&&(o.TgZ(0,"i",10),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&i&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"CLIENT.PROFILE.2FACTOR.MODAL.QR_INFO")))}function C(i,M){1&i&&(o.TgZ(0,"div")(1,"ol")(2,"li"),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.TgZ(5,"li"),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"li"),o._uU(9),o.ALo(10,"translate"),o.qZA()(),o.TgZ(11,"p",11),o._uU(12),o.ALo(13,"translate"),o.TgZ(14,"a",12),o._uU(15),o.ALo(16,"translate"),o.qZA(),o._uU(17),o.ALo(18,"translate"),o.TgZ(19,"a",13),o._uU(20),o.ALo(21,"translate"),o.qZA()()()),2&i&&(o.xp6(3),o.Oqu(o.lcZ(4,7,"CLIENT.PROFILE.2FACTOR.MODAL.STEPS.DESCRIPTION_1.INNER_STEP_1")),o.xp6(3),o.Oqu(o.lcZ(7,9,"CLIENT.PROFILE.2FACTOR.MODAL.STEPS.DESCRIPTION_1.INNER_STEP_2")),o.xp6(3),o.Oqu(o.lcZ(10,11,"CLIENT.PROFILE.2FACTOR.MODAL.STEPS.DESCRIPTION_1.INNER_STEP_3")),o.xp6(3),o.hij(" ",o.lcZ(13,13,"CLIENT.PROFILE.2FACTOR.MODAL.STEPS.DESCRIPTION_1.SUGGESTION")," "),o.xp6(3),o.Oqu(o.lcZ(16,15,"CLIENT.PROFILE.2FACTOR.MODAL.STEPS.DESCRIPTION_1.GOOGLE")),o.xp6(2),o.hij(" ",o.lcZ(18,17,"CLIENT.PROFILE.2FACTOR.MODAL.STEPS.DESCRIPTION_1.OR")," "),o.xp6(3),o.Oqu(o.lcZ(21,19,"CLIENT.PROFILE.2FACTOR.MODAL.STEPS.DESCRIPTION_1.APPLE")))}function u(i,M){if(1&i){const R=o.EpF();o.TgZ(0,"qrcode",14),o.NdJ("click",function(){o.CHM(R);const h=o.oxw();return o.KtG(h.openQr())}),o.qZA()}if(2&i){const R=o.oxw();o.Q6J("qrdata",R.qr)("width",200)("errorCorrectionLevel","M")("elementType","svg")}}function m(i,M){if(1&i&&(o.ynx(0),o.TgZ(1,"div")(2,"p"),o._uU(3),o.ALo(4,"translate"),o.qZA()(),o._UZ(5,"app-auth-2fa",15),o.BQk()),2&i){const R=o.oxw();o.xp6(3),o.Oqu(o.lcZ(4,3,"CLIENT.PROFILE.2FACTOR.MODAL.STEPS.DESCRIPTION_2")),o.xp6(2),o.Q6J("type",R.isTwoFactor?R.TwoFactorType.DELETE:R.TwoFactorType.SETUP)("pass",R.pass)}}function a(i,M){if(1&i){const R=o.EpF();o.TgZ(0,"button",19),o.NdJ("click",function(){o.CHM(R);const h=o.oxw(2);return o.KtG(h.pre())}),o.TgZ(1,"span"),o._uU(2),o.ALo(3,"translate"),o.qZA()()}2&i&&(o.xp6(2),o.Oqu(o.lcZ(3,1,"CLIENT.PROFILE.2FACTOR.MODAL.PREVIOUS")))}function f(i,M){if(1&i){const R=o.EpF();o.TgZ(0,"button",20),o.NdJ("click",function(){o.CHM(R);const h=o.oxw(2);return o.KtG(h.next())}),o.TgZ(1,"span"),o._uU(2),o.ALo(3,"translate"),o.qZA()()}2&i&&(o.xp6(2),o.Oqu(o.lcZ(3,1,"CLIENT.PROFILE.2FACTOR.MODAL.NEXT")))}function O(i,M){if(1&i&&(o.TgZ(0,"div",16),o.YNc(1,a,4,3,"button",17),o.YNc(2,f,4,3,"button",18),o.qZA()),2&i){const R=o.oxw();o.xp6(1),o.Q6J("ngIf",R.current>0),o.xp6(1),o.Q6J("ngIf",R.current<1)}}function N(i,M){if(1&i&&(o.TgZ(0,"div"),o._UZ(1,"app-feedback",21),o.qZA()),2&i){const R=o.oxw();o.xp6(1),o.Q6J("unit",R.FeedbackUnit.TwoFactor)("feature",R.FeedbackFeature.Modal)}}let L=(()=>{class i{constructor(R,l){this.resizeService=R,this.routerService=l,this.current=0,this.TwoFactorType=s.QAM,this.direction="horizontal",this.FeedbackFeature=s.lrp,this.FeedbackUnit=s._0Z}ngOnInit(){this.isTwoFactor&&(this.current=1),this.resizeWidthSubscription=this.resizeService.width.subscribe(R=>{this.direction=R<576?"vertical":"horizontal"})}ngOnDestroy(){this.resizeWidthSubscription&&this.resizeWidthSubscription.unsubscribe()}pre(){this.current-=1}
1913next(){this.current+=1}onIndexChange(R){this.current=R}openQr(){this.routerService.windowOpenAlternative(this.qr)}}return i.\u0275fac=function(R){return new(R||i)(o.Y36(t._),o.Y36(v.c))},i.\u0275cmp=o.Xpm({type:i,selectors:[["app-twofactor"]],viewQuery:function(R,l){if(1&R&&o.Gf(e.t,5),2&R){let h;o.iGM(h=o.CRH())&&(l.auth=h.first)}},inputs:{pass:"pass",isTwoFactor:"isTwoFactor",qr:"qr"},decls:15,vars:14,consts:[[1,"twofactor-steps",3,"nzCurrent","nzDirection","nzIndexChange"],[3,"nzTitle",4,"ngIf"],[3,"nzTitle"],["nz-row","","nzJustify","center"],["class","pt-3",4,"ngIf"],["nz-row","","nzJustify","center",1,"steps-content","py-3"],[4,"ngIf"],[3,"qrdata","width","errorCorrectionLevel","elementType","click",4,"ngIf"],["class","steps-action","nz-row","","nzJustify","end",4,"ngIf"],[4,"nzModalFooter"],[1,"pt-3"],[1,"mb-0"],["href","https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=hu&gl=US","target","_blank","rel","noopener noreferrer",1,"open-link-brand-16"],["href","https://apps.apple.com/us/app/google-authenticator/id388497605","target","_blank","rel","noopener noreferrer",1,"open-link-brand-16"],[3,"qrdata","width","errorCorrectionLevel","elementType","click"],[3,"type","pass"],["nz-row","","nzJustify","end",1,"steps-action"],["nz-button","","nzType","default","class","button-text-wrap",3,"click",4,"ngIf"],["nz-button","","nzType","primary","class","button-text-wrap",3,"click",4,"ngIf"],["nz-button","","nzType","default",1,"button-text-wrap",3,"click"],["nz-button","","nzType","primary",1,"button-text-wrap",3,"click"],[3,"unit","feature"]],template:function(R,l){1&R&&(o.TgZ(0,"nz-steps",0),o.NdJ("nzIndexChange",function(D){return l.onIndexChange(D)}),o.YNc(1,r,2,3,"nz-step",1),o._UZ(2,"nz-step",2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"div",3),o.YNc(5,c,3,3,"i",4),o.qZA(),o.TgZ(6,"div",5),o.YNc(7,C,22,21,"div",6),o.YNc(8,u,1,4,"qrcode",7),o.TgZ(9,"p"),o._uU(10),o.ALo(11,"translate"),o.qZA(),o.YNc(12,m,6,5,"ng-container",6),o.qZA(),o.YNc(13,O,3,2,"div",8),o.YNc(14,N,2,2,"div",9)),2&R&&(o.Q6J("nzCurrent",l.current)("nzDirection",l.direction),o.xp6(1),o.Q6J("ngIf",!l.isTwoFactor),o.xp6(1),o.Q6J("nzTitle",o.lcZ(3,10,"CLIENT.PROFILE.2FACTOR.MODAL.STEPS.TITLE_2")),o.xp6(3),o.Q6J("ngIf",0===l.current),o.xp6(2),o.Q6J("ngIf",0===l.current),o.xp6(1),o.Q6J("ngIf",0===l.current),o.xp6(2),o.hij(" ",o.lcZ(11,12,"CLIENT.PROFILE.2FACTOR.MODAL.STEPS.DESCRIPTION_1.AFTER_INSTALL")," "),o.xp6(2),o.Q6J("ngIf",1===l.current),o.xp6(1),o.Q6J("ngIf",!l.isTwoFactor))},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-skeleton-image{width:200px;height:200px}[_nghost-%COMP%] .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container:hover .ant-steps-item-icon{border-color:#9579d1!important}[_nghost-%COMP%] .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container:hover .ant-steps-item-icon .ant-steps-icon{color:#9579d1!important}[_nghost-%COMP%] .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container:hover .ant-steps-item-content .ant-steps-item-title{color:#9579d1!important}[_nghost-%COMP%] .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container:hover .ant-steps-item-content .ant-steps-item-description{color:#9579d1!important}']}),i})()},6018:(Se,k,n)=>{n.d(k,{X:()=>O});var s=n(36057),e=n(94650),o=n(36895),t=n(47044),v=n(47423),r=n(65681),c=n(32925);function C(N,L){if(1&N&&(e._UZ(0,"i",5),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate")),2&N){const i=e.oxw(2);e.s9C("nzType",i.geocodeStatus===i.GeocodeState.SEARCHING?"loading":i.geocodeStatus===i.GeocodeState.FOUND?"check":"close"),e.xp6(1),e.hij(" ",i.geocodeStatus===i.GeocodeState.SEARCHING?e.lcZ(2,2,"COMMON.FORM.ADDRESS.SEARCH.SEARCHING"):i.geocodeStatus===i.GeocodeState.FOUND?e.lcZ(3,4,"COMMON.FORM.ADDRESS.SEARCH.FOUND"):e.lcZ(4,6,"COMMON.FORM.ADDRESS.SEARCH.NOT_FOUND")," ")}}const u=function(N,L){return{"d-sm-none ml-auto searchLabel":N,"d-sm-inline-flex d-none align-items-center justify-content-center ml-2 h-100":L}};
1913function m(N,L){if(1&N&&(e.TgZ(0,"span",2),e.YNc(1,C,5,8,"ng-template",null,3,e.W1O),e._UZ(3,"nz-spin",4),e.qZA()),2&N){const i=e.MAs(2),M=e.oxw();e.Q6J("ngClass",e.WLB(6,u,"small"===M.size,"large"===M.size)),e.xp6(3),e.MT6("","large"===M.size?"mb-1":""," searchSpinner ",M.geocodeStatus===M.GeocodeState.FOUND?"found-geocode":M.geocodeStatus===M.GeocodeState.NOT_FOUND?"not-found-geocode":"",""),e.Q6J("nzIndicator",i)}}function a(N,L){if(1&N&&(e._UZ(0,"i",5),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.ALo(4,"translate")),2&N){const i=e.oxw(2);e.s9C("nzType",i.geocodeStatus===i.GeocodeState.SEARCHING?"loading":i.geocodeStatus===i.GeocodeState.FOUND?"check":"close"),e.xp6(1),e.hij(" ",i.geocodeStatus===i.GeocodeState.SEARCHING?e.lcZ(2,2,"COMMON.FORM.ADDRESS.SEARCH.SEARCHING"):i.geocodeStatus===i.GeocodeState.FOUND?e.lcZ(3,4,"COMMON.FORM.ADDRESS.SEARCH.FOUND"):e.lcZ(4,6,"COMMON.FORM.ADDRESS.SEARCH.NOT_FOUND"),"")}}function f(N,L){if(1&N&&(e.TgZ(0,"span",6),e.YNc(1,a,5,8,"ng-template",null,3,e.W1O),e._UZ(3,"nz-spin",4),e.qZA()),2&N){const i=e.MAs(2),M=e.oxw();e.xp6(3),e.Gre("searchSpinner ",M.geocodeStatus===M.GeocodeState.FOUND?"found-geocode":M.geocodeStatus===M.GeocodeState.NOT_FOUND?"not-found-geocode":"",""),e.Q6J("nzIndicator",i)}}let O=(()=>{class N{constructor(){this.size="large",this.GeocodeState=s.tm}}return N.\u0275fac=function(i){return new(i||N)},N.\u0275cmp=e.Xpm({type:N,selectors:[["app-geocode-indicatior"]],inputs:{size:"size",geocodeStatus:"geocodeStatus"},decls:2,vars:2,consts:[[3,"ngClass",4,"ngIf"],["class","smallSearchLabel align-items-center justify-content-center mt-2",4,"ngIf"],[3,"ngClass"],["indicatorTemplate",""],["nzSimple","",3,"nzIndicator"],["nz-icon","",3,"nzType"],[1,"smallSearchLabel","align-items-center","justify-content-center","mt-2"]],template:function(i,M){1&i&&(e.YNc(0,m,4,9,"span",0),e.YNc(1,f,4,4,"span",1)),2&i&&(e.Q6J("ngIf",M.geocodeStatus&&M.geocodeStatus!==M.GeocodeState.DEFAULT),e.xp6(1),e.Q6J("ngIf","large"===M.size&&M.geocodeStatus&&M.geocodeStatus!==M.GeocodeState.DEFAULT))},dependencies:[o.mk,o.O5,t.w,v.Ls,r.W,c.X$],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}@media (max-width: 350px){.searchLabel[_ngcontent-%COMP%]{display:none!important}.smallSearchLabel[_ngcontent-%COMP%]{display:flex}}@media (min-width: 349.98px){.smallSearchLabel[_ngcontent-%COMP%]{display:none}}.searchSpinner[_ngcontent-%COMP%] .ant-spin{color:#53535f}.searchSpinner[_ngcontent-%COMP%] .ant-spin .anticon{color:#9579d1}.searchSpinner.found-geocode[_ngcontent-%COMP%] .ant-spin{color:#92ddea!important}.searchSpinner.found-geocode[_ngcontent-%COMP%] .ant-spin .anticon{color:#92ddea!important}.searchSpinner.not-found-geocode[_ngcontent-%COMP%] .ant-spin{color:#de4436!important}.searchSpinner.not-found-geocode[_ngcontent-%COMP%] .ant-spin .anticon{color:#de4436!important}']}),N})()},45298:(Se,k,n)=>{n.d(k,{Y:()=>L});var s=n(61135),e=n(94650),o=n(36895),t=n(8472); 1914/* 1915 * @license 1916 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1917 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1918 *
1919 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1920 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1921 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1922 * trade secret or copyright law. 1923 * 1924 * Dissemination of this information or reproduction of this material is strictly forbidden 1925 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1926 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1927 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1928 * explicitly covering such access. 1929 * 1930 * The copyright notice above does not evidence any actual or intended publication or disclosure 1931 * of this source code, which includes information that is confidential and/or proprietary, 1932 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1933 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1934 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1935 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1936 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1937 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1938 * IN WHOLE OR IN PART. 1939 */function v(i,M){if(1&i&&(e.ynx(0),e._UZ(1,"asl-google-signin-button",3),e.BQk()),2&i){const R=e.oxw(3);e.xp6(1),e.s9C("locale",R.currentLanguage),e.s9C("width",R.innerWidth)}}function r(i,M){if(1&i&&(e.ynx(0),e._UZ(1,"asl-google-signin-button",3),e.BQk()),2&i){const R=e.oxw(3);e.xp6(1),e.s9C("locale",R.currentLanguage),e.s9C("width",R.innerWidth)}}function c(i,M){if(1&i&&(e.ynx(0),e.YNc(1,v,2,2,"ng-container",0),e.YNc(2,r,2,2,"ng-container",0),e.BQk()),2&i){const R=e.oxw(2);e.xp6(1),e.Q6J("ngIf","center"===R.logo_alignment),e.xp6(1),e.Q6J("ngIf","left"===R.logo_alignment)}}function C(i,M){if(1&i&&(e.ynx(0),e._UZ(1,"asl-google-signin-button",4),e.BQk()),2&i){const R=e.oxw(3);e.xp6(1),e.s9C("locale",R.currentLanguage),e.s9C("width",R.innerWidth)}}function u(i,M){if(1&i&&(e.ynx(0),e._UZ(1,"asl-google-signin-button",4),e.BQk()),2&i){const R=e.oxw(3);e.xp6(1),e.s9C("locale",R.currentLanguage),e.s9C("width",R.innerWidth)}}function m(i,M){if(1&i&&(e.ynx(0),e.YNc(1,C,2,2,"ng-container",0),e.YNc(2,u,2,2,"ng-container",0),e.BQk()),2&i){const R=e.oxw(2);e.xp6(1),e.Q6J("ngIf","center"===R.logo_alignment),e.xp6(1),e.Q6J("ngIf","left"===R.logo_alignment)}}function a(i,M){if(1&i&&(e.ynx(0),e._UZ(1,"asl-google-signin-button",5),e.BQk()),2&i){const R=e.oxw(3);e.xp6(1),e.s9C("locale",R.currentLanguage),e.s9C("width",R.innerWidth)}}function f(i,M){if(1&i&&(e.ynx(0),e._UZ(1,"asl-google-signin-button",5),e.BQk()),2&i){const R=e.oxw(3);e.xp6(1),e.s9C("locale",R.currentLanguage),e.s9C("width",R.innerWidth)}}function O(i,M){if(1&i&&(e.ynx(0),e.YNc(1,a,2,2,"ng-container",0),e.YNc(2,f,2,2,"ng-container",0),e.BQk()),2&i){const R=e.oxw(2);e.xp6(1),e.Q6J("ngIf","center"===R.logo_alignment),e.xp6(1),e.Q6J("ngIf","left"===R.logo_alignment)}}function N(i,M){if(1&i&&(e.ynx(0)(1,1),e.YNc(2,c,3,2,"ng-container",2),e.YNc(3,m,3,2,"ng-container",2),e.YNc(4,O,3,2,"ng-container",2),e.BQk()()),2&i){const R=e.oxw();e.xp6(1),e.Q6J("ngSwitch",R.size),e.xp6(1),e.Q6J("ngSwitchCase","small"),e.xp6(1),e.Q6J("ngSwitchCase","medium"),e.xp6(1),e.Q6J("ngSwitchCase","large")}}let L=(()=>{class i{constructor(R){this.changeDetectorRef=R,this.innerWidth="300px",this.visible=!0,this.isVisible=new s.X(!0)}ngOnInit(){this.width&&(this.width<=200&&(this.innerWidth="200px"),this.width>=400&&(this.innerWidth="400px"))}ngOnChanges(R){const l=R.width,h=R.currentLanguage;l&&l.currentValue>=200&&l.currentValue<=400&&0!==Math.abs(l.currentValue-l.previousValue)&&(this.innerWidth=Math.round(l.currentValue)+"px",this.reinitChildComponent()),h&&(this.currentLanguage=h.currentValue,this.reinitChildComponent())}reinitChildComponent(){this.visible=!1,this.changeDetectorRef.detectChanges(),this.visible=!0,this.changeDetectorRef.detectChanges()}}return i.\u0275fac=function(R){return new(R||i)(e.Y36(e.sBO))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-google-button"]],inputs:{width:"width",size:"size",currentLanguage:"currentLanguage",logo_alignment:"logo_alignment"},features:[e.TTD],decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","standard","size","small","logo_alignment","center",3,"locale","width"],["type","standard","size","medium","logo_alignment","center",3,"locale","width"],["type","standard","size","large","logo_alignment","center",3,"locale","width"]],template:function(R,l){1&R&&e.YNc(0,N,5,4,"ng-container",0),2&R&&e.Q6J("ngIf",l.visible)},dependencies:[o.O5,o.RF,o.n9,t.TI]}),i})()},69287:(Se,k,n)=>{n.d(k,{Z:()=>o});var s=n(94650),e=n(32925);let o=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-matchmaker-scheduler-information-data"]],decls:12,vars:12,consts:[[1,"m-l-20"],[1,"m-b-0",3,"innerHTML"],[1,"font-size-12",3,"innerHTML"]],template:function(r,c){1&r&&(s.TgZ(0,"ul",0)(1,"li"),s._UZ(2,"p",1),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"li"),s._UZ(5,"p",1),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"li"),s._UZ(8,"p",1),s.ALo(9,"translate"),s.qZA()(),s._UZ(10,"p",2),s.ALo(11,"translate")),2&r&&(s.xp6(2),s.Q6J("innerHTML",s.lcZ(3,4,"LAWYER.SCHEDULER.HOW_TO.DESCRIPTION.LIST.1"),s.oJD),s.xp6(3),s.Q6J("innerHTML",s.lcZ(6,6,"LAWYER.SCHEDULER.HOW_TO.DESCRIPTION.LIST.2"),s.oJD),s.xp6(3),s.Q6J("innerHTML",s.lcZ(9,8,"LAWYER.SCHEDULER.HOW_TO.DESCRIPTION.LIST.3"),s.oJD),s.xp6(2),s.Q6J("innerHTML",s.lcZ(11,10,"LAWYER.SCHEDULER.HOW_TO.DESCRIPTION.FOOTNOTE"),s.oJD))},dependencies:[e.X$],encapsulation:2}),t})()},92961:(Se,k,n)=>{n.d(k,{BN:()=>re,P4:()=>Ee,PR:()=>le});var s=n(94650),e=n(69751),o=n(70930),t=n(37340),v=n(78321),r=n(49651),c=n(32925),C=n(36895),u=n(66616),m=n(47044),a=n(21811),f=n(73325),O=n(29562),N=n(47423),L=n(45144),i=n(5233); 1940/* 1941 * @license 1942 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1943 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1944 *
1945 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1946 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1947 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1948 * trade secret or copyright law. 1949 * 1950 * Dissemination of this information or reproduction of this material is strictly forbidden 1951 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1952 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1953 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1954 * explicitly covering such access. 1955 * 1956 * The copyright notice above does not evidence any actual or intended publication or disclosure 1957 * of this source code, which includes information that is confidential and/or proprietary, 1958 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1959 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1960 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1961 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1962 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1963 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1964 * IN WHOLE OR IN PART. 1965 */function M(q,fe){1&q&&s.GkF(0,9)}function R(q,fe){if(1&q){const de=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){s.CHM(de);const Ve=s.oxw();return s.KtG(Ve.save())}),s.ALo(1,"as"),s.YNc(2,M,1,0,"ng-container",8),s.qZA()}if(2&q){const de=s.oxw(),it=s.MAs(3);s.ekj("ant-btn-secondary","secondary"===de.nzType)("ant-btn-tertiary","tertiary"===de.nzType)("ant-btn-quaternary","quaternary"===de.nzType)("ant-btn-quinary","quinary"===de.nzType),s.Q6J("@smartButtonState",de.state===de.buttonState.Default?"Default":de.state===de.buttonState.Working?"Working":de.state===de.buttonState.Success?"Success":"Failed")("nzType",de.isNzButtonType?s.xi3(1,16,de.nzType,de.NzButtonType):null)("nzGhost",de.nzGhost)("nzSize",de.nzSize)("nzDanger",de.nzDanger)("nzLoading",de.state===de.buttonState.Working)("disabled",de.disabled),s.xp6(2),s.Q6J("ngTemplateOutlet",it)}}function l(q,fe){1&q&&s.GkF(0,9)}function h(q,fe){if(1&q){const de=s.EpF();s.TgZ(0,"button",10),s.NdJ("click",function(){s.CHM(de);const Ve=s.oxw();return s.KtG(Ve.disabled?null:Ve.save())}),s.YNc(1,l,1,0,"ng-container",8),s.qZA()}if(2&q){const de=s.oxw(),it=s.MAs(3);s.ekj("color-primary","primary"===de.nzType)("color-secondary","secondary"===de.nzType)("color-tertiary","tertiary"===de.nzType)("color-quaternary","quaternary"===de.nzType)("color-quinary","quinary"===de.nzType),s.Q6J("ngClass",de.fontWeight?"font-weight-500":""),s.xp6(1),s.Q6J("ngTemplateOutlet",it)}}function D(q,fe){1&q&&s._UZ(0,"i",17)}function B(q,fe){if(1&q&&s._UZ(0,"i",18),2&q){const de=s.oxw(2);s.Q6J("nzType",de.defaultIcon)}}function K(q,fe){1&q&&s._UZ(0,"i",19)}function b(q,fe){1&q&&s._UZ(0,"i",20)}function w(q,fe){if(1&q&&(s._UZ(0,"span",21),s.ALo(1,"safe"),s.ALo(2,"as")),2&q){const de=s.oxw(2);s.Q6J("innerHTML",s.xi3(1,1,s.xi3(2,4,de.text,"string"),"html"),s.oJD)}}function X(q,fe){1&q&&s.GkF(0,9)}function Y(q,fe){if(1&q&&(s.ynx(0),s.YNc(1,X,1,0,"ng-container",8),s.ALo(2,"as"),s.BQk()),2&q){const de=s.oxw(2);s.xp6(1),s.Q6J("ngTemplateOutlet",s.xi3(2,1,de.text,de.TemplateRefAny))}}function Z(q,fe){if(1&q&&(s.YNc(0,D,1,0,"i",11),s.YNc(1,B,1,1,"i",12),s.YNc(2,K,1,0,"i",13),s.YNc(3,b,1,0,"i",14),s.TgZ(4,"span",15),s.YNc(5,w,3,7,"span",16),s.YNc(6,Y,3,4,"ng-container",3),s.qZA()),2&q){const de=s.oxw();s.Q6J("ngIf",de.state===de.buttonState.Working&&(de.showAsLink||de.showAsSelection)),s.xp6(1),s.Q6J("ngIf",de.defaultIcon&&de.state===de.buttonState.Default),s.xp6(1),s.Q6J("ngIf",de.state===de.buttonState.Success),s.xp6(1),s.Q6J("ngIf",de.state===de.buttonState.Failed),s.xp6(2),s.Q6J("ngIf",!de.isTextTemplate),s.xp6(1),s.Q6J("ngIf",de.isTextTemplate)}}function G(q,fe){1&q&&s._UZ(0,"i",17)}function Q(q,fe){if(1&q&&s._UZ(0,"i",26),2&q){const de=s.oxw(2);s.Q6J("nzTwotoneColor",de.ColorSettings.Secondary)}}function V(q,fe){1&q&&s._UZ(0,"i",27),2&q&&s.Q6J("nzTwotoneColor","#de4436")}function se(q,fe){if(1&q&&(s.TgZ(0,"div")(1,"a",22),s._uU(2),s.ALo(3,"translate"),s._UZ(4,"i",23),s.qZA(),s.YNc(5,G,1,0,"i",11),s.YNc(6,Q,1,1,"i",24),s.YNc(7,V,1,1,"i",25),s.qZA()),2&q){const de=s.oxw(),it=s.MAs(6);s.xp6(1),s.Q6J("nzDropdownMenu",it)("nzDisabled",de.disabled),s.xp6(1),s.hij(" ",s.lcZ(3,6,de.selectedOption)," "),s.xp6(3),s.Q6J("ngIf",de.state===de.buttonState.Working&&(de.showAsLink||de.showAsSelection)),s.xp6(1),s.Q6J("ngIf",de.state===de.buttonState.Success),s.xp6(1),s.Q6J("ngIf",de.state===de.buttonState.Failed)}}function xe(q,fe){if(1&q){const de=s.EpF();
1965s.TgZ(0,"li",28),s.NdJ("click",function(){const W=s.CHM(de).$implicit,ee=s.oxw();return s.KtG(ee.selectOption(W))}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&q){const de=fe.$implicit,it=s.oxw();s.Tol(de===it.selectedOption?"cursor-default":""),s.Q6J("nzDisabled",de===it.selectedOption),s.xp6(1),s.hij(" ",s.lcZ(2,5,de)," ")}}let Ee=(()=>{class q{constructor(de,it,Ve){this.nzMessageService=de,this.translate=it,this.changeDetectorRef=Ve,this.buttonState=re,this.String=String,this.ColorSettings=v.y,this.nzType="primary",this.state=this.buttonState.Default,this.nzGhost=!1,this.nzDanger=!1,this.nzTextKeys=le.getDefault(),this.disabled=!1,this.nzSize="default",this.defaultFunctionParameters=[],this.stickResult=!0,this.unstickTrigger=0,this.backToDefaultStateTime=3e3,this.showAsLink=!1,this.showAsSelection=!1,this.selectedOption="",this.selectOptions=[],this.showMessage=!1,this.fontWeight=!1,this.selectedOptionChange=new s.vpe,this.previousSelectedOption="",this.text="",this.isTextTemplate=!1,this.code=0,this.TemplateRefAny=null,this.NzButtonType=null,this.isNzButtonType=!0}static getSuccessfulSubscriber(){return new e.y(it=>{setTimeout(()=>it.complete(),500)}).subscribe()}static getSuccessfulPromise(){return console.log("Changes were already saved!"),Promise.resolve()}ngOnInit(){this.previousSelectedOption=this.selectedOption,this.translate.onLangChange.subscribe(de=>{this.changeText(!0)}),this.changeText()}ngOnChanges(de){(de.unstickTrigger||de.backToDefaultStateCondition&&this.backToDefaultStateCondition)&&this.switchToDefaultState(),de.runFunction&&this.saveWithFunction(this.runFunction),de.nzTextKeys&&this.changeText(),de.selectedOption&&(this.previousSelectedOption=this.selectedOption),de.nzType&&this.checkNzType()}saveWithFunction(de,it){if(de){let Ve;this.state=this.buttonState.Working,this.changeText(),Ve=de instanceof o.Lv||de instanceof Promise?de:de===this.defaultFunction&&this.defaultFunctionParameters&&Array.isArray(this.defaultFunctionParameters)?de(...this.showAsSelection?[it]:[],...this.defaultFunctionParameters):de(),Ve&&(Ve instanceof o.Lv||Ve instanceof Array&&Ve.some(W=>W instanceof o.Lv))?Ve instanceof Array?Ve.forEach(W=>{W&&(W.complete=()=>{this.setSaved(!0)},W.error=ee=>{ee?(console.log(ee),this.setSaved(!1,ee.status)):this.setSaved(!1,null)})}):(Ve.complete=()=>{this.setSaved(!0)},Ve.error=W=>{W?(console.log(W),this.setSaved(!1,W.status)):this.setSaved(!1,null)}):Ve&&(Ve instanceof Promise||Ve instanceof Array&&Ve.some(W=>W instanceof Promise))?Ve instanceof Array?Ve.forEach(W=>{W&&W.then(()=>{this.setSaved(!0)},ee=>{ee?(console.log(ee),this.setSaved(!1,ee.status)):this.setSaved(!1,null)})}):Ve.then(()=>{this.setSaved(!0)},W=>{W?(console.log(W),this.setSaved(!1,W.status)):this.setSaved(!1,null)}):this.setSaved(!1)}}save(){this.saveWithFunction(this.defaultFunction)}changeText(de=!1){this.text=this.state!==this.buttonState.Failed?this.nzTextKeys[this.state]:null==this.code?this.nzTextKeys[this.state]instanceof Map?this.nzTextKeys[this.state].get(0):this.nzTextKeys[this.state]:this.nzTextKeys[this.state]instanceof Map?this.nzTextKeys[this.state].has(this.code)?this.nzTextKeys[this.state].get(this.code):this.nzTextKeys[this.state].get(0):this.nzTextKeys[this.state],this.isTextTemplate=this.text instanceof s.Rgc,this.isTextTemplate||(this.text=this.nzTextKeyParameters?this.translate.instant(this.text,this.nzTextKeyParameters):this.translate.instant(this.text)),this.showMessage&&!de&&(this.state===re.Failed?this.nzMessageService.error(this.text):this.state===re.Success&&this.nzMessageService.success(this.text)),this.changeDetectorRef.detectChanges()}setSaved(de,it){this.code=it,de?(this.state=this.buttonState.Success,this.changeText()):(this.state=this.buttonState.Failed,this.changeText(),this.showAsSelection&&(this.selectedOption=this.previousSelectedOption)),this.showAsSelection&&this.selectedOptionChange.emit(this.selectedOption),this.stickResult||(this.backToDefaultStateCondition?this.switchToDefaultState():setTimeout(()=>{this.switchToDefaultState()},this.backToDefaultStateTime))}switchToDefaultState(){this.state!==this.buttonState.Working&&(this.state=this.buttonState.Default,this.changeText())}selectOption(de){de!==this.selectedOption&&(this.previousSelectedOption=this.selectedOption,this.selectedOption=de,this.saveWithFunction(this.defaultFunction,de))}checkNzType(){this.isNzButtonType=!["secondary","tertiary","quaternary","quinary"].includes(this.nzType)}}return q.\u0275fac=function(de){return new(de||q)(s.Y36(r.dD),s.Y36(c.sK),s.Y36(s.sBO))},q.\u0275cmp=s.Xpm({type:q,selectors:[["app-multi-state-button"]],inputs:{nzType:"nzType",state:"state",nzGhost:"nzGhost",nzDanger:"nzDanger",nzTextKeys:"nzTextKeys",nzTextKeyParameters:"nzTextKeyParameters",disabled:"disabled",defaultFunction:"defaultFunction",defaultIcon:"defaultIcon",runFunction:"runFunction",nzSize:"nzSize",defaultFunctionParameters:"defaultFunctionParameters",stickResult:"stickResult",unstickTrigger:"unstickTrigger",backToDefaultStateTime:"backToDefaultStateTime",backToDefaultStateCondition:"backToDefaultStateCondition",showAsLink:"showAsLink",showAsSelection:"showAsSelection",selectedOption:"selectedOption",selectOptions:"selectOptions",showMessage:"showMessage",fontWeight:"fontWeight"},outputs:{selectedOptionChange:"selectedOptionChange"},features:[s.TTD],decls:9,vars:4,consts:[["nz-button","","class","smartButton",3,"ant-btn-secondary","ant-btn-tertiary","ant-btn-quaternary","ant-btn-quinary","nzType","nzGhost","nzSize","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nzType","link","class","smartLink text-left border-0 background-color-unset text-decoration-none p-0",3,"color-primary","color-secondary","color-tertiary","color-quaternary","color-quinary","ngClass","click",4,"ngIf"],["buttonContent",""],[4,"ngIf"],["menu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"nzDisabled","class","click",4,"ngFor","ngForOf"],["nz-button","",1,"smartButton",3,"nzType","nzGhost","nzSize","nzDanger","nzLoading","disabled","click"],["class","template",4,"ngTemplateOutlet"],[1,"template"],["nzType","link",1,"smartLink","text-left","border-0","background-color-unset","text-decoration-none","p-0",3,"ngClass","click"],["nz-icon","","nzType","loading","nzTheme","outline",4,"ngIf"],["nz-icon","","nzTheme","outline",3,"nzType",4,"ngIf"],["nz-icon","","nzType","check","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","close","nzTheme","outline",4,"ngIf"],[1,"contentSpan"],[3,"innerHTML",4,"ngIf"],["nz-icon","","nzType","loading","nzTheme","outline"],["nz-icon","","nzTheme","outline",3,"nzType"],["nz-icon","","nzType","check","nzTheme","outline"],["nz-icon","","nzType","close","nzTheme","outline"],[3,"innerHTML"],["nz-dropdown","","nzTrigger","click",1,"mr-2",3,"nzDropdownMenu","nzDisabled"],["nz-icon","","nzType","down"],["nz-icon","","nzType","check-circle","nzTheme","twotone",3,"nzTwotoneColor",4,"ngIf"],["nz-icon","","nzType","close-circle","nzTheme","twotone",3,"nzTwotoneColor",4,"ngIf"],["nz-icon","","nzType","check-circle","nzTheme","twotone",3,"nzTwotoneColor"],["nz-icon","","nzType","close-circle","nzTheme","twotone",3,"nzTwotoneColor"],["nz-menu-item","",3,"nzDisabled","click"]],template:function(de,it){1&de&&(s.YNc(0,R,3,19,"button",0),s.YNc(1,h,2,12,"button",1),s.YNc(2,Z,7,6,"ng-template",null,2,s.W1O),s.YNc(4,se,8,8,"div",3),s.TgZ(5,"nz-dropdown-menu",null,4)(7,"ul",5),s.YNc(8,xe,3,7,"li",6),s.qZA()()),2&de&&(s.Q6J("ngIf",!it.showAsLink&&!it.showAsSelection),s.xp6(1),s.Q6J("ngIf",it.showAsLink),s.xp6(3),s.Q6J("ngIf",it.showAsSelection),s.xp6(4),s.Q6J("ngForOf",it.selectOptions))},dependencies:[C.mk,C.sg,C.O5,C.tP,u.ix,m.w,a.dQ,f.wO,f.r9,O.cm,O.Ws,O.RR,N.Ls,c.X$,L.j,i.y],styles:['@charset "UTF-8";.smartButton[_ngcontent-%COMP%]{height:auto;cursor:pointer;overflow:hidden;display:inline-flex;justify-content:center}.smartButton[_ngcontent-%COMP%] i{margin-top:auto;margin-bottom:auto;font-size:.875rem!important;line-height:1!important}.contentSpan[_ngcontent-%COMP%]{white-space:normal;max-height:100%;text-overflow:ellipsis;margin-top:auto;margin-bottom:auto;overflow:hidden}.ant-btn[_ngcontent-%COMP%] > .anticon[_ngcontent-%COMP%] + span[_ngcontent-%COMP%], .ant-btn[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] + .anticon[_ngcontent-%COMP%]{margin-left:8px}.ant-menu-item[_ngcontent-%COMP%] .ant-menu-item-icon[_ngcontent-%COMP%] + span[_ngcontent-%COMP%], .ant-menu-item[_ngcontent-%COMP%] .anticon[_ngcontent-%COMP%] + span[_ngcontent-%COMP%], .ant-menu-submenu-title[_ngcontent-%COMP%] .ant-menu-item-icon[_ngcontent-%COMP%] + span[_ngcontent-%COMP%], .ant-menu-submenu-title[_ngcontent-%COMP%] .anticon[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{margin-left:10px;opacity:1;transition:opacity .3s cubic-bezier(.645,.045,.355,1),margin .3s,color .3s}.smartLink[_ngcontent-%COMP%] > .anticon[_ngcontent-%COMP%] + span[_ngcontent-%COMP%], .smartLink[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] + .anticon[_ngcontent-%COMP%]{margin-left:10px}'],data:{animation:[(0,t.X$)("smartButtonState",[(0,t.SB)("Default",(0,t.oB)({width:"*",height:"*"})),(0,t.SB)("Working",(0,t.oB)({width:"*",height:"*"})),(0,t.SB)("Success",(0,t.oB)({width:"*",height:"*"})),(0,t.SB)("Failed",(0,t.oB)({width:"*",height:"*"})),(0,t.eR)("Default => Working, Working => Success, Success => Default",[(0,t.jt)("300ms 300ms"),(0,t.jt)("300ms 300ms"),(0,t.jt)("300ms 2600ms")]),(0,t.eR)("Default => Working, Working => Failed, Failed => Default",[(0,t.jt)("300ms 300ms"),(0,t.jt)("300ms 300ms"),(0,t.jt)("300ms 2600ms")]),(0,t.eR)("Success => Working",[(0,t.jt)("300ms 300ms")]),(0,t.eR)("Failed => Working",[(0,t.jt)("300ms 300ms")])])]}}),q})();var re=(()=>{return(q=re||(re={}))[q.Default=0]="Default",q[q.Working=1]="Working",q[q.Success=2]="Success",q[q.Failed=3]="Failed",re;var q})();class le{constructor(fe,de,it,Ve){this[re.Default]=fe,this[re.Working]=de,this[re.Success]=it,this[re.Failed]=Ve}static getDefault(){return new le("COMMON.SMART_BUTTON.STATES.SAVE","COMMON.SMART_BUTTON.STATES.SAVING","COMMON.SMART_BUTTON.STATES.SAVED","COMMON.SMART_BUTTON.STATES.FAILED")}}},86768:(Se,k,n)=>{n.d(k,{c:()=>b});var s=n(97582),e=n(44569),o=n(37340),t=n(97185),v=n(5963),r=n(44224),c=n(94650),C=n(75489),u=n(36895),m=n(74383),a=n(47044),f=n(47423),O=n(32925),N=n(35232); 1966/* 1967 * @license 1968 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1969 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1970 *
1971 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1972 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1973 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 1974 * trade secret or copyright law. 1975 * 1976 * Dissemination of this information or reproduction of this material is strictly forbidden 1977 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 1978 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 1979 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 1980 * explicitly covering such access. 1981 * 1982 * The copyright notice above does not evidence any actual or intended publication or disclosure 1983 * of this source code, which includes information that is confidential and/or proprietary, 1984 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 1985 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 1986 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 1987 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 1988 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 1989 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 1990 * IN WHOLE OR IN PART. 1991 */function L(w,X){if(1&w&&c._UZ(0,"nz-avatar",7),2&w){const Y=c.oxw();c.Tol(Y.message?"imgStylingWithMessage":"imgStylingNoMessage"),c.Q6J("nzSize",35)("nzSrc",Y.imgSrc)}}function i(w,X){if(1&w&&c._UZ(0,"i",8),2&w){const Y=c.oxw();c.Tol(Y.message?"imgStylingWithMessage":"imgStylingNoMessage"),c.Q6J("nzType",Y.iconType)}}function M(w,X){if(1&w){const Y=c.EpF();c.TgZ(0,"button",9),c.NdJ("click",function(){c.CHM(Y);const G=c.oxw();return c.KtG(G.triggerAction())}),c.TgZ(1,"span",10),c._UZ(2,"i",11),c.qZA()()}}function R(w,X){if(1&w&&(c.ynx(0),c._uU(1),c.BQk()),2&w){const Y=c.oxw(2);c.xp6(1),c.hij("[",Y.duplicatesCount+1,"]")}}function l(w,X){if(1&w&&(c.TgZ(0,"div"),c._uU(1),c.YNc(2,R,2,1,"ng-container",6),c.qZA()),2&w){const Y=c.oxw();c.Tol(Y.options.titleClass),c.uIk("aria-label",Y.title),c.xp6(1),c.hij(" ",Y.title," "),c.xp6(1),c.Q6J("ngIf",Y.duplicatesCount)}}function h(w,X){if(1&w&&c._UZ(0,"div",12),2&w){const Y=c.oxw();c.Tol(Y.options.messageClass),c.Q6J("innerHTML",Y.message,c.oJD)}}function D(w,X){if(1&w&&(c.TgZ(0,"div",13),c._uU(1),c._UZ(2,"br"),c.TgZ(3,"a",14),c.ALo(4,"localizeRoute"),c._uU(5),c.ALo(6,"translate"),c.qZA()()),2&w){const Y=c.oxw();c.Tol(Y.options.messageClass),c.uIk("aria-label",Y.message),c.xp6(1),c.hij(" ",Y.message,""),c.xp6(2),c.Q6J("href",c.lcZ(4,6,"/"+Y.PageRoutes.landingContact),c.LSH),c.xp6(2),c.Oqu(c.lcZ(6,8,"COMMON.CONTACT_US_NOTIF"))}}function B(w,X){if(1&w&&(c.TgZ(0,"div",13)(1,"a",14),c.ALo(2,"localizeRoute"),c._uU(3),c.ALo(4,"translate"),c.qZA()()),2&w){const Y=c.oxw();c.Tol(Y.options.messageClass),c.uIk("aria-label",Y.PageRoutes.landingContact),c.xp6(1),c.Q6J("href",c.lcZ(2,5,"/"+Y.PageRoutes.landingContact),c.LSH),c.xp6(2),c.Oqu(c.lcZ(4,7,"COMMON.CONTACT_US_NOTIF"))}}function K(w,X){if(1&w&&(c.TgZ(0,"div"),c._UZ(1,"div",15),c.qZA()),2&w){const Y=c.oxw();c.xp6(1),c.Udp("width",Y.width+"%")}}let b=class extends t.FN{constructor(X,Y,Z){super(X,Y),this.toastrService=X,this.toastPackage=Y,this.eventService=Z,this.PageRoutes=e.d}triggerAction(){1===this.toastrService.currentlyActive&&(0,v.H)(100).pipe((0,r.t)(this)).subscribe(X=>{this.eventService.lastNotifClicked.emit(!0)}),this.remove(),this.toastPackage.triggerAction()}};b.\u0275fac=function(X){return new(X||b)(c.Y36(t._W),c.Y36(t.PR),c.Y36(C.P))},b.\u0275cmp=c.Xpm({type:b,selectors:[["app-notification"]],inputs:{imgSrc:"imgSrc",iconType:"iconType",relatedID:"relatedID"},features:[c.qOj],decls:8,vars:8,consts:[["nzIcon","user",3,"nzSize","nzSrc","class",4,"ngIf"],["nz-icon","","nzTheme","outline","style","font-size: 35px",3,"nzType","class",4,"ngIf"],["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["nzIcon","user",3,"nzSize","nzSrc"],["nz-icon","","nzTheme","outline",2,"font-size","35px",3,"nzType"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["nz-icon","","nzType","close","nzTheme","outline",2,"font-size","14px"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],["target","_blank","rel","noopener noreferrer",1,"contactUs","open-link-white-16",3,"href"],[1,"toast-progress"]],template:function(X,Y){1&X&&(c.YNc(0,L,1,5,"nz-avatar",0),c.YNc(1,i,1,4,"i",1),c.YNc(2,M,3,0,"button",2),c.YNc(3,l,3,5,"div",3),c.YNc(4,h,1,3,"div",4),c.YNc(5,D,7,10,"div",5),c.YNc(6,B,5,9,"div",5),c.YNc(7,K,2,2,"div",6)),2&X&&
1991(c.Q6J("ngIf",Y.imgSrc),c.xp6(1),c.Q6J("ngIf",!Y.imgSrc&&Y.iconType),c.xp6(1),c.Q6J("ngIf",Y.options.closeButton),c.xp6(1),c.Q6J("ngIf",Y.title),c.xp6(1),c.Q6J("ngIf",Y.message&&Y.options.enableHtml),c.xp6(1),c.Q6J("ngIf",Y.message&&!Y.options.enableHtml),c.xp6(1),c.Q6J("ngIf",!Y.message&&!Y.options.enableHtml),c.xp6(1),c.Q6J("ngIf",Y.options.progressBar))},dependencies:[u.O5,m.Dz,a.w,f.Ls,O.X$,N.d],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.title-styling[_ngcontent-%COMP%]{font-size:18px;font-weight:500;line-height:24px;margin-bottom:8px}.message-styling[_ngcontent-%COMP%]{font-size:14px;line-height:1.5715;font-weight:400}.contactUs[_ngcontent-%COMP%]{display:none}.showContactUs[_ngcontent-%COMP%] .contactUs[_ngcontent-%COMP%]{display:inline!important;display:initial!important;text-decoration:underline}.imgStylingWithMessage[_ngcontent-%COMP%]{position:absolute;top:35%;left:12.5px}.imgStylingNoMessage[_ngcontent-%COMP%]{position:absolute;left:12.5px}'],data:{animation:[(0,o.X$)("flyInOut",[(0,o.SB)("inactive",(0,o.oB)({opacity:0})),(0,o.SB)("active",(0,o.oB)({opacity:1})),(0,o.SB)("removed",(0,o.oB)({opacity:0})),(0,o.eR)("inactive => active",(0,o.jt)("{{ easeTime }}ms {{ easing }}")),(0,o.eR)("active => removed",(0,o.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),b=(0,s.gn)([(0,r.c)()],b)},22525:(Se,k,n)=>{n.d(k,{S:()=>_e});var s=n(97582),e=n(71997),o=n(92961),t=n(22971),v=n(38320),r=n(44224),c=n(36057),C=n(45218),u=n(94650),m=n(50211),a=n(87689),f=n(31495),O=n(25156),N=n(81404),L=n(39889),i=n(3674),M=n(75489),R=n(90735),l=n(61479),h=n(3417),D=n(32925); 1992/* 1993 * @license 1994 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 1995 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 1996 *
1997 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 1998 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 1999 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 2000 * trade secret or copyright law. 2001 * 2002 * Dissemination of this information or reproduction of this material is strictly forbidden 2003 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 2004 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 2005 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 2006 * explicitly covering such access. 2007 * 2008 * The copyright notice above does not evidence any actual or intended publication or disclosure 2009 * of this source code, which includes information that is confidential and/or proprietary, 2010 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 2011 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 2012 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 2013 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 2014 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 2015 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 2016 * IN WHOLE OR IN PART. 2017 */function B(F,ne){if(1&F&&u._UZ(0,"app-product-card",24),2&F){const U=u.oxw();u.Q6J("plan",U.clientStatus&&U.clientStatus.valueAddedTax!==U.VATValue.Standard&&U.netPlan?U.netPlan:U.plan)("planInd",U.planInd)("planDuration",U.planDuration)("price",U.clientStatus&&U.clientStatus.valueAddedTax!==U.VATValue.Standard?U.plan.netPrice:U.plan.price)("currency",U.plan.currency)("productImageUrl","assets/images/subscriptions/subscription-"+U.planInd+".svg")("productName",U.plan.translations[U.currentLanguageDashedServerFormat])("purchaseType",U.purchaseType)}}function K(F,ne){if(1&F&&u._UZ(0,"app-product-card",25),2&F){const U=u.oxw();u.Q6J("bundle",U.bundle)("purchaseType",U.purchaseType)("price",U.clientStatus&&U.clientStatus.valueAddedTax!==U.VATValue.Standard?U.bundle.netPrice:U.bundle.grossPrice)("currency",U.bundle.currency)("productImageUrl","assets/images/bundles/bundle-quota-"+U.bundle.quota+".svg")("productName",U.bundle.translations[U.currentLanguageDashedServerFormat])("purchaseType",U.purchaseType)}}function b(F,ne){if(1&F&&u._UZ(0,"app-product-card",26),2&F){const U=u.oxw();u.Q6J("purchaseType",U.purchaseType)("productName",U.productName)("price",U.clientStatus&&U.clientStatus.valueAddedTax!==U.VATValue.Standard&&U.netPrice?U.netPrice:U.price)("currency",U.currency)("productImageUrl",U.productImageUrl)}}function w(F,ne){if(1&F){const U=u.EpF();u.TgZ(0,"div",11)(1,"div",12)(2,"div",10)(3,"app-payment",27),u.NdJ("submitPaymentPromise",function(ct){u.CHM(U);
2017const ft=u.oxw();return u.KtG(ft.submitPaymentPromise(ct))})("unstickTrigger",function(){u.CHM(U);const ct=u.oxw();return u.KtG(ct.updateUnstickTrigger())})("isValidCardData",function(ct){u.CHM(U);const ft=u.oxw();return u.KtG(ft.validateCardData(ct))}),u.qZA()()()()}if(2&F){const U=u.oxw();u.Q6J("hidden",1!==U.currentStep),u.xp6(3),u.Q6J("isOnePage",!0)("price",U.purchaseType===U.PurchaseType.SUBSCRIPTION?U.clientStatus&&U.clientStatus.valueAddedTax!==U.VATValue.Standard&&U.netPlan&&U.netPlan.price?U.netPlan.price:U.plan.price:U.purchaseType===U.PurchaseType.BUNDLE?U.clientStatus&&U.clientStatus.valueAddedTax!==U.VATValue.Standard?U.toBundle.netPrice:U.toBundle.grossPrice:U.clientStatus&&U.clientStatus.valueAddedTax!==U.VATValue.Standard&&U.netPrice?U.netPrice:U.price)("currency",U.currency)("currentPaymentProvider",U.currentPaymentProvider)}}function X(F,ne){if(1&F){const U=u.EpF();u.TgZ(0,"button",28),u.NdJ("click",function(){u.CHM(U);const ct=u.oxw();return u.KtG(ct.changeCurrent(ct.currentStep-1))}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&F&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"CLIENT.ONE_PAGE.STEPS.PREVIOUS")," "))}function Y(F,ne){if(1&F){const U=u.EpF();u.TgZ(0,"app-multi-state-button",29),u.NdJ("click",function(){u.CHM(U);const ct=u.oxw();return u.KtG(ct.sendSubmitBilling())}),u.qZA()}if(2&F){const U=u.oxw();u.Q6J("nzType","primary")("runFunction",U.billingPromise)("nzGhost",!U.billingComponent||!U.billingComponent.billingForm||U.billingComponent.billingForm.invalid||!U.billingComponent.billingForm.get("address")||!U.billingComponent.billingForm.get("address").value||U.billingComponent.billingForm.get("address").value.invalid)("nzTextKeys",U.nextButtonText)("stickResult",!1)("unstickTrigger",U.unstickTrigger)}}function Z(F,ne){if(1&F){const U=u.EpF();u.TgZ(0,"app-multi-state-button",30),u.NdJ("click",function(){u.CHM(U);const ct=u.oxw();return u.KtG(ct.sendSubmitPayment())}),u.qZA()}if(2&F){const U=u.oxw();u.Q6J("nzType","primary")("runFunction",U.runFunction)("nzTextKeys",U.buttonText)("unstickTrigger",U.unstickTrigger)("disabled",!U.isValidCardData)}}const G=function(F,ne){return{amount:F,currency:ne}};function Q(F,ne){if(1&F&&(u._UZ(0,"app-payment-confirm",31),u.ALo(1,"translate"),u.ALo(2,"formatCurrencyName")),2&F){const U=u.oxw();u.Q6J("confirmText",u.xi3(1,5,U.confirmText,u.WLB(10,G,U.purchaseType===U.PurchaseType.SUBSCRIPTION?U.clientStatus&&U.clientStatus.valueAddedTax!==U.VATValue.Standard&&U.netPlan&&U.netPlan.price?U.netPlan.price:U.plan.price:U.purchaseType===U.PurchaseType.BUNDLE?U.clientStatus&&U.clientStatus.valueAddedTax!==U.VATValue.Standard?U.toBundle.netPrice:U.toBundle.grossPrice:U.clientStatus&&U.clientStatus.valueAddedTax!==U.VATValue.Standard&&U.netPrice?U.netPrice:U.price,u.lcZ(2,8,U.currency))))("purchaseType",U.purchaseType)("purchasedQuota",U.purchaseType===U.PurchaseType.SUBSCRIPTION?U.plan.quota:U.purchaseType===U.PurchaseType.BUNDLE?U.toBundle.quota:null)("showCheckoutNote",!0)("currentPaymentProvider",U.currentPaymentProvider)}}function V(F,ne){if(1&F&&u._UZ(0,"app-payment-info",32),2&F){const U=u.oxw();u.Q6J("currentPaymentProvider",U.currentPaymentProvider)}}function se(F,ne){if(1&F&&(u.TgZ(0,"div"),u._UZ(1,"app-feedback",33),u.qZA()),2&F){const U=u.oxw();u.xp6(1),u.Q6J("unit",U.FeedbackUnit.Onepage)("feature",U.FeedbackFeature.Modal)}}function xe(F,ne){if(1&F&&(u.TgZ(0,"div"),u._uU(1),u.qZA()),2&F){const U=u.oxw(3);u.xp6(1),u.Oqu(U.billingComponent.actBilling.name)}}function Ee(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij(" ",U.billingComponent.actBilling.firstName," ")}}function re(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij(" ",U.billingComponent.actBilling.lastName," ")}}function le(F,ne){if(1&F&&(u.TgZ(0,"div"),u.YNc(1,Ee,2,1,"span",34),u.YNc(2,re,2,1,"span",34),u.qZA()),2&F){const U=u.oxw(3);u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.firstName),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.lastName)}}function q(F,ne){if(1&F&&(u.TgZ(0,"div"),u._uU(1),u.qZA()),2&F){const U=u.oxw(3);u.xp6(1),u.Oqu(U.billingComponent.actBilling.taxID)}}function fe(F,ne){if(1&F&&(u.TgZ(0,"div"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.lnq(" ",U.billingComponent.actBilling.taxNumber.taxPayerID,"-",U.billingComponent.actBilling.taxNumber.vatCode,"-",U.billingComponent.actBilling.taxNumber.countyCode," ")}}function de(F,ne){if(1&F&&(u.TgZ(0,"div"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.AsE(" ",U.billingComponent.actBilling.taxNumber.countryCode,"",U.billingComponent.actBilling.taxNumber.taxPayerID," ")}}function it(F,ne){if(1&F&&(u.TgZ(0,"div"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij(" ",U.billingComponent.actBilling.taxNumber.taxNumber," ")}}function Ve(F,ne){if(1&F&&(u.TgZ(0,"div"),u.YNc(1,fe,2,3,"div",34),u.YNc(2,de,2,2,"div",34),u.YNc(3,it,2,1,"div",34),u.qZA()),2&F){const U=u.oxw(3);u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.taxNumber.type===U.TaxNumberType.Hu
2017ngarian&&U.billingComponent.actBilling.taxNumber.taxPayerID&&U.billingComponent.actBilling.taxNumber.vatCode&&U.billingComponent.actBilling.taxNumber.countyCode),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.taxNumber.type===U.TaxNumberType.Community),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.taxNumber.type===U.TaxNumberType.Other)}}function W(F,ne){if(1&F&&(u.TgZ(0,"div"),u._uU(1),u.qZA()),2&F){const U=u.oxw(3);u.xp6(1),u.Oqu(U.billingComponent.actBilling.phone)}}function ee(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij("",U.billingComponent.actBilling.address.country," ")}}function te(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij("",U.billingComponent.actBilling.address.region," ")}}function Pe(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij("",U.billingComponent.actBilling.address.postalCode," ")}}function Ue(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij("",U.billingComponent.actBilling.address.city," ")}}function Ae(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij("",U.billingComponent.actBilling.address.publicPlaceName," ")}}function Fe(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij("",U.billingComponent.actBilling.address.publicPlaceCategory," ")}}function Qe(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij("",U.billingComponent.actBilling.address.number," ")}}function rt(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij("",U.billingComponent.actBilling.address.building," ")}}function Ct(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij("",U.billingComponent.actBilling.address.staircase," ")}}function ht(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij("",U.billingComponent.actBilling.address.floor," ")}}function mt(F,ne){if(1&F&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&F){const U=u.oxw(4);u.xp6(1),u.hij("",U.billingComponent.actBilling.address.door," ")}}function ye(F,ne){if(1&F&&(u.TgZ(0,"div"),u.YNc(1,ee,2,1,"span",34),u.YNc(2,te,2,1,"span",34),u.YNc(3,Pe,2,1,"span",34),u.YNc(4,Ue,2,1,"span",34),u.YNc(5,Ae,2,1,"span",34),u.YNc(6,Fe,2,1,"span",34),u.YNc(7,Qe,2,1,"span",34),u.YNc(8,rt,2,1,"span",34),u.YNc(9,Ct,2,1,"span",34),u.YNc(10,ht,2,1,"span",34),u.YNc(11,mt,2,1,"span",34),u.qZA()),2&F){const U=u.oxw(3);u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address.country),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address.region),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address.postalCode),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address.city),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address.publicPlaceName),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address.publicPlaceCategory),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address.number),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address.building),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address.staircase),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address.floor),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address.door)}}function Ce(F,ne){if(1&F&&(u.TgZ(0,"div"),u.YNc(1,xe,2,1,"div",34),u.YNc(2,le,3,2,"div",34),u.YNc(3,q,2,1,"div",34),u.YNc(4,Ve,4,3,"div",34),u.YNc(5,W,2,1,"div",34),u.YNc(6,ye,12,11,"div",34),u.qZA()),2&F){const U=u.oxw(2);u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.name),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.firstName||U.billingComponent.actBilling.lastName),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.taxID),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.taxNumber),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.phone),u.xp6(1),u.Q6J("ngIf",U.billingComponent.actBilling.address)}}function j(F,ne){if(1&F&&u.YNc(0,Ce,7,6,"div",34),2&F){const U=u.oxw();u.Q6J("ngIf",U.billingComponent&&U.billingComponent.actBilling)}}let _e=class{constructor(ne,U,et,ct,ft,Ze,Oe,y,x,E,T,S,$){this.clientService=ne,this.formService=U,this.onepage=et,this.nzModal=ct,this.paymentModalService=ft,this.routerService=Ze,this.modal=Oe,this.utilService=y,this.eventService=x,this.chatService=E,this.resizeService=T,this.languageService=S,this.translate=$,this.currentPaymentProvider=C.L.c
2017onfig.currentPaymentProvider,this.currency=e.Fa6.HUF,this.currentStep=0,this.unstickTrigger=0,this.selectedPayment="",this.requestID=this.utilService.randomString(128),this.nextButtonText=new o.PR("CLIENT.ONE_PAGE.STEPS.NEXT.BUTTON_STATES.DEFAULT","CLIENT.ONE_PAGE.STEPS.NEXT.BUTTON_STATES.WORKING","CLIENT.ONE_PAGE.STEPS.NEXT.BUTTON_STATES.SUCCESS","CLIENT.ONE_PAGE.STEPS.NEXT.BUTTON_STATES.FAILED"),this.isValidCardData=!1,this.FeedbackFeature=e.lrp,this.FeedbackUnit=e._0Z,this.PaymentProvider=e.OHy,this.VATValue=e.di5,this.TaxNumberType=t.z4,this.PurchaseType=c.Oz}ngOnInit(){this.onepage.lastAddedMethod.subscribe(ne=>{this.selectedPayment=ne}),this.eventService.hasBilling.subscribe(ne=>{this.billingMissing=!ne}),this.clientStatus=this.eventService.clientStatus,this.eventService.changedClientStatus.subscribe(ne=>{this.clientStatus=ne}),this.onepage.contractPriceChanged.subscribe(ne=>{this.price=ne}),this.billingMissing?this.currentStep=0:this.paymentMissing&&(this.currentStep=1),this.resizeWidthSubscription=this.resizeService.width.subscribe(ne=>{this.windowWidth=ne}),this.currentLanguageDashedServerFormat=this.languageService.dashedServerLanguageFromLanguageKey(this.languageService.currentLanguage),this.translate.onLangChange.subscribe(ne=>{this.currentLanguageDashedServerFormat=this.languageService.dashedServerLanguageFromLanguageKey(ne.lang)})}ngOnDestroy(){this.resizeWidthSubscription&&this.resizeWidthSubscription.unsubscribe()}sendSubmitBilling(){this.onepage.sendSubmitBilling()}billingSavedPromise(ne){this.billingPromise=ne}submitBillingPromise(ne){this.billingPromise=ne,this.billingPromise&&this.billingPromise.then(U=>{this.changeCurrent(this.currentStep+1),this.billingMissing=!1},U=>{})}sendSubmitPayment(){this.onepage.sendSubmitPayment()}submitPaymentPromise(ne){this.paymentPromise=ne,this.runFunction=this.paymentPromise.then(U=>(this.paymentMissing=!1,this.billingMissing&&this.paymentMissing&&Array.isArray(U)&&U.length>1?(this.billingData=U[0],this.selectedPayment=U[1]):this.billingMissing&&!this.paymentMissing?this.billingData=U:this.selectedPayment=U,this.handleSuccess()),U=>(console.log(U),!this.billingMissing&&!this.paymentMissing&&U&&U.setup_intent&&"succeeded"===U.setup_intent.status?this.handleSuccess():Promise.reject()))}handleSuccess(){if(this.toBundle){const ne=this.submitCallback(this.selectedPayment.payment);return ne.then(U=>{this.currentPaymentProvider!==e.OHy.Unicredit&&(this.paymentModalService.bundleSuccessModal(U.quota),this.onepage.sendBundleBought(),this.eventService.setHasOrders(!0),setTimeout(()=>{this.eventService.setHasOrders(!0)},1e3))}),ne}if(this.toPlan){let ne;return ne=this.submitCallback(this.selectedPayment.payment),ne.then(U=>{this.onepage.sendSubscriptionChanged(U),this.eventService.setHasOrders(!0),setTimeout(()=>{this.nzModal.closeAll()},1e3)}),ne}if(this.purchaseType===c.Oz.CONTRACT||this.purchaseType===c.Oz.LAWYER_MEDIATION||this.purchaseType===c.Oz.OFFER){const ne=this.submitCallback(this.selectedPayment.payment);return this.eventService.setHasOrders(!0),ne.then(()=>{(!(this.selectedPayment.payment instanceof e.Ink)||this.selectedPayment.payment.checkNeeded)&&this.modal.close()},U=>{console.log(U)}),ne}return this.eventService.setHasOrders(!0),setTimeout(()=>this.nzModal.closeAll(),1e3),Promise.resolve}updateUnstickTrigger(){this.unstickTrigger=Math.random()}validateCardData(ne){this.isValidCardData=ne}changeCurrent(ne){this.currentStep=ne,this.billingPromise=null}};_e.\u0275fac=function(ne){return new(ne||_e)(u.Y36(m.y),u.Y36(a.o),u.Y36(f.g),u.Y36(O.Sf),u.Y36(N.u),u.Y36(L.c),u.Y36(O.Lf),u.Y36(i.f),u.Y36(M.P),u.Y36(R.a),u.Y36(l._),u.Y36(h.T),u.Y36(D.sK))},_e.\u0275cmp=u.Xpm({type:_e,selectors:[["app-onepagecheckout"]],viewQuery:function(ne,U){if(1&ne&&u.Gf(v.F,5),2&ne){let et;u.iGM(et=u.CRH())&&(U.billingComponent=et.first)}},inputs:{billingMissing:"billingMissing",paymentMissing:"paymentMissing",phoneView:"phoneView",toBundle:"toBundle",toPlan:"toPlan",netPlan:"netPlan",currPlanState:"currPlanState",plan:"plan",planInd:"planInd",planDuration:"planDuration",isUpdatePlan:"isUpdatePlan",bundle:"bundle",buttonText:"buttonText",confirmText:"confirmText",purchaseType:"purchaseType",currentPaymentProvider:"currentPaymentProvider",price:"price",netPrice:"netPrice",currency:"currency",submitCallback:"submitCallback",productName:"productName",productImageUrl:"productImageUrl"},decls:28,vars:21,consts:[[1,"container","p-0"],[1,"d-flex","flex-wrap","justify-content-center"],[1,"col-xl-4","col-lg-12","col-md-12"],["class","productCard",3,"plan","planInd","planDuration","price","currency","productImageUrl","productName","purchaseType",4,"ngIf"],["class","productCard",3,"bundle","purchaseType","price","currency","productImageUrl","productName",4,"ngIf"],["class","productCard",3,"purchaseType","productName","price","currency","productImageUrl",4,"ngIf"],[1,"col-xl-8","col-lg-12","col-md-12"],[1,"m-10","onepageSteps",3,"nzCurrent","nzDirection","nzIndexChange"],[1,"white-space-normal",3,"nzTitle","nzDescription"],[1,"white-space-normal",3,"nzTitle","nzDisabled"],[1,"col-12"],[3,"hidden"],[1,"row","justify-content-center"],[3,"isOnePage","runSaveFunctionEmitter","submitBillingPromise","unstickTriggerEmitter"],[3,"hidden",4,"ngIf"],["nz-row","","nzJustify","end",1,"grid-gap-15"],[1,"steps-action"],["nz-button","","nzType","default","class","button-text-wrap",3,"click",4,"ngIf"],["class","button-text-wrap",3,"nzType","runFunction","nzGhost","nzTextKeys","stickResult","unstickTrigger","click",4,"ngIf"],["class","m-l-10",3,"nzType","runFunction","nzTextKeys","unstickTrigger","disabled","click",4,"ngIf"],["class","m-t-minus15 text-right",3,"confirmText","purchaseType","purchasedQuota","showCheckoutNote","currentPaymentProvider",4,"ngIf"],["class","display-block m-t-10",3,"currentPaymentProvider",4,"ngIf"],[4,"nzModalFooter"],["billingTemplate",""],[1,"productCard",3,"plan","planInd","planDuration","price","currency","productImageUrl","productName","purchaseType"],[1,"productCard",3,"bundle","purchaseType","price","currency","productImageUrl","productName"],[1,"productCard",3,"purchaseType","productName","price","currency","productImageUrl"],[3,"isOnePage","price","currency","currentPaymentProvider","submitPaymentPromise","unstickTrigger","isValidCardData"],["nz-button","","nzType","default",1,"button-text-wrap",3,"click"],[1,"button-text-wrap",3,"nzType","runFunction","nzGhost","nzTextKeys","stickResult","unstickTrigger","click"],[1,"m-l-10",3,"nzType","runFunction","nzTextKeys","unstickTrigger","disabled","click"],[1,"m-t-minus15","text-right",3,"confirmText","purchaseType","purchasedQuota","showCheckoutNote","currentPaymentProvider"],[1,"display-block","m-t-10",3,"currentPaymentProvider"],[3,"unit","feature"],[4,"ngIf"]],template:function(ne,U){if(1&ne&&(u.TgZ(0,"div",0)(1,"div",1)(2,"div",2),u.YNc(3,B,1,8,"app-product-card",3),u.YNc(4,K,1,7,"app-product-card",4),u.YNc(5,b,1,5,"app-product-card",5),u.qZA(),u.TgZ(6,"div",6)(7,"nz-steps",7),u.NdJ("nzIndexChange",function(ct){return U.changeCurrent(ct)}),u._UZ(8,"nz-step",8),u.ALo(9,"translate"),u._UZ(10,"nz-step",9),u.ALo(11,"translate"),u.qZA()(),u.TgZ(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",10)(16,"app-billing",13),u.NdJ("runSaveFunctionEmitter",function(ct){return U.billingSavedPromise(ct)})("submitBillingPromise",function(ct){return U.submitBillingPromise(ct)})("unstickTriggerEmitter",function(){return U.updateUnstickTrigger()}),u.qZA()()()(),u.YNc(17,w,4,5,"div",14),u.qZA()(),u.TgZ(18,"div",15)(19,"div",16),u.YNc(20,X,3,3,"button",17),u.YNc(21,Y,1,6,"app-multi-state-button",18),u.qZA(),u.YNc(22,Z,1,5,"app-multi-state-button",19),u.YNc(23,Q,3,13,"app-payment-confirm",20),u.YNc(24,V,1,1,"app-payment-info",21),u.qZA()(),u.YNc(25,se,2,2,"div",22),u.YNc(26,j,1,1,"ng-template",null,23,u.W1O)),2&ne){const et=u.MAs(27);u.xp6(3),u.Q6J("ngIf",U.plan&&U.purchaseType===U.PurchaseType.SUBSCRIPTION),u.xp6(1),u.Q6J("ngIf",U.bundle),u.xp6(1),u.Q6J("ngIf",U.purchaseType===U.PurchaseType.CONTRACT||U.purchaseType===U.PurchaseType.LAWYER_MEDIATION||U.purchaseType===U.PurchaseType.OFFER||U.purchaseType===U.PurchaseType.SUBSCRIPTION_CONTRACT),u.xp6(2),u.Q6J("nzCurrent",U.currentStep)("nzDirection",U.windowWidth<576?"vertical":"horizontal"),u.xp6(1),u.Q6J("nzTitle",u.lcZ(9,17,"CLIENT.ONE_PAGE.STEPS.TITLE_1"))("nzDescription",et),u.xp6(2),u.Q6J("nzTitle",u.lcZ(11,19,"CLIENT.ONE_PAGE.STEPS.TITLE_2"))("nzDisabled",!U.billingComponent||!U.billingComponent.billingForm||U.billingComponent.billingForm.invali
2017d||U.billingComponent.billingForm.dirty||!U.billingComponent.billingForm.get("address")||!U.billingComponent.billingForm.get("address").value||U.billingComponent.billingForm.get("address").value.invalid||U.billingComponent.billingForm.get("address").value.dirty),u.xp6(3),u.Q6J("hidden",0!==U.currentStep),u.xp6(3),u.Q6J("isOnePage",!0),u.xp6(1),u.Q6J("ngIf",!U.billingMissing),u.xp6(3),u.Q6J("ngIf",U.currentStep>0),u.xp6(1),u.Q6J("ngIf",U.currentStep<1),u.xp6(1),u.Q6J("ngIf",1===U.currentStep),u.xp6(1),u.Q6J("ngIf",1===U.currentStep),u.xp6(1),u.Q6J("ngIf",1===U.currentStep)}},styles:['@charset "UTF-8";.onepageSteps[_ngcontent-%COMP%] .ant-steps-item-description{min-width:200px;max-width:-moz-fit-content;max-width:fit-content}.onepageSteps[_ngcontent-%COMP%] .ant-steps-item-icon{min-width:32px}.onepageSteps[_ngcontent-%COMP%] .ant-steps-item-container{display:flex}.productCard[_ngcontent-%COMP%] *{font-size:small!important}.productCard[_ngcontent-%COMP%] ul{margin-top:15px!important;margin-bottom:0!important}.productCard[_ngcontent-%COMP%] li{margin-bottom:10px!important}.productCard[_ngcontent-%COMP%] li:last-child{margin-bottom:0!important}']}),_e=(0,s.gn)([(0,r.c)()],_e)},7478:(Se,k,n)=>{n.d(k,{A:()=>v});var s=n(30144),e=n(44569),o=n(94650);const t=[{path:e.d.chatDemoPresentation,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(5574)]).then(n.bind(n,45574)).then(r=>r.ChatDemoPresentationModule)},{path:e.d.contractDemoPresentation,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(7802)]).then(n.bind(n,67802)).then(r=>r.ContractDemoPresentationModule)},{path:e.d.listingDemoPresentation,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(6432)]).then(n.bind(n,56432)).then(r=>r.ListingDemoPresentationModule)},{path:e.d.singleDocumentDemoPresentation,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(963)]).then(n.bind(n,30963)).then(r=>r.SingleDocumentDemoPresentationModule)},{path:"**",loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(8458),n.e(6815),n.e(8577),n.e(3401)]).then(n.bind(n,16815)).then(r=>r.PageNotFoundModule)}];let v=(()=>{class r{}return r.\u0275fac=function(C){return new(C||r)},r.\u0275mod=o.oAB({type:r}),r.\u0275inj=o.cJS({imports:[s.Bz.forChild(t),s.Bz]}),r})()},94712:(Se,k,n)=>{n.d(k,{Q:()=>a});var s=n(94650),e=n(32925),o=n(36895),t=n(24006),v=n(66616),r=n(47044),c=n(21811),C=n(47423),u=n(38231); 2018/* 2019 * @license 2020 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 2021 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 2022 *
2023 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 2024 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 2025 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 2026 * trade secret or copyright law. 2027 * 2028 * Dissemination of this information or reproduction of this material is strictly forbidden 2029 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 2030 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 2031 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 2032 * explicitly covering such access. 2033 * 2034 * The copyright notice above does not evidence any actual or intended publication or disclosure 2035 * of this source code, which includes information that is confidential and/or proprietary, 2036 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 2037 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 2038 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 2039 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 2040 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 2041 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 2042 * IN WHOLE OR IN PART. 2043 */function m(f,O){if(1&f&&s._UZ(0,"nz-option",10),2&f){const N=O.$implicit,L=s.oxw();s.hYB("nzLabel","",N,"",L.pageText,""),s.Q6J("nzValue",N)}}let a=(()=>{class f{constructor(N){this.translate=N,this.pageChange=new s.vpe,this.sizeChanged=new s.vpe,this.firstText="First",this.lastText="Last",this.previousText="Previous",this.nextText="Next",this.onFirst=!0,this.onLast=!1,this.pageText=" / "+this.translate.instant("COMMON.PAGE"),this.selectedValue=""}ngOnInit(){this.option=this.options[0],this.selectedValue=this.option+this.pageText}first(){this.onFirst||this.pageChange.emit(this.firstText),this.onFirst=!0,this.onLast=!1}prev(){this.onFirst||this.pageChange.emit(this.previousText),this.onLast=!1}next(){this.onLast||this.pageChange.emit(this.nextText),this.onFirst=!1}last(){this.onLast||this.pageChange.emit(this.lastText),this.onLast=!0,this.onFirst=!1}selectedOptionChanged(N){this.option=N,this.sizeChanged.emit(this.option)}}return f.\u0275fac=function(N){return new(N||f)(s.Y36(e.sK))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-szerzi-pagination"]],inputs:{options:"options"},outputs:{pageChange:"pageChange",sizeChanged:"sizeChanged"},decls:13,vars:6,consts:[[1,"form-inline"],[1,"mr-1"],["nz-button","","nzType","default","nzShape","circle","nzSize","small",1,"mr-1",3,"disabled","click"],["nz-icon","","nzType","double-left"],["nz-icon","","nzType","left"],["nz-icon","","nzType","right"],["nz-icon","","nzType","double-right"],[1,"ml-1"],[3,"ngModel","ngModelChange"],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"]],template:function(N,L){1&N&&(s.TgZ(0,"div",0)(1,"div",1)(2,"button",2),s.NdJ("click",function(){return L.first()}),s._UZ(3,"i",3),s.qZA(),s.TgZ(4,"button",2),s.NdJ("click",function(){return L.prev()}),s._UZ(5,"i",4),s.qZA(),s.TgZ(6,"button",2),s.NdJ("click",function(){return L.next()}),s._UZ(7,"i",5),s.qZA(),s.TgZ(8,"button",2),s.NdJ("click",function(){return L.last()}),s._UZ(9,"i",6),s.qZA()(),s.TgZ(10,"div",7)(11,"nz-select",8),s.NdJ("ngModelChange",function(M){return L.option=M})("ngModelChange",function(M){return L.selectedOptionChanged(M)}),s.YNc(12,m,1,3,"nz-option",9),s.qZA()()()),2&N&&(s.xp6(2),s.Q6J("disabled",L.onFirst),s.xp6(2),s.Q6J("disabled",L.onFirst),s.xp6(2),s.Q6J("disabled",L.onLast),s.xp6(2),s.Q6J("disabled",L.onLast),s.xp6(3),s.Q6J("ngModel",L.option),s.xp6(1),s.Q6J("ngForOf",L.options))},dependencies:[o.sg,t.JJ,t.On,v.ix,r.w,c.dQ,C.Ls,u.Ip,u.Vq],styles:[".ant-select-item{width:-moz-fit-content;width:fit-content}\n"],encapsulation:2}),f})()},87341:(Se,k,n)=>{n.d(k,{w:()=>o});var s=n(61135),e=n(94650);let o=(()=>{class t{constructor(){this.isMenuFolded=!1,this.isSideNavDark=!1,this.headerColor="default",this.colorConfig={colors:{magenta:"#eb2f96",magentaLight:"rgba(235, 47, 150, 0.05)",red:"#de4436",redLight:"rgba(222, 68, 54, 0.05)",volcano:"#fa541c",volcanoLight:"rgba(250, 84, 28, 0.05)",orange:"#fa8c16",orangeLight:"rgba(250, 140, 22, 0.1)",gold:"#ffc107",goldLight:"rgba(255, 193, 7, 0.1)",lime:"#a0d911",limeLight:"rgba(160, 217, 17, 0.1)",green:"#52c41a",greenLight:"rgba(82, 196, 26, 0.1)",cyan:"#05c9a7",cyanLight:"rgba(0, 201, 167, 0.1)",blue:"#3f87f5",blueLight:"rgba(63, 135, 245, 0.15)",geekBlue:"#2f54eb",geekBlueLight:"rgba(47, 84, 235, 0.1)",purple:"#886cff",purpleLight:"rgba(136, 108, 255, 0.1)",gray:"#53535f",grayLight:"#77838f",grayLighter:"#ededed",grayLightest:"#f1f2f3",border:"#edf2f9",white:"#ffffff",dark:"#2a2a2a",transparent:"rgba(255, 255, 255, 0)"}},this.isMenuFoldedActived=new s.X(this.isMenuFolded),this.isMenuFoldedChanges=this.isMenuFoldedActived.asObservable(),this.isSideNavDarkActived=new s.X(this.isSideNavDark),this.isSideNavDarkChanges=this.isSideNavDarkActived.asObservable(),this.isExpandActived=new s.X(!1),this.isExpandChanges=this.isExpandActived.asObservable(),this.currentHeaderColor=new s.X(this.headerColor),this.selectedHeaderColor=this.currentHeaderColor.asObservable()}get(){return this.colorConfig}toggleFold(r){this.isMenuFoldedActived.next(r)}toogleSideNavDark(r){this.isSideNavDarkActived.next(r)}toggleExpand(r){this.isExpandActived.next(r)}changeHeaderColor(r){this.currentHeaderColor.next(r)}}return t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac}),t})()},45935:(Se,k,n)=>{n.d(k,{g:()=>Te,m:()=>ot});var s=n(75275),e=n(12987),o=n(74383),t=n(65681),v=n(70048),r=n(66616),c=n(62383),C=n(2577),u=n(29562),m=n(92367),a=n(70087),f=n(5233),O=n(36895),N=n(24006),L=n(80529),i=n(30144),M=n(37570),R=n(87341),l=n(32925),h=n(72101),D=n(7463),B=n(67151),K=n(92521),b=n(87918),w=n(75539),X=n(86725),Y=n(6672),Z=n(75352),G=n(39359),Q=n(38704);const V=JSON.parse('{"jl":"516826739353218"}');var se=n(81801),xe=n(80432),Ee=n(60630),re=n(94650);let le=(()=>{class je{transform(Et){return Et&&Et.trim()}}return je.\u0275fac=function(Et){return new(Et||je)},je.\u0275pipe=re.Yjl({name:"trimWhiteSpace",type:je,pure:!0}),je})();var q=n(11679),fe=n(83447),de=n(79991),it=n(92440),Ve=n(47959),W=n(81404),ee=n(34643),te=n(76482),Pe=n(51971),Ue=n(36704),Ae=n(35635),Fe=n(25156),Qe=n(59054),rt=n(49651),Ct=n(39597),ht=n(94963),mt=n(56211),ye=n(28213),Ce=n(834),j=n(4788),_e=n(17131),F=n(47423),ne=n(37096),U=n(66152),et=n(45655),ct=n(73055),ft=n(6497),Ze=n(46581),Oe=n(48521),y=n(38231),x=n(20545),E=n(62223),T=n(21243),S=n(40269),$=n(27830),pe=n(69790),Re=n(14685),Ke=n(80433),nt=n(83092),lt=n(70844),$e=n(21634);const qe=[r.sL];let ve=(()=>{class je{}return je.\u0275fac=function(Et){return new(Et||je)},je.\u0275mod=re.oAB({type:je}),je.\u0275inj=re.cJS({imports:[O.ez,l.aw,qe]}),je})();var we=n(30918),De=n(8943),Be=n(73325),Le=n(23848),Ne=n(69258),oe=n(58800),ue=n(4345
20435),Ge=n(24841),tt=n(20494),pt=n(45144),ce=n(69804),Me=n(94712),he=n(80114),Ye=n(76118),He=n(40338),at=n(35232),me=n(59166);function Te(je){return new h.w(je,"./assets/i18n/",".json")}const _=[mt.j,Ct.L,o.Rt,te.j,v.mS,ht.lt,r.sL,Pe.vh,ye.Wr,Qe.cD,Ce.Hb,j.Xo,C.S,_e.BL,u.b1,Ue.U5,F.PV,Ae.o7,ne.Zf,U.Ph,Be.ip,rt.gR,Fe.Qp,et.KJ,$e.uK,ct.W,ft._p,Ze.$6,Oe.aF,Ne.Ju,y.LV,x.H0,t.j,Le.A2,E.N6,T.m,S.HQ,$.we,pe.FT,Y.X,Re.wY,M.cg,He.st,De.vO,oe.ZJ,Ke.cS,c.ic];let ot=(()=>{class je{static forRoot(){return{ngModule:je,providers:[R.w]}}}return je.\u0275fac=function(Et){return new(Et||je)},je.\u0275mod=re.oAB({type:je}),je.\u0275inj=re.cJS({providers:[ce.O,Z.w,we.O,Ee.g,Ye.v,Me.Q,Ye.v,pt.j,G.s,X.K,O.uU,de.Y,e.U2,Q.O,m.D,D.N,a.L,q.B,se.A,f.y,xe.R,le,at.d,tt.e,Ve.W,ee.Z,W.u,R.w,nt.R,lt.h],imports:[B.bt,w._J,ue._8.forRoot({provide:ue._A,useFactory:Ge.x}),fe.Iq,O.ez,ve,N.u5,L.JF,he.A,it.Xz,s.hx,me.F,N.UX,i.Bz,b.t,l.aw,K.W.forRoot({pixelId:V.jl}),_,fe.Iq,O.ez,ve,N.u5,L.JF,L.Ed,he.A,it.Xz,s.hx,me.F,B.bt,w._J,N.UX,i.Bz,b.t,l.aw,N.u5,mt.j,Ct.L,o.Rt,te.j,v.mS,ht.lt,r.sL,Pe.vh,ye.Wr,Qe.cD,Ce.Hb,j.Xo,C.S,_e.BL,u.b1,Ue.U5,F.PV,Ae.o7,ne.Zf,U.Ph,Be.ip,rt.gR,Fe.Qp,et.KJ,$e.uK,ct.W,ft._p,Ze.$6,Oe.aF,Ne.Ju,y.LV,x.H0,t.j,Le.A2,E.N6,T.m,S.HQ,$.we,pe.FT,Y.X,Re.wY,M.cg,He.st,De.vO,oe.ZJ,Ke.cS,c.ic]}),je})()},6947:(Se,k,n)=>{n.d(k,{B:()=>s}); 2044/* 2045 * @license 2046 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 2047 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 2048 *
2049 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 2050 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 2051 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 2052 * trade secret or copyright law. 2053 * 2054 * Dissemination of this information or reproduction of this material is strictly forbidden 2055 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 2056 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 2057 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 2058 * explicitly covering such access. 2059 * 2060 * The copyright notice above does not evidence any actual or intended publication or disclosure 2061 * of this source code, which includes information that is confidential and/or proprietary, 2062 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 2063 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 2064 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 2065 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 2066 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 2067 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 2068 * IN WHOLE OR IN PART. 2069 */ 2070let s=(()=>{class e{}return e.editorLastTemplate="storageLastTemplate",e.editorLastVariables="storageLastVariables",e.session="storageSession",e.accountType="accountType",e.clientProfile="clientProfile",e.languageSelection="language",e.availableContracts="availableContracts",e.cookieConsent="cookieConsent",e.cookieConsentedForTheFirstTime="cookieConsentedForTheFirstTime",e.notificationPrefix="notifs",e.impersonated="impersonatedSession",e.initializeClientWithDocument="initializeClientWithDocument",e.nextContactMessage="nextContactMessage",e.convenienceLanguage="acceptedConvenienceLanguage",e.pendingPayment="pendingPayment",e.remoteStorage="remoteStorage",e.remoteStorageTemp="remoteStorageTemp",e.serviceWorkerJustUpdated="serviceWorkerJustUpdated",e.contractSortingMethod="contractSortingMethod",e.intercomKey="intercomKey",e.matchmakingLawyerID="matchmakingLawyerID",e.understandSavingTooltip="understandSavingTooltip",e})()},42895:(Se,k,n)=>{n.d(k,{i:()=>c});var s=n(36057),e=n(94650),o=n(3417),t=n(32925),v=n(36895); 2071/* 2072 * @license 2073 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 2074 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 2075 *
2076 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 2077 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 2078 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 2079 * trade secret or copyright law. 2080 * 2081 * Dissemination of this information or reproduction of this material is strictly forbidden 2082 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 2083 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 2084 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 2085 * explicitly covering such access. 2086 * 2087 * The copyright notice above does not evidence any actual or intended publication or disclosure 2088 * of this source code, which includes information that is confidential and/or proprietary, 2089 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 2090 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 2091 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 2092 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 2093 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 2094 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 2095 * IN WHOLE OR IN PART. 2096 */const r=function(){return{}};let c=(()=>{class C{constructor(m,a){this.languageService=m,this.translate=a,this.currentLanguage="",this.src="",this.class="",this.LogoStyle=s.q8}ngOnInit(){this.currentLanguage=this.languageService.currentLanguage,this.translate.onLangChange.subscribe(m=>{this.currentLanguage=m.lang,this.setSrc()}),this.setSrc()}setSrc(){switch(this.type){case s.q8.SIMPLE:this.src=`assets/images/logo_szerzi_${this.currentLanguage.toUpperCase()}.svg`,this.class="simple-logo";break;case s.q8.LIGHT:this.src=`assets/images/logo_szerzi_light_${this.currentLanguage.toUpperCase()}.svg`,this.class="simple-logo";break;case s.q8.FOLD:this.src="assets/images/szerzi-logo-fold.svg",this.class="fold-logo";break;default:this.src=`assets/images/logo_szerzi_${this.currentLanguage.toUpperCase()}.svg`,this.class="simple-logo"}}}return C.\u0275fac=function(m){return new(m||C)(e.Y36(o.T),e.Y36(t.sK))},C.\u0275cmp=e.Xpm({type:C,selectors:[["app-szerzi-logo"]],inputs:{imgClass:"imgClass",imgID:"imgID",imgStyle:"imgStyle",type:"type"},decls:1,vars:8,consts:[["alt","Szerzi logo","loading","lazy",3,"ngStyle","src","id"]],template:function(m,a){1&m&&e._UZ(0,"img",0),2&m&&(e.MT6("",a.class," ",a.imgClass?a.imgClass:"",""),e.Q6J("ngStyle",a.imgStyle?a.imgStyle:e.DdM(7,r))("src",a.src,e.LSH)("id",a.imgID?a.imgID:""))},dependencies:[v.PC],styles:['@charset "UTF-8";.simple-logo[_ngcontent-%COMP%]{width:160px;height:auto}.fold-logo[_ngcontent-%COMP%]{width:55px;height:auto}.simple-logo[_ngcontent-%COMP%]{aspect-ratio:auto 75/23}']}),C})()},26079:(Se,k,n)=>{n.d(k,{p:()=>c});var s=n(6947),e=n(94650),o=n(57222),t=n(66616),v=n(47044),r=n(32925);let c=(()=>{class C{constructor(m){this.safekeepingService=m}disableTutorial(){this.tabsetTutorialDirective.nzTooltipDirective.hide(),this.tabsetTutorialDirective.nzTooltipDirective.component.nzTitle=null,this.tutorialStorageKey&&(localStorage.setItem(s.B[this.tutorialStorageKey],JSON.stringify(!0)),this.tabsetTutorialDirective.tutorialEnabled=!1),this.safekeepingStorageKey&&(this.safekeepingService.updateStart(this.safekeepingStorageKey,!0),this.tabsetTutorialDirective.tutorialEnabled=!1)}}return C.\u0275fac=function(m){return new(m||C)(e.Y36(o.xM))},C.\u0275cmp=e.Xpm({type:C,selectors:[["app-tabset-tutorial"]],inputs:{tabsetTutorialDirective:"tabsetTutorialDirective",tutorialStorageKey:"tutorialStorageKey",safekeepingStorageKey:"safekeepingStorageKey"},decls:7,vars:6,consts:[[1,"text-center"],["nz-button","","nzType","link",1,"color-secondary","link-like-button",3,"click"]],template:function(m,a){1&m&&(e.TgZ(0,"div",0)(1,"div"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",1),e.NdJ("click",function(){return a.disableTutorial()}),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&m&&(e.xp6(2),e.hij(" ",e.lcZ(3,2,"TUTORIALS.CLIENT.PROFILE.TABSET_TOOLTIP.MESSAGE")," "),e.xp6(3),e.hij(" ",e.lcZ(6,4,"TUTORIALS.CLIENT.PROFILE.TABSET_TOOLTIP.UNDERSTAND")," "))},dependencies:[t.ix,v.w,r.X$],styles:['@charset "UTF-8";']}),C})()},88703:(Se,k,n)=>{n.d(k,{L:()=>Be});var s=n(97582),e=n(37340),o=n(11491),t=n(36057),v=n(22971),r=n(44224),c=n(45218),C=n(8472),u=n(54968),m=n(78372),a=n(92961),f=n(6947),O=n(52835),N=n(93710),L=n(16023),i=n(94650),M=n(25156),R=n(72218),l=n(32925),h=n(41836),D=n(50211),B=n(87689),K=n(34643),b=n(3417),w=n(7695),X=n(38151),Y=n(13217),Z=n(61479),G=n(39889),Q=n(46061),V=n(47423),se=n(24006),xe=n(36895),Ee=n(80114),re=n(59166),le=n(87918),q=n(26079),fe=n(66616),de=n(47044),it=n(21811),Ve=n(28213),W=n(73679),ee=n(36704),te=n(35635),Pe=n(20545),Ue=n(27830),Ae=n(37570),Fe=n(45298),Qe=n(79991),rt=n(81801); 2097/* 2098 * @license 2099 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 2100 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 2101 *
2102 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 2103 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 2104 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 2105 * trade secret or copyright law. 2106 * 2107 * Dissemination of this information or reproduction of this material is strictly forbidden 2108 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 2109 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 2110 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 2111 * explicitly covering such access. 2112 * 2113 * The copyright notice above does not evidence any actual or intended publication or disclosure 2114 * of this source code, which includes information that is confidential and/or proprietary, 2115 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 2116 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 2117 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 2118 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 2119 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 2120 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 2121 * IN WHOLE OR IN PART. 2122 */const Ct=["mailInput"],ht=["submitMailButton"],mt=["submitButtonTextTemplate"],ye=["termsScrollbar"],Ce=["agreementsTabset"],j=["agreementsTabsetContainer"],_e=["acceptTOS"],F=["scrollButton"];function ne(Le,Ne){if(1&Le){const oe=i.EpF();i.TgZ(0,"button",25,26),i.NdJ("click",function(){i.CHM(oe);const Ge=i.oxw();return i.KtG(Ge.jumpToAcceptTOS())}),i._uU(2),i.ALo(3,"translate"),i._UZ(4,"i",27),i.qZA()}if(2&Le){const oe=i.oxw();i.Q6J("nzSize","default")("@fadeIn",oe.animation),i.xp6(2),i.hij(" ",i.lcZ(3,3,"COMMON.SCROLL_DOWN")," ")}}function U(Le,Ne){1&Le&&(i.TgZ(0,"div",28)(1,"p",29),i._UZ(2,"i",30),i._uU(3),i.ALo(4,"translate"),i.qZA()()),2&Le&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"AGREEMENTS.LANGUAGE_WARNING")," "))}function et(Le,Ne){1&Le&&(i.TgZ(0,"span"),i._UZ(1,"nz-skeleton-element",37),i.qZA()),2&Le&&(i.Q6J("@skeletonPosAbsLeave",void 0),i.xp6(1),i.Q6J("nzActive",!0))}function ct(Le,Ne){1&Le&&(i.TgZ(0,"div",31)(1,"div",32)(2,"div",33),i._UZ(3,"nz-skeleton-element",34),i.qZA()(),i._UZ(4,"nz-skeleton-element",35),i.YNc(5,et,2,2,"span",36),i.ALo(6,"numberArray"),i.qZA()),2&Le&&(i.Q6J("@skeletonPosAbsLeave",void 0),i.xp6(3),i.Q6J("nzActive",!0),i.xp6(1),i.Q6J("nzActive",!0),i.xp6(1),i.Q6J("ngForOf",i.lcZ(6,4,15)))}function ft(Le,Ne){if(1&Le&&i._UZ(0,"app-tabset-tutorial",38),2&Le){const oe=i.oxw();i.Q6J("tabsetTutorialDirective",oe.tabsetTutorialDirective)}}function Ze(Le,Ne){if(1&Le&&(i.TgZ(0,"nz-tab",42)(1,"div",43),i._UZ(2,"span",44),i.qZA()()),2&Le){const oe=Ne.$implicit,ue=i.oxw(2);i.Q6J("nzTitle",oe.short?oe.short[ue.actLanguage]:"")("nzForceRender",!0),i.xp6(2),i.Q6J("innerHTML",oe.content,i.oJD)}}function Oe(Le,Ne){if(1&Le){const oe=i.EpF();i.TgZ(0,"nz-tabset",39,40),i.NdJ("nzSelectedIndexChange",function(Ge){i.CHM(oe);const tt=i.oxw();return i.KtG(tt.setSeoSchema(Ge))}),i.YNc(2,Ze,3,3,"nz-tab",41),i.qZA()}if(2&Le){const oe=i.oxw(),ue=i.MAs(11);i.Q6J("nzTooltipTitle",ue)("nzTooltipTrigger",null)("nzTooltipPlacement","bottomRight")("scrollElement",oe.scrollElement)("@skeletonPosAbsLeave",void 0),i.xp6(2),i.Q6J("ngForOf",oe.termsAgreements)}}function y(Le,Ne){1&Le&&i._UZ(0,"nz-skeleton-element",45),2&Le&&i.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0)}function x(Le,Ne){if(1&Le){const oe=i.EpF();i.TgZ(0,"span"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"definiteArticle"),i.ALo(4,"translate"),i.ALo(5,"translate"),i.TgZ(6,"button",49),i.NdJ("click",function(Ge){i.CHM(oe);const tt=i.oxw(2);return i.KtG(tt.jumpToCookieHeader(Ge))}),i._uU(7),i.ALo(8,"translate"),i.qZA()()}if(2&Le){const oe=i.oxw(2);i.xp6(1),i.AsE(" ",i.lcZ(2,3,"COMMON.AND")," ",i.Dn7(3,5,i.lcZ(4,9,"COMMON.THE"),oe.languageService.currentLanguage,i.lcZ(5,11,"COMMON.COOKIE_POLICY"))," "),i.xp6(6),i.hij(" ",i.lcZ(8,13,"COMMON.COOKIE_POLICY")," ")}}function E(Le,Ne){if(1&Le){const oe=i.EpF();i.TgZ(0,"div",46),i.ALo(1,"translate"),i.TgZ(2,"label",17),i.NdJ("ngModelChange",function(Ge){const pt=i.CHM(oe).index,ce=i.oxw();return i.KtG(ce.isCheckedAgreements[pt]=Ge)}),i._uU(3),i.ALo(4,"definiteArticle"),i.ALo(5,"translate"),i.TgZ(6,"button",47),i.NdJ("
2122click",function(Ge){const pt=i.CHM(oe).index,ce=i.oxw();return i.KtG(ce.jumpToTab(Ge,pt))}),i._uU(7),i.qZA(),i.YNc(8,x,9,15,"span",48),i._uU(9),i.ALo(10,"translate"),i.qZA()()}if(2&Le){const oe=Ne.$implicit,ue=Ne.index,Ge=i.oxw();i.Q6J("nzTooltipTitle",i.lcZ(1,6,"COMMON.READ_TOS_BEFORE_ACCEPT")),i.xp6(2),i.Q6J("ngModel",Ge.isCheckedAgreements[ue]),i.xp6(1),i.hij(" ",i.Dn7(4,8,i.lcZ(5,12,"COMMON.ACCEPTED_AGREEMENT_PART_1"),Ge.languageService.currentLanguage,oe.translations[Ge.actLanguage])," "),i.xp6(4),i.hij(" ",oe.translations[Ge.actLanguage]," "),i.xp6(1),i.Q6J("ngIf",ue===Ge.cookiePolicyIndex),i.xp6(1),i.hij(" ",i.lcZ(10,14,"COMMON.ACCEPTED_AGREEMENT_PART_2")," ")}}function T(Le,Ne){if(1&Le){const oe=i.EpF();i.TgZ(0,"button",50),i.NdJ("click",function(){i.CHM(oe);const Ge=i.oxw();return i.KtG(Ge.nzModal.closeAll())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&Le&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"COMMON.DECLINE_TOS_AND_PRIVACY")," "))}function S(Le,Ne){if(1&Le&&i._UZ(0,"app-multi-state-button",59),2&Le){const oe=i.oxw(3);i.Q6J("disabled",!oe.isCheckedAge||!oe.isCheckedAgreements||oe.isCheckedAgreements.includes(!1))("defaultFunction",oe.defaultSubmitFunction)("nzTextKeys",oe.submitButtonText)("unstickTrigger",oe.unstickTrigger)}}function $(Le,Ne){if(1&Le&&i.YNc(0,S,1,4,"app-multi-state-button",58),2&Le){const oe=i.oxw(2);i.Q6J("ngIf",!oe.successfulRegister)}}function pe(Le,Ne){if(1&Le&&(i.TgZ(0,"div"),i._UZ(1,"app-google-button",61),i.qZA()),2&Le){const oe=i.oxw(3);i.xp6(1),i.Q6J("size","large")("logo_alignment","left")("width",oe.buttonWidth)("currentLanguage",oe.currentLanguage)}}function Re(Le,Ne){if(1&Le&&(i.TgZ(0,"div"),i.YNc(1,pe,2,4,"div",60),i.qZA()),2&Le){i.oxw();const oe=i.MAs(5),ue=i.oxw();i.xp6(1),i.Q6J("ngIf",!(!ue.isCheckedAge||!ue.isCheckedAgreements||ue.isCheckedAgreements.includes(!1))&&ue.googleButtonShouldDoLogin)("ngIfElse",oe)}}function Ke(Le,Ne){}function nt(Le,Ne){if(1&Le&&(i.TgZ(0,"div"),i.YNc(1,Ke,0,0,"ng-template",62),i.qZA()),2&Le){i.oxw();const oe=i.MAs(5);i.xp6(1),i.Q6J("ngTemplateOutlet",oe)}}function lt(Le,Ne){1&Le&&(i.TgZ(0,"button",63),i._UZ(1,"i",64),i._uU(2),i.ALo(3,"translate"),i.qZA()),2&Le&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"REGISTRATION.BUTTON_STATES.LOGGING_IN")," "))}function $e(Le,Ne){if(1&Le&&(i.TgZ(0,"div",51,52),i.ALo(2,"translate"),i.ALo(3,"translate"),i.YNc(4,$,1,1,"ng-template",null,53,i.W1O),i.TgZ(6,"div",54),i.YNc(7,Re,2,2,"div",55),i.YNc(8,nt,2,1,"div",56),i.qZA(),i.YNc(9,lt,4,3,"button",57),i.qZA()),2&Le){const oe=i.oxw();i.Q6J("nzTooltipTitle",oe.readHandlerAdded?oe.isCheckedAge&&oe.isCheckedAgreements&&!oe.isCheckedAgreements.includes(!1)?"":i.lcZ(3,6,"COMMON.ACCEPT_TOS_AND_PRIVACY"):i.lcZ(2,4,"COMMON.LOADING_TOS_AND_PRIVACY")),i.xp6(6),i.Q6J("ngSwitch",oe.registerType),i.xp6(1),i.Q6J("ngSwitchCase","Google"),i.xp6(2),i.Q6J("ngIf",oe.successfulRegister)}}function qe(Le,Ne){if(1&Le){const oe=i.EpF();i.TgZ(0,"form",65)(1,"nz-form-item")(2,"nz-form-label",66),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"nz-form-control",67)(6,"input",68),i.NdJ("ngModelChange",function(Ge){i.CHM(oe);const tt=i.oxw();return i.KtG(tt.passedInMail=Ge)}),i.ALo(7,"translate"),i.qZA()()()()}if(2&Le){const oe=i.oxw();i.Q6J("formGroup",oe.mailInputForm),i.xp6(3),i.hij(" ",i.lcZ(4,4,"REGISTRATION.MAIL_POPUP.PLACEHOLDER")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(7,6,"REGISTRATION.MAIL_POPUP.PLACEHOLDER")),i.Q6J("ngModel",oe.passedInMail)}}function ve(Le,Ne){if(1&Le){const oe=i.EpF();i.TgZ(0,"div",69)(1,"button",70),i.NdJ("click",function(){i.CHM(oe);const Ge=i.oxw();return i.KtG(Ge.nzModal.closeAll())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"app-multi-state-button",71),i.qZA()}if(2&Le){const oe=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"COMMON.GO_BACK")," "),i.xp6(2),i.Q6J("disabled",!oe.mailInputForm.valid)("defaultFunction",oe.defaultMailSubmission)("nzTextKeys",oe.submitMailText)("unstickTrigger",oe.unstickTrigger)}}function we(Le,Ne){if(1&Le&&(i._uU(0),i.ALo(1,"translate"),i.ALo(2,"translate")),2&Le){const oe=i.oxw();i.hij(" ",oe.isCheckedAge&&oe.isCheckedAgreements&&!oe.isCheckedAgreements.includes(!1)?i.lcZ(2,3,"REGISTRATION.BUTTON_STATES.CHANGE"):i.lcZ(1,1,"COMMON.ACCEPT_TERMS"),"\n")}}const De=function(){return{autoHide:!1,scrollbarMinSize:100}};let Be=class{constructor(Ne,oe,ue,Ge,tt,pt,ce,Me,he,Ye,He,at,me,Te,_,ot){this.ngZone=Ne,this.nzModal=oe,this.modal=ue,this.reCaptchaV3Service=Ge,this.translate=tt,this.asyncMessenger=pt,this.clientService=ce,this.formService=Me,this.interfaceService=he,this.languageService=Ye,this.loginErrorHandler=He,this.loginRegisterHandler=at,this.onTheFlyService=me,this.resizeService=Te,this.routerService=_,this.seoSchemaService=ot,this.googleButtonShouldDoLogin=!0,this.actLanguage="hu-HU",this.isCheckedAge=!1,this.passedInMail="",this.successfulRegister=!1,this.unstickTrigger=0,this.termsLogoLoaded=!1,this.TermsKind=t.p1,this.viewInitialized=!1,this.readHandlerAdded=!1,this.animation=1,this.cookiePolicyTitle="Cookie adatkezel\xe9se"}ngOnInit(){this.currentLanguage=this.languageService.currentLanguage,this.resizeService.width.subscribe(Ne=>{this.setScrollElement(Ne)}),this.onTheFlyService.authService.then(Ne=>{Ne.authState.subscribe(oe=>{this.user=oe})}),this.mailInputForm=this.formService.missingEmailForm(),this.mailInputForm.statusChanges.subscribe(Ne=>{this.mailInputForm.dirty&&(this.unstickTrigger=Math.random())}),this.submitMailErrorMap=new Map,this.submitMailErrorMap.set(0,"REGISTRATION.BUTTON_STATES.ERROR.OTHER"),this.defaultMailSubmission=()=>this.submitMail(),this.defaultSubmitFunction=()=>this.termsKind===t.p1.CHANGE?this.acceptAgreement():this.termsKind===t.p1.REGISTRATION?this.register():void console.log(`TermsComponent received unhandled TermsKind input: ${this.termsKind}`),this.submitMailText=new a.PR("REGISTRATION.BUTTON_STATES.CHANGE","REGISTRATION.BUTTON_STATES.CHANGING","REGISTRATION.BUTTON_STATES.CHANGED",this.submitMailErrorMap),this.termsKind===t.p1.CHANGE?this.submitButtonText=new a.PR("AGREEMENTS.CHANGE.BUTTON_STATES.CHANGE","AGREEMENTS.CHANGE.BUTTON_STATES.CHANGING","AGREEMENTS.CHANGE.BUTTON_STATES.CHANGED","AGREEMENTS.CHANGE.BUTTON_STATES.ERROR.OTHER"):this.termsKind===t.p1.REGISTRATION&&(this.submitButtonText=new a.PR(this.submitButtonDefaultText,"REGISTRATION.BUTTON_STATES.CHANGING","REGISTRATION.BUTTON_STATES.CHANGED",this.submitMailErrorMap)),this.loadAgreements(),this.actLanguage=this.languageService.dashedServerLanguageFromLanguageKey(this.languageService.currentLanguage),this.translate.onLangChange.subscribe(Ne=>{this.actLanguage=this.languageService.dashedServerLanguageFromLanguageKey(Ne.lang)}),this.googleButtonShouldDoLogin&&this.onTheFlyService.authService.then(Ne=>{Ne.authState.pipe((0,r.t)(this)).subscribe(oe=>{let ue;if(this.initializedWithMatchmaking){const Ge=localStorage.getItem(f.B.matchmakingLawyerID);ue=Ge?this.routerService.getMatchmakerRequestRoute(Ge):this.routerService.getLobbyRouteWithMatchmaking()}if(null!=oe&&"GOOGLE"===oe.provider)return this.reCaptchaV3Service.executeAsPromise(c.L.c
2122onfig.reCaptcha,"",{useGlobalDomain:!1}).then(Ge=>this.clientService.registerGoogle(oe.email,oe.idToken,this.kind,Ge,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(tt=>{this.successfulRegister=!0;const pt=this.loginErrorHandler.handle(null,oe.email,o.Gr.Google,oe,!1,!0);this.loginRegisterHandler.handleLoginRegister(new v.z_(tt.email,tt.kind,tt.token,tt.userID),t.rp.REGISTER,ue),this.modal.close(pt)},tt=>{const pt=this.loginErrorHandler.handle(tt,oe.email,o.Gr.Google,oe,!1,!0);449===tt.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.USED_MAIL")),Ne.signOut(),this.modal.close(pt)}))})})}ngAfterViewInit(){this.viewInitialized=!0,this.addReadHandler(),this.setScrollElement(window.innerWidth);const Ne=new ResizeObserver(ue=>{ue.forEach(Ge=>{let tt=Ge.contentRect.width;tt>200&&tt<400?this.buttonWidth=Math.round(tt):(tt<=200&&(this.buttonWidth=200),tt>=400&&(this.buttonWidth=400))})});let oe=document.querySelector("button#declineTOS");oe&&Ne.observe(oe)}addReadHandler(){!this.readHandlerAdded&&this.viewInitialized&&this.termsAgreements&&this.termsAgreements.length>0&&this.termsScrollbar&&this.termsScrollbar.SimpleBar&&(this.readHandlerAdded=!0)}loadAgreements(){this.kind===v.FW.Lawyer?this.clientService.getLawyerAgreements().pipe((0,r.t)(this)).subscribe(Ne=>{Ne.forEach(oe=>{oe.content=this.interfaceService.parseMarkDown(oe.content)}),this.termsAgreements=Ne,this.isCheckedAgreements=Array(this.termsAgreements.length).fill(!1),this.findCookiePolicyIndex(),setTimeout(()=>(this.addReadHandler(),this.setSeoSchema(0)),0)}):this.kind===v.FW.Client&&this.clientService.getClientAgreements().pipe((0,r.t)(this)).subscribe(Ne=>{Ne.forEach(oe=>{oe.content=this.interfaceService.parseMarkDown(oe.content)}),this.termsAgreements=Ne,this.isCheckedAgreements=Array(this.termsAgreements.length).fill(!1),this.findCookiePolicyIndex(),setTimeout(()=>(this.addReadHandler(),this.setSeoSchema(0)),0)})}acceptAgreement(){const Ne=this.termsAgreements.map(oe=>oe.signature);return this.clientService.acceptAgreements(Ne).pipe((0,r.t)(this)).toPromise().then(oe=>(this.nzModal.closeAll(),this.termsKind===t.p1.CHANGE&&window.location.reload(),Promise.resolve()),oe=>(console.log("Change failed!"),console.log(oe),Promise.reject()))}submitMail(){let Ne;if(this.initializedWithMatchmaking){const oe=localStorage.getItem(f.B.matchmakingLawyerID);Ne=oe?this.routerService.getMatchmakerRequestRoute(oe):this.routerService.getLobbyRouteWithMatchmaking()}return this.reCaptchaV3Service.executeAsPromise(c.L.config.reCaptcha,"",{useGlobalDomain:!1}).then(oe=>this.userFromOtherLogin?this.clientService.registerFB(this.passedInMail,this.userFromOtherLogin.authToken,this.kind,oe,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(ue=>{this.successfulRegister=!0;const Ge=this.loginErrorHandler.handle(null,this.userFromOtherLogin.email?this.userFromOtherLogin.email:this.userFromOtherLogin.name,o.Gr.Facebook,this.userFromOtherLogin,!1,!0);this.loginRegisterHandler.handleLoginRegister(new v.z_(ue.email,ue.kind,ue.token,ue.userID),t.rp.REGISTER,Ne),this.modal.close(Ge)},ue=>{const Ge=this.loginErrorHandler.handle(ue,this.userFromOtherLogin.email?this.userFromOtherLogin.email:this.userFromOtherLogin.name,o.Gr.Facebook,this.userFromOtherLogin,!1,!0);449===ue.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.USED_MAIL")),this.modal.close(Ge)}):this.clientService.registerFB(this.passedInMail,this.user.authToken,this.kind,oe,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(ue=>{this.successfulRegister=!0;const Ge=this.loginErrorHandler.handle(null,this.user.email?this.user.email:this.user.name,o.Gr.Facebook,this.user,!1,!0);this.loginRegisterHandler.handleLoginRegister(new v.z_(ue.email,ue.kind,ue.token,ue.userID),t.rp.REGISTER,Ne),this.modal.close(Ge)},ue=>{const Ge=this.loginErrorHandler.handle(ue,this.user.email?this.user.email:this.user.n
2122ame,o.Gr.Facebook,this.user,!1,!0);449===ue.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.USED_MAIL")),this.modal.close(Ge)}))}register(){let Ne;if(this.initializeWithDocument&&localStorage.setItem(f.B.initializeClientWithDocument,this.initializeWithDocument.replace(/-/g," ")),this.initializedWithMatchmaking){const oe=localStorage.getItem(f.B.matchmakingLawyerID);Ne=oe?this.routerService.getMatchmakerRequestRoute(oe):this.routerService.getLobbyRouteWithMatchmaking()}if(this.userFromOtherLogin){if(this.registerType===o.Gr.Mail)return this.reCaptchaV3Service.executeAsPromise(c.L.config.reCaptcha,"",{useGlobalDomain:!1}).then(oe=>this.clientService.registerStandard(this.mail,this.password,this.kind,oe,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(ue=>{this.successfulRegister=!0;const Ge=this.loginErrorHandler.handle(null,this.mail,o.Gr.Mail,null,!1,!0);this.loginRegisterHandler.handleLoginRegister(new v.z_(ue.email,ue.kind,ue.token,ue.userID),t.rp.REGISTER,Ne),this.modal.close(Ge)},ue=>{const Ge=this.loginErrorHandler.handle(ue,this.mail,o.Gr.Mail,null,!1,!0);439===ue.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","REGISTRATION.ERROR.REGISTERED_MAIL")),this.modal.close(Ge)}));if(this.registerType===o.Gr.Facebook){if(null!=this.userFromOtherLogin.email)return this.reCaptchaV3Service.executeAsPromise(c.L.config.reCaptcha,"",{useGlobalDomain:!1}).then(oe=>this.clientService.registerFB(this.userFromOtherLogin.email,this.userFromOtherLogin.authToken,this.kind,oe,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(ue=>{this.successfulRegister=!0;const Ge=this.loginErrorHandler.handle(null,this.userFromOtherLogin.email?this.userFromOtherLogin.email:this.userFromOtherLogin.name,o.Gr.Facebook,this.userFromOtherLogin,!1,!0);this.loginRegisterHandler.handleLoginRegister(new v.z_(ue.email,ue.kind,ue.token,ue.userID),t.rp.REGISTER,Ne),this.modal.close(Ge)},ue=>{const Ge=this.loginErrorHandler.handle(ue,this.userFromOtherLogin.email?this.userFromOtherLogin.email:this.userFromOtherLogin.name,o.Gr.Facebook,this.userFromOtherLogin,!1,!0);449===ue.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.USED_MAIL")),this.modal.close(Ge)}));this.nzModal.create({nzTitle:this.translate.instant("REGISTRATION.MAIL_POPUP.TITLE"),nzContent:this.emailInput,nzFooter:this.submitMailButton})}else if(this.registerType===o.Gr.Google){if(null!=this.user)return this.reCaptchaV3Service.executeAsPromise(c.L.config.reCaptcha,"",{useGlobalDomain:!1}).then(oe=>this.clientService.registerGoogle(this.userFromOtherLogin.email,this.userFromOtherLogin.idToken,this.kind,oe,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(ue=>{const Ge=this.loginErrorHandler.handle(null,this.userFromOtherLogin.email,o.Gr.Google,this.userFromOtherLogin,!1,!0);this.successfulRegister=!0,this.loginRegisterHandler.handleLoginRegister(new v.z_(ue.email,ue.kind,ue.token,ue.userID),t.rp.REGISTER,Ne),this.modal.close(Ge)},ue=>{const Ge=this.loginErrorHandler.handle(ue,this.userFromOtherLogin.email,o.Gr.Google,this.userFromOtherLogin,!1,!0);449===ue.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.USED_MAIL")),this.modal.close(Ge)}))}else if(this.registerType===o.Gr.Apple&&null!=this.user)return null!=this.user.name?this.reCaptchaV3Service.executeAsPromise(c.L.config.reCaptcha,"",{useGlobalDomain:!1}).then(oe=>this.clientService.registerApple(this.userFromOtherLogin.authorizationCode,this.userFromOtherLogin.name,this.kind,oe,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(ue=>{this.successfulRegister=!0;const Ge=this.loginErrorHandler.handle(null,"Apple",o.Gr.Apple,this.userFromOtherLogin,!1,!0);this.loginRegisterHandler.handleLoginRegister(new v.z_(ue.email,ue.kind,ue.token,ue.userID),t.rp.REGISTER,Ne),this.modal.close(Ge)},ue=>{const Ge=this.loginErrorHandler.handle(ue,"Apple",o.Gr.Apple,this.userFromOtherLogin,!1,!0);449===ue.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","
2122LOGIN.ERROR.USED_MAIL")),this.modal.close(Ge)})):this.reCaptchaV3Service.executeAsPromise(c.L.config.reCaptcha,"",{useGlobalDomain:!1}).then(oe=>this.clientService.registerAppleWithoutName(this.userFromOtherLogin.authorizationCode,this.kind,oe,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(ue=>{this.successfulRegister=!0;const Ge=this.loginErrorHandler.handle(null,"Apple",o.Gr.Apple,this.userFromOtherLogin,!1,!0);this.loginRegisterHandler.handleLoginRegister(new v.z_(ue.email,ue.kind,ue.token,ue.userID),t.rp.REGISTER,Ne),this.modal.close(Ge)},ue=>{const Ge=this.loginErrorHandler.handle(ue,"Apple",o.Gr.Apple,this.userFromOtherLogin,!1,!0);449===ue.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.USED_MAIL")),this.modal.close(Ge)}))}else{if(this.registerType===o.Gr.Mail)return this.reCaptchaV3Service.executeAsPromise(c.L.config.reCaptcha,"",{useGlobalDomain:!1}).then(oe=>this.clientService.registerStandard(this.mail,this.password,this.kind,oe,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(ue=>{this.successfulRegister=!0;const Ge=this.loginErrorHandler.handle(null,this.mail,o.Gr.Mail,null,!1,!0);this.loginRegisterHandler.handleLoginRegister(new v.z_(ue.email,ue.kind,ue.token,ue.userID),t.rp.REGISTER,Ne),this.modal.close(Ge)},ue=>{const Ge=this.loginErrorHandler.handle(ue,this.mail,o.Gr.Mail,null,!1,!0);439===ue.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","REGISTRATION.ERROR.REGISTERED_MAIL")),this.modal.close(Ge)}));if(this.registerType===o.Gr.Facebook)return this.onTheFlyService.authService.then(oe=>oe.signIn(C.LP.PROVIDER_ID).then(ue=>{if(null!=this.user){if(null!=this.user.email)return this.reCaptchaV3Service.executeAsPromise(c.L.config.reCaptcha,"",{useGlobalDomain:!1}).then(Ge=>this.clientService.registerFB(this.user.email,this.user.authToken,this.kind,Ge,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(tt=>{this.successfulRegister=!0;const pt=this.loginErrorHandler.handle();this.loginRegisterHandler.handleLoginRegister(new v.z_(tt.email,tt.kind,tt.token,tt.userID),t.rp.REGISTER,Ne),this.modal.close(pt)},tt=>{const pt=this.loginErrorHandler.handle(tt,ue.email?ue.email:ue.name,o.Gr.Facebook,ue);449===tt.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.USED_MAIL")),this.modal.close(pt)}));this.nzModal.create({nzTitle:this.translate.instant("REGISTRATION.MAIL_POPUP.TITLE"),nzContent:this.emailInput,nzFooter:this.submitMailButton})}}));if(this.registerType===o.Gr.Google)return this.onTheFlyService.authService.then(oe=>{});if(this.registerType===o.Gr.Apple)return this.onTheFlyService.authService.then(oe=>oe.signIn(L.E.PROVIDER_ID).then(ue=>{if(null!=this.user)return null!=this.user.name?this.reCaptchaV3Service.executeAsPromise(c.L.config.reCaptcha,"",{useGlobalDomain:!1}).then(Ge=>this.clientService.registerApple(this.user.authorizationCode,this.user.name,this.kind,Ge,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(tt=>{this.successfulRegister=!0;const pt=this.loginErrorHandler.handle(null,"Apple",o.Gr.Apple,ue,!1,!0);this.loginRegisterHandler.handleLoginRegister(new v.z_(tt.email,tt.kind,tt.token,tt.userID),t.rp.REGISTER,Ne),this.modal.close(pt)},tt=>{const pt=this.loginErrorHandler.handle(tt,"Apple",o.Gr.Apple,ue,!1,!0);449===tt.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","LOGIN.ERROR.USED_MAIL")),this.modal.close(pt)})):this.reCaptchaV3Service.executeAsPromise(c.L.config.reCaptcha,"",{useGlobalDomain:!1}).then(Ge=>this.clientService.registerAppleWithoutName(this.user.authorizationCode,this.kind,Ge,this.languageService.serverLanguageFromLanguageKey(this.languageService.currentLanguageFromStorage())).pipe((0,r.t)(this)).toPromise().then(tt=>{this.successfulRegister=!0;const pt=this.loginErrorHandler.handle(null,"Apple",o.Gr.Apple,ue,!1,!0);this.loginRegisterHandler.handleLoginRegister(new v.z_(tt.email,tt.kind,tt.token,tt.userID),t.rp.REGISTER,Ne),this.modal.close(pt)},tt=>{const pt=this.loginErrorHandler.handle(tt,"Apple",o.Gr.Apple,ue,!1,!0);449===tt.status&&(this.nzModal.closeAll(),this.asyncMessenger.errorMessage("COMMON.COMMON_ERROR_TITLE","
2122LOGIN.ERROR.USED_MAIL")),this.modal.close(pt)}))}))}}setScrollElement(Ne){if(Ne<768){const oe=this.modal.containerInstance.getNativeElement();this.scrollElement!==oe&&(this.scrollElement=oe),this.srcollSubscription=(0,u.R)(oe,"scroll").pipe((0,m.b)(1),(0,r.t)(this)).subscribe(()=>{const ue=this.scrollToAcceptTOS.nativeElement.getBoundingClientRect();this.animation=ue.top>=0&&ue.left>=0&&ue.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&ue.right<=(window.innerWidth||document.documentElement.clientWidth)?0:1})}else if(this.termsScrollbar&&this.termsScrollbar.SimpleBar){const oe=this.termsScrollbar.SimpleBar.getScrollElement();this.scrollElement!==oe&&(this.scrollElement=oe)}}findCookiePolicyIndex(){this.termsAgreements&&(this.cookiePolicyIndex=this.termsAgreements.findIndex(Ne=>Ne.content.includes(this.cookiePolicyTitle)))}findCookieAgreement(){if(this.agreementsTabset&&this.agreementsTabsetContainer){const Ne=this.agreementsTabsetContainer.nativeElement.getElementsByClassName("markdownAgreementsDiv");if(Ne.length>this.cookiePolicyIndex){const ue=Array.from(Ne)[this.cookiePolicyIndex].getElementsByTagName("h2"),Ge=Array.from(ue);return this.cookiePolicyHeaderElement=Ge.find(tt=>tt.innerHTML.includes(this.cookiePolicyTitle)),this.cookiePolicyHeaderElement}}}jumpToTab(Ne,oe){Ne.stopPropagation(),this.agreementsTabset.setSelectedIndex(oe),this.scrollElement&&this.cookiePolicyHeaderElement&&this.scrollElement.scrollTo({top:0})}jumpToCookieHeader(Ne){if(Ne.stopPropagation(),this.cookiePolicyHeaderElement||this.findCookieAgreement(),this.agreementsTabset.setSelectedIndex(this.cookiePolicyIndex),this.scrollElement&&this.cookiePolicyHeaderElement){const oe=this.modal.containerInstance.getNativeElement();if(this.scrollElement===oe){const ue=this.cookiePolicyHeaderElement.getBoundingClientRect();this.scrollElement.scrollBy({top:ue.top})}else this.scrollElement.scrollTo({top:this.cookiePolicyHeaderElement.offsetTop})}}jumpToAcceptTOS(){this.scrollToAcceptTOS.nativeElement.scrollIntoView({behavior:"smooth"})}setSeoSchema(Ne){this.gtosSchema=this.seoSchemaService.getGToS(this.termsAgreements[Ne].short[this.actLanguage])}};Be.\u0275fac=function(Ne){return new(Ne||Be)(i.Y36(i.R0b),i.Y36(M.Sf),i.Y36(M.Lf),i.Y36(R.YC),i.Y36(l.sK),i.Y36(h.m),i.Y36(D.y),i.Y36(B.o),i.Y36(K.Z),i.Y36(b.T),i.Y36(w.u),i.Y36(X.d),i.Y36(Y.k),i.Y36(Z._),i.Y36(G.c),i.Y36(Q.a))},Be.\u0275cmp=i.Xpm({type:Be,selectors:[["app-terms"]],viewQuery:function(Ne,oe){if(1&Ne&&(i.Gf(Ct,5),i.Gf(ht,5),i.Gf(mt,7),i.Gf(ye,7),i.Gf(N.v,5),i.Gf(Ce,5),i.Gf(j,5),i.Gf(_e,5),i.Gf(F,5)),2&Ne){let ue;i.iGM(ue=i.CRH())&&(oe.emailInput=ue.first),i.iGM(ue=i.CRH())&&(oe.submitMailButton=ue.first),i.iGM(ue=i.CRH())&&(oe.submitButtonDefaultText=ue.first),i.iGM(ue=i.CRH())&&(oe.termsScrollbar=ue.first),i.iGM(ue=i.CRH())&&(oe.tabsetTutorialDirective=ue.first),i.iGM(ue=i.CRH())&&(oe.agreementsTabset=ue.first),i.iGM(ue=i.CRH())&&(oe.agreementsTabsetContainer=ue.first),i.iGM(ue=i.CRH())&&(oe.scrollToAcceptTOS=ue.first),i.iGM(ue=i.CRH())&&(oe.scrollButton=ue.first)}},inputs:{fromLogin:"fromLogin",initializeWithDocument:"initializeWithDocument",mail:"mail",password:"password",kind:"kind",registerType:"registerType",termsKind:"termsKind",userFromOtherLogin:"userFromOtherLogin",initializedWithMatchmaking:"initializedWithMatchmaking",googleButtonShouldDoLogin:"googleButtonShouldDoLogin"},decls:31,vars:16,consts:[["nz-button","","nzType","primary","class","jump-down",3,"nzSize","click",4,"ngIf"],["id","terms-container",1,"row","m-b-20","m-l-0","m-r-0"],[1,"col-xs-12","w-50","h-100","overflow-y-auto","p-l-0","p-r-0","flex-grow-1","flex-shrink-1"],["id","terms-scrollbar",1,"overflow-x-hidden","h-100",3,"options"],["termsScrollbar",""],["class","row text-center mb-2 notice-box mx-auto notice-box-padding",4,"ngIf"],["id","terms-text",1,"m-b-0","text-justify",2,"padding-right","1rem","font-size","0.8rem"],[1,"w-100","position-relative"],["agreementsTabsetContainer",""],["class","w-100",4,"ngIf"],["tutorialTitle",""],["nz-tooltip","","tabsetTutorial","",3,"nzTooltipTitle","nzTooltipTrigger","nzTooltipPlacement","scrollElement","nzSelectedIndexChange",4,"ngIf"],[1,"d-none","d-sm-none","d-md-block","align-self-center","h-100","text-center","position-relative"],["nzType","image","nzSize","large","class","h-100 img-max-width imageSkeleton",3,"nzActive",4,"ngIf"],["src","assets/images/szerzi_terms_logo.svg","alt","Terms of service logo",1,"h-100","img-max-width",3,"load"],["class","m-b-10","nz-tooltip","","nzTooltipPlacement","topLeft",3,"nzTooltipTitle",4,"ngFor","ngForOf"],[1,"m-b-0"],["nz-checkbox","",3,"ngModel","ngModelChange"],[1,"row","display-flex","justify-content-flex-end","m-l-0","m-r-0","m-t-20"],["nz-button","","nzType","default","id","declineTOS","class","mb-4 mb-md-0 mr-0 mr-md-3",3,"click",4,"ngIf"],["id","acceptTOS","nz-tooltip","",3,"nzTooltipTitle",4,"ngIf"],["mailInput",""],["submitMailButton",""],["submitButtonTextTemplate",""],[3,"json"],["nz-button","","nzType","primary",1,"jump-down",3,"nzSize","click"],["scrollButton",""],["nz-icon","","nzType","caret-down","nzTheme","outline"],[1,"row","text-center","mb-2","notice-box","mx-auto","notice-box-padding"],[1,"text-center","text-white","notice-box-coloring","notice-box-inside-padding","font-size-smaller"],["nz-icon","","nzType","warning","nzTheme","outline",1,"middle-alignment","notice-box-logo"],[1,"w-100"],[1,"ant-tabs-nav","p-v-5","tabSkeleton"],[1,"ant-tabs-tab","ant-tabs-tab-active","w-30"],["nzType","input","nzSize","small",1,"w-100","skeleton-h-20px",3,"nzActive"],["nzType","input","nzSize","large",1,"p-t-20","p-b-10","w-80",3,"nzActive"],[4,"ngFor","ngForOf"],["nzType","input","nzSize","small",1,"p-b-10","w-100",3,"nzActive"],[3,"tabsetTutorialDirective"],["nz-tooltip","","tabsetTutorial","",3,"nzTooltipTitle","nzTooltipTrigger","nzTooltipPlacement","scrollElement","nzSelectedIndexChange"],["agreementsTabset",""],["class","markdown",3,"nzTitle","nzForceRender",4,"ngFor","ngForOf"],[1,"markdown",3,"nzTitle","nzForceRender"],[1,"markdownAgreementsDiv","p-t-20"],[3,"innerHTML"],["nzType","image","nzSize","large",1,"h-100","img-max-width","imageSkeleton",3,"nzActive"],["nz-tooltip","","nzTooltipPlacement","topLeft",1,"m-b-10",3,"nzTooltipTitle"],["nz-button","","nzType","link",1,"link-like-button","text-wrap","text-left",3,"click"],[4,"ngIf"],["nz-button","","nzType","link",1,"link-like-button",3,"click"],["nz-button","","nzType","default","id","declineTOS",1,"mb-4","mb-md-0","mr-0","mr-md-3",3,"click"],["id","acceptTOS","nz-tooltip","",3,"nzTooltipTitle"],["acceptTOS",""],["multiStateButton",""],[1,"d-sm-flex","justify-content-center",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["nz-button","","nzType","primary","class","button-text-wrap button-width","nzSize","default",4,"ngIf"],["class","button-text-wrap button-width",3,"disabled","defaultFunction","nzTextKeys","unstickTrigger",4,"ngIf"],[1,"button-text-wrap","button-width",3,"disabled","defaultFunction","nzTextKeys","unstickTrigger"],[4,"ngIf","ngIfElse"],[3,"size","logo_alignment","width","currentLanguage"],[3,"ngTemplateOutlet"],["nz-button","","nzType","primary","nzSize","default",1,"button-text-wrap","button-width"],["nz-icon","","nzType","loading","nzTheme","outline"],["nz-form","","nzNoColon","",3,"formGroup"],["nzFor","mail"],["nzErrorTip",""],["nz-input","","formControlName","mail","trim","blur",3,"placeholder","ngModel","ngModelChange"],[1,"row","justify-content-between"],["nz-button","",3,"click"],[3,"disabled","defaultFunction","nzTextKeys","unstickTrigger"]],template:function(Ne,oe){1&Ne&&(i.YNc(0,ne,5,5,"button",0),i.TgZ(1,"div",1)(2,"div",2)(3,"ngx-simplebar",3,4),i.YNc(5,U,5,3,"div",5),i.TgZ(6,"div",6)(7,"div",7,8),i.YNc(9,ct,7,6,"div",9),i.YNc(10,ft,1,1,"ng-template",null,10,i.W1O),i.YNc(12,Oe,3,6,"nz-tabset",11),i.qZA()()()(),i.TgZ(13,"div",12),i.YNc(14,y,1,2,"nz-skeleton-element",13),i.TgZ(15,"img",14),i.NdJ("load",function(){return oe.termsLogoLoaded=!0}),i.qZA()()(),i.YNc(16,E,11,16,"div",15),i.TgZ(17,"div",16)(18,"label",17),i.NdJ("ngModelChange",function(Ge){return oe.isCheckedAge=Ge}),i._uU(19),i.ALo(20,"translate"),i.qZA()(),i.TgZ(21,"div",18),i.YNc(22,T,3,3,"button",19),i.YNc(23,$e,10,8,"div",20),i.qZA(),i.YNc(24,qe,8,8,"ng-template",null,21,i.W1O),i.YNc(26,ve,5,7,"ng-template",null,22,i.W1O),i.YNc(28,we,3,5,"ng-template",null,23,i.W1O),i._UZ(30,"ngx-json-ld",24)),2&Ne&&(i.Q6J("ngIf",oe.srcollSubscription),i.xp6(3),i.Q6J("options",i.DdM(15,De)),i.xp6(2),i.Q6J("ngIf","hu-HU"!==oe.actLanguage),i.xp6(4),i.Q6J("ngIf",!oe.termsAgreements||0===oe.termsAgreements.length),i.xp6(3),i.Q6J("ngIf",oe.termsAgreements&&oe.termsAgreements.length>0),i.xp6(2),i.Q6J("ngIf",!oe.termsLogoLoaded),i.xp6(1),i.Q6J("@imageLoadAnimation",oe.termsLogoLoaded?"loaded":"loading"),i.xp6(1),i.Q6J("ngForOf",oe.termsAgreements),i.xp6(2),i.Q6J("ngModel",oe.isCheckedAge),i.xp6(1),i.hij(" ",i.lcZ(20,13,"COMMON.ACCEPTED_AGE")," "),i.xp6(3),i.Q6J("ngIf",oe.termsKind!==oe.TermsKind.CHANGE),i.xp6(1),i.Q6J("ngIf",oe.submitButtonText),i.xp6(7),i.Q6J("json",oe.gtosSchema))},dependencies:[V.Ls,se._Y,se.Fj,se.JJ,se.JL,se.On,xe.sg,xe.O5,xe.tP,xe.RF,xe.n9,xe.ED,Ee.T,re.P,se.sg,se.u,le.M,a.P4,q.p,N.v,fe.ix,de.w,it.dQ,Ve.Ie,W.t3,W.SK,ee.Lr,ee.Nx,ee.iK,ee.Fd,te.Zp,Pe.Xw,Pe.Ql,Pe.yg,Ue.xH,Ue.xw,Ae.SY,Fe.Y,l.X$,Qe.Y,rt.A],styles:["#terms-scrollbar .ps__rail-y{height:340px;opacity:.6}",'@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}@media only screen and (min-width: 768px){#terms-container[_ngcontent-%COMP%]{min-height:45vh;height:45vh}}@media only screen and (max-width: 767.98px){#acceptTOS[_ngcontent-%COMP%]{width:100%}#acceptTOS[_ngcontent-%COMP%] > app-multi-state-button[_ngcontent-%COMP%]{display:grid;width:100%}#declineTOS[_ngcontent-%COMP%]{width:100%;margin-bottom:10px!important}#terms-text[_ngcontent-%COMP%]{padding-right:0!important}}.imageSkeleton[_ngcontent-%COMP%]{width:275px}.imageSkeleton[_ngcontent-%COMP%] .ant-skeleton-image{width:100%;height:100%}.tabSkeleton[_ngcontent-%COMP%]{background-color:#be9ddf40!important}.img-max-width[_ngcontent-%COMP%]{max-width:335px;padding-left:1.5rem}.logging-in-button[_ngcontent-%COMP%]{height:auto;cursor:pointer;overflow:hidden;display:inline-flex;justify-content:center}.logging-in-button[_ngcontent-%COMP%] i{margin-top:auto;margin-bottom:auto;font-size:.875rem!important;line-height:1!important}.button-width[_ngcontent-%COMP%]{min-width:240px}.button-width[_ngcontent-%COMP%] .smartButton{min-width:240px}'],data:{animation:[O.Ln,O.nV,(0,e.X$)("fadeIn",[(0,e.SB)("1",(0,e.oB)({opacity:1})),(0,e.SB)("0",(0,e.oB)({opacity:0,display:"none"})),(0,e.eR)("* <=> *",[(0,e.oB)({display:"block"}),(0,e.jt)(300)])])]}}),Be=(0,s.gn)([(0,r.c)()],Be)},29971:(Se,k,n)=>{n.d(k,{$:()=>s,V:()=>e}); 2123/* 2124 * @license 2125 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 2126 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 2127 *
2128 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 2129 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 2130 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 2131 * trade secret or copyright law. 2132 * 2133 * Dissemination of this information or reproduction of this material is strictly forbidden 2134 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 2135 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 2136 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 2137 * explicitly covering such access. 2138 * 2139 * The copyright notice above does not evidence any actual or intended publication or disclosure 2140 * of this source code, which includes information that is confidential and/or proprietary, 2141 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 2142 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 2143 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 2144 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 2145 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 2146 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 2147 * IN WHOLE OR IN PART. 2148 */ 2149var s=(()=>{return(o=s||(s={})).production="production",o.development="development",o.testing="testing",o.staging="staging",o.local="local",s;var o})();function e(o=null,t=null,v=null,r=null,c){switch(c){case s.production:return o;case s.staging:return null!==t?t:o;case s.development:return null!==v?v:t;case s.testing:return null!==r?r:v}}},76240:(Se,k,n)=>{var s=n(11481),e=n(94650),o=n(89181),t=n(7695),v=n(61479),r=n(32046),c=n(8269),C=n(75489),u=n(80529),m=n(62843),a=n(5963),f=n(95577),O=n(65535),N=n(18505),L=n(70262),i=n(88703),M=n(36057),R=n(25156),l=n(39889),h=n(32925),D=n(41836),B=n(55089),K=n(75141);let b=(()=>{class ze{constructor(Je,ut,Ot,xt,Ut,Lt){this.nzModal=Je,this.routerService=ut,this.translate=Ot,this.asyncMessenger=xt,this.userService=Ut,this.intercom=Lt,this.firstError=0,this.defaultParams={maxAttempts:({status:yt})=>503===yt?14:7,scalingDuration:1e3,shouldRetry:({status:yt})=>yt>=500},this.shouldRetry=yt=>yt.status>=500,this.genericRetryStrategy=(yt={})=>Bt=>Bt.pipe((0,f.z)((Rt,nn)=>{const{maxAttempts:zt,scalingDuration:Xt,shouldRetry:Zt}={...this.defaultParams,...yt},Kt=nn+1;if(Kt>zt(Rt)||!Zt(Rt)){const qt={status:Rt.status,msg:Rt.error};return Kt>zt(Rt)&&this.userService.isClient&&this.intercom.startAndShowForInterceptor(),(0,m._)(qt)}const Ft=Xt*Math.pow(2,Math.min(503===Rt.status?2:4,Kt-2));return console.log(`Attempt ${Kt}: retrying in ${Ft}ms`),(0,a.H)(Ft)}))}overrideEmptyStringValues(Je){for(const ut in Je)Je.hasOwnProperty(ut)&&("object"==typeof Je[ut]?Je[ut]=this.overrideEmptyStringValues(Je[ut]):"string"==typeof Je[ut]&&""===Je[ut].trim()?Je[ut]=null:"string"==typeof Je[ut]&&Je[ut]!==Je[ut].trim()&&(Je[ut]=Je[ut].trim()));return Je}intercept(Je,ut){let Ot;const xt=Je.headers.get("content-type");if(null!==xt&&"application/json"===xt&&"GET"!==Je.method&&"DELETE"!==Je.method&&Je.body)try{Ot=Je.clone({body:JSON.stringify(this.overrideEmptyStringValues(JSON.parse(Je.body)))})}catch(Lt){console.log("Failed to override empty string values in request, due to error: "),console.log(Lt)}const{shouldRetry:Ut}=this;return ut.handle(Ot||Je).pipe((0,O.a)(this.genericRetryStrategy({shouldRetry:Ut})),(0,N.b)(Lt=>{Lt instanceof u.Zn&&502!==Lt.status&&503!==Lt.status&&504!==Lt.status&&(this.firstError=0)}),(0,L.K)(Lt=>{if(401===Lt.status&&this.userService.isLoggedIn)this.userService.removeSession(),this.routerService.routeToLoginNoSession(),this.nzModal.closeAll();else if(451===Lt.status&&this.userService.isLoggedIn)console.log("EULA changed!"),this.agreementModalRef||(this.agreementModalRef={},this.translate.get("AGREEMENTS.CHANGE.TITLE").subscribe(Bt=>{this.agreementModalRef=this.nzModal.create({nzTitle:Bt,nzContent:i.L,nzComponentParams:{kind:this.userService.getSessionType(),termsKind:M.p1.CHANGE},nzWidth:720,nzStyle:{"overflow-y":"hidden","overflow-x":"hidden"},nzClassName:"footerless-modal",nzClosable:!1,nzMaskClosable:!1,nzCloseIcon:null,nzOkText:null,nzCancelText:null}),this.agreementModalRef.afterClose.subscribe(()=>{this.agreementModalRef=null})}));else if(502===Lt.status||503===Lt.status||504===Lt.status){const Rt=(new Date).getTime();0===this.firstError&&(this.firstError=Rt),Rt>this.firstError+1e4&&(this.asyncMessenger.infoNotification("CLIENT.NOTIFICATIONS.SERVER_ISSUE.TITLE","CLIENT.NOTIFICATIONS.SERVER_ISSUE.DESCRIPTION"),this.firstError=Rt)}else 429===Lt.status&&this.asyncMessenger.infoNotification("CLIENT.NOTIFICATIONS.NETWORK.TITLE","CLIENT.NOTIFICATIONS.NETWORK.RATE_LIMIT");return(0,m._)({status:Lt.status,msg:Lt.msg})}))}}return ze.\u0275fac=function(Je){return new(Je||ze)(e.LFG(R.Sf),e.LFG(l.c),e.LFG(h.sK),e.LFG(D.m),e.LFG(B.K),e.LFG(K.f))},ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac}),ze})();var w=n(31495),X=n(93196),Y=n(8472),Z=n(30144),G=n(44569);const Q={scrollPositionRestoration:"enabled",anchorScrolling:"enabled",scrollOffset:[0,64],onSameUrlNavigation:"reload",relativeLinkResolution:"corrected"},V=[{path:"",pathMatch:"full",loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(6842),n.e(9667)]).then(n.bind(n,68721)).then(ze=>ze.LandingModule)},{path:G.d.landingTOS,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(9305),n.e(5831)]).then(n.bind(n,9305)).then(ze=>ze.GeneralTermsModule),data:{titleKey:"LANDING.FOOTER.GENERAL_TERMS_OF_SERVICE"}},{path:G.d.landingDisputeResolution,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(6060),n.e(2575)]).then(n.bind(n,36060)).then(ze=>
2149ze.DisputeResolutionModule),data:{titleKey:"LANDING.FOOTER.DISPUTE_RESOLUTION"}},{path:G.d.landingPrivacy,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(2765),n.e(6855)]).then(n.bind(n,46855)).then(ze=>ze.PrivacyPolicyModule),data:{titleKey:"LANDING.FOOTER.PRIVACY_POLICY"}},{path:G.d.landingRefundPolicy,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(2604),n.e(318)]).then(n.bind(n,12604)).then(ze=>ze.RefundPolicyModule),data:{titleKey:"LANDING.FOOTER.REFUND_POLICY"}},{path:G.d.landingPayment,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(9076),n.e(5970)]).then(n.bind(n,25970)).then(ze=>ze.PaymentInformationModule),data:{titleKey:"LANDING.FOOTER.PAYMENT_INFORMATION"}},{path:G.d.landingImpressum,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(1569),n.e(3315)]).then(n.bind(n,41569)).then(ze=>ze.ImpressumModule),data:{titleKey:"LANDING.FOOTER.IMPRESSUM"}},{path:G.d.landingContact,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(7705),n.e(8920),n.e(6267)]).then(n.bind(n,96700)).then(ze=>ze.HelpModule),data:{titleKey:"LANDING.HEADER.CONTACT_US"}},{path:G.d.landingLawyerMediation,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(8193),n.e(734)]).then(n.bind(n,70734)).then(ze=>
2149ze.LawyerMediationModule),data:{titleKey:"ADMIN.PAGES.LAWYER_MANAGEMENT"}},{path:G.d.landingAbout,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(6751),n.e(8944)]).then(n.bind(n,76202)).then(ze=>ze.AboutusModule),data:{titleKey:"LANDING.FOOTER.ABOUT_US"}},{path:G.d.landingPWA,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(2037),n.e(5349)]).then(n.bind(n,95349)).then(ze=>ze.PWAGuideModule),data:{titleKey:"LANDING.PWA_GUIDE.TITLE"}},{path:G.d.landingFAQ,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(36),n.e(6701)]).then(n.bind(n,5083)).then(ze=>ze.FaqModule),data:{titleKey:"LANDING.FOOTER.FAQ"}},{path:G.d.landingPricing,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(772),n.e(444)]).then(n.bind(n,27719)).then(ze=>ze.PricingModule),data:{titleKey:"LANDING.FOOTER.PRICING"}},{path:G.d.landingFeatures,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(1311),n.e(5790),n.e(2060)]).then(n.bind(n,65790)).then(ze=>ze.FeaturesModule),data:{titleKey:"LANDING.FOOTER.FEATURES"}},{path:G.d.landingForLawyers,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(4721),n.e(2511)]).then(n.bind(n,14721)).then(ze=>
2149ze.ForLawyersModule),data:{titleKey:"LANDING.FOOTER.FOR_LAWYERS"}},{path:G.d.landingPayouts,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(9381),n.e(8384)]).then(n.bind(n,68384)).then(ze=>ze.PayoutsModule),data:{titleKey:"CLIENT.PROFILE.PAYOUT.TITLE"}},{path:G.d.landingDocument,children:[{path:":id",loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(6202),n.e(305)]).then(n.bind(n,26202)).then(ze=>ze.DocumentLandingModule),data:{titleKey:"LANDING.DOCUMENTS"}}]},{path:G.d.baseUser,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767)]).then(n.bind(n,13754)).then(ze=>ze.UserModule)},{path:G.d.baseClient,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(24),n.e(143)]).then(n.bind(n,70024)).then(ze=>ze.ClientModule)},{path:G.d.baseLawyer,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(417),n.e(1857)]).then(n.bind(n,47919)).then(ze=>ze.LawyerModule)},{path:G.d.baseAdmin,loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(9698),n.e(8266),n.e(7795),n.e(6218),n.e(6906),n.e(1624),n.e(1349),n.e(5037)]).then(n.bind(n,47002)).then(ze=>ze.AdministratorModule)},{path:G.d.presentationDemo,loadChildren:()=>n.e(8045).then(n.bind(n,48045)).then(ze=>ze.PresentationModule)},{path:"",loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767)]).then(n.bind(n,63542)).then(ze=>ze.ContractModule)},{path:"",loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(12),n.e(2481)]).then(n.bind(n,12)).then(ze=>ze.AuthModule)}],Ee=[{path:`${G.d.en}`,children:[...V]},...V,{path:G.d.baseBlog,children:[{path:"**",children:[]}]},{path:"**",loadChildren:()=>Promise.all([n.e(8770),n.e(7526),n.e(3375),n.e(5963),n.e(7290),n.e(6331),n.e(5276),n.e(6515),n.e(6128),n.e(8227),n.e(3300),n.e(3889),n.e(4769),n.e(1704),n.e(1878),n.e(5916),n.e(7064),n.e(6703),n.e(3619),n.e(7947),n.e(8310),n.e(7136),n.e(267),n.e(6130),n.e(6366),n.e(3226),n.e(1847),n.e(9028),n.e(4743),n.e(4410),n.e(6225),n.e(7482),n.e(8346),n.e(7804),n.e(789),n.e(3715),n.e(1762),n.e(2701),n.e(2826),n.e(4044),n.e(1471),n.e(1094),n.e(2344),n.e(9854),n.e(7187),n.e(6104),n.e(3089),n.e(7796),n.e(1440),n.e(6577),n.e(4149),n.e(2623),n.e(7199),n.e(7076),n.e(2613),n.e(7767),n.e(8458),n.e(6815),n.e(8577),n.e(3401)]).then(n.bind(n,16815)).then(ze=>ze.PageNotFoundModule)}];let re=(()=>{class ze{}return ze.\u0275fac=function(Je){return new(Je||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[Z.Bz.forRoot(Ee,Q),Z.Bz]}),ze})();var le=n(97582),q=n(44224),fe=n(45218),de=n(76482),it=n(97185),Ve=n(39300),W=n(6947),ee=n(60253),te=n(8948),Pe=n(36895),Ue=n(49651),Ae=n(50211),Fe=n(9641),Qe=n(3417),rt=n(81664),Ct=n(57836);let ht=(()=>{class ze{constructor(Je,ut,Ot,xt){this.swUpdate=Je,this.asyncMessenger=ut,this.notifService=Ot,this.userService=xt,this.swUpdate.checkForUpdate().then(Ut=>{console.log("Service worker checking for updates...")}).catch(()=>{console.log("Error while checking for service worker updates...")})}checkForUpdates(){this.swUpdate.versionUpdates.subscribe(Je=>{switch(Je.type){case"VERSION_DETECTED":console.log(`New application version [${Je.version.hash}] detected.`);break;case"VERSION_READY":console.log(`The application is ready to be updated from version [${Je.latestVersion.hash}] to version [${Je.currentVersion.hash}].`),localStorage.setItem(W.B.serviceWorkerJustUpdated,Date.now().toString()),this.reloadPage();break;case"VERSION_INSTALLATION_FAILED":console.log(`Failed to install application version '${Je.version.hash}': ${Je.error}`)}})}
2149checkAndSignalIfUpdateHappened(){localStorage.getItem(W.B.serviceWorkerJustUpdated)&&(localStorage.removeItem(W.B.serviceWorkerJustUpdated),this.userService.isLoggedIn?this.notifService.addNotif("info",new M.n0("CLIENT.NOTIFICATIONS.UPDATE.TITLE"),new M.n0("CLIENT.NOTIFICATIONS.UPDATE.DESCRIPTION"),M.V1.MEDIUM,M.C7.SECONDARY):this.asyncMessenger.infoNotification("CLIENT.NOTIFICATIONS.UPDATE.DESCRIPTION"))}reloadPage(){this.swUpdate.activateUpdate().then(()=>document.location.reload())}}return ze.\u0275fac=function(Je){return new(Je||ze)(e.LFG(Ct.yO),e.LFG(D.m),e.LFG(X.g),e.LFG(B.K))},ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();var mt=n(97895),ye=n(13345),Ce=n(46061),j=n(80114),_e=n(66616),F=n(47044),ne=n(21811),U=n(47423);const et=["convenienceLanguage"],ct=function(){return{duration:0}},ft=function(ze){return{value:"",params:ze}},Ze=function(){return{duration:200}};function Oe(ze,ke){if(1&ze){const Je=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){e.CHM(Je);const Ot=e.oxw();return e.KtG(Ot.deleteToasts())}),e._UZ(1,"i",7),e._uU(2),e.ALo(3,"translate"),e.qZA()}if(2&ze){const Je=e.oxw();e.Q6J("@fadeWithDuration",Je.disableDismissAnimation?e.VKq(6,ft,e.DdM(5,ct)):e.VKq(9,ft,e.DdM(8,Ze)))("nzSize","small"),e.xp6(2),e.hij(" ",e.lcZ(3,3,"CLIENT.NOTIFICATIONS.DISMISS_ALL")," ")}}function y(ze,ke){if(1&ze){const Je=e.EpF();e.TgZ(0,"div",8)(1,"div",9),e._UZ(2,"i",10),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()(),e.TgZ(6,"div",11)(7,"button",12),e.NdJ("click",function(){e.CHM(Je);const Ot=e.oxw();return e.KtG(Ot.languageService.changeLanguage("hu",!0))}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",13),e.NdJ("click",function(){e.CHM(Je);const Ot=e.oxw();return e.KtG(Ot.acceptedConvenienceLanguage())}),e._uU(11),e.ALo(12,"translate"),e.qZA()()}2&ze&&(e.xp6(4),e.Oqu(e.lcZ(5,3,"COMMON.CONVENIENCE_LANGUAGE_TITLE")),e.xp6(4),e.hij(" ",e.lcZ(9,5,"COMMON.CONVENIENCE_LANGUAGE_CHANGE_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(12,7,"COMMON.CONVENIENCE_LANGUAGE_BUTTON")," "))}let x=class{constructor(ke,Je,ut,Ot,xt,Ut,Lt,yt,Bt,Rt,nn,zt,Xt,Zt,Kt,Ft,qt,on,Yt,mn){this.i18n=ke,this.location=Je,this.nzMessageService=ut,this.router=Ot,this.toastr=xt,this.translate=Ut,this.asyncMessenger=Lt,this.clientService=yt,this.cookieService=Bt,this.eventService=Rt,this.languageService=nn,this.modalService=zt,this.notifService=Xt,this.onepage=Zt,this.serviceWorkerUpdateService=Kt,this.trackingService=Ft,this.userService=qt,this.route=on,this.metadataService=Yt,this.seoSchemaService=mn,this.intercomOpened=!1,this.showNotifications=!1,this.title="Szerzi",this.disableDismissAnimation=!1,this.isLanding=!0,this.serviceWorkerUpdateService.checkForUpdates(),this.trackingService.initialize(),document.addEventListener("angularStartTracking",()=>{this.trackingService.initialize()}),document.addEventListener("angularChangeLanguage",Vt=>{this.languageService.changeLanguage(Vt.detail.lang)}),this.languageService.currentLanguageFromStorage()?this.languageService.changeLanguage(this.languageService.currentLanguageFromStorage(),!1,!0,!0):this.languageService.changeLanguage("hu",!1,!1,!0);const un=document.getElementsByTagName("html");if(un.length>0&&un[0].classList.add("notranslate"),document.documentElement.lang=this.translate.currentLang,fe.L.config.selectionEnabled){const Vt=document.createElement("style");Vt.innerHTML="* {\n -webkit-touch-callout: text !important;\n -webkit-user-select: text !important;\n -khtml-user-select: text !important;\n -moz-user-select: text !important;\n -ms-user-select: text !important;\n user-select: text !important;\n }",document.body.appendChild(Vt)}this.metadataService.initialize()}ngOnInit(){this.router.events.pipe((0,Ve.h)(ke=>ke instanceof Z.m2)).subscribe(ke=>{if((0,a.H)(0).pipe((0,q.t)(this)).subscribe(()=>{this.nzBackTopComponent&&this.nzBackTopComponent.handleScroll&&this.nzBackTopComponent.handleScroll()}),this.isLanding=!(ke.url.includes(G.d.baseClient+"/")||ke.url.includes(G.d.baseLawyer+"/")||ke.url.includes(G.d.baseAdmin+"/")||ke.url.includes(G.d.baseUser+"/")||ke.url.includes(G.d.login)||ke.url.includes(G.d.register)||ke.url.includes(G.d.forgot)||ke.url.includes(G.d.forgotConfirm)||ke.url.includes(G.d.demosContract)||ke.url.includes(G.d.landingFeatures)),!document.getElementById("innerStylesLink")&&!this.isLanding){const ut=document.createElement("link");ut.id="innerStylesLink",ut.rel="preload",ut.href="/innerStyles.css",ut.as="style",ut.onload=()=>{ut.onload=null,ut.rel="stylesheet"};const Ot=document.head.getElementsByTagName("link"),Ut=Array.from(Ot).reverse().find(Lt=>Lt.href&&Lt.href.includes("/styles.css"));Ut?Ut.insertAdjacentElement("beforebegin",ut):document.head.appendChild(ut)}this.updateCanonicalUrl()}),B.K.sessionStatusChanged.subscribe(ke=>{ke?this.notifService.afterLoginCheck():this.asyncMessenger.deleteAllToasts()}),B.K.impersonatedStatusChanged.pipe((0,q.t)(this)).subscribe(ke=>{ke?this.notifService.afterLoginCheck():this.asyncMessenger.deleteAllToasts()}),this.userService.isLoggedIn&&(this.clientService.getSessionValidity().pipe((0,q.t)(this)).subscribe(ke=>{}),this.userService.isClient&&this.clientService.getOrders().pipe((0,q.t)(this)).subscribe(ke=>{this.eventService.setHasOrders(ke&&ke.length>0)},ke=>{this.eventService.setHasOrders(!1)}),this.refreshTaxStatus(),this.onepage.billingChanged.subscribe(ke=>{this.refreshTaxStatus()})),this.eventService.intercomOpened.subscribe(ke=>{this.intercomOpened=ke}),this.toastr.overlayContainer=this.toastContainer,this.eventService.lastNotifClicked.subscribe(ke=>{ke&&(this.showNotifications=!1)}),this.toastContainer.getContainerElement().addEventListener("DOMNodeInserted",ke=>{setTimeout(()=>{this.showNotifications=this.toastr.currentlyActive>0},0)}),this.toastContainer.getContainerElement().addEventListener("DOMNodeRemoved",ke=>{setTimeout(()=>{this.showNotifications=this.toastr.currentlyActive>0},0)}),this.route.queryParams.subscribe(ke=>{ke.matchmakingLawyerID&&localStorage.setItem(W.B.matchmakingLawyerID,ke.matchmakingLawyerID)}),this.translate.onLangChange.subscribe(()=>{this.setSeoSchema()}),this.setSeoSchema()}ngAfterViewInit(){this.serviceWorkerUpdateService.checkAndSignalIfUpdateHappened(),this.languageSubscription=this.translate.onLangChange.pipe((0,q.t)(this)).subscribe(Je=>{this.checkConvenienceLanguage(Je.lang),document.documentElement.lang=Je.lang}),localStorage.getItem(W.B.convenienceLanguage)||this.checkConvenienceLanguage();const ke=new CustomEvent("firstLoadInitializedFromAngular",{});setTimeout(()=>{document.dispatchEvent(ke)},600)}checkConvenienceLanguage(ke){localStorage.getItem(W.B.convenienceLanguage)||(ke?"en"===ke?this.nzMessageService.create("",this.convenienceLanguage,{nzDuration:0}):"hu"===ke&&this.nzMessageService.remove():"en"===this.languageService.currentLanguage?this.nzMessageService.create("",this.convenienceLanguage,{nzDuration:0}):"hu"===this.languageService.currentLanguage&&this.nzMessageService.remove())}acceptedConvenienceLanguage(){localStorage.setItem(W.B.convenienceLanguage,JSON.stringify(!0)),this.nzMessageService.remove()}deleteToasts(){this.disableDismissAnimation=!0,(0,a.H)(50).pipe((0,q.t)(this)).subscribe(ke=>{this.asyncMessenger.deleteAllToasts()}),(0,a.H)(300).pipe((0,q.t)(this)).subscribe(ke=>{this.disableDismissAnimation=!1})}refreshTaxStatus(){this.clientService.getTaxStatus().pipe((0,q.t)(this)).subscribe(ke=>{this.eventService.setTaxStatus(ke)},ke=>console.log(ke))}updateCanonicalUrl(){if(!window.location.href.includes("#tab-")){var Je=document.querySelector("link[rel='canonical']")||null;null==Je&&(Je=document.createElement("link"),document.getElementsByTagName("head")[0].appendChild(Je)),Je.setAttribute("rel","canonical"),Je.setAttribute("href",window.location.href)}}setSeoSchema(){this.logoSchema=this.seoSchemaService.getLogo(),this.webSiteSchema=this.seoSchemaService.getWebSite(),this.breadcrumbsSchema=this.seoSchemaService.getBreadcrumbList()}};x.\u0275fac=function(ke){return new(ke||x)(e.Y36(te.wi),e.Y36(Pe.Ye),e.Y36(Ue.dD),e.Y36(Z.F0),e.Y36(it._W),e.Y36(h.sK),e.Y36(D.m),e.Y36(Ae.y),e.Y36(Fe.N),e.Y36(C.P),e.Y36(Qe.T),e.Y36(rt.Z),e.Y36(X.g),e.Y36(w.g),e.Y36(ht),e.Y36(mt.e),e.Y36(B.K),e.Y36(Z.gz),e.Y36(ye.D),e.Y36(Ce.a))},x.\u0275cmp=e.Xpm({type:x,selectors:[["app-root"]],viewQuery:function(ke,Je){if(1&ke&&(e.Gf(et,5),e.Gf(it.FM,7),e.Gf(de.o,7)),2&ke){let ut;e.iGM(ut=e.CRH())&&(Je.convenienceLanguage=ut.first),e.iGM(ut=e.CRH())&&(Je.toastContainer=ut.first),e.iGM(ut=e.CRH())&&(Je.nzBackTopComponent=ut.first)}},decls:10,vars:4,consts:[[1,"toastr-container-positioning"],["toastContainer",""],[1,"w-100","text-center"],["nz-button","","nzType","primary","class","button-text-wrap notif-close-button secondary-color-primary-button",3,"nzSize","click",4,"ngIf"],["convenienceLanguage",""],[3,"json"],["nz-button","","nzType","primary",1,"button-text-wrap","notif-close-button","secondary-color-primary-button",3,"nzSize","click"],["nz-icon","","nzType","caret-up","nzTheme","outline"],[1,"englishNotifContainer","d-inline-block"],[1,"pt-2"],["nz-icon","","nzType","info-circle","nzTheme","outline",1,"color-primary"],[1,"d-flex","mt-3","w-100","text-center","justify-content-center","englishNotifButtons"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(ke,Je){1&ke&&(e._UZ(0,"router-outlet"),e.TgZ(1,"div",0),e._UZ(2,"div",1),e.TgZ(3,"div",2),e.YNc(4,Oe,4,11,"button",3),e.qZA()(),e.YNc(5,y,13,9,"
2149ng-template",null,4,e.W1O),e._UZ(7,"ngx-json-ld",5)(8,"ngx-json-ld",5)(9,"ngx-json-ld",5)),2&ke&&(e.xp6(4),e.Q6J("ngIf",Je.showNotifications),e.xp6(3),e.Q6J("json",Je.logoSchema),e.xp6(1),e.Q6J("json",Je.webSiteSchema),e.xp6(1),e.Q6J("json",Je.breadcrumbsSchema))},dependencies:[Pe.O5,Z.lC,j.T,_e.ix,F.w,ne.dQ,U.Ls,it.FM,h.X$],styles:['@charset "UTF-8";.englishNotifContainer[_ngcontent-%COMP%]{max-width:750px}@media (min-width: 450px){.englishNotifContainer[_ngcontent-%COMP%]{width:45vw;min-width:400px}}@media (max-width: 449.98px){.englishNotifContainer[_ngcontent-%COMP%]{width:85vw;min-width:200px}}.englishNotifButtons[_ngcontent-%COMP%]{flex-wrap:wrap;gap:10px 15px}.notif-close-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:4px!important}'],data:{animation:[ee.yt]}}),x=(0,le.gn)([(0,q.c)()],x);var E=n(87689),T=n(38746),S=n(87341),$=n(35950),pe=n(39646);let Re=class{constructor(ke,Je,ut){this.routerService=ke,this.userService=Je,this.clientService=ut}canActivate(ke,Je){return this.guard(Je.url)}canActivateChild(ke,Je){return this.guard(Je.url)}canLoad(ke,Je){const ut=Je.reduce((Ot,xt)=>`${Ot}/${xt.path}`,"");return this.guard(ut)}guard(ke){return this.userService.isLoggedIn&&this.userService.isAdministrator?(this.clientService.is2Factor().pipe((0,q.t)(this)).subscribe(Je=>{Je.isEnabled||this.routerService.routeToSettingsTab(G.d.settingsAccountTab)},Je=>{this.routerService.routeToSettingsTab(G.d.settingsAccountTab)}),(0,pe.of)(!0)):this.userService.isLoggedIn&&this.userService.isClient?(this.routerService.routeToContractList(),(0,pe.of)(!1)):(this.routerService.routeToLoginWithForwarding(ke),(0,pe.of)(!1))}};Re.\u0275fac=function(ke){return new(ke||Re)(e.LFG(l.c),e.LFG(B.K),e.LFG(Ae.y))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac}),Re=(0,le.gn)([(0,q.c)()],Re);var Ke=n(28952),nt=n(72218),lt=n(16023),$e=n(73467),qe=n(45935),ve=n(59166),we=n(75539),De=n(52632),Be=n(61769),Le=n(3674),Ne=n(28404),oe=n(72536),ue=n(54584),Ge=n(43559),tt=n(55386),pt=n(74910),ce=n(79991),Me=n(14206),he=n(31494),Ye=n(69872),He=n(52033),at=n(29262),me=n(7478); 2150/* 2151 * @license 2152 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 2153 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 2154 *
2155 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 2156 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 2157 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 2158 * trade secret or copyright law. 2159 * 2160 * Dissemination of this information or reproduction of this material is strictly forbidden 2161 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 2162 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 2163 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 2164 * explicitly covering such access. 2165 * 2166 * The copyright notice above does not evidence any actual or intended publication or disclosure 2167 * of this source code, which includes information that is confidential and/or proprietary, 2168 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 2169 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 2170 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 2171 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 2172 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 2173 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 2174 * IN WHOLE OR IN PART. 2175 */function Te(){return()=>fe.L.loadConfig()}function _(){return{appId:fe.L.config.intercom,updateOnRouterChange:!0}}function ot(){return{autoLogin:!0,providers:[{id:Y.tV.PROVIDER_ID,provider:new Y.tV(fe.L.config.googleApi,{oneTapEnabled:!1})},{id:Y.LP.PROVIDER_ID,provider:new Y.LP(fe.L.config.facebookApi)},{id:lt.E.PROVIDER_ID,provider:new lt.E}]}}function je(ze,ke){return()=>new Promise(Je=>{ke.get(Pe.V_,Promise.resolve(null)).then(()=>{let Ot;localStorage.getItem(W.B.languageSelection)?(Ot=localStorage.getItem(W.B.languageSelection),ze.setDefaultLang(Ot)):(Ot="hu",ze.setDefaultLang(Ot)),ze.use(Ot).subscribe(()=>{console.log(`Successfully initialized '${Ot}' language.'`)},xt=>{console.error(`Problem with '${Ot}' language initialization.'`)},()=>{Je(null)})})})}function At(){return()=>new Promise(ze=>{ze(null)})}(0,Pe.qS)(Ne.Z);const Et={notification:{nzTop:80,nzMaxStack:3},message:{nzTop:48}};let gt=(()=>{class ze extends s.hm{buildHammer(Je){const ut=new tt(Je,{touchAction:"auto"});return ut.get("pan").set({direction:tt.DIRECTION_ALL}),ut.get("pinch").set({enable:!0}),ut.get("rotate").set({enable:!0}),ut}}return ze.\u0275fac=function(){let ke;return function(ut){return(ke||(ke=e.n5z(ze)))(ut||ze)}}(),ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),Pt=(()=>{class ze{}return ze.\u0275fac=function(Je){return new(Je||ze)},ze.\u0275mod=e.oAB({type:ze,bootstrap:[x]}),ze.\u0275inj=e.cJS({providers:[Re,$.f,pt.d,D.m,Ae.y,c.J,Ke.g,fe.L,C.P,E.o,Qe.T,ue.w,t.u,Me.$,ye.D,rt.Z,X.g,w.g,He.S,De.t,Ge.f,v._,l.c,Ye.G,ht,S.w,B.K,r.h,Le.f,o.o,he.K,{provide:e.ip1,useFactory:Te,multi:!0},{provide:te.u7,useValue:te.JM},{provide:oe.d_,useValue:Et},{provide:te.Wy,useValue:{firstDayOfWeek:1}},{provide:e.ip1,useFactory:je,deps:[h.sK,e.zs3],multi:!0},{provide:e.ip1,useFactory:At,deps:[at.l],multi:!0},{provide:Be.QP,useFactory:_},{provide:u.TP,useClass:b,multi:!0},{provide:"SocialAuthServiceConfig",useFactory:ot},{provide:s.ok,useClass:gt}],imports:[s.b2,T.PW,re,me.A,$e.X,Be.ET,nt.e7,we._J.forRoot(),h.aw.forRoot({loader:{provide:h.Zw,useFactory:qe.g,deps:[u.eN]},parser:{provide:h.qi,useClass:ce.h},isolate:!1}),qe.m.forRoot(),ve.F,it.L4,it.Rh.forRoot({maxOpened:3,autoDismiss:!0,positionClass:"position-relative",toastClass:"toastr-size-fix ngx-toast",iconClasses:{error:"toast-error",info:"",success:"toast-success",warning:"toast-warning"},closeButton:!0,tapToDismiss:!1,extendedTimeOut:5e3}),Ct.Wr.register("ngsw-worker.js",{enabled:!0,registrationStrategy:"registerImmediately"}),s.t6]}),ze})(); 2176/* 2177 * @license 2178 * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL 2179 * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved. 2180 *
2181 * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt) 2182 * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt) 2183 * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by 2184 * trade secret or copyright law. 2185 * 2186 * Dissemination of this information or reproduction of this material is strictly forbidden 2187 * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code 2188 * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees, 2189 * managers or contractors who have executed Confidentiality and Non-disclosure agreements 2190 * explicitly covering such access. 2191 * 2192 * The copyright notice above does not evidence any actual or intended publication or disclosure 2193 * of this source code, which includes information that is confidential and/or proprietary, 2194 * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, 2195 * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE 2196 * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF 2197 * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE 2198 * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR 2199 * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, 2200 * IN WHOLE OR IN PART. 2201 */fe.L.loadConfigAndSwitchOperation(!0,!0,!1,!1).then(ze=>{ze&&(console.log("Enabling production mode..."),(0,e.G48)()),s.q6().bootstrapModule(Pt).catch(ke=>console.error(ke))})}},Se=>{Se.O(0,[4736],()=>Se(Se.s=76240)),Se.O()}]);
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.